youverify-liveness-web 0.1.9 → 0.1.10
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 +1031 -1020
- package/dist/index.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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{--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: }.yvlw-absolute{position:absolute}.yvlw-m-0{margin:0}.yvlw-mx-auto{margin-left:auto;margin-right:auto}.yvlw-mb-12{margin-bottom:3rem}.yvlw-mt-12{margin-top:3rem}.yvlw-mt-3{margin-top:.75rem}.yvlw-flex{display:flex}.yvlw-hidden{display:none}.yvlw-h-10{height:2.5rem}.yvlw-h-20{height:5rem}.yvlw-h-3{height:.75rem}.yvlw-h-4{height:1rem}.yvlw-h-5{height:1.25rem}.yvlw-h-7{height:1.75rem}.yvlw-h-full{height:100%}.yvlw-w-10{width:2.5rem}.yvlw-w-4{width:1rem}.yvlw-w-5{width:1.25rem}.yvlw-w-7{width:1.75rem}.yvlw-w-full{width:100%}.yvlw-flex-1{flex:1 1 0%}.yvlw--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))}.yvlw--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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-flex-col{flex-direction:column}.yvlw-items-center{align-items:center}.yvlw-justify-center{justify-content:center}.yvlw-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)))}.yvlw-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)))}.yvlw-p-0{padding:0}.yvlw-text-xs{font-size:.75rem;line-height:1rem}.yvlw-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.yvlw-opacity-0{opacity:0}.yvlw-opacity-100{opacity:1}.yvlw-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}.yvlw-duration-200{transition-duration:.2s}.yvlw-duration-300{transition-duration:.3s}.yvlw-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\\:yvlw-block:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:block}.dark\\:yvlw-hidden:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:none}._root_1hpzn_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;min-height:100vh;min-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_1hpzn_1[data-closed]{opacity:0}._root_1hpzn_1._modal_1hpzn_10{background-color:#0000004d}@media (min-width: 768px){._root_1hpzn_1._modal_1hpzn_10{padding:1rem}._root_1hpzn_1._modal_1hpzn_10 ._container_1hpzn_13{border-radius:.75rem}._root_1hpzn_1._page_1hpzn_16{padding:0}}._root_1hpzn_1 ._close_1hpzn_19{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_1hpzn_1 ._close_1hpzn_19 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1hpzn_1 ._close_1hpzn_19 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_1hpzn_1 ._container_1hpzn_13{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_1hpzn_1 ._container_1hpzn_13: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_vqy7d_1{height:100%}._root_vqy7d_1 ._container_vqy7d_4{display:flex;height:100%}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:none;width:20%;flex-direction:column;justify-content:space-between}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:flex}}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{padding-top:.75rem;padding-bottom:.75rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11{padding-left:1.5rem;padding-right:1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol{position:relative;margin:0;list-style-type:none;padding:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li{counter-increment:item;margin-bottom:24px;position:relative;font-size:.875rem;line-height:1.25rem;display:flex;align-items:center}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{content:counter(item);flex-shrink:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32{font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39{font-weight:500;text-decoration-line:line-through}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{top:28px;bottom:-24px;left:14px;content:"";position:absolute;width:1px}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:last-child:after{content:none}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 footer{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:none;width:20%}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{padding-top:.75rem;padding-bottom:.75rem}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:block}}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65{display:flex;align-items:center;gap:.5rem;padding:1rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1.75rem;font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 p{margin-top:0;margin-bottom:0;font-size:.75rem;line-height:1rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{flex:1 1 0%}@media (min-width: 768px){._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{padding-top:1rem;padding-bottom:1rem}}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84{max-width:500px}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._completed_vqy7d_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_bcsvc_1{position:relative;height:100%;width:100%}._root_bcsvc_1 video{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;transform:scaleX(-1)}._container_mcmsr_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_mcmsr_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_mcmsr_1{z-index:1}._container_mcmsr_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_mcmsr_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_mcmsr_1:before{transition:opacity .3s linear}._container_mcmsr_1._focused_mcmsr_12:before{opacity:1}._container_mcmsr_1 ._progress_mcmsr_15{position:relative;height:280px;width:280px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid gray}._container_mcmsr_1 ._progress_mcmsr_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_mcmsr_1 ._progress_mcmsr_15 div._completed_mcmsr_36{width:20px;background-color:#07da63}._container_mcmsr_1 ._marker_mcmsr_40{position:relative;width:280px;height:280px}._container_mcmsr_1 ._marker_mcmsr_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_mcmsr_1 ._marker_mcmsr_40>div:first-child{top:-.25rem;left:-.25rem;border-top-left-radius:50%;border-bottom-width:0px;border-right-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:nth-child(2){top:-.25rem;right:-.25rem;border-top-right-radius:50%;border-bottom-width:0px;border-left-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:nth-child(3){bottom:-.25rem;left:-.25rem;border-bottom-left-radius:50%;border-top-width:0px;border-right-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:last-child{bottom:-.25rem;right:-.25rem;border-bottom-right-radius:50%;border-top-width:0px;border-left-width:0px}._root_1psx5_1{height:100%;text-align:center}._root_1psx5_1 ._container_1psx5_4{position:relative;height:100%}._root_1psx5_1 ._container_1psx5_4 ._progress_1psx5_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_1psx5_1 ._container_1psx5_4 ._intro_1psx5_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_1psx5_1 ._container_1psx5_4 ._content_1psx5_15{height:75%;width:100%}._root_1psx5_1 ._container_1psx5_4 ._branding_1psx5_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_1psx5_1 ._container_1psx5_4 ._branding_1psx5_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_1psx5_1 ._container_1psx5_4 ._instructionsContainer_1psx5_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_1psx5_1 ._container_1psx5_4 ._instructionsContainer_1psx5_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_1psx5_1 ._container_1psx5_4 ._instructions_1psx5_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_1psx5_1 ._container_1psx5_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_1psx5_1 ._container_1psx5_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_1psx5_1 ._container_1psx5_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_1psx5_1 ._container_1psx5_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_1psx5_1 ._container_1psx5_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1j21c_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_1j21c_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_1j21c_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_1j21c_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_1j21c_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_1j21c_1 button ._spinner_1j21c_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_1j21c_18 .7s linear infinite}@keyframes _spin_1j21c_18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_1j21c_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1j21c_1 button:hover ._spinner_1j21c_18{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._root_thujo_1{position:absolute;top:0;right:0;bottom:0;left:0}._root_thujo_1 ._sticker_thujo_4{position:absolute}._root_thujo_1 ._sticker_thujo_4._no_thujo_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_thujo_1 ._sticker_thujo_4._yes_thujo_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(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
var Ye, T, tr,
|
|
3
|
-
function
|
|
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{--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: }.yvlw-absolute{position:absolute}.yvlw-m-0{margin:0}.yvlw-mx-auto{margin-left:auto;margin-right:auto}.yvlw-mb-12{margin-bottom:3rem}.yvlw-mt-12{margin-top:3rem}.yvlw-mt-3{margin-top:.75rem}.yvlw-flex{display:flex}.yvlw-hidden{display:none}.yvlw-h-10{height:2.5rem}.yvlw-h-20{height:5rem}.yvlw-h-3{height:.75rem}.yvlw-h-4{height:1rem}.yvlw-h-5{height:1.25rem}.yvlw-h-7{height:1.75rem}.yvlw-h-full{height:100%}.yvlw-w-10{width:2.5rem}.yvlw-w-4{width:1rem}.yvlw-w-5{width:1.25rem}.yvlw-w-7{width:1.75rem}.yvlw-w-full{width:100%}.yvlw-flex-1{flex:1 1 0%}.yvlw--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))}.yvlw--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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-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))}.yvlw-flex-col{flex-direction:column}.yvlw-items-center{align-items:center}.yvlw-justify-center{justify-content:center}.yvlw-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)))}.yvlw-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)))}.yvlw-p-0{padding:0}.yvlw-text-xs{font-size:.75rem;line-height:1rem}.yvlw-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.yvlw-opacity-0{opacity:0}.yvlw-opacity-100{opacity:1}.yvlw-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}.yvlw-duration-200{transition-duration:.2s}.yvlw-duration-300{transition-duration:.3s}.yvlw-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\\:yvlw-block:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:block}.dark\\:yvlw-hidden:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:none}._root_1hpzn_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;min-height:100vh;min-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_1hpzn_1[data-closed]{opacity:0}._root_1hpzn_1._modal_1hpzn_10{background-color:#0000004d}@media (min-width: 768px){._root_1hpzn_1._modal_1hpzn_10{padding:1rem}._root_1hpzn_1._modal_1hpzn_10 ._container_1hpzn_13{border-radius:.75rem}._root_1hpzn_1._page_1hpzn_16{padding:0}}._root_1hpzn_1 ._close_1hpzn_19{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_1hpzn_1 ._close_1hpzn_19 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1hpzn_1 ._close_1hpzn_19 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_1hpzn_1 ._container_1hpzn_13{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_1hpzn_1 ._container_1hpzn_13: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_vqy7d_1{height:100%}._root_vqy7d_1 ._container_vqy7d_4{display:flex;height:100%}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:none;width:20%;flex-direction:column;justify-content:space-between}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:flex}}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{padding-top:.75rem;padding-bottom:.75rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11{padding-left:1.5rem;padding-right:1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol{position:relative;margin:0;list-style-type:none;padding:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li{counter-increment:item;margin-bottom:24px;position:relative;font-size:.875rem;line-height:1.25rem;display:flex;align-items:center}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{content:counter(item);flex-shrink:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32{font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39{font-weight:500;text-decoration-line:line-through}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{top:28px;bottom:-24px;left:14px;content:"";position:absolute;width:1px}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:last-child:after{content:none}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 footer{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:none;width:20%}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{padding-top:.75rem;padding-bottom:.75rem}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:block}}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65{display:flex;align-items:center;gap:.5rem;padding:1rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1.75rem;font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 p{margin-top:0;margin-bottom:0;font-size:.75rem;line-height:1rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{flex:1 1 0%}@media (min-width: 768px){._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{padding-top:1rem;padding-bottom:1rem}}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_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_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84{max-width:500px}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._completed_vqy7d_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_bcsvc_1{position:relative;height:100%;width:100%}._root_bcsvc_1 video{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;transform:scaleX(-1)}._container_mcmsr_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_mcmsr_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_mcmsr_1{z-index:1}._container_mcmsr_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_mcmsr_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_mcmsr_1:before{transition:opacity .3s linear}._container_mcmsr_1._focused_mcmsr_12:before{opacity:1}._container_mcmsr_1 ._progress_mcmsr_15{position:relative;height:280px;width:280px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid gray}._container_mcmsr_1 ._progress_mcmsr_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_mcmsr_1 ._progress_mcmsr_15 div._completed_mcmsr_36{width:20px;background-color:#07da63}._container_mcmsr_1 ._marker_mcmsr_40{position:relative;width:280px;height:280px}._container_mcmsr_1 ._marker_mcmsr_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_mcmsr_1 ._marker_mcmsr_40>div:first-child{top:-.25rem;left:-.25rem;border-top-left-radius:50%;border-bottom-width:0px;border-right-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:nth-child(2){top:-.25rem;right:-.25rem;border-top-right-radius:50%;border-bottom-width:0px;border-left-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:nth-child(3){bottom:-.25rem;left:-.25rem;border-bottom-left-radius:50%;border-top-width:0px;border-right-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:last-child{bottom:-.25rem;right:-.25rem;border-bottom-right-radius:50%;border-top-width:0px;border-left-width:0px}._root_1psx5_1{height:100%;text-align:center}._root_1psx5_1 ._container_1psx5_4{position:relative;height:100%}._root_1psx5_1 ._container_1psx5_4 ._progress_1psx5_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_1psx5_1 ._container_1psx5_4 ._intro_1psx5_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_1psx5_1 ._container_1psx5_4 ._content_1psx5_15{height:75%;width:100%}._root_1psx5_1 ._container_1psx5_4 ._branding_1psx5_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_1psx5_1 ._container_1psx5_4 ._branding_1psx5_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_1psx5_1 ._container_1psx5_4 ._instructionsContainer_1psx5_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_1psx5_1 ._container_1psx5_4 ._instructionsContainer_1psx5_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_1psx5_1 ._container_1psx5_4 ._instructions_1psx5_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_1psx5_1 ._container_1psx5_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_1psx5_1 ._container_1psx5_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_1psx5_1 ._container_1psx5_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_1psx5_1 ._container_1psx5_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_1psx5_1 ._container_1psx5_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1j21c_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_1j21c_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_1j21c_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_1j21c_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_1j21c_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_1j21c_1 button ._spinner_1j21c_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_1j21c_18 .7s linear infinite}@keyframes _spin_1j21c_18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_1j21c_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1j21c_1 button:hover ._spinner_1j21c_18{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._container_1vep2_1{height:100%;width:100%;border-radius:50%;border-width:2px;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_1vep2_1 .7s linear infinite}._container_1vep2_1._md_1vep2_7{height:1rem;width:1rem}._container_1vep2_1._lg_1vep2_10{height:1.75rem;width:1.75rem}@keyframes _spin_1vep2_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_thujo_1{position:absolute;top:0;right:0;bottom:0;left:0}._root_thujo_1 ._sticker_thujo_4{position:absolute}._root_thujo_1 ._sticker_thujo_4._no_thujo_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_thujo_1 ._sticker_thujo_4._yes_thujo_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(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
var Ye, T, tr, ve, En, nr, Dt, Jt, At, Ot, rr, qe = {}, or = [], wo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, pt = Array.isArray;
|
|
3
|
+
function te(e, t) {
|
|
4
4
|
for (var n in t) e[n] = t[n];
|
|
5
5
|
return e;
|
|
6
6
|
}
|
|
@@ -43,21 +43,21 @@ function ar(e) {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
function It(e) {
|
|
46
|
-
(!e.__d && (e.__d = !0) &&
|
|
46
|
+
(!e.__d && (e.__d = !0) && ve.push(e) && !at.__r++ || En !== T.debounceRendering) && ((En = T.debounceRendering) || nr)(at);
|
|
47
47
|
}
|
|
48
48
|
function at() {
|
|
49
49
|
var e, t, n, r, o, i, a, l;
|
|
50
|
-
for (
|
|
50
|
+
for (ve.sort(Dt); e = ve.shift(); ) e.__d && (t = ve.length, r = void 0, i = (o = (n = e).__v).__e, a = [], l = [], n.__P && ((r = te({}, o)).__v = o.__v + 1, T.vnode && T.vnode(r), tn(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, a, i ?? be(o), !!(32 & o.__u), l), r.__v = o.__v, r.__.__k[r.__i] = r, cr(a, r, l), r.__e != i && ar(r)), ve.length > t && ve.sort(Dt));
|
|
51
51
|
at.__r = 0;
|
|
52
52
|
}
|
|
53
53
|
function lr(e, t, n, r, o, i, a, l, s, u, d) {
|
|
54
|
-
var c,
|
|
55
|
-
for (n.__d = s,
|
|
56
|
-
n.__d = s, n.__e =
|
|
54
|
+
var c, _, f, v, h, y = r && r.__k || or, m = t.length;
|
|
55
|
+
for (n.__d = s, bo(n, t, y), s = n.__d, c = 0; c < m; c++) (f = n.__k[c]) != null && typeof f != "boolean" && typeof f != "function" && (_ = f.__i === -1 ? qe : y[f.__i] || qe, f.__i = c, tn(e, f, _, o, i, a, l, s, u, d), v = f.__e, f.ref && _.ref != f.ref && (_.ref && nn(_.ref, null, f), d.push(f.ref, f.__c || v, f)), h == null && v != null && (h = v), 65536 & f.__u || _.__k === f.__k ? s = sr(f, s, e) : typeof f.type == "function" && f.__d !== void 0 ? s = f.__d : v && (s = v.nextSibling), f.__d = void 0, f.__u &= -196609);
|
|
56
|
+
n.__d = s, n.__e = h;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function bo(e, t, n) {
|
|
59
59
|
var r, o, i, a, l, s = t.length, u = n.length, d = u, c = 0;
|
|
60
|
-
for (e.__k = [], r = 0; r < s; 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 ? Ue(null, o, null, null, null) : pt(o) ? Ue(H, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ue(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, l =
|
|
60
|
+
for (e.__k = [], r = 0; r < s; 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 ? Ue(null, o, null, null, null) : pt(o) ? Ue(H, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ue(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, l = $o(o, n, a, d), o.__i = l, i = null, l !== -1 && (d--, (i = n[l]) && (i.__u |= 131072)), i == null || i.__v === null ? (l == -1 && c--, typeof o.type != "function" && (o.__u |= 65536)) : l !== a && (l == a - 1 ? c = l - a : l == a + 1 ? c++ : l > a ? d > s - a ? c += l - a : c-- : l < a && c++, l !== r + c && (o.__u |= 65536))) : (i = n[a]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = be(i)), Rt(i, i, !1), n[a] = null, d--);
|
|
61
61
|
if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = be(i)), Rt(i, i));
|
|
62
62
|
}
|
|
63
63
|
function sr(e, t, n) {
|
|
@@ -72,12 +72,12 @@ function sr(e, t, n) {
|
|
|
72
72
|
while (t != null && t.nodeType === 8);
|
|
73
73
|
return t;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ne(e, t) {
|
|
76
76
|
return t = t || [], e == null || typeof e == "boolean" || (pt(e) ? e.some(function(n) {
|
|
77
|
-
|
|
77
|
+
ne(n, t);
|
|
78
78
|
}) : t.push(e)), t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function $o(e, t, n, r) {
|
|
81
81
|
var o = e.key, i = e.type, a = n - 1, l = n + 1, s = t[n];
|
|
82
82
|
if (s === null || s && o == s.key && i === s.type && !(131072 & s.__u)) return n;
|
|
83
83
|
if (r > (s != null && !(131072 & s.__u) ? 1 : 0)) for (; a >= 0 || l < t.length; ) {
|
|
@@ -93,7 +93,7 @@ function bo(e, t, n, r) {
|
|
|
93
93
|
return -1;
|
|
94
94
|
}
|
|
95
95
|
function Cn(e, t, n) {
|
|
96
|
-
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" ||
|
|
96
|
+
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || wo.test(t) ? n : n + "px";
|
|
97
97
|
}
|
|
98
98
|
function nt(e, t, n, r, o) {
|
|
99
99
|
var i;
|
|
@@ -124,30 +124,30 @@ function Tn(e) {
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function tn(e, t, n, r, o, i, a, l, s, u) {
|
|
127
|
-
var d, c,
|
|
127
|
+
var d, c, _, f, v, h, y, m, w, b, g, E, x, R, O, S, L = t.type;
|
|
128
128
|
if (t.constructor !== void 0) return null;
|
|
129
129
|
128 & n.__u && (s = !!(32 & n.__u), i = [l = t.__e = n.__e]), (d = T.__b) && d(t);
|
|
130
130
|
e: if (typeof L == "function") try {
|
|
131
|
-
if (
|
|
131
|
+
if (m = t.props, w = "prototype" in L && L.prototype.render, b = (d = L.contextType) && r[d.__c], g = d ? b ? b.props.value : d.__ : r, n.__c ? y = (c = t.__c = n.__c).__ = c.__E : (w ? t.__c = c = new L(m, g) : (t.__c = c = new Z(m, g), c.constructor = L, c.render = Co), b && b.sub(c), c.props = m, c.state || (c.state = {}), c.context = g, c.__n = r, _ = c.__d = !0, c.__h = [], c._sb = []), w && c.__s == null && (c.__s = c.state), w && L.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = te({}, c.__s)), te(c.__s, L.getDerivedStateFromProps(m, c.__s))), f = c.props, v = c.state, c.__v = t, _) w && L.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), w && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
132
132
|
else {
|
|
133
|
-
if (
|
|
134
|
-
for (t.__v !== n.__v && (c.props =
|
|
133
|
+
if (w && L.getDerivedStateFromProps == null && m !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, g), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, g) === !1 || t.__v === n.__v)) {
|
|
134
|
+
for (t.__v !== n.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(U) {
|
|
135
135
|
U && (U.__ = t);
|
|
136
136
|
}), E = 0; E < c._sb.length; E++) c.__h.push(c._sb[E]);
|
|
137
137
|
c._sb = [], c.__h.length && a.push(c);
|
|
138
138
|
break e;
|
|
139
139
|
}
|
|
140
|
-
c.componentWillUpdate != null && c.componentWillUpdate(
|
|
141
|
-
c.componentDidUpdate(f,
|
|
140
|
+
c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, g), w && c.componentDidUpdate != null && c.__h.push(function() {
|
|
141
|
+
c.componentDidUpdate(f, v, h);
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
if (c.context =
|
|
145
|
-
for (c.state = c.__s, c.__d = !1,
|
|
144
|
+
if (c.context = g, c.props = m, c.__P = e, c.__e = !1, x = T.__r, R = 0, w) {
|
|
145
|
+
for (c.state = c.__s, c.__d = !1, x && x(t), d = c.render(c.props, c.state, c.context), O = 0; O < c._sb.length; O++) c.__h.push(c._sb[O]);
|
|
146
146
|
c._sb = [];
|
|
147
147
|
} else do
|
|
148
|
-
c.__d = !1,
|
|
149
|
-
while (c.__d && ++
|
|
150
|
-
c.state = c.__s, c.getChildContext != null && (r =
|
|
148
|
+
c.__d = !1, x && x(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
149
|
+
while (c.__d && ++R < 25);
|
|
150
|
+
c.state = c.__s, c.getChildContext != null && (r = te(te({}, r), c.getChildContext())), w && !_ && c.getSnapshotBeforeUpdate != null && (h = c.getSnapshotBeforeUpdate(f, v)), lr(e, pt(S = d != null && d.type === H && d.key == null ? d.props.children : d) ? S : [S], t, n, r, o, i, a, l, s, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), y && (c.__E = c.__ = null);
|
|
151
151
|
} catch (U) {
|
|
152
152
|
if (t.__v = null, s || i != null) {
|
|
153
153
|
for (t.__u |= s ? 160 : 32; l && l.nodeType === 8 && l.nextSibling; ) l = l.nextSibling;
|
|
@@ -172,31 +172,31 @@ function cr(e, t, n) {
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
function Eo(e, t, n, r, o, i, a, l, s) {
|
|
175
|
-
var u, d, c,
|
|
176
|
-
if (
|
|
177
|
-
for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!
|
|
175
|
+
var u, d, c, _, f, v, h, y = n.props, m = t.props, w = t.type;
|
|
176
|
+
if (w === "svg" ? o = "http://www.w3.org/2000/svg" : w === "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
|
|
177
|
+
for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!w && (w ? f.localName === w : f.nodeType === 3)) {
|
|
178
178
|
e = f, i[u] = null;
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
if (e == null) {
|
|
183
|
-
if (
|
|
184
|
-
e = document.createElementNS(o,
|
|
183
|
+
if (w === null) return document.createTextNode(m);
|
|
184
|
+
e = document.createElementNS(o, w, m.is && m), i = null, l = !1;
|
|
185
185
|
}
|
|
186
|
-
if (
|
|
186
|
+
if (w === null) y === m || l && e.data === m || (e.data = m);
|
|
187
187
|
else {
|
|
188
|
-
if (i = i && Ye.call(e.childNodes),
|
|
189
|
-
for (u in
|
|
188
|
+
if (i = i && Ye.call(e.childNodes), y = n.props || qe, !l && i != null) for (y = {}, u = 0; u < e.attributes.length; u++) y[(f = e.attributes[u]).name] = f.value;
|
|
189
|
+
for (u in y) if (f = y[u], u != "children") {
|
|
190
190
|
if (u == "dangerouslySetInnerHTML") c = f;
|
|
191
|
-
else if (u !== "key" && !(u in
|
|
192
|
-
if (u == "value" && "defaultValue" in
|
|
191
|
+
else if (u !== "key" && !(u in m)) {
|
|
192
|
+
if (u == "value" && "defaultValue" in m || u == "checked" && "defaultChecked" in m) continue;
|
|
193
193
|
nt(e, u, null, f, o);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
for (u in
|
|
196
|
+
for (u in m) f = m[u], u == "children" ? _ = f : u == "dangerouslySetInnerHTML" ? d = f : u == "value" ? v = f : u == "checked" ? h = f : u === "key" || l && typeof f != "function" || y[u] === f || nt(e, u, f, y[u], o);
|
|
197
197
|
if (d) l || c && (d.__html === c.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
|
|
198
|
-
else if (c && (e.innerHTML = ""), lr(e, pt(
|
|
199
|
-
l || (u = "value",
|
|
198
|
+
else if (c && (e.innerHTML = ""), lr(e, pt(_) ? _ : [_], t, n, r, w === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && be(n, 0), l, s), i != null) for (u = i.length; u--; ) i[u] != null && ir(i[u]);
|
|
199
|
+
l || (u = "value", v !== void 0 && (v !== e[u] || w === "progress" && !v || w === "option" && v !== y[u]) && nt(e, u, v, y[u], o), u = "checked", h !== void 0 && h !== e[u] && nt(e, u, h, y[u], o));
|
|
200
200
|
}
|
|
201
201
|
return e;
|
|
202
202
|
}
|
|
@@ -223,18 +223,18 @@ function Rt(e, t, n) {
|
|
|
223
223
|
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Rt(r[o], t, n || typeof e.type != "function");
|
|
224
224
|
n || e.__e == null || ir(e.__e), e.__c = e.__ = e.__e = e.__d = void 0;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Co(e, t, n) {
|
|
227
227
|
return this.constructor(e, n);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Pe(e, t, n) {
|
|
230
230
|
var r, o, i, a;
|
|
231
231
|
T.__ && T.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], tn(t, e = (!r && n || t).__k = X(H, null, [e]), o || qe, qe, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ye.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), cr(i, e, a);
|
|
232
232
|
}
|
|
233
233
|
function ur(e, t) {
|
|
234
|
-
|
|
234
|
+
Pe(e, t, ur);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
var r, o, i, a, l =
|
|
236
|
+
function To(e, t, n) {
|
|
237
|
+
var r, o, i, a, l = te({}, e.props);
|
|
238
238
|
for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : l[i] = t[i] === void 0 && a !== void 0 ? a[i] : t[i];
|
|
239
239
|
return arguments.length > 2 && (l.children = arguments.length > 3 ? Ye.call(arguments, 2) : n), Ue(e.type, l, r || e.key, o || e.ref, null);
|
|
240
240
|
}
|
|
@@ -270,49 +270,49 @@ Ye = or.slice, T = { __e: function(e, t, n, r) {
|
|
|
270
270
|
throw e;
|
|
271
271
|
} }, tr = 0, Z.prototype.setState = function(e, t) {
|
|
272
272
|
var n;
|
|
273
|
-
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s =
|
|
273
|
+
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), It(this));
|
|
274
274
|
}, Z.prototype.forceUpdate = function(e) {
|
|
275
275
|
this.__v && (this.__e = !0, e && this.__h.push(e), It(this));
|
|
276
|
-
}, Z.prototype.render = H,
|
|
276
|
+
}, Z.prototype.render = H, ve = [], nr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Dt = function(e, t) {
|
|
277
277
|
return e.__v.__b - t.__v.__b;
|
|
278
278
|
}, at.__r = 0, Jt = 0, At = Tn(!1), Ot = Tn(!0), rr = 0;
|
|
279
|
-
var
|
|
280
|
-
function
|
|
279
|
+
var ko = 0;
|
|
280
|
+
function p(e, t, n, r, o, i) {
|
|
281
281
|
t || (t = {});
|
|
282
282
|
var a, l, s = t;
|
|
283
283
|
if ("ref" in s) for (l in s = {}, t) l == "ref" ? a = t[l] : s[l] = t[l];
|
|
284
|
-
var u = { type: e, props: s, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --
|
|
284
|
+
var u = { type: e, props: s, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --ko, __i: -1, __u: 0, __source: o, __self: i };
|
|
285
285
|
if (typeof e == "function" && (a = e.defaultProps)) for (l in a) s[l] === void 0 && (s[l] = a[l]);
|
|
286
286
|
return T.vnode && T.vnode(u), u;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
289
|
-
function
|
|
290
|
-
|
|
288
|
+
var ie, P, Ft, kn, Me = 0, dr = [], D = T, Fn = D.__b, xn = D.__r, Sn = D.diffed, Pn = D.__c, Mn = D.unmount, Ln = D.__;
|
|
289
|
+
function Ee(e, t) {
|
|
290
|
+
D.__h && D.__h(P, e, Me || t), Me = 0;
|
|
291
291
|
var n = P.__H || (P.__H = { __: [], __h: [] });
|
|
292
292
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
293
293
|
}
|
|
294
294
|
function k(e) {
|
|
295
|
-
return
|
|
295
|
+
return Me = 1, Ke(fr, e);
|
|
296
296
|
}
|
|
297
297
|
function Ke(e, t, n) {
|
|
298
|
-
var r =
|
|
298
|
+
var r = Ee(ie++, 2);
|
|
299
299
|
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : fr(void 0, t), function(l) {
|
|
300
300
|
var s = r.__N ? r.__N[0] : r.__[0], u = r.t(s, l);
|
|
301
301
|
s !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
302
302
|
}], r.__c = P, !P.u)) {
|
|
303
303
|
var o = function(l, s, u) {
|
|
304
304
|
if (!r.__c.__H) return !0;
|
|
305
|
-
var d = r.__c.__H.__.filter(function(
|
|
306
|
-
return !!
|
|
305
|
+
var d = r.__c.__H.__.filter(function(_) {
|
|
306
|
+
return !!_.__c;
|
|
307
307
|
});
|
|
308
|
-
if (d.every(function(
|
|
309
|
-
return !
|
|
308
|
+
if (d.every(function(_) {
|
|
309
|
+
return !_.__N;
|
|
310
310
|
})) return !i || i.call(this, l, s, u);
|
|
311
311
|
var c = !1;
|
|
312
|
-
return d.forEach(function(
|
|
313
|
-
if (
|
|
314
|
-
var f =
|
|
315
|
-
|
|
312
|
+
return d.forEach(function(_) {
|
|
313
|
+
if (_.__N) {
|
|
314
|
+
var f = _.__[0];
|
|
315
|
+
_.__ = _.__N, _.__N = void 0, f !== _.__[0] && (c = !0);
|
|
316
316
|
}
|
|
317
317
|
}), !(!c && r.__c.props === l) && (!i || i.call(this, l, s, u));
|
|
318
318
|
};
|
|
@@ -328,21 +328,21 @@ function Ke(e, t, n) {
|
|
|
328
328
|
}
|
|
329
329
|
return r.__N || r.__;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
var n =
|
|
333
|
-
!
|
|
331
|
+
function M(e, t) {
|
|
332
|
+
var n = Ee(ie++, 3);
|
|
333
|
+
!D.__s && an(n.__H, t) && (n.__ = e, n.i = t, P.__H.__h.push(n));
|
|
334
334
|
}
|
|
335
335
|
function Ce(e, t) {
|
|
336
|
-
var n =
|
|
337
|
-
!
|
|
336
|
+
var n = Ee(ie++, 4);
|
|
337
|
+
!D.__s && an(n.__H, t) && (n.__ = e, n.i = t, P.__h.push(n));
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
return
|
|
339
|
+
function $(e) {
|
|
340
|
+
return Me = 5, F(function() {
|
|
341
341
|
return { current: e };
|
|
342
342
|
}, []);
|
|
343
343
|
}
|
|
344
344
|
function rn(e, t, n) {
|
|
345
|
-
|
|
345
|
+
Me = 6, Ce(function() {
|
|
346
346
|
return typeof e == "function" ? (e(t()), function() {
|
|
347
347
|
return e(null);
|
|
348
348
|
}) : e ? (e.current = t(), function() {
|
|
@@ -350,24 +350,24 @@ function rn(e, t, n) {
|
|
|
350
350
|
}) : void 0;
|
|
351
351
|
}, n == null ? n : n.concat(e));
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
var n =
|
|
353
|
+
function F(e, t) {
|
|
354
|
+
var n = Ee(ie++, 7);
|
|
355
355
|
return an(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
return
|
|
357
|
+
function A(e, t) {
|
|
358
|
+
return Me = 8, F(function() {
|
|
359
359
|
return e;
|
|
360
360
|
}, t);
|
|
361
361
|
}
|
|
362
362
|
function W(e) {
|
|
363
|
-
var t = P.context[e.__c], n =
|
|
363
|
+
var t = P.context[e.__c], n = Ee(ie++, 9);
|
|
364
364
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(P)), t.props.value) : e.__;
|
|
365
365
|
}
|
|
366
366
|
function on(e, t) {
|
|
367
|
-
|
|
367
|
+
D.useDebugValue && D.useDebugValue(t ? t(e) : e);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
var t =
|
|
369
|
+
function Fo(e) {
|
|
370
|
+
var t = Ee(ie++, 10), n = k();
|
|
371
371
|
return t.__ = e, P.componentDidCatch || (P.componentDidCatch = function(r, o) {
|
|
372
372
|
t.__ && t.__(r, o), n[1](r);
|
|
373
373
|
}), [n[0], function() {
|
|
@@ -375,7 +375,7 @@ function ko(e) {
|
|
|
375
375
|
}];
|
|
376
376
|
}
|
|
377
377
|
function fe() {
|
|
378
|
-
var e =
|
|
378
|
+
var e = Ee(ie++, 11);
|
|
379
379
|
if (!e.__) {
|
|
380
380
|
for (var t = P.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
381
381
|
var n = t.__m || (t.__m = [0, 0]);
|
|
@@ -383,30 +383,30 @@ function fe() {
|
|
|
383
383
|
}
|
|
384
384
|
return e.__;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function xo() {
|
|
387
387
|
for (var e; e = dr.shift(); ) if (e.__P && e.__H) try {
|
|
388
388
|
e.__H.__h.forEach(it), e.__H.__h.forEach(Vt), e.__H.__h = [];
|
|
389
389
|
} catch (t) {
|
|
390
|
-
e.__H.__h = [],
|
|
390
|
+
e.__H.__h = [], D.__e(t, e.__v);
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
|
|
393
|
+
D.__b = function(e) {
|
|
394
394
|
P = null, Fn && Fn(e);
|
|
395
|
-
},
|
|
395
|
+
}, D.__ = function(e, t) {
|
|
396
396
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ln && Ln(e, t);
|
|
397
|
-
},
|
|
398
|
-
xn && xn(e),
|
|
397
|
+
}, D.__r = function(e) {
|
|
398
|
+
xn && xn(e), ie = 0;
|
|
399
399
|
var t = (P = e.__c).__H;
|
|
400
400
|
t && (Ft === P ? (t.__h = [], P.__h = [], t.__.forEach(function(n) {
|
|
401
401
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
402
|
-
})) : (t.__h.forEach(it), t.__h.forEach(Vt), t.__h = [],
|
|
403
|
-
},
|
|
402
|
+
})) : (t.__h.forEach(it), t.__h.forEach(Vt), t.__h = [], ie = 0)), Ft = P;
|
|
403
|
+
}, D.diffed = function(e) {
|
|
404
404
|
Sn && Sn(e);
|
|
405
405
|
var t = e.__c;
|
|
406
|
-
t && t.__H && (t.__H.__h.length && (dr.push(t) !== 1 && kn ===
|
|
406
|
+
t && t.__H && (t.__H.__h.length && (dr.push(t) !== 1 && kn === D.requestAnimationFrame || ((kn = D.requestAnimationFrame) || So)(xo)), t.__H.__.forEach(function(n) {
|
|
407
407
|
n.i && (n.__H = n.i), n.i = void 0;
|
|
408
408
|
})), Ft = P = null;
|
|
409
|
-
},
|
|
409
|
+
}, D.__c = function(e, t) {
|
|
410
410
|
t.some(function(n) {
|
|
411
411
|
try {
|
|
412
412
|
n.__h.forEach(it), n.__h = n.__h.filter(function(r) {
|
|
@@ -415,10 +415,10 @@ O.__b = function(e) {
|
|
|
415
415
|
} catch (r) {
|
|
416
416
|
t.some(function(o) {
|
|
417
417
|
o.__h && (o.__h = []);
|
|
418
|
-
}), t = [],
|
|
418
|
+
}), t = [], D.__e(r, n.__v);
|
|
419
419
|
}
|
|
420
420
|
}), Pn && Pn(e, t);
|
|
421
|
-
},
|
|
421
|
+
}, D.unmount = function(e) {
|
|
422
422
|
Mn && Mn(e);
|
|
423
423
|
var t, n = e.__c;
|
|
424
424
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
@@ -427,10 +427,10 @@ O.__b = function(e) {
|
|
|
427
427
|
} catch (o) {
|
|
428
428
|
t = o;
|
|
429
429
|
}
|
|
430
|
-
}), n.__H = void 0, t &&
|
|
430
|
+
}), n.__H = void 0, t && D.__e(t, n.__v));
|
|
431
431
|
};
|
|
432
432
|
var Nn = typeof requestAnimationFrame == "function";
|
|
433
|
-
function
|
|
433
|
+
function So(e) {
|
|
434
434
|
var t, n = function() {
|
|
435
435
|
clearTimeout(r), Nn && cancelAnimationFrame(t), setTimeout(e);
|
|
436
436
|
}, r = setTimeout(n, 100);
|
|
@@ -464,7 +464,7 @@ function Ut(e, t) {
|
|
|
464
464
|
function lt(e, t) {
|
|
465
465
|
this.props = e, this.context = t;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function _r(e, t) {
|
|
468
468
|
function n(o) {
|
|
469
469
|
var i = this.props.ref, a = i == o.ref;
|
|
470
470
|
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Ut(this.props, o);
|
|
@@ -477,32 +477,32 @@ function vr(e, t) {
|
|
|
477
477
|
(lt.prototype = new Z()).isPureReactComponent = !0, lt.prototype.shouldComponentUpdate = function(e, t) {
|
|
478
478
|
return Ut(this.props, e) || Ut(this.state, t);
|
|
479
479
|
};
|
|
480
|
-
var
|
|
480
|
+
var Hn = T.__b;
|
|
481
481
|
T.__b = function(e) {
|
|
482
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
482
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Hn && Hn(e);
|
|
483
483
|
};
|
|
484
|
-
var
|
|
484
|
+
var Po = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
485
485
|
function ln(e) {
|
|
486
486
|
function t(n) {
|
|
487
487
|
var r = pr({}, n);
|
|
488
488
|
return delete r.ref, e(r, n.ref || null);
|
|
489
489
|
}
|
|
490
|
-
return t.$$typeof =
|
|
490
|
+
return t.$$typeof = Po, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
491
491
|
}
|
|
492
|
-
var
|
|
493
|
-
return e == null ? null :
|
|
494
|
-
},
|
|
495
|
-
return e ?
|
|
492
|
+
var Dn = function(e, t) {
|
|
493
|
+
return e == null ? null : ne(ne(e).map(t));
|
|
494
|
+
}, vr = { map: Dn, forEach: Dn, count: function(e) {
|
|
495
|
+
return e ? ne(e).length : 0;
|
|
496
496
|
}, only: function(e) {
|
|
497
|
-
var t =
|
|
497
|
+
var t = ne(e);
|
|
498
498
|
if (t.length !== 1) throw "Children.only";
|
|
499
499
|
return t[0];
|
|
500
|
-
}, toArray:
|
|
500
|
+
}, toArray: ne }, Mo = T.__e;
|
|
501
501
|
T.__e = function(e, t, n, r) {
|
|
502
502
|
if (e.then) {
|
|
503
503
|
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);
|
|
504
504
|
}
|
|
505
|
-
|
|
505
|
+
Mo(e, t, n, r);
|
|
506
506
|
};
|
|
507
507
|
var An = T.unmount;
|
|
508
508
|
function hr(e, t, n) {
|
|
@@ -537,7 +537,7 @@ function gr(e) {
|
|
|
537
537
|
}
|
|
538
538
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Se() {
|
|
541
541
|
this.u = null, this.o = null;
|
|
542
542
|
}
|
|
543
543
|
T.unmount = function(e) {
|
|
@@ -581,15 +581,15 @@ var On = function(e, t, n) {
|
|
|
581
581
|
e.u = n = n[2];
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
function
|
|
584
|
+
function Lo(e) {
|
|
585
585
|
return this.getChildContext = function() {
|
|
586
586
|
return e.context;
|
|
587
587
|
}, e.children;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function No(e) {
|
|
590
590
|
var t = this, n = e.i;
|
|
591
591
|
t.componentWillUnmount = function() {
|
|
592
|
-
|
|
592
|
+
Pe(null, t.l), t.l = null, t.i = null;
|
|
593
593
|
}, t.i && t.i !== n && t.componentWillUnmount(), t.l || (t.i = n, t.l = { nodeType: 1, parentNode: n, childNodes: [], contains: function() {
|
|
594
594
|
return !0;
|
|
595
595
|
}, appendChild: function(r) {
|
|
@@ -598,13 +598,13 @@ function Lo(e) {
|
|
|
598
598
|
this.childNodes.push(r), t.i.appendChild(r);
|
|
599
599
|
}, removeChild: function(r) {
|
|
600
600
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
601
|
-
} }),
|
|
601
|
+
} }), Pe(X(Lo, { context: t.context }, e.__v), t.l);
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
var n = X(
|
|
603
|
+
function _t(e, t) {
|
|
604
|
+
var n = X(No, { __v: e, i: t });
|
|
605
605
|
return n.containerInfo = t, n;
|
|
606
606
|
}
|
|
607
|
-
(
|
|
607
|
+
(Se.prototype = new Z()).__a = function(e) {
|
|
608
608
|
var t = this, n = yr(t.__v), r = t.o.get(e);
|
|
609
609
|
return r[0]++, function(o) {
|
|
610
610
|
var i = function() {
|
|
@@ -612,25 +612,25 @@ function vt(e, t) {
|
|
|
612
612
|
};
|
|
613
613
|
n ? n(i) : i();
|
|
614
614
|
};
|
|
615
|
-
},
|
|
615
|
+
}, Se.prototype.render = function(e) {
|
|
616
616
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
617
|
-
var t =
|
|
617
|
+
var t = ne(e.children);
|
|
618
618
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
619
619
|
for (var n = t.length; n--; ) this.o.set(t[n], this.u = [1, 0, this.u]);
|
|
620
620
|
return e.children;
|
|
621
|
-
},
|
|
621
|
+
}, Se.prototype.componentDidUpdate = Se.prototype.componentDidMount = function() {
|
|
622
622
|
var e = this;
|
|
623
623
|
this.o.forEach(function(t, n) {
|
|
624
624
|
On(e, n, t);
|
|
625
625
|
});
|
|
626
626
|
};
|
|
627
|
-
var wr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103,
|
|
627
|
+
var wr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ho = /^(?: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]/, Do = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Ao = /[A-Z0-9]/g, Oo = typeof document < "u", Io = function(e) {
|
|
628
628
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
629
629
|
};
|
|
630
630
|
function br(e, t, n) {
|
|
631
|
-
return t.__k == null && (t.textContent = ""),
|
|
631
|
+
return t.__k == null && (t.textContent = ""), Pe(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function $r(e, t, n) {
|
|
634
634
|
return ur(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
635
635
|
}
|
|
636
636
|
Z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
@@ -641,18 +641,18 @@ Z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
|
|
|
641
641
|
} });
|
|
642
642
|
});
|
|
643
643
|
var In = T.event;
|
|
644
|
-
function Io() {
|
|
645
|
-
}
|
|
646
644
|
function Ro() {
|
|
647
|
-
return this.cancelBubble;
|
|
648
645
|
}
|
|
649
646
|
function Vo() {
|
|
647
|
+
return this.cancelBubble;
|
|
648
|
+
}
|
|
649
|
+
function Uo() {
|
|
650
650
|
return this.defaultPrevented;
|
|
651
651
|
}
|
|
652
652
|
T.event = function(e) {
|
|
653
|
-
return In && (e = In(e)), e.persist =
|
|
653
|
+
return In && (e = In(e)), e.persist = Ro, e.isPropagationStopped = Vo, e.isDefaultPrevented = Uo, e.nativeEvent = e;
|
|
654
654
|
};
|
|
655
|
-
var sn,
|
|
655
|
+
var sn, Wo = { enumerable: !1, configurable: !0, get: function() {
|
|
656
656
|
return this.class;
|
|
657
657
|
} }, Rn = T.vnode;
|
|
658
658
|
T.vnode = function(e) {
|
|
@@ -660,16 +660,16 @@ T.vnode = function(e) {
|
|
|
660
660
|
var n = t.props, r = t.type, o = {};
|
|
661
661
|
for (var i in n) {
|
|
662
662
|
var a = n[i];
|
|
663
|
-
if (!(i === "value" && "defaultValue" in n && a == null ||
|
|
663
|
+
if (!(i === "value" && "defaultValue" in n && a == null || Oo && i === "children" && r === "noscript" || i === "class" || i === "className")) {
|
|
664
664
|
var l = i.toLowerCase();
|
|
665
|
-
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : l === "translate" && a === "no" ? a = !1 : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" ||
|
|
665
|
+
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : l === "translate" && a === "no" ? a = !1 : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || Io(n.type) ? l === "onfocus" ? i = "onfocusin" : l === "onblur" ? i = "onfocusout" : Do.test(i) ? i = l : r.indexOf("-") === -1 && Ho.test(i) ? i = i.replace(Ao, "-$&").toLowerCase() : a === null && (a = void 0) : l = i = "oninput", l === "oninput" && o[i = l] && (i = "oninputCapture"), o[i] = a;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
r == "select" && o.multiple && Array.isArray(o.value) && (o.value =
|
|
668
|
+
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ne(n.children).forEach(function(s) {
|
|
669
669
|
s.props.selected = o.value.indexOf(s.props.value) != -1;
|
|
670
|
-
})), r == "select" && o.defaultValue != null && (o.value =
|
|
670
|
+
})), r == "select" && o.defaultValue != null && (o.value = ne(n.children).forEach(function(s) {
|
|
671
671
|
s.props.selected = o.multiple ? o.defaultValue.indexOf(s.props.value) != -1 : o.defaultValue == s.props.value;
|
|
672
|
-
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className",
|
|
672
|
+
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Wo)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
673
673
|
}(e), e.$$typeof = wr, Rn && Rn(e);
|
|
674
674
|
};
|
|
675
675
|
var Vn = T.__r;
|
|
@@ -682,26 +682,26 @@ T.diffed = function(e) {
|
|
|
682
682
|
var t = e.props, n = e.__e;
|
|
683
683
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), sn = null;
|
|
684
684
|
};
|
|
685
|
-
var
|
|
685
|
+
var Er = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
686
686
|
return sn.__n[e.__c].props.value;
|
|
687
|
-
}, useCallback:
|
|
687
|
+
}, useCallback: A, useContext: W, useDebugValue: on, useDeferredValue: dn, useEffect: M, useId: fe, useImperativeHandle: rn, useInsertionEffect: pn, useLayoutEffect: Ce, useMemo: F, useReducer: Ke, useRef: $, useState: k, useSyncExternalStore: vt, useTransition: fn } } }, jo = "17.0.2";
|
|
688
688
|
function Cr(e) {
|
|
689
689
|
return X.bind(null, e);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Ne(e) {
|
|
692
692
|
return !!e && e.$$typeof === wr;
|
|
693
693
|
}
|
|
694
694
|
function Tr(e) {
|
|
695
|
-
return
|
|
695
|
+
return Ne(e) && e.type === H;
|
|
696
696
|
}
|
|
697
697
|
function kr(e) {
|
|
698
698
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
699
699
|
}
|
|
700
700
|
function cn(e) {
|
|
701
|
-
return
|
|
701
|
+
return Ne(e) ? To.apply(null, arguments) : e;
|
|
702
702
|
}
|
|
703
703
|
function Fr(e) {
|
|
704
|
-
return !!e.__k && (
|
|
704
|
+
return !!e.__k && (Pe(null, e), !0);
|
|
705
705
|
}
|
|
706
706
|
function xr(e) {
|
|
707
707
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
@@ -720,12 +720,12 @@ function dn(e) {
|
|
|
720
720
|
function fn() {
|
|
721
721
|
return [!1, un];
|
|
722
722
|
}
|
|
723
|
-
var pn = Ce, Lr =
|
|
724
|
-
function
|
|
723
|
+
var pn = Ce, Lr = Ne;
|
|
724
|
+
function vt(e, t) {
|
|
725
725
|
var n = t(), r = k({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
726
726
|
return Ce(function() {
|
|
727
727
|
o.__ = n, o.v = t, xt(o) && i({ h: o });
|
|
728
|
-
}, [e, n, t]),
|
|
728
|
+
}, [e, n, t]), M(function() {
|
|
729
729
|
return xt(o) && i({ h: o }), e(function() {
|
|
730
730
|
xt(o) && i({ h: o });
|
|
731
731
|
});
|
|
@@ -740,64 +740,64 @@ function xt(e) {
|
|
|
740
740
|
return !0;
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
var
|
|
743
|
+
var C = { useState: k, useId: fe, useReducer: Ke, useEffect: M, useLayoutEffect: Ce, useInsertionEffect: pn, useTransition: fn, useDeferredValue: dn, useSyncExternalStore: vt, startTransition: un, useRef: $, useImperativeHandle: rn, useMemo: F, useCallback: A, useContext: W, useDebugValue: on, version: "17.0.2", Children: vr, render: br, hydrate: $r, unmountComponentAtNode: Fr, createPortal: _t, createElement: X, createContext: q, createFactory: Cr, cloneElement: cn, createRef: en, Fragment: H, isValidElement: Ne, isElement: Lr, isFragment: Tr, isMemo: kr, findDOMNode: xr, Component: Z, PureComponent: lt, memo: _r, forwardRef: ln, flushSync: Pr, unstable_batchedUpdates: Sr, StrictMode: Mr, Suspense: We, SuspenseList: Se, lazy: gr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Er };
|
|
744
744
|
const Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
745
745
|
__proto__: null,
|
|
746
|
-
Children:
|
|
746
|
+
Children: vr,
|
|
747
747
|
Component: Z,
|
|
748
748
|
Fragment: H,
|
|
749
749
|
PureComponent: lt,
|
|
750
750
|
StrictMode: Mr,
|
|
751
751
|
Suspense: We,
|
|
752
|
-
SuspenseList:
|
|
753
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
752
|
+
SuspenseList: Se,
|
|
753
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Er,
|
|
754
754
|
cloneElement: cn,
|
|
755
755
|
createContext: q,
|
|
756
756
|
createElement: X,
|
|
757
757
|
createFactory: Cr,
|
|
758
|
-
createPortal:
|
|
758
|
+
createPortal: _t,
|
|
759
759
|
createRef: en,
|
|
760
|
-
default:
|
|
760
|
+
default: C,
|
|
761
761
|
findDOMNode: xr,
|
|
762
762
|
flushSync: Pr,
|
|
763
763
|
forwardRef: ln,
|
|
764
|
-
hydrate:
|
|
764
|
+
hydrate: $r,
|
|
765
765
|
isElement: Lr,
|
|
766
766
|
isFragment: Tr,
|
|
767
767
|
isMemo: kr,
|
|
768
|
-
isValidElement:
|
|
768
|
+
isValidElement: Ne,
|
|
769
769
|
lazy: gr,
|
|
770
|
-
memo:
|
|
770
|
+
memo: _r,
|
|
771
771
|
render: br,
|
|
772
772
|
startTransition: un,
|
|
773
773
|
unmountComponentAtNode: Fr,
|
|
774
774
|
unstable_batchedUpdates: Sr,
|
|
775
|
-
useCallback:
|
|
775
|
+
useCallback: A,
|
|
776
776
|
useContext: W,
|
|
777
777
|
useDebugValue: on,
|
|
778
778
|
useDeferredValue: dn,
|
|
779
|
-
useEffect:
|
|
780
|
-
useErrorBoundary:
|
|
779
|
+
useEffect: M,
|
|
780
|
+
useErrorBoundary: Fo,
|
|
781
781
|
useId: fe,
|
|
782
782
|
useImperativeHandle: rn,
|
|
783
783
|
useInsertionEffect: pn,
|
|
784
784
|
useLayoutEffect: Ce,
|
|
785
|
-
useMemo:
|
|
785
|
+
useMemo: F,
|
|
786
786
|
useReducer: Ke,
|
|
787
|
-
useRef:
|
|
787
|
+
useRef: $,
|
|
788
788
|
useState: k,
|
|
789
|
-
useSyncExternalStore:
|
|
789
|
+
useSyncExternalStore: vt,
|
|
790
790
|
useTransition: fn,
|
|
791
|
-
version:
|
|
792
|
-
}, Symbol.toStringTag, { value: "Module" })), Nr = typeof document < "u" ?
|
|
791
|
+
version: jo
|
|
792
|
+
}, Symbol.toStringTag, { value: "Module" })), Nr = typeof document < "u" ? C.useLayoutEffect : () => {
|
|
793
793
|
};
|
|
794
|
-
function
|
|
795
|
-
const t =
|
|
794
|
+
function zo(e) {
|
|
795
|
+
const t = $(null);
|
|
796
796
|
return Nr(() => {
|
|
797
797
|
t.current = e;
|
|
798
798
|
}, [
|
|
799
799
|
e
|
|
800
|
-
]),
|
|
800
|
+
]), A((...n) => {
|
|
801
801
|
const r = t.current;
|
|
802
802
|
return r == null ? void 0 : r(...n);
|
|
803
803
|
}, []);
|
|
@@ -806,24 +806,24 @@ const Ge = (e) => {
|
|
|
806
806
|
var t;
|
|
807
807
|
return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
808
808
|
}, me = (e) => e && "window" in e && e.window === e ? e : Ge(e).defaultView || window;
|
|
809
|
-
function
|
|
809
|
+
function Bo(e) {
|
|
810
810
|
var t;
|
|
811
811
|
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);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function qo(e) {
|
|
814
814
|
var t;
|
|
815
815
|
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;
|
|
816
816
|
}
|
|
817
|
-
function qo() {
|
|
818
|
-
return Bo(/^Mac/i);
|
|
819
|
-
}
|
|
820
817
|
function Yo() {
|
|
821
|
-
return
|
|
818
|
+
return qo(/^Mac/i);
|
|
822
819
|
}
|
|
823
|
-
function Ko(
|
|
824
|
-
return
|
|
820
|
+
function Ko() {
|
|
821
|
+
return Bo(/Android/i);
|
|
825
822
|
}
|
|
826
|
-
|
|
823
|
+
function Go(e) {
|
|
824
|
+
return e.mozInputSource === 0 && e.isTrusted ? !0 : Ko() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
825
|
+
}
|
|
826
|
+
class Zo {
|
|
827
827
|
isDefaultPrevented() {
|
|
828
828
|
return this.nativeEvent.defaultPrevented;
|
|
829
829
|
}
|
|
@@ -842,8 +842,8 @@ class Go {
|
|
|
842
842
|
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;
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
let t =
|
|
845
|
+
function Hr(e) {
|
|
846
|
+
let t = $({
|
|
847
847
|
isFocused: !1,
|
|
848
848
|
observer: null
|
|
849
849
|
});
|
|
@@ -853,14 +853,14 @@ function Dr(e) {
|
|
|
853
853
|
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
854
854
|
};
|
|
855
855
|
}, []);
|
|
856
|
-
let n =
|
|
856
|
+
let n = zo((r) => {
|
|
857
857
|
e == null || e(r);
|
|
858
858
|
});
|
|
859
|
-
return
|
|
859
|
+
return A((r) => {
|
|
860
860
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
861
861
|
t.current.isFocused = !0;
|
|
862
862
|
let o = r.target, i = (a) => {
|
|
863
|
-
t.current.isFocused = !1, o.disabled && n(new
|
|
863
|
+
t.current.isFocused = !1, o.disabled && n(new Zo("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
864
864
|
};
|
|
865
865
|
o.addEventListener("focusout", i, {
|
|
866
866
|
once: !0
|
|
@@ -887,15 +887,15 @@ function Dr(e) {
|
|
|
887
887
|
n
|
|
888
888
|
]);
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Xo(e) {
|
|
891
891
|
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
|
|
892
|
-
const i =
|
|
892
|
+
const i = A((s) => {
|
|
893
893
|
if (s.target === s.currentTarget)
|
|
894
894
|
return r && r(s), o && o(!1), !0;
|
|
895
895
|
}, [
|
|
896
896
|
r,
|
|
897
897
|
o
|
|
898
|
-
]), a =
|
|
898
|
+
]), a = Hr(i), l = A((s) => {
|
|
899
899
|
const u = Ge(s.target);
|
|
900
900
|
s.target === s.currentTarget && u.activeElement === s.target && (n && n(s), o && o(!0), a(s));
|
|
901
901
|
}, [
|
|
@@ -910,39 +910,39 @@ function Zo(e) {
|
|
|
910
910
|
}
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
let Ze = null, Wt = /* @__PURE__ */ new Set(), je = /* @__PURE__ */ new Map(),
|
|
914
|
-
const
|
|
913
|
+
let Ze = null, Wt = /* @__PURE__ */ new Set(), je = /* @__PURE__ */ new Map(), $e = !1, jt = !1;
|
|
914
|
+
const Qo = {
|
|
915
915
|
Tab: !0,
|
|
916
916
|
Escape: !0
|
|
917
917
|
};
|
|
918
|
-
function
|
|
918
|
+
function _n(e, t) {
|
|
919
919
|
for (let n of Wt) n(e, t);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
922
|
-
return !(e.metaKey || !
|
|
921
|
+
function Jo(e) {
|
|
922
|
+
return !(e.metaKey || !Yo() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
923
923
|
}
|
|
924
924
|
function st(e) {
|
|
925
|
-
|
|
925
|
+
$e = !0, Jo(e) && (Ze = "keyboard", _n("keyboard", e));
|
|
926
926
|
}
|
|
927
927
|
function K(e) {
|
|
928
|
-
Ze = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (
|
|
928
|
+
Ze = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && ($e = !0, _n("pointer", e));
|
|
929
929
|
}
|
|
930
|
-
function
|
|
931
|
-
|
|
930
|
+
function Dr(e) {
|
|
931
|
+
Go(e) && ($e = !0, Ze = "virtual");
|
|
932
932
|
}
|
|
933
933
|
function Ar(e) {
|
|
934
|
-
e.target === window || e.target === document || (
|
|
934
|
+
e.target === window || e.target === document || (!$e && !jt && (Ze = "virtual", _n("virtual", e)), $e = !1, jt = !1);
|
|
935
935
|
}
|
|
936
936
|
function Or() {
|
|
937
|
-
|
|
937
|
+
$e = !1, jt = !0;
|
|
938
938
|
}
|
|
939
939
|
function zt(e) {
|
|
940
940
|
if (typeof window > "u" || je.get(me(e))) return;
|
|
941
941
|
const t = me(e), n = Ge(e);
|
|
942
942
|
let r = t.HTMLElement.prototype.focus;
|
|
943
943
|
t.HTMLElement.prototype.focus = function() {
|
|
944
|
-
|
|
945
|
-
}, n.addEventListener("keydown", st, !0), n.addEventListener("keyup", st, !0), n.addEventListener("click",
|
|
944
|
+
$e = !0, r.apply(this, arguments);
|
|
945
|
+
}, n.addEventListener("keydown", st, !0), n.addEventListener("keyup", st, !0), n.addEventListener("click", Dr, !0), t.addEventListener("focus", Ar, !0), t.addEventListener("blur", Or, !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", () => {
|
|
946
946
|
Ir(e);
|
|
947
947
|
}, {
|
|
948
948
|
once: !0
|
|
@@ -952,20 +952,20 @@ function zt(e) {
|
|
|
952
952
|
}
|
|
953
953
|
const Ir = (e, t) => {
|
|
954
954
|
const n = me(e), r = Ge(e);
|
|
955
|
-
t && r.removeEventListener("DOMContentLoaded", t), je.has(n) && (n.HTMLElement.prototype.focus = je.get(n).focus, r.removeEventListener("keydown", st, !0), r.removeEventListener("keyup", st, !0), r.removeEventListener("click",
|
|
955
|
+
t && r.removeEventListener("DOMContentLoaded", t), je.has(n) && (n.HTMLElement.prototype.focus = je.get(n).focus, r.removeEventListener("keydown", st, !0), r.removeEventListener("keyup", st, !0), r.removeEventListener("click", Dr, !0), n.removeEventListener("focus", Ar, !0), n.removeEventListener("blur", Or, !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)), je.delete(n));
|
|
956
956
|
};
|
|
957
|
-
function
|
|
957
|
+
function ei(e) {
|
|
958
958
|
const t = Ge(e);
|
|
959
959
|
let n;
|
|
960
960
|
return t.readyState !== "loading" ? zt(e) : (n = () => {
|
|
961
961
|
zt(e);
|
|
962
962
|
}, t.addEventListener("DOMContentLoaded", n)), () => Ir(e, n);
|
|
963
963
|
}
|
|
964
|
-
typeof document < "u" &&
|
|
964
|
+
typeof document < "u" && ei();
|
|
965
965
|
function Rr() {
|
|
966
966
|
return Ze !== "pointer";
|
|
967
967
|
}
|
|
968
|
-
const
|
|
968
|
+
const ti = /* @__PURE__ */ new Set([
|
|
969
969
|
"checkbox",
|
|
970
970
|
"radio",
|
|
971
971
|
"range",
|
|
@@ -976,31 +976,31 @@ const ei = /* @__PURE__ */ new Set([
|
|
|
976
976
|
"submit",
|
|
977
977
|
"reset"
|
|
978
978
|
]);
|
|
979
|
-
function
|
|
979
|
+
function ni(e, t, n) {
|
|
980
980
|
var r;
|
|
981
981
|
const o = typeof window < "u" ? me(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? me(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, a = typeof window < "u" ? me(n == null ? void 0 : n.target).HTMLElement : HTMLElement, l = typeof window < "u" ? me(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
|
|
982
|
-
return e = e || (n == null ? void 0 : n.target) instanceof o && !
|
|
982
|
+
return e = e || (n == null ? void 0 : n.target) instanceof o && !ti.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 l && !Qo[n.key]);
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
zt(),
|
|
984
|
+
function ri(e, t, n) {
|
|
985
|
+
zt(), M(() => {
|
|
986
986
|
let r = (o, i) => {
|
|
987
|
-
|
|
987
|
+
ni(!!(n != null && n.isTextInput), o, i) && e(Rr());
|
|
988
988
|
};
|
|
989
989
|
return Wt.add(r), () => {
|
|
990
990
|
Wt.delete(r);
|
|
991
991
|
};
|
|
992
992
|
}, t);
|
|
993
993
|
}
|
|
994
|
-
function
|
|
995
|
-
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i =
|
|
994
|
+
function oi(e) {
|
|
995
|
+
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = $({
|
|
996
996
|
isFocusWithin: !1
|
|
997
|
-
}), a =
|
|
997
|
+
}), a = A((u) => {
|
|
998
998
|
i.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (i.current.isFocusWithin = !1, n && n(u), o && o(!1));
|
|
999
999
|
}, [
|
|
1000
1000
|
n,
|
|
1001
1001
|
o,
|
|
1002
1002
|
i
|
|
1003
|
-
]), l =
|
|
1003
|
+
]), l = Hr(a), s = A((u) => {
|
|
1004
1004
|
!i.current.isFocusWithin && document.activeElement === u.target && (r && r(u), o && o(!0), i.current.isFocusWithin = !0, l(u));
|
|
1005
1005
|
}, [
|
|
1006
1006
|
r,
|
|
@@ -1029,52 +1029,52 @@ function Bt() {
|
|
|
1029
1029
|
function jn(e) {
|
|
1030
1030
|
e.pointerType === "touch" && Bt();
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function ii() {
|
|
1033
1033
|
if (!(typeof document > "u"))
|
|
1034
1034
|
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", jn) : document.addEventListener("touchend", Bt), St++, () => {
|
|
1035
1035
|
St--, !(St > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", jn) : document.removeEventListener("touchend", Bt));
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] = k(!1), l =
|
|
1038
|
+
function ai(e) {
|
|
1039
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] = k(!1), l = $({
|
|
1040
1040
|
isHovered: !1,
|
|
1041
1041
|
ignoreEmulatedMouseEvents: !1,
|
|
1042
1042
|
pointerType: "",
|
|
1043
1043
|
target: null
|
|
1044
1044
|
}).current;
|
|
1045
|
-
|
|
1046
|
-
let { hoverProps: s, triggerHoverEnd: u } =
|
|
1047
|
-
let d = (f,
|
|
1048
|
-
if (l.pointerType =
|
|
1045
|
+
M(ii, []);
|
|
1046
|
+
let { hoverProps: s, triggerHoverEnd: u } = F(() => {
|
|
1047
|
+
let d = (f, v) => {
|
|
1048
|
+
if (l.pointerType = v, o || v === "touch" || l.isHovered || !f.currentTarget.contains(f.target)) return;
|
|
1049
1049
|
l.isHovered = !0;
|
|
1050
|
-
let
|
|
1051
|
-
l.target =
|
|
1050
|
+
let h = f.currentTarget;
|
|
1051
|
+
l.target = h, t && t({
|
|
1052
1052
|
type: "hoverstart",
|
|
1053
|
-
target:
|
|
1054
|
-
pointerType:
|
|
1053
|
+
target: h,
|
|
1054
|
+
pointerType: v
|
|
1055
1055
|
}), n && n(!0), a(!0);
|
|
1056
|
-
}, c = (f,
|
|
1057
|
-
if (l.pointerType = "", l.target = null,
|
|
1056
|
+
}, c = (f, v) => {
|
|
1057
|
+
if (l.pointerType = "", l.target = null, v === "touch" || !l.isHovered) return;
|
|
1058
1058
|
l.isHovered = !1;
|
|
1059
|
-
let
|
|
1059
|
+
let h = f.currentTarget;
|
|
1060
1060
|
r && r({
|
|
1061
1061
|
type: "hoverend",
|
|
1062
|
-
target:
|
|
1063
|
-
pointerType:
|
|
1062
|
+
target: h,
|
|
1063
|
+
pointerType: v
|
|
1064
1064
|
}), n && n(!1), a(!1);
|
|
1065
|
-
},
|
|
1066
|
-
return typeof PointerEvent < "u" ? (
|
|
1065
|
+
}, _ = {};
|
|
1066
|
+
return typeof PointerEvent < "u" ? (_.onPointerEnter = (f) => {
|
|
1067
1067
|
ct && f.pointerType === "mouse" || d(f, f.pointerType);
|
|
1068
|
-
},
|
|
1068
|
+
}, _.onPointerLeave = (f) => {
|
|
1069
1069
|
!o && f.currentTarget.contains(f.target) && c(f, f.pointerType);
|
|
1070
|
-
}) : (
|
|
1070
|
+
}) : (_.onTouchStart = () => {
|
|
1071
1071
|
l.ignoreEmulatedMouseEvents = !0;
|
|
1072
|
-
},
|
|
1072
|
+
}, _.onMouseEnter = (f) => {
|
|
1073
1073
|
!l.ignoreEmulatedMouseEvents && !ct && d(f, "mouse"), l.ignoreEmulatedMouseEvents = !1;
|
|
1074
|
-
},
|
|
1074
|
+
}, _.onMouseLeave = (f) => {
|
|
1075
1075
|
!o && f.currentTarget.contains(f.target) && c(f, "mouse");
|
|
1076
1076
|
}), {
|
|
1077
|
-
hoverProps:
|
|
1077
|
+
hoverProps: _,
|
|
1078
1078
|
triggerHoverEnd: c
|
|
1079
1079
|
};
|
|
1080
1080
|
}, [
|
|
@@ -1084,7 +1084,7 @@ function ii(e) {
|
|
|
1084
1084
|
o,
|
|
1085
1085
|
l
|
|
1086
1086
|
]);
|
|
1087
|
-
return
|
|
1087
|
+
return M(() => {
|
|
1088
1088
|
o && u({
|
|
1089
1089
|
currentTarget: l.target
|
|
1090
1090
|
}, l.pointerType);
|
|
@@ -1095,35 +1095,35 @@ function ii(e) {
|
|
|
1095
1095
|
isHovered: i
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1099
|
-
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o =
|
|
1098
|
+
function li(e = {}) {
|
|
1099
|
+
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = $({
|
|
1100
1100
|
isFocused: !1,
|
|
1101
1101
|
isFocusVisible: t || Rr()
|
|
1102
|
-
}), [i, a] = k(!1), [l, s] = k(() => o.current.isFocused && o.current.isFocusVisible), u =
|
|
1102
|
+
}), [i, a] = k(!1), [l, s] = k(() => o.current.isFocused && o.current.isFocusVisible), u = A(() => s(o.current.isFocused && o.current.isFocusVisible), []), d = A((f) => {
|
|
1103
1103
|
o.current.isFocused = f, a(f), u();
|
|
1104
1104
|
}, [
|
|
1105
1105
|
u
|
|
1106
1106
|
]);
|
|
1107
|
-
|
|
1107
|
+
ri((f) => {
|
|
1108
1108
|
o.current.isFocusVisible = f, u();
|
|
1109
1109
|
}, [], {
|
|
1110
1110
|
isTextInput: n
|
|
1111
1111
|
});
|
|
1112
|
-
let { focusProps: c } =
|
|
1112
|
+
let { focusProps: c } = Xo({
|
|
1113
1113
|
isDisabled: r,
|
|
1114
1114
|
onFocusChange: d
|
|
1115
|
-
}), { focusWithinProps:
|
|
1115
|
+
}), { focusWithinProps: _ } = oi({
|
|
1116
1116
|
isDisabled: !r,
|
|
1117
1117
|
onFocusWithinChange: d
|
|
1118
1118
|
});
|
|
1119
1119
|
return {
|
|
1120
1120
|
isFocused: i,
|
|
1121
1121
|
isFocusVisible: l,
|
|
1122
|
-
focusProps: r ?
|
|
1122
|
+
focusProps: r ? _ : c
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1126
|
-
let
|
|
1125
|
+
var si = Object.defineProperty, ci = (e, t, n) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pt = (e, t, n) => (ci(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
1126
|
+
let ui = class {
|
|
1127
1127
|
constructor() {
|
|
1128
1128
|
Pt(this, "current", this.detect()), Pt(this, "handoffState", "pending"), Pt(this, "currentId", 0);
|
|
1129
1129
|
}
|
|
@@ -1151,7 +1151,7 @@ let ci = class {
|
|
|
1151
1151
|
get isHandoffComplete() {
|
|
1152
1152
|
return this.handoffState === "complete";
|
|
1153
1153
|
}
|
|
1154
|
-
}, ge = new
|
|
1154
|
+
}, ge = new ui();
|
|
1155
1155
|
function ht(e) {
|
|
1156
1156
|
return ge.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
1157
1157
|
}
|
|
@@ -1198,40 +1198,40 @@ function pe() {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
function yt() {
|
|
1200
1200
|
let [e] = k(pe);
|
|
1201
|
-
return
|
|
1201
|
+
return M(() => () => e.dispose(), [e]), e;
|
|
1202
1202
|
}
|
|
1203
1203
|
let j = (e, t) => {
|
|
1204
|
-
ge.isServer ?
|
|
1204
|
+
ge.isServer ? M(e, t) : Ce(e, t);
|
|
1205
1205
|
};
|
|
1206
1206
|
function Te(e) {
|
|
1207
|
-
let t =
|
|
1207
|
+
let t = $(e);
|
|
1208
1208
|
return j(() => {
|
|
1209
1209
|
t.current = e;
|
|
1210
1210
|
}, [e]), t;
|
|
1211
1211
|
}
|
|
1212
|
-
let
|
|
1212
|
+
let N = function(e) {
|
|
1213
1213
|
let t = Te(e);
|
|
1214
|
-
return
|
|
1214
|
+
return C.useCallback((...n) => t.current(...n), [t]);
|
|
1215
1215
|
};
|
|
1216
|
-
function
|
|
1216
|
+
function di(e) {
|
|
1217
1217
|
let t = e.width / 2, n = e.height / 2;
|
|
1218
1218
|
return { top: e.clientY - n, right: e.clientX + t, bottom: e.clientY + n, left: e.clientX - t };
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function fi(e, t) {
|
|
1221
1221
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1224
|
-
let t =
|
|
1223
|
+
function pi({ disabled: e = !1 } = {}) {
|
|
1224
|
+
let t = $(null), [n, r] = k(!1), o = yt(), i = N(() => {
|
|
1225
1225
|
t.current = null, r(!1), o.dispose();
|
|
1226
|
-
}), a =
|
|
1226
|
+
}), a = N((l) => {
|
|
1227
1227
|
if (o.dispose(), t.current === null) {
|
|
1228
1228
|
t.current = l.currentTarget, r(!0);
|
|
1229
1229
|
{
|
|
1230
1230
|
let s = ht(l.currentTarget);
|
|
1231
1231
|
o.addEventListener(s, "pointerup", i, !1), o.addEventListener(s, "pointermove", (u) => {
|
|
1232
1232
|
if (t.current) {
|
|
1233
|
-
let d =
|
|
1234
|
-
r(
|
|
1233
|
+
let d = di(u);
|
|
1234
|
+
r(fi(d, t.current.getBoundingClientRect()));
|
|
1235
1235
|
}
|
|
1236
1236
|
}, !1), o.addEventListener(s, "pointercancel", i, !1);
|
|
1237
1237
|
}
|
|
@@ -1239,9 +1239,9 @@ function fi({ disabled: e = !1 } = {}) {
|
|
|
1239
1239
|
});
|
|
1240
1240
|
return { pressed: n, pressProps: e ? {} : { onPointerDown: a, onPointerUp: i, onClick: i } };
|
|
1241
1241
|
}
|
|
1242
|
-
let
|
|
1242
|
+
let _i = q(void 0);
|
|
1243
1243
|
function Vr() {
|
|
1244
|
-
return W(
|
|
1244
|
+
return W(_i);
|
|
1245
1245
|
}
|
|
1246
1246
|
function qt(...e) {
|
|
1247
1247
|
return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
|
|
@@ -1279,22 +1279,22 @@ function rt(e, t = {}, n, r, o) {
|
|
|
1279
1279
|
"className" in s && s.className && typeof s.className == "function" && (s.className = s.className(t)), s["aria-labelledby"] && s["aria-labelledby"] === s.id && (s["aria-labelledby"] = void 0);
|
|
1280
1280
|
let c = {};
|
|
1281
1281
|
if (t) {
|
|
1282
|
-
let
|
|
1283
|
-
for (let [
|
|
1284
|
-
if (
|
|
1282
|
+
let _ = !1, f = [];
|
|
1283
|
+
for (let [v, h] of Object.entries(t)) typeof h == "boolean" && (_ = !0), h === !0 && f.push(v.replace(/([A-Z])/g, (y) => `-${y.toLowerCase()}`));
|
|
1284
|
+
if (_) {
|
|
1285
1285
|
c["data-headlessui-state"] = f.join(" ");
|
|
1286
|
-
for (let
|
|
1286
|
+
for (let v of f) c[`data-${v}`] = "";
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
if (i === H && (Object.keys(
|
|
1290
|
-
if (Object.keys(
|
|
1291
|
-
`), "", "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((
|
|
1289
|
+
if (i === H && (Object.keys(_e(s)).length > 0 || Object.keys(_e(c)).length > 0)) if (!Ne(d) || Array.isArray(d) && d.length > 1) {
|
|
1290
|
+
if (Object.keys(_e(s)).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(_e(s)).concat(Object.keys(_e(c))).map((_) => ` - ${_}`).join(`
|
|
1291
|
+
`), "", "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((_) => ` - ${_}`).join(`
|
|
1292
1292
|
`)].join(`
|
|
1293
1293
|
`));
|
|
1294
1294
|
} else {
|
|
1295
|
-
let
|
|
1296
|
-
for (let
|
|
1297
|
-
return cn(d, Object.assign({},
|
|
1295
|
+
let _ = d.props, f = _ == null ? void 0 : _.className, v = typeof f == "function" ? (...m) => qt(f(...m), s.className) : qt(f, s.className), h = v ? { className: v } : {}, y = Ur(d.props, _e(Mt(s, ["ref"])));
|
|
1296
|
+
for (let m in c) m in y && delete c[m];
|
|
1297
|
+
return cn(d, Object.assign({}, y, c, u, { ref: o(d.ref, u.ref) }, h));
|
|
1298
1298
|
}
|
|
1299
1299
|
return X(i, Object.assign({}, Mt(s, ["ref"]), i !== H && u, i !== H && c), d);
|
|
1300
1300
|
}
|
|
@@ -1321,7 +1321,7 @@ function Ur(...e) {
|
|
|
1321
1321
|
} });
|
|
1322
1322
|
return t;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function hi(...e) {
|
|
1325
1325
|
if (e.length === 0) return {};
|
|
1326
1326
|
if (e.length === 1) return e[0];
|
|
1327
1327
|
let t = {}, n = {};
|
|
@@ -1336,7 +1336,7 @@ function z(e) {
|
|
|
1336
1336
|
var t;
|
|
1337
1337
|
return Object.assign(ln(e), { displayName: (t = e.displayName) != null ? t : e.name });
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function _e(e) {
|
|
1340
1340
|
let t = Object.assign({}, e);
|
|
1341
1341
|
for (let n in t) t[n] === void 0 && delete t[n];
|
|
1342
1342
|
return t;
|
|
@@ -1346,75 +1346,75 @@ function Mt(e, t = []) {
|
|
|
1346
1346
|
for (let r of t) r in n && delete n[r];
|
|
1347
1347
|
return n;
|
|
1348
1348
|
}
|
|
1349
|
-
let
|
|
1350
|
-
function
|
|
1349
|
+
let mi = "button";
|
|
1350
|
+
function yi(e, t) {
|
|
1351
1351
|
var n;
|
|
1352
|
-
let r = Vr(), { disabled: o = r || !1, autoFocus: i = !1, ...a } = e, { isFocusVisible: l, focusProps: s } =
|
|
1353
|
-
return Y({ ourProps: f, theirProps: a, slot:
|
|
1352
|
+
let r = Vr(), { disabled: o = r || !1, autoFocus: i = !1, ...a } = e, { isFocusVisible: l, focusProps: s } = li({ autoFocus: i }), { isHovered: u, hoverProps: d } = ai({ isDisabled: o }), { pressed: c, pressProps: _ } = pi({ disabled: o }), f = hi({ ref: t, type: (n = a.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, s, d, _), v = F(() => ({ disabled: o, hover: u, focus: l, active: c, autofocus: i }), [o, u, l, c, i]);
|
|
1353
|
+
return Y({ ourProps: f, theirProps: a, slot: v, defaultTag: mi, name: "Button" });
|
|
1354
1354
|
}
|
|
1355
|
-
let
|
|
1355
|
+
let gi = z(yi), wi = "div";
|
|
1356
1356
|
var dt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(dt || {});
|
|
1357
|
-
function
|
|
1357
|
+
function bi(e, t) {
|
|
1358
1358
|
var n;
|
|
1359
1359
|
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" } } };
|
|
1360
|
-
return Y({ ourProps: i, theirProps: o, slot: {}, defaultTag:
|
|
1360
|
+
return Y({ ourProps: i, theirProps: o, slot: {}, defaultTag: wi, name: "Hidden" });
|
|
1361
1361
|
}
|
|
1362
|
-
let Yt = z(
|
|
1362
|
+
let Yt = z(bi), $i = q(null);
|
|
1363
1363
|
function Ei({ children: e }) {
|
|
1364
|
-
let t = W(
|
|
1365
|
-
if (!t) return
|
|
1364
|
+
let t = W($i);
|
|
1365
|
+
if (!t) return C.createElement(C.Fragment, null, e);
|
|
1366
1366
|
let { target: n } = t;
|
|
1367
|
-
return n ?
|
|
1367
|
+
return n ? _t(C.createElement(C.Fragment, null, e), n) : null;
|
|
1368
1368
|
}
|
|
1369
1369
|
let Wr = Symbol();
|
|
1370
|
-
function
|
|
1370
|
+
function Ci(e, t = !0) {
|
|
1371
1371
|
return Object.assign(e, { [Wr]: t });
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1374
|
-
let t =
|
|
1375
|
-
|
|
1373
|
+
function Q(...e) {
|
|
1374
|
+
let t = $(e);
|
|
1375
|
+
M(() => {
|
|
1376
1376
|
t.current = e;
|
|
1377
1377
|
}, [e]);
|
|
1378
|
-
let n =
|
|
1378
|
+
let n = N((r) => {
|
|
1379
1379
|
for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
|
|
1380
1380
|
});
|
|
1381
1381
|
return e.every((r) => r == null || (r == null ? void 0 : r[Wr])) ? void 0 : n;
|
|
1382
1382
|
}
|
|
1383
|
-
let
|
|
1384
|
-
|
|
1383
|
+
let vn = q(null);
|
|
1384
|
+
vn.displayName = "DescriptionContext";
|
|
1385
1385
|
function jr() {
|
|
1386
|
-
let e = W(
|
|
1386
|
+
let e = W(vn);
|
|
1387
1387
|
if (e === null) {
|
|
1388
1388
|
let t = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
1389
1389
|
throw Error.captureStackTrace && Error.captureStackTrace(t, jr), t;
|
|
1390
1390
|
}
|
|
1391
1391
|
return e;
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function Ti() {
|
|
1394
1394
|
let [e, t] = k([]);
|
|
1395
|
-
return [e.length > 0 ? e.join(" ") : void 0,
|
|
1396
|
-
let r =
|
|
1395
|
+
return [e.length > 0 ? e.join(" ") : void 0, F(() => function(n) {
|
|
1396
|
+
let r = N((i) => (t((a) => [...a, i]), () => t((a) => {
|
|
1397
1397
|
let l = a.slice(), s = l.indexOf(i);
|
|
1398
1398
|
return s !== -1 && l.splice(s, 1), l;
|
|
1399
|
-
}))), o =
|
|
1400
|
-
return
|
|
1399
|
+
}))), 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]);
|
|
1400
|
+
return C.createElement(vn.Provider, { value: o }, n.children);
|
|
1401
1401
|
}, [t])];
|
|
1402
1402
|
}
|
|
1403
|
-
let
|
|
1404
|
-
function
|
|
1405
|
-
let n = fe(), r = Vr(), { id: o = `headlessui-description-${n}`, ...i } = e, a = jr(), l =
|
|
1403
|
+
let ki = "p";
|
|
1404
|
+
function Fi(e, t) {
|
|
1405
|
+
let n = fe(), r = Vr(), { id: o = `headlessui-description-${n}`, ...i } = e, a = jr(), l = Q(t);
|
|
1406
1406
|
j(() => a.register(o), [o, a.register]);
|
|
1407
|
-
let s = r || !1, u =
|
|
1408
|
-
return Y({ ourProps: d, theirProps: i, slot: u, defaultTag:
|
|
1407
|
+
let s = r || !1, u = F(() => ({ ...a.slot, disabled: s }), [a.slot, s]), d = { ref: l, ...a.props, id: o };
|
|
1408
|
+
return Y({ ourProps: d, theirProps: i, slot: u, defaultTag: ki, name: a.name || "Description" });
|
|
1409
1409
|
}
|
|
1410
|
-
let
|
|
1410
|
+
let xi = z(Fi), Si = Object.assign(xi, {});
|
|
1411
1411
|
var zr = ((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))(zr || {});
|
|
1412
|
-
let
|
|
1412
|
+
let Pi = q(() => {
|
|
1413
1413
|
});
|
|
1414
|
-
function
|
|
1415
|
-
return
|
|
1414
|
+
function Mi({ value: e, children: t }) {
|
|
1415
|
+
return C.createElement(Pi.Provider, { value: e }, t);
|
|
1416
1416
|
}
|
|
1417
|
-
let
|
|
1417
|
+
let Li = class extends Map {
|
|
1418
1418
|
constructor(t) {
|
|
1419
1419
|
super(), this.factory = t;
|
|
1420
1420
|
}
|
|
@@ -1435,9 +1435,9 @@ function Br(e, t) {
|
|
|
1435
1435
|
} };
|
|
1436
1436
|
}
|
|
1437
1437
|
function qr(e) {
|
|
1438
|
-
return
|
|
1438
|
+
return vt(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
1439
1439
|
}
|
|
1440
|
-
let
|
|
1440
|
+
let Ni = new Li(() => Br(() => [], { ADD(e) {
|
|
1441
1441
|
return this.includes(e) ? this : [...this, e];
|
|
1442
1442
|
}, REMOVE(e) {
|
|
1443
1443
|
let t = this.indexOf(e);
|
|
@@ -1446,7 +1446,7 @@ let Li = new Mi(() => Br(() => [], { ADD(e) {
|
|
|
1446
1446
|
return n.splice(t, 1), n;
|
|
1447
1447
|
} }));
|
|
1448
1448
|
function He(e, t) {
|
|
1449
|
-
let n =
|
|
1449
|
+
let n = Ni.get(t), r = fe(), o = qr(n);
|
|
1450
1450
|
if (j(() => {
|
|
1451
1451
|
if (e) return n.dispatch("ADD", r), () => n.dispatch("REMOVE", r);
|
|
1452
1452
|
}, [n, e]), !e) return !1;
|
|
@@ -1466,7 +1466,7 @@ function Bn(e) {
|
|
|
1466
1466
|
let r = Kt.get(e);
|
|
1467
1467
|
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, Kt.delete(e));
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Hi(e, { allowed: t, disallowed: n } = {}) {
|
|
1470
1470
|
let r = He(e, "inert-others");
|
|
1471
1471
|
j(() => {
|
|
1472
1472
|
var o, i;
|
|
@@ -1480,7 +1480,7 @@ function Ni(e, { allowed: t, disallowed: n } = {}) {
|
|
|
1480
1480
|
if (!u) continue;
|
|
1481
1481
|
let d = s.parentElement;
|
|
1482
1482
|
for (; d && d !== u.body; ) {
|
|
1483
|
-
for (let c of d.children) l.some((
|
|
1483
|
+
for (let c of d.children) l.some((_) => c.contains(_)) || a.add(zn(c));
|
|
1484
1484
|
d = d.parentElement;
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
@@ -1492,7 +1492,7 @@ function Yr(e, t, n) {
|
|
|
1492
1492
|
let i = o.getBoundingClientRect();
|
|
1493
1493
|
i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
|
|
1494
1494
|
});
|
|
1495
|
-
|
|
1495
|
+
M(() => {
|
|
1496
1496
|
if (!e) return;
|
|
1497
1497
|
let o = t === null ? null : t instanceof HTMLElement ? t : t.current;
|
|
1498
1498
|
if (!o) return;
|
|
@@ -1509,15 +1509,15 @@ function Yr(e, t, n) {
|
|
|
1509
1509
|
}, [t, r, e]);
|
|
1510
1510
|
}
|
|
1511
1511
|
let Gt = ["[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(","), Di = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
1512
|
-
var
|
|
1513
|
-
function
|
|
1512
|
+
var ee = ((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))(ee || {}), Zt = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Zt || {}), Ai = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Ai || {});
|
|
1513
|
+
function Oi(e = document.body) {
|
|
1514
1514
|
return e == null ? [] : Array.from(e.querySelectorAll(Gt)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function Ii(e = document.body) {
|
|
1517
1517
|
return e == null ? [] : Array.from(e.querySelectorAll(Di)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1518
1518
|
}
|
|
1519
1519
|
var Kr = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Kr || {});
|
|
1520
|
-
function
|
|
1520
|
+
function Ri(e, t = 0) {
|
|
1521
1521
|
var n;
|
|
1522
1522
|
return e === ((n = ht(e)) == null ? void 0 : n.body) ? !1 : de(t, { 0() {
|
|
1523
1523
|
return e.matches(Gt);
|
|
@@ -1530,21 +1530,21 @@ function Ii(e, t = 0) {
|
|
|
1530
1530
|
return !1;
|
|
1531
1531
|
} });
|
|
1532
1532
|
}
|
|
1533
|
-
var
|
|
1533
|
+
var Vi = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Vi || {});
|
|
1534
1534
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
1535
1535
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
1536
1536
|
}, !0), document.addEventListener("click", (e) => {
|
|
1537
1537
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
1538
1538
|
}, !0));
|
|
1539
|
-
function
|
|
1539
|
+
function re(e) {
|
|
1540
1540
|
e == null || e.focus({ preventScroll: !0 });
|
|
1541
1541
|
}
|
|
1542
|
-
let
|
|
1543
|
-
function
|
|
1542
|
+
let Ui = ["textarea", "input"].join(",");
|
|
1543
|
+
function Wi(e) {
|
|
1544
1544
|
var t, n;
|
|
1545
|
-
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e,
|
|
1545
|
+
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, Ui)) != null ? n : !1;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function ji(e, t = (n) => n) {
|
|
1548
1548
|
return e.slice().sort((n, r) => {
|
|
1549
1549
|
let o = t(n), i = t(r);
|
|
1550
1550
|
if (o === null || i === null) return 0;
|
|
@@ -1553,8 +1553,8 @@ function Wi(e, t = (n) => n) {
|
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
1555
|
function Be(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
1556
|
-
let i = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ?
|
|
1557
|
-
o.length > 0 && a.length > 1 && (a = a.filter((f) => !o.some((
|
|
1556
|
+
let i = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? ji(e) : e : t & 64 ? Ii(e) : Oi(e);
|
|
1557
|
+
o.length > 0 && a.length > 1 && (a = a.filter((f) => !o.some((v) => v != null && "current" in v ? (v == null ? void 0 : v.current) === f : v === f))), r = r ?? i.activeElement;
|
|
1558
1558
|
let l = (() => {
|
|
1559
1559
|
if (t & 5) return 1;
|
|
1560
1560
|
if (t & 10) return -1;
|
|
@@ -1565,7 +1565,7 @@ function Be(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
1565
1565
|
if (t & 4) return Math.max(0, a.indexOf(r)) + 1;
|
|
1566
1566
|
if (t & 8) return a.length - 1;
|
|
1567
1567
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
1568
|
-
})(), u = t & 32 ? { preventScroll: !0 } : {}, d = 0, c = a.length,
|
|
1568
|
+
})(), u = t & 32 ? { preventScroll: !0 } : {}, d = 0, c = a.length, _;
|
|
1569
1569
|
do {
|
|
1570
1570
|
if (d >= c || d + c <= 0) return 0;
|
|
1571
1571
|
let f = s + d;
|
|
@@ -1574,22 +1574,22 @@ function Be(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
1574
1574
|
if (f < 0) return 3;
|
|
1575
1575
|
if (f >= c) return 1;
|
|
1576
1576
|
}
|
|
1577
|
-
|
|
1578
|
-
} while (
|
|
1579
|
-
return t & 6 &&
|
|
1577
|
+
_ = a[f], _ == null || _.focus(u), d += l;
|
|
1578
|
+
} while (_ !== i.activeElement);
|
|
1579
|
+
return t & 6 && Wi(_) && _.select(), 2;
|
|
1580
1580
|
}
|
|
1581
1581
|
function Gr() {
|
|
1582
1582
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function zi() {
|
|
1585
1585
|
return /Android/gi.test(window.navigator.userAgent);
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return Gr() ||
|
|
1587
|
+
function Bi() {
|
|
1588
|
+
return Gr() || zi();
|
|
1589
1589
|
}
|
|
1590
1590
|
function Ie(e, t, n, r) {
|
|
1591
1591
|
let o = Te(n);
|
|
1592
|
-
|
|
1592
|
+
M(() => {
|
|
1593
1593
|
if (!e) return;
|
|
1594
1594
|
function i(a) {
|
|
1595
1595
|
o.current(a);
|
|
@@ -1599,7 +1599,7 @@ function Ie(e, t, n, r) {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
function Zr(e, t, n, r) {
|
|
1601
1601
|
let o = Te(n);
|
|
1602
|
-
|
|
1602
|
+
M(() => {
|
|
1603
1603
|
if (!e) return;
|
|
1604
1604
|
function i(a) {
|
|
1605
1605
|
o.current(a);
|
|
@@ -1608,21 +1608,21 @@ function Zr(e, t, n, r) {
|
|
|
1608
1608
|
}, [e, t, r]);
|
|
1609
1609
|
}
|
|
1610
1610
|
const qn = 30;
|
|
1611
|
-
function
|
|
1612
|
-
let r = He(e, "outside-click"), o = Te(n), i =
|
|
1611
|
+
function qi(e, t, n) {
|
|
1612
|
+
let r = He(e, "outside-click"), o = Te(n), i = A(function(s, u) {
|
|
1613
1613
|
if (s.defaultPrevented) return;
|
|
1614
1614
|
let d = u(s);
|
|
1615
1615
|
if (d === null || !d.getRootNode().contains(d) || !d.isConnected) return;
|
|
1616
|
-
let c = function
|
|
1617
|
-
return typeof f == "function" ?
|
|
1616
|
+
let c = function _(f) {
|
|
1617
|
+
return typeof f == "function" ? _(f()) : Array.isArray(f) || f instanceof Set ? f : [f];
|
|
1618
1618
|
}(t);
|
|
1619
|
-
for (let
|
|
1620
|
-
if (
|
|
1621
|
-
let f =
|
|
1619
|
+
for (let _ of c) {
|
|
1620
|
+
if (_ === null) continue;
|
|
1621
|
+
let f = _ instanceof HTMLElement ? _ : _.current;
|
|
1622
1622
|
if (f != null && f.contains(d) || s.composed && s.composedPath().includes(f)) return;
|
|
1623
1623
|
}
|
|
1624
|
-
return !
|
|
1625
|
-
}, [o]), a =
|
|
1624
|
+
return !Ri(d, Kr.Loose) && d.tabIndex !== -1 && s.preventDefault(), o.current(s, d);
|
|
1625
|
+
}, [o]), a = $(null);
|
|
1626
1626
|
Ie(r, "pointerdown", (s) => {
|
|
1627
1627
|
var u, d;
|
|
1628
1628
|
a.current = ((d = (u = s.composedPath) == null ? void 0 : u.call(s)) == null ? void 0 : d[0]) || s.target;
|
|
@@ -1630,9 +1630,9 @@ function Bi(e, t, n) {
|
|
|
1630
1630
|
var u, d;
|
|
1631
1631
|
a.current = ((d = (u = s.composedPath) == null ? void 0 : u.call(s)) == null ? void 0 : d[0]) || s.target;
|
|
1632
1632
|
}, !0), Ie(r, "click", (s) => {
|
|
1633
|
-
|
|
1633
|
+
Bi() || a.current && (i(s, () => a.current), a.current = null);
|
|
1634
1634
|
}, !0);
|
|
1635
|
-
let l =
|
|
1635
|
+
let l = $({ x: 0, y: 0 });
|
|
1636
1636
|
Ie(r, "touchstart", (s) => {
|
|
1637
1637
|
l.current.x = s.touches[0].clientX, l.current.y = s.touches[0].clientY;
|
|
1638
1638
|
}, !0), Ie(r, "touchend", (s) => {
|
|
@@ -1641,11 +1641,11 @@ function Bi(e, t, n) {
|
|
|
1641
1641
|
}, !0), Zr(r, "blur", (s) => i(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
1642
1642
|
}
|
|
1643
1643
|
function Xe(...e) {
|
|
1644
|
-
return
|
|
1644
|
+
return F(() => ht(...e), [...e]);
|
|
1645
1645
|
}
|
|
1646
1646
|
function Xr(e, t, n, r) {
|
|
1647
1647
|
let o = Te(n);
|
|
1648
|
-
|
|
1648
|
+
M(() => {
|
|
1649
1649
|
e = e ?? window;
|
|
1650
1650
|
function i(a) {
|
|
1651
1651
|
o.current(a);
|
|
@@ -1653,7 +1653,7 @@ function Xr(e, t, n, r) {
|
|
|
1653
1653
|
return e.addEventListener(t, i, r), () => e.removeEventListener(t, i, r);
|
|
1654
1654
|
}, [e, t, r]);
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function Yi() {
|
|
1657
1657
|
let e;
|
|
1658
1658
|
return { before({ doc: t }) {
|
|
1659
1659
|
var n;
|
|
@@ -1664,7 +1664,7 @@ function qi() {
|
|
|
1664
1664
|
n.style(r, "paddingRight", `${i}px`);
|
|
1665
1665
|
} };
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function Ki() {
|
|
1668
1668
|
return Gr() ? { before({ doc: e, d: t, meta: n }) {
|
|
1669
1669
|
function r(o) {
|
|
1670
1670
|
return n.containers.flatMap((i) => i()).some((i) => i.contains(o));
|
|
@@ -1707,12 +1707,12 @@ function Yi() {
|
|
|
1707
1707
|
});
|
|
1708
1708
|
} } : {};
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function Gi() {
|
|
1711
1711
|
return { before({ doc: e, d: t }) {
|
|
1712
1712
|
t.style(e.documentElement, "overflow", "hidden");
|
|
1713
1713
|
} };
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function Zi(e) {
|
|
1716
1716
|
let t = {};
|
|
1717
1717
|
for (let n of e) Object.assign(t, n(t));
|
|
1718
1718
|
return t;
|
|
@@ -1725,7 +1725,7 @@ let ye = Br(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
|
1725
1725
|
let n = this.get(e);
|
|
1726
1726
|
return n && (n.count--, n.meta.delete(t)), this;
|
|
1727
1727
|
}, SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
|
|
1728
|
-
let r = { doc: e, d: t, meta:
|
|
1728
|
+
let r = { doc: e, d: t, meta: Zi(n) }, o = [Ki(), Yi(), Gi()];
|
|
1729
1729
|
o.forEach(({ before: i }) => i == null ? void 0 : i(r)), o.forEach(({ after: i }) => i == null ? void 0 : i(r));
|
|
1730
1730
|
}, SCROLL_ALLOW({ d: e }) {
|
|
1731
1731
|
e.dispose();
|
|
@@ -1740,63 +1740,63 @@ ye.subscribe(() => {
|
|
|
1740
1740
|
(o && !r || !o && r) && ye.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && ye.dispatch("TEARDOWN", n);
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
1743
|
-
function
|
|
1743
|
+
function Xi(e, t, n = () => ({ containers: [] })) {
|
|
1744
1744
|
let r = qr(ye), o = t ? r.get(t) : void 0, i = o ? o.count > 0 : !1;
|
|
1745
1745
|
return j(() => {
|
|
1746
1746
|
if (!(!t || !e)) return ye.dispatch("PUSH", t, n), () => ye.dispatch("POP", t, n);
|
|
1747
1747
|
}, [e, t]), i;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function Qi(e, t, n = () => [document.body]) {
|
|
1750
1750
|
let r = He(e, "scroll-lock");
|
|
1751
|
-
|
|
1751
|
+
Xi(r, t, (o) => {
|
|
1752
1752
|
var i;
|
|
1753
1753
|
return { containers: [...(i = o.containers) != null ? i : [], n] };
|
|
1754
1754
|
});
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function Ji(e) {
|
|
1757
1757
|
let t = { called: !1 };
|
|
1758
1758
|
return (...n) => {
|
|
1759
1759
|
if (!t.called) return t.called = !0, e(...n);
|
|
1760
1760
|
};
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1763
|
-
let [t, n] = k(e), r =
|
|
1762
|
+
function ea(e = 0) {
|
|
1763
|
+
let [t, n] = k(e), r = A((s) => n(s), [t]), o = A((s) => n((u) => u | s), [t]), i = A((s) => (t & s) === s, [t]), a = A((s) => n((u) => u & ~s), [n]), l = A((s) => n((u) => u ^ s), [n]);
|
|
1764
1764
|
return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: a, toggleFlag: l };
|
|
1765
1765
|
}
|
|
1766
|
-
var
|
|
1767
|
-
function
|
|
1766
|
+
var ta = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(ta || {});
|
|
1767
|
+
function na(e) {
|
|
1768
1768
|
let t = {};
|
|
1769
1769
|
for (let n in e) e[n] === !0 && (t[`data-${n}`] = "");
|
|
1770
1770
|
return t;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1773
|
-
let [o, i] = k(n), { hasFlag: a, addFlag: l, removeFlag: s } =
|
|
1774
|
-
return j(function
|
|
1772
|
+
function ra(e, t, n, r) {
|
|
1773
|
+
let [o, i] = k(n), { hasFlag: a, addFlag: l, removeFlag: s } = ea(e && o ? 3 : 0), u = $(!1), d = $(!1), c = yt();
|
|
1774
|
+
return j(function _() {
|
|
1775
1775
|
var f;
|
|
1776
1776
|
if (!e) return;
|
|
1777
1777
|
n && i(!0);
|
|
1778
|
-
let
|
|
1779
|
-
return
|
|
1778
|
+
let v = t.current;
|
|
1779
|
+
return v ? ((f = r == null ? void 0 : r.start) == null || f.call(r, n), oa(v, { inFlight: u, prepare() {
|
|
1780
1780
|
d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (l(3), s(4)) : (l(4), s(2)));
|
|
1781
1781
|
}, run() {
|
|
1782
1782
|
d.current ? n ? (s(3), l(4)) : (s(4), l(3)) : n ? s(1) : l(1);
|
|
1783
1783
|
}, done() {
|
|
1784
|
-
var
|
|
1785
|
-
d.current && typeof
|
|
1786
|
-
} })) : n ? (l(3), c.nextFrame(() =>
|
|
1784
|
+
var h;
|
|
1785
|
+
d.current && typeof v.getAnimations == "function" && v.getAnimations().length > 0 || (u.current = !1, s(7), n || i(!1), (h = r == null ? void 0 : r.end) == null || h.call(r, n));
|
|
1786
|
+
} })) : n ? (l(3), c.nextFrame(() => _())) : void 0;
|
|
1787
1787
|
}, [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 }];
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1789
|
+
function oa(e, { prepare: t, run: n, done: r, inFlight: o }) {
|
|
1790
1790
|
let i = pe();
|
|
1791
|
-
return
|
|
1792
|
-
i.add(
|
|
1791
|
+
return aa(e, { prepare: t, inFlight: o }), i.nextFrame(() => {
|
|
1792
|
+
i.add(ia(e, r)), n();
|
|
1793
1793
|
}), i.dispose;
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1796
|
-
let n =
|
|
1795
|
+
function ia(e, t) {
|
|
1796
|
+
let n = Ji(t), r = pe();
|
|
1797
1797
|
if (!e) return r.dispose;
|
|
1798
1798
|
let { transitionDuration: o, transitionDelay: i } = getComputedStyle(e), [a, l] = [o, i].map((u) => {
|
|
1799
|
-
let [d = 0] = u.split(",").filter(Boolean).map((c) => c.includes("ms") ? parseFloat(c) : parseFloat(c) * 1e3).sort((c,
|
|
1799
|
+
let [d = 0] = u.split(",").filter(Boolean).map((c) => c.includes("ms") ? parseFloat(c) : parseFloat(c) * 1e3).sort((c, _) => _ - c);
|
|
1800
1800
|
return d;
|
|
1801
1801
|
}), s = a + l;
|
|
1802
1802
|
if (s !== 0) {
|
|
@@ -1804,8 +1804,8 @@ function oa(e, t) {
|
|
|
1804
1804
|
let c = d.setTimeout(() => {
|
|
1805
1805
|
n(), d.dispose();
|
|
1806
1806
|
}, s);
|
|
1807
|
-
d.addEventListener(e, "transitionrun", (
|
|
1808
|
-
|
|
1807
|
+
d.addEventListener(e, "transitionrun", (_) => {
|
|
1808
|
+
_.target === _.currentTarget && (c(), d.addEventListener(e, "transitioncancel", (f) => {
|
|
1809
1809
|
f.target === f.currentTarget && (n(), u());
|
|
1810
1810
|
}));
|
|
1811
1811
|
});
|
|
@@ -1816,7 +1816,7 @@ function oa(e, t) {
|
|
|
1816
1816
|
} else n();
|
|
1817
1817
|
return r.dispose;
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function aa(e, { inFlight: t, prepare: n }) {
|
|
1820
1820
|
if (t != null && t.current) {
|
|
1821
1821
|
n();
|
|
1822
1822
|
return;
|
|
@@ -1825,8 +1825,8 @@ function ia(e, { inFlight: t, prepare: n }) {
|
|
|
1825
1825
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
|
|
1826
1826
|
}
|
|
1827
1827
|
function hn(e, t) {
|
|
1828
|
-
let n =
|
|
1829
|
-
|
|
1828
|
+
let n = $([]), r = N(e);
|
|
1829
|
+
M(() => {
|
|
1830
1830
|
let o = [...n.current];
|
|
1831
1831
|
for (let [i, a] of t.entries()) if (n.current[i] !== a) {
|
|
1832
1832
|
let l = r(t, o);
|
|
@@ -1840,53 +1840,53 @@ var G = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing
|
|
|
1840
1840
|
function wt() {
|
|
1841
1841
|
return W(gt);
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1844
|
-
return
|
|
1843
|
+
function la({ value: e, children: t }) {
|
|
1844
|
+
return C.createElement(gt.Provider, { value: e }, t);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1847
|
-
return
|
|
1846
|
+
function sa({ children: e }) {
|
|
1847
|
+
return C.createElement(gt.Provider, { value: null }, e);
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function ca(e) {
|
|
1850
1850
|
function t() {
|
|
1851
1851
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
1852
1852
|
}
|
|
1853
1853
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
1854
1854
|
}
|
|
1855
1855
|
let ce = [];
|
|
1856
|
-
|
|
1856
|
+
ca(() => {
|
|
1857
1857
|
function e(t) {
|
|
1858
1858
|
t.target instanceof HTMLElement && t.target !== document.body && ce[0] !== t.target && (ce.unshift(t.target), ce = ce.filter((n) => n != null && n.isConnected), ce.splice(10));
|
|
1859
1859
|
}
|
|
1860
1860
|
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 });
|
|
1861
1861
|
});
|
|
1862
1862
|
function Qr(e) {
|
|
1863
|
-
let t =
|
|
1864
|
-
|
|
1863
|
+
let t = N(e), n = $(!1);
|
|
1864
|
+
M(() => (n.current = !1, () => {
|
|
1865
1865
|
n.current = !0, mt(() => {
|
|
1866
1866
|
n.current && t();
|
|
1867
1867
|
});
|
|
1868
1868
|
}), [t]);
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function ua() {
|
|
1871
1871
|
let e = typeof document > "u";
|
|
1872
1872
|
return "useSyncExternalStore" in Wn ? ((t) => t.useSyncExternalStore)(Wn)(() => () => {
|
|
1873
1873
|
}, () => !1, () => !e) : !1;
|
|
1874
1874
|
}
|
|
1875
1875
|
function Qe() {
|
|
1876
|
-
let e =
|
|
1877
|
-
return t && ge.isHandoffComplete === !1 && n(!1),
|
|
1876
|
+
let e = ua(), [t, n] = k(ge.isHandoffComplete);
|
|
1877
|
+
return t && ge.isHandoffComplete === !1 && n(!1), M(() => {
|
|
1878
1878
|
t !== !0 && n(!0);
|
|
1879
|
-
}, [t]),
|
|
1879
|
+
}, [t]), M(() => ge.handoff(), []), e ? !1 : t;
|
|
1880
1880
|
}
|
|
1881
1881
|
let Jr = q(!1);
|
|
1882
|
-
function
|
|
1882
|
+
function da() {
|
|
1883
1883
|
return W(Jr);
|
|
1884
1884
|
}
|
|
1885
1885
|
function Yn(e) {
|
|
1886
|
-
return
|
|
1886
|
+
return C.createElement(Jr.Provider, { value: e.force }, e.children);
|
|
1887
1887
|
}
|
|
1888
|
-
function
|
|
1889
|
-
let t =
|
|
1888
|
+
function fa(e) {
|
|
1889
|
+
let t = da(), n = W(to), r = Xe(e), [o, i] = k(() => {
|
|
1890
1890
|
var a;
|
|
1891
1891
|
if (!t && n !== null) return (a = n.current) != null ? a : null;
|
|
1892
1892
|
if (ge.isServer) return null;
|
|
@@ -1896,16 +1896,16 @@ function da(e) {
|
|
|
1896
1896
|
let s = r.createElement("div");
|
|
1897
1897
|
return s.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(s);
|
|
1898
1898
|
});
|
|
1899
|
-
return
|
|
1899
|
+
return M(() => {
|
|
1900
1900
|
o !== null && (r != null && r.body.contains(o) || r == null || r.body.appendChild(o));
|
|
1901
|
-
}, [o, r]),
|
|
1901
|
+
}, [o, r]), M(() => {
|
|
1902
1902
|
t || n !== null && i(n.current);
|
|
1903
1903
|
}, [n, i, t]), o;
|
|
1904
1904
|
}
|
|
1905
|
-
let eo = H,
|
|
1906
|
-
let n = e, r =
|
|
1905
|
+
let eo = H, pa = z(function(e, t) {
|
|
1906
|
+
let n = e, r = $(null), o = Q(Ci((d) => {
|
|
1907
1907
|
r.current = d;
|
|
1908
|
-
}), t), i = Xe(r), a =
|
|
1908
|
+
}), t), i = Xe(r), a = fa(r), [l] = k(() => {
|
|
1909
1909
|
var d;
|
|
1910
1910
|
return ge.isServer ? null : (d = i == null ? void 0 : i.createElement("div")) != null ? d : null;
|
|
1911
1911
|
}), s = W(Xt), u = Qe();
|
|
@@ -1916,35 +1916,35 @@ let eo = H, fa = z(function(e, t) {
|
|
|
1916
1916
|
}, [s, l]), Qr(() => {
|
|
1917
1917
|
var d;
|
|
1918
1918
|
!a || !l || (l instanceof Node && a.contains(l) && a.removeChild(l), a.childNodes.length <= 0 && ((d = a.parentElement) == null || d.removeChild(a)));
|
|
1919
|
-
}), u ? !a || !l ? null :
|
|
1919
|
+
}), u ? !a || !l ? null : _t(Y({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: eo, name: "Portal" }), l) : null;
|
|
1920
1920
|
});
|
|
1921
|
-
function
|
|
1922
|
-
let n =
|
|
1923
|
-
return r ?
|
|
1921
|
+
function _a(e, t) {
|
|
1922
|
+
let n = Q(t), { enabled: r = !0, ...o } = e;
|
|
1923
|
+
return r ? C.createElement(pa, { ...o, ref: n }) : Y({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: eo, name: "Portal" });
|
|
1924
1924
|
}
|
|
1925
1925
|
let va = H, to = q(null);
|
|
1926
|
-
function
|
|
1927
|
-
let { target: n, ...r } = e, o = { ref:
|
|
1928
|
-
return
|
|
1926
|
+
function ha(e, t) {
|
|
1927
|
+
let { target: n, ...r } = e, o = { ref: Q(t) };
|
|
1928
|
+
return C.createElement(to.Provider, { value: n }, Y({ ourProps: o, theirProps: r, defaultTag: va, name: "Popover.Group" }));
|
|
1929
1929
|
}
|
|
1930
1930
|
let Xt = q(null);
|
|
1931
|
-
function
|
|
1932
|
-
let e = W(Xt), t =
|
|
1931
|
+
function ma() {
|
|
1932
|
+
let e = W(Xt), t = $([]), n = N((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = N((i) => {
|
|
1933
1933
|
let a = t.current.indexOf(i);
|
|
1934
1934
|
a !== -1 && t.current.splice(a, 1), e && e.unregister(i);
|
|
1935
|
-
}), o =
|
|
1936
|
-
return [t,
|
|
1937
|
-
return
|
|
1935
|
+
}), o = F(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
|
|
1936
|
+
return [t, F(() => function({ children: i }) {
|
|
1937
|
+
return C.createElement(Xt.Provider, { value: o }, i);
|
|
1938
1938
|
}, [o])];
|
|
1939
1939
|
}
|
|
1940
|
-
let
|
|
1941
|
-
function
|
|
1940
|
+
let ya = z(_a), no = z(ha), ga = Object.assign(ya, { Group: no });
|
|
1941
|
+
function wa(e, t = typeof document < "u" ? document.defaultView : null, n) {
|
|
1942
1942
|
let r = He(e, "escape");
|
|
1943
1943
|
Xr(t, "keydown", (o) => {
|
|
1944
1944
|
r && (o.defaultPrevented || o.key === zr.Escape && n(o));
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function ba() {
|
|
1948
1948
|
var e;
|
|
1949
1949
|
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);
|
|
1950
1950
|
return j(() => {
|
|
@@ -1955,29 +1955,29 @@ function wa() {
|
|
|
1955
1955
|
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
1956
1956
|
}, [t]), n;
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function $a({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
|
|
1959
1959
|
var r;
|
|
1960
|
-
let o =
|
|
1960
|
+
let o = $((r = n == null ? void 0 : n.current) != null ? r : null), i = Xe(o), a = N(() => {
|
|
1961
1961
|
var l, s, u;
|
|
1962
1962
|
let d = [];
|
|
1963
1963
|
for (let c of e) c !== null && (c instanceof HTMLElement ? d.push(c) : "current" in c && c.current instanceof HTMLElement && d.push(c.current));
|
|
1964
1964
|
if (t != null && t.current) for (let c of t.current) d.push(c);
|
|
1965
|
-
for (let c of (l = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? l : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(o.current) || c.contains((u = (s = o.current) == null ? void 0 : s.getRootNode()) == null ? void 0 : u.host) || d.some((
|
|
1965
|
+
for (let c of (l = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? l : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(o.current) || c.contains((u = (s = o.current) == null ? void 0 : s.getRootNode()) == null ? void 0 : u.host) || d.some((_) => c.contains(_)) || d.push(c));
|
|
1966
1966
|
return d;
|
|
1967
1967
|
});
|
|
1968
|
-
return { resolveContainers: a, contains:
|
|
1969
|
-
return n != null ? null :
|
|
1968
|
+
return { resolveContainers: a, contains: N((l) => a().some((s) => s.contains(l))), mainTreeNodeRef: o, MainTreeNode: F(() => function() {
|
|
1969
|
+
return n != null ? null : C.createElement(Yt, { features: dt.Hidden, ref: o });
|
|
1970
1970
|
}, [o, n]) };
|
|
1971
1971
|
}
|
|
1972
1972
|
function mn() {
|
|
1973
|
-
let e =
|
|
1973
|
+
let e = $(!1);
|
|
1974
1974
|
return j(() => (e.current = !0, () => {
|
|
1975
1975
|
e.current = !1;
|
|
1976
1976
|
}), []), e;
|
|
1977
1977
|
}
|
|
1978
1978
|
var Ve = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Ve || {});
|
|
1979
1979
|
function Ea() {
|
|
1980
|
-
let e =
|
|
1980
|
+
let e = $(0);
|
|
1981
1981
|
return Zr(!0, "keydown", (t) => {
|
|
1982
1982
|
t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
|
|
1983
1983
|
}, !0), e;
|
|
@@ -1989,63 +1989,63 @@ function ro(e) {
|
|
|
1989
1989
|
for (let n of e.current) n.current instanceof HTMLElement && t.add(n.current);
|
|
1990
1990
|
return t;
|
|
1991
1991
|
}
|
|
1992
|
-
let
|
|
1992
|
+
let Ca = "div";
|
|
1993
1993
|
var he = ((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))(he || {});
|
|
1994
|
-
function
|
|
1995
|
-
let n =
|
|
1994
|
+
function Ta(e, t) {
|
|
1995
|
+
let n = $(null), r = Q(n, t), { initialFocus: o, initialFocusFallback: i, containers: a, features: l = 15, ...s } = e;
|
|
1996
1996
|
Qe() || (l = 0);
|
|
1997
1997
|
let u = Xe(n);
|
|
1998
|
-
|
|
1999
|
-
let d =
|
|
2000
|
-
|
|
2001
|
-
let c = Ea(),
|
|
2002
|
-
let
|
|
2003
|
-
|
|
1998
|
+
Sa(l, { ownerDocument: u });
|
|
1999
|
+
let d = Pa(l, { ownerDocument: u, container: n, initialFocus: o, initialFocusFallback: i });
|
|
2000
|
+
Ma(l, { ownerDocument: u, container: n, containers: a, previousActiveElement: d });
|
|
2001
|
+
let c = Ea(), _ = N((m) => {
|
|
2002
|
+
let w = n.current;
|
|
2003
|
+
w && ((b) => b())(() => {
|
|
2004
2004
|
de(c.current, { [Ve.Forwards]: () => {
|
|
2005
|
-
Be(
|
|
2005
|
+
Be(w, ee.First, { skipElements: [m.relatedTarget, i] });
|
|
2006
2006
|
}, [Ve.Backwards]: () => {
|
|
2007
|
-
Be(
|
|
2007
|
+
Be(w, ee.Last, { skipElements: [m.relatedTarget, i] });
|
|
2008
2008
|
} });
|
|
2009
2009
|
});
|
|
2010
|
-
}), f = He(!!(l & 2), "focus-trap#tab-lock"),
|
|
2011
|
-
|
|
2012
|
-
|
|
2010
|
+
}), f = He(!!(l & 2), "focus-trap#tab-lock"), v = yt(), h = $(!1), y = { ref: r, onKeyDown(m) {
|
|
2011
|
+
m.key == "Tab" && (h.current = !0, v.requestAnimationFrame(() => {
|
|
2012
|
+
h.current = !1;
|
|
2013
2013
|
}));
|
|
2014
|
-
}, onBlur(
|
|
2014
|
+
}, onBlur(m) {
|
|
2015
2015
|
if (!(l & 4)) return;
|
|
2016
|
-
let
|
|
2017
|
-
n.current instanceof HTMLElement &&
|
|
2018
|
-
let
|
|
2019
|
-
|
|
2016
|
+
let w = ro(a);
|
|
2017
|
+
n.current instanceof HTMLElement && w.add(n.current);
|
|
2018
|
+
let b = m.relatedTarget;
|
|
2019
|
+
b instanceof HTMLElement && b.dataset.headlessuiFocusGuard !== "true" && (oo(w, b) || (h.current ? Be(n.current, de(c.current, { [Ve.Forwards]: () => ee.Next, [Ve.Backwards]: () => ee.Previous }) | ee.WrapAround, { relativeTo: m.target }) : m.target instanceof HTMLElement && re(m.target)));
|
|
2020
2020
|
} };
|
|
2021
|
-
return
|
|
2021
|
+
return C.createElement(C.Fragment, null, f && C.createElement(Yt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: _, features: dt.Focusable }), Y({ ourProps: y, theirProps: s, defaultTag: Ca, name: "FocusTrap" }), f && C.createElement(Yt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: _, features: dt.Focusable }));
|
|
2022
2022
|
}
|
|
2023
|
-
let
|
|
2024
|
-
function
|
|
2025
|
-
let t =
|
|
2023
|
+
let ka = z(Ta), Fa = Object.assign(ka, { features: he });
|
|
2024
|
+
function xa(e = !0) {
|
|
2025
|
+
let t = $(ce.slice());
|
|
2026
2026
|
return hn(([n], [r]) => {
|
|
2027
2027
|
r === !0 && n === !1 && mt(() => {
|
|
2028
2028
|
t.current.splice(0);
|
|
2029
2029
|
}), r === !1 && n === !0 && (t.current = ce.slice());
|
|
2030
|
-
}, [e, ce, t]),
|
|
2030
|
+
}, [e, ce, t]), N(() => {
|
|
2031
2031
|
var n;
|
|
2032
2032
|
return (n = t.current.find((r) => r != null && r.isConnected)) != null ? n : null;
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2036
|
-
let n = !!(e & 8), r =
|
|
2035
|
+
function Sa(e, { ownerDocument: t }) {
|
|
2036
|
+
let n = !!(e & 8), r = xa(n);
|
|
2037
2037
|
hn(() => {
|
|
2038
|
-
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) &&
|
|
2038
|
+
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && re(r());
|
|
2039
2039
|
}, [n]), Qr(() => {
|
|
2040
|
-
n &&
|
|
2040
|
+
n && re(r());
|
|
2041
2041
|
});
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2044
|
-
let i =
|
|
2043
|
+
function Pa(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFallback: o }) {
|
|
2044
|
+
let i = $(null), a = He(!!(e & 1), "focus-trap#initial-focus"), l = mn();
|
|
2045
2045
|
return hn(() => {
|
|
2046
2046
|
if (e === 0) return;
|
|
2047
2047
|
if (!a) {
|
|
2048
|
-
o != null && o.current &&
|
|
2048
|
+
o != null && o.current && re(o.current);
|
|
2049
2049
|
return;
|
|
2050
2050
|
}
|
|
2051
2051
|
let s = n.current;
|
|
@@ -2061,19 +2061,19 @@ function Sa(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
|
|
|
2061
2061
|
i.current = u;
|
|
2062
2062
|
return;
|
|
2063
2063
|
}
|
|
2064
|
-
if (r != null && r.current)
|
|
2064
|
+
if (r != null && r.current) re(r.current);
|
|
2065
2065
|
else {
|
|
2066
2066
|
if (e & 16) {
|
|
2067
|
-
if (Be(s,
|
|
2068
|
-
} else if (Be(s,
|
|
2069
|
-
if (o != null && o.current && (
|
|
2067
|
+
if (Be(s, ee.First | ee.AutoFocus) !== Zt.Error) return;
|
|
2068
|
+
} else if (Be(s, ee.First) !== Zt.Error) return;
|
|
2069
|
+
if (o != null && o.current && (re(o.current), (t == null ? void 0 : t.activeElement) === o.current)) return;
|
|
2070
2070
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
2071
2071
|
}
|
|
2072
2072
|
i.current = t == null ? void 0 : t.activeElement;
|
|
2073
2073
|
});
|
|
2074
2074
|
}, [o, a, e]), i;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function Ma(e, { ownerDocument: t, container: n, containers: r, previousActiveElement: o }) {
|
|
2077
2077
|
let i = mn(), a = !!(e & 4);
|
|
2078
2078
|
Xr(t == null ? void 0 : t.defaultView, "focus", (l) => {
|
|
2079
2079
|
if (!a || !i.current) return;
|
|
@@ -2082,7 +2082,7 @@ function Pa(e, { ownerDocument: t, container: n, containers: r, previousActiveEl
|
|
|
2082
2082
|
let u = o.current;
|
|
2083
2083
|
if (!u) return;
|
|
2084
2084
|
let d = l.target;
|
|
2085
|
-
d && d instanceof HTMLElement ? oo(s, d) ? (o.current = d,
|
|
2085
|
+
d && d instanceof HTMLElement ? oo(s, d) ? (o.current = d, re(d)) : (l.preventDefault(), l.stopPropagation(), re(u)) : re(o.current);
|
|
2086
2086
|
}, !0);
|
|
2087
2087
|
}
|
|
2088
2088
|
function oo(e, t) {
|
|
@@ -2091,122 +2091,122 @@ function oo(e, t) {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
function io(e) {
|
|
2093
2093
|
var t;
|
|
2094
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : lo) !== H ||
|
|
2094
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : lo) !== H || C.Children.count(e.children) === 1;
|
|
2095
2095
|
}
|
|
2096
2096
|
let bt = q(null);
|
|
2097
2097
|
bt.displayName = "TransitionContext";
|
|
2098
|
-
var
|
|
2099
|
-
function
|
|
2098
|
+
var La = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(La || {});
|
|
2099
|
+
function Na() {
|
|
2100
2100
|
let e = W(bt);
|
|
2101
2101
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
2102
2102
|
return e;
|
|
2103
2103
|
}
|
|
2104
|
-
function
|
|
2105
|
-
let e = W(
|
|
2104
|
+
function Ha() {
|
|
2105
|
+
let e = W($t);
|
|
2106
2106
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
2107
2107
|
return e;
|
|
2108
2108
|
}
|
|
2109
|
-
let
|
|
2110
|
-
|
|
2111
|
-
function
|
|
2112
|
-
return "children" in e ?
|
|
2109
|
+
let $t = q(null);
|
|
2110
|
+
$t.displayName = "NestingContext";
|
|
2111
|
+
function Et(e) {
|
|
2112
|
+
return "children" in e ? Et(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
2113
2113
|
}
|
|
2114
2114
|
function ao(e, t) {
|
|
2115
|
-
let n = Te(e), r =
|
|
2116
|
-
let
|
|
2117
|
-
|
|
2118
|
-
r.current.splice(
|
|
2115
|
+
let n = Te(e), r = $([]), o = mn(), i = yt(), a = N((f, v = ue.Hidden) => {
|
|
2116
|
+
let h = r.current.findIndex(({ el: y }) => y === f);
|
|
2117
|
+
h !== -1 && (de(v, { [ue.Unmount]() {
|
|
2118
|
+
r.current.splice(h, 1);
|
|
2119
2119
|
}, [ue.Hidden]() {
|
|
2120
|
-
r.current[
|
|
2120
|
+
r.current[h].state = "hidden";
|
|
2121
2121
|
} }), i.microTask(() => {
|
|
2122
|
-
var
|
|
2123
|
-
|
|
2122
|
+
var y;
|
|
2123
|
+
!Et(r) && o.current && ((y = n.current) == null || y.call(n));
|
|
2124
2124
|
}));
|
|
2125
|
-
}), l =
|
|
2126
|
-
let
|
|
2127
|
-
return
|
|
2128
|
-
}), s =
|
|
2129
|
-
s.current.splice(0), t && (t.chains.current[
|
|
2130
|
-
s.current.push(
|
|
2131
|
-
})]), t == null || t.chains.current[
|
|
2132
|
-
Promise.all(d.current[
|
|
2133
|
-
})]),
|
|
2134
|
-
}),
|
|
2135
|
-
Promise.all(d.current[
|
|
2136
|
-
var
|
|
2137
|
-
(
|
|
2138
|
-
}).then(() =>
|
|
2125
|
+
}), l = N((f) => {
|
|
2126
|
+
let v = r.current.find(({ el: h }) => h === f);
|
|
2127
|
+
return v ? v.state !== "visible" && (v.state = "visible") : r.current.push({ el: f, state: "visible" }), () => a(f, ue.Unmount);
|
|
2128
|
+
}), s = $([]), u = $(Promise.resolve()), d = $({ enter: [], leave: [] }), c = N((f, v, h) => {
|
|
2129
|
+
s.current.splice(0), t && (t.chains.current[v] = t.chains.current[v].filter(([y]) => y !== f)), t == null || t.chains.current[v].push([f, new Promise((y) => {
|
|
2130
|
+
s.current.push(y);
|
|
2131
|
+
})]), t == null || t.chains.current[v].push([f, new Promise((y) => {
|
|
2132
|
+
Promise.all(d.current[v].map(([m, w]) => w)).then(() => y());
|
|
2133
|
+
})]), v === "enter" ? u.current = u.current.then(() => t == null ? void 0 : t.wait.current).then(() => h(v)) : h(v);
|
|
2134
|
+
}), _ = N((f, v, h) => {
|
|
2135
|
+
Promise.all(d.current[v].splice(0).map(([y, m]) => m)).then(() => {
|
|
2136
|
+
var y;
|
|
2137
|
+
(y = s.current.shift()) == null || y();
|
|
2138
|
+
}).then(() => h(v));
|
|
2139
2139
|
});
|
|
2140
|
-
return
|
|
2140
|
+
return F(() => ({ children: r, register: l, unregister: a, onStart: c, onStop: _, wait: u, chains: d }), [l, a, r, c, _, d, u]);
|
|
2141
2141
|
}
|
|
2142
2142
|
let lo = H, so = ut.RenderStrategy;
|
|
2143
2143
|
function Da(e, t) {
|
|
2144
2144
|
var n, r;
|
|
2145
|
-
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: l, afterLeave: s, enter: u, enterFrom: d, enterTo: c, entered:
|
|
2146
|
-
j(() => U(
|
|
2147
|
-
if (
|
|
2148
|
-
if (E &&
|
|
2145
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: l, afterLeave: s, enter: u, enterFrom: d, enterTo: c, entered: _, leave: f, leaveFrom: v, leaveTo: h, ...y } = e, m = $(null), w = io(e), b = Q(...w ? [m, t] : t === null ? [] : [t]), g = (n = y.unmount) == null || n ? ue.Unmount : ue.Hidden, { show: E, appear: x, initial: R } = Na(), [O, S] = k(E ? "visible" : "hidden"), L = Ha(), { register: U, unregister: le } = L;
|
|
2146
|
+
j(() => U(m), [U, m]), j(() => {
|
|
2147
|
+
if (g === ue.Hidden && m.current) {
|
|
2148
|
+
if (E && O !== "visible") {
|
|
2149
2149
|
S("visible");
|
|
2150
2150
|
return;
|
|
2151
2151
|
}
|
|
2152
|
-
return de(
|
|
2152
|
+
return de(O, { hidden: () => le(m), visible: () => U(m) });
|
|
2153
2153
|
}
|
|
2154
|
-
}, [
|
|
2155
|
-
let
|
|
2154
|
+
}, [O, m, U, le, E, g]);
|
|
2155
|
+
let De = Qe();
|
|
2156
2156
|
j(() => {
|
|
2157
|
-
if (
|
|
2158
|
-
}, [
|
|
2159
|
-
let Tt =
|
|
2160
|
-
|
|
2161
|
-
}, L), et =
|
|
2162
|
-
|
|
2157
|
+
if (w && De && O === "visible" && m.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2158
|
+
}, [m, O, De, w]);
|
|
2159
|
+
let Tt = R && !x, Je = x && E && R, Fe = $(!1), xe = ao(() => {
|
|
2160
|
+
Fe.current || (S("hidden"), le(m));
|
|
2161
|
+
}, L), et = N((kt) => {
|
|
2162
|
+
Fe.current = !0;
|
|
2163
2163
|
let tt = kt ? "enter" : "leave";
|
|
2164
|
-
|
|
2164
|
+
xe.onStart(m, tt, (Oe) => {
|
|
2165
2165
|
Oe === "enter" ? i == null || i() : Oe === "leave" && (l == null || l());
|
|
2166
2166
|
});
|
|
2167
|
-
}), se =
|
|
2167
|
+
}), se = N((kt) => {
|
|
2168
2168
|
let tt = kt ? "enter" : "leave";
|
|
2169
|
-
|
|
2169
|
+
Fe.current = !1, xe.onStop(m, tt, (Oe) => {
|
|
2170
2170
|
Oe === "enter" ? a == null || a() : Oe === "leave" && (s == null || s());
|
|
2171
|
-
}), tt === "leave" &&
|
|
2171
|
+
}), tt === "leave" && !Et(xe) && (S("hidden"), le(m));
|
|
2172
2172
|
});
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
}, [E,
|
|
2176
|
-
let V = !(!o || !
|
|
2177
|
-
return
|
|
2178
|
-
}
|
|
2179
|
-
function
|
|
2180
|
-
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a =
|
|
2173
|
+
M(() => {
|
|
2174
|
+
w && o || (et(E), se(E));
|
|
2175
|
+
}, [E, w, o]);
|
|
2176
|
+
let V = !(!o || !w || !De || Tt), [, I] = ra(V, m, E, { start: et, end: se }), go = _e({ ref: b, className: ((r = qt(y.className, Je && u, Je && d, I.enter && u, I.enter && I.closed && d, I.enter && !I.closed && c, I.leave && f, I.leave && !I.closed && v, I.leave && I.closed && h, !I.transition && E && _)) == null ? void 0 : r.trim()) || void 0, ...na(I) }), Ae = 0;
|
|
2177
|
+
return O === "visible" && (Ae |= G.Open), O === "hidden" && (Ae |= G.Closed), I.enter && (Ae |= G.Opening), I.leave && (Ae |= G.Closing), C.createElement($t.Provider, { value: xe }, C.createElement(la, { value: Ae }, Y({ ourProps: go, theirProps: y, defaultTag: lo, features: so, visible: O === "visible", name: "Transition.Child" })));
|
|
2178
|
+
}
|
|
2179
|
+
function Aa(e, t) {
|
|
2180
|
+
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a = $(null), l = io(e), s = Q(...l ? [a, t] : t === null ? [] : [t]);
|
|
2181
2181
|
Qe();
|
|
2182
2182
|
let u = wt();
|
|
2183
2183
|
if (n === void 0 && u !== null && (n = (u & G.Open) === G.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
2184
|
-
let [d, c] = k(n ? "visible" : "hidden"),
|
|
2184
|
+
let [d, c] = k(n ? "visible" : "hidden"), _ = ao(() => {
|
|
2185
2185
|
n || c("hidden");
|
|
2186
|
-
}), [f,
|
|
2186
|
+
}), [f, v] = k(!0), h = $([n]);
|
|
2187
2187
|
j(() => {
|
|
2188
|
-
f !== !1 &&
|
|
2189
|
-
}, [
|
|
2190
|
-
let
|
|
2188
|
+
f !== !1 && h.current[h.current.length - 1] !== n && (h.current.push(n), v(!1));
|
|
2189
|
+
}, [h, n]);
|
|
2190
|
+
let y = F(() => ({ show: n, appear: r, initial: f }), [n, r, f]);
|
|
2191
2191
|
Yr(n, a, () => c("hidden")), j(() => {
|
|
2192
|
-
n ? c("visible") :
|
|
2193
|
-
}, [n,
|
|
2194
|
-
let
|
|
2195
|
-
var
|
|
2196
|
-
f &&
|
|
2197
|
-
}),
|
|
2198
|
-
var
|
|
2199
|
-
f &&
|
|
2192
|
+
n ? c("visible") : !Et(_) && a.current !== null && c("hidden");
|
|
2193
|
+
}, [n, _]);
|
|
2194
|
+
let m = { unmount: o }, w = N(() => {
|
|
2195
|
+
var g;
|
|
2196
|
+
f && v(!1), (g = e.beforeEnter) == null || g.call(e);
|
|
2197
|
+
}), b = N(() => {
|
|
2198
|
+
var g;
|
|
2199
|
+
f && v(!1), (g = e.beforeLeave) == null || g.call(e);
|
|
2200
2200
|
});
|
|
2201
|
-
return
|
|
2201
|
+
return C.createElement($t.Provider, { value: _ }, C.createElement(bt.Provider, { value: y }, Y({ ourProps: { ...m, as: H, children: C.createElement(co, { ref: s, ...m, ...i, beforeEnter: w, beforeLeave: b }) }, theirProps: {}, defaultTag: H, features: so, visible: d === "visible", name: "Transition" })));
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function Oa(e, t) {
|
|
2204
2204
|
let n = W(bt) !== null, r = wt() !== null;
|
|
2205
|
-
return
|
|
2205
|
+
return C.createElement(C.Fragment, null, !n && r ? C.createElement(Qt, { ref: t, ...e }) : C.createElement(co, { ref: t, ...e }));
|
|
2206
2206
|
}
|
|
2207
|
-
let Qt = z(
|
|
2208
|
-
var
|
|
2209
|
-
let
|
|
2207
|
+
let Qt = z(Aa), co = z(Da), yn = z(Oa), oe = Object.assign(Qt, { Child: yn, Root: Qt });
|
|
2208
|
+
var Ia = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ia || {}), Ra = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(Ra || {});
|
|
2209
|
+
let Va = { 0(e, t) {
|
|
2210
2210
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
2211
2211
|
} }, gn = q(null);
|
|
2212
2212
|
gn.displayName = "DialogContext";
|
|
@@ -2218,74 +2218,74 @@ function Ct(e) {
|
|
|
2218
2218
|
}
|
|
2219
2219
|
return t;
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2222
|
-
return de(t.type,
|
|
2221
|
+
function Ua(e, t) {
|
|
2222
|
+
return de(t.type, Va, e, t);
|
|
2223
2223
|
}
|
|
2224
2224
|
let Kn = z(function(e, t) {
|
|
2225
|
-
let n = fe(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: a, role: l = "dialog", autoFocus: s = !0, __demoMode: u = !1, ...d } = e, c =
|
|
2225
|
+
let n = fe(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: a, role: l = "dialog", autoFocus: s = !0, __demoMode: u = !1, ...d } = e, c = $(!1);
|
|
2226
2226
|
l = function() {
|
|
2227
2227
|
return l === "dialog" || l === "alertdialog" ? l : (c.current || (c.current = !0, console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
2228
2228
|
}();
|
|
2229
|
-
let
|
|
2230
|
-
o === void 0 &&
|
|
2231
|
-
let f =
|
|
2229
|
+
let _ = wt();
|
|
2230
|
+
o === void 0 && _ !== null && (o = (_ & G.Open) === G.Open);
|
|
2231
|
+
let f = $(null), v = Q(f, t), h = Xe(f), y = o ? 0 : 1, [m, w] = Ke(Ua, { titleId: null, descriptionId: null, panelRef: en() }), b = N(() => i(!1)), g = N((V) => w({ type: 0, id: V })), E = Qe() ? y === 0 : !1, [x, R] = ma(), O = { get current() {
|
|
2232
2232
|
var V;
|
|
2233
|
-
return (V =
|
|
2234
|
-
} }, { resolveContainers: S, mainTreeNodeRef: L, MainTreeNode: U } =
|
|
2235
|
-
|
|
2236
|
-
var V,
|
|
2237
|
-
return [(
|
|
2238
|
-
}), disallowed:
|
|
2239
|
-
var V,
|
|
2240
|
-
return [(
|
|
2241
|
-
}) }),
|
|
2242
|
-
V.preventDefault(),
|
|
2243
|
-
}),
|
|
2244
|
-
V.preventDefault(), V.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(),
|
|
2245
|
-
}),
|
|
2246
|
-
let [
|
|
2247
|
-
return E && !u && (se |= he.RestoreFocus, se |= he.TabLock, s && (se |= he.AutoFocus), et && (se |= he.InitialFocus)),
|
|
2248
|
-
}),
|
|
2249
|
-
function
|
|
2233
|
+
return (V = m.panelRef.current) != null ? V : f.current;
|
|
2234
|
+
} }, { resolveContainers: S, mainTreeNodeRef: L, MainTreeNode: U } = $a({ portals: x, defaultContainers: [O] }), le = _ !== null ? (_ & G.Closing) === G.Closing : !1;
|
|
2235
|
+
Hi(u || le ? !1 : E, { allowed: N(() => {
|
|
2236
|
+
var V, I;
|
|
2237
|
+
return [(I = (V = f.current) == null ? void 0 : V.closest("[data-headlessui-portal]")) != null ? I : null];
|
|
2238
|
+
}), disallowed: N(() => {
|
|
2239
|
+
var V, I;
|
|
2240
|
+
return [(I = (V = L.current) == null ? void 0 : V.closest("body > *:not(#headlessui-portal-root)")) != null ? I : null];
|
|
2241
|
+
}) }), qi(E, S, (V) => {
|
|
2242
|
+
V.preventDefault(), b();
|
|
2243
|
+
}), wa(E, h == null ? void 0 : h.defaultView, (V) => {
|
|
2244
|
+
V.preventDefault(), V.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), b();
|
|
2245
|
+
}), Qi(u || le ? !1 : E, h, S), Yr(E, f, b);
|
|
2246
|
+
let [De, Tt] = Ti(), Je = F(() => [{ dialogState: y, close: b, setTitleId: g }, m], [y, m, b, g]), Fe = F(() => ({ open: y === 0 }), [y]), xe = { ref: v, id: r, role: l, tabIndex: -1, "aria-modal": u ? void 0 : y === 0 ? !0 : void 0, "aria-labelledby": m.titleId, "aria-describedby": De }, et = !ba(), se = he.None;
|
|
2247
|
+
return E && !u && (se |= he.RestoreFocus, se |= he.TabLock, s && (se |= he.AutoFocus), et && (se |= he.InitialFocus)), C.createElement(sa, null, C.createElement(Yn, { force: !0 }, C.createElement(ga, null, C.createElement(gn.Provider, { value: Je }, C.createElement(no, { target: f }, C.createElement(Yn, { force: !1 }, C.createElement(Tt, { slot: Fe }, C.createElement(R, null, C.createElement(Fa, { initialFocus: a, initialFocusFallback: f, containers: S, features: se }, C.createElement(Mi, { value: b }, Y({ ourProps: xe, theirProps: d, slot: Fe, defaultTag: Wa, features: ja, visible: y === 0, name: "Dialog" })))))))))), C.createElement(Ei, null, C.createElement(U, null)));
|
|
2248
|
+
}), Wa = "div", ja = ut.RenderStrategy | ut.Static;
|
|
2249
|
+
function za(e, t) {
|
|
2250
2250
|
let { transition: n = !1, open: r, ...o } = e, i = wt(), a = e.hasOwnProperty("open") || i !== null, l = e.hasOwnProperty("onClose");
|
|
2251
2251
|
if (!a && !l) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
2252
2252
|
if (!a) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
2253
2253
|
if (!l) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
2254
2254
|
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}`);
|
|
2255
2255
|
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}`);
|
|
2256
|
-
return (r !== void 0 || n) && !o.static ?
|
|
2256
|
+
return (r !== void 0 || n) && !o.static ? C.createElement(oe, { show: r, transition: n, unmount: o.unmount }, C.createElement(Kn, { ref: t, ...o })) : C.createElement(Kn, { ref: t, open: r, ...o });
|
|
2257
2257
|
}
|
|
2258
|
-
let
|
|
2259
|
-
function
|
|
2260
|
-
let n = fe(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, l] = Ct("Dialog.Panel"), s =
|
|
2258
|
+
let Ba = "div";
|
|
2259
|
+
function qa(e, t) {
|
|
2260
|
+
let n = fe(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, l] = Ct("Dialog.Panel"), s = Q(t, l.panelRef), u = F(() => ({ open: a === 0 }), [a]), d = N((c) => {
|
|
2261
2261
|
c.stopPropagation();
|
|
2262
2262
|
});
|
|
2263
|
-
return
|
|
2264
|
-
}
|
|
2265
|
-
let
|
|
2266
|
-
function
|
|
2267
|
-
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Ct("Dialog.Backdrop"), i =
|
|
2268
|
-
return
|
|
2269
|
-
}
|
|
2270
|
-
let
|
|
2271
|
-
function
|
|
2272
|
-
let n = fe(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = Ct("Dialog.Title"), l =
|
|
2273
|
-
|
|
2274
|
-
let s =
|
|
2275
|
-
return Y({ ourProps: { ref: l, id: r }, theirProps: o, slot: s, defaultTag:
|
|
2276
|
-
}
|
|
2277
|
-
let
|
|
2278
|
-
z(
|
|
2279
|
-
let
|
|
2280
|
-
const
|
|
2281
|
-
root:
|
|
2282
|
-
modal:
|
|
2283
|
-
container:
|
|
2284
|
-
page:
|
|
2285
|
-
close:
|
|
2286
|
-
},
|
|
2287
|
-
root:
|
|
2288
|
-
},
|
|
2263
|
+
return C.createElement(o ? yn : H, null, Y({ ourProps: { ref: s, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: Ba, name: "Dialog.Panel" }));
|
|
2264
|
+
}
|
|
2265
|
+
let Ya = "div";
|
|
2266
|
+
function Ka(e, t) {
|
|
2267
|
+
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Ct("Dialog.Backdrop"), i = F(() => ({ open: o === 0 }), [o]);
|
|
2268
|
+
return C.createElement(n ? yn : H, null, Y({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: Ya, name: "Dialog.Backdrop" }));
|
|
2269
|
+
}
|
|
2270
|
+
let Ga = "h2";
|
|
2271
|
+
function Za(e, t) {
|
|
2272
|
+
let n = fe(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = Ct("Dialog.Title"), l = Q(t);
|
|
2273
|
+
M(() => (a(r), () => a(null)), [r, a]);
|
|
2274
|
+
let s = F(() => ({ open: i === 0 }), [i]);
|
|
2275
|
+
return Y({ ourProps: { ref: l, id: r }, theirProps: o, slot: s, defaultTag: Ga, name: "Dialog.Title" });
|
|
2276
|
+
}
|
|
2277
|
+
let Xa = z(za), uo = z(qa);
|
|
2278
|
+
z(Ka);
|
|
2279
|
+
let Qa = z(Za), Ja = Object.assign(Xa, { Panel: uo, Title: Qa, Description: Si });
|
|
2280
|
+
const el = "_root_1hpzn_1", tl = "_modal_1hpzn_10", nl = "_container_1hpzn_13", rl = "_page_1hpzn_16", ol = "_close_1hpzn_19", ot = {
|
|
2281
|
+
root: el,
|
|
2282
|
+
modal: tl,
|
|
2283
|
+
container: nl,
|
|
2284
|
+
page: rl,
|
|
2285
|
+
close: ol
|
|
2286
|
+
}, il = "_root_1h6qm_1", al = {
|
|
2287
|
+
root: il
|
|
2288
|
+
}, ae = (e) => {
|
|
2289
2289
|
const {
|
|
2290
2290
|
children: t,
|
|
2291
2291
|
size: n = "md",
|
|
@@ -2294,7 +2294,7 @@ const Ja = "_root_1hpzn_1", el = "_modal_1hpzn_10", tl = "_container_1hpzn_13",
|
|
|
2294
2294
|
strokeWidth: i,
|
|
2295
2295
|
className: a = "",
|
|
2296
2296
|
viewBox: l = "0 0 20 20"
|
|
2297
|
-
} = e, s =
|
|
2297
|
+
} = e, s = F(() => {
|
|
2298
2298
|
switch (n) {
|
|
2299
2299
|
case "sm":
|
|
2300
2300
|
return "yvlw-w-4 yvlw-h-4";
|
|
@@ -2308,7 +2308,7 @@ const Ja = "_root_1hpzn_1", el = "_modal_1hpzn_10", tl = "_container_1hpzn_13",
|
|
|
2308
2308
|
return "yvlw-w-5 yvlw-h-5";
|
|
2309
2309
|
}
|
|
2310
2310
|
}, [n]);
|
|
2311
|
-
return /* @__PURE__ */
|
|
2311
|
+
return /* @__PURE__ */ p(
|
|
2312
2312
|
"svg",
|
|
2313
2313
|
{
|
|
2314
2314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2320,91 +2320,91 @@ const Ja = "_root_1hpzn_1", el = "_modal_1hpzn_10", tl = "_container_1hpzn_13",
|
|
|
2320
2320
|
children: t
|
|
2321
2321
|
}
|
|
2322
2322
|
);
|
|
2323
|
-
},
|
|
2323
|
+
}, ll = () => /* @__PURE__ */ p(ae, { children: /* @__PURE__ */ p("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" }) }), fo = (e) => /* @__PURE__ */ p(ae, { ...e, children: /* @__PURE__ */ p(
|
|
2324
2324
|
"path",
|
|
2325
2325
|
{
|
|
2326
2326
|
fillRule: "evenodd",
|
|
2327
2327
|
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",
|
|
2328
2328
|
clipRule: "evenodd"
|
|
2329
2329
|
}
|
|
2330
|
-
) }),
|
|
2331
|
-
/* @__PURE__ */
|
|
2332
|
-
/* @__PURE__ */
|
|
2333
|
-
] }),
|
|
2334
|
-
/* @__PURE__ */
|
|
2335
|
-
/* @__PURE__ */
|
|
2336
|
-
] }),
|
|
2337
|
-
/* @__PURE__ */
|
|
2338
|
-
/* @__PURE__ */
|
|
2339
|
-
] }),
|
|
2340
|
-
/* @__PURE__ */
|
|
2341
|
-
/* @__PURE__ */
|
|
2342
|
-
] }),
|
|
2343
|
-
/* @__PURE__ */
|
|
2344
|
-
/* @__PURE__ */
|
|
2330
|
+
) }), sl = (e) => /* @__PURE__ */ p(ae, { ...e, viewBox: "0 0 24 24", children: [
|
|
2331
|
+
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2332
|
+
/* @__PURE__ */ p("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" })
|
|
2333
|
+
] }), cl = (e) => /* @__PURE__ */ p(ae, { ...e, viewBox: "0 0 24 24", children: [
|
|
2334
|
+
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2335
|
+
/* @__PURE__ */ p("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" })
|
|
2336
|
+
] }), ul = (e) => /* @__PURE__ */ p(ae, { ...e, viewBox: "0 0 24 24", children: [
|
|
2337
|
+
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2338
|
+
/* @__PURE__ */ p("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" })
|
|
2339
|
+
] }), dl = (e) => /* @__PURE__ */ p(ae, { ...e, children: [
|
|
2340
|
+
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2341
|
+
/* @__PURE__ */ p("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" })
|
|
2342
|
+
] }), fl = (e) => /* @__PURE__ */ p(ae, { ...e, children: /* @__PURE__ */ p("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" }) }), pl = (e) => /* @__PURE__ */ p(ae, { ...e, children: /* @__PURE__ */ p("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" }) }), _l = (e) => /* @__PURE__ */ p(ae, { ...e, viewBox: "0 0 99 32", children: [
|
|
2343
|
+
/* @__PURE__ */ p("g", { clipPath: "url(#clip0_9581_165880)", children: [
|
|
2344
|
+
/* @__PURE__ */ p(
|
|
2345
2345
|
"path",
|
|
2346
2346
|
{
|
|
2347
2347
|
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",
|
|
2348
2348
|
fill: "#46B2C8"
|
|
2349
2349
|
}
|
|
2350
2350
|
),
|
|
2351
|
-
/* @__PURE__ */
|
|
2351
|
+
/* @__PURE__ */ p(
|
|
2352
2352
|
"path",
|
|
2353
2353
|
{
|
|
2354
2354
|
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",
|
|
2355
2355
|
fill: "#C7E8EF"
|
|
2356
2356
|
}
|
|
2357
2357
|
),
|
|
2358
|
-
/* @__PURE__ */
|
|
2358
|
+
/* @__PURE__ */ p(
|
|
2359
2359
|
"path",
|
|
2360
2360
|
{
|
|
2361
2361
|
d: "M68.9385 6.74805H67.1367V25.2549H68.9385V6.74805Z",
|
|
2362
2362
|
fill: "white"
|
|
2363
2363
|
}
|
|
2364
2364
|
),
|
|
2365
|
-
/* @__PURE__ */
|
|
2365
|
+
/* @__PURE__ */ p(
|
|
2366
2366
|
"path",
|
|
2367
2367
|
{
|
|
2368
2368
|
d: "M55.0725 8.52161V6.73047H47.8535V25.2683H55.0725V23.4748H49.6577V18.9874H52.9664V17.1963H49.6577V8.52161H55.0725Z",
|
|
2369
2369
|
fill: "white"
|
|
2370
2370
|
}
|
|
2371
2371
|
),
|
|
2372
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ p(
|
|
2373
2373
|
"path",
|
|
2374
2374
|
{
|
|
2375
2375
|
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",
|
|
2376
2376
|
fill: "white"
|
|
2377
2377
|
}
|
|
2378
2378
|
),
|
|
2379
|
-
/* @__PURE__ */
|
|
2379
|
+
/* @__PURE__ */ p(
|
|
2380
2380
|
"path",
|
|
2381
2381
|
{
|
|
2382
2382
|
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",
|
|
2383
2383
|
fill: "#C7E8EF"
|
|
2384
2384
|
}
|
|
2385
2385
|
),
|
|
2386
|
-
/* @__PURE__ */
|
|
2386
|
+
/* @__PURE__ */ p(
|
|
2387
2387
|
"path",
|
|
2388
2388
|
{
|
|
2389
2389
|
d: "M78.6291 8.53181V6.73828H71.4102V25.2618H73.2143V18.9976H76.5231V17.2065H73.2143V8.53181H78.6291Z",
|
|
2390
2390
|
fill: "white"
|
|
2391
2391
|
}
|
|
2392
2392
|
),
|
|
2393
|
-
/* @__PURE__ */
|
|
2393
|
+
/* @__PURE__ */ p(
|
|
2394
2394
|
"path",
|
|
2395
2395
|
{
|
|
2396
2396
|
d: "M15.8797 6.73047L13.3089 14.9764L10.9034 6.73047H9.02734L12.3793 18.2157V25.2516H14.181V18.2324L17.7653 6.73047H15.8797Z",
|
|
2397
2397
|
fill: "#C7E8EF"
|
|
2398
2398
|
}
|
|
2399
2399
|
),
|
|
2400
|
-
/* @__PURE__ */
|
|
2400
|
+
/* @__PURE__ */ p(
|
|
2401
2401
|
"path",
|
|
2402
2402
|
{
|
|
2403
2403
|
d: "M85.7767 6.73047L83.2058 14.9764L80.7979 6.73047H78.9219L82.2738 18.2157V25.2516H84.0755V18.2324L87.6623 6.73047H85.7767Z",
|
|
2404
2404
|
fill: "white"
|
|
2405
2405
|
}
|
|
2406
2406
|
),
|
|
2407
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ p(
|
|
2408
2408
|
"path",
|
|
2409
2409
|
{
|
|
2410
2410
|
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",
|
|
@@ -2412,7 +2412,7 @@ const Ja = "_root_1hpzn_1", el = "_modal_1hpzn_10", tl = "_container_1hpzn_13",
|
|
|
2412
2412
|
}
|
|
2413
2413
|
)
|
|
2414
2414
|
] }),
|
|
2415
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ p("defs", { children: /* @__PURE__ */ p("clipPath", { id: "clip0_9581_165880", children: /* @__PURE__ */ p("rect", { width: "98.9474", height: "32", fill: "white" }) }) })
|
|
2416
2416
|
] });
|
|
2417
2417
|
class we {
|
|
2418
2418
|
static loadVision() {
|
|
@@ -2483,11 +2483,12 @@ const vl = (e, t) => {
|
|
|
2483
2483
|
let o = 0, i = 0, a = t, l = n;
|
|
2484
2484
|
const u = vl(t, n).getContext("2d");
|
|
2485
2485
|
return u.drawImage(e, 0, 0), u.getImageData(o, i, a, l);
|
|
2486
|
-
},
|
|
2486
|
+
}, hl = (e) => new Promise((t) => {
|
|
2487
2487
|
const n = document.createElement("canvas");
|
|
2488
|
-
|
|
2488
|
+
let { width: r } = e, { height: o } = e;
|
|
2489
|
+
e instanceof HTMLVideoElement && (r = e.videoWidth, o = e.videoHeight), n.width = r, n.height = o, n.getContext("2d").drawImage(e, 0, 0), n.toBlob((a) => t(a));
|
|
2489
2490
|
});
|
|
2490
|
-
function
|
|
2491
|
+
function ml() {
|
|
2491
2492
|
if (MediaRecorder.isTypeSupported("video/webm; codecs=vp9"))
|
|
2492
2493
|
return { mimeType: "video/webm; codecs=vp9" };
|
|
2493
2494
|
if (MediaRecorder.isTypeSupported("video/webm"))
|
|
@@ -2495,24 +2496,27 @@ function hl() {
|
|
|
2495
2496
|
if (MediaRecorder.isTypeSupported("video/mp4"))
|
|
2496
2497
|
return { mimeType: "video/mp4" };
|
|
2497
2498
|
}
|
|
2498
|
-
function
|
|
2499
|
+
function _o(e = {}) {
|
|
2499
2500
|
const { onRecord: t = () => {
|
|
2500
2501
|
}, onStop: n = () => {
|
|
2501
|
-
} } = e, r =
|
|
2502
|
+
} } = e, r = $([]), o = $(null), i = $(null), a = A((c) => {
|
|
2502
2503
|
r.current.push(c);
|
|
2503
|
-
}, []), l =
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2504
|
+
}, []), l = A(
|
|
2505
|
+
async (c) => {
|
|
2506
|
+
if (o.current)
|
|
2507
|
+
return;
|
|
2508
|
+
const _ = await hl(c);
|
|
2509
|
+
o.current = _;
|
|
2510
|
+
},
|
|
2511
|
+
[]
|
|
2512
|
+
), s = A((c) => {
|
|
2509
2513
|
c.data.size > 0 && t(c.data);
|
|
2510
|
-
}, []), u =
|
|
2514
|
+
}, []), u = A(() => {
|
|
2511
2515
|
!i.current || i.current.state === "inactive" || (i.current.stop(), i.current.stream.getTracks().forEach((c) => c.stop()), n());
|
|
2512
|
-
}, []), d =
|
|
2516
|
+
}, []), d = A((c) => {
|
|
2513
2517
|
i.current || (i.current = new MediaRecorder(
|
|
2514
2518
|
c,
|
|
2515
|
-
|
|
2519
|
+
ml()
|
|
2516
2520
|
), i.current.ondataavailable = s, i.current.onstop = u, i.current.start(1e3));
|
|
2517
2521
|
}, []);
|
|
2518
2522
|
return {
|
|
@@ -2524,10 +2528,10 @@ function vo(e = {}) {
|
|
|
2524
2528
|
savedPhoto: o
|
|
2525
2529
|
};
|
|
2526
2530
|
}
|
|
2527
|
-
function
|
|
2531
|
+
function Le(e, t) {
|
|
2528
2532
|
return Math.sqrt(e ** 2 + t ** 2);
|
|
2529
2533
|
}
|
|
2530
|
-
function
|
|
2534
|
+
function yl(e) {
|
|
2531
2535
|
const t = e.slice();
|
|
2532
2536
|
for (let n = t.length - 1; n > 0; n--) {
|
|
2533
2537
|
const r = Math.floor(Math.random() * (n + 1));
|
|
@@ -2535,7 +2539,7 @@ function ml(e) {
|
|
|
2535
2539
|
}
|
|
2536
2540
|
return t;
|
|
2537
2541
|
}
|
|
2538
|
-
function
|
|
2542
|
+
function gl(e, t) {
|
|
2539
2543
|
return new Promise((n, r) => {
|
|
2540
2544
|
const o = new File([e], `${Date.now()}`, {
|
|
2541
2545
|
type: t
|
|
@@ -2543,10 +2547,10 @@ function yl(e, t) {
|
|
|
2543
2547
|
i.readAsDataURL(o), i.onload = () => n(i.result), i.onerror = (a) => r(a);
|
|
2544
2548
|
});
|
|
2545
2549
|
}
|
|
2546
|
-
const
|
|
2547
|
-
function
|
|
2550
|
+
const wl = "https://identity.dev.svc.youverify.co";
|
|
2551
|
+
function bl() {
|
|
2548
2552
|
return { postData: async (t) => {
|
|
2549
|
-
const { faceImage: n, publicKey: r, passed: o, metadata: i } = t, a = await fetch(`${
|
|
2553
|
+
const { faceImage: n, publicKey: r, passed: o, metadata: i } = t, a = await fetch(`${wl}/v1/sdk/identity/liveness/`, {
|
|
2550
2554
|
method: "POST",
|
|
2551
2555
|
headers: {
|
|
2552
2556
|
"Content-Type": "application/json"
|
|
@@ -2564,19 +2568,19 @@ function wl() {
|
|
|
2564
2568
|
return (await a.json()).data;
|
|
2565
2569
|
} };
|
|
2566
2570
|
}
|
|
2567
|
-
const
|
|
2571
|
+
const $l = 360, El = "#125766", Cl = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", vo = {
|
|
2568
2572
|
"complete-the-circle": {
|
|
2569
|
-
Icon:
|
|
2573
|
+
Icon: sl,
|
|
2570
2574
|
name: "Complete The Circle ⭕️",
|
|
2571
2575
|
description: "First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"
|
|
2572
2576
|
},
|
|
2573
2577
|
"yes-or-no": {
|
|
2574
|
-
Icon:
|
|
2578
|
+
Icon: cl,
|
|
2575
2579
|
name: "Yes or No ❓",
|
|
2576
2580
|
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"
|
|
2577
2581
|
},
|
|
2578
2582
|
motions: {
|
|
2579
|
-
Icon:
|
|
2583
|
+
Icon: ul,
|
|
2580
2584
|
name: "Motions 💫",
|
|
2581
2585
|
description: "First position your face in the camera frame, then follow the instructions"
|
|
2582
2586
|
},
|
|
@@ -2604,7 +2608,7 @@ const bl = 360, El = "#125766", $l = "https://cdn.youverify.co/1721901834404-q2n
|
|
|
2604
2608
|
onComplete: () => Promise.resolve()
|
|
2605
2609
|
});
|
|
2606
2610
|
let Gn, Zn = !1;
|
|
2607
|
-
function
|
|
2611
|
+
function Tl(e) {
|
|
2608
2612
|
const {
|
|
2609
2613
|
publicKey: t,
|
|
2610
2614
|
tasks: n,
|
|
@@ -2616,36 +2620,36 @@ function Cl(e) {
|
|
|
2616
2620
|
onSuccess: s = () => {
|
|
2617
2621
|
},
|
|
2618
2622
|
metadata: u
|
|
2619
|
-
} = e, [d, c] = k(0), [
|
|
2620
|
-
() =>
|
|
2621
|
-
[n,
|
|
2623
|
+
} = e, [d, c] = k(0), [_, f] = k(0), [v, h] = k(null), { saveStream: y, savePhoto: m, savedPhoto: w } = _o(), { postData: b } = bl(), g = F(
|
|
2624
|
+
() => _ === n.length,
|
|
2625
|
+
[n, _]
|
|
2622
2626
|
), E = () => {
|
|
2623
2627
|
f((S) => S + 1), c((S) => S + 1);
|
|
2624
|
-
},
|
|
2628
|
+
}, x = (S) => {
|
|
2625
2629
|
const L = new Image();
|
|
2626
|
-
L.crossOrigin = "Anonymous", L.src =
|
|
2630
|
+
L.crossOrigin = "Anonymous", L.src = Cl, L.onload = () => {
|
|
2627
2631
|
const U = po(L, L.width, L.height);
|
|
2628
2632
|
we.detectFaces(S, U);
|
|
2629
2633
|
};
|
|
2630
|
-
},
|
|
2631
|
-
const S = await
|
|
2632
|
-
faceImage:
|
|
2634
|
+
}, R = async () => {
|
|
2635
|
+
const S = await b({
|
|
2636
|
+
faceImage: w.current ? await gl(w.current, "image/png") : null,
|
|
2633
2637
|
publicKey: t,
|
|
2634
2638
|
passed: !0,
|
|
2635
2639
|
metadata: u
|
|
2636
2640
|
});
|
|
2637
2641
|
s(S), l();
|
|
2638
|
-
},
|
|
2642
|
+
}, O = async () => {
|
|
2639
2643
|
const S = await we.loadDetector();
|
|
2640
|
-
Gn = S,
|
|
2644
|
+
Gn = S, x(S), h(S);
|
|
2641
2645
|
};
|
|
2642
|
-
return
|
|
2646
|
+
return M(() => {
|
|
2643
2647
|
if (Zn) {
|
|
2644
|
-
|
|
2648
|
+
h(Gn);
|
|
2645
2649
|
return;
|
|
2646
2650
|
}
|
|
2647
|
-
|
|
2648
|
-
}, []), /* @__PURE__ */
|
|
2651
|
+
O(), Zn = !0;
|
|
2652
|
+
}, []), /* @__PURE__ */ p(
|
|
2649
2653
|
ho.Provider,
|
|
2650
2654
|
{
|
|
2651
2655
|
value: {
|
|
@@ -2653,15 +2657,15 @@ function Cl(e) {
|
|
|
2653
2657
|
namespace: o,
|
|
2654
2658
|
user: i,
|
|
2655
2659
|
currentTaskIndex: d,
|
|
2656
|
-
completed:
|
|
2657
|
-
completedCount:
|
|
2660
|
+
completed: g,
|
|
2661
|
+
completedCount: _,
|
|
2658
2662
|
nextTask: E,
|
|
2659
2663
|
branding: a,
|
|
2660
2664
|
onRequestClose: l,
|
|
2661
|
-
faceDetector:
|
|
2662
|
-
saveStream:
|
|
2663
|
-
savePhoto:
|
|
2664
|
-
onComplete:
|
|
2665
|
+
faceDetector: v,
|
|
2666
|
+
saveStream: y,
|
|
2667
|
+
savePhoto: m,
|
|
2668
|
+
onComplete: R
|
|
2665
2669
|
},
|
|
2666
2670
|
children: r
|
|
2667
2671
|
}
|
|
@@ -2670,29 +2674,29 @@ function Cl(e) {
|
|
|
2670
2674
|
function ke() {
|
|
2671
2675
|
return W(ho);
|
|
2672
2676
|
}
|
|
2673
|
-
const
|
|
2674
|
-
root:
|
|
2675
|
-
container:
|
|
2676
|
-
lhs:
|
|
2677
|
-
info:
|
|
2678
|
-
active:
|
|
2679
|
-
completed:
|
|
2680
|
-
rhs:
|
|
2681
|
-
profile:
|
|
2682
|
-
avatar:
|
|
2677
|
+
const kl = "_root_vqy7d_1", Fl = "_container_vqy7d_4", xl = "_lhs_vqy7d_7", Sl = "_info_vqy7d_11", Pl = "_active_vqy7d_32", Ml = "_completed_vqy7d_39", Ll = "_rhs_vqy7d_62", Nl = "_profile_vqy7d_65", Hl = "_avatar_vqy7d_68", Dl = "_main_vqy7d_81", Al = "_content_vqy7d_84", B = {
|
|
2678
|
+
root: kl,
|
|
2679
|
+
container: Fl,
|
|
2680
|
+
lhs: xl,
|
|
2681
|
+
info: Sl,
|
|
2682
|
+
active: Pl,
|
|
2683
|
+
completed: Ml,
|
|
2684
|
+
rhs: Ll,
|
|
2685
|
+
profile: Nl,
|
|
2686
|
+
avatar: Hl,
|
|
2683
2687
|
main: Dl,
|
|
2684
|
-
content:
|
|
2685
|
-
},
|
|
2686
|
-
root:
|
|
2687
|
-
container:
|
|
2688
|
-
brand:
|
|
2688
|
+
content: Al
|
|
2689
|
+
}, Ol = "_root_135td_1", Il = "_container_135td_1", Rl = "_brand_135td_1", Lt = {
|
|
2690
|
+
root: Ol,
|
|
2691
|
+
container: Il,
|
|
2692
|
+
brand: Rl
|
|
2689
2693
|
};
|
|
2690
|
-
function
|
|
2694
|
+
function Vl() {
|
|
2691
2695
|
const { branding: e } = ke();
|
|
2692
|
-
return /* @__PURE__ */
|
|
2696
|
+
return /* @__PURE__ */ p("div", { className: Lt.root, children: /* @__PURE__ */ p("div", { className: Lt.container, children: /* @__PURE__ */ p("div", { className: Lt.brand, children: (e == null ? void 0 : e.logo) && /* @__PURE__ */ p("img", { className: "yvlw-h-10", src: e.logo, alt: "Logo" }) }) }) });
|
|
2693
2697
|
}
|
|
2694
2698
|
const Xn = "colorScheme";
|
|
2695
|
-
function
|
|
2699
|
+
function Ul() {
|
|
2696
2700
|
const { namespace: e } = ke(), t = () => {
|
|
2697
2701
|
const o = localStorage.getItem(Xn);
|
|
2698
2702
|
return !o && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : o;
|
|
@@ -2706,66 +2710,66 @@ function Vl() {
|
|
|
2706
2710
|
return n(o === "dark" ? "light" : "dark");
|
|
2707
2711
|
}, getColorScheme: t };
|
|
2708
2712
|
}
|
|
2709
|
-
const
|
|
2710
|
-
root:
|
|
2713
|
+
const Wl = "_root_bcsvc_1", jl = {
|
|
2714
|
+
root: Wl
|
|
2711
2715
|
};
|
|
2712
|
-
function
|
|
2716
|
+
function zl() {
|
|
2713
2717
|
if (!(window.screen.width >= 900))
|
|
2714
2718
|
return 10 / 9;
|
|
2715
2719
|
}
|
|
2716
2720
|
function wn(e) {
|
|
2717
2721
|
const { children: t, onStream: n = () => {
|
|
2718
2722
|
}, onRecord: r = () => {
|
|
2719
|
-
} } = e, o =
|
|
2723
|
+
} } = e, o = $(null), i = $(0), a = $(null), { start: l, stop: s } = _o({
|
|
2720
2724
|
onRecord: r
|
|
2721
2725
|
}), u = async () => {
|
|
2722
2726
|
try {
|
|
2723
|
-
const
|
|
2724
|
-
video: { aspectRatio: { exact:
|
|
2727
|
+
const _ = await navigator.mediaDevices.getUserMedia({
|
|
2728
|
+
video: { aspectRatio: { exact: zl() } }
|
|
2725
2729
|
});
|
|
2726
|
-
a.current =
|
|
2730
|
+
a.current = _, l(_), o.current && (o.current.srcObject = _);
|
|
2727
2731
|
} catch {
|
|
2728
2732
|
}
|
|
2729
2733
|
}, d = () => {
|
|
2730
|
-
a.current && (a.current.getTracks().forEach((
|
|
2734
|
+
a.current && (a.current.getTracks().forEach((_) => _.stop()), a.current = null, s(), o.current && (o.current.srcObject = null));
|
|
2731
2735
|
}, c = () => {
|
|
2732
2736
|
n(o), i.current = requestAnimationFrame(c);
|
|
2733
2737
|
};
|
|
2734
|
-
return
|
|
2735
|
-
const
|
|
2736
|
-
if (!
|
|
2738
|
+
return M(() => {
|
|
2739
|
+
const _ = o.current;
|
|
2740
|
+
if (!_)
|
|
2737
2741
|
return;
|
|
2738
2742
|
const f = () => {
|
|
2739
2743
|
i.current = requestAnimationFrame(c);
|
|
2740
2744
|
};
|
|
2741
|
-
return u(),
|
|
2742
|
-
|
|
2745
|
+
return u(), _.addEventListener("canplay", f), () => {
|
|
2746
|
+
_.removeEventListener("canplay", f), cancelAnimationFrame(i.current), d();
|
|
2743
2747
|
};
|
|
2744
|
-
}, []), /* @__PURE__ */
|
|
2745
|
-
/* @__PURE__ */
|
|
2748
|
+
}, []), /* @__PURE__ */ p("div", { className: jl.root, children: [
|
|
2749
|
+
/* @__PURE__ */ p("video", { ref: o, autoPlay: !0, loop: !0, playsInline: !0 }),
|
|
2746
2750
|
t
|
|
2747
2751
|
] });
|
|
2748
2752
|
}
|
|
2749
|
-
const
|
|
2750
|
-
container:
|
|
2751
|
-
focused:
|
|
2752
|
-
progress:
|
|
2753
|
-
completed:
|
|
2754
|
-
marker:
|
|
2755
|
-
}, Qn = 360,
|
|
2756
|
-
function
|
|
2753
|
+
const Bl = "_container_mcmsr_1", ql = "_focused_mcmsr_12", Yl = "_progress_mcmsr_15", Kl = "_completed_mcmsr_36", Gl = "_marker_mcmsr_40", Re = {
|
|
2754
|
+
container: Bl,
|
|
2755
|
+
focused: ql,
|
|
2756
|
+
progress: Yl,
|
|
2757
|
+
completed: Kl,
|
|
2758
|
+
marker: Gl
|
|
2759
|
+
}, Qn = 360, Zl = 50;
|
|
2760
|
+
function Xl(e) {
|
|
2757
2761
|
const {
|
|
2758
2762
|
visitedSections: t,
|
|
2759
2763
|
sectionsCount: n,
|
|
2760
2764
|
faceDetected: r,
|
|
2761
|
-
divisions: o =
|
|
2762
|
-
} = e, i =
|
|
2765
|
+
divisions: o = Zl
|
|
2766
|
+
} = e, i = F(() => {
|
|
2763
2767
|
const a = [Re.container];
|
|
2764
2768
|
return r && a.push(Re.focused), a.join(" ");
|
|
2765
2769
|
}, [r]);
|
|
2766
|
-
return /* @__PURE__ */
|
|
2767
|
-
/* @__PURE__ */
|
|
2768
|
-
|
|
2770
|
+
return /* @__PURE__ */ p("div", { className: i, children: [
|
|
2771
|
+
/* @__PURE__ */ p(
|
|
2772
|
+
oe,
|
|
2769
2773
|
{
|
|
2770
2774
|
as: "div",
|
|
2771
2775
|
show: r,
|
|
@@ -2776,18 +2780,18 @@ function Zl(e) {
|
|
|
2776
2780
|
enterFrom: "yvlw-scale-125 yvlw-opacity-0",
|
|
2777
2781
|
enterTo: "yvlw-scale-100 yvlw-opacity-100",
|
|
2778
2782
|
className: "yvlw-absolute",
|
|
2779
|
-
children: /* @__PURE__ */
|
|
2783
|
+
children: /* @__PURE__ */ p("div", { className: Re.progress, children: Array.from(Array(o).keys()).map((a) => {
|
|
2780
2784
|
const l = a * Qn / o, s = Math.ceil(
|
|
2781
2785
|
(l + 1) * n / Qn
|
|
2782
2786
|
), u = t.includes(s), d = u ? a - (s - 1) * (o / n) : 0, c = [];
|
|
2783
2787
|
u && c.push(Re.completed);
|
|
2784
|
-
const
|
|
2785
|
-
return /* @__PURE__ */
|
|
2788
|
+
const _ = u ? "translateX(158px)" : "translateX(150px)";
|
|
2789
|
+
return /* @__PURE__ */ p(
|
|
2786
2790
|
"div",
|
|
2787
2791
|
{
|
|
2788
2792
|
className: c.join(" "),
|
|
2789
2793
|
style: {
|
|
2790
|
-
transform: `rotate(${l}deg) ${
|
|
2794
|
+
transform: `rotate(${l}deg) ${_}`,
|
|
2791
2795
|
transitionDelay: `${d * 20}ms`
|
|
2792
2796
|
}
|
|
2793
2797
|
},
|
|
@@ -2796,8 +2800,8 @@ function Zl(e) {
|
|
|
2796
2800
|
}) })
|
|
2797
2801
|
}
|
|
2798
2802
|
),
|
|
2799
|
-
/* @__PURE__ */
|
|
2800
|
-
|
|
2803
|
+
/* @__PURE__ */ p(
|
|
2804
|
+
oe,
|
|
2801
2805
|
{
|
|
2802
2806
|
as: "div",
|
|
2803
2807
|
show: !r,
|
|
@@ -2808,17 +2812,17 @@ function Zl(e) {
|
|
|
2808
2812
|
enterFrom: "yvlw-scale-75 yvlw-opacity-0",
|
|
2809
2813
|
enterTo: "yvlw-scale-100 yvlw-opacity-100",
|
|
2810
2814
|
className: "yvlw-absolute",
|
|
2811
|
-
children: /* @__PURE__ */
|
|
2812
|
-
/* @__PURE__ */
|
|
2813
|
-
/* @__PURE__ */
|
|
2814
|
-
/* @__PURE__ */
|
|
2815
|
-
/* @__PURE__ */
|
|
2815
|
+
children: /* @__PURE__ */ p("div", { className: Re.marker, children: [
|
|
2816
|
+
/* @__PURE__ */ p("div", {}),
|
|
2817
|
+
/* @__PURE__ */ p("div", {}),
|
|
2818
|
+
/* @__PURE__ */ p("div", {}),
|
|
2819
|
+
/* @__PURE__ */ p("div", {})
|
|
2816
2820
|
] })
|
|
2817
2821
|
}
|
|
2818
2822
|
)
|
|
2819
2823
|
] });
|
|
2820
2824
|
}
|
|
2821
|
-
function
|
|
2825
|
+
function Ql() {
|
|
2822
2826
|
return { checkZoomLevel: (r, o) => {
|
|
2823
2827
|
const { box: i } = r, { width: a, height: l } = i, s = a * l, u = o ** 2, d = s / u;
|
|
2824
2828
|
if (d > 0.9)
|
|
@@ -2840,29 +2844,29 @@ function bn(e = {}) {
|
|
|
2840
2844
|
},
|
|
2841
2845
|
onError: o = () => {
|
|
2842
2846
|
}
|
|
2843
|
-
} = e, { faceDetector: i } = ke(), { checkFacialFeatures:
|
|
2844
|
-
var
|
|
2847
|
+
} = e, { faceDetector: i, savePhoto: a } = ke(), l = $(!1), s = $(!1), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: c } = Ql(), _ = $(null), f = (h, y) => {
|
|
2848
|
+
var m;
|
|
2845
2849
|
try {
|
|
2846
|
-
if (
|
|
2850
|
+
if (h.length === 0)
|
|
2847
2851
|
throw new Error("Detecting face...");
|
|
2848
|
-
if (
|
|
2852
|
+
if (h.length > 1)
|
|
2849
2853
|
throw new Error("A maximum of 1 face is allowed");
|
|
2850
|
-
const
|
|
2851
|
-
if (!
|
|
2854
|
+
const w = _.current, b = (m = _.current) == null ? void 0 : m.parentElement;
|
|
2855
|
+
if (!w || !b)
|
|
2852
2856
|
return;
|
|
2853
|
-
const
|
|
2854
|
-
for (const
|
|
2855
|
-
switch (
|
|
2857
|
+
const g = h[0];
|
|
2858
|
+
for (const E of t)
|
|
2859
|
+
switch (E) {
|
|
2856
2860
|
case "zoom":
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
Math.min(
|
|
2861
|
+
d(
|
|
2862
|
+
g,
|
|
2863
|
+
Math.min(b.clientHeight, b.clientWidth)
|
|
2860
2864
|
);
|
|
2861
2865
|
break;
|
|
2862
2866
|
case "features":
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
Math.min(
|
|
2867
|
+
u(
|
|
2868
|
+
g,
|
|
2869
|
+
Math.min(b.clientHeight, b.clientWidth)
|
|
2866
2870
|
);
|
|
2867
2871
|
break;
|
|
2868
2872
|
case "in-frame":
|
|
@@ -2870,59 +2874,72 @@ function bn(e = {}) {
|
|
|
2870
2874
|
throw new Error(
|
|
2871
2875
|
"Frame size is required to check if face is in frame"
|
|
2872
2876
|
);
|
|
2873
|
-
const
|
|
2874
|
-
|
|
2875
|
-
x: (
|
|
2876
|
-
y: (
|
|
2877
|
-
width:
|
|
2878
|
-
height:
|
|
2879
|
-
offsetX: (
|
|
2880
|
-
offsetY: (
|
|
2877
|
+
const x = n + 200;
|
|
2878
|
+
c(g, {
|
|
2879
|
+
x: (b.clientWidth - x) / 2,
|
|
2880
|
+
y: (b.clientHeight - x) / 2,
|
|
2881
|
+
width: x,
|
|
2882
|
+
height: x,
|
|
2883
|
+
offsetX: (w.videoWidth - b.clientWidth) / 2,
|
|
2884
|
+
offsetY: (w.videoHeight - b.clientHeight) / 2
|
|
2881
2885
|
});
|
|
2882
2886
|
break;
|
|
2883
2887
|
default:
|
|
2884
2888
|
break;
|
|
2885
2889
|
}
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
+
if (!s.current)
|
|
2891
|
+
throw l.current || (l.current = !0, setTimeout(() => {
|
|
2892
|
+
a(y), s.current = !0;
|
|
2893
|
+
}, 2e3)), new Error("Keep head still for a photograph");
|
|
2894
|
+
r(g);
|
|
2895
|
+
} catch (w) {
|
|
2896
|
+
const { message: b } = w;
|
|
2897
|
+
o(b);
|
|
2890
2898
|
}
|
|
2891
2899
|
};
|
|
2892
|
-
return { detectFaces: async (
|
|
2900
|
+
return { detectFaces: async (h) => {
|
|
2893
2901
|
if (!i)
|
|
2894
2902
|
return;
|
|
2895
|
-
const { ref:
|
|
2896
|
-
|
|
2897
|
-
const
|
|
2898
|
-
if (!
|
|
2903
|
+
const { ref: y } = h;
|
|
2904
|
+
_.current = y.current;
|
|
2905
|
+
const m = _.current;
|
|
2906
|
+
if (!m)
|
|
2899
2907
|
throw new Error("No Video Source detected");
|
|
2900
|
-
const { videoWidth:
|
|
2901
|
-
if (
|
|
2908
|
+
const { videoWidth: w, videoHeight: b } = m;
|
|
2909
|
+
if (w === 0 || b === 0)
|
|
2902
2910
|
return;
|
|
2903
|
-
const
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2911
|
+
const g = po(
|
|
2912
|
+
m,
|
|
2913
|
+
w,
|
|
2914
|
+
b
|
|
2907
2915
|
// frameSize,
|
|
2908
|
-
),
|
|
2909
|
-
|
|
2916
|
+
), E = await we.detectFaces(i, g);
|
|
2917
|
+
f(E, m);
|
|
2910
2918
|
} };
|
|
2911
2919
|
}
|
|
2912
|
-
const
|
|
2913
|
-
root:
|
|
2914
|
-
container:
|
|
2915
|
-
progress:
|
|
2916
|
-
intro:
|
|
2917
|
-
content:
|
|
2918
|
-
branding:
|
|
2919
|
-
instructionsContainer:
|
|
2920
|
-
instructions:
|
|
2921
|
-
},
|
|
2922
|
-
root:
|
|
2923
|
-
spinner:
|
|
2924
|
-
spin:
|
|
2920
|
+
const Jl = "_root_1psx5_1", es = "_container_1psx5_4", ts = "_progress_1psx5_7", ns = "_intro_1psx5_12", rs = "_content_1psx5_15", os = "_branding_1psx5_18", is = "_instructionsContainer_1psx5_22", as = "_instructions_1psx5_22", J = {
|
|
2921
|
+
root: Jl,
|
|
2922
|
+
container: es,
|
|
2923
|
+
progress: ts,
|
|
2924
|
+
intro: ns,
|
|
2925
|
+
content: rs,
|
|
2926
|
+
branding: os,
|
|
2927
|
+
instructionsContainer: is,
|
|
2928
|
+
instructions: as
|
|
2929
|
+
}, ls = "_root_1j21c_1", ss = "_spinner_1j21c_18", cs = "_spin_1j21c_18", us = {
|
|
2930
|
+
root: ls,
|
|
2931
|
+
spinner: ss,
|
|
2932
|
+
spin: cs
|
|
2933
|
+
}, ds = "_container_1vep2_1", fs = "_spin_1vep2_1", ps = "_md_1vep2_7", _s = "_lg_1vep2_10", Jn = {
|
|
2934
|
+
container: ds,
|
|
2935
|
+
spin: fs,
|
|
2936
|
+
md: ps,
|
|
2937
|
+
lg: _s
|
|
2925
2938
|
};
|
|
2939
|
+
function mo(e) {
|
|
2940
|
+
const { size: t = "md" } = e;
|
|
2941
|
+
return /* @__PURE__ */ p("span", { className: `${Jn.container} ${Jn[t]}` });
|
|
2942
|
+
}
|
|
2926
2943
|
function ft(e) {
|
|
2927
2944
|
const {
|
|
2928
2945
|
Icon: t,
|
|
@@ -2934,41 +2951,41 @@ function ft(e) {
|
|
|
2934
2951
|
loading: a = !1,
|
|
2935
2952
|
children: l
|
|
2936
2953
|
} = e;
|
|
2937
|
-
return /* @__PURE__ */
|
|
2938
|
-
/* @__PURE__ */
|
|
2939
|
-
/* @__PURE__ */
|
|
2940
|
-
/* @__PURE__ */
|
|
2941
|
-
/* @__PURE__ */
|
|
2942
|
-
|
|
2954
|
+
return /* @__PURE__ */ p("div", { className: us.root, children: [
|
|
2955
|
+
/* @__PURE__ */ p(t, { size: "custom", className: "yvlw-h-20 yvlw-mx-auto yvlw-mb-12" }),
|
|
2956
|
+
/* @__PURE__ */ p("h2", { children: r }),
|
|
2957
|
+
/* @__PURE__ */ p("p", { className: "subtext", children: n }),
|
|
2958
|
+
/* @__PURE__ */ p("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ p(
|
|
2959
|
+
gi,
|
|
2943
2960
|
{
|
|
2944
2961
|
onClick: () => i(),
|
|
2945
2962
|
className: "yvlw-flex yvlw-items-center yvlw-space-x-3",
|
|
2946
2963
|
disabled: a,
|
|
2947
2964
|
children: [
|
|
2948
|
-
/* @__PURE__ */
|
|
2949
|
-
a && /* @__PURE__ */
|
|
2965
|
+
/* @__PURE__ */ p("span", { className: "yvlw-flex-1 yvlw-flex yvlw-items-center yvlw-space-x-1 yvlw-justify-center", children: o }),
|
|
2966
|
+
a && /* @__PURE__ */ p(mo, {})
|
|
2950
2967
|
]
|
|
2951
2968
|
}
|
|
2952
2969
|
) }),
|
|
2953
2970
|
l
|
|
2954
2971
|
] });
|
|
2955
2972
|
}
|
|
2956
|
-
function
|
|
2973
|
+
function $n(e) {
|
|
2957
2974
|
const { children: t, instruction: n, name: r, completed: o, onStart: i = () => {
|
|
2958
|
-
} } = e, [a, l] = k(!1), { completedCount: s, tasks: u, nextTask: d } = ke(), c =
|
|
2975
|
+
} } = e, [a, l] = k(!1), { completedCount: s, tasks: u, nextTask: d } = ke(), c = F(() => vo[r], [r]), _ = F(
|
|
2959
2976
|
() => s * 100 / u.length,
|
|
2960
2977
|
[s, u.length]
|
|
2961
2978
|
);
|
|
2962
|
-
return /* @__PURE__ */
|
|
2963
|
-
/* @__PURE__ */
|
|
2979
|
+
return /* @__PURE__ */ p("div", { className: J.root, children: /* @__PURE__ */ p("div", { className: `${J.container} view`, children: [
|
|
2980
|
+
/* @__PURE__ */ p(
|
|
2964
2981
|
"div",
|
|
2965
2982
|
{
|
|
2966
|
-
style: { width: `${
|
|
2967
|
-
className:
|
|
2983
|
+
style: { width: `${_}%` },
|
|
2984
|
+
className: J.progress
|
|
2968
2985
|
}
|
|
2969
2986
|
),
|
|
2970
|
-
/* @__PURE__ */
|
|
2971
|
-
|
|
2987
|
+
/* @__PURE__ */ p(
|
|
2988
|
+
oe,
|
|
2972
2989
|
{
|
|
2973
2990
|
show: !a && !o,
|
|
2974
2991
|
as: "div",
|
|
@@ -2979,7 +2996,7 @@ function En(e) {
|
|
|
2979
2996
|
leaveFrom: "yvlw-translate-x-0",
|
|
2980
2997
|
leaveTo: "yvlw--translate-x-full",
|
|
2981
2998
|
className: "yvlw-absolute yvlw-h-full yvlw-w-full",
|
|
2982
|
-
children: /* @__PURE__ */
|
|
2999
|
+
children: /* @__PURE__ */ p("div", { className: `${J.intro}`, children: /* @__PURE__ */ p(
|
|
2983
3000
|
ft,
|
|
2984
3001
|
{
|
|
2985
3002
|
Icon: c.Icon,
|
|
@@ -2993,8 +3010,8 @@ function En(e) {
|
|
|
2993
3010
|
) })
|
|
2994
3011
|
}
|
|
2995
3012
|
),
|
|
2996
|
-
/* @__PURE__ */
|
|
2997
|
-
|
|
3013
|
+
/* @__PURE__ */ p(
|
|
3014
|
+
oe,
|
|
2998
3015
|
{
|
|
2999
3016
|
as: "div",
|
|
3000
3017
|
show: a && !o,
|
|
@@ -3006,23 +3023,23 @@ function En(e) {
|
|
|
3006
3023
|
leaveTo: "yvlw-translate-x-full",
|
|
3007
3024
|
className: "yvlw-absolute yvlw-w-full yvlw-h-full",
|
|
3008
3025
|
children: [
|
|
3009
|
-
/* @__PURE__ */
|
|
3010
|
-
/* @__PURE__ */
|
|
3011
|
-
/* @__PURE__ */
|
|
3012
|
-
/* @__PURE__ */
|
|
3013
|
-
/* @__PURE__ */
|
|
3026
|
+
/* @__PURE__ */ p("div", { className: `${J.content}`, children: t }),
|
|
3027
|
+
/* @__PURE__ */ p("div", { className: J.instructionsContainer, children: [
|
|
3028
|
+
/* @__PURE__ */ p("div", { className: J.instructions, children: [
|
|
3029
|
+
/* @__PURE__ */ p("h2", { children: n.title }),
|
|
3030
|
+
/* @__PURE__ */ p("p", { className: "subtext", children: n.description })
|
|
3014
3031
|
] }),
|
|
3015
|
-
/* @__PURE__ */
|
|
3016
|
-
/* @__PURE__ */
|
|
3032
|
+
/* @__PURE__ */ p("div", { className: J.branding, children: [
|
|
3033
|
+
/* @__PURE__ */ p("span", { children: "Powered by" }),
|
|
3017
3034
|
" ",
|
|
3018
|
-
/* @__PURE__ */
|
|
3035
|
+
/* @__PURE__ */ p(_l, { size: "custom", className: "yvlw-h-3" })
|
|
3019
3036
|
] })
|
|
3020
3037
|
] })
|
|
3021
3038
|
]
|
|
3022
3039
|
}
|
|
3023
3040
|
),
|
|
3024
|
-
/* @__PURE__ */
|
|
3025
|
-
|
|
3041
|
+
/* @__PURE__ */ p(
|
|
3042
|
+
oe,
|
|
3026
3043
|
{
|
|
3027
3044
|
show: o,
|
|
3028
3045
|
as: "div",
|
|
@@ -3033,7 +3050,7 @@ function En(e) {
|
|
|
3033
3050
|
leaveFrom: "yvlw-translate-x-0",
|
|
3034
3051
|
leaveTo: "yvlw-translate-x-full",
|
|
3035
3052
|
className: "yvlw-absolute yvlw-w-full yvlw-h-full",
|
|
3036
|
-
children: /* @__PURE__ */
|
|
3053
|
+
children: /* @__PURE__ */ p("div", { className: `${J.intro}`, children: /* @__PURE__ */ p(
|
|
3037
3054
|
ft,
|
|
3038
3055
|
{
|
|
3039
3056
|
Icon: c.Icon,
|
|
@@ -3050,18 +3067,18 @@ function En(e) {
|
|
|
3050
3067
|
)
|
|
3051
3068
|
] }) });
|
|
3052
3069
|
}
|
|
3053
|
-
const
|
|
3054
|
-
function
|
|
3055
|
-
const { difficulty: t } = e, { saveStream: n
|
|
3056
|
-
const
|
|
3057
|
-
|
|
3058
|
-
|
|
3070
|
+
const vs = 1, Nt = 8;
|
|
3071
|
+
function hs(e) {
|
|
3072
|
+
const { difficulty: t } = e, { saveStream: n } = ke(), [r, o] = k([]), [i, a] = k("Place face in frame"), [l, s] = k(!1), [u, d] = k(!1), c = $(/* @__PURE__ */ new Set()), _ = $(!1), f = $(null), v = (g) => {
|
|
3073
|
+
const E = g * Nt, x = Math.ceil((E + 1) / $l);
|
|
3074
|
+
c.current.has(x) || (c.current.add(x), o(Array.from(c.current))), c.current.size >= Nt && setTimeout(() => {
|
|
3075
|
+
d(!0);
|
|
3059
3076
|
}, 1e3);
|
|
3060
|
-
},
|
|
3061
|
-
let
|
|
3062
|
-
return
|
|
3063
|
-
},
|
|
3064
|
-
if (
|
|
3077
|
+
}, h = (g, E) => {
|
|
3078
|
+
let R = Math.atan2(E, g) * (180 / Math.PI);
|
|
3079
|
+
return R < 0 && (R += 360), R;
|
|
3080
|
+
}, y = F(() => {
|
|
3081
|
+
if (c.current.size === 0)
|
|
3065
3082
|
return 25;
|
|
3066
3083
|
switch (t) {
|
|
3067
3084
|
case "easy":
|
|
@@ -3071,80 +3088,80 @@ function us(e) {
|
|
|
3071
3088
|
default:
|
|
3072
3089
|
return 10;
|
|
3073
3090
|
}
|
|
3074
|
-
}, []),
|
|
3075
|
-
const { keypoints:
|
|
3076
|
-
return Math.abs(
|
|
3077
|
-
}, { detectFaces:
|
|
3091
|
+
}, []), m = (g) => {
|
|
3092
|
+
const { keypoints: E, box: x } = g, R = { x: x.width * 0.5, y: x.height * 0.5 }, O = E[vs], S = { y: O.y - x.yMin, x: O.x - x.xMin }, L = R.x - S.x, U = S.y - R.y;
|
|
3093
|
+
return Math.abs(L) < y && Math.abs(U) < y ? null : h(L, U);
|
|
3094
|
+
}, { detectFaces: w } = bn({
|
|
3078
3095
|
frameSize: 280,
|
|
3079
3096
|
validations: ["zoom", "in-frame"],
|
|
3080
|
-
onFace: (
|
|
3081
|
-
|
|
3082
|
-
const
|
|
3083
|
-
|
|
3097
|
+
onFace: (g) => {
|
|
3098
|
+
s(!0), a("Slowly move head around to complete circle");
|
|
3099
|
+
const E = m(g);
|
|
3100
|
+
E && v(E);
|
|
3084
3101
|
},
|
|
3085
|
-
onError: (
|
|
3086
|
-
|
|
3102
|
+
onError: (g) => {
|
|
3103
|
+
a(g), o([]), c.current.clear(), f.current = null, _.current = !1;
|
|
3087
3104
|
}
|
|
3088
3105
|
});
|
|
3089
|
-
return /* @__PURE__ */
|
|
3090
|
-
|
|
3106
|
+
return /* @__PURE__ */ p(H, { children: /* @__PURE__ */ p(
|
|
3107
|
+
$n,
|
|
3091
3108
|
{
|
|
3092
3109
|
instruction: {
|
|
3093
|
-
title:
|
|
3094
|
-
description:
|
|
3110
|
+
title: i,
|
|
3111
|
+
description: l ? void 0 : "Always ensure face is in frame"
|
|
3095
3112
|
},
|
|
3096
3113
|
name: "complete-the-circle",
|
|
3097
|
-
completed:
|
|
3098
|
-
children: /* @__PURE__ */
|
|
3114
|
+
completed: u,
|
|
3115
|
+
children: /* @__PURE__ */ p(wn, { onStream: (g) => {
|
|
3099
3116
|
try {
|
|
3100
|
-
if (!
|
|
3117
|
+
if (!g.current || u)
|
|
3101
3118
|
return;
|
|
3102
|
-
const { videoWidth:
|
|
3103
|
-
|
|
3119
|
+
const { videoWidth: E } = g.current;
|
|
3120
|
+
w({ ref: g, frameSize: E });
|
|
3104
3121
|
} catch {
|
|
3105
3122
|
}
|
|
3106
|
-
}, onRecord: n, children: /* @__PURE__ */
|
|
3107
|
-
|
|
3123
|
+
}, onRecord: n, children: /* @__PURE__ */ p(
|
|
3124
|
+
Xl,
|
|
3108
3125
|
{
|
|
3109
|
-
faceDetected:
|
|
3126
|
+
faceDetected: l,
|
|
3110
3127
|
sectionsCount: Nt,
|
|
3111
|
-
visitedSections:
|
|
3128
|
+
visitedSections: r
|
|
3112
3129
|
}
|
|
3113
3130
|
) })
|
|
3114
3131
|
}
|
|
3115
3132
|
) });
|
|
3116
3133
|
}
|
|
3117
|
-
const
|
|
3118
|
-
root:
|
|
3119
|
-
sticker:
|
|
3120
|
-
no:
|
|
3121
|
-
yes:
|
|
3134
|
+
const ms = "_root_thujo_1", ys = "_sticker_thujo_4", gs = "_no_thujo_7", ws = "_yes_thujo_12", Ht = {
|
|
3135
|
+
root: ms,
|
|
3136
|
+
sticker: ys,
|
|
3137
|
+
no: gs,
|
|
3138
|
+
yes: ws
|
|
3122
3139
|
};
|
|
3123
|
-
function
|
|
3140
|
+
function bs(e) {
|
|
3124
3141
|
const { show: t, stickers: n } = e;
|
|
3125
|
-
return /* @__PURE__ */
|
|
3142
|
+
return /* @__PURE__ */ p(H, { children: t && /* @__PURE__ */ p("div", { className: Ht.root, children: n.map((r) => /* @__PURE__ */ p(
|
|
3126
3143
|
"div",
|
|
3127
3144
|
{
|
|
3128
|
-
className: `${
|
|
3145
|
+
className: `${Ht.sticker} ${Ht[r]}`,
|
|
3129
3146
|
children: r.toUpperCase()
|
|
3130
3147
|
},
|
|
3131
3148
|
`sticker-${r}`
|
|
3132
3149
|
)) }) });
|
|
3133
3150
|
}
|
|
3134
|
-
const
|
|
3151
|
+
const $s = {
|
|
3135
3152
|
question: "Are you alive?",
|
|
3136
3153
|
errorMessage: "You have to be alive to proceed though",
|
|
3137
3154
|
answer: !0
|
|
3138
|
-
},
|
|
3139
|
-
function
|
|
3140
|
-
const { difficulty: t, questions: n = [
|
|
3141
|
-
const { keypoints:
|
|
3142
|
-
return 90 - Math.atan2(
|
|
3143
|
-
},
|
|
3144
|
-
|
|
3145
|
-
|
|
3155
|
+
}, Es = "Wrong answer. Try again";
|
|
3156
|
+
function Cs(e) {
|
|
3157
|
+
const { difficulty: t, questions: n = [$s] } = e, [r, o] = k("Keep face in camera"), [i, a] = k(!1), [l, s] = k(!1), { saveStream: u } = ke(), d = $("inactive"), c = $(0), _ = $(!1), f = (b) => {
|
|
3158
|
+
const { keypoints: g } = b, E = g[1], x = g[9], R = E.x - x.x, O = E.y - x.y;
|
|
3159
|
+
return 90 - Math.atan2(O, R) * (180 / Math.PI);
|
|
3160
|
+
}, v = (b) => {
|
|
3161
|
+
d.current = "inactive", o(n[b].question), setTimeout(() => {
|
|
3162
|
+
d.current = "active";
|
|
3146
3163
|
}, 2e3);
|
|
3147
|
-
},
|
|
3164
|
+
}, h = F(() => {
|
|
3148
3165
|
switch (t) {
|
|
3149
3166
|
case "easy":
|
|
3150
3167
|
return 2;
|
|
@@ -3153,35 +3170,35 @@ function ys(e) {
|
|
|
3153
3170
|
default:
|
|
3154
3171
|
return 4;
|
|
3155
3172
|
}
|
|
3156
|
-
}, []),
|
|
3173
|
+
}, []), y = (b) => {
|
|
3157
3174
|
try {
|
|
3158
|
-
if (
|
|
3175
|
+
if (d.current = "inactive", Math.abs(b) < h)
|
|
3159
3176
|
throw new Error("Tilt head further to answer");
|
|
3160
|
-
const
|
|
3161
|
-
if (
|
|
3162
|
-
|
|
3177
|
+
const g = b > 0, E = n[c.current].answer;
|
|
3178
|
+
if (g === E)
|
|
3179
|
+
c.current += 1, c.current === n.length ? s(!0) : v(c.current);
|
|
3163
3180
|
else
|
|
3164
3181
|
throw new Error(
|
|
3165
|
-
n[
|
|
3182
|
+
n[c.current].errorMessage || Es
|
|
3166
3183
|
);
|
|
3167
|
-
} catch (
|
|
3168
|
-
o(
|
|
3169
|
-
|
|
3184
|
+
} catch (g) {
|
|
3185
|
+
o(g.message), setTimeout(() => {
|
|
3186
|
+
v(c.current);
|
|
3170
3187
|
}, 2e3);
|
|
3171
3188
|
}
|
|
3172
|
-
}, { detectFaces:
|
|
3173
|
-
onFace: (b
|
|
3174
|
-
if (
|
|
3189
|
+
}, { detectFaces: m } = bn({
|
|
3190
|
+
onFace: (b) => {
|
|
3191
|
+
if (_.current || (a(!0), _.current = !0, v(c.current)), d.current === "inactive")
|
|
3175
3192
|
return;
|
|
3176
|
-
const
|
|
3177
|
-
|
|
3193
|
+
const g = f(b);
|
|
3194
|
+
y(g);
|
|
3178
3195
|
},
|
|
3179
3196
|
onError: (b) => {
|
|
3180
3197
|
o(b);
|
|
3181
3198
|
}
|
|
3182
3199
|
});
|
|
3183
|
-
return /* @__PURE__ */
|
|
3184
|
-
|
|
3200
|
+
return /* @__PURE__ */ p(
|
|
3201
|
+
$n,
|
|
3185
3202
|
{
|
|
3186
3203
|
instruction: {
|
|
3187
3204
|
title: r,
|
|
@@ -3189,19 +3206,19 @@ function ys(e) {
|
|
|
3189
3206
|
},
|
|
3190
3207
|
name: "yes-or-no",
|
|
3191
3208
|
completed: l,
|
|
3192
|
-
children: /* @__PURE__ */
|
|
3209
|
+
children: /* @__PURE__ */ p(wn, { onStream: (b) => {
|
|
3193
3210
|
try {
|
|
3194
3211
|
if (!b.current || l)
|
|
3195
3212
|
return;
|
|
3196
|
-
const { videoWidth:
|
|
3197
|
-
|
|
3213
|
+
const { videoWidth: g } = b.current;
|
|
3214
|
+
m({ ref: b, frameSize: g });
|
|
3198
3215
|
} catch {
|
|
3199
3216
|
}
|
|
3200
|
-
}, onRecord: u, children: /* @__PURE__ */
|
|
3217
|
+
}, onRecord: u, children: /* @__PURE__ */ p(bs, { show: i, stickers: ["yes", "no"] }) })
|
|
3201
3218
|
}
|
|
3202
3219
|
);
|
|
3203
3220
|
}
|
|
3204
|
-
function
|
|
3221
|
+
function Ts(e = {}) {
|
|
3205
3222
|
const { onChange: t = () => {
|
|
3206
3223
|
} } = e, n = !!window.DeviceOrientationEvent, r = (o) => {
|
|
3207
3224
|
t({
|
|
@@ -3210,14 +3227,14 @@ function gs(e = {}) {
|
|
|
3210
3227
|
gamma: o.gamma
|
|
3211
3228
|
});
|
|
3212
3229
|
};
|
|
3213
|
-
return
|
|
3230
|
+
return M(() => (window.addEventListener("deviceorientation", r), () => {
|
|
3214
3231
|
window.removeEventListener("deviceorientation", r);
|
|
3215
3232
|
}), []), {
|
|
3216
3233
|
canUse: n
|
|
3217
3234
|
};
|
|
3218
3235
|
}
|
|
3219
|
-
function
|
|
3220
|
-
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i =
|
|
3236
|
+
function ks(e) {
|
|
3237
|
+
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = $(null), a = $(!0), l = $(null), s = $(null), u = $(0), d = $(!1), c = F(() => {
|
|
3221
3238
|
switch (o) {
|
|
3222
3239
|
case "easy":
|
|
3223
3240
|
return 6;
|
|
@@ -3226,22 +3243,22 @@ function ws(e) {
|
|
|
3226
3243
|
default:
|
|
3227
3244
|
return 8;
|
|
3228
3245
|
}
|
|
3229
|
-
}, []),
|
|
3246
|
+
}, []), _ = () => {
|
|
3230
3247
|
if (u.current < t) {
|
|
3231
|
-
const
|
|
3232
|
-
let
|
|
3233
|
-
|
|
3248
|
+
const h = t - u.current;
|
|
3249
|
+
let y = `Nod head ${h} `;
|
|
3250
|
+
h < t && (y += "more "), y += h > 1 ? "times" : "time", n(y);
|
|
3234
3251
|
return;
|
|
3235
3252
|
}
|
|
3236
3253
|
d.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3237
3254
|
r();
|
|
3238
3255
|
}, 500);
|
|
3239
|
-
}, { canUse: f } =
|
|
3240
|
-
onChange: (
|
|
3241
|
-
s.current =
|
|
3256
|
+
}, { canUse: f } = Ts({
|
|
3257
|
+
onChange: (h) => {
|
|
3258
|
+
s.current = h;
|
|
3242
3259
|
}
|
|
3243
3260
|
});
|
|
3244
|
-
return { evaluate: (
|
|
3261
|
+
return { evaluate: (h) => {
|
|
3245
3262
|
if (!f) {
|
|
3246
3263
|
n("Cannot perform task. Transfer to mobile device to complete");
|
|
3247
3264
|
return;
|
|
@@ -3256,26 +3273,26 @@ function ws(e) {
|
|
|
3256
3273
|
}
|
|
3257
3274
|
if (d.current)
|
|
3258
3275
|
return;
|
|
3259
|
-
const { keypoints:
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
),
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
) /
|
|
3266
|
-
if (
|
|
3276
|
+
const { keypoints: y } = h, m = Le(
|
|
3277
|
+
y[6].x - y[8].x,
|
|
3278
|
+
y[6].y - y[8].y
|
|
3279
|
+
), b = Le(
|
|
3280
|
+
y[2].x - y[1].x,
|
|
3281
|
+
y[2].y - y[1].y
|
|
3282
|
+
) / m * 10;
|
|
3283
|
+
if (b > c) {
|
|
3267
3284
|
if (i.current || !a.current)
|
|
3268
3285
|
return;
|
|
3269
|
-
i.current =
|
|
3286
|
+
i.current = b, a.current = !1, l.current = setTimeout(() => {
|
|
3270
3287
|
i.current = null;
|
|
3271
3288
|
}, 3e3);
|
|
3272
3289
|
} else
|
|
3273
|
-
i.current && i.current -
|
|
3274
|
-
|
|
3290
|
+
i.current && i.current - b > c / 2 && (u.current += 1, i.current = null, l.current && clearTimeout(l.current)), a.current = !0;
|
|
3291
|
+
_();
|
|
3275
3292
|
} };
|
|
3276
3293
|
}
|
|
3277
|
-
function
|
|
3278
|
-
const { onMessage: t, onComplete: n, difficulty: r } = e, o =
|
|
3294
|
+
function Fs(e) {
|
|
3295
|
+
const { onMessage: t, onComplete: n, difficulty: r } = e, o = $(!1), i = F(() => {
|
|
3279
3296
|
switch (r) {
|
|
3280
3297
|
case "easy":
|
|
3281
3298
|
return 80;
|
|
@@ -3288,11 +3305,11 @@ function bs(e) {
|
|
|
3288
3305
|
return { evaluate: (l) => {
|
|
3289
3306
|
if (o.current)
|
|
3290
3307
|
return;
|
|
3291
|
-
const { keypoints: s } = l, u =
|
|
3308
|
+
const { keypoints: s } = l, u = Le(
|
|
3292
3309
|
s[6].x - s[8].x,
|
|
3293
3310
|
s[6].y - s[8].y
|
|
3294
3311
|
);
|
|
3295
|
-
if (
|
|
3312
|
+
if (Le(
|
|
3296
3313
|
s[14].x - s[13].x,
|
|
3297
3314
|
s[14].y - s[13].y
|
|
3298
3315
|
) / u * 100 > i) {
|
|
@@ -3304,8 +3321,8 @@ function bs(e) {
|
|
|
3304
3321
|
t("Open your mouth wide");
|
|
3305
3322
|
} };
|
|
3306
3323
|
}
|
|
3307
|
-
function
|
|
3308
|
-
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i =
|
|
3324
|
+
function xs(e) {
|
|
3325
|
+
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = $(!0), a = $(!1), l = $(null), s = $(0), u = F(() => {
|
|
3309
3326
|
switch (o) {
|
|
3310
3327
|
case "easy":
|
|
3311
3328
|
return {
|
|
@@ -3323,38 +3340,38 @@ function Es(e) {
|
|
|
3323
3340
|
open: 30
|
|
3324
3341
|
};
|
|
3325
3342
|
}
|
|
3326
|
-
}, []), d = (
|
|
3327
|
-
i.current && (
|
|
3328
|
-
}, c = (
|
|
3329
|
-
if (!i.current && !(
|
|
3330
|
-
const
|
|
3331
|
-
(
|
|
3343
|
+
}, []), d = (v) => {
|
|
3344
|
+
i.current && (v >= u.closed || (i.current = !1, l.current = Date.now()));
|
|
3345
|
+
}, c = (v) => {
|
|
3346
|
+
if (!i.current && !(v < u.open) && (i.current = !0, l.current)) {
|
|
3347
|
+
const h = Date.now(), y = l.current;
|
|
3348
|
+
(h - y) / 1e3 <= 2 && (s.current += 1);
|
|
3332
3349
|
}
|
|
3333
|
-
},
|
|
3350
|
+
}, _ = () => {
|
|
3334
3351
|
if (s.current < t) {
|
|
3335
|
-
const
|
|
3336
|
-
let
|
|
3337
|
-
|
|
3352
|
+
const v = t - s.current;
|
|
3353
|
+
let h = `Blink right eye ${v} `;
|
|
3354
|
+
v < t && (h += "more "), h += v > 1 ? "times" : "time", n(h);
|
|
3338
3355
|
return;
|
|
3339
3356
|
}
|
|
3340
3357
|
a.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3341
3358
|
r();
|
|
3342
3359
|
}, 500);
|
|
3343
3360
|
};
|
|
3344
|
-
return { evaluate: (
|
|
3361
|
+
return { evaluate: (v) => {
|
|
3345
3362
|
if (a.current)
|
|
3346
3363
|
return;
|
|
3347
|
-
const { keypoints:
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
),
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
) /
|
|
3354
|
-
d(
|
|
3364
|
+
const { keypoints: h } = v, y = Le(
|
|
3365
|
+
h[6].x - h[8].x,
|
|
3366
|
+
h[6].y - h[8].y
|
|
3367
|
+
), w = Le(
|
|
3368
|
+
h[145].x - h[159].x,
|
|
3369
|
+
h[145].y - h[159].y
|
|
3370
|
+
) / y * 100;
|
|
3371
|
+
d(w), c(w), _();
|
|
3355
3372
|
} };
|
|
3356
3373
|
}
|
|
3357
|
-
function
|
|
3374
|
+
function Ss() {
|
|
3358
3375
|
return {
|
|
3359
3376
|
requestDeviceOrientationPermission: async () => {
|
|
3360
3377
|
if (!window.DeviceOrientationEvent)
|
|
@@ -3365,49 +3382,49 @@ function $s() {
|
|
|
3365
3382
|
}
|
|
3366
3383
|
};
|
|
3367
3384
|
}
|
|
3368
|
-
var
|
|
3369
|
-
const er =
|
|
3370
|
-
function
|
|
3371
|
-
const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5 } = e, o =
|
|
3385
|
+
var yo = /* @__PURE__ */ ((e) => (e.nod = "nod", e.open_mouth = "open_mouth", e.blink = "blink", e))(yo || {});
|
|
3386
|
+
const er = yl(Object.keys(yo));
|
|
3387
|
+
function Ps(e) {
|
|
3388
|
+
const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5 } = e, o = $(0), [i, a] = k("Keep face in camera"), [l, s] = k(!1), [u, d] = k(null), c = $(!1), { requestDeviceOrientationPermission: _ } = Ss(), f = () => {
|
|
3372
3389
|
if (o.current === er.length - 1) {
|
|
3373
3390
|
s(!0);
|
|
3374
3391
|
return;
|
|
3375
3392
|
}
|
|
3376
3393
|
o.current += 1;
|
|
3377
|
-
},
|
|
3394
|
+
}, v = ks({
|
|
3378
3395
|
total: Math.floor(Math.random() * r + 1),
|
|
3379
3396
|
difficulty: t,
|
|
3380
|
-
onMessage: (
|
|
3397
|
+
onMessage: (g) => a(g),
|
|
3381
3398
|
onComplete: f
|
|
3382
|
-
}),
|
|
3399
|
+
}), h = Fs({
|
|
3383
3400
|
difficulty: t,
|
|
3384
|
-
onMessage: (
|
|
3401
|
+
onMessage: (g) => a(g),
|
|
3385
3402
|
onComplete: f
|
|
3386
|
-
}),
|
|
3403
|
+
}), y = xs({
|
|
3387
3404
|
total: Math.floor(Math.random() * n + 1),
|
|
3388
3405
|
difficulty: t,
|
|
3389
|
-
onMessage: (
|
|
3406
|
+
onMessage: (g) => a(g),
|
|
3390
3407
|
onComplete: f
|
|
3391
|
-
}), { detectFaces:
|
|
3392
|
-
onFace: (
|
|
3408
|
+
}), { detectFaces: m } = bn({
|
|
3409
|
+
onFace: (g) => {
|
|
3393
3410
|
switch (c.current || (c.current = !0), er[o.current]) {
|
|
3394
3411
|
case "nod":
|
|
3395
|
-
|
|
3412
|
+
v.evaluate(g);
|
|
3396
3413
|
break;
|
|
3397
3414
|
case "open_mouth":
|
|
3398
|
-
|
|
3415
|
+
h.evaluate(g);
|
|
3399
3416
|
break;
|
|
3400
3417
|
case "blink":
|
|
3401
|
-
|
|
3418
|
+
y.evaluate(g);
|
|
3402
3419
|
break;
|
|
3403
3420
|
}
|
|
3404
3421
|
},
|
|
3405
|
-
onError: (
|
|
3406
|
-
a(
|
|
3422
|
+
onError: (g) => {
|
|
3423
|
+
a(g);
|
|
3407
3424
|
}
|
|
3408
3425
|
});
|
|
3409
|
-
return /* @__PURE__ */
|
|
3410
|
-
|
|
3426
|
+
return /* @__PURE__ */ p(
|
|
3427
|
+
$n,
|
|
3411
3428
|
{
|
|
3412
3429
|
instruction: {
|
|
3413
3430
|
title: i,
|
|
@@ -3417,66 +3434,66 @@ function Cs(e) {
|
|
|
3417
3434
|
completed: l,
|
|
3418
3435
|
onStart: async () => {
|
|
3419
3436
|
try {
|
|
3420
|
-
await
|
|
3421
|
-
} catch (
|
|
3422
|
-
const E =
|
|
3437
|
+
await _();
|
|
3438
|
+
} catch (g) {
|
|
3439
|
+
const E = g;
|
|
3423
3440
|
a(E.message), d(E);
|
|
3424
3441
|
}
|
|
3425
3442
|
},
|
|
3426
|
-
children: u ? /* @__PURE__ */
|
|
3443
|
+
children: u ? /* @__PURE__ */ p(H, {}) : /* @__PURE__ */ p(wn, { onStream: async (g) => {
|
|
3427
3444
|
try {
|
|
3428
|
-
if (!
|
|
3445
|
+
if (!g.current || l)
|
|
3429
3446
|
return;
|
|
3430
|
-
const { videoWidth: E } =
|
|
3431
|
-
await
|
|
3447
|
+
const { videoWidth: E } = g.current;
|
|
3448
|
+
await m({ ref: g, frameSize: E, throttleInterval: 500 });
|
|
3432
3449
|
} catch {
|
|
3433
3450
|
}
|
|
3434
3451
|
} })
|
|
3435
3452
|
}
|
|
3436
3453
|
);
|
|
3437
3454
|
}
|
|
3438
|
-
function
|
|
3455
|
+
function Ms() {
|
|
3439
3456
|
var m;
|
|
3440
|
-
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } =
|
|
3441
|
-
|
|
3442
|
-
const
|
|
3443
|
-
n(
|
|
3457
|
+
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = Ul(), { user: r, tasks: o, currentTaskIndex: i, completed: a, onComplete: l, faceDetector: s } = ke(), [u, d] = k(!1), [c, _] = k(!1), [f, v] = k(null);
|
|
3458
|
+
M(() => {
|
|
3459
|
+
const w = t();
|
|
3460
|
+
n(w);
|
|
3444
3461
|
}, []);
|
|
3445
3462
|
const h = async () => {
|
|
3446
3463
|
try {
|
|
3447
|
-
|
|
3448
|
-
} catch (
|
|
3449
|
-
|
|
3464
|
+
d(!0), v(null), await l();
|
|
3465
|
+
} catch (w) {
|
|
3466
|
+
v(w.message);
|
|
3450
3467
|
} finally {
|
|
3451
|
-
|
|
3468
|
+
d(!1);
|
|
3452
3469
|
}
|
|
3453
|
-
}, y =
|
|
3454
|
-
(
|
|
3470
|
+
}, y = A(
|
|
3471
|
+
(w) => w === i ? B.active : i > w ? B.completed : "subtext",
|
|
3455
3472
|
[i]
|
|
3456
3473
|
);
|
|
3457
|
-
return /* @__PURE__ */
|
|
3458
|
-
/* @__PURE__ */
|
|
3459
|
-
/* @__PURE__ */
|
|
3460
|
-
/* @__PURE__ */
|
|
3461
|
-
/* @__PURE__ */
|
|
3462
|
-
/* @__PURE__ */
|
|
3463
|
-
o.map((
|
|
3464
|
-
/* @__PURE__ */
|
|
3474
|
+
return /* @__PURE__ */ p("div", { className: B.root, children: /* @__PURE__ */ p("div", { className: B.container, children: [
|
|
3475
|
+
/* @__PURE__ */ p("div", { className: `${B.lhs} divider`, children: [
|
|
3476
|
+
/* @__PURE__ */ p("div", { className: B.info, children: [
|
|
3477
|
+
/* @__PURE__ */ p(Vl, {}),
|
|
3478
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("p", { className: "yvlw-text-xs yvlw-m-0 yvlw-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." }) }),
|
|
3479
|
+
/* @__PURE__ */ p("ol", { children: [
|
|
3480
|
+
o.map((w, b) => /* @__PURE__ */ p("li", { className: y(b), children: vo[w.id].name }, `task-${b}`)),
|
|
3481
|
+
/* @__PURE__ */ p("li", { className: a ? B.active : "", children: "Complete! 🎉" })
|
|
3465
3482
|
] })
|
|
3466
3483
|
] }),
|
|
3467
|
-
/* @__PURE__ */
|
|
3468
|
-
/* @__PURE__ */
|
|
3469
|
-
/* @__PURE__ */
|
|
3470
|
-
/* @__PURE__ */
|
|
3471
|
-
/* @__PURE__ */
|
|
3484
|
+
/* @__PURE__ */ p("footer", { className: "divider", children: [
|
|
3485
|
+
/* @__PURE__ */ p("div", { children: "Powered by Youverify" }),
|
|
3486
|
+
/* @__PURE__ */ p("div", { onClick: () => e(), role: "button", children: [
|
|
3487
|
+
/* @__PURE__ */ p("div", { className: "dark:yvlw-hidden", children: /* @__PURE__ */ p(fo, {}) }),
|
|
3488
|
+
/* @__PURE__ */ p("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ p(ll, {}) })
|
|
3472
3489
|
] })
|
|
3473
3490
|
] })
|
|
3474
3491
|
] }),
|
|
3475
|
-
/* @__PURE__ */
|
|
3476
|
-
/* @__PURE__ */
|
|
3477
|
-
|
|
3492
|
+
/* @__PURE__ */ p("div", { className: B.main, children: /* @__PURE__ */ p("div", { className: B.content, children: [
|
|
3493
|
+
/* @__PURE__ */ p(
|
|
3494
|
+
oe,
|
|
3478
3495
|
{
|
|
3479
|
-
show: !
|
|
3496
|
+
show: !c,
|
|
3480
3497
|
as: "div",
|
|
3481
3498
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
3482
3499
|
leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
@@ -3484,38 +3501,38 @@ function Ts() {
|
|
|
3484
3501
|
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3485
3502
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3486
3503
|
className: "yvlw-h-full yvlw-w-full",
|
|
3487
|
-
children: /* @__PURE__ */
|
|
3504
|
+
children: /* @__PURE__ */ p("div", { className: B.completed, children: s ? /* @__PURE__ */ p(
|
|
3488
3505
|
ft,
|
|
3489
3506
|
{
|
|
3490
|
-
Icon:
|
|
3507
|
+
Icon: dl,
|
|
3491
3508
|
title: "Liveness Check",
|
|
3492
3509
|
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.",
|
|
3493
3510
|
actionText: "Start Liveness Test",
|
|
3494
|
-
onActionClick: () =>
|
|
3511
|
+
onActionClick: () => _(!0)
|
|
3495
3512
|
}
|
|
3496
|
-
) })
|
|
3513
|
+
) : /* @__PURE__ */ p(mo, { size: "lg" }) })
|
|
3497
3514
|
}
|
|
3498
3515
|
),
|
|
3499
|
-
o.map((
|
|
3500
|
-
let
|
|
3501
|
-
switch (
|
|
3516
|
+
o.map((w, b) => {
|
|
3517
|
+
let g;
|
|
3518
|
+
switch (w.id) {
|
|
3502
3519
|
case "complete-the-circle":
|
|
3503
|
-
|
|
3520
|
+
g = /* @__PURE__ */ p(hs, { ...w });
|
|
3504
3521
|
break;
|
|
3505
3522
|
case "yes-or-no":
|
|
3506
|
-
|
|
3523
|
+
g = /* @__PURE__ */ p(Cs, { ...w });
|
|
3507
3524
|
break;
|
|
3508
3525
|
case "motions":
|
|
3509
|
-
|
|
3526
|
+
g = /* @__PURE__ */ p(Ps, { ...w });
|
|
3510
3527
|
break;
|
|
3511
3528
|
default:
|
|
3512
|
-
|
|
3529
|
+
g = /* @__PURE__ */ p(H, {});
|
|
3513
3530
|
break;
|
|
3514
3531
|
}
|
|
3515
|
-
return /* @__PURE__ */
|
|
3516
|
-
|
|
3532
|
+
return /* @__PURE__ */ p(
|
|
3533
|
+
oe,
|
|
3517
3534
|
{
|
|
3518
|
-
show:
|
|
3535
|
+
show: c && !a && i === b,
|
|
3519
3536
|
appear: !0,
|
|
3520
3537
|
as: "div",
|
|
3521
3538
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
@@ -3524,15 +3541,15 @@ function Ts() {
|
|
|
3524
3541
|
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3525
3542
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3526
3543
|
className: "yvlw-h-full",
|
|
3527
|
-
children:
|
|
3544
|
+
children: g
|
|
3528
3545
|
},
|
|
3529
|
-
`task-${
|
|
3546
|
+
`task-${b}`
|
|
3530
3547
|
);
|
|
3531
3548
|
}),
|
|
3532
|
-
/* @__PURE__ */
|
|
3533
|
-
|
|
3549
|
+
/* @__PURE__ */ p(
|
|
3550
|
+
oe,
|
|
3534
3551
|
{
|
|
3535
|
-
show:
|
|
3552
|
+
show: c && a,
|
|
3536
3553
|
as: "div",
|
|
3537
3554
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
3538
3555
|
leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
@@ -3540,44 +3557,38 @@ function Ts() {
|
|
|
3540
3557
|
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3541
3558
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3542
3559
|
className: "yvlw-h-full yvlw-w-full",
|
|
3543
|
-
children: /* @__PURE__ */
|
|
3560
|
+
children: /* @__PURE__ */ p("div", { className: B.completed, children: /* @__PURE__ */ p(
|
|
3544
3561
|
ft,
|
|
3545
3562
|
{
|
|
3546
|
-
Icon:
|
|
3563
|
+
Icon: fl,
|
|
3547
3564
|
title: "Successful",
|
|
3548
3565
|
description: "Your Identity verification has been completed successfully. Thanks for your patience",
|
|
3549
3566
|
actionText: "Finish",
|
|
3550
|
-
loading:
|
|
3567
|
+
loading: u,
|
|
3551
3568
|
onActionClick: h,
|
|
3552
|
-
children:
|
|
3569
|
+
children: f && /* @__PURE__ */ p("div", { className: "yvlw-mt-3", children: f })
|
|
3553
3570
|
}
|
|
3554
3571
|
) })
|
|
3555
3572
|
}
|
|
3556
3573
|
)
|
|
3557
3574
|
] }) }),
|
|
3558
|
-
/* @__PURE__ */
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
/* @__PURE__ */
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
r.email && /* @__PURE__ */ v("p", { className: "subtext", children: r.email })
|
|
3571
|
-
] })
|
|
3572
|
-
] }),
|
|
3573
|
-
/* @__PURE__ */ v("footer", { children: [
|
|
3574
|
-
/* @__PURE__ */ v("div", { children: "About · Terms · Help · Privacy · Contact" }),
|
|
3575
|
-
/* @__PURE__ */ v("div", { children: "© 2024 from Youverify Inc." })
|
|
3575
|
+
/* @__PURE__ */ p("div", { className: `${B.rhs} divider`, children: r && /* @__PURE__ */ p("div", { className: `${B.profile} divider`, children: [
|
|
3576
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("div", { className: B.avatar, children: [
|
|
3577
|
+
r.firstName.charAt(0).toUpperCase(),
|
|
3578
|
+
(m = r.lastName) == null ? void 0 : m.charAt(0).toUpperCase()
|
|
3579
|
+
] }) }),
|
|
3580
|
+
/* @__PURE__ */ p("div", { children: [
|
|
3581
|
+
/* @__PURE__ */ p("h4", { children: [
|
|
3582
|
+
r.firstName,
|
|
3583
|
+
" ",
|
|
3584
|
+
r.lastName
|
|
3585
|
+
] }),
|
|
3586
|
+
r.email && /* @__PURE__ */ p("p", { className: "subtext", children: r.email })
|
|
3576
3587
|
] })
|
|
3577
|
-
] })
|
|
3588
|
+
] }) })
|
|
3578
3589
|
] }) });
|
|
3579
3590
|
}
|
|
3580
|
-
function
|
|
3591
|
+
function Ls(e) {
|
|
3581
3592
|
const {
|
|
3582
3593
|
tasks: t,
|
|
3583
3594
|
namespace: n,
|
|
@@ -3590,11 +3601,11 @@ function ks(e) {
|
|
|
3590
3601
|
presentation: s = "modal",
|
|
3591
3602
|
publicKey: u,
|
|
3592
3603
|
metadata: d
|
|
3593
|
-
} = e, [c,
|
|
3594
|
-
|
|
3604
|
+
} = e, [c, _] = k(e.show), f = () => {
|
|
3605
|
+
_(!1), i();
|
|
3595
3606
|
};
|
|
3596
|
-
return /* @__PURE__ */
|
|
3597
|
-
|
|
3607
|
+
return /* @__PURE__ */ p(
|
|
3608
|
+
Tl,
|
|
3598
3609
|
{
|
|
3599
3610
|
namespace: n,
|
|
3600
3611
|
publicKey: u,
|
|
@@ -3605,28 +3616,28 @@ function ks(e) {
|
|
|
3605
3616
|
onSuccess: a,
|
|
3606
3617
|
onFailure: l,
|
|
3607
3618
|
metadata: d,
|
|
3608
|
-
children: /* @__PURE__ */
|
|
3609
|
-
|
|
3619
|
+
children: /* @__PURE__ */ p(
|
|
3620
|
+
Ja,
|
|
3610
3621
|
{
|
|
3611
3622
|
id: n,
|
|
3612
3623
|
open: s === "page" ? !0 : c,
|
|
3613
3624
|
onClose: f,
|
|
3614
3625
|
transition: !0,
|
|
3615
|
-
className: `${
|
|
3626
|
+
className: `${al.root} ${ot.root} ${ot[s]}`,
|
|
3616
3627
|
style: {
|
|
3617
3628
|
"--branding-color": (o == null ? void 0 : o.color) ?? El
|
|
3618
3629
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3619
3630
|
},
|
|
3620
3631
|
children: [
|
|
3621
|
-
s === "modal" && /* @__PURE__ */
|
|
3622
|
-
/* @__PURE__ */
|
|
3632
|
+
s === "modal" && /* @__PURE__ */ p("div", { onClick: f, role: "button", className: ot.close, children: /* @__PURE__ */ p(pl, { className: "yvlw-text-white" }) }),
|
|
3633
|
+
/* @__PURE__ */ p(uo, { className: `${ot.container}`, children: /* @__PURE__ */ p(Ms, {}) })
|
|
3623
3634
|
]
|
|
3624
3635
|
}
|
|
3625
3636
|
)
|
|
3626
3637
|
}
|
|
3627
3638
|
);
|
|
3628
3639
|
}
|
|
3629
|
-
class
|
|
3640
|
+
class Ds {
|
|
3630
3641
|
constructor(t) {
|
|
3631
3642
|
this.tasks = [], this.container = null, this.namespace = "liveness-web-sdk";
|
|
3632
3643
|
const { presentation: n = "modal" } = t;
|
|
@@ -3641,9 +3652,9 @@ class Ss {
|
|
|
3641
3652
|
throw new Error("First Name is required when User object is supplied");
|
|
3642
3653
|
}
|
|
3643
3654
|
async start(t) {
|
|
3644
|
-
t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container),
|
|
3645
|
-
/* @__PURE__ */
|
|
3646
|
-
|
|
3655
|
+
t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), Pe(
|
|
3656
|
+
/* @__PURE__ */ p(
|
|
3657
|
+
Ls,
|
|
3647
3658
|
{
|
|
3648
3659
|
namespace: this.namespace,
|
|
3649
3660
|
publicKey: this.props.publicKey,
|
|
@@ -3670,5 +3681,5 @@ class Ss {
|
|
|
3670
3681
|
}
|
|
3671
3682
|
}
|
|
3672
3683
|
export {
|
|
3673
|
-
|
|
3684
|
+
Ds as default
|
|
3674
3685
|
};
|