youverify-liveness-web 0.1.22 → 0.1.23
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 +648 -656
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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_1duny_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_1duny_1[data-closed]{opacity:0}._root_1duny_1._modal_1duny_10{background-color:#0000004d}@media (min-width: 768px){._root_1duny_1._modal_1duny_10{padding:1rem}._root_1duny_1._modal_1duny_10 ._container_1duny_13{border-radius:.75rem}}._root_1duny_1._modal_1duny_10 ._container_1duny_13{max-width:1500px;max-height:700px}@media (min-width: 768px){._root_1duny_1._page_1duny_18{padding:0}}._root_1duny_1 ._close_1duny_21{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_1duny_1 ._close_1duny_21 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1duny_1 ._close_1duny_21 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_1duny_1 ._container_1duny_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_1duny_1 ._container_1duny_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_5hgaj_1{height:100%;text-align:center}._root_5hgaj_1 ._container_5hgaj_4{position:relative;height:100%}._root_5hgaj_1 ._container_5hgaj_4 ._progress_5hgaj_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_5hgaj_1 ._container_5hgaj_4 ._intro_5hgaj_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_5hgaj_1 ._container_5hgaj_4 ._content_5hgaj_15{height:70%;width:100%}._root_5hgaj_1 ._container_5hgaj_4 ._branding_5hgaj_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_5hgaj_1 ._container_5hgaj_4 ._branding_5hgaj_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_5hgaj_1 ._container_5hgaj_4 ._instructionsContainer_5hgaj_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_5hgaj_1 ._container_5hgaj_4 ._instructionsContainer_5hgaj_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_5hgaj_1 ._container_5hgaj_4 ._instructions_5hgaj_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_5hgaj_1 ._container_5hgaj_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_5hgaj_1 ._container_5hgaj_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_5hgaj_1 ._container_5hgaj_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_5hgaj_1 ._container_5hgaj_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_5hgaj_1 ._container_5hgaj_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_h5elg_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_h5elg_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_h5elg_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_h5elg_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_h5elg_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1 button:hover ._spinner_h5elg_22{--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 Xe, S, fr,
|
|
2
|
+
var Xe, S, fr, $e, Sn, pr, jt, ln, Bt, zt, hr, Ze = {}, vr = [], No = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, mt = Array.isArray;
|
|
3
3
|
function ue(e, t) {
|
|
4
4
|
for (var n in t) e[n] = t[n];
|
|
5
5
|
return e;
|
|
@@ -27,10 +27,10 @@ function H(e) {
|
|
|
27
27
|
function te(e, t) {
|
|
28
28
|
this.props = e, this.context = t;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
if (t == null) return e.__ ?
|
|
30
|
+
function Fe(e, t) {
|
|
31
|
+
if (t == null) return e.__ ? Fe(e.__, e.__i + 1) : null;
|
|
32
32
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
33
|
-
return typeof e.type == "function" ?
|
|
33
|
+
return typeof e.type == "function" ? Fe(e) : null;
|
|
34
34
|
}
|
|
35
35
|
function mr(e) {
|
|
36
36
|
var t, n;
|
|
@@ -43,22 +43,22 @@ function mr(e) {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
function qt(e) {
|
|
46
|
-
(!e.__d && (e.__d = !0) &&
|
|
46
|
+
(!e.__d && (e.__d = !0) && $e.push(e) && !dt.__r++ || Sn !== S.debounceRendering) && ((Sn = S.debounceRendering) || pr)(dt);
|
|
47
47
|
}
|
|
48
48
|
function dt() {
|
|
49
49
|
var e, t, n, r, o, i, a, s;
|
|
50
|
-
for (
|
|
50
|
+
for ($e.sort(jt); e = $e.shift(); ) e.__d && (t = $e.length, r = void 0, i = (o = (n = e).__v).__e, a = [], s = [], n.__P && ((r = ue({}, o)).__v = o.__v + 1, S.vnode && S.vnode(r), un(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, a, i ?? Fe(o), !!(32 & o.__u), s), r.__v = o.__v, r.__.__k[r.__i] = r, wr(a, r, s), r.__e != i && mr(r)), $e.length > t && $e.sort(jt));
|
|
51
51
|
dt.__r = 0;
|
|
52
52
|
}
|
|
53
53
|
function yr(e, t, n, r, o, i, a, s, l, u, d) {
|
|
54
54
|
var c, p, f, _, y, m = r && r.__k || vr, v = t.length;
|
|
55
|
-
for (n.__d = l,
|
|
55
|
+
for (n.__d = l, Ao(n, t, m), l = n.__d, c = 0; c < v; c++) (f = n.__k[c]) != null && typeof f != "boolean" && typeof f != "function" && (p = f.__i === -1 ? Ze : m[f.__i] || Ze, f.__i = c, un(e, f, p, o, i, a, s, l, u, d), _ = f.__e, f.ref && p.ref != f.ref && (p.ref && dn(p.ref, null, f), d.push(f.ref, f.__c || _, f)), y == null && _ != null && (y = _), 65536 & f.__u || p.__k === f.__k ? l = gr(f, l, e) : typeof f.type == "function" && f.__d !== void 0 ? l = f.__d : _ && (l = _.nextSibling), f.__d = void 0, f.__u &= -196609);
|
|
56
56
|
n.__d = l, n.__e = y;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Ao(e, t, n) {
|
|
59
59
|
var r, o, i, a, s, l = t.length, u = n.length, d = u, c = 0;
|
|
60
|
-
for (e.__k = [], r = 0; r < l; r++) a = r + c, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Be(null, o, null, null, null) : mt(o) ? Be(H, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Be(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, s =
|
|
61
|
-
if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d =
|
|
60
|
+
for (e.__k = [], r = 0; r < l; r++) a = r + c, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Be(null, o, null, null, null) : mt(o) ? Be(H, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Be(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, s = Do(o, n, a, d), o.__i = s, i = null, s !== -1 && (d--, (i = n[s]) && (i.__u |= 131072)), i == null || i.__v === null ? (s == -1 && c--, typeof o.type != "function" && (o.__u |= 65536)) : s !== a && (s == a - 1 ? c = s - a : s == a + 1 ? c++ : s > a ? d > l - a ? c += s - a : c-- : s < a && c++, s !== r + c && (o.__u |= 65536))) : (i = n[a]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Fe(i)), Kt(i, i, !1), n[a] = null, d--);
|
|
61
|
+
if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Fe(i)), Kt(i, i));
|
|
62
62
|
}
|
|
63
63
|
function gr(e, t, n) {
|
|
64
64
|
var r, o;
|
|
@@ -66,7 +66,7 @@ function gr(e, t, n) {
|
|
|
66
66
|
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = gr(r[o], t, n));
|
|
67
67
|
return t;
|
|
68
68
|
}
|
|
69
|
-
e.__e != t && (t && e.type && !n.contains(t) && (t =
|
|
69
|
+
e.__e != t && (t && e.type && !n.contains(t) && (t = Fe(e)), n.insertBefore(e.__e, t || null), t = e.__e);
|
|
70
70
|
do
|
|
71
71
|
t = t && t.nextSibling;
|
|
72
72
|
while (t != null && t.nodeType === 8);
|
|
@@ -77,7 +77,7 @@ function de(e, t) {
|
|
|
77
77
|
de(n, t);
|
|
78
78
|
}) : t.push(e)), t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Do(e, t, n, r) {
|
|
81
81
|
var o = e.key, i = e.type, a = n - 1, s = n + 1, l = t[n];
|
|
82
82
|
if (l === null || l && o == l.key && i === l.type && !(131072 & l.__u)) return n;
|
|
83
83
|
if (r > (l != null && !(131072 & l.__u) ? 1 : 0)) for (; a >= 0 || s < t.length; ) {
|
|
@@ -93,7 +93,7 @@ function Oo(e, t, n, r) {
|
|
|
93
93
|
return -1;
|
|
94
94
|
}
|
|
95
95
|
function Fn(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" || No.test(t) ? n : n + "px";
|
|
97
97
|
}
|
|
98
98
|
function ot(e, t, n, r, o) {
|
|
99
99
|
var i;
|
|
@@ -124,15 +124,15 @@ function Mn(e) {
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function un(e, t, n, r, o, i, a, s, l, u) {
|
|
127
|
-
var d, c, p, f, _, y, m, v, g, b, C, E, P, F, A, W,
|
|
127
|
+
var d, c, p, f, _, y, m, v, g, b, C, E, P, F, A, W, M = t.type;
|
|
128
128
|
if (t.constructor !== void 0) return null;
|
|
129
129
|
128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (d = S.__b) && d(t);
|
|
130
|
-
e: if (typeof
|
|
131
|
-
if (v = t.props, g = "prototype" in
|
|
130
|
+
e: if (typeof M == "function") try {
|
|
131
|
+
if (v = t.props, g = "prototype" in M && M.prototype.render, b = (d = M.contextType) && r[d.__c], C = d ? b ? b.props.value : d.__ : r, n.__c ? m = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new M(v, C) : (t.__c = c = new te(v, C), c.constructor = M, c.render = Oo), b && b.sub(c), c.props = v, c.state || (c.state = {}), c.context = C, c.__n = r, p = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && M.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = ue({}, c.__s)), ue(c.__s, M.getDerivedStateFromProps(v, c.__s))), f = c.props, _ = c.state, c.__v = t, p) g && M.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
132
132
|
else {
|
|
133
|
-
if (g &&
|
|
134
|
-
for (t.__v !== n.__v && (c.props = v, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(
|
|
135
|
-
|
|
133
|
+
if (g && M.getDerivedStateFromProps == null && v !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(v, C), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(v, c.__s, C) === !1 || t.__v === n.__v)) {
|
|
134
|
+
for (t.__v !== n.__v && (c.props = v, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(x) {
|
|
135
|
+
x && (x.__ = 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;
|
|
@@ -148,14 +148,14 @@ function un(e, t, n, r, o, i, a, s, l, u) {
|
|
|
148
148
|
c.__d = !1, P && P(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
149
149
|
while (c.__d && ++F < 25);
|
|
150
150
|
c.state = c.__s, c.getChildContext != null && (r = ue(ue({}, r), c.getChildContext())), g && !p && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, _)), yr(e, mt(W = d != null && d.type === H && d.key == null ? d.props.children : d) ? W : [W], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), m && (c.__E = c.__ = null);
|
|
151
|
-
} catch (
|
|
151
|
+
} catch (x) {
|
|
152
152
|
if (t.__v = null, l || i != null) {
|
|
153
153
|
for (t.__u |= l ? 160 : 32; s && s.nodeType === 8 && s.nextSibling; ) s = s.nextSibling;
|
|
154
154
|
i[i.indexOf(s)] = null, t.__e = s;
|
|
155
155
|
} else t.__e = n.__e, t.__k = n.__k;
|
|
156
|
-
S.__e(
|
|
156
|
+
S.__e(x, t, n);
|
|
157
157
|
}
|
|
158
|
-
else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e =
|
|
158
|
+
else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Io(n.__e, t, n, r, o, i, a, l, u);
|
|
159
159
|
(d = S.diffed) && d(t);
|
|
160
160
|
}
|
|
161
161
|
function wr(e, t, n) {
|
|
@@ -171,7 +171,7 @@ function wr(e, t, n) {
|
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Io(e, t, n, r, o, i, a, s, l) {
|
|
175
175
|
var u, d, c, p, f, _, y, m = n.props, v = t.props, g = t.type;
|
|
176
176
|
if (g === "svg" ? o = "http://www.w3.org/2000/svg" : g === "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
|
|
177
177
|
for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!g && (g ? f.localName === g : f.nodeType === 3)) {
|
|
@@ -195,7 +195,7 @@ function Ho(e, t, n, r, o, i, a, s, l) {
|
|
|
195
195
|
}
|
|
196
196
|
for (u in v) f = v[u], u == "children" ? p = f : u == "dangerouslySetInnerHTML" ? d = f : u == "value" ? _ = f : u == "checked" ? y = f : u === "key" || s && typeof f != "function" || m[u] === f || ot(e, u, f, m[u], o);
|
|
197
197
|
if (d) s || c && (d.__html === c.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
|
|
198
|
-
else if (c && (e.innerHTML = ""), yr(e, mt(p) ? p : [p], t, n, r, g === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k &&
|
|
198
|
+
else if (c && (e.innerHTML = ""), yr(e, mt(p) ? p : [p], t, n, r, g === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Fe(n, 0), s, l), i != null) for (u = i.length; u--; ) i[u] != null && _r(i[u]);
|
|
199
199
|
s || (u = "value", _ !== void 0 && (_ !== e[u] || g === "progress" && !_ || g === "option" && _ !== m[u]) && ot(e, u, _, m[u], o), u = "checked", y !== void 0 && y !== e[u] && ot(e, u, y, m[u], o));
|
|
200
200
|
}
|
|
201
201
|
return e;
|
|
@@ -223,17 +223,17 @@ function Kt(e, t, n) {
|
|
|
223
223
|
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Kt(r[o], t, n || typeof e.type != "function");
|
|
224
224
|
n || e.__e == null || _r(e.__e), e.__c = e.__ = e.__e = e.__d = void 0;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Oo(e, t, n) {
|
|
227
227
|
return this.constructor(e, n);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function De(e, t, n) {
|
|
230
230
|
var r, o, i, a;
|
|
231
231
|
S.__ && S.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], un(t, e = (!r && n || t).__k = ne(H, null, [e]), o || Ze, Ze, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Xe.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), wr(i, e, a);
|
|
232
232
|
}
|
|
233
233
|
function br(e, t) {
|
|
234
|
-
|
|
234
|
+
De(e, t, br);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Ho(e, t, n) {
|
|
237
237
|
var r, o, i, a, s = ue({}, 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] : s[i] = t[i] === void 0 && a !== void 0 ? a[i] : t[i];
|
|
239
239
|
return arguments.length > 2 && (s.children = arguments.length > 3 ? Xe.call(arguments, 2) : n), Be(e.type, s, r || e.key, o || e.ref, null);
|
|
@@ -273,33 +273,33 @@ Xe = vr.slice, S = { __e: function(e, t, n, r) {
|
|
|
273
273
|
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ue({}, this.state), typeof e == "function" && (e = e(ue({}, n), this.props)), e && ue(n, e), e != null && this.__v && (t && this._sb.push(t), qt(this));
|
|
274
274
|
}, te.prototype.forceUpdate = function(e) {
|
|
275
275
|
this.__v && (this.__e = !0, e && this.__h.push(e), qt(this));
|
|
276
|
-
}, te.prototype.render = H,
|
|
276
|
+
}, te.prototype.render = H, $e = [], pr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, jt = function(e, t) {
|
|
277
277
|
return e.__v.__b - t.__v.__b;
|
|
278
278
|
}, dt.__r = 0, ln = 0, Bt = Mn(!1), zt = Mn(!0), hr = 0;
|
|
279
|
-
var
|
|
279
|
+
var Ro = 0;
|
|
280
280
|
function h(e, t, n, r, o, i) {
|
|
281
281
|
t || (t = {});
|
|
282
282
|
var a, s, l = t;
|
|
283
283
|
if ("ref" in l) for (s in l = {}, t) s == "ref" ? a = t[s] : l[s] = t[s];
|
|
284
|
-
var u = { type: e, props: l, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --
|
|
284
|
+
var u = { type: e, props: l, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --Ro, __i: -1, __u: 0, __source: o, __self: i };
|
|
285
285
|
if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]);
|
|
286
286
|
return S.vnode && S.vnode(u), u;
|
|
287
287
|
}
|
|
288
|
-
var he,
|
|
289
|
-
function
|
|
290
|
-
V.__h && V.__h(
|
|
291
|
-
var n =
|
|
288
|
+
var he, I, At, Pn, Ie = 0, Er = [], V = S, Ln = V.__b, Nn = V.__r, An = V.diffed, Dn = V.__c, In = V.unmount, On = V.__;
|
|
289
|
+
function Pe(e, t) {
|
|
290
|
+
V.__h && V.__h(I, e, Ie || t), Ie = 0;
|
|
291
|
+
var n = I.__H || (I.__H = { __: [], __h: [] });
|
|
292
292
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
293
293
|
}
|
|
294
294
|
function k(e) {
|
|
295
|
-
return
|
|
295
|
+
return Ie = 1, Qe($r, e);
|
|
296
296
|
}
|
|
297
297
|
function Qe(e, t, n) {
|
|
298
|
-
var r =
|
|
298
|
+
var r = Pe(he++, 2);
|
|
299
299
|
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : $r(void 0, t), function(s) {
|
|
300
300
|
var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, s);
|
|
301
301
|
l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
302
|
-
}], r.__c =
|
|
302
|
+
}], r.__c = I, !I.u)) {
|
|
303
303
|
var o = function(s, l, u) {
|
|
304
304
|
if (!r.__c.__H) return !0;
|
|
305
305
|
var d = r.__c.__H.__.filter(function(p) {
|
|
@@ -316,33 +316,33 @@ function Qe(e, t, n) {
|
|
|
316
316
|
}
|
|
317
317
|
}), !(!c && r.__c.props === s) && (!i || i.call(this, s, l, u));
|
|
318
318
|
};
|
|
319
|
-
|
|
320
|
-
var i =
|
|
321
|
-
|
|
319
|
+
I.u = !0;
|
|
320
|
+
var i = I.shouldComponentUpdate, a = I.componentWillUpdate;
|
|
321
|
+
I.componentWillUpdate = function(s, l, u) {
|
|
322
322
|
if (this.__e) {
|
|
323
323
|
var d = i;
|
|
324
324
|
i = void 0, o(s, l, u), i = d;
|
|
325
325
|
}
|
|
326
326
|
a && a.call(this, s, l, u);
|
|
327
|
-
},
|
|
327
|
+
}, I.shouldComponentUpdate = o;
|
|
328
328
|
}
|
|
329
329
|
return r.__N || r.__;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
var n =
|
|
333
|
-
!V.__s && hn(n.__H, t) && (n.__ = e, n.i = t,
|
|
331
|
+
function D(e, t) {
|
|
332
|
+
var n = Pe(he++, 3);
|
|
333
|
+
!V.__s && hn(n.__H, t) && (n.__ = e, n.i = t, I.__H.__h.push(n));
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
var n =
|
|
337
|
-
!V.__s && hn(n.__H, t) && (n.__ = e, n.i = t,
|
|
335
|
+
function Le(e, t) {
|
|
336
|
+
var n = Pe(he++, 4);
|
|
337
|
+
!V.__s && hn(n.__H, t) && (n.__ = e, n.i = t, I.__h.push(n));
|
|
338
338
|
}
|
|
339
339
|
function w(e) {
|
|
340
|
-
return
|
|
340
|
+
return Ie = 5, N(function() {
|
|
341
341
|
return { current: e };
|
|
342
342
|
}, []);
|
|
343
343
|
}
|
|
344
344
|
function fn(e, t, n) {
|
|
345
|
-
|
|
345
|
+
Ie = 6, Le(function() {
|
|
346
346
|
return typeof e == "function" ? (e(t()), function() {
|
|
347
347
|
return e(null);
|
|
348
348
|
}) : e ? (e.current = t(), function() {
|
|
@@ -351,39 +351,39 @@ function fn(e, t, n) {
|
|
|
351
351
|
}, n == null ? n : n.concat(e));
|
|
352
352
|
}
|
|
353
353
|
function N(e, t) {
|
|
354
|
-
var n =
|
|
354
|
+
var n = Pe(he++, 7);
|
|
355
355
|
return hn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
356
356
|
}
|
|
357
357
|
function O(e, t) {
|
|
358
|
-
return
|
|
358
|
+
return Ie = 8, N(function() {
|
|
359
359
|
return e;
|
|
360
360
|
}, t);
|
|
361
361
|
}
|
|
362
362
|
function B(e) {
|
|
363
|
-
var t =
|
|
364
|
-
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(
|
|
363
|
+
var t = I.context[e.__c], n = Pe(he++, 9);
|
|
364
|
+
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(I)), t.props.value) : e.__;
|
|
365
365
|
}
|
|
366
366
|
function pn(e, t) {
|
|
367
367
|
V.useDebugValue && V.useDebugValue(t ? t(e) : e);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
var t =
|
|
371
|
-
return t.__ = e,
|
|
369
|
+
function Vo(e) {
|
|
370
|
+
var t = Pe(he++, 10), n = k();
|
|
371
|
+
return t.__ = e, I.componentDidCatch || (I.componentDidCatch = function(r, o) {
|
|
372
372
|
t.__ && t.__(r, o), n[1](r);
|
|
373
373
|
}), [n[0], function() {
|
|
374
374
|
n[1](void 0);
|
|
375
375
|
}];
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
var e =
|
|
377
|
+
function we() {
|
|
378
|
+
var e = Pe(he++, 11);
|
|
379
379
|
if (!e.__) {
|
|
380
|
-
for (var t =
|
|
380
|
+
for (var t = I.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
381
381
|
var n = t.__m || (t.__m = [0, 0]);
|
|
382
382
|
e.__ = "P" + n[0] + "-" + n[1]++;
|
|
383
383
|
}
|
|
384
384
|
return e.__;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Uo() {
|
|
387
387
|
for (var e; e = Er.shift(); ) if (e.__P && e.__H) try {
|
|
388
388
|
e.__H.__h.forEach(ut), e.__H.__h.forEach(Yt), e.__H.__h = [];
|
|
389
389
|
} catch (t) {
|
|
@@ -391,21 +391,21 @@ function jo() {
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
V.__b = function(e) {
|
|
394
|
-
|
|
394
|
+
I = null, Ln && Ln(e);
|
|
395
395
|
}, V.__ = function(e, t) {
|
|
396
396
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), On && On(e, t);
|
|
397
397
|
}, V.__r = function(e) {
|
|
398
398
|
Nn && Nn(e), he = 0;
|
|
399
|
-
var t = (
|
|
400
|
-
t && (At ===
|
|
399
|
+
var t = (I = e.__c).__H;
|
|
400
|
+
t && (At === I ? (t.__h = [], I.__h = [], t.__.forEach(function(n) {
|
|
401
401
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
402
|
-
})) : (t.__h.forEach(ut), t.__h.forEach(Yt), t.__h = [], he = 0)), At =
|
|
402
|
+
})) : (t.__h.forEach(ut), t.__h.forEach(Yt), t.__h = [], he = 0)), At = I;
|
|
403
403
|
}, V.diffed = function(e) {
|
|
404
404
|
An && An(e);
|
|
405
405
|
var t = e.__c;
|
|
406
|
-
t && t.__H && (t.__H.__h.length && (Er.push(t) !== 1 && Pn === V.requestAnimationFrame || ((Pn = V.requestAnimationFrame) ||
|
|
406
|
+
t && t.__H && (t.__H.__h.length && (Er.push(t) !== 1 && Pn === V.requestAnimationFrame || ((Pn = V.requestAnimationFrame) || Wo)(Uo)), t.__H.__.forEach(function(n) {
|
|
407
407
|
n.i && (n.__H = n.i), n.i = void 0;
|
|
408
|
-
})), At =
|
|
408
|
+
})), At = I = null;
|
|
409
409
|
}, V.__c = function(e, t) {
|
|
410
410
|
t.some(function(n) {
|
|
411
411
|
try {
|
|
@@ -417,9 +417,9 @@ V.__b = function(e) {
|
|
|
417
417
|
o.__h && (o.__h = []);
|
|
418
418
|
}), t = [], V.__e(r, n.__v);
|
|
419
419
|
}
|
|
420
|
-
}),
|
|
420
|
+
}), Dn && Dn(e, t);
|
|
421
421
|
}, V.unmount = function(e) {
|
|
422
|
-
|
|
422
|
+
In && In(e);
|
|
423
423
|
var t, n = e.__c;
|
|
424
424
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
425
425
|
try {
|
|
@@ -430,19 +430,19 @@ V.__b = function(e) {
|
|
|
430
430
|
}), n.__H = void 0, t && V.__e(t, n.__v));
|
|
431
431
|
};
|
|
432
432
|
var Hn = typeof requestAnimationFrame == "function";
|
|
433
|
-
function
|
|
433
|
+
function Wo(e) {
|
|
434
434
|
var t, n = function() {
|
|
435
435
|
clearTimeout(r), Hn && cancelAnimationFrame(t), setTimeout(e);
|
|
436
436
|
}, r = setTimeout(n, 100);
|
|
437
437
|
Hn && (t = requestAnimationFrame(n));
|
|
438
438
|
}
|
|
439
439
|
function ut(e) {
|
|
440
|
-
var t =
|
|
441
|
-
typeof n == "function" && (e.__c = void 0, n()),
|
|
440
|
+
var t = I, n = e.__c;
|
|
441
|
+
typeof n == "function" && (e.__c = void 0, n()), I = t;
|
|
442
442
|
}
|
|
443
443
|
function Yt(e) {
|
|
444
|
-
var t =
|
|
445
|
-
e.__c = e.__(),
|
|
444
|
+
var t = I;
|
|
445
|
+
e.__c = e.__(), I = t;
|
|
446
446
|
}
|
|
447
447
|
function hn(e, t) {
|
|
448
448
|
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
@@ -481,35 +481,35 @@ var Rn = S.__b;
|
|
|
481
481
|
S.__b = function(e) {
|
|
482
482
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Rn && Rn(e);
|
|
483
483
|
};
|
|
484
|
-
var
|
|
484
|
+
var jo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
485
485
|
function vn(e) {
|
|
486
486
|
function t(n) {
|
|
487
487
|
var r = Tr({}, n);
|
|
488
488
|
return delete r.ref, e(r, n.ref || null);
|
|
489
489
|
}
|
|
490
|
-
return t.$$typeof =
|
|
490
|
+
return t.$$typeof = jo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
491
491
|
}
|
|
492
492
|
var Vn = function(e, t) {
|
|
493
493
|
return e == null ? null : de(de(e).map(t));
|
|
494
|
-
},
|
|
494
|
+
}, xr = { map: Vn, forEach: Vn, count: function(e) {
|
|
495
495
|
return e ? de(e).length : 0;
|
|
496
496
|
}, only: function(e) {
|
|
497
497
|
var t = de(e);
|
|
498
498
|
if (t.length !== 1) throw "Children.only";
|
|
499
499
|
return t[0];
|
|
500
|
-
}, toArray: de },
|
|
500
|
+
}, toArray: de }, Bo = S.__e;
|
|
501
501
|
S.__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
|
+
Bo(e, t, n, r);
|
|
506
506
|
};
|
|
507
507
|
var Un = S.unmount;
|
|
508
|
-
function
|
|
508
|
+
function kr(e, t, n) {
|
|
509
509
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
510
510
|
typeof r.__c == "function" && r.__c();
|
|
511
511
|
}), e.__c.__H = null), (e = Tr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
512
|
-
return
|
|
512
|
+
return kr(r, t, n);
|
|
513
513
|
})), e;
|
|
514
514
|
}
|
|
515
515
|
function Sr(e, t, n) {
|
|
@@ -567,7 +567,7 @@ S.unmount = function(e) {
|
|
|
567
567
|
if (this.__b) {
|
|
568
568
|
if (this.__v.__k) {
|
|
569
569
|
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
570
|
-
this.__v.__k[0] =
|
|
570
|
+
this.__v.__k[0] = kr(this.__b, n, r.__O = r.__P);
|
|
571
571
|
}
|
|
572
572
|
this.__b = null;
|
|
573
573
|
}
|
|
@@ -581,15 +581,15 @@ var Wn = function(e, t, n) {
|
|
|
581
581
|
e.u = n = n[2];
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
function
|
|
584
|
+
function zo(e) {
|
|
585
585
|
return this.getChildContext = function() {
|
|
586
586
|
return e.context;
|
|
587
587
|
}, e.children;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function qo(e) {
|
|
590
590
|
var t = this, n = e.i;
|
|
591
591
|
t.componentWillUnmount = function() {
|
|
592
|
-
|
|
592
|
+
De(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,10 +598,10 @@ function Yo(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
|
+
} }), De(ne(zo, { context: t.context }, e.__v), t.l);
|
|
602
602
|
}
|
|
603
603
|
function yt(e, t) {
|
|
604
|
-
var n = ne(
|
|
604
|
+
var n = ne(qo, { __v: e, i: t });
|
|
605
605
|
return n.containerInfo = t, n;
|
|
606
606
|
}
|
|
607
607
|
(Ae.prototype = new te()).__a = function(e) {
|
|
@@ -624,11 +624,11 @@ function yt(e, t) {
|
|
|
624
624
|
Wn(e, n, t);
|
|
625
625
|
});
|
|
626
626
|
};
|
|
627
|
-
var Pr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103,
|
|
627
|
+
var Pr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ko = /^(?: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]/, Yo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Go = /[A-Z0-9]/g, Zo = typeof document < "u", Xo = function(e) {
|
|
628
628
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
629
629
|
};
|
|
630
630
|
function Lr(e, t, n) {
|
|
631
|
-
return t.__k == null && (t.textContent = ""),
|
|
631
|
+
return t.__k == null && (t.textContent = ""), De(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
632
632
|
}
|
|
633
633
|
function Nr(e, t, n) {
|
|
634
634
|
return br(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
@@ -641,18 +641,18 @@ te.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
641
641
|
} });
|
|
642
642
|
});
|
|
643
643
|
var jn = S.event;
|
|
644
|
-
function
|
|
644
|
+
function Qo() {
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Jo() {
|
|
647
647
|
return this.cancelBubble;
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function ei() {
|
|
650
650
|
return this.defaultPrevented;
|
|
651
651
|
}
|
|
652
652
|
S.event = function(e) {
|
|
653
|
-
return jn && (e = jn(e)), e.persist =
|
|
653
|
+
return jn && (e = jn(e)), e.persist = Qo, e.isPropagationStopped = Jo, e.isDefaultPrevented = ei, e.nativeEvent = e;
|
|
654
654
|
};
|
|
655
|
-
var _n,
|
|
655
|
+
var _n, ti = { enumerable: !1, configurable: !0, get: function() {
|
|
656
656
|
return this.class;
|
|
657
657
|
} }, Bn = S.vnode;
|
|
658
658
|
S.vnode = function(e) {
|
|
@@ -660,16 +660,16 @@ S.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 || Zo && i === "children" && r === "noscript" || i === "class" || i === "className")) {
|
|
664
664
|
var s = i.toLowerCase();
|
|
665
|
-
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : s === "translate" && a === "no" ? a = !1 : s === "ondoubleclick" ? i = "ondblclick" : s !== "onchange" || r !== "input" && r !== "textarea" ||
|
|
665
|
+
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : s === "translate" && a === "no" ? a = !1 : s === "ondoubleclick" ? i = "ondblclick" : s !== "onchange" || r !== "input" && r !== "textarea" || Xo(n.type) ? s === "onfocus" ? i = "onfocusin" : s === "onblur" ? i = "onfocusout" : Yo.test(i) ? i = s : r.indexOf("-") === -1 && Ko.test(i) ? i = i.replace(Go, "-$&").toLowerCase() : a === null && (a = void 0) : s = i = "oninput", s === "oninput" && o[i = s] && (i = "oninputCapture"), o[i] = a;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = de(n.children).forEach(function(l) {
|
|
669
669
|
l.props.selected = o.value.indexOf(l.props.value) != -1;
|
|
670
670
|
})), r == "select" && o.defaultValue != null && (o.value = de(n.children).forEach(function(l) {
|
|
671
671
|
l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.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", ti)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
673
673
|
}(e), e.$$typeof = Pr, Bn && Bn(e);
|
|
674
674
|
};
|
|
675
675
|
var zn = S.__r;
|
|
@@ -684,24 +684,24 @@ S.diffed = function(e) {
|
|
|
684
684
|
};
|
|
685
685
|
var Ar = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
686
686
|
return _n.__n[e.__c].props.value;
|
|
687
|
-
}, useCallback: O, useContext: B, useDebugValue: pn, useDeferredValue: gn, useEffect:
|
|
688
|
-
function
|
|
687
|
+
}, useCallback: O, useContext: B, useDebugValue: pn, useDeferredValue: gn, useEffect: D, useId: we, useImperativeHandle: fn, useInsertionEffect: bn, useLayoutEffect: Le, useMemo: N, useReducer: Qe, useRef: w, useState: k, useSyncExternalStore: gt, useTransition: wn } } }, ni = "17.0.2";
|
|
688
|
+
function Dr(e) {
|
|
689
689
|
return ne.bind(null, e);
|
|
690
690
|
}
|
|
691
691
|
function Oe(e) {
|
|
692
692
|
return !!e && e.$$typeof === Pr;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function Ir(e) {
|
|
695
695
|
return Oe(e) && e.type === H;
|
|
696
696
|
}
|
|
697
697
|
function Or(e) {
|
|
698
698
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
699
699
|
}
|
|
700
700
|
function mn(e) {
|
|
701
|
-
return Oe(e) ?
|
|
701
|
+
return Oe(e) ? Ho.apply(null, arguments) : e;
|
|
702
702
|
}
|
|
703
703
|
function Hr(e) {
|
|
704
|
-
return !!e.__k && (
|
|
704
|
+
return !!e.__k && (De(null, e), !0);
|
|
705
705
|
}
|
|
706
706
|
function Rr(e) {
|
|
707
707
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
@@ -720,18 +720,18 @@ function gn(e) {
|
|
|
720
720
|
function wn() {
|
|
721
721
|
return [!1, yn];
|
|
722
722
|
}
|
|
723
|
-
var bn =
|
|
723
|
+
var bn = Le, jr = Oe;
|
|
724
724
|
function gt(e, t) {
|
|
725
725
|
var n = t(), r = k({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
726
|
-
return
|
|
727
|
-
o.__ = n, o.v = t,
|
|
728
|
-
}, [e, n, t]),
|
|
729
|
-
return
|
|
730
|
-
|
|
726
|
+
return Le(function() {
|
|
727
|
+
o.__ = n, o.v = t, Dt(o) && i({ h: o });
|
|
728
|
+
}, [e, n, t]), D(function() {
|
|
729
|
+
return Dt(o) && i({ h: o }), e(function() {
|
|
730
|
+
Dt(o) && i({ h: o });
|
|
731
731
|
});
|
|
732
732
|
}, [e]), n;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Dt(e) {
|
|
735
735
|
var t, n, r = e.v, o = e.__;
|
|
736
736
|
try {
|
|
737
737
|
var i = r();
|
|
@@ -740,10 +740,10 @@ function It(e) {
|
|
|
740
740
|
return !0;
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
var T = { useState: k, useId:
|
|
743
|
+
var T = { useState: k, useId: we, useReducer: Qe, useEffect: D, useLayoutEffect: Le, useInsertionEffect: bn, useTransition: wn, useDeferredValue: gn, useSyncExternalStore: gt, startTransition: yn, useRef: w, useImperativeHandle: fn, useMemo: N, useCallback: O, useContext: B, useDebugValue: pn, version: "17.0.2", Children: xr, render: Lr, hydrate: Nr, unmountComponentAtNode: Hr, createPortal: yt, createElement: ne, createContext: G, createFactory: Dr, cloneElement: mn, createRef: cn, Fragment: H, isValidElement: Oe, isElement: jr, isFragment: Ir, isMemo: Or, findDOMNode: Rr, Component: te, PureComponent: ft, memo: Cr, forwardRef: vn, flushSync: Ur, unstable_batchedUpdates: Vr, StrictMode: Wr, Suspense: ze, SuspenseList: Ae, lazy: Mr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ar };
|
|
744
744
|
const Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
745
745
|
__proto__: null,
|
|
746
|
-
Children:
|
|
746
|
+
Children: xr,
|
|
747
747
|
Component: te,
|
|
748
748
|
Fragment: H,
|
|
749
749
|
PureComponent: ft,
|
|
@@ -754,7 +754,7 @@ const Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
754
754
|
cloneElement: mn,
|
|
755
755
|
createContext: G,
|
|
756
756
|
createElement: ne,
|
|
757
|
-
createFactory:
|
|
757
|
+
createFactory: Dr,
|
|
758
758
|
createPortal: yt,
|
|
759
759
|
createRef: cn,
|
|
760
760
|
default: T,
|
|
@@ -763,7 +763,7 @@ const Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
763
763
|
forwardRef: vn,
|
|
764
764
|
hydrate: Nr,
|
|
765
765
|
isElement: jr,
|
|
766
|
-
isFragment:
|
|
766
|
+
isFragment: Ir,
|
|
767
767
|
isMemo: Or,
|
|
768
768
|
isValidElement: Oe,
|
|
769
769
|
lazy: Mr,
|
|
@@ -776,22 +776,22 @@ const Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
776
776
|
useContext: B,
|
|
777
777
|
useDebugValue: pn,
|
|
778
778
|
useDeferredValue: gn,
|
|
779
|
-
useEffect:
|
|
780
|
-
useErrorBoundary:
|
|
781
|
-
useId:
|
|
779
|
+
useEffect: D,
|
|
780
|
+
useErrorBoundary: Vo,
|
|
781
|
+
useId: we,
|
|
782
782
|
useImperativeHandle: fn,
|
|
783
783
|
useInsertionEffect: bn,
|
|
784
|
-
useLayoutEffect:
|
|
784
|
+
useLayoutEffect: Le,
|
|
785
785
|
useMemo: N,
|
|
786
786
|
useReducer: Qe,
|
|
787
787
|
useRef: w,
|
|
788
788
|
useState: k,
|
|
789
789
|
useSyncExternalStore: gt,
|
|
790
790
|
useTransition: wn,
|
|
791
|
-
version:
|
|
791
|
+
version: ni
|
|
792
792
|
}, Symbol.toStringTag, { value: "Module" })), Br = typeof document < "u" ? T.useLayoutEffect : () => {
|
|
793
793
|
};
|
|
794
|
-
function
|
|
794
|
+
function ri(e) {
|
|
795
795
|
const t = w(null);
|
|
796
796
|
return Br(() => {
|
|
797
797
|
t.current = e;
|
|
@@ -805,25 +805,25 @@ function ii(e) {
|
|
|
805
805
|
const Je = (e) => {
|
|
806
806
|
var t;
|
|
807
807
|
return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
808
|
-
},
|
|
809
|
-
function
|
|
808
|
+
}, Ce = (e) => e && "window" in e && e.window === e ? e : Je(e).defaultView || window;
|
|
809
|
+
function oi(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 ii(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
|
|
818
|
-
return
|
|
817
|
+
function ai() {
|
|
818
|
+
return ii(/^Mac/i);
|
|
819
819
|
}
|
|
820
|
-
function
|
|
821
|
-
return
|
|
820
|
+
function si() {
|
|
821
|
+
return oi(/Android/i);
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
return e.mozInputSource === 0 && e.isTrusted ? !0 :
|
|
823
|
+
function li(e) {
|
|
824
|
+
return e.mozInputSource === 0 && e.isTrusted ? !0 : si() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
825
825
|
}
|
|
826
|
-
class
|
|
826
|
+
class ci {
|
|
827
827
|
isDefaultPrevented() {
|
|
828
828
|
return this.nativeEvent.defaultPrevented;
|
|
829
829
|
}
|
|
@@ -853,14 +853,14 @@ function zr(e) {
|
|
|
853
853
|
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
854
854
|
};
|
|
855
855
|
}, []);
|
|
856
|
-
let n =
|
|
856
|
+
let n = ri((r) => {
|
|
857
857
|
e == null || e(r);
|
|
858
858
|
});
|
|
859
859
|
return O((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 ci("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,7 +887,7 @@ function zr(e) {
|
|
|
887
887
|
n
|
|
888
888
|
]);
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function ui(e) {
|
|
891
891
|
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
|
|
892
892
|
const i = O((l) => {
|
|
893
893
|
if (l.target === l.currentTarget)
|
|
@@ -910,38 +910,38 @@ function fi(e) {
|
|
|
910
910
|
}
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
let et = null, Zt = /* @__PURE__ */ new Set(), qe = /* @__PURE__ */ new Map(),
|
|
914
|
-
const
|
|
913
|
+
let et = null, Zt = /* @__PURE__ */ new Set(), qe = /* @__PURE__ */ new Map(), Me = !1, Xt = !1;
|
|
914
|
+
const di = {
|
|
915
915
|
Tab: !0,
|
|
916
916
|
Escape: !0
|
|
917
917
|
};
|
|
918
918
|
function En(e, t) {
|
|
919
919
|
for (let n of Zt) n(e, t);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
922
|
-
return !(e.metaKey || !
|
|
921
|
+
function fi(e) {
|
|
922
|
+
return !(e.metaKey || !ai() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
923
923
|
}
|
|
924
924
|
function pt(e) {
|
|
925
|
-
|
|
925
|
+
Me = !0, fi(e) && (et = "keyboard", En("keyboard", e));
|
|
926
926
|
}
|
|
927
927
|
function X(e) {
|
|
928
|
-
et = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (
|
|
928
|
+
et = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Me = !0, En("pointer", e));
|
|
929
929
|
}
|
|
930
930
|
function qr(e) {
|
|
931
|
-
|
|
931
|
+
li(e) && (Me = !0, et = "virtual");
|
|
932
932
|
}
|
|
933
933
|
function Kr(e) {
|
|
934
|
-
e.target === window || e.target === document || (!
|
|
934
|
+
e.target === window || e.target === document || (!Me && !Xt && (et = "virtual", En("virtual", e)), Me = !1, Xt = !1);
|
|
935
935
|
}
|
|
936
936
|
function Yr() {
|
|
937
|
-
|
|
937
|
+
Me = !1, Xt = !0;
|
|
938
938
|
}
|
|
939
939
|
function Qt(e) {
|
|
940
|
-
if (typeof window > "u" || qe.get(
|
|
941
|
-
const t =
|
|
940
|
+
if (typeof window > "u" || qe.get(Ce(e))) return;
|
|
941
|
+
const t = Ce(e), n = Je(e);
|
|
942
942
|
let r = t.HTMLElement.prototype.focus;
|
|
943
943
|
t.HTMLElement.prototype.focus = function() {
|
|
944
|
-
|
|
944
|
+
Me = !0, r.apply(this, arguments);
|
|
945
945
|
}, n.addEventListener("keydown", pt, !0), n.addEventListener("keyup", pt, !0), n.addEventListener("click", qr, !0), t.addEventListener("focus", Kr, !0), t.addEventListener("blur", Yr, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", X, !0), n.addEventListener("pointermove", X, !0), n.addEventListener("pointerup", X, !0)) : (n.addEventListener("mousedown", X, !0), n.addEventListener("mousemove", X, !0), n.addEventListener("mouseup", X, !0)), t.addEventListener("beforeunload", () => {
|
|
946
946
|
Gr(e);
|
|
947
947
|
}, {
|
|
@@ -951,21 +951,21 @@ function Qt(e) {
|
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
953
|
const Gr = (e, t) => {
|
|
954
|
-
const n =
|
|
954
|
+
const n = Ce(e), r = Je(e);
|
|
955
955
|
t && r.removeEventListener("DOMContentLoaded", t), qe.has(n) && (n.HTMLElement.prototype.focus = qe.get(n).focus, r.removeEventListener("keydown", pt, !0), r.removeEventListener("keyup", pt, !0), r.removeEventListener("click", qr, !0), n.removeEventListener("focus", Kr, !0), n.removeEventListener("blur", Yr, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", X, !0), r.removeEventListener("pointermove", X, !0), r.removeEventListener("pointerup", X, !0)) : (r.removeEventListener("mousedown", X, !0), r.removeEventListener("mousemove", X, !0), r.removeEventListener("mouseup", X, !0)), qe.delete(n));
|
|
956
956
|
};
|
|
957
|
-
function
|
|
957
|
+
function pi(e) {
|
|
958
958
|
const t = Je(e);
|
|
959
959
|
let n;
|
|
960
960
|
return t.readyState !== "loading" ? Qt(e) : (n = () => {
|
|
961
961
|
Qt(e);
|
|
962
962
|
}, t.addEventListener("DOMContentLoaded", n)), () => Gr(e, n);
|
|
963
963
|
}
|
|
964
|
-
typeof document < "u" &&
|
|
964
|
+
typeof document < "u" && pi();
|
|
965
965
|
function Zr() {
|
|
966
966
|
return et !== "pointer";
|
|
967
967
|
}
|
|
968
|
-
const
|
|
968
|
+
const hi = /* @__PURE__ */ new Set([
|
|
969
969
|
"checkbox",
|
|
970
970
|
"radio",
|
|
971
971
|
"range",
|
|
@@ -976,22 +976,22 @@ const _i = /* @__PURE__ */ new Set([
|
|
|
976
976
|
"submit",
|
|
977
977
|
"reset"
|
|
978
978
|
]);
|
|
979
|
-
function
|
|
979
|
+
function vi(e, t, n) {
|
|
980
980
|
var r;
|
|
981
|
-
const o = typeof window < "u" ?
|
|
982
|
-
return e = e || (n == null ? void 0 : n.target) instanceof o && !
|
|
981
|
+
const o = typeof window < "u" ? Ce(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? Ce(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, a = typeof window < "u" ? Ce(n == null ? void 0 : n.target).HTMLElement : HTMLElement, s = typeof window < "u" ? Ce(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
|
|
982
|
+
return e = e || (n == null ? void 0 : n.target) instanceof o && !hi.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof a && (n == null ? void 0 : n.target.isContentEditable), !(e && t === "keyboard" && n instanceof s && !di[n.key]);
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
Qt(),
|
|
984
|
+
function _i(e, t, n) {
|
|
985
|
+
Qt(), D(() => {
|
|
986
986
|
let r = (o, i) => {
|
|
987
|
-
|
|
987
|
+
vi(!!(n != null && n.isTextInput), o, i) && e(Zr());
|
|
988
988
|
};
|
|
989
989
|
return Zt.add(r), () => {
|
|
990
990
|
Zt.delete(r);
|
|
991
991
|
};
|
|
992
992
|
}, t);
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function mi(e) {
|
|
995
995
|
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = w({
|
|
996
996
|
isFocusWithin: !1
|
|
997
997
|
}), a = O((u) => {
|
|
@@ -1020,7 +1020,7 @@ function gi(e) {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
};
|
|
1022
1022
|
}
|
|
1023
|
-
let ht = !1,
|
|
1023
|
+
let ht = !1, It = 0;
|
|
1024
1024
|
function Jt() {
|
|
1025
1025
|
ht = !0, setTimeout(() => {
|
|
1026
1026
|
ht = !1;
|
|
@@ -1029,20 +1029,20 @@ function Jt() {
|
|
|
1029
1029
|
function Yn(e) {
|
|
1030
1030
|
e.pointerType === "touch" && Jt();
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function yi() {
|
|
1033
1033
|
if (!(typeof document > "u"))
|
|
1034
|
-
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Yn) : document.addEventListener("touchend", Jt),
|
|
1035
|
-
|
|
1034
|
+
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Yn) : document.addEventListener("touchend", Jt), It++, () => {
|
|
1035
|
+
It--, !(It > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Yn) : document.removeEventListener("touchend", Jt));
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function gi(e) {
|
|
1039
1039
|
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] = k(!1), s = w({
|
|
1040
1040
|
isHovered: !1,
|
|
1041
1041
|
ignoreEmulatedMouseEvents: !1,
|
|
1042
1042
|
pointerType: "",
|
|
1043
1043
|
target: null
|
|
1044
1044
|
}).current;
|
|
1045
|
-
|
|
1045
|
+
D(yi, []);
|
|
1046
1046
|
let { hoverProps: l, triggerHoverEnd: u } = N(() => {
|
|
1047
1047
|
let d = (f, _) => {
|
|
1048
1048
|
if (s.pointerType = _, o || _ === "touch" || s.isHovered || !f.currentTarget.contains(f.target)) return;
|
|
@@ -1084,7 +1084,7 @@ function bi(e) {
|
|
|
1084
1084
|
o,
|
|
1085
1085
|
s
|
|
1086
1086
|
]);
|
|
1087
|
-
return
|
|
1087
|
+
return D(() => {
|
|
1088
1088
|
o && u({
|
|
1089
1089
|
currentTarget: s.target
|
|
1090
1090
|
}, s.pointerType);
|
|
@@ -1095,7 +1095,7 @@ function bi(e) {
|
|
|
1095
1095
|
isHovered: i
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function wi(e = {}) {
|
|
1099
1099
|
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = w({
|
|
1100
1100
|
isFocused: !1,
|
|
1101
1101
|
isFocusVisible: t || Zr()
|
|
@@ -1104,15 +1104,15 @@ function Ei(e = {}) {
|
|
|
1104
1104
|
}, [
|
|
1105
1105
|
u
|
|
1106
1106
|
]);
|
|
1107
|
-
|
|
1107
|
+
_i((f) => {
|
|
1108
1108
|
o.current.isFocusVisible = f, u();
|
|
1109
1109
|
}, [], {
|
|
1110
1110
|
isTextInput: n
|
|
1111
1111
|
});
|
|
1112
|
-
let { focusProps: c } =
|
|
1112
|
+
let { focusProps: c } = ui({
|
|
1113
1113
|
isDisabled: r,
|
|
1114
1114
|
onFocusChange: d
|
|
1115
|
-
}), { focusWithinProps: p } =
|
|
1115
|
+
}), { focusWithinProps: p } = mi({
|
|
1116
1116
|
isDisabled: !r,
|
|
1117
1117
|
onFocusWithinChange: d
|
|
1118
1118
|
});
|
|
@@ -1122,8 +1122,8 @@ function Ei(e = {}) {
|
|
|
1122
1122
|
focusProps: r ? p : c
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1126
|
-
let
|
|
1125
|
+
var bi = Object.defineProperty, Ei = (e, t, n) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ot = (e, t, n) => (Ei(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
1126
|
+
let $i = class {
|
|
1127
1127
|
constructor() {
|
|
1128
1128
|
Ot(this, "current", this.detect()), Ot(this, "handoffState", "pending"), Ot(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
|
-
}, ke = new
|
|
1154
|
+
}, ke = new $i();
|
|
1155
1155
|
function wt(e) {
|
|
1156
1156
|
return ke.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
1157
1157
|
}
|
|
@@ -1160,7 +1160,7 @@ function bt(e) {
|
|
|
1160
1160
|
throw t;
|
|
1161
1161
|
}));
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function be() {
|
|
1164
1164
|
let e = [], t = { addEventListener(n, r, o, i) {
|
|
1165
1165
|
return n.addEventListener(r, o, i), t.add(() => n.removeEventListener(r, o, i));
|
|
1166
1166
|
}, requestAnimationFrame(...n) {
|
|
@@ -1184,7 +1184,7 @@ function we() {
|
|
|
1184
1184
|
Object.assign(n.style, { [r]: i });
|
|
1185
1185
|
});
|
|
1186
1186
|
}, group(n) {
|
|
1187
|
-
let r =
|
|
1187
|
+
let r = be();
|
|
1188
1188
|
return n(r), this.add(() => r.dispose());
|
|
1189
1189
|
}, add(n) {
|
|
1190
1190
|
return e.includes(n) || e.push(n), () => {
|
|
@@ -1197,30 +1197,30 @@ function we() {
|
|
|
1197
1197
|
return t;
|
|
1198
1198
|
}
|
|
1199
1199
|
function Et() {
|
|
1200
|
-
let [e] = k(
|
|
1201
|
-
return
|
|
1200
|
+
let [e] = k(be);
|
|
1201
|
+
return D(() => () => e.dispose(), [e]), e;
|
|
1202
1202
|
}
|
|
1203
1203
|
let z = (e, t) => {
|
|
1204
|
-
ke.isServer ?
|
|
1204
|
+
ke.isServer ? D(e, t) : Le(e, t);
|
|
1205
1205
|
};
|
|
1206
|
-
function
|
|
1206
|
+
function Ne(e) {
|
|
1207
1207
|
let t = w(e);
|
|
1208
1208
|
return z(() => {
|
|
1209
1209
|
t.current = e;
|
|
1210
1210
|
}, [e]), t;
|
|
1211
1211
|
}
|
|
1212
1212
|
let R = function(e) {
|
|
1213
|
-
let t =
|
|
1213
|
+
let t = Ne(e);
|
|
1214
1214
|
return T.useCallback((...n) => t.current(...n), [t]);
|
|
1215
1215
|
};
|
|
1216
|
-
function
|
|
1216
|
+
function Ti(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 Ci(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
|
|
1223
|
+
function xi({ disabled: e = !1 } = {}) {
|
|
1224
1224
|
let t = w(null), [n, r] = k(!1), o = Et(), i = R(() => {
|
|
1225
1225
|
t.current = null, r(!1), o.dispose();
|
|
1226
1226
|
}), a = R((s) => {
|
|
@@ -1230,8 +1230,8 @@ function Si({ disabled: e = !1 } = {}) {
|
|
|
1230
1230
|
let l = wt(s.currentTarget);
|
|
1231
1231
|
o.addEventListener(l, "pointerup", i, !1), o.addEventListener(l, "pointermove", (u) => {
|
|
1232
1232
|
if (t.current) {
|
|
1233
|
-
let d =
|
|
1234
|
-
r(
|
|
1233
|
+
let d = Ti(u);
|
|
1234
|
+
r(Ci(d, t.current.getBoundingClientRect()));
|
|
1235
1235
|
}
|
|
1236
1236
|
}, !1), o.addEventListener(l, "pointercancel", i, !1);
|
|
1237
1237
|
}
|
|
@@ -1239,24 +1239,24 @@ function Si({ disabled: e = !1 } = {}) {
|
|
|
1239
1239
|
});
|
|
1240
1240
|
return { pressed: n, pressProps: e ? {} : { onPointerDown: a, onPointerUp: i, onClick: i } };
|
|
1241
1241
|
}
|
|
1242
|
-
let
|
|
1242
|
+
let ki = G(void 0);
|
|
1243
1243
|
function Xr() {
|
|
1244
|
-
return B(
|
|
1244
|
+
return B(ki);
|
|
1245
1245
|
}
|
|
1246
1246
|
function en(...e) {
|
|
1247
1247
|
return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function ge(e, t, ...n) {
|
|
1250
1250
|
if (e in t) {
|
|
1251
1251
|
let o = t[e];
|
|
1252
1252
|
return typeof o == "function" ? o(...n) : o;
|
|
1253
1253
|
}
|
|
1254
1254
|
let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
|
|
1255
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
1255
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, ge), r;
|
|
1256
1256
|
}
|
|
1257
|
-
var vt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(vt || {}),
|
|
1257
|
+
var vt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(vt || {}), ye = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(ye || {});
|
|
1258
1258
|
function Z({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: a, mergeRefs: s }) {
|
|
1259
|
-
s = s ??
|
|
1259
|
+
s = s ?? Si;
|
|
1260
1260
|
let l = Qr(t, e);
|
|
1261
1261
|
if (i) return it(l, n, r, a, s);
|
|
1262
1262
|
let u = o ?? 0;
|
|
@@ -1266,7 +1266,7 @@ function Z({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, vi
|
|
|
1266
1266
|
}
|
|
1267
1267
|
if (u & 1) {
|
|
1268
1268
|
let { unmount: d = !0, ...c } = l;
|
|
1269
|
-
return
|
|
1269
|
+
return ge(d ? 0 : 1, { 0() {
|
|
1270
1270
|
return null;
|
|
1271
1271
|
}, 1() {
|
|
1272
1272
|
return it({ ...c, hidden: !0, style: { display: "none" } }, n, r, a, s);
|
|
@@ -1286,19 +1286,19 @@ function it(e, t = {}, n, r, o) {
|
|
|
1286
1286
|
for (let _ of f) c[`data-${_}`] = "";
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
if (i === H && (Object.keys(
|
|
1290
|
-
if (Object.keys(
|
|
1289
|
+
if (i === H && (Object.keys(Ee(l)).length > 0 || Object.keys(Ee(c)).length > 0)) if (!Oe(d) || Array.isArray(d) && d.length > 1) {
|
|
1290
|
+
if (Object.keys(Ee(l)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Ee(l)).concat(Object.keys(Ee(c))).map((p) => ` - ${p}`).join(`
|
|
1291
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((p) => ` - ${p}`).join(`
|
|
1292
1292
|
`)].join(`
|
|
1293
1293
|
`));
|
|
1294
1294
|
} else {
|
|
1295
|
-
let p = d.props, f = p == null ? void 0 : p.className, _ = typeof f == "function" ? (...v) => en(f(...v), l.className) : en(f, l.className), y = _ ? { className: _ } : {}, m = Qr(d.props,
|
|
1295
|
+
let p = d.props, f = p == null ? void 0 : p.className, _ = typeof f == "function" ? (...v) => en(f(...v), l.className) : en(f, l.className), y = _ ? { className: _ } : {}, m = Qr(d.props, Ee(Ht(l, ["ref"])));
|
|
1296
1296
|
for (let v in c) v in m && delete c[v];
|
|
1297
1297
|
return mn(d, Object.assign({}, m, c, u, { ref: o(d.ref, u.ref) }, y));
|
|
1298
1298
|
}
|
|
1299
1299
|
return ne(i, Object.assign({}, Ht(l, ["ref"]), i !== H && u, i !== H && c), d);
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Si(...e) {
|
|
1302
1302
|
return e.every((t) => t == null) ? void 0 : (t) => {
|
|
1303
1303
|
for (let n of e) n != null && (typeof n == "function" ? n(t) : n.current = t);
|
|
1304
1304
|
};
|
|
@@ -1321,7 +1321,7 @@ function Qr(...e) {
|
|
|
1321
1321
|
} });
|
|
1322
1322
|
return t;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function Fi(...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 q(e) {
|
|
|
1336
1336
|
var t;
|
|
1337
1337
|
return Object.assign(vn(e), { displayName: (t = e.displayName) != null ? t : e.name });
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function Ee(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,33 +1346,33 @@ function Ht(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 Pi(e, t) {
|
|
1351
1351
|
var n;
|
|
1352
|
-
let r = Xr(), { disabled: o = r || !1, autoFocus: i = !1, ...a } = e, { isFocusVisible: s, focusProps: l } =
|
|
1353
|
-
return Z({ ourProps: f, theirProps: a, slot: _, defaultTag:
|
|
1352
|
+
let r = Xr(), { disabled: o = r || !1, autoFocus: i = !1, ...a } = e, { isFocusVisible: s, focusProps: l } = wi({ autoFocus: i }), { isHovered: u, hoverProps: d } = gi({ isDisabled: o }), { pressed: c, pressProps: p } = xi({ disabled: o }), f = Fi({ ref: t, type: (n = a.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, l, d, p), _ = N(() => ({ disabled: o, hover: u, focus: s, active: c, autofocus: i }), [o, u, s, c, i]);
|
|
1353
|
+
return Z({ ourProps: f, theirProps: a, slot: _, defaultTag: Mi, name: "Button" });
|
|
1354
1354
|
}
|
|
1355
|
-
let
|
|
1355
|
+
let Li = q(Pi), Ni = "div";
|
|
1356
1356
|
var _t = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(_t || {});
|
|
1357
|
-
function
|
|
1357
|
+
function Ai(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 Z({ ourProps: i, theirProps: o, slot: {}, defaultTag:
|
|
1360
|
+
return Z({ ourProps: i, theirProps: o, slot: {}, defaultTag: Ni, name: "Hidden" });
|
|
1361
1361
|
}
|
|
1362
|
-
let tn = q(
|
|
1363
|
-
function
|
|
1364
|
-
let t = B(
|
|
1362
|
+
let tn = q(Ai), Di = G(null);
|
|
1363
|
+
function Ii({ children: e }) {
|
|
1364
|
+
let t = B(Di);
|
|
1365
1365
|
if (!t) return T.createElement(T.Fragment, null, e);
|
|
1366
1366
|
let { target: n } = t;
|
|
1367
1367
|
return n ? yt(T.createElement(T.Fragment, null, e), n) : null;
|
|
1368
1368
|
}
|
|
1369
1369
|
let Jr = Symbol();
|
|
1370
|
-
function
|
|
1370
|
+
function Oi(e, t = !0) {
|
|
1371
1371
|
return Object.assign(e, { [Jr]: t });
|
|
1372
1372
|
}
|
|
1373
1373
|
function ae(...e) {
|
|
1374
1374
|
let t = w(e);
|
|
1375
|
-
|
|
1375
|
+
D(() => {
|
|
1376
1376
|
t.current = e;
|
|
1377
1377
|
}, [e]);
|
|
1378
1378
|
let n = R((r) => {
|
|
@@ -1390,7 +1390,7 @@ function eo() {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
return e;
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function Hi() {
|
|
1394
1394
|
let [e, t] = k([]);
|
|
1395
1395
|
return [e.length > 0 ? e.join(" ") : void 0, N(() => function(n) {
|
|
1396
1396
|
let r = R((i) => (t((a) => [...a, i]), () => t((a) => {
|
|
@@ -1400,21 +1400,21 @@ function Vi() {
|
|
|
1400
1400
|
return T.createElement($n.Provider, { value: o }, n.children);
|
|
1401
1401
|
}, [t])];
|
|
1402
1402
|
}
|
|
1403
|
-
let
|
|
1404
|
-
function
|
|
1405
|
-
let n =
|
|
1403
|
+
let Ri = "p";
|
|
1404
|
+
function Vi(e, t) {
|
|
1405
|
+
let n = we(), r = Xr(), { id: o = `headlessui-description-${n}`, ...i } = e, a = eo(), s = ae(t);
|
|
1406
1406
|
z(() => a.register(o), [o, a.register]);
|
|
1407
1407
|
let l = r || !1, u = N(() => ({ ...a.slot, disabled: l }), [a.slot, l]), d = { ref: s, ...a.props, id: o };
|
|
1408
|
-
return Z({ ourProps: d, theirProps: i, slot: u, defaultTag:
|
|
1408
|
+
return Z({ ourProps: d, theirProps: i, slot: u, defaultTag: Ri, name: a.name || "Description" });
|
|
1409
1409
|
}
|
|
1410
|
-
let
|
|
1410
|
+
let Ui = q(Vi), Wi = Object.assign(Ui, {});
|
|
1411
1411
|
var to = ((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))(to || {});
|
|
1412
|
-
let
|
|
1412
|
+
let ji = G(() => {
|
|
1413
1413
|
});
|
|
1414
|
-
function
|
|
1415
|
-
return T.createElement(
|
|
1414
|
+
function Bi({ value: e, children: t }) {
|
|
1415
|
+
return T.createElement(ji.Provider, { value: e }, t);
|
|
1416
1416
|
}
|
|
1417
|
-
let
|
|
1417
|
+
let zi = class extends Map {
|
|
1418
1418
|
constructor(t) {
|
|
1419
1419
|
super(), this.factory = t;
|
|
1420
1420
|
}
|
|
@@ -1437,7 +1437,7 @@ function no(e, t) {
|
|
|
1437
1437
|
function ro(e) {
|
|
1438
1438
|
return gt(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
1439
1439
|
}
|
|
1440
|
-
let
|
|
1440
|
+
let qi = new zi(() => no(() => [], { 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 Yi = new Ki(() => no(() => [], { ADD(e) {
|
|
|
1446
1446
|
return n.splice(t, 1), n;
|
|
1447
1447
|
} }));
|
|
1448
1448
|
function He(e, t) {
|
|
1449
|
-
let n =
|
|
1449
|
+
let n = qi.get(t), r = we(), o = ro(n);
|
|
1450
1450
|
if (z(() => {
|
|
1451
1451
|
if (e) return n.dispatch("ADD", r), () => n.dispatch("REMOVE", r);
|
|
1452
1452
|
}, [n, e]), !e) return !1;
|
|
@@ -1466,12 +1466,12 @@ function Zn(e) {
|
|
|
1466
1466
|
let r = nn.get(e);
|
|
1467
1467
|
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, nn.delete(e));
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Ki(e, { allowed: t, disallowed: n } = {}) {
|
|
1470
1470
|
let r = He(e, "inert-others");
|
|
1471
1471
|
z(() => {
|
|
1472
1472
|
var o, i;
|
|
1473
1473
|
if (!r) return;
|
|
1474
|
-
let a =
|
|
1474
|
+
let a = be();
|
|
1475
1475
|
for (let l of (o = n == null ? void 0 : n()) != null ? o : []) l && a.add(Gn(l));
|
|
1476
1476
|
let s = (i = t == null ? void 0 : t()) != null ? i : [];
|
|
1477
1477
|
for (let l of s) {
|
|
@@ -1488,15 +1488,15 @@ function Gi(e, { allowed: t, disallowed: n } = {}) {
|
|
|
1488
1488
|
}, [r, t, n]);
|
|
1489
1489
|
}
|
|
1490
1490
|
function oo(e, t, n) {
|
|
1491
|
-
let r =
|
|
1491
|
+
let r = Ne((o) => {
|
|
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
|
+
D(() => {
|
|
1496
1496
|
if (!e) return;
|
|
1497
1497
|
let o = t === null ? null : t instanceof HTMLElement ? t : t.current;
|
|
1498
1498
|
if (!o) return;
|
|
1499
|
-
let i =
|
|
1499
|
+
let i = be();
|
|
1500
1500
|
if (typeof ResizeObserver < "u") {
|
|
1501
1501
|
let a = new ResizeObserver(() => r.current(o));
|
|
1502
1502
|
a.observe(o), i.add(() => a.disconnect());
|
|
@@ -1508,18 +1508,18 @@ function oo(e, t, n) {
|
|
|
1508
1508
|
return () => i.dispose();
|
|
1509
1509
|
}, [t, r, e]);
|
|
1510
1510
|
}
|
|
1511
|
-
let rn = ["[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(","),
|
|
1512
|
-
var ce = ((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))(ce || {}), on = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(on || {}),
|
|
1513
|
-
function
|
|
1511
|
+
let rn = ["[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(","), Yi = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
1512
|
+
var ce = ((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))(ce || {}), on = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(on || {}), Gi = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Gi || {});
|
|
1513
|
+
function Zi(e = document.body) {
|
|
1514
1514
|
return e == null ? [] : Array.from(e.querySelectorAll(rn)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
1516
|
+
function Xi(e = document.body) {
|
|
1517
|
+
return e == null ? [] : Array.from(e.querySelectorAll(Yi)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1518
1518
|
}
|
|
1519
1519
|
var io = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(io || {});
|
|
1520
|
-
function
|
|
1520
|
+
function Qi(e, t = 0) {
|
|
1521
1521
|
var n;
|
|
1522
|
-
return e === ((n = wt(e)) == null ? void 0 : n.body) ? !1 :
|
|
1522
|
+
return e === ((n = wt(e)) == null ? void 0 : n.body) ? !1 : ge(t, { 0() {
|
|
1523
1523
|
return e.matches(rn);
|
|
1524
1524
|
}, 1() {
|
|
1525
1525
|
let r = e;
|
|
@@ -1530,7 +1530,7 @@ function ea(e, t = 0) {
|
|
|
1530
1530
|
return !1;
|
|
1531
1531
|
} });
|
|
1532
1532
|
}
|
|
1533
|
-
var
|
|
1533
|
+
var Ji = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Ji || {});
|
|
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) => {
|
|
@@ -1539,12 +1539,12 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
1539
1539
|
function fe(e) {
|
|
1540
1540
|
e == null || e.focus({ preventScroll: !0 });
|
|
1541
1541
|
}
|
|
1542
|
-
let
|
|
1543
|
-
function
|
|
1542
|
+
let ea = ["textarea", "input"].join(",");
|
|
1543
|
+
function ta(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, ea)) != null ? n : !1;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function na(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,7 +1553,7 @@ function oa(e, t = (n) => n) {
|
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
1555
|
function Ye(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 ?
|
|
1556
|
+
let i = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? na(e) : e : t & 64 ? Xi(e) : Zi(e);
|
|
1557
1557
|
o.length > 0 && a.length > 1 && (a = a.filter((f) => !o.some((_) => _ != null && "current" in _ ? (_ == null ? void 0 : _.current) === f : _ === f))), r = r ?? i.activeElement;
|
|
1558
1558
|
let s = (() => {
|
|
1559
1559
|
if (t & 5) return 1;
|
|
@@ -1576,20 +1576,20 @@ function Ye(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
1576
1576
|
}
|
|
1577
1577
|
p = a[f], p == null || p.focus(u), d += s;
|
|
1578
1578
|
} while (p !== i.activeElement);
|
|
1579
|
-
return t & 6 &&
|
|
1579
|
+
return t & 6 && ta(p) && p.select(), 2;
|
|
1580
1580
|
}
|
|
1581
1581
|
function ao() {
|
|
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 ra() {
|
|
1585
1585
|
return /Android/gi.test(window.navigator.userAgent);
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return ao() ||
|
|
1587
|
+
function oa() {
|
|
1588
|
+
return ao() || ra();
|
|
1589
1589
|
}
|
|
1590
1590
|
function Ue(e, t, n, r) {
|
|
1591
|
-
let o =
|
|
1592
|
-
|
|
1591
|
+
let o = Ne(n);
|
|
1592
|
+
D(() => {
|
|
1593
1593
|
if (!e) return;
|
|
1594
1594
|
function i(a) {
|
|
1595
1595
|
o.current(a);
|
|
@@ -1598,8 +1598,8 @@ function Ue(e, t, n, r) {
|
|
|
1598
1598
|
}, [e, t, r]);
|
|
1599
1599
|
}
|
|
1600
1600
|
function so(e, t, n, r) {
|
|
1601
|
-
let o =
|
|
1602
|
-
|
|
1601
|
+
let o = Ne(n);
|
|
1602
|
+
D(() => {
|
|
1603
1603
|
if (!e) return;
|
|
1604
1604
|
function i(a) {
|
|
1605
1605
|
o.current(a);
|
|
@@ -1608,8 +1608,8 @@ function so(e, t, n, r) {
|
|
|
1608
1608
|
}, [e, t, r]);
|
|
1609
1609
|
}
|
|
1610
1610
|
const Xn = 30;
|
|
1611
|
-
function
|
|
1612
|
-
let r = He(e, "outside-click"), o =
|
|
1611
|
+
function ia(e, t, n) {
|
|
1612
|
+
let r = He(e, "outside-click"), o = Ne(n), i = O(function(l, u) {
|
|
1613
1613
|
if (l.defaultPrevented) return;
|
|
1614
1614
|
let d = u(l);
|
|
1615
1615
|
if (d === null || !d.getRootNode().contains(d) || !d.isConnected) return;
|
|
@@ -1621,7 +1621,7 @@ function sa(e, t, n) {
|
|
|
1621
1621
|
let f = p instanceof HTMLElement ? p : p.current;
|
|
1622
1622
|
if (f != null && f.contains(d) || l.composed && l.composedPath().includes(f)) return;
|
|
1623
1623
|
}
|
|
1624
|
-
return !
|
|
1624
|
+
return !Qi(d, io.Loose) && d.tabIndex !== -1 && l.preventDefault(), o.current(l, d);
|
|
1625
1625
|
}, [o]), a = w(null);
|
|
1626
1626
|
Ue(r, "pointerdown", (l) => {
|
|
1627
1627
|
var u, d;
|
|
@@ -1630,7 +1630,7 @@ function sa(e, t, n) {
|
|
|
1630
1630
|
var u, d;
|
|
1631
1631
|
a.current = ((d = (u = l.composedPath) == null ? void 0 : u.call(l)) == null ? void 0 : d[0]) || l.target;
|
|
1632
1632
|
}, !0), Ue(r, "click", (l) => {
|
|
1633
|
-
|
|
1633
|
+
oa() || a.current && (i(l, () => a.current), a.current = null);
|
|
1634
1634
|
}, !0);
|
|
1635
1635
|
let s = w({ x: 0, y: 0 });
|
|
1636
1636
|
Ue(r, "touchstart", (l) => {
|
|
@@ -1644,8 +1644,8 @@ function tt(...e) {
|
|
|
1644
1644
|
return N(() => wt(...e), [...e]);
|
|
1645
1645
|
}
|
|
1646
1646
|
function lo(e, t, n, r) {
|
|
1647
|
-
let o =
|
|
1648
|
-
|
|
1647
|
+
let o = Ne(n);
|
|
1648
|
+
D(() => {
|
|
1649
1649
|
e = e ?? window;
|
|
1650
1650
|
function i(a) {
|
|
1651
1651
|
o.current(a);
|
|
@@ -1653,7 +1653,7 @@ function lo(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 aa() {
|
|
1657
1657
|
let e;
|
|
1658
1658
|
return { before({ doc: t }) {
|
|
1659
1659
|
var n;
|
|
@@ -1664,7 +1664,7 @@ function la() {
|
|
|
1664
1664
|
n.style(r, "paddingRight", `${i}px`);
|
|
1665
1665
|
} };
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function sa() {
|
|
1668
1668
|
return ao() ? { 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));
|
|
@@ -1672,7 +1672,7 @@ function ca() {
|
|
|
1672
1672
|
t.microTask(() => {
|
|
1673
1673
|
var o;
|
|
1674
1674
|
if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
|
|
1675
|
-
let s =
|
|
1675
|
+
let s = be();
|
|
1676
1676
|
s.style(e.documentElement, "scrollBehavior", "auto"), t.add(() => t.microTask(() => s.dispose()));
|
|
1677
1677
|
}
|
|
1678
1678
|
let i = (o = window.scrollY) != null ? o : window.pageYOffset, a = null;
|
|
@@ -1707,76 +1707,76 @@ function ca() {
|
|
|
1707
1707
|
});
|
|
1708
1708
|
} } : {};
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function la() {
|
|
1711
1711
|
return { before({ doc: e, d: t }) {
|
|
1712
1712
|
t.style(e.documentElement, "overflow", "hidden");
|
|
1713
1713
|
} };
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function ca(e) {
|
|
1716
1716
|
let t = {};
|
|
1717
1717
|
for (let n of e) Object.assign(t, n(t));
|
|
1718
1718
|
return t;
|
|
1719
1719
|
}
|
|
1720
|
-
let
|
|
1720
|
+
let xe = no(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
1721
1721
|
var n;
|
|
1722
|
-
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d:
|
|
1722
|
+
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: be(), meta: /* @__PURE__ */ new Set() };
|
|
1723
1723
|
return r.count++, r.meta.add(t), this.set(e, r), this;
|
|
1724
1724
|
}, POP(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: ca(n) }, o = [sa(), aa(), la()];
|
|
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();
|
|
1732
1732
|
}, TEARDOWN({ doc: e }) {
|
|
1733
1733
|
this.delete(e);
|
|
1734
1734
|
} });
|
|
1735
|
-
|
|
1736
|
-
let e =
|
|
1735
|
+
xe.subscribe(() => {
|
|
1736
|
+
let e = xe.getSnapshot(), t = /* @__PURE__ */ new Map();
|
|
1737
1737
|
for (let [n] of e) t.set(n, n.documentElement.style.overflow);
|
|
1738
1738
|
for (let n of e.values()) {
|
|
1739
1739
|
let r = t.get(n.doc) === "hidden", o = n.count !== 0;
|
|
1740
|
-
(o && !r || !o && r) &&
|
|
1740
|
+
(o && !r || !o && r) && xe.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && xe.dispatch("TEARDOWN", n);
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
1743
|
-
function
|
|
1744
|
-
let r = ro(
|
|
1743
|
+
function ua(e, t, n = () => ({ containers: [] })) {
|
|
1744
|
+
let r = ro(xe), o = t ? r.get(t) : void 0, i = o ? o.count > 0 : !1;
|
|
1745
1745
|
return z(() => {
|
|
1746
|
-
if (!(!t || !e)) return
|
|
1746
|
+
if (!(!t || !e)) return xe.dispatch("PUSH", t, n), () => xe.dispatch("POP", t, n);
|
|
1747
1747
|
}, [e, t]), i;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function da(e, t, n = () => [document.body]) {
|
|
1750
1750
|
let r = He(e, "scroll-lock");
|
|
1751
|
-
|
|
1751
|
+
ua(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 fa(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
|
|
1762
|
+
function pa(e = 0) {
|
|
1763
1763
|
let [t, n] = k(e), r = O((l) => n(l), [t]), o = O((l) => n((u) => u | l), [t]), i = O((l) => (t & l) === l, [t]), a = O((l) => n((u) => u & ~l), [n]), s = O((l) => n((u) => u ^ l), [n]);
|
|
1764
1764
|
return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: a, toggleFlag: s };
|
|
1765
1765
|
}
|
|
1766
|
-
var
|
|
1767
|
-
function
|
|
1766
|
+
var ha = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(ha || {});
|
|
1767
|
+
function va(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: s, removeFlag: l } =
|
|
1772
|
+
function _a(e, t, n, r) {
|
|
1773
|
+
let [o, i] = k(n), { hasFlag: a, addFlag: s, removeFlag: l } = pa(e && o ? 3 : 0), u = w(!1), d = w(!1), c = Et();
|
|
1774
1774
|
return z(function p() {
|
|
1775
1775
|
var f;
|
|
1776
1776
|
if (!e) return;
|
|
1777
1777
|
n && i(!0);
|
|
1778
1778
|
let _ = t.current;
|
|
1779
|
-
return _ ? ((f = r == null ? void 0 : r.start) == null || f.call(r, n),
|
|
1779
|
+
return _ ? ((f = r == null ? void 0 : r.start) == null || f.call(r, n), ma(_, { inFlight: u, prepare() {
|
|
1780
1780
|
d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (s(3), l(4)) : (s(4), l(2)));
|
|
1781
1781
|
}, run() {
|
|
1782
1782
|
d.current ? n ? (l(3), s(4)) : (l(4), s(3)) : n ? l(1) : s(1);
|
|
@@ -1786,14 +1786,14 @@ function ya(e, t, n, r) {
|
|
|
1786
1786
|
} })) : n ? (s(3), c.nextFrame(() => p())) : 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
|
|
1790
|
-
let i =
|
|
1791
|
-
return
|
|
1792
|
-
i.add(
|
|
1789
|
+
function ma(e, { prepare: t, run: n, done: r, inFlight: o }) {
|
|
1790
|
+
let i = be();
|
|
1791
|
+
return ga(e, { prepare: t, inFlight: o }), i.nextFrame(() => {
|
|
1792
|
+
i.add(ya(e, r)), n();
|
|
1793
1793
|
}), i.dispose;
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1796
|
-
let n =
|
|
1795
|
+
function ya(e, t) {
|
|
1796
|
+
let n = fa(t), r = be();
|
|
1797
1797
|
if (!e) return r.dispose;
|
|
1798
1798
|
let { transitionDuration: o, transitionDelay: i } = getComputedStyle(e), [a, s] = [o, i].map((u) => {
|
|
1799
1799
|
let [d = 0] = u.split(",").filter(Boolean).map((c) => c.includes("ms") ? parseFloat(c) : parseFloat(c) * 1e3).sort((c, p) => p - c);
|
|
@@ -1816,7 +1816,7 @@ function wa(e, t) {
|
|
|
1816
1816
|
} else n();
|
|
1817
1817
|
return r.dispose;
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function ga(e, { inFlight: t, prepare: n }) {
|
|
1820
1820
|
if (t != null && t.current) {
|
|
1821
1821
|
n();
|
|
1822
1822
|
return;
|
|
@@ -1826,7 +1826,7 @@ function ba(e, { inFlight: t, prepare: n }) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
function Tn(e, t) {
|
|
1828
1828
|
let n = w([]), r = R(e);
|
|
1829
|
-
|
|
1829
|
+
D(() => {
|
|
1830
1830
|
let o = [...n.current];
|
|
1831
1831
|
for (let [i, a] of t.entries()) if (n.current[i] !== a) {
|
|
1832
1832
|
let s = r(t, o);
|
|
@@ -1840,53 +1840,53 @@ var ee = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closin
|
|
|
1840
1840
|
function Tt() {
|
|
1841
1841
|
return B($t);
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function wa({ value: e, children: t }) {
|
|
1844
1844
|
return T.createElement($t.Provider, { value: e }, t);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function ba({ children: e }) {
|
|
1847
1847
|
return T.createElement($t.Provider, { value: null }, e);
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function Ea(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
|
-
let
|
|
1856
|
-
|
|
1855
|
+
let me = [];
|
|
1856
|
+
Ea(() => {
|
|
1857
1857
|
function e(t) {
|
|
1858
|
-
t.target instanceof HTMLElement && t.target !== document.body &&
|
|
1858
|
+
t.target instanceof HTMLElement && t.target !== document.body && me[0] !== t.target && (me.unshift(t.target), me = me.filter((n) => n != null && n.isConnected), me.splice(10));
|
|
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 co(e) {
|
|
1863
1863
|
let t = R(e), n = w(!1);
|
|
1864
|
-
|
|
1864
|
+
D(() => (n.current = !1, () => {
|
|
1865
1865
|
n.current = !0, bt(() => {
|
|
1866
1866
|
n.current && t();
|
|
1867
1867
|
});
|
|
1868
1868
|
}), [t]);
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function $a() {
|
|
1871
1871
|
let e = typeof document > "u";
|
|
1872
1872
|
return "useSyncExternalStore" in Kn ? ((t) => t.useSyncExternalStore)(Kn)(() => () => {
|
|
1873
1873
|
}, () => !1, () => !e) : !1;
|
|
1874
1874
|
}
|
|
1875
1875
|
function nt() {
|
|
1876
|
-
let e =
|
|
1877
|
-
return t && ke.isHandoffComplete === !1 && n(!1),
|
|
1876
|
+
let e = $a(), [t, n] = k(ke.isHandoffComplete);
|
|
1877
|
+
return t && ke.isHandoffComplete === !1 && n(!1), D(() => {
|
|
1878
1878
|
t !== !0 && n(!0);
|
|
1879
|
-
}, [t]),
|
|
1879
|
+
}, [t]), D(() => ke.handoff(), []), e ? !1 : t;
|
|
1880
1880
|
}
|
|
1881
1881
|
let uo = G(!1);
|
|
1882
|
-
function
|
|
1882
|
+
function Ta() {
|
|
1883
1883
|
return B(uo);
|
|
1884
1884
|
}
|
|
1885
1885
|
function Qn(e) {
|
|
1886
1886
|
return T.createElement(uo.Provider, { value: e.force }, e.children);
|
|
1887
1887
|
}
|
|
1888
|
-
function
|
|
1889
|
-
let t =
|
|
1888
|
+
function Ca(e) {
|
|
1889
|
+
let t = Ta(), n = B(po), r = tt(e), [o, i] = k(() => {
|
|
1890
1890
|
var a;
|
|
1891
1891
|
if (!t && n !== null) return (a = n.current) != null ? a : null;
|
|
1892
1892
|
if (ke.isServer) return null;
|
|
@@ -1896,16 +1896,16 @@ function xa(e) {
|
|
|
1896
1896
|
let l = r.createElement("div");
|
|
1897
1897
|
return l.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(l);
|
|
1898
1898
|
});
|
|
1899
|
-
return
|
|
1899
|
+
return D(() => {
|
|
1900
1900
|
o !== null && (r != null && r.body.contains(o) || r == null || r.body.appendChild(o));
|
|
1901
|
-
}, [o, r]),
|
|
1901
|
+
}, [o, r]), D(() => {
|
|
1902
1902
|
t || n !== null && i(n.current);
|
|
1903
1903
|
}, [n, i, t]), o;
|
|
1904
1904
|
}
|
|
1905
|
-
let fo = H,
|
|
1906
|
-
let n = e, r = w(null), o = ae(
|
|
1905
|
+
let fo = H, xa = q(function(e, t) {
|
|
1906
|
+
let n = e, r = w(null), o = ae(Oi((d) => {
|
|
1907
1907
|
r.current = d;
|
|
1908
|
-
}), t), i = tt(r), a =
|
|
1908
|
+
}), t), i = tt(r), a = Ca(r), [s] = k(() => {
|
|
1909
1909
|
var d;
|
|
1910
1910
|
return ke.isServer ? null : (d = i == null ? void 0 : i.createElement("div")) != null ? d : null;
|
|
1911
1911
|
}), l = B(an), u = nt();
|
|
@@ -1918,17 +1918,17 @@ let fo = H, Sa = q(function(e, t) {
|
|
|
1918
1918
|
!a || !s || (s instanceof Node && a.contains(s) && a.removeChild(s), a.childNodes.length <= 0 && ((d = a.parentElement) == null || d.removeChild(a)));
|
|
1919
1919
|
}), u ? !a || !s ? null : yt(Z({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: fo, name: "Portal" }), s) : null;
|
|
1920
1920
|
});
|
|
1921
|
-
function
|
|
1921
|
+
function ka(e, t) {
|
|
1922
1922
|
let n = ae(t), { enabled: r = !0, ...o } = e;
|
|
1923
|
-
return r ? T.createElement(
|
|
1923
|
+
return r ? T.createElement(xa, { ...o, ref: n }) : Z({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: fo, name: "Portal" });
|
|
1924
1924
|
}
|
|
1925
|
-
let
|
|
1926
|
-
function
|
|
1925
|
+
let Sa = H, po = G(null);
|
|
1926
|
+
function Fa(e, t) {
|
|
1927
1927
|
let { target: n, ...r } = e, o = { ref: ae(t) };
|
|
1928
|
-
return T.createElement(po.Provider, { value: n }, Z({ ourProps: o, theirProps: r, defaultTag:
|
|
1928
|
+
return T.createElement(po.Provider, { value: n }, Z({ ourProps: o, theirProps: r, defaultTag: Sa, name: "Popover.Group" }));
|
|
1929
1929
|
}
|
|
1930
1930
|
let an = G(null);
|
|
1931
|
-
function
|
|
1931
|
+
function Ma() {
|
|
1932
1932
|
let e = B(an), t = w([]), n = R((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = R((i) => {
|
|
1933
1933
|
let a = t.current.indexOf(i);
|
|
1934
1934
|
a !== -1 && t.current.splice(a, 1), e && e.unregister(i);
|
|
@@ -1937,14 +1937,14 @@ function La() {
|
|
|
1937
1937
|
return T.createElement(an.Provider, { value: o }, i);
|
|
1938
1938
|
}, [o])];
|
|
1939
1939
|
}
|
|
1940
|
-
let
|
|
1941
|
-
function
|
|
1940
|
+
let Pa = q(ka), ho = q(Fa), La = Object.assign(Pa, { Group: ho });
|
|
1941
|
+
function Na(e, t = typeof document < "u" ? document.defaultView : null, n) {
|
|
1942
1942
|
let r = He(e, "escape");
|
|
1943
1943
|
lo(t, "keydown", (o) => {
|
|
1944
1944
|
r && (o.defaultPrevented || o.key === to.Escape && n(o));
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function Aa() {
|
|
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 z(() => {
|
|
@@ -1955,7 +1955,7 @@ function Da() {
|
|
|
1955
1955
|
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
1956
1956
|
}, [t]), n;
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Da({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
|
|
1959
1959
|
var r;
|
|
1960
1960
|
let o = w((r = n == null ? void 0 : n.current) != null ? r : null), i = tt(o), a = R(() => {
|
|
1961
1961
|
var s, l, u;
|
|
@@ -1976,7 +1976,7 @@ function Cn() {
|
|
|
1976
1976
|
}), []), e;
|
|
1977
1977
|
}
|
|
1978
1978
|
var je = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(je || {});
|
|
1979
|
-
function
|
|
1979
|
+
function Ia() {
|
|
1980
1980
|
let e = w(0);
|
|
1981
1981
|
return so(!0, "keydown", (t) => {
|
|
1982
1982
|
t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
|
|
@@ -1989,19 +1989,19 @@ function vo(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
|
|
1993
|
-
var
|
|
1994
|
-
function
|
|
1992
|
+
let Oa = "div";
|
|
1993
|
+
var Te = ((e) => (e[e.None = 0] = "None", e[e.InitialFocus = 1] = "InitialFocus", e[e.TabLock = 2] = "TabLock", e[e.FocusLock = 4] = "FocusLock", e[e.RestoreFocus = 8] = "RestoreFocus", e[e.AutoFocus = 16] = "AutoFocus", e))(Te || {});
|
|
1994
|
+
function Ha(e, t) {
|
|
1995
1995
|
let n = w(null), r = ae(n, t), { initialFocus: o, initialFocusFallback: i, containers: a, features: s = 15, ...l } = e;
|
|
1996
1996
|
nt() || (s = 0);
|
|
1997
1997
|
let u = tt(n);
|
|
1998
|
-
|
|
1999
|
-
let d =
|
|
2000
|
-
|
|
2001
|
-
let c =
|
|
1998
|
+
Wa(s, { ownerDocument: u });
|
|
1999
|
+
let d = ja(s, { ownerDocument: u, container: n, initialFocus: o, initialFocusFallback: i });
|
|
2000
|
+
Ba(s, { ownerDocument: u, container: n, containers: a, previousActiveElement: d });
|
|
2001
|
+
let c = Ia(), p = R((v) => {
|
|
2002
2002
|
let g = n.current;
|
|
2003
2003
|
g && ((b) => b())(() => {
|
|
2004
|
-
|
|
2004
|
+
ge(c.current, { [je.Forwards]: () => {
|
|
2005
2005
|
Ye(g, ce.First, { skipElements: [v.relatedTarget, i] });
|
|
2006
2006
|
}, [je.Backwards]: () => {
|
|
2007
2007
|
Ye(g, ce.Last, { skipElements: [v.relatedTarget, i] });
|
|
@@ -2016,31 +2016,31 @@ function Va(e, t) {
|
|
|
2016
2016
|
let g = vo(a);
|
|
2017
2017
|
n.current instanceof HTMLElement && g.add(n.current);
|
|
2018
2018
|
let b = v.relatedTarget;
|
|
2019
|
-
b instanceof HTMLElement && b.dataset.headlessuiFocusGuard !== "true" && (_o(g, b) || (y.current ? Ye(n.current,
|
|
2019
|
+
b instanceof HTMLElement && b.dataset.headlessuiFocusGuard !== "true" && (_o(g, b) || (y.current ? Ye(n.current, ge(c.current, { [je.Forwards]: () => ce.Next, [je.Backwards]: () => ce.Previous }) | ce.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && fe(v.target)));
|
|
2020
2020
|
} };
|
|
2021
|
-
return T.createElement(T.Fragment, null, f && T.createElement(tn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: _t.Focusable }), Z({ ourProps: m, theirProps: l, defaultTag:
|
|
2021
|
+
return T.createElement(T.Fragment, null, f && T.createElement(tn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: _t.Focusable }), Z({ ourProps: m, theirProps: l, defaultTag: Oa, name: "FocusTrap" }), f && T.createElement(tn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: _t.Focusable }));
|
|
2022
2022
|
}
|
|
2023
|
-
let
|
|
2024
|
-
function
|
|
2025
|
-
let t = w(
|
|
2023
|
+
let Ra = q(Ha), Va = Object.assign(Ra, { features: Te });
|
|
2024
|
+
function Ua(e = !0) {
|
|
2025
|
+
let t = w(me.slice());
|
|
2026
2026
|
return Tn(([n], [r]) => {
|
|
2027
2027
|
r === !0 && n === !1 && bt(() => {
|
|
2028
2028
|
t.current.splice(0);
|
|
2029
|
-
}), r === !1 && n === !0 && (t.current =
|
|
2030
|
-
}, [e,
|
|
2029
|
+
}), r === !1 && n === !0 && (t.current = me.slice());
|
|
2030
|
+
}, [e, me, t]), R(() => {
|
|
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 Wa(e, { ownerDocument: t }) {
|
|
2036
|
+
let n = !!(e & 8), r = Ua(n);
|
|
2037
2037
|
Tn(() => {
|
|
2038
2038
|
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && fe(r());
|
|
2039
2039
|
}, [n]), co(() => {
|
|
2040
2040
|
n && fe(r());
|
|
2041
2041
|
});
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function ja(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFallback: o }) {
|
|
2044
2044
|
let i = w(null), a = He(!!(e & 1), "focus-trap#initial-focus"), s = Cn();
|
|
2045
2045
|
return Tn(() => {
|
|
2046
2046
|
if (e === 0) return;
|
|
@@ -2073,7 +2073,7 @@ function za(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
|
|
|
2073
2073
|
});
|
|
2074
2074
|
}, [o, a, e]), i;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function Ba(e, { ownerDocument: t, container: n, containers: r, previousActiveElement: o }) {
|
|
2077
2077
|
let i = Cn(), a = !!(e & 4);
|
|
2078
2078
|
lo(t == null ? void 0 : t.defaultView, "focus", (s) => {
|
|
2079
2079
|
if (!a || !i.current) return;
|
|
@@ -2095,36 +2095,36 @@ function mo(e) {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
let Ct = G(null);
|
|
2097
2097
|
Ct.displayName = "TransitionContext";
|
|
2098
|
-
var
|
|
2099
|
-
function
|
|
2098
|
+
var za = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(za || {});
|
|
2099
|
+
function qa() {
|
|
2100
2100
|
let e = B(Ct);
|
|
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 = B(
|
|
2104
|
+
function Ka() {
|
|
2105
|
+
let e = B(xt);
|
|
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 xt = G(null);
|
|
2110
|
+
xt.displayName = "NestingContext";
|
|
2111
|
+
function kt(e) {
|
|
2112
|
+
return "children" in e ? kt(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
2113
2113
|
}
|
|
2114
2114
|
function yo(e, t) {
|
|
2115
|
-
let n =
|
|
2115
|
+
let n = Ne(e), r = w([]), o = Cn(), i = Et(), a = R((f, _ = ye.Hidden) => {
|
|
2116
2116
|
let y = r.current.findIndex(({ el: m }) => m === f);
|
|
2117
|
-
y !== -1 && (
|
|
2117
|
+
y !== -1 && (ge(_, { [ye.Unmount]() {
|
|
2118
2118
|
r.current.splice(y, 1);
|
|
2119
|
-
}, [
|
|
2119
|
+
}, [ye.Hidden]() {
|
|
2120
2120
|
r.current[y].state = "hidden";
|
|
2121
2121
|
} }), i.microTask(() => {
|
|
2122
2122
|
var m;
|
|
2123
|
-
!
|
|
2123
|
+
!kt(r) && o.current && ((m = n.current) == null || m.call(n));
|
|
2124
2124
|
}));
|
|
2125
2125
|
}), s = R((f) => {
|
|
2126
2126
|
let _ = r.current.find(({ el: y }) => y === f);
|
|
2127
|
-
return _ ? _.state !== "visible" && (_.state = "visible") : r.current.push({ el: f, state: "visible" }), () => a(f,
|
|
2127
|
+
return _ ? _.state !== "visible" && (_.state = "visible") : r.current.push({ el: f, state: "visible" }), () => a(f, ye.Unmount);
|
|
2128
2128
|
}), l = w([]), u = w(Promise.resolve()), d = w({ enter: [], leave: [] }), c = R((f, _, y) => {
|
|
2129
2129
|
l.current.splice(0), t && (t.chains.current[_] = t.chains.current[_].filter(([m]) => m !== f)), t == null || t.chains.current[_].push([f, new Promise((m) => {
|
|
2130
2130
|
l.current.push(m);
|
|
@@ -2140,25 +2140,25 @@ function yo(e, t) {
|
|
|
2140
2140
|
return N(() => ({ children: r, register: s, unregister: a, onStart: c, onStop: p, wait: u, chains: d }), [s, a, r, c, p, d, u]);
|
|
2141
2141
|
}
|
|
2142
2142
|
let go = H, wo = vt.RenderStrategy;
|
|
2143
|
-
function
|
|
2143
|
+
function Ya(e, t) {
|
|
2144
2144
|
var n, r;
|
|
2145
|
-
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: s, afterLeave: l, enter: u, enterFrom: d, enterTo: c, entered: p, leave: f, leaveFrom: _, leaveTo: y, ...m } = e, v = w(null), g = mo(e), b = ae(...g ? [v, t] : t === null ? [] : [t]), C = (n = m.unmount) == null || n ?
|
|
2146
|
-
z(() =>
|
|
2147
|
-
if (C ===
|
|
2145
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: s, afterLeave: l, enter: u, enterFrom: d, enterTo: c, entered: p, leave: f, leaveFrom: _, leaveTo: y, ...m } = e, v = w(null), g = mo(e), b = ae(...g ? [v, t] : t === null ? [] : [t]), C = (n = m.unmount) == null || n ? ye.Unmount : ye.Hidden, { show: E, appear: P, initial: F } = qa(), [A, W] = k(E ? "visible" : "hidden"), M = Ka(), { register: x, unregister: $ } = M;
|
|
2146
|
+
z(() => x(v), [x, v]), z(() => {
|
|
2147
|
+
if (C === ye.Hidden && v.current) {
|
|
2148
2148
|
if (E && A !== "visible") {
|
|
2149
2149
|
W("visible");
|
|
2150
2150
|
return;
|
|
2151
2151
|
}
|
|
2152
|
-
return
|
|
2152
|
+
return ge(A, { hidden: () => $(v), visible: () => x(v) });
|
|
2153
2153
|
}
|
|
2154
|
-
}, [A, v,
|
|
2154
|
+
}, [A, v, x, $, E, C]);
|
|
2155
2155
|
let L = nt();
|
|
2156
2156
|
z(() => {
|
|
2157
2157
|
if (g && L && A === "visible" && v.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2158
2158
|
}, [v, A, L, g]);
|
|
2159
2159
|
let K = F && !P, re = P && E && F, Q = w(!1), J = yo(() => {
|
|
2160
|
-
Q.current || (W("hidden"),
|
|
2161
|
-
},
|
|
2160
|
+
Q.current || (W("hidden"), $(v));
|
|
2161
|
+
}, M), _e = R((Nt) => {
|
|
2162
2162
|
Q.current = !0;
|
|
2163
2163
|
let rt = Nt ? "enter" : "leave";
|
|
2164
2164
|
J.onStart(v, rt, (Ve) => {
|
|
@@ -2168,15 +2168,15 @@ function Za(e, t) {
|
|
|
2168
2168
|
let rt = Nt ? "enter" : "leave";
|
|
2169
2169
|
Q.current = !1, J.onStop(v, rt, (Ve) => {
|
|
2170
2170
|
Ve === "enter" ? a == null || a() : Ve === "leave" && (l == null || l());
|
|
2171
|
-
}), rt === "leave" && !
|
|
2171
|
+
}), rt === "leave" && !kt(J) && (W("hidden"), $(v));
|
|
2172
2172
|
});
|
|
2173
|
-
|
|
2174
|
-
g && o || (
|
|
2173
|
+
D(() => {
|
|
2174
|
+
g && o || (_e(E), le(E));
|
|
2175
2175
|
}, [E, g, o]);
|
|
2176
|
-
let j = !(!o || !g || !L || K), [, U] =
|
|
2177
|
-
return A === "visible" && (Re |= ee.Open), A === "hidden" && (Re |= ee.Closed), U.enter && (Re |= ee.Opening), U.leave && (Re |= ee.Closing), T.createElement(
|
|
2176
|
+
let j = !(!o || !g || !L || K), [, U] = _a(j, v, E, { start: _e, end: le }), Lo = Ee({ ref: b, className: ((r = en(m.className, re && u, re && d, U.enter && u, U.enter && U.closed && d, U.enter && !U.closed && c, U.leave && f, U.leave && !U.closed && _, U.leave && U.closed && y, !U.transition && E && p)) == null ? void 0 : r.trim()) || void 0, ...va(U) }), Re = 0;
|
|
2177
|
+
return A === "visible" && (Re |= ee.Open), A === "hidden" && (Re |= ee.Closed), U.enter && (Re |= ee.Opening), U.leave && (Re |= ee.Closing), T.createElement(xt.Provider, { value: J }, T.createElement(wa, { value: Re }, Z({ ourProps: Lo, theirProps: m, defaultTag: go, features: wo, visible: A === "visible", name: "Transition.Child" })));
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function Ga(e, t) {
|
|
2180
2180
|
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a = w(null), s = mo(e), l = ae(...s ? [a, t] : t === null ? [] : [t]);
|
|
2181
2181
|
nt();
|
|
2182
2182
|
let u = Tt();
|
|
@@ -2189,7 +2189,7 @@ function Xa(e, t) {
|
|
|
2189
2189
|
}, [y, n]);
|
|
2190
2190
|
let m = N(() => ({ show: n, appear: r, initial: f }), [n, r, f]);
|
|
2191
2191
|
oo(n, a, () => c("hidden")), z(() => {
|
|
2192
|
-
n ? c("visible") : !
|
|
2192
|
+
n ? c("visible") : !kt(p) && a.current !== null && c("hidden");
|
|
2193
2193
|
}, [n, p]);
|
|
2194
2194
|
let v = { unmount: o }, g = R(() => {
|
|
2195
2195
|
var C;
|
|
@@ -2198,55 +2198,55 @@ function Xa(e, t) {
|
|
|
2198
2198
|
var C;
|
|
2199
2199
|
f && _(!1), (C = e.beforeLeave) == null || C.call(e);
|
|
2200
2200
|
});
|
|
2201
|
-
return T.createElement(
|
|
2201
|
+
return T.createElement(xt.Provider, { value: p }, T.createElement(Ct.Provider, { value: m }, Z({ ourProps: { ...v, as: H, children: T.createElement(bo, { ref: l, ...v, ...i, beforeEnter: g, beforeLeave: b }) }, theirProps: {}, defaultTag: H, features: wo, visible: d === "visible", name: "Transition" })));
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function Za(e, t) {
|
|
2204
2204
|
let n = B(Ct) !== null, r = Tt() !== null;
|
|
2205
2205
|
return T.createElement(T.Fragment, null, !n && r ? T.createElement(sn, { ref: t, ...e }) : T.createElement(bo, { ref: t, ...e }));
|
|
2206
2206
|
}
|
|
2207
|
-
let sn = q(
|
|
2208
|
-
var
|
|
2209
|
-
let
|
|
2207
|
+
let sn = q(Ga), bo = q(Ya), xn = q(Za), ie = Object.assign(sn, { Child: xn, Root: sn });
|
|
2208
|
+
var Xa = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Xa || {}), Qa = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(Qa || {});
|
|
2209
|
+
let Ja = { 0(e, t) {
|
|
2210
2210
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
2211
|
-
} },
|
|
2212
|
-
|
|
2211
|
+
} }, kn = G(null);
|
|
2212
|
+
kn.displayName = "DialogContext";
|
|
2213
2213
|
function St(e) {
|
|
2214
|
-
let t = B(
|
|
2214
|
+
let t = B(kn);
|
|
2215
2215
|
if (t === null) {
|
|
2216
2216
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
2217
2217
|
throw Error.captureStackTrace && Error.captureStackTrace(n, St), n;
|
|
2218
2218
|
}
|
|
2219
2219
|
return t;
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2222
|
-
return
|
|
2221
|
+
function es(e, t) {
|
|
2222
|
+
return ge(t.type, Ja, e, t);
|
|
2223
2223
|
}
|
|
2224
2224
|
let Jn = q(function(e, t) {
|
|
2225
|
-
let n =
|
|
2225
|
+
let n = we(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: a, role: s = "dialog", autoFocus: l = !0, __demoMode: u = !1, ...d } = e, c = w(!1);
|
|
2226
2226
|
s = function() {
|
|
2227
2227
|
return s === "dialog" || s === "alertdialog" ? s : (c.current || (c.current = !0, console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
2228
2228
|
}();
|
|
2229
2229
|
let p = Tt();
|
|
2230
2230
|
o === void 0 && p !== null && (o = (p & ee.Open) === ee.Open);
|
|
2231
|
-
let f = w(null), _ = ae(f, t), y = tt(f), m = o ? 0 : 1, [v, g] = Qe(
|
|
2231
|
+
let f = w(null), _ = ae(f, t), y = tt(f), m = o ? 0 : 1, [v, g] = Qe(es, { titleId: null, descriptionId: null, panelRef: cn() }), b = R(() => i(!1)), C = R((j) => g({ type: 0, id: j })), E = nt() ? m === 0 : !1, [P, F] = Ma(), A = { get current() {
|
|
2232
2232
|
var j;
|
|
2233
2233
|
return (j = v.panelRef.current) != null ? j : f.current;
|
|
2234
|
-
} }, { resolveContainers: W, mainTreeNodeRef:
|
|
2235
|
-
|
|
2234
|
+
} }, { resolveContainers: W, mainTreeNodeRef: M, MainTreeNode: x } = Da({ portals: P, defaultContainers: [A] }), $ = p !== null ? (p & ee.Closing) === ee.Closing : !1;
|
|
2235
|
+
Ki(u || $ ? !1 : E, { allowed: R(() => {
|
|
2236
2236
|
var j, U;
|
|
2237
2237
|
return [(U = (j = f.current) == null ? void 0 : j.closest("[data-headlessui-portal]")) != null ? U : null];
|
|
2238
2238
|
}), disallowed: R(() => {
|
|
2239
2239
|
var j, U;
|
|
2240
|
-
return [(U = (j =
|
|
2241
|
-
}) }),
|
|
2240
|
+
return [(U = (j = M.current) == null ? void 0 : j.closest("body > *:not(#headlessui-portal-root)")) != null ? U : null];
|
|
2241
|
+
}) }), ia(E, W, (j) => {
|
|
2242
2242
|
j.preventDefault(), b();
|
|
2243
|
-
}),
|
|
2243
|
+
}), Na(E, y == null ? void 0 : y.defaultView, (j) => {
|
|
2244
2244
|
j.preventDefault(), j.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), b();
|
|
2245
|
-
}),
|
|
2246
|
-
let [L, K] =
|
|
2247
|
-
return E && !u && (le |=
|
|
2248
|
-
}),
|
|
2249
|
-
function
|
|
2245
|
+
}), da(u || $ ? !1 : E, y, W), oo(E, f, b);
|
|
2246
|
+
let [L, K] = Hi(), re = N(() => [{ dialogState: m, close: b, setTitleId: C }, v], [m, v, b, C]), Q = N(() => ({ open: m === 0 }), [m]), J = { ref: _, id: r, role: s, tabIndex: -1, "aria-modal": u ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": v.titleId, "aria-describedby": L }, _e = !Aa(), le = Te.None;
|
|
2247
|
+
return E && !u && (le |= Te.RestoreFocus, le |= Te.TabLock, l && (le |= Te.AutoFocus), _e && (le |= Te.InitialFocus)), T.createElement(ba, null, T.createElement(Qn, { force: !0 }, T.createElement(La, null, T.createElement(kn.Provider, { value: re }, T.createElement(ho, { target: f }, T.createElement(Qn, { force: !1 }, T.createElement(K, { slot: Q }, T.createElement(F, null, T.createElement(Va, { initialFocus: a, initialFocusFallback: f, containers: W, features: le }, T.createElement(Bi, { value: b }, Z({ ourProps: J, theirProps: d, slot: Q, defaultTag: ts, features: ns, visible: m === 0, name: "Dialog" })))))))))), T.createElement(Ii, null, T.createElement(x, null)));
|
|
2248
|
+
}), ts = "div", ns = vt.RenderStrategy | vt.Static;
|
|
2249
|
+
function rs(e, t) {
|
|
2250
2250
|
let { transition: n = !1, open: r, ...o } = e, i = Tt(), a = e.hasOwnProperty("open") || i !== null, s = e.hasOwnProperty("onClose");
|
|
2251
2251
|
if (!a && !s) 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.");
|
|
@@ -2255,36 +2255,36 @@ function is(e, t) {
|
|
|
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
2256
|
return (r !== void 0 || n) && !o.static ? T.createElement(ie, { show: r, transition: n, unmount: o.unmount }, T.createElement(Jn, { ref: t, ...o })) : T.createElement(Jn, { ref: t, open: r, ...o });
|
|
2257
2257
|
}
|
|
2258
|
-
let
|
|
2259
|
-
function
|
|
2260
|
-
let n =
|
|
2258
|
+
let os = "div";
|
|
2259
|
+
function is(e, t) {
|
|
2260
|
+
let n = we(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, s] = St("Dialog.Panel"), l = ae(t, s.panelRef), u = N(() => ({ open: a === 0 }), [a]), d = R((c) => {
|
|
2261
2261
|
c.stopPropagation();
|
|
2262
2262
|
});
|
|
2263
|
-
return T.createElement(o ?
|
|
2263
|
+
return T.createElement(o ? xn : H, null, Z({ ourProps: { ref: l, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: os, name: "Dialog.Panel" }));
|
|
2264
2264
|
}
|
|
2265
|
-
let
|
|
2266
|
-
function
|
|
2265
|
+
let as = "div";
|
|
2266
|
+
function ss(e, t) {
|
|
2267
2267
|
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = St("Dialog.Backdrop"), i = N(() => ({ open: o === 0 }), [o]);
|
|
2268
|
-
return T.createElement(n ?
|
|
2268
|
+
return T.createElement(n ? xn : H, null, Z({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: as, name: "Dialog.Backdrop" }));
|
|
2269
2269
|
}
|
|
2270
|
-
let
|
|
2271
|
-
function
|
|
2272
|
-
let n =
|
|
2273
|
-
|
|
2270
|
+
let ls = "h2";
|
|
2271
|
+
function cs(e, t) {
|
|
2272
|
+
let n = we(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = St("Dialog.Title"), s = ae(t);
|
|
2273
|
+
D(() => (a(r), () => a(null)), [r, a]);
|
|
2274
2274
|
let l = N(() => ({ open: i === 0 }), [i]);
|
|
2275
|
-
return Z({ ourProps: { ref: s, id: r }, theirProps: o, slot: l, defaultTag:
|
|
2276
|
-
}
|
|
2277
|
-
let
|
|
2278
|
-
q(
|
|
2279
|
-
let
|
|
2280
|
-
const
|
|
2281
|
-
root:
|
|
2282
|
-
modal:
|
|
2283
|
-
container:
|
|
2284
|
-
page:
|
|
2285
|
-
close:
|
|
2286
|
-
},
|
|
2287
|
-
root:
|
|
2275
|
+
return Z({ ourProps: { ref: s, id: r }, theirProps: o, slot: l, defaultTag: ls, name: "Dialog.Title" });
|
|
2276
|
+
}
|
|
2277
|
+
let us = q(rs), Eo = q(is);
|
|
2278
|
+
q(ss);
|
|
2279
|
+
let ds = q(cs), fs = Object.assign(us, { Panel: Eo, Title: ds, Description: Wi });
|
|
2280
|
+
const ps = "_root_1duny_1", hs = "_modal_1duny_10", vs = "_container_1duny_13", _s = "_page_1duny_18", ms = "_close_1duny_21", at = {
|
|
2281
|
+
root: ps,
|
|
2282
|
+
modal: hs,
|
|
2283
|
+
container: vs,
|
|
2284
|
+
page: _s,
|
|
2285
|
+
close: ms
|
|
2286
|
+
}, ys = "_root_1h6qm_1", gs = {
|
|
2287
|
+
root: ys
|
|
2288
2288
|
}, se = (e) => {
|
|
2289
2289
|
const {
|
|
2290
2290
|
children: t,
|
|
@@ -2320,26 +2320,26 @@ const vs = "_root_1duny_1", _s = "_modal_1duny_10", ms = "_container_1duny_13",
|
|
|
2320
2320
|
children: t
|
|
2321
2321
|
}
|
|
2322
2322
|
);
|
|
2323
|
-
},
|
|
2323
|
+
}, ws = () => /* @__PURE__ */ h(se, { children: /* @__PURE__ */ h("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" }) }), $o = (e) => /* @__PURE__ */ h(se, { ...e, children: /* @__PURE__ */ h(
|
|
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
|
-
) }),
|
|
2330
|
+
) }), bs = (e) => /* @__PURE__ */ h(se, { ...e, viewBox: "0 0 24 24", children: [
|
|
2331
2331
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2332
2332
|
/* @__PURE__ */ h("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
|
-
] }),
|
|
2333
|
+
] }), Es = (e) => /* @__PURE__ */ h(se, { ...e, viewBox: "0 0 24 24", children: [
|
|
2334
2334
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2335
2335
|
/* @__PURE__ */ h("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
2336
|
] }), er = (e) => /* @__PURE__ */ h(se, { ...e, viewBox: "0 0 24 24", children: [
|
|
2337
2337
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2338
2338
|
/* @__PURE__ */ h("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
|
-
] }),
|
|
2339
|
+
] }), $s = (e) => /* @__PURE__ */ h(se, { ...e, children: [
|
|
2340
2340
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2341
2341
|
/* @__PURE__ */ h("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
|
-
] }),
|
|
2342
|
+
] }), Ts = (e) => /* @__PURE__ */ h(se, { ...e, children: /* @__PURE__ */ h("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" }) }), Cs = (e) => /* @__PURE__ */ h(se, { ...e, viewBox: "0 0 24 24", children: /* @__PURE__ */ h("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }), xs = (e) => /* @__PURE__ */ h(se, { ...e, children: /* @__PURE__ */ h("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" }) }), ks = (e) => /* @__PURE__ */ h(se, { ...e, viewBox: "0 0 99 32", children: [
|
|
2343
2343
|
/* @__PURE__ */ h("g", { clipPath: "url(#clip0_9581_165880)", children: [
|
|
2344
2344
|
/* @__PURE__ */ h(
|
|
2345
2345
|
"path",
|
|
@@ -2414,7 +2414,7 @@ const vs = "_root_1duny_1", _s = "_modal_1duny_10", ms = "_container_1duny_13",
|
|
|
2414
2414
|
] }),
|
|
2415
2415
|
/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("clipPath", { id: "clip0_9581_165880", children: /* @__PURE__ */ h("rect", { width: "98.9474", height: "32", fill: "white" }) }) })
|
|
2416
2416
|
] });
|
|
2417
|
-
class
|
|
2417
|
+
class Se {
|
|
2418
2418
|
static loadVision() {
|
|
2419
2419
|
return import(
|
|
2420
2420
|
/* webpackIgnore: true */
|
|
@@ -2424,7 +2424,7 @@ class xe {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
static async loadDetector() {
|
|
2426
2426
|
try {
|
|
2427
|
-
const { FaceLandmarker: t, FilesetResolver: n } = await
|
|
2427
|
+
const { FaceLandmarker: t, FilesetResolver: n } = await Se.loadVision(), r = await n.forVisionTasks(
|
|
2428
2428
|
"https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.3/wasm"
|
|
2429
2429
|
);
|
|
2430
2430
|
return await t.createFromOptions(r, {
|
|
@@ -2465,30 +2465,30 @@ class xe {
|
|
|
2465
2465
|
const { width: r, height: o } = n, { faceLandmarks: i } = await t.detect(n);
|
|
2466
2466
|
if (i.length === 0)
|
|
2467
2467
|
return [];
|
|
2468
|
-
const a =
|
|
2468
|
+
const a = Se.denormalizeKeypoints(
|
|
2469
2469
|
i[0],
|
|
2470
2470
|
r,
|
|
2471
2471
|
o
|
|
2472
|
-
), s =
|
|
2472
|
+
), s = Se.getBoundingBox(a);
|
|
2473
2473
|
return [{ keypoints: a, box: s }];
|
|
2474
2474
|
} catch (r) {
|
|
2475
2475
|
return Promise.reject(r);
|
|
2476
2476
|
}
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
|
-
const
|
|
2479
|
+
const Ss = (e, t) => {
|
|
2480
2480
|
let n;
|
|
2481
2481
|
return typeof OffscreenCanvas < "u" ? n = new OffscreenCanvas(e, t) : (n = document.createElement("canvas"), n.width = e, n.height = t), n;
|
|
2482
2482
|
}, To = (e, t, n, r) => {
|
|
2483
2483
|
let o = 0, i = 0, a = t, s = n;
|
|
2484
|
-
const u =
|
|
2484
|
+
const u = Ss(t, n).getContext("2d");
|
|
2485
2485
|
return u.drawImage(e, 0, 0), u.getImageData(o, i, a, s);
|
|
2486
|
-
},
|
|
2486
|
+
}, Fs = (e) => new Promise((t) => {
|
|
2487
2487
|
const n = document.createElement("canvas");
|
|
2488
2488
|
let { width: r } = e, { height: o } = e;
|
|
2489
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));
|
|
2490
2490
|
});
|
|
2491
|
-
function
|
|
2491
|
+
function Ms() {
|
|
2492
2492
|
if (MediaRecorder.isTypeSupported("video/webm; codecs=vp9"))
|
|
2493
2493
|
return { mimeType: "video/webm; codecs=vp9", videoBitsPerSecond: 25e4 };
|
|
2494
2494
|
if (MediaRecorder.isTypeSupported("video/webm"))
|
|
@@ -2505,7 +2505,7 @@ function Co(e = {}) {
|
|
|
2505
2505
|
async (c) => {
|
|
2506
2506
|
if (o.current)
|
|
2507
2507
|
return;
|
|
2508
|
-
const p = await
|
|
2508
|
+
const p = await Fs(c);
|
|
2509
2509
|
o.current = p;
|
|
2510
2510
|
},
|
|
2511
2511
|
[]
|
|
@@ -2516,7 +2516,7 @@ function Co(e = {}) {
|
|
|
2516
2516
|
}, []), d = O((c) => {
|
|
2517
2517
|
i.current || (i.current = new MediaRecorder(
|
|
2518
2518
|
c,
|
|
2519
|
-
|
|
2519
|
+
Ms()
|
|
2520
2520
|
), i.current.ondataavailable = l, i.current.onstop = u, i.current.start(1e3));
|
|
2521
2521
|
}, []);
|
|
2522
2522
|
return {
|
|
@@ -2528,8 +2528,8 @@ function Co(e = {}) {
|
|
|
2528
2528
|
savedPhoto: o
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
|
-
const
|
|
2532
|
-
function
|
|
2531
|
+
const Ps = "https://cdn.svc.youverify.co", Ls = (e) => e ? "https://identity.staging.svc.youverify.co" : "https://identity.svc.youverify.co";
|
|
2532
|
+
function Ns(e) {
|
|
2533
2533
|
return { postData: async (n) => {
|
|
2534
2534
|
const {
|
|
2535
2535
|
faceImage: r,
|
|
@@ -2537,10 +2537,10 @@ function Is(e) {
|
|
|
2537
2537
|
passed: i,
|
|
2538
2538
|
metadata: a,
|
|
2539
2539
|
video: s
|
|
2540
|
-
} = n, l =
|
|
2540
|
+
} = n, l = Ls(e), u = new FormData();
|
|
2541
2541
|
u.append("files", r), u.append("files", s);
|
|
2542
2542
|
const d = await fetch(
|
|
2543
|
-
`${
|
|
2543
|
+
`${Ps}/v1/uploads/media`,
|
|
2544
2544
|
{
|
|
2545
2545
|
method: "POST",
|
|
2546
2546
|
headers: {
|
|
@@ -2570,14 +2570,14 @@ function Is(e) {
|
|
|
2570
2570
|
return (await p.json()).data;
|
|
2571
2571
|
} };
|
|
2572
2572
|
}
|
|
2573
|
-
const
|
|
2573
|
+
const As = 360, Ds = "#125766", Is = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", xo = {
|
|
2574
2574
|
"complete-the-circle": {
|
|
2575
|
-
Icon:
|
|
2575
|
+
Icon: bs,
|
|
2576
2576
|
name: "Complete The Circle ⭕️",
|
|
2577
2577
|
description: "First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"
|
|
2578
2578
|
},
|
|
2579
2579
|
"yes-or-no": {
|
|
2580
|
-
Icon:
|
|
2580
|
+
Icon: Es,
|
|
2581
2581
|
name: "Yes or No ❓",
|
|
2582
2582
|
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"
|
|
2583
2583
|
},
|
|
@@ -2596,7 +2596,7 @@ const Ds = 360, Os = "#125766", Hs = "https://cdn.youverify.co/1721901834404-q2n
|
|
|
2596
2596
|
name: "Facial Expressions 🤪",
|
|
2597
2597
|
description: "First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"
|
|
2598
2598
|
}
|
|
2599
|
-
},
|
|
2599
|
+
}, ko = G({
|
|
2600
2600
|
tasks: [],
|
|
2601
2601
|
namespace: "",
|
|
2602
2602
|
user: void 0,
|
|
@@ -2615,7 +2615,7 @@ const Ds = 360, Os = "#125766", Hs = "https://cdn.youverify.co/1721901834404-q2n
|
|
|
2615
2615
|
onComplete: () => Promise.resolve()
|
|
2616
2616
|
});
|
|
2617
2617
|
let tr, nr = !1;
|
|
2618
|
-
function
|
|
2618
|
+
function Os(e) {
|
|
2619
2619
|
const {
|
|
2620
2620
|
publicKey: t,
|
|
2621
2621
|
tasks: n,
|
|
@@ -2629,38 +2629,38 @@ function Rs(e) {
|
|
|
2629
2629
|
metadata: u,
|
|
2630
2630
|
presentation: d,
|
|
2631
2631
|
sandboxEnvironment: c = !0
|
|
2632
|
-
} = e, [p, f] = k(0), [_, y] = k(0), [m, v] = k(null), { saveStream: g, savePhoto: b, savedPhoto: C, savedStreams: E } = Co(), { postData: P } =
|
|
2632
|
+
} = e, [p, f] = k(0), [_, y] = k(0), [m, v] = k(null), { saveStream: g, savePhoto: b, savedPhoto: C, savedStreams: E } = Co(), { postData: P } = Ns(c), F = N(
|
|
2633
2633
|
() => _ === n.length,
|
|
2634
2634
|
[n, _]
|
|
2635
2635
|
), A = () => {
|
|
2636
|
-
y((
|
|
2637
|
-
}, W = (
|
|
2636
|
+
y(($) => $ + 1), f(($) => $ + 1);
|
|
2637
|
+
}, W = ($) => {
|
|
2638
2638
|
const L = new Image();
|
|
2639
|
-
L.crossOrigin = "Anonymous", L.src =
|
|
2639
|
+
L.crossOrigin = "Anonymous", L.src = Is, L.onload = () => {
|
|
2640
2640
|
const K = To(L, L.width, L.height);
|
|
2641
|
-
|
|
2641
|
+
Se.detectFaces($, K);
|
|
2642
2642
|
};
|
|
2643
|
-
},
|
|
2644
|
-
const
|
|
2643
|
+
}, M = async () => {
|
|
2644
|
+
const $ = await P({
|
|
2645
2645
|
faceImage: C.current,
|
|
2646
2646
|
video: new Blob(E.current, { type: "video/mp4" }),
|
|
2647
2647
|
publicKey: t,
|
|
2648
2648
|
passed: !0,
|
|
2649
2649
|
metadata: u
|
|
2650
2650
|
});
|
|
2651
|
-
l(
|
|
2652
|
-
},
|
|
2653
|
-
const
|
|
2654
|
-
tr =
|
|
2651
|
+
l($), s();
|
|
2652
|
+
}, x = async () => {
|
|
2653
|
+
const $ = await Se.loadDetector();
|
|
2654
|
+
tr = $, W($), v($);
|
|
2655
2655
|
};
|
|
2656
|
-
return
|
|
2656
|
+
return D(() => {
|
|
2657
2657
|
if (nr) {
|
|
2658
2658
|
v(tr);
|
|
2659
2659
|
return;
|
|
2660
2660
|
}
|
|
2661
|
-
|
|
2661
|
+
x(), nr = !0;
|
|
2662
2662
|
}, []), /* @__PURE__ */ h(
|
|
2663
|
-
|
|
2663
|
+
ko.Provider,
|
|
2664
2664
|
{
|
|
2665
2665
|
value: {
|
|
2666
2666
|
tasks: n,
|
|
@@ -2675,40 +2675,40 @@ function Rs(e) {
|
|
|
2675
2675
|
faceDetector: m,
|
|
2676
2676
|
saveStream: g,
|
|
2677
2677
|
savePhoto: b,
|
|
2678
|
-
onComplete:
|
|
2678
|
+
onComplete: M,
|
|
2679
2679
|
presentation: d
|
|
2680
2680
|
},
|
|
2681
2681
|
children: r
|
|
2682
2682
|
}
|
|
2683
2683
|
);
|
|
2684
2684
|
}
|
|
2685
|
-
function
|
|
2686
|
-
return B(
|
|
2687
|
-
}
|
|
2688
|
-
const
|
|
2689
|
-
root:
|
|
2690
|
-
container:
|
|
2691
|
-
lhs:
|
|
2692
|
-
info:
|
|
2693
|
-
active:
|
|
2694
|
-
completed:
|
|
2695
|
-
rhs:
|
|
2696
|
-
profile:
|
|
2697
|
-
avatar:
|
|
2698
|
-
main:
|
|
2699
|
-
content:
|
|
2700
|
-
},
|
|
2701
|
-
root:
|
|
2702
|
-
container:
|
|
2703
|
-
brand:
|
|
2685
|
+
function ve() {
|
|
2686
|
+
return B(ko);
|
|
2687
|
+
}
|
|
2688
|
+
const Hs = "_root_vqy7d_1", Rs = "_container_vqy7d_4", Vs = "_lhs_vqy7d_7", Us = "_info_vqy7d_11", Ws = "_active_vqy7d_32", js = "_completed_vqy7d_39", Bs = "_rhs_vqy7d_62", zs = "_profile_vqy7d_65", qs = "_avatar_vqy7d_68", Ks = "_main_vqy7d_81", Ys = "_content_vqy7d_84", Y = {
|
|
2689
|
+
root: Hs,
|
|
2690
|
+
container: Rs,
|
|
2691
|
+
lhs: Vs,
|
|
2692
|
+
info: Us,
|
|
2693
|
+
active: Ws,
|
|
2694
|
+
completed: js,
|
|
2695
|
+
rhs: Bs,
|
|
2696
|
+
profile: zs,
|
|
2697
|
+
avatar: qs,
|
|
2698
|
+
main: Ks,
|
|
2699
|
+
content: Ys
|
|
2700
|
+
}, Gs = "_root_135td_1", Zs = "_container_135td_1", Xs = "_brand_135td_1", Rt = {
|
|
2701
|
+
root: Gs,
|
|
2702
|
+
container: Zs,
|
|
2703
|
+
brand: Xs
|
|
2704
2704
|
};
|
|
2705
|
-
function
|
|
2706
|
-
const { branding: e } =
|
|
2705
|
+
function Qs() {
|
|
2706
|
+
const { branding: e } = ve();
|
|
2707
2707
|
return /* @__PURE__ */ h("div", { className: Rt.root, children: /* @__PURE__ */ h("div", { className: Rt.container, children: /* @__PURE__ */ h("div", { className: Rt.brand, children: (e == null ? void 0 : e.logo) && /* @__PURE__ */ h("img", { className: "yvlw-h-10", src: e.logo, alt: "Logo" }) }) }) });
|
|
2708
2708
|
}
|
|
2709
2709
|
const rr = "colorScheme";
|
|
2710
|
-
function
|
|
2711
|
-
const { namespace: e } =
|
|
2710
|
+
function Js() {
|
|
2711
|
+
const { namespace: e } = ve(), t = () => {
|
|
2712
2712
|
const o = localStorage.getItem(rr);
|
|
2713
2713
|
return !o && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : o;
|
|
2714
2714
|
}, n = (o = null) => {
|
|
@@ -2721,10 +2721,10 @@ function tl() {
|
|
|
2721
2721
|
return n(o === "dark" ? "light" : "dark");
|
|
2722
2722
|
}, getColorScheme: t };
|
|
2723
2723
|
}
|
|
2724
|
-
const
|
|
2725
|
-
root:
|
|
2724
|
+
const el = "_root_bcsvc_1", tl = {
|
|
2725
|
+
root: el
|
|
2726
2726
|
};
|
|
2727
|
-
function
|
|
2727
|
+
function nl() {
|
|
2728
2728
|
if (!(window.screen.width >= 900))
|
|
2729
2729
|
return 10 / 9;
|
|
2730
2730
|
}
|
|
@@ -2736,7 +2736,7 @@ function Ft(e) {
|
|
|
2736
2736
|
}), u = async () => {
|
|
2737
2737
|
try {
|
|
2738
2738
|
const p = await navigator.mediaDevices.getUserMedia({
|
|
2739
|
-
video: { aspectRatio: { exact:
|
|
2739
|
+
video: { aspectRatio: { exact: nl() } }
|
|
2740
2740
|
});
|
|
2741
2741
|
a.current = p, s(p), o.current && (o.current.srcObject = p);
|
|
2742
2742
|
} catch {
|
|
@@ -2746,7 +2746,7 @@ function Ft(e) {
|
|
|
2746
2746
|
}, c = () => {
|
|
2747
2747
|
n(o), i.current = requestAnimationFrame(c);
|
|
2748
2748
|
};
|
|
2749
|
-
return
|
|
2749
|
+
return D(() => {
|
|
2750
2750
|
const p = o.current;
|
|
2751
2751
|
if (!p)
|
|
2752
2752
|
return;
|
|
@@ -2756,24 +2756,24 @@ function Ft(e) {
|
|
|
2756
2756
|
return u(), p.addEventListener("canplay", f), () => {
|
|
2757
2757
|
p.removeEventListener("canplay", f), cancelAnimationFrame(i.current), d();
|
|
2758
2758
|
};
|
|
2759
|
-
}, []), /* @__PURE__ */ h("div", { className:
|
|
2759
|
+
}, []), /* @__PURE__ */ h("div", { className: tl.root, children: [
|
|
2760
2760
|
/* @__PURE__ */ h("video", { ref: o, autoPlay: !0, loop: !0, playsInline: !0 }),
|
|
2761
2761
|
t
|
|
2762
2762
|
] });
|
|
2763
2763
|
}
|
|
2764
|
-
const
|
|
2765
|
-
container:
|
|
2766
|
-
focused:
|
|
2767
|
-
progress:
|
|
2768
|
-
completed:
|
|
2769
|
-
marker:
|
|
2770
|
-
}, or = 360,
|
|
2771
|
-
function
|
|
2764
|
+
const rl = "_container_mcmsr_1", ol = "_focused_mcmsr_12", il = "_progress_mcmsr_15", al = "_completed_mcmsr_36", sl = "_marker_mcmsr_40", We = {
|
|
2765
|
+
container: rl,
|
|
2766
|
+
focused: ol,
|
|
2767
|
+
progress: il,
|
|
2768
|
+
completed: al,
|
|
2769
|
+
marker: sl
|
|
2770
|
+
}, or = 360, ll = 50;
|
|
2771
|
+
function cl(e) {
|
|
2772
2772
|
const {
|
|
2773
2773
|
visitedSections: t,
|
|
2774
2774
|
sectionsCount: n,
|
|
2775
2775
|
faceDetected: r,
|
|
2776
|
-
divisions: o =
|
|
2776
|
+
divisions: o = ll
|
|
2777
2777
|
} = e, i = N(() => {
|
|
2778
2778
|
const a = [We.container];
|
|
2779
2779
|
return r && a.push(We.focused), a.join(" ");
|
|
@@ -2833,7 +2833,7 @@ function dl(e) {
|
|
|
2833
2833
|
)
|
|
2834
2834
|
] });
|
|
2835
2835
|
}
|
|
2836
|
-
function
|
|
2836
|
+
function ul() {
|
|
2837
2837
|
return { checkZoomLevel: (r, o) => {
|
|
2838
2838
|
const { box: i } = r, { width: a, height: s } = i, l = a * s, u = o ** 2, d = l / u;
|
|
2839
2839
|
if (d > 0.9)
|
|
@@ -2850,7 +2850,7 @@ function fl() {
|
|
|
2850
2850
|
function pe(e, t) {
|
|
2851
2851
|
return Math.sqrt(e ** 2 + t ** 2);
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2853
|
+
function dl(e) {
|
|
2854
2854
|
const t = e.slice();
|
|
2855
2855
|
for (let n = t.length - 1; n > 0; n--) {
|
|
2856
2856
|
const r = Math.floor(Math.random() * (n + 1));
|
|
@@ -2858,15 +2858,15 @@ function So(e) {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
return t;
|
|
2860
2860
|
}
|
|
2861
|
-
const
|
|
2861
|
+
const fl = 1, pl = 9, Vt = {
|
|
2862
2862
|
centerMin: 20,
|
|
2863
2863
|
centerMax: 100,
|
|
2864
2864
|
verticalMin: 230
|
|
2865
2865
|
};
|
|
2866
|
-
function
|
|
2866
|
+
function hl() {
|
|
2867
2867
|
return {
|
|
2868
2868
|
isReady: (t) => {
|
|
2869
|
-
const { keypoints: n, box: r } = t, o = n[
|
|
2869
|
+
const { keypoints: n, box: r } = t, o = n[fl], i = n[pl], a = n[6], s = { x: r.width * 0.5, y: r.height * 0.5 }, l = { y: o.y - r.yMin, x: o.x - r.xMin }, u = {
|
|
2870
2870
|
y: a.y - r.yMin,
|
|
2871
2871
|
x: a.x - r.xMin
|
|
2872
2872
|
}, d = {
|
|
@@ -2896,7 +2896,7 @@ function Mt(e = {}) {
|
|
|
2896
2896
|
},
|
|
2897
2897
|
onError: o = () => {
|
|
2898
2898
|
}
|
|
2899
|
-
} = e, { faceDetector: i, savePhoto: a } =
|
|
2899
|
+
} = e, { faceDetector: i, savePhoto: a } = ve(), s = w(!1), { isReady: l } = hl(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: c } = ul(), p = w(null), f = (y, m) => {
|
|
2900
2900
|
var v;
|
|
2901
2901
|
try {
|
|
2902
2902
|
if (y.length === 0)
|
|
@@ -2961,29 +2961,29 @@ function Mt(e = {}) {
|
|
|
2961
2961
|
g,
|
|
2962
2962
|
b
|
|
2963
2963
|
// frameSize,
|
|
2964
|
-
), E = await
|
|
2964
|
+
), E = await Se.detectFaces(i, C);
|
|
2965
2965
|
f(E, v);
|
|
2966
2966
|
} };
|
|
2967
2967
|
}
|
|
2968
|
-
const
|
|
2969
|
-
root:
|
|
2970
|
-
container:
|
|
2971
|
-
progress:
|
|
2972
|
-
intro:
|
|
2973
|
-
content:
|
|
2974
|
-
branding:
|
|
2975
|
-
instructionsContainer:
|
|
2976
|
-
instructions:
|
|
2977
|
-
},
|
|
2978
|
-
root:
|
|
2979
|
-
spinner:
|
|
2980
|
-
},
|
|
2981
|
-
container:
|
|
2968
|
+
const vl = "_root_5hgaj_1", _l = "_container_5hgaj_4", ml = "_progress_5hgaj_7", yl = "_intro_5hgaj_12", gl = "_content_5hgaj_15", wl = "_branding_5hgaj_18", bl = "_instructionsContainer_5hgaj_22", El = "_instructions_5hgaj_22", oe = {
|
|
2969
|
+
root: vl,
|
|
2970
|
+
container: _l,
|
|
2971
|
+
progress: ml,
|
|
2972
|
+
intro: yl,
|
|
2973
|
+
content: gl,
|
|
2974
|
+
branding: wl,
|
|
2975
|
+
instructionsContainer: bl,
|
|
2976
|
+
instructions: El
|
|
2977
|
+
}, $l = "_root_h5elg_1", Tl = "_spinner_h5elg_22", ir = {
|
|
2978
|
+
root: $l,
|
|
2979
|
+
spinner: Tl
|
|
2980
|
+
}, Cl = "_container_1vep2_1", xl = "_spin_1vep2_1", kl = "_md_1vep2_7", Sl = "_lg_1vep2_10", ar = {
|
|
2981
|
+
container: Cl,
|
|
2982
2982
|
spin: xl,
|
|
2983
|
-
md:
|
|
2984
|
-
lg:
|
|
2983
|
+
md: kl,
|
|
2984
|
+
lg: Sl
|
|
2985
2985
|
};
|
|
2986
|
-
function
|
|
2986
|
+
function So(e) {
|
|
2987
2987
|
const { size: t = "md", className: n = "" } = e;
|
|
2988
2988
|
return /* @__PURE__ */ h(
|
|
2989
2989
|
"span",
|
|
@@ -3009,14 +3009,14 @@ function Ge(e) {
|
|
|
3009
3009
|
/* @__PURE__ */ h("h2", { children: r }),
|
|
3010
3010
|
/* @__PURE__ */ h("p", { className: "subtext", children: n }),
|
|
3011
3011
|
!l && /* @__PURE__ */ h("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ h(
|
|
3012
|
-
|
|
3012
|
+
Li,
|
|
3013
3013
|
{
|
|
3014
3014
|
onClick: () => i(),
|
|
3015
3015
|
className: "yvlw-flex yvlw-items-center yvlw-space-x-3",
|
|
3016
3016
|
disabled: a,
|
|
3017
3017
|
children: [
|
|
3018
3018
|
/* @__PURE__ */ h("span", { className: "yvlw-flex-1 yvlw-flex yvlw-items-center yvlw-space-x-1 yvlw-justify-center", children: o }),
|
|
3019
|
-
a && /* @__PURE__ */ h(
|
|
3019
|
+
a && /* @__PURE__ */ h(So, { className: ir.spinner })
|
|
3020
3020
|
]
|
|
3021
3021
|
}
|
|
3022
3022
|
) }),
|
|
@@ -3035,7 +3035,7 @@ function Pt(e) {
|
|
|
3035
3035
|
},
|
|
3036
3036
|
onReset: s = () => {
|
|
3037
3037
|
}
|
|
3038
|
-
} = e, [l, u] = k(!1), { completedCount: d, tasks: c, nextTask: p } =
|
|
3038
|
+
} = e, [l, u] = k(!1), { completedCount: d, tasks: c, nextTask: p } = ve(), f = N(() => xo[r], [r]), _ = N(
|
|
3039
3039
|
() => d * 100 / c.length,
|
|
3040
3040
|
[d, c.length]
|
|
3041
3041
|
);
|
|
@@ -3095,7 +3095,7 @@ function Pt(e) {
|
|
|
3095
3095
|
/* @__PURE__ */ h("div", { className: oe.branding, children: [
|
|
3096
3096
|
/* @__PURE__ */ h("span", { children: "Powered by" }),
|
|
3097
3097
|
" ",
|
|
3098
|
-
/* @__PURE__ */ h(
|
|
3098
|
+
/* @__PURE__ */ h(ks, { size: "custom", className: "yvlw-h-3" })
|
|
3099
3099
|
] })
|
|
3100
3100
|
] })
|
|
3101
3101
|
]
|
|
@@ -3143,7 +3143,7 @@ function Pt(e) {
|
|
|
3143
3143
|
children: /* @__PURE__ */ h("div", { className: `${oe.intro}`, children: /* @__PURE__ */ h(
|
|
3144
3144
|
Ge,
|
|
3145
3145
|
{
|
|
3146
|
-
Icon:
|
|
3146
|
+
Icon: Cs,
|
|
3147
3147
|
title: "Oops, task failed!",
|
|
3148
3148
|
description: "Could not confirm liveness on this task. Click on the button below to go again",
|
|
3149
3149
|
onActionClick: s,
|
|
@@ -3165,29 +3165,29 @@ function Lt(e = {}) {
|
|
|
3165
3165
|
}, []), l = O(() => {
|
|
3166
3166
|
o(!1), s();
|
|
3167
3167
|
}, []);
|
|
3168
|
-
return
|
|
3168
|
+
return D(() => a, []), {
|
|
3169
3169
|
timedOut: r,
|
|
3170
3170
|
reset: l,
|
|
3171
3171
|
start: s,
|
|
3172
3172
|
stop: a
|
|
3173
3173
|
};
|
|
3174
3174
|
}
|
|
3175
|
-
const
|
|
3176
|
-
function
|
|
3177
|
-
const { difficulty: t, timeout: n } = e, { saveStream: r } =
|
|
3175
|
+
const Fl = 1, Ut = 8, sr = "Place face in frame";
|
|
3176
|
+
function Ml(e) {
|
|
3177
|
+
const { difficulty: t, timeout: n } = e, { saveStream: r } = ve(), [o, i] = k([]), [a, s] = k(sr), [l, u] = k(!1), [d, c] = k(!1), p = w(/* @__PURE__ */ new Set()), f = w(!1), _ = w(null), {
|
|
3178
3178
|
reset: y,
|
|
3179
3179
|
start: m,
|
|
3180
3180
|
stop: v,
|
|
3181
3181
|
timedOut: g
|
|
3182
3182
|
} = Lt({ timeout: n }), b = () => {
|
|
3183
3183
|
i([]), s(sr), u(!1), c(!1), p.current = /* @__PURE__ */ new Set(), f.current = !1, _.current = null, y();
|
|
3184
|
-
}, C = (
|
|
3185
|
-
const
|
|
3186
|
-
p.current.has(
|
|
3184
|
+
}, C = (M) => {
|
|
3185
|
+
const x = M * Ut, $ = Math.ceil((x + 1) / As);
|
|
3186
|
+
p.current.has($) || (p.current.add($), i(Array.from(p.current))), p.current.size >= Ut && (v(), setTimeout(() => {
|
|
3187
3187
|
c(!0);
|
|
3188
3188
|
}, 1e3));
|
|
3189
|
-
}, E = (
|
|
3190
|
-
let L = Math.atan2(
|
|
3189
|
+
}, E = (M, x) => {
|
|
3190
|
+
let L = Math.atan2(x, M) * (180 / Math.PI);
|
|
3191
3191
|
return L < 0 && (L += 360), L;
|
|
3192
3192
|
}, P = O(() => {
|
|
3193
3193
|
if (p.current.size === 0)
|
|
@@ -3200,19 +3200,19 @@ function Pl(e) {
|
|
|
3200
3200
|
default:
|
|
3201
3201
|
return 10;
|
|
3202
3202
|
}
|
|
3203
|
-
}, []), F = (
|
|
3204
|
-
const { keypoints:
|
|
3205
|
-
return Math.abs(Q) <
|
|
3203
|
+
}, []), F = (M) => {
|
|
3204
|
+
const { keypoints: x, box: $ } = M, L = { x: $.width * 0.5, y: $.height * 0.5 }, K = x[Fl], re = { y: K.y - $.yMin, x: K.x - $.xMin }, Q = L.x - re.x, J = re.y - L.y, _e = P();
|
|
3205
|
+
return Math.abs(Q) < _e && Math.abs(J) < _e ? null : E(Q, J);
|
|
3206
3206
|
}, { detectFaces: A } = Mt({
|
|
3207
3207
|
frameSize: 280,
|
|
3208
3208
|
validations: ["zoom", "in-frame"],
|
|
3209
|
-
onFace: (
|
|
3209
|
+
onFace: (M) => {
|
|
3210
3210
|
u(!0), s("Slowly move head around to complete circle");
|
|
3211
|
-
const
|
|
3212
|
-
|
|
3211
|
+
const x = F(M);
|
|
3212
|
+
x && C(x);
|
|
3213
3213
|
},
|
|
3214
|
-
onError: (
|
|
3215
|
-
s(
|
|
3214
|
+
onError: (M) => {
|
|
3215
|
+
s(M), i([]), p.current.clear(), _.current = null, f.current = !1;
|
|
3216
3216
|
}
|
|
3217
3217
|
});
|
|
3218
3218
|
return /* @__PURE__ */ h(H, { children: /* @__PURE__ */ h(
|
|
@@ -3227,16 +3227,16 @@ function Pl(e) {
|
|
|
3227
3227
|
failed: g,
|
|
3228
3228
|
onReset: b,
|
|
3229
3229
|
onStart: m,
|
|
3230
|
-
children: /* @__PURE__ */ h(Ft, { onStream: (
|
|
3230
|
+
children: /* @__PURE__ */ h(Ft, { onStream: (M) => {
|
|
3231
3231
|
try {
|
|
3232
|
-
if (
|
|
3232
|
+
if (!M.current || d)
|
|
3233
3233
|
return;
|
|
3234
|
-
const { videoWidth:
|
|
3235
|
-
A({ ref:
|
|
3234
|
+
const { videoWidth: x } = M.current;
|
|
3235
|
+
A({ ref: M, frameSize: x });
|
|
3236
3236
|
} catch {
|
|
3237
3237
|
}
|
|
3238
3238
|
}, onRecord: r, children: /* @__PURE__ */ h(
|
|
3239
|
-
|
|
3239
|
+
cl,
|
|
3240
3240
|
{
|
|
3241
3241
|
faceDetected: l,
|
|
3242
3242
|
sectionsCount: Ut,
|
|
@@ -3246,11 +3246,11 @@ function Pl(e) {
|
|
|
3246
3246
|
}
|
|
3247
3247
|
) });
|
|
3248
3248
|
}
|
|
3249
|
-
const
|
|
3250
|
-
root:
|
|
3251
|
-
sticker:
|
|
3252
|
-
no:
|
|
3253
|
-
yes:
|
|
3249
|
+
const Pl = "_root_thujo_1", Ll = "_sticker_thujo_4", Nl = "_no_thujo_7", Al = "_yes_thujo_12", Wt = {
|
|
3250
|
+
root: Pl,
|
|
3251
|
+
sticker: Ll,
|
|
3252
|
+
no: Nl,
|
|
3253
|
+
yes: Al
|
|
3254
3254
|
};
|
|
3255
3255
|
function Dl(e) {
|
|
3256
3256
|
const { show: t, stickers: n } = e;
|
|
@@ -3263,13 +3263,13 @@ function Dl(e) {
|
|
|
3263
3263
|
`sticker-${r}`
|
|
3264
3264
|
)) }) });
|
|
3265
3265
|
}
|
|
3266
|
-
const
|
|
3266
|
+
const Il = {
|
|
3267
3267
|
question: "Are you alive?",
|
|
3268
3268
|
errorMessage: "You have to be alive to proceed though",
|
|
3269
3269
|
answer: !0
|
|
3270
|
-
},
|
|
3271
|
-
function
|
|
3272
|
-
const { difficulty: t, questions: n = [
|
|
3270
|
+
}, Ol = "Wrong answer. Try again", lr = "Keep face in camera";
|
|
3271
|
+
function Hl(e) {
|
|
3272
|
+
const { difficulty: t, questions: n = [Il], timeout: r } = e, [o, i] = k(lr), [a, s] = k(!1), [l, u] = k(!1), { saveStream: d } = ve(), c = w("inactive"), p = w(0), f = w(!1), _ = w(null), y = w(null), m = () => {
|
|
3273
3273
|
_.current && clearTimeout(_.current), y.current && clearTimeout(y.current);
|
|
3274
3274
|
}, {
|
|
3275
3275
|
reset: v,
|
|
@@ -3281,11 +3281,11 @@ function Rl(e) {
|
|
|
3281
3281
|
onTimeout: m
|
|
3282
3282
|
}), E = () => {
|
|
3283
3283
|
i(lr), s(!1), u(!1), c.current = "inactive", p.current = 0, f.current = !1, v();
|
|
3284
|
-
}, P = (
|
|
3285
|
-
const { keypoints: L } =
|
|
3284
|
+
}, P = ($) => {
|
|
3285
|
+
const { keypoints: L } = $, K = L[1], re = L[9], Q = K.x - re.x, J = K.y - re.y;
|
|
3286
3286
|
return 90 - Math.atan2(J, Q) * (180 / Math.PI);
|
|
3287
|
-
}, F = (
|
|
3288
|
-
c.current = "inactive", i(n[
|
|
3287
|
+
}, F = ($) => {
|
|
3288
|
+
c.current = "inactive", i(n[$].question), _.current = setTimeout(() => {
|
|
3289
3289
|
c.current = "active";
|
|
3290
3290
|
}, 2e3);
|
|
3291
3291
|
}, A = N(() => {
|
|
@@ -3297,42 +3297,42 @@ function Rl(e) {
|
|
|
3297
3297
|
default:
|
|
3298
3298
|
return 4;
|
|
3299
3299
|
}
|
|
3300
|
-
}, []), W = (
|
|
3300
|
+
}, []), W = ($) => {
|
|
3301
3301
|
try {
|
|
3302
|
-
if (c.current = "inactive", Math.abs(
|
|
3302
|
+
if (c.current = "inactive", Math.abs($) < A)
|
|
3303
3303
|
throw new Error("Tilt head further to answer");
|
|
3304
|
-
const L =
|
|
3304
|
+
const L = $ > 0, K = n[p.current].answer;
|
|
3305
3305
|
if (L === K)
|
|
3306
3306
|
p.current += 1, p.current === n.length ? (u(!0), b()) : F(p.current);
|
|
3307
3307
|
else
|
|
3308
3308
|
throw new Error(
|
|
3309
|
-
n[p.current].errorMessage ||
|
|
3309
|
+
n[p.current].errorMessage || Ol
|
|
3310
3310
|
);
|
|
3311
3311
|
} catch (L) {
|
|
3312
3312
|
i(L.message), y.current = setTimeout(() => {
|
|
3313
3313
|
F(p.current);
|
|
3314
3314
|
}, 2e3);
|
|
3315
3315
|
}
|
|
3316
|
-
}, { detectFaces:
|
|
3317
|
-
onFace: (
|
|
3316
|
+
}, { detectFaces: M } = Mt({
|
|
3317
|
+
onFace: ($) => {
|
|
3318
3318
|
if (f.current || (s(!0), f.current = !0, F(p.current)), c.current === "inactive")
|
|
3319
3319
|
return;
|
|
3320
|
-
const L = P(
|
|
3320
|
+
const L = P($);
|
|
3321
3321
|
W(L);
|
|
3322
3322
|
},
|
|
3323
|
-
onError: (
|
|
3324
|
-
i(
|
|
3323
|
+
onError: ($) => {
|
|
3324
|
+
i($);
|
|
3325
3325
|
}
|
|
3326
|
-
}),
|
|
3326
|
+
}), x = ($) => {
|
|
3327
3327
|
try {
|
|
3328
|
-
if (
|
|
3328
|
+
if (!$.current || l)
|
|
3329
3329
|
return;
|
|
3330
|
-
const { videoWidth: L } =
|
|
3331
|
-
|
|
3330
|
+
const { videoWidth: L } = $.current;
|
|
3331
|
+
M({ ref: $, frameSize: L });
|
|
3332
3332
|
} catch {
|
|
3333
3333
|
}
|
|
3334
3334
|
};
|
|
3335
|
-
return
|
|
3335
|
+
return D(() => m, []), /* @__PURE__ */ h(
|
|
3336
3336
|
Pt,
|
|
3337
3337
|
{
|
|
3338
3338
|
instruction: {
|
|
@@ -3344,11 +3344,11 @@ function Rl(e) {
|
|
|
3344
3344
|
onReset: E,
|
|
3345
3345
|
onStart: g,
|
|
3346
3346
|
completed: l,
|
|
3347
|
-
children: /* @__PURE__ */ h(Ft, { onStream:
|
|
3347
|
+
children: /* @__PURE__ */ h(Ft, { onStream: x, onRecord: d, children: /* @__PURE__ */ h(Dl, { show: a, stickers: ["yes", "no"] }) })
|
|
3348
3348
|
}
|
|
3349
3349
|
);
|
|
3350
3350
|
}
|
|
3351
|
-
function
|
|
3351
|
+
function Rl(e = {}) {
|
|
3352
3352
|
const { onChange: t = () => {
|
|
3353
3353
|
} } = e, n = !!window.DeviceOrientationEvent, r = (o) => {
|
|
3354
3354
|
t({
|
|
@@ -3357,13 +3357,13 @@ function Vl(e = {}) {
|
|
|
3357
3357
|
gamma: o.gamma
|
|
3358
3358
|
});
|
|
3359
3359
|
};
|
|
3360
|
-
return
|
|
3360
|
+
return D(() => (window.addEventListener("deviceorientation", r), () => {
|
|
3361
3361
|
window.removeEventListener("deviceorientation", r);
|
|
3362
3362
|
}), []), {
|
|
3363
3363
|
canUse: n
|
|
3364
3364
|
};
|
|
3365
3365
|
}
|
|
3366
|
-
function
|
|
3366
|
+
function Vl(e) {
|
|
3367
3367
|
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(null), a = w(!0), s = w(null), l = w(null), u = w(0), d = w(!1), c = N(() => {
|
|
3368
3368
|
switch (o) {
|
|
3369
3369
|
case "easy":
|
|
@@ -3383,7 +3383,7 @@ function Ul(e) {
|
|
|
3383
3383
|
d.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3384
3384
|
r();
|
|
3385
3385
|
}, 500);
|
|
3386
|
-
}, { canUse: f } =
|
|
3386
|
+
}, { canUse: f } = Rl({
|
|
3387
3387
|
onChange: (m) => {
|
|
3388
3388
|
l.current = m;
|
|
3389
3389
|
}
|
|
@@ -3423,7 +3423,7 @@ function Ul(e) {
|
|
|
3423
3423
|
i.current = null, a.current = !0, s.current = null, l.current = null, u.current = 0, d.current = !1;
|
|
3424
3424
|
} };
|
|
3425
3425
|
}
|
|
3426
|
-
function
|
|
3426
|
+
function Ul(e) {
|
|
3427
3427
|
const { onMessage: t, onComplete: n, difficulty: r } = e, o = w(!1), i = N(() => {
|
|
3428
3428
|
switch (r) {
|
|
3429
3429
|
case "easy":
|
|
@@ -3455,7 +3455,7 @@ function Wl(e) {
|
|
|
3455
3455
|
o.current = !1;
|
|
3456
3456
|
} };
|
|
3457
3457
|
}
|
|
3458
|
-
function
|
|
3458
|
+
function Fo(e) {
|
|
3459
3459
|
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(!0), a = w(!1), s = w(null), l = w(0), u = N(() => {
|
|
3460
3460
|
switch (o) {
|
|
3461
3461
|
case "easy":
|
|
@@ -3507,7 +3507,7 @@ function Mo(e) {
|
|
|
3507
3507
|
i.current = !0, a.current = !1, s.current = null, l.current = 0;
|
|
3508
3508
|
} };
|
|
3509
3509
|
}
|
|
3510
|
-
function
|
|
3510
|
+
function Mo() {
|
|
3511
3511
|
return {
|
|
3512
3512
|
requestDeviceOrientationPermission: async () => {
|
|
3513
3513
|
if (!window.DeviceOrientationEvent)
|
|
@@ -3518,67 +3518,64 @@ function Po() {
|
|
|
3518
3518
|
}
|
|
3519
3519
|
};
|
|
3520
3520
|
}
|
|
3521
|
-
var
|
|
3522
|
-
const cr =
|
|
3523
|
-
function
|
|
3524
|
-
const { difficulty: t, maxBlinks: n =
|
|
3525
|
-
reset:
|
|
3526
|
-
start:
|
|
3527
|
-
stop:
|
|
3528
|
-
timedOut:
|
|
3529
|
-
} = Lt({ timeout: o }),
|
|
3521
|
+
var Po = /* @__PURE__ */ ((e) => (e.open_mouth = "open_mouth", e.blink = "blink", e))(Po || {});
|
|
3522
|
+
const cr = dl(Object.keys(Po)), ur = "Keep face in camera";
|
|
3523
|
+
function Wl(e) {
|
|
3524
|
+
const { difficulty: t, maxBlinks: n = 3, maxNods: r = 3, timeout: o } = e, i = w(0), [a, s] = k(ur), [l, u] = k(!1), [d, c] = k(null), p = w(!1), { requestDeviceOrientationPermission: f } = Mo(), { saveStream: _ } = ve(), {
|
|
3525
|
+
reset: y,
|
|
3526
|
+
start: m,
|
|
3527
|
+
stop: v,
|
|
3528
|
+
timedOut: g
|
|
3529
|
+
} = Lt({ timeout: o }), b = () => {
|
|
3530
3530
|
if (i.current === cr.length - 1) {
|
|
3531
|
-
u(!0),
|
|
3531
|
+
u(!0), v();
|
|
3532
3532
|
return;
|
|
3533
3533
|
}
|
|
3534
3534
|
i.current += 1;
|
|
3535
|
-
},
|
|
3535
|
+
}, C = Vl({
|
|
3536
3536
|
total: Math.floor(Math.random() * r + 1),
|
|
3537
3537
|
difficulty: t,
|
|
3538
|
-
onMessage: (
|
|
3539
|
-
onComplete:
|
|
3540
|
-
}),
|
|
3538
|
+
onMessage: (x) => s(x),
|
|
3539
|
+
onComplete: b
|
|
3540
|
+
}), E = Ul({
|
|
3541
3541
|
difficulty: t,
|
|
3542
|
-
onMessage: (
|
|
3543
|
-
onComplete:
|
|
3544
|
-
}),
|
|
3542
|
+
onMessage: (x) => s(x),
|
|
3543
|
+
onComplete: b
|
|
3544
|
+
}), P = Fo({
|
|
3545
3545
|
total: Math.floor(Math.random() * n + 1),
|
|
3546
3546
|
difficulty: t,
|
|
3547
|
-
onMessage: (
|
|
3548
|
-
onComplete:
|
|
3549
|
-
}), { detectFaces:
|
|
3550
|
-
onFace: (
|
|
3547
|
+
onMessage: (x) => s(x),
|
|
3548
|
+
onComplete: b
|
|
3549
|
+
}), { detectFaces: F } = Mt({
|
|
3550
|
+
onFace: (x) => {
|
|
3551
3551
|
switch (p.current || (p.current = !0), cr[i.current]) {
|
|
3552
|
-
case "nod":
|
|
3553
|
-
b.evaluate($);
|
|
3554
|
-
break;
|
|
3555
3552
|
case "open_mouth":
|
|
3556
|
-
|
|
3553
|
+
E.evaluate(x);
|
|
3557
3554
|
break;
|
|
3558
3555
|
case "blink":
|
|
3559
|
-
|
|
3556
|
+
P.evaluate(x);
|
|
3560
3557
|
break;
|
|
3561
3558
|
}
|
|
3562
3559
|
},
|
|
3563
|
-
onError: (
|
|
3564
|
-
s(
|
|
3560
|
+
onError: (x) => {
|
|
3561
|
+
s(x);
|
|
3565
3562
|
}
|
|
3566
|
-
}),
|
|
3567
|
-
i.current = 0, s(ur), u(!1), p.current = !1,
|
|
3568
|
-
},
|
|
3563
|
+
}), A = () => {
|
|
3564
|
+
i.current = 0, s(ur), u(!1), p.current = !1, P.reset(), C.reset(), E.reset(), y();
|
|
3565
|
+
}, W = async (x) => {
|
|
3569
3566
|
try {
|
|
3570
|
-
if (
|
|
3567
|
+
if (!x.current || l)
|
|
3571
3568
|
return;
|
|
3572
|
-
const { videoWidth:
|
|
3573
|
-
await
|
|
3569
|
+
const { videoWidth: $ } = x.current;
|
|
3570
|
+
await F({ ref: x, frameSize: $, throttleInterval: 500 });
|
|
3574
3571
|
} catch {
|
|
3575
3572
|
}
|
|
3576
|
-
},
|
|
3573
|
+
}, M = async () => {
|
|
3577
3574
|
try {
|
|
3578
3575
|
await f();
|
|
3579
|
-
} catch (
|
|
3580
|
-
const
|
|
3581
|
-
s(
|
|
3576
|
+
} catch (x) {
|
|
3577
|
+
const $ = x;
|
|
3578
|
+
s($.message), c($);
|
|
3582
3579
|
}
|
|
3583
3580
|
};
|
|
3584
3581
|
return /* @__PURE__ */ h(
|
|
@@ -3589,81 +3586,76 @@ function jl(e) {
|
|
|
3589
3586
|
description: "Follow the directives as instructed"
|
|
3590
3587
|
},
|
|
3591
3588
|
name: "motions",
|
|
3592
|
-
failed:
|
|
3593
|
-
onReset:
|
|
3589
|
+
failed: g,
|
|
3590
|
+
onReset: A,
|
|
3594
3591
|
completed: l,
|
|
3595
3592
|
onStart: async () => {
|
|
3596
|
-
await
|
|
3593
|
+
await M(), m();
|
|
3597
3594
|
},
|
|
3598
|
-
children: d ? /* @__PURE__ */ h(H, {}) : /* @__PURE__ */ h(Ft, { onStream:
|
|
3595
|
+
children: d ? /* @__PURE__ */ h(H, {}) : /* @__PURE__ */ h(Ft, { onStream: W, onRecord: _ })
|
|
3599
3596
|
}
|
|
3600
3597
|
);
|
|
3601
3598
|
}
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
const { difficulty: t, maxBlinks: n = 5, timeout: r } = e, o = w(0), [i, a] = k(dr), [s, l] = k(!1), [u, d] = k(null), c = w(!1), { requestDeviceOrientationPermission: p } = Po(), {
|
|
3599
|
+
const dr = "Keep face in camera";
|
|
3600
|
+
function jl(e) {
|
|
3601
|
+
const { difficulty: t, maxBlinks: n = 3, timeout: r } = e, [o, i] = k(dr), [a, s] = k(!1), [l, u] = k(null), d = w(!1), { requestDeviceOrientationPermission: c } = Mo(), { saveStream: p } = ve(), {
|
|
3606
3602
|
reset: f,
|
|
3607
3603
|
start: _,
|
|
3608
3604
|
stop: y,
|
|
3609
3605
|
timedOut: m
|
|
3610
3606
|
} = Lt({ timeout: r }), v = () => {
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
return;
|
|
3614
|
-
}
|
|
3615
|
-
o.current += 1;
|
|
3616
|
-
}, g = Mo({
|
|
3607
|
+
s(!0), y();
|
|
3608
|
+
}, g = Fo({
|
|
3617
3609
|
total: Math.floor(Math.random() * n + 1),
|
|
3618
3610
|
difficulty: t,
|
|
3619
|
-
onMessage: (F) =>
|
|
3611
|
+
onMessage: (F) => i(F),
|
|
3620
3612
|
onComplete: v
|
|
3621
3613
|
}), { detectFaces: b } = Mt({
|
|
3622
3614
|
onFace: (F) => {
|
|
3623
|
-
|
|
3615
|
+
d.current || (d.current = !0), g.evaluate(F);
|
|
3624
3616
|
},
|
|
3625
3617
|
onError: (F) => {
|
|
3626
|
-
|
|
3618
|
+
i(F);
|
|
3627
3619
|
}
|
|
3628
3620
|
}), C = () => {
|
|
3629
|
-
|
|
3621
|
+
i(dr), s(!1), d.current = !1, g.reset(), f();
|
|
3630
3622
|
}, E = async (F) => {
|
|
3631
3623
|
try {
|
|
3632
|
-
if (!F.current ||
|
|
3624
|
+
if (!F.current || a)
|
|
3633
3625
|
return;
|
|
3634
3626
|
const { videoWidth: A } = F.current;
|
|
3635
|
-
await b({ ref: F, frameSize: A
|
|
3627
|
+
await b({ ref: F, frameSize: A });
|
|
3636
3628
|
} catch {
|
|
3637
3629
|
}
|
|
3638
3630
|
}, P = async () => {
|
|
3639
3631
|
try {
|
|
3640
|
-
await
|
|
3632
|
+
await c();
|
|
3641
3633
|
} catch (F) {
|
|
3642
3634
|
const A = F;
|
|
3643
|
-
|
|
3635
|
+
i(A.message), u(A);
|
|
3644
3636
|
}
|
|
3645
3637
|
};
|
|
3646
3638
|
return /* @__PURE__ */ h(
|
|
3647
3639
|
Pt,
|
|
3648
3640
|
{
|
|
3649
3641
|
instruction: {
|
|
3650
|
-
title:
|
|
3642
|
+
title: o,
|
|
3651
3643
|
description: "Follow the directives as instructed"
|
|
3652
3644
|
},
|
|
3653
|
-
name: "
|
|
3645
|
+
name: "blink",
|
|
3654
3646
|
failed: m,
|
|
3655
3647
|
onReset: C,
|
|
3656
|
-
completed:
|
|
3648
|
+
completed: a,
|
|
3657
3649
|
onStart: async () => {
|
|
3658
3650
|
await P(), _();
|
|
3659
3651
|
},
|
|
3660
|
-
children:
|
|
3652
|
+
children: l ? /* @__PURE__ */ h(H, {}) : /* @__PURE__ */ h(Ft, { onStream: E, onRecord: p })
|
|
3661
3653
|
}
|
|
3662
3654
|
);
|
|
3663
3655
|
}
|
|
3664
|
-
function
|
|
3656
|
+
function Bl() {
|
|
3665
3657
|
var C;
|
|
3666
|
-
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } =
|
|
3658
|
+
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = Js(), {
|
|
3667
3659
|
user: r,
|
|
3668
3660
|
tasks: o,
|
|
3669
3661
|
currentTaskIndex: i,
|
|
@@ -3671,8 +3663,8 @@ function ql() {
|
|
|
3671
3663
|
onComplete: s,
|
|
3672
3664
|
faceDetector: l,
|
|
3673
3665
|
presentation: u
|
|
3674
|
-
} =
|
|
3675
|
-
|
|
3666
|
+
} = ve(), [d, c] = k(!1), [p, f] = k(!1), [_, y] = k(null), [m, v] = k(!1);
|
|
3667
|
+
D(() => {
|
|
3676
3668
|
const E = t();
|
|
3677
3669
|
n(E);
|
|
3678
3670
|
}, []);
|
|
@@ -3691,10 +3683,10 @@ function ql() {
|
|
|
3691
3683
|
return /* @__PURE__ */ h("div", { className: Y.root, children: /* @__PURE__ */ h("div", { className: Y.container, children: [
|
|
3692
3684
|
/* @__PURE__ */ h("div", { className: `${Y.lhs} divider`, children: [
|
|
3693
3685
|
/* @__PURE__ */ h("div", { className: Y.info, children: [
|
|
3694
|
-
/* @__PURE__ */ h(
|
|
3686
|
+
/* @__PURE__ */ h(Qs, {}),
|
|
3695
3687
|
/* @__PURE__ */ h("div", { children: /* @__PURE__ */ h("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." }) }),
|
|
3696
3688
|
/* @__PURE__ */ h("ol", { children: [
|
|
3697
|
-
o.map((E, P) => /* @__PURE__ */ h("li", { className: b(P), children:
|
|
3689
|
+
o.map((E, P) => /* @__PURE__ */ h("li", { className: b(P), children: xo[E.id].name }, `task-${P}`)),
|
|
3698
3690
|
/* @__PURE__ */ h("li", { className: a ? Y.active : "", children: "Complete! 🎉" })
|
|
3699
3691
|
] })
|
|
3700
3692
|
] }),
|
|
@@ -3702,7 +3694,7 @@ function ql() {
|
|
|
3702
3694
|
/* @__PURE__ */ h("div", { children: "Powered by Youverify" }),
|
|
3703
3695
|
/* @__PURE__ */ h("div", { onClick: () => e(), role: "button", children: [
|
|
3704
3696
|
/* @__PURE__ */ h("div", { className: "dark:yvlw-hidden", children: /* @__PURE__ */ h($o, {}) }),
|
|
3705
|
-
/* @__PURE__ */ h("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ h(
|
|
3697
|
+
/* @__PURE__ */ h("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ h(ws, {}) })
|
|
3706
3698
|
] })
|
|
3707
3699
|
] })
|
|
3708
3700
|
] }),
|
|
@@ -3721,29 +3713,29 @@ function ql() {
|
|
|
3721
3713
|
children: /* @__PURE__ */ h("div", { className: Y.completed, children: l ? /* @__PURE__ */ h(
|
|
3722
3714
|
Ge,
|
|
3723
3715
|
{
|
|
3724
|
-
Icon:
|
|
3716
|
+
Icon: $s,
|
|
3725
3717
|
title: "Liveness Check",
|
|
3726
3718
|
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.",
|
|
3727
3719
|
actionText: "Start Liveness Test",
|
|
3728
3720
|
onActionClick: () => f(!0)
|
|
3729
3721
|
}
|
|
3730
|
-
) : /* @__PURE__ */ h(
|
|
3722
|
+
) : /* @__PURE__ */ h(So, { size: "lg" }) })
|
|
3731
3723
|
}
|
|
3732
3724
|
),
|
|
3733
3725
|
o.map((E, P) => {
|
|
3734
3726
|
let F;
|
|
3735
3727
|
switch (E.id) {
|
|
3736
3728
|
case "complete-the-circle":
|
|
3737
|
-
F = /* @__PURE__ */ h(
|
|
3729
|
+
F = /* @__PURE__ */ h(Ml, { ...E });
|
|
3738
3730
|
break;
|
|
3739
3731
|
case "yes-or-no":
|
|
3740
|
-
F = /* @__PURE__ */ h(
|
|
3732
|
+
F = /* @__PURE__ */ h(Hl, { ...E });
|
|
3741
3733
|
break;
|
|
3742
3734
|
case "motions":
|
|
3743
|
-
F = /* @__PURE__ */ h(
|
|
3735
|
+
F = /* @__PURE__ */ h(Wl, { ...E });
|
|
3744
3736
|
break;
|
|
3745
3737
|
case "blink":
|
|
3746
|
-
F = /* @__PURE__ */ h(
|
|
3738
|
+
F = /* @__PURE__ */ h(jl, { ...E });
|
|
3747
3739
|
break;
|
|
3748
3740
|
default:
|
|
3749
3741
|
F = /* @__PURE__ */ h(H, {});
|
|
@@ -3780,7 +3772,7 @@ function ql() {
|
|
|
3780
3772
|
children: /* @__PURE__ */ h("div", { className: Y.completed, children: /* @__PURE__ */ h(
|
|
3781
3773
|
Ge,
|
|
3782
3774
|
{
|
|
3783
|
-
Icon:
|
|
3775
|
+
Icon: Ts,
|
|
3784
3776
|
title: m ? "All Set!" : "Completed",
|
|
3785
3777
|
description: m ? "You can now close or exit the window" : "Your Identity verification has been completed successfully. Thanks for your patience",
|
|
3786
3778
|
actionText: "Finish",
|
|
@@ -3809,7 +3801,7 @@ function ql() {
|
|
|
3809
3801
|
] }) })
|
|
3810
3802
|
] }) });
|
|
3811
3803
|
}
|
|
3812
|
-
function
|
|
3804
|
+
function zl(e) {
|
|
3813
3805
|
const {
|
|
3814
3806
|
tasks: t,
|
|
3815
3807
|
namespace: n,
|
|
@@ -3827,7 +3819,7 @@ function Kl(e) {
|
|
|
3827
3819
|
f(!1), i();
|
|
3828
3820
|
};
|
|
3829
3821
|
return /* @__PURE__ */ h(
|
|
3830
|
-
|
|
3822
|
+
Os,
|
|
3831
3823
|
{
|
|
3832
3824
|
namespace: n,
|
|
3833
3825
|
publicKey: u,
|
|
@@ -3841,27 +3833,27 @@ function Kl(e) {
|
|
|
3841
3833
|
presentation: l,
|
|
3842
3834
|
sandboxEnvironment: c,
|
|
3843
3835
|
children: /* @__PURE__ */ h(
|
|
3844
|
-
|
|
3836
|
+
fs,
|
|
3845
3837
|
{
|
|
3846
3838
|
id: n,
|
|
3847
3839
|
open: l === "page" ? !0 : p,
|
|
3848
3840
|
onClose: _,
|
|
3849
3841
|
transition: !0,
|
|
3850
|
-
className: `${
|
|
3842
|
+
className: `${gs.root} ${at.root} ${at[l]}`,
|
|
3851
3843
|
style: {
|
|
3852
|
-
"--branding-color": (o == null ? void 0 : o.color) ??
|
|
3844
|
+
"--branding-color": (o == null ? void 0 : o.color) ?? Ds
|
|
3853
3845
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3854
3846
|
},
|
|
3855
3847
|
children: [
|
|
3856
|
-
l === "modal" && /* @__PURE__ */ h("div", { onClick: _, role: "button", className: at.close, children: /* @__PURE__ */ h(
|
|
3857
|
-
/* @__PURE__ */ h(Eo, { className: `${at.container}`, children: /* @__PURE__ */ h(
|
|
3848
|
+
l === "modal" && /* @__PURE__ */ h("div", { onClick: _, role: "button", className: at.close, children: /* @__PURE__ */ h(xs, { className: "yvlw-text-white" }) }),
|
|
3849
|
+
/* @__PURE__ */ h(Eo, { className: `${at.container}`, children: /* @__PURE__ */ h(Bl, {}) })
|
|
3858
3850
|
]
|
|
3859
3851
|
}
|
|
3860
3852
|
)
|
|
3861
3853
|
}
|
|
3862
3854
|
);
|
|
3863
3855
|
}
|
|
3864
|
-
class
|
|
3856
|
+
class Yl {
|
|
3865
3857
|
constructor(t) {
|
|
3866
3858
|
this.tasks = [], this.container = null, this.namespace = "liveness-web-sdk";
|
|
3867
3859
|
const { presentation: n = "modal" } = t;
|
|
@@ -3876,9 +3868,9 @@ class Zl {
|
|
|
3876
3868
|
throw new Error("First Name is required when User object is supplied");
|
|
3877
3869
|
}
|
|
3878
3870
|
async start(t) {
|
|
3879
|
-
t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container),
|
|
3871
|
+
t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), De(
|
|
3880
3872
|
/* @__PURE__ */ h(
|
|
3881
|
-
|
|
3873
|
+
zl,
|
|
3882
3874
|
{
|
|
3883
3875
|
namespace: this.namespace,
|
|
3884
3876
|
publicKey: this.props.publicKey,
|
|
@@ -3906,5 +3898,5 @@ class Zl {
|
|
|
3906
3898
|
}
|
|
3907
3899
|
}
|
|
3908
3900
|
export {
|
|
3909
|
-
|
|
3901
|
+
Yl as default
|
|
3910
3902
|
};
|