youverify-liveness-web 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2130 -1984
- package/dist/index.umd.cjs +4 -33
- package/package.json +2 -7
package/dist/index.umd.cjs
CHANGED
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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 / .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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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 / .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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.static{position:static}.absolute{position:absolute}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.mb-12{margin-bottom:3rem}.mt-12{margin-top:3rem}.mt-3{margin-top:.75rem}.flex{display:flex}.hidden{display:none}.h-10{height:2.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-full{height:100%}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.border-t{border-top-width:1px}.p-0{padding:0}.text-xs{font-size:.75rem;line-height:1rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.subtext{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.subtext:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.divider{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.divider:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\\:block:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:block}.dark\\:hidden:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:none}._root_13n5b_1{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:DM Sans,sans-serif;position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;height:100vh;width:100vw;height:-webkit-fill-available;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}._root_13n5b_1[data-closed]{opacity:0}._root_13n5b_1._modal_13n5b_9{background-color:#0000004d}@media (min-width: 768px){._root_13n5b_1._modal_13n5b_9{padding:1rem}._root_13n5b_1._modal_13n5b_9 ._container_13n5b_12{border-radius:.75rem}._root_13n5b_1._page_13n5b_15{padding:0}}._root_13n5b_1 ._close_13n5b_18{position:absolute;top:.5rem;left:.5rem;display:flex;align-items:center;justify-content:center;z-index:20;height:1.5rem;width:1.5rem;border-radius:9999px;background-color:#00000080}._root_13n5b_1 ._close_13n5b_18 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_13n5b_1 ._close_13n5b_18 svg:hover{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}._root_13n5b_1 ._container_13n5b_12{height:100%;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}._root_13n5b_1 ._container_13n5b_12:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1{height:100%}._root_dndkf_1 ._container_dndkf_4{display:flex;height:100%}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7{display:none;width:20%;flex-direction:column;justify-content:space-between}@media (min-width: 1280px){._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7{display:flex}}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7{padding-top:.75rem;padding-bottom:.75rem}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11{padding-left:1.5rem;padding-right:1.5rem}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol{position:relative;margin:0;list-style-type:none;padding:0}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li{counter-increment:item;margin-bottom:24px;position:relative;font-size:.875rem;line-height:1.25rem;display:flex;align-items:center}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:before{width:28px;height:28px;border-radius:9999px;border-width:2px;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:before{margin-right:1rem;display:flex;align-items:center;justify-content:center;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:before{content:counter(item);flex-shrink:0}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._active_dndkf_32{font-weight:500}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._active_dndkf_32:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._active_dndkf_32:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._completed_dndkf_39{font-weight:500;text-decoration-line:line-through}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._completed_dndkf_39:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._completed_dndkf_39:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:after{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):after{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:after{top:28px;bottom:-24px;left:14px;content:"";position:absolute;width:1px}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:last-child:after{content:none}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 footer{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62{display:none;width:20%}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62{padding-top:.75rem;padding-bottom:.75rem}@media (min-width: 1280px){._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62{display:block}}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65{display:flex;align-items:center;gap:.5rem;padding:1rem 1.5rem}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 ._avatar_dndkf_68{height:2.5rem;width:2.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 ._avatar_dndkf_68:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 ._avatar_dndkf_68{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1.75rem;font-weight:500}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 h4{margin-bottom:-.25rem;text-overflow:ellipsis;font-weight:600;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 h4:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 p{margin-top:0;margin-bottom:0;font-size:.75rem;line-height:1rem}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 footer>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 footer{padding-left:1.5rem;padding-right:1.5rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81{flex:1 1 0%}@media (min-width: 768px){._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81{padding-top:1rem;padding-bottom:1rem}}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._content_dndkf_84{margin-left:auto;margin-right:auto;height:100%;width:100%;overflow:hidden;border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._content_dndkf_84:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._content_dndkf_84{max-width:500px}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._completed_dndkf_39{display:flex;height:100%;width:100%;align-items:center;justify-content:center}._root_135td_1 ._container_135td_1 ._brand_135td_1{display:flex;align-items:center;gap:7px;font-weight:600}._root_1w5nq_1{position:relative;height:100%;width:100%}._root_1w5nq_1 video{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;transform:scaleX(-1)}._container_1ap2u_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(255,255,255,0) 100%)}._container_1ap2u_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(0,0,0,0) 100%)}._container_1ap2u_1{z-index:1}._container_1ap2u_1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(255,255,255,.5) 101px)}._container_1ap2u_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(0,0,0,.8) 101px)}._container_1ap2u_1:before{transition:opacity .3s linear}._container_1ap2u_1._focused_1ap2u_12:before{opacity:1}._container_1ap2u_1 ._progress_1ap2u_15{position:relative;height:280px;width:280px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid gray}._container_1ap2u_1 ._progress_1ap2u_15 div{position:absolute;height:3px;transform-origin:50%;border-radius:2px;width:5px;background-color:gray;transition-property:background-color,transform,width;transition-duration:.3s;transition-timing-function:ease-in-out}._container_1ap2u_1 ._progress_1ap2u_15 div._completed_1ap2u_36{width:20px;background-color:#07da63}._container_1ap2u_1 ._marker_1ap2u_40{position:relative;width:280px;height:280px}._container_1ap2u_1 ._marker_1ap2u_40>div{position:absolute;height:1.75rem;width:1.75rem;border-width:2px;--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._container_1ap2u_1 ._marker_1ap2u_40>div:first-child{top:-.25rem;left:-.25rem;border-top-left-radius:50%;border-bottom-width:0px;border-right-width:0px}._container_1ap2u_1 ._marker_1ap2u_40>div:nth-child(2){top:-.25rem;right:-.25rem;border-top-right-radius:50%;border-bottom-width:0px;border-left-width:0px}._container_1ap2u_1 ._marker_1ap2u_40>div:nth-child(3){bottom:-.25rem;left:-.25rem;border-bottom-left-radius:50%;border-top-width:0px;border-right-width:0px}._container_1ap2u_1 ._marker_1ap2u_40>div:last-child{bottom:-.25rem;right:-.25rem;border-bottom-right-radius:50%;border-top-width:0px;border-left-width:0px}._root_13gis_1{height:100%;text-align:center}._root_13gis_1 ._container_13gis_4{position:relative;height:100%}._root_13gis_1 ._container_13gis_4 ._progress_13gis_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_13gis_1 ._container_13gis_4 ._intro_13gis_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_13gis_1 ._container_13gis_4 ._content_13gis_15{height:75%;width:100%}._root_13gis_1 ._container_13gis_4 ._branding_13gis_18{position:absolute;left:0;right:0;bottom:1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:500;display:flex;align-items:center;justify-content:center}._root_13gis_1 ._container_13gis_4 ._branding_13gis_18>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}._root_13gis_1 ._container_13gis_4 ._instructions_13gis_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_13gis_1 ._container_13gis_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_13gis_1 ._container_13gis_4 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_13gis_1 ._container_13gis_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_13gis_1 ._container_13gis_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_13gis_1 ._container_13gis_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_39czk_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_39czk_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_39czk_1 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_39czk_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_39czk_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_39czk_1 button ._spinner_39czk_18{height:100%;width:100%;border-radius:50%;border-width:2px;height:1rem;width:1rem;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_39czk_18 .7s linear infinite}@keyframes _spin_39czk_18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_39czk_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_39czk_1 button:hover ._spinner_39czk_18{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._root_gcbg2_1{position:absolute;top:0;right:0;bottom:0;left:0}._root_gcbg2_1 ._sticker_gcbg2_4{position:absolute}._root_gcbg2_1 ._sticker_gcbg2_4._no_gcbg2_7{top:2.5rem;left:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity));transform:rotate(335deg)}._root_gcbg2_1 ._sticker_gcbg2_4._yes_gcbg2_12{top:2.5rem;right:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity));transform:rotate(45deg)}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
(function(s,ge){typeof exports=="object"&&typeof module<"u"?module.exports=ge(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],ge):(s=typeof globalThis<"u"?globalThis:s||self,s.YouverifyLiveness=ge(s.React,s.ReactDOM))})(this,function(s,ge){"use strict";function mr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Le=mr(s);var yt={exports:{}},Oe={};/**
|
|
3
|
-
|
|
4
|
-
* react-jsx-runtime.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var tn;function hr(){if(tn)return Oe;tn=1;var e=s,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(c,l,f){var d,m={},h=null,v=null;f!==void 0&&(h=""+f),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(v=l.ref);for(d in l)r.call(l,d)&&!i.hasOwnProperty(d)&&(m[d]=l[d]);if(c&&c.defaultProps)for(d in l=c.defaultProps,l)m[d]===void 0&&(m[d]=l[d]);return{$$typeof:t,type:c,key:h,ref:v,props:m,_owner:o.current}}return Oe.Fragment=n,Oe.jsx=a,Oe.jsxs=a,Oe}var Ne={};/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-jsx-runtime.development.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var nn;function vr(){return nn||(nn=1,process.env.NODE_ENV!=="production"&&function(){var e=s,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b=Symbol.iterator,y="@@iterator";function w(u){if(u===null||typeof u!="object")return null;var g=b&&u[b]||u[y];return typeof g=="function"?g:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(u){{for(var g=arguments.length,x=new Array(g>1?g-1:0),_=1;_<g;_++)x[_-1]=arguments[_];F("error",u,x)}}function F(u,g,x){{var _=E.ReactDebugCurrentFrame,j=_.getStackAddendum();j!==""&&(g+="%s",x=x.concat([j]));var L=x.map(function(k){return String(k)});L.unshift("Warning: "+g),Function.prototype.apply.call(console[u],console,L)}}var C=!1,T=!1,P=!1,N=!1,D=!1,M;M=Symbol.for("react.module.reference");function W(u){return!!(typeof u=="string"||typeof u=="function"||u===r||u===i||D||u===o||u===f||u===d||N||u===v||C||T||P||typeof u=="object"&&u!==null&&(u.$$typeof===h||u.$$typeof===m||u.$$typeof===a||u.$$typeof===c||u.$$typeof===l||u.$$typeof===M||u.getModuleId!==void 0))}function G(u,g,x){var _=u.displayName;if(_)return _;var j=g.displayName||g.name||"";return j!==""?x+"("+j+")":x}function X(u){return u.displayName||"Context"}function U(u){if(u==null)return null;if(typeof u.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case d:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case c:var g=u;return X(g)+".Consumer";case a:var x=u;return X(x._context)+".Provider";case l:return G(u,u.render,"ForwardRef");case m:var _=u.displayName||null;return _!==null?_:U(u.type)||"Memo";case h:{var j=u,L=j._payload,k=j._init;try{return U(k(L))}catch{return null}}}return null}var ee=Object.assign,re=0,le,ue,_e,te,H,A,mt;function ve(){}ve.__reactDisabledLog=!0;function Re(){{if(re===0){le=console.log,ue=console.info,_e=console.warn,te=console.error,H=console.group,A=console.groupCollapsed,mt=console.groupEnd;var u={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}re++}}function je(){{if(re--,re===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},u,{value:le}),info:ee({},u,{value:ue}),warn:ee({},u,{value:_e}),error:ee({},u,{value:te}),group:ee({},u,{value:H}),groupCollapsed:ee({},u,{value:A}),groupEnd:ee({},u,{value:mt})})}re<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=E.ReactCurrentDispatcher,qt;function ht(u,g,x){{if(qt===void 0)try{throw Error()}catch(j){var _=j.stack.trim().match(/\n( *(at )?)/);qt=_&&_[1]||""}return`
|
|
19
|
-
`+qt+u}}var Rt=!1,vt;{var mi=typeof WeakMap=="function"?WeakMap:Map;vt=new mi}function er(u,g){if(!u||Rt)return"";{var x=vt.get(u);if(x!==void 0)return x}var _;Rt=!0;var j=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var L;L=ce.current,ce.current=null,Re();try{if(g){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(q){_=q}Reflect.construct(u,[],k)}else{try{k.call()}catch(q){_=q}u.call(k.prototype)}}else{try{throw Error()}catch(q){_=q}u()}}catch(q){if(q&&_&&typeof q.stack=="string"){for(var S=q.stack.split(`
|
|
20
|
-
`),B=_.stack.split(`
|
|
21
|
-
`),I=S.length-1,V=B.length-1;I>=1&&V>=0&&S[I]!==B[V];)V--;for(;I>=1&&V>=0;I--,V--)if(S[I]!==B[V]){if(I!==1||V!==1)do if(I--,V--,V<0||S[I]!==B[V]){var J=`
|
|
22
|
-
`+S[I].replace(" at new "," at ");return u.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",u.displayName)),typeof u=="function"&&vt.set(u,J),J}while(I>=1&&V>=0);break}}}finally{Rt=!1,ce.current=L,je(),Error.prepareStackTrace=j}var Me=u?u.displayName||u.name:"",Fe=Me?ht(Me):"";return typeof u=="function"&&vt.set(u,Fe),Fe}function hi(u,g,x){return er(u,!1)}function vi(u){var g=u.prototype;return!!(g&&g.isReactComponent)}function gt(u,g,x){if(u==null)return"";if(typeof u=="function")return er(u,vi(u));if(typeof u=="string")return ht(u);switch(u){case f:return ht("Suspense");case d:return ht("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case l:return hi(u.render);case m:return gt(u.type,g,x);case h:{var _=u,j=_._payload,L=_._init;try{return gt(L(j),g,x)}catch{}}}return""}var Ge=Object.prototype.hasOwnProperty,tr={},nr=E.ReactDebugCurrentFrame;function bt(u){if(u){var g=u._owner,x=gt(u.type,u._source,g?g.type:null);nr.setExtraStackFrame(x)}else nr.setExtraStackFrame(null)}function gi(u,g,x,_,j){{var L=Function.call.bind(Ge);for(var k in u)if(L(u,k)){var S=void 0;try{if(typeof u[k]!="function"){var B=Error((_||"React class")+": "+x+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw B.name="Invariant Violation",B}S=u[k](g,k,_,x,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(I){S=I}S&&!(S instanceof Error)&&(bt(j),$("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",_||"React class",x,k,typeof S),bt(null)),S instanceof Error&&!(S.message in tr)&&(tr[S.message]=!0,bt(j),$("Failed %s type: %s",x,S.message),bt(null))}}}var bi=Array.isArray;function Gt(u){return bi(u)}function yi(u){{var g=typeof Symbol=="function"&&Symbol.toStringTag,x=g&&u[Symbol.toStringTag]||u.constructor.name||"Object";return x}}function Ei(u){try{return rr(u),!1}catch{return!0}}function rr(u){return""+u}function or(u){if(Ei(u))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yi(u)),rr(u)}var Xe=E.ReactCurrentOwner,wi={key:!0,ref:!0,__self:!0,__source:!0},sr,ir,Xt;Xt={};function xi(u){if(Ge.call(u,"ref")){var g=Object.getOwnPropertyDescriptor(u,"ref").get;if(g&&g.isReactWarning)return!1}return u.ref!==void 0}function $i(u){if(Ge.call(u,"key")){var g=Object.getOwnPropertyDescriptor(u,"key").get;if(g&&g.isReactWarning)return!1}return u.key!==void 0}function Ti(u,g){if(typeof u.ref=="string"&&Xe.current&&g&&Xe.current.stateNode!==g){var x=U(Xe.current.type);Xt[x]||($('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',U(Xe.current.type),u.ref),Xt[x]=!0)}}function Ci(u,g){{var x=function(){sr||(sr=!0,$("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",g))};x.isReactWarning=!0,Object.defineProperty(u,"key",{get:x,configurable:!0})}}function _i(u,g){{var x=function(){ir||(ir=!0,$("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",g))};x.isReactWarning=!0,Object.defineProperty(u,"ref",{get:x,configurable:!0})}}var Fi=function(u,g,x,_,j,L,k){var S={$$typeof:t,type:u,key:g,ref:x,props:k,_owner:L};return S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(S,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.defineProperty(S,"_source",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S};function Si(u,g,x,_,j){{var L,k={},S=null,B=null;x!==void 0&&(or(x),S=""+x),$i(g)&&(or(g.key),S=""+g.key),xi(g)&&(B=g.ref,Ti(g,j));for(L in g)Ge.call(g,L)&&!wi.hasOwnProperty(L)&&(k[L]=g[L]);if(u&&u.defaultProps){var I=u.defaultProps;for(L in I)k[L]===void 0&&(k[L]=I[L])}if(S||B){var V=typeof u=="function"?u.displayName||u.name||"Unknown":u;S&&Ci(k,V),B&&_i(k,V)}return Fi(u,S,B,j,_,Xe.current,k)}}var Zt=E.ReactCurrentOwner,ar=E.ReactDebugCurrentFrame;function Pe(u){if(u){var g=u._owner,x=gt(u.type,u._source,g?g.type:null);ar.setExtraStackFrame(x)}else ar.setExtraStackFrame(null)}var Jt;Jt=!1;function Qt(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function lr(){{if(Zt.current){var u=U(Zt.current.type);if(u)return`
|
|
23
|
-
|
|
24
|
-
Check the render method of \``+u+"`."}return""}}function ki(u){return""}var ur={};function ji(u){{var g=lr();if(!g){var x=typeof u=="string"?u:u.displayName||u.name;x&&(g=`
|
|
25
|
-
|
|
26
|
-
Check the top-level render call using <`+x+">.")}return g}}function cr(u,g){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var x=ji(g);if(ur[x])return;ur[x]=!0;var _="";u&&u._owner&&u._owner!==Zt.current&&(_=" It was passed a child from "+U(u._owner.type)+"."),Pe(u),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',x,_),Pe(null)}}function dr(u,g){{if(typeof u!="object")return;if(Gt(u))for(var x=0;x<u.length;x++){var _=u[x];Qt(_)&&cr(_,g)}else if(Qt(u))u._store&&(u._store.validated=!0);else if(u){var j=w(u);if(typeof j=="function"&&j!==u.entries)for(var L=j.call(u),k;!(k=L.next()).done;)Qt(k.value)&&cr(k.value,g)}}}function Pi(u){{var g=u.type;if(g==null||typeof g=="string")return;var x;if(typeof g=="function")x=g.propTypes;else if(typeof g=="object"&&(g.$$typeof===l||g.$$typeof===m))x=g.propTypes;else return;if(x){var _=U(g);gi(x,u.props,"prop",_,u)}else if(g.PropTypes!==void 0&&!Jt){Jt=!0;var j=U(g);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j||"Unknown")}typeof g.getDefaultProps=="function"&&!g.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mi(u){{for(var g=Object.keys(u.props),x=0;x<g.length;x++){var _=g[x];if(_!=="children"&&_!=="key"){Pe(u),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),Pe(null);break}}u.ref!==null&&(Pe(u),$("Invalid attribute `ref` supplied to `React.Fragment`."),Pe(null))}}var fr={};function pr(u,g,x,_,j,L){{var k=W(u);if(!k){var S="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=ki();B?S+=B:S+=lr();var I;u===null?I="null":Gt(u)?I="array":u!==void 0&&u.$$typeof===t?(I="<"+(U(u.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):I=typeof u,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,S)}var V=Si(u,g,x,j,L);if(V==null)return V;if(k){var J=g.children;if(J!==void 0)if(_)if(Gt(J)){for(var Me=0;Me<J.length;Me++)dr(J[Me],u);Object.freeze&&Object.freeze(J)}else $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else dr(J,u)}if(Ge.call(g,"key")){var Fe=U(u),q=Object.keys(g).filter(function(Ii){return Ii!=="key"}),en=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!fr[Fe+en]){var Ai=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";$(`A props object containing a "key" prop is being spread into JSX:
|
|
27
|
-
let props = %s;
|
|
28
|
-
<%s {...props} />
|
|
29
|
-
React keys must be passed directly to JSX without using spread:
|
|
30
|
-
let props = %s;
|
|
31
|
-
<%s key={someKey} {...props} />`,en,Fe,Ai,Fe),fr[Fe+en]=!0}}return u===r?Mi(V):Pi(V),V}}function Li(u,g,x){return pr(u,g,x,!0)}function Oi(u,g,x){return pr(u,g,x,!1)}var Ni=Oi,Di=Li;Ne.Fragment=r,Ne.jsx=Ni,Ne.jsxs=Di}()),Ne}process.env.NODE_ENV==="production"?yt.exports=hr():yt.exports=vr();var p=yt.exports,De={},Ae=ge;if(process.env.NODE_ENV==="production")De.createRoot=Ae.createRoot,De.hydrateRoot=Ae.hydrateRoot;else{var Ze=Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;De.createRoot=function(e,t){Ze.usingClientEntryPoint=!0;try{return Ae.createRoot(e,t)}finally{Ze.usingClientEntryPoint=!1}},De.hydrateRoot=function(e,t,n){Ze.usingClientEntryPoint=!0;try{return Ae.hydrateRoot(e,t,n)}finally{Ze.usingClientEntryPoint=!1}}}const rn=typeof document<"u"?s.useLayoutEffect:()=>{};function gr(e){const t=s.useRef(null);return rn(()=>{t.current=e},[e]),s.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Ie=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},be=e=>e&&"window"in e&&e.window===e?e:Ie(e).defaultView||window;function br(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function yr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Er(){return yr(/^Mac/i)}function wr(){return br(/Android/i)}function xr(e){return e.mozInputSource===0&&e.isTrusted?!0:wr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class $r{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function on(e){let t=s.useRef({isFocused:!1,observer:null});rn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=gr(r=>{e==null||e(r)});return s.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{t.current.isFocused=!1,o.disabled&&n(new $r("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let c=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Tr(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=s.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=on(i),c=s.useCallback(l=>{const f=Ie(l.target);l.target===l.currentTarget&&f.activeElement===l.target&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?c:void 0,onBlur:!t&&(r||o)?i:void 0}}}let He=null,Et=new Set,Ve=new Map,ye=!1,wt=!1;const Cr={Tab:!0,Escape:!0};function xt(e,t){for(let n of Et)n(e,t)}function _r(e){return!(e.metaKey||!Er()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Je(e){ye=!0,_r(e)&&(He="keyboard",xt("keyboard",e))}function Z(e){He="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ye=!0,xt("pointer",e))}function sn(e){xr(e)&&(ye=!0,He="virtual")}function an(e){e.target===window||e.target===document||(!ye&&!wt&&(He="virtual",xt("virtual",e)),ye=!1,wt=!1)}function ln(){ye=!1,wt=!0}function $t(e){if(typeof window>"u"||Ve.get(be(e)))return;const t=be(e),n=Ie(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ye=!0,r.apply(this,arguments)},n.addEventListener("keydown",Je,!0),n.addEventListener("keyup",Je,!0),n.addEventListener("click",sn,!0),t.addEventListener("focus",an,!0),t.addEventListener("blur",ln,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Z,!0),n.addEventListener("pointermove",Z,!0),n.addEventListener("pointerup",Z,!0)):(n.addEventListener("mousedown",Z,!0),n.addEventListener("mousemove",Z,!0),n.addEventListener("mouseup",Z,!0)),t.addEventListener("beforeunload",()=>{un(e)},{once:!0}),Ve.set(t,{focus:r})}const un=(e,t)=>{const n=be(e),r=Ie(e);t&&r.removeEventListener("DOMContentLoaded",t),Ve.has(n)&&(n.HTMLElement.prototype.focus=Ve.get(n).focus,r.removeEventListener("keydown",Je,!0),r.removeEventListener("keyup",Je,!0),r.removeEventListener("click",sn,!0),n.removeEventListener("focus",an,!0),n.removeEventListener("blur",ln,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Z,!0),r.removeEventListener("pointermove",Z,!0),r.removeEventListener("pointerup",Z,!0)):(r.removeEventListener("mousedown",Z,!0),r.removeEventListener("mousemove",Z,!0),r.removeEventListener("mouseup",Z,!0)),Ve.delete(n))};function Fr(e){const t=Ie(e);let n;return t.readyState!=="loading"?$t(e):(n=()=>{$t(e)},t.addEventListener("DOMContentLoaded",n)),()=>un(e,n)}typeof document<"u"&&Fr();function cn(){return He!=="pointer"}const Sr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kr(e,t,n){var r;const o=typeof window<"u"?be(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?be(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?be(n==null?void 0:n.target).HTMLElement:HTMLElement,c=typeof window<"u"?be(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!Sr.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof c&&!Cr[n.key])}function jr(e,t,n){$t(),s.useEffect(()=>{let r=(o,i)=>{kr(!!(n!=null&&n.isTextInput),o,i)&&e(cn())};return Et.add(r),()=>{Et.delete(r)}},t)}function Pr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=s.useRef({isFocusWithin:!1}),a=s.useCallback(f=>{i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(f),o&&o(!1))},[n,o,i]),c=on(a),l=s.useCallback(f=>{!i.current.isFocusWithin&&document.activeElement===f.target&&(r&&r(f),o&&o(!0),i.current.isFocusWithin=!0,c(f))},[r,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Qe=!1,Tt=0;function Ct(){Qe=!0,setTimeout(()=>{Qe=!1},50)}function dn(e){e.pointerType==="touch"&&Ct()}function Mr(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",dn):document.addEventListener("touchend",Ct),Tt++,()=>{Tt--,!(Tt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",dn):document.removeEventListener("touchend",Ct))}}function Lr(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=s.useState(!1),c=s.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s.useEffect(Mr,[]);let{hoverProps:l,triggerHoverEnd:f}=s.useMemo(()=>{let d=(v,b)=>{if(c.pointerType=b,o||b==="touch"||c.isHovered||!v.currentTarget.contains(v.target))return;c.isHovered=!0;let y=v.currentTarget;c.target=y,t&&t({type:"hoverstart",target:y,pointerType:b}),n&&n(!0),a(!0)},m=(v,b)=>{if(c.pointerType="",c.target=null,b==="touch"||!c.isHovered)return;c.isHovered=!1;let y=v.currentTarget;r&&r({type:"hoverend",target:y,pointerType:b}),n&&n(!1),a(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=v=>{Qe&&v.pointerType==="mouse"||d(v,v.pointerType)},h.onPointerLeave=v=>{!o&&v.currentTarget.contains(v.target)&&m(v,v.pointerType)}):(h.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=v=>{!c.ignoreEmulatedMouseEvents&&!Qe&&d(v,"mouse"),c.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=v=>{!o&&v.currentTarget.contains(v.target)&&m(v,"mouse")}),{hoverProps:h,triggerHoverEnd:m}},[t,n,r,o,c]);return s.useEffect(()=>{o&&f({currentTarget:c.target},c.pointerType)},[o]),{hoverProps:l,isHovered:i}}function Or(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=s.useRef({isFocused:!1,isFocusVisible:t||cn()}),[i,a]=s.useState(!1),[c,l]=s.useState(()=>o.current.isFocused&&o.current.isFocusVisible),f=s.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=s.useCallback(v=>{o.current.isFocused=v,a(v),f()},[f]);jr(v=>{o.current.isFocusVisible=v,f()},[],{isTextInput:n});let{focusProps:m}=Tr({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=Pr({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:c,focusProps:r?h:m}}var Nr=Object.defineProperty,Dr=(e,t,n)=>t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_t=(e,t,n)=>(Dr(e,typeof t!="symbol"?t+"":t,n),n);let Ar=class{constructor(){_t(this,"current",this.detect()),_t(this,"handoffState","pending"),_t(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ee=new Ar;function et(e){return Ee.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function tt(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function de(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return tt(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=de();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function nt(){let[e]=s.useState(de);return s.useEffect(()=>()=>e.dispose(),[e]),e}let Y=(e,t)=>{Ee.isServer?s.useEffect(e,t):s.useLayoutEffect(e,t)};function we(e){let t=s.useRef(e);return Y(()=>{t.current=e},[e]),t}let O=function(e){let t=we(e);return s.useCallback((...n)=>t.current(...n),[t])};function Ir(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Hr(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Vr({disabled:e=!1}={}){let t=s.useRef(null),[n,r]=s.useState(!1),o=nt(),i=O(()=>{t.current=null,r(!1),o.dispose()}),a=O(c=>{if(o.dispose(),t.current===null){t.current=c.currentTarget,r(!0);{let l=et(c.currentTarget);o.addEventListener(l,"pointerup",i,!1),o.addEventListener(l,"pointermove",f=>{if(t.current){let d=Ir(f);r(Hr(d,t.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:i,onClick:i}}}let Wr=s.createContext(void 0);function fn(){return s.useContext(Wr)}function Ft(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function fe(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,fe),r}var rt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(rt||{}),pe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pe||{});function R({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:c}){c=c??Ur;let l=pn(t,e);if(i)return ot(l,n,r,a,c);let f=o??0;if(f&2){let{static:d=!1,...m}=l;if(d)return ot(m,n,r,a,c)}if(f&1){let{unmount:d=!0,...m}=l;return fe(d?0:1,{0(){return null},1(){return ot({...m,hidden:!0,style:{display:"none"}},n,r,a,c)}})}return ot(l,n,r,a,c)}function ot(e,t={},n,r,o){let{as:i=n,children:a,refName:c="ref",...l}=St(e,["unmount","static"]),f=e.ref!==void 0?{[c]:e.ref}:{},d=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let m={};if(t){let h=!1,v=[];for(let[b,y]of Object.entries(t))typeof y=="boolean"&&(h=!0),y===!0&&v.push(b.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(h){m["data-headlessui-state"]=v.join(" ");for(let b of v)m[`data-${b}`]=""}}if(i===s.Fragment&&(Object.keys(xe(l)).length>0||Object.keys(xe(m)).length>0))if(!s.isValidElement(d)||Array.isArray(d)&&d.length>1){if(Object.keys(xe(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(xe(l)).concat(Object.keys(xe(m))).map(h=>` - ${h}`).join(`
|
|
32
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
|
|
1
|
+
(function(){"use strict";(function(e,r){try{if(typeof document<"u"){const t=document.createElement("style");for(const o in r.attributes)t.setAttribute(o,r.attributes[o]);t.appendChild(document.createTextNode(e)),document.head.prepend(t)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})('@import"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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 / .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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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 / .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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.static{position:static}.absolute{position:absolute}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.mb-12{margin-bottom:3rem}.mt-12{margin-top:3rem}.mt-3{margin-top:.75rem}.flex{display:flex}.hidden{display:none}.h-10{height:2.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-full{height:100%}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.p-0{padding:0}.text-xs{font-size:.75rem;line-height:1rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.subtext{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.subtext:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.divider{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.divider:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\\:block:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:block}.dark\\:hidden:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:none}._root_1ctbt_1{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:DM Sans,sans-serif;position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;height:100vh;height:-webkit-fill-available;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}._root_1ctbt_1[data-closed]{opacity:0}._root_1ctbt_1._modal_1ctbt_9{background-color:#0000004d}@media (min-width: 768px){._root_1ctbt_1._modal_1ctbt_9{padding:1rem}._root_1ctbt_1._modal_1ctbt_9 ._container_1ctbt_12{border-radius:.75rem}._root_1ctbt_1._page_1ctbt_15{padding:0}}._root_1ctbt_1 ._close_1ctbt_18{position:absolute;top:.5rem;left:.5rem;display:flex;align-items:center;justify-content:center;z-index:20;height:1.5rem;width:1.5rem;border-radius:9999px;background-color:#00000080}._root_1ctbt_1 ._close_1ctbt_18 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1ctbt_1 ._close_1ctbt_18 svg:hover{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}._root_1ctbt_1 ._container_1ctbt_12{height:100%;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}._root_1ctbt_1 ._container_1ctbt_12:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1h6qm_1 *,._root_1h6qm_1 :before,._root_1h6qm_1 :after{box-sizing:border-box;border-width:0;border-style:solid}._root_1h6qm_1 :before,._root_1h6qm_1 :after{--tw-content: ""}._root_1h6qm_1 html,._root_1h6qm_1 :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";-webkit-tap-highlight-color:transparent}._root_1h6qm_1 body{margin:0;line-height:inherit}._root_1h6qm_1 hr{height:0;color:inherit;border-top-width:1px}._root_1h6qm_1 abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}._root_1h6qm_1 h1,._root_1h6qm_1 h2,._root_1h6qm_1 h3,._root_1h6qm_1 h4,._root_1h6qm_1 h5,._root_1h6qm_1 h6{font-size:inherit;font-weight:inherit}._root_1h6qm_1 a{color:inherit;text-decoration:inherit}._root_1h6qm_1 b,._root_1h6qm_1 strong{font-weight:bolder}._root_1h6qm_1 code,._root_1h6qm_1 kbd,._root_1h6qm_1 samp,._root_1h6qm_1 pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}._root_1h6qm_1 small{font-size:80%}._root_1h6qm_1 sub,._root_1h6qm_1 sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}._root_1h6qm_1 sub{bottom:-.25em}._root_1h6qm_1 sup{top:-.5em}._root_1h6qm_1 table{text-indent:0;border-color:inherit;border-collapse:collapse}._root_1h6qm_1 button,._root_1h6qm_1 input,._root_1h6qm_1 optgroup,._root_1h6qm_1 select,._root_1h6qm_1 textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}._root_1h6qm_1 button,._root_1h6qm_1 select{text-transform:none}._root_1h6qm_1 button,._root_1h6qm_1 input:where([type=button]),._root_1h6qm_1 input:where([type=reset]),._root_1h6qm_1 input:where([type=submit]){-moz-appearance:button;appearance:button;-webkit-appearance:button;background-color:transparent;background-image:none}._root_1h6qm_1 :-moz-focusring{outline:auto}._root_1h6qm_1 :-moz-ui-invalid{box-shadow:none}._root_1h6qm_1 progress{vertical-align:baseline}._root_1h6qm_1 ::-webkit-inner-spin-button,._root_1h6qm_1 ::-webkit-outer-spin-button{height:auto}._root_1h6qm_1 [type=search]{-moz-appearance:textfield;appearance:textfield;-webkit-appearance:textfield;outline-offset:-2px}._root_1h6qm_1 ::-webkit-search-decoration{-webkit-appearance:none}._root_1h6qm_1 ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}._root_1h6qm_1 summary{display:list-item}._root_1h6qm_1 blockquote,._root_1h6qm_1 dl,._root_1h6qm_1 dd,._root_1h6qm_1 h1,._root_1h6qm_1 h2,._root_1h6qm_1 h3,._root_1h6qm_1 h4,._root_1h6qm_1 h5,._root_1h6qm_1 h6,._root_1h6qm_1 hr,._root_1h6qm_1 figure,._root_1h6qm_1 p,._root_1h6qm_1 pre{margin:0}._root_1h6qm_1 fieldset{margin:0;padding:0}._root_1h6qm_1 legend{padding:0}._root_1h6qm_1 ol,._root_1h6qm_1 ul,._root_1h6qm_1 menu{list-style:none;margin:0;padding:0}._root_1h6qm_1 dialog{padding:0}._root_1h6qm_1 textarea{resize:vertical}._root_1h6qm_1 input::-moz-placeholder,._root_1h6qm_1 textarea::-moz-placeholder{opacity:1;color:#9ca3af}._root_1h6qm_1 input::placeholder,._root_1h6qm_1 textarea::placeholder{opacity:1;color:#9ca3af}._root_1h6qm_1 button,._root_1h6qm_1 [role=button]{cursor:pointer}._root_1h6qm_1 :disabled{cursor:default}._root_1h6qm_1 img,._root_1h6qm_1 svg,._root_1h6qm_1 video,._root_1h6qm_1 canvas,._root_1h6qm_1 audio,._root_1h6qm_1 iframe,._root_1h6qm_1 embed,._root_1h6qm_1 object{display:block}._root_1h6qm_1 [hidden]{display:none}._root_dndkf_1{height:100%}._root_dndkf_1 ._container_dndkf_4{display:flex;height:100%}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7{display:none;width:20%;flex-direction:column;justify-content:space-between}@media (min-width: 1280px){._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7{display:flex}}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7{padding-top:.75rem;padding-bottom:.75rem}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11{padding-left:1.5rem;padding-right:1.5rem}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol{position:relative;margin:0;list-style-type:none;padding:0}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li{counter-increment:item;margin-bottom:24px;position:relative;font-size:.875rem;line-height:1.25rem;display:flex;align-items:center}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:before{width:28px;height:28px;border-radius:9999px;border-width:2px;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:before{margin-right:1rem;display:flex;align-items:center;justify-content:center;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:before{content:counter(item);flex-shrink:0}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._active_dndkf_32{font-weight:500}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._active_dndkf_32:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._active_dndkf_32:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._completed_dndkf_39{font-weight:500;text-decoration-line:line-through}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._completed_dndkf_39:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._completed_dndkf_39:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:after{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):after{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:after{top:28px;bottom:-24px;left:14px;content:"";position:absolute;width:1px}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:last-child:after{content:none}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 footer{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62{display:none;width:20%}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62{padding-top:.75rem;padding-bottom:.75rem}@media (min-width: 1280px){._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62{display:block}}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65{display:flex;align-items:center;gap:.5rem;padding:1rem 1.5rem}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 ._avatar_dndkf_68{height:2.5rem;width:2.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 ._avatar_dndkf_68:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 ._avatar_dndkf_68{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1.75rem;font-weight:500}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 h4{margin-bottom:-.25rem;text-overflow:ellipsis;font-weight:600;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 h4:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 p{margin-top:0;margin-bottom:0;font-size:.75rem;line-height:1rem}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 footer>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 footer{padding-left:1.5rem;padding-right:1.5rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81{flex:1 1 0%}@media (min-width: 768px){._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81{padding-top:1rem;padding-bottom:1rem}}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._content_dndkf_84{margin-left:auto;margin-right:auto;height:100%;width:100%;overflow:hidden;border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._content_dndkf_84:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._content_dndkf_84{max-width:500px}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._completed_dndkf_39{display:flex;height:100%;width:100%;align-items:center;justify-content:center}._root_135td_1 ._container_135td_1 ._brand_135td_1{display:flex;align-items:center;gap:7px;font-weight:600}._root_1w5nq_1{position:relative;height:100%;width:100%}._root_1w5nq_1 video{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;transform:scaleX(-1)}._container_1ap2u_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(255,255,255,0) 100%)}._container_1ap2u_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(0,0,0,0) 100%)}._container_1ap2u_1{z-index:1}._container_1ap2u_1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(255,255,255,.5) 101px)}._container_1ap2u_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(0,0,0,.8) 101px)}._container_1ap2u_1:before{transition:opacity .3s linear}._container_1ap2u_1._focused_1ap2u_12:before{opacity:1}._container_1ap2u_1 ._progress_1ap2u_15{position:relative;height:280px;width:280px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid gray}._container_1ap2u_1 ._progress_1ap2u_15 div{position:absolute;height:3px;transform-origin:50%;border-radius:2px;width:5px;background-color:gray;transition-property:background-color,transform,width;transition-duration:.3s;transition-timing-function:ease-in-out}._container_1ap2u_1 ._progress_1ap2u_15 div._completed_1ap2u_36{width:20px;background-color:#07da63}._container_1ap2u_1 ._marker_1ap2u_40{position:relative;width:280px;height:280px}._container_1ap2u_1 ._marker_1ap2u_40>div{position:absolute;height:1.75rem;width:1.75rem;border-width:2px;--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._container_1ap2u_1 ._marker_1ap2u_40>div:first-child{top:-.25rem;left:-.25rem;border-top-left-radius:50%;border-bottom-width:0px;border-right-width:0px}._container_1ap2u_1 ._marker_1ap2u_40>div:nth-child(2){top:-.25rem;right:-.25rem;border-top-right-radius:50%;border-bottom-width:0px;border-left-width:0px}._container_1ap2u_1 ._marker_1ap2u_40>div:nth-child(3){bottom:-.25rem;left:-.25rem;border-bottom-left-radius:50%;border-top-width:0px;border-right-width:0px}._container_1ap2u_1 ._marker_1ap2u_40>div:last-child{bottom:-.25rem;right:-.25rem;border-bottom-right-radius:50%;border-top-width:0px;border-left-width:0px}._root_182pz_1{height:100%;text-align:center}._root_182pz_1 ._container_182pz_4{position:relative;height:100%}._root_182pz_1 ._container_182pz_4 ._progress_182pz_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_182pz_1 ._container_182pz_4 ._intro_182pz_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_182pz_1 ._container_182pz_4 ._content_182pz_15{height:75%;width:100%}._root_182pz_1 ._container_182pz_4 ._branding_182pz_18{position:absolute;left:0;right:0;bottom:1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:500;display:flex;align-items:center;justify-content:center}._root_182pz_1 ._container_182pz_4 ._branding_182pz_18>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}._root_182pz_1 ._container_182pz_4 ._instructionsContainer_182pz_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_182pz_1 ._container_182pz_4 ._instructionsContainer_182pz_22:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_182pz_1 ._container_182pz_4 ._instructions_182pz_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_182pz_1 ._container_182pz_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_182pz_1 ._container_182pz_4 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_182pz_1 ._container_182pz_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_182pz_1 ._container_182pz_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_182pz_1 ._container_182pz_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_39czk_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_39czk_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_39czk_1 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_39czk_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_39czk_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_39czk_1 button ._spinner_39czk_18{height:100%;width:100%;border-radius:50%;border-width:2px;height:1rem;width:1rem;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_39czk_18 .7s linear infinite}@keyframes _spin_39czk_18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_39czk_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_39czk_1 button:hover ._spinner_39czk_18{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._root_gcbg2_1{position:absolute;top:0;right:0;bottom:0;left:0}._root_gcbg2_1 ._sticker_gcbg2_4{position:absolute}._root_gcbg2_1 ._sticker_gcbg2_4._no_gcbg2_7{top:2.5rem;left:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity));transform:rotate(335deg)}._root_gcbg2_1 ._sticker_gcbg2_4._yes_gcbg2_12{top:2.5rem;right:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity));transform:rotate(45deg)}',{})})();
|
|
2
|
+
(function(ee,C){typeof exports=="object"&&typeof module<"u"?module.exports=C():typeof define=="function"&&define.amd?define(C):(ee=typeof globalThis<"u"?globalThis:ee||self,ee.YouverifyLiveness=C())})(this,function(){"use strict";var ee,C,En,he,Cn,Tn,Ct,Tt,kt,Ft,kn,Ae={},Fn=[],go=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Qe=Array.isArray;function te(e,t){for(var n in t)e[n]=t[n];return e}function Sn(e){var t=e.parentNode;t&&t.removeChild(e)}function G(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?ee.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return Oe(e,a,r,o,null)}function Oe(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++En,__i:-1,__u:0};return o==null&&C.vnode!=null&&C.vnode(i),i}function St(){return{current:null}}function D(e){return e.children}function Z(e,t){this.props=e,this.context=t}function me(e,t){if(t==null)return e.__?me(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?me(e):null}function xn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return xn(e)}}function xt(e){(!e.__d&&(e.__d=!0)&&he.push(e)&&!Je.__r++||Cn!==C.debounceRendering)&&((Cn=C.debounceRendering)||Tn)(Je)}function Je(){var e,t,n,r,o,i,a,s;for(he.sort(Ct);e=he.shift();)e.__d&&(t=he.length,r=void 0,i=(o=(n=e).__v).__e,a=[],s=[],n.__P&&((r=te({},o)).__v=o.__v+1,C.vnode&&C.vnode(r),Pt(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,i??me(o),!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,Dn(a,r,s),r.__e!=i&&xn(r)),he.length>t&&he.sort(Ct));Je.__r=0}function Pn(e,t,n,r,o,i,a,s,l,u,d){var c,p,f,m,g,v=r&&r.__k||Fn,h=t.length;for(n.__d=l,yo(n,t,v),l=n.__d,c=0;c<h;c++)(f=n.__k[c])!=null&&typeof f!="boolean"&&typeof f!="function"&&(p=f.__i===-1?Ae:v[f.__i]||Ae,f.__i=c,Pt(e,f,p,o,i,a,s,l,u,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Lt(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),65536&f.__u||p.__k===f.__k?l=Ln(f,l,e):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=g}function yo(e,t,n){var r,o,i,a,s,l=t.length,u=n.length,d=u,c=0;for(e.__k=[],r=0;r<l;r++)a=r+c,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Oe(null,o,null,null,null):Qe(o)?Oe(D,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Oe(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,s=bo(o,n,a,d),o.__i=s,i=null,s!==-1&&(d--,(i=n[s])&&(i.__u|=131072)),i==null||i.__v===null?(s==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):s!==a&&(s==a-1?c=s-a:s==a+1?c++:s>a?d>l-a?c+=s-a:c--:s<a&&c++,s!==r+c&&(o.__u|=65536))):(i=n[a])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=me(i)),Mt(i,i,!1),n[a]=null,d--);if(d)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=me(i)),Mt(i,i))}function Ln(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Ln(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=me(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ne(e,t){return t=t||[],e==null||typeof e=="boolean"||(Qe(e)?e.some(function(n){ne(n,t)}):t.push(e)),t}function bo(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(l===null||l&&o==l.key&&i===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function Mn(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||go.test(t)?n:n+"px"}function et(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Mn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Mn(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Tt,e.addEventListener(t,i?Ft:kt,i)):e.removeEventListener(t,i?Ft:kt,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Nn(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Tt++;else if(t.t<n.u)return;return n(C.event?C.event(t):t)}}}function Pt(e,t,n,r,o,i,a,s,l,u){var d,c,p,f,m,g,v,h,y,T,w,$,S,A,M,x,N=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(d=C.__b)&&d(t);e:if(typeof N=="function")try{if(h=t.props,y="prototype"in N&&N.prototype.render,T=(d=N.contextType)&&r[d.__c],w=d?T?T.props.value:d.__:r,n.__c?v=(c=t.__c=n.__c).__=c.__E:(y?t.__c=c=new N(h,w):(t.__c=c=new Z(h,w),c.constructor=N,c.render=$o),T&&T.sub(c),c.props=h,c.state||(c.state={}),c.context=w,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),y&&c.__s==null&&(c.__s=c.state),y&&N.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=te({},c.__s)),te(c.__s,N.getDerivedStateFromProps(h,c.__s))),f=c.props,m=c.state,c.__v=t,p)y&&N.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),y&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(y&&N.getDerivedStateFromProps==null&&h!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(h,w),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(h,c.__s,w)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=h,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(W){W&&(W.__=t)}),$=0;$<c._sb.length;$++)c.__h.push(c._sb[$]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(h,c.__s,w),y&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,m,g)})}if(c.context=w,c.props=h,c.__P=e,c.__e=!1,S=C.__r,A=0,y){for(c.state=c.__s,c.__d=!1,S&&S(t),d=c.render(c.props,c.state,c.context),M=0;M<c._sb.length;M++)c.__h.push(c._sb[M]);c._sb=[]}else do c.__d=!1,S&&S(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++A<25);c.state=c.__s,c.getChildContext!=null&&(r=te(te({},r),c.getChildContext())),y&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(f,m)),Pn(e,Qe(x=d!=null&&d.type===D&&d.key==null?d.props.children:d)?x:[x],t,n,r,o,i,a,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),v&&(c.__E=c.__=null)}catch(W){if(t.__v=null,l||i!=null){for(t.__u|=l?160:32;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;C.__e(W,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=wo(n.__e,t,n,r,o,i,a,l,u);(d=C.diffed)&&d(t)}function Dn(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Lt(n[r],n[++r],n[++r]);C.__c&&C.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){C.__e(i,o.__v)}})}function wo(e,t,n,r,o,i,a,s,l){var u,d,c,p,f,m,g,v=n.props,h=t.props,y=t.type;if(y==="svg"?o="http://www.w3.org/2000/svg":y==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:f.nodeType===3)){e=f,i[u]=null;break}}if(e==null){if(y===null)return document.createTextNode(h);e=document.createElementNS(o,y,h.is&&h),i=null,s=!1}if(y===null)v===h||s&&e.data===h||(e.data=h);else{if(i=i&&ee.call(e.childNodes),v=n.props||Ae,!s&&i!=null)for(v={},u=0;u<e.attributes.length;u++)v[(f=e.attributes[u]).name]=f.value;for(u in v)if(f=v[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=f;else if(u!=="key"&&!(u in h)){if(u=="value"&&"defaultValue"in h||u=="checked"&&"defaultChecked"in h)continue;et(e,u,null,f,o)}}for(u in h)f=h[u],u=="children"?p=f:u=="dangerouslySetInnerHTML"?d=f:u=="value"?m=f:u=="checked"?g=f:u==="key"||s&&typeof f!="function"||v[u]===f||et(e,u,f,v[u],o);if(d)s||c&&(d.__html===c.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),Pn(e,Qe(p)?p:[p],t,n,r,y==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&me(n,0),s,l),i!=null)for(u=i.length;u--;)i[u]!=null&&Sn(i[u]);s||(u="value",m!==void 0&&(m!==e[u]||y==="progress"&&!m||y==="option"&&m!==v[u])&&et(e,u,m,v[u],o),u="checked",g!==void 0&&g!==e[u]&&et(e,u,g,v[u],o))}return e}function Lt(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){C.__e(o,n)}}function Mt(e,t,n){var r,o;if(C.unmount&&C.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Lt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){C.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Mt(r[o],t,n||typeof e.type!="function");n||e.__e==null||Sn(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function $o(e,t,n){return this.constructor(e,n)}function Fe(e,t,n){var r,o,i,a;C.__&&C.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],Pt(t,e=(!r&&n||t).__k=G(D,null,[e]),o||Ae,Ae,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?ee.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Dn(i,e,a)}function Hn(e,t){Fe(e,t,Hn)}function Eo(e,t,n){var r,o,i,a,s=te({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i]===void 0&&a!==void 0?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?ee.call(arguments,2):n),Oe(e.type,s,r||e.key,o||e.ref,null)}function B(e,t){var n={__c:t="__cC"+kn++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(function(s){s.__e=!0,xt(s)})},this.sub=function(a){o.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o&&o.splice(o.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ee=Fn.slice,C={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},En=0,Z.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=te({},this.state),typeof e=="function"&&(e=e(te({},n),this.props)),e&&te(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),xt(this))},Z.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xt(this))},Z.prototype.render=D,he=[],Tn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ct=function(e,t){return e.__v.__b-t.__v.__b},Je.__r=0,Tt=0,kt=Nn(!1),Ft=Nn(!0),kn=0;var Co=0;function _(e,t,n,r,o,i){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var u={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Co,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return C.vnode&&C.vnode(u),u}var re,P,Nt,An,Se=0,On=[],O=C,In=O.__b,Rn=O.__r,Vn=O.diffed,Un=O.__c,Wn=O.unmount,jn=O.__;function ve(e,t){O.__h&&O.__h(P,e,Se||t),Se=0;var n=P.__H||(P.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function k(e){return Se=1,Ie(Bn,e)}function Ie(e,t,n){var r=ve(re++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Bn(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,s);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=P,!P.u)){var o=function(s,l,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!i||i.call(this,s,l,u);var c=!1;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(c=!0)}}),!(!c&&r.__c.props===s)&&(!i||i.call(this,s,l,u))};P.u=!0;var i=P.shouldComponentUpdate,a=P.componentWillUpdate;P.componentWillUpdate=function(s,l,u){if(this.__e){var d=i;i=void 0,o(s,l,u),i=d}a&&a.call(this,s,l,u)},P.shouldComponentUpdate=o}return r.__N||r.__}function L(e,t){var n=ve(re++,3);!O.__s&&Ot(n.__H,t)&&(n.__=e,n.i=t,P.__H.__h.push(n))}function ge(e,t){var n=ve(re++,4);!O.__s&&Ot(n.__H,t)&&(n.__=e,n.i=t,P.__h.push(n))}function b(e){return Se=5,F(function(){return{current:e}},[])}function Dt(e,t,n){Se=6,ge(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function F(e,t){var n=ve(re++,7);return Ot(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function I(e,t){return Se=8,F(function(){return e},t)}function U(e){var t=P.context[e.__c],n=ve(re++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(P)),t.props.value):e.__}function Ht(e,t){O.useDebugValue&&O.useDebugValue(t?t(e):e)}function To(e){var t=ve(re++,10),n=k();return t.__=e,P.componentDidCatch||(P.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function ce(){var e=ve(re++,11);if(!e.__){for(var t=P.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ko(){for(var e;e=On.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tt),e.__H.__h.forEach(At),e.__H.__h=[]}catch(t){e.__H.__h=[],O.__e(t,e.__v)}}O.__b=function(e){P=null,In&&In(e)},O.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),jn&&jn(e,t)},O.__r=function(e){Rn&&Rn(e),re=0;var t=(P=e.__c).__H;t&&(Nt===P?(t.__h=[],P.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(tt),t.__h.forEach(At),t.__h=[],re=0)),Nt=P},O.diffed=function(e){Vn&&Vn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(On.push(t)!==1&&An===O.requestAnimationFrame||((An=O.requestAnimationFrame)||Fo)(ko)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Nt=P=null},O.__c=function(e,t){t.some(function(n){try{n.__h.forEach(tt),n.__h=n.__h.filter(function(r){return!r.__||At(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],O.__e(r,n.__v)}}),Un&&Un(e,t)},O.unmount=function(e){Wn&&Wn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{tt(r)}catch(o){t=o}}),n.__H=void 0,t&&O.__e(t,n.__v))};var zn=typeof requestAnimationFrame=="function";function Fo(e){var t,n=function(){clearTimeout(r),zn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);zn&&(t=requestAnimationFrame(n))}function tt(e){var t=P,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),P=t}function At(e){var t=P;e.__c=e.__(),P=t}function Ot(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Bn(e,t){return typeof t=="function"?t(e):t}function Yn(e,t){for(var n in t)e[n]=t[n];return e}function It(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function nt(e,t){this.props=e,this.context=t}function qn(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:It(this.props,o)}function r(o){return this.shouldComponentUpdate=n,G(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(nt.prototype=new Z).isPureReactComponent=!0,nt.prototype.shouldComponentUpdate=function(e,t){return It(this.props,e)||It(this.state,t)};var Kn=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Kn&&Kn(e)};var So=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Rt(e){function t(n){var r=Yn({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=So,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Gn=function(e,t){return e==null?null:ne(ne(e).map(t))},Zn={map:Gn,forEach:Gn,count:function(e){return e?ne(e).length:0},only:function(e){var t=ne(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ne},xo=C.__e;C.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}xo(e,t,n,r)};var Xn=C.unmount;function Qn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Yn({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Qn(r,t,n)})),e}function Jn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Jn(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Re(){this.__u=0,this.t=null,this.__b=null}function er(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tr(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return G(n,i)}return o.displayName="Lazy",o.__f=!0,o}function xe(){this.u=null,this.o=null}C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Xn&&Xn(e)},(Re.prototype=new Z).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=er(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Jn(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Re.prototype.componentWillUnmount=function(){this.t=[]},Re.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Qn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&G(D,null,e.fallback);return o&&(o.__u&=-33),[G(D,null,t.__a?null:e.children),o]};var nr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Po(e){return this.getChildContext=function(){return e.context},e.children}function Lo(e){var t=this,n=e.i;t.componentWillUnmount=function(){Fe(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Fe(G(Po,{context:t.context},e.__v),t.l)}function rt(e,t){var n=G(Lo,{__v:e,i:t});return n.containerInfo=t,n}(xe.prototype=new Z).__a=function(e){var t=this,n=er(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),nr(t,e,r)):o()};n?n(i):i()}},xe.prototype.render=function(e){this.u=null,this.o=new Map;var t=ne(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},xe.prototype.componentDidUpdate=xe.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){nr(e,n,t)})};var rr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Mo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,No=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Do=/[A-Z0-9]/g,Ho=typeof document<"u",Ao=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function or(e,t,n){return t.__k==null&&(t.textContent=""),Fe(e,t),typeof n=="function"&&n(),e?e.__c:null}function ir(e,t,n){return Hn(e,t),typeof n=="function"&&n(),e?e.__c:null}Z.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Z.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ar=C.event;function Oo(){}function Io(){return this.cancelBubble}function Ro(){return this.defaultPrevented}C.event=function(e){return ar&&(e=ar(e)),e.persist=Oo,e.isPropagationStopped=Io,e.isDefaultPrevented=Ro,e.nativeEvent=e};var Vt,Vo={enumerable:!1,configurable:!0,get:function(){return this.class}},sr=C.vnode;C.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||Ho&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":s==="translate"&&a==="no"?a=!1:s==="ondoubleclick"?i="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||Ao(n.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":No.test(i)?i=s:r.indexOf("-")===-1&&Mo.test(i)?i=i.replace(Do,"-$&").toLowerCase():a===null&&(a=void 0):s=i="oninput",s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ne(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ne(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Vo)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=rr,sr&&sr(e)};var lr=C.__r;C.__r=function(e){lr&&lr(e),Vt=e.__c};var cr=C.diffed;C.diffed=function(e){cr&&cr(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Vt=null};var ur={ReactCurrentDispatcher:{current:{readContext:function(e){return Vt.__n[e.__c].props.value},useCallback:I,useContext:U,useDebugValue:Ht,useDeferredValue:jt,useEffect:L,useId:ce,useImperativeHandle:Dt,useInsertionEffect:Bt,useLayoutEffect:ge,useMemo:F,useReducer:Ie,useRef:b,useState:k,useSyncExternalStore:ot,useTransition:zt}}},Uo="17.0.2";function dr(e){return G.bind(null,e)}function Pe(e){return!!e&&e.$$typeof===rr}function fr(e){return Pe(e)&&e.type===D}function pr(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ut(e){return Pe(e)?Eo.apply(null,arguments):e}function _r(e){return!!e.__k&&(Fe(null,e),!0)}function hr(e){return e&&(e.base||e.nodeType===1&&e)||null}var mr=function(e,t){return e(t)},vr=function(e,t){return e(t)},gr=D;function Wt(e){e()}function jt(e){return e}function zt(){return[!1,Wt]}var Bt=ge,yr=Pe;function ot(e,t){var n=t(),r=k({h:{__:n,v:t}}),o=r[0].h,i=r[1];return ge(function(){o.__=n,o.v=t,Yt(o)&&i({h:o})},[e,n,t]),L(function(){return Yt(o)&&i({h:o}),e(function(){Yt(o)&&i({h:o})})},[e]),n}function Yt(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var E={useState:k,useId:ce,useReducer:Ie,useEffect:L,useLayoutEffect:ge,useInsertionEffect:Bt,useTransition:zt,useDeferredValue:jt,useSyncExternalStore:ot,startTransition:Wt,useRef:b,useImperativeHandle:Dt,useMemo:F,useCallback:I,useContext:U,useDebugValue:Ht,version:"17.0.2",Children:Zn,render:or,hydrate:ir,unmountComponentAtNode:_r,createPortal:rt,createElement:G,createContext:B,createFactory:dr,cloneElement:Ut,createRef:St,Fragment:D,isValidElement:Pe,isElement:yr,isFragment:fr,isMemo:pr,findDOMNode:hr,Component:Z,PureComponent:nt,memo:qn,forwardRef:Rt,flushSync:vr,unstable_batchedUpdates:mr,StrictMode:gr,Suspense:Re,SuspenseList:xe,lazy:tr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ur};const br=Object.freeze(Object.defineProperty({__proto__:null,Children:Zn,Component:Z,Fragment:D,PureComponent:nt,StrictMode:gr,Suspense:Re,SuspenseList:xe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ur,cloneElement:Ut,createContext:B,createElement:G,createFactory:dr,createPortal:rt,createRef:St,default:E,findDOMNode:hr,flushSync:vr,forwardRef:Rt,hydrate:ir,isElement:yr,isFragment:fr,isMemo:pr,isValidElement:Pe,lazy:tr,memo:qn,render:or,startTransition:Wt,unmountComponentAtNode:_r,unstable_batchedUpdates:mr,useCallback:I,useContext:U,useDebugValue:Ht,useDeferredValue:jt,useEffect:L,useErrorBoundary:To,useId:ce,useImperativeHandle:Dt,useInsertionEffect:Bt,useLayoutEffect:ge,useMemo:F,useReducer:Ie,useRef:b,useState:k,useSyncExternalStore:ot,useTransition:zt,version:Uo},Symbol.toStringTag,{value:"Module"})),wr=typeof document<"u"?E.useLayoutEffect:()=>{};function Wo(e){const t=b(null);return wr(()=>{t.current=e},[e]),I((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Ve=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ye=e=>e&&"window"in e&&e.window===e?e:Ve(e).defaultView||window;function jo(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function zo(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Bo(){return zo(/^Mac/i)}function Yo(){return jo(/Android/i)}function qo(e){return e.mozInputSource===0&&e.isTrusted?!0:Yo()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class Ko{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function $r(e){let t=b({isFocused:!1,observer:null});wr(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Wo(r=>{e==null||e(r)});return I(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{t.current.isFocused=!1,o.disabled&&n(new Ko("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Go(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=I(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=$r(i),s=I(l=>{const u=Ve(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Ue=null,qt=new Set,We=new Map,be=!1,Kt=!1;const Zo={Tab:!0,Escape:!0};function Gt(e,t){for(let n of qt)n(e,t)}function Xo(e){return!(e.metaKey||!Bo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function it(e){be=!0,Xo(e)&&(Ue="keyboard",Gt("keyboard",e))}function K(e){Ue="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(be=!0,Gt("pointer",e))}function Er(e){qo(e)&&(be=!0,Ue="virtual")}function Cr(e){e.target===window||e.target===document||(!be&&!Kt&&(Ue="virtual",Gt("virtual",e)),be=!1,Kt=!1)}function Tr(){be=!1,Kt=!0}function Zt(e){if(typeof window>"u"||We.get(ye(e)))return;const t=ye(e),n=Ve(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){be=!0,r.apply(this,arguments)},n.addEventListener("keydown",it,!0),n.addEventListener("keyup",it,!0),n.addEventListener("click",Er,!0),t.addEventListener("focus",Cr,!0),t.addEventListener("blur",Tr,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",K,!0),n.addEventListener("pointermove",K,!0),n.addEventListener("pointerup",K,!0)):(n.addEventListener("mousedown",K,!0),n.addEventListener("mousemove",K,!0),n.addEventListener("mouseup",K,!0)),t.addEventListener("beforeunload",()=>{kr(e)},{once:!0}),We.set(t,{focus:r})}const kr=(e,t)=>{const n=ye(e),r=Ve(e);t&&r.removeEventListener("DOMContentLoaded",t),We.has(n)&&(n.HTMLElement.prototype.focus=We.get(n).focus,r.removeEventListener("keydown",it,!0),r.removeEventListener("keyup",it,!0),r.removeEventListener("click",Er,!0),n.removeEventListener("focus",Cr,!0),n.removeEventListener("blur",Tr,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",K,!0),r.removeEventListener("pointermove",K,!0),r.removeEventListener("pointerup",K,!0)):(r.removeEventListener("mousedown",K,!0),r.removeEventListener("mousemove",K,!0),r.removeEventListener("mouseup",K,!0)),We.delete(n))};function Qo(e){const t=Ve(e);let n;return t.readyState!=="loading"?Zt(e):(n=()=>{Zt(e)},t.addEventListener("DOMContentLoaded",n)),()=>kr(e,n)}typeof document<"u"&&Qo();function Fr(){return Ue!=="pointer"}const Jo=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ei(e,t,n){var r;const o=typeof window<"u"?ye(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ye(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ye(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?ye(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!Jo.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!Zo[n.key])}function ti(e,t,n){Zt(),L(()=>{let r=(o,i)=>{ei(!!(n!=null&&n.isTextInput),o,i)&&e(Fr())};return qt.add(r),()=>{qt.delete(r)}},t)}function ni(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=b({isFocusWithin:!1}),a=I(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),s=$r(a),l=I(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,s(u))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let at=!1,Xt=0;function Qt(){at=!0,setTimeout(()=>{at=!1},50)}function Sr(e){e.pointerType==="touch"&&Qt()}function ri(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Sr):document.addEventListener("touchend",Qt),Xt++,()=>{Xt--,!(Xt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Sr):document.removeEventListener("touchend",Qt))}}function oi(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=k(!1),s=b({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;L(ri,[]);let{hoverProps:l,triggerHoverEnd:u}=F(()=>{let d=(f,m)=>{if(s.pointerType=m,o||m==="touch"||s.isHovered||!f.currentTarget.contains(f.target))return;s.isHovered=!0;let g=f.currentTarget;s.target=g,t&&t({type:"hoverstart",target:g,pointerType:m}),n&&n(!0),a(!0)},c=(f,m)=>{if(s.pointerType="",s.target=null,m==="touch"||!s.isHovered)return;s.isHovered=!1;let g=f.currentTarget;r&&r({type:"hoverend",target:g,pointerType:m}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=f=>{at&&f.pointerType==="mouse"||d(f,f.pointerType)},p.onPointerLeave=f=>{!o&&f.currentTarget.contains(f.target)&&c(f,f.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=f=>{!s.ignoreEmulatedMouseEvents&&!at&&d(f,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=f=>{!o&&f.currentTarget.contains(f.target)&&c(f,"mouse")}),{hoverProps:p,triggerHoverEnd:c}},[t,n,r,o,s]);return L(()=>{o&&u({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function ii(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=b({isFocused:!1,isFocusVisible:t||Fr()}),[i,a]=k(!1),[s,l]=k(()=>o.current.isFocused&&o.current.isFocusVisible),u=I(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=I(f=>{o.current.isFocused=f,a(f),u()},[u]);ti(f=>{o.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:c}=Go({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=ni({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:r?p:c}}var ai=Object.defineProperty,si=(e,t,n)=>t in e?ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jt=(e,t,n)=>(si(e,typeof t!="symbol"?t+"":t,n),n);let li=class{constructor(){Jt(this,"current",this.detect()),Jt(this,"handoffState","pending"),Jt(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},we=new li;function st(e){return we.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function lt(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ue(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return lt(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=ue();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function ct(){let[e]=k(ue);return L(()=>()=>e.dispose(),[e]),e}let j=(e,t)=>{we.isServer?L(e,t):ge(e,t)};function $e(e){let t=b(e);return j(()=>{t.current=e},[e]),t}let H=function(e){let t=$e(e);return E.useCallback((...n)=>t.current(...n),[t])};function ci(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function ui(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function di({disabled:e=!1}={}){let t=b(null),[n,r]=k(!1),o=ct(),i=H(()=>{t.current=null,r(!1),o.dispose()}),a=H(s=>{if(o.dispose(),t.current===null){t.current=s.currentTarget,r(!0);{let l=st(s.currentTarget);o.addEventListener(l,"pointerup",i,!1),o.addEventListener(l,"pointermove",u=>{if(t.current){let d=ci(u);r(ui(d,t.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:i,onClick:i}}}let fi=B(void 0);function xr(){return U(fi)}function en(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function de(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,de),r}var ut=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ut||{}),fe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(fe||{});function q({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=s??pi;let l=Pr(t,e);if(i)return dt(l,n,r,a,s);let u=o??0;if(u&2){let{static:d=!1,...c}=l;if(d)return dt(c,n,r,a,s)}if(u&1){let{unmount:d=!0,...c}=l;return de(d?0:1,{0(){return null},1(){return dt({...c,hidden:!0,style:{display:"none"}},n,r,a,s)}})}return dt(l,n,r,a,s)}function dt(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=tn(e,["unmount","static"]),u=e.ref!==void 0?{[s]:e.ref}:{},d=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let p=!1,f=[];for(let[m,g]of Object.entries(t))typeof g=="boolean"&&(p=!0),g===!0&&f.push(m.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(p){c["data-headlessui-state"]=f.join(" ");for(let m of f)c[`data-${m}`]=""}}if(i===D&&(Object.keys(Ee(l)).length>0||Object.keys(Ee(c)).length>0))if(!Pe(d)||Array.isArray(d)&&d.length>1){if(Object.keys(Ee(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Ee(l)).concat(Object.keys(Ee(c))).map(p=>` - ${p}`).join(`
|
|
3
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
|
|
33
4
|
`)].join(`
|
|
34
|
-
`))}else{let h=d.props,v=h==null?void 0:h.className,b=typeof v=="function"?(...E)=>Ft(v(...E),l.className):Ft(v,l.className),y=b?{className:b}:{},w=pn(d.props,xe(St(l,["ref"])));for(let E in m)E in w&&delete m[E];return s.cloneElement(d,Object.assign({},w,m,f,{ref:o(d.ref,f.ref)},y))}return s.createElement(i,Object.assign({},St(l,["ref"]),i!==s.Fragment&&f,i!==s.Fragment&&m),d)}function Ur(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function pn(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let a=n[r];for(let c of a){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;c(o,...i)}}});return t}function Yr(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let a of i)a==null||a(...o)}});return t}function z(e){var t;return Object.assign(s.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function xe(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function St(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let zr="button";function Br(e,t){var n;let r=fn(),{disabled:o=r||!1,autoFocus:i=!1,...a}=e,{isFocusVisible:c,focusProps:l}=Or({autoFocus:i}),{isHovered:f,hoverProps:d}=Lr({isDisabled:o}),{pressed:m,pressProps:h}=Vr({disabled:o}),v=Yr({ref:t,type:(n=a.type)!=null?n:"button",disabled:o||void 0,autoFocus:i},l,d,h),b=s.useMemo(()=>({disabled:o,hover:f,focus:c,active:m,autofocus:i}),[o,f,c,m,i]);return R({ourProps:v,theirProps:a,slot:b,defaultTag:zr,name:"Button"})}let Kr=z(Br),qr="div";var st=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(st||{});function Rr(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return R({ourProps:i,theirProps:o,slot:{},defaultTag:qr,name:"Hidden"})}let kt=z(Rr),Gr=s.createContext(null);function Xr({children:e}){let t=s.useContext(Gr);if(!t)return s.createElement(s.Fragment,null,e);let{target:n}=t;return n?ge.createPortal(s.createElement(s.Fragment,null,e),n):null}let mn=Symbol();function Zr(e,t=!0){return Object.assign(e,{[mn]:t})}function ne(...e){let t=s.useRef(e);s.useEffect(()=>{t.current=e},[e]);let n=O(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[mn]))?void 0:n}let jt=s.createContext(null);jt.displayName="DescriptionContext";function hn(){let e=s.useContext(jt);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,hn),t}return e}function Jr(){let[e,t]=s.useState([]);return[e.length>0?e.join(" "):void 0,s.useMemo(()=>function(n){let r=O(i=>(t(a=>[...a,i]),()=>t(a=>{let c=a.slice(),l=c.indexOf(i);return l!==-1&&c.splice(l,1),c}))),o=s.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return s.createElement(jt.Provider,{value:o},n.children)},[t])]}let Qr="p";function eo(e,t){let n=s.useId(),r=fn(),{id:o=`headlessui-description-${n}`,...i}=e,a=hn(),c=ne(t);Y(()=>a.register(o),[o,a.register]);let l=r||!1,f=s.useMemo(()=>({...a.slot,disabled:l}),[a.slot,l]),d={ref:c,...a.props,id:o};return R({ourProps:d,theirProps:i,slot:f,defaultTag:Qr,name:a.name||"Description"})}let to=z(eo),no=Object.assign(to,{});var vn=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(vn||{});let ro=s.createContext(()=>{});function oo({value:e,children:t}){return s.createElement(ro.Provider,{value:e},t)}let so=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function gn(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let a=t[o].call(n,...i);a&&(n=a,r.forEach(c=>c()))}}}function bn(e){return s.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let io=new so(()=>gn(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Se(e,t){let n=io.get(t),r=s.useId(),o=bn(n);if(Y(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let i=o.indexOf(r),a=o.length;return i===-1&&(i=a,a+=1),i===a-1}let Pt=new Map,We=new Map;function yn(e){var t;let n=(t=We.get(e))!=null?t:0;return We.set(e,n+1),n!==0?()=>En(e):(Pt.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>En(e))}function En(e){var t;let n=(t=We.get(e))!=null?t:1;if(n===1?We.delete(e):We.set(e,n-1),n!==1)return;let r=Pt.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Pt.delete(e))}function ao(e,{allowed:t,disallowed:n}={}){let r=Se(e,"inert-others");Y(()=>{var o,i;if(!r)return;let a=de();for(let l of(o=n==null?void 0:n())!=null?o:[])l&&a.add(yn(l));let c=(i=t==null?void 0:t())!=null?i:[];for(let l of c){if(!l)continue;let f=et(l);if(!f)continue;let d=l.parentElement;for(;d&&d!==f.body;){for(let m of d.children)c.some(h=>m.contains(h))||a.add(yn(m));d=d.parentElement}}return a.dispose},[r,t,n])}function wn(e,t,n){let r=we(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});s.useEffect(()=>{if(!e)return;let o=t===null?null:t instanceof HTMLElement?t:t.current;if(!o)return;let i=de();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>r.current(o));a.observe(o),i.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>r.current(o));a.observe(o),i.add(()=>a.disconnect())}return()=>i.dispose()},[t,r,e])}let Mt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),lo=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var oe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(oe||{}),Lt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Lt||{}),uo=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(uo||{});function co(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Mt)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function fo(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(lo)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var xn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xn||{});function po(e,t=0){var n;return e===((n=et(e))==null?void 0:n.body)?!1:fe(t,{0(){return e.matches(Mt)},1(){let r=e;for(;r!==null;){if(r.matches(Mt))return!0;r=r.parentElement}return!1}})}var mo=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(mo||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function se(e){e==null||e.focus({preventScroll:!0})}let ho=["textarea","input"].join(",");function vo(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,ho))!=null?n:!1}function go(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let a=o.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ue(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?go(e):e:t&64?fo(e):co(e);o.length>0&&a.length>1&&(a=a.filter(v=>!o.some(b=>b!=null&&"current"in b?(b==null?void 0:b.current)===v:b===v))),r=r??i.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=t&32?{preventScroll:!0}:{},d=0,m=a.length,h;do{if(d>=m||d+m<=0)return 0;let v=l+d;if(t&16)v=(v+m)%m;else{if(v<0)return 3;if(v>=m)return 1}h=a[v],h==null||h.focus(f),d+=c}while(h!==i.activeElement);return t&6&&vo(h)&&h.select(),2}function $n(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function bo(){return/Android/gi.test(window.navigator.userAgent)}function yo(){return $n()||bo()}function Ye(e,t,n,r){let o=we(n);s.useEffect(()=>{if(!e)return;function i(a){o.current(a)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[e,t,r])}function Tn(e,t,n,r){let o=we(n);s.useEffect(()=>{if(!e)return;function i(a){o.current(a)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[e,t,r])}const Cn=30;function Eo(e,t,n){let r=Se(e,"outside-click"),o=we(n),i=s.useCallback(function(l,f){if(l.defaultPrevented)return;let d=f(l);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let m=function h(v){return typeof v=="function"?h(v()):Array.isArray(v)||v instanceof Set?v:[v]}(t);for(let h of m){if(h===null)continue;let v=h instanceof HTMLElement?h:h.current;if(v!=null&&v.contains(d)||l.composed&&l.composedPath().includes(v))return}return!po(d,xn.Loose)&&d.tabIndex!==-1&&l.preventDefault(),o.current(l,d)},[o]),a=s.useRef(null);Ye(r,"pointerdown",l=>{var f,d;a.current=((d=(f=l.composedPath)==null?void 0:f.call(l))==null?void 0:d[0])||l.target},!0),Ye(r,"mousedown",l=>{var f,d;a.current=((d=(f=l.composedPath)==null?void 0:f.call(l))==null?void 0:d[0])||l.target},!0),Ye(r,"click",l=>{yo()||a.current&&(i(l,()=>a.current),a.current=null)},!0);let c=s.useRef({x:0,y:0});Ye(r,"touchstart",l=>{c.current.x=l.touches[0].clientX,c.current.y=l.touches[0].clientY},!0),Ye(r,"touchend",l=>{let f={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(f.x-c.current.x)>=Cn||Math.abs(f.y-c.current.y)>=Cn))return i(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Tn(r,"blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ze(...e){return s.useMemo(()=>et(...e),[...e])}function _n(e,t,n,r){let o=we(n);s.useEffect(()=>{e=e??window;function i(a){o.current(a)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function wo(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function xo(){return $n()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let c=de();c.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>c.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,a=null;t.addEventListener(e,"click",c=>{if(c.target instanceof HTMLElement)try{let l=c.target.closest("a");if(!l)return;let{hash:f}=new URL(l.href),d=e.querySelector(f);d&&!r(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",c=>{if(c.target instanceof HTMLElement)if(r(c.target)){let l=c.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(c.target,"touchAction","none")}),t.addEventListener(e,"touchmove",c=>{if(c.target instanceof HTMLElement){if(c.target.tagName==="INPUT")return;if(r(c.target)){let l=c.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&c.preventDefault()}else c.preventDefault()}},{passive:!1}),t.add(()=>{var c;let l=(c=window.scrollY)!=null?c:window.pageYOffset;i!==l&&window.scrollTo(0,i),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function $o(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function To(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let $e=gn(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:de(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:To(n)},o=[xo(),wo(),$o()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});$e.subscribe(()=>{let e=$e.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&$e.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&$e.dispatch("TEARDOWN",n)}});function Co(e,t,n=()=>({containers:[]})){let r=bn($e),o=t?r.get(t):void 0,i=o?o.count>0:!1;return Y(()=>{if(!(!t||!e))return $e.dispatch("PUSH",t,n),()=>$e.dispatch("POP",t,n)},[e,t]),i}function _o(e,t,n=()=>[document.body]){let r=Se(e,"scroll-lock");Co(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function Fo(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function So(e=0){let[t,n]=s.useState(e),r=s.useCallback(l=>n(l),[t]),o=s.useCallback(l=>n(f=>f|l),[t]),i=s.useCallback(l=>(t&l)===l,[t]),a=s.useCallback(l=>n(f=>f&~l),[n]),c=s.useCallback(l=>n(f=>f^l),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:c}}var ko=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ko||{});function jo(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Po(e,t,n,r){let[o,i]=s.useState(n),{hasFlag:a,addFlag:c,removeFlag:l}=So(e&&o?3:0),f=s.useRef(!1),d=s.useRef(!1),m=nt();return Y(function h(){var v;if(!e)return;n&&i(!0);let b=t.current;return b?((v=r==null?void 0:r.start)==null||v.call(r,n),Mo(b,{inFlight:f,prepare(){d.current?d.current=!1:d.current=f.current,f.current=!0,!d.current&&(n?(c(3),l(4)):(c(4),l(2)))},run(){d.current?n?(l(3),c(4)):(l(4),c(3)):n?l(1):c(1)},done(){var y;d.current&&typeof b.getAnimations=="function"&&b.getAnimations().length>0||(f.current=!1,l(7),n||i(!1),(y=r==null?void 0:r.end)==null||y.call(r,n))}})):n?(c(3),m.nextFrame(()=>h())):void 0},[e,n,t,m]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Mo(e,{prepare:t,run:n,done:r,inFlight:o}){let i=de();return Oo(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{i.add(Lo(e,r)),n()}),i.dispose}function Lo(e,t){let n=Fo(t),r=de();if(!e)return r.dispose;let{transitionDuration:o,transitionDelay:i}=getComputedStyle(e),[a,c]=[o,i].map(f=>{let[d=0]=f.split(",").filter(Boolean).map(m=>m.includes("ms")?parseFloat(m):parseFloat(m)*1e3).sort((m,h)=>h-m);return d}),l=a+c;if(l!==0){let f=r.group(d=>{let m=d.setTimeout(()=>{n(),d.dispose()},l);d.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&(m(),d.addEventListener(e,"transitioncancel",v=>{v.target===v.currentTarget&&(n(),f())}))})});r.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(n(),r.dispose())})}else n();return r.dispose}function Oo(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function Ot(e,t){let n=s.useRef([]),r=O(e);s.useEffect(()=>{let o=[...n.current];for(let[i,a]of t.entries())if(n.current[i]!==a){let c=r(t,o);return n.current=t,c}},[r,...t])}let it=s.createContext(null);it.displayName="OpenClosedContext";var Q=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Q||{});function at(){return s.useContext(it)}function No({value:e,children:t}){return s.createElement(it.Provider,{value:e},t)}function Do({children:e}){return s.createElement(it.Provider,{value:null},e)}function Ao(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let me=[];Ao(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&me[0]!==t.target&&(me.unshift(t.target),me=me.filter(n=>n!=null&&n.isConnected),me.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Fn(e){let t=O(e),n=s.useRef(!1);s.useEffect(()=>(n.current=!1,()=>{n.current=!0,tt(()=>{n.current&&t()})}),[t])}function Io(){let e=typeof document>"u";return"useSyncExternalStore"in Le?(t=>t.useSyncExternalStore)(Le)(()=>()=>{},()=>!1,()=>!e):!1}function Be(){let e=Io(),[t,n]=Le.useState(Ee.isHandoffComplete);return t&&Ee.isHandoffComplete===!1&&n(!1),Le.useEffect(()=>{t!==!0&&n(!0)},[t]),Le.useEffect(()=>Ee.handoff(),[]),e?!1:t}let Sn=s.createContext(!1);function Ho(){return s.useContext(Sn)}function kn(e){return s.createElement(Sn.Provider,{value:e.force},e.children)}function Vo(e){let t=Ho(),n=s.useContext(Pn),r=ze(e),[o,i]=s.useState(()=>{var a;if(!t&&n!==null)return(a=n.current)!=null?a:null;if(Ee.isServer)return null;let c=r==null?void 0:r.getElementById("headlessui-portal-root");if(c)return c;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return s.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),s.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let jn=s.Fragment,Wo=z(function(e,t){let n=e,r=s.useRef(null),o=ne(Zr(d=>{r.current=d}),t),i=ze(r),a=Vo(r),[c]=s.useState(()=>{var d;return Ee.isServer?null:(d=i==null?void 0:i.createElement("div"))!=null?d:null}),l=s.useContext(Nt),f=Be();return Y(()=>{!a||!c||a.contains(c)||(c.setAttribute("data-headlessui-portal",""),a.appendChild(c))},[a,c]),Y(()=>{if(c&&l)return l.register(c)},[l,c]),Fn(()=>{var d;!a||!c||(c instanceof Node&&a.contains(c)&&a.removeChild(c),a.childNodes.length<=0&&((d=a.parentElement)==null||d.removeChild(a)))}),f?!a||!c?null:ge.createPortal(R({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:jn,name:"Portal"}),c):null});function Uo(e,t){let n=ne(t),{enabled:r=!0,...o}=e;return r?s.createElement(Wo,{...o,ref:n}):R({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:jn,name:"Portal"})}let Yo=s.Fragment,Pn=s.createContext(null);function zo(e,t){let{target:n,...r}=e,o={ref:ne(t)};return s.createElement(Pn.Provider,{value:n},R({ourProps:o,theirProps:r,defaultTag:Yo,name:"Popover.Group"}))}let Nt=s.createContext(null);function Bo(){let e=s.useContext(Nt),t=s.useRef([]),n=O(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=O(i=>{let a=t.current.indexOf(i);a!==-1&&t.current.splice(a,1),e&&e.unregister(i)}),o=s.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,s.useMemo(()=>function({children:i}){return s.createElement(Nt.Provider,{value:o},i)},[o])]}let Ko=z(Uo),Mn=z(zo),qo=Object.assign(Ko,{Group:Mn});function Ro(e,t=typeof document<"u"?document.defaultView:null,n){let r=Se(e,"escape");_n(t,"keydown",o=>{r&&(o.defaultPrevented||o.key===vn.Escape&&n(o))})}function Go(){var e;let[t]=s.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=s.useState((e=t==null?void 0:t.matches)!=null?e:!1);return Y(()=>{if(!t)return;function o(i){r(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function Xo({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=s.useRef((r=n==null?void 0:n.current)!=null?r:null),i=ze(o),a=O(()=>{var c,l,f;let d=[];for(let m of e)m!==null&&(m instanceof HTMLElement?d.push(m):"current"in m&&m.current instanceof HTMLElement&&d.push(m.current));if(t!=null&&t.current)for(let m of t.current)d.push(m);for(let m of(c=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?c:[])m!==document.body&&m!==document.head&&m instanceof HTMLElement&&m.id!=="headlessui-portal-root"&&(m.contains(o.current)||m.contains((f=(l=o.current)==null?void 0:l.getRootNode())==null?void 0:f.host)||d.some(h=>m.contains(h))||d.push(m));return d});return{resolveContainers:a,contains:O(c=>a().some(l=>l.contains(c))),mainTreeNodeRef:o,MainTreeNode:s.useMemo(()=>function(){return n!=null?null:s.createElement(kt,{features:st.Hidden,ref:o})},[o,n])}}function Dt(){let e=s.useRef(!1);return Y(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Ke=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ke||{});function Zo(){let e=s.useRef(0);return Tn(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Ln(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let Jo="div";var Te=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Te||{});function Qo(e,t){let n=s.useRef(null),r=ne(n,t),{initialFocus:o,initialFocusFallback:i,containers:a,features:c=15,...l}=e;Be()||(c=0);let f=ze(n);rs(c,{ownerDocument:f});let d=os(c,{ownerDocument:f,container:n,initialFocus:o,initialFocusFallback:i});ss(c,{ownerDocument:f,container:n,containers:a,previousActiveElement:d});let m=Zo(),h=O(E=>{let $=n.current;$&&(F=>F())(()=>{fe(m.current,{[Ke.Forwards]:()=>{Ue($,oe.First,{skipElements:[E.relatedTarget,i]})},[Ke.Backwards]:()=>{Ue($,oe.Last,{skipElements:[E.relatedTarget,i]})}})})}),v=Se(!!(c&2),"focus-trap#tab-lock"),b=nt(),y=s.useRef(!1),w={ref:r,onKeyDown(E){E.key=="Tab"&&(y.current=!0,b.requestAnimationFrame(()=>{y.current=!1}))},onBlur(E){if(!(c&4))return;let $=Ln(a);n.current instanceof HTMLElement&&$.add(n.current);let F=E.relatedTarget;F instanceof HTMLElement&&F.dataset.headlessuiFocusGuard!=="true"&&(On($,F)||(y.current?Ue(n.current,fe(m.current,{[Ke.Forwards]:()=>oe.Next,[Ke.Backwards]:()=>oe.Previous})|oe.WrapAround,{relativeTo:E.target}):E.target instanceof HTMLElement&&se(E.target)))}};return s.createElement(s.Fragment,null,v&&s.createElement(kt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:st.Focusable}),R({ourProps:w,theirProps:l,defaultTag:Jo,name:"FocusTrap"}),v&&s.createElement(kt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:st.Focusable}))}let es=z(Qo),ts=Object.assign(es,{features:Te});function ns(e=!0){let t=s.useRef(me.slice());return Ot(([n],[r])=>{r===!0&&n===!1&&tt(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=me.slice())},[e,me,t]),O(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function rs(e,{ownerDocument:t}){let n=!!(e&8),r=ns(n);Ot(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&se(r())},[n]),Fn(()=>{n&&se(r())})}function os(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=s.useRef(null),a=Se(!!(e&1),"focus-trap#initial-focus"),c=Dt();return Ot(()=>{if(e===0)return;if(!a){o!=null&&o.current&&se(o.current);return}let l=n.current;l&&tt(()=>{if(!c.current)return;let f=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===f){i.current=f;return}}else if(l.contains(f)){i.current=f;return}if(r!=null&&r.current)se(r.current);else{if(e&16){if(Ue(l,oe.First|oe.AutoFocus)!==Lt.Error)return}else if(Ue(l,oe.First)!==Lt.Error)return;if(o!=null&&o.current&&(se(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t==null?void 0:t.activeElement})},[o,a,e]),i}function ss(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=Dt(),a=!!(e&4);_n(t==null?void 0:t.defaultView,"focus",c=>{if(!a||!i.current)return;let l=Ln(r);n.current instanceof HTMLElement&&l.add(n.current);let f=o.current;if(!f)return;let d=c.target;d&&d instanceof HTMLElement?On(l,d)?(o.current=d,se(d)):(c.preventDefault(),c.stopPropagation(),se(f)):se(o.current)},!0)}function On(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Nn(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:An)!==s.Fragment||s.Children.count(e.children)===1}let lt=s.createContext(null);lt.displayName="TransitionContext";var is=(e=>(e.Visible="visible",e.Hidden="hidden",e))(is||{});function as(){let e=s.useContext(lt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function ls(){let e=s.useContext(ut);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ut=s.createContext(null);ut.displayName="NestingContext";function ct(e){return"children"in e?ct(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Dn(e,t){let n=we(e),r=s.useRef([]),o=Dt(),i=nt(),a=O((v,b=pe.Hidden)=>{let y=r.current.findIndex(({el:w})=>w===v);y!==-1&&(fe(b,{[pe.Unmount](){r.current.splice(y,1)},[pe.Hidden](){r.current[y].state="hidden"}}),i.microTask(()=>{var w;!ct(r)&&o.current&&((w=n.current)==null||w.call(n))}))}),c=O(v=>{let b=r.current.find(({el:y})=>y===v);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:v,state:"visible"}),()=>a(v,pe.Unmount)}),l=s.useRef([]),f=s.useRef(Promise.resolve()),d=s.useRef({enter:[],leave:[]}),m=O((v,b,y)=>{l.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([w])=>w!==v)),t==null||t.chains.current[b].push([v,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[b].push([v,new Promise(w=>{Promise.all(d.current[b].map(([E,$])=>$)).then(()=>w())})]),b==="enter"?f.current=f.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),h=O((v,b,y)=>{Promise.all(d.current[b].splice(0).map(([w,E])=>E)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>y(b))});return s.useMemo(()=>({children:r,register:c,unregister:a,onStart:m,onStop:h,wait:f,chains:d}),[c,a,r,m,h,d,f])}let An=s.Fragment,In=rt.RenderStrategy;function us(e,t){var n,r;let{transition:o=!0,beforeEnter:i,afterEnter:a,beforeLeave:c,afterLeave:l,enter:f,enterFrom:d,enterTo:m,entered:h,leave:v,leaveFrom:b,leaveTo:y,...w}=e,E=s.useRef(null),$=Nn(e),F=ne(...$?[E,t]:t===null?[]:[t]),C=(n=w.unmount)==null||n?pe.Unmount:pe.Hidden,{show:T,appear:P,initial:N}=as(),[D,M]=s.useState(T?"visible":"hidden"),W=ls(),{register:G,unregister:X}=W;Y(()=>G(E),[G,E]),Y(()=>{if(C===pe.Hidden&&E.current){if(T&&D!=="visible"){M("visible");return}return fe(D,{hidden:()=>X(E),visible:()=>G(E)})}},[D,E,G,X,T,C]);let U=Be();Y(()=>{if($&&U&&D==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,D,U,$]);let ee=N&&!P,re=P&&T&&N,le=s.useRef(!1),ue=Dn(()=>{le.current||(M("hidden"),X(E))},W),_e=O(Re=>{le.current=!0;let je=Re?"enter":"leave";ue.onStart(E,je,ce=>{ce==="enter"?i==null||i():ce==="leave"&&(c==null||c())})}),te=O(Re=>{let je=Re?"enter":"leave";le.current=!1,ue.onStop(E,je,ce=>{ce==="enter"?a==null||a():ce==="leave"&&(l==null||l())}),je==="leave"&&!ct(ue)&&(M("hidden"),X(E))});s.useEffect(()=>{$&&o||(_e(T),te(T))},[T,$,o]);let H=!(!o||!$||!U||ee),[,A]=Po(H,E,T,{start:_e,end:te}),mt=xe({ref:F,className:((r=Ft(w.className,re&&f,re&&d,A.enter&&f,A.enter&&A.closed&&d,A.enter&&!A.closed&&m,A.leave&&v,A.leave&&!A.closed&&b,A.leave&&A.closed&&y,!A.transition&&T&&h))==null?void 0:r.trim())||void 0,...jo(A)}),ve=0;return D==="visible"&&(ve|=Q.Open),D==="hidden"&&(ve|=Q.Closed),A.enter&&(ve|=Q.Opening),A.leave&&(ve|=Q.Closing),s.createElement(ut.Provider,{value:ue},s.createElement(No,{value:ve},R({ourProps:mt,theirProps:w,defaultTag:An,features:In,visible:D==="visible",name:"Transition.Child"})))}function cs(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=s.useRef(null),c=Nn(e),l=ne(...c?[a,t]:t===null?[]:[t]);Be();let f=at();if(n===void 0&&f!==null&&(n=(f&Q.Open)===Q.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,m]=s.useState(n?"visible":"hidden"),h=Dn(()=>{n||m("hidden")}),[v,b]=s.useState(!0),y=s.useRef([n]);Y(()=>{v!==!1&&y.current[y.current.length-1]!==n&&(y.current.push(n),b(!1))},[y,n]);let w=s.useMemo(()=>({show:n,appear:r,initial:v}),[n,r,v]);wn(n,a,()=>m("hidden")),Y(()=>{n?m("visible"):!ct(h)&&a.current!==null&&m("hidden")},[n,h]);let E={unmount:o},$=O(()=>{var C;v&&b(!1),(C=e.beforeEnter)==null||C.call(e)}),F=O(()=>{var C;v&&b(!1),(C=e.beforeLeave)==null||C.call(e)});return s.createElement(ut.Provider,{value:h},s.createElement(lt.Provider,{value:w},R({ourProps:{...E,as:s.Fragment,children:s.createElement(Hn,{ref:l,...E,...i,beforeEnter:$,beforeLeave:F})},theirProps:{},defaultTag:s.Fragment,features:In,visible:d==="visible",name:"Transition"})))}function ds(e,t){let n=s.useContext(lt)!==null,r=at()!==null;return s.createElement(s.Fragment,null,!n&&r?s.createElement(At,{ref:t,...e}):s.createElement(Hn,{ref:t,...e}))}let At=z(cs),Hn=z(us),It=z(ds),ie=Object.assign(At,{Child:It,Root:At});var fs=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fs||{}),ps=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(ps||{});let ms={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Ht=s.createContext(null);Ht.displayName="DialogContext";function dt(e){let t=s.useContext(Ht);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,dt),n}return t}function hs(e,t){return fe(t.type,ms,e,t)}let Vn=z(function(e,t){let n=s.useId(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:a,role:c="dialog",autoFocus:l=!0,__demoMode:f=!1,...d}=e,m=s.useRef(!1);c=function(){return c==="dialog"||c==="alertdialog"?c:(m.current||(m.current=!0,console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let h=at();o===void 0&&h!==null&&(o=(h&Q.Open)===Q.Open);let v=s.useRef(null),b=ne(v,t),y=ze(v),w=o?0:1,[E,$]=s.useReducer(hs,{titleId:null,descriptionId:null,panelRef:s.createRef()}),F=O(()=>i(!1)),C=O(H=>$({type:0,id:H})),T=Be()?w===0:!1,[P,N]=Bo(),D={get current(){var H;return(H=E.panelRef.current)!=null?H:v.current}},{resolveContainers:M,mainTreeNodeRef:W,MainTreeNode:G}=Xo({portals:P,defaultContainers:[D]}),X=h!==null?(h&Q.Closing)===Q.Closing:!1;ao(f||X?!1:T,{allowed:O(()=>{var H,A;return[(A=(H=v.current)==null?void 0:H.closest("[data-headlessui-portal]"))!=null?A:null]}),disallowed:O(()=>{var H,A;return[(A=(H=W.current)==null?void 0:H.closest("body > *:not(#headlessui-portal-root)"))!=null?A:null]})}),Eo(T,M,H=>{H.preventDefault(),F()}),Ro(T,y==null?void 0:y.defaultView,H=>{H.preventDefault(),H.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),F()}),_o(f||X?!1:T,y,M),wn(T,v,F);let[U,ee]=Jr(),re=s.useMemo(()=>[{dialogState:w,close:F,setTitleId:C},E],[w,E,F,C]),le=s.useMemo(()=>({open:w===0}),[w]),ue={ref:b,id:r,role:c,tabIndex:-1,"aria-modal":f?void 0:w===0?!0:void 0,"aria-labelledby":E.titleId,"aria-describedby":U},_e=!Go(),te=Te.None;return T&&!f&&(te|=Te.RestoreFocus,te|=Te.TabLock,l&&(te|=Te.AutoFocus),_e&&(te|=Te.InitialFocus)),s.createElement(Do,null,s.createElement(kn,{force:!0},s.createElement(qo,null,s.createElement(Ht.Provider,{value:re},s.createElement(Mn,{target:v},s.createElement(kn,{force:!1},s.createElement(ee,{slot:le},s.createElement(N,null,s.createElement(ts,{initialFocus:a,initialFocusFallback:v,containers:M,features:te},s.createElement(oo,{value:F},R({ourProps:ue,theirProps:d,slot:le,defaultTag:vs,features:gs,visible:w===0,name:"Dialog"})))))))))),s.createElement(Xr,null,s.createElement(G,null)))}),vs="div",gs=rt.RenderStrategy|rt.Static;function bs(e,t){let{transition:n=!1,open:r,...o}=e,i=at(),a=e.hasOwnProperty("open")||i!==null,c=e.hasOwnProperty("onClose");if(!a&&!c)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!c)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!o.static?s.createElement(ie,{show:r,transition:n,unmount:o.unmount},s.createElement(Vn,{ref:t,...o})):s.createElement(Vn,{ref:t,open:r,...o})}let ys="div";function Es(e,t){let n=s.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:a},c]=dt("Dialog.Panel"),l=ne(t,c.panelRef),f=s.useMemo(()=>({open:a===0}),[a]),d=O(m=>{m.stopPropagation()});return s.createElement(o?It:s.Fragment,null,R({ourProps:{ref:l,id:r,onClick:d},theirProps:i,slot:f,defaultTag:ys,name:"Dialog.Panel"}))}let ws="div";function xs(e,t){let{transition:n=!1,...r}=e,[{dialogState:o}]=dt("Dialog.Backdrop"),i=s.useMemo(()=>({open:o===0}),[o]);return s.createElement(n?It:s.Fragment,null,R({ourProps:{ref:t,"aria-hidden":!0},theirProps:r,slot:i,defaultTag:ws,name:"Dialog.Backdrop"}))}let $s="h2";function Ts(e,t){let n=s.useId(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:a}]=dt("Dialog.Title"),c=ne(t);s.useEffect(()=>(a(r),()=>a(null)),[r,a]);let l=s.useMemo(()=>({open:i===0}),[i]);return R({ourProps:{ref:c,id:r},theirProps:o,slot:l,defaultTag:$s,name:"Dialog.Title"})}let Cs=z(bs),Wn=z(Es);z(xs);let _s=z(Ts),Fs=Object.assign(Cs,{Panel:Wn,Title:_s,Description:no});const ft={root:"_root_13n5b_1",modal:"_modal_13n5b_9",container:"_container_13n5b_12",page:"_page_13n5b_15",close:"_close_13n5b_18"},ae=e=>{const{children:t,size:n="md",fill:r="currentColor",stroke:o,strokeWidth:i,className:a="",viewBox:c="0 0 20 20"}=e,l=s.useMemo(()=>{switch(n){case"sm":return"w-4 h-4";case"lg":return"w-7 h-7";case"xl":return"w-10 h-10";case"custom":return"";default:return"w-5 h-5"}},[n]);return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:c,fill:r,stroke:o,strokeWidth:i,className:`${l} ${a}`,children:t})},Ss=()=>p.jsx(ae,{children:p.jsx("path",{d:"M10 2a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 2zM10 15a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 15zM10 7a3 3 0 100 6 3 3 0 000-6zM15.657 5.404a.75.75 0 10-1.06-1.06l-1.061 1.06a.75.75 0 001.06 1.06l1.06-1.06zM6.464 14.596a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 001.06 1.06l1.06-1.06zM18 10a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 0118 10zM5 10a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 015 10zM14.596 15.657a.75.75 0 001.06-1.06l-1.06-1.061a.75.75 0 10-1.06 1.06l1.06 1.06zM5.404 6.464a.75.75 0 001.06-1.06l-1.06-1.06a.75.75 0 10-1.061 1.06l1.06 1.06z"})}),Un=e=>p.jsx(ae,{...e,children:p.jsx("path",{fillRule:"evenodd",d:"M7.455 2.004a.75.75 0 01.26.77 7 7 0 009.958 7.967.75.75 0 011.067.853A8.5 8.5 0 116.647 1.921a.75.75 0 01.808.083z",clipRule:"evenodd"})}),ks=e=>p.jsxs(ae,{...e,viewBox:"0 0 24 24",children:[p.jsx("path",{d:"M0 0h24v24H0V0z",fill:"none"}),p.jsx("path",{d:"M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"})]}),js=e=>p.jsxs(ae,{...e,viewBox:"0 0 24 24",children:[p.jsx("path",{d:"M0 0h24v24H0V0z",fill:"none"}),p.jsx("path",{d:"M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"})]}),Ps=e=>p.jsxs(ae,{...e,viewBox:"0 0 24 24",children:[p.jsx("path",{d:"M0 0h24v24H0V0z",fill:"none"}),p.jsx("path",{d:"M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"})]}),Ms=e=>p.jsxs(ae,{...e,children:[p.jsx("path",{d:"M0 0h24v24H0V0z",fill:"none"}),p.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm6 5H6v-.99c.2-.72 3.3-2.01 6-2.01s5.8 1.29 6 2v1z"})]}),Ls=e=>p.jsx(ae,{...e,children:p.jsx("path",{d:"M18,10l-1.77-2.03l0.25-2.69l-2.63-0.6l-1.37-2.32L10,3.43L7.53,2.36L6.15,4.68L3.53,5.28l0.25,2.69L2,10l1.77,2.03 l-0.25,2.69l2.63,0.6l1.37,2.32L10,16.56l2.47,1.07l1.37-2.32l2.63-0.6l-0.25-2.69L18,10z M13.18,8.47l-4.24,4.24 c-0.2,0.2-0.51,0.2-0.71,0L6.82,11.3c-0.2-0.2-0.2-0.51,0-0.71s0.51-0.2,0.71,0l1.06,1.06l3.89-3.89c0.2-0.2,0.51-0.2,0.71,0 S13.38,8.28,13.18,8.47z"})}),Os=e=>p.jsx(ae,{...e,children:p.jsx("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})}),Ns=e=>p.jsxs(ae,{...e,viewBox:"0 0 99 32",children:[p.jsxs("g",{clipPath:"url(#clip0_9581_165880)",children:[p.jsx("path",{d:"M98.9474 20.7006V2.701C98.9474 1.20997 97.7302 0 96.2304 0H87.4325H2.71699C1.21714 0 0 1.20997 0 2.701V29.299C0 30.79 1.21714 32 2.71699 32H86.6203C87.2911 32 87.938 31.7523 88.4388 31.3069L98.0489 22.7084C98.6191 22.1964 98.9474 21.4651 98.9474 20.7006Z",fill:"#46B2C8"}),p.jsx("path",{d:"M24.3666 25.2683H20.593C19.3951 25.2683 18.4199 24.2989 18.4199 23.108V8.8908C18.4199 7.69988 19.3951 6.73047 20.593 6.73047H24.3642C25.5622 6.73047 26.5374 7.69988 26.5374 8.8908V23.1056C26.5398 24.2989 25.5646 25.2683 24.3666 25.2683ZM20.593 8.52161C20.3894 8.52161 20.2217 8.68596 20.2217 8.8908V23.1056C20.2217 23.3081 20.387 23.4748 20.593 23.4748H24.3642C24.5679 23.4748 24.7356 23.3104 24.7356 23.1056V8.8908C24.7356 8.68834 24.5703 8.52161 24.3642 8.52161H20.593Z",fill:"#C7E8EF"}),p.jsx("path",{d:"M68.9385 6.74805H67.1367V25.2549H68.9385V6.74805Z",fill:"white"}),p.jsx("path",{d:"M55.0725 8.52161V6.73047H47.8535V25.2683H55.0725V23.4748H49.6577V18.9874H52.9664V17.1963H49.6577V8.52161H55.0725Z",fill:"white"}),p.jsx("path",{d:"M46.528 6.73828L44.4795 23.4993C44.283 24.5354 43.4061 25.2595 42.3447 25.2595C41.2833 25.2595 40.404 24.5354 40.2099 23.4993L40.2003 23.4421L38.1758 6.73828H39.9919L41.9853 23.1896C42.0404 23.4183 42.2081 23.4683 42.3447 23.4683C42.4789 23.4683 42.649 23.4183 42.7041 23.1896L44.7119 6.73828H46.528Z",fill:"white"}),p.jsx("path",{d:"M36.9104 6.73047V23.1056C36.9104 24.2965 35.9353 25.2659 34.7373 25.2659H30.9685C29.7681 25.2659 28.793 24.2965 28.793 23.1056V6.73047H30.5947V23.1056C30.5947 23.3104 30.7624 23.4748 30.9685 23.4748H34.7373C34.9433 23.4748 35.1087 23.3081 35.1087 23.1056V6.73047H36.9104Z",fill:"#C7E8EF"}),p.jsx("path",{d:"M78.6291 8.53181V6.73828H71.4102V25.2618H73.2143V18.9976H76.5231V17.2065H73.2143V8.53181H78.6291Z",fill:"white"}),p.jsx("path",{d:"M15.8797 6.73047L13.3089 14.9764L10.9034 6.73047H9.02734L12.3793 18.2157V25.2516H14.181V18.2324L17.7653 6.73047H15.8797Z",fill:"#C7E8EF"}),p.jsx("path",{d:"M85.7767 6.73047L83.2058 14.9764L80.7979 6.73047H78.9219L82.2738 18.2157V25.2516H84.0755V18.2324L87.6623 6.73047H85.7767Z",fill:"white"}),p.jsx("path",{d:"M61.2349 18.4801C63.4535 17.5226 65.0085 15.3241 65.0085 12.7732V8.8908C65.0085 7.69988 64.0357 6.73047 62.8354 6.73047H59.0618C57.8638 6.73047 56.8887 7.69988 56.8887 8.8908V18.0918V18.9874V25.2493H58.6904V18.9898H58.7527C58.9659 18.9898 59.1768 18.9779 59.3828 18.9588L63.6093 25.254H65.78L61.2349 18.4801ZM58.6928 17.1986V8.89318C58.6928 8.68834 58.8581 8.52399 59.0618 8.52399H62.8354C63.039 8.52399 63.2044 8.69072 63.2044 8.89318V12.7756C63.2044 15.2146 61.2085 17.1986 58.7551 17.1986H58.6928Z",fill:"white"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_9581_165880",children:p.jsx("rect",{width:"98.9474",height:"32",fill:"white"})})})]});class Vt{static async loadDetector(){try{return await faceLandmarksDetection.createDetector("MediaPipeFaceMesh",{runtime:"mediapipe",refineLandmarks:!0,solutionPath:"https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh"})}catch(t){return Promise.reject(t)}}static async detectFaces(t,n){try{return await t.estimateFaces(n)}catch(r){return Promise.reject(r)}}}const Ds=(e,t)=>{let n;return typeof OffscreenCanvas<"u"?n=new OffscreenCanvas(e,t):(n=document.createElement("canvas"),n.width=e,n.height=t),n},Yn=(e,t,n,r)=>{let o=0,i=0,a=t,c=n;const f=Ds(t,n).getContext("2d");return f.drawImage(e,0,0),f.getImageData(o,i,a,c)},As=e=>new Promise(t=>{const n=document.createElement("canvas");n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n.toBlob(o=>t(o))});function Is(){if(MediaRecorder.isTypeSupported("video/webm; codecs=vp9"))return{mimeType:"video/webm; codecs=vp9"};if(MediaRecorder.isTypeSupported("video/webm"))return{mimeType:"video/webm"};if(MediaRecorder.isTypeSupported("video/mp4"))return{mimeType:"video/mp4"}}function zn(e={}){const{onRecord:t=()=>{},onStop:n=()=>{}}=e,r=s.useRef([]),o=s.useRef(null),i=s.useRef(null),a=s.useCallback(m=>{r.current.push(m)},[]),c=s.useCallback(async m=>{if(o.current)return;const h=await As(m);o.current=h},[]),l=s.useCallback(m=>{m.data.size>0&&t(m.data)},[]),f=s.useCallback(()=>{!i.current||i.current.state==="inactive"||(i.current.stop(),i.current.stream.getTracks().forEach(m=>m.stop()),n())},[]),d=s.useCallback(m=>{i.current||(i.current=new MediaRecorder(m,Is()),i.current.ondataavailable=l,i.current.onstop=f,i.current.start(1e3))},[]);return{saveStream:a,savePhoto:c,start:d,stop:f,savedStreams:r,savedPhoto:o}}function ke(e,t){return Math.sqrt(e**2+t**2)}function Hs(e){const t=e.slice();for(let n=t.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t}function Vs(e,t){return new Promise((n,r)=>{const o=new File([e],`${Date.now()}`,{type:t}),i=new FileReader;i.readAsDataURL(o),i.onload=()=>n(i.result),i.onerror=a=>r(a)})}const Ws="https://identity.dev.svc.youverify.co";function Us(){return{postData:async t=>{const{faceImage:n,publicKey:r,passed:o,metadata:i}=t,a=await fetch(`${Ws}/v1/sdk/identity/liveness/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publicMerchantID:r,components:["liveness"],faceImage:n,passed:o,metadata:i})});if(!a.ok)throw a;return await a.json()}}}const Ys=360,zs="#125766",Bs="https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg",Bn={"complete-the-circle":{Icon:ks,name:"Complete The Circle ⭕️",description:"First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"},"yes-or-no":{Icon:js,name:"Yes or No ❓",description:"First position your face in the camera. Then tilt your head to the left to answer No and to the right to answer Yes"},motions:{Icon:Ps,name:"Motions 💫",description:"First position your face in the camera frame, then follow the instructions"},"facial-expressions":{Icon:Un,name:"Facial Expressions 🤪",description:"First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"}},Kn=s.createContext({tasks:[],namespace:"",user:void 0,currentTaskIndex:0,completedCount:0,nextTask:()=>{},completed:!1,onRequestClose:()=>{},faceDetector:null,saveStream:()=>{},savePhoto:()=>{},onComplete:()=>Promise.resolve()});let qn,Rn=!1;function Ks(e){const{publicKey:t,tasks:n,children:r,namespace:o,user:i,branding:a,onRequestClose:c,onSuccess:l=()=>{},metadata:f}=e,[d,m]=s.useState(0),[h,v]=s.useState(0),[b,y]=s.useState(null),{saveStream:w,savePhoto:E,savedPhoto:$}=zn(),{postData:F}=Us(),C=s.useMemo(()=>h===n.length,[n,h]),T=()=>{v(M=>M+1),m(M=>M+1)},P=M=>{const W=new Image;W.crossOrigin="Anonymous",W.src=Bs,W.onload=()=>{const G=Yn(W,W.width,W.height);Vt.detectFaces(M,G)}},N=async()=>{const M=await F({faceImage:$.current?await Vs($.current,"image/png"):null,publicKey:t,passed:!0,metadata:f});l(M),c()},D=async()=>{const M=await Vt.loadDetector();qn=M,P(M),y(M)};return s.useEffect(()=>{if(Rn){y(qn);return}D(),Rn=!0},[]),p.jsx(Kn.Provider,{value:{tasks:n,namespace:o,user:i,currentTaskIndex:d,completed:C,completedCount:h,nextTask:T,branding:a,onRequestClose:c,faceDetector:b,saveStream:w,savePhoto:E,onComplete:N},children:r})}function Ce(){return s.useContext(Kn)}const K={root:"_root_dndkf_1",container:"_container_dndkf_4",lhs:"_lhs_dndkf_7",info:"_info_dndkf_11",active:"_active_dndkf_32",completed:"_completed_dndkf_39",rhs:"_rhs_dndkf_62",profile:"_profile_dndkf_65",avatar:"_avatar_dndkf_68",main:"_main_dndkf_81",content:"_content_dndkf_84"},Wt={root:"_root_135td_1",container:"_container_135td_1",brand:"_brand_135td_1"};function qs(){const{branding:e}=Ce();return p.jsx("div",{className:Wt.root,children:p.jsx("div",{className:Wt.container,children:p.jsx("div",{className:Wt.brand,children:(e==null?void 0:e.logo)&&p.jsx("img",{className:"h-10",src:e.logo,alt:"Logo"})})})})}const Gn="colorScheme";function Rs(){const{namespace:e}=Ce(),t=()=>{const o=localStorage.getItem(Gn);return!o&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":o},n=(o=null)=>{o&&localStorage.setItem(Gn,o);const i=`${e}-color-scheme`,a=document.documentElement;o&&o==="dark"?a==null||a.setAttribute(i,"dark"):a==null||a.removeAttribute(i)};return{setColorScheme:n,toggleColorScheme:()=>{const o=t();return n(o==="dark"?"light":"dark")},getColorScheme:t}}const Gs={root:"_root_1w5nq_1"};function Ut(e){const{children:t,onStream:n=()=>{},onRecord:r=()=>{}}=e,o=s.useRef(null),i=s.useRef(0),a=s.useRef(null),{start:c,stop:l}=zn({onRecord:r}),f=async()=>{try{const h=await navigator.mediaDevices.getUserMedia({video:{aspectRatio:{exact:1.1111111111111112}}});a.current=h,c(h),o.current&&(o.current.srcObject=h)}catch{}},d=()=>{a.current&&(a.current.getTracks().forEach(h=>h.stop()),a.current=null,l(),o.current&&(o.current.srcObject=null))},m=()=>{n(o),i.current=requestAnimationFrame(m)};return s.useEffect(()=>{const h=o.current;if(!h)return;const v=()=>{i.current=requestAnimationFrame(m)};return f(),h.addEventListener("canplay",v),()=>{h.removeEventListener("canplay",v),cancelAnimationFrame(i.current),d()}},[]),p.jsxs("div",{className:Gs.root,children:[p.jsx("video",{ref:o,autoPlay:!0,loop:!0,playsInline:!0}),t]})}const qe={container:"_container_1ap2u_1",focused:"_focused_1ap2u_12",progress:"_progress_1ap2u_15",completed:"_completed_1ap2u_36",marker:"_marker_1ap2u_40"},Xn=360,Xs=50;function Zs(e){const{visitedSections:t,sectionsCount:n,faceDetected:r,divisions:o=Xs}=e,i=s.useMemo(()=>{const a=[qe.container];return r&&a.push(qe.focused),a.join(" ")},[r]);return p.jsxs("div",{className:i,children:[p.jsx(ie,{as:"div",show:r,leave:"transition linear duration-300",leaveFrom:"scale-100 opacity-100",leaveTo:"scale-125 opacity-0",enter:"transition linear duration-300",enterFrom:"scale-125 opacity-0",enterTo:"scale-100 opacity-100",className:"absolute",children:p.jsx("div",{className:qe.progress,children:Array.from(Array(o).keys()).map(a=>{const c=a*Xn/o,l=Math.ceil((c+1)*n/Xn),f=t.includes(l),d=f?a-(l-1)*(o/n):0,m=[];f&&m.push(qe.completed);const h=f?"translateX(158px)":"translateX(150px)";return p.jsx("div",{className:m.join(" "),style:{transform:`rotate(${c}deg) ${h}`,transitionDelay:`${d*20}ms`}},`key-${a}`)})})}),p.jsx(ie,{as:"div",show:!r,leave:"transition linear duration-200",leaveFrom:"scale-100 opacity-100",leaveTo:"scale-75 opacity-0",enter:"transition linear duration-200",enterFrom:"scale-75 opacity-0",enterTo:"scale-100 opacity-100",className:"absolute",children:p.jsxs("div",{className:qe.marker,children:[p.jsx("div",{}),p.jsx("div",{}),p.jsx("div",{}),p.jsx("div",{})]})})]})}function Js(){return{checkZoomLevel:(r,o)=>{const{box:i}=r,{width:a,height:c}=i,l=a*c,f=o**2,d=l/f;if(d>.9)throw new Error("Move face farther from camera");if(d<.05)throw new Error("Move face closer to camera")},checkFacialFeatures:(r,o)=>{},checkInFrame:(r,o)=>{const{offsetX:i,offsetY:a}=o,{box:c}=r;if(!(c.xMin-i>=o.x&&c.yMin-a>=o.y&&c.xMax-i<=o.x+o.width&&c.yMax-a<=o.y+o.height))throw new Error("Position head in frame")}}}function Yt(e={}){const{validations:t=["zoom"],frameSize:n,onFace:r=()=>{},onError:o=()=>{}}=e,{faceDetector:i}=Ce(),{checkFacialFeatures:a,checkZoomLevel:c,checkInFrame:l}=Js(),f=s.useRef(null),d=(h,v)=>{var b;try{if(h.length===0)throw new Error("Detecting face...");if(h.length>1)throw new Error("A maximum of 1 face is allowed");const y=f.current,w=(b=f.current)==null?void 0:b.parentElement;if(!y||!w)return;const E=h[0];for(const $ of t)switch($){case"zoom":c(E,Math.min(w.clientHeight,w.clientWidth));break;case"features":a(E,Math.min(w.clientHeight,w.clientWidth));break;case"in-frame":if(!n)throw new Error("Frame size is required to check if face is in frame");const F=n+200;l(E,{x:(w.clientWidth-F)/2,y:(w.clientHeight-F)/2,width:F,height:F,offsetX:(y.videoWidth-w.clientWidth)/2,offsetY:(y.videoHeight-w.clientHeight)/2});break;default:break}r(E,v)}catch(y){const{message:w}=y;o(w)}};return{detectFaces:async h=>{if(!i)return;const{ref:v}=h;f.current=v.current;const b=f.current;if(!b)throw new Error("No Video Source detected");const{videoWidth:y,videoHeight:w}=b;if(y===0||w===0)return;const E=Yn(b,y,w),$=await Vt.detectFaces(i,E);d($,E)}}}const he={root:"_root_13gis_1",container:"_container_13gis_4",progress:"_progress_13gis_7",intro:"_intro_13gis_12",content:"_content_13gis_15",branding:"_branding_13gis_18",instructions:"_instructions_13gis_22"},Zn={root:"_root_39czk_1",spinner:"_spinner_39czk_18",spin:"_spin_39czk_18"};function pt(e){const{Icon:t,description:n,title:r,actionText:o="Okay, got it",onActionClick:i=()=>{},loading:a=!1,children:c}=e;return p.jsxs("div",{className:Zn.root,children:[p.jsx(t,{size:"custom",className:"h-20 mx-auto mb-12"}),p.jsx("h2",{children:r}),p.jsx("p",{className:"subtext",children:n}),p.jsxs(Kr,{onClick:()=>i(),className:"mt-12 flex items-center space-x-3",disabled:a,children:[p.jsx("span",{className:"flex-1 flex items-center space-x-1 justify-center",children:o}),a&&p.jsx("span",{className:Zn.spinner})]}),c]})}function zt(e){const{children:t,instruction:n,name:r,completed:o,onStart:i=()=>{}}=e,[a,c]=s.useState(!1),{completedCount:l,tasks:f,nextTask:d}=Ce(),m=s.useMemo(()=>Bn[r],[r]),h=s.useMemo(()=>l*100/f.length,[l,f.length]);return p.jsx("div",{className:he.root,children:p.jsxs("div",{className:`${he.container} view`,children:[p.jsx("div",{style:{width:`${h}%`},className:he.progress}),p.jsx(ie,{show:!a&&!o,as:"div",enter:"transform transition ease-in duration-300",enterFrom:"-translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in duration-300",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full",className:"absolute h-full w-full",children:p.jsx("div",{className:`${he.intro}`,children:p.jsx(pt,{Icon:m.Icon,title:`${m.name.slice(0,-2)}`,description:`${m.description}. Proper lightning helps with getting faster and more accurate results.`,onActionClick:async()=>{await i(),c(!0)},actionText:"Okay, got it!"})})}),p.jsxs(ie,{as:"div",show:a&&!o,enter:"transform transition ease-in duration-300",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in duration-300",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",className:"absolute w-full h-full",children:[p.jsx("div",{className:`${he.content}`,children:t}),p.jsxs("div",{className:"border-t divider",children:[p.jsxs("div",{className:he.instructions,children:[p.jsx("h2",{children:n.title}),p.jsx("p",{className:"subtext",children:n.description})]}),p.jsxs("div",{className:he.branding,children:[p.jsx("span",{children:"Powered by"})," ",p.jsx(Ns,{size:"custom",className:"h-3"})]})]})]}),p.jsx(ie,{show:o,as:"div",enter:"transform transition ease-in duration-300",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in duration-300",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",className:"absolute w-full h-full",children:p.jsx("div",{className:`${he.intro}`,children:p.jsx(pt,{Icon:m.Icon,title:"One task down!",description:`You have completed the ${m.name.slice(0,-2)} task. Click on the button below button to proceed.`,onActionClick:()=>d(),actionText:"Next"})})})]})})}const Qs=1,Bt=8;function ei(e){const{difficulty:t}=e,{saveStream:n,savePhoto:r}=Ce(),[o,i]=s.useState([]),[a,c]=s.useState("Place face in frame"),[l,f]=s.useState(!1),[d,m]=s.useState(!1),h=s.useRef(new Set),v=s.useRef(!1),b=s.useRef(null),y=T=>{const P=T*Bt,N=Math.ceil((P+1)/Ys);h.current.has(N)||(h.current.add(N),i(Array.from(h.current))),h.current.size>=Bt&&setTimeout(()=>{m(!0)},1e3)},w=(T,P)=>{let D=Math.atan2(P,T)*(180/Math.PI);return D<0&&(D+=360),D},E=s.useMemo(()=>{if(h.current.size===0)return 25;switch(t){case"easy":return 5;case"hard":return 15;default:return 10}},[]),$=T=>{const{keypoints:P,box:N}=T,D={x:N.width*.5,y:N.height*.5},M=P[Qs],W={y:M.y-N.yMin,x:M.x-N.xMin},G=D.x-W.x,X=W.y-D.y;return Math.abs(G)<E&&Math.abs(X)<E?null:w(G,X)},{detectFaces:F}=Yt({frameSize:280,validations:["zoom","in-frame"],onFace:(T,P)=>{r(P),f(!0),c("Slowly move head around to complete circle");const N=$(T);N&&y(N)},onError:T=>{c(T),i([]),h.current.clear(),b.current=null,v.current=!1}}),C=T=>{try{if(!T.current||d)return;const{videoWidth:P}=T.current;F({ref:T,frameSize:P})}catch{}};return p.jsx(s.Fragment,{children:p.jsx(zt,{instruction:{title:a,description:l?void 0:"Always ensure face is in frame"},name:"complete-the-circle",completed:d,children:p.jsx(Ut,{onStream:C,onRecord:n,children:p.jsx(Zs,{faceDetected:l,sectionsCount:Bt,visitedSections:o})})})})}const Kt={root:"_root_gcbg2_1",sticker:"_sticker_gcbg2_4",no:"_no_gcbg2_7",yes:"_yes_gcbg2_12"};function ti(e){const{show:t,stickers:n}=e;return p.jsx(s.Fragment,{children:t&&p.jsx("div",{className:Kt.root,children:n.map(r=>p.jsx("div",{className:`${Kt.sticker} ${Kt[r]}`,children:r.toUpperCase()},`sticker-${r}`))})})}const ni={question:"Are you alive?",errorMessage:"You have to be alive to proceed though",answer:!0},ri="Wrong answer. Try again";function oi(e){const{difficulty:t,questions:n=[ni]}=e,[r,o]=s.useState("Keep face in camera"),[i,a]=s.useState(!1),[c,l]=s.useState(!1),{saveStream:f,savePhoto:d}=Ce(),m=s.useRef("inactive"),h=s.useRef(0),v=s.useRef(!1),b=C=>{const{keypoints:T}=C,P=T[1],N=T[9],D=P.x-N.x,M=P.y-N.y;return 90-Math.atan2(M,D)*(180/Math.PI)},y=C=>{m.current="inactive",o(n[C].question),setTimeout(()=>{m.current="active"},2e3)},w=s.useMemo(()=>{switch(t){case"easy":return 2;case"hard":return 6;default:return 4}},[]),E=C=>{try{if(m.current="inactive",Math.abs(C)<w)throw new Error("Tilt head further to answer");const T=C>0,P=n[h.current].answer;if(T===P)h.current+=1,h.current===n.length?l(!0):y(h.current);else throw new Error(n[h.current].errorMessage||ri)}catch(T){o(T.message),setTimeout(()=>{y(h.current)},2e3)}},{detectFaces:$}=Yt({onFace:(C,T)=>{if(v.current||(a(!0),d(T),v.current=!0,y(h.current)),m.current==="inactive")return;const P=b(C);E(P)},onError:C=>{o(C)}}),F=C=>{try{if(!C.current||c)return;const{videoWidth:T}=C.current;$({ref:C,frameSize:T})}catch{}};return p.jsx(zt,{instruction:{title:r,description:i?"":"Move head left for No and right for Yes"},name:"yes-or-no",completed:c,children:p.jsx(Ut,{onStream:F,onRecord:f,children:p.jsx(ti,{show:i,stickers:["yes","no"]})})})}function si(e={}){const{onChange:t=()=>{}}=e,n=!!window.DeviceOrientationEvent,r=o=>{t({alpha:o.alpha,beta:o.beta,gamma:o.gamma})};return s.useEffect(()=>(window.addEventListener("deviceorientation",r),()=>{window.removeEventListener("deviceorientation",r)}),[]),{canUse:n}}function ii(e){const{total:t,onMessage:n,onComplete:r,difficulty:o}=e,i=s.useRef(null),a=s.useRef(!0),c=s.useRef(null),l=s.useRef(null),f=s.useRef(0),d=s.useRef(!1),m=s.useMemo(()=>{switch(o){case"easy":return 6;case"hard":return 10;default:return 8}},[]),h=()=>{if(f.current<t){const y=t-f.current;let w=`Nod head ${y} `;y<t&&(w+="more "),w+=y>1?"times":"time",n(w);return}d.current=!0,n("Great, hang on..."),setTimeout(()=>{r()},500)},{canUse:v}=si({onChange:y=>{l.current=y}});return{evaluate:y=>{if(!v){n("Cannot perform task. Transfer to mobile device to complete");return}if(!l.current||!l.current.beta){n("Cannot perform task. Transfer to mobile device to complete");return}if(l.current.beta<60||l.current.beta>100){n("Keep phone in upright position to continue");return}if(d.current)return;const{keypoints:w}=y,E=ke(w[6].x-w[8].x,w[6].y-w[8].y),F=ke(w[2].x-w[1].x,w[2].y-w[1].y)/E*10;if(F>m){if(i.current||!a.current)return;i.current=F,a.current=!1,c.current=setTimeout(()=>{i.current=null},3e3)}else i.current&&i.current-F>m/2&&(f.current+=1,i.current=null,c.current&&clearTimeout(c.current)),a.current=!0;h()}}}function ai(e){const{onMessage:t,onComplete:n,difficulty:r}=e,o=s.useRef(!1),i=s.useMemo(()=>{switch(r){case"easy":return 80;case"hard":return 120;default:return 100}},[]);return{evaluate:c=>{if(o.current)return;const{keypoints:l}=c,f=ke(l[6].x-l[8].x,l[6].y-l[8].y);if(ke(l[14].x-l[13].x,l[14].y-l[13].y)/f*100>i){o.current=!0,t("Awesome!"),setTimeout(()=>{n()},500);return}t("Open your mouth wide")}}}function li(e){const{total:t,onMessage:n,onComplete:r,difficulty:o}=e,i=s.useRef(!0),a=s.useRef(!1),c=s.useRef(null),l=s.useRef(0),f=s.useMemo(()=>{switch(o){case"easy":return{closed:20,open:30};case"hard":return{closed:10,open:30};default:return{closed:15,open:30}}},[]),d=b=>{i.current&&(b>=f.closed||(i.current=!1,c.current=Date.now()))},m=b=>{if(!i.current&&!(b<f.open)&&(i.current=!0,c.current)){const y=Date.now(),w=c.current;(y-w)/1e3<=2&&(l.current+=1)}},h=()=>{if(l.current<t){const b=t-l.current;let y=`Blink right eye ${b} `;b<t&&(y+="more "),y+=b>1?"times":"time",n(y);return}a.current=!0,n("Great, hang on..."),setTimeout(()=>{r()},500)};return{evaluate:b=>{if(a.current)return;const{keypoints:y}=b,w=ke(y[6].x-y[8].x,y[6].y-y[8].y),$=ke(y[145].x-y[159].x,y[145].y-y[159].y)/w*100;d($),m($),h()}}}function ui(){return{requestDeviceOrientationPermission:async()=>{if(!window.DeviceOrientationEvent)throw new Error("Cannot continue. Transfer to mobile device to complete");const t=window.DeviceOrientationEvent;if(typeof t.requestPermission=="function"&&await t.requestPermission()!=="granted")throw new Error("Permission for device orientation not granted")}}}var Jn=(e=>(e.nod="nod",e.open_mouth="open_mouth",e.blink="blink",e))(Jn||{});const Qn=Hs(Object.keys(Jn));function ci(e){const{difficulty:t,maxBlinks:n=5,maxNods:r=5}=e,o=s.useRef(0),[i,a]=s.useState("Keep face in camera"),[c,l]=s.useState(!1),[f,d]=s.useState(null),m=s.useRef(!1),{requestDeviceOrientationPermission:h}=ui(),v=()=>{if(o.current===Qn.length-1){l(!0);return}o.current+=1},b=ii({total:Math.floor(Math.random()*r+1),difficulty:t,onMessage:C=>a(C),onComplete:v}),y=ai({difficulty:t,onMessage:C=>a(C),onComplete:v}),w=li({total:Math.floor(Math.random()*n+1),difficulty:t,onMessage:C=>a(C),onComplete:v}),{detectFaces:E}=Yt({onFace:C=>{switch(m.current||(m.current=!0),Qn[o.current]){case"nod":b.evaluate(C);break;case"open_mouth":y.evaluate(C);break;case"blink":w.evaluate(C);break}},onError:C=>{a(C)}}),$=async C=>{try{if(!C.current||c)return;const{videoWidth:T}=C.current;await E({ref:C,frameSize:T,throttleInterval:500})}catch{}},F=async()=>{try{await h()}catch(C){const T=C;a(T.message),d(T)}};return p.jsx(zt,{instruction:{title:i,description:"Follow the directives as instructed"},name:"motions",completed:c,onStart:F,children:!f&&p.jsx(Ut,{onStream:$})})}function di(){var w;const{toggleColorScheme:e,getColorScheme:t,setColorScheme:n}=Rs(),{user:r,tasks:o,currentTaskIndex:i,completed:a,onComplete:c}=Ce(),[l,f]=s.useState(!1),[d,m]=s.useState(!1),[h,v]=s.useState(null);s.useEffect(()=>{const E=t();n(E)},[]);const b=async()=>{try{f(!0),v(null),await c()}catch(E){v(E.message)}finally{f(!1)}},y=s.useCallback(E=>E===i?K.active:i>E?K.completed:"subtext",[i]);return p.jsx("div",{className:K.root,children:p.jsxs("div",{className:K.container,children:[p.jsxs("div",{className:`${K.lhs} divider`,children:[p.jsxs("div",{className:K.info,children:[p.jsx(qs,{}),p.jsx("div",{children:p.jsx("p",{className:"text-xs m-0 p-0 subtext",children:"You have been given this set of tasks to complete. They are pretty easy to do but we will be guiding you every step of the way."})}),p.jsxs("ol",{children:[o.map((E,$)=>p.jsx("li",{className:y($),children:Bn[E.id].name},`task-${$}`)),p.jsx("li",{className:a?K.active:"",children:"Complete! 🎉"})]})]}),p.jsxs("footer",{className:"divider",children:[p.jsx("div",{children:"Powered by Youverify"}),p.jsxs("div",{onClick:()=>e(),role:"button",children:[p.jsx("div",{className:"dark:hidden",children:p.jsx(Un,{})}),p.jsx("div",{className:"hidden dark:block",children:p.jsx(Ss,{})})]})]})]}),p.jsx("div",{className:K.main,children:p.jsxs("div",{className:K.content,children:[p.jsx(ie,{show:!d,as:"div",leave:"transform transition duration-300",leaveFrom:"translate-y-0 opacity-100",leaveTo:"-translate-y-full opacity-0",enterFrom:"translate-y-full opacity-0",enterTo:"translate-y-0 opacity-100",className:"h-full w-full",children:p.jsx("div",{className:K.completed,children:p.jsx(pt,{Icon:Ms,title:"Liveness Check",description:"To ensure the security of your identity, we conduct a liveness check to verify that you are a real person actively engaging with the process.",actionText:"Start Liveness Test",onActionClick:()=>m(!0)})})}),o.map((E,$)=>{let F;switch(E.id){case"complete-the-circle":F=p.jsx(ei,{...E});break;case"yes-or-no":F=p.jsx(oi,{...E});break;case"motions":F=p.jsx(ci,{...E});break;default:F=p.jsx(s.Fragment,{});break}return p.jsx(ie,{show:d&&!a&&i===$,appear:!0,as:"div",leave:"transform transition duration-300",leaveFrom:"translate-y-0 opacity-100",leaveTo:"-translate-y-full opacity-0",enterFrom:"translate-y-full opacity-0",enterTo:"translate-y-0 opacity-100",className:"h-full",children:F},`task-${$}`)}),p.jsx(ie,{show:d&&a,as:"div",leave:"transform transition duration-300",leaveFrom:"translate-y-0 opacity-100",leaveTo:"-translate-y-full opacity-0",enterFrom:"translate-y-full opacity-0",enterTo:"translate-y-0 opacity-100",className:"h-full w-full",children:p.jsx("div",{className:K.completed,children:p.jsx(pt,{Icon:Ls,title:"Successful",description:"Your Identity verification has been completed successfully. Thanks for your patience",actionText:"Close",loading:l,onActionClick:b,children:h&&p.jsx("div",{className:"mt-3",children:h})})})})]})}),p.jsxs("div",{className:`${K.rhs} divider`,children:[r&&p.jsxs("div",{className:`${K.profile} divider`,children:[p.jsx("div",{children:p.jsxs("div",{className:K.avatar,children:[r.firstName.charAt(0).toUpperCase(),(w=r.lastName)==null?void 0:w.charAt(0).toUpperCase()]})}),p.jsxs("div",{children:[p.jsxs("h4",{children:[r.firstName," ",r.lastName]}),r.email&&p.jsx("p",{className:"subtext",children:r.email})]})]}),p.jsxs("footer",{children:[p.jsx("div",{children:"About · Terms · Help · Privacy · Contact"}),p.jsx("div",{children:"© 2024 from Youverify Inc."})]})]})]})})}function fi(e){const{tasks:t,namespace:n,user:r,branding:o,onClose:i=()=>{},onSuccess:a,onFailure:c,presentation:l="modal",publicKey:f,metadata:d}=e,[m,h]=s.useState(e.show),v=()=>{h(!1),i()};return p.jsx(Ks,{namespace:n,publicKey:f,tasks:t,user:r,branding:o,onRequestClose:v,onSuccess:a,onFailure:c,metadata:d,children:p.jsxs(Fs,{id:n,open:l==="page"?!0:m,onClose:v,transition:!0,className:`${ft.root} ${ft[l]}`,style:{"--branding-color":(o==null?void 0:o.color)??zs},children:[l==="modal"&&p.jsx("div",{onClick:()=>h(!1),role:"button",className:ft.close,children:p.jsx(Os,{className:"text-white"})}),p.jsx(Wn,{className:`${ft.container}`,children:p.jsx(di,{})})]})})}class pi{constructor(t){this.tasks=[],this.container=null,this.namespace="liveness-web-sdk",this.scriptsURLs=["https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh@0.4.1633559619/face_mesh.min.js","https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core@4.20.0/dist/tf-core.min.js","https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl@4.20.0/dist/tf-backend-webgl.min.js","https://cdn.jsdelivr.net/npm/@tensorflow-models/face-landmarks-detection@1.0.5/dist/face-landmarks-detection.min.js"],this.addedResources=[];const{presentation:n="modal"}=t;this.presentation=n,this.props=t,t.tasks&&(this.tasks=t.tasks),this.addResources(),n==="page"&&this.start()}addResources(){for(const t of this.scriptsURLs){const n=document.createElement("script");n.src=t,n.async=!1,this.addedResources.push(n),document.head.appendChild(n)}}removeResources(){for(const t of this.addedResources)document.head.removeChild(t)}validateOptions(){if(!this.tasks)throw new Error("Tasks cannot be empty!");if(!this.props.publicKey)throw new Error("A Public Key is required");if(this.props.user&&!this.props.user.firstName)throw new Error("First Name is required when User object is supplied")}async start(t){t&&(this.tasks=t),this.validateOptions(),this.container=document.createElement("div"),document.body.appendChild(this.container),De.createRoot(this.container).render(p.jsx(s.StrictMode,{children:p.jsx(fi,{namespace:this.namespace,publicKey:this.props.publicKey,presentation:this.props.presentation,show:!0,tasks:this.tasks,user:this.props.user,branding:this.props.branding,onClose:()=>this.close(),onSuccess:this.props.onSuccess,onFailure:this.props.onFailure,metadata:this.props.metadata})}))}close(){this.container&&this.presentation!=="page"&&document.body.removeChild(this.container),this.props.onClose&&this.props.onClose()}terminate(){this.removeResources()}}return pi});
|
|
5
|
+
`))}else{let p=d.props,f=p==null?void 0:p.className,m=typeof f=="function"?(...h)=>en(f(...h),l.className):en(f,l.className),g=m?{className:m}:{},v=Pr(d.props,Ee(tn(l,["ref"])));for(let h in c)h in v&&delete c[h];return Ut(d,Object.assign({},v,c,u,{ref:o(d.ref,u.ref)},g))}return G(i,Object.assign({},tn(l,["ref"]),i!==D&&u,i!==D&&c),d)}function pi(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Pr(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let a=n[r];for(let s of a){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return t}function _i(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let a of i)a==null||a(...o)}});return t}function z(e){var t;return Object.assign(Rt(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Ee(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function tn(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let hi="button";function mi(e,t){var n;let r=xr(),{disabled:o=r||!1,autoFocus:i=!1,...a}=e,{isFocusVisible:s,focusProps:l}=ii({autoFocus:i}),{isHovered:u,hoverProps:d}=oi({isDisabled:o}),{pressed:c,pressProps:p}=di({disabled:o}),f=_i({ref:t,type:(n=a.type)!=null?n:"button",disabled:o||void 0,autoFocus:i},l,d,p),m=F(()=>({disabled:o,hover:u,focus:s,active:c,autofocus:i}),[o,u,s,c,i]);return q({ourProps:f,theirProps:a,slot:m,defaultTag:hi,name:"Button"})}let vi=z(mi),gi="div";var ft=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ft||{});function yi(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return q({ourProps:i,theirProps:o,slot:{},defaultTag:gi,name:"Hidden"})}let nn=z(yi),bi=B(null);function wi({children:e}){let t=U(bi);if(!t)return E.createElement(E.Fragment,null,e);let{target:n}=t;return n?rt(E.createElement(E.Fragment,null,e),n):null}let Lr=Symbol();function $i(e,t=!0){return Object.assign(e,{[Lr]:t})}function Q(...e){let t=b(e);L(()=>{t.current=e},[e]);let n=H(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Lr]))?void 0:n}let rn=B(null);rn.displayName="DescriptionContext";function Mr(){let e=U(rn);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Mr),t}return e}function Ei(){let[e,t]=k([]);return[e.length>0?e.join(" "):void 0,F(()=>function(n){let r=H(i=>(t(a=>[...a,i]),()=>t(a=>{let s=a.slice(),l=s.indexOf(i);return l!==-1&&s.splice(l,1),s}))),o=F(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return E.createElement(rn.Provider,{value:o},n.children)},[t])]}let Ci="p";function Ti(e,t){let n=ce(),r=xr(),{id:o=`headlessui-description-${n}`,...i}=e,a=Mr(),s=Q(t);j(()=>a.register(o),[o,a.register]);let l=r||!1,u=F(()=>({...a.slot,disabled:l}),[a.slot,l]),d={ref:s,...a.props,id:o};return q({ourProps:d,theirProps:i,slot:u,defaultTag:Ci,name:a.name||"Description"})}let ki=z(Ti),Fi=Object.assign(ki,{});var Nr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Nr||{});let Si=B(()=>{});function xi({value:e,children:t}){return E.createElement(Si.Provider,{value:e},t)}let Pi=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function Dr(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let a=t[o].call(n,...i);a&&(n=a,r.forEach(s=>s()))}}}function Hr(e){return ot(e.subscribe,e.getSnapshot,e.getSnapshot)}let Li=new Pi(()=>Dr(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Le(e,t){let n=Li.get(t),r=ce(),o=Hr(n);if(j(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let i=o.indexOf(r),a=o.length;return i===-1&&(i=a,a+=1),i===a-1}let on=new Map,je=new Map;function Ar(e){var t;let n=(t=je.get(e))!=null?t:0;return je.set(e,n+1),n!==0?()=>Or(e):(on.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Or(e))}function Or(e){var t;let n=(t=je.get(e))!=null?t:1;if(n===1?je.delete(e):je.set(e,n-1),n!==1)return;let r=on.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,on.delete(e))}function Mi(e,{allowed:t,disallowed:n}={}){let r=Le(e,"inert-others");j(()=>{var o,i;if(!r)return;let a=ue();for(let l of(o=n==null?void 0:n())!=null?o:[])l&&a.add(Ar(l));let s=(i=t==null?void 0:t())!=null?i:[];for(let l of s){if(!l)continue;let u=st(l);if(!u)continue;let d=l.parentElement;for(;d&&d!==u.body;){for(let c of d.children)s.some(p=>c.contains(p))||a.add(Ar(c));d=d.parentElement}}return a.dispose},[r,t,n])}function Ir(e,t,n){let r=$e(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});L(()=>{if(!e)return;let o=t===null?null:t instanceof HTMLElement?t:t.current;if(!o)return;let i=ue();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>r.current(o));a.observe(o),i.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>r.current(o));a.observe(o),i.add(()=>a.disconnect())}return()=>i.dispose()},[t,r,e])}let an=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Ni=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var oe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(oe||{}),sn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(sn||{}),Di=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Di||{});function Hi(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(an)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Ai(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ni)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Rr=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Rr||{});function Oi(e,t=0){var n;return e===((n=st(e))==null?void 0:n.body)?!1:de(t,{0(){return e.matches(an)},1(){let r=e;for(;r!==null;){if(r.matches(an))return!0;r=r.parentElement}return!1}})}var Ii=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ii||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ie(e){e==null||e.focus({preventScroll:!0})}let Ri=["textarea","input"].join(",");function Vi(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Ri))!=null?n:!1}function Ui(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let a=o.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ze(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Ui(e):e:t&64?Ai(e):Hi(e);o.length>0&&a.length>1&&(a=a.filter(f=>!o.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===f:m===f))),r=r??i.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,c=a.length,p;do{if(d>=c||d+c<=0)return 0;let f=l+d;if(t&16)f=(f+c)%c;else{if(f<0)return 3;if(f>=c)return 1}p=a[f],p==null||p.focus(u),d+=s}while(p!==i.activeElement);return t&6&&Vi(p)&&p.select(),2}function Vr(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Wi(){return/Android/gi.test(window.navigator.userAgent)}function ji(){return Vr()||Wi()}function Be(e,t,n,r){let o=$e(n);L(()=>{if(!e)return;function i(a){o.current(a)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[e,t,r])}function Ur(e,t,n,r){let o=$e(n);L(()=>{if(!e)return;function i(a){o.current(a)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[e,t,r])}const Wr=30;function zi(e,t,n){let r=Le(e,"outside-click"),o=$e(n),i=I(function(l,u){if(l.defaultPrevented)return;let d=u(l);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(t);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(d)||l.composed&&l.composedPath().includes(f))return}return!Oi(d,Rr.Loose)&&d.tabIndex!==-1&&l.preventDefault(),o.current(l,d)},[o]),a=b(null);Be(r,"pointerdown",l=>{var u,d;a.current=((d=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:d[0])||l.target},!0),Be(r,"mousedown",l=>{var u,d;a.current=((d=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:d[0])||l.target},!0),Be(r,"click",l=>{ji()||a.current&&(i(l,()=>a.current),a.current=null)},!0);let s=b({x:0,y:0});Be(r,"touchstart",l=>{s.current.x=l.touches[0].clientX,s.current.y=l.touches[0].clientY},!0),Be(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-s.current.x)>=Wr||Math.abs(u.y-s.current.y)>=Wr))return i(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Ur(r,"blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ye(...e){return F(()=>st(...e),[...e])}function jr(e,t,n,r){let o=$e(n);L(()=>{e=e??window;function i(a){o.current(a)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Bi(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function Yi(){return Vr()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=ue();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,a=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let l=s.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),d=e.querySelector(u);d&&!r(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let l=s.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(r(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;i!==l&&window.scrollTo(0,i),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function qi(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Ki(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ce=Dr(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:ue(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Ki(n)},o=[Yi(),Bi(),qi()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ce.subscribe(()=>{let e=Ce.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Ce.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ce.dispatch("TEARDOWN",n)}});function Gi(e,t,n=()=>({containers:[]})){let r=Hr(Ce),o=t?r.get(t):void 0,i=o?o.count>0:!1;return j(()=>{if(!(!t||!e))return Ce.dispatch("PUSH",t,n),()=>Ce.dispatch("POP",t,n)},[e,t]),i}function Zi(e,t,n=()=>[document.body]){let r=Le(e,"scroll-lock");Gi(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function Xi(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Qi(e=0){let[t,n]=k(e),r=I(l=>n(l),[t]),o=I(l=>n(u=>u|l),[t]),i=I(l=>(t&l)===l,[t]),a=I(l=>n(u=>u&~l),[n]),s=I(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}var Ji=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Ji||{});function ea(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function ta(e,t,n,r){let[o,i]=k(n),{hasFlag:a,addFlag:s,removeFlag:l}=Qi(e&&o?3:0),u=b(!1),d=b(!1),c=ct();return j(function p(){var f;if(!e)return;n&&i(!0);let m=t.current;return m?((f=r==null?void 0:r.start)==null||f.call(r,n),na(m,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){d.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var g;d.current&&typeof m.getAnimations=="function"&&m.getAnimations().length>0||(u.current=!1,l(7),n||i(!1),(g=r==null?void 0:r.end)==null||g.call(r,n))}})):n?(s(3),c.nextFrame(()=>p())):void 0},[e,n,t,c]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function na(e,{prepare:t,run:n,done:r,inFlight:o}){let i=ue();return oa(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{i.add(ra(e,r)),n()}),i.dispose}function ra(e,t){let n=Xi(t),r=ue();if(!e)return r.dispose;let{transitionDuration:o,transitionDelay:i}=getComputedStyle(e),[a,s]=[o,i].map(u=>{let[d=0]=u.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,p)=>p-c);return d}),l=a+s;if(l!==0){let u=r.group(d=>{let c=d.setTimeout(()=>{n(),d.dispose()},l);d.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&(c(),d.addEventListener(e,"transitioncancel",f=>{f.target===f.currentTarget&&(n(),u())}))})});r.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(n(),r.dispose())})}else n();return r.dispose}function oa(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function ln(e,t){let n=b([]),r=H(e);L(()=>{let o=[...n.current];for(let[i,a]of t.entries())if(n.current[i]!==a){let s=r(t,o);return n.current=t,s}},[r,...t])}let pt=B(null);pt.displayName="OpenClosedContext";var X=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(X||{});function _t(){return U(pt)}function ia({value:e,children:t}){return E.createElement(pt.Provider,{value:e},t)}function aa({children:e}){return E.createElement(pt.Provider,{value:null},e)}function sa(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let pe=[];sa(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&pe[0]!==t.target&&(pe.unshift(t.target),pe=pe.filter(n=>n!=null&&n.isConnected),pe.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function zr(e){let t=H(e),n=b(!1);L(()=>(n.current=!1,()=>{n.current=!0,lt(()=>{n.current&&t()})}),[t])}function la(){let e=typeof document>"u";return"useSyncExternalStore"in br?(t=>t.useSyncExternalStore)(br)(()=>()=>{},()=>!1,()=>!e):!1}function qe(){let e=la(),[t,n]=k(we.isHandoffComplete);return t&&we.isHandoffComplete===!1&&n(!1),L(()=>{t!==!0&&n(!0)},[t]),L(()=>we.handoff(),[]),e?!1:t}let Br=B(!1);function ca(){return U(Br)}function Yr(e){return E.createElement(Br.Provider,{value:e.force},e.children)}function ua(e){let t=ca(),n=U(Kr),r=Ye(e),[o,i]=k(()=>{var a;if(!t&&n!==null)return(a=n.current)!=null?a:null;if(we.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return L(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),L(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let qr=D,da=z(function(e,t){let n=e,r=b(null),o=Q($i(d=>{r.current=d}),t),i=Ye(r),a=ua(r),[s]=k(()=>{var d;return we.isServer?null:(d=i==null?void 0:i.createElement("div"))!=null?d:null}),l=U(cn),u=qe();return j(()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))},[a,s]),j(()=>{if(s&&l)return l.register(s)},[l,s]),zr(()=>{var d;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&((d=a.parentElement)==null||d.removeChild(a)))}),u?!a||!s?null:rt(q({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:qr,name:"Portal"}),s):null});function fa(e,t){let n=Q(t),{enabled:r=!0,...o}=e;return r?E.createElement(da,{...o,ref:n}):q({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:qr,name:"Portal"})}let pa=D,Kr=B(null);function _a(e,t){let{target:n,...r}=e,o={ref:Q(t)};return E.createElement(Kr.Provider,{value:n},q({ourProps:o,theirProps:r,defaultTag:pa,name:"Popover.Group"}))}let cn=B(null);function ha(){let e=U(cn),t=b([]),n=H(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=H(i=>{let a=t.current.indexOf(i);a!==-1&&t.current.splice(a,1),e&&e.unregister(i)}),o=F(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,F(()=>function({children:i}){return E.createElement(cn.Provider,{value:o},i)},[o])]}let ma=z(fa),Gr=z(_a),va=Object.assign(ma,{Group:Gr});function ga(e,t=typeof document<"u"?document.defaultView:null,n){let r=Le(e,"escape");jr(t,"keydown",o=>{r&&(o.defaultPrevented||o.key===Nr.Escape&&n(o))})}function ya(){var e;let[t]=k(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=k((e=t==null?void 0:t.matches)!=null?e:!1);return j(()=>{if(!t)return;function o(i){r(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function ba({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=b((r=n==null?void 0:n.current)!=null?r:null),i=Ye(o),a=H(()=>{var s,l,u;let d=[];for(let c of e)c!==null&&(c instanceof HTMLElement?d.push(c):"current"in c&&c.current instanceof HTMLElement&&d.push(c.current));if(t!=null&&t.current)for(let c of t.current)d.push(c);for(let c of(s=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c.id!=="headlessui-portal-root"&&(c.contains(o.current)||c.contains((u=(l=o.current)==null?void 0:l.getRootNode())==null?void 0:u.host)||d.some(p=>c.contains(p))||d.push(c));return d});return{resolveContainers:a,contains:H(s=>a().some(l=>l.contains(s))),mainTreeNodeRef:o,MainTreeNode:F(()=>function(){return n!=null?null:E.createElement(nn,{features:ft.Hidden,ref:o})},[o,n])}}function un(){let e=b(!1);return j(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Ke=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ke||{});function wa(){let e=b(0);return Ur(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Zr(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let $a="div";var Te=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Te||{});function Ea(e,t){let n=b(null),r=Q(n,t),{initialFocus:o,initialFocusFallback:i,containers:a,features:s=15,...l}=e;qe()||(s=0);let u=Ye(n);Fa(s,{ownerDocument:u});let d=Sa(s,{ownerDocument:u,container:n,initialFocus:o,initialFocusFallback:i});xa(s,{ownerDocument:u,container:n,containers:a,previousActiveElement:d});let c=wa(),p=H(h=>{let y=n.current;y&&(T=>T())(()=>{de(c.current,{[Ke.Forwards]:()=>{ze(y,oe.First,{skipElements:[h.relatedTarget,i]})},[Ke.Backwards]:()=>{ze(y,oe.Last,{skipElements:[h.relatedTarget,i]})}})})}),f=Le(!!(s&2),"focus-trap#tab-lock"),m=ct(),g=b(!1),v={ref:r,onKeyDown(h){h.key=="Tab"&&(g.current=!0,m.requestAnimationFrame(()=>{g.current=!1}))},onBlur(h){if(!(s&4))return;let y=Zr(a);n.current instanceof HTMLElement&&y.add(n.current);let T=h.relatedTarget;T instanceof HTMLElement&&T.dataset.headlessuiFocusGuard!=="true"&&(Xr(y,T)||(g.current?ze(n.current,de(c.current,{[Ke.Forwards]:()=>oe.Next,[Ke.Backwards]:()=>oe.Previous})|oe.WrapAround,{relativeTo:h.target}):h.target instanceof HTMLElement&&ie(h.target)))}};return E.createElement(E.Fragment,null,f&&E.createElement(nn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:ft.Focusable}),q({ourProps:v,theirProps:l,defaultTag:$a,name:"FocusTrap"}),f&&E.createElement(nn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:ft.Focusable}))}let Ca=z(Ea),Ta=Object.assign(Ca,{features:Te});function ka(e=!0){let t=b(pe.slice());return ln(([n],[r])=>{r===!0&&n===!1&<(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=pe.slice())},[e,pe,t]),H(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Fa(e,{ownerDocument:t}){let n=!!(e&8),r=ka(n);ln(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&ie(r())},[n]),zr(()=>{n&&ie(r())})}function Sa(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=b(null),a=Le(!!(e&1),"focus-trap#initial-focus"),s=un();return ln(()=>{if(e===0)return;if(!a){o!=null&&o.current&&ie(o.current);return}let l=n.current;l&<(()=>{if(!s.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){i.current=u;return}}else if(l.contains(u)){i.current=u;return}if(r!=null&&r.current)ie(r.current);else{if(e&16){if(ze(l,oe.First|oe.AutoFocus)!==sn.Error)return}else if(ze(l,oe.First)!==sn.Error)return;if(o!=null&&o.current&&(ie(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t==null?void 0:t.activeElement})},[o,a,e]),i}function xa(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=un(),a=!!(e&4);jr(t==null?void 0:t.defaultView,"focus",s=>{if(!a||!i.current)return;let l=Zr(r);n.current instanceof HTMLElement&&l.add(n.current);let u=o.current;if(!u)return;let d=s.target;d&&d instanceof HTMLElement?Xr(l,d)?(o.current=d,ie(d)):(s.preventDefault(),s.stopPropagation(),ie(u)):ie(o.current)},!0)}function Xr(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Qr(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:eo)!==D||E.Children.count(e.children)===1}let ht=B(null);ht.displayName="TransitionContext";var Pa=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Pa||{});function La(){let e=U(ht);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Ma(){let e=U(mt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let mt=B(null);mt.displayName="NestingContext";function vt(e){return"children"in e?vt(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Jr(e,t){let n=$e(e),r=b([]),o=un(),i=ct(),a=H((f,m=fe.Hidden)=>{let g=r.current.findIndex(({el:v})=>v===f);g!==-1&&(de(m,{[fe.Unmount](){r.current.splice(g,1)},[fe.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var v;!vt(r)&&o.current&&((v=n.current)==null||v.call(n))}))}),s=H(f=>{let m=r.current.find(({el:g})=>g===f);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:f,state:"visible"}),()=>a(f,fe.Unmount)}),l=b([]),u=b(Promise.resolve()),d=b({enter:[],leave:[]}),c=H((f,m,g)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([v])=>v!==f)),t==null||t.chains.current[m].push([f,new Promise(v=>{l.current.push(v)})]),t==null||t.chains.current[m].push([f,new Promise(v=>{Promise.all(d.current[m].map(([h,y])=>y)).then(()=>v())})]),m==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(m)):g(m)}),p=H((f,m,g)=>{Promise.all(d.current[m].splice(0).map(([v,h])=>h)).then(()=>{var v;(v=l.current.shift())==null||v()}).then(()=>g(m))});return F(()=>({children:r,register:s,unregister:a,onStart:c,onStop:p,wait:u,chains:d}),[s,a,r,c,p,d,u])}let eo=D,to=ut.RenderStrategy;function Na(e,t){var n,r;let{transition:o=!0,beforeEnter:i,afterEnter:a,beforeLeave:s,afterLeave:l,enter:u,enterFrom:d,enterTo:c,entered:p,leave:f,leaveFrom:m,leaveTo:g,...v}=e,h=b(null),y=Qr(e),T=Q(...y?[h,t]:t===null?[]:[t]),w=(n=v.unmount)==null||n?fe.Unmount:fe.Hidden,{show:$,appear:S,initial:A}=La(),[M,x]=k($?"visible":"hidden"),N=Ma(),{register:W,unregister:J}=N;j(()=>W(h),[W,h]),j(()=>{if(w===fe.Hidden&&h.current){if($&&M!=="visible"){x("visible");return}return de(M,{hidden:()=>J(h),visible:()=>W(h)})}},[M,h,W,J,$,w]);let Ne=qe();j(()=>{if(y&&Ne&&M==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,M,Ne,y]);let wn=A&&!S,wt=S&&$&&A,De=b(!1),He=Jr(()=>{De.current||(x("hidden"),J(h))},N),$t=H($n=>{De.current=!0;let Et=$n?"enter":"leave";He.onStart(h,Et,Xe=>{Xe==="enter"?i==null||i():Xe==="leave"&&(s==null||s())})}),_e=H($n=>{let Et=$n?"enter":"leave";De.current=!1,He.onStop(h,Et,Xe=>{Xe==="enter"?a==null||a():Xe==="leave"&&(l==null||l())}),Et==="leave"&&!vt(He)&&(x("hidden"),J(h))});L(()=>{y&&o||($t($),_e($))},[$,y,o]);let V=!(!o||!y||!Ne||wn),[,R]=ta(V,h,$,{start:$t,end:_e}),Vs=Ee({ref:T,className:((r=en(v.className,wt&&u,wt&&d,R.enter&&u,R.enter&&R.closed&&d,R.enter&&!R.closed&&c,R.leave&&f,R.leave&&!R.closed&&m,R.leave&&R.closed&&g,!R.transition&&$&&p))==null?void 0:r.trim())||void 0,...ea(R)}),Ze=0;return M==="visible"&&(Ze|=X.Open),M==="hidden"&&(Ze|=X.Closed),R.enter&&(Ze|=X.Opening),R.leave&&(Ze|=X.Closing),E.createElement(mt.Provider,{value:He},E.createElement(ia,{value:Ze},q({ourProps:Vs,theirProps:v,defaultTag:eo,features:to,visible:M==="visible",name:"Transition.Child"})))}function Da(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=b(null),s=Qr(e),l=Q(...s?[a,t]:t===null?[]:[t]);qe();let u=_t();if(n===void 0&&u!==null&&(n=(u&X.Open)===X.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,c]=k(n?"visible":"hidden"),p=Jr(()=>{n||c("hidden")}),[f,m]=k(!0),g=b([n]);j(()=>{f!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),m(!1))},[g,n]);let v=F(()=>({show:n,appear:r,initial:f}),[n,r,f]);Ir(n,a,()=>c("hidden")),j(()=>{n?c("visible"):!vt(p)&&a.current!==null&&c("hidden")},[n,p]);let h={unmount:o},y=H(()=>{var w;f&&m(!1),(w=e.beforeEnter)==null||w.call(e)}),T=H(()=>{var w;f&&m(!1),(w=e.beforeLeave)==null||w.call(e)});return E.createElement(mt.Provider,{value:p},E.createElement(ht.Provider,{value:v},q({ourProps:{...h,as:D,children:E.createElement(no,{ref:l,...h,...i,beforeEnter:y,beforeLeave:T})},theirProps:{},defaultTag:D,features:to,visible:d==="visible",name:"Transition"})))}function Ha(e,t){let n=U(ht)!==null,r=_t()!==null;return E.createElement(E.Fragment,null,!n&&r?E.createElement(dn,{ref:t,...e}):E.createElement(no,{ref:t,...e}))}let dn=z(Da),no=z(Na),fn=z(Ha),ae=Object.assign(dn,{Child:fn,Root:dn});var Aa=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Aa||{}),Oa=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Oa||{});let Ia={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},pn=B(null);pn.displayName="DialogContext";function gt(e){let t=U(pn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gt),n}return t}function Ra(e,t){return de(t.type,Ia,e,t)}let ro=z(function(e,t){let n=ce(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:a,role:s="dialog",autoFocus:l=!0,__demoMode:u=!1,...d}=e,c=b(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(c.current||(c.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=_t();o===void 0&&p!==null&&(o=(p&X.Open)===X.Open);let f=b(null),m=Q(f,t),g=Ye(f),v=o?0:1,[h,y]=Ie(Ra,{titleId:null,descriptionId:null,panelRef:St()}),T=H(()=>i(!1)),w=H(V=>y({type:0,id:V})),$=qe()?v===0:!1,[S,A]=ha(),M={get current(){var V;return(V=h.panelRef.current)!=null?V:f.current}},{resolveContainers:x,mainTreeNodeRef:N,MainTreeNode:W}=ba({portals:S,defaultContainers:[M]}),J=p!==null?(p&X.Closing)===X.Closing:!1;Mi(u||J?!1:$,{allowed:H(()=>{var V,R;return[(R=(V=f.current)==null?void 0:V.closest("[data-headlessui-portal]"))!=null?R:null]}),disallowed:H(()=>{var V,R;return[(R=(V=N.current)==null?void 0:V.closest("body > *:not(#headlessui-portal-root)"))!=null?R:null]})}),zi($,x,V=>{V.preventDefault(),T()}),ga($,g==null?void 0:g.defaultView,V=>{V.preventDefault(),V.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),T()}),Zi(u||J?!1:$,g,x),Ir($,f,T);let[Ne,wn]=Ei(),wt=F(()=>[{dialogState:v,close:T,setTitleId:w},h],[v,h,T,w]),De=F(()=>({open:v===0}),[v]),He={ref:m,id:r,role:s,tabIndex:-1,"aria-modal":u?void 0:v===0?!0:void 0,"aria-labelledby":h.titleId,"aria-describedby":Ne},$t=!ya(),_e=Te.None;return $&&!u&&(_e|=Te.RestoreFocus,_e|=Te.TabLock,l&&(_e|=Te.AutoFocus),$t&&(_e|=Te.InitialFocus)),E.createElement(aa,null,E.createElement(Yr,{force:!0},E.createElement(va,null,E.createElement(pn.Provider,{value:wt},E.createElement(Gr,{target:f},E.createElement(Yr,{force:!1},E.createElement(wn,{slot:De},E.createElement(A,null,E.createElement(Ta,{initialFocus:a,initialFocusFallback:f,containers:x,features:_e},E.createElement(xi,{value:T},q({ourProps:He,theirProps:d,slot:De,defaultTag:Va,features:Ua,visible:v===0,name:"Dialog"})))))))))),E.createElement(wi,null,E.createElement(W,null)))}),Va="div",Ua=ut.RenderStrategy|ut.Static;function Wa(e,t){let{transition:n=!1,open:r,...o}=e,i=_t(),a=e.hasOwnProperty("open")||i!==null,s=e.hasOwnProperty("onClose");if(!a&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!o.static?E.createElement(ae,{show:r,transition:n,unmount:o.unmount},E.createElement(ro,{ref:t,...o})):E.createElement(ro,{ref:t,open:r,...o})}let ja="div";function za(e,t){let n=ce(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:a},s]=gt("Dialog.Panel"),l=Q(t,s.panelRef),u=F(()=>({open:a===0}),[a]),d=H(c=>{c.stopPropagation()});return E.createElement(o?fn:D,null,q({ourProps:{ref:l,id:r,onClick:d},theirProps:i,slot:u,defaultTag:ja,name:"Dialog.Panel"}))}let Ba="div";function Ya(e,t){let{transition:n=!1,...r}=e,[{dialogState:o}]=gt("Dialog.Backdrop"),i=F(()=>({open:o===0}),[o]);return E.createElement(n?fn:D,null,q({ourProps:{ref:t,"aria-hidden":!0},theirProps:r,slot:i,defaultTag:Ba,name:"Dialog.Backdrop"}))}let qa="h2";function Ka(e,t){let n=ce(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:a}]=gt("Dialog.Title"),s=Q(t);L(()=>(a(r),()=>a(null)),[r,a]);let l=F(()=>({open:i===0}),[i]);return q({ourProps:{ref:s,id:r},theirProps:o,slot:l,defaultTag:qa,name:"Dialog.Title"})}let Ga=z(Wa),oo=z(za);z(Ya);let Za=z(Ka),Xa=Object.assign(Ga,{Panel:oo,Title:Za,Description:Fi});const yt={root:"_root_1ctbt_1",modal:"_modal_1ctbt_9",container:"_container_1ctbt_12",page:"_page_1ctbt_15",close:"_close_1ctbt_18"},Qa={root:"_root_1h6qm_1"},se=e=>{const{children:t,size:n="md",fill:r="currentColor",stroke:o,strokeWidth:i,className:a="",viewBox:s="0 0 20 20"}=e,l=F(()=>{switch(n){case"sm":return"w-4 h-4";case"lg":return"w-7 h-7";case"xl":return"w-10 h-10";case"custom":return"";default:return"w-5 h-5"}},[n]);return _("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:s,fill:r,stroke:o,strokeWidth:i,className:`${l} ${a}`,children:t})},Ja=()=>_(se,{children:_("path",{d:"M10 2a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 2zM10 15a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 15zM10 7a3 3 0 100 6 3 3 0 000-6zM15.657 5.404a.75.75 0 10-1.06-1.06l-1.061 1.06a.75.75 0 001.06 1.06l1.06-1.06zM6.464 14.596a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 001.06 1.06l1.06-1.06zM18 10a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 0118 10zM5 10a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 015 10zM14.596 15.657a.75.75 0 001.06-1.06l-1.06-1.061a.75.75 0 10-1.06 1.06l1.06 1.06zM5.404 6.464a.75.75 0 001.06-1.06l-1.06-1.06a.75.75 0 10-1.061 1.06l1.06 1.06z"})}),io=e=>_(se,{...e,children:_("path",{fillRule:"evenodd",d:"M7.455 2.004a.75.75 0 01.26.77 7 7 0 009.958 7.967.75.75 0 011.067.853A8.5 8.5 0 116.647 1.921a.75.75 0 01.808.083z",clipRule:"evenodd"})}),es=e=>_(se,{...e,viewBox:"0 0 24 24",children:[_("path",{d:"M0 0h24v24H0V0z",fill:"none"}),_("path",{d:"M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"})]}),ts=e=>_(se,{...e,viewBox:"0 0 24 24",children:[_("path",{d:"M0 0h24v24H0V0z",fill:"none"}),_("path",{d:"M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"})]}),ns=e=>_(se,{...e,viewBox:"0 0 24 24",children:[_("path",{d:"M0 0h24v24H0V0z",fill:"none"}),_("path",{d:"M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"})]}),rs=e=>_(se,{...e,children:[_("path",{d:"M0 0h24v24H0V0z",fill:"none"}),_("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm6 5H6v-.99c.2-.72 3.3-2.01 6-2.01s5.8 1.29 6 2v1z"})]}),os=e=>_(se,{...e,children:_("path",{d:"M18,10l-1.77-2.03l0.25-2.69l-2.63-0.6l-1.37-2.32L10,3.43L7.53,2.36L6.15,4.68L3.53,5.28l0.25,2.69L2,10l1.77,2.03 l-0.25,2.69l2.63,0.6l1.37,2.32L10,16.56l2.47,1.07l1.37-2.32l2.63-0.6l-0.25-2.69L18,10z M13.18,8.47l-4.24,4.24 c-0.2,0.2-0.51,0.2-0.71,0L6.82,11.3c-0.2-0.2-0.2-0.51,0-0.71s0.51-0.2,0.71,0l1.06,1.06l3.89-3.89c0.2-0.2,0.51-0.2,0.71,0 S13.38,8.28,13.18,8.47z"})}),is=e=>_(se,{...e,children:_("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})}),as=e=>_(se,{...e,viewBox:"0 0 99 32",children:[_("g",{clipPath:"url(#clip0_9581_165880)",children:[_("path",{d:"M98.9474 20.7006V2.701C98.9474 1.20997 97.7302 0 96.2304 0H87.4325H2.71699C1.21714 0 0 1.20997 0 2.701V29.299C0 30.79 1.21714 32 2.71699 32H86.6203C87.2911 32 87.938 31.7523 88.4388 31.3069L98.0489 22.7084C98.6191 22.1964 98.9474 21.4651 98.9474 20.7006Z",fill:"#46B2C8"}),_("path",{d:"M24.3666 25.2683H20.593C19.3951 25.2683 18.4199 24.2989 18.4199 23.108V8.8908C18.4199 7.69988 19.3951 6.73047 20.593 6.73047H24.3642C25.5622 6.73047 26.5374 7.69988 26.5374 8.8908V23.1056C26.5398 24.2989 25.5646 25.2683 24.3666 25.2683ZM20.593 8.52161C20.3894 8.52161 20.2217 8.68596 20.2217 8.8908V23.1056C20.2217 23.3081 20.387 23.4748 20.593 23.4748H24.3642C24.5679 23.4748 24.7356 23.3104 24.7356 23.1056V8.8908C24.7356 8.68834 24.5703 8.52161 24.3642 8.52161H20.593Z",fill:"#C7E8EF"}),_("path",{d:"M68.9385 6.74805H67.1367V25.2549H68.9385V6.74805Z",fill:"white"}),_("path",{d:"M55.0725 8.52161V6.73047H47.8535V25.2683H55.0725V23.4748H49.6577V18.9874H52.9664V17.1963H49.6577V8.52161H55.0725Z",fill:"white"}),_("path",{d:"M46.528 6.73828L44.4795 23.4993C44.283 24.5354 43.4061 25.2595 42.3447 25.2595C41.2833 25.2595 40.404 24.5354 40.2099 23.4993L40.2003 23.4421L38.1758 6.73828H39.9919L41.9853 23.1896C42.0404 23.4183 42.2081 23.4683 42.3447 23.4683C42.4789 23.4683 42.649 23.4183 42.7041 23.1896L44.7119 6.73828H46.528Z",fill:"white"}),_("path",{d:"M36.9104 6.73047V23.1056C36.9104 24.2965 35.9353 25.2659 34.7373 25.2659H30.9685C29.7681 25.2659 28.793 24.2965 28.793 23.1056V6.73047H30.5947V23.1056C30.5947 23.3104 30.7624 23.4748 30.9685 23.4748H34.7373C34.9433 23.4748 35.1087 23.3081 35.1087 23.1056V6.73047H36.9104Z",fill:"#C7E8EF"}),_("path",{d:"M78.6291 8.53181V6.73828H71.4102V25.2618H73.2143V18.9976H76.5231V17.2065H73.2143V8.53181H78.6291Z",fill:"white"}),_("path",{d:"M15.8797 6.73047L13.3089 14.9764L10.9034 6.73047H9.02734L12.3793 18.2157V25.2516H14.181V18.2324L17.7653 6.73047H15.8797Z",fill:"#C7E8EF"}),_("path",{d:"M85.7767 6.73047L83.2058 14.9764L80.7979 6.73047H78.9219L82.2738 18.2157V25.2516H84.0755V18.2324L87.6623 6.73047H85.7767Z",fill:"white"}),_("path",{d:"M61.2349 18.4801C63.4535 17.5226 65.0085 15.3241 65.0085 12.7732V8.8908C65.0085 7.69988 64.0357 6.73047 62.8354 6.73047H59.0618C57.8638 6.73047 56.8887 7.69988 56.8887 8.8908V18.0918V18.9874V25.2493H58.6904V18.9898H58.7527C58.9659 18.9898 59.1768 18.9779 59.3828 18.9588L63.6093 25.254H65.78L61.2349 18.4801ZM58.6928 17.1986V8.89318C58.6928 8.68834 58.8581 8.52399 59.0618 8.52399H62.8354C63.039 8.52399 63.2044 8.69072 63.2044 8.89318V12.7756C63.2044 15.2146 61.2085 17.1986 58.7551 17.1986H58.6928Z",fill:"white"})]}),_("defs",{children:_("clipPath",{id:"clip0_9581_165880",children:_("rect",{width:"98.9474",height:"32",fill:"white"})})})]});class _n{static async loadDetector(){try{return await faceLandmarksDetection.createDetector("MediaPipeFaceMesh",{runtime:"mediapipe",refineLandmarks:!0,solutionPath:"https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh"})}catch(t){return Promise.reject(t)}}static async detectFaces(t,n){try{return await t.estimateFaces(n)}catch(r){return Promise.reject(r)}}}const ss=(e,t)=>{let n;return typeof OffscreenCanvas<"u"?n=new OffscreenCanvas(e,t):(n=document.createElement("canvas"),n.width=e,n.height=t),n},ao=(e,t,n,r)=>{let o=0,i=0,a=t,s=n;const u=ss(t,n).getContext("2d");return u.drawImage(e,0,0),u.getImageData(o,i,a,s)},ls=e=>new Promise(t=>{const n=document.createElement("canvas");n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n.toBlob(o=>t(o))});function cs(){if(MediaRecorder.isTypeSupported("video/webm; codecs=vp9"))return{mimeType:"video/webm; codecs=vp9"};if(MediaRecorder.isTypeSupported("video/webm"))return{mimeType:"video/webm"};if(MediaRecorder.isTypeSupported("video/mp4"))return{mimeType:"video/mp4"}}function so(e={}){const{onRecord:t=()=>{},onStop:n=()=>{}}=e,r=b([]),o=b(null),i=b(null),a=I(c=>{r.current.push(c)},[]),s=I(async c=>{if(o.current)return;const p=await ls(c);o.current=p},[]),l=I(c=>{c.data.size>0&&t(c.data)},[]),u=I(()=>{!i.current||i.current.state==="inactive"||(i.current.stop(),i.current.stream.getTracks().forEach(c=>c.stop()),n())},[]),d=I(c=>{i.current||(i.current=new MediaRecorder(c,cs()),i.current.ondataavailable=l,i.current.onstop=u,i.current.start(1e3))},[]);return{saveStream:a,savePhoto:s,start:d,stop:u,savedStreams:r,savedPhoto:o}}function Me(e,t){return Math.sqrt(e**2+t**2)}function us(e){const t=e.slice();for(let n=t.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t}function ds(e,t){return new Promise((n,r)=>{const o=new File([e],`${Date.now()}`,{type:t}),i=new FileReader;i.readAsDataURL(o),i.onload=()=>n(i.result),i.onerror=a=>r(a)})}const fs="https://identity.dev.svc.youverify.co";function ps(){return{postData:async t=>{const{faceImage:n,publicKey:r,passed:o,metadata:i}=t,a=await fetch(`${fs}/v1/sdk/identity/liveness/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publicMerchantID:r,components:["liveness"],faceImage:n,passed:o,metadata:i})});if(!a.ok)throw a;return await a.json()}}}const _s=360,hs="#125766",ms="https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg",lo={"complete-the-circle":{Icon:es,name:"Complete The Circle ⭕️",description:"First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"},"yes-or-no":{Icon:ts,name:"Yes or No ❓",description:"First position your face in the camera. Then tilt your head to the left to answer No and to the right to answer Yes"},motions:{Icon:ns,name:"Motions 💫",description:"First position your face in the camera frame, then follow the instructions"},"facial-expressions":{Icon:io,name:"Facial Expressions 🤪",description:"First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"}},co=B({tasks:[],namespace:"",user:void 0,currentTaskIndex:0,completedCount:0,nextTask:()=>{},completed:!1,onRequestClose:()=>{},faceDetector:null,saveStream:()=>{},savePhoto:()=>{},onComplete:()=>Promise.resolve()});let uo,fo=!1;function vs(e){const{publicKey:t,tasks:n,children:r,namespace:o,user:i,branding:a,onRequestClose:s,onSuccess:l=()=>{},metadata:u}=e,[d,c]=k(0),[p,f]=k(0),[m,g]=k(null),{saveStream:v,savePhoto:h,savedPhoto:y}=so(),{postData:T}=ps(),w=F(()=>p===n.length,[n,p]),$=()=>{f(x=>x+1),c(x=>x+1)},S=x=>{const N=new Image;N.crossOrigin="Anonymous",N.src=ms,N.onload=()=>{const W=ao(N,N.width,N.height);_n.detectFaces(x,W)}},A=async()=>{const x=await T({faceImage:y.current?await ds(y.current,"image/png"):null,publicKey:t,passed:!0,metadata:u});l(x),s()},M=async()=>{const x=await _n.loadDetector();uo=x,S(x),g(x)};return L(()=>{if(fo){g(uo);return}M(),fo=!0},[]),_(co.Provider,{value:{tasks:n,namespace:o,user:i,currentTaskIndex:d,completed:w,completedCount:p,nextTask:$,branding:a,onRequestClose:s,faceDetector:m,saveStream:v,savePhoto:h,onComplete:A},children:r})}function ke(){return U(co)}const Y={root:"_root_dndkf_1",container:"_container_dndkf_4",lhs:"_lhs_dndkf_7",info:"_info_dndkf_11",active:"_active_dndkf_32",completed:"_completed_dndkf_39",rhs:"_rhs_dndkf_62",profile:"_profile_dndkf_65",avatar:"_avatar_dndkf_68",main:"_main_dndkf_81",content:"_content_dndkf_84"},hn={root:"_root_135td_1",container:"_container_135td_1",brand:"_brand_135td_1"};function gs(){const{branding:e}=ke();return _("div",{className:hn.root,children:_("div",{className:hn.container,children:_("div",{className:hn.brand,children:(e==null?void 0:e.logo)&&_("img",{className:"h-10",src:e.logo,alt:"Logo"})})})})}const po="colorScheme";function ys(){const{namespace:e}=ke(),t=()=>{const o=localStorage.getItem(po);return!o&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":o},n=(o=null)=>{o&&localStorage.setItem(po,o);const i=`${e}-color-scheme`,a=document.documentElement;o&&o==="dark"?a==null||a.setAttribute(i,"dark"):a==null||a.removeAttribute(i)};return{setColorScheme:n,toggleColorScheme:()=>{const o=t();return n(o==="dark"?"light":"dark")},getColorScheme:t}}const bs={root:"_root_1w5nq_1"};function ws(){if(!(window.screen.width>=900))return 10/9}function mn(e){const{children:t,onStream:n=()=>{},onRecord:r=()=>{}}=e,o=b(null),i=b(0),a=b(null),{start:s,stop:l}=so({onRecord:r}),u=async()=>{try{const p=await navigator.mediaDevices.getUserMedia({video:{aspectRatio:{exact:ws()}}});a.current=p,s(p),o.current&&(o.current.srcObject=p)}catch{}},d=()=>{a.current&&(a.current.getTracks().forEach(p=>p.stop()),a.current=null,l(),o.current&&(o.current.srcObject=null))},c=()=>{n(o),i.current=requestAnimationFrame(c)};return L(()=>{const p=o.current;if(!p)return;const f=()=>{i.current=requestAnimationFrame(c)};return u(),p.addEventListener("canplay",f),()=>{p.removeEventListener("canplay",f),cancelAnimationFrame(i.current),d()}},[]),_("div",{className:bs.root,children:[_("video",{ref:o,autoPlay:!0,loop:!0,playsInline:!0}),t]})}const Ge={container:"_container_1ap2u_1",focused:"_focused_1ap2u_12",progress:"_progress_1ap2u_15",completed:"_completed_1ap2u_36",marker:"_marker_1ap2u_40"},_o=360,$s=50;function Es(e){const{visitedSections:t,sectionsCount:n,faceDetected:r,divisions:o=$s}=e,i=F(()=>{const a=[Ge.container];return r&&a.push(Ge.focused),a.join(" ")},[r]);return _("div",{className:i,children:[_(ae,{as:"div",show:r,leave:"transition linear duration-300",leaveFrom:"scale-100 opacity-100",leaveTo:"scale-125 opacity-0",enter:"transition linear duration-300",enterFrom:"scale-125 opacity-0",enterTo:"scale-100 opacity-100",className:"absolute",children:_("div",{className:Ge.progress,children:Array.from(Array(o).keys()).map(a=>{const s=a*_o/o,l=Math.ceil((s+1)*n/_o),u=t.includes(l),d=u?a-(l-1)*(o/n):0,c=[];u&&c.push(Ge.completed);const p=u?"translateX(158px)":"translateX(150px)";return _("div",{className:c.join(" "),style:{transform:`rotate(${s}deg) ${p}`,transitionDelay:`${d*20}ms`}},`key-${a}`)})})}),_(ae,{as:"div",show:!r,leave:"transition linear duration-200",leaveFrom:"scale-100 opacity-100",leaveTo:"scale-75 opacity-0",enter:"transition linear duration-200",enterFrom:"scale-75 opacity-0",enterTo:"scale-100 opacity-100",className:"absolute",children:_("div",{className:Ge.marker,children:[_("div",{}),_("div",{}),_("div",{}),_("div",{})]})})]})}function Cs(){return{checkZoomLevel:(r,o)=>{const{box:i}=r,{width:a,height:s}=i,l=a*s,u=o**2,d=l/u;if(d>.9)throw new Error("Move face farther from camera");if(d<.05)throw new Error("Move face closer to camera")},checkFacialFeatures:(r,o)=>{},checkInFrame:(r,o)=>{const{offsetX:i,offsetY:a}=o,{box:s}=r;if(!(s.xMin-i>=o.x&&s.yMin-a>=o.y&&s.xMax-i<=o.x+o.width&&s.yMax-a<=o.y+o.height))throw new Error("Position head in frame")}}}function vn(e={}){const{validations:t=["zoom"],frameSize:n,onFace:r=()=>{},onError:o=()=>{}}=e,{faceDetector:i}=ke(),{checkFacialFeatures:a,checkZoomLevel:s,checkInFrame:l}=Cs(),u=b(null),d=(p,f)=>{var m;try{if(p.length===0)throw new Error("Detecting face...");if(p.length>1)throw new Error("A maximum of 1 face is allowed");const g=u.current,v=(m=u.current)==null?void 0:m.parentElement;if(!g||!v)return;const h=p[0];for(const y of t)switch(y){case"zoom":s(h,Math.min(v.clientHeight,v.clientWidth));break;case"features":a(h,Math.min(v.clientHeight,v.clientWidth));break;case"in-frame":if(!n)throw new Error("Frame size is required to check if face is in frame");const T=n+200;l(h,{x:(v.clientWidth-T)/2,y:(v.clientHeight-T)/2,width:T,height:T,offsetX:(g.videoWidth-v.clientWidth)/2,offsetY:(g.videoHeight-v.clientHeight)/2});break;default:break}r(h,f)}catch(g){const{message:v}=g;o(v)}};return{detectFaces:async p=>{if(!i)return;const{ref:f}=p;u.current=f.current;const m=u.current;if(!m)throw new Error("No Video Source detected");const{videoWidth:g,videoHeight:v}=m;if(g===0||v===0)return;const h=ao(m,g,v),y=await _n.detectFaces(i,h);d(y,h)}}}const le={root:"_root_182pz_1",container:"_container_182pz_4",progress:"_progress_182pz_7",intro:"_intro_182pz_12",content:"_content_182pz_15",branding:"_branding_182pz_18",instructionsContainer:"_instructionsContainer_182pz_22",instructions:"_instructions_182pz_22"},ho={root:"_root_39czk_1",spinner:"_spinner_39czk_18",spin:"_spin_39czk_18"};function bt(e){const{Icon:t,description:n,title:r,actionText:o="Okay, got it",onActionClick:i=()=>{},loading:a=!1,children:s}=e;return _("div",{className:ho.root,children:[_(t,{size:"custom",className:"h-20 mx-auto mb-12"}),_("h2",{children:r}),_("p",{className:"subtext",children:n}),_("div",{className:"mt-12",children:_(vi,{onClick:()=>i(),className:"flex items-center space-x-3",disabled:a,children:[_("span",{className:"flex-1 flex items-center space-x-1 justify-center",children:o}),a&&_("span",{className:ho.spinner})]})}),s]})}function gn(e){const{children:t,instruction:n,name:r,completed:o,onStart:i=()=>{}}=e,[a,s]=k(!1),{completedCount:l,tasks:u,nextTask:d}=ke(),c=F(()=>lo[r],[r]),p=F(()=>l*100/u.length,[l,u.length]);return _("div",{className:le.root,children:_("div",{className:`${le.container} view`,children:[_("div",{style:{width:`${p}%`},className:le.progress}),_(ae,{show:!a&&!o,as:"div",enter:"transform transition ease-in duration-300",enterFrom:"-translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in duration-300",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full",className:"absolute h-full w-full",children:_("div",{className:`${le.intro}`,children:_(bt,{Icon:c.Icon,title:`${c.name.slice(0,-2)}`,description:`${c.description}. Proper lightning helps with getting faster and more accurate results.`,onActionClick:async()=>{await i(),s(!0)},actionText:"Okay, got it!"})})}),_(ae,{as:"div",show:a&&!o,enter:"transform transition ease-in duration-300",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in duration-300",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",className:"absolute w-full h-full",children:[_("div",{className:`${le.content}`,children:t}),_("div",{className:le.instructionsContainer,children:[_("div",{className:le.instructions,children:[_("h2",{children:n.title}),_("p",{className:"subtext",children:n.description})]}),_("div",{className:le.branding,children:[_("span",{children:"Powered by"})," ",_(as,{size:"custom",className:"h-3"})]})]})]}),_(ae,{show:o,as:"div",enter:"transform transition ease-in duration-300",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in duration-300",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",className:"absolute w-full h-full",children:_("div",{className:`${le.intro}`,children:_(bt,{Icon:c.Icon,title:"One task down!",description:`You have completed the ${c.name.slice(0,-2)} task. Click on the button below button to proceed.`,onActionClick:()=>d(),actionText:"Next"})})})]})})}const Ts=1,yn=8;function ks(e){const{difficulty:t}=e,{saveStream:n,savePhoto:r}=ke(),[o,i]=k([]),[a,s]=k("Place face in frame"),[l,u]=k(!1),[d,c]=k(!1),p=b(new Set),f=b(!1),m=b(null),g=$=>{const S=$*yn,A=Math.ceil((S+1)/_s);p.current.has(A)||(p.current.add(A),i(Array.from(p.current))),p.current.size>=yn&&setTimeout(()=>{c(!0)},1e3)},v=($,S)=>{let M=Math.atan2(S,$)*(180/Math.PI);return M<0&&(M+=360),M},h=F(()=>{if(p.current.size===0)return 25;switch(t){case"easy":return 5;case"hard":return 15;default:return 10}},[]),y=$=>{const{keypoints:S,box:A}=$,M={x:A.width*.5,y:A.height*.5},x=S[Ts],N={y:x.y-A.yMin,x:x.x-A.xMin},W=M.x-N.x,J=N.y-M.y;return Math.abs(W)<h&&Math.abs(J)<h?null:v(W,J)},{detectFaces:T}=vn({frameSize:280,validations:["zoom","in-frame"],onFace:($,S)=>{r(S),u(!0),s("Slowly move head around to complete circle");const A=y($);A&&g(A)},onError:$=>{s($),i([]),p.current.clear(),m.current=null,f.current=!1}});return _(D,{children:_(gn,{instruction:{title:a,description:l?void 0:"Always ensure face is in frame"},name:"complete-the-circle",completed:d,children:_(mn,{onStream:$=>{try{if(!$.current||d)return;const{videoWidth:S}=$.current;T({ref:$,frameSize:S})}catch{}},onRecord:n,children:_(Es,{faceDetected:l,sectionsCount:yn,visitedSections:o})})})})}const bn={root:"_root_gcbg2_1",sticker:"_sticker_gcbg2_4",no:"_no_gcbg2_7",yes:"_yes_gcbg2_12"};function Fs(e){const{show:t,stickers:n}=e;return _(D,{children:t&&_("div",{className:bn.root,children:n.map(r=>_("div",{className:`${bn.sticker} ${bn[r]}`,children:r.toUpperCase()},`sticker-${r}`))})})}const Ss={question:"Are you alive?",errorMessage:"You have to be alive to proceed though",answer:!0},xs="Wrong answer. Try again";function Ps(e){const{difficulty:t,questions:n=[Ss]}=e,[r,o]=k("Keep face in camera"),[i,a]=k(!1),[s,l]=k(!1),{saveStream:u,savePhoto:d}=ke(),c=b("inactive"),p=b(0),f=b(!1),m=w=>{const{keypoints:$}=w,S=$[1],A=$[9],M=S.x-A.x,x=S.y-A.y;return 90-Math.atan2(x,M)*(180/Math.PI)},g=w=>{c.current="inactive",o(n[w].question),setTimeout(()=>{c.current="active"},2e3)},v=F(()=>{switch(t){case"easy":return 2;case"hard":return 6;default:return 4}},[]),h=w=>{try{if(c.current="inactive",Math.abs(w)<v)throw new Error("Tilt head further to answer");const $=w>0,S=n[p.current].answer;if($===S)p.current+=1,p.current===n.length?l(!0):g(p.current);else throw new Error(n[p.current].errorMessage||xs)}catch($){o($.message),setTimeout(()=>{g(p.current)},2e3)}},{detectFaces:y}=vn({onFace:(w,$)=>{if(f.current||(a(!0),d($),f.current=!0,g(p.current)),c.current==="inactive")return;const S=m(w);h(S)},onError:w=>{o(w)}});return _(gn,{instruction:{title:r,description:i?"":"Move head left for No and right for Yes"},name:"yes-or-no",completed:s,children:_(mn,{onStream:w=>{try{if(!w.current||s)return;const{videoWidth:$}=w.current;y({ref:w,frameSize:$})}catch{}},onRecord:u,children:_(Fs,{show:i,stickers:["yes","no"]})})})}function Ls(e={}){const{onChange:t=()=>{}}=e,n=!!window.DeviceOrientationEvent,r=o=>{t({alpha:o.alpha,beta:o.beta,gamma:o.gamma})};return L(()=>(window.addEventListener("deviceorientation",r),()=>{window.removeEventListener("deviceorientation",r)}),[]),{canUse:n}}function Ms(e){const{total:t,onMessage:n,onComplete:r,difficulty:o}=e,i=b(null),a=b(!0),s=b(null),l=b(null),u=b(0),d=b(!1),c=F(()=>{switch(o){case"easy":return 6;case"hard":return 10;default:return 8}},[]),p=()=>{if(u.current<t){const g=t-u.current;let v=`Nod head ${g} `;g<t&&(v+="more "),v+=g>1?"times":"time",n(v);return}d.current=!0,n("Great, hang on..."),setTimeout(()=>{r()},500)},{canUse:f}=Ls({onChange:g=>{l.current=g}});return{evaluate:g=>{if(!f){n("Cannot perform task. Transfer to mobile device to complete");return}if(!l.current||!l.current.beta){n("Cannot perform task. Transfer to mobile device to complete");return}if(l.current.beta<60||l.current.beta>100){n("Keep phone in upright position to continue");return}if(d.current)return;const{keypoints:v}=g,h=Me(v[6].x-v[8].x,v[6].y-v[8].y),T=Me(v[2].x-v[1].x,v[2].y-v[1].y)/h*10;if(T>c){if(i.current||!a.current)return;i.current=T,a.current=!1,s.current=setTimeout(()=>{i.current=null},3e3)}else i.current&&i.current-T>c/2&&(u.current+=1,i.current=null,s.current&&clearTimeout(s.current)),a.current=!0;p()}}}function Ns(e){const{onMessage:t,onComplete:n,difficulty:r}=e,o=b(!1),i=F(()=>{switch(r){case"easy":return 80;case"hard":return 120;default:return 100}},[]);return{evaluate:s=>{if(o.current)return;const{keypoints:l}=s,u=Me(l[6].x-l[8].x,l[6].y-l[8].y);if(Me(l[14].x-l[13].x,l[14].y-l[13].y)/u*100>i){o.current=!0,t("Awesome!"),setTimeout(()=>{n()},500);return}t("Open your mouth wide")}}}function Ds(e){const{total:t,onMessage:n,onComplete:r,difficulty:o}=e,i=b(!0),a=b(!1),s=b(null),l=b(0),u=F(()=>{switch(o){case"easy":return{closed:20,open:30};case"hard":return{closed:10,open:30};default:return{closed:15,open:30}}},[]),d=m=>{i.current&&(m>=u.closed||(i.current=!1,s.current=Date.now()))},c=m=>{if(!i.current&&!(m<u.open)&&(i.current=!0,s.current)){const g=Date.now(),v=s.current;(g-v)/1e3<=2&&(l.current+=1)}},p=()=>{if(l.current<t){const m=t-l.current;let g=`Blink right eye ${m} `;m<t&&(g+="more "),g+=m>1?"times":"time",n(g);return}a.current=!0,n("Great, hang on..."),setTimeout(()=>{r()},500)};return{evaluate:m=>{if(a.current)return;const{keypoints:g}=m,v=Me(g[6].x-g[8].x,g[6].y-g[8].y),y=Me(g[145].x-g[159].x,g[145].y-g[159].y)/v*100;d(y),c(y),p()}}}function Hs(){return{requestDeviceOrientationPermission:async()=>{if(!window.DeviceOrientationEvent)throw new Error("Cannot continue. Transfer to mobile device to complete");const t=window.DeviceOrientationEvent;if(typeof t.requestPermission=="function"&&await t.requestPermission()!=="granted")throw new Error("Permission for device orientation not granted")}}}var mo=(e=>(e.nod="nod",e.open_mouth="open_mouth",e.blink="blink",e))(mo||{});const vo=us(Object.keys(mo));function As(e){const{difficulty:t,maxBlinks:n=5,maxNods:r=5}=e,o=b(0),[i,a]=k("Keep face in camera"),[s,l]=k(!1),[u,d]=k(null),c=b(!1),{requestDeviceOrientationPermission:p}=Hs(),f=()=>{if(o.current===vo.length-1){l(!0);return}o.current+=1},m=Ms({total:Math.floor(Math.random()*r+1),difficulty:t,onMessage:w=>a(w),onComplete:f}),g=Ns({difficulty:t,onMessage:w=>a(w),onComplete:f}),v=Ds({total:Math.floor(Math.random()*n+1),difficulty:t,onMessage:w=>a(w),onComplete:f}),{detectFaces:h}=vn({onFace:w=>{switch(c.current||(c.current=!0),vo[o.current]){case"nod":m.evaluate(w);break;case"open_mouth":g.evaluate(w);break;case"blink":v.evaluate(w);break}},onError:w=>{a(w)}});return _(gn,{instruction:{title:i,description:"Follow the directives as instructed"},name:"motions",completed:s,onStart:async()=>{try{await p()}catch(w){const $=w;a($.message),d($)}},children:u?_(D,{}):_(mn,{onStream:async w=>{try{if(!w.current||s)return;const{videoWidth:$}=w.current;await h({ref:w,frameSize:$,throttleInterval:500})}catch{}}})})}function Os(){var v;const{toggleColorScheme:e,getColorScheme:t,setColorScheme:n}=ys(),{user:r,tasks:o,currentTaskIndex:i,completed:a,onComplete:s}=ke(),[l,u]=k(!1),[d,c]=k(!1),[p,f]=k(null);L(()=>{const h=t();n(h)},[]);const m=async()=>{try{u(!0),f(null),await s()}catch(h){f(h.message)}finally{u(!1)}},g=I(h=>h===i?Y.active:i>h?Y.completed:"subtext",[i]);return _("div",{className:Y.root,children:_("div",{className:Y.container,children:[_("div",{className:`${Y.lhs} divider`,children:[_("div",{className:Y.info,children:[_(gs,{}),_("div",{children:_("p",{className:"text-xs m-0 p-0 subtext",children:"You have been given this set of tasks to complete. They are pretty easy to do but we will be guiding you every step of the way."})}),_("ol",{children:[o.map((h,y)=>_("li",{className:g(y),children:lo[h.id].name},`task-${y}`)),_("li",{className:a?Y.active:"",children:"Complete! 🎉"})]})]}),_("footer",{className:"divider",children:[_("div",{children:"Powered by Youverify"}),_("div",{onClick:()=>e(),role:"button",children:[_("div",{className:"dark:hidden",children:_(io,{})}),_("div",{className:"hidden dark:block",children:_(Ja,{})})]})]})]}),_("div",{className:Y.main,children:_("div",{className:Y.content,children:[_(ae,{show:!d,as:"div",leave:"transform transition duration-300",leaveFrom:"translate-y-0 opacity-100",leaveTo:"-translate-y-full opacity-0",enterFrom:"translate-y-full opacity-0",enterTo:"translate-y-0 opacity-100",className:"h-full w-full",children:_("div",{className:Y.completed,children:_(bt,{Icon:rs,title:"Liveness Check",description:"To ensure the security of your identity, we conduct a liveness check to verify that you are a real person actively engaging with the process.",actionText:"Start Liveness Test",onActionClick:()=>c(!0)})})}),o.map((h,y)=>{let T;switch(h.id){case"complete-the-circle":T=_(ks,{...h});break;case"yes-or-no":T=_(Ps,{...h});break;case"motions":T=_(As,{...h});break;default:T=_(D,{});break}return _(ae,{show:d&&!a&&i===y,appear:!0,as:"div",leave:"transform transition duration-300",leaveFrom:"translate-y-0 opacity-100",leaveTo:"-translate-y-full opacity-0",enterFrom:"translate-y-full opacity-0",enterTo:"translate-y-0 opacity-100",className:"h-full",children:T},`task-${y}`)}),_(ae,{show:d&&a,as:"div",leave:"transform transition duration-300",leaveFrom:"translate-y-0 opacity-100",leaveTo:"-translate-y-full opacity-0",enterFrom:"translate-y-full opacity-0",enterTo:"translate-y-0 opacity-100",className:"h-full w-full",children:_("div",{className:Y.completed,children:_(bt,{Icon:os,title:"Successful",description:"Your Identity verification has been completed successfully. Thanks for your patience",actionText:"Finish",loading:l,onActionClick:m,children:p&&_("div",{className:"mt-3",children:p})})})})]})}),_("div",{className:`${Y.rhs} divider`,children:[r&&_("div",{className:`${Y.profile} divider`,children:[_("div",{children:_("div",{className:Y.avatar,children:[r.firstName.charAt(0).toUpperCase(),(v=r.lastName)==null?void 0:v.charAt(0).toUpperCase()]})}),_("div",{children:[_("h4",{children:[r.firstName," ",r.lastName]}),r.email&&_("p",{className:"subtext",children:r.email})]})]}),_("footer",{children:[_("div",{children:"About · Terms · Help · Privacy · Contact"}),_("div",{children:"© 2024 from Youverify Inc."})]})]})]})})}function Is(e){const{tasks:t,namespace:n,user:r,branding:o,onClose:i=()=>{},onSuccess:a,onFailure:s,presentation:l="modal",publicKey:u,metadata:d}=e,[c,p]=k(e.show),f=()=>{p(!1),i()};return _(vs,{namespace:n,publicKey:u,tasks:t,user:r,branding:o,onRequestClose:f,onSuccess:a,onFailure:s,metadata:d,children:_(Xa,{id:n,open:l==="page"?!0:c,onClose:f,transition:!0,className:`${Qa.root} ${yt.root} ${yt[l]}`,style:{"--branding-color":(o==null?void 0:o.color)??hs},children:[l==="modal"&&_("div",{onClick:()=>p(!1),role:"button",className:yt.close,children:_(is,{className:"text-white"})}),_(oo,{className:`${yt.container}`,children:_(Os,{})})]})})}class Rs{constructor(t){this.tasks=[],this.container=null,this.namespace="liveness-web-sdk",this.scriptsURLs=["https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh@0.4.1633559619/face_mesh.min.js","https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core@4.20.0/dist/tf-core.min.js","https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl@4.20.0/dist/tf-backend-webgl.min.js","https://cdn.jsdelivr.net/npm/@tensorflow-models/face-landmarks-detection@1.0.5/dist/face-landmarks-detection.min.js"],this.addedResources=[];const{presentation:n="modal"}=t;this.presentation=n,this.props=t,t.tasks&&(this.tasks=t.tasks),this.addResources(),n==="page"&&this.start()}addResources(){for(const t of this.scriptsURLs){const n=document.createElement("script");n.src=t,n.async=!1,this.addedResources.push(n),document.head.appendChild(n)}}removeResources(){for(const t of this.addedResources)document.head.removeChild(t)}validateOptions(){if(!this.tasks)throw new Error("Tasks cannot be empty!");if(!this.props.publicKey)throw new Error("A Public Key is required");if(this.props.user&&!this.props.user.firstName)throw new Error("First Name is required when User object is supplied")}async start(t){t&&(this.tasks=t),this.validateOptions(),this.container=document.createElement("div"),document.body.appendChild(this.container),Fe(_(Is,{namespace:this.namespace,publicKey:this.props.publicKey,presentation:this.props.presentation,show:!0,tasks:this.tasks,user:this.props.user,branding:this.props.branding,onClose:()=>this.close(),onSuccess:this.props.onSuccess,onFailure:this.props.onFailure,metadata:this.props.metadata}),this.container)}close(){this.container&&this.presentation!=="page"&&document.body.removeChild(this.container),this.props.onClose&&this.props.onClose()}terminate(){this.removeResources()}}return Rs});
|