@incodetech/welcome 1.85.0-20251212230726.0 → 1.85.0-20251215122158.0
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/incode-welcome/src/ID/IDV2/capture/CaptureOverlay.d.ts +4 -0
- package/dist/incode-welcome/src/ID/IDV2/components/EncryptionLabel.d.ts +2 -0
- package/dist/incode-welcome/src/workflows/modules/AsyncFinishScreen.d.ts +8 -0
- package/dist/incode-welcome/src/workflows/types.d.ts +1 -1
- package/dist/onBoarding.mjs +88 -32
- package/dist/onBoarding.umd.js +16 -8
- package/package.json +1 -1
package/dist/onBoarding.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`.IncodeCaptureSelfieContainer .OT_publisher{display:block}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide,swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors: active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}.list{counter-reset:countLi}.list .step{display:flex;align-items:center;font-size:14px;margin-top:12px}.list .step:first-of-type{margin-top:.25rem}.list .step-information{margin-right:8px;line-height:normal}.list img{width:35px;height:35px;margin-right:.5rem}.list .instruction-set h2{margin-top:24px!important;font-size:1rem;line-height:1.5rem;margin:0;color:#636670}.IncodeDefaultComponentContainer:has(.scroll-wrapper){position:relative;height:100%;overflow-y:auto}.finish{display:flex;height:100%;width:100%;align-items:center;justify-content:center;padding:20px;flex-direction:column}.finish-title{font-size:2rem;margin:20px 0;font-weight:700;color:#20263d;text-align:left;width:100%}.finish-subtitle{font-size:1rem;margin:20px 0;font-weight:700;color:#20263d;text-align:left;width:100%}@media only screen and (min-width: 992px){.finish-subtitle,.finish-title{text-align:center}}.IncodeDefaultComponentContainer:has(.IncodeDefaultComponentContainer.disable-full-screen){position:relative;height:100%;overflow-y:auto}html,body{height:100%}`)),document.head.appendChild(t)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`.IncodeCaptureSelfieContainer .OT_publisher{display:block}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide,swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors: active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}.list{counter-reset:countLi}.list .step{display:flex;align-items:center;font-size:14px;margin-top:12px}.list .step:first-of-type{margin-top:.25rem}.list .step-information{margin-right:8px;line-height:normal}.list img{width:35px;height:35px;margin-right:.5rem}.list .instruction-set h2{margin-top:24px!important;font-size:1rem;line-height:1.5rem;margin:0;color:#636670}.finish{display:flex;height:100%;width:100%;align-items:center;justify-content:center;padding:20px;flex-direction:column}.finish-title{font-size:2rem;margin:20px 0;font-weight:700;color:#20263d;text-align:left;width:100%}.finish-subtitle{font-size:1rem;margin:20px 0;font-weight:700;color:#20263d;text-align:left;width:100%}@media only screen and (min-width: 992px){.finish-subtitle,.finish-title{text-align:center}}.IncodeDefaultComponentContainer:has(.scroll-wrapper){position:relative;height:100%;overflow-y:auto}.IncodeDefaultComponentContainer:has(.IncodeDefaultComponentContainer.disable-full-screen){position:relative;height:100%;overflow-y:auto}html,body{height:100%}`)),document.head.appendChild(t)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
2
|
(function(ar,Kn){typeof exports=="object"&&typeof module<"u"?Kn(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],Kn):(ar=typeof globalThis<"u"?globalThis:ar||self,Kn(ar.OnBoarding={},ar.React,ar.ReactDOM))})(this,function(exports,React,ReactDOM){"use strict";var ix=Object.defineProperty;var W5=ar=>{throw TypeError(ar)};var sx=(ar,Kn,Sr)=>Kn in ar?ix(ar,Kn,{enumerable:!0,configurable:!0,writable:!0,value:Sr}):ar[Kn]=Sr;var Nn=(ar,Kn,Sr)=>sx(ar,typeof Kn!="symbol"?Kn+"":Kn,Sr),P9=(ar,Kn,Sr)=>Kn.has(ar)||W5("Cannot "+Sr);var Ht=(ar,Kn,Sr)=>(P9(ar,Kn,"read from private field"),Sr?Sr.call(ar):Kn.get(ar)),v0=(ar,Kn,Sr)=>Kn.has(ar)?W5("Cannot add the same private member more than once"):Kn instanceof WeakSet?Kn.add(ar):Kn.set(ar,Sr),C0=(ar,Kn,Sr,Ga)=>(P9(ar,Kn,"write to private field"),Ga?Ga.call(ar,Sr):Kn.set(ar,Sr),Sr),y0=(ar,Kn,Sr)=>(P9(ar,Kn,"access private method"),Sr);var Va=(ar,Kn,Sr,Ga)=>({set _(Os){C0(ar,Kn,Os,Sr)},get _(){return Ht(ar,Kn,Ga)}});var Kn,Sr,Ga,Os,u2,Ku,Da,Ns,Yd,L9,Jl,bo,p2,ji,f2,ec,tc,qu,$5,Pa,K5,q5,Zd,Y5,_9,nc,h2,m2,Io,Z5,J5,eh,Yu,R1,rc,ba,T1,Jd,la,So,ac,ua,Zu,th,B1,ri,na,ma,O1,Ps,N1,Fi,wo,D1,g2,ss,Qi,A2,ic,sc,P1,oc,os,Ro,L1,To,ls,ed,Bo,lc,Oo,x2,uc,dc,da,vr,Ls,E2,pc,fc,No,cs,_s,hc,Ei,kn,e3,M9,nh,rh,t3,ah,ih,sh,j9,oh,F9,Q9,lh,Ha,l2,ch,uh,U9,dh,Lu,V9,pa,us,Ui,M1,ds,ai,j1,ps,za,Ms,C2,fs,Do,Vi,_u,n3,y2,Hi,Ur,F1,k2,ga,v2,Po,mc,b2,Lo,gc,I2,js,hs,Q1,U1,Ci,Ac,td,ir,H9,xc,G9,z9,ph,fh,W9,X9,$9,hh,K9,mh,gh,Ah,q9,Mu,S2,w2,fa,nd,xh,Ec,V1,Cc,R2,T2,ms,Fs,Ia,rd,B2,In,Na,Wl,Xl,r3,$l,Eh,Y9,Kl,ju,Fu,Z9,Qu,_o,J9,ep,yc,kc,H1,yi,Ch,yh,kh,a3,O2,vc,bc,Ic,Sc,G1,Mo,br,z1,W1,wc,tp,Lp,jo,Wa,Rc,Tc,N2,Qs,Bc,Oc,D2,X1,$1,Fo,K1,Nc,q1,P2,Dc,Pc,Xr,L2,_2,Lc,Qo,Y1,Us,bh,Ih,np,ii,i3,rp,Sh,wh,sd,Uo,Vs,ki,ql,s3,Hs,ld,cd,M2,j2,Z1,o3,J1,l3,Gs,gs,el,tl,As,F2,Uu,Gi,_c,ap,Vo,Ho,Q2,V2,nl,rl,Mc,sp,si,b1,Rh,Th,al,ud,dd,il,H2,$r,zs,sl,jc,Fc,ol,Ws,zi,Xs,Qc,$s,Uc,G2,z2,wr,c3,lp,Bh,Oh,Nh,Dh,u3,d3,cp,Vc,Hc,Gc,zc,Wc,Xc,$c,up,Kc,W2,X2,qc,$2,Ph,dp,_p,Wi,oi,Yc,K2,li,Jr,Lh,_h,Mh,p3,Ks,f3,h3,jh,pp,Fh,ci,Xi,ll,cl,xs,lr,q2,Y2,Zc,Jc,ul,dl,Go,eu,pd,fd,ra,Vu,Qh,Uh,Vh,Hh,Gh,zh,pl,Z2,Ys,tu,ui,nu,Yr,Xa,Hu,Gu,Wh,ru,zo,$i,_a,Xh,m3,$h,Kh,hp,au,fl,Ki,J2,hl,aa,iu,ml,su,ou,Wo,qi,gl,lu,Rr,mp,gp,Ap,I1,qh,c2,Al,cu,Zs,e1,xl,vi,uu,du,t1,Yi,Sa,Ka,El,Js,ia,Cl,bi,pu,Jn,xp,g3,Yh,Zh,Jh,Ep,S1,Ii,Yl,e4,A3,zu,t4,n4,r4,a4,i4,n1,r1,Es,eo,Si,a1,i1,s1,to,yl,o1,l1,Xo,En,s4,o4,l4,c4,Cp,u4,yp,d4,p4,f4,h4,m4,w1,kp,vp,bp,x3,E3,Zl,Ip,C3,no,g4,Sp,A4,x4,wp,y3,Wu,Hr,Aa,$o,ro,Ko,kl,Cs,ao,ys,di,vl,pr,Xu,$u,k3,Rp,E4,b3,Tp,I3,C4,y4,c1,bl,ks,qo,io,pi,Yo,Il,Sl,wa,so,Mn,Zo,xa,k4,Bp,Op,Np,S3,vs,hu,ea,oo,mu,Dp,u1,Pp,b4;function _interopNamespaceDefault(Be){const Le=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(Be){for(const Ye in Be)if(Ye!=="default"){const tt=Object.getOwnPropertyDescriptor(Be,Ye);Object.defineProperty(Le,Ye,tt.get?tt:{enumerable:!0,get:()=>Be[Ye]})}}return Le.default=Be,Object.freeze(Le)}function _mergeNamespaces(Be,Le){for(var Ye=0;Ye<Le.length;Ye++){const tt=Le[Ye];if(typeof tt!="string"&&!Array.isArray(tt)){for(const nt in tt)if(nt!=="default"&&!(nt in Be)){const ft=Object.getOwnPropertyDescriptor(tt,nt);ft&&Object.defineProperty(Be,nt,ft.get?ft:{enumerable:!0,get:()=>tt[nt]})}}}return Object.freeze(Object.defineProperty(Be,Symbol.toStringTag,{value:"Module"}))}const React__namespace=_interopNamespaceDefault(React),ReactDOM__namespace=_interopNamespaceDefault(ReactDOM);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(Be){return Be&&Be.__esModule&&Object.prototype.hasOwnProperty.call(Be,"default")?Be.default:Be}function getAugmentedNamespace(Be){if(Be.__esModule)return Be;var Le=Be.default;if(typeof Le=="function"){var Ye=function tt(){return this instanceof tt?Reflect.construct(Le,arguments,this.constructor):Le.apply(this,arguments)};Ye.prototype=Le.prototype}else Ye={};return Object.defineProperty(Ye,"__esModule",{value:!0}),Object.keys(Be).forEach(function(tt){var nt=Object.getOwnPropertyDescriptor(Be,tt);Object.defineProperty(Ye,tt,nt.get?nt:{enumerable:!0,get:function(){return Be[tt]}})}),Ye}var dayjs_min={exports:{}};(function(Be,Le){(function(Ye,tt){Be.exports=tt()})(commonjsGlobal,function(){var Ye=1e3,tt=6e4,nt=36e5,ft="millisecond",ht="second",gt="minute",At="hour",xt="day",Et="week",yt="month",Ct="quarter",kt="year",vt="date",bt="Invalid Date",It=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,wt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Rt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_t){var Xt=["th","st","nd","rd"],Qt=_t%100;return"["+_t+(Xt[(Qt-20)%10]||Xt[Qt]||Xt[0])+"]"}},Tt=function(_t,Xt,Qt){var jt=String(_t);return!jt||jt.length>=Xt?_t:""+Array(Xt+1-jt.length).join(Qt)+_t},Bt={s:Tt,z:function(_t){var Xt=-_t.utcOffset(),Qt=Math.abs(Xt),jt=Math.floor(Qt/60),Gt=Qt%60;return(Xt<=0?"+":"-")+Tt(jt,2,"0")+":"+Tt(Gt,2,"0")},m:function _t(Xt,Qt){if(Xt.date()<Qt.date())return-_t(Qt,Xt);var jt=12*(Qt.year()-Xt.year())+(Qt.month()-Xt.month()),Gt=Xt.clone().add(jt,yt),qt=Qt-Gt<0,zt=Xt.clone().add(jt+(qt?-1:1),yt);return+(-(jt+(Qt-Gt)/(qt?Gt-zt:zt-Gt))||0)},a:function(_t){return _t<0?Math.ceil(_t)||0:Math.floor(_t)},p:function(_t){return{M:yt,y:kt,w:Et,d:xt,D:vt,h:At,m:gt,s:ht,ms:ft,Q:Ct}[_t]||String(_t||"").toLowerCase().replace(/s$/,"")},u:function(_t){return _t===void 0}},Dt="en",Pt={};Pt[Dt]=Rt;var Nt="$isDayjsObject",Lt=function(_t){return _t instanceof Vt||!(!_t||!_t[Nt])},Wt=function _t(Xt,Qt,jt){var Gt;if(!Xt)return Dt;if(typeof Xt=="string"){var qt=Xt.toLowerCase();Pt[qt]&&(Gt=qt),Qt&&(Pt[qt]=Qt,Gt=qt);var zt=Xt.split("-");if(!Gt&&zt.length>1)return _t(zt[0])}else{var e0=Xt.name;Pt[e0]=Xt,Gt=e0}return!jt&&Gt&&(Dt=Gt),Gt||!jt&&Dt},$t=function(_t,Xt){if(Lt(_t))return _t.clone();var Qt=typeof Xt=="object"?Xt:{};return Qt.date=_t,Qt.args=arguments,new Vt(Qt)},Kt=Bt;Kt.l=Wt,Kt.i=Lt,Kt.w=function(_t,Xt){return $t(_t,{locale:Xt.$L,utc:Xt.$u,x:Xt.$x,$offset:Xt.$offset})};var Vt=function(){function _t(Qt){this.$L=Wt(Qt.locale,null,!0),this.parse(Qt),this.$x=this.$x||Qt.x||{},this[Nt]=!0}var Xt=_t.prototype;return Xt.parse=function(Qt){this.$d=function(jt){var Gt=jt.date,qt=jt.utc;if(Gt===null)return new Date(NaN);if(Kt.u(Gt))return new Date;if(Gt instanceof Date)return new Date(Gt);if(typeof Gt=="string"&&!/Z$/i.test(Gt)){var zt=Gt.match(It);if(zt){var e0=zt[2]-1||0,s0=(zt[7]||"0").substring(0,3);return qt?new Date(Date.UTC(zt[1],e0,zt[3]||1,zt[4]||0,zt[5]||0,zt[6]||0,s0)):new Date(zt[1],e0,zt[3]||1,zt[4]||0,zt[5]||0,zt[6]||0,s0)}}return new Date(Gt)}(Qt),this.init()},Xt.init=function(){var Qt=this.$d;this.$y=Qt.getFullYear(),this.$M=Qt.getMonth(),this.$D=Qt.getDate(),this.$W=Qt.getDay(),this.$H=Qt.getHours(),this.$m=Qt.getMinutes(),this.$s=Qt.getSeconds(),this.$ms=Qt.getMilliseconds()},Xt.$utils=function(){return Kt},Xt.isValid=function(){return this.$d.toString()!==bt},Xt.isSame=function(Qt,jt){var Gt=$t(Qt);return this.startOf(jt)<=Gt&&Gt<=this.endOf(jt)},Xt.isAfter=function(Qt,jt){return $t(Qt)<this.startOf(jt)},Xt.isBefore=function(Qt,jt){return this.endOf(jt)<$t(Qt)},Xt.$g=function(Qt,jt,Gt){return Kt.u(Qt)?this[jt]:this.set(Gt,Qt)},Xt.unix=function(){return Math.floor(this.valueOf()/1e3)},Xt.valueOf=function(){return this.$d.getTime()},Xt.startOf=function(Qt,jt){var Gt=this,qt=!!Kt.u(jt)||jt,zt=Kt.p(Qt),e0=function(o0,r0){var Yt=Kt.w(Gt.$u?Date.UTC(Gt.$y,r0,o0):new Date(Gt.$y,r0,o0),Gt);return qt?Yt:Yt.endOf(xt)},s0=function(o0,r0){return Kt.w(Gt.toDate()[o0].apply(Gt.toDate("s"),(qt?[0,0,0,0]:[23,59,59,999]).slice(r0)),Gt)},t0=this.$W,l0=this.$M,d0=this.$D,n0="set"+(this.$u?"UTC":"");switch(zt){case kt:return qt?e0(1,0):e0(31,11);case yt:return qt?e0(1,l0):e0(0,l0+1);case Et:var g0=this.$locale().weekStart||0,A0=(t0<g0?t0+7:t0)-g0;return e0(qt?d0-A0:d0+(6-A0),l0);case xt:case vt:return s0(n0+"Hours",0);case At:return s0(n0+"Minutes",1);case gt:return s0(n0+"Seconds",2);case ht:return s0(n0+"Milliseconds",3);default:return this.clone()}},Xt.endOf=function(Qt){return this.startOf(Qt,!1)},Xt.$set=function(Qt,jt){var Gt,qt=Kt.p(Qt),zt="set"+(this.$u?"UTC":""),e0=(Gt={},Gt[xt]=zt+"Date",Gt[vt]=zt+"Date",Gt[yt]=zt+"Month",Gt[kt]=zt+"FullYear",Gt[At]=zt+"Hours",Gt[gt]=zt+"Minutes",Gt[ht]=zt+"Seconds",Gt[ft]=zt+"Milliseconds",Gt)[qt],s0=qt===xt?this.$D+(jt-this.$W):jt;if(qt===yt||qt===kt){var t0=this.clone().set(vt,1);t0.$d[e0](s0),t0.init(),this.$d=t0.set(vt,Math.min(this.$D,t0.daysInMonth())).$d}else e0&&this.$d[e0](s0);return this.init(),this},Xt.set=function(Qt,jt){return this.clone().$set(Qt,jt)},Xt.get=function(Qt){return this[Kt.p(Qt)]()},Xt.add=function(Qt,jt){var Gt,qt=this;Qt=Number(Qt);var zt=Kt.p(jt),e0=function(l0){var d0=$t(qt);return Kt.w(d0.date(d0.date()+Math.round(l0*Qt)),qt)};if(zt===yt)return this.set(yt,this.$M+Qt);if(zt===kt)return this.set(kt,this.$y+Qt);if(zt===xt)return e0(1);if(zt===Et)return e0(7);var s0=(Gt={},Gt[gt]=tt,Gt[At]=nt,Gt[ht]=Ye,Gt)[zt]||1,t0=this.$d.getTime()+Qt*s0;return Kt.w(t0,this)},Xt.subtract=function(Qt,jt){return this.add(-1*Qt,jt)},Xt.format=function(Qt){var jt=this,Gt=this.$locale();if(!this.isValid())return Gt.invalidDate||bt;var qt=Qt||"YYYY-MM-DDTHH:mm:ssZ",zt=Kt.z(this),e0=this.$H,s0=this.$m,t0=this.$M,l0=Gt.weekdays,d0=Gt.months,n0=Gt.meridiem,g0=function(r0,Yt,Mt,Jt){return r0&&(r0[Yt]||r0(jt,qt))||Mt[Yt].slice(0,Jt)},A0=function(r0){return Kt.s(e0%12||12,r0,"0")},o0=n0||function(r0,Yt,Mt){var Jt=r0<12?"AM":"PM";return Mt?Jt.toLowerCase():Jt};return qt.replace(wt,function(r0,Yt){return Yt||function(Mt){switch(Mt){case"YY":return String(jt.$y).slice(-2);case"YYYY":return Kt.s(jt.$y,4,"0");case"M":return t0+1;case"MM":return Kt.s(t0+1,2,"0");case"MMM":return g0(Gt.monthsShort,t0,d0,3);case"MMMM":return g0(d0,t0);case"D":return jt.$D;case"DD":return Kt.s(jt.$D,2,"0");case"d":return String(jt.$W);case"dd":return g0(Gt.weekdaysMin,jt.$W,l0,2);case"ddd":return g0(Gt.weekdaysShort,jt.$W,l0,3);case"dddd":return l0[jt.$W];case"H":return String(e0);case"HH":return Kt.s(e0,2,"0");case"h":return A0(1);case"hh":return A0(2);case"a":return o0(e0,s0,!0);case"A":return o0(e0,s0,!1);case"m":return String(s0);case"mm":return Kt.s(s0,2,"0");case"s":return String(jt.$s);case"ss":return Kt.s(jt.$s,2,"0");case"SSS":return Kt.s(jt.$ms,3,"0");case"Z":return zt}return null}(r0)||zt.replace(":","")})},Xt.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Xt.diff=function(Qt,jt,Gt){var qt,zt=this,e0=Kt.p(jt),s0=$t(Qt),t0=(s0.utcOffset()-this.utcOffset())*tt,l0=this-s0,d0=function(){return Kt.m(zt,s0)};switch(e0){case kt:qt=d0()/12;break;case yt:qt=d0();break;case Ct:qt=d0()/3;break;case Et:qt=(l0-t0)/6048e5;break;case xt:qt=(l0-t0)/864e5;break;case At:qt=l0/nt;break;case gt:qt=l0/tt;break;case ht:qt=l0/Ye;break;default:qt=l0}return Gt?qt:Kt.a(qt)},Xt.daysInMonth=function(){return this.endOf(yt).$D},Xt.$locale=function(){return Pt[this.$L]},Xt.locale=function(Qt,jt){if(!Qt)return this.$L;var Gt=this.clone(),qt=Wt(Qt,jt,!0);return qt&&(Gt.$L=qt),Gt},Xt.clone=function(){return Kt.w(this.$d,this)},Xt.toDate=function(){return new Date(this.valueOf())},Xt.toJSON=function(){return this.isValid()?this.toISOString():null},Xt.toISOString=function(){return this.$d.toISOString()},Xt.toString=function(){return this.$d.toUTCString()},_t}(),Ut=Vt.prototype;return $t.prototype=Ut,[["$ms",ft],["$s",ht],["$m",gt],["$H",At],["$W",xt],["$M",yt],["$y",kt],["$D",vt]].forEach(function(_t){Ut[_t[1]]=function(Xt){return this.$g(Xt,_t[0],_t[1])}}),$t.extend=function(_t,Xt){return _t.$i||(_t(Xt,Vt,$t),_t.$i=!0),$t},$t.locale=Wt,$t.isDayjs=Lt,$t.unix=function(_t){return $t(1e3*_t)},$t.en=Pt[Dt],$t.Ls=Pt,$t.p={},$t})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);var utc$1={exports:{}};(function(Be,Le){(function(Ye,tt){Be.exports=tt()})(commonjsGlobal,function(){var Ye="minute",tt=/[+-]\d\d(?::?\d\d)?/g,nt=/([+-]|\d\d)/g;return function(ft,ht,gt){var At=ht.prototype;gt.utc=function(bt){var It={date:bt,utc:!0,args:arguments};return new ht(It)},At.utc=function(bt){var It=gt(this.toDate(),{locale:this.$L,utc:!0});return bt?It.add(this.utcOffset(),Ye):It},At.local=function(){return gt(this.toDate(),{locale:this.$L,utc:!1})};var xt=At.parse;At.parse=function(bt){bt.utc&&(this.$u=!0),this.$utils().u(bt.$offset)||(this.$offset=bt.$offset),xt.call(this,bt)};var Et=At.init;At.init=function(){if(this.$u){var bt=this.$d;this.$y=bt.getUTCFullYear(),this.$M=bt.getUTCMonth(),this.$D=bt.getUTCDate(),this.$W=bt.getUTCDay(),this.$H=bt.getUTCHours(),this.$m=bt.getUTCMinutes(),this.$s=bt.getUTCSeconds(),this.$ms=bt.getUTCMilliseconds()}else Et.call(this)};var yt=At.utcOffset;At.utcOffset=function(bt,It){var wt=this.$utils().u;if(wt(bt))return this.$u?0:wt(this.$offset)?yt.call(this):this.$offset;if(typeof bt=="string"&&(bt=function(Dt){Dt===void 0&&(Dt="");var Pt=Dt.match(tt);if(!Pt)return null;var Nt=(""+Pt[0]).match(nt)||["-",0,0],Lt=Nt[0],Wt=60*+Nt[1]+ +Nt[2];return Wt===0?0:Lt==="+"?Wt:-Wt}(bt),bt===null))return this;var Rt=Math.abs(bt)<=16?60*bt:bt;if(Rt===0)return this.utc(It);var Tt=this.clone();if(It)return Tt.$offset=Rt,Tt.$u=!1,Tt;var Bt=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(Tt=this.local().add(Rt+Bt,Ye)).$offset=Rt,Tt.$x.$localOffset=Bt,Tt};var Ct=At.format;At.format=function(bt){var It=bt||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return Ct.call(this,It)},At.valueOf=function(){var bt=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*bt},At.isUTC=function(){return!!this.$u},At.toISOString=function(){return this.toDate().toISOString()},At.toString=function(){return this.toDate().toUTCString()};var kt=At.toDate;At.toDate=function(bt){return bt==="s"&&this.$offset?gt(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():kt.call(this)};var vt=At.diff;At.diff=function(bt,It,wt){if(bt&&this.$u===bt.$u)return vt.call(this,bt,It,wt);var Rt=this.local(),Tt=gt(bt).local();return vt.call(Rt,Tt,It,wt)}}})})(utc$1);var utcExports=utc$1.exports;const utc=getDefaultExportFromCjs(utcExports);var uaParser={exports:{}};(function(Be,Le){(function(Ye,tt){var nt="1.0.41",ft="",ht="?",gt="function",At="undefined",xt="object",Et="string",yt="major",Ct="model",kt="name",vt="type",bt="vendor",It="version",wt="architecture",Rt="console",Tt="mobile",Bt="tablet",Dt="smarttv",Pt="wearable",Nt="embedded",Lt=500,Wt="Amazon",$t="Apple",Kt="ASUS",Vt="BlackBerry",Ut="Browser",_t="Chrome",Xt="Edge",Qt="Firefox",jt="Google",Gt="Honor",qt="Huawei",zt="Lenovo",e0="LG",s0="Microsoft",t0="Motorola",l0="Nvidia",d0="OnePlus",n0="Opera",g0="OPPO",A0="Samsung",o0="Sharp",r0="Sony",Yt="Xiaomi",Mt="Zebra",Jt="Facebook",a0="Chromium OS",i0="Mac OS",f0=" Browser",u0=function(en,w0){var k0={};for(var S0 in en)w0[S0]&&w0[S0].length%2===0?k0[S0]=w0[S0].concat(en[S0]):k0[S0]=en[S0];return k0},x0=function(en){for(var w0={},k0=0;k0<en.length;k0++)w0[en[k0].toUpperCase()]=en[k0];return w0},p0=function(en,w0){return typeof en===Et?D0(w0).indexOf(D0(en))!==-1:!1},D0=function(en){return en.toLowerCase()},P0=function(en){return typeof en===Et?en.replace(/[^\d\.]/g,ft).split(".")[0]:tt},z0=function(en,w0){if(typeof en===Et)return en=en.replace(/^\s\s*/,ft),typeof w0===At?en:en.substring(0,Lt)},J0=function(en,w0){for(var k0=0,S0,H0,_0,G0,K0,un;k0<w0.length&&!K0;){var tn=w0[k0],cn=w0[k0+1];for(S0=H0=0;S0<tn.length&&!K0&&tn[S0];)if(K0=tn[S0++].exec(en),K0)for(_0=0;_0<cn.length;_0++)un=K0[++H0],G0=cn[_0],typeof G0===xt&&G0.length>0?G0.length===2?typeof G0[1]==gt?this[G0[0]]=G0[1].call(this,un):this[G0[0]]=G0[1]:G0.length===3?typeof G0[1]===gt&&!(G0[1].exec&&G0[1].test)?this[G0[0]]=un?G0[1].call(this,un,G0[2]):tt:this[G0[0]]=un?un.replace(G0[1],G0[2]):tt:G0.length===4&&(this[G0[0]]=un?G0[3].call(this,un.replace(G0[1],G0[2])):tt):this[G0]=un||tt;k0+=2}},Y0=function(en,w0){for(var k0 in w0)if(typeof w0[k0]===xt&&w0[k0].length>0){for(var S0=0;S0<w0[k0].length;S0++)if(p0(w0[k0][S0],en))return k0===ht?tt:k0}else if(p0(w0[k0],en))return k0===ht?tt:k0;return w0.hasOwnProperty("*")?w0["*"]:en},X0={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},T0={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},L0={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[It,[kt,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[It,[kt,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[kt,It],[/opios[\/ ]+([\w\.]+)/i],[It,[kt,n0+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[It,[kt,n0+" GX"]],[/\bopr\/([\w\.]+)/i],[It,[kt,n0]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[It,[kt,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[It,[kt,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[kt,It],[/quark(?:pc)?\/([-\w\.]+)/i],[It,[kt,"Quark"]],[/\bddg\/([\w\.]+)/i],[It,[kt,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[It,[kt,"UC"+Ut]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[It,[kt,"WeChat"]],[/konqueror\/([\w\.]+)/i],[It,[kt,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[It,[kt,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[It,[kt,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[It,[kt,"Smart Lenovo "+Ut]],[/(avast|avg)\/([\w\.]+)/i],[[kt,/(.+)/,"$1 Secure "+Ut],It],[/\bfocus\/([\w\.]+)/i],[It,[kt,Qt+" Focus"]],[/\bopt\/([\w\.]+)/i],[It,[kt,n0+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[It,[kt,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[It,[kt,"Dolphin"]],[/coast\/([\w\.]+)/i],[It,[kt,n0+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[It,[kt,"MIUI"+f0]],[/fxios\/([\w\.-]+)/i],[It,[kt,Qt]],[/\bqihoobrowser\/?([\w\.]*)/i],[It,[kt,"360"]],[/\b(qq)\/([\w\.]+)/i],[[kt,/(.+)/,"$1Browser"],It],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[kt,/(.+)/,"$1"+f0],It],[/samsungbrowser\/([\w\.]+)/i],[It,[kt,A0+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[It,[kt,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[kt,"Sogou Mobile"],It],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[kt,It],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[kt],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[It,kt],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[kt,Jt],It],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[kt,It],[/\bgsa\/([\w\.]+) .*safari\//i],[It,[kt,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[It,[kt,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[It,[kt,_t+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[kt,_t+" WebView"],It],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[It,[kt,"Android "+Ut]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[kt,It],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[It,[kt,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[It,kt],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[kt,[It,Y0,X0]],[/(webkit|khtml)\/([\w\.]+)/i],[kt,It],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[kt,"Netscape"],It],[/(wolvic|librewolf)\/([\w\.]+)/i],[kt,It],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[It,[kt,Qt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[kt,[It,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[kt,[It,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[wt,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[wt,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[wt,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[wt,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[wt,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[wt,/ower/,ft,D0]],[/ sun4\w[;\)]/i],[[wt,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[wt,D0]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[Ct,[bt,A0],[vt,Bt]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[Ct,[bt,A0],[vt,Tt]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[Ct,[bt,$t],[vt,Tt]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[Ct,[bt,$t],[vt,Bt]],[/(macintosh);/i],[Ct,[bt,$t]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[Ct,[bt,o0],[vt,Tt]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[Ct,[bt,Gt],[vt,Bt]],[/honor([-\w ]+)[;\)]/i],[Ct,[bt,Gt],[vt,Tt]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[Ct,[bt,qt],[vt,Bt]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[Ct,[bt,qt],[vt,Tt]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[Ct,/_/g," "],[bt,Yt],[vt,Bt]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[Ct,/_/g," "],[bt,Yt],[vt,Tt]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[Ct,[bt,g0],[vt,Tt]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[Ct,[bt,Y0,{OnePlus:["304","403","203"],"*":g0}],[vt,Bt]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[Ct,[bt,"Vivo"],[vt,Tt]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[Ct,[bt,"Realme"],[vt,Tt]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[Ct,[bt,t0],[vt,Tt]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[Ct,[bt,t0],[vt,Bt]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[Ct,[bt,e0],[vt,Bt]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[Ct,[bt,e0],[vt,Tt]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[Ct,[bt,zt],[vt,Bt]],[/(nokia) (t[12][01])/i],[bt,Ct,[vt,Bt]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[Ct,/_/g," "],[vt,Tt],[bt,"Nokia"]],[/(pixel (c|tablet))\b/i],[Ct,[bt,jt],[vt,Bt]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[Ct,[bt,jt],[vt,Tt]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[Ct,[bt,r0],[vt,Tt]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[Ct,"Xperia Tablet"],[bt,r0],[vt,Bt]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[Ct,[bt,d0],[vt,Tt]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[Ct,[bt,Wt],[vt,Bt]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[Ct,/(.+)/g,"Fire Phone $1"],[bt,Wt],[vt,Tt]],[/(playbook);[-\w\),; ]+(rim)/i],[Ct,bt,[vt,Bt]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[Ct,[bt,Vt],[vt,Tt]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[Ct,[bt,Kt],[vt,Bt]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[Ct,[bt,Kt],[vt,Tt]],[/(nexus 9)/i],[Ct,[bt,"HTC"],[vt,Bt]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[bt,[Ct,/_/g," "],[vt,Tt]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[Ct,[bt,"TCL"],[vt,Bt]],[/(itel) ((\w+))/i],[[bt,D0],Ct,[vt,Y0,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[Ct,[bt,"Acer"],[vt,Bt]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[Ct,[bt,"Meizu"],[vt,Tt]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[Ct,[bt,"Ulefone"],[vt,Tt]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[Ct,[bt,"Energizer"],[vt,Tt]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[Ct,[bt,"Cat"],[vt,Tt]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[Ct,[bt,"Smartfren"],[vt,Tt]],[/droid.+; (a(?:015|06[35]|142p?))/i],[Ct,[bt,"Nothing"],[vt,Tt]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[Ct,[bt,"Archos"],[vt,Bt]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[Ct,[bt,"Archos"],[vt,Tt]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[bt,Ct,[vt,Bt]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[bt,Ct,[vt,Tt]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[bt,Ct,[vt,Bt]],[/(surface duo)/i],[Ct,[bt,s0],[vt,Bt]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[Ct,[bt,"Fairphone"],[vt,Tt]],[/(u304aa)/i],[Ct,[bt,"AT&T"],[vt,Tt]],[/\bsie-(\w*)/i],[Ct,[bt,"Siemens"],[vt,Tt]],[/\b(rct\w+) b/i],[Ct,[bt,"RCA"],[vt,Bt]],[/\b(venue[\d ]{2,7}) b/i],[Ct,[bt,"Dell"],[vt,Bt]],[/\b(q(?:mv|ta)\w+) b/i],[Ct,[bt,"Verizon"],[vt,Bt]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[Ct,[bt,"Barnes & Noble"],[vt,Bt]],[/\b(tm\d{3}\w+) b/i],[Ct,[bt,"NuVision"],[vt,Bt]],[/\b(k88) b/i],[Ct,[bt,"ZTE"],[vt,Bt]],[/\b(nx\d{3}j) b/i],[Ct,[bt,"ZTE"],[vt,Tt]],[/\b(gen\d{3}) b.+49h/i],[Ct,[bt,"Swiss"],[vt,Tt]],[/\b(zur\d{3}) b/i],[Ct,[bt,"Swiss"],[vt,Bt]],[/\b((zeki)?tb.*\b) b/i],[Ct,[bt,"Zeki"],[vt,Bt]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[bt,"Dragon Touch"],Ct,[vt,Bt]],[/\b(ns-?\w{0,9}) b/i],[Ct,[bt,"Insignia"],[vt,Bt]],[/\b((nxa|next)-?\w{0,9}) b/i],[Ct,[bt,"NextBook"],[vt,Bt]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[bt,"Voice"],Ct,[vt,Tt]],[/\b(lvtel\-)?(v1[12]) b/i],[[bt,"LvTel"],Ct,[vt,Tt]],[/\b(ph-1) /i],[Ct,[bt,"Essential"],[vt,Tt]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[Ct,[bt,"Envizen"],[vt,Bt]],[/\b(trio[-\w\. ]+) b/i],[Ct,[bt,"MachSpeed"],[vt,Bt]],[/\btu_(1491) b/i],[Ct,[bt,"Rotor"],[vt,Bt]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[Ct,[bt,l0],[vt,Bt]],[/(sprint) (\w+)/i],[bt,Ct,[vt,Tt]],[/(kin\.[onetw]{3})/i],[[Ct,/\./g," "],[bt,s0],[vt,Tt]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[Ct,[bt,Mt],[vt,Bt]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[Ct,[bt,Mt],[vt,Tt]],[/smart-tv.+(samsung)/i],[bt,[vt,Dt]],[/hbbtv.+maple;(\d+)/i],[[Ct,/^/,"SmartTV"],[bt,A0],[vt,Dt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[bt,e0],[vt,Dt]],[/(apple) ?tv/i],[bt,[Ct,$t+" TV"],[vt,Dt]],[/crkey/i],[[Ct,_t+"cast"],[bt,jt],[vt,Dt]],[/droid.+aft(\w+)( bui|\))/i],[Ct,[bt,Wt],[vt,Dt]],[/(shield \w+ tv)/i],[Ct,[bt,l0],[vt,Dt]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[Ct,[bt,o0],[vt,Dt]],[/(bravia[\w ]+)( bui|\))/i],[Ct,[bt,r0],[vt,Dt]],[/(mi(tv|box)-?\w+) bui/i],[Ct,[bt,Yt],[vt,Dt]],[/Hbbtv.*(technisat) (.*);/i],[bt,Ct,[vt,Dt]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[bt,z0],[Ct,z0],[vt,Dt]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[Ct,[vt,Dt]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[vt,Dt]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[bt,Ct,[vt,Rt]],[/droid.+; (shield)( bui|\))/i],[Ct,[bt,l0],[vt,Rt]],[/(playstation \w+)/i],[Ct,[bt,r0],[vt,Rt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[Ct,[bt,s0],[vt,Rt]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[Ct,[bt,A0],[vt,Pt]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[bt,Ct,[vt,Pt]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[Ct,[bt,g0],[vt,Pt]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[Ct,[bt,$t],[vt,Pt]],[/(opwwe\d{3})/i],[Ct,[bt,d0],[vt,Pt]],[/(moto 360)/i],[Ct,[bt,t0],[vt,Pt]],[/(smartwatch 3)/i],[Ct,[bt,r0],[vt,Pt]],[/(g watch r)/i],[Ct,[bt,e0],[vt,Pt]],[/droid.+; (wt63?0{2,3})\)/i],[Ct,[bt,Mt],[vt,Pt]],[/droid.+; (glass) \d/i],[Ct,[bt,jt],[vt,Pt]],[/(pico) (4|neo3(?: link|pro)?)/i],[bt,Ct,[vt,Pt]],[/; (quest( \d| pro)?)/i],[Ct,[bt,Jt],[vt,Pt]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[bt,[vt,Nt]],[/(aeobc)\b/i],[Ct,[bt,Wt],[vt,Nt]],[/(homepod).+mac os/i],[Ct,[bt,$t],[vt,Nt]],[/windows iot/i],[[vt,Nt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[Ct,[vt,Tt]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[Ct,[vt,Bt]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[vt,Bt]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[vt,Tt]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[Ct,[bt,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[It,[kt,Xt+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[kt,It],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[It,[kt,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[kt,It],[/ladybird\//i],[[kt,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[It,kt]],os:[[/microsoft (windows) (vista|xp)/i],[kt,It],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[kt,[It,Y0,T0]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[It,Y0,T0],[kt,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[It,/_/g,"."],[kt,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[kt,i0],[It,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[It,kt],[/(ubuntu) ([\w\.]+) like android/i],[[kt,/(.+)/,"$1 Touch"],It],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[kt,It],[/\(bb(10);/i],[It,[kt,Vt]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[It,[kt,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[It,[kt,Qt+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[It,[kt,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[It,[kt,"watchOS"]],[/crkey\/([\d\.]+)/i],[It,[kt,_t+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[kt,a0],It],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[kt,It],[/(sunos) ?([\w\.\d]*)/i],[[kt,"Solaris"],It],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[kt,It]]},j0=function(en,w0){if(typeof en===xt&&(w0=en,en=tt),!(this instanceof j0))return new j0(en,w0).getResult();var k0=typeof Ye!==At&&Ye.navigator?Ye.navigator:tt,S0=en||(k0&&k0.userAgent?k0.userAgent:ft),H0=k0&&k0.userAgentData?k0.userAgentData:tt,_0=w0?u0(L0,w0):L0,G0=k0&&k0.userAgent==S0;return this.getBrowser=function(){var K0={};return K0[kt]=tt,K0[It]=tt,J0.call(K0,S0,_0.browser),K0[yt]=P0(K0[It]),G0&&k0&&k0.brave&&typeof k0.brave.isBrave==gt&&(K0[kt]="Brave"),K0},this.getCPU=function(){var K0={};return K0[wt]=tt,J0.call(K0,S0,_0.cpu),K0},this.getDevice=function(){var K0={};return K0[bt]=tt,K0[Ct]=tt,K0[vt]=tt,J0.call(K0,S0,_0.device),G0&&!K0[vt]&&H0&&H0.mobile&&(K0[vt]=Tt),G0&&K0[Ct]=="Macintosh"&&k0&&typeof k0.standalone!==At&&k0.maxTouchPoints&&k0.maxTouchPoints>2&&(K0[Ct]="iPad",K0[vt]=Bt),K0},this.getEngine=function(){var K0={};return K0[kt]=tt,K0[It]=tt,J0.call(K0,S0,_0.engine),K0},this.getOS=function(){var K0={};return K0[kt]=tt,K0[It]=tt,J0.call(K0,S0,_0.os),G0&&!K0[kt]&&H0&&H0.platform&&H0.platform!="Unknown"&&(K0[kt]=H0.platform.replace(/chrome os/i,a0).replace(/macos/i,i0)),K0},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return S0},this.setUA=function(K0){return S0=typeof K0===Et&&K0.length>Lt?z0(K0,Lt):K0,this},this.setUA(S0),this};j0.VERSION=nt,j0.BROWSER=x0([kt,It,yt]),j0.CPU=x0([wt]),j0.DEVICE=x0([Ct,bt,vt,Rt,Tt,Dt,Bt,Pt,Nt]),j0.ENGINE=j0.OS=x0([kt,It]),Be.exports&&(Le=Be.exports=j0),Le.UAParser=j0;var Q0=typeof Ye!==At&&(Ye.jQuery||Ye.Zepto);if(Q0&&!Q0.ua){var q0=new j0;Q0.ua=q0.getResult(),Q0.ua.get=function(){return q0.getUA()},Q0.ua.set=function(en){q0.setUA(en);var w0=q0.getResult();for(var k0 in w0)Q0.ua[k0]=w0[k0]}}})(typeof window=="object"?window:commonjsGlobal)})(uaParser,uaParser.exports);var uaParserExports=uaParser.exports;const UAParser=getDefaultExportFromCjs(uaParserExports);let uxType=null;const setUxType=Be=>{if(Be==="desktop"||Be==="mobile"||Be===null)uxType=Be;else throw new Error("Invalid value for uxType. Accepted values are 'desktop', 'mobile', or null.")},isIOS16=()=>{const Le=new UAParser().getResult();return Le.os.name==="iOS"&&Le.os.version.startsWith("16.")},getUxType=()=>uxType,parser$1=new UAParser,uaResult=parser$1.getResult(),isTouchDevice=()=>navigator.maxTouchPoints>0||"ontouchstart"in document.documentElement,isTabletWithoutAndroid=()=>!uaResult.device.type&&uaResult.os.name==="Linux"&&uaResult.browser.name==="Chrome"&&isTouchDevice(),mobile={isWebview:()=>["Chrome WebView","WebKit"].includes(uaResult.browser.name),Android:()=>uaResult.os.name==="Android",iOS:()=>{var Be,Le;return["iOS","iPadOS"].includes(uaResult.os.name||"")||uaResult.os.name!=="Mac OS"&&((Le=(Be=uaResult.device)==null?void 0:Be.vendor)==null?void 0:Le.toLowerCase())==="apple"},isIpad:()=>uaResult.device.model==="iPad",isFBInAppBrowser:()=>/\[FB/.test(uaResult.ua),isInstagramAppBrowser:()=>/Instagram/.test(uaResult.ua),any:()=>uxType?uxType==="mobile":!!(uaResult.device.type==="mobile"||uaResult.device.type==="tablet"||isTabletWithoutAndroid()),isChrome:()=>{const{browser:Be}=uaResult;return["Chrome"].includes(Be.name||"")},isDesktop:()=>uxType?uxType==="desktop":!mobile.any(),isAppleDevice:()=>["iOS","Mac OS","iPadOS"].includes(uaResult.os.name||""),isBrowserSupported:()=>{if(mobile.isWebview())return!0;const{browser:Be,os:Le}=uaResult;return Be.name==="Firefox"||Be.name==="Brave"||Be.name==="MiuiBrowser"?!1:Le.name==="iOS"||Le.name==="iPadOS"?["Mobile Safari","Chrome"].includes(Be.name||""):Le.name==="Mac OS"?["Safari","Chrome"].includes(Be.name||""):Be.name==="Chrome"}},browserName=uaResult.browser.name,desktop={isEdge:()=>browserName==="Edge",isChrome:()=>["Chrome","Chrome WebView","Chrome Headless"].includes(browserName),isFirefox:()=>["Firefox","Firefox Focus","Firefox Reality"].includes(browserName),isOpera:()=>["Opera","Opera Mini","Opera Touch"].includes(browserName),isSafari:()=>["Safari","Mobile Safari"].includes(browserName),isBrave:()=>browserName==="Brave",isXiaomiBrowser:()=>browserName==="MiuiBrowser"},getHasLiedBrowser=()=>{const Be=navigator.userAgent.toLowerCase(),Le=navigator.productSub;let Ye;if(Be.indexOf("edge/")>=0||Be.indexOf("iemobile/")>=0)return!1;if(Be.indexOf("opera mini")>=0)return!1;if(Be.indexOf("firefox/")>=0?Ye="Firefox":Be.indexOf("opera/")>=0||Be.indexOf(" opr/")>=0?Ye="Opera":Be.indexOf("chrome/")>=0?Ye="Chrome":Be.indexOf("safari/")>=0?Be.indexOf("android 1.")>=0||Be.indexOf("android 2.")>=0||Be.indexOf("android 3.")>=0||Be.indexOf("android 4.")>=0?Ye="AOSP":Ye="Safari":Be.indexOf("trident/")>=0?Ye="Internet Explorer":Ye="Other",(Ye==="Chrome"||Ye==="Safari"||Ye==="Opera")&&Le!=="20030107")return!0;const tt=eval.toString().length;if(tt===37&&Ye!=="Safari"&&Ye!=="Firefox"&&Ye!=="Other")return!0;if(tt===39&&Ye!=="Internet Explorer"&&Ye!=="Other")return!0;if(tt===33&&Ye!=="Chrome"&&Ye!=="AOSP"&&Ye!=="Opera"&&Ye!=="Other")return!0;let nt;try{throw"a"}catch(ft){try{ft.toSource(),nt=!0}catch{nt=!1}}return nt&&Ye!=="Firefox"&&Ye!=="Other"},getUAParserResults=()=>uaResult,isBrowserSimulation=()=>getUAParserResults().browser.name?isTouchDevice()&&navigator.maxTouchPoints!==1?!1:isTouchDevice()&&(getHasLiedBrowser()||window.navigator.userAgent.indexOf("Mobile")!==-1)||mobile.iOS()&&typeof window.ontouchstart>"u":!0,isMobile$1=mobile.any()&&!isBrowserSimulation(),isWebRtcSupported=()=>!!(window.navigator.mediaDevices&&window.navigator.mediaDevices.getUserMedia),isSurfaceTablet=()=>{const Be=navigator.userAgent.indexOf("Windows")>-1,Le=navigator.maxTouchPoints,Ye="ontouchstart"in window||Le>0||(matchMedia==null?void 0:matchMedia("(any-pointer: coarse)").matches);return Be&&Ye},deviceClass={MOBILE:"MOBILE",DESKTOP:"DESKTOP"},getDeviceClass=()=>isMobile$1?deviceClass.MOBILE:deviceClass.DESKTOP;function detectMobileOS(){return mobile.iOS()?"ios":mobile.Android()?"android":"other"}dayjs.extend(utc);function isChrome(){const Be=window.hasOwnProperty("chrome"),Le=window.navigator,Ye=Le.vendor,tt=!!(window.hasOwnProperty("opera")||window.hasOwnProperty("opr")||navigator.userAgent.includes("Opera")||navigator.userAgent.includes("OPR")),nt=Le.userAgent.indexOf("Edge")>-1;return Le.userAgent.match("CriOS")?!0:Be!==null&&typeof Be<"u"&&Ye==="Google Inc."&&tt===!1&&nt===!1}function isSafari(){return window.navigator.vendor&&window.navigator.vendor.indexOf("Apple")>-1&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("CriOS")===-1&&window.navigator.userAgent.indexOf("FxiOS")===-1&&window.navigator.userAgent.indexOf("OPT")===-1&&window.navigator.userAgent.indexOf("OPR")===-1}const sleep=Be=>new Promise(Le=>setTimeout(Le,Be)),throttle$2=(Be,Le)=>{let Ye;return(...tt)=>{Ye||(Be.apply(void 0,tt),Ye=!0,setTimeout(()=>Ye=!1,Le))}},getLogObject=(Be,Le)=>({type:Be,payload:Le}),toImage$1=Be=>Be?`data:image/png;base64,${Be}`:"",getValidUrl=(Be="")=>{let Le=window.decodeURIComponent(Be);return Le=Le.trim().replace(/\s/g,""),/^(:\/\/)/.test(Le)?`http${Le}`:/^(f|ht)tps?:\/\//i.test(Le)?Le:`http://${Le}`},resizeImg=(Be,Le)=>{const Ye=document.createElement("canvas");Ye.width=Be.width<=Le?Be.width:Le,Ye.height=Be.width<=Le?Be.height:Be.height/(Be.width/Le);const tt=Ye.getContext("2d");return tt==null||tt.drawImage(Be,0,0,Ye.width,Ye.height),Ye.toDataURL()},rotateImg=Be=>{const Le=document.createElement("canvas");Le.width=Be.width,Le.height=Be.height;const Ye=Le.getContext("2d");Ye==null||Ye.drawImage(Be,0,0);const tt=Le.width;return Le.width=Le.height,Le.height=tt,Ye==null||Ye.clearRect(0,0,Le.width,Le.height),Ye==null||Ye.save(),Ye==null||Ye.translate(Le.width/2,Le.height/2),Ye==null||Ye.rotate(-90*Math.PI/180),Ye==null||Ye.drawImage(Be,-Be.width/2,-Be.height/2),Ye==null||Ye.restore(),Le},rotateCanvasVertically=Be=>{const Le=Be.getContext("2d");Le.scale(1,-1),Le.translate(0,-Be.height)},getBase64=Be=>new Promise((Le,Ye)=>{const tt=new FileReader;tt.onload=nt=>{var ht;const ft=(ht=nt==null?void 0:nt.target)==null?void 0:ht.result;Le(ft)},tt.readAsDataURL(Be),tt.onerror=nt=>Ye(nt)}),getScaledBase64=(Be,Le=1280,Ye=!1)=>new Promise((tt,nt)=>{const ft=new Image;ft.onload=()=>{const ht=Ye&&ft.width>ft.height?rotateImg(ft):ft,gt=resizeImg(ht,Le);URL.revokeObjectURL(ft.src),tt(gt)},ft.onerror=ht=>nt(ht),ft.src=URL.createObjectURL(Be)}),getScaledImageFromFile=async(Be,Le=1280,Ye=!1)=>({imageBase64:Be.type==="application/pdf"?await getBase64(Be):await getScaledBase64(Be,Le,Ye),fullImage:Be});function emptyFunc(...Be){}const reload=()=>{window.location.reload()},states$2=[{min:35e3,max:36999,code:"AL",long:"Alabama"},{min:99500,max:99999,code:"AK",long:"Alaska"},{min:85e3,max:86999,code:"AZ",long:"Arizona"},{min:71600,max:72999,code:"AR",long:"Arkansas"},{min:9e4,max:96699,code:"CA",long:"California"},{min:8e4,max:81999,code:"CO",long:"Colorado"},{min:6e3,max:6999,code:"CT",long:"Connecticut"},{min:19700,max:19999,code:"DE",long:"Delaware"},{min:32e3,max:34999,code:"FL",long:"Florida"},{min:3e4,max:31999,code:"GA",long:"Georgia"},{min:96700,max:96999,code:"HI",long:"Hawaii"},{min:83200,max:83999,code:"ID",long:"Idaho"},{min:6e4,max:62999,code:"IL",long:"Illinois"},{min:46e3,max:47999,code:"IN",long:"Indiana"},{min:5e4,max:52999,code:"IA",long:"Iowa"},{min:66e3,max:67999,code:"KS",long:"Kansas"},{min:4e4,max:42999,code:"KY",long:"Kentucky"},{min:7e4,max:71599,code:"LA",long:"Louisiana"},{min:3900,max:4999,code:"ME",long:"Maine"},{min:20600,max:21999,code:"MD",long:"Maryland"},{min:1e3,max:2799,code:"MA",long:"Massachusetts"},{min:48e3,max:49999,code:"MI",long:"Michigan"},{min:55e3,max:56999,code:"MN",long:"Minnesota"},{min:38600,max:39999,code:"MS",long:"Mississippi"},{min:63e3,max:65999,code:"MO",long:"Missouri"},{min:59e3,max:59999,code:"MT",long:"Montana"},{min:27e3,max:28999,code:"NC",long:"North Carolina"},{min:58e3,max:58999,code:"ND",long:"North Dakota"},{min:68e3,max:69999,code:"NE",long:"Nebraska"},{min:88900,max:89999,code:"NV",long:"Nevada"},{min:3e3,max:3899,code:"NH",long:"New Hampshire"},{min:7e3,max:8999,code:"NJ",long:"New Jersey"},{min:87e3,max:88499,code:"NM",long:"New Mexico"},{min:1e4,max:14999,code:"NY",long:"New York"},{min:43e3,max:45999,code:"OH",long:"Ohio"},{min:73e3,max:74999,code:"OK",long:"Oklahoma"},{min:97e3,max:97999,code:"OR",long:"Oregon"},{min:15e3,max:19699,code:"PA",long:"Pennsylvania"},{min:300,max:999,code:"PR",long:"Puerto Rico"},{min:2800,max:2999,code:"RI",long:"Rhode Island"},{min:29e3,max:29999,code:"SC",long:"South Carolina"},{min:57e3,max:57999,code:"SD",long:"South Dakota"},{min:37e3,max:38599,code:"TN",long:"Tennessee"},{min:75e3,max:79999,code:"TX",long:"Texas"},{min:88500,max:88599,code:"TX",long:"Texas"},{min:84e3,max:84999,code:"UT",long:"Utah"},{min:5e3,max:5999,code:"VT",long:"Vermont"},{min:22e3,max:24699,code:"VA",long:"Virgina"},{min:2e4,max:20599,code:"DC",long:"Washington DC"},{min:98e3,max:99499,code:"WA",long:"Washington"},{min:24700,max:26999,code:"WV",long:"West Virginia"},{min:53e3,max:54999,code:"WI",long:"Wisconsin"},{min:82e3,max:83199,code:"WY",long:"Wyoming"}],getUSState=Be=>{const Le=Number.parseInt(Be,10),Ye=states$2.filter(tt=>tt.min<=Le&&tt.max>=Le);return Ye.length===0||Ye.length>1?"":Ye[0].code},INCODE_DOMAINS={SAAS:"saas-api.incodesmile.com",STAGE:"incode-stageus-api.stage.incodetest.com",DEMO:"demo-api.incodesmile.com",STAGEK8S:"user-service-k8s.stage.incodetest.com",DEMOK8S:"user-service-k8s.demok8s.incodesmile.com"},allowedDomains=Object.values(INCODE_DOMAINS),isValidUrl=Be=>{try{return new URL(Be),!0}catch{return!1}},allowedDomain=Be=>{const Le=new URL(Be).hostname;return{isAllowed:allowedDomains.includes(Le),domain:Le}},isSaasEnv=Be=>{if(!isValidUrl(Be))return!1;const{isAllowed:Le,domain:Ye}=allowedDomain(Be);return isValidUrl(Be)&&Le&&Ye===INCODE_DOMAINS.SAAS},isStageEnv=Be=>{if(!isValidUrl(Be))return!1;const{isAllowed:Le,domain:Ye}=allowedDomain(Be);return isValidUrl(Be)&&Le&&Ye===INCODE_DOMAINS.STAGE},isDemoEnv=Be=>{if(!isValidUrl(Be))return!1;const{isAllowed:Le,domain:Ye}=allowedDomain(Be);return isValidUrl(Be)&&Le&&Ye===INCODE_DOMAINS.DEMO},isStageK8sEnv=Be=>{if(!isValidUrl(Be))return!1;const{isAllowed:Le,domain:Ye}=allowedDomain(Be);return isValidUrl(Be)&&Le&&Ye===INCODE_DOMAINS.STAGEK8S},formatDate=(Be,Le=!1)=>{if(!Be)return"";const Ye=Number(Be);return dayjs(Ye).isValid()?Le?dayjs.utc(Ye).format("YYYY-MM-DD"):dayjs.utc(Ye).format("MMM D YYYY"):""},camelToStartCase=Be=>{const Le=Be.replace(/([A-Z])/g," $1");return Le.charAt(0).toUpperCase()+Le.slice(1)},formatInputDate=Be=>{let Le=new Date(Be),Ye=""+(Le.getMonth()+1),tt=""+Le.getDate(),nt=Le.getFullYear();return Ye.length<2&&(Ye="0"+Ye),tt.length<2&&(tt="0"+tt),[nt,Ye,tt].join("-")},getKioskMaskPosition=()=>{var Et;const Be=(Et=document.querySelector("video"))==null?void 0:Et.getBoundingClientRect(),Le=Be.width,Ye=Be.height,tt=5.4/8.6,nt=.96,ht=+Le*.6,gt=+Ye*nt,At=gt*tt,xt=At>ht?ht:At;return{width:xt,height:gt,left:(+Le-xt)/2,top:(Ye-gt)/2}},getMaskPosition=(Be=!1)=>{const Le=window.innerWidth,Ye=window.innerHeight,tt=8.6/5.4,nt=localStorage.getItem("isIPhone14OrHigher")==="true"?Be?.8:.6:.86,ht=Ye*.9,gt=Le*nt,At=gt*tt,xt=At>ht?ht:At;return{width:gt,height:xt,left:(Le-gt)/2,top:(Ye-xt)/2}},capitalize$2=Be=>Be.charAt(0).toUpperCase()+Be.slice(1),getLanguageCodeWithCountry=Be=>Be!=null&&Be.startsWith("en")?"en-US":Be!=null&&Be.startsWith("es")?"es-ES":"en-US",b64toBlob=(Be,Le="",Ye=512)=>{const tt=atob(Be),nt=[];for(let ht=0;ht<tt.length;ht+=Ye){const gt=tt.slice(ht,ht+Ye),At=new Array(gt.length);for(let Et=0;Et<gt.length;Et++)At[Et]=gt.charCodeAt(Et);const xt=new Uint8Array(At);nt.push(xt)}return new Blob(nt,{type:Le})},isValidHttpUrl=Be=>{let Le;try{Le=new URL(Be)}catch{return!1}return Le.protocol==="http:"||Le.protocol==="https:"},triggerRedirect=Be=>{const Le=getValidUrl(Be);isValidHttpUrl(Le)?window.location.replace(Le):window.location.replace(Be)},getScreenRecordingEventCode=Be=>({frontId:"frontIdScanScreenRecordVideoUploaded",backId:"backIdScanScreenRecordVideoUploaded",selfie:"selfieScanScreenRecordVideoUploaded"})[Be]||"",detectBrowser=()=>isSafari()?"Safari":isChrome()?"Chrome":isOpera()?"Opera":isFirefox$1()?"Firefox":desktop.isBrave()?"Brave":desktop.isXiaomiBrowser()?"Xiaomi":"unknown",isOpera=()=>!!(window.hasOwnProperty("opera")||window.hasOwnProperty("opr")||navigator.userAgent.includes("Opera")||navigator.userAgent.includes("OPR")||navigator.userAgent.includes("OPT")),isFirefox$1=()=>navigator.userAgent.indexOf("Firefox")>-1||navigator.userAgent.indexOf("FxiOS")>-1;async function pollUntil(Be,Le,Ye){const tt=async()=>{try{const nt=await Be();return Le(nt)?nt:(await sleep(Ye),tt())}catch(nt){throw nt}};return tt()}const validateCPF=Be=>{if(!Be||(Be=Be.replace(/[^\d]+/g,""),Be.length!==11||Be.match(/(\d)\1{10}/)))return!1;let Le=0,Ye;for(let tt=1;tt<=9;tt++)Le=Le+Number.parseInt(Be.substring(tt-1,tt))*(11-tt);if(Ye=Le*10%11,(Ye===10||Ye===11)&&(Ye=0),Ye!==Number.parseInt(Be.substring(9,10)))return!1;Le=0;for(let tt=1;tt<=10;tt++)Le=Le+Number.parseInt(Be.substring(tt-1,tt))*(12-tt);return Ye=Le*10%11,(Ye===10||Ye===11)&&(Ye=0),Ye===Number.parseInt(Be.substring(10,11))},getVideoSelfieModules=(Be,{checkIdScan:Le,checkDocumentScan:Ye,checkVoiceConsent:tt,questionsCount:nt,showPassport:ft})=>[...Le??Be.checkIdScan?["front"]:[],...!Be.onlyFront&&!ft&&(Le??Be.checkIdScan)?["back"]:[],...Ye??Be.checkDocumentScan?["poa"]:[],"selfie",...(nt??Be.questionsCount)>0&&(tt??Be.checkVoiceConsent)?["questions"]:[],...tt??Be.checkVoiceConsent?["speech"]:[]],countryCodeToInfo={ABW:{name:"Aruba",flag:"🇦🇼"},AFG:{name:"Afghanistan",flag:"🇦🇫"},AGO:{name:"Angola",flag:"🇦🇴"},AIA:{name:"Anguilla",flag:"🇦🇮"},ALA:{name:"Åland Islands",flag:"🇦🇽"},ALB:{name:"Albania",flag:"🇦🇱"},AND:{name:"Andorra",flag:"🇦🇩"},ARE:{name:"United Arab Emirates",flag:"🇦🇪"},ARG:{name:"Argentina",flag:"🇦🇷"},ARM:{name:"Armenia",flag:"🇦🇲"},ASM:{name:"American Samoa",flag:"🇦🇸"},ATA:{name:"Antarctica",flag:"🇦🇶"},ATF:{name:"French Southern Territories",flag:"🇹🇫"},ATG:{name:"Antigua and Barbuda",flag:"🇦🇬"},AUS:{name:"Australia",flag:"🇦🇺"},AUT:{name:"Austria",flag:"🇦🇹"},AZE:{name:"Azerbaijan",flag:"🇦🇿"},BDI:{name:"Burundi",flag:"🇧🇮"},BEL:{name:"Belgium",flag:"🇧🇪"},BEN:{name:"Benin",flag:"🇧🇯"},BES:{name:"Bonaire, Sint Eustatius and Saba",flag:"🇧🇶"},BFA:{name:"Burkina Faso",flag:"🇧🇫"},BGD:{name:"Bangladesh",flag:"🇧🇩"},BGR:{name:"Bulgaria",flag:"🇧🇬"},BHR:{name:"Bahrain",flag:"🇧🇭"},BHS:{name:"Bahamas",flag:"🇧🇸"},BIH:{name:"Bosnia and Herzegovina",flag:"🇧🇦"},BLM:{name:"Saint Barthélemy",flag:"🇧🇱"},BLR:{name:"Belarus",flag:"🇧🇾"},BLZ:{name:"Belize",flag:"🇧🇿"},BMU:{name:"Bermuda",flag:"🇧🇲"},BOL:{name:"Bolivia, Plurinational State of",flag:"🇧🇴"},BRA:{name:"Brasil",flag:"🇧🇷"},BRB:{name:"Barbados",flag:"🇧🇧"},BRN:{name:"Brunei Darussalam",flag:"🇧🇳"},BTN:{name:"Bhutan",flag:"🇧🇹"},BVT:{name:"Bouvet Island",flag:"🇧🇻"},BWA:{name:"Botswana",flag:"🇧🇼"},CAF:{name:"Central African Republic",flag:"🇨🇫"},CAN:{name:"Canada",flag:"🇨🇦"},CCK:{name:"Cocos (Keeling) Islands",flag:"🇨🇨"},CHE:{name:"Switzerland",flag:"🇨🇭"},CHL:{name:"Chile",flag:"🇨🇱"},CHN:{name:"China",flag:"🇨🇳"},CIV:{name:"Côte d'Ivoire",flag:"🇨🇮"},CMR:{name:"Cameroon",flag:"🇨🇲"},COD:{name:"Congo, Democratic Republic of the",flag:"🇨🇩"},COG:{name:"Congo",flag:"🇨🇬"},COK:{name:"Cook Islands",flag:"🇨🇰"},COL:{name:"Colombia",flag:"🇨🇴"},COM:{name:"Comoros",flag:"🇰🇲"},CPV:{name:"Cabo Verde",flag:"🇨🇻"},CRI:{name:"Costa Rica",flag:"🇨🇷"},CUB:{name:"Cuba",flag:"🇨🇺"},CUW:{name:"Curaçao",flag:"🇨🇼"},CXR:{name:"Christmas Island",flag:"🇨🇽"},CYM:{name:"Cayman Islands",flag:"🇰🇾"},CYP:{name:"Cyprus",flag:"🇨🇾"},CZE:{name:"Czechia",flag:"🇨🇿"},DEU:{name:"Germany",flag:"🇩🇪"},DJI:{name:"Djibouti",flag:"🇩🇯"},DMA:{name:"Dominica",flag:"🇩🇲"},DNK:{name:"Denmark",flag:"🇩🇰"},DOM:{name:"Dominican Republic",flag:"🇩🇴"},DZA:{name:"Algeria",flag:"🇩🇿"},ECU:{name:"Ecuador",flag:"🇪🇨"},EGY:{name:"Egypt",flag:"🇪🇬"},ERI:{name:"Eritrea",flag:"🇪🇷"},ESH:{name:"Western Sahara",flag:"🇪🇭"},ESP:{name:"Spain",flag:"🇪🇸"},EST:{name:"Estonia",flag:"🇪🇪"},ETH:{name:"Ethiopia",flag:"🇪🇹"},FIN:{name:"Finland",flag:"🇫🇮"},FJI:{name:"Fiji",flag:"🇫🇯"},FLK:{name:"Falkland Islands (Malvinas)",flag:"🇫🇰"},FRA:{name:"France",flag:"🇫🇷"},FRO:{name:"Faroe Islands",flag:"🇫🇴"},FSM:{name:"Micronesia, Federated States of",flag:"🇫🇲"},GAB:{name:"Gabon",flag:"🇬🇦"},GBR:{name:"United Kingdom",flag:"🇬🇧"},GEO:{name:"Georgia",flag:"🇬🇪"},GGY:{name:"Guernsey",flag:"🇬🇬"},GHA:{name:"Ghana",flag:"🇬🇭"},GIB:{name:"Gibraltar",flag:"🇬🇮"},GIN:{name:"Guinea",flag:"🇬🇳"},GLP:{name:"Guadeloupe",flag:"🇬🇵"},GMB:{name:"Gambia",flag:"🇬🇲"},GNB:{name:"Guinea-Bissau",flag:"🇬🇼"},GNQ:{name:"Equatorial Guinea",flag:"🇬🇶"},GRC:{name:"Greece",flag:"🇬🇷"},GRD:{name:"Grenada",flag:"🇬🇩"},GRL:{name:"Greenland",flag:"🇬🇱"},GTM:{name:"Guatemala",flag:"🇬🇹"},GUF:{name:"French Guiana",flag:"🇬🇫"},GUM:{name:"Guam",flag:"🇬🇺"},GUY:{name:"Guyana",flag:"🇬🇾"},HKG:{name:"Hong Kong",flag:"🇭🇰"},HMD:{name:"Heard Island and McDonald Islands",flag:"🇭🇲"},HND:{name:"Honduras",flag:"🇭🇳"},HRV:{name:"Croatia",flag:"🇭🇷"},HTI:{name:"Haiti",flag:"🇭🇹"},HUN:{name:"Hungary",flag:"🇭🇺"},IDN:{name:"Indonesia",flag:"🇮🇩"},IMN:{name:"Isle of Man",flag:"🇮🇲"},IND:{name:"India",flag:"🇮🇳"},IOT:{name:"British Indian Ocean Territory",flag:"🇮🇴"},IRL:{name:"Ireland",flag:"🇮🇪"},IRN:{name:"Iran",flag:"🇮🇷"},IRQ:{name:"Iraq",flag:"🇮🇶"},ISL:{name:"Iceland",flag:"🇮🇸"},ISR:{name:"Israel",flag:"🇮🇱"},ITA:{name:"Italy",flag:"🇮🇹"},JAM:{name:"Jamaica",flag:"🇯🇲"},JEY:{name:"Jersey",flag:"🇯🇪"},JOR:{name:"Jordan",flag:"🇯🇴"},JPN:{name:"Japan",flag:"🇯🇵"},KAZ:{name:"Kazakhstan",flag:"🇰🇿"},KEN:{name:"Kenya",flag:"🇰🇪"},KGZ:{name:"Kyrgyzstan",flag:"🇰🇬"},KHM:{name:"Cambodia",flag:"🇰🇭"},KIR:{name:"Kiribati",flag:"🇰🇮"},KNA:{name:"Saint Kitts and Nevis",flag:"🇰🇳"},KOR:{name:"Korea, Republic of",flag:"🇰🇷"},KWT:{name:"Kuwait",flag:"🇰🇼"},LAO:{name:"Lao People's Democratic Republic",flag:"🇱🇦"},LBN:{name:"Lebanon",flag:"🇱🇧"},LBR:{name:"Liberia",flag:"🇱🇷"},LBY:{name:"Libya",flag:"🇱🇾"},LCA:{name:"Saint Lucia",flag:"🇱🇨"},LIE:{name:"Liechtenstein",flag:"🇱🇮"},LKA:{name:"Sri Lanka",flag:"🇱🇰"},LSO:{name:"Lesotho",flag:"🇱🇸"},LTU:{name:"Lithuania",flag:"🇱🇹"},LUX:{name:"Luxembourg",flag:"🇱🇺"},LVA:{name:"Latvia",flag:"🇱🇻"},MAC:{name:"Macao",flag:"🇲🇴"},MAF:{name:"Saint Martin (French part)",flag:"🇲🇫"},MAR:{name:"Morocco",flag:"🇲🇦"},MCO:{name:"Monaco",flag:"🇲🇨"},MDA:{name:"Moldova",flag:"🇲🇩"},MDG:{name:"Madagascar",flag:"🇲🇬"},MDV:{name:"Maldives",flag:"🇲🇻"},MEX:{name:"Mexico",flag:"🇲🇽"},MHL:{name:"Marshall Islands",flag:"🇲🇭"},MKD:{name:"North Macedonia",flag:"🇲🇰"},MLI:{name:"Mali",flag:"🇲🇱"},MLT:{name:"Malta",flag:"🇲🇹"},MMR:{name:"Myanmar",flag:"🇲🇲"},MNE:{name:"Montenegro",flag:"🇲🇪"},MNG:{name:"Mongolia",flag:"🇲🇳"},MNP:{name:"Northern Mariana Islands",flag:"🇲🇵"},MOZ:{name:"Mozambique",flag:"🇲🇿"},MRT:{name:"Mauritania",flag:"🇲🇷"},MSR:{name:"Montserrat",flag:"🇲🇸"},MTQ:{name:"Martinique",flag:"🇲🇶"},MUS:{name:"Mauritius",flag:"🇲🇺"},MWI:{name:"Malawi",flag:"🇲🇼"},MYS:{name:"Malaysia",flag:"🇲🇾"},MYT:{name:"Mayotte",flag:"🇾🇹"},NAM:{name:"Namibia",flag:"🇳🇦"},NCL:{name:"New Caledonia",flag:"🇳🇨"},NER:{name:"Niger",flag:"🇳🇪"},NFK:{name:"Norfolk Island",flag:"🇳🇫"},NGA:{name:"Nigeria",flag:"🇳🇬"},NIC:{name:"Nicaragua",flag:"🇳🇮"},NIU:{name:"Niue",flag:"🇳🇺"},NLD:{name:"Netherlands",flag:"🇳🇱"},NOR:{name:"Norway",flag:"🇳🇴"},NPL:{name:"Nepal",flag:"🇳🇵"},NRU:{name:"Nauru",flag:"🇳🇷"},NZL:{name:"New Zealand",flag:"🇳🇿"},OMN:{name:"Oman",flag:"🇴🇲"},PAK:{name:"Pakistan",flag:"🇵🇰"},PAN:{name:"Panama",flag:"🇵🇦"},PCN:{name:"Pitcairn",flag:"🇵🇳"},PER:{name:"Peru",flag:"🇵🇪"},PHL:{name:"Philippines",flag:"🇵🇭"},PLW:{name:"Palau",flag:"🇵🇼"},PNG:{name:"Papua New Guinea",flag:"🇵🇬"},POL:{name:"Poland",flag:"🇵🇱"},PRI:{name:"Puerto Rico",flag:"🇵🇷"},PRK:{name:"Korea (Democratic People's Republic of)",flag:"🇰🇵"},PRT:{name:"Portugal",flag:"🇵🇹"},PRY:{name:"Paraguay",flag:"🇵🇾"},PSE:{name:"Palestine, State of",flag:"🇵🇸"},PYF:{name:"French Polynesia",flag:"🇵🇫"},QAT:{name:"Qatar",flag:"🇶🇦"},REU:{name:"Réunion",flag:"🇷🇪"},ROU:{name:"Romania",flag:"🇷🇴"},RUS:{name:"Russian Federation",flag:"🇷🇺"},RWA:{name:"Rwanda",flag:"🇷🇼"},SAU:{name:"Saudi Arabia",flag:"🇸🇦"},SDN:{name:"Sudan",flag:"🇸🇩"},SEN:{name:"Senegal",flag:"🇸🇳"},SGP:{name:"Singapore",flag:"🇸🇬"},SGS:{name:"South Georgia and the South Sandwich Islands",flag:"🇬🇸"},SHN:{name:"Saint Helena, Ascension and Tristan da Cunha",flag:"🇸🇭"},SJM:{name:"Svalbard and Jan Mayen",flag:"🇸🇯"},SLB:{name:"Solomon Islands",flag:"🇸🇧"},SLE:{name:"Sierra Leone",flag:"🇸🇱"},SLV:{name:"El Salvador",flag:"🇸🇻"},SMR:{name:"San Marino",flag:"🇸🇲"},SOM:{name:"Somalia",flag:"🇸🇴"},SPM:{name:"Saint Pierre and Miquelon",flag:"🇵🇲"},SRB:{name:"Serbia",flag:"🇷🇸"},SSD:{name:"South Sudan",flag:"🇸🇸"},STP:{name:"Sao Tome and Principe",flag:"🇸🇹"},SUR:{name:"Suriname",flag:"🇸🇷"},SVK:{name:"Slovakia",flag:"🇸🇰"},SVN:{name:"Slovenia",flag:"🇸🇮"},SWE:{name:"Sweden",flag:"🇸🇪"},SWZ:{name:"Eswatini",flag:"🇸🇿"},SXM:{name:"Sint Maarten (Dutch part)",flag:"🇸🇽"},SYC:{name:"Seychelles",flag:"🇸🇨"},SYR:{name:"Syrian Arab Republic",flag:"🇸🇾"},TCA:{name:"Turks and Caicos Islands",flag:"🇹🇨"},TCD:{name:"Chad",flag:"🇹🇩"},TGO:{name:"Togo",flag:"🇹🇬"},THA:{name:"Thailand",flag:"🇹🇭"},TJK:{name:"Tajikistan",flag:"🇹🇯"},TKL:{name:"Tokelau",flag:"🇹🇰"},TKM:{name:"Turkmenistan",flag:"🇹🇲"},TLS:{name:"Timor-Leste",flag:"🇹🇱"},TON:{name:"Tonga",flag:"🇹🇴"},TTO:{name:"Trinidad and Tobago",flag:"🇹🇹"},TUN:{name:"Tunisia",flag:"🇹🇳"},TUR:{name:"Türkiye",flag:"🇹🇷"},TUV:{name:"Tuvalu",flag:"🇹🇻"},TWN:{name:"Taiwan",flag:"🇹🇼"},TZA:{name:"Tanzania",flag:"🇹🇿"},UGA:{name:"Uganda",flag:"🇺🇬"},UKR:{name:"Ukraine",flag:"🇺🇦"},UMI:{name:"United States Minor Outlying Islands",flag:"🇺🇲"},URY:{name:"Uruguay",flag:"🇺🇾"},USA:{name:"United States of America",flag:"🇺🇸"},UZB:{name:"Uzbekistan",flag:"🇺🇿"},VAT:{name:"Holy See",flag:"🇻🇦"},VCT:{name:"Saint Vincent and the Grenadines",flag:"🇻🇨"},VEN:{name:"Venezuela",flag:"🇻🇪"},VGB:{name:"Virgin Islands (British)",flag:"🇻🇬"},VIR:{name:"Virgin Islands (U.S.)",flag:"🇻🇮"},VNM:{name:"Vietnam",flag:"🇻🇳"},VUT:{name:"Vanuatu",flag:"🇻🇺"},WLF:{name:"Wallis and Futuna",flag:"🇼🇫"},WSM:{name:"Samoa",flag:"🇼🇸"},YEM:{name:"Yemen",flag:"🇾🇪"},ZAF:{name:"South Africa",flag:"🇿🇦"},ZMB:{name:"Zambia",flag:"🇿🇲"},ZWE:{name:"Zimbabwe",flag:"🇿🇼"}},getFormattedCountryName=Be=>{const Le=countryCodeToInfo[Be];return Le?`${Le.flag} ${Le.name}`:void 0},blobToBase64=Be=>new Promise((Le,Ye)=>{const tt=new FileReader;tt.onloadend=()=>{const nt=tt.result;Le(nt.split(",")[1])},tt.onerror=Ye,tt.readAsDataURL(Be)}),useEventListener=(Be,Le,Ye=window)=>{const tt=React.useRef(()=>{});React.useEffect(()=>{tt.current=Le},[Le]),React.useEffect(()=>{if(!(Ye&&Ye.addEventListener))return;const ft=ht=>{var gt;return(gt=tt==null?void 0:tt.current)==null?void 0:gt.call(tt,ht)};return Ye.addEventListener(Be,ft),()=>{Ye.removeEventListener(Be,ft)}},[Be,Ye])},globalState={},createGlobalState=(Be,Le,Ye)=>(globalState[Be]||(globalState[Be]={callbacks:[],value:Ye}),globalState[Be].callbacks.push(Le),{deregister(){const tt=globalState[Be].callbacks,nt=tt.indexOf(Le);nt>-1&&tt.splice(nt,1)},emit(tt){globalState[Be].value!==tt&&(globalState[Be].value=tt,globalState[Be].callbacks.forEach(nt=>{Le!==nt&&nt(tt)}))}}),usePersistedState=(Be,Le,{get:Ye,set:tt})=>{const nt=React.useRef(null),[ft,ht]=React.useState(()=>Ye(Le,Be));return useEventListener("storage",({key:gt,newValue:At})=>{if(gt===Le){const xt=JSON.parse(At);ft!==xt&&ht(xt)}}),React.useEffect(()=>(nt.current=createGlobalState(Le,ht,Be),()=>{var gt,At;(At=(gt=nt==null?void 0:nt.current)==null?void 0:gt.deregister)==null||At.call(gt)}),[]),React.useEffect(()=>{var gt,At;tt(Le,ft),(At=(gt=nt==null?void 0:nt.current)==null?void 0:gt.emit)==null||At.call(gt,ft)},[Le,tt,ft]),[ft,ht]},createStorage=Be=>({get(Le,Ye){const tt=Be.getItem(Le);return tt===null?typeof Ye=="function"?Ye():Ye:JSON.parse(tt)},set(Le,Ye){Be.setItem(Le,JSON.stringify(Ye))}}),createPersistedState=(Be,Le)=>{if(!Le&&typeof window<"u")try{Le=localStorage}catch{Le=null}if(Le){const Ye=createStorage(Le);return tt=>usePersistedState(tt,Be,Ye)}return React.useState},useSessionState=createPersistedState("sessionData");function usePermissions(){const[Be,Le]=React.useState(!1),[Ye,tt]=React.useState(!1);return React.useEffect(()=>{var nt;if(!navigator.permissions){tt(!0);return}(nt=navigator.permissions)==null||nt.query({name:"camera"}).then(ft=>{ft.state==="granted"&&(Le(!0),tt(!1)),ft.state==="prompt"&&tt(!0)}).catch(()=>{Le(!1),tt(!1)})},[]),[Be,Le,Ye]}function useInterval(Be,Le){const Ye=React.useRef(Be),tt=React.useRef(null);return Ye.current=Be,React.useEffect(()=>{function nt(){Ye.current()}if(Le!==null)return tt.current=setInterval(nt,Le),()=>clearInterval(tt.current)},[Le]),tt.current}const resize=async()=>{await sleep(100);const Be=window.innerWidth*.01,Le=window.innerHeight*.01;document.documentElement.style.setProperty("--vw",`${Be}px`),document.documentElement.style.setProperty("--vh",`${Le}px`)},useResize=()=>{useEventListener("resize",()=>{resize()},window),React.useLayoutEffect(()=>{resize()},[])},isPortrait=()=>{var Be;return((Be=screen.orientation)==null?void 0:Be.type.includes("portrait"))||Math.abs(window.orientation)===0};function useOrientation(){const Be=getUxType(),Le=Be==="mobile"?!1:!isPortrait(),[Ye,tt]=React.useState(Le),nt=mobile.isDesktop();return React.useEffect(()=>{if(Be==="mobile")return;function ft(){tt(!isPortrait()),document.activeElement instanceof HTMLElement&&document.activeElement.blur(),window.focus()}return screen.orientation?screen.orientation.addEventListener("change",ft):window.addEventListener("orientationchange",ft),()=>{screen.orientation?screen.orientation.removeEventListener("change",ft):window.removeEventListener("orientationchange",ft)}},[Be]),useEventListener("resize",()=>{isMobile$1&&tt(!isPortrait())},window),{isRotated:nt?!1:Ye}}const handleUnmountRoot=(Be,Le,Ye)=>(...tt)=>{setTimeout(()=>{if("createRoot"in ReactDOM__namespace)Le.unmount();else if(typeof ReactDOM__namespace.unmountComponentAtNode=="function")ReactDOM__namespace.unmountComponentAtNode(Ye);else throw new Error("Unsupported React version");Be(...tt)},0)},createRoot$1=Be=>{if("createRoot"in ReactDOM__namespace)return ReactDOM__namespace.createRoot(Be);if(typeof ReactDOM__namespace.render=="function")return ReactDOM__namespace.render;throw new Error("Unsupported React version")},customRender=(Be,Le,Ye)=>{if("createRoot"in ReactDOM__namespace)Ye.render(Be);else if(typeof Ye=="function")Ye(Be,Le);else throw new Error("Unsupported React version")};function useQuery(){return React.useMemo(()=>new URLSearchParams(window.location.search),[])}function useSteps(Be=0){const[Le,Ye]=React.useState(Be),tt=React.useCallback(()=>{Ye(nt=>nt+1)},[]);return{currentStep:Le,setStep:Ye,nextStep:tt}}function useOffline(Be=emptyFunc){useEventListener("offline",()=>{navigator.onLine||Be()})}function useToggle(Be=!1){const[Le,Ye]=React.useState(Be);return{state:Le,actions:{on:()=>{Ye(!0)},off:()=>{Ye(!1)},toggle:()=>{Ye(nt=>!nt)},reset:()=>{Ye(Be)}}}}function useClickOutside(Be,Le){const Ye=React.useRef();React.useEffect(()=>{Ye.current=Le;const tt=nt=>{var ft;!(Be!=null&&Be.current)||(ft=Be==null?void 0:Be.current)!=null&&ft.contains(nt.target)||Le()};return document.addEventListener("mousedown",tt,!0),document.addEventListener("touchstart",tt,!0),()=>{document.removeEventListener("mousedown",tt),document.removeEventListener("touchstart",tt)}},[Le,Be])}function useScript(Be,Le){React.useEffect(()=>{const Ye=document.createElement("script");return Ye.src=Be,Ye.type="text/javascript",Ye.async=!0,Ye.onload=Le,document.body.appendChild(Ye),()=>{document.body.removeChild(Ye)}},[Be])}const useUpdateQueryParamsAndReload=()=>{const Be=window.location;return Ye=>{const tt=new URLSearchParams(Be.search);Object.keys(Ye).forEach(ft=>{const ht=Ye[ft];ht==null?tt.delete(ft):tt.set(ft,ht)});const nt=`${Be.pathname}?${tt.toString()}`;window.location.href=nt}},useDocumentTitle=Be=>{React.useEffect(()=>{document.title=Be},[Be])},useAutoFocus=(Be,Le=!1)=>{React.useEffect(()=>(Be.current&&(Be.current.focus(),Be.current.blur()),()=>{Le&&Be.current&&Be.current.blur()}),[Be,Le])};function useDeviceId(){const[Be,Le]=React.useState();return[Be,tt=>{Le(tt)}]}function useDebouncedValue(Be,Le=250){const[Ye,tt]=React.useState(Be);return React.useEffect(()=>{const nt=setTimeout(()=>{tt(Be)},Le);return()=>{clearTimeout(nt)}},[Be,Le]),Ye}function useViewportSize(){const[Be,Le]=React.useState({width:window.innerWidth,height:window.innerHeight});return React.useEffect(()=>{let Ye=null,tt=null;const nt=()=>{tt&&window.clearTimeout(tt),tt=window.setTimeout(()=>{Le({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})},100)};return"ResizeObserver"in window?(Ye=new ResizeObserver(nt),Ye.observe(document.documentElement)):window.addEventListener("resize",nt),nt(),()=>{Ye?Ye.disconnect():window.removeEventListener("resize",nt),tt&&window.clearTimeout(tt)}},[]),Be}const backCameraKeywords=["rear","back","rück","arrière","trasera","trás","traseira","posteriore","后面","後面","背面","后置","後置","背置","задней","الخلفية","후","arka","achterzijde","หลัง","baksidan","bagside","sau","bak","tylny","takakamera","belakang","אחורית","πίσω","spate","hátsó","zadní","darrere","zadná","задня","stražnja","belakang","बैक"],cameraObjects=new Map;let getCamerasPromise;function isBackCameraLabel(Be){const Le=Be.toLowerCase();return backCameraKeywords.some(Ye=>Le.includes(Ye))}function createCamera(Be,Le,Ye){var Et,yt;if(cameraObjects.has(Be.deviceId))return cameraObjects.get(Be.deviceId);const tt=Be.label,nt=Be.getCapabilities(),ft=(Et=nt==null?void 0:nt.width)==null?void 0:Et.max,ht=(yt=nt==null?void 0:nt.height)==null?void 0:yt.max,gt=nt==null?void 0:nt.aspectRatio;let At;Ye.every(Ct=>Ct.label==="")?At=Ye.length===1||Le+1<=Ye.length/2?"front":"back":At=isBackCameraLabel(tt)?"back":"front";const xt={deviceId:Be.deviceId,label:tt,cameraType:At,width:ft,height:ht,aspectRatio:gt};return cameraObjects.set(Be.deviceId,xt),xt}function extractCamerasFromDevices(Be){const Le=Be.filter(Ye=>Ye.kind==="videoinput").map(createCamera);if(Le.length>1&&!Le.some(Ye=>Ye.cameraType==="back")){let Ye=Le.length-1;const tt=Le.map(nt=>{const ft=nt.label.match(/\b([0-9]+)MP?\b/i);return ft!=null?parseInt(ft[1],10):NaN});tt.some(nt=>isNaN(nt))||(Ye=tt.lastIndexOf(Math.max(...tt))),Le[Ye].cameraType="back"}return Le}function adjustCamerasFromCameraStream(Be,Le){const Ye=Be.getSettings(),tt=Le.find(nt=>nt.deviceId===Ye.deviceId||nt.label!==""&&nt.label===Be.label);if(tt!==void 0){if((Ye!=null&&Ye.facingMode==="environment"||isBackCameraLabel(Be.label))&&Le.length>1)return Le.forEach(ft=>{ft.deviceId===tt.deviceId?ft.cameraType="back":isBackCameraLabel(ft.label)||(ft.cameraType="front")}),Le.filter(ft=>ft.cameraType==="back").sort((ft,ht)=>ft.label.localeCompare(ht.label))[0];if(Le.length===1)return tt}}function getCameras(){return getCamerasPromise!=null||(getCamerasPromise=new Promise(async Be=>{const Le=await navigator.mediaDevices.enumerateDevices(),Ye=extractCamerasFromDevices(Le);return Be(Ye)})),getCamerasPromise}function getUserMediaVideoParams(Be){const Le={resizeMode:"none",facingMode:"environment"};switch(Be){case 0:return{...Le,height:{ideal:720},aspectRatio:{ideal:19.5/9}};case 1:return{...Le,width:{min:3200,ideal:3840,max:4096},height:{min:1800,ideal:2160,max:2400}};case 2:return{...Le,width:{min:1400,ideal:1920,max:2160},height:{min:900,ideal:1080,max:1440}};case 3:return{...Le,width:{min:640,ideal:640,max:800},height:{min:480,ideal:480,max:600}};case 4:return{...Le,width:{min:640,ideal:800,max:960},height:{min:480,ideal:480,max:480}};default:return{}}}const selfieConstraints={video:{facingMode:"user",height:{ideal:480},width:{ideal:640}}},killStream=(Be,Le=!1)=>{if(Le){Be.getVideoTracks().forEach(Ye=>Ye.stop());return}Be.getTracks().forEach(Ye=>Ye.stop())},selfieChecks=({confidence:Be,isBright:Le,hasLenses:Ye,hasFaceMask:tt,hasClosedEyes:nt,hasHeadCover:ft},{hatCheckEnabled:ht=!1,lensesCheckEnabled:gt=!1,maskCheckEnabled:At=!1,eyesClosedCheckEnabled:xt=!1})=>{const Et=Be===0,yt=Le,Ct=gt?!Ye:!0,kt=At?!tt:!0,vt=xt?!nt:!0,bt=ht?!ft:!0;return{livenessPassed:Et,brightnessPassed:yt,lensesPassed:Ct,maskPassed:kt,closedEyesPassed:vt,headCoverPassed:bt,hasErrors:!Et||!yt||!Ct||!kt||!vt||!bt}},logSelfieChecks=(Be,Le,Ye,tt,nt,ft,ht)=>{const gt=[{passed:Le.headCoverPassed,log:"headCoverDected",notification:"notifications.removeHeadwear",description:getSelfieTranslation("removeHeadwear",ht),message:"Hat detected"},{passed:Le.lensesPassed,log:"lensesDetected",notification:"notifications.lenses",description:getSelfieTranslation("lenses",ht),message:"Lenses detected"},{passed:Le.brightnessPassed,log:"badBrightness",notification:"notifications.brightness",description:"notifications.brightnessDescription",message:"Bad brightness"},{passed:Le.maskPassed,log:"badMask",notification:"notifications.mask",description:getSelfieTranslation("mask",ht),message:"Mask detected"},{passed:Le.livenessPassed,log:"spoofAttempt",notification:"notifications.spoof",description:"notifications.spoofDescription",message:"Spoof attempt detected"},{passed:Le.closedEyesPassed,log:"closedEyes",notification:"notifications.closedEyes",description:getSelfieTranslation("closedEyes",ht),message:"Closed eyes detected"}];for(const{passed:At,log:xt,message:Et,notification:yt,description:Ct}of gt)if(!At){Ye(getLogObject(xt,{response:Be,message:Et})),tt(nt(yt)),ft==null||ft(nt(Ct));break}},getIdealContraintsDefault=(Be=720)=>({audio:!1,video:{resizeMode:"none",facingMode:"environment",height:{ideal:Be},aspectRatio:{ideal:19.5/9}}}),getStream=async(Be,Le=0)=>{if(Be==="user")return navigator.mediaDevices.getUserMedia(selfieConstraints);if(mobile.iOS()){const tt=await navigator.mediaDevices.getUserMedia(getIOSConstraints());return await tt.getVideoTracks()[0].applyConstraints({advanced:[{focusDistance:1}]}),tt}try{const tt=await getCameras(),nt=await navigator.mediaDevices.getUserMedia({video:getUserMediaVideoParams(Le)}),ft=nt.getVideoTracks()[0],ht=adjustCamerasFromCameraStream(ft,tt);killStream(nt);let gt=1280,At=720;if(Le>1){const{width:yt,height:Ct}=getUserMediaVideoParams(Le);gt=yt.ideal,At=Ct.ideal}const xt={video:{deviceId:{exact:ht.deviceId},width:{ideal:gt},height:{ideal:At}}};return await navigator.mediaDevices.getUserMedia(xt)}catch(tt){if(Le===5)throw tt;return getStream(Be,Le+1)}},getIOSConstraints=()=>getIdealContraintsDefault(localStorage.getItem("isHighPerformance")==="true"?1080:720);async function chooseNonUltraFrontCameraMultilingual(){const Be=["front","frontal","vorderseite","avant","前面","正面","앞"],Le=["ultra","ウルトラ","울트라"];try{const tt=(await navigator.mediaDevices.enumerateDevices()).find(nt=>{const ft=nt.label.toLowerCase();return nt.kind==="videoinput"&&Be.some(ht=>ft.includes(ht.toLowerCase()))&&!Le.some(ht=>ft.includes(ht.toLowerCase()))});return tt?tt.deviceId:null}catch{return null}}async function getNonUltraWideFrontCameraStream(){const Be=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1});killStream(Be);const Le=await chooseNonUltraFrontCameraMultilingual();return navigator.mediaDevices.getUserMedia({video:{deviceId:Le}})}const zoomCamera=async(Be,Le)=>{if(!Be)return!1;const Ye=Be.getSettings(),tt=Be.getCapabilities();return"zoom"in Ye||tt.zoom?(await Be.applyConstraints({advanced:[{zoom:tt.zoom.min&&Le<tt.zoom.min||tt.zoom.max&&Le>tt.zoom.max||Le}]}),!0):!1};async function base64ToImageData(Be){const Ye=await(await fetch(`data:image/jpeg;base64,${Be}`)).blob(),tt=new Image,nt=new Promise((gt,At)=>{tt.onload=gt,tt.onerror=At});tt.src=URL.createObjectURL(Ye),await nt;const ft=document.createElement("canvas");ft.width=tt.width,ft.height=tt.height;const ht=ft.getContext("2d");return ht.drawImage(tt,0,0),ht.getImageData(0,0,tt.width,tt.height)}function getChosenCameraInfo(Be,Le=null,Ye=null){const tt=Be.getCapabilities(),nt=Be.getSettings(),{focusMode:ft=!1}=navigator.mediaDevices.getSupportedConstraints();return{label:Be.label,deviceId:nt.deviceId,fallbackOption:Le,videoSource:Ye,resolution:`${nt.width}x${nt.height}`,autofocus:ft,facingMode:nt.facingMode,currentFrameRate:nt.frameRate,zoom:tt.zoom?{current:nt.zoom,min:tt.zoom.min,max:tt.zoom.max,step:tt.zoom.step}:void 0,focusDistance:tt.focusDistance?{current:nt.focusDistance,min:tt.focusDistance.min,max:tt.focusDistance.max,step:tt.focusDistance.step}:void 0}}async function getDeviceCapabilities(){const Be={};try{(await navigator.mediaDevices.enumerateDevices()).filter(tt=>tt.kind==="videoinput").forEach((tt,nt)=>{const ft=tt.getCapabilities();Be[`camera${nt+1}`]={label:tt.label,width:{min:ft.width.min,max:ft.width.max},height:{min:ft.height.min,max:ft.height.max},frameRate:{min:ft.frameRate.min,max:ft.frameRate.max},facingMode:ft.facingMode,focusMode:ft.focusMode||void 0,focusDistance:ft.focusDistance?{min:ft.focusDistance.min,max:ft.focusDistance.max}:void 0}})}catch(Le){console.log("Unable to get device capabilities: ",Le)}return Be}const translations={removeLenses:{default:"notifications.removeLenses",assisted:"notifications.removeLensesAssisted"},openEyes:{default:"notifications.openEyes",assisted:"notifications.openEyesAssisted"},removeMask:{default:"notifications.removeMask",assisted:"notifications.removeMaskAssisted"},ageAssurance:{default:"notifications.selfie.ageAssurance",assisted:"notifications.selfie.ageAssuranceAssisted"},removeHeadwear:{default:"notifications.removeHeadwearDescription",assisted:"notifications.removeHeadwearDescriptionAssisted"},lenses:{default:"notifications.lensesDescription",assisted:"notifications.lensesDescriptionAssisted"},mask:{assisted:"notifications.maskDescriptionAssisted",default:"notifications.maskDescription"},closedEyes:{assisted:"notifications.closedEyesDescriptionAssisted",default:"notifications.closedEyesDescription"}},getSelfieTranslation=(Be,Le)=>{const Ye=translations[Be];return Le?Ye.assisted:Ye.default},getSupportedMediaRecorderMimeType=()=>{const Be=mobile.iOS()?["video/mp4","video/webm","video/webm;codecs=vp9","video/webm;codecs=vp8"]:["video/webm","video/webm;codecs=vp9","video/webm;codecs=vp8","video/mp4"];for(const Le of Be)if(MediaRecorder.isTypeSupported(Le))return Le;return""},getMediaStreamTrackSettings=Be=>{const Le=Be.getSettings(),{width:Ye,height:tt,...nt}=Le;return mobile.isIpad()||!Ye||!tt?Le:mobile.any()&&tt<Ye?{...nt,width:tt,height:Ye}:Le};class Semaphore{constructor(Le=1){this.maxConcurrent=Le,this.current=0,this.queue=[]}async acquire(){return this.current<this.maxConcurrent?(this.current++,Promise.resolve()):new Promise(Le=>{this.queue.push(Le)})}release(){if(this.current=Math.max(0,this.current-1),this.queue.length>0&&this.current<this.maxConcurrent){this.current++;const Le=this.queue.shift();Le&&Le()}}}class Mutex{constructor(){this.semaphore=new Semaphore(1)}async lock(){return this.semaphore.acquire()}unlock(){this.semaphore.release()}async withLock(Le,...Ye){await this.lock();try{return await Le(...Ye)}finally{this.unlock()}}}var __assign$3=function(){return __assign$3=Object.assign||function(Le){for(var Ye,tt=1,nt=arguments.length;tt<nt;tt++){Ye=arguments[tt];for(var ft in Ye)Object.prototype.hasOwnProperty.call(Ye,ft)&&(Le[ft]=Ye[ft])}return Le},__assign$3.apply(this,arguments)};function __spreadArray$2(Be,Le,Ye){if(Ye||arguments.length===2)for(var tt=0,nt=Le.length,ft;tt<nt;tt++)(ft||!(tt in Le))&&(ft||(ft=Array.prototype.slice.call(Le,0,tt)),ft[tt]=Le[tt]);return Be.concat(ft||Array.prototype.slice.call(Le))}typeof SuppressedError=="function"&&SuppressedError;function memoize$1(Be){var Le=Object.create(null);return function(Ye){return Le[Ye]===void 0&&(Le[Ye]=Be(Ye)),Le[Ye]}}var reactPropsRegex$1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid$1=memoize$1(function(Be){return reactPropsRegex$1.test(Be)||Be.charCodeAt(0)===111&&Be.charCodeAt(1)===110&&Be.charCodeAt(2)<91}),MS$1="-ms-",MOZ$1="-moz-",WEBKIT$1="-webkit-",COMMENT$1="comm",RULESET$1="rule",DECLARATION$1="decl",IMPORT$1="@import",KEYFRAMES$1="@keyframes",LAYER$1="@layer",abs$1=Math.abs,from$1=String.fromCharCode,assign$1=Object.assign;function hash$1(Be,Le){return charat$1(Be,0)^45?(((Le<<2^charat$1(Be,0))<<2^charat$1(Be,1))<<2^charat$1(Be,2))<<2^charat$1(Be,3):0}function trim$3(Be){return Be.trim()}function match$1(Be,Le){return(Be=Le.exec(Be))?Be[0]:Be}function replace$1(Be,Le,Ye){return Be.replace(Le,Ye)}function indexof$1(Be,Le,Ye){return Be.indexOf(Le,Ye)}function charat$1(Be,Le){return Be.charCodeAt(Le)|0}function substr$1(Be,Le,Ye){return Be.slice(Le,Ye)}function strlen$1(Be){return Be.length}function sizeof$1(Be){return Be.length}function append$1(Be,Le){return Le.push(Be),Be}function combine$1(Be,Le){return Be.map(Le).join("")}function filter$1(Be,Le){return Be.filter(function(Ye){return!match$1(Ye,Le)})}var line$1=1,column$1=1,length$1=0,position$4=0,character$1=0,characters$1="";function node$2(Be,Le,Ye,tt,nt,ft,ht,gt){return{value:Be,root:Le,parent:Ye,type:tt,props:nt,children:ft,line:line$1,column:column$1,length:ht,return:"",siblings:gt}}function copy$2(Be,Le){return assign$1(node$2("",null,null,"",null,null,0,Be.siblings),Be,{length:-Be.length},Le)}function lift(Be){for(;Be.root;)Be=copy$2(Be.root,{children:[Be]});append$1(Be,Be.siblings)}function char$1(){return character$1}function prev$1(){return character$1=position$4>0?charat$1(characters$1,--position$4):0,column$1--,character$1===10&&(column$1=1,line$1--),character$1}function next$2(){return character$1=position$4<length$1?charat$1(characters$1,position$4++):0,column$1++,character$1===10&&(column$1=1,line$1++),character$1}function peek$1(){return charat$1(characters$1,position$4)}function caret$1(){return position$4}function slice$3(Be,Le){return substr$1(characters$1,Be,Le)}function token$1(Be){switch(Be){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc$1(Be){return line$1=column$1=1,length$1=strlen$1(characters$1=Be),position$4=0,[]}function dealloc$1(Be){return characters$1="",Be}function delimit$1(Be){return trim$3(slice$3(position$4-1,delimiter$1(Be===91?Be+2:Be===40?Be+1:Be)))}function whitespace$2(Be){for(;(character$1=peek$1())&&character$1<33;)next$2();return token$1(Be)>2||token$1(character$1)>3?"":" "}function escaping$1(Be,Le){for(;--Le&&next$2()&&!(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97););return slice$3(Be,caret$1()+(Le<6&&peek$1()==32&&next$2()==32))}function delimiter$1(Be){for(;next$2();)switch(character$1){case Be:return position$4;case 34:case 39:Be!==34&&Be!==39&&delimiter$1(character$1);break;case 40:Be===41&&delimiter$1(Be);break;case 92:next$2();break}return position$4}function commenter$1(Be,Le){for(;next$2()&&Be+character$1!==57;)if(Be+character$1===84&&peek$1()===47)break;return"/*"+slice$3(Le,position$4-1)+"*"+from$1(Be===47?Be:next$2())}function identifier$1(Be){for(;!token$1(peek$1());)next$2();return slice$3(Be,position$4)}function compile$1(Be){return dealloc$1(parse$9("",null,null,null,[""],Be=alloc$1(Be),0,[0],Be))}function parse$9(Be,Le,Ye,tt,nt,ft,ht,gt,At){for(var xt=0,Et=0,yt=ht,Ct=0,kt=0,vt=0,bt=1,It=1,wt=1,Rt=0,Tt="",Bt=nt,Dt=ft,Pt=tt,Nt=Tt;It;)switch(vt=Rt,Rt=next$2()){case 40:if(vt!=108&&charat$1(Nt,yt-1)==58){indexof$1(Nt+=replace$1(delimit$1(Rt),"&","&\f"),"&\f",abs$1(xt?gt[xt-1]:0))!=-1&&(wt=-1);break}case 34:case 39:case 91:Nt+=delimit$1(Rt);break;case 9:case 10:case 13:case 32:Nt+=whitespace$2(vt);break;case 92:Nt+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$1(comment$3(commenter$1(next$2(),caret$1()),Le,Ye,At),At);break;default:Nt+="/"}break;case 123*bt:gt[xt++]=strlen$1(Nt)*wt;case 125*bt:case 59:case 0:switch(Rt){case 0:case 125:It=0;case 59+Et:wt==-1&&(Nt=replace$1(Nt,/\f/g,"")),kt>0&&strlen$1(Nt)-yt&&append$1(kt>32?declaration$1(Nt+";",tt,Ye,yt-1,At):declaration$1(replace$1(Nt," ","")+";",tt,Ye,yt-2,At),At);break;case 59:Nt+=";";default:if(append$1(Pt=ruleset$1(Nt,Le,Ye,xt,Et,nt,gt,Tt,Bt=[],Dt=[],yt,ft),ft),Rt===123)if(Et===0)parse$9(Nt,Le,Pt,Pt,Bt,ft,yt,gt,Dt);else switch(Ct===99&&charat$1(Nt,3)===110?100:Ct){case 100:case 108:case 109:case 115:parse$9(Be,Pt,Pt,tt&&append$1(ruleset$1(Be,Pt,Pt,0,0,nt,gt,Tt,nt,Bt=[],yt,Dt),Dt),nt,Dt,yt,gt,tt?Bt:Dt);break;default:parse$9(Nt,Pt,Pt,Pt,[""],Dt,0,gt,Dt)}}xt=Et=kt=0,bt=wt=1,Tt=Nt="",yt=ht;break;case 58:yt=1+strlen$1(Nt),kt=vt;default:if(bt<1){if(Rt==123)--bt;else if(Rt==125&&bt++==0&&prev$1()==125)continue}switch(Nt+=from$1(Rt),Rt*bt){case 38:wt=Et>0?1:(Nt+="\f",-1);break;case 44:gt[xt++]=(strlen$1(Nt)-1)*wt,wt=1;break;case 64:peek$1()===45&&(Nt+=delimit$1(next$2())),Ct=peek$1(),Et=yt=strlen$1(Tt=Nt+=identifier$1(caret$1())),Rt++;break;case 45:vt===45&&strlen$1(Nt)==2&&(bt=0)}}return ft}function ruleset$1(Be,Le,Ye,tt,nt,ft,ht,gt,At,xt,Et,yt){for(var Ct=nt-1,kt=nt===0?ft:[""],vt=sizeof$1(kt),bt=0,It=0,wt=0;bt<tt;++bt)for(var Rt=0,Tt=substr$1(Be,Ct+1,Ct=abs$1(It=ht[bt])),Bt=Be;Rt<vt;++Rt)(Bt=trim$3(It>0?kt[Rt]+" "+Tt:replace$1(Tt,/&\f/g,kt[Rt])))&&(At[wt++]=Bt);return node$2(Be,Le,Ye,nt===0?RULESET$1:gt,At,xt,Et,yt)}function comment$3(Be,Le,Ye,tt){return node$2(Be,Le,Ye,COMMENT$1,from$1(char$1()),substr$1(Be,2,-2),0,tt)}function declaration$1(Be,Le,Ye,tt,nt){return node$2(Be,Le,Ye,DECLARATION$1,substr$1(Be,0,tt),substr$1(Be,tt+1,-1),tt,nt)}function prefix$2(Be,Le,Ye){switch(hash$1(Be,Le)){case 5103:return WEBKIT$1+"print-"+Be+Be;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT$1+Be+Be;case 4789:return MOZ$1+Be+Be;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT$1+Be+MOZ$1+Be+MS$1+Be+Be;case 5936:switch(charat$1(Be,Le+11)){case 114:return WEBKIT$1+Be+MS$1+replace$1(Be,/[svh]\w+-[tblr]{2}/,"tb")+Be;case 108:return WEBKIT$1+Be+MS$1+replace$1(Be,/[svh]\w+-[tblr]{2}/,"tb-rl")+Be;case 45:return WEBKIT$1+Be+MS$1+replace$1(Be,/[svh]\w+-[tblr]{2}/,"lr")+Be}case 6828:case 4268:case 2903:return WEBKIT$1+Be+MS$1+Be+Be;case 6165:return WEBKIT$1+Be+MS$1+"flex-"+Be+Be;case 5187:return WEBKIT$1+Be+replace$1(Be,/(\w+).+(:[^]+)/,WEBKIT$1+"box-$1$2"+MS$1+"flex-$1$2")+Be;case 5443:return WEBKIT$1+Be+MS$1+"flex-item-"+replace$1(Be,/flex-|-self/g,"")+(match$1(Be,/flex-|baseline/)?"":MS$1+"grid-row-"+replace$1(Be,/flex-|-self/g,""))+Be;case 4675:return WEBKIT$1+Be+MS$1+"flex-line-pack"+replace$1(Be,/align-content|flex-|-self/g,"")+Be;case 5548:return WEBKIT$1+Be+MS$1+replace$1(Be,"shrink","negative")+Be;case 5292:return WEBKIT$1+Be+MS$1+replace$1(Be,"basis","preferred-size")+Be;case 6060:return WEBKIT$1+"box-"+replace$1(Be,"-grow","")+WEBKIT$1+Be+MS$1+replace$1(Be,"grow","positive")+Be;case 4554:return WEBKIT$1+replace$1(Be,/([^-])(transform)/g,"$1"+WEBKIT$1+"$2")+Be;case 6187:return replace$1(replace$1(replace$1(Be,/(zoom-|grab)/,WEBKIT$1+"$1"),/(image-set)/,WEBKIT$1+"$1"),Be,"")+Be;case 5495:case 3959:return replace$1(Be,/(image-set\([^]*)/,WEBKIT$1+"$1$`$1");case 4968:return replace$1(replace$1(Be,/(.+:)(flex-)?(.*)/,WEBKIT$1+"box-pack:$3"+MS$1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT$1+Be+Be;case 4200:if(!match$1(Be,/flex-|baseline/))return MS$1+"grid-column-align"+substr$1(Be,Le)+Be;break;case 2592:case 3360:return MS$1+replace$1(Be,"template-","")+Be;case 4384:case 3616:return Ye&&Ye.some(function(tt,nt){return Le=nt,match$1(tt.props,/grid-\w+-end/)})?~indexof$1(Be+(Ye=Ye[Le].value),"span",0)?Be:MS$1+replace$1(Be,"-start","")+Be+MS$1+"grid-row-span:"+(~indexof$1(Ye,"span",0)?match$1(Ye,/\d+/):+match$1(Ye,/\d+/)-+match$1(Be,/\d+/))+";":MS$1+replace$1(Be,"-start","")+Be;case 4896:case 4128:return Ye&&Ye.some(function(tt){return match$1(tt.props,/grid-\w+-start/)})?Be:MS$1+replace$1(replace$1(Be,"-end","-span"),"span ","")+Be;case 4095:case 3583:case 4068:case 2532:return replace$1(Be,/(.+)-inline(.+)/,WEBKIT$1+"$1$2")+Be;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen$1(Be)-1-Le>6)switch(charat$1(Be,Le+1)){case 109:if(charat$1(Be,Le+4)!==45)break;case 102:return replace$1(Be,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$1+"$2-$3$1"+MOZ$1+(charat$1(Be,Le+3)==108?"$3":"$2-$3"))+Be;case 115:return~indexof$1(Be,"stretch",0)?prefix$2(replace$1(Be,"stretch","fill-available"),Le,Ye)+Be:Be}break;case 5152:case 5920:return replace$1(Be,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(tt,nt,ft,ht,gt,At,xt){return MS$1+nt+":"+ft+xt+(ht?MS$1+nt+"-span:"+(gt?At:+At-+ft)+xt:"")+Be});case 4949:if(charat$1(Be,Le+6)===121)return replace$1(Be,":",":"+WEBKIT$1)+Be;break;case 6444:switch(charat$1(Be,charat$1(Be,14)===45?18:11)){case 120:return replace$1(Be,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+WEBKIT$1+(charat$1(Be,14)===45?"inline-":"")+"box$3$1"+WEBKIT$1+"$2$3$1"+MS$1+"$2box$3")+Be;case 100:return replace$1(Be,":",":"+MS$1)+Be}break;case 5719:case 2647:case 2135:case 3927:case 2391:return replace$1(Be,"scroll-","scroll-snap-")+Be}return Be}function serialize$2(Be,Le){for(var Ye="",tt=0;tt<Be.length;tt++)Ye+=Le(Be[tt],tt,Be,Le)||"";return Ye}function stringify$5(Be,Le,Ye,tt){switch(Be.type){case LAYER$1:if(Be.children.length)break;case IMPORT$1:case DECLARATION$1:return Be.return=Be.return||Be.value;case COMMENT$1:return"";case KEYFRAMES$1:return Be.return=Be.value+"{"+serialize$2(Be.children,tt)+"}";case RULESET$1:if(!strlen$1(Be.value=Be.props.join(",")))return""}return strlen$1(Ye=serialize$2(Be.children,tt))?Be.return=Be.value+"{"+Ye+"}":""}function middleware$1(Be){var Le=sizeof$1(Be);return function(Ye,tt,nt,ft){for(var ht="",gt=0;gt<Le;gt++)ht+=Be[gt](Ye,tt,nt,ft)||"";return ht}}function rulesheet$1(Be){return function(Le){Le.root||(Le=Le.return)&&Be(Le)}}function prefixer$1(Be,Le,Ye,tt){if(Be.length>-1&&!Be.return)switch(Be.type){case DECLARATION$1:Be.return=prefix$2(Be.value,Be.length,Ye);return;case KEYFRAMES$1:return serialize$2([copy$2(Be,{value:replace$1(Be.value,"@","@"+WEBKIT$1)})],tt);case RULESET$1:if(Be.length)return combine$1(Ye=Be.props,function(nt){switch(match$1(nt,tt=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lift(copy$2(Be,{props:[replace$1(nt,/:(read-\w+)/,":"+MOZ$1+"$1")]})),lift(copy$2(Be,{props:[nt]})),assign$1(Be,{props:filter$1(Ye,tt)});break;case"::placeholder":lift(copy$2(Be,{props:[replace$1(nt,/:(plac\w+)/,":"+WEBKIT$1+"input-$1")]})),lift(copy$2(Be,{props:[replace$1(nt,/:(plac\w+)/,":"+MOZ$1+"$1")]})),lift(copy$2(Be,{props:[replace$1(nt,/:(plac\w+)/,MS$1+"input-$1")]})),lift(copy$2(Be,{props:[nt]})),assign$1(Be,{props:filter$1(Ye,tt)});break}return""})}}var unitlessKeys$1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},f$3=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m$3="active",y$1="data-styled-version",v$e="6.1.19",g$2=`/*!sc*/
|
|
3
3
|
`,S$2=typeof window<"u"&&typeof document<"u",w$f=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),E$2=/invalid hook call/i,N$2=new Set,P$2=function(Be,Le){if(process.env.NODE_ENV!=="production"){var Ye=Le?' with the id of "'.concat(Le,'"'):"",tt="The component ".concat(Be).concat(Ye,` has been created dynamically.
|
|
4
4
|
`)+`You may see this warning because you've called styled inside another component.
|
|
@@ -63,7 +63,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const breakpoints$3={
|
|
|
63
63
|
justify-content: center;
|
|
64
64
|
align-items: center;
|
|
65
65
|
flex-direction: column;
|
|
66
|
-
`;typeof Promise.withResolvers!="function"&&(Promise.withResolvers=()=>{let Be,Le;return{promise:new Promise((tt,nt)=>{Be=tt,Le=nt}),resolve:Be,reject:Le}});class InterruptionHandler{constructor(){this.boundVisibilityChange=this.handleVisibilityChange.bind(this),this.boundOnline=this.handleOnline.bind(this),this.boundOffline=this.handleOffline.bind(this),this.boundUnhandledRejection=this.handleUnhandledRejection.bind(this),this.boundError=this.handleError.bind(this),this.initialized=!1}registerEventListeners(){this.initialized||(document.addEventListener("visibilitychange",this.boundVisibilityChange),window.addEventListener("online",this.boundOnline),window.addEventListener("offline",this.boundOffline),window.addEventListener("unhandledrejection",this.boundUnhandledRejection),window.addEventListener("error",this.boundError),this.initialized=!0)}removeEventListeners(){this.initialized&&(this.initialized=!1,document.removeEventListener("visibilitychange",this.boundVisibilityChange),window.removeEventListener("online",this.boundOnline),window.removeEventListener("offline",this.boundOffline),window.removeEventListener("unhandledrejection",this.boundUnhandledRejection),window.removeEventListener("error",this.boundError))}handleVisibilityChange(){document.hidden?this.onAppHidden():this.onAppVisible()}onAppHidden(){}onAppVisible(){}handleOnline(){}handleOffline(){}handleUnhandledRejection(Le){}handleError(Le){}}const regex$1={CURP_PATTERN:/^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/,EMAIL_PATTERN:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,SSN_PATTERN:/^\d{3}-?\d{2}-?\d{4}$/};function webgl(){let Be,Le,Ye=256,tt=128;Be=document.body.appendChild(document.createElement("canvas")),Be.width=Ye,Be.height=tt;try{Le=Be.getContext("webgl2")||Be.getContext("experimental-webgl2")||Be.getContext("webgl")||Be.getContext("experimental-webgl")||Be.getContext("moz-webgl");const nt="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",ft="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}",ht=Le.createBuffer();Le.bindBuffer(Le.ARRAY_BUFFER,ht);const gt=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.7321,0]);Le.bufferData(Le.ARRAY_BUFFER,gt,Le.STATIC_DRAW),ht.itemSize=3,ht.numItems=3;const At=Le.createProgram(),xt=Le.createShader(Le.VERTEX_SHADER);Le.shaderSource(xt,nt),Le.compileShader(xt);const Et=Le.createShader(Le.FRAGMENT_SHADER);Le.shaderSource(Et,ft),Le.compileShader(Et),Le.attachShader(At,xt),Le.attachShader(At,Et),Le.linkProgram(At),Le.useProgram(At),At.vertexPosAttrib=Le.getAttribLocation(At,"attrVertex"),At.offsetUniform=Le.getUniformLocation(At,"uniformOffset"),Le.enableVertexAttribArray(At.vertexPosAttrib),Le.vertexAttribPointer(At.vertexPosAttrib,ht.itemSize,Le.FLOAT,!1,0,0),Le.uniform2f(At.offsetUniform,1,1),Le.drawArrays(Le.TRIANGLE_STRIP,0,ht.numItems);let yt="";const Ct=new Uint8Array(Ye*tt*4);return Le.readPixels(0,0,Ye,tt,Le.RGBA,Le.UNSIGNED_BYTE,Ct),yt=JSON.stringify(Ct).replace(/,?"[0-9]+":/g,""),document.body.removeChild(Be),sha256(yt)}catch{return""}}const sha256=(()=>{let Be=1,Le,Ye=[],tt=[];for(;++Be<18;)for(Le=Be*Be;Le<312;Le+=Be)Ye[Le]=1;function nt(gt,At){return Math.pow(gt,1/At)%1*4294967296|0}for(Be=1,Le=0;Be<313;)Ye[++Be]||(tt[Le]=nt(Be,2),Ye[Le++]=nt(Be,3));function ft(gt,At){return gt>>>At|gt<<32-At}function ht(gt){let At=tt.slice(Be=0),xt=unescape(encodeURI(gt)),Et=[],yt=xt.length,Ct=[],kt,vt,bt;for(;Be<yt;)Ct[Be>>2]|=(xt.charCodeAt(Be)&255)<<8*(3-Be++%4);for(yt*=8,Ct[yt>>5]|=128<<24-yt%32,Ct[bt=yt+64>>5|15]=yt,Be=0;Be<bt;Be+=16){for(kt=At.slice(Le=0,8);Le<64;kt[4]+=vt)Le<16?Et[Le]=Ct[Le+Be]:Et[Le]=(ft(vt=Et[Le-2],17)^ft(vt,19)^vt>>>10)+(Et[Le-7]|0)+(ft(vt=Et[Le-15],7)^ft(vt,18)^vt>>>3)+(Et[Le-16]|0),kt.unshift((vt=(kt.pop()+(ft(gt=kt[4],6)^ft(gt,11)^ft(gt,25))+((gt&kt[5]^~gt&kt[6])+Ye[Le])|0)+(Et[Le++]|0))+(ft(yt=kt[0],2)^ft(yt,13)^ft(yt,22))+(yt&kt[1]^kt[1]&kt[2]^kt[2]&yt));for(Le=8;Le--;)At[Le]=kt[Le]+At[Le]}for(xt="";Le<63;)xt+=(At[++Le>>3]>>4*(7-Le%8)&15).toString(16);return xt}return ht})();var store;function getGlobalConfig(Be){return{lang:store==null?void 0:store.lang,message:Be==null?void 0:Be.message,abortEarly:store==null?void 0:store.abortEarly,abortPipeEarly:store==null?void 0:store.abortPipeEarly}}var store2;function getGlobalMessage(Be){return store2==null?void 0:store2.get(Be)}var store3;function getSchemaMessage(Be){return store3==null?void 0:store3.get(Be)}var store4;function getSpecificMessage(Be,Le){var Ye;return(Ye=store4==null?void 0:store4.get(Be))==null?void 0:Ye.get(Le)}function _stringify$3(Be){var Ye,tt;const Le=typeof Be;return Le==="string"?`"${Be}"`:Le==="number"||Le==="bigint"||Le==="boolean"?`${Be}`:Le==="object"||Le==="function"?(Be&&((tt=(Ye=Object.getPrototypeOf(Be))==null?void 0:Ye.constructor)==null?void 0:tt.name))??"null":Le}function _addIssue(Be,Le,Ye,tt,nt){const ft=nt&&"input"in nt?nt.input:Ye.value,ht=(nt==null?void 0:nt.expected)??Be.expects??null,gt=(nt==null?void 0:nt.received)??_stringify$3(ft),At={kind:Be.kind,type:Be.type,input:ft,expected:ht,received:gt,message:`Invalid ${Le}: ${ht?`Expected ${ht} but r`:"R"}eceived ${gt}`,requirement:Be.requirement,path:nt==null?void 0:nt.path,issues:nt==null?void 0:nt.issues,lang:tt.lang,abortEarly:tt.abortEarly,abortPipeEarly:tt.abortPipeEarly},xt=Be.kind==="schema",Et=(nt==null?void 0:nt.message)??Be.message??getSpecificMessage(Be.reference,At.lang)??(xt?getSchemaMessage(At.lang):null)??tt.message??getGlobalMessage(At.lang);Et!==void 0&&(At.message=typeof Et=="function"?Et(At):Et),xt&&(Ye.typed=!1),Ye.issues?Ye.issues.push(At):Ye.issues=[At]}function _getStandardProps(Be){return{version:1,vendor:"valibot",validate(Le){return Be["~run"]({value:Le},getGlobalConfig())}}}function _isValidObjectKey(Be,Le){return Object.hasOwn(Be,Le)&&Le!=="__proto__"&&Le!=="prototype"&&Le!=="constructor"}function _joinExpects(Be,Le){const Ye=[...new Set(Be)];return Ye.length>1?`(${Ye.join(` ${Le} `)})`:Ye[0]??"never"}function isValiError(Be){return Be instanceof ValiError}var ValiError=class extends Error{constructor(Be){super(Be[0].message),this.name="ValiError",this.issues=Be}};function getFallback(Be,Le,Ye){return typeof Be.fallback=="function"?Be.fallback(Le,Ye):Be.fallback}function getDefault(Be,Le,Ye){return typeof Be.default=="function"?Be.default(Le,Ye):Be.default}function boolean$2(Be){return{kind:"schema",type:"boolean",reference:boolean$2,expects:"boolean",async:!1,message:Be,get"~standard"(){return _getStandardProps(this)},"~run"(Le,Ye){return typeof Le.value=="boolean"?Le.typed=!0:_addIssue(this,"type",Le,Ye),Le}}}function custom(Be,Le){return{kind:"schema",type:"custom",reference:custom,expects:"unknown",async:!1,check:Be,message:Le,get"~standard"(){return _getStandardProps(this)},"~run"(Ye,tt){return this.check(Ye.value)?Ye.typed=!0:_addIssue(this,"type",Ye,tt),Ye}}}function function_(Be){return{kind:"schema",type:"function",reference:function_,expects:"Function",async:!1,message:Be,get"~standard"(){return _getStandardProps(this)},"~run"(Le,Ye){return typeof Le.value=="function"?Le.typed=!0:_addIssue(this,"type",Le,Ye),Le}}}function literal(Be,Le){return{kind:"schema",type:"literal",reference:literal,expects:_stringify$3(Be),async:!1,literal:Be,message:Le,get"~standard"(){return _getStandardProps(this)},"~run"(Ye,tt){return Ye.value===this.literal?Ye.typed=!0:_addIssue(this,"type",Ye,tt),Ye}}}function null_(Be){return{kind:"schema",type:"null",reference:null_,expects:"null",async:!1,message:Be,get"~standard"(){return _getStandardProps(this)},"~run"(Le,Ye){return Le.value===null?Le.typed=!0:_addIssue(this,"type",Le,Ye),Le}}}function number$3(Be){return{kind:"schema",type:"number",reference:number$3,expects:"number",async:!1,message:Be,get"~standard"(){return _getStandardProps(this)},"~run"(Le,Ye){return typeof Le.value=="number"&&!isNaN(Le.value)?Le.typed=!0:_addIssue(this,"type",Le,Ye),Le}}}function object(Be,Le){return{kind:"schema",type:"object",reference:object,expects:"Object",async:!1,entries:Be,message:Le,get"~standard"(){return _getStandardProps(this)},"~run"(Ye,tt){var ft;const nt=Ye.value;if(nt&&typeof nt=="object"){Ye.typed=!0,Ye.value={};for(const ht in this.entries){const gt=this.entries[ht];if(ht in nt||(gt.type==="exact_optional"||gt.type==="optional"||gt.type==="nullish")&>.default!==void 0){const At=ht in nt?nt[ht]:getDefault(gt),xt=gt["~run"]({value:At},tt);if(xt.issues){const Et={type:"object",origin:"value",input:nt,key:ht,value:At};for(const yt of xt.issues)yt.path?yt.path.unshift(Et):yt.path=[Et],(ft=Ye.issues)==null||ft.push(yt);if(Ye.issues||(Ye.issues=xt.issues),tt.abortEarly){Ye.typed=!1;break}}xt.typed||(Ye.typed=!1),Ye.value[ht]=xt.value}else if(gt.fallback!==void 0)Ye.value[ht]=getFallback(gt);else if(gt.type!=="exact_optional"&>.type!=="optional"&>.type!=="nullish"&&(_addIssue(this,"key",Ye,tt,{input:void 0,expected:`"${ht}"`,path:[{type:"object",origin:"key",input:nt,key:ht,value:nt[ht]}]}),tt.abortEarly))break}}else _addIssue(this,"type",Ye,tt);return Ye}}}function optional(Be,Le){return{kind:"schema",type:"optional",reference:optional,expects:`(${Be.expects} | undefined)`,async:!1,wrapped:Be,default:Le,get"~standard"(){return _getStandardProps(this)},"~run"(Ye,tt){return Ye.value===void 0&&(this.default!==void 0&&(Ye.value=getDefault(this,Ye,tt)),Ye.value===void 0)?(Ye.typed=!0,Ye):this.wrapped["~run"](Ye,tt)}}}function record(Be,Le,Ye){return{kind:"schema",type:"record",reference:record,expects:"Object",async:!1,key:Be,value:Le,message:Ye,get"~standard"(){return _getStandardProps(this)},"~run"(tt,nt){var ht,gt;const ft=tt.value;if(ft&&typeof ft=="object"){tt.typed=!0,tt.value={};for(const At in ft)if(_isValidObjectKey(ft,At)){const xt=ft[At],Et=this.key["~run"]({value:At},nt);if(Et.issues){const Ct={type:"object",origin:"key",input:ft,key:At,value:xt};for(const kt of Et.issues)kt.path=[Ct],(ht=tt.issues)==null||ht.push(kt);if(tt.issues||(tt.issues=Et.issues),nt.abortEarly){tt.typed=!1;break}}const yt=this.value["~run"]({value:xt},nt);if(yt.issues){const Ct={type:"object",origin:"value",input:ft,key:At,value:xt};for(const kt of yt.issues)kt.path?kt.path.unshift(Ct):kt.path=[Ct],(gt=tt.issues)==null||gt.push(kt);if(tt.issues||(tt.issues=yt.issues),nt.abortEarly){tt.typed=!1;break}}(!Et.typed||!yt.typed)&&(tt.typed=!1),Et.typed&&(tt.value[Et.value]=yt.value)}}else _addIssue(this,"type",tt,nt);return tt}}}function string$2(Be){return{kind:"schema",type:"string",reference:string$2,expects:"string",async:!1,message:Be,get"~standard"(){return _getStandardProps(this)},"~run"(Le,Ye){return typeof Le.value=="string"?Le.typed=!0:_addIssue(this,"type",Le,Ye),Le}}}function _subIssues(Be){let Le;if(Be)for(const Ye of Be)Le?Le.push(...Ye.issues):Le=Ye.issues;return Le}function union(Be,Le){return{kind:"schema",type:"union",reference:union,expects:_joinExpects(Be.map(Ye=>Ye.expects),"|"),async:!1,options:Be,message:Le,get"~standard"(){return _getStandardProps(this)},"~run"(Ye,tt){let nt,ft,ht;for(const gt of this.options){const At=gt["~run"]({value:Ye.value},tt);if(At.typed)if(At.issues)ft?ft.push(At):ft=[At];else{nt=At;break}else ht?ht.push(At):ht=[At]}if(nt)return nt;if(ft){if(ft.length===1)return ft[0];_addIssue(this,"type",Ye,tt,{issues:_subIssues(ft)}),Ye.typed=!0}else{if((ht==null?void 0:ht.length)===1)return ht[0];_addIssue(this,"type",Ye,tt,{issues:_subIssues(ht)})}return Ye}}}function parse$8(Be,Le,Ye){const tt=Be["~run"]({value:Le},getGlobalConfig(Ye));if(tt.issues)throw new ValiError(tt.issues);return tt.value}function validate$2(...Be){try{Be.forEach(({schema:Le,value:Ye})=>parse$8(Le,Ye))}catch(Le){if(isValiError(Le)){const Ye=Le.issues.map(tt=>{var ft;return`${((ft=tt.path)==null?void 0:ft.map(ht=>ht.key).join("."))||"root"}: ${tt.message}`}).join(", ");throw new Error(`Validation failed: ${Ye}`)}throw Le}}exports.api=void 0;function setApi(Be){exports.api=Be}function setToken(Be){exports.api.defaults.headers["X-Incode-Hardware-Id"]=Be}const eventsQueue=[];function addEvent(Be){const{token:Le,code:Ye,module:tt,screen:nt,clientTimestamp:ft,payload:ht={}}=Be;if(!Le){eventsQueue.push(Be);return}return exports.api.post("/omni/interview-events",[{code:Ye,module:tt,screen:nt,clientTimestamp:ft??new Date().getTime(),payload:ht}],{headers:{"X-Incode-Hardware-Id":Le}}).catch(()=>{})}function emptyQueue(Be){eventsQueue.forEach(Le=>{addEvent({...Le,token:Be})})}const state={token:null};var PipelineProfileName=(Be=>(Be[Be.IdCapture_2_01=0]="IdCapture_2_01",Be[Be.IdCapture_2_02=1]="IdCapture_2_02",Be[Be.IdCapture_3_02=2]="IdCapture_3_02",Be[Be.IdVideoSelfie_2_01=3]="IdVideoSelfie_2_01",Be[Be.SelfieWithAggregationMetrics=4]="SelfieWithAggregationMetrics",Be[Be.SelfieWithQualityMetrics=5]="SelfieWithQualityMetrics",Be[Be.SelfieVideoSelfie=6]="SelfieVideoSelfie",Be))(PipelineProfileName||{});class PipelineProfile{constructor(Le,Ye,tt,nt,ft,ht=null,gt=""){this.pipelineType=Le,this.name=Ye,this.detectionType=tt,this.modelNames=nt,this.parameters=ft,this.paramsConfigurator=ht,this.description=gt}reconfigureParams(Le,Ye){if(this.paramsConfigurator==null)throw new Error("PipelineProfile does not have a paramsConfigurator");this.paramsConfigurator(this.parameters,this.pipelineType,Le,Ye)}}var DetectionType=(Be=>(Be[Be.IDCapture=0]="IDCapture",Be[Be.Selfie=1]="Selfie",Be[Be.SelfieVideoSelfie=2]="SelfieVideoSelfie",Be[Be.IdVideoSelfie=3]="IdVideoSelfie",Be))(DetectionType||{}),WasmPipelineType=(Be=>(Be[Be.IdBlurGlarePipeline=0]="IdBlurGlarePipeline",Be[Be.IdBarcodeAndTextQualityPipeline=1]="IdBarcodeAndTextQualityPipeline",Be[Be.IdVideoSelfiePipeline=2]="IdVideoSelfiePipeline",Be[Be.SelfieWithAggregationMetrics=3]="SelfieWithAggregationMetrics",Be[Be.SelfieWithQualityMetrics=4]="SelfieWithQualityMetrics",Be[Be.IdFaceDetectionPipeline=5]="IdFaceDetectionPipeline",Be))(WasmPipelineType||{}),IdCaptureModelType=(Be=>(Be[Be.IdCaptureV1x=0]="IdCaptureV1x",Be[Be.IdCaptureV2x=1]="IdCaptureV2x",Be[Be.IdCaptureV3x=2]="IdCaptureV3x",Be))(IdCaptureModelType||{}),src$2={},src$1={},$_StatsigGlobal={},Log={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be.Log=Be.LogLevel=void 0;const Le=" DEBUG ",Ye=" INFO ",tt=" WARN ",nt=" ERROR ";function ft(gt){return gt.unshift("[Statsig]"),gt}Be.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class ht{static info(...At){ht.level>=Be.LogLevel.Info&&console.info(Ye,...ft(At))}static debug(...At){ht.level>=Be.LogLevel.Debug&&console.debug(Le,...ft(At))}static warn(...At){ht.level>=Be.LogLevel.Warn&&console.warn(tt,...ft(At))}static error(...At){ht.level>=Be.LogLevel.Error&&console.error(nt,...ft(At))}}Be.Log=ht,ht.level=Be.LogLevel.Warn})(Log),function(Be){var Le,Ye,tt;Object.defineProperty(Be,"__esModule",{value:!0}),Be._getInstance=Be._getStatsigGlobalFlag=Be._getStatsigGlobal=void 0;const nt=Log,ft=()=>{try{return typeof __STATSIG__<"u"?__STATSIG__:Ct}catch{return Ct}};Be._getStatsigGlobal=ft;const ht=kt=>(0,Be._getStatsigGlobal)()[kt];Be._getStatsigGlobalFlag=ht;const gt=kt=>{const vt=(0,Be._getStatsigGlobal)();return kt?vt.instances&&vt.instances[kt]:(vt.instances&&Object.keys(vt.instances).length>1&&nt.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),vt.firstInstance)};Be._getInstance=gt;const At="__STATSIG__",xt=typeof window<"u"?window:{},Et=typeof commonjsGlobal<"u"?commonjsGlobal:{},yt=typeof globalThis<"u"?globalThis:{},Ct=(tt=(Ye=(Le=xt[At])!==null&&Le!==void 0?Le:Et[At])!==null&&Ye!==void 0?Ye:yt[At])!==null&&tt!==void 0?tt:{instance:Be._getInstance};xt[At]=Ct,Et[At]=Ct,yt[At]=Ct}($_StatsigGlobal);var Diagnostics={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be.Diagnostics=void 0;const Le=new Map,Ye="start",tt="end",nt="statsig::diagnostics";Be.Diagnostics={_getMarkers:xt=>Le.get(xt),_markInitOverallStart:xt=>{gt(xt,ft({},Ye,"overall"))},_markInitOverallEnd:(xt,Et,yt)=>{gt(xt,ft({success:Et,error:Et?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:yt},tt,"overall"))},_markInitNetworkReqStart:(xt,Et)=>{gt(xt,ft(Et,Ye,"initialize","network_request"))},_markInitNetworkReqEnd:(xt,Et)=>{gt(xt,ft(Et,tt,"initialize","network_request"))},_markInitProcessStart:xt=>{gt(xt,ft({},Ye,"initialize","process"))},_markInitProcessEnd:(xt,Et)=>{gt(xt,ft(Et,tt,"initialize","process"))},_clearMarkers:xt=>{Le.delete(xt)},_formatError(xt){if(xt&&typeof xt=="object")return{code:At(xt,"code"),name:At(xt,"name"),message:At(xt,"message")}},_getDiagnosticsData(xt,Et,yt,Ct){var kt;return{success:(xt==null?void 0:xt.ok)===!0,statusCode:xt==null?void 0:xt.status,sdkRegion:(kt=xt==null?void 0:xt.headers)===null||kt===void 0?void 0:kt.get("x-statsig-region"),isDelta:yt.includes('"is_delta":true')===!0?!0:void 0,attempt:Et,error:Be.Diagnostics._formatError(Ct)}},_enqueueDiagnosticsEvent(xt,Et,yt,Ct){const kt=Be.Diagnostics._getMarkers(yt);if(kt==null||kt.length<=0)return-1;const vt=kt[kt.length-1].timestamp-kt[0].timestamp;Be.Diagnostics._clearMarkers(yt);const bt=ht(xt,{context:"initialize",markers:kt.slice(),statsigOptions:Ct});return Et.enqueue(bt),vt}};function ft(xt,Et,yt,Ct){return Object.assign({key:yt,action:Et,step:Ct,timestamp:Date.now()},xt)}function ht(xt,Et){return{eventName:nt,user:xt,value:null,metadata:Et,time:Date.now()}}function gt(xt,Et){var yt;const Ct=(yt=Le.get(xt))!==null&&yt!==void 0?yt:[];Ct.push(Et),Le.set(xt,Ct)}function At(xt,Et){if(Et in xt)return xt[Et]}})(Diagnostics);var EventLogger$1={},CacheKey={},Hashing={},TypingUtils={};Object.defineProperty(TypingUtils,"__esModule",{value:!0}),TypingUtils._isTypeMatch=TypingUtils._typeOf=void 0;function _typeOf(Be){return Array.isArray(Be)?"array":typeof Be}TypingUtils._typeOf=_typeOf;function _isTypeMatch(Be,Le){const Ye=tt=>Array.isArray(tt)?"array":tt===null?"null":typeof tt;return Ye(Be)===Ye(Le)}TypingUtils._isTypeMatch=_isTypeMatch,function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be._getSortedObject=Be._DJB2Object=Be._DJB2=void 0;const Le=TypingUtils,Ye=ft=>{let ht=0;for(let gt=0;gt<ft.length;gt++){const At=ft.charCodeAt(gt);ht=(ht<<5)-ht+At,ht=ht&ht}return String(ht>>>0)};Be._DJB2=Ye;const tt=(ft,ht)=>(0,Be._DJB2)(JSON.stringify((0,Be._getSortedObject)(ft,ht)));Be._DJB2Object=tt;const nt=(ft,ht)=>{if(ft==null)return null;const gt=Object.keys(ft).sort(),At={};return gt.forEach(xt=>{const Et=ft[xt];if(ht===0||(0,Le._typeOf)(Et)!=="object"){At[xt]=Et;return}At[xt]=(0,Be._getSortedObject)(Et,ht!=null?ht-1:ht)}),At};Be._getSortedObject=nt}(Hashing),Object.defineProperty(CacheKey,"__esModule",{value:!0}),CacheKey._getStorageKey=CacheKey._getUserStorageKey=void 0;const Hashing_1$4=Hashing;function _getUserStorageKey(Be,Le,Ye){var tt;if(Ye)return Ye(Be,Le);const nt=Le&&Le.customIDs?Le.customIDs:{},ft=[`uid:${(tt=Le==null?void 0:Le.userID)!==null&&tt!==void 0?tt:""}`,`cids:${Object.keys(nt).sort((ht,gt)=>ht.localeCompare(gt)).map(ht=>`${ht}-${nt[ht]}`).join(",")}`,`k:${Be}`];return(0,Hashing_1$4._DJB2)(ft.join("|"))}CacheKey._getUserStorageKey=_getUserStorageKey;function _getStorageKey(Be,Le,Ye){return Le?_getUserStorageKey(Be,Le,Ye):(0,Hashing_1$4._DJB2)(`k:${Be}`)}CacheKey._getStorageKey=_getStorageKey;var NetworkConfig={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be.NetworkParam=Be.NetworkDefault=Be.Endpoint=void 0,Be.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},Be.NetworkDefault={[Be.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[Be.Endpoint._initialize]:"https://featureassets.org/v1",[Be.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},Be.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}})(NetworkConfig);var SafeJs={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be._getUnloadEvent=Be._getCurrentPageUrlSafe=Be._addDocumentEventListenerSafe=Be._addWindowEventListenerSafe=Be._isServerEnv=Be._getDocumentSafe=Be._getWindowSafe=void 0;const Le=()=>typeof window<"u"?window:null;Be._getWindowSafe=Le;const Ye=()=>{var At;const xt=(0,Be._getWindowSafe)();return(At=xt==null?void 0:xt.document)!==null&&At!==void 0?At:null};Be._getDocumentSafe=Ye;const tt=()=>{if((0,Be._getDocumentSafe)()!==null)return!1;const At=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;return typeof EdgeRuntime=="string"||At};Be._isServerEnv=tt;const nt=(At,xt)=>{const Et=(0,Be._getWindowSafe)();typeof(Et==null?void 0:Et.addEventListener)=="function"&&Et.addEventListener(At,xt)};Be._addWindowEventListenerSafe=nt;const ft=(At,xt)=>{const Et=(0,Be._getDocumentSafe)();typeof(Et==null?void 0:Et.addEventListener)=="function"&&Et.addEventListener(At,xt)};Be._addDocumentEventListenerSafe=ft;const ht=()=>{var At;try{return(At=(0,Be._getWindowSafe)())===null||At===void 0?void 0:At.location.href.split(/[?#]/)[0]}catch{return}};Be._getCurrentPageUrlSafe=ht;const gt=()=>{const At=(0,Be._getWindowSafe)();return At&&"onpagehide"in At?"pagehide":"beforeunload"};Be._getUnloadEvent=gt})(SafeJs);var StatsigEvent={};Object.defineProperty(StatsigEvent,"__esModule",{value:!0}),StatsigEvent._createLayerParameterExposure=StatsigEvent._createConfigExposure=StatsigEvent._mapExposures=StatsigEvent._createGateExposure=StatsigEvent._isExposureEvent=void 0;const CONFIG_EXPOSURE_NAME="statsig::config_exposure",GATE_EXPOSURE_NAME="statsig::gate_exposure",LAYER_EXPOSURE_NAME="statsig::layer_exposure",_createExposure=(Be,Le,Ye,tt,nt)=>(Ye.bootstrapMetadata&&(tt.bootstrapMetadata=Ye.bootstrapMetadata),{eventName:Be,user:Le,value:null,metadata:_addEvaluationDetailsToMetadata(Ye,tt),secondaryExposures:nt,time:Date.now()}),_isExposureEvent=({eventName:Be})=>Be===GATE_EXPOSURE_NAME||Be===CONFIG_EXPOSURE_NAME||Be===LAYER_EXPOSURE_NAME;StatsigEvent._isExposureEvent=_isExposureEvent;const _createGateExposure=(Be,Le,Ye)=>{var tt,nt,ft;const ht={gate:Le.name,gateValue:String(Le.value),ruleID:Le.ruleID};return((tt=Le.__evaluation)===null||tt===void 0?void 0:tt.version)!=null&&(ht.configVersion=Le.__evaluation.version),_createExposure(GATE_EXPOSURE_NAME,Be,Le.details,ht,_mapExposures((ft=(nt=Le.__evaluation)===null||nt===void 0?void 0:nt.secondary_exposures)!==null&&ft!==void 0?ft:[],Ye))};StatsigEvent._createGateExposure=_createGateExposure;function _mapExposures(Be,Le){return Be.map(Ye=>typeof Ye=="string"?(Le??{})[Ye]:Ye).filter(Ye=>Ye!=null)}StatsigEvent._mapExposures=_mapExposures;const _createConfigExposure=(Be,Le,Ye)=>{var tt,nt,ft,ht;const gt={config:Le.name,ruleID:Le.ruleID};return((tt=Le.__evaluation)===null||tt===void 0?void 0:tt.version)!=null&&(gt.configVersion=Le.__evaluation.version),((nt=Le.__evaluation)===null||nt===void 0?void 0:nt.passed)!=null&&(gt.rulePassed=String(Le.__evaluation.passed)),_createExposure(CONFIG_EXPOSURE_NAME,Be,Le.details,gt,_mapExposures((ht=(ft=Le.__evaluation)===null||ft===void 0?void 0:ft.secondary_exposures)!==null&&ht!==void 0?ht:[],Ye))};StatsigEvent._createConfigExposure=_createConfigExposure;const _createLayerParameterExposure=(Be,Le,Ye,tt)=>{var nt,ft,ht,gt,At,xt,Et;const yt=Le.__evaluation,Ct=((nt=yt==null?void 0:yt.explicit_parameters)===null||nt===void 0?void 0:nt.includes(Ye))===!0;let kt="",vt=(ft=yt==null?void 0:yt.undelegated_secondary_exposures)!==null&&ft!==void 0?ft:[];Ct&&(kt=(ht=yt.allocated_experiment_name)!==null&&ht!==void 0?ht:"",vt=(gt=yt.secondary_exposures)!==null&>!==void 0?gt:[]);const bt=(At=Le.__evaluation)===null||At===void 0?void 0:At.parameter_rule_ids,It={config:Le.name,parameterName:Ye,ruleID:(xt=bt==null?void 0:bt[Ye])!==null&&xt!==void 0?xt:Le.ruleID,allocatedExperiment:kt,isExplicitParameter:String(Ct)};return((Et=Le.__evaluation)===null||Et===void 0?void 0:Et.version)!=null&&(It.configVersion=Le.__evaluation.version),_createExposure(LAYER_EXPOSURE_NAME,Be,Le.details,It,_mapExposures(vt,tt))};StatsigEvent._createLayerParameterExposure=_createLayerParameterExposure;const _addEvaluationDetailsToMetadata=(Be,Le)=>(Le.reason=Be.reason,Be.lcut&&(Le.lcut=String(Be.lcut)),Be.receivedAt&&(Le.receivedAt=String(Be.receivedAt)),Le);var StatsigOptionsCommon={};Object.defineProperty(StatsigOptionsCommon,"__esModule",{value:!0}),StatsigOptionsCommon.LoggingEnabledOption=StatsigOptionsCommon.LogEventCompressionMode=void 0,StatsigOptionsCommon.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},StatsigOptionsCommon.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"};var StorageProvider={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be._setObjectInStorage=Be._getObjectFromStorage=Be.Storage=void 0;const Le=Log,Ye=SafeJs,tt={},nt={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:yt=>tt[yt]?tt[yt]:null,setItem:(yt,Ct)=>{tt[yt]=Ct},removeItem:yt=>{delete tt[yt]},getAllKeys:()=>Object.keys(tt)};let ft=null;try{const yt=(0,Ye._getWindowSafe)();yt&&yt.localStorage&&typeof yt.localStorage.getItem=="function"&&(ft={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:Ct=>yt.localStorage.getItem(Ct),setItem:(Ct,kt)=>yt.localStorage.setItem(Ct,kt),removeItem:Ct=>yt.localStorage.removeItem(Ct),getAllKeys:()=>Object.keys(yt.localStorage)})}catch{Le.Log.warn("Failed to setup localStorageProvider.")}let ht=ft??nt,gt=ht;function At(yt){try{return yt()}catch(Ct){if(Ct instanceof Error&&Ct.name==="SecurityError")return Be.Storage._setProvider(nt),null;throw Ct}}Be.Storage={isReady:()=>gt.isReady(),isReadyResolver:()=>gt.isReadyResolver(),getProviderName:()=>gt.getProviderName(),getItem:yt=>At(()=>gt.getItem(yt)),setItem:(yt,Ct)=>At(()=>gt.setItem(yt,Ct)),removeItem:yt=>gt.removeItem(yt),getAllKeys:()=>gt.getAllKeys(),_setProvider:yt=>{ht=yt,gt=yt},_setDisabled:yt=>{yt?gt=nt:gt=ht}};function xt(yt){const Ct=Be.Storage.getItem(yt);return JSON.parse(Ct??"null")}Be._getObjectFromStorage=xt;function Et(yt,Ct){Be.Storage.setItem(yt,JSON.stringify(Ct))}Be._setObjectInStorage=Et})(StorageProvider);var UrlConfiguration$1={};Object.defineProperty(UrlConfiguration$1,"__esModule",{value:!0}),UrlConfiguration$1.UrlConfiguration=void 0;const Hashing_1$3=Hashing,NetworkConfig_1$2=NetworkConfig,ENDPOINT_DNS_KEY_MAP={[NetworkConfig_1$2.Endpoint._initialize]:"i",[NetworkConfig_1$2.Endpoint._rgstr]:"e",[NetworkConfig_1$2.Endpoint._download_config_specs]:"d"};class UrlConfiguration{constructor(Le,Ye,tt,nt){this.customUrl=null,this.fallbackUrls=null,this.endpoint=Le,this.endpointDnsKey=ENDPOINT_DNS_KEY_MAP[Le],Ye&&(this.customUrl=Ye),!Ye&&tt&&(this.customUrl=tt.endsWith("/")?`${tt}${Le}`:`${tt}/${Le}`),nt&&(this.fallbackUrls=nt);const ft=NetworkConfig_1$2.NetworkDefault[Le];this.defaultUrl=`${ft}/${Le}`}getUrl(){var Le;return(Le=this.customUrl)!==null&&Le!==void 0?Le:this.defaultUrl}getChecksum(){var Le;const Ye=((Le=this.fallbackUrls)!==null&&Le!==void 0?Le:[]).sort().join(",");return(0,Hashing_1$3._DJB2)(this.customUrl+Ye)}}UrlConfiguration$1.UrlConfiguration=UrlConfiguration;var VisibilityObserving={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be._notifyVisibilityChanged=Be._subscribeToVisiblityChanged=Be._isUnloading=Be._isCurrentlyVisible=void 0;const Le=SafeJs,Ye="foreground",tt="background",nt=[];let ft=Ye,ht=!1;const gt=()=>ft===Ye;Be._isCurrentlyVisible=gt;const At=()=>ht;Be._isUnloading=At;const xt=yt=>{nt.unshift(yt)};Be._subscribeToVisiblityChanged=xt;const Et=yt=>{yt!==ft&&(ft=yt,nt.forEach(Ct=>Ct(yt)))};Be._notifyVisibilityChanged=Et,(0,Le._addWindowEventListenerSafe)("focus",()=>{ht=!1,(0,Be._notifyVisibilityChanged)(Ye)}),(0,Le._addWindowEventListenerSafe)("blur",()=>(0,Be._notifyVisibilityChanged)(tt)),(0,Le._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,Be._notifyVisibilityChanged)(document.visibilityState==="visible"?Ye:tt)}),(0,Le._addWindowEventListenerSafe)((0,Le._getUnloadEvent)(),()=>{ht=!0,(0,Be._notifyVisibilityChanged)(tt)})})(VisibilityObserving);var __awaiter$f=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(EventLogger$1,"__esModule",{value:!0}),EventLogger$1.EventLogger=void 0;const CacheKey_1$1=CacheKey,Hashing_1$2=Hashing,Log_1$8=Log,NetworkConfig_1$1=NetworkConfig,SafeJs_1$3=SafeJs,StatsigEvent_1=StatsigEvent,StatsigOptionsCommon_1$2=StatsigOptionsCommon,StorageProvider_1$4=StorageProvider,UrlConfiguration_1=UrlConfiguration$1,VisibilityObserving_1$1=VisibilityObserving,DEFAULT_QUEUE_SIZE=100,DEFAULT_FLUSH_INTERVAL_MS=1e4,MAX_DEDUPER_KEYS=1e3,DEDUPER_WINDOW_DURATION_MS=6e5,MAX_FAILED_LOGS=500,QUICK_FLUSH_WINDOW_MS=200,EVENT_LOGGER_MAP={},RetryFailedLogsTrigger={Startup:"startup",GainedFocus:"gained_focus"};class EventLogger{static _safeFlushAndForget(Le){var Ye;(Ye=EVENT_LOGGER_MAP[Le])===null||Ye===void 0||Ye.flush().catch(()=>{})}static _safeRetryFailedLogs(Le){var Ye;(Ye=EVENT_LOGGER_MAP[Le])===null||Ye===void 0||Ye._retryFailedLogs(RetryFailedLogsTrigger.GainedFocus)}constructor(Le,Ye,tt,nt){var ft,ht;this._sdkKey=Le,this._emitter=Ye,this._network=tt,this._options=nt,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._loggingEnabled=(ft=nt==null?void 0:nt.loggingEnabled)!==null&&ft!==void 0?ft:(nt==null?void 0:nt.disableLogging)===!0?StatsigOptionsCommon_1$2.LoggingEnabledOption.disabled:StatsigOptionsCommon_1$2.LoggingEnabledOption.browserOnly,nt!=null&&nt.loggingEnabled&&nt.disableLogging!==void 0&&Log_1$8.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging."),this._maxQueueSize=(ht=nt==null?void 0:nt.loggingBufferMaxSize)!==null&&ht!==void 0?ht:DEFAULT_QUEUE_SIZE;const gt=nt==null?void 0:nt.networkConfig;this._logEventUrlConfig=new UrlConfiguration_1.UrlConfiguration(NetworkConfig_1$1.Endpoint._rgstr,gt==null?void 0:gt.logEventUrl,gt==null?void 0:gt.api,gt==null?void 0:gt.logEventFallbackUrls)}setLogEventCompressionMode(Le){this._network.setLogEventCompressionMode(Le)}setLoggingEnabled(Le){if(this._loggingEnabled==="disabled"&&Le!=="disabled"){const Ye=this._getStorageKey(),tt=(0,StorageProvider_1$4._getObjectFromStorage)(Ye);tt&&this._queue.push(...tt),StorageProvider_1$4.Storage.removeItem(Ye)}this._loggingEnabled=Le}enqueue(Le){this._shouldLogEvent(Le)&&(this._normalizeAndAppendEvent(Le),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&EventLogger._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(Le){var Ye;const tt=(Ye=this._nonExposedChecks[Le])!==null&&Ye!==void 0?Ye:0;this._nonExposedChecks[Le]=tt+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var Le;const Ye=(0,SafeJs_1$3._isServerEnv)();Ye&&((Le=this._options)===null||Le===void 0?void 0:Le.loggingEnabled)!=="always"||(EVENT_LOGGER_MAP[this._sdkKey]=this,Ye||(0,VisibilityObserving_1$1._subscribeToVisiblityChanged)(tt=>{tt==="background"?EventLogger._safeFlushAndForget(this._sdkKey):tt==="foreground"&&EventLogger._safeRetryFailedLogs(this._sdkKey)}),this._retryFailedLogs(RetryFailedLogsTrigger.Startup),this._startBackgroundFlushInterval())}stop(){return __awaiter$f(this,void 0,void 0,function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete EVENT_LOGGER_MAP[this._sdkKey],yield this.flush()})}flush(){return __awaiter$f(this,void 0,void 0,function*(){if(this._appendAndResetNonExposedChecks(),this._queue.length===0)return;const Le=this._queue;this._queue=[],yield this._sendEvents(Le)})}_quickFlushIfNeeded(){this._hasRunQuickFlush||(this._hasRunQuickFlush=!0,!(Date.now()-this._creationTime>QUICK_FLUSH_WINDOW_MS)&&setTimeout(()=>EventLogger._safeFlushAndForget(this._sdkKey),QUICK_FLUSH_WINDOW_MS))}_shouldLogEvent(Le){var Ye;if(((Ye=this._options)===null||Ye===void 0?void 0:Ye.loggingEnabled)!=="always"&&(0,SafeJs_1$3._isServerEnv)())return!1;if(!(0,StatsigEvent_1._isExposureEvent)(Le))return!0;const tt=Le.user?Le.user:{statsigEnvironment:void 0},nt=(0,CacheKey_1$1._getUserStorageKey)(this._sdkKey,tt),ft=Le.metadata?Le.metadata:{},ht=[Le.eventName,nt,ft.gate,ft.config,ft.ruleID,ft.allocatedExperiment,ft.parameterName,String(ft.isExplicitParameter),ft.reason].join("|"),gt=this._lastExposureTimeMap[ht],At=Date.now();return gt&&At-gt<DEDUPER_WINDOW_DURATION_MS?!1:(Object.keys(this._lastExposureTimeMap).length>MAX_DEDUPER_KEYS&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[ht]=At,!0)}_sendEvents(Le){return __awaiter$f(this,void 0,void 0,function*(){var Ye,tt;if(this._loggingEnabled==="disabled")return this._saveFailedLogsToStorage(Le),!1;try{const ft=(0,VisibilityObserving_1$1._isUnloading)()&&this._network.isBeaconSupported()&&((tt=(Ye=this._options)===null||Ye===void 0?void 0:Ye.networkConfig)===null||tt===void 0?void 0:tt.networkOverrideFunc)==null;return this._emitter({name:"pre_logs_flushed",events:Le}),(ft?this._sendEventsViaBeacon(Le):yield this._sendEventsViaPost(Le)).success?(this._emitter({name:"logs_flushed",events:Le}),!0):(Log_1$8.Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(Le),!1)}catch{return Log_1$8.Log.warn("Failed to flush events."),!1}})}_sendEventsViaPost(Le){return __awaiter$f(this,void 0,void 0,function*(){var Ye;const tt=yield this._network.post(this._getRequestData(Le)),nt=(Ye=tt==null?void 0:tt.code)!==null&&Ye!==void 0?Ye:-1;return{success:nt>=200&&nt<300}})}_sendEventsViaBeacon(Le){return{success:this._network.beacon(this._getRequestData(Le))}}_getRequestData(Le){return{sdkKey:this._sdkKey,data:{events:Le},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[NetworkConfig_1$1.NetworkParam.EventCount]:String(Le.length)},credentials:"same-origin"}}_saveFailedLogsToStorage(Le){for(;Le.length>MAX_FAILED_LOGS;)Le.shift();const Ye=this._getStorageKey();try{const tt=this._getFailedLogsFromStorage(Ye);(0,StorageProvider_1$4._setObjectInStorage)(Ye,[...tt,...Le])}catch{Log_1$8.Log.warn("Unable to save failed logs to storage")}}_getFailedLogsFromStorage(Le){let Ye=[];try{const tt=(0,StorageProvider_1$4._getObjectFromStorage)(Le);return Array.isArray(tt)&&(Ye=tt),Ye}catch{return[]}}_retryFailedLogs(Le){const Ye=this._getStorageKey();__awaiter$f(this,void 0,void 0,function*(){StorageProvider_1$4.Storage.isReady()||(yield StorageProvider_1$4.Storage.isReadyResolver());const tt=(0,StorageProvider_1$4._getObjectFromStorage)(Ye);if(!tt)return;Le===RetryFailedLogsTrigger.Startup&&StorageProvider_1$4.Storage.removeItem(Ye),(yield this._sendEvents(tt))&&Le===RetryFailedLogsTrigger.GainedFocus&&StorageProvider_1$4.Storage.removeItem(Ye)}).catch(()=>{Log_1$8.Log.warn("Failed to flush stored logs")})}_getStorageKey(){return`statsig.failed_logs.${(0,Hashing_1$2._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(Le){Le.user&&(Le.user=Object.assign({},Le.user),delete Le.user.privateAttributes);const Ye={},tt=this._getCurrentPageUrl();tt&&(Ye.statsigMetadata={currentPage:tt});const nt=Object.assign(Object.assign({},Le),Ye);Log_1$8.Log.debug("Enqueued Event:",nt),this._queue.push(nt)}_appendAndResetNonExposedChecks(){Object.keys(this._nonExposedChecks).length!==0&&(this._normalizeAndAppendEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:Object.assign({},this._nonExposedChecks)}}),this._nonExposedChecks={})}_getCurrentPageUrl(){var Le;if(((Le=this._options)===null||Le===void 0?void 0:Le.includeCurrentPageUrlWithEvents)!==!1)return(0,SafeJs_1$3._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var Le,Ye;const tt=(Ye=(Le=this._options)===null||Le===void 0?void 0:Le.loggingIntervalMs)!==null&&Ye!==void 0?Ye:DEFAULT_FLUSH_INTERVAL_MS,nt=setInterval(()=>{const ft=EVENT_LOGGER_MAP[this._sdkKey];!ft||ft._flushIntervalId!==nt?clearInterval(nt):EventLogger._safeFlushAndForget(this._sdkKey)},tt);this._flushIntervalId=nt}}EventLogger$1.EventLogger=EventLogger;var StatsigMetadata={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be.StatsigMetadataProvider=Be.SDK_VERSION=void 0,Be.SDK_VERSION="3.28.1";let Le={sdkVersion:Be.SDK_VERSION,sdkType:"js-mono"};Be.StatsigMetadataProvider={get:()=>Le,add:Ye=>{Le=Object.assign(Object.assign({},Le),Ye)}}})(StatsigMetadata);var ClientInterfaces={};Object.defineProperty(ClientInterfaces,"__esModule",{value:!0});var DataAdapterCore$1={},StableID={},UUID={};Object.defineProperty(UUID,"__esModule",{value:!0}),UUID.getUUID=void 0;function getUUID(){if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();let Be=new Date().getTime(),Le=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return`xxxxxxxx-xxxx-4xxx-${"89ab"[Math.floor(Math.random()*4)]}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,tt=>{let nt=Math.random()*16;return Be>0?(nt=(Be+nt)%16|0,Be=Math.floor(Be/16)):(nt=(Le+nt)%16|0,Le=Math.floor(Le/16)),(tt==="x"?nt:nt&7|8).toString(16)})}UUID.getUUID=getUUID,Object.defineProperty(StableID,"__esModule",{value:!0}),StableID.getCookieName=StableID.StableID=void 0;const CacheKey_1=CacheKey,Log_1$7=Log,SafeJs_1$2=SafeJs,StorageProvider_1$3=StorageProvider,UUID_1=UUID,PROMISE_MAP={},COOKIE_ENABLED_MAP={},DISABLED_MAP={};StableID.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:Be=>{if(DISABLED_MAP[Be])return null;if(PROMISE_MAP[Be]!=null)return PROMISE_MAP[Be];let Le=null;return Le=_loadFromCookie(Be),Le!=null?(PROMISE_MAP[Be]=Le,_persistToStorage(Le,Be),Le):(Le=_loadFromStorage(Be),Le==null&&(Le=(0,UUID_1.getUUID)()),_persistToStorage(Le,Be),_persistToCookie(Le,Be),PROMISE_MAP[Be]=Le,Le)},setOverride:(Be,Le)=>{PROMISE_MAP[Le]=Be,_persistToStorage(Be,Le),_persistToCookie(Be,Le)},_setCookiesEnabled:(Be,Le)=>{COOKIE_ENABLED_MAP[Be]=Le},_setDisabled:(Be,Le)=>{DISABLED_MAP[Be]=Le}};function _getStableIDStorageKey(Be){return`statsig.stable_id.${(0,CacheKey_1._getStorageKey)(Be)}`}function _persistToStorage(Be,Le){const Ye=_getStableIDStorageKey(Le);try{(0,StorageProvider_1$3._setObjectInStorage)(Ye,Be)}catch{Log_1$7.Log.warn("Failed to save StableID to storage")}}function _loadFromStorage(Be){const Le=_getStableIDStorageKey(Be);return(0,StorageProvider_1$3._getObjectFromStorage)(Le)}function _loadFromCookie(Be){if(!COOKIE_ENABLED_MAP[Be]||(0,SafeJs_1$2._getDocumentSafe)()==null)return null;const Le=document.cookie.split(";");for(const Ye of Le){const[tt,nt]=Ye.trim().split("=");if(tt===getCookieName(Be))return decodeURIComponent(nt)}return null}function _persistToCookie(Be,Le){if(!COOKIE_ENABLED_MAP[Le]||(0,SafeJs_1$2._getDocumentSafe)()==null)return;const Ye=new Date;Ye.setFullYear(Ye.getFullYear()+1),document.cookie=`${getCookieName(Le)}=${encodeURIComponent(Be)}; expires=${Ye.toUTCString()}; path=/`}function getCookieName(Be){return`statsig.stable_id.${(0,CacheKey_1._getStorageKey)(Be)}`}StableID.getCookieName=getCookieName;var StatsigUser={};Object.defineProperty(StatsigUser,"__esModule",{value:!0}),StatsigUser._getFullUserHash=StatsigUser._normalizeUser=void 0;const Hashing_1$1=Hashing,Log_1$6=Log;function _normalizeUser(Be,Le,Ye){try{const tt=JSON.parse(JSON.stringify(Be));return Le!=null&&Le.environment!=null?tt.statsigEnvironment=Le.environment:Ye!=null&&(tt.statsigEnvironment={tier:Ye}),tt}catch{return Log_1$6.Log.error("Failed to JSON.stringify user"),{statsigEnvironment:void 0}}}StatsigUser._normalizeUser=_normalizeUser;function _getFullUserHash(Be){return Be?(0,Hashing_1$1._DJB2Object)(Be):null}StatsigUser._getFullUserHash=_getFullUserHash;var TypedJsonParse={};Object.defineProperty(TypedJsonParse,"__esModule",{value:!0}),TypedJsonParse._typedJsonParse=void 0;const Log_1$5=Log;function _typedJsonParse(Be,Le,Ye){try{const tt=JSON.parse(Be);if(tt&&typeof tt=="object"&&Le in tt)return tt}catch{}return Log_1$5.Log.error(`Failed to parse ${Ye}`),null}TypedJsonParse._typedJsonParse=_typedJsonParse;var __awaiter$e=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(DataAdapterCore$1,"__esModule",{value:!0}),DataAdapterCore$1._makeDataAdapterResult=DataAdapterCore$1.DataAdapterCore=void 0;const Log_1$4=Log,StableID_1$2=StableID,StatsigUser_1=StatsigUser,StorageProvider_1$2=StorageProvider,TypedJsonParse_1=TypedJsonParse,CACHE_LIMIT=10,MAX_CACHE_WRITE_ATTEMPTS=8;class DataAdapterCore{constructor(Le,Ye){this._adapterName=Le,this._cacheSuffix=Ye,this._options=null,this._sdkKey=null,this._cacheLimit=CACHE_LIMIT,this._lastModifiedStoreKey=`statsig.last_modified_time.${Ye}`,this._inMemoryCache=new InMemoryCache}attach(Le,Ye,tt){this._sdkKey=Le,this._options=Ye}getDataSync(Le){const Ye=Le&&(0,StatsigUser_1._normalizeUser)(Le,this._options),tt=this._getCacheKey(Ye),nt=this._inMemoryCache.get(tt,Ye);if(nt&&this._getIsCacheValueValid(nt))return nt;const ft=this._loadFromCache(tt);return ft&&this._getIsCacheValueValid(ft)?(this._inMemoryCache.add(tt,ft,this._cacheLimit),this._inMemoryCache.get(tt,Ye)):null}setData(Le,Ye){const tt=Ye&&(0,StatsigUser_1._normalizeUser)(Ye,this._options),nt=this._getCacheKey(tt);this._inMemoryCache.add(nt,_makeDataAdapterResult("Bootstrap",Le,null,tt),this._cacheLimit)}_getIsCacheValueValid(Le){return Le.stableID==null||Le.stableID===StableID_1$2.StableID.get(this._getSdkKey())}_getDataAsyncImpl(Le,Ye,tt){return __awaiter$e(this,void 0,void 0,function*(){StorageProvider_1$2.Storage.isReady()||(yield StorageProvider_1$2.Storage.isReadyResolver());const nt=Le??this.getDataSync(Ye),ft=[this._fetchAndPrepFromNetwork(nt,Ye,tt)];return tt!=null&&tt.timeoutMs&&ft.push(new Promise(ht=>setTimeout(ht,tt.timeoutMs)).then(()=>(Log_1$4.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(ft)})}_prefetchDataImpl(Le,Ye){return __awaiter$e(this,void 0,void 0,function*(){const tt=Le&&(0,StatsigUser_1._normalizeUser)(Le,this._options),nt=this._getCacheKey(tt),ft=yield this._getDataAsyncImpl(null,tt,Ye);ft&&this._inMemoryCache.add(nt,Object.assign(Object.assign({},ft),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(Le,Ye,tt){return __awaiter$e(this,void 0,void 0,function*(){var nt;const ft=(nt=Le==null?void 0:Le.data)!==null&&nt!==void 0?nt:null,ht=Le!=null&&this._isCachedResultValidFor204(Le,Ye),gt=yield this._fetchFromNetwork(ft,Ye,tt,ht);if(!gt)return Log_1$4.Log.debug("No response returned for latest value"),null;const At=(0,TypedJsonParse_1._typedJsonParse)(gt,"has_updates","Response"),xt=this._getSdkKey(),Et=StableID_1$2.StableID.get(xt);let yt=null;if((At==null?void 0:At.has_updates)===!0)yt=_makeDataAdapterResult("Network",gt,Et,Ye);else if(ft&&(At==null?void 0:At.has_updates)===!1)yt=_makeDataAdapterResult("NetworkNotModified",ft,Et,Ye);else return null;const Ct=this._getCacheKey(Ye);return this._inMemoryCache.add(Ct,yt,this._cacheLimit),this._writeToCache(Ct,yt),yt})}_getSdkKey(){return this._sdkKey!=null?this._sdkKey:(Log_1$4.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(Le){var Ye;const tt=(Ye=StorageProvider_1$2.Storage.getItem)===null||Ye===void 0?void 0:Ye.call(StorageProvider_1$2.Storage,Le);if(tt==null)return null;const nt=(0,TypedJsonParse_1._typedJsonParse)(tt,"source","Cached Result");return nt?Object.assign(Object.assign({},nt),{source:"Cache"}):null}_writeToCache(Le,Ye){const tt=JSON.stringify(Ye);for(let nt=0;nt<MAX_CACHE_WRITE_ATTEMPTS;nt++)try{StorageProvider_1$2.Storage.setItem(Le,tt);break}catch(ft){if(!(ft instanceof Error)||!(ft.toString().includes("QuotaExceededError")||ft.toString().includes("QUOTA_EXCEEDED_ERR"))||this._cacheLimit<=1)throw ft;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(Le,this._cacheLimit-1)}this._runLocalStorageCacheEviction(Le)}_runLocalStorageCacheEviction(Le,Ye=this._cacheLimit){var tt;const nt=(tt=(0,StorageProvider_1$2._getObjectFromStorage)(this._lastModifiedStoreKey))!==null&&tt!==void 0?tt:{};nt[Le]=Date.now();const ft=_getEvictableKeys(nt,Ye);for(const ht of ft)delete nt[ht],StorageProvider_1$2.Storage.removeItem(ht);(0,StorageProvider_1$2._setObjectInStorage)(this._lastModifiedStoreKey,nt)}}DataAdapterCore$1.DataAdapterCore=DataAdapterCore;function _makeDataAdapterResult(Be,Le,Ye,tt){return{source:Be,data:Le,receivedAt:Date.now(),stableID:Ye,fullUserHash:(0,StatsigUser_1._getFullUserHash)(tt)}}DataAdapterCore$1._makeDataAdapterResult=_makeDataAdapterResult;class InMemoryCache{constructor(){this._data={}}get(Le,Ye){var tt;const nt=this._data[Le],ft=nt==null?void 0:nt.stableID,ht=(tt=Ye==null?void 0:Ye.customIDs)===null||tt===void 0?void 0:tt.stableID;return ht&&ft&&ht!==ft?(Log_1$4.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):nt}add(Le,Ye,tt){const nt=_getEvictableKeys(this._data,tt-1);for(const ft of nt)delete this._data[ft];this._data[Le]=Ye}merge(Le){this._data=Object.assign(Object.assign({},this._data),Le)}}function _getEvictableKeys(Be,Le){const Ye=Object.keys(Be);return Ye.length<=Le?[]:Le===0?Ye:Ye.sort((tt,nt)=>{const ft=Be[tt],ht=Be[nt];return typeof ft=="object"&&typeof ht=="object"?ft.receivedAt-ht.receivedAt:ft-ht}).slice(0,Ye.length-Le)}var DownloadConfigSpecsResponse={};Object.defineProperty(DownloadConfigSpecsResponse,"__esModule",{value:!0});var ErrorBoundary={},SDKType={};Object.defineProperty(SDKType,"__esModule",{value:!0}),SDKType.SDKType=void 0;const SDK_CLIENT={};let suffix;SDKType.SDKType={_get:Be=>{var Le;return((Le=SDK_CLIENT[Be])!==null&&Le!==void 0?Le:"js-mono")+(suffix??"")},_setClientType(Be,Le){SDK_CLIENT[Be]=Le},_setBindingType(Be){(!suffix||suffix==="-react")&&(suffix="-"+Be)}},function(Be){var Le=commonjsGlobal&&commonjsGlobal.__awaiter||function(yt,Ct,kt,vt){function bt(It){return It instanceof kt?It:new kt(function(wt){wt(It)})}return new(kt||(kt=Promise))(function(It,wt){function Rt(Dt){try{Bt(vt.next(Dt))}catch(Pt){wt(Pt)}}function Tt(Dt){try{Bt(vt.throw(Dt))}catch(Pt){wt(Pt)}}function Bt(Dt){Dt.done?It(Dt.value):bt(Dt.value).then(Rt,Tt)}Bt((vt=vt.apply(yt,Ct||[])).next())})};Object.defineProperty(Be,"__esModule",{value:!0}),Be.ErrorBoundary=Be.EXCEPTION_ENDPOINT=void 0;const Ye=Log,tt=SDKType,nt=StatsigMetadata;Be.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";const ft="[Statsig] UnknownError";class ht{constructor(Ct,kt,vt,bt){this._sdkKey=Ct,this._options=kt,this._emitter=vt,this._lastSeenError=bt,this._seen=new Set}wrap(Ct,kt){try{const vt=Ct;xt(vt).forEach(bt=>{const It=vt[bt];"$EB"in It||(vt[bt]=(...wt)=>this._capture(kt?`${kt}:${bt}`:bt,()=>It.apply(Ct,wt)),vt[bt].$EB=!0)})}catch(vt){this._onError("eb:wrap",vt)}}logError(Ct,kt){this._onError(Ct,kt)}getLastSeenErrorAndReset(){const Ct=this._lastSeenError;return this._lastSeenError=void 0,Ct??null}attachErrorIfNoneExists(Ct){this._lastSeenError||(this._lastSeenError=gt(Ct))}_capture(Ct,kt){try{const vt=kt();return vt&&vt instanceof Promise?vt.catch(bt=>this._onError(Ct,bt)):vt}catch(vt){return this._onError(Ct,vt),null}}_onError(Ct,kt){try{Ye.Log.warn(`Caught error in ${Ct}`,{error:kt}),Le(this,void 0,void 0,function*(){var bt,It,wt,Rt,Tt,Bt,Dt;const Pt=kt||Error(ft),Nt=Pt instanceof Error,Lt=Nt?Pt.name:"No Name",Wt=gt(Pt);if(this._lastSeenError=Wt,this._seen.has(Lt))return;if(this._seen.add(Lt),!((It=(bt=this._options)===null||bt===void 0?void 0:bt.networkConfig)===null||It===void 0)&&It.preventAllNetworkTraffic){(wt=this._emitter)===null||wt===void 0||wt.call(this,{name:"error",error:kt,tag:Ct});return}const $t=tt.SDKType._get(this._sdkKey),Kt=nt.StatsigMetadataProvider.get(),Vt=Nt?Pt.stack:At(Pt),Ut=Object.assign({tag:Ct,exception:Lt,info:Vt,statsigOptions:Et(this._options)},Object.assign(Object.assign({},Kt),{sdkType:$t}));yield((Bt=(Tt=(Rt=this._options)===null||Rt===void 0?void 0:Rt.networkConfig)===null||Tt===void 0?void 0:Tt.networkOverrideFunc)!==null&&Bt!==void 0?Bt:fetch)(Be.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String($t),"STATSIG-SDK-VERSION":String(Kt.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(Ut)}),(Dt=this._emitter)===null||Dt===void 0||Dt.call(this,{name:"error",error:kt,tag:Ct})}).then(()=>{}).catch(()=>{})}catch{}}}Be.ErrorBoundary=ht;function gt(yt){return yt instanceof Error?yt:typeof yt=="string"?new Error(yt):new Error("An unknown error occurred.")}function At(yt){try{return JSON.stringify(yt)}catch{return ft}}function xt(yt){const Ct=new Set;let kt=Object.getPrototypeOf(yt);for(;kt&&kt!==Object.prototype;)Object.getOwnPropertyNames(kt).filter(vt=>typeof(kt==null?void 0:kt[vt])=="function").forEach(vt=>Ct.add(vt)),kt=Object.getPrototypeOf(kt);return Array.from(Ct)}function Et(yt){if(!yt)return{};const Ct={};return Object.keys(yt).forEach(kt=>{const vt=kt,bt=yt[vt];switch(typeof bt){case"number":case"bigint":case"boolean":Ct[String(vt)]=bt;break;case"string":bt.length<50?Ct[String(vt)]=bt:Ct[String(vt)]="set";break;case"object":vt==="environment"?Ct.environment=bt:vt==="networkConfig"?Ct.networkConfig=bt:Ct[String(vt)]=bt!=null?"set":"unset";break}}),Ct}}(ErrorBoundary);var EvaluationOptions={};Object.defineProperty(EvaluationOptions,"__esModule",{value:!0});var EvaluationTypes={};Object.defineProperty(EvaluationTypes,"__esModule",{value:!0});var InitializeResponse={};Object.defineProperty(InitializeResponse,"__esModule",{value:!0});var MemoKey={};Object.defineProperty(MemoKey,"__esModule",{value:!0}),MemoKey.createMemoKey=MemoKey.MemoPrefix=void 0,MemoKey.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};const EXIST_KEYS=new Set([]),DO_NOT_MEMO_KEYS=new Set(["userPersistedValues"]);function createMemoKey(Be,Le,Ye){let tt=`${Be}|${Le}`;if(!Ye)return tt;for(const nt of Object.keys(Ye)){if(DO_NOT_MEMO_KEYS.has(nt))return;EXIST_KEYS.has(nt)?tt+=`|${nt}=true`:tt+=`|${nt}=${Ye[nt]}`}return tt}MemoKey.createMemoKey=createMemoKey;var NetworkCore$1={},NetworkFallbackResolver$1={},DnsTxtQuery={},__awaiter$d=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(DnsTxtQuery,"__esModule",{value:!0}),DnsTxtQuery._fetchTxtRecords=void 0;const FEATURE_ASSETS_DNS_QUERY=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),DNS_QUERY_ENDPOINT="https://cloudflare-dns.com/dns-query",DOMAIN_CHARS=["i","e","d"],MAX_START_LOOKUP=200;function _fetchTxtRecords(Be){return __awaiter$d(this,void 0,void 0,function*(){const Le=yield Be(DNS_QUERY_ENDPOINT,{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:FEATURE_ASSETS_DNS_QUERY});if(!Le.ok){const nt=new Error("Failed to fetch TXT records from DNS");throw nt.name="DnsTxtFetchError",nt}const Ye=yield Le.arrayBuffer(),tt=new Uint8Array(Ye);return _parseDnsResponse(tt)})}DnsTxtQuery._fetchTxtRecords=_fetchTxtRecords;function _parseDnsResponse(Be){const Le=Be.findIndex((tt,nt)=>nt<MAX_START_LOOKUP&&String.fromCharCode(tt)==="="&&DOMAIN_CHARS.includes(String.fromCharCode(Be[nt-1])));if(Le===-1){const tt=new Error("Failed to parse TXT records from DNS");throw tt.name="DnsTxtParseError",tt}let Ye="";for(let tt=Le-1;tt<Be.length;tt++)Ye+=String.fromCharCode(Be[tt]);return Ye.split(",")}var __awaiter$c=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(NetworkFallbackResolver$1,"__esModule",{value:!0}),NetworkFallbackResolver$1._isDomainFailure=NetworkFallbackResolver$1.NetworkFallbackResolver=void 0;const DnsTxtQuery_1=DnsTxtQuery,Hashing_1=Hashing,Log_1$3=Log,StorageProvider_1$1=StorageProvider,DEFAULT_TTL_MS=7*24*60*60*1e3,COOLDOWN_TIME_MS=4*60*60*1e3;class NetworkFallbackResolver{constructor(Le){var Ye;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=(Ye=Le.networkConfig)===null||Ye===void 0?void 0:Ye.networkOverrideFunc}setErrorBoundary(Le){this._errorBoundary=Le}tryBumpExpiryTime(Le,Ye){var tt;const nt=(tt=this._fallbackInfo)===null||tt===void 0?void 0:tt[Ye.endpoint];nt&&(nt.expiryTime=Date.now()+DEFAULT_TTL_MS,_tryWriteFallbackInfoToCache(Le,Object.assign(Object.assign({},this._fallbackInfo),{[Ye.endpoint]:nt})))}getActiveFallbackUrl(Le,Ye){var tt,nt;if(Ye.customUrl!=null&&Ye.fallbackUrls!=null)return null;let ft=this._fallbackInfo;ft==null&&(ft=(tt=_readFallbackInfoFromCache(Le))!==null&&tt!==void 0?tt:{},this._fallbackInfo=ft);const ht=ft[Ye.endpoint];return!ht||Date.now()>((nt=ht.expiryTime)!==null&&nt!==void 0?nt:0)||Ye.getChecksum()!==ht.urlConfigChecksum?(delete ft[Ye.endpoint],this._fallbackInfo=ft,_tryWriteFallbackInfoToCache(Le,this._fallbackInfo),null):ht.url?ht.url:null}tryFetchUpdatedFallbackInfo(Le,Ye,tt,nt){return __awaiter$c(this,void 0,void 0,function*(){var ft,ht;try{if(!_isDomainFailure(tt,nt))return!1;const At=Ye.customUrl==null&&Ye.fallbackUrls==null?yield this._tryFetchFallbackUrlsFromNetwork(Ye):Ye.fallbackUrls,xt=this._pickNewFallbackUrl((ft=this._fallbackInfo)===null||ft===void 0?void 0:ft[Ye.endpoint],At);return xt?(this._updateFallbackInfoWithNewUrl(Le,Ye,xt),!0):!1}catch(gt){return(ht=this._errorBoundary)===null||ht===void 0||ht.logError("tryFetchUpdatedFallbackInfo",gt),!1}})}_updateFallbackInfoWithNewUrl(Le,Ye,tt){var nt,ft,ht;const gt={urlConfigChecksum:Ye.getChecksum(),url:tt,expiryTime:Date.now()+DEFAULT_TTL_MS,previous:[]},At=Ye.endpoint,xt=(nt=this._fallbackInfo)===null||nt===void 0?void 0:nt[At];xt&>.previous.push(...xt.previous),gt.previous.length>10&&(gt.previous=[]);const Et=(ht=(ft=this._fallbackInfo)===null||ft===void 0?void 0:ft[At])===null||ht===void 0?void 0:ht.url;Et!=null&>.previous.push(Et),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[At]:gt}),_tryWriteFallbackInfoToCache(Le,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(Le){return __awaiter$c(this,void 0,void 0,function*(){var Ye;const tt=this._dnsQueryCooldowns[Le.endpoint];if(tt&&Date.now()<tt)return null;this._dnsQueryCooldowns[Le.endpoint]=Date.now()+COOLDOWN_TIME_MS;const nt=[],ft=yield(0,DnsTxtQuery_1._fetchTxtRecords)((Ye=this._networkOverrideFunc)!==null&&Ye!==void 0?Ye:fetch),ht=_extractPathFromUrl(Le.defaultUrl);for(const gt of ft){if(!gt.startsWith(Le.endpointDnsKey+"="))continue;const At=gt.split("=");if(At.length>1){let xt=At[1];xt.endsWith("/")&&(xt=xt.slice(0,-1)),nt.push(`https://${xt}${ht}`)}}return nt})}_pickNewFallbackUrl(Le,Ye){var tt;if(Ye==null)return null;const nt=new Set((tt=Le==null?void 0:Le.previous)!==null&&tt!==void 0?tt:[]),ft=Le==null?void 0:Le.url;let ht=null;for(const gt of Ye){const At=gt.endsWith("/")?gt.slice(0,-1):gt;if(!nt.has(gt)&&At!==ft){ht=At;break}}return ht}}NetworkFallbackResolver$1.NetworkFallbackResolver=NetworkFallbackResolver;function _isDomainFailure(Be,Le){var Ye;const tt=(Ye=Be==null?void 0:Be.toLowerCase())!==null&&Ye!==void 0?Ye:"";return Le||tt.includes("uncaught exception")||tt.includes("failed to fetch")||tt.includes("networkerror when attempting to fetch resource")}NetworkFallbackResolver$1._isDomainFailure=_isDomainFailure;function _getFallbackInfoStorageKey(Be){return`statsig.network_fallback.${(0,Hashing_1._DJB2)(Be)}`}function _tryWriteFallbackInfoToCache(Be,Le){const Ye=_getFallbackInfoStorageKey(Be);if(!Le||Object.keys(Le).length===0){StorageProvider_1$1.Storage.removeItem(Ye);return}StorageProvider_1$1.Storage.setItem(Ye,JSON.stringify(Le))}function _readFallbackInfoFromCache(Be){const Le=_getFallbackInfoStorageKey(Be),Ye=StorageProvider_1$1.Storage.getItem(Le);if(!Ye)return null;try{return JSON.parse(Ye)}catch{return Log_1$3.Log.error("Failed to parse FallbackInfo"),null}}function _extractPathFromUrl(Be){try{return new URL(Be).pathname}catch{return null}}var SDKFlags={};Object.defineProperty(SDKFlags,"__esModule",{value:!0}),SDKFlags.SDKFlags=void 0;const FLAGMAP={};SDKFlags.SDKFlags={setFlags:(Be,Le)=>{FLAGMAP[Be]=Le},get:(Be,Le)=>{var Ye,tt;return(tt=(Ye=FLAGMAP[Be])===null||Ye===void 0?void 0:Ye[Le])!==null&&tt!==void 0?tt:!1}};var SessionID={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be.StatsigSession=Be.SessionID=void 0;const Le=$_StatsigGlobal,Ye=CacheKey,tt=Log,nt=StorageProvider,ft=UUID,ht=30*60*1e3,gt=4*60*60*1e3,At={};Be.SessionID={get:Rt=>Be.StatsigSession.get(Rt).data.sessionID},Be.StatsigSession={get:Rt=>{At[Rt]==null&&(At[Rt]=xt(Rt));const Tt=At[Rt];return yt(Tt)},overrideInitialSessionID:(Rt,Tt)=>{At[Tt]=Et(Rt,Tt)}};function xt(Rt){let Tt=wt(Rt);const Bt=Date.now();return Tt||(Tt={sessionID:(0,ft.getUUID)(),startTime:Bt,lastUpdate:Bt}),{data:Tt,sdkKey:Rt}}function Et(Rt,Tt){const Bt=Date.now();return{data:{sessionID:Rt,startTime:Bt,lastUpdate:Bt},sdkKey:Tt}}function yt(Rt){const Tt=Date.now(),Bt=Rt.data,Dt=Rt.sdkKey;if(kt(Bt)||vt(Bt)){Bt.sessionID=(0,ft.getUUID)(),Bt.startTime=Tt;const Nt=__STATSIG__==null?void 0:__STATSIG__.instance(Dt);Nt&&Nt.$emt({name:"session_expired"})}Bt.lastUpdate=Tt,It(Bt,Rt.sdkKey),clearTimeout(Rt.idleTimeoutID),clearTimeout(Rt.ageTimeoutID);const Pt=Tt-Bt.startTime;return Rt.idleTimeoutID=Ct(Dt,ht),Rt.ageTimeoutID=Ct(Dt,gt-Pt),Rt}function Ct(Rt,Tt){return setTimeout(()=>{var Bt;const Dt=(Bt=(0,Le._getStatsigGlobal)())===null||Bt===void 0?void 0:Bt.instance(Rt);Dt&&Dt.$emt({name:"session_expired"})},Tt)}function kt({lastUpdate:Rt}){return Date.now()-Rt>ht}function vt({startTime:Rt}){return Date.now()-Rt>gt}function bt(Rt){return`statsig.session_id.${(0,Ye._getStorageKey)(Rt)}`}function It(Rt,Tt){const Bt=bt(Tt);try{(0,nt._setObjectInStorage)(Bt,Rt)}catch{tt.Log.warn("Failed to save SessionID")}}function wt(Rt){const Tt=bt(Rt);return(0,nt._getObjectFromStorage)(Tt)}})(SessionID);var StatsigClientEventEmitter={};Object.defineProperty(StatsigClientEventEmitter,"__esModule",{value:!0}),StatsigClientEventEmitter.ErrorTag=void 0,StatsigClientEventEmitter.ErrorTag={NetworkError:"NetworkError"};var __awaiter$b=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(NetworkCore$1,"__esModule",{value:!0}),NetworkCore$1.NetworkCore=void 0;const __StatsigGlobal_1$1=$_StatsigGlobal,Diagnostics_1=Diagnostics,Log_1$2=Log,NetworkConfig_1=NetworkConfig,NetworkFallbackResolver_1=NetworkFallbackResolver$1,SDKFlags_1=SDKFlags,SDKType_1=SDKType,SafeJs_1$1=SafeJs,SessionID_1$1=SessionID,StableID_1$1=StableID,StatsigClientEventEmitter_1=StatsigClientEventEmitter,StatsigMetadata_1=StatsigMetadata,StatsigOptionsCommon_1$1=StatsigOptionsCommon,VisibilityObserving_1=VisibilityObserving,DEFAULT_TIMEOUT_MS=1e4,BACKOFF_BASE_MS=500,BACKOFF_MAX_MS=3e4,RATE_LIMIT_WINDOW_MS=1e3,RATE_LIMIT_MAX_REQ_COUNT=50,LEAK_RATE=RATE_LIMIT_MAX_REQ_COUNT/RATE_LIMIT_WINDOW_MS,RETRYABLE_CODES=new Set([408,500,502,503,504,522,524,599]);class NetworkCore{constructor(Le,Ye){this._emitter=Ye,this._errorBoundary=null,this._timeout=DEFAULT_TIMEOUT_MS,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,Le&&(this._options=Le),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new NetworkFallbackResolver_1.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(Le))}setLogEventCompressionMode(Le){this._options.logEventCompressionMode=Le}setErrorBoundary(Le){this._errorBoundary=Le,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(Le)}isBeaconSupported(){return typeof navigator<"u"&&typeof navigator.sendBeacon=="function"}getLastUsedInitUrlAndReset(){const Le=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,Le}beacon(Le){if(!_ensureValidSdkKey(Le))return!1;const Ye=this._getInternalRequestArgs("POST",Le),tt=this._getPopulatedURL(Ye),nt=navigator;return nt.sendBeacon.bind(nt)(tt,Ye.body)}post(Le){return __awaiter$b(this,void 0,void 0,function*(){const Ye=this._getInternalRequestArgs("POST",Le);return this._tryEncodeBody(Ye),yield this._tryToCompressBody(Ye),this._sendRequest(Ye)})}get(Le){const Ye=this._getInternalRequestArgs("GET",Le);return this._sendRequest(Ye)}_sendRequest(Le){return __awaiter$b(this,void 0,void 0,function*(){var Ye,tt,nt,ft;if(!_ensureValidSdkKey(Le)||this._netConfig.preventAllNetworkTraffic)return null;const{method:ht,body:gt,retries:At,attempt:xt}=Le,Et=Le.urlConfig.endpoint;if(this._isRateLimited(Et))return Log_1$2.Log.warn(`Request to ${Et} was blocked because you are making requests too frequently.`),null;const yt=xt??1;let Ct=!1;const kt=this._getPopulatedURL(Le);let vt=null;const bt=(0,VisibilityObserving_1._isUnloading)();try{const It={method:ht,body:gt,headers:Object.assign({},Le.headers),priority:Le.priority,keepalive:bt};_tryMarkInitStart(Le,yt);const wt=this._leakyBucket[Et];wt&&(wt.lastRequestTime=Date.now(),this._leakyBucket[Et]=wt);const Rt=(Ye=this._netConfig.networkOverrideFunc)!==null&&Ye!==void 0?Ye:fetch;let Tt;if(vt=yield Promise.race([Rt(kt,It).finally(()=>clearTimeout(Tt)),new Promise((Dt,Pt)=>{Tt=setTimeout(()=>{Ct=!0,Pt(new Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})]),!vt.ok){const Dt=yield vt.text().catch(()=>"No Text"),Pt=new Error(`NetworkError: ${kt} ${Dt}`);throw Pt.name="NetworkError",Pt}const Bt=yield vt.text();return _tryMarkInitEnd(Le,vt,yt,Bt),this._fallbackResolver.tryBumpExpiryTime(Le.sdkKey,Le.urlConfig),{body:Bt,code:vt.status}}catch(It){const wt=_getErrorMessage(It),Rt=_didTimeout(wt??"",Ct);if(_tryMarkInitEnd(Le,vt,yt,"",It),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(Le.sdkKey,Le.urlConfig,wt,Rt))&&(Le.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(Le.sdkKey,Le.urlConfig)),!At||yt>At||!RETRYABLE_CODES.has((tt=vt==null?void 0:vt.status)!==null&&tt!==void 0?tt:500)){(nt=this._emitter)===null||nt===void 0||nt.call(this,{name:"error",error:It,tag:StatsigClientEventEmitter_1.ErrorTag.NetworkError,requestArgs:Le});const Bt=`A networking error occurred during ${ht} request to ${kt}.`;return Log_1$2.Log.error(Bt,wt,It),(ft=this._errorBoundary)===null||ft===void 0||ft.attachErrorIfNoneExists(Bt),null}return yield _exponentialBackoff(yt),this._sendRequest(Object.assign(Object.assign({},Le),{retries:At,attempt:yt+1}))}})}_getLogEventCompressionMode(Le){let Ye=Le==null?void 0:Le.logEventCompressionMode;return!Ye&&(Le==null?void 0:Le.disableCompression)===!0&&(Ye=StatsigOptionsCommon_1$1.LogEventCompressionMode.Disabled),Ye||(Ye=StatsigOptionsCommon_1$1.LogEventCompressionMode.Enabled),Ye}_isRateLimited(Le){var Ye;const tt=Date.now(),nt=(Ye=this._leakyBucket[Le])!==null&&Ye!==void 0?Ye:{count:0,lastRequestTime:tt},ft=tt-nt.lastRequestTime,ht=Math.floor(ft*LEAK_RATE);return nt.count=Math.max(0,nt.count-ht),nt.count>=RATE_LIMIT_MAX_REQ_COUNT?!0:(nt.count+=1,nt.lastRequestTime=tt,this._leakyBucket[Le]=nt,!1)}_getPopulatedURL(Le){var Ye;const tt=(Ye=Le.fallbackUrl)!==null&&Ye!==void 0?Ye:Le.urlConfig.getUrl();(Le.urlConfig.endpoint===NetworkConfig_1.Endpoint._initialize||Le.urlConfig.endpoint===NetworkConfig_1.Endpoint._download_config_specs)&&(this._lastUsedInitUrl=tt);const nt=Object.assign({[NetworkConfig_1.NetworkParam.SdkKey]:Le.sdkKey,[NetworkConfig_1.NetworkParam.SdkType]:SDKType_1.SDKType._get(Le.sdkKey),[NetworkConfig_1.NetworkParam.SdkVersion]:StatsigMetadata_1.SDK_VERSION,[NetworkConfig_1.NetworkParam.Time]:String(Date.now()),[NetworkConfig_1.NetworkParam.SessionID]:SessionID_1$1.SessionID.get(Le.sdkKey)},Le.params),ft=Object.keys(nt).map(ht=>`${encodeURIComponent(ht)}=${encodeURIComponent(nt[ht])}`).join("&");return`${tt}${ft?`?${ft}`:""}`}_tryEncodeBody(Le){var Ye;const tt=(0,SafeJs_1$1._getWindowSafe)(),nt=Le.body;if(!(!Le.isStatsigEncodable||this._options.disableStatsigEncoding||typeof nt!="string"||(0,__StatsigGlobal_1$1._getStatsigGlobalFlag)("no-encode")!=null||!(tt!=null&&tt.btoa)))try{Le.body=tt.btoa(nt).split("").reverse().join(""),Le.params=Object.assign(Object.assign({},(Ye=Le.params)!==null&&Ye!==void 0?Ye:{}),{[NetworkConfig_1.NetworkParam.StatsigEncoded]:"1"})}catch(ft){Log_1$2.Log.warn(`Request encoding failed for ${Le.urlConfig.getUrl()}`,ft)}}_tryToCompressBody(Le){return __awaiter$b(this,void 0,void 0,function*(){var Ye;const tt=Le.body;if(!(typeof tt!="string"||!_allowCompression(Le,this._options)))try{const nt=new TextEncoder().encode(tt),ft=new CompressionStream("gzip"),ht=ft.writable.getWriter();ht.write(nt).catch(Log_1$2.Log.error),ht.close().catch(Log_1$2.Log.error);const gt=ft.readable.getReader(),At=[];let xt;for(;!(xt=yield gt.read()).done;)At.push(xt.value);const Et=At.reduce((kt,vt)=>kt+vt.length,0),yt=new Uint8Array(Et);let Ct=0;for(const kt of At)yt.set(kt,Ct),Ct+=kt.length;Le.body=yt,Le.params=Object.assign(Object.assign({},(Ye=Le.params)!==null&&Ye!==void 0?Ye:{}),{[NetworkConfig_1.NetworkParam.IsGzipped]:"1"})}catch(nt){Log_1$2.Log.warn(`Request compression failed for ${Le.urlConfig.getUrl()}`,nt)}})}_getInternalRequestArgs(Le,Ye){const tt=this._fallbackResolver.getActiveFallbackUrl(Ye.sdkKey,Ye.urlConfig),nt=Object.assign(Object.assign({},Ye),{method:Le,fallbackUrl:tt});return"data"in Ye&&_populateRequestBody(nt,Ye.data),nt}}NetworkCore$1.NetworkCore=NetworkCore;const _ensureValidSdkKey=Be=>Be.sdkKey?!0:(Log_1$2.Log.warn("Unable to make request without an SDK key"),!1),_populateRequestBody=(Be,Le)=>{const{sdkKey:Ye,fallbackUrl:tt}=Be,nt=StableID_1$1.StableID.get(Ye),ft=SessionID_1$1.SessionID.get(Ye),ht=SDKType_1.SDKType._get(Ye);Be.body=JSON.stringify(Object.assign(Object.assign({},Le),{statsigMetadata:Object.assign(Object.assign({},StatsigMetadata_1.StatsigMetadataProvider.get()),{stableID:nt,sessionID:ft,sdkType:ht,fallbackUrl:tt})}))};function _allowCompression(Be,Le){if(!Be.isCompressable||(0,__StatsigGlobal_1$1._getStatsigGlobalFlag)("no-compress")!=null||typeof CompressionStream>"u"||typeof TextEncoder>"u")return!1;const Ye=Be.urlConfig.customUrl!=null||Be.urlConfig.fallbackUrls!=null,tt=SDKFlags_1.SDKFlags.get(Be.sdkKey,"enable_log_event_compression")===!0;switch(Le.logEventCompressionMode){case StatsigOptionsCommon_1$1.LogEventCompressionMode.Disabled:return!1;case StatsigOptionsCommon_1$1.LogEventCompressionMode.Enabled:return!(Ye&&!tt);case StatsigOptionsCommon_1$1.LogEventCompressionMode.Forced:return!0;default:return!1}}function _getErrorMessage(Be){return typeof Be=="string"?Be:Be instanceof Error?`${Be.name}: ${Be.message}`:"Unknown Error"}function _didTimeout(Be,Le){return Be.includes("Timeout")||Le}function _tryMarkInitStart(Be,Le){Be.urlConfig.endpoint===NetworkConfig_1.Endpoint._initialize&&Diagnostics_1.Diagnostics._markInitNetworkReqStart(Be.sdkKey,{attempt:Le})}function _tryMarkInitEnd(Be,Le,Ye,tt,nt){Be.urlConfig.endpoint===NetworkConfig_1.Endpoint._initialize&&Diagnostics_1.Diagnostics._markInitNetworkReqEnd(Be.sdkKey,Diagnostics_1.Diagnostics._getDiagnosticsData(Le,Ye,tt,nt))}function _exponentialBackoff(Be){return __awaiter$b(this,void 0,void 0,function*(){yield new Promise(Le=>setTimeout(Le,Math.min(BACKOFF_BASE_MS*(Be*Be),BACKOFF_MAX_MS)))})}var OverrideAdapter={};Object.defineProperty(OverrideAdapter,"__esModule",{value:!0});var ParamStoreTypes={};Object.defineProperty(ParamStoreTypes,"__esModule",{value:!0});var SizeOf={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be._fastApproxSizeOf=void 0;const Le=2,Ye=1,tt=(nt,ft)=>{let ht=0;const gt=Object.keys(nt);for(let At=0;At<gt.length;At++){const xt=gt[At],Et=nt[xt];if(ht+=xt.length,typeof Et=="object"&&Et!==null?ht+=(0,Be._fastApproxSizeOf)(Et,ft)+Le:ht+=String(Et).length+Ye,ht>=ft)return ht}return ht};Be._fastApproxSizeOf=tt})(SizeOf);var StatsigClientBase$1={},__awaiter$a=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(StatsigClientBase$1,"__esModule",{value:!0}),StatsigClientBase$1.StatsigClientBase=void 0;const __StatsigGlobal_1=$_StatsigGlobal,ErrorBoundary_1=ErrorBoundary,EventLogger_1=EventLogger$1,Log_1$1=Log,MemoKey_1=MemoKey,SafeJs_1=SafeJs,SessionID_1=SessionID,StableID_1=StableID,StatsigOptionsCommon_1=StatsigOptionsCommon,StorageProvider_1=StorageProvider,MAX_MEMO_CACHE_SIZE=3e3;class StatsigClientBase{constructor(Le,Ye,tt,nt){var ft,ht,gt,At;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const xt=this.$emt.bind(this);(nt==null?void 0:nt.logLevel)!=null&&(Log_1$1.Log.level=nt.logLevel),nt!=null&&nt.disableStorage&&StorageProvider_1.Storage._setDisabled(!0),nt!=null&&nt.initialSessionID&&SessionID_1.StatsigSession.overrideInitialSessionID(nt.initialSessionID,Le),nt!=null&&nt.storageProvider&&StorageProvider_1.Storage._setProvider(nt.storageProvider),nt!=null&&nt.enableCookies&&StableID_1.StableID._setCookiesEnabled(Le,nt.enableCookies),nt!=null&&nt.disableStableID&&StableID_1.StableID._setDisabled(Le,!0),this._sdkKey=Le,this._options=nt??{},this._memoCache={},this.overrideAdapter=(ft=nt==null?void 0:nt.overrideAdapter)!==null&&ft!==void 0?ft:null,this._logger=new EventLogger_1.EventLogger(Le,xt,tt,nt),this._errorBoundary=new ErrorBoundary_1.ErrorBoundary(Le,nt,xt),this._errorBoundary.wrap(this),this._errorBoundary.wrap(Ye),this._errorBoundary.wrap(this._logger),tt.setErrorBoundary(this._errorBoundary),this.dataAdapter=Ye,this.dataAdapter.attach(Le,nt,tt),this.storageProvider=StorageProvider_1.Storage,(At=(gt=(ht=this.overrideAdapter)===null||ht===void 0?void 0:ht.loadFromStorage)===null||gt===void 0?void 0:gt.call(ht))===null||At===void 0||At.catch(Et=>this._errorBoundary.logError("OA::loadFromStorage",Et)),this._primeReadyRipcord(),_assignGlobalInstance(Le,this)}updateRuntimeOptions(Le){Le.loggingEnabled?(this._options.loggingEnabled=Le.loggingEnabled,this._logger.setLoggingEnabled(Le.loggingEnabled)):Le.disableLogging!=null&&(this._options.disableLogging=Le.disableLogging,this._logger.setLoggingEnabled(Le.disableLogging?"disabled":"browser-only")),Le.disableStorage!=null&&(this._options.disableStorage=Le.disableStorage,StorageProvider_1.Storage._setDisabled(Le.disableStorage)),Le.enableCookies!=null&&(this._options.enableCookies=Le.enableCookies,StableID_1.StableID._setCookiesEnabled(this._sdkKey,Le.enableCookies)),Le.logEventCompressionMode?this._logger.setLogEventCompressionMode(Le.logEventCompressionMode):Le.disableCompression&&this._logger.setLogEventCompressionMode(StatsigOptionsCommon_1.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return __awaiter$a(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(Le,Ye){this._listeners[Le]||(this._listeners[Le]=[]),this._listeners[Le].push(Ye)}off(Le,Ye){if(this._listeners[Le]){const tt=this._listeners[Le].indexOf(Ye);tt!==-1&&this._listeners[Le].splice(tt,1)}}$on(Le,Ye){Ye.__isInternal=!0,this.on(Le,Ye)}$emt(Le){var Ye;const tt=nt=>{try{nt(Le)}catch(ft){if(nt.__isInternal===!0){this._errorBoundary.logError(`__emit:${Le.name}`,ft);return}Log_1$1.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",Le)}};this._listeners[Le.name]&&this._listeners[Le.name].forEach(nt=>tt(nt)),(Ye=this._listeners["*"])===null||Ye===void 0||Ye.forEach(tt)}_setStatus(Le,Ye){this.loadingStatus=Le,this._memoCache={},this.$emt({name:"values_updated",status:Le,values:Ye})}_enqueueExposure(Le,Ye,tt){if((tt==null?void 0:tt.disableExposureLog)===!0){this._logger.incrementNonExposureCount(Le);return}this._logger.enqueue(Ye)}_memoize(Le,Ye){return(tt,nt)=>{if(this._options.disableEvaluationMemoization)return Ye(tt,nt);const ft=(0,MemoKey_1.createMemoKey)(Le,tt,nt);return ft?(ft in this._memoCache||(Object.keys(this._memoCache).length>=MAX_MEMO_CACHE_SIZE&&(this._memoCache={}),this._memoCache[ft]=Ye(tt,nt)),this._memoCache[ft]):Ye(tt,nt)}}}StatsigClientBase$1.StatsigClientBase=StatsigClientBase;function _assignGlobalInstance(Be,Le){var Ye;if((0,SafeJs_1._isServerEnv)())return;const tt=(0,__StatsigGlobal_1._getStatsigGlobal)(),nt=(Ye=tt.instances)!==null&&Ye!==void 0?Ye:{},ft=Le;nt[Be]!=null&&Log_1$1.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),nt[Be]=ft,tt.firstInstance||(tt.firstInstance=ft),tt.instances=nt,__STATSIG__=tt}var StatsigDataAdapter={};Object.defineProperty(StatsigDataAdapter,"__esModule",{value:!0}),StatsigDataAdapter.DataAdapterCachePrefix=void 0,StatsigDataAdapter.DataAdapterCachePrefix="statsig.cached";var StatsigPlugin={};Object.defineProperty(StatsigPlugin,"__esModule",{value:!0});var StatsigTypeFactories={};Object.defineProperty(StatsigTypeFactories,"__esModule",{value:!0}),StatsigTypeFactories._makeTypedGet=StatsigTypeFactories._mergeOverride=StatsigTypeFactories._makeLayer=StatsigTypeFactories._makeExperiment=StatsigTypeFactories._makeDynamicConfig=StatsigTypeFactories._makeFeatureGate=void 0;const Log_1=Log,TypingUtils_1=TypingUtils;function _makeEvaluation(Be,Le,Ye,tt){var nt;return{name:Be,details:Le,ruleID:(nt=Ye==null?void 0:Ye.rule_id)!==null&&nt!==void 0?nt:"",__evaluation:Ye,value:tt}}function _makeFeatureGate(Be,Le,Ye){var tt;return Object.assign(Object.assign({},_makeEvaluation(Be,Le,Ye,(Ye==null?void 0:Ye.value)===!0)),{idType:(tt=Ye==null?void 0:Ye.id_type)!==null&&tt!==void 0?tt:null})}StatsigTypeFactories._makeFeatureGate=_makeFeatureGate;function _makeDynamicConfig(Be,Le,Ye){var tt,nt;const ft=(tt=Ye==null?void 0:Ye.value)!==null&&tt!==void 0?tt:{};return Object.assign(Object.assign({},_makeEvaluation(Be,Le,Ye,ft)),{idType:(nt=Ye==null?void 0:Ye.id_type)!==null&&nt!==void 0?nt:null,get:_makeTypedGet(Be,Ye==null?void 0:Ye.value)})}StatsigTypeFactories._makeDynamicConfig=_makeDynamicConfig;function _makeExperiment(Be,Le,Ye){var tt;const nt=_makeDynamicConfig(Be,Le,Ye);return Object.assign(Object.assign({},nt),{groupName:(tt=Ye==null?void 0:Ye.group_name)!==null&&tt!==void 0?tt:null})}StatsigTypeFactories._makeExperiment=_makeExperiment;function _makeLayer(Be,Le,Ye,tt){var nt,ft;return Object.assign(Object.assign({},_makeEvaluation(Be,Le,Ye,void 0)),{get:_makeTypedGet(Be,Ye==null?void 0:Ye.value,tt),groupName:(nt=Ye==null?void 0:Ye.group_name)!==null&&nt!==void 0?nt:null,__value:(ft=Ye==null?void 0:Ye.value)!==null&&ft!==void 0?ft:{}})}StatsigTypeFactories._makeLayer=_makeLayer;function _mergeOverride(Be,Le,Ye,tt){return Object.assign(Object.assign(Object.assign({},Be),Le),{get:_makeTypedGet(Be.name,Ye,tt)})}StatsigTypeFactories._mergeOverride=_mergeOverride;function _makeTypedGet(Be,Le,Ye){return(tt,nt)=>{var ft;const ht=(ft=Le==null?void 0:Le[tt])!==null&&ft!==void 0?ft:null;return ht==null?nt??null:nt!=null&&!(0,TypingUtils_1._isTypeMatch)(ht,nt)?(Log_1.Log.warn(`Parameter type mismatch. '${Be}.${tt}' was found to be type '${typeof ht}' but fallback/return type is '${typeof nt}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),nt??null):(Ye==null||Ye(tt),ht)}}StatsigTypeFactories._makeTypedGet=_makeTypedGet;var StatsigTypes={};Object.defineProperty(StatsigTypes,"__esModule",{value:!0});var StatsigUpdateDetails={};Object.defineProperty(StatsigUpdateDetails,"__esModule",{value:!0}),StatsigUpdateDetails.UPDATE_DETAIL_ERROR_MESSAGES=StatsigUpdateDetails.createUpdateDetails=void 0;const createUpdateDetails=(Be,Le,Ye,tt,nt,ft)=>({duration:Ye,source:Le,success:Be,error:tt,sourceUrl:nt,warnings:ft});StatsigUpdateDetails.createUpdateDetails=createUpdateDetails,StatsigUpdateDetails.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."},function(Be){var Le=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(xt,Et,yt,Ct){Ct===void 0&&(Ct=yt);var kt=Object.getOwnPropertyDescriptor(Et,yt);(!kt||("get"in kt?!Et.__esModule:kt.writable||kt.configurable))&&(kt={enumerable:!0,get:function(){return Et[yt]}}),Object.defineProperty(xt,Ct,kt)}:function(xt,Et,yt,Ct){Ct===void 0&&(Ct=yt),xt[Ct]=Et[yt]}),Ye=commonjsGlobal&&commonjsGlobal.__exportStar||function(xt,Et){for(var yt in xt)yt!=="default"&&!Object.prototype.hasOwnProperty.call(Et,yt)&&Le(Et,xt,yt)};Object.defineProperty(Be,"__esModule",{value:!0}),Be.Storage=Be.Log=Be.EventLogger=Be.Diagnostics=void 0;const tt=$_StatsigGlobal,nt=Diagnostics;Object.defineProperty(Be,"Diagnostics",{enumerable:!0,get:function(){return nt.Diagnostics}});const ft=EventLogger$1;Object.defineProperty(Be,"EventLogger",{enumerable:!0,get:function(){return ft.EventLogger}});const ht=Log;Object.defineProperty(Be,"Log",{enumerable:!0,get:function(){return ht.Log}});const gt=StatsigMetadata,At=StorageProvider;Object.defineProperty(Be,"Storage",{enumerable:!0,get:function(){return At.Storage}}),Ye($_StatsigGlobal,Be),Ye(CacheKey,Be),Ye(ClientInterfaces,Be),Ye(DataAdapterCore$1,Be),Ye(Diagnostics,Be),Ye(DownloadConfigSpecsResponse,Be),Ye(ErrorBoundary,Be),Ye(EvaluationOptions,Be),Ye(EvaluationTypes,Be),Ye(Hashing,Be),Ye(InitializeResponse,Be),Ye(Log,Be),Ye(MemoKey,Be),Ye(NetworkConfig,Be),Ye(NetworkCore$1,Be),Ye(OverrideAdapter,Be),Ye(ParamStoreTypes,Be),Ye(SafeJs,Be),Ye(SDKType,Be),Ye(SessionID,Be),Ye(SizeOf,Be),Ye(StableID,Be),Ye(StatsigClientBase$1,Be),Ye(StatsigClientEventEmitter,Be),Ye(StatsigDataAdapter,Be),Ye(StatsigEvent,Be),Ye(StatsigMetadata,Be),Ye(StatsigOptionsCommon,Be),Ye(StatsigPlugin,Be),Ye(StatsigTypeFactories,Be),Ye(StatsigTypes,Be),Ye(StatsigUser,Be),Ye(StorageProvider,Be),Ye(TypedJsonParse,Be),Ye(TypingUtils,Be),Ye(UrlConfiguration$1,Be),Ye(UUID,Be),Ye(VisibilityObserving,Be),Ye(StatsigUpdateDetails,Be),Ye(SDKFlags,Be),Object.assign((0,tt._getStatsigGlobal)(),{Log:ht.Log,SDK_VERSION:gt.SDK_VERSION})}(src$1);var StatsigClient$1={},EvaluationStore$1={},V1InitializeContainer$1={};Object.defineProperty(V1InitializeContainer$1,"__esModule",{value:!0}),V1InitializeContainer$1.V1InitializeContainer=void 0;const client_core_1$7=src$1;class V1InitializeContainer{constructor(Le){this._values=Le}getGate(Le){return this._getResultFromLookup(this._values.feature_gates,Le)}getConfig(Le){return this._getResultFromLookup(this._values.dynamic_configs,Le)}getLayer(Le){return this._getResultFromLookup(this._values.layer_configs,Le)}getParamStore(Le){return this._getResultFromLookup(this._values.param_stores,Le)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(Le,Ye){var tt,nt;return Le&&(nt=(tt=Le[Ye])!==null&&tt!==void 0?tt:Le[(0,client_core_1$7._DJB2)(Ye)])!==null&&nt!==void 0?nt:null}}V1InitializeContainer$1.V1InitializeContainer=V1InitializeContainer;var V2InitializeContainer$1={};Object.defineProperty(V2InitializeContainer$1,"__esModule",{value:!0}),V2InitializeContainer$1.V2InitializeContainer=void 0;const client_core_1$6=src$1;class V2InitializeContainer{constructor(Le){this._values=Le}getGate(Le){var Ye,tt,nt;const ft=this._getResultFromLookup(this._values.feature_gates,Le);return ft?{name:Le,value:ft.v===!0,rule_id:(Ye=ft.r)!==null&&Ye!==void 0?Ye:"default",secondary_exposures:(tt=ft.s)!==null&&tt!==void 0?tt:[],id_type:(nt=ft.i)!==null&&nt!==void 0?nt:""}:null}getConfig(Le){var Ye,tt,nt,ft;const ht=this._getResultFromLookup(this._values.dynamic_configs,Le);return ht?{name:Le,value:(Ye=this._values.values[ht.v])!==null&&Ye!==void 0?Ye:{},rule_id:ht.r,secondary_exposures:(tt=ht.s)!==null&&tt!==void 0?tt:[],id_type:(nt=ht.i)!==null&&nt!==void 0?nt:"",is_user_in_experiment:ht.ue===!0,passed:ht.p===!0,group_name:(ft=ht.gn)!==null&&ft!==void 0?ft:void 0,is_experiment_active:ht.ea===!0,group:ht.r,is_device_based:ht.i==="stableID"}:null}getLayer(Le){var Ye,tt,nt,ft,ht,gt;const At=this._getResultFromLookup(this._values.layer_configs,Le);return At?{name:Le,value:(Ye=this._values.values[At.v])!==null&&Ye!==void 0?Ye:{},rule_id:At.r,secondary_exposures:(tt=At.s)!==null&&tt!==void 0?tt:[],is_user_in_experiment:At.ue===!0,group_name:(nt=At.gn)!==null&&nt!==void 0?nt:void 0,is_experiment_active:At.ea===!0,group:At.r,is_device_based:At.i==="stableID",allocated_experiment_name:(ft=At.ae)!==null&&ft!==void 0?ft:"",explicit_parameters:(ht=At.ep)!==null&&ht!==void 0?ht:[],undelegated_secondary_exposures:(gt=At.us)!==null&>!==void 0?gt:[],parameter_rule_ids:At.pr}:null}getParamStore(Le){return this._getResultFromLookup(this._values.param_stores,Le)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(Le,Ye){var tt,nt;return Le&&(nt=(tt=Le[Ye])!==null&&tt!==void 0?tt:Le[(0,client_core_1$6._DJB2)(Ye)])!==null&&nt!==void 0?nt:null}}V2InitializeContainer$1.V2InitializeContainer=V2InitializeContainer,Object.defineProperty(EvaluationStore$1,"__esModule",{value:!0});const client_core_1$5=src$1,V1InitializeContainer_1=V1InitializeContainer$1,V2InitializeContainer_1=V2InitializeContainer$1;class EvaluationStore{constructor(Le){this._sdkKey=Le,this._rawValues=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._rawValues=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._rawValues?(0,client_core_1$5._typedJsonParse)(this._rawValues,"has_updates","EvaluationStoreValues"):null}setValues(Le,Ye){var tt,nt;if(!Le)return!1;const ft=(0,client_core_1$5._typedJsonParse)(Le.data,"has_updates","EvaluationResponse");return ft==null?!1:(this._source=Le.source,(ft==null?void 0:ft.has_updates)!==!0||((tt=ft.time)!==null&&tt!==void 0?tt:0)<this._lcut||(this._rawValues=Le.data,this._lcut=ft.time,this._receivedAt=Le.receivedAt,ft.response_format==="init-v2"?this._values=new V2InitializeContainer_1.V2InitializeContainer(ft):this._values=new V1InitializeContainer_1.V1InitializeContainer(ft),this._bootstrapMetadata=this._extractBootstrapMetadata(Le.source,ft),Le.source&&ft.user&&this._setWarningState(Ye,ft),client_core_1$5.SDKFlags.setFlags(this._sdkKey,(nt=ft.sdk_flags)!==null&&nt!==void 0?nt:{})),!0)}getWarnings(){if(this._warnings.size!==0)return Array.from(this._warnings)}getGate(Le){const Ye=this._values?this._values.getGate(Le):null;return this._getDetailedStoreResult(Ye)}getConfig(Le){const Ye=this._values?this._values.getConfig(Le):null;return this._getDetailedStoreResult(Ye)}getConfigList(){return this._values?this._values.getConfigList():[]}getLayer(Le){const Ye=this._values?this._values.getLayer(Le):null;return this._getDetailedStoreResult(Ye)}getParamStore(Le){const Ye=this._values?this._values.getParamStore(Le):null;return this._getDetailedStoreResult(Ye)}getSource(){return this._source}getExposureMapping(){var Le;return(Le=this._values)===null||Le===void 0?void 0:Le.getExposureMapping()}_extractBootstrapMetadata(Le,Ye){if(Le!=="Bootstrap")return null;const tt={};return Ye.user&&(tt.user=Ye.user),Ye.sdkInfo&&(tt.generatorSDKInfo=Ye.sdkInfo),tt.lcut=Ye.time,tt}_getDetailedStoreResult(Le){return{result:Le,details:this._getDetails(Le==null)}}_setWarningState(Le,Ye){var tt,nt;const ft=client_core_1$5.StableID.get(this._sdkKey);if(((tt=Le.customIDs)===null||tt===void 0?void 0:tt.stableID)!==ft&&(!((nt=Le.customIDs)===null||nt===void 0)&&nt.stableID||ft)){this._warnings.add("StableIDMismatch");return}if("user"in Ye){const ht=Ye.user,gt=Object.assign(Object.assign({},Le),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});(0,client_core_1$5._getFullUserHash)(gt)!==(0,client_core_1$5._getFullUserHash)(ht)&&this._warnings.add("PartialUserMatch")}}getCurrentSourceDetails(){if(this._source==="Uninitialized"||this._source==="NoValues")return{reason:this._source};const Le={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(Le.warnings=Array.from(this._warnings)),Le}_getDetails(Le){var Ye,tt;const nt=this.getCurrentSourceDetails();let ft=nt.reason;const ht=(Ye=nt.warnings)!==null&&Ye!==void 0?Ye:[];this._source==="Bootstrap"&&ht.length>0&&(ft=ft+ht[0]),ft!=="Uninitialized"&&ft!=="NoValues"&&(ft=`${ft}:${Le?"Unrecognized":"Recognized"}`);const gt=this._source==="Bootstrap"&&(tt=this._bootstrapMetadata)!==null&&tt!==void 0?tt:void 0;return gt&&(nt.bootstrapMetadata=gt),Object.assign(Object.assign({},nt),{reason:ft})}}EvaluationStore$1.default=EvaluationStore;var Network={},EvaluationResponseDeltas={};Object.defineProperty(EvaluationResponseDeltas,"__esModule",{value:!0}),EvaluationResponseDeltas._resolveDeltasResponse=void 0;const client_core_1$4=src$1,MAX_DELTAS_SORT_DEPTH=2;function _resolveDeltasResponse(Be,Le){const Ye=(0,client_core_1$4._typedJsonParse)(Le,"checksum","DeltasEvaluationResponse");if(!Ye)return{hadBadDeltaChecksum:!0};const tt=_mergeDeltasIntoCache(Be,Ye),nt=_handleDeletedEntries(tt),ft=(0,client_core_1$4._DJB2Object)({feature_gates:nt.feature_gates,dynamic_configs:nt.dynamic_configs,layer_configs:nt.layer_configs},MAX_DELTAS_SORT_DEPTH);return ft===Ye.checksumV2?JSON.stringify(nt):{hadBadDeltaChecksum:!0,badChecksum:ft,badMergedConfigs:nt,badFullResponse:Ye.deltas_full_response}}EvaluationResponseDeltas._resolveDeltasResponse=_resolveDeltasResponse;function _mergeDeltasIntoCache(Be,Le){return Object.assign(Object.assign(Object.assign({},Be),Le),{feature_gates:Object.assign(Object.assign({},Be.feature_gates),Le.feature_gates),layer_configs:Object.assign(Object.assign({},Be.layer_configs),Le.layer_configs),dynamic_configs:Object.assign(Object.assign({},Be.dynamic_configs),Le.dynamic_configs)})}function _handleDeletedEntries(Be){const Le=Be;return _deleteEntriesInRecord(Be.deleted_gates,Le.feature_gates),delete Le.deleted_gates,_deleteEntriesInRecord(Be.deleted_configs,Le.dynamic_configs),delete Le.deleted_configs,_deleteEntriesInRecord(Be.deleted_layers,Le.layer_configs),delete Le.deleted_layers,Le}function _deleteEntriesInRecord(Be,Le){Be==null||Be.forEach(Ye=>{delete Le[Ye]})}var __awaiter$9=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(Network,"__esModule",{value:!0});const client_core_1$3=src$1,EvaluationResponseDeltas_1=EvaluationResponseDeltas;class StatsigNetwork extends client_core_1$3.NetworkCore{constructor(Le,Ye){super(Le,Ye);const tt=Le==null?void 0:Le.networkConfig;this._option=Le,this._initializeUrlConfig=new client_core_1$3.UrlConfiguration(client_core_1$3.Endpoint._initialize,tt==null?void 0:tt.initializeUrl,tt==null?void 0:tt.api,tt==null?void 0:tt.initializeFallbackUrls)}fetchEvaluations(Le,Ye,tt,nt,ft){return __awaiter$9(this,void 0,void 0,function*(){var ht,gt,At,xt,Et,yt;const Ct=Ye?(0,client_core_1$3._typedJsonParse)(Ye,"has_updates","InitializeResponse"):null;let kt={user:nt,hash:(At=(gt=(ht=this._option)===null||ht===void 0?void 0:ht.networkConfig)===null||gt===void 0?void 0:gt.initializeHashAlgorithm)!==null&&At!==void 0?At:"djb2",deltasResponseRequested:!1,full_checksum:null};if(Ct!=null&&Ct.has_updates){const vt=(Ct==null?void 0:Ct.hash_used)!==((yt=(Et=(xt=this._option)===null||xt===void 0?void 0:xt.networkConfig)===null||Et===void 0?void 0:Et.initializeHashAlgorithm)!==null&&yt!==void 0?yt:"djb2");kt=Object.assign(Object.assign({},kt),{sinceTime:ft&&!vt?Ct.time:0,previousDerivedFields:"derived_fields"in Ct&&ft?Ct.derived_fields:{},deltasResponseRequested:!0,full_checksum:Ct.full_checksum,partialUserMatchSinceTime:vt?0:Ct.time})}return this._fetchEvaluations(Le,Ct,kt,tt)})}_fetchEvaluations(Le,Ye,tt,nt){return __awaiter$9(this,void 0,void 0,function*(){var ft,ht;const gt=yield this.post({sdkKey:Le,urlConfig:this._initializeUrlConfig,data:tt,retries:2,isStatsigEncodable:!0,priority:nt});if((gt==null?void 0:gt.code)===204)return'{"has_updates": false}';if((gt==null?void 0:gt.code)!==200)return(ft=gt==null?void 0:gt.body)!==null&&ft!==void 0?ft:null;if((Ye==null?void 0:Ye.has_updates)!==!0||((ht=gt.body)===null||ht===void 0?void 0:ht.includes('"is_delta":true'))!==!0||tt.deltasResponseRequested!==!0)return gt.body;const At=(0,EvaluationResponseDeltas_1._resolveDeltasResponse)(Ye,gt.body);return typeof At=="string"?At:this._fetchEvaluations(Le,Ye,Object.assign(Object.assign(Object.assign({},tt),At),{deltasResponseRequested:!1}),nt)})}}Network.default=StatsigNetwork;var ParamStoreGetterFactory={};Object.defineProperty(ParamStoreGetterFactory,"__esModule",{value:!0}),ParamStoreGetterFactory._makeParamStoreGetter=void 0;const client_core_1$2=src$1,NO_EXPOSURE_OPT={disableExposureLog:!0};function _shouldLogExposure(Be){return Be==null||Be.disableExposureLog===!1}function _shouldReturnFallback(Be,Le){return Le!=null&&!(0,client_core_1$2._isTypeMatch)(Be,Le)}function _getMappedStaticValue(Be,Le){return Be.value}function _getMappedGateValue(Be,Le,Ye){return Be.getFeatureGate(Le.gate_name,_shouldLogExposure(Ye)?void 0:NO_EXPOSURE_OPT).value?Le.pass_value:Le.fail_value}function _getMappedDynamicConfigValue(Be,Le,Ye,tt){const ft=Be.getDynamicConfig(Le.config_name,_shouldLogExposure(tt)?void 0:NO_EXPOSURE_OPT).get(Le.param_name);return _shouldReturnFallback(ft,Ye)?Ye:ft}function _getMappedExperimentValue(Be,Le,Ye,tt){const ft=Be.getExperiment(Le.experiment_name,_shouldLogExposure(tt)?void 0:NO_EXPOSURE_OPT).get(Le.param_name);return _shouldReturnFallback(ft,Ye)?Ye:ft}function _getMappedLayerValue(Be,Le,Ye,tt){const ft=Be.getLayer(Le.layer_name,_shouldLogExposure(tt)?void 0:NO_EXPOSURE_OPT).get(Le.param_name);return _shouldReturnFallback(ft,Ye)?Ye:ft}function _makeParamStoreGetter(Be,Le,Ye){return(tt,nt)=>{if(Le==null)return nt;const ft=Le[tt];if(ft==null||nt!=null&&(0,client_core_1$2._typeOf)(nt)!==ft.param_type)return nt;switch(ft.ref_type){case"static":return _getMappedStaticValue(ft);case"gate":return _getMappedGateValue(Be,ft,Ye);case"dynamic_config":return _getMappedDynamicConfigValue(Be,ft,nt,Ye);case"experiment":return _getMappedExperimentValue(Be,ft,nt,Ye);case"layer":return _getMappedLayerValue(Be,ft,nt,Ye);default:return nt}}}ParamStoreGetterFactory._makeParamStoreGetter=_makeParamStoreGetter;var StatsigEvaluationsDataAdapter$1={},__awaiter$8=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(StatsigEvaluationsDataAdapter$1,"__esModule",{value:!0}),StatsigEvaluationsDataAdapter$1.StatsigEvaluationsDataAdapter=void 0;const client_core_1$1=src$1,Network_1$1=Network;class StatsigEvaluationsDataAdapter extends client_core_1$1.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(Le,Ye,tt){super.attach(Le,Ye,tt),tt!==null&&tt instanceof Network_1$1.default?this._network=tt:this._network=new Network_1$1.default(Ye??{})}getDataAsync(Le,Ye,tt){return this._getDataAsyncImpl(Le,(0,client_core_1$1._normalizeUser)(Ye,this._options),tt)}prefetchData(Le,Ye){return this._prefetchDataImpl(Le,Ye)}setData(Le){const Ye=(0,client_core_1$1._typedJsonParse)(Le,"has_updates","data");Ye&&"user"in Ye?super.setData(Le,Ye.user):client_core_1$1.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(Le,Ye){super.setData(Le,Ye)}_fetchFromNetwork(Le,Ye,tt,nt){return __awaiter$8(this,void 0,void 0,function*(){var ft;const ht=yield(ft=this._network)===null||ft===void 0?void 0:ft.fetchEvaluations(this._getSdkKey(),Le,tt==null?void 0:tt.priority,Ye,nt);return ht??null})}_getCacheKey(Le){var Ye;const tt=(0,client_core_1$1._getStorageKey)(this._getSdkKey(),Le,(Ye=this._options)===null||Ye===void 0?void 0:Ye.customUserCacheKeyFunc);return`${client_core_1$1.DataAdapterCachePrefix}.${this._cacheSuffix}.${tt}`}_isCachedResultValidFor204(Le,Ye){return Le.fullUserHash!=null&&Le.fullUserHash===(0,client_core_1$1._getFullUserHash)(Ye)}}StatsigEvaluationsDataAdapter$1.StatsigEvaluationsDataAdapter=StatsigEvaluationsDataAdapter;var __awaiter$7=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(StatsigClient$1,"__esModule",{value:!0});const client_core_1=src$1,EvaluationStore_1=EvaluationStore$1,Network_1=Network,ParamStoreGetterFactory_1=ParamStoreGetterFactory,StatsigEvaluationsDataAdapter_1=StatsigEvaluationsDataAdapter$1;class StatsigClient extends client_core_1.StatsigClientBase{static instance(Le){const Ye=(0,client_core_1._getStatsigGlobal)().instance(Le);return Ye instanceof StatsigClient?Ye:(client_core_1.Log.warn((0,client_core_1._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new StatsigClient(Le??"",{}))}constructor(Le,Ye,tt=null){var nt,ft;client_core_1.SDKType._setClientType(Le,"javascript-client");const ht=new Network_1.default(tt,At=>{this.$emt(At)});super(Le,(nt=tt==null?void 0:tt.dataAdapter)!==null&&nt!==void 0?nt:new StatsigEvaluationsDataAdapter_1.StatsigEvaluationsDataAdapter,ht,tt),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(client_core_1.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(client_core_1.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(client_core_1.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(client_core_1.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(client_core_1.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(client_core_1.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new EvaluationStore_1.default(Le),this._network=ht,this._user=this._configureUser(Ye,tt),this._sdkInstanceID=(0,client_core_1.getUUID)();const gt=(ft=tt==null?void 0:tt.plugins)!==null&&ft!==void 0?ft:[];for(const At of gt)At.bind(this)}initializeSync(Le){var Ye;return this.loadingStatus!=="Uninitialized"?(0,client_core_1.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...(Ye=this._store.getWarnings())!==null&&Ye!==void 0?Ye:[]]):(this._logger.start(),this.updateUserSync(this._user,Le))}initializeAsync(Le){return __awaiter$7(this,void 0,void 0,function*(){return this._initializePromise?this._initializePromise:(this._initializePromise=this._initializeAsyncImpl(Le),this._initializePromise)})}updateUserSync(Le,Ye){const tt=performance.now();try{return this._updateUserSyncImpl(Le,Ye,tt)}catch(nt){const ft=nt instanceof Error?nt:new Error(String(nt));return this._createErrorUpdateDetails(ft,tt)}}_updateUserSyncImpl(Le,Ye,tt){var nt;const ft=[...(nt=this._store.getWarnings())!==null&&nt!==void 0?nt:[]];this._resetForUser(Le);const ht=this.dataAdapter.getDataSync(this._user);ht==null&&ft.push("NoCachedValues"),this._store.setValues(ht,this._user),this._finalizeUpdate(ht);const gt=Ye==null?void 0:Ye.disableBackgroundCacheRefresh;return gt===!0||gt==null&&(ht==null?void 0:ht.source)==="Bootstrap"?(0,client_core_1.createUpdateDetails)(!0,this._store.getSource(),performance.now()-tt,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),ft):(this._runPostUpdate(ht??null,this._user),(0,client_core_1.createUpdateDetails)(!0,this._store.getSource(),performance.now()-tt,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),ft))}updateUserAsync(Le,Ye){return __awaiter$7(this,void 0,void 0,function*(){const tt=performance.now();try{return yield this._updateUserAsyncImpl(Le,Ye)}catch(nt){const ft=nt instanceof Error?nt:new Error(String(nt));return this._createErrorUpdateDetails(ft,tt)}})}_updateUserAsyncImpl(Le,Ye){return __awaiter$7(this,void 0,void 0,function*(){this._resetForUser(Le);const tt=this._user;client_core_1.Diagnostics._markInitOverallStart(this._sdkKey);let nt=this.dataAdapter.getDataSync(tt);if(this._store.setValues(nt,this._user),this._setStatus("Loading",nt),nt=yield this.dataAdapter.getDataAsync(nt,tt,Ye),tt!==this._user)return(0,client_core_1.createUpdateDetails)(!1,this._store.getSource(),-1,new Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let ft=!1;nt!=null&&(client_core_1.Diagnostics._markInitProcessStart(this._sdkKey),ft=this._store.setValues(nt,this._user),client_core_1.Diagnostics._markInitProcessEnd(this._sdkKey,{success:ft})),this._finalizeUpdate(nt),ft||(this._errorBoundary.attachErrorIfNoneExists(client_core_1.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),client_core_1.Diagnostics._markInitOverallEnd(this._sdkKey,ft,this._store.getCurrentSourceDetails());const ht=client_core_1.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,client_core_1.createUpdateDetails)(ft,this._store.getSource(),ht,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){return{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:JSON.parse(JSON.stringify(this._user)),errorBoundary:this._errorBoundary,session:client_core_1.StatsigSession.get(this._sdkKey),stableID:client_core_1.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}checkGate(Le,Ye){return this.getFeatureGate(Le,Ye).value}logEvent(Le,Ye,tt){const nt=typeof Le=="string"?{eventName:Le,value:Ye,metadata:tt}:Le;this.$emt({name:"log_event_called",event:nt}),this._logger.enqueue(Object.assign(Object.assign({},nt),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(Le){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:Le}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{this.loadingStatus==="Loading"&&this._finalizeUpdate(null)})}_initializeAsyncImpl(Le){return __awaiter$7(this,void 0,void 0,function*(){return client_core_1.Storage.isReady()||(yield client_core_1.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,Le)})}_createErrorUpdateDetails(Le,Ye){var tt;return(0,client_core_1.createUpdateDetails)(!1,this._store.getSource(),performance.now()-Ye,Le,null,[...(tt=this._store.getWarnings())!==null&&tt!==void 0?tt:[]])}_finalizeUpdate(Le){this._store.finalize(),this._setStatus("Ready",Le)}_runPostUpdate(Le,Ye){this.dataAdapter.getDataAsync(Le,Ye,{priority:"low"}).catch(tt=>{client_core_1.Log.error("An error occurred after update.",tt)})}_resetForUser(Le){this._logger.reset(),this._store.reset(),this._user=this._configureUser(Le,this._options)}_configureUser(Le,Ye){var tt,nt,ft;const ht=(0,client_core_1._normalizeUser)(Le,Ye),gt=(tt=ht.customIDs)===null||tt===void 0?void 0:tt.stableID;if(gt){const At=(ft=(nt=this.storageProvider).isReadyResolver)===null||ft===void 0?void 0:ft.call(nt);At?At.then(()=>client_core_1.StableID.setOverride(gt,this._sdkKey),()=>client_core_1.StableID.setOverride(gt,this._sdkKey)):client_core_1.StableID.setOverride(gt,this._sdkKey)}return Object.keys(this._possibleFirstTouchMetadata).length>0&&(ht.analyticsOnlyMetadata=Object.assign(Object.assign({},ht.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),ht}_getFeatureGateImpl(Le,Ye){var tt,nt;const{result:ft,details:ht}=this._store.getGate(Le),gt=(0,client_core_1._makeFeatureGate)(Le,ht,ft),At=(nt=(tt=this.overrideAdapter)===null||tt===void 0?void 0:tt.getGateOverride)===null||nt===void 0?void 0:nt.call(tt,gt,this._user,Ye),xt=At??gt;return this._enqueueExposure(Le,(0,client_core_1._createGateExposure)(this._user,xt,this._store.getExposureMapping()),Ye),this.$emt({name:"gate_evaluation",gate:xt}),xt}_getDynamicConfigImpl(Le,Ye){var tt,nt;const{result:ft,details:ht}=this._store.getConfig(Le),gt=(0,client_core_1._makeDynamicConfig)(Le,ht,ft),At=(nt=(tt=this.overrideAdapter)===null||tt===void 0?void 0:tt.getDynamicConfigOverride)===null||nt===void 0?void 0:nt.call(tt,gt,this._user,Ye),xt=At??gt;return this._enqueueExposure(Le,(0,client_core_1._createConfigExposure)(this._user,xt,this._store.getExposureMapping()),Ye),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:xt}),xt}_getExperimentImpl(Le,Ye){var tt,nt,ft,ht;const{result:gt,details:At}=this._store.getConfig(Le),xt=(0,client_core_1._makeExperiment)(Le,At,gt);xt.__evaluation!=null&&(xt.__evaluation.secondary_exposures=(0,client_core_1._mapExposures)((nt=(tt=xt.__evaluation)===null||tt===void 0?void 0:tt.secondary_exposures)!==null&&nt!==void 0?nt:[],this._store.getExposureMapping()));const Et=(ht=(ft=this.overrideAdapter)===null||ft===void 0?void 0:ft.getExperimentOverride)===null||ht===void 0?void 0:ht.call(ft,xt,this._user,Ye),yt=Et??xt;return this._enqueueExposure(Le,(0,client_core_1._createConfigExposure)(this._user,yt,this._store.getExposureMapping()),Ye),this.$emt({name:"experiment_evaluation",experiment:yt}),yt}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(Le,Ye){var tt,nt,ft;const{result:ht,details:gt}=this._store.getLayer(Le),At=(0,client_core_1._makeLayer)(Le,gt,ht),xt=(nt=(tt=this.overrideAdapter)===null||tt===void 0?void 0:tt.getLayerOverride)===null||nt===void 0?void 0:nt.call(tt,At,this._user,Ye);Ye!=null&&Ye.disableExposureLog&&this._logger.incrementNonExposureCount(Le);const Et=(0,client_core_1._mergeOverride)(At,xt,(ft=xt==null?void 0:xt.__value)!==null&&ft!==void 0?ft:At.__value,yt=>{Ye!=null&&Ye.disableExposureLog||this._enqueueExposure(Le,(0,client_core_1._createLayerParameterExposure)(this._user,Et,yt,this._store.getExposureMapping()),Ye)});return this.$emt({name:"layer_evaluation",layer:Et}),Et}_getParameterStoreImpl(Le,Ye){var tt,nt;const{result:ft,details:ht}=this._store.getParamStore(Le);this._logger.incrementNonExposureCount(Le);const gt={name:Le,details:ht,__configuration:ft,get:(0,ParamStoreGetterFactory_1._makeParamStoreGetter)(this,ft,Ye)},At=(nt=(tt=this.overrideAdapter)===null||tt===void 0?void 0:tt.getParamStoreOverride)===null||nt===void 0?void 0:nt.call(tt,gt,Ye);return At!=null&&(gt.__configuration=At.config,gt.details=At.details,gt.get=(0,ParamStoreGetterFactory_1._makeParamStoreGetter)(this,At.config,Ye)),gt}}StatsigClient$1.default=StatsigClient,function(Be){var Le=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,gt,At,xt){xt===void 0&&(xt=At);var Et=Object.getOwnPropertyDescriptor(gt,At);(!Et||("get"in Et?!gt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return gt[At]}}),Object.defineProperty(ht,xt,Et)}:function(ht,gt,At,xt){xt===void 0&&(xt=At),ht[xt]=gt[At]}),Ye=commonjsGlobal&&commonjsGlobal.__exportStar||function(ht,gt){for(var At in ht)At!=="default"&&!Object.prototype.hasOwnProperty.call(gt,At)&&Le(gt,ht,At)};Object.defineProperty(Be,"__esModule",{value:!0}),Be.StatsigClient=void 0;const tt=src$1,nt=StatsigClient$1;Be.StatsigClient=nt.default,Ye(src$1,Be);const ft=Object.assign((0,tt._getStatsigGlobal)(),{StatsigClient:nt.default});Be.default=ft}(src$2);const FEATURE_FLAGS=["id_text_barcode_readability","selfie_local_lenses_check_web","id_model_hebrew_back_id","id_face_readability","new_id_capture_ux_least_risky_clients","id_test_aa","id_iou_check","iad_checks","iad_c_checks","new_fingerprint","mp_test_hashed_id"],GLOBAL_FLAGS=["new_fingerprint"],ID_MODULE_FLAGS=["id_face_readability","id_test_aa","iad_c_checks","mp_test_hashed_id","id_model_hebrew_back_id","id_iou_check","iad_checks","new_id_capture_ux_least_risky_clients","id_text_barcode_readability"],SELFIE_MODULE_FLAGS=["selfie_local_lenses_check_web"];function getStatsigEnvironment(Be){return isStageK8sEnv(Be)?{tier:"development"}:isStageEnv(Be)||isDemoEnv(Be)?{tier:"staging"}:isSaasEnv(Be)?{tier:"production"}:{tier:"development"}}const clientApiKey="client-GBTzsiJ99rvyZQdNXDFkftx3ZoMF1TED2rsB3m3IUqc",featureFlagsValues={id_text_barcode_readability:!1,selfie_local_lenses_check_web:!1,id_model_hebrew_back_id:!1,id_face_readability:!1,new_id_capture_ux_least_risky_clients:!1,id_test_aa:!1,iad_checks:!1,iad_c_checks:!1,id_iou_check:!0,new_fingerprint:!1,mp_test_hashed_id:!1},clientExperimentIds={new_id_capture_ux_least_risky_clients:"experimentV2"};let initPromise=null;const initialize=async({flowId:Be,apiKey:Le,sessionIdentifier:Ye,apiURL:tt,clientExperimentId:nt})=>{if(initPromise)return initPromise;initPromise=(async()=>{var gt;const ft={customIDs:{client_api_key:Le,hashed_onboarding_id:Ye,flow_id:Be},custom:{landing_page:(gt=window==null?void 0:window.location)==null?void 0:gt.href}},ht=new src$2.StatsigClient(clientApiKey,ft,{environment:getStatsigEnvironment(tt)});await ht.initializeAsync(),FEATURE_FLAGS.forEach(At=>{if(nt&&clientExperimentIds[At]===nt){featureFlagsValues[At]=!0;return}featureFlagsValues[At]=ht.checkGate(At)})})(),await initPromise},getFeatureFlag=Be=>featureFlagsValues[Be]??!1,getModuleFeatureFlags=async Be=>{const Le={};GLOBAL_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]});const Ye=Be.toLowerCase();return Ye.includes("id")||Ye==="government-validation"?ID_MODULE_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]}):(Ye.includes("selfie")||Ye==="face")&&SELFIE_MODULE_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]}),Le};function IdCaptureParamsConfigurator(Be,Le,Ye,tt){Object.assign(Be,{areaDown:25e3,areaUp:55e3,areaIOSPassportUp:3e4,areaIOSPassportDown:2e4,widthIOSUp:160,widthIOSDown:85,widthDown:tt?110:135,widthUp:205,framesAggregationInterval:tt?3e3:2e3,minFaceIdQualityScore:.62})}function getSelfieFaceDetectionPipelineParams(){return{frameMinX:0,frameMinY:0,frameMaxX:1,frameMaxY:1,brightnessThreshold:50,blurrinessThreshold:50,tiltRotationAngleThreshold:15,minMagicCropSize:200,headwearThreshold:.86,lensesThreshold:.95,closedEyesThreshold:.9,maskThreshold:.85,minFaceQualityScore:.63,isOcclusionCheckEnabled:!1,faceOcclusionThreshold:.3}}const getProfiles=()=>[new PipelineProfile(WasmPipelineType.IdBlurGlarePipeline,PipelineProfileName.IdCapture_2_01,DetectionType.IDCapture,["id_capture_2_01_fp16.ortmodelv2","id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIdFaceQualityCheckEnabled:getFeatureFlag("id_face_readability"),isIouCheckEnabled:getFeatureFlag("id_iou_check")},IdCaptureParamsConfigurator,"Current Prod - Id Capture Profile with model https://www.notion.so/ID-cropping-web-2-01-d011d878c6f4406394609cbfbf03c259?pvs=4"),new PipelineProfile(WasmPipelineType.IdBlurGlarePipeline,PipelineProfileName.IdCapture_2_02,DetectionType.IDCapture,["id_capture_2_02_fp16.ortmodelv2","id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIdFaceQualityCheckEnabled:getFeatureFlag("id_face_readability"),isIouCheckEnabled:getFeatureFlag("id_iou_check")},IdCaptureParamsConfigurator,"https://www.notion.so/ML-Update-ID-processing-model-to-accept-more-back-ID-types-18c4c3caef49801e95b4fd6bf9b92883?pvs=4"),new PipelineProfile(WasmPipelineType.IdBarcodeAndTextQualityPipeline,PipelineProfileName.IdCapture_3_02,DetectionType.IDCapture,["id_capture_3_02_fp16.ortmodelv2","id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV3x,isIdFaceQualityCheckEnabled:!1,isIouCheckEnabled:getFeatureFlag("id_iou_check")},IdCaptureParamsConfigurator,"Pipeline with text and barcode quality: https://www.notion.so/Web-Use-Text-Barcode-model-2nd-iteration-1bc4c3caef49805aa9e6d308db9fc6dd?pvs=4"),new PipelineProfile(WasmPipelineType.IdVideoSelfiePipeline,PipelineProfileName.IdVideoSelfie_2_01,DetectionType.IdVideoSelfie,["id_capture_2_01_fp16.ortmodelv2","id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIdFaceQualityCheckEnabled:!1,isIouCheckEnabled:!0},IdCaptureParamsConfigurator,"Current Prod - Id Videoselfie profile with model https://www.notion.so/ID-cropping-web-2-01-d011d878c6f4406394609cbfbf03c259?pvs=4"),new PipelineProfile(WasmPipelineType.SelfieWithAggregationMetrics,PipelineProfileName.SelfieWithAggregationMetrics,DetectionType.Selfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_1_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"Selfie face detection profile with aggregation metrics"),new PipelineProfile(WasmPipelineType.SelfieWithQualityMetrics,PipelineProfileName.SelfieWithQualityMetrics,DetectionType.Selfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_1_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"Current Prod - Selfie face detection profile with quality metrics"),new PipelineProfile(WasmPipelineType.SelfieWithAggregationMetrics,PipelineProfileName.SelfieVideoSelfie,DetectionType.SelfieVideoSelfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_1_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"VideoSelfie face detection profile")];function getProfile(Be){const Le=getProfiles().find(Ye=>Ye.name===Be);if(!Le)throw new Error(`Profile not found for type: ${Be}`);return Le}const wasmVersion="v2.12.43";function generateBundle(){const Be=getFeatureFlag("id_text_barcode_readability")?PipelineProfileName.IdCapture_3_02:getFeatureFlag("id_model_hebrew_back_id")?PipelineProfileName.IdCapture_2_02:PipelineProfileName.IdCapture_2_01,Le=PipelineProfileName.SelfieWithQualityMetrics,Ye=PipelineProfileName.SelfieVideoSelfie,tt=PipelineProfileName.IdVideoSelfie_2_01;return[Be,tt,Le,Ye]}function getInitializationParams(){const Le=generateBundle(),Ye="https://d3vv997wtl2myz.cloudfront.net/webcamera/onnx-backend-wasm",tt=`${Ye}/${wasmVersion}/webLib.wasm`,nt=`${Ye}/${wasmVersion}/webLibSimd.wasm`,ft=`${Ye}/${wasmVersion}/webLib.js`,ht=`${Ye}/${wasmVersion}/versions.json`;let gt=new Map,At=new Map;for(const xt of Le){const Et=getProfile(xt);if(!Et)throw new Error(`Profile not found: ${xt}`);const yt=Et.modelNames;let Ct=[];for(const kt of yt)Ct.push(`${Ye}/${wasmVersion}/models/${kt}`);gt.set(Et.pipelineType,Ct),At.set(Et.detectionType,Et)}return{wasmModulePath:tt,wasmSimdModulePath:nt,glueCodePath:ft,versionsFilePath:ht,pipelineModels:gt,enableSIMD:!0,profiles:At,wasmVersion}}window.wasmArrayBuffer=null;class MlWasmJSApi{constructor(){this.versionsFile=null,this.modelsBuffers=null,this.inputImageBuffer=null,this.wasmModule=null,this.pipelineApiUtilities=null,this.utilityApi=null,this.idCaptureWasmApi=null,this.faceDetectionWasmApi=null,this.imageWidth_=null,this.imageHeight_=null,this.pipelines_=null,this.isInitialized_=!1,this.inspectorOpened_=!1,this.wasmCallMutex=new Mutex,this.Module=null,this.loadModule=async Le=>{this.Module=(await import(Le)).Module}}async initialize(Le,Ye,tt,nt,ft,ht){await this.freeResources(),this.pipelines_=ht,this.versionsFile=ft,await this.loadModule(tt);const gt=await this.loadWasm(nt,Le,Ye);return this.pipelineApiUtilities=new this.wasmModule.PipelineApiUtilities,this.utilityApi=new this.wasmModule.UtilityApi,this.idCaptureWasmApi=new this.wasmModule.IdCaptureApi,this.faceDetectionWasmApi=new this.wasmModule.FaceDetectionApi,this.isInitialized_=!0,gt}static getInstance(){return MlWasmJSApi.instance||(MlWasmJSApi.instance=new MlWasmJSApi),MlWasmJSApi.instance}isInitialized(){return this.pipelineApiUtilities!=null&&this.utilityApi!=null&&this.idCaptureWasmApi!=null&&this.faceDetectionWasmApi!=null&&this.isInitialized_}async allocateImageBuffers(Le,Ye){this.checkWasmInitialization("Unable to allocate image buffers, cpp API hasn't been initialized"),!(Le&&Ye&&Le==this.imageWidth_&&Ye==this.imageHeight_&&this.inputImageBuffer&&Le*Ye*4===this.inputImageBuffer.length)&&(this.imageWidth_=Le,this.imageHeight_=Ye,this.inputImageBuffer=this.pipelineApiUtilities.allocateInputImageBuffer(Le,Ye,4))}async handleDetectionCallAndUpdateState(Le){this.checkWasmInitialization("Unable to update pipeline state, cpp API hasn't been initialized"),this.pipelineApiUtilities.handleDetectionCallAndUpdateState(this.pipelineTypeToWasmEnum(Le))}encryptImage(Le){return this.checkWasmInitialization("Unable to encrypt the image, cpp API hasn't been initialized"),this.utilityApi.encryptImage(Le)}isVirtualCamera(Le){if(this.checkWasmInitialization("Unable to check if the camera is virtual, cpp API hasn't been initialized"),Le)return this.utilityApi.isVirtualCamera(Le)}estimatePerformance(){return this.checkWasmInitialization("Unable to estimate performance, cpp API hasn't been initialized"),this.utilityApi.estimatePerformance()}async analyzeFrame(Le){this.checkWasmInitialization("Unable to analyze the frame, cpp API hasn't been initialized"),await this.allocateImageBuffers(Le.width,Le.height),this.inputImageBuffer.set(Le.data),this.utilityApi.analyzeFrame()}async freeResources(){this.versionsFile=null,this.modelsBuffers=null,this.inputImageBuffer=null,this.imageWidth_=null,this.imageHeight_=null,this.pipelines_=null,window.wasmArrayBuffer=null,this.pipelineApiUtilities&&typeof this.pipelineApiUtilities.delete=="function"&&(this.pipelineApiUtilities.delete(),this.pipelineApiUtilities=null),this.utilityApi&&typeof this.utilityApi.delete=="function"&&(this.utilityApi.delete(),this.utilityApi=null),this.idCaptureWasmApi&&typeof this.idCaptureWasmApi.delete=="function"&&(this.idCaptureWasmApi.delete(),this.idCaptureWasmApi=null),this.faceDetectionWasmApi&&typeof this.faceDetectionWasmApi.delete=="function"&&(this.faceDetectionWasmApi.delete(),this.faceDetectionWasmApi=null),this.wasmModule=null,this.isInitialized_=!1}resetPipeline(Le){this.checkWasmInitialization("Unable to reset pipeline, cpp API hasn't been initialized"),this.pipelineApiUtilities.resetPipeline(this.pipelineTypeToWasmEnum(Le))}resetAllPipelines(){this.checkWasmInitialization("Unable to reset pipelines, cpp API hasn't been initialized");for(const[Le,Ye]of this.pipelines_)this.resetPipeline(Le)}resetOther(){this.checkWasmInitialization("Unable to reset other states, cpp API hasn't been initialized"),this.utilityApi.resetOther()}reset(){this.resetAllPipelines(),this.resetOther()}async process(Le,Ye){if(this.checkWasmInitialization("Unable to process the image, cpp API hasn't been initialized"),this.inputImageBuffer===null)throw new Error("Unable to process the image, buffers haven't been allocated!");switch(this.inputImageBuffer.set(Le.data),Ye){case WasmPipelineType.IdBlurGlarePipeline:case WasmPipelineType.IdBarcodeAndTextQualityPipeline:return this.idCaptureWasmApi.runIdCapturePipeline(this.pipelineTypeToWasmEnum(Ye));case WasmPipelineType.IdFaceDetectionPipeline:return this.faceDetectionWasmApi.runIdFaceDetectionPipeline();case WasmPipelineType.IdVideoSelfiePipeline:return this.idCaptureWasmApi.runIdVideoSelfiePipeline();case WasmPipelineType.SelfieWithAggregationMetrics:case WasmPipelineType.SelfieWithQualityMetrics:return this.faceDetectionWasmApi.runSelfieFaceDetectionPipeline(this.pipelineTypeToWasmEnum(Ye));default:throw new Error("Unknown pipeline type")}}async runIdCapture(Le){if(this.checkWasmInitialization("Unable to run Id Capture, cpp API hasn't been initialized"),this.inputImageBuffer===null)throw new Error("Unable to process the image, buffers haven't been allocated!");return this.inputImageBuffer.set(Le.data),this.idCaptureWasmApi.runIdCapture()}async runSelfieCapture(Le){if(this.checkWasmInitialization("Unable to run Selfie Capture, cpp API hasn't been initialized"),this.inputImageBuffer===null)throw new Error("Unable to process the image, buffers haven't been allocated!");return this.inputImageBuffer.set(Le.data),this.faceDetectionWasmApi.runSelfieCapture()}async setFacePositionConstraints(Le,Ye,tt,nt,ft){this.checkWasmInitialization("Unable to set face position constraints, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFacePositionConstraints(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft)}async setFaceDetectionThresholds(Le,Ye,tt,nt,ft,ht,gt,At){this.checkWasmInitialization("Unable to set face detection thresholds, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFaceDetectionThresholds(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At)}async setFaceAttributesThresholds(Le,Ye,tt,nt,ft){this.checkWasmInitialization("Unable to set face attributes thresholds, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFaceAttributesThresholds(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft)}async setFaceChecksEnabled(Le,Ye,tt,nt,ft,ht){this.checkWasmInitialization("Unable to set face checks enabled flags, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFaceChecksEnabled(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht)}async setFaceDetectionMode(Le,Ye){this.checkWasmInitialization("Unable to set face detection mode, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFaceDetectionMode(this.pipelineTypeToWasmEnum(Le),Ye)}async setFaceDetectionCallbacks(Le,Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt,vt,bt,It,wt,Rt,Tt){this.checkWasmInitialization("Unable to set face detection callbacks, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFaceDetectionCallbacks(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt,vt,bt,It,wt,Rt,Tt)}async setIdCaptureThresholds(Le,Ye,tt,nt,ft,ht,gt,At,xt,Et,yt){this.checkWasmInitialization("Unable to set thresholds, cpp API hasn't been initialized"),this.idCaptureWasmApi.setIdCaptureThresholds(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At,xt,Et,yt)}async setIdCaptureCallbacks(Le,Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt,vt){this.checkWasmInitialization("Unable to set callbacks, cpp API hasn't been initialized"),this.idCaptureWasmApi.setIdCaptureCallbacks(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt,vt)}async setIdCaptureGeometryParams(Le,Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt){this.checkWasmInitialization("Unable to set geometry params, cpp API hasn't been initialized"),this.idCaptureWasmApi.setIdCaptureGeometryParams(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt)}async setIdCaptureConfigParams(Le,Ye,tt,nt,ft,ht,gt,At){this.checkWasmInitialization("Unable to set config params, cpp API hasn't been initialized"),this.idCaptureWasmApi.setIdCaptureConfigParams(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At)}setIdCaptureModelType(Le,Ye){this.checkWasmInitialization("Unable to set model type, cpp API hasn't been initialized"),this.idCaptureWasmApi.setIdCaptureModelType(this.pipelineTypeToWasmEnum(Le),this.IdCaptureModelTypeToWasmEnum(Ye))}IdPerspectiveTransform(Le,Ye){return this.checkWasmInitialization("Unable to perform perspective transform, cpp API hasn't been initialized"),this.idCaptureWasmApi.IdPerspectiveTransform(Le,Ye)}async getVersions(){const Ye=await(await fetch(this.versionsFile)).text();return JSON.parse(Ye)}async loadWasm(Le,Ye,tt){const nt=Le?tt:Ye;try{window.wasmArrayBuffer=await fetch(nt).then(ft=>ft.arrayBuffer()).then(ft=>new Uint8Array(ft)),this.wasmModule=await this.Module()}catch(ft){if(console.log(ft,Le,"useSmd"),Le)return await this.loadWasm(!1,Ye,tt);throw ft}return Le}async loadModels(){var nt;this.checkWasmInitialization("Unable load the models, cpp API hasn't been initialized");let Le=new this.wasmModule.PipelineTypeToIntMap,Ye=new Map,tt=new Map;for(let[ft,ht]of this.pipelines_){let gt=this.pipelineTypeToWasmEnum(ft),At=[],xt=new this.wasmModule.VectorInt;for(let Et of ht){if(!tt.has(Et)){let Ct=await fetch(Et).then(kt=>kt.arrayBuffer()).then(kt=>new Uint8Array(kt));tt.set(Et,Ct)}let yt=tt.get(Et);xt.push_back(yt.byteLength),At.push(yt)}Le.set(gt,xt),Ye.set(gt,At)}this.modelsBuffers=this.pipelineApiUtilities.allocateModelsBuffers(Le);for(let[ft,ht]of Ye){let gt=(nt=this.modelsBuffers)==null?void 0:nt.get(ft);for(let At=0;At<gt.size();At++){let xt=gt==null?void 0:gt.get(At);if(xt)xt.set(ht[At]);else throw new Error("Unable to get model buffer from shared memory!")}}}async initializePipelines(){this.checkWasmInitialization("Unable to initialize pipelines, cpp API hasn't been initialized"),this.modelsBuffers||await this.loadModels(),this.pipelineApiUtilities.initializePipelines()}async setProductionMode(Le){this.checkWasmInitialization("Unable to set production mode, cpp API hasn't been initialized"),this.utilityApi.setProductionMode(Le)}getPipelineState(){return this.checkWasmInitialization("Unable to get pipeline state, cpp API hasn't been initialized"),this.pipelineApiUtilities.getPipelineState()}getCurrentPipeline(){return this.checkWasmInitialization("Unable to get current pipeline, cpp API hasn't been initialized"),this.pipelineTypeFromWasmEnum(this.pipelineApiUtilities.getCurrentPipeline())}setSdkVersion(Le){this.checkWasmInitialization("Unable to set sdk version, cpp API hasn't been initialized"),this.utilityApi.setSdkVersion(Le)}setSdkPlatform(Le){this.checkWasmInitialization("Unable to set device type, cpp API hasn't been initialized"),this.utilityApi.setSdkPlatform(Le)}setDeviceInfo(Le,Ye=!0){this.checkWasmInitialization("Unable to set device info, cpp API hasn't been initialized"),this.utilityApi.setDeviceInfo(Le,Ye)}setBrowserInfo(Le,Ye=!0){this.checkWasmInitialization("Unable to set browser info, cpp API hasn't been initialized"),this.utilityApi.setBrowserInfo(Le,Ye)}setCameraInfo(Le,Ye=!0){this.checkWasmInitialization("Unable to set camera info, cpp API hasn't been initialized"),this.utilityApi.setCameraInfo(Le,Ye)}setZc(Le){this.checkWasmInitialization("Unable to set zc, cpp API hasn't been initialized"),this.utilityApi.setZc(Le)}setMotionStatus(Le){this.checkWasmInitialization("Unable to set motion status, cpp API hasn't been initialized"),this.utilityApi.setMotionStatus(Le)}setMetadataField(Le,Ye){this.checkWasmInitialization("Unable to set metadata field, cpp API hasn't been initialized"),this.utilityApi.setMetadataField(Le,Ye)}setInspectorOpened(Le){this.inspectorOpened_=Le}setBackgroundMode(Le){this.checkWasmInitialization("Unable to set background mode, cpp API hasn't been initialized"),this.utilityApi.setBackgroundMode(Le)}getCheck(){return this.checkWasmInitialization("Unable to get check, cpp API hasn't been initialized"),this.utilityApi.getCheck()}getMetadata(){return this.checkWasmInitialization("Unable to get metadata, cpp API hasn't been initialized"),this.utilityApi.setInspectorOpened(this.inspectorOpened_),this.utilityApi.getMetadata()}async prc(){return this.checkWasmInitialization("Unable to prc, cpp API hasn't been initialized"),await this.wasmCallWrapper(this.utilityApi.prc.bind(this.utilityApi),[])}async poc(Le){this.checkWasmInitialization("Unable to poc, cpp API hasn't been initialized"),await this.wasmCallWrapper(this.utilityApi.poc.bind(this.utilityApi),[Le])}pipelineTypeToWasmEnum(Le){switch(Le){case WasmPipelineType.IdBlurGlarePipeline:return this.wasmModule.PipelineType.IdBlurGlarePipeline;case WasmPipelineType.IdBarcodeAndTextQualityPipeline:return this.wasmModule.PipelineType.IdBarcodeAndTextQualityPipeline;case WasmPipelineType.IdFaceDetectionPipeline:return this.wasmModule.PipelineType.IdFaceDetectionPipeline;case WasmPipelineType.IdVideoSelfiePipeline:return this.wasmModule.PipelineType.IdVideoSelfiePipeline;case WasmPipelineType.SelfieWithAggregationMetrics:return this.wasmModule.PipelineType.SelfieWithAggregationMetrics;case WasmPipelineType.SelfieWithQualityMetrics:return this.wasmModule.PipelineType.SelfieWithQualityMetrics;default:throw new Error("Unknown pipeline type")}}pipelineTypeFromWasmEnum(Le){switch(Le){case this.wasmModule.PipelineType.IdBlurGlarePipeline:return WasmPipelineType.IdBlurGlarePipeline;case this.wasmModule.IdBarcodeAndTextQualityPipeline:return WasmPipelineType.IdBarcodeAndTextQualityPipeline;case this.wasmModule.PipelineType.IdFaceDetectionPipeline:return WasmPipelineType.IdFaceDetectionPipeline;case this.wasmModule.PipelineType.IdVideoSelfiePipeline:return WasmPipelineType.IdVideoSelfiePipeline;case this.wasmModule.PipelineType.SelfieWithAggregationMetrics:return WasmPipelineType.SelfieWithAggregationMetrics;case this.wasmModule.PipelineType.SelfieWithQualityMetrics:return WasmPipelineType.SelfieWithQualityMetrics;default:throw new Error("Unknown pipeline type")}}IdCaptureModelTypeToWasmEnum(Le){switch(Le){case IdCaptureModelType.IdCaptureV1x:return this.wasmModule.IdCaptureModelType.IdCaptureV1x;case IdCaptureModelType.IdCaptureV2x:return this.wasmModule.IdCaptureModelType.IdCaptureV2x;case IdCaptureModelType.IdCaptureV3x:return this.wasmModule.IdCaptureModelType.IdCaptureV3x;default:throw new Error("Unknown Id Capture model type")}}checkWasmInitialization(Le){if(!this.isInitialized())throw new Error(Le)}async wasmCallWrapper(Le,Ye=[]){return await this.wasmCallMutex.withLock(async(...tt)=>{let nt=!1;try{for(;;){if(nt=Le(...tt),nt)return;await new Promise(ft=>setTimeout(ft,0))}}catch(ft){console.log("Error in wasmCallWrapper:",ft)}},...Ye)}}const MlWasmJSApi$1=MlWasmJSApi.getInstance(),version$4="1.85.0-20251212230726.0";function e$2(Be,Le){return function(Ye,tt){return Object.prototype.hasOwnProperty.call(Ye,tt)}(Be,Le)?Be[Le]:void 0}function t$2(Be,Le,Ye,tt){const nt=document,ft="securitypolicyviolation";let ht;const gt=xt=>{const Et=new URL(Be,location.href),{blockedURI:yt}=xt;yt!==Et.href&&yt!==Et.protocol.slice(0,-1)&&yt!==Et.origin||(ht=xt,At())};nt.addEventListener(ft,gt);const At=()=>nt.removeEventListener(ft,gt);return Promise.resolve().then(Le).then(xt=>(At(),xt),xt=>new Promise(Et=>{const yt=new MessageChannel;yt.port1.onmessage=()=>Et(),yt.port2.postMessage(null)}).then(()=>{if(At(),ht)return Ye(ht);throw xt}))}function n$2(Be){let Le="";for(let Ye=0;Ye<Be.length;++Ye)if(Ye>0){const tt=Be[Ye].toLowerCase();tt!==Be[Ye]?Le+=` ${tt}`:Le+=Be[Ye]}else Le+=Be[Ye].toUpperCase();return Le}const r$4={default:"endpoint"},o$1={default:"tlsEndpoint"},i$5="Client timeout",R$2="Network connection error",s$3="Network request aborted",a$3="Response cannot be parsed",c$3="Blocked by CSP",E$1="The endpoint parameter is not a valid URL",l$1="Handle on demand agent data error",u$1=n$2("WrongRegion"),d$1=n$2("SubscriptionNotActive"),_$2=n$2("UnsupportedVersion"),O$1=n$2("InstallationMethodRestricted"),p$1=n$2("HostnameRestricted"),I$1=n$2("IntegrationFailed"),f$2=n$2("NetworkRestricted"),N$1=n$2("InvalidProxyIntegrationSecret"),T$1=n$2("InvalidProxyIntegrationHeaders"),h$e=n$2("ProxyIntegrationSecretEnvironmentMismatch"),v$d="API key required",m$2="API key not found",A$1="API key expired",w$e="Request cannot be parsed",P$1="Request failed",D$1="Request failed to process",S$1="Too many requests, rate limit exceeded",y="Not available for this origin",g$1="Not available with restricted header",L$1=v$d,C$1=m$2,U$1=A$1;var b$2="3.12.3";const M$1="Failed to load the JS script of the agent",K="9319";function V(Be,Le){const Ye=[],[tt,nt]=function(gt){const At=function(yt){const Ct=[...yt];return{current:()=>Ct[0],postpone(){const kt=Ct.shift();kt!==void 0&&Ct.push(kt)},exclude(){Ct.shift()}}}(gt),xt=function(yt,Ct){let kt=0;return()=>Math.random()*Math.min(Ct,yt*Math.pow(2,kt++))}(100,3e3),Et=new Set;return[At.current(),(yt,Ct)=>{let kt;const vt=Ct instanceof Error?Ct.message:"";if(vt===c$3||vt===E$1)At.exclude(),kt=0;else if(vt===K)At.exclude();else if(vt===M$1){const It=Date.now()-yt.getTime()<50,wt=At.current();wt&&It&&!Et.has(wt)&&(Et.add(wt),kt=0),At.postpone()}else At.postpone();const bt=At.current();return bt===void 0?void 0:[bt,kt??yt.getTime()+xt()-Date.now()]}]}(Be);let ft;if(tt===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));const ht=gt=>{const At=new Date,xt=yt=>Ye.push({url:gt,startedAt:At,finishedAt:new Date,error:yt}),Et=Le(gt);return Et.then(()=>xt(),xt),Et.catch(yt=>{if(ft!=null||(ft=yt),Ye.length>=5)throw ft;const Ct=nt(At,yt);if(!Ct)throw ft;const[kt,vt]=Ct;return(bt=vt,new Promise(It=>setTimeout(It,bt))).then(()=>ht(kt));var bt})};return ht(tt).then(gt=>[gt,Ye])}const k$1="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",G=k$1;function B$1(Be){var Le,Ye;const{picked:tt,rest:nt}=function(Et,yt){const Ct={},kt={};for(const[vt,bt]of Object.entries(Et))yt.includes(vt)?Ct[vt]=bt:kt[vt]=bt;return{picked:Ct,rest:kt}}(Be,["scriptUrlPattern","token","apiKey"]),ft=tt.token,ht=(Le=tt.apiKey)!==null&&Le!==void 0?Le:ft,gt=(Ye=e$2(Be,"scriptUrlPattern"))!==null&&Ye!==void 0?Ye:k$1,[At,xt]=function(){const Et=[],yt=()=>{Et.push({time:new Date,state:document.visibilityState})},Ct=function(kt,vt,bt,It){return kt.addEventListener(vt,bt,It),()=>kt.removeEventListener(vt,bt,It)}(document,"visibilitychange",yt);return yt(),[Et,Ct]}();return Promise.resolve().then(()=>{if(!ht||typeof ht!="string")throw new Error(v$d);const Et=function(yt,Ct){return(Array.isArray(yt)?yt:[yt]).map(kt=>function(vt,bt){const It=encodeURIComponent;return vt.replace(/<[^<>]+>/g,wt=>wt==="<version>"?"3":wt==="<apiKey>"?It(bt):wt==="<loaderVersion>"?It(b$2):wt)}(String(kt),Ct))}(gt,ht);return V(Et,F$1)}).catch(Et=>{throw xt(),function(yt){return yt instanceof Error&&yt.message===K?new Error(M$1):yt}(Et)}).then(([Et,yt])=>(xt(),Et.load({...nt,ldi:{attempts:yt,visibilityStates:At}})))}function F$1(Be){return t$2(Be,()=>function(Le){return new Promise((Ye,tt)=>{if(function(gt){if(URL.prototype)try{return new URL(gt,location.href),!1}catch(At){if(At instanceof Error&&At.name==="TypeError")return!0;throw At}}(Le))throw new Error(E$1);const nt=document.createElement("script"),ft=()=>{var gt;return(gt=nt.parentNode)===null||gt===void 0?void 0:gt.removeChild(nt)},ht=document.head||document.getElementsByTagName("head")[0];nt.onload=()=>{ft(),Ye()},nt.onerror=()=>{ft(),tt(new Error(M$1))},nt.async=!0,nt.src=Le,ht.appendChild(nt)})}(Be),()=>{throw new Error(c$3)}).then(x$1)}function x$1(){const Be=window,Le="__fpjs_p_l_b",Ye=Be[Le];if(function(tt,nt){var ft;const ht=(ft=Object.getOwnPropertyDescriptor)===null||ft===void 0?void 0:ft.call(Object,tt,nt);ht!=null&&ht.configurable?delete tt[nt]:ht&&!ht.writable||(tt[nt]=void 0)}(Be,Le),typeof(Ye==null?void 0:Ye.load)!="function")throw new Error(K);return Ye}var H={load:B$1,defaultScriptUrlPattern:G,ERROR_SCRIPT_LOAD_FAIL:M$1,ERROR_API_KEY_EXPIRED:A$1,ERROR_API_KEY_INVALID:m$2,ERROR_API_KEY_MISSING:v$d,ERROR_BAD_REQUEST_FORMAT:w$e,ERROR_BAD_RESPONSE_FORMAT:a$3,ERROR_CLIENT_TIMEOUT:i$5,ERROR_CSP_BLOCK:c$3,ERROR_FORBIDDEN_ENDPOINT:p$1,ERROR_FORBIDDEN_HEADER:g$1,ERROR_FORBIDDEN_ORIGIN:y,ERROR_GENERAL_SERVER_FAILURE:P$1,ERROR_HANDLE_AGENT_DATA:l$1,ERROR_INSTALLATION_METHOD_RESTRICTED:O$1,ERROR_INTEGRATION_FAILURE:I$1,ERROR_INVALID_ENDPOINT:E$1,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:T$1,ERROR_INVALID_PROXY_INTEGRATION_SECRET:N$1,ERROR_NETWORK_ABORT:s$3,ERROR_NETWORK_CONNECTION:R$2,ERROR_NETWORK_RESTRICTED:f$2,ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:h$e,ERROR_RATE_LIMIT:S$1,ERROR_SERVER_TIMEOUT:D$1,ERROR_SUBSCRIPTION_NOT_ACTIVE:d$1,ERROR_TOKEN_EXPIRED:U$1,ERROR_TOKEN_INVALID:C$1,ERROR_TOKEN_MISSING:L$1,ERROR_UNSUPPORTED_VERSION:_$2,ERROR_WRONG_REGION:u$1,defaultEndpoint:r$4,defaultTlsEndpoint:o$1};function e$1(Be,Le,Ye,tt){return new(Ye||(Ye=Promise))(function(nt,ft){function ht(xt){try{At(tt.next(xt))}catch(Et){ft(Et)}}function gt(xt){try{At(tt.throw(xt))}catch(Et){ft(Et)}}function At(xt){var Et;xt.done?nt(xt.value):(Et=xt.value,Et instanceof Ye?Et:new Ye(function(yt){yt(Et)})).then(ht,gt)}At((tt=tt.apply(Be,[])).next())})}function n$1(Be,Le){var Ye,tt,nt,ft,ht={label:0,sent:function(){if(1&nt[0])throw nt[1];return nt[1]},trys:[],ops:[]};return ft={next:gt(0),throw:gt(1),return:gt(2)},typeof Symbol=="function"&&(ft[Symbol.iterator]=function(){return this}),ft;function gt(At){return function(xt){return function(Et){if(Ye)throw new TypeError("Generator is already executing.");for(;ft&&(ft=0,Et[0]&&(ht=0)),ht;)try{if(Ye=1,tt&&(nt=2&Et[0]?tt.return:Et[0]?tt.throw||((nt=tt.return)&&nt.call(tt),0):tt.next)&&!(nt=nt.call(tt,Et[1])).done)return nt;switch(tt=0,nt&&(Et=[2&Et[0],nt.value]),Et[0]){case 0:case 1:nt=Et;break;case 4:return ht.label++,{value:Et[1],done:!1};case 5:ht.label++,tt=Et[1],Et=[0];continue;case 7:Et=ht.ops.pop(),ht.trys.pop();continue;default:if(nt=ht.trys,!((nt=nt.length>0&&nt[nt.length-1])||Et[0]!==6&&Et[0]!==2)){ht=0;continue}if(Et[0]===3&&(!nt||Et[1]>nt[0]&&Et[1]<nt[3])){ht.label=Et[1];break}if(Et[0]===6&&ht.label<nt[1]){ht.label=nt[1],nt=Et;break}if(nt&&ht.label<nt[2]){ht.label=nt[2],ht.ops.push(Et);break}nt[2]&&ht.ops.pop(),ht.trys.pop();continue}Et=Le.call(Be,ht)}catch(yt){Et=[6,yt],tt=0}finally{Ye=nt=0}if(5&Et[0])throw Et[1];return{value:Et[0]?Et[1]:void 0,done:!0}}([At,xt])}}}typeof SuppressedError=="function"&&SuppressedError;var r$3={exclude:[],include:[],logging:!0,timeout:1e3},o={},a$2={timeout:"true"},i$4=function(Be,Le){typeof window<"u"&&(o[Be]=Le)},u=function(){return Object.fromEntries(Object.entries(o).filter(function(Be){var Le,Ye=Be[0];return!(!((Le=r$3==null?void 0:r$3.exclude)===null||Le===void 0)&&Le.includes(Ye))}).filter(function(Be){var Le,Ye,tt,nt,ft=Be[0];return!((Le=r$3==null?void 0:r$3.include)===null||Le===void 0)&&Le.some(function(ht){return ht.includes(".")})?(Ye=r$3==null?void 0:r$3.include)===null||Ye===void 0?void 0:Ye.some(function(ht){return ht.startsWith(ft)}):((tt=r$3==null?void 0:r$3.include)===null||tt===void 0?void 0:tt.length)===0||((nt=r$3==null?void 0:r$3.include)===null||nt===void 0?void 0:nt.includes(ft))}).map(function(Be){return[Be[0],(0,Be[1])()]}))};function c$2(Be){return Be^=Be>>>16,Be=Math.imul(Be,2246822507),Be^=Be>>>13,Be=Math.imul(Be,3266489909),(Be^=Be>>>16)>>>0}var s$2=new Uint32Array([597399067,2869860233,951274213,2716044179]);function l(Be,Le){return Be<<Le|Be>>>32-Le}function d(Be,Le){var Ye;if(Le===void 0&&(Le=0),Le=Le?0|Le:0,typeof Be=="string"&&(Ye=Be,Be=new TextEncoder().encode(Ye).buffer),!(Be instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var tt=new Uint32Array([Le,Le,Le,Le]);(function(ft,ht){for(var gt=ft.byteLength/16|0,At=new Uint32Array(ft,0,4*gt),xt=0;xt<gt;xt++){var Et=At.subarray(4*xt,4*(xt+1));Et[0]=Math.imul(Et[0],s$2[0]),Et[0]=l(Et[0],15),Et[0]=Math.imul(Et[0],s$2[1]),ht[0]=ht[0]^Et[0],ht[0]=l(ht[0],19),ht[0]=ht[0]+ht[1],ht[0]=Math.imul(ht[0],5)+1444728091,Et[1]=Math.imul(Et[1],s$2[1]),Et[1]=l(Et[1],16),Et[1]=Math.imul(Et[1],s$2[2]),ht[1]=ht[1]^Et[1],ht[1]=l(ht[1],17),ht[1]=ht[1]+ht[2],ht[1]=Math.imul(ht[1],5)+197830471,Et[2]=Math.imul(Et[2],s$2[2]),Et[2]=l(Et[2],17),Et[2]=Math.imul(Et[2],s$2[3]),ht[2]=ht[2]^Et[2],ht[2]=l(ht[2],15),ht[2]=ht[2]+ht[3],ht[2]=Math.imul(ht[2],5)+2530024501,Et[3]=Math.imul(Et[3],s$2[3]),Et[3]=l(Et[3],18),Et[3]=Math.imul(Et[3],s$2[0]),ht[3]=ht[3]^Et[3],ht[3]=l(ht[3],13),ht[3]=ht[3]+ht[0],ht[3]=Math.imul(ht[3],5)+850148119}})(Be,tt),function(ft,ht){var gt=ft.byteLength/16|0,At=ft.byteLength%16,xt=new Uint32Array(4),Et=new Uint8Array(ft,16*gt,At);switch(At){case 15:xt[3]=xt[3]^Et[14]<<16;case 14:xt[3]=xt[3]^Et[13]<<8;case 13:xt[3]=xt[3]^Et[12],xt[3]=Math.imul(xt[3],s$2[3]),xt[3]=l(xt[3],18),xt[3]=Math.imul(xt[3],s$2[0]),ht[3]=ht[3]^xt[3];case 12:xt[2]=xt[2]^Et[11]<<24;case 11:xt[2]=xt[2]^Et[10]<<16;case 10:xt[2]=xt[2]^Et[9]<<8;case 9:xt[2]=xt[2]^Et[8],xt[2]=Math.imul(xt[2],s$2[2]),xt[2]=l(xt[2],17),xt[2]=Math.imul(xt[2],s$2[3]),ht[2]=ht[2]^xt[2];case 8:xt[1]=xt[1]^Et[7]<<24;case 7:xt[1]=xt[1]^Et[6]<<16;case 6:xt[1]=xt[1]^Et[5]<<8;case 5:xt[1]=xt[1]^Et[4],xt[1]=Math.imul(xt[1],s$2[1]),xt[1]=l(xt[1],16),xt[1]=Math.imul(xt[1],s$2[2]),ht[1]=ht[1]^xt[1];case 4:xt[0]=xt[0]^Et[3]<<24;case 3:xt[0]=xt[0]^Et[2]<<16;case 2:xt[0]=xt[0]^Et[1]<<8;case 1:xt[0]=xt[0]^Et[0],xt[0]=Math.imul(xt[0],s$2[0]),xt[0]=l(xt[0],15),xt[0]=Math.imul(xt[0],s$2[1]),ht[0]=ht[0]^xt[0]}}(Be,tt),function(ft,ht){ht[0]=ht[0]^ft.byteLength,ht[1]=ht[1]^ft.byteLength,ht[2]=ht[2]^ft.byteLength,ht[3]=ht[3]^ft.byteLength,ht[0]=ht[0]+ht[1]|0,ht[0]=ht[0]+ht[2]|0,ht[0]=ht[0]+ht[3]|0,ht[1]=ht[1]+ht[0]|0,ht[2]=ht[2]+ht[0]|0,ht[3]=ht[3]+ht[0]|0,ht[0]=c$2(ht[0]),ht[1]=c$2(ht[1]),ht[2]=c$2(ht[2]),ht[3]=c$2(ht[3]),ht[0]=ht[0]+ht[1]|0,ht[0]=ht[0]+ht[2]|0,ht[0]=ht[0]+ht[3]|0,ht[1]=ht[1]+ht[0]|0,ht[2]=ht[2]+ht[0]|0,ht[3]=ht[3]+ht[0]|0}(Be,tt);var nt=new Uint8Array(tt.buffer);return Array.from(nt).map(function(ft){return ft.toString(16).padStart(2,"0")}).join("")}function f$1(Be,Le){return new Promise(function(Ye){setTimeout(function(){return Ye(Le)},Be)})}function m$1(Be,Le,Ye){return Promise.all(Be.map(function(tt){return Promise.race([tt,f$1(Le,Ye)])}))}function g(){return e$1(this,void 0,void 0,function(){var Be,Le,Ye,tt,nt;return n$1(this,function(ft){switch(ft.label){case 0:return ft.trys.push([0,2,,3]),Be=u(),Le=Object.keys(Be),[4,m$1(Object.values(Be),(r$3==null?void 0:r$3.timeout)||1e3,a$2)];case 1:return Ye=ft.sent(),tt=Ye.filter(function(ht){return ht!==void 0}),nt={},tt.forEach(function(ht,gt){nt[Le[gt]]=ht}),[2,p(nt,r$3.exclude||[],r$3.include||[],"")];case 2:throw ft.sent();case 3:return[2]}})})}function p(Be,Le,Ye,tt){tt===void 0&&(tt="");for(var nt={},ft=function(xt,Et){var yt=tt+xt+".";if(typeof Et!="object"||Array.isArray(Et)){var Ct=Le.some(function(bt){return yt.startsWith(bt)}),kt=Ye.some(function(bt){return yt.startsWith(bt)});Ct&&!kt||(nt[xt]=Et)}else{var vt=p(Et,Le,Ye,yt);Object.keys(vt).length>0&&(nt[xt]=vt)}},ht=0,gt=Object.entries(Be);ht<gt.length;ht++){var At=gt[ht];ft(At[0],At[1])}return nt}function w$d(Be){return e$1(this,void 0,void 0,function(){var Le,Ye;return n$1(this,function(tt){switch(tt.label){case 0:return tt.trys.push([0,2,,3]),[4,g()];case 1:return Le=tt.sent(),Ye=d(JSON.stringify(Le)),Math.random()<1e-5&&r$3.logging&&function(nt,ft){e$1(this,void 0,void 0,function(){var ht,gt;return n$1(this,function(At){switch(At.label){case 0:if(ht="https://logging.thumbmarkjs.com/v1/log",gt={thumbmark:nt,components:ft,version:"0.20.6"},sessionStorage.getItem("_tmjs_l"))return[3,4];sessionStorage.setItem("_tmjs_l","1"),At.label=1;case 1:return At.trys.push([1,3,,4]),[4,fetch(ht,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(gt)})];case 2:case 3:return At.sent(),[3,4];case 4:return[2]}})})}(Ye,Le),[2,Ye.toString()];case 2:throw tt.sent();case 3:return[2]}})})}function b$1(){if(typeof navigator>"u")return{name:"unknown",version:"unknown"};for(var Be=navigator.userAgent,Le={edg:"Edge",opr:"Opera",samsung:"SamsungBrowser"},Ye=0,tt=[/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>samsung).*Version\/(?<version>\d+(?:\.\d+)?)/i,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/];Ye<tt.length;Ye++){var nt=tt[Ye],ft=Be.match(nt);if(ft&&ft.groups)return{name:Le[ft.groups.name.toLowerCase()]||ft.groups.name,version:ft.groups.version}}return{name:"unknown",version:"unknown"}}function S(Be){for(var Le=0,Ye=0;Ye<Be.length;++Ye)Le+=Math.abs(Be[Ye]);return Le}var M=b$1();function E(Be,Le,Ye){for(var tt=[],nt=0;nt<Be[0].data.length;nt++){for(var ft=[],ht=0;ht<Be.length;ht++)ft.push(Be[ht].data[nt]);tt.push(P(ft))}var gt=new Uint8ClampedArray(tt);return new ImageData(gt,Le,Ye)}function P(Be){if(Be.length===0)return 0;for(var Le={},Ye=0,tt=Be;Ye<tt.length;Ye++)Le[ft=tt[Ye]]=(Le[ft]||0)+1;var nt=Be[0];for(var ft in Le)Le[ft]>Le[nt]&&(nt=parseInt(ft,10));return nt}["SamsungBrowser","Safari"].includes(M.name)||i$4("audio",function(){return e$1(this,void 0,void 0,function(){return n$1(this,function(Be){return[2,new Promise(function(Le,Ye){try{var tt=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),nt=tt.createBufferSource(),ft=tt.createOscillator();ft.frequency.value=1e3;var ht,gt=tt.createDynamicsCompressor();gt.threshold.value=-50,gt.knee.value=40,gt.ratio.value=12,gt.attack.value=0,gt.release.value=.2,ft.connect(gt),gt.connect(tt.destination),ft.start(),tt.oncomplete=function(At){ht=At.renderedBuffer.getChannelData(0),Le({sampleHash:S(ht),oscillator:ft.type,maxChannels:tt.destination.maxChannelCount,channelCountMode:nt.channelCountMode})},tt.startRendering()}catch(At){console.error("Error creating audio fingerprint:",At),Ye(At)}})]})})});var A=b$1(),C=A.name.toLowerCase(),x=A.version.split(".")[0]||"0",T=parseInt(x,10);C==="firefox"||C==="safari"&&T===17||i$4("canvas",function(){return document.createElement("canvas").getContext("2d"),new Promise(function(Be){var Le=Array.from({length:3},function(){return function(){var Ye=document.createElement("canvas"),tt=Ye.getContext("2d");if(!tt)return new ImageData(1,1);Ye.width=280,Ye.height=20;var nt=tt.createLinearGradient(0,0,Ye.width,Ye.height);nt.addColorStop(0,"red"),nt.addColorStop(.16666666666666666,"orange"),nt.addColorStop(.3333333333333333,"yellow"),nt.addColorStop(.5,"green"),nt.addColorStop(.6666666666666666,"blue"),nt.addColorStop(.8333333333333334,"indigo"),nt.addColorStop(1,"violet"),tt.fillStyle=nt,tt.fillRect(0,0,Ye.width,Ye.height);var ft="Random Text WMwmil10Oo";return tt.font="23.123px Arial",tt.fillStyle="black",tt.fillText(ft,-5,15),tt.fillStyle="rgba(0, 0, 255, 0.5)",tt.fillText(ft,-3.3,17.7),tt.beginPath(),tt.moveTo(0,0),tt.lineTo(2*Ye.width/7,Ye.height),tt.strokeStyle="white",tt.lineWidth=2,tt.stroke(),tt.getImageData(0,0,Ye.width,Ye.height)}()});Be({commonImageDataHash:d(E(Le,280,20).data.toString()).toString()})})});var k,I=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],R$1=["monospace","sans-serif","serif"];function L(Be,Le){if(!Be)throw new Error("Canvas context not supported");return Be.font,Be.font="72px ".concat(Le),Be.measureText("WwMmLli0Oo").width}function _$1(){var Be,Le=document.createElement("canvas"),Ye=(Be=Le.getContext("webgl"))!==null&&Be!==void 0?Be:Le.getContext("experimental-webgl");if(Ye&&"getParameter"in Ye)try{var tt=(Ye.getParameter(Ye.VENDOR)||"").toString(),nt=(Ye.getParameter(Ye.RENDERER)||"").toString(),ft={vendor:tt,renderer:nt,version:(Ye.getParameter(Ye.VERSION)||"").toString(),shadingLanguageVersion:(Ye.getParameter(Ye.SHADING_LANGUAGE_VERSION)||"").toString()};if(!nt.length||!tt.length){var ht=Ye.getExtension("WEBGL_debug_renderer_info");if(ht){var gt=(Ye.getParameter(ht.UNMASKED_VENDOR_WEBGL)||"").toString(),At=(Ye.getParameter(ht.UNMASKED_RENDERER_WEBGL)||"").toString();gt&&(ft.vendorUnmasked=gt),At&&(ft.rendererUnmasked=At)}}return ft}catch{}return"undefined"}function O(){var Be=new Float32Array(1),Le=new Uint8Array(Be.buffer);return Be[0]=1/0,Be[0]=Be[0]-Be[0],Le[3]}function B(Be,Le){var Ye={};return Le.forEach(function(tt){var nt=function(ft){if(ft.length===0)return null;var ht={};ft.forEach(function(xt){var Et=String(xt);ht[Et]=(ht[Et]||0)+1});var gt=ft[0],At=1;return Object.keys(ht).forEach(function(xt){ht[xt]>At&&(gt=xt,At=ht[xt])}),gt}(Be.map(function(ft){return tt in ft?ft[tt]:void 0}).filter(function(ft){return ft!==void 0}));nt&&(Ye[tt]=nt)}),Ye}function D(){var Be=[],Le={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(Le).forEach(function(Ye){Le[Ye].forEach(function(tt){matchMedia("(".concat(Ye,": ").concat(tt,")")).matches&&Be.push("".concat(Ye,": ").concat(tt))})}),Be}b$1().name!="Firefox"&&i$4("fonts",function(){var Be=this;return new Promise(function(Le,Ye){try{(function(tt){var nt;e$1(this,void 0,void 0,function(){var ft,ht,gt;return n$1(this,function(At){switch(At.label){case 0:return document.body?[3,2]:[4,(xt=50,new Promise(function(yt){return setTimeout(yt,xt,Et)}))];case 1:return At.sent(),[3,0];case 2:if((ft=document.createElement("iframe")).setAttribute("frameBorder","0"),(ht=ft.style).setProperty("position","fixed"),ht.setProperty("display","block","important"),ht.setProperty("visibility","visible"),ht.setProperty("border","0"),ht.setProperty("opacity","0"),ft.src="about:blank",document.body.appendChild(ft),!(gt=ft.contentDocument||((nt=ft.contentWindow)===null||nt===void 0?void 0:nt.document)))throw new Error("Iframe document is not accessible");return tt({iframe:gt}),setTimeout(function(){document.body.removeChild(ft)},0),[2]}var xt,Et})})})(function(tt){var nt=tt.iframe;return e$1(Be,void 0,void 0,function(){var ft,ht,gt,At;return n$1(this,function(xt){return ft=nt.createElement("canvas"),ht=ft.getContext("2d"),gt=R$1.map(function(Et){return L(ht,Et)}),At={},I.forEach(function(Et){var yt=L(ht,Et);gt.includes(yt)||(At[Et]=yt)}),Le(At),[2]})})})}catch{Ye({error:"unsupported"})}})}),i$4("hardware",function(){return new Promise(function(Be,Le){var Ye=navigator.deviceMemory!==void 0?navigator.deviceMemory:0,tt=window.performance&&window.performance.memory?window.performance.memory:0;Be({videocard:_$1(),architecture:O(),deviceMemory:Ye.toString()||"undefined",jsHeapSizeLimit:tt.jsHeapSizeLimit||0})})}),i$4("locales",function(){return new Promise(function(Be){Be({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})})}),i$4("permissions",function(){return e$1(this,void 0,void 0,function(){var Be;return n$1(this,function(Le){return k=(r$3==null?void 0:r$3.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],b$1().name.toLowerCase()==="safari"&&(k=k.filter(function(Ye){return!["camera","geolocation","microphone"].includes(Ye)})),Be=Array.from({length:(r$3==null?void 0:r$3.retries)||3},function(){return function(){return e$1(this,void 0,void 0,function(){var Ye,tt,nt,ft,ht;return n$1(this,function(gt){switch(gt.label){case 0:Ye={},tt=0,nt=k,gt.label=1;case 1:if(!(tt<nt.length))return[3,6];ft=nt[tt],gt.label=2;case 2:return gt.trys.push([2,4,,5]),[4,navigator.permissions.query({name:ft})];case 3:return ht=gt.sent(),Ye[ft]=ht.state.toString(),[3,5];case 4:return gt.sent(),[3,5];case 5:return tt++,[3,1];case 6:return[2,Ye]}})})}()}),[2,Promise.all(Be).then(function(Ye){return B(Ye,k)})]})})}),i$4("plugins",function(){var Be=[];if(navigator.plugins)for(var Le=0;Le<navigator.plugins.length;Le++){var Ye=navigator.plugins[Le];Be.push([Ye.name,Ye.filename,Ye.description].join("|"))}return new Promise(function(tt){tt({plugins:Be})})}),i$4("screen",function(){return new Promise(function(Be){Be({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})})}),i$4("system",function(){return new Promise(function(Be){var Le=b$1(),Ye={platform:window.navigator.platform,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:Le.name,version:Le.version}};Le.name.toLowerCase()!=="safari"&&(Ye.applePayVersion=function(){if(window.location.protocol==="https:"&&typeof window.ApplePaySession=="function")try{for(var tt=window.ApplePaySession.supportsVersion,nt=15;nt>0;nt--)if(tt(nt))return nt}catch{return 0}return 0}(),Ye.cookieEnabled=window.navigator.cookieEnabled),Be(Ye)})});var U,N=b$1().name!=="SamsungBrowser"?1:3,F=null;i$4("webgl",function(){return e$1(this,void 0,void 0,function(){var Be;return n$1(this,function(Le){typeof document<"u"&&((U=document.createElement("canvas")).width=200,U.height=100,F=U.getContext("webgl"));try{if(!F)throw new Error("WebGL not supported");return Be=Array.from({length:N},function(){return function(){try{if(!F)throw new Error("WebGL not supported");var Ye=`
|
|
66
|
+
`;typeof Promise.withResolvers!="function"&&(Promise.withResolvers=()=>{let Be,Le;return{promise:new Promise((tt,nt)=>{Be=tt,Le=nt}),resolve:Be,reject:Le}});class InterruptionHandler{constructor(){this.boundVisibilityChange=this.handleVisibilityChange.bind(this),this.boundOnline=this.handleOnline.bind(this),this.boundOffline=this.handleOffline.bind(this),this.boundUnhandledRejection=this.handleUnhandledRejection.bind(this),this.boundError=this.handleError.bind(this),this.initialized=!1}registerEventListeners(){this.initialized||(document.addEventListener("visibilitychange",this.boundVisibilityChange),window.addEventListener("online",this.boundOnline),window.addEventListener("offline",this.boundOffline),window.addEventListener("unhandledrejection",this.boundUnhandledRejection),window.addEventListener("error",this.boundError),this.initialized=!0)}removeEventListeners(){this.initialized&&(this.initialized=!1,document.removeEventListener("visibilitychange",this.boundVisibilityChange),window.removeEventListener("online",this.boundOnline),window.removeEventListener("offline",this.boundOffline),window.removeEventListener("unhandledrejection",this.boundUnhandledRejection),window.removeEventListener("error",this.boundError))}handleVisibilityChange(){document.hidden?this.onAppHidden():this.onAppVisible()}onAppHidden(){}onAppVisible(){}handleOnline(){}handleOffline(){}handleUnhandledRejection(Le){}handleError(Le){}}const regex$1={CURP_PATTERN:/^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/,EMAIL_PATTERN:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,SSN_PATTERN:/^\d{3}-?\d{2}-?\d{4}$/};function webgl(){let Be,Le,Ye=256,tt=128;Be=document.body.appendChild(document.createElement("canvas")),Be.width=Ye,Be.height=tt;try{Le=Be.getContext("webgl2")||Be.getContext("experimental-webgl2")||Be.getContext("webgl")||Be.getContext("experimental-webgl")||Be.getContext("moz-webgl");const nt="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",ft="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}",ht=Le.createBuffer();Le.bindBuffer(Le.ARRAY_BUFFER,ht);const gt=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.7321,0]);Le.bufferData(Le.ARRAY_BUFFER,gt,Le.STATIC_DRAW),ht.itemSize=3,ht.numItems=3;const At=Le.createProgram(),xt=Le.createShader(Le.VERTEX_SHADER);Le.shaderSource(xt,nt),Le.compileShader(xt);const Et=Le.createShader(Le.FRAGMENT_SHADER);Le.shaderSource(Et,ft),Le.compileShader(Et),Le.attachShader(At,xt),Le.attachShader(At,Et),Le.linkProgram(At),Le.useProgram(At),At.vertexPosAttrib=Le.getAttribLocation(At,"attrVertex"),At.offsetUniform=Le.getUniformLocation(At,"uniformOffset"),Le.enableVertexAttribArray(At.vertexPosAttrib),Le.vertexAttribPointer(At.vertexPosAttrib,ht.itemSize,Le.FLOAT,!1,0,0),Le.uniform2f(At.offsetUniform,1,1),Le.drawArrays(Le.TRIANGLE_STRIP,0,ht.numItems);let yt="";const Ct=new Uint8Array(Ye*tt*4);return Le.readPixels(0,0,Ye,tt,Le.RGBA,Le.UNSIGNED_BYTE,Ct),yt=JSON.stringify(Ct).replace(/,?"[0-9]+":/g,""),document.body.removeChild(Be),sha256(yt)}catch{return""}}const sha256=(()=>{let Be=1,Le,Ye=[],tt=[];for(;++Be<18;)for(Le=Be*Be;Le<312;Le+=Be)Ye[Le]=1;function nt(gt,At){return Math.pow(gt,1/At)%1*4294967296|0}for(Be=1,Le=0;Be<313;)Ye[++Be]||(tt[Le]=nt(Be,2),Ye[Le++]=nt(Be,3));function ft(gt,At){return gt>>>At|gt<<32-At}function ht(gt){let At=tt.slice(Be=0),xt=unescape(encodeURI(gt)),Et=[],yt=xt.length,Ct=[],kt,vt,bt;for(;Be<yt;)Ct[Be>>2]|=(xt.charCodeAt(Be)&255)<<8*(3-Be++%4);for(yt*=8,Ct[yt>>5]|=128<<24-yt%32,Ct[bt=yt+64>>5|15]=yt,Be=0;Be<bt;Be+=16){for(kt=At.slice(Le=0,8);Le<64;kt[4]+=vt)Le<16?Et[Le]=Ct[Le+Be]:Et[Le]=(ft(vt=Et[Le-2],17)^ft(vt,19)^vt>>>10)+(Et[Le-7]|0)+(ft(vt=Et[Le-15],7)^ft(vt,18)^vt>>>3)+(Et[Le-16]|0),kt.unshift((vt=(kt.pop()+(ft(gt=kt[4],6)^ft(gt,11)^ft(gt,25))+((gt&kt[5]^~gt&kt[6])+Ye[Le])|0)+(Et[Le++]|0))+(ft(yt=kt[0],2)^ft(yt,13)^ft(yt,22))+(yt&kt[1]^kt[1]&kt[2]^kt[2]&yt));for(Le=8;Le--;)At[Le]=kt[Le]+At[Le]}for(xt="";Le<63;)xt+=(At[++Le>>3]>>4*(7-Le%8)&15).toString(16);return xt}return ht})();var store;function getGlobalConfig(Be){return{lang:store==null?void 0:store.lang,message:Be==null?void 0:Be.message,abortEarly:store==null?void 0:store.abortEarly,abortPipeEarly:store==null?void 0:store.abortPipeEarly}}var store2;function getGlobalMessage(Be){return store2==null?void 0:store2.get(Be)}var store3;function getSchemaMessage(Be){return store3==null?void 0:store3.get(Be)}var store4;function getSpecificMessage(Be,Le){var Ye;return(Ye=store4==null?void 0:store4.get(Be))==null?void 0:Ye.get(Le)}function _stringify$3(Be){var Ye,tt;const Le=typeof Be;return Le==="string"?`"${Be}"`:Le==="number"||Le==="bigint"||Le==="boolean"?`${Be}`:Le==="object"||Le==="function"?(Be&&((tt=(Ye=Object.getPrototypeOf(Be))==null?void 0:Ye.constructor)==null?void 0:tt.name))??"null":Le}function _addIssue(Be,Le,Ye,tt,nt){const ft=nt&&"input"in nt?nt.input:Ye.value,ht=(nt==null?void 0:nt.expected)??Be.expects??null,gt=(nt==null?void 0:nt.received)??_stringify$3(ft),At={kind:Be.kind,type:Be.type,input:ft,expected:ht,received:gt,message:`Invalid ${Le}: ${ht?`Expected ${ht} but r`:"R"}eceived ${gt}`,requirement:Be.requirement,path:nt==null?void 0:nt.path,issues:nt==null?void 0:nt.issues,lang:tt.lang,abortEarly:tt.abortEarly,abortPipeEarly:tt.abortPipeEarly},xt=Be.kind==="schema",Et=(nt==null?void 0:nt.message)??Be.message??getSpecificMessage(Be.reference,At.lang)??(xt?getSchemaMessage(At.lang):null)??tt.message??getGlobalMessage(At.lang);Et!==void 0&&(At.message=typeof Et=="function"?Et(At):Et),xt&&(Ye.typed=!1),Ye.issues?Ye.issues.push(At):Ye.issues=[At]}function _getStandardProps(Be){return{version:1,vendor:"valibot",validate(Le){return Be["~run"]({value:Le},getGlobalConfig())}}}function _isValidObjectKey(Be,Le){return Object.hasOwn(Be,Le)&&Le!=="__proto__"&&Le!=="prototype"&&Le!=="constructor"}function _joinExpects(Be,Le){const Ye=[...new Set(Be)];return Ye.length>1?`(${Ye.join(` ${Le} `)})`:Ye[0]??"never"}function isValiError(Be){return Be instanceof ValiError}var ValiError=class extends Error{constructor(Be){super(Be[0].message),this.name="ValiError",this.issues=Be}};function getFallback(Be,Le,Ye){return typeof Be.fallback=="function"?Be.fallback(Le,Ye):Be.fallback}function getDefault(Be,Le,Ye){return typeof Be.default=="function"?Be.default(Le,Ye):Be.default}function boolean$2(Be){return{kind:"schema",type:"boolean",reference:boolean$2,expects:"boolean",async:!1,message:Be,get"~standard"(){return _getStandardProps(this)},"~run"(Le,Ye){return typeof Le.value=="boolean"?Le.typed=!0:_addIssue(this,"type",Le,Ye),Le}}}function custom(Be,Le){return{kind:"schema",type:"custom",reference:custom,expects:"unknown",async:!1,check:Be,message:Le,get"~standard"(){return _getStandardProps(this)},"~run"(Ye,tt){return this.check(Ye.value)?Ye.typed=!0:_addIssue(this,"type",Ye,tt),Ye}}}function function_(Be){return{kind:"schema",type:"function",reference:function_,expects:"Function",async:!1,message:Be,get"~standard"(){return _getStandardProps(this)},"~run"(Le,Ye){return typeof Le.value=="function"?Le.typed=!0:_addIssue(this,"type",Le,Ye),Le}}}function literal(Be,Le){return{kind:"schema",type:"literal",reference:literal,expects:_stringify$3(Be),async:!1,literal:Be,message:Le,get"~standard"(){return _getStandardProps(this)},"~run"(Ye,tt){return Ye.value===this.literal?Ye.typed=!0:_addIssue(this,"type",Ye,tt),Ye}}}function null_(Be){return{kind:"schema",type:"null",reference:null_,expects:"null",async:!1,message:Be,get"~standard"(){return _getStandardProps(this)},"~run"(Le,Ye){return Le.value===null?Le.typed=!0:_addIssue(this,"type",Le,Ye),Le}}}function number$3(Be){return{kind:"schema",type:"number",reference:number$3,expects:"number",async:!1,message:Be,get"~standard"(){return _getStandardProps(this)},"~run"(Le,Ye){return typeof Le.value=="number"&&!isNaN(Le.value)?Le.typed=!0:_addIssue(this,"type",Le,Ye),Le}}}function object(Be,Le){return{kind:"schema",type:"object",reference:object,expects:"Object",async:!1,entries:Be,message:Le,get"~standard"(){return _getStandardProps(this)},"~run"(Ye,tt){var ft;const nt=Ye.value;if(nt&&typeof nt=="object"){Ye.typed=!0,Ye.value={};for(const ht in this.entries){const gt=this.entries[ht];if(ht in nt||(gt.type==="exact_optional"||gt.type==="optional"||gt.type==="nullish")&>.default!==void 0){const At=ht in nt?nt[ht]:getDefault(gt),xt=gt["~run"]({value:At},tt);if(xt.issues){const Et={type:"object",origin:"value",input:nt,key:ht,value:At};for(const yt of xt.issues)yt.path?yt.path.unshift(Et):yt.path=[Et],(ft=Ye.issues)==null||ft.push(yt);if(Ye.issues||(Ye.issues=xt.issues),tt.abortEarly){Ye.typed=!1;break}}xt.typed||(Ye.typed=!1),Ye.value[ht]=xt.value}else if(gt.fallback!==void 0)Ye.value[ht]=getFallback(gt);else if(gt.type!=="exact_optional"&>.type!=="optional"&>.type!=="nullish"&&(_addIssue(this,"key",Ye,tt,{input:void 0,expected:`"${ht}"`,path:[{type:"object",origin:"key",input:nt,key:ht,value:nt[ht]}]}),tt.abortEarly))break}}else _addIssue(this,"type",Ye,tt);return Ye}}}function optional(Be,Le){return{kind:"schema",type:"optional",reference:optional,expects:`(${Be.expects} | undefined)`,async:!1,wrapped:Be,default:Le,get"~standard"(){return _getStandardProps(this)},"~run"(Ye,tt){return Ye.value===void 0&&(this.default!==void 0&&(Ye.value=getDefault(this,Ye,tt)),Ye.value===void 0)?(Ye.typed=!0,Ye):this.wrapped["~run"](Ye,tt)}}}function record(Be,Le,Ye){return{kind:"schema",type:"record",reference:record,expects:"Object",async:!1,key:Be,value:Le,message:Ye,get"~standard"(){return _getStandardProps(this)},"~run"(tt,nt){var ht,gt;const ft=tt.value;if(ft&&typeof ft=="object"){tt.typed=!0,tt.value={};for(const At in ft)if(_isValidObjectKey(ft,At)){const xt=ft[At],Et=this.key["~run"]({value:At},nt);if(Et.issues){const Ct={type:"object",origin:"key",input:ft,key:At,value:xt};for(const kt of Et.issues)kt.path=[Ct],(ht=tt.issues)==null||ht.push(kt);if(tt.issues||(tt.issues=Et.issues),nt.abortEarly){tt.typed=!1;break}}const yt=this.value["~run"]({value:xt},nt);if(yt.issues){const Ct={type:"object",origin:"value",input:ft,key:At,value:xt};for(const kt of yt.issues)kt.path?kt.path.unshift(Ct):kt.path=[Ct],(gt=tt.issues)==null||gt.push(kt);if(tt.issues||(tt.issues=yt.issues),nt.abortEarly){tt.typed=!1;break}}(!Et.typed||!yt.typed)&&(tt.typed=!1),Et.typed&&(tt.value[Et.value]=yt.value)}}else _addIssue(this,"type",tt,nt);return tt}}}function string$2(Be){return{kind:"schema",type:"string",reference:string$2,expects:"string",async:!1,message:Be,get"~standard"(){return _getStandardProps(this)},"~run"(Le,Ye){return typeof Le.value=="string"?Le.typed=!0:_addIssue(this,"type",Le,Ye),Le}}}function _subIssues(Be){let Le;if(Be)for(const Ye of Be)Le?Le.push(...Ye.issues):Le=Ye.issues;return Le}function union(Be,Le){return{kind:"schema",type:"union",reference:union,expects:_joinExpects(Be.map(Ye=>Ye.expects),"|"),async:!1,options:Be,message:Le,get"~standard"(){return _getStandardProps(this)},"~run"(Ye,tt){let nt,ft,ht;for(const gt of this.options){const At=gt["~run"]({value:Ye.value},tt);if(At.typed)if(At.issues)ft?ft.push(At):ft=[At];else{nt=At;break}else ht?ht.push(At):ht=[At]}if(nt)return nt;if(ft){if(ft.length===1)return ft[0];_addIssue(this,"type",Ye,tt,{issues:_subIssues(ft)}),Ye.typed=!0}else{if((ht==null?void 0:ht.length)===1)return ht[0];_addIssue(this,"type",Ye,tt,{issues:_subIssues(ht)})}return Ye}}}function parse$8(Be,Le,Ye){const tt=Be["~run"]({value:Le},getGlobalConfig(Ye));if(tt.issues)throw new ValiError(tt.issues);return tt.value}function validate$2(...Be){try{Be.forEach(({schema:Le,value:Ye})=>parse$8(Le,Ye))}catch(Le){if(isValiError(Le)){const Ye=Le.issues.map(tt=>{var ft;return`${((ft=tt.path)==null?void 0:ft.map(ht=>ht.key).join("."))||"root"}: ${tt.message}`}).join(", ");throw new Error(`Validation failed: ${Ye}`)}throw Le}}exports.api=void 0;function setApi(Be){exports.api=Be}function setToken(Be){exports.api.defaults.headers["X-Incode-Hardware-Id"]=Be}const eventsQueue=[];function addEvent(Be){const{token:Le,code:Ye,module:tt,screen:nt,clientTimestamp:ft,payload:ht={}}=Be;if(!Le){eventsQueue.push(Be);return}return exports.api.post("/omni/interview-events",[{code:Ye,module:tt,screen:nt,clientTimestamp:ft??new Date().getTime(),payload:ht}],{headers:{"X-Incode-Hardware-Id":Le}}).catch(()=>{})}function emptyQueue(Be){eventsQueue.forEach(Le=>{addEvent({...Le,token:Be})})}const state={token:null};var PipelineProfileName=(Be=>(Be[Be.IdCapture_2_01=0]="IdCapture_2_01",Be[Be.IdCapture_2_02=1]="IdCapture_2_02",Be[Be.IdCapture_3_02=2]="IdCapture_3_02",Be[Be.IdVideoSelfie_2_01=3]="IdVideoSelfie_2_01",Be[Be.SelfieWithAggregationMetrics=4]="SelfieWithAggregationMetrics",Be[Be.SelfieWithQualityMetrics=5]="SelfieWithQualityMetrics",Be[Be.SelfieVideoSelfie=6]="SelfieVideoSelfie",Be))(PipelineProfileName||{});class PipelineProfile{constructor(Le,Ye,tt,nt,ft,ht=null,gt=""){this.pipelineType=Le,this.name=Ye,this.detectionType=tt,this.modelNames=nt,this.parameters=ft,this.paramsConfigurator=ht,this.description=gt}reconfigureParams(Le,Ye){if(this.paramsConfigurator==null)throw new Error("PipelineProfile does not have a paramsConfigurator");this.paramsConfigurator(this.parameters,this.pipelineType,Le,Ye)}}var DetectionType=(Be=>(Be[Be.IDCapture=0]="IDCapture",Be[Be.Selfie=1]="Selfie",Be[Be.SelfieVideoSelfie=2]="SelfieVideoSelfie",Be[Be.IdVideoSelfie=3]="IdVideoSelfie",Be))(DetectionType||{}),WasmPipelineType=(Be=>(Be[Be.IdBlurGlarePipeline=0]="IdBlurGlarePipeline",Be[Be.IdBarcodeAndTextQualityPipeline=1]="IdBarcodeAndTextQualityPipeline",Be[Be.IdVideoSelfiePipeline=2]="IdVideoSelfiePipeline",Be[Be.SelfieWithAggregationMetrics=3]="SelfieWithAggregationMetrics",Be[Be.SelfieWithQualityMetrics=4]="SelfieWithQualityMetrics",Be[Be.IdFaceDetectionPipeline=5]="IdFaceDetectionPipeline",Be))(WasmPipelineType||{}),IdCaptureModelType=(Be=>(Be[Be.IdCaptureV1x=0]="IdCaptureV1x",Be[Be.IdCaptureV2x=1]="IdCaptureV2x",Be[Be.IdCaptureV3x=2]="IdCaptureV3x",Be))(IdCaptureModelType||{}),src$2={},src$1={},$_StatsigGlobal={},Log={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be.Log=Be.LogLevel=void 0;const Le=" DEBUG ",Ye=" INFO ",tt=" WARN ",nt=" ERROR ";function ft(gt){return gt.unshift("[Statsig]"),gt}Be.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class ht{static info(...At){ht.level>=Be.LogLevel.Info&&console.info(Ye,...ft(At))}static debug(...At){ht.level>=Be.LogLevel.Debug&&console.debug(Le,...ft(At))}static warn(...At){ht.level>=Be.LogLevel.Warn&&console.warn(tt,...ft(At))}static error(...At){ht.level>=Be.LogLevel.Error&&console.error(nt,...ft(At))}}Be.Log=ht,ht.level=Be.LogLevel.Warn})(Log),function(Be){var Le,Ye,tt;Object.defineProperty(Be,"__esModule",{value:!0}),Be._getInstance=Be._getStatsigGlobalFlag=Be._getStatsigGlobal=void 0;const nt=Log,ft=()=>{try{return typeof __STATSIG__<"u"?__STATSIG__:Ct}catch{return Ct}};Be._getStatsigGlobal=ft;const ht=kt=>(0,Be._getStatsigGlobal)()[kt];Be._getStatsigGlobalFlag=ht;const gt=kt=>{const vt=(0,Be._getStatsigGlobal)();return kt?vt.instances&&vt.instances[kt]:(vt.instances&&Object.keys(vt.instances).length>1&&nt.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),vt.firstInstance)};Be._getInstance=gt;const At="__STATSIG__",xt=typeof window<"u"?window:{},Et=typeof commonjsGlobal<"u"?commonjsGlobal:{},yt=typeof globalThis<"u"?globalThis:{},Ct=(tt=(Ye=(Le=xt[At])!==null&&Le!==void 0?Le:Et[At])!==null&&Ye!==void 0?Ye:yt[At])!==null&&tt!==void 0?tt:{instance:Be._getInstance};xt[At]=Ct,Et[At]=Ct,yt[At]=Ct}($_StatsigGlobal);var Diagnostics={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be.Diagnostics=void 0;const Le=new Map,Ye="start",tt="end",nt="statsig::diagnostics";Be.Diagnostics={_getMarkers:xt=>Le.get(xt),_markInitOverallStart:xt=>{gt(xt,ft({},Ye,"overall"))},_markInitOverallEnd:(xt,Et,yt)=>{gt(xt,ft({success:Et,error:Et?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:yt},tt,"overall"))},_markInitNetworkReqStart:(xt,Et)=>{gt(xt,ft(Et,Ye,"initialize","network_request"))},_markInitNetworkReqEnd:(xt,Et)=>{gt(xt,ft(Et,tt,"initialize","network_request"))},_markInitProcessStart:xt=>{gt(xt,ft({},Ye,"initialize","process"))},_markInitProcessEnd:(xt,Et)=>{gt(xt,ft(Et,tt,"initialize","process"))},_clearMarkers:xt=>{Le.delete(xt)},_formatError(xt){if(xt&&typeof xt=="object")return{code:At(xt,"code"),name:At(xt,"name"),message:At(xt,"message")}},_getDiagnosticsData(xt,Et,yt,Ct){var kt;return{success:(xt==null?void 0:xt.ok)===!0,statusCode:xt==null?void 0:xt.status,sdkRegion:(kt=xt==null?void 0:xt.headers)===null||kt===void 0?void 0:kt.get("x-statsig-region"),isDelta:yt.includes('"is_delta":true')===!0?!0:void 0,attempt:Et,error:Be.Diagnostics._formatError(Ct)}},_enqueueDiagnosticsEvent(xt,Et,yt,Ct){const kt=Be.Diagnostics._getMarkers(yt);if(kt==null||kt.length<=0)return-1;const vt=kt[kt.length-1].timestamp-kt[0].timestamp;Be.Diagnostics._clearMarkers(yt);const bt=ht(xt,{context:"initialize",markers:kt.slice(),statsigOptions:Ct});return Et.enqueue(bt),vt}};function ft(xt,Et,yt,Ct){return Object.assign({key:yt,action:Et,step:Ct,timestamp:Date.now()},xt)}function ht(xt,Et){return{eventName:nt,user:xt,value:null,metadata:Et,time:Date.now()}}function gt(xt,Et){var yt;const Ct=(yt=Le.get(xt))!==null&&yt!==void 0?yt:[];Ct.push(Et),Le.set(xt,Ct)}function At(xt,Et){if(Et in xt)return xt[Et]}})(Diagnostics);var EventLogger$1={},CacheKey={},Hashing={},TypingUtils={};Object.defineProperty(TypingUtils,"__esModule",{value:!0}),TypingUtils._isTypeMatch=TypingUtils._typeOf=void 0;function _typeOf(Be){return Array.isArray(Be)?"array":typeof Be}TypingUtils._typeOf=_typeOf;function _isTypeMatch(Be,Le){const Ye=tt=>Array.isArray(tt)?"array":tt===null?"null":typeof tt;return Ye(Be)===Ye(Le)}TypingUtils._isTypeMatch=_isTypeMatch,function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be._getSortedObject=Be._DJB2Object=Be._DJB2=void 0;const Le=TypingUtils,Ye=ft=>{let ht=0;for(let gt=0;gt<ft.length;gt++){const At=ft.charCodeAt(gt);ht=(ht<<5)-ht+At,ht=ht&ht}return String(ht>>>0)};Be._DJB2=Ye;const tt=(ft,ht)=>(0,Be._DJB2)(JSON.stringify((0,Be._getSortedObject)(ft,ht)));Be._DJB2Object=tt;const nt=(ft,ht)=>{if(ft==null)return null;const gt=Object.keys(ft).sort(),At={};return gt.forEach(xt=>{const Et=ft[xt];if(ht===0||(0,Le._typeOf)(Et)!=="object"){At[xt]=Et;return}At[xt]=(0,Be._getSortedObject)(Et,ht!=null?ht-1:ht)}),At};Be._getSortedObject=nt}(Hashing),Object.defineProperty(CacheKey,"__esModule",{value:!0}),CacheKey._getStorageKey=CacheKey._getUserStorageKey=void 0;const Hashing_1$4=Hashing;function _getUserStorageKey(Be,Le,Ye){var tt;if(Ye)return Ye(Be,Le);const nt=Le&&Le.customIDs?Le.customIDs:{},ft=[`uid:${(tt=Le==null?void 0:Le.userID)!==null&&tt!==void 0?tt:""}`,`cids:${Object.keys(nt).sort((ht,gt)=>ht.localeCompare(gt)).map(ht=>`${ht}-${nt[ht]}`).join(",")}`,`k:${Be}`];return(0,Hashing_1$4._DJB2)(ft.join("|"))}CacheKey._getUserStorageKey=_getUserStorageKey;function _getStorageKey(Be,Le,Ye){return Le?_getUserStorageKey(Be,Le,Ye):(0,Hashing_1$4._DJB2)(`k:${Be}`)}CacheKey._getStorageKey=_getStorageKey;var NetworkConfig={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be.NetworkParam=Be.NetworkDefault=Be.Endpoint=void 0,Be.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},Be.NetworkDefault={[Be.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[Be.Endpoint._initialize]:"https://featureassets.org/v1",[Be.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},Be.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}})(NetworkConfig);var SafeJs={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be._getUnloadEvent=Be._getCurrentPageUrlSafe=Be._addDocumentEventListenerSafe=Be._addWindowEventListenerSafe=Be._isServerEnv=Be._getDocumentSafe=Be._getWindowSafe=void 0;const Le=()=>typeof window<"u"?window:null;Be._getWindowSafe=Le;const Ye=()=>{var At;const xt=(0,Be._getWindowSafe)();return(At=xt==null?void 0:xt.document)!==null&&At!==void 0?At:null};Be._getDocumentSafe=Ye;const tt=()=>{if((0,Be._getDocumentSafe)()!==null)return!1;const At=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;return typeof EdgeRuntime=="string"||At};Be._isServerEnv=tt;const nt=(At,xt)=>{const Et=(0,Be._getWindowSafe)();typeof(Et==null?void 0:Et.addEventListener)=="function"&&Et.addEventListener(At,xt)};Be._addWindowEventListenerSafe=nt;const ft=(At,xt)=>{const Et=(0,Be._getDocumentSafe)();typeof(Et==null?void 0:Et.addEventListener)=="function"&&Et.addEventListener(At,xt)};Be._addDocumentEventListenerSafe=ft;const ht=()=>{var At;try{return(At=(0,Be._getWindowSafe)())===null||At===void 0?void 0:At.location.href.split(/[?#]/)[0]}catch{return}};Be._getCurrentPageUrlSafe=ht;const gt=()=>{const At=(0,Be._getWindowSafe)();return At&&"onpagehide"in At?"pagehide":"beforeunload"};Be._getUnloadEvent=gt})(SafeJs);var StatsigEvent={};Object.defineProperty(StatsigEvent,"__esModule",{value:!0}),StatsigEvent._createLayerParameterExposure=StatsigEvent._createConfigExposure=StatsigEvent._mapExposures=StatsigEvent._createGateExposure=StatsigEvent._isExposureEvent=void 0;const CONFIG_EXPOSURE_NAME="statsig::config_exposure",GATE_EXPOSURE_NAME="statsig::gate_exposure",LAYER_EXPOSURE_NAME="statsig::layer_exposure",_createExposure=(Be,Le,Ye,tt,nt)=>(Ye.bootstrapMetadata&&(tt.bootstrapMetadata=Ye.bootstrapMetadata),{eventName:Be,user:Le,value:null,metadata:_addEvaluationDetailsToMetadata(Ye,tt),secondaryExposures:nt,time:Date.now()}),_isExposureEvent=({eventName:Be})=>Be===GATE_EXPOSURE_NAME||Be===CONFIG_EXPOSURE_NAME||Be===LAYER_EXPOSURE_NAME;StatsigEvent._isExposureEvent=_isExposureEvent;const _createGateExposure=(Be,Le,Ye)=>{var tt,nt,ft;const ht={gate:Le.name,gateValue:String(Le.value),ruleID:Le.ruleID};return((tt=Le.__evaluation)===null||tt===void 0?void 0:tt.version)!=null&&(ht.configVersion=Le.__evaluation.version),_createExposure(GATE_EXPOSURE_NAME,Be,Le.details,ht,_mapExposures((ft=(nt=Le.__evaluation)===null||nt===void 0?void 0:nt.secondary_exposures)!==null&&ft!==void 0?ft:[],Ye))};StatsigEvent._createGateExposure=_createGateExposure;function _mapExposures(Be,Le){return Be.map(Ye=>typeof Ye=="string"?(Le??{})[Ye]:Ye).filter(Ye=>Ye!=null)}StatsigEvent._mapExposures=_mapExposures;const _createConfigExposure=(Be,Le,Ye)=>{var tt,nt,ft,ht;const gt={config:Le.name,ruleID:Le.ruleID};return((tt=Le.__evaluation)===null||tt===void 0?void 0:tt.version)!=null&&(gt.configVersion=Le.__evaluation.version),((nt=Le.__evaluation)===null||nt===void 0?void 0:nt.passed)!=null&&(gt.rulePassed=String(Le.__evaluation.passed)),_createExposure(CONFIG_EXPOSURE_NAME,Be,Le.details,gt,_mapExposures((ht=(ft=Le.__evaluation)===null||ft===void 0?void 0:ft.secondary_exposures)!==null&&ht!==void 0?ht:[],Ye))};StatsigEvent._createConfigExposure=_createConfigExposure;const _createLayerParameterExposure=(Be,Le,Ye,tt)=>{var nt,ft,ht,gt,At,xt,Et;const yt=Le.__evaluation,Ct=((nt=yt==null?void 0:yt.explicit_parameters)===null||nt===void 0?void 0:nt.includes(Ye))===!0;let kt="",vt=(ft=yt==null?void 0:yt.undelegated_secondary_exposures)!==null&&ft!==void 0?ft:[];Ct&&(kt=(ht=yt.allocated_experiment_name)!==null&&ht!==void 0?ht:"",vt=(gt=yt.secondary_exposures)!==null&>!==void 0?gt:[]);const bt=(At=Le.__evaluation)===null||At===void 0?void 0:At.parameter_rule_ids,It={config:Le.name,parameterName:Ye,ruleID:(xt=bt==null?void 0:bt[Ye])!==null&&xt!==void 0?xt:Le.ruleID,allocatedExperiment:kt,isExplicitParameter:String(Ct)};return((Et=Le.__evaluation)===null||Et===void 0?void 0:Et.version)!=null&&(It.configVersion=Le.__evaluation.version),_createExposure(LAYER_EXPOSURE_NAME,Be,Le.details,It,_mapExposures(vt,tt))};StatsigEvent._createLayerParameterExposure=_createLayerParameterExposure;const _addEvaluationDetailsToMetadata=(Be,Le)=>(Le.reason=Be.reason,Be.lcut&&(Le.lcut=String(Be.lcut)),Be.receivedAt&&(Le.receivedAt=String(Be.receivedAt)),Le);var StatsigOptionsCommon={};Object.defineProperty(StatsigOptionsCommon,"__esModule",{value:!0}),StatsigOptionsCommon.LoggingEnabledOption=StatsigOptionsCommon.LogEventCompressionMode=void 0,StatsigOptionsCommon.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},StatsigOptionsCommon.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"};var StorageProvider={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be._setObjectInStorage=Be._getObjectFromStorage=Be.Storage=void 0;const Le=Log,Ye=SafeJs,tt={},nt={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:yt=>tt[yt]?tt[yt]:null,setItem:(yt,Ct)=>{tt[yt]=Ct},removeItem:yt=>{delete tt[yt]},getAllKeys:()=>Object.keys(tt)};let ft=null;try{const yt=(0,Ye._getWindowSafe)();yt&&yt.localStorage&&typeof yt.localStorage.getItem=="function"&&(ft={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:Ct=>yt.localStorage.getItem(Ct),setItem:(Ct,kt)=>yt.localStorage.setItem(Ct,kt),removeItem:Ct=>yt.localStorage.removeItem(Ct),getAllKeys:()=>Object.keys(yt.localStorage)})}catch{Le.Log.warn("Failed to setup localStorageProvider.")}let ht=ft??nt,gt=ht;function At(yt){try{return yt()}catch(Ct){if(Ct instanceof Error&&Ct.name==="SecurityError")return Be.Storage._setProvider(nt),null;throw Ct}}Be.Storage={isReady:()=>gt.isReady(),isReadyResolver:()=>gt.isReadyResolver(),getProviderName:()=>gt.getProviderName(),getItem:yt=>At(()=>gt.getItem(yt)),setItem:(yt,Ct)=>At(()=>gt.setItem(yt,Ct)),removeItem:yt=>gt.removeItem(yt),getAllKeys:()=>gt.getAllKeys(),_setProvider:yt=>{ht=yt,gt=yt},_setDisabled:yt=>{yt?gt=nt:gt=ht}};function xt(yt){const Ct=Be.Storage.getItem(yt);return JSON.parse(Ct??"null")}Be._getObjectFromStorage=xt;function Et(yt,Ct){Be.Storage.setItem(yt,JSON.stringify(Ct))}Be._setObjectInStorage=Et})(StorageProvider);var UrlConfiguration$1={};Object.defineProperty(UrlConfiguration$1,"__esModule",{value:!0}),UrlConfiguration$1.UrlConfiguration=void 0;const Hashing_1$3=Hashing,NetworkConfig_1$2=NetworkConfig,ENDPOINT_DNS_KEY_MAP={[NetworkConfig_1$2.Endpoint._initialize]:"i",[NetworkConfig_1$2.Endpoint._rgstr]:"e",[NetworkConfig_1$2.Endpoint._download_config_specs]:"d"};class UrlConfiguration{constructor(Le,Ye,tt,nt){this.customUrl=null,this.fallbackUrls=null,this.endpoint=Le,this.endpointDnsKey=ENDPOINT_DNS_KEY_MAP[Le],Ye&&(this.customUrl=Ye),!Ye&&tt&&(this.customUrl=tt.endsWith("/")?`${tt}${Le}`:`${tt}/${Le}`),nt&&(this.fallbackUrls=nt);const ft=NetworkConfig_1$2.NetworkDefault[Le];this.defaultUrl=`${ft}/${Le}`}getUrl(){var Le;return(Le=this.customUrl)!==null&&Le!==void 0?Le:this.defaultUrl}getChecksum(){var Le;const Ye=((Le=this.fallbackUrls)!==null&&Le!==void 0?Le:[]).sort().join(",");return(0,Hashing_1$3._DJB2)(this.customUrl+Ye)}}UrlConfiguration$1.UrlConfiguration=UrlConfiguration;var VisibilityObserving={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be._notifyVisibilityChanged=Be._subscribeToVisiblityChanged=Be._isUnloading=Be._isCurrentlyVisible=void 0;const Le=SafeJs,Ye="foreground",tt="background",nt=[];let ft=Ye,ht=!1;const gt=()=>ft===Ye;Be._isCurrentlyVisible=gt;const At=()=>ht;Be._isUnloading=At;const xt=yt=>{nt.unshift(yt)};Be._subscribeToVisiblityChanged=xt;const Et=yt=>{yt!==ft&&(ft=yt,nt.forEach(Ct=>Ct(yt)))};Be._notifyVisibilityChanged=Et,(0,Le._addWindowEventListenerSafe)("focus",()=>{ht=!1,(0,Be._notifyVisibilityChanged)(Ye)}),(0,Le._addWindowEventListenerSafe)("blur",()=>(0,Be._notifyVisibilityChanged)(tt)),(0,Le._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,Be._notifyVisibilityChanged)(document.visibilityState==="visible"?Ye:tt)}),(0,Le._addWindowEventListenerSafe)((0,Le._getUnloadEvent)(),()=>{ht=!0,(0,Be._notifyVisibilityChanged)(tt)})})(VisibilityObserving);var __awaiter$f=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(EventLogger$1,"__esModule",{value:!0}),EventLogger$1.EventLogger=void 0;const CacheKey_1$1=CacheKey,Hashing_1$2=Hashing,Log_1$8=Log,NetworkConfig_1$1=NetworkConfig,SafeJs_1$3=SafeJs,StatsigEvent_1=StatsigEvent,StatsigOptionsCommon_1$2=StatsigOptionsCommon,StorageProvider_1$4=StorageProvider,UrlConfiguration_1=UrlConfiguration$1,VisibilityObserving_1$1=VisibilityObserving,DEFAULT_QUEUE_SIZE=100,DEFAULT_FLUSH_INTERVAL_MS=1e4,MAX_DEDUPER_KEYS=1e3,DEDUPER_WINDOW_DURATION_MS=6e5,MAX_FAILED_LOGS=500,QUICK_FLUSH_WINDOW_MS=200,EVENT_LOGGER_MAP={},RetryFailedLogsTrigger={Startup:"startup",GainedFocus:"gained_focus"};class EventLogger{static _safeFlushAndForget(Le){var Ye;(Ye=EVENT_LOGGER_MAP[Le])===null||Ye===void 0||Ye.flush().catch(()=>{})}static _safeRetryFailedLogs(Le){var Ye;(Ye=EVENT_LOGGER_MAP[Le])===null||Ye===void 0||Ye._retryFailedLogs(RetryFailedLogsTrigger.GainedFocus)}constructor(Le,Ye,tt,nt){var ft,ht;this._sdkKey=Le,this._emitter=Ye,this._network=tt,this._options=nt,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._loggingEnabled=(ft=nt==null?void 0:nt.loggingEnabled)!==null&&ft!==void 0?ft:(nt==null?void 0:nt.disableLogging)===!0?StatsigOptionsCommon_1$2.LoggingEnabledOption.disabled:StatsigOptionsCommon_1$2.LoggingEnabledOption.browserOnly,nt!=null&&nt.loggingEnabled&&nt.disableLogging!==void 0&&Log_1$8.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging."),this._maxQueueSize=(ht=nt==null?void 0:nt.loggingBufferMaxSize)!==null&&ht!==void 0?ht:DEFAULT_QUEUE_SIZE;const gt=nt==null?void 0:nt.networkConfig;this._logEventUrlConfig=new UrlConfiguration_1.UrlConfiguration(NetworkConfig_1$1.Endpoint._rgstr,gt==null?void 0:gt.logEventUrl,gt==null?void 0:gt.api,gt==null?void 0:gt.logEventFallbackUrls)}setLogEventCompressionMode(Le){this._network.setLogEventCompressionMode(Le)}setLoggingEnabled(Le){if(this._loggingEnabled==="disabled"&&Le!=="disabled"){const Ye=this._getStorageKey(),tt=(0,StorageProvider_1$4._getObjectFromStorage)(Ye);tt&&this._queue.push(...tt),StorageProvider_1$4.Storage.removeItem(Ye)}this._loggingEnabled=Le}enqueue(Le){this._shouldLogEvent(Le)&&(this._normalizeAndAppendEvent(Le),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&EventLogger._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(Le){var Ye;const tt=(Ye=this._nonExposedChecks[Le])!==null&&Ye!==void 0?Ye:0;this._nonExposedChecks[Le]=tt+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var Le;const Ye=(0,SafeJs_1$3._isServerEnv)();Ye&&((Le=this._options)===null||Le===void 0?void 0:Le.loggingEnabled)!=="always"||(EVENT_LOGGER_MAP[this._sdkKey]=this,Ye||(0,VisibilityObserving_1$1._subscribeToVisiblityChanged)(tt=>{tt==="background"?EventLogger._safeFlushAndForget(this._sdkKey):tt==="foreground"&&EventLogger._safeRetryFailedLogs(this._sdkKey)}),this._retryFailedLogs(RetryFailedLogsTrigger.Startup),this._startBackgroundFlushInterval())}stop(){return __awaiter$f(this,void 0,void 0,function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete EVENT_LOGGER_MAP[this._sdkKey],yield this.flush()})}flush(){return __awaiter$f(this,void 0,void 0,function*(){if(this._appendAndResetNonExposedChecks(),this._queue.length===0)return;const Le=this._queue;this._queue=[],yield this._sendEvents(Le)})}_quickFlushIfNeeded(){this._hasRunQuickFlush||(this._hasRunQuickFlush=!0,!(Date.now()-this._creationTime>QUICK_FLUSH_WINDOW_MS)&&setTimeout(()=>EventLogger._safeFlushAndForget(this._sdkKey),QUICK_FLUSH_WINDOW_MS))}_shouldLogEvent(Le){var Ye;if(((Ye=this._options)===null||Ye===void 0?void 0:Ye.loggingEnabled)!=="always"&&(0,SafeJs_1$3._isServerEnv)())return!1;if(!(0,StatsigEvent_1._isExposureEvent)(Le))return!0;const tt=Le.user?Le.user:{statsigEnvironment:void 0},nt=(0,CacheKey_1$1._getUserStorageKey)(this._sdkKey,tt),ft=Le.metadata?Le.metadata:{},ht=[Le.eventName,nt,ft.gate,ft.config,ft.ruleID,ft.allocatedExperiment,ft.parameterName,String(ft.isExplicitParameter),ft.reason].join("|"),gt=this._lastExposureTimeMap[ht],At=Date.now();return gt&&At-gt<DEDUPER_WINDOW_DURATION_MS?!1:(Object.keys(this._lastExposureTimeMap).length>MAX_DEDUPER_KEYS&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[ht]=At,!0)}_sendEvents(Le){return __awaiter$f(this,void 0,void 0,function*(){var Ye,tt;if(this._loggingEnabled==="disabled")return this._saveFailedLogsToStorage(Le),!1;try{const ft=(0,VisibilityObserving_1$1._isUnloading)()&&this._network.isBeaconSupported()&&((tt=(Ye=this._options)===null||Ye===void 0?void 0:Ye.networkConfig)===null||tt===void 0?void 0:tt.networkOverrideFunc)==null;return this._emitter({name:"pre_logs_flushed",events:Le}),(ft?this._sendEventsViaBeacon(Le):yield this._sendEventsViaPost(Le)).success?(this._emitter({name:"logs_flushed",events:Le}),!0):(Log_1$8.Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(Le),!1)}catch{return Log_1$8.Log.warn("Failed to flush events."),!1}})}_sendEventsViaPost(Le){return __awaiter$f(this,void 0,void 0,function*(){var Ye;const tt=yield this._network.post(this._getRequestData(Le)),nt=(Ye=tt==null?void 0:tt.code)!==null&&Ye!==void 0?Ye:-1;return{success:nt>=200&&nt<300}})}_sendEventsViaBeacon(Le){return{success:this._network.beacon(this._getRequestData(Le))}}_getRequestData(Le){return{sdkKey:this._sdkKey,data:{events:Le},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[NetworkConfig_1$1.NetworkParam.EventCount]:String(Le.length)},credentials:"same-origin"}}_saveFailedLogsToStorage(Le){for(;Le.length>MAX_FAILED_LOGS;)Le.shift();const Ye=this._getStorageKey();try{const tt=this._getFailedLogsFromStorage(Ye);(0,StorageProvider_1$4._setObjectInStorage)(Ye,[...tt,...Le])}catch{Log_1$8.Log.warn("Unable to save failed logs to storage")}}_getFailedLogsFromStorage(Le){let Ye=[];try{const tt=(0,StorageProvider_1$4._getObjectFromStorage)(Le);return Array.isArray(tt)&&(Ye=tt),Ye}catch{return[]}}_retryFailedLogs(Le){const Ye=this._getStorageKey();__awaiter$f(this,void 0,void 0,function*(){StorageProvider_1$4.Storage.isReady()||(yield StorageProvider_1$4.Storage.isReadyResolver());const tt=(0,StorageProvider_1$4._getObjectFromStorage)(Ye);if(!tt)return;Le===RetryFailedLogsTrigger.Startup&&StorageProvider_1$4.Storage.removeItem(Ye),(yield this._sendEvents(tt))&&Le===RetryFailedLogsTrigger.GainedFocus&&StorageProvider_1$4.Storage.removeItem(Ye)}).catch(()=>{Log_1$8.Log.warn("Failed to flush stored logs")})}_getStorageKey(){return`statsig.failed_logs.${(0,Hashing_1$2._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(Le){Le.user&&(Le.user=Object.assign({},Le.user),delete Le.user.privateAttributes);const Ye={},tt=this._getCurrentPageUrl();tt&&(Ye.statsigMetadata={currentPage:tt});const nt=Object.assign(Object.assign({},Le),Ye);Log_1$8.Log.debug("Enqueued Event:",nt),this._queue.push(nt)}_appendAndResetNonExposedChecks(){Object.keys(this._nonExposedChecks).length!==0&&(this._normalizeAndAppendEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:Object.assign({},this._nonExposedChecks)}}),this._nonExposedChecks={})}_getCurrentPageUrl(){var Le;if(((Le=this._options)===null||Le===void 0?void 0:Le.includeCurrentPageUrlWithEvents)!==!1)return(0,SafeJs_1$3._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var Le,Ye;const tt=(Ye=(Le=this._options)===null||Le===void 0?void 0:Le.loggingIntervalMs)!==null&&Ye!==void 0?Ye:DEFAULT_FLUSH_INTERVAL_MS,nt=setInterval(()=>{const ft=EVENT_LOGGER_MAP[this._sdkKey];!ft||ft._flushIntervalId!==nt?clearInterval(nt):EventLogger._safeFlushAndForget(this._sdkKey)},tt);this._flushIntervalId=nt}}EventLogger$1.EventLogger=EventLogger;var StatsigMetadata={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be.StatsigMetadataProvider=Be.SDK_VERSION=void 0,Be.SDK_VERSION="3.28.1";let Le={sdkVersion:Be.SDK_VERSION,sdkType:"js-mono"};Be.StatsigMetadataProvider={get:()=>Le,add:Ye=>{Le=Object.assign(Object.assign({},Le),Ye)}}})(StatsigMetadata);var ClientInterfaces={};Object.defineProperty(ClientInterfaces,"__esModule",{value:!0});var DataAdapterCore$1={},StableID={},UUID={};Object.defineProperty(UUID,"__esModule",{value:!0}),UUID.getUUID=void 0;function getUUID(){if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();let Be=new Date().getTime(),Le=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return`xxxxxxxx-xxxx-4xxx-${"89ab"[Math.floor(Math.random()*4)]}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,tt=>{let nt=Math.random()*16;return Be>0?(nt=(Be+nt)%16|0,Be=Math.floor(Be/16)):(nt=(Le+nt)%16|0,Le=Math.floor(Le/16)),(tt==="x"?nt:nt&7|8).toString(16)})}UUID.getUUID=getUUID,Object.defineProperty(StableID,"__esModule",{value:!0}),StableID.getCookieName=StableID.StableID=void 0;const CacheKey_1=CacheKey,Log_1$7=Log,SafeJs_1$2=SafeJs,StorageProvider_1$3=StorageProvider,UUID_1=UUID,PROMISE_MAP={},COOKIE_ENABLED_MAP={},DISABLED_MAP={};StableID.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:Be=>{if(DISABLED_MAP[Be])return null;if(PROMISE_MAP[Be]!=null)return PROMISE_MAP[Be];let Le=null;return Le=_loadFromCookie(Be),Le!=null?(PROMISE_MAP[Be]=Le,_persistToStorage(Le,Be),Le):(Le=_loadFromStorage(Be),Le==null&&(Le=(0,UUID_1.getUUID)()),_persistToStorage(Le,Be),_persistToCookie(Le,Be),PROMISE_MAP[Be]=Le,Le)},setOverride:(Be,Le)=>{PROMISE_MAP[Le]=Be,_persistToStorage(Be,Le),_persistToCookie(Be,Le)},_setCookiesEnabled:(Be,Le)=>{COOKIE_ENABLED_MAP[Be]=Le},_setDisabled:(Be,Le)=>{DISABLED_MAP[Be]=Le}};function _getStableIDStorageKey(Be){return`statsig.stable_id.${(0,CacheKey_1._getStorageKey)(Be)}`}function _persistToStorage(Be,Le){const Ye=_getStableIDStorageKey(Le);try{(0,StorageProvider_1$3._setObjectInStorage)(Ye,Be)}catch{Log_1$7.Log.warn("Failed to save StableID to storage")}}function _loadFromStorage(Be){const Le=_getStableIDStorageKey(Be);return(0,StorageProvider_1$3._getObjectFromStorage)(Le)}function _loadFromCookie(Be){if(!COOKIE_ENABLED_MAP[Be]||(0,SafeJs_1$2._getDocumentSafe)()==null)return null;const Le=document.cookie.split(";");for(const Ye of Le){const[tt,nt]=Ye.trim().split("=");if(tt===getCookieName(Be))return decodeURIComponent(nt)}return null}function _persistToCookie(Be,Le){if(!COOKIE_ENABLED_MAP[Le]||(0,SafeJs_1$2._getDocumentSafe)()==null)return;const Ye=new Date;Ye.setFullYear(Ye.getFullYear()+1),document.cookie=`${getCookieName(Le)}=${encodeURIComponent(Be)}; expires=${Ye.toUTCString()}; path=/`}function getCookieName(Be){return`statsig.stable_id.${(0,CacheKey_1._getStorageKey)(Be)}`}StableID.getCookieName=getCookieName;var StatsigUser={};Object.defineProperty(StatsigUser,"__esModule",{value:!0}),StatsigUser._getFullUserHash=StatsigUser._normalizeUser=void 0;const Hashing_1$1=Hashing,Log_1$6=Log;function _normalizeUser(Be,Le,Ye){try{const tt=JSON.parse(JSON.stringify(Be));return Le!=null&&Le.environment!=null?tt.statsigEnvironment=Le.environment:Ye!=null&&(tt.statsigEnvironment={tier:Ye}),tt}catch{return Log_1$6.Log.error("Failed to JSON.stringify user"),{statsigEnvironment:void 0}}}StatsigUser._normalizeUser=_normalizeUser;function _getFullUserHash(Be){return Be?(0,Hashing_1$1._DJB2Object)(Be):null}StatsigUser._getFullUserHash=_getFullUserHash;var TypedJsonParse={};Object.defineProperty(TypedJsonParse,"__esModule",{value:!0}),TypedJsonParse._typedJsonParse=void 0;const Log_1$5=Log;function _typedJsonParse(Be,Le,Ye){try{const tt=JSON.parse(Be);if(tt&&typeof tt=="object"&&Le in tt)return tt}catch{}return Log_1$5.Log.error(`Failed to parse ${Ye}`),null}TypedJsonParse._typedJsonParse=_typedJsonParse;var __awaiter$e=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(DataAdapterCore$1,"__esModule",{value:!0}),DataAdapterCore$1._makeDataAdapterResult=DataAdapterCore$1.DataAdapterCore=void 0;const Log_1$4=Log,StableID_1$2=StableID,StatsigUser_1=StatsigUser,StorageProvider_1$2=StorageProvider,TypedJsonParse_1=TypedJsonParse,CACHE_LIMIT=10,MAX_CACHE_WRITE_ATTEMPTS=8;class DataAdapterCore{constructor(Le,Ye){this._adapterName=Le,this._cacheSuffix=Ye,this._options=null,this._sdkKey=null,this._cacheLimit=CACHE_LIMIT,this._lastModifiedStoreKey=`statsig.last_modified_time.${Ye}`,this._inMemoryCache=new InMemoryCache}attach(Le,Ye,tt){this._sdkKey=Le,this._options=Ye}getDataSync(Le){const Ye=Le&&(0,StatsigUser_1._normalizeUser)(Le,this._options),tt=this._getCacheKey(Ye),nt=this._inMemoryCache.get(tt,Ye);if(nt&&this._getIsCacheValueValid(nt))return nt;const ft=this._loadFromCache(tt);return ft&&this._getIsCacheValueValid(ft)?(this._inMemoryCache.add(tt,ft,this._cacheLimit),this._inMemoryCache.get(tt,Ye)):null}setData(Le,Ye){const tt=Ye&&(0,StatsigUser_1._normalizeUser)(Ye,this._options),nt=this._getCacheKey(tt);this._inMemoryCache.add(nt,_makeDataAdapterResult("Bootstrap",Le,null,tt),this._cacheLimit)}_getIsCacheValueValid(Le){return Le.stableID==null||Le.stableID===StableID_1$2.StableID.get(this._getSdkKey())}_getDataAsyncImpl(Le,Ye,tt){return __awaiter$e(this,void 0,void 0,function*(){StorageProvider_1$2.Storage.isReady()||(yield StorageProvider_1$2.Storage.isReadyResolver());const nt=Le??this.getDataSync(Ye),ft=[this._fetchAndPrepFromNetwork(nt,Ye,tt)];return tt!=null&&tt.timeoutMs&&ft.push(new Promise(ht=>setTimeout(ht,tt.timeoutMs)).then(()=>(Log_1$4.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(ft)})}_prefetchDataImpl(Le,Ye){return __awaiter$e(this,void 0,void 0,function*(){const tt=Le&&(0,StatsigUser_1._normalizeUser)(Le,this._options),nt=this._getCacheKey(tt),ft=yield this._getDataAsyncImpl(null,tt,Ye);ft&&this._inMemoryCache.add(nt,Object.assign(Object.assign({},ft),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(Le,Ye,tt){return __awaiter$e(this,void 0,void 0,function*(){var nt;const ft=(nt=Le==null?void 0:Le.data)!==null&&nt!==void 0?nt:null,ht=Le!=null&&this._isCachedResultValidFor204(Le,Ye),gt=yield this._fetchFromNetwork(ft,Ye,tt,ht);if(!gt)return Log_1$4.Log.debug("No response returned for latest value"),null;const At=(0,TypedJsonParse_1._typedJsonParse)(gt,"has_updates","Response"),xt=this._getSdkKey(),Et=StableID_1$2.StableID.get(xt);let yt=null;if((At==null?void 0:At.has_updates)===!0)yt=_makeDataAdapterResult("Network",gt,Et,Ye);else if(ft&&(At==null?void 0:At.has_updates)===!1)yt=_makeDataAdapterResult("NetworkNotModified",ft,Et,Ye);else return null;const Ct=this._getCacheKey(Ye);return this._inMemoryCache.add(Ct,yt,this._cacheLimit),this._writeToCache(Ct,yt),yt})}_getSdkKey(){return this._sdkKey!=null?this._sdkKey:(Log_1$4.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(Le){var Ye;const tt=(Ye=StorageProvider_1$2.Storage.getItem)===null||Ye===void 0?void 0:Ye.call(StorageProvider_1$2.Storage,Le);if(tt==null)return null;const nt=(0,TypedJsonParse_1._typedJsonParse)(tt,"source","Cached Result");return nt?Object.assign(Object.assign({},nt),{source:"Cache"}):null}_writeToCache(Le,Ye){const tt=JSON.stringify(Ye);for(let nt=0;nt<MAX_CACHE_WRITE_ATTEMPTS;nt++)try{StorageProvider_1$2.Storage.setItem(Le,tt);break}catch(ft){if(!(ft instanceof Error)||!(ft.toString().includes("QuotaExceededError")||ft.toString().includes("QUOTA_EXCEEDED_ERR"))||this._cacheLimit<=1)throw ft;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(Le,this._cacheLimit-1)}this._runLocalStorageCacheEviction(Le)}_runLocalStorageCacheEviction(Le,Ye=this._cacheLimit){var tt;const nt=(tt=(0,StorageProvider_1$2._getObjectFromStorage)(this._lastModifiedStoreKey))!==null&&tt!==void 0?tt:{};nt[Le]=Date.now();const ft=_getEvictableKeys(nt,Ye);for(const ht of ft)delete nt[ht],StorageProvider_1$2.Storage.removeItem(ht);(0,StorageProvider_1$2._setObjectInStorage)(this._lastModifiedStoreKey,nt)}}DataAdapterCore$1.DataAdapterCore=DataAdapterCore;function _makeDataAdapterResult(Be,Le,Ye,tt){return{source:Be,data:Le,receivedAt:Date.now(),stableID:Ye,fullUserHash:(0,StatsigUser_1._getFullUserHash)(tt)}}DataAdapterCore$1._makeDataAdapterResult=_makeDataAdapterResult;class InMemoryCache{constructor(){this._data={}}get(Le,Ye){var tt;const nt=this._data[Le],ft=nt==null?void 0:nt.stableID,ht=(tt=Ye==null?void 0:Ye.customIDs)===null||tt===void 0?void 0:tt.stableID;return ht&&ft&&ht!==ft?(Log_1$4.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):nt}add(Le,Ye,tt){const nt=_getEvictableKeys(this._data,tt-1);for(const ft of nt)delete this._data[ft];this._data[Le]=Ye}merge(Le){this._data=Object.assign(Object.assign({},this._data),Le)}}function _getEvictableKeys(Be,Le){const Ye=Object.keys(Be);return Ye.length<=Le?[]:Le===0?Ye:Ye.sort((tt,nt)=>{const ft=Be[tt],ht=Be[nt];return typeof ft=="object"&&typeof ht=="object"?ft.receivedAt-ht.receivedAt:ft-ht}).slice(0,Ye.length-Le)}var DownloadConfigSpecsResponse={};Object.defineProperty(DownloadConfigSpecsResponse,"__esModule",{value:!0});var ErrorBoundary={},SDKType={};Object.defineProperty(SDKType,"__esModule",{value:!0}),SDKType.SDKType=void 0;const SDK_CLIENT={};let suffix;SDKType.SDKType={_get:Be=>{var Le;return((Le=SDK_CLIENT[Be])!==null&&Le!==void 0?Le:"js-mono")+(suffix??"")},_setClientType(Be,Le){SDK_CLIENT[Be]=Le},_setBindingType(Be){(!suffix||suffix==="-react")&&(suffix="-"+Be)}},function(Be){var Le=commonjsGlobal&&commonjsGlobal.__awaiter||function(yt,Ct,kt,vt){function bt(It){return It instanceof kt?It:new kt(function(wt){wt(It)})}return new(kt||(kt=Promise))(function(It,wt){function Rt(Dt){try{Bt(vt.next(Dt))}catch(Pt){wt(Pt)}}function Tt(Dt){try{Bt(vt.throw(Dt))}catch(Pt){wt(Pt)}}function Bt(Dt){Dt.done?It(Dt.value):bt(Dt.value).then(Rt,Tt)}Bt((vt=vt.apply(yt,Ct||[])).next())})};Object.defineProperty(Be,"__esModule",{value:!0}),Be.ErrorBoundary=Be.EXCEPTION_ENDPOINT=void 0;const Ye=Log,tt=SDKType,nt=StatsigMetadata;Be.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";const ft="[Statsig] UnknownError";class ht{constructor(Ct,kt,vt,bt){this._sdkKey=Ct,this._options=kt,this._emitter=vt,this._lastSeenError=bt,this._seen=new Set}wrap(Ct,kt){try{const vt=Ct;xt(vt).forEach(bt=>{const It=vt[bt];"$EB"in It||(vt[bt]=(...wt)=>this._capture(kt?`${kt}:${bt}`:bt,()=>It.apply(Ct,wt)),vt[bt].$EB=!0)})}catch(vt){this._onError("eb:wrap",vt)}}logError(Ct,kt){this._onError(Ct,kt)}getLastSeenErrorAndReset(){const Ct=this._lastSeenError;return this._lastSeenError=void 0,Ct??null}attachErrorIfNoneExists(Ct){this._lastSeenError||(this._lastSeenError=gt(Ct))}_capture(Ct,kt){try{const vt=kt();return vt&&vt instanceof Promise?vt.catch(bt=>this._onError(Ct,bt)):vt}catch(vt){return this._onError(Ct,vt),null}}_onError(Ct,kt){try{Ye.Log.warn(`Caught error in ${Ct}`,{error:kt}),Le(this,void 0,void 0,function*(){var bt,It,wt,Rt,Tt,Bt,Dt;const Pt=kt||Error(ft),Nt=Pt instanceof Error,Lt=Nt?Pt.name:"No Name",Wt=gt(Pt);if(this._lastSeenError=Wt,this._seen.has(Lt))return;if(this._seen.add(Lt),!((It=(bt=this._options)===null||bt===void 0?void 0:bt.networkConfig)===null||It===void 0)&&It.preventAllNetworkTraffic){(wt=this._emitter)===null||wt===void 0||wt.call(this,{name:"error",error:kt,tag:Ct});return}const $t=tt.SDKType._get(this._sdkKey),Kt=nt.StatsigMetadataProvider.get(),Vt=Nt?Pt.stack:At(Pt),Ut=Object.assign({tag:Ct,exception:Lt,info:Vt,statsigOptions:Et(this._options)},Object.assign(Object.assign({},Kt),{sdkType:$t}));yield((Bt=(Tt=(Rt=this._options)===null||Rt===void 0?void 0:Rt.networkConfig)===null||Tt===void 0?void 0:Tt.networkOverrideFunc)!==null&&Bt!==void 0?Bt:fetch)(Be.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String($t),"STATSIG-SDK-VERSION":String(Kt.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(Ut)}),(Dt=this._emitter)===null||Dt===void 0||Dt.call(this,{name:"error",error:kt,tag:Ct})}).then(()=>{}).catch(()=>{})}catch{}}}Be.ErrorBoundary=ht;function gt(yt){return yt instanceof Error?yt:typeof yt=="string"?new Error(yt):new Error("An unknown error occurred.")}function At(yt){try{return JSON.stringify(yt)}catch{return ft}}function xt(yt){const Ct=new Set;let kt=Object.getPrototypeOf(yt);for(;kt&&kt!==Object.prototype;)Object.getOwnPropertyNames(kt).filter(vt=>typeof(kt==null?void 0:kt[vt])=="function").forEach(vt=>Ct.add(vt)),kt=Object.getPrototypeOf(kt);return Array.from(Ct)}function Et(yt){if(!yt)return{};const Ct={};return Object.keys(yt).forEach(kt=>{const vt=kt,bt=yt[vt];switch(typeof bt){case"number":case"bigint":case"boolean":Ct[String(vt)]=bt;break;case"string":bt.length<50?Ct[String(vt)]=bt:Ct[String(vt)]="set";break;case"object":vt==="environment"?Ct.environment=bt:vt==="networkConfig"?Ct.networkConfig=bt:Ct[String(vt)]=bt!=null?"set":"unset";break}}),Ct}}(ErrorBoundary);var EvaluationOptions={};Object.defineProperty(EvaluationOptions,"__esModule",{value:!0});var EvaluationTypes={};Object.defineProperty(EvaluationTypes,"__esModule",{value:!0});var InitializeResponse={};Object.defineProperty(InitializeResponse,"__esModule",{value:!0});var MemoKey={};Object.defineProperty(MemoKey,"__esModule",{value:!0}),MemoKey.createMemoKey=MemoKey.MemoPrefix=void 0,MemoKey.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};const EXIST_KEYS=new Set([]),DO_NOT_MEMO_KEYS=new Set(["userPersistedValues"]);function createMemoKey(Be,Le,Ye){let tt=`${Be}|${Le}`;if(!Ye)return tt;for(const nt of Object.keys(Ye)){if(DO_NOT_MEMO_KEYS.has(nt))return;EXIST_KEYS.has(nt)?tt+=`|${nt}=true`:tt+=`|${nt}=${Ye[nt]}`}return tt}MemoKey.createMemoKey=createMemoKey;var NetworkCore$1={},NetworkFallbackResolver$1={},DnsTxtQuery={},__awaiter$d=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(DnsTxtQuery,"__esModule",{value:!0}),DnsTxtQuery._fetchTxtRecords=void 0;const FEATURE_ASSETS_DNS_QUERY=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),DNS_QUERY_ENDPOINT="https://cloudflare-dns.com/dns-query",DOMAIN_CHARS=["i","e","d"],MAX_START_LOOKUP=200;function _fetchTxtRecords(Be){return __awaiter$d(this,void 0,void 0,function*(){const Le=yield Be(DNS_QUERY_ENDPOINT,{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:FEATURE_ASSETS_DNS_QUERY});if(!Le.ok){const nt=new Error("Failed to fetch TXT records from DNS");throw nt.name="DnsTxtFetchError",nt}const Ye=yield Le.arrayBuffer(),tt=new Uint8Array(Ye);return _parseDnsResponse(tt)})}DnsTxtQuery._fetchTxtRecords=_fetchTxtRecords;function _parseDnsResponse(Be){const Le=Be.findIndex((tt,nt)=>nt<MAX_START_LOOKUP&&String.fromCharCode(tt)==="="&&DOMAIN_CHARS.includes(String.fromCharCode(Be[nt-1])));if(Le===-1){const tt=new Error("Failed to parse TXT records from DNS");throw tt.name="DnsTxtParseError",tt}let Ye="";for(let tt=Le-1;tt<Be.length;tt++)Ye+=String.fromCharCode(Be[tt]);return Ye.split(",")}var __awaiter$c=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(NetworkFallbackResolver$1,"__esModule",{value:!0}),NetworkFallbackResolver$1._isDomainFailure=NetworkFallbackResolver$1.NetworkFallbackResolver=void 0;const DnsTxtQuery_1=DnsTxtQuery,Hashing_1=Hashing,Log_1$3=Log,StorageProvider_1$1=StorageProvider,DEFAULT_TTL_MS=7*24*60*60*1e3,COOLDOWN_TIME_MS=4*60*60*1e3;class NetworkFallbackResolver{constructor(Le){var Ye;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=(Ye=Le.networkConfig)===null||Ye===void 0?void 0:Ye.networkOverrideFunc}setErrorBoundary(Le){this._errorBoundary=Le}tryBumpExpiryTime(Le,Ye){var tt;const nt=(tt=this._fallbackInfo)===null||tt===void 0?void 0:tt[Ye.endpoint];nt&&(nt.expiryTime=Date.now()+DEFAULT_TTL_MS,_tryWriteFallbackInfoToCache(Le,Object.assign(Object.assign({},this._fallbackInfo),{[Ye.endpoint]:nt})))}getActiveFallbackUrl(Le,Ye){var tt,nt;if(Ye.customUrl!=null&&Ye.fallbackUrls!=null)return null;let ft=this._fallbackInfo;ft==null&&(ft=(tt=_readFallbackInfoFromCache(Le))!==null&&tt!==void 0?tt:{},this._fallbackInfo=ft);const ht=ft[Ye.endpoint];return!ht||Date.now()>((nt=ht.expiryTime)!==null&&nt!==void 0?nt:0)||Ye.getChecksum()!==ht.urlConfigChecksum?(delete ft[Ye.endpoint],this._fallbackInfo=ft,_tryWriteFallbackInfoToCache(Le,this._fallbackInfo),null):ht.url?ht.url:null}tryFetchUpdatedFallbackInfo(Le,Ye,tt,nt){return __awaiter$c(this,void 0,void 0,function*(){var ft,ht;try{if(!_isDomainFailure(tt,nt))return!1;const At=Ye.customUrl==null&&Ye.fallbackUrls==null?yield this._tryFetchFallbackUrlsFromNetwork(Ye):Ye.fallbackUrls,xt=this._pickNewFallbackUrl((ft=this._fallbackInfo)===null||ft===void 0?void 0:ft[Ye.endpoint],At);return xt?(this._updateFallbackInfoWithNewUrl(Le,Ye,xt),!0):!1}catch(gt){return(ht=this._errorBoundary)===null||ht===void 0||ht.logError("tryFetchUpdatedFallbackInfo",gt),!1}})}_updateFallbackInfoWithNewUrl(Le,Ye,tt){var nt,ft,ht;const gt={urlConfigChecksum:Ye.getChecksum(),url:tt,expiryTime:Date.now()+DEFAULT_TTL_MS,previous:[]},At=Ye.endpoint,xt=(nt=this._fallbackInfo)===null||nt===void 0?void 0:nt[At];xt&>.previous.push(...xt.previous),gt.previous.length>10&&(gt.previous=[]);const Et=(ht=(ft=this._fallbackInfo)===null||ft===void 0?void 0:ft[At])===null||ht===void 0?void 0:ht.url;Et!=null&>.previous.push(Et),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[At]:gt}),_tryWriteFallbackInfoToCache(Le,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(Le){return __awaiter$c(this,void 0,void 0,function*(){var Ye;const tt=this._dnsQueryCooldowns[Le.endpoint];if(tt&&Date.now()<tt)return null;this._dnsQueryCooldowns[Le.endpoint]=Date.now()+COOLDOWN_TIME_MS;const nt=[],ft=yield(0,DnsTxtQuery_1._fetchTxtRecords)((Ye=this._networkOverrideFunc)!==null&&Ye!==void 0?Ye:fetch),ht=_extractPathFromUrl(Le.defaultUrl);for(const gt of ft){if(!gt.startsWith(Le.endpointDnsKey+"="))continue;const At=gt.split("=");if(At.length>1){let xt=At[1];xt.endsWith("/")&&(xt=xt.slice(0,-1)),nt.push(`https://${xt}${ht}`)}}return nt})}_pickNewFallbackUrl(Le,Ye){var tt;if(Ye==null)return null;const nt=new Set((tt=Le==null?void 0:Le.previous)!==null&&tt!==void 0?tt:[]),ft=Le==null?void 0:Le.url;let ht=null;for(const gt of Ye){const At=gt.endsWith("/")?gt.slice(0,-1):gt;if(!nt.has(gt)&&At!==ft){ht=At;break}}return ht}}NetworkFallbackResolver$1.NetworkFallbackResolver=NetworkFallbackResolver;function _isDomainFailure(Be,Le){var Ye;const tt=(Ye=Be==null?void 0:Be.toLowerCase())!==null&&Ye!==void 0?Ye:"";return Le||tt.includes("uncaught exception")||tt.includes("failed to fetch")||tt.includes("networkerror when attempting to fetch resource")}NetworkFallbackResolver$1._isDomainFailure=_isDomainFailure;function _getFallbackInfoStorageKey(Be){return`statsig.network_fallback.${(0,Hashing_1._DJB2)(Be)}`}function _tryWriteFallbackInfoToCache(Be,Le){const Ye=_getFallbackInfoStorageKey(Be);if(!Le||Object.keys(Le).length===0){StorageProvider_1$1.Storage.removeItem(Ye);return}StorageProvider_1$1.Storage.setItem(Ye,JSON.stringify(Le))}function _readFallbackInfoFromCache(Be){const Le=_getFallbackInfoStorageKey(Be),Ye=StorageProvider_1$1.Storage.getItem(Le);if(!Ye)return null;try{return JSON.parse(Ye)}catch{return Log_1$3.Log.error("Failed to parse FallbackInfo"),null}}function _extractPathFromUrl(Be){try{return new URL(Be).pathname}catch{return null}}var SDKFlags={};Object.defineProperty(SDKFlags,"__esModule",{value:!0}),SDKFlags.SDKFlags=void 0;const FLAGMAP={};SDKFlags.SDKFlags={setFlags:(Be,Le)=>{FLAGMAP[Be]=Le},get:(Be,Le)=>{var Ye,tt;return(tt=(Ye=FLAGMAP[Be])===null||Ye===void 0?void 0:Ye[Le])!==null&&tt!==void 0?tt:!1}};var SessionID={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be.StatsigSession=Be.SessionID=void 0;const Le=$_StatsigGlobal,Ye=CacheKey,tt=Log,nt=StorageProvider,ft=UUID,ht=30*60*1e3,gt=4*60*60*1e3,At={};Be.SessionID={get:Rt=>Be.StatsigSession.get(Rt).data.sessionID},Be.StatsigSession={get:Rt=>{At[Rt]==null&&(At[Rt]=xt(Rt));const Tt=At[Rt];return yt(Tt)},overrideInitialSessionID:(Rt,Tt)=>{At[Tt]=Et(Rt,Tt)}};function xt(Rt){let Tt=wt(Rt);const Bt=Date.now();return Tt||(Tt={sessionID:(0,ft.getUUID)(),startTime:Bt,lastUpdate:Bt}),{data:Tt,sdkKey:Rt}}function Et(Rt,Tt){const Bt=Date.now();return{data:{sessionID:Rt,startTime:Bt,lastUpdate:Bt},sdkKey:Tt}}function yt(Rt){const Tt=Date.now(),Bt=Rt.data,Dt=Rt.sdkKey;if(kt(Bt)||vt(Bt)){Bt.sessionID=(0,ft.getUUID)(),Bt.startTime=Tt;const Nt=__STATSIG__==null?void 0:__STATSIG__.instance(Dt);Nt&&Nt.$emt({name:"session_expired"})}Bt.lastUpdate=Tt,It(Bt,Rt.sdkKey),clearTimeout(Rt.idleTimeoutID),clearTimeout(Rt.ageTimeoutID);const Pt=Tt-Bt.startTime;return Rt.idleTimeoutID=Ct(Dt,ht),Rt.ageTimeoutID=Ct(Dt,gt-Pt),Rt}function Ct(Rt,Tt){return setTimeout(()=>{var Bt;const Dt=(Bt=(0,Le._getStatsigGlobal)())===null||Bt===void 0?void 0:Bt.instance(Rt);Dt&&Dt.$emt({name:"session_expired"})},Tt)}function kt({lastUpdate:Rt}){return Date.now()-Rt>ht}function vt({startTime:Rt}){return Date.now()-Rt>gt}function bt(Rt){return`statsig.session_id.${(0,Ye._getStorageKey)(Rt)}`}function It(Rt,Tt){const Bt=bt(Tt);try{(0,nt._setObjectInStorage)(Bt,Rt)}catch{tt.Log.warn("Failed to save SessionID")}}function wt(Rt){const Tt=bt(Rt);return(0,nt._getObjectFromStorage)(Tt)}})(SessionID);var StatsigClientEventEmitter={};Object.defineProperty(StatsigClientEventEmitter,"__esModule",{value:!0}),StatsigClientEventEmitter.ErrorTag=void 0,StatsigClientEventEmitter.ErrorTag={NetworkError:"NetworkError"};var __awaiter$b=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(NetworkCore$1,"__esModule",{value:!0}),NetworkCore$1.NetworkCore=void 0;const __StatsigGlobal_1$1=$_StatsigGlobal,Diagnostics_1=Diagnostics,Log_1$2=Log,NetworkConfig_1=NetworkConfig,NetworkFallbackResolver_1=NetworkFallbackResolver$1,SDKFlags_1=SDKFlags,SDKType_1=SDKType,SafeJs_1$1=SafeJs,SessionID_1$1=SessionID,StableID_1$1=StableID,StatsigClientEventEmitter_1=StatsigClientEventEmitter,StatsigMetadata_1=StatsigMetadata,StatsigOptionsCommon_1$1=StatsigOptionsCommon,VisibilityObserving_1=VisibilityObserving,DEFAULT_TIMEOUT_MS=1e4,BACKOFF_BASE_MS=500,BACKOFF_MAX_MS=3e4,RATE_LIMIT_WINDOW_MS=1e3,RATE_LIMIT_MAX_REQ_COUNT=50,LEAK_RATE=RATE_LIMIT_MAX_REQ_COUNT/RATE_LIMIT_WINDOW_MS,RETRYABLE_CODES=new Set([408,500,502,503,504,522,524,599]);class NetworkCore{constructor(Le,Ye){this._emitter=Ye,this._errorBoundary=null,this._timeout=DEFAULT_TIMEOUT_MS,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,Le&&(this._options=Le),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new NetworkFallbackResolver_1.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(Le))}setLogEventCompressionMode(Le){this._options.logEventCompressionMode=Le}setErrorBoundary(Le){this._errorBoundary=Le,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(Le)}isBeaconSupported(){return typeof navigator<"u"&&typeof navigator.sendBeacon=="function"}getLastUsedInitUrlAndReset(){const Le=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,Le}beacon(Le){if(!_ensureValidSdkKey(Le))return!1;const Ye=this._getInternalRequestArgs("POST",Le),tt=this._getPopulatedURL(Ye),nt=navigator;return nt.sendBeacon.bind(nt)(tt,Ye.body)}post(Le){return __awaiter$b(this,void 0,void 0,function*(){const Ye=this._getInternalRequestArgs("POST",Le);return this._tryEncodeBody(Ye),yield this._tryToCompressBody(Ye),this._sendRequest(Ye)})}get(Le){const Ye=this._getInternalRequestArgs("GET",Le);return this._sendRequest(Ye)}_sendRequest(Le){return __awaiter$b(this,void 0,void 0,function*(){var Ye,tt,nt,ft;if(!_ensureValidSdkKey(Le)||this._netConfig.preventAllNetworkTraffic)return null;const{method:ht,body:gt,retries:At,attempt:xt}=Le,Et=Le.urlConfig.endpoint;if(this._isRateLimited(Et))return Log_1$2.Log.warn(`Request to ${Et} was blocked because you are making requests too frequently.`),null;const yt=xt??1;let Ct=!1;const kt=this._getPopulatedURL(Le);let vt=null;const bt=(0,VisibilityObserving_1._isUnloading)();try{const It={method:ht,body:gt,headers:Object.assign({},Le.headers),priority:Le.priority,keepalive:bt};_tryMarkInitStart(Le,yt);const wt=this._leakyBucket[Et];wt&&(wt.lastRequestTime=Date.now(),this._leakyBucket[Et]=wt);const Rt=(Ye=this._netConfig.networkOverrideFunc)!==null&&Ye!==void 0?Ye:fetch;let Tt;if(vt=yield Promise.race([Rt(kt,It).finally(()=>clearTimeout(Tt)),new Promise((Dt,Pt)=>{Tt=setTimeout(()=>{Ct=!0,Pt(new Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})]),!vt.ok){const Dt=yield vt.text().catch(()=>"No Text"),Pt=new Error(`NetworkError: ${kt} ${Dt}`);throw Pt.name="NetworkError",Pt}const Bt=yield vt.text();return _tryMarkInitEnd(Le,vt,yt,Bt),this._fallbackResolver.tryBumpExpiryTime(Le.sdkKey,Le.urlConfig),{body:Bt,code:vt.status}}catch(It){const wt=_getErrorMessage(It),Rt=_didTimeout(wt??"",Ct);if(_tryMarkInitEnd(Le,vt,yt,"",It),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(Le.sdkKey,Le.urlConfig,wt,Rt))&&(Le.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(Le.sdkKey,Le.urlConfig)),!At||yt>At||!RETRYABLE_CODES.has((tt=vt==null?void 0:vt.status)!==null&&tt!==void 0?tt:500)){(nt=this._emitter)===null||nt===void 0||nt.call(this,{name:"error",error:It,tag:StatsigClientEventEmitter_1.ErrorTag.NetworkError,requestArgs:Le});const Bt=`A networking error occurred during ${ht} request to ${kt}.`;return Log_1$2.Log.error(Bt,wt,It),(ft=this._errorBoundary)===null||ft===void 0||ft.attachErrorIfNoneExists(Bt),null}return yield _exponentialBackoff(yt),this._sendRequest(Object.assign(Object.assign({},Le),{retries:At,attempt:yt+1}))}})}_getLogEventCompressionMode(Le){let Ye=Le==null?void 0:Le.logEventCompressionMode;return!Ye&&(Le==null?void 0:Le.disableCompression)===!0&&(Ye=StatsigOptionsCommon_1$1.LogEventCompressionMode.Disabled),Ye||(Ye=StatsigOptionsCommon_1$1.LogEventCompressionMode.Enabled),Ye}_isRateLimited(Le){var Ye;const tt=Date.now(),nt=(Ye=this._leakyBucket[Le])!==null&&Ye!==void 0?Ye:{count:0,lastRequestTime:tt},ft=tt-nt.lastRequestTime,ht=Math.floor(ft*LEAK_RATE);return nt.count=Math.max(0,nt.count-ht),nt.count>=RATE_LIMIT_MAX_REQ_COUNT?!0:(nt.count+=1,nt.lastRequestTime=tt,this._leakyBucket[Le]=nt,!1)}_getPopulatedURL(Le){var Ye;const tt=(Ye=Le.fallbackUrl)!==null&&Ye!==void 0?Ye:Le.urlConfig.getUrl();(Le.urlConfig.endpoint===NetworkConfig_1.Endpoint._initialize||Le.urlConfig.endpoint===NetworkConfig_1.Endpoint._download_config_specs)&&(this._lastUsedInitUrl=tt);const nt=Object.assign({[NetworkConfig_1.NetworkParam.SdkKey]:Le.sdkKey,[NetworkConfig_1.NetworkParam.SdkType]:SDKType_1.SDKType._get(Le.sdkKey),[NetworkConfig_1.NetworkParam.SdkVersion]:StatsigMetadata_1.SDK_VERSION,[NetworkConfig_1.NetworkParam.Time]:String(Date.now()),[NetworkConfig_1.NetworkParam.SessionID]:SessionID_1$1.SessionID.get(Le.sdkKey)},Le.params),ft=Object.keys(nt).map(ht=>`${encodeURIComponent(ht)}=${encodeURIComponent(nt[ht])}`).join("&");return`${tt}${ft?`?${ft}`:""}`}_tryEncodeBody(Le){var Ye;const tt=(0,SafeJs_1$1._getWindowSafe)(),nt=Le.body;if(!(!Le.isStatsigEncodable||this._options.disableStatsigEncoding||typeof nt!="string"||(0,__StatsigGlobal_1$1._getStatsigGlobalFlag)("no-encode")!=null||!(tt!=null&&tt.btoa)))try{Le.body=tt.btoa(nt).split("").reverse().join(""),Le.params=Object.assign(Object.assign({},(Ye=Le.params)!==null&&Ye!==void 0?Ye:{}),{[NetworkConfig_1.NetworkParam.StatsigEncoded]:"1"})}catch(ft){Log_1$2.Log.warn(`Request encoding failed for ${Le.urlConfig.getUrl()}`,ft)}}_tryToCompressBody(Le){return __awaiter$b(this,void 0,void 0,function*(){var Ye;const tt=Le.body;if(!(typeof tt!="string"||!_allowCompression(Le,this._options)))try{const nt=new TextEncoder().encode(tt),ft=new CompressionStream("gzip"),ht=ft.writable.getWriter();ht.write(nt).catch(Log_1$2.Log.error),ht.close().catch(Log_1$2.Log.error);const gt=ft.readable.getReader(),At=[];let xt;for(;!(xt=yield gt.read()).done;)At.push(xt.value);const Et=At.reduce((kt,vt)=>kt+vt.length,0),yt=new Uint8Array(Et);let Ct=0;for(const kt of At)yt.set(kt,Ct),Ct+=kt.length;Le.body=yt,Le.params=Object.assign(Object.assign({},(Ye=Le.params)!==null&&Ye!==void 0?Ye:{}),{[NetworkConfig_1.NetworkParam.IsGzipped]:"1"})}catch(nt){Log_1$2.Log.warn(`Request compression failed for ${Le.urlConfig.getUrl()}`,nt)}})}_getInternalRequestArgs(Le,Ye){const tt=this._fallbackResolver.getActiveFallbackUrl(Ye.sdkKey,Ye.urlConfig),nt=Object.assign(Object.assign({},Ye),{method:Le,fallbackUrl:tt});return"data"in Ye&&_populateRequestBody(nt,Ye.data),nt}}NetworkCore$1.NetworkCore=NetworkCore;const _ensureValidSdkKey=Be=>Be.sdkKey?!0:(Log_1$2.Log.warn("Unable to make request without an SDK key"),!1),_populateRequestBody=(Be,Le)=>{const{sdkKey:Ye,fallbackUrl:tt}=Be,nt=StableID_1$1.StableID.get(Ye),ft=SessionID_1$1.SessionID.get(Ye),ht=SDKType_1.SDKType._get(Ye);Be.body=JSON.stringify(Object.assign(Object.assign({},Le),{statsigMetadata:Object.assign(Object.assign({},StatsigMetadata_1.StatsigMetadataProvider.get()),{stableID:nt,sessionID:ft,sdkType:ht,fallbackUrl:tt})}))};function _allowCompression(Be,Le){if(!Be.isCompressable||(0,__StatsigGlobal_1$1._getStatsigGlobalFlag)("no-compress")!=null||typeof CompressionStream>"u"||typeof TextEncoder>"u")return!1;const Ye=Be.urlConfig.customUrl!=null||Be.urlConfig.fallbackUrls!=null,tt=SDKFlags_1.SDKFlags.get(Be.sdkKey,"enable_log_event_compression")===!0;switch(Le.logEventCompressionMode){case StatsigOptionsCommon_1$1.LogEventCompressionMode.Disabled:return!1;case StatsigOptionsCommon_1$1.LogEventCompressionMode.Enabled:return!(Ye&&!tt);case StatsigOptionsCommon_1$1.LogEventCompressionMode.Forced:return!0;default:return!1}}function _getErrorMessage(Be){return typeof Be=="string"?Be:Be instanceof Error?`${Be.name}: ${Be.message}`:"Unknown Error"}function _didTimeout(Be,Le){return Be.includes("Timeout")||Le}function _tryMarkInitStart(Be,Le){Be.urlConfig.endpoint===NetworkConfig_1.Endpoint._initialize&&Diagnostics_1.Diagnostics._markInitNetworkReqStart(Be.sdkKey,{attempt:Le})}function _tryMarkInitEnd(Be,Le,Ye,tt,nt){Be.urlConfig.endpoint===NetworkConfig_1.Endpoint._initialize&&Diagnostics_1.Diagnostics._markInitNetworkReqEnd(Be.sdkKey,Diagnostics_1.Diagnostics._getDiagnosticsData(Le,Ye,tt,nt))}function _exponentialBackoff(Be){return __awaiter$b(this,void 0,void 0,function*(){yield new Promise(Le=>setTimeout(Le,Math.min(BACKOFF_BASE_MS*(Be*Be),BACKOFF_MAX_MS)))})}var OverrideAdapter={};Object.defineProperty(OverrideAdapter,"__esModule",{value:!0});var ParamStoreTypes={};Object.defineProperty(ParamStoreTypes,"__esModule",{value:!0});var SizeOf={};(function(Be){Object.defineProperty(Be,"__esModule",{value:!0}),Be._fastApproxSizeOf=void 0;const Le=2,Ye=1,tt=(nt,ft)=>{let ht=0;const gt=Object.keys(nt);for(let At=0;At<gt.length;At++){const xt=gt[At],Et=nt[xt];if(ht+=xt.length,typeof Et=="object"&&Et!==null?ht+=(0,Be._fastApproxSizeOf)(Et,ft)+Le:ht+=String(Et).length+Ye,ht>=ft)return ht}return ht};Be._fastApproxSizeOf=tt})(SizeOf);var StatsigClientBase$1={},__awaiter$a=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(StatsigClientBase$1,"__esModule",{value:!0}),StatsigClientBase$1.StatsigClientBase=void 0;const __StatsigGlobal_1=$_StatsigGlobal,ErrorBoundary_1=ErrorBoundary,EventLogger_1=EventLogger$1,Log_1$1=Log,MemoKey_1=MemoKey,SafeJs_1=SafeJs,SessionID_1=SessionID,StableID_1=StableID,StatsigOptionsCommon_1=StatsigOptionsCommon,StorageProvider_1=StorageProvider,MAX_MEMO_CACHE_SIZE=3e3;class StatsigClientBase{constructor(Le,Ye,tt,nt){var ft,ht,gt,At;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const xt=this.$emt.bind(this);(nt==null?void 0:nt.logLevel)!=null&&(Log_1$1.Log.level=nt.logLevel),nt!=null&&nt.disableStorage&&StorageProvider_1.Storage._setDisabled(!0),nt!=null&&nt.initialSessionID&&SessionID_1.StatsigSession.overrideInitialSessionID(nt.initialSessionID,Le),nt!=null&&nt.storageProvider&&StorageProvider_1.Storage._setProvider(nt.storageProvider),nt!=null&&nt.enableCookies&&StableID_1.StableID._setCookiesEnabled(Le,nt.enableCookies),nt!=null&&nt.disableStableID&&StableID_1.StableID._setDisabled(Le,!0),this._sdkKey=Le,this._options=nt??{},this._memoCache={},this.overrideAdapter=(ft=nt==null?void 0:nt.overrideAdapter)!==null&&ft!==void 0?ft:null,this._logger=new EventLogger_1.EventLogger(Le,xt,tt,nt),this._errorBoundary=new ErrorBoundary_1.ErrorBoundary(Le,nt,xt),this._errorBoundary.wrap(this),this._errorBoundary.wrap(Ye),this._errorBoundary.wrap(this._logger),tt.setErrorBoundary(this._errorBoundary),this.dataAdapter=Ye,this.dataAdapter.attach(Le,nt,tt),this.storageProvider=StorageProvider_1.Storage,(At=(gt=(ht=this.overrideAdapter)===null||ht===void 0?void 0:ht.loadFromStorage)===null||gt===void 0?void 0:gt.call(ht))===null||At===void 0||At.catch(Et=>this._errorBoundary.logError("OA::loadFromStorage",Et)),this._primeReadyRipcord(),_assignGlobalInstance(Le,this)}updateRuntimeOptions(Le){Le.loggingEnabled?(this._options.loggingEnabled=Le.loggingEnabled,this._logger.setLoggingEnabled(Le.loggingEnabled)):Le.disableLogging!=null&&(this._options.disableLogging=Le.disableLogging,this._logger.setLoggingEnabled(Le.disableLogging?"disabled":"browser-only")),Le.disableStorage!=null&&(this._options.disableStorage=Le.disableStorage,StorageProvider_1.Storage._setDisabled(Le.disableStorage)),Le.enableCookies!=null&&(this._options.enableCookies=Le.enableCookies,StableID_1.StableID._setCookiesEnabled(this._sdkKey,Le.enableCookies)),Le.logEventCompressionMode?this._logger.setLogEventCompressionMode(Le.logEventCompressionMode):Le.disableCompression&&this._logger.setLogEventCompressionMode(StatsigOptionsCommon_1.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return __awaiter$a(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(Le,Ye){this._listeners[Le]||(this._listeners[Le]=[]),this._listeners[Le].push(Ye)}off(Le,Ye){if(this._listeners[Le]){const tt=this._listeners[Le].indexOf(Ye);tt!==-1&&this._listeners[Le].splice(tt,1)}}$on(Le,Ye){Ye.__isInternal=!0,this.on(Le,Ye)}$emt(Le){var Ye;const tt=nt=>{try{nt(Le)}catch(ft){if(nt.__isInternal===!0){this._errorBoundary.logError(`__emit:${Le.name}`,ft);return}Log_1$1.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",Le)}};this._listeners[Le.name]&&this._listeners[Le.name].forEach(nt=>tt(nt)),(Ye=this._listeners["*"])===null||Ye===void 0||Ye.forEach(tt)}_setStatus(Le,Ye){this.loadingStatus=Le,this._memoCache={},this.$emt({name:"values_updated",status:Le,values:Ye})}_enqueueExposure(Le,Ye,tt){if((tt==null?void 0:tt.disableExposureLog)===!0){this._logger.incrementNonExposureCount(Le);return}this._logger.enqueue(Ye)}_memoize(Le,Ye){return(tt,nt)=>{if(this._options.disableEvaluationMemoization)return Ye(tt,nt);const ft=(0,MemoKey_1.createMemoKey)(Le,tt,nt);return ft?(ft in this._memoCache||(Object.keys(this._memoCache).length>=MAX_MEMO_CACHE_SIZE&&(this._memoCache={}),this._memoCache[ft]=Ye(tt,nt)),this._memoCache[ft]):Ye(tt,nt)}}}StatsigClientBase$1.StatsigClientBase=StatsigClientBase;function _assignGlobalInstance(Be,Le){var Ye;if((0,SafeJs_1._isServerEnv)())return;const tt=(0,__StatsigGlobal_1._getStatsigGlobal)(),nt=(Ye=tt.instances)!==null&&Ye!==void 0?Ye:{},ft=Le;nt[Be]!=null&&Log_1$1.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),nt[Be]=ft,tt.firstInstance||(tt.firstInstance=ft),tt.instances=nt,__STATSIG__=tt}var StatsigDataAdapter={};Object.defineProperty(StatsigDataAdapter,"__esModule",{value:!0}),StatsigDataAdapter.DataAdapterCachePrefix=void 0,StatsigDataAdapter.DataAdapterCachePrefix="statsig.cached";var StatsigPlugin={};Object.defineProperty(StatsigPlugin,"__esModule",{value:!0});var StatsigTypeFactories={};Object.defineProperty(StatsigTypeFactories,"__esModule",{value:!0}),StatsigTypeFactories._makeTypedGet=StatsigTypeFactories._mergeOverride=StatsigTypeFactories._makeLayer=StatsigTypeFactories._makeExperiment=StatsigTypeFactories._makeDynamicConfig=StatsigTypeFactories._makeFeatureGate=void 0;const Log_1=Log,TypingUtils_1=TypingUtils;function _makeEvaluation(Be,Le,Ye,tt){var nt;return{name:Be,details:Le,ruleID:(nt=Ye==null?void 0:Ye.rule_id)!==null&&nt!==void 0?nt:"",__evaluation:Ye,value:tt}}function _makeFeatureGate(Be,Le,Ye){var tt;return Object.assign(Object.assign({},_makeEvaluation(Be,Le,Ye,(Ye==null?void 0:Ye.value)===!0)),{idType:(tt=Ye==null?void 0:Ye.id_type)!==null&&tt!==void 0?tt:null})}StatsigTypeFactories._makeFeatureGate=_makeFeatureGate;function _makeDynamicConfig(Be,Le,Ye){var tt,nt;const ft=(tt=Ye==null?void 0:Ye.value)!==null&&tt!==void 0?tt:{};return Object.assign(Object.assign({},_makeEvaluation(Be,Le,Ye,ft)),{idType:(nt=Ye==null?void 0:Ye.id_type)!==null&&nt!==void 0?nt:null,get:_makeTypedGet(Be,Ye==null?void 0:Ye.value)})}StatsigTypeFactories._makeDynamicConfig=_makeDynamicConfig;function _makeExperiment(Be,Le,Ye){var tt;const nt=_makeDynamicConfig(Be,Le,Ye);return Object.assign(Object.assign({},nt),{groupName:(tt=Ye==null?void 0:Ye.group_name)!==null&&tt!==void 0?tt:null})}StatsigTypeFactories._makeExperiment=_makeExperiment;function _makeLayer(Be,Le,Ye,tt){var nt,ft;return Object.assign(Object.assign({},_makeEvaluation(Be,Le,Ye,void 0)),{get:_makeTypedGet(Be,Ye==null?void 0:Ye.value,tt),groupName:(nt=Ye==null?void 0:Ye.group_name)!==null&&nt!==void 0?nt:null,__value:(ft=Ye==null?void 0:Ye.value)!==null&&ft!==void 0?ft:{}})}StatsigTypeFactories._makeLayer=_makeLayer;function _mergeOverride(Be,Le,Ye,tt){return Object.assign(Object.assign(Object.assign({},Be),Le),{get:_makeTypedGet(Be.name,Ye,tt)})}StatsigTypeFactories._mergeOverride=_mergeOverride;function _makeTypedGet(Be,Le,Ye){return(tt,nt)=>{var ft;const ht=(ft=Le==null?void 0:Le[tt])!==null&&ft!==void 0?ft:null;return ht==null?nt??null:nt!=null&&!(0,TypingUtils_1._isTypeMatch)(ht,nt)?(Log_1.Log.warn(`Parameter type mismatch. '${Be}.${tt}' was found to be type '${typeof ht}' but fallback/return type is '${typeof nt}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),nt??null):(Ye==null||Ye(tt),ht)}}StatsigTypeFactories._makeTypedGet=_makeTypedGet;var StatsigTypes={};Object.defineProperty(StatsigTypes,"__esModule",{value:!0});var StatsigUpdateDetails={};Object.defineProperty(StatsigUpdateDetails,"__esModule",{value:!0}),StatsigUpdateDetails.UPDATE_DETAIL_ERROR_MESSAGES=StatsigUpdateDetails.createUpdateDetails=void 0;const createUpdateDetails=(Be,Le,Ye,tt,nt,ft)=>({duration:Ye,source:Le,success:Be,error:tt,sourceUrl:nt,warnings:ft});StatsigUpdateDetails.createUpdateDetails=createUpdateDetails,StatsigUpdateDetails.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."},function(Be){var Le=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(xt,Et,yt,Ct){Ct===void 0&&(Ct=yt);var kt=Object.getOwnPropertyDescriptor(Et,yt);(!kt||("get"in kt?!Et.__esModule:kt.writable||kt.configurable))&&(kt={enumerable:!0,get:function(){return Et[yt]}}),Object.defineProperty(xt,Ct,kt)}:function(xt,Et,yt,Ct){Ct===void 0&&(Ct=yt),xt[Ct]=Et[yt]}),Ye=commonjsGlobal&&commonjsGlobal.__exportStar||function(xt,Et){for(var yt in xt)yt!=="default"&&!Object.prototype.hasOwnProperty.call(Et,yt)&&Le(Et,xt,yt)};Object.defineProperty(Be,"__esModule",{value:!0}),Be.Storage=Be.Log=Be.EventLogger=Be.Diagnostics=void 0;const tt=$_StatsigGlobal,nt=Diagnostics;Object.defineProperty(Be,"Diagnostics",{enumerable:!0,get:function(){return nt.Diagnostics}});const ft=EventLogger$1;Object.defineProperty(Be,"EventLogger",{enumerable:!0,get:function(){return ft.EventLogger}});const ht=Log;Object.defineProperty(Be,"Log",{enumerable:!0,get:function(){return ht.Log}});const gt=StatsigMetadata,At=StorageProvider;Object.defineProperty(Be,"Storage",{enumerable:!0,get:function(){return At.Storage}}),Ye($_StatsigGlobal,Be),Ye(CacheKey,Be),Ye(ClientInterfaces,Be),Ye(DataAdapterCore$1,Be),Ye(Diagnostics,Be),Ye(DownloadConfigSpecsResponse,Be),Ye(ErrorBoundary,Be),Ye(EvaluationOptions,Be),Ye(EvaluationTypes,Be),Ye(Hashing,Be),Ye(InitializeResponse,Be),Ye(Log,Be),Ye(MemoKey,Be),Ye(NetworkConfig,Be),Ye(NetworkCore$1,Be),Ye(OverrideAdapter,Be),Ye(ParamStoreTypes,Be),Ye(SafeJs,Be),Ye(SDKType,Be),Ye(SessionID,Be),Ye(SizeOf,Be),Ye(StableID,Be),Ye(StatsigClientBase$1,Be),Ye(StatsigClientEventEmitter,Be),Ye(StatsigDataAdapter,Be),Ye(StatsigEvent,Be),Ye(StatsigMetadata,Be),Ye(StatsigOptionsCommon,Be),Ye(StatsigPlugin,Be),Ye(StatsigTypeFactories,Be),Ye(StatsigTypes,Be),Ye(StatsigUser,Be),Ye(StorageProvider,Be),Ye(TypedJsonParse,Be),Ye(TypingUtils,Be),Ye(UrlConfiguration$1,Be),Ye(UUID,Be),Ye(VisibilityObserving,Be),Ye(StatsigUpdateDetails,Be),Ye(SDKFlags,Be),Object.assign((0,tt._getStatsigGlobal)(),{Log:ht.Log,SDK_VERSION:gt.SDK_VERSION})}(src$1);var StatsigClient$1={},EvaluationStore$1={},V1InitializeContainer$1={};Object.defineProperty(V1InitializeContainer$1,"__esModule",{value:!0}),V1InitializeContainer$1.V1InitializeContainer=void 0;const client_core_1$7=src$1;class V1InitializeContainer{constructor(Le){this._values=Le}getGate(Le){return this._getResultFromLookup(this._values.feature_gates,Le)}getConfig(Le){return this._getResultFromLookup(this._values.dynamic_configs,Le)}getLayer(Le){return this._getResultFromLookup(this._values.layer_configs,Le)}getParamStore(Le){return this._getResultFromLookup(this._values.param_stores,Le)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(Le,Ye){var tt,nt;return Le&&(nt=(tt=Le[Ye])!==null&&tt!==void 0?tt:Le[(0,client_core_1$7._DJB2)(Ye)])!==null&&nt!==void 0?nt:null}}V1InitializeContainer$1.V1InitializeContainer=V1InitializeContainer;var V2InitializeContainer$1={};Object.defineProperty(V2InitializeContainer$1,"__esModule",{value:!0}),V2InitializeContainer$1.V2InitializeContainer=void 0;const client_core_1$6=src$1;class V2InitializeContainer{constructor(Le){this._values=Le}getGate(Le){var Ye,tt,nt;const ft=this._getResultFromLookup(this._values.feature_gates,Le);return ft?{name:Le,value:ft.v===!0,rule_id:(Ye=ft.r)!==null&&Ye!==void 0?Ye:"default",secondary_exposures:(tt=ft.s)!==null&&tt!==void 0?tt:[],id_type:(nt=ft.i)!==null&&nt!==void 0?nt:""}:null}getConfig(Le){var Ye,tt,nt,ft;const ht=this._getResultFromLookup(this._values.dynamic_configs,Le);return ht?{name:Le,value:(Ye=this._values.values[ht.v])!==null&&Ye!==void 0?Ye:{},rule_id:ht.r,secondary_exposures:(tt=ht.s)!==null&&tt!==void 0?tt:[],id_type:(nt=ht.i)!==null&&nt!==void 0?nt:"",is_user_in_experiment:ht.ue===!0,passed:ht.p===!0,group_name:(ft=ht.gn)!==null&&ft!==void 0?ft:void 0,is_experiment_active:ht.ea===!0,group:ht.r,is_device_based:ht.i==="stableID"}:null}getLayer(Le){var Ye,tt,nt,ft,ht,gt;const At=this._getResultFromLookup(this._values.layer_configs,Le);return At?{name:Le,value:(Ye=this._values.values[At.v])!==null&&Ye!==void 0?Ye:{},rule_id:At.r,secondary_exposures:(tt=At.s)!==null&&tt!==void 0?tt:[],is_user_in_experiment:At.ue===!0,group_name:(nt=At.gn)!==null&&nt!==void 0?nt:void 0,is_experiment_active:At.ea===!0,group:At.r,is_device_based:At.i==="stableID",allocated_experiment_name:(ft=At.ae)!==null&&ft!==void 0?ft:"",explicit_parameters:(ht=At.ep)!==null&&ht!==void 0?ht:[],undelegated_secondary_exposures:(gt=At.us)!==null&>!==void 0?gt:[],parameter_rule_ids:At.pr}:null}getParamStore(Le){return this._getResultFromLookup(this._values.param_stores,Le)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(Le,Ye){var tt,nt;return Le&&(nt=(tt=Le[Ye])!==null&&tt!==void 0?tt:Le[(0,client_core_1$6._DJB2)(Ye)])!==null&&nt!==void 0?nt:null}}V2InitializeContainer$1.V2InitializeContainer=V2InitializeContainer,Object.defineProperty(EvaluationStore$1,"__esModule",{value:!0});const client_core_1$5=src$1,V1InitializeContainer_1=V1InitializeContainer$1,V2InitializeContainer_1=V2InitializeContainer$1;class EvaluationStore{constructor(Le){this._sdkKey=Le,this._rawValues=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._rawValues=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._rawValues?(0,client_core_1$5._typedJsonParse)(this._rawValues,"has_updates","EvaluationStoreValues"):null}setValues(Le,Ye){var tt,nt;if(!Le)return!1;const ft=(0,client_core_1$5._typedJsonParse)(Le.data,"has_updates","EvaluationResponse");return ft==null?!1:(this._source=Le.source,(ft==null?void 0:ft.has_updates)!==!0||((tt=ft.time)!==null&&tt!==void 0?tt:0)<this._lcut||(this._rawValues=Le.data,this._lcut=ft.time,this._receivedAt=Le.receivedAt,ft.response_format==="init-v2"?this._values=new V2InitializeContainer_1.V2InitializeContainer(ft):this._values=new V1InitializeContainer_1.V1InitializeContainer(ft),this._bootstrapMetadata=this._extractBootstrapMetadata(Le.source,ft),Le.source&&ft.user&&this._setWarningState(Ye,ft),client_core_1$5.SDKFlags.setFlags(this._sdkKey,(nt=ft.sdk_flags)!==null&&nt!==void 0?nt:{})),!0)}getWarnings(){if(this._warnings.size!==0)return Array.from(this._warnings)}getGate(Le){const Ye=this._values?this._values.getGate(Le):null;return this._getDetailedStoreResult(Ye)}getConfig(Le){const Ye=this._values?this._values.getConfig(Le):null;return this._getDetailedStoreResult(Ye)}getConfigList(){return this._values?this._values.getConfigList():[]}getLayer(Le){const Ye=this._values?this._values.getLayer(Le):null;return this._getDetailedStoreResult(Ye)}getParamStore(Le){const Ye=this._values?this._values.getParamStore(Le):null;return this._getDetailedStoreResult(Ye)}getSource(){return this._source}getExposureMapping(){var Le;return(Le=this._values)===null||Le===void 0?void 0:Le.getExposureMapping()}_extractBootstrapMetadata(Le,Ye){if(Le!=="Bootstrap")return null;const tt={};return Ye.user&&(tt.user=Ye.user),Ye.sdkInfo&&(tt.generatorSDKInfo=Ye.sdkInfo),tt.lcut=Ye.time,tt}_getDetailedStoreResult(Le){return{result:Le,details:this._getDetails(Le==null)}}_setWarningState(Le,Ye){var tt,nt;const ft=client_core_1$5.StableID.get(this._sdkKey);if(((tt=Le.customIDs)===null||tt===void 0?void 0:tt.stableID)!==ft&&(!((nt=Le.customIDs)===null||nt===void 0)&&nt.stableID||ft)){this._warnings.add("StableIDMismatch");return}if("user"in Ye){const ht=Ye.user,gt=Object.assign(Object.assign({},Le),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});(0,client_core_1$5._getFullUserHash)(gt)!==(0,client_core_1$5._getFullUserHash)(ht)&&this._warnings.add("PartialUserMatch")}}getCurrentSourceDetails(){if(this._source==="Uninitialized"||this._source==="NoValues")return{reason:this._source};const Le={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(Le.warnings=Array.from(this._warnings)),Le}_getDetails(Le){var Ye,tt;const nt=this.getCurrentSourceDetails();let ft=nt.reason;const ht=(Ye=nt.warnings)!==null&&Ye!==void 0?Ye:[];this._source==="Bootstrap"&&ht.length>0&&(ft=ft+ht[0]),ft!=="Uninitialized"&&ft!=="NoValues"&&(ft=`${ft}:${Le?"Unrecognized":"Recognized"}`);const gt=this._source==="Bootstrap"&&(tt=this._bootstrapMetadata)!==null&&tt!==void 0?tt:void 0;return gt&&(nt.bootstrapMetadata=gt),Object.assign(Object.assign({},nt),{reason:ft})}}EvaluationStore$1.default=EvaluationStore;var Network={},EvaluationResponseDeltas={};Object.defineProperty(EvaluationResponseDeltas,"__esModule",{value:!0}),EvaluationResponseDeltas._resolveDeltasResponse=void 0;const client_core_1$4=src$1,MAX_DELTAS_SORT_DEPTH=2;function _resolveDeltasResponse(Be,Le){const Ye=(0,client_core_1$4._typedJsonParse)(Le,"checksum","DeltasEvaluationResponse");if(!Ye)return{hadBadDeltaChecksum:!0};const tt=_mergeDeltasIntoCache(Be,Ye),nt=_handleDeletedEntries(tt),ft=(0,client_core_1$4._DJB2Object)({feature_gates:nt.feature_gates,dynamic_configs:nt.dynamic_configs,layer_configs:nt.layer_configs},MAX_DELTAS_SORT_DEPTH);return ft===Ye.checksumV2?JSON.stringify(nt):{hadBadDeltaChecksum:!0,badChecksum:ft,badMergedConfigs:nt,badFullResponse:Ye.deltas_full_response}}EvaluationResponseDeltas._resolveDeltasResponse=_resolveDeltasResponse;function _mergeDeltasIntoCache(Be,Le){return Object.assign(Object.assign(Object.assign({},Be),Le),{feature_gates:Object.assign(Object.assign({},Be.feature_gates),Le.feature_gates),layer_configs:Object.assign(Object.assign({},Be.layer_configs),Le.layer_configs),dynamic_configs:Object.assign(Object.assign({},Be.dynamic_configs),Le.dynamic_configs)})}function _handleDeletedEntries(Be){const Le=Be;return _deleteEntriesInRecord(Be.deleted_gates,Le.feature_gates),delete Le.deleted_gates,_deleteEntriesInRecord(Be.deleted_configs,Le.dynamic_configs),delete Le.deleted_configs,_deleteEntriesInRecord(Be.deleted_layers,Le.layer_configs),delete Le.deleted_layers,Le}function _deleteEntriesInRecord(Be,Le){Be==null||Be.forEach(Ye=>{delete Le[Ye]})}var __awaiter$9=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(Network,"__esModule",{value:!0});const client_core_1$3=src$1,EvaluationResponseDeltas_1=EvaluationResponseDeltas;class StatsigNetwork extends client_core_1$3.NetworkCore{constructor(Le,Ye){super(Le,Ye);const tt=Le==null?void 0:Le.networkConfig;this._option=Le,this._initializeUrlConfig=new client_core_1$3.UrlConfiguration(client_core_1$3.Endpoint._initialize,tt==null?void 0:tt.initializeUrl,tt==null?void 0:tt.api,tt==null?void 0:tt.initializeFallbackUrls)}fetchEvaluations(Le,Ye,tt,nt,ft){return __awaiter$9(this,void 0,void 0,function*(){var ht,gt,At,xt,Et,yt;const Ct=Ye?(0,client_core_1$3._typedJsonParse)(Ye,"has_updates","InitializeResponse"):null;let kt={user:nt,hash:(At=(gt=(ht=this._option)===null||ht===void 0?void 0:ht.networkConfig)===null||gt===void 0?void 0:gt.initializeHashAlgorithm)!==null&&At!==void 0?At:"djb2",deltasResponseRequested:!1,full_checksum:null};if(Ct!=null&&Ct.has_updates){const vt=(Ct==null?void 0:Ct.hash_used)!==((yt=(Et=(xt=this._option)===null||xt===void 0?void 0:xt.networkConfig)===null||Et===void 0?void 0:Et.initializeHashAlgorithm)!==null&&yt!==void 0?yt:"djb2");kt=Object.assign(Object.assign({},kt),{sinceTime:ft&&!vt?Ct.time:0,previousDerivedFields:"derived_fields"in Ct&&ft?Ct.derived_fields:{},deltasResponseRequested:!0,full_checksum:Ct.full_checksum,partialUserMatchSinceTime:vt?0:Ct.time})}return this._fetchEvaluations(Le,Ct,kt,tt)})}_fetchEvaluations(Le,Ye,tt,nt){return __awaiter$9(this,void 0,void 0,function*(){var ft,ht;const gt=yield this.post({sdkKey:Le,urlConfig:this._initializeUrlConfig,data:tt,retries:2,isStatsigEncodable:!0,priority:nt});if((gt==null?void 0:gt.code)===204)return'{"has_updates": false}';if((gt==null?void 0:gt.code)!==200)return(ft=gt==null?void 0:gt.body)!==null&&ft!==void 0?ft:null;if((Ye==null?void 0:Ye.has_updates)!==!0||((ht=gt.body)===null||ht===void 0?void 0:ht.includes('"is_delta":true'))!==!0||tt.deltasResponseRequested!==!0)return gt.body;const At=(0,EvaluationResponseDeltas_1._resolveDeltasResponse)(Ye,gt.body);return typeof At=="string"?At:this._fetchEvaluations(Le,Ye,Object.assign(Object.assign(Object.assign({},tt),At),{deltasResponseRequested:!1}),nt)})}}Network.default=StatsigNetwork;var ParamStoreGetterFactory={};Object.defineProperty(ParamStoreGetterFactory,"__esModule",{value:!0}),ParamStoreGetterFactory._makeParamStoreGetter=void 0;const client_core_1$2=src$1,NO_EXPOSURE_OPT={disableExposureLog:!0};function _shouldLogExposure(Be){return Be==null||Be.disableExposureLog===!1}function _shouldReturnFallback(Be,Le){return Le!=null&&!(0,client_core_1$2._isTypeMatch)(Be,Le)}function _getMappedStaticValue(Be,Le){return Be.value}function _getMappedGateValue(Be,Le,Ye){return Be.getFeatureGate(Le.gate_name,_shouldLogExposure(Ye)?void 0:NO_EXPOSURE_OPT).value?Le.pass_value:Le.fail_value}function _getMappedDynamicConfigValue(Be,Le,Ye,tt){const ft=Be.getDynamicConfig(Le.config_name,_shouldLogExposure(tt)?void 0:NO_EXPOSURE_OPT).get(Le.param_name);return _shouldReturnFallback(ft,Ye)?Ye:ft}function _getMappedExperimentValue(Be,Le,Ye,tt){const ft=Be.getExperiment(Le.experiment_name,_shouldLogExposure(tt)?void 0:NO_EXPOSURE_OPT).get(Le.param_name);return _shouldReturnFallback(ft,Ye)?Ye:ft}function _getMappedLayerValue(Be,Le,Ye,tt){const ft=Be.getLayer(Le.layer_name,_shouldLogExposure(tt)?void 0:NO_EXPOSURE_OPT).get(Le.param_name);return _shouldReturnFallback(ft,Ye)?Ye:ft}function _makeParamStoreGetter(Be,Le,Ye){return(tt,nt)=>{if(Le==null)return nt;const ft=Le[tt];if(ft==null||nt!=null&&(0,client_core_1$2._typeOf)(nt)!==ft.param_type)return nt;switch(ft.ref_type){case"static":return _getMappedStaticValue(ft);case"gate":return _getMappedGateValue(Be,ft,Ye);case"dynamic_config":return _getMappedDynamicConfigValue(Be,ft,nt,Ye);case"experiment":return _getMappedExperimentValue(Be,ft,nt,Ye);case"layer":return _getMappedLayerValue(Be,ft,nt,Ye);default:return nt}}}ParamStoreGetterFactory._makeParamStoreGetter=_makeParamStoreGetter;var StatsigEvaluationsDataAdapter$1={},__awaiter$8=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(StatsigEvaluationsDataAdapter$1,"__esModule",{value:!0}),StatsigEvaluationsDataAdapter$1.StatsigEvaluationsDataAdapter=void 0;const client_core_1$1=src$1,Network_1$1=Network;class StatsigEvaluationsDataAdapter extends client_core_1$1.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(Le,Ye,tt){super.attach(Le,Ye,tt),tt!==null&&tt instanceof Network_1$1.default?this._network=tt:this._network=new Network_1$1.default(Ye??{})}getDataAsync(Le,Ye,tt){return this._getDataAsyncImpl(Le,(0,client_core_1$1._normalizeUser)(Ye,this._options),tt)}prefetchData(Le,Ye){return this._prefetchDataImpl(Le,Ye)}setData(Le){const Ye=(0,client_core_1$1._typedJsonParse)(Le,"has_updates","data");Ye&&"user"in Ye?super.setData(Le,Ye.user):client_core_1$1.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(Le,Ye){super.setData(Le,Ye)}_fetchFromNetwork(Le,Ye,tt,nt){return __awaiter$8(this,void 0,void 0,function*(){var ft;const ht=yield(ft=this._network)===null||ft===void 0?void 0:ft.fetchEvaluations(this._getSdkKey(),Le,tt==null?void 0:tt.priority,Ye,nt);return ht??null})}_getCacheKey(Le){var Ye;const tt=(0,client_core_1$1._getStorageKey)(this._getSdkKey(),Le,(Ye=this._options)===null||Ye===void 0?void 0:Ye.customUserCacheKeyFunc);return`${client_core_1$1.DataAdapterCachePrefix}.${this._cacheSuffix}.${tt}`}_isCachedResultValidFor204(Le,Ye){return Le.fullUserHash!=null&&Le.fullUserHash===(0,client_core_1$1._getFullUserHash)(Ye)}}StatsigEvaluationsDataAdapter$1.StatsigEvaluationsDataAdapter=StatsigEvaluationsDataAdapter;var __awaiter$7=commonjsGlobal&&commonjsGlobal.__awaiter||function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(Et){try{xt(tt.next(Et))}catch(yt){ht(yt)}}function At(Et){try{xt(tt.throw(Et))}catch(yt){ht(yt)}}function xt(Et){Et.done?ft(Et.value):nt(Et.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})};Object.defineProperty(StatsigClient$1,"__esModule",{value:!0});const client_core_1=src$1,EvaluationStore_1=EvaluationStore$1,Network_1=Network,ParamStoreGetterFactory_1=ParamStoreGetterFactory,StatsigEvaluationsDataAdapter_1=StatsigEvaluationsDataAdapter$1;class StatsigClient extends client_core_1.StatsigClientBase{static instance(Le){const Ye=(0,client_core_1._getStatsigGlobal)().instance(Le);return Ye instanceof StatsigClient?Ye:(client_core_1.Log.warn((0,client_core_1._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new StatsigClient(Le??"",{}))}constructor(Le,Ye,tt=null){var nt,ft;client_core_1.SDKType._setClientType(Le,"javascript-client");const ht=new Network_1.default(tt,At=>{this.$emt(At)});super(Le,(nt=tt==null?void 0:tt.dataAdapter)!==null&&nt!==void 0?nt:new StatsigEvaluationsDataAdapter_1.StatsigEvaluationsDataAdapter,ht,tt),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(client_core_1.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(client_core_1.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(client_core_1.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(client_core_1.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(client_core_1.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(client_core_1.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new EvaluationStore_1.default(Le),this._network=ht,this._user=this._configureUser(Ye,tt),this._sdkInstanceID=(0,client_core_1.getUUID)();const gt=(ft=tt==null?void 0:tt.plugins)!==null&&ft!==void 0?ft:[];for(const At of gt)At.bind(this)}initializeSync(Le){var Ye;return this.loadingStatus!=="Uninitialized"?(0,client_core_1.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...(Ye=this._store.getWarnings())!==null&&Ye!==void 0?Ye:[]]):(this._logger.start(),this.updateUserSync(this._user,Le))}initializeAsync(Le){return __awaiter$7(this,void 0,void 0,function*(){return this._initializePromise?this._initializePromise:(this._initializePromise=this._initializeAsyncImpl(Le),this._initializePromise)})}updateUserSync(Le,Ye){const tt=performance.now();try{return this._updateUserSyncImpl(Le,Ye,tt)}catch(nt){const ft=nt instanceof Error?nt:new Error(String(nt));return this._createErrorUpdateDetails(ft,tt)}}_updateUserSyncImpl(Le,Ye,tt){var nt;const ft=[...(nt=this._store.getWarnings())!==null&&nt!==void 0?nt:[]];this._resetForUser(Le);const ht=this.dataAdapter.getDataSync(this._user);ht==null&&ft.push("NoCachedValues"),this._store.setValues(ht,this._user),this._finalizeUpdate(ht);const gt=Ye==null?void 0:Ye.disableBackgroundCacheRefresh;return gt===!0||gt==null&&(ht==null?void 0:ht.source)==="Bootstrap"?(0,client_core_1.createUpdateDetails)(!0,this._store.getSource(),performance.now()-tt,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),ft):(this._runPostUpdate(ht??null,this._user),(0,client_core_1.createUpdateDetails)(!0,this._store.getSource(),performance.now()-tt,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),ft))}updateUserAsync(Le,Ye){return __awaiter$7(this,void 0,void 0,function*(){const tt=performance.now();try{return yield this._updateUserAsyncImpl(Le,Ye)}catch(nt){const ft=nt instanceof Error?nt:new Error(String(nt));return this._createErrorUpdateDetails(ft,tt)}})}_updateUserAsyncImpl(Le,Ye){return __awaiter$7(this,void 0,void 0,function*(){this._resetForUser(Le);const tt=this._user;client_core_1.Diagnostics._markInitOverallStart(this._sdkKey);let nt=this.dataAdapter.getDataSync(tt);if(this._store.setValues(nt,this._user),this._setStatus("Loading",nt),nt=yield this.dataAdapter.getDataAsync(nt,tt,Ye),tt!==this._user)return(0,client_core_1.createUpdateDetails)(!1,this._store.getSource(),-1,new Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let ft=!1;nt!=null&&(client_core_1.Diagnostics._markInitProcessStart(this._sdkKey),ft=this._store.setValues(nt,this._user),client_core_1.Diagnostics._markInitProcessEnd(this._sdkKey,{success:ft})),this._finalizeUpdate(nt),ft||(this._errorBoundary.attachErrorIfNoneExists(client_core_1.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),client_core_1.Diagnostics._markInitOverallEnd(this._sdkKey,ft,this._store.getCurrentSourceDetails());const ht=client_core_1.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,client_core_1.createUpdateDetails)(ft,this._store.getSource(),ht,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){return{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:JSON.parse(JSON.stringify(this._user)),errorBoundary:this._errorBoundary,session:client_core_1.StatsigSession.get(this._sdkKey),stableID:client_core_1.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}checkGate(Le,Ye){return this.getFeatureGate(Le,Ye).value}logEvent(Le,Ye,tt){const nt=typeof Le=="string"?{eventName:Le,value:Ye,metadata:tt}:Le;this.$emt({name:"log_event_called",event:nt}),this._logger.enqueue(Object.assign(Object.assign({},nt),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(Le){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:Le}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{this.loadingStatus==="Loading"&&this._finalizeUpdate(null)})}_initializeAsyncImpl(Le){return __awaiter$7(this,void 0,void 0,function*(){return client_core_1.Storage.isReady()||(yield client_core_1.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,Le)})}_createErrorUpdateDetails(Le,Ye){var tt;return(0,client_core_1.createUpdateDetails)(!1,this._store.getSource(),performance.now()-Ye,Le,null,[...(tt=this._store.getWarnings())!==null&&tt!==void 0?tt:[]])}_finalizeUpdate(Le){this._store.finalize(),this._setStatus("Ready",Le)}_runPostUpdate(Le,Ye){this.dataAdapter.getDataAsync(Le,Ye,{priority:"low"}).catch(tt=>{client_core_1.Log.error("An error occurred after update.",tt)})}_resetForUser(Le){this._logger.reset(),this._store.reset(),this._user=this._configureUser(Le,this._options)}_configureUser(Le,Ye){var tt,nt,ft;const ht=(0,client_core_1._normalizeUser)(Le,Ye),gt=(tt=ht.customIDs)===null||tt===void 0?void 0:tt.stableID;if(gt){const At=(ft=(nt=this.storageProvider).isReadyResolver)===null||ft===void 0?void 0:ft.call(nt);At?At.then(()=>client_core_1.StableID.setOverride(gt,this._sdkKey),()=>client_core_1.StableID.setOverride(gt,this._sdkKey)):client_core_1.StableID.setOverride(gt,this._sdkKey)}return Object.keys(this._possibleFirstTouchMetadata).length>0&&(ht.analyticsOnlyMetadata=Object.assign(Object.assign({},ht.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),ht}_getFeatureGateImpl(Le,Ye){var tt,nt;const{result:ft,details:ht}=this._store.getGate(Le),gt=(0,client_core_1._makeFeatureGate)(Le,ht,ft),At=(nt=(tt=this.overrideAdapter)===null||tt===void 0?void 0:tt.getGateOverride)===null||nt===void 0?void 0:nt.call(tt,gt,this._user,Ye),xt=At??gt;return this._enqueueExposure(Le,(0,client_core_1._createGateExposure)(this._user,xt,this._store.getExposureMapping()),Ye),this.$emt({name:"gate_evaluation",gate:xt}),xt}_getDynamicConfigImpl(Le,Ye){var tt,nt;const{result:ft,details:ht}=this._store.getConfig(Le),gt=(0,client_core_1._makeDynamicConfig)(Le,ht,ft),At=(nt=(tt=this.overrideAdapter)===null||tt===void 0?void 0:tt.getDynamicConfigOverride)===null||nt===void 0?void 0:nt.call(tt,gt,this._user,Ye),xt=At??gt;return this._enqueueExposure(Le,(0,client_core_1._createConfigExposure)(this._user,xt,this._store.getExposureMapping()),Ye),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:xt}),xt}_getExperimentImpl(Le,Ye){var tt,nt,ft,ht;const{result:gt,details:At}=this._store.getConfig(Le),xt=(0,client_core_1._makeExperiment)(Le,At,gt);xt.__evaluation!=null&&(xt.__evaluation.secondary_exposures=(0,client_core_1._mapExposures)((nt=(tt=xt.__evaluation)===null||tt===void 0?void 0:tt.secondary_exposures)!==null&&nt!==void 0?nt:[],this._store.getExposureMapping()));const Et=(ht=(ft=this.overrideAdapter)===null||ft===void 0?void 0:ft.getExperimentOverride)===null||ht===void 0?void 0:ht.call(ft,xt,this._user,Ye),yt=Et??xt;return this._enqueueExposure(Le,(0,client_core_1._createConfigExposure)(this._user,yt,this._store.getExposureMapping()),Ye),this.$emt({name:"experiment_evaluation",experiment:yt}),yt}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(Le,Ye){var tt,nt,ft;const{result:ht,details:gt}=this._store.getLayer(Le),At=(0,client_core_1._makeLayer)(Le,gt,ht),xt=(nt=(tt=this.overrideAdapter)===null||tt===void 0?void 0:tt.getLayerOverride)===null||nt===void 0?void 0:nt.call(tt,At,this._user,Ye);Ye!=null&&Ye.disableExposureLog&&this._logger.incrementNonExposureCount(Le);const Et=(0,client_core_1._mergeOverride)(At,xt,(ft=xt==null?void 0:xt.__value)!==null&&ft!==void 0?ft:At.__value,yt=>{Ye!=null&&Ye.disableExposureLog||this._enqueueExposure(Le,(0,client_core_1._createLayerParameterExposure)(this._user,Et,yt,this._store.getExposureMapping()),Ye)});return this.$emt({name:"layer_evaluation",layer:Et}),Et}_getParameterStoreImpl(Le,Ye){var tt,nt;const{result:ft,details:ht}=this._store.getParamStore(Le);this._logger.incrementNonExposureCount(Le);const gt={name:Le,details:ht,__configuration:ft,get:(0,ParamStoreGetterFactory_1._makeParamStoreGetter)(this,ft,Ye)},At=(nt=(tt=this.overrideAdapter)===null||tt===void 0?void 0:tt.getParamStoreOverride)===null||nt===void 0?void 0:nt.call(tt,gt,Ye);return At!=null&&(gt.__configuration=At.config,gt.details=At.details,gt.get=(0,ParamStoreGetterFactory_1._makeParamStoreGetter)(this,At.config,Ye)),gt}}StatsigClient$1.default=StatsigClient,function(Be){var Le=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,gt,At,xt){xt===void 0&&(xt=At);var Et=Object.getOwnPropertyDescriptor(gt,At);(!Et||("get"in Et?!gt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return gt[At]}}),Object.defineProperty(ht,xt,Et)}:function(ht,gt,At,xt){xt===void 0&&(xt=At),ht[xt]=gt[At]}),Ye=commonjsGlobal&&commonjsGlobal.__exportStar||function(ht,gt){for(var At in ht)At!=="default"&&!Object.prototype.hasOwnProperty.call(gt,At)&&Le(gt,ht,At)};Object.defineProperty(Be,"__esModule",{value:!0}),Be.StatsigClient=void 0;const tt=src$1,nt=StatsigClient$1;Be.StatsigClient=nt.default,Ye(src$1,Be);const ft=Object.assign((0,tt._getStatsigGlobal)(),{StatsigClient:nt.default});Be.default=ft}(src$2);const FEATURE_FLAGS=["id_text_barcode_readability","selfie_local_lenses_check_web","id_model_hebrew_back_id","id_face_readability","new_id_capture_ux_least_risky_clients","id_test_aa","id_iou_check","iad_checks","iad_c_checks","new_fingerprint","mp_test_hashed_id"],GLOBAL_FLAGS=["new_fingerprint"],ID_MODULE_FLAGS=["id_face_readability","id_test_aa","iad_c_checks","mp_test_hashed_id","id_model_hebrew_back_id","id_iou_check","iad_checks","new_id_capture_ux_least_risky_clients","id_text_barcode_readability"],SELFIE_MODULE_FLAGS=["selfie_local_lenses_check_web"];function getStatsigEnvironment(Be){return isStageK8sEnv(Be)?{tier:"development"}:isStageEnv(Be)||isDemoEnv(Be)?{tier:"staging"}:isSaasEnv(Be)?{tier:"production"}:{tier:"development"}}const clientApiKey="client-GBTzsiJ99rvyZQdNXDFkftx3ZoMF1TED2rsB3m3IUqc",featureFlagsValues={id_text_barcode_readability:!1,selfie_local_lenses_check_web:!1,id_model_hebrew_back_id:!1,id_face_readability:!1,new_id_capture_ux_least_risky_clients:!1,id_test_aa:!1,iad_checks:!1,iad_c_checks:!1,id_iou_check:!0,new_fingerprint:!1,mp_test_hashed_id:!1},clientExperimentIds={new_id_capture_ux_least_risky_clients:"experimentV2"};let initPromise=null;const initialize=async({flowId:Be,apiKey:Le,sessionIdentifier:Ye,apiURL:tt,clientExperimentId:nt})=>{if(initPromise)return initPromise;initPromise=(async()=>{var gt;const ft={customIDs:{client_api_key:Le,hashed_onboarding_id:Ye,flow_id:Be},custom:{landing_page:(gt=window==null?void 0:window.location)==null?void 0:gt.href}},ht=new src$2.StatsigClient(clientApiKey,ft,{environment:getStatsigEnvironment(tt)});await ht.initializeAsync(),FEATURE_FLAGS.forEach(At=>{if(nt&&clientExperimentIds[At]===nt){featureFlagsValues[At]=!0;return}featureFlagsValues[At]=ht.checkGate(At)})})(),await initPromise},getFeatureFlag=Be=>featureFlagsValues[Be]??!1,getModuleFeatureFlags=async Be=>{const Le={};GLOBAL_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]});const Ye=Be.toLowerCase();return Ye.includes("id")||Ye==="government-validation"?ID_MODULE_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]}):(Ye.includes("selfie")||Ye==="face")&&SELFIE_MODULE_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]}),Le};function IdCaptureParamsConfigurator(Be,Le,Ye,tt){Object.assign(Be,{areaDown:25e3,areaUp:55e3,areaIOSPassportUp:3e4,areaIOSPassportDown:2e4,widthIOSUp:160,widthIOSDown:85,widthDown:tt?110:135,widthUp:205,framesAggregationInterval:tt?3e3:2e3,minFaceIdQualityScore:.62})}function getSelfieFaceDetectionPipelineParams(){return{frameMinX:0,frameMinY:0,frameMaxX:1,frameMaxY:1,brightnessThreshold:50,blurrinessThreshold:50,tiltRotationAngleThreshold:15,minMagicCropSize:200,headwearThreshold:.86,lensesThreshold:.95,closedEyesThreshold:.9,maskThreshold:.85,minFaceQualityScore:.63,isOcclusionCheckEnabled:!1,faceOcclusionThreshold:.3}}const getProfiles=()=>[new PipelineProfile(WasmPipelineType.IdBlurGlarePipeline,PipelineProfileName.IdCapture_2_01,DetectionType.IDCapture,["id_capture_2_01_fp16.ortmodelv2","id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIdFaceQualityCheckEnabled:getFeatureFlag("id_face_readability"),isIouCheckEnabled:getFeatureFlag("id_iou_check")},IdCaptureParamsConfigurator,"Current Prod - Id Capture Profile with model https://www.notion.so/ID-cropping-web-2-01-d011d878c6f4406394609cbfbf03c259?pvs=4"),new PipelineProfile(WasmPipelineType.IdBlurGlarePipeline,PipelineProfileName.IdCapture_2_02,DetectionType.IDCapture,["id_capture_2_02_fp16.ortmodelv2","id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIdFaceQualityCheckEnabled:getFeatureFlag("id_face_readability"),isIouCheckEnabled:getFeatureFlag("id_iou_check")},IdCaptureParamsConfigurator,"https://www.notion.so/ML-Update-ID-processing-model-to-accept-more-back-ID-types-18c4c3caef49801e95b4fd6bf9b92883?pvs=4"),new PipelineProfile(WasmPipelineType.IdBarcodeAndTextQualityPipeline,PipelineProfileName.IdCapture_3_02,DetectionType.IDCapture,["id_capture_3_02_fp16.ortmodelv2","id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV3x,isIdFaceQualityCheckEnabled:!1,isIouCheckEnabled:getFeatureFlag("id_iou_check")},IdCaptureParamsConfigurator,"Pipeline with text and barcode quality: https://www.notion.so/Web-Use-Text-Barcode-model-2nd-iteration-1bc4c3caef49805aa9e6d308db9fc6dd?pvs=4"),new PipelineProfile(WasmPipelineType.IdVideoSelfiePipeline,PipelineProfileName.IdVideoSelfie_2_01,DetectionType.IdVideoSelfie,["id_capture_2_01_fp16.ortmodelv2","id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIdFaceQualityCheckEnabled:!1,isIouCheckEnabled:!0},IdCaptureParamsConfigurator,"Current Prod - Id Videoselfie profile with model https://www.notion.so/ID-cropping-web-2-01-d011d878c6f4406394609cbfbf03c259?pvs=4"),new PipelineProfile(WasmPipelineType.SelfieWithAggregationMetrics,PipelineProfileName.SelfieWithAggregationMetrics,DetectionType.Selfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_1_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"Selfie face detection profile with aggregation metrics"),new PipelineProfile(WasmPipelineType.SelfieWithQualityMetrics,PipelineProfileName.SelfieWithQualityMetrics,DetectionType.Selfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_1_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"Current Prod - Selfie face detection profile with quality metrics"),new PipelineProfile(WasmPipelineType.SelfieWithAggregationMetrics,PipelineProfileName.SelfieVideoSelfie,DetectionType.SelfieVideoSelfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_1_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"VideoSelfie face detection profile")];function getProfile(Be){const Le=getProfiles().find(Ye=>Ye.name===Be);if(!Le)throw new Error(`Profile not found for type: ${Be}`);return Le}const wasmVersion="v2.12.43";function generateBundle(){const Be=getFeatureFlag("id_text_barcode_readability")?PipelineProfileName.IdCapture_3_02:getFeatureFlag("id_model_hebrew_back_id")?PipelineProfileName.IdCapture_2_02:PipelineProfileName.IdCapture_2_01,Le=PipelineProfileName.SelfieWithQualityMetrics,Ye=PipelineProfileName.SelfieVideoSelfie,tt=PipelineProfileName.IdVideoSelfie_2_01;return[Be,tt,Le,Ye]}function getInitializationParams(){const Le=generateBundle(),Ye="https://d3vv997wtl2myz.cloudfront.net/webcamera/onnx-backend-wasm",tt=`${Ye}/${wasmVersion}/webLib.wasm`,nt=`${Ye}/${wasmVersion}/webLibSimd.wasm`,ft=`${Ye}/${wasmVersion}/webLib.js`,ht=`${Ye}/${wasmVersion}/versions.json`;let gt=new Map,At=new Map;for(const xt of Le){const Et=getProfile(xt);if(!Et)throw new Error(`Profile not found: ${xt}`);const yt=Et.modelNames;let Ct=[];for(const kt of yt)Ct.push(`${Ye}/${wasmVersion}/models/${kt}`);gt.set(Et.pipelineType,Ct),At.set(Et.detectionType,Et)}return{wasmModulePath:tt,wasmSimdModulePath:nt,glueCodePath:ft,versionsFilePath:ht,pipelineModels:gt,enableSIMD:!0,profiles:At,wasmVersion}}window.wasmArrayBuffer=null;class MlWasmJSApi{constructor(){this.versionsFile=null,this.modelsBuffers=null,this.inputImageBuffer=null,this.wasmModule=null,this.pipelineApiUtilities=null,this.utilityApi=null,this.idCaptureWasmApi=null,this.faceDetectionWasmApi=null,this.imageWidth_=null,this.imageHeight_=null,this.pipelines_=null,this.isInitialized_=!1,this.inspectorOpened_=!1,this.wasmCallMutex=new Mutex,this.Module=null,this.loadModule=async Le=>{this.Module=(await import(Le)).Module}}async initialize(Le,Ye,tt,nt,ft,ht){await this.freeResources(),this.pipelines_=ht,this.versionsFile=ft,await this.loadModule(tt);const gt=await this.loadWasm(nt,Le,Ye);return this.pipelineApiUtilities=new this.wasmModule.PipelineApiUtilities,this.utilityApi=new this.wasmModule.UtilityApi,this.idCaptureWasmApi=new this.wasmModule.IdCaptureApi,this.faceDetectionWasmApi=new this.wasmModule.FaceDetectionApi,this.isInitialized_=!0,gt}static getInstance(){return MlWasmJSApi.instance||(MlWasmJSApi.instance=new MlWasmJSApi),MlWasmJSApi.instance}isInitialized(){return this.pipelineApiUtilities!=null&&this.utilityApi!=null&&this.idCaptureWasmApi!=null&&this.faceDetectionWasmApi!=null&&this.isInitialized_}async allocateImageBuffers(Le,Ye){this.checkWasmInitialization("Unable to allocate image buffers, cpp API hasn't been initialized"),!(Le&&Ye&&Le==this.imageWidth_&&Ye==this.imageHeight_&&this.inputImageBuffer&&Le*Ye*4===this.inputImageBuffer.length)&&(this.imageWidth_=Le,this.imageHeight_=Ye,this.inputImageBuffer=this.pipelineApiUtilities.allocateInputImageBuffer(Le,Ye,4))}async handleDetectionCallAndUpdateState(Le){this.checkWasmInitialization("Unable to update pipeline state, cpp API hasn't been initialized"),this.pipelineApiUtilities.handleDetectionCallAndUpdateState(this.pipelineTypeToWasmEnum(Le))}encryptImage(Le){return this.checkWasmInitialization("Unable to encrypt the image, cpp API hasn't been initialized"),this.utilityApi.encryptImage(Le)}isVirtualCamera(Le){if(this.checkWasmInitialization("Unable to check if the camera is virtual, cpp API hasn't been initialized"),Le)return this.utilityApi.isVirtualCamera(Le)}estimatePerformance(){return this.checkWasmInitialization("Unable to estimate performance, cpp API hasn't been initialized"),this.utilityApi.estimatePerformance()}async analyzeFrame(Le){this.checkWasmInitialization("Unable to analyze the frame, cpp API hasn't been initialized"),await this.allocateImageBuffers(Le.width,Le.height),this.inputImageBuffer.set(Le.data),this.utilityApi.analyzeFrame()}async freeResources(){this.versionsFile=null,this.modelsBuffers=null,this.inputImageBuffer=null,this.imageWidth_=null,this.imageHeight_=null,this.pipelines_=null,window.wasmArrayBuffer=null,this.pipelineApiUtilities&&typeof this.pipelineApiUtilities.delete=="function"&&(this.pipelineApiUtilities.delete(),this.pipelineApiUtilities=null),this.utilityApi&&typeof this.utilityApi.delete=="function"&&(this.utilityApi.delete(),this.utilityApi=null),this.idCaptureWasmApi&&typeof this.idCaptureWasmApi.delete=="function"&&(this.idCaptureWasmApi.delete(),this.idCaptureWasmApi=null),this.faceDetectionWasmApi&&typeof this.faceDetectionWasmApi.delete=="function"&&(this.faceDetectionWasmApi.delete(),this.faceDetectionWasmApi=null),this.wasmModule=null,this.isInitialized_=!1}resetPipeline(Le){this.checkWasmInitialization("Unable to reset pipeline, cpp API hasn't been initialized"),this.pipelineApiUtilities.resetPipeline(this.pipelineTypeToWasmEnum(Le))}resetAllPipelines(){this.checkWasmInitialization("Unable to reset pipelines, cpp API hasn't been initialized");for(const[Le,Ye]of this.pipelines_)this.resetPipeline(Le)}resetOther(){this.checkWasmInitialization("Unable to reset other states, cpp API hasn't been initialized"),this.utilityApi.resetOther()}reset(){this.resetAllPipelines(),this.resetOther()}async process(Le,Ye){if(this.checkWasmInitialization("Unable to process the image, cpp API hasn't been initialized"),this.inputImageBuffer===null)throw new Error("Unable to process the image, buffers haven't been allocated!");switch(this.inputImageBuffer.set(Le.data),Ye){case WasmPipelineType.IdBlurGlarePipeline:case WasmPipelineType.IdBarcodeAndTextQualityPipeline:return this.idCaptureWasmApi.runIdCapturePipeline(this.pipelineTypeToWasmEnum(Ye));case WasmPipelineType.IdFaceDetectionPipeline:return this.faceDetectionWasmApi.runIdFaceDetectionPipeline();case WasmPipelineType.IdVideoSelfiePipeline:return this.idCaptureWasmApi.runIdVideoSelfiePipeline();case WasmPipelineType.SelfieWithAggregationMetrics:case WasmPipelineType.SelfieWithQualityMetrics:return this.faceDetectionWasmApi.runSelfieFaceDetectionPipeline(this.pipelineTypeToWasmEnum(Ye));default:throw new Error("Unknown pipeline type")}}async runIdCapture(Le){if(this.checkWasmInitialization("Unable to run Id Capture, cpp API hasn't been initialized"),this.inputImageBuffer===null)throw new Error("Unable to process the image, buffers haven't been allocated!");return this.inputImageBuffer.set(Le.data),this.idCaptureWasmApi.runIdCapture()}async runSelfieCapture(Le){if(this.checkWasmInitialization("Unable to run Selfie Capture, cpp API hasn't been initialized"),this.inputImageBuffer===null)throw new Error("Unable to process the image, buffers haven't been allocated!");return this.inputImageBuffer.set(Le.data),this.faceDetectionWasmApi.runSelfieCapture()}async setFacePositionConstraints(Le,Ye,tt,nt,ft){this.checkWasmInitialization("Unable to set face position constraints, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFacePositionConstraints(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft)}async setFaceDetectionThresholds(Le,Ye,tt,nt,ft,ht,gt,At){this.checkWasmInitialization("Unable to set face detection thresholds, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFaceDetectionThresholds(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At)}async setFaceAttributesThresholds(Le,Ye,tt,nt,ft){this.checkWasmInitialization("Unable to set face attributes thresholds, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFaceAttributesThresholds(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft)}async setFaceChecksEnabled(Le,Ye,tt,nt,ft,ht){this.checkWasmInitialization("Unable to set face checks enabled flags, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFaceChecksEnabled(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht)}async setFaceDetectionMode(Le,Ye){this.checkWasmInitialization("Unable to set face detection mode, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFaceDetectionMode(this.pipelineTypeToWasmEnum(Le),Ye)}async setFaceDetectionCallbacks(Le,Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt,vt,bt,It,wt,Rt,Tt){this.checkWasmInitialization("Unable to set face detection callbacks, cpp API hasn't been initialized"),this.faceDetectionWasmApi.setFaceDetectionCallbacks(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt,vt,bt,It,wt,Rt,Tt)}async setIdCaptureThresholds(Le,Ye,tt,nt,ft,ht,gt,At,xt,Et,yt){this.checkWasmInitialization("Unable to set thresholds, cpp API hasn't been initialized"),this.idCaptureWasmApi.setIdCaptureThresholds(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At,xt,Et,yt)}async setIdCaptureCallbacks(Le,Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt,vt){this.checkWasmInitialization("Unable to set callbacks, cpp API hasn't been initialized"),this.idCaptureWasmApi.setIdCaptureCallbacks(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt,vt)}async setIdCaptureGeometryParams(Le,Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt){this.checkWasmInitialization("Unable to set geometry params, cpp API hasn't been initialized"),this.idCaptureWasmApi.setIdCaptureGeometryParams(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At,xt,Et,yt,Ct,kt)}async setIdCaptureConfigParams(Le,Ye,tt,nt,ft,ht,gt,At){this.checkWasmInitialization("Unable to set config params, cpp API hasn't been initialized"),this.idCaptureWasmApi.setIdCaptureConfigParams(this.pipelineTypeToWasmEnum(Le),Ye,tt,nt,ft,ht,gt,At)}setIdCaptureModelType(Le,Ye){this.checkWasmInitialization("Unable to set model type, cpp API hasn't been initialized"),this.idCaptureWasmApi.setIdCaptureModelType(this.pipelineTypeToWasmEnum(Le),this.IdCaptureModelTypeToWasmEnum(Ye))}IdPerspectiveTransform(Le,Ye){return this.checkWasmInitialization("Unable to perform perspective transform, cpp API hasn't been initialized"),this.idCaptureWasmApi.IdPerspectiveTransform(Le,Ye)}async getVersions(){const Ye=await(await fetch(this.versionsFile)).text();return JSON.parse(Ye)}async loadWasm(Le,Ye,tt){const nt=Le?tt:Ye;try{window.wasmArrayBuffer=await fetch(nt).then(ft=>ft.arrayBuffer()).then(ft=>new Uint8Array(ft)),this.wasmModule=await this.Module()}catch(ft){if(console.log(ft,Le,"useSmd"),Le)return await this.loadWasm(!1,Ye,tt);throw ft}return Le}async loadModels(){var nt;this.checkWasmInitialization("Unable load the models, cpp API hasn't been initialized");let Le=new this.wasmModule.PipelineTypeToIntMap,Ye=new Map,tt=new Map;for(let[ft,ht]of this.pipelines_){let gt=this.pipelineTypeToWasmEnum(ft),At=[],xt=new this.wasmModule.VectorInt;for(let Et of ht){if(!tt.has(Et)){let Ct=await fetch(Et).then(kt=>kt.arrayBuffer()).then(kt=>new Uint8Array(kt));tt.set(Et,Ct)}let yt=tt.get(Et);xt.push_back(yt.byteLength),At.push(yt)}Le.set(gt,xt),Ye.set(gt,At)}this.modelsBuffers=this.pipelineApiUtilities.allocateModelsBuffers(Le);for(let[ft,ht]of Ye){let gt=(nt=this.modelsBuffers)==null?void 0:nt.get(ft);for(let At=0;At<gt.size();At++){let xt=gt==null?void 0:gt.get(At);if(xt)xt.set(ht[At]);else throw new Error("Unable to get model buffer from shared memory!")}}}async initializePipelines(){this.checkWasmInitialization("Unable to initialize pipelines, cpp API hasn't been initialized"),this.modelsBuffers||await this.loadModels(),this.pipelineApiUtilities.initializePipelines()}async setProductionMode(Le){this.checkWasmInitialization("Unable to set production mode, cpp API hasn't been initialized"),this.utilityApi.setProductionMode(Le)}getPipelineState(){return this.checkWasmInitialization("Unable to get pipeline state, cpp API hasn't been initialized"),this.pipelineApiUtilities.getPipelineState()}getCurrentPipeline(){return this.checkWasmInitialization("Unable to get current pipeline, cpp API hasn't been initialized"),this.pipelineTypeFromWasmEnum(this.pipelineApiUtilities.getCurrentPipeline())}setSdkVersion(Le){this.checkWasmInitialization("Unable to set sdk version, cpp API hasn't been initialized"),this.utilityApi.setSdkVersion(Le)}setSdkPlatform(Le){this.checkWasmInitialization("Unable to set device type, cpp API hasn't been initialized"),this.utilityApi.setSdkPlatform(Le)}setDeviceInfo(Le,Ye=!0){this.checkWasmInitialization("Unable to set device info, cpp API hasn't been initialized"),this.utilityApi.setDeviceInfo(Le,Ye)}setBrowserInfo(Le,Ye=!0){this.checkWasmInitialization("Unable to set browser info, cpp API hasn't been initialized"),this.utilityApi.setBrowserInfo(Le,Ye)}setCameraInfo(Le,Ye=!0){this.checkWasmInitialization("Unable to set camera info, cpp API hasn't been initialized"),this.utilityApi.setCameraInfo(Le,Ye)}setZc(Le){this.checkWasmInitialization("Unable to set zc, cpp API hasn't been initialized"),this.utilityApi.setZc(Le)}setMotionStatus(Le){this.checkWasmInitialization("Unable to set motion status, cpp API hasn't been initialized"),this.utilityApi.setMotionStatus(Le)}setMetadataField(Le,Ye){this.checkWasmInitialization("Unable to set metadata field, cpp API hasn't been initialized"),this.utilityApi.setMetadataField(Le,Ye)}setInspectorOpened(Le){this.inspectorOpened_=Le}setBackgroundMode(Le){this.checkWasmInitialization("Unable to set background mode, cpp API hasn't been initialized"),this.utilityApi.setBackgroundMode(Le)}getCheck(){return this.checkWasmInitialization("Unable to get check, cpp API hasn't been initialized"),this.utilityApi.getCheck()}getMetadata(){return this.checkWasmInitialization("Unable to get metadata, cpp API hasn't been initialized"),this.utilityApi.setInspectorOpened(this.inspectorOpened_),this.utilityApi.getMetadata()}async prc(){return this.checkWasmInitialization("Unable to prc, cpp API hasn't been initialized"),await this.wasmCallWrapper(this.utilityApi.prc.bind(this.utilityApi),[])}async poc(Le){this.checkWasmInitialization("Unable to poc, cpp API hasn't been initialized"),await this.wasmCallWrapper(this.utilityApi.poc.bind(this.utilityApi),[Le])}pipelineTypeToWasmEnum(Le){switch(Le){case WasmPipelineType.IdBlurGlarePipeline:return this.wasmModule.PipelineType.IdBlurGlarePipeline;case WasmPipelineType.IdBarcodeAndTextQualityPipeline:return this.wasmModule.PipelineType.IdBarcodeAndTextQualityPipeline;case WasmPipelineType.IdFaceDetectionPipeline:return this.wasmModule.PipelineType.IdFaceDetectionPipeline;case WasmPipelineType.IdVideoSelfiePipeline:return this.wasmModule.PipelineType.IdVideoSelfiePipeline;case WasmPipelineType.SelfieWithAggregationMetrics:return this.wasmModule.PipelineType.SelfieWithAggregationMetrics;case WasmPipelineType.SelfieWithQualityMetrics:return this.wasmModule.PipelineType.SelfieWithQualityMetrics;default:throw new Error("Unknown pipeline type")}}pipelineTypeFromWasmEnum(Le){switch(Le){case this.wasmModule.PipelineType.IdBlurGlarePipeline:return WasmPipelineType.IdBlurGlarePipeline;case this.wasmModule.IdBarcodeAndTextQualityPipeline:return WasmPipelineType.IdBarcodeAndTextQualityPipeline;case this.wasmModule.PipelineType.IdFaceDetectionPipeline:return WasmPipelineType.IdFaceDetectionPipeline;case this.wasmModule.PipelineType.IdVideoSelfiePipeline:return WasmPipelineType.IdVideoSelfiePipeline;case this.wasmModule.PipelineType.SelfieWithAggregationMetrics:return WasmPipelineType.SelfieWithAggregationMetrics;case this.wasmModule.PipelineType.SelfieWithQualityMetrics:return WasmPipelineType.SelfieWithQualityMetrics;default:throw new Error("Unknown pipeline type")}}IdCaptureModelTypeToWasmEnum(Le){switch(Le){case IdCaptureModelType.IdCaptureV1x:return this.wasmModule.IdCaptureModelType.IdCaptureV1x;case IdCaptureModelType.IdCaptureV2x:return this.wasmModule.IdCaptureModelType.IdCaptureV2x;case IdCaptureModelType.IdCaptureV3x:return this.wasmModule.IdCaptureModelType.IdCaptureV3x;default:throw new Error("Unknown Id Capture model type")}}checkWasmInitialization(Le){if(!this.isInitialized())throw new Error(Le)}async wasmCallWrapper(Le,Ye=[]){return await this.wasmCallMutex.withLock(async(...tt)=>{let nt=!1;try{for(;;){if(nt=Le(...tt),nt)return;await new Promise(ft=>setTimeout(ft,0))}}catch(ft){console.log("Error in wasmCallWrapper:",ft)}},...Ye)}}const MlWasmJSApi$1=MlWasmJSApi.getInstance(),version$4="1.85.0-20251215122158.0";function e$2(Be,Le){return function(Ye,tt){return Object.prototype.hasOwnProperty.call(Ye,tt)}(Be,Le)?Be[Le]:void 0}function t$2(Be,Le,Ye,tt){const nt=document,ft="securitypolicyviolation";let ht;const gt=xt=>{const Et=new URL(Be,location.href),{blockedURI:yt}=xt;yt!==Et.href&&yt!==Et.protocol.slice(0,-1)&&yt!==Et.origin||(ht=xt,At())};nt.addEventListener(ft,gt);const At=()=>nt.removeEventListener(ft,gt);return Promise.resolve().then(Le).then(xt=>(At(),xt),xt=>new Promise(Et=>{const yt=new MessageChannel;yt.port1.onmessage=()=>Et(),yt.port2.postMessage(null)}).then(()=>{if(At(),ht)return Ye(ht);throw xt}))}function n$2(Be){let Le="";for(let Ye=0;Ye<Be.length;++Ye)if(Ye>0){const tt=Be[Ye].toLowerCase();tt!==Be[Ye]?Le+=` ${tt}`:Le+=Be[Ye]}else Le+=Be[Ye].toUpperCase();return Le}const r$4={default:"endpoint"},o$1={default:"tlsEndpoint"},i$5="Client timeout",R$2="Network connection error",s$3="Network request aborted",a$3="Response cannot be parsed",c$3="Blocked by CSP",E$1="The endpoint parameter is not a valid URL",l$1="Handle on demand agent data error",u$1=n$2("WrongRegion"),d$1=n$2("SubscriptionNotActive"),_$2=n$2("UnsupportedVersion"),O$1=n$2("InstallationMethodRestricted"),p$1=n$2("HostnameRestricted"),I$1=n$2("IntegrationFailed"),f$2=n$2("NetworkRestricted"),N$1=n$2("InvalidProxyIntegrationSecret"),T$1=n$2("InvalidProxyIntegrationHeaders"),h$e=n$2("ProxyIntegrationSecretEnvironmentMismatch"),v$d="API key required",m$2="API key not found",A$1="API key expired",w$e="Request cannot be parsed",P$1="Request failed",D$1="Request failed to process",S$1="Too many requests, rate limit exceeded",y="Not available for this origin",g$1="Not available with restricted header",L$1=v$d,C$1=m$2,U$1=A$1;var b$2="3.12.3";const M$1="Failed to load the JS script of the agent",K="9319";function V(Be,Le){const Ye=[],[tt,nt]=function(gt){const At=function(yt){const Ct=[...yt];return{current:()=>Ct[0],postpone(){const kt=Ct.shift();kt!==void 0&&Ct.push(kt)},exclude(){Ct.shift()}}}(gt),xt=function(yt,Ct){let kt=0;return()=>Math.random()*Math.min(Ct,yt*Math.pow(2,kt++))}(100,3e3),Et=new Set;return[At.current(),(yt,Ct)=>{let kt;const vt=Ct instanceof Error?Ct.message:"";if(vt===c$3||vt===E$1)At.exclude(),kt=0;else if(vt===K)At.exclude();else if(vt===M$1){const It=Date.now()-yt.getTime()<50,wt=At.current();wt&&It&&!Et.has(wt)&&(Et.add(wt),kt=0),At.postpone()}else At.postpone();const bt=At.current();return bt===void 0?void 0:[bt,kt??yt.getTime()+xt()-Date.now()]}]}(Be);let ft;if(tt===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));const ht=gt=>{const At=new Date,xt=yt=>Ye.push({url:gt,startedAt:At,finishedAt:new Date,error:yt}),Et=Le(gt);return Et.then(()=>xt(),xt),Et.catch(yt=>{if(ft!=null||(ft=yt),Ye.length>=5)throw ft;const Ct=nt(At,yt);if(!Ct)throw ft;const[kt,vt]=Ct;return(bt=vt,new Promise(It=>setTimeout(It,bt))).then(()=>ht(kt));var bt})};return ht(tt).then(gt=>[gt,Ye])}const k$1="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",G=k$1;function B$1(Be){var Le,Ye;const{picked:tt,rest:nt}=function(Et,yt){const Ct={},kt={};for(const[vt,bt]of Object.entries(Et))yt.includes(vt)?Ct[vt]=bt:kt[vt]=bt;return{picked:Ct,rest:kt}}(Be,["scriptUrlPattern","token","apiKey"]),ft=tt.token,ht=(Le=tt.apiKey)!==null&&Le!==void 0?Le:ft,gt=(Ye=e$2(Be,"scriptUrlPattern"))!==null&&Ye!==void 0?Ye:k$1,[At,xt]=function(){const Et=[],yt=()=>{Et.push({time:new Date,state:document.visibilityState})},Ct=function(kt,vt,bt,It){return kt.addEventListener(vt,bt,It),()=>kt.removeEventListener(vt,bt,It)}(document,"visibilitychange",yt);return yt(),[Et,Ct]}();return Promise.resolve().then(()=>{if(!ht||typeof ht!="string")throw new Error(v$d);const Et=function(yt,Ct){return(Array.isArray(yt)?yt:[yt]).map(kt=>function(vt,bt){const It=encodeURIComponent;return vt.replace(/<[^<>]+>/g,wt=>wt==="<version>"?"3":wt==="<apiKey>"?It(bt):wt==="<loaderVersion>"?It(b$2):wt)}(String(kt),Ct))}(gt,ht);return V(Et,F$1)}).catch(Et=>{throw xt(),function(yt){return yt instanceof Error&&yt.message===K?new Error(M$1):yt}(Et)}).then(([Et,yt])=>(xt(),Et.load({...nt,ldi:{attempts:yt,visibilityStates:At}})))}function F$1(Be){return t$2(Be,()=>function(Le){return new Promise((Ye,tt)=>{if(function(gt){if(URL.prototype)try{return new URL(gt,location.href),!1}catch(At){if(At instanceof Error&&At.name==="TypeError")return!0;throw At}}(Le))throw new Error(E$1);const nt=document.createElement("script"),ft=()=>{var gt;return(gt=nt.parentNode)===null||gt===void 0?void 0:gt.removeChild(nt)},ht=document.head||document.getElementsByTagName("head")[0];nt.onload=()=>{ft(),Ye()},nt.onerror=()=>{ft(),tt(new Error(M$1))},nt.async=!0,nt.src=Le,ht.appendChild(nt)})}(Be),()=>{throw new Error(c$3)}).then(x$1)}function x$1(){const Be=window,Le="__fpjs_p_l_b",Ye=Be[Le];if(function(tt,nt){var ft;const ht=(ft=Object.getOwnPropertyDescriptor)===null||ft===void 0?void 0:ft.call(Object,tt,nt);ht!=null&&ht.configurable?delete tt[nt]:ht&&!ht.writable||(tt[nt]=void 0)}(Be,Le),typeof(Ye==null?void 0:Ye.load)!="function")throw new Error(K);return Ye}var H={load:B$1,defaultScriptUrlPattern:G,ERROR_SCRIPT_LOAD_FAIL:M$1,ERROR_API_KEY_EXPIRED:A$1,ERROR_API_KEY_INVALID:m$2,ERROR_API_KEY_MISSING:v$d,ERROR_BAD_REQUEST_FORMAT:w$e,ERROR_BAD_RESPONSE_FORMAT:a$3,ERROR_CLIENT_TIMEOUT:i$5,ERROR_CSP_BLOCK:c$3,ERROR_FORBIDDEN_ENDPOINT:p$1,ERROR_FORBIDDEN_HEADER:g$1,ERROR_FORBIDDEN_ORIGIN:y,ERROR_GENERAL_SERVER_FAILURE:P$1,ERROR_HANDLE_AGENT_DATA:l$1,ERROR_INSTALLATION_METHOD_RESTRICTED:O$1,ERROR_INTEGRATION_FAILURE:I$1,ERROR_INVALID_ENDPOINT:E$1,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:T$1,ERROR_INVALID_PROXY_INTEGRATION_SECRET:N$1,ERROR_NETWORK_ABORT:s$3,ERROR_NETWORK_CONNECTION:R$2,ERROR_NETWORK_RESTRICTED:f$2,ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:h$e,ERROR_RATE_LIMIT:S$1,ERROR_SERVER_TIMEOUT:D$1,ERROR_SUBSCRIPTION_NOT_ACTIVE:d$1,ERROR_TOKEN_EXPIRED:U$1,ERROR_TOKEN_INVALID:C$1,ERROR_TOKEN_MISSING:L$1,ERROR_UNSUPPORTED_VERSION:_$2,ERROR_WRONG_REGION:u$1,defaultEndpoint:r$4,defaultTlsEndpoint:o$1};function e$1(Be,Le,Ye,tt){return new(Ye||(Ye=Promise))(function(nt,ft){function ht(xt){try{At(tt.next(xt))}catch(Et){ft(Et)}}function gt(xt){try{At(tt.throw(xt))}catch(Et){ft(Et)}}function At(xt){var Et;xt.done?nt(xt.value):(Et=xt.value,Et instanceof Ye?Et:new Ye(function(yt){yt(Et)})).then(ht,gt)}At((tt=tt.apply(Be,[])).next())})}function n$1(Be,Le){var Ye,tt,nt,ft,ht={label:0,sent:function(){if(1&nt[0])throw nt[1];return nt[1]},trys:[],ops:[]};return ft={next:gt(0),throw:gt(1),return:gt(2)},typeof Symbol=="function"&&(ft[Symbol.iterator]=function(){return this}),ft;function gt(At){return function(xt){return function(Et){if(Ye)throw new TypeError("Generator is already executing.");for(;ft&&(ft=0,Et[0]&&(ht=0)),ht;)try{if(Ye=1,tt&&(nt=2&Et[0]?tt.return:Et[0]?tt.throw||((nt=tt.return)&&nt.call(tt),0):tt.next)&&!(nt=nt.call(tt,Et[1])).done)return nt;switch(tt=0,nt&&(Et=[2&Et[0],nt.value]),Et[0]){case 0:case 1:nt=Et;break;case 4:return ht.label++,{value:Et[1],done:!1};case 5:ht.label++,tt=Et[1],Et=[0];continue;case 7:Et=ht.ops.pop(),ht.trys.pop();continue;default:if(nt=ht.trys,!((nt=nt.length>0&&nt[nt.length-1])||Et[0]!==6&&Et[0]!==2)){ht=0;continue}if(Et[0]===3&&(!nt||Et[1]>nt[0]&&Et[1]<nt[3])){ht.label=Et[1];break}if(Et[0]===6&&ht.label<nt[1]){ht.label=nt[1],nt=Et;break}if(nt&&ht.label<nt[2]){ht.label=nt[2],ht.ops.push(Et);break}nt[2]&&ht.ops.pop(),ht.trys.pop();continue}Et=Le.call(Be,ht)}catch(yt){Et=[6,yt],tt=0}finally{Ye=nt=0}if(5&Et[0])throw Et[1];return{value:Et[0]?Et[1]:void 0,done:!0}}([At,xt])}}}typeof SuppressedError=="function"&&SuppressedError;var r$3={exclude:[],include:[],logging:!0,timeout:1e3},o={},a$2={timeout:"true"},i$4=function(Be,Le){typeof window<"u"&&(o[Be]=Le)},u=function(){return Object.fromEntries(Object.entries(o).filter(function(Be){var Le,Ye=Be[0];return!(!((Le=r$3==null?void 0:r$3.exclude)===null||Le===void 0)&&Le.includes(Ye))}).filter(function(Be){var Le,Ye,tt,nt,ft=Be[0];return!((Le=r$3==null?void 0:r$3.include)===null||Le===void 0)&&Le.some(function(ht){return ht.includes(".")})?(Ye=r$3==null?void 0:r$3.include)===null||Ye===void 0?void 0:Ye.some(function(ht){return ht.startsWith(ft)}):((tt=r$3==null?void 0:r$3.include)===null||tt===void 0?void 0:tt.length)===0||((nt=r$3==null?void 0:r$3.include)===null||nt===void 0?void 0:nt.includes(ft))}).map(function(Be){return[Be[0],(0,Be[1])()]}))};function c$2(Be){return Be^=Be>>>16,Be=Math.imul(Be,2246822507),Be^=Be>>>13,Be=Math.imul(Be,3266489909),(Be^=Be>>>16)>>>0}var s$2=new Uint32Array([597399067,2869860233,951274213,2716044179]);function l(Be,Le){return Be<<Le|Be>>>32-Le}function d(Be,Le){var Ye;if(Le===void 0&&(Le=0),Le=Le?0|Le:0,typeof Be=="string"&&(Ye=Be,Be=new TextEncoder().encode(Ye).buffer),!(Be instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var tt=new Uint32Array([Le,Le,Le,Le]);(function(ft,ht){for(var gt=ft.byteLength/16|0,At=new Uint32Array(ft,0,4*gt),xt=0;xt<gt;xt++){var Et=At.subarray(4*xt,4*(xt+1));Et[0]=Math.imul(Et[0],s$2[0]),Et[0]=l(Et[0],15),Et[0]=Math.imul(Et[0],s$2[1]),ht[0]=ht[0]^Et[0],ht[0]=l(ht[0],19),ht[0]=ht[0]+ht[1],ht[0]=Math.imul(ht[0],5)+1444728091,Et[1]=Math.imul(Et[1],s$2[1]),Et[1]=l(Et[1],16),Et[1]=Math.imul(Et[1],s$2[2]),ht[1]=ht[1]^Et[1],ht[1]=l(ht[1],17),ht[1]=ht[1]+ht[2],ht[1]=Math.imul(ht[1],5)+197830471,Et[2]=Math.imul(Et[2],s$2[2]),Et[2]=l(Et[2],17),Et[2]=Math.imul(Et[2],s$2[3]),ht[2]=ht[2]^Et[2],ht[2]=l(ht[2],15),ht[2]=ht[2]+ht[3],ht[2]=Math.imul(ht[2],5)+2530024501,Et[3]=Math.imul(Et[3],s$2[3]),Et[3]=l(Et[3],18),Et[3]=Math.imul(Et[3],s$2[0]),ht[3]=ht[3]^Et[3],ht[3]=l(ht[3],13),ht[3]=ht[3]+ht[0],ht[3]=Math.imul(ht[3],5)+850148119}})(Be,tt),function(ft,ht){var gt=ft.byteLength/16|0,At=ft.byteLength%16,xt=new Uint32Array(4),Et=new Uint8Array(ft,16*gt,At);switch(At){case 15:xt[3]=xt[3]^Et[14]<<16;case 14:xt[3]=xt[3]^Et[13]<<8;case 13:xt[3]=xt[3]^Et[12],xt[3]=Math.imul(xt[3],s$2[3]),xt[3]=l(xt[3],18),xt[3]=Math.imul(xt[3],s$2[0]),ht[3]=ht[3]^xt[3];case 12:xt[2]=xt[2]^Et[11]<<24;case 11:xt[2]=xt[2]^Et[10]<<16;case 10:xt[2]=xt[2]^Et[9]<<8;case 9:xt[2]=xt[2]^Et[8],xt[2]=Math.imul(xt[2],s$2[2]),xt[2]=l(xt[2],17),xt[2]=Math.imul(xt[2],s$2[3]),ht[2]=ht[2]^xt[2];case 8:xt[1]=xt[1]^Et[7]<<24;case 7:xt[1]=xt[1]^Et[6]<<16;case 6:xt[1]=xt[1]^Et[5]<<8;case 5:xt[1]=xt[1]^Et[4],xt[1]=Math.imul(xt[1],s$2[1]),xt[1]=l(xt[1],16),xt[1]=Math.imul(xt[1],s$2[2]),ht[1]=ht[1]^xt[1];case 4:xt[0]=xt[0]^Et[3]<<24;case 3:xt[0]=xt[0]^Et[2]<<16;case 2:xt[0]=xt[0]^Et[1]<<8;case 1:xt[0]=xt[0]^Et[0],xt[0]=Math.imul(xt[0],s$2[0]),xt[0]=l(xt[0],15),xt[0]=Math.imul(xt[0],s$2[1]),ht[0]=ht[0]^xt[0]}}(Be,tt),function(ft,ht){ht[0]=ht[0]^ft.byteLength,ht[1]=ht[1]^ft.byteLength,ht[2]=ht[2]^ft.byteLength,ht[3]=ht[3]^ft.byteLength,ht[0]=ht[0]+ht[1]|0,ht[0]=ht[0]+ht[2]|0,ht[0]=ht[0]+ht[3]|0,ht[1]=ht[1]+ht[0]|0,ht[2]=ht[2]+ht[0]|0,ht[3]=ht[3]+ht[0]|0,ht[0]=c$2(ht[0]),ht[1]=c$2(ht[1]),ht[2]=c$2(ht[2]),ht[3]=c$2(ht[3]),ht[0]=ht[0]+ht[1]|0,ht[0]=ht[0]+ht[2]|0,ht[0]=ht[0]+ht[3]|0,ht[1]=ht[1]+ht[0]|0,ht[2]=ht[2]+ht[0]|0,ht[3]=ht[3]+ht[0]|0}(Be,tt);var nt=new Uint8Array(tt.buffer);return Array.from(nt).map(function(ft){return ft.toString(16).padStart(2,"0")}).join("")}function f$1(Be,Le){return new Promise(function(Ye){setTimeout(function(){return Ye(Le)},Be)})}function m$1(Be,Le,Ye){return Promise.all(Be.map(function(tt){return Promise.race([tt,f$1(Le,Ye)])}))}function g(){return e$1(this,void 0,void 0,function(){var Be,Le,Ye,tt,nt;return n$1(this,function(ft){switch(ft.label){case 0:return ft.trys.push([0,2,,3]),Be=u(),Le=Object.keys(Be),[4,m$1(Object.values(Be),(r$3==null?void 0:r$3.timeout)||1e3,a$2)];case 1:return Ye=ft.sent(),tt=Ye.filter(function(ht){return ht!==void 0}),nt={},tt.forEach(function(ht,gt){nt[Le[gt]]=ht}),[2,p(nt,r$3.exclude||[],r$3.include||[],"")];case 2:throw ft.sent();case 3:return[2]}})})}function p(Be,Le,Ye,tt){tt===void 0&&(tt="");for(var nt={},ft=function(xt,Et){var yt=tt+xt+".";if(typeof Et!="object"||Array.isArray(Et)){var Ct=Le.some(function(bt){return yt.startsWith(bt)}),kt=Ye.some(function(bt){return yt.startsWith(bt)});Ct&&!kt||(nt[xt]=Et)}else{var vt=p(Et,Le,Ye,yt);Object.keys(vt).length>0&&(nt[xt]=vt)}},ht=0,gt=Object.entries(Be);ht<gt.length;ht++){var At=gt[ht];ft(At[0],At[1])}return nt}function w$d(Be){return e$1(this,void 0,void 0,function(){var Le,Ye;return n$1(this,function(tt){switch(tt.label){case 0:return tt.trys.push([0,2,,3]),[4,g()];case 1:return Le=tt.sent(),Ye=d(JSON.stringify(Le)),Math.random()<1e-5&&r$3.logging&&function(nt,ft){e$1(this,void 0,void 0,function(){var ht,gt;return n$1(this,function(At){switch(At.label){case 0:if(ht="https://logging.thumbmarkjs.com/v1/log",gt={thumbmark:nt,components:ft,version:"0.20.6"},sessionStorage.getItem("_tmjs_l"))return[3,4];sessionStorage.setItem("_tmjs_l","1"),At.label=1;case 1:return At.trys.push([1,3,,4]),[4,fetch(ht,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(gt)})];case 2:case 3:return At.sent(),[3,4];case 4:return[2]}})})}(Ye,Le),[2,Ye.toString()];case 2:throw tt.sent();case 3:return[2]}})})}function b$1(){if(typeof navigator>"u")return{name:"unknown",version:"unknown"};for(var Be=navigator.userAgent,Le={edg:"Edge",opr:"Opera",samsung:"SamsungBrowser"},Ye=0,tt=[/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>samsung).*Version\/(?<version>\d+(?:\.\d+)?)/i,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/];Ye<tt.length;Ye++){var nt=tt[Ye],ft=Be.match(nt);if(ft&&ft.groups)return{name:Le[ft.groups.name.toLowerCase()]||ft.groups.name,version:ft.groups.version}}return{name:"unknown",version:"unknown"}}function S(Be){for(var Le=0,Ye=0;Ye<Be.length;++Ye)Le+=Math.abs(Be[Ye]);return Le}var M=b$1();function E(Be,Le,Ye){for(var tt=[],nt=0;nt<Be[0].data.length;nt++){for(var ft=[],ht=0;ht<Be.length;ht++)ft.push(Be[ht].data[nt]);tt.push(P(ft))}var gt=new Uint8ClampedArray(tt);return new ImageData(gt,Le,Ye)}function P(Be){if(Be.length===0)return 0;for(var Le={},Ye=0,tt=Be;Ye<tt.length;Ye++)Le[ft=tt[Ye]]=(Le[ft]||0)+1;var nt=Be[0];for(var ft in Le)Le[ft]>Le[nt]&&(nt=parseInt(ft,10));return nt}["SamsungBrowser","Safari"].includes(M.name)||i$4("audio",function(){return e$1(this,void 0,void 0,function(){return n$1(this,function(Be){return[2,new Promise(function(Le,Ye){try{var tt=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),nt=tt.createBufferSource(),ft=tt.createOscillator();ft.frequency.value=1e3;var ht,gt=tt.createDynamicsCompressor();gt.threshold.value=-50,gt.knee.value=40,gt.ratio.value=12,gt.attack.value=0,gt.release.value=.2,ft.connect(gt),gt.connect(tt.destination),ft.start(),tt.oncomplete=function(At){ht=At.renderedBuffer.getChannelData(0),Le({sampleHash:S(ht),oscillator:ft.type,maxChannels:tt.destination.maxChannelCount,channelCountMode:nt.channelCountMode})},tt.startRendering()}catch(At){console.error("Error creating audio fingerprint:",At),Ye(At)}})]})})});var A=b$1(),C=A.name.toLowerCase(),x=A.version.split(".")[0]||"0",T=parseInt(x,10);C==="firefox"||C==="safari"&&T===17||i$4("canvas",function(){return document.createElement("canvas").getContext("2d"),new Promise(function(Be){var Le=Array.from({length:3},function(){return function(){var Ye=document.createElement("canvas"),tt=Ye.getContext("2d");if(!tt)return new ImageData(1,1);Ye.width=280,Ye.height=20;var nt=tt.createLinearGradient(0,0,Ye.width,Ye.height);nt.addColorStop(0,"red"),nt.addColorStop(.16666666666666666,"orange"),nt.addColorStop(.3333333333333333,"yellow"),nt.addColorStop(.5,"green"),nt.addColorStop(.6666666666666666,"blue"),nt.addColorStop(.8333333333333334,"indigo"),nt.addColorStop(1,"violet"),tt.fillStyle=nt,tt.fillRect(0,0,Ye.width,Ye.height);var ft="Random Text WMwmil10Oo";return tt.font="23.123px Arial",tt.fillStyle="black",tt.fillText(ft,-5,15),tt.fillStyle="rgba(0, 0, 255, 0.5)",tt.fillText(ft,-3.3,17.7),tt.beginPath(),tt.moveTo(0,0),tt.lineTo(2*Ye.width/7,Ye.height),tt.strokeStyle="white",tt.lineWidth=2,tt.stroke(),tt.getImageData(0,0,Ye.width,Ye.height)}()});Be({commonImageDataHash:d(E(Le,280,20).data.toString()).toString()})})});var k,I=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],R$1=["monospace","sans-serif","serif"];function L(Be,Le){if(!Be)throw new Error("Canvas context not supported");return Be.font,Be.font="72px ".concat(Le),Be.measureText("WwMmLli0Oo").width}function _$1(){var Be,Le=document.createElement("canvas"),Ye=(Be=Le.getContext("webgl"))!==null&&Be!==void 0?Be:Le.getContext("experimental-webgl");if(Ye&&"getParameter"in Ye)try{var tt=(Ye.getParameter(Ye.VENDOR)||"").toString(),nt=(Ye.getParameter(Ye.RENDERER)||"").toString(),ft={vendor:tt,renderer:nt,version:(Ye.getParameter(Ye.VERSION)||"").toString(),shadingLanguageVersion:(Ye.getParameter(Ye.SHADING_LANGUAGE_VERSION)||"").toString()};if(!nt.length||!tt.length){var ht=Ye.getExtension("WEBGL_debug_renderer_info");if(ht){var gt=(Ye.getParameter(ht.UNMASKED_VENDOR_WEBGL)||"").toString(),At=(Ye.getParameter(ht.UNMASKED_RENDERER_WEBGL)||"").toString();gt&&(ft.vendorUnmasked=gt),At&&(ft.rendererUnmasked=At)}}return ft}catch{}return"undefined"}function O(){var Be=new Float32Array(1),Le=new Uint8Array(Be.buffer);return Be[0]=1/0,Be[0]=Be[0]-Be[0],Le[3]}function B(Be,Le){var Ye={};return Le.forEach(function(tt){var nt=function(ft){if(ft.length===0)return null;var ht={};ft.forEach(function(xt){var Et=String(xt);ht[Et]=(ht[Et]||0)+1});var gt=ft[0],At=1;return Object.keys(ht).forEach(function(xt){ht[xt]>At&&(gt=xt,At=ht[xt])}),gt}(Be.map(function(ft){return tt in ft?ft[tt]:void 0}).filter(function(ft){return ft!==void 0}));nt&&(Ye[tt]=nt)}),Ye}function D(){var Be=[],Le={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(Le).forEach(function(Ye){Le[Ye].forEach(function(tt){matchMedia("(".concat(Ye,": ").concat(tt,")")).matches&&Be.push("".concat(Ye,": ").concat(tt))})}),Be}b$1().name!="Firefox"&&i$4("fonts",function(){var Be=this;return new Promise(function(Le,Ye){try{(function(tt){var nt;e$1(this,void 0,void 0,function(){var ft,ht,gt;return n$1(this,function(At){switch(At.label){case 0:return document.body?[3,2]:[4,(xt=50,new Promise(function(yt){return setTimeout(yt,xt,Et)}))];case 1:return At.sent(),[3,0];case 2:if((ft=document.createElement("iframe")).setAttribute("frameBorder","0"),(ht=ft.style).setProperty("position","fixed"),ht.setProperty("display","block","important"),ht.setProperty("visibility","visible"),ht.setProperty("border","0"),ht.setProperty("opacity","0"),ft.src="about:blank",document.body.appendChild(ft),!(gt=ft.contentDocument||((nt=ft.contentWindow)===null||nt===void 0?void 0:nt.document)))throw new Error("Iframe document is not accessible");return tt({iframe:gt}),setTimeout(function(){document.body.removeChild(ft)},0),[2]}var xt,Et})})})(function(tt){var nt=tt.iframe;return e$1(Be,void 0,void 0,function(){var ft,ht,gt,At;return n$1(this,function(xt){return ft=nt.createElement("canvas"),ht=ft.getContext("2d"),gt=R$1.map(function(Et){return L(ht,Et)}),At={},I.forEach(function(Et){var yt=L(ht,Et);gt.includes(yt)||(At[Et]=yt)}),Le(At),[2]})})})}catch{Ye({error:"unsupported"})}})}),i$4("hardware",function(){return new Promise(function(Be,Le){var Ye=navigator.deviceMemory!==void 0?navigator.deviceMemory:0,tt=window.performance&&window.performance.memory?window.performance.memory:0;Be({videocard:_$1(),architecture:O(),deviceMemory:Ye.toString()||"undefined",jsHeapSizeLimit:tt.jsHeapSizeLimit||0})})}),i$4("locales",function(){return new Promise(function(Be){Be({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})})}),i$4("permissions",function(){return e$1(this,void 0,void 0,function(){var Be;return n$1(this,function(Le){return k=(r$3==null?void 0:r$3.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],b$1().name.toLowerCase()==="safari"&&(k=k.filter(function(Ye){return!["camera","geolocation","microphone"].includes(Ye)})),Be=Array.from({length:(r$3==null?void 0:r$3.retries)||3},function(){return function(){return e$1(this,void 0,void 0,function(){var Ye,tt,nt,ft,ht;return n$1(this,function(gt){switch(gt.label){case 0:Ye={},tt=0,nt=k,gt.label=1;case 1:if(!(tt<nt.length))return[3,6];ft=nt[tt],gt.label=2;case 2:return gt.trys.push([2,4,,5]),[4,navigator.permissions.query({name:ft})];case 3:return ht=gt.sent(),Ye[ft]=ht.state.toString(),[3,5];case 4:return gt.sent(),[3,5];case 5:return tt++,[3,1];case 6:return[2,Ye]}})})}()}),[2,Promise.all(Be).then(function(Ye){return B(Ye,k)})]})})}),i$4("plugins",function(){var Be=[];if(navigator.plugins)for(var Le=0;Le<navigator.plugins.length;Le++){var Ye=navigator.plugins[Le];Be.push([Ye.name,Ye.filename,Ye.description].join("|"))}return new Promise(function(tt){tt({plugins:Be})})}),i$4("screen",function(){return new Promise(function(Be){Be({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})})}),i$4("system",function(){return new Promise(function(Be){var Le=b$1(),Ye={platform:window.navigator.platform,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:Le.name,version:Le.version}};Le.name.toLowerCase()!=="safari"&&(Ye.applePayVersion=function(){if(window.location.protocol==="https:"&&typeof window.ApplePaySession=="function")try{for(var tt=window.ApplePaySession.supportsVersion,nt=15;nt>0;nt--)if(tt(nt))return nt}catch{return 0}return 0}(),Ye.cookieEnabled=window.navigator.cookieEnabled),Be(Ye)})});var U,N=b$1().name!=="SamsungBrowser"?1:3,F=null;i$4("webgl",function(){return e$1(this,void 0,void 0,function(){var Be;return n$1(this,function(Le){typeof document<"u"&&((U=document.createElement("canvas")).width=200,U.height=100,F=U.getContext("webgl"));try{if(!F)throw new Error("WebGL not supported");return Be=Array.from({length:N},function(){return function(){try{if(!F)throw new Error("WebGL not supported");var Ye=`
|
|
67
67
|
attribute vec2 position;
|
|
68
68
|
void main() {
|
|
69
69
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
@@ -5432,7 +5432,7 @@ linearGradient:first-of-type {
|
|
|
5432
5432
|
border-radius: ${({$isFirst:Be,$isLast:Le})=>Be&&Le?"16px":Be?"16px 16px 0 0":Le?"0 0 16px 16px":"0"};
|
|
5433
5433
|
`,NewChooserButton=({id:Be,icon:Le,title:Ye,onClick:tt,isFirst:nt,isLast:ft})=>{const ht=useTokens();return jsxRuntimeExports.jsx(NewStyledChooserButton,{onClick:tt,$bg:ht.color.surface.neutral.light,$border:ht.color.border.primary,$isFirst:nt,$isLast:ft,children:jsxRuntimeExports.jsxs(Flex,{hFull:!0,wFull:!0,"data-testid":`chooser-button-${Be}`,alignItems:"center",align:"center",gap:"12px",children:[Le,jsxRuntimeExports.jsxs(Flex,{flex:2,direction:"row",wrap:"nowrap",justify:"space-between",align:"center",children:[jsxRuntimeExports.jsx(Flex,{align:"center",flex:1,maxW:"160px",h:"18px",textOverflow:"ellipsis",overflow:"visible",children:jsxRuntimeExports.jsx(Text$7,{fontWeight:500,textAlign:"left",color:ht.color.text.body.primary,overflow:"visible",children:Ye})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(ArrowIcon$1,{})})]})]})})},Chooser=()=>{var Et,yt,Ct,kt,vt,bt;const{t:Be}=useTranslation$1(),{goToIdStep:Le,goToPassportStep:Ye,goToManualUploadStep:tt,goToDigitalIdUploadStep:nt,uiConfig:ft,captureConfiguration:ht}=useCaptureIdState(),gt=ht.manualUploadIdCapture,At=ht.digitalIdsUpload;return!gt&&!At?jsxRuntimeExports.jsxs(IdFlowPage,{title:Be("idv2.chooser.title"),maxW:"450px","data-testid":"document-chooser-page",children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",gap:4,mt:"auto",children:[jsxRuntimeExports.jsx(OldChooserButton,{id:"id",title:Be("idv2.chooser.idButtonTitle"),description:Be("idv2.chooser.idButtonDescription"),icon:jsxRuntimeExports.jsx(IdIcon,{shirtColor:(Et=ft==null?void 0:ft.theming)==null?void 0:Et.shirtColor}),onClick:Le}),jsxRuntimeExports.jsx(OldChooserButton,{id:"passport",title:Be("idv2.chooser.passportButtonTitle"),description:Be("idv2.chooser.passportButtonDescription"),icon:jsxRuntimeExports.jsx(PassportIcon,{shirtColor:(yt=ft==null?void 0:ft.theming)==null?void 0:yt.shirtColor}),onClick:Ye})]}),jsxRuntimeExports.jsx(Spacer,{size:8})]}):jsxRuntimeExports.jsx(IdFlowPage,{title:Be("idv2.chooser.chooseHowToVerifyTitle"),maxW:"450px","data-testid":"document-chooser-page",children:jsxRuntimeExports.jsxs(Flex,{direction:"column",mt:"auto",children:[At&&jsxRuntimeExports.jsx(NewChooserButton,{id:"digitalIdUpload",title:Be("idv2.chooser.digitalIdUploadButtonTitle"),icon:jsxRuntimeExports.jsx(DigitalIdIcon,{shirtColor:(Ct=ft==null?void 0:ft.theming)==null?void 0:Ct.shirtColor}),onClick:nt,isFirst:!0,isLast:!1}),jsxRuntimeExports.jsx(NewChooserButton,{id:"id",title:Be("idv2.chooser.idButtonTitle"),icon:jsxRuntimeExports.jsx(IdIcon$1,{size:60,shirtColor:(kt=ft==null?void 0:ft.theming)==null?void 0:kt.shirtColor}),onClick:Le,isFirst:!At,isLast:!1}),jsxRuntimeExports.jsx(NewChooserButton,{id:"passport",title:Be("idv2.chooser.passportButtonTitle"),icon:jsxRuntimeExports.jsx(PassportIcon$1,{shirtColor:(vt=ft==null?void 0:ft.theming)==null?void 0:vt.shirtColor}),onClick:Ye,isFirst:!1,isLast:!gt}),gt&&jsxRuntimeExports.jsx(NewChooserButton,{id:"manualUpload",title:Be("idv2.chooser.manualUploadButtonTitle"),icon:jsxRuntimeExports.jsx(UploadIcon,{shirtColor:(bt=ft==null?void 0:ft.theming)==null?void 0:bt.shirtColor}),onClick:tt,isFirst:!1,isLast:!0})]})})},Container$e=dt.div`
|
|
5434
5434
|
position: relative;
|
|
5435
|
-
`,UploadIDScreenImage=({shirtColor:Be,size:Le=191,isAnalyzing:Ye=!1,isError:tt=!1})=>{const nt=useTokens(),ft=Be||nt.color.surface.primary[500];return jsxRuntimeExports.jsx(Container$e,{children:jsxRuntimeExports.jsxs("svg",{width:Le,height:Le*266/191,viewBox:"0 0 191 266",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"uploadIdScreenImageTitle",role:"img",children:[jsxRuntimeExports.jsx("title",{id:"uploadIdScreenImageTitle",children:"Upload ID Screen Image"}),jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{d:"M17.5 11.1724C17.5 7.21119 20.7112 4 24.6724 4H166.328C170.289 4 173.5 7.2112 173.5 11.1724V228.138C173.5 232.099 170.289 235.31 166.328 235.31H24.6724C20.7112 235.31 17.5 232.099 17.5 228.138V11.1724Z",fill:"white"}),jsxRuntimeExports.jsx("rect",{x:"98.1895",y:"35.3799",width:"68.1379",height:"83.3793",rx:"7.17241",fill:Ye||tt?"#E9E9EB":"#F0F6FF"}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M124.391 67.5897C124.391 68.725 123.469 69.6497 122.331 69.6497H114.953C113.818 69.6497 112.893 68.725 112.893 67.5897V60.2117C112.893 59.074 113.818 58.1518 114.953 58.1518H122.331C123.469 58.1518 124.391 59.074 124.391 60.2117V67.5897ZM122.331 53.3105H114.953C111.148 53.3105 108.052 56.4065 108.052 60.2117V67.5897C108.052 71.3949 111.148 74.4909 114.953 74.4909H122.331C126.136 74.4909 129.232 71.3949 129.232 67.5897V60.2117C129.232 56.4065 126.136 53.3105 122.331 53.3105Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M118.643 61.4951C117.307 61.4951 116.223 62.5941 116.223 63.9303C116.223 65.2664 117.307 66.3509 118.643 66.3509C119.979 66.3509 121.064 65.2664 121.064 63.9303V63.9012C121.064 62.565 119.979 61.4951 118.643 61.4951Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M118.643 88.7246C117.307 88.7246 116.223 89.8236 116.223 91.1597C116.223 92.4959 117.307 93.5804 118.643 93.5804C119.979 93.5804 121.064 92.4959 121.064 91.1597V91.1307C121.064 89.7945 119.979 88.7246 118.643 88.7246Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M124.391 94.8222C124.391 95.9574 123.469 96.8821 122.331 96.8821H114.953C113.818 96.8821 112.893 95.9574 112.893 94.8222V87.4441C112.893 86.3064 113.818 85.3842 114.953 85.3842H122.331C123.469 85.3842 124.391 86.3064 124.391 87.4441V94.8222ZM122.331 80.543H114.953C111.148 80.543 108.052 83.6389 108.052 87.4441V94.8222C108.052 98.6274 111.148 101.723 114.953 101.723H122.331C126.136 101.723 129.232 98.6274 129.232 94.8222V87.4441C129.232 83.6389 126.136 80.543 122.331 80.543Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M151.623 94.8222C151.623 95.9574 150.701 96.8821 149.563 96.8821H142.185C141.05 96.8821 140.125 95.9574 140.125 94.8222V87.4441C140.125 86.3064 141.05 85.3842 142.185 85.3842H149.563C150.701 85.3842 151.623 86.3064 151.623 87.4441V94.8222ZM149.563 80.543H142.185C138.38 80.543 135.284 83.6389 135.284 87.4441V94.8222C135.284 98.6274 138.38 101.723 142.185 101.723H149.563C153.369 101.723 156.465 98.6274 156.465 94.8222V87.4441C156.465 83.6389 153.369 80.543 149.563 80.543Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M145.876 88.6826C144.54 88.6826 143.455 89.7671 143.455 91.1032V91.1299C143.455 92.466 144.54 93.5359 145.876 93.5359C147.212 93.5359 148.296 92.4394 148.296 91.1032C148.296 89.7671 147.212 88.6826 145.876 88.6826Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M137.705 58.18C139.041 58.18 140.125 57.0955 140.125 55.7594V55.7303C140.125 54.3941 139.041 53.3242 137.705 53.3242C136.369 53.3242 135.284 54.4232 135.284 55.7594C135.284 57.0955 136.369 58.18 137.705 58.18Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M150.487 53.3105H145.876C144.537 53.3105 143.455 54.395 143.455 55.7312C143.455 57.0673 144.537 58.1518 145.876 58.1518H150.487C151.114 58.1518 151.625 58.6625 151.625 59.2919V63.9007C151.625 65.2369 152.707 66.3213 154.045 66.3213C155.381 66.3213 156.466 65.2369 156.466 63.9007V59.2919C156.466 55.9926 153.784 53.3105 150.487 53.3105Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M154.045 69.6514H145.876C144.54 69.6514 143.455 70.7358 143.455 72.072C143.455 73.4081 144.54 74.4925 145.876 74.4925H154.045C155.381 74.4925 156.466 73.4081 156.466 72.072C156.466 70.7358 155.381 69.6514 154.045 69.6514Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M137.705 74.4922C139.041 74.4922 140.125 73.4078 140.125 72.0716V67.4604C140.125 66.8334 140.636 66.3227 141.266 66.3227H145.874C147.211 66.3227 148.295 65.2382 148.295 63.9021C148.295 62.5659 147.211 61.4814 145.874 61.4814H141.266C137.966 61.4814 135.284 64.1635 135.284 67.4604V72.0716C135.284 73.4078 136.369 74.4922 137.705 74.4922Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("rect",{x:"29.1553",y:"134",width:"54.6897",height:"10.7586",rx:"3.58621",fill:"#EBECEF"}),jsxRuntimeExports.jsx("rect",{x:"17.5",y:"16.5518",width:"156",height:"10.7586",fill:"#EBECEF"}),jsxRuntimeExports.jsx("rect",{x:"29.1553",y:"152.828",width:"54.6897",height:"10.7586",rx:"3.58621",fill:"#EBECEF"}),jsxRuntimeExports.jsx("rect",{x:"29.1553",y:"171.655",width:"72.6207",height:"10.7586",rx:"3.58621",fill:"#EBECEF"})]}),jsxRuntimeExports.jsx("path",{d:"M24.6729 4.44824H166.327C170.041 4.44824 173.052 7.45921 173.052 11.1729V228.138C173.052 231.851 170.041 234.862 166.327 234.862H24.6729C20.9592 234.862 17.9482 231.851 17.9482 228.138V11.1729C17.9482 7.45921 20.9592 4.44824 24.6729 4.44824Z",stroke:Ye?"#189F60":tt?"#E71111":"#EBECEF","stroke-width":Ye||tt?"4":"0.896552"})]}),jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("rect",{x:"24.6729",y:"35.8066",width:"68.1379",height:"82.9505",rx:"4.93753",fill:Ye||tt?"#E9E9EB":"#F0F6FF"}),jsxRuntimeExports.jsx("path",{d:"M49.36 91.1735V91.2999C49.3251 93.9726 47.0753 95.9823 42.6104 97.3291C47.9904 101.237 53.3707 104.364 58.7507 104.364C64.1307 104.364 69.5111 101.237 74.8911 97.3291C70.4565 95.9808 68.2066 93.968 68.1415 91.2908C68.1415 90.2747 68.145 80.3761 68.1497 79.36C68.4704 79.4052 68.4432 79.3765 68.1497 79.295C68.1585 75.9478 68.1729 80.3294 68.1928 75.7552C68.2128 71.181 49.0493 67.0886 49.3306 79.6487C49.3344 80.9294 49.3421 89.7232 49.36 91.1735Z",fill:"#E0E0E0"}),jsxRuntimeExports.jsx("path",{d:"M92.8103 106.416C92.8103 108.838 92.8103 111.556 92.8103 113.823C92.8103 116.55 90.5997 118.759 87.8728 118.759H29.6104C26.8835 118.759 24.6729 116.55 24.6729 113.823C24.6729 111.669 24.6729 109.075 24.6729 106.609C27.8413 100.94 46.2752 95.6817 46.2752 95.6817C47.9856 98.7716 53.0062 101.59 58.1454 101.716C63.7221 101.853 69.4385 99.0337 71.2165 95.6797C71.2165 95.6797 89.6412 100.745 92.8103 106.416Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{d:"M49.1074 85.037C56.9841 84.2188 64.4004 87.6292 64.4004 87.6292C64.4004 87.6292 62.9302 95.3516 49.1074 93.1072V85.037Z",fill:"#CDCDCD"}),jsxRuntimeExports.jsx("path",{d:"M42.6488 68.8767C43.699 67.1248 45.009 68.3295 45.5328 69.1509L46.2644 76.9402C46.2387 77.6181 45.8326 78.0487 44.7734 78.1827C43.4493 78.3502 42.5746 74.7442 42.2696 73.3982C41.9645 72.0521 41.336 71.0665 42.6488 68.8767Z",fill:"#D0D0D0"}),jsxRuntimeExports.jsx("path",{d:"M74.3552 69.3252C73.3216 67.5635 72.0003 68.7558 71.4688 69.5721L70.6635 77.3542C70.6827 78.0322 71.0848 78.4667 72.1427 78.6107C73.4651 78.7907 74.3739 75.1932 74.6917 73.8501C75.0094 72.507 75.6472 71.5273 74.3552 69.3252Z",fill:"#D0D0D0"}),jsxRuntimeExports.jsx("path",{d:"M73.3109 70.6918C73.3109 81.9566 65.1557 91.0886 58.7907 91.0886C51.829 91.0886 44.2705 81.9566 44.2705 70.6918C44.2705 60.6551 45.0714 49.9307 58.7907 49.9307C72.51 49.9307 73.3109 60.423 73.3109 70.6918Z",fill:"#FAFAFA"})]})]})})},fr$6=60,v$6="5.9.6",ip$6=0,op$6=161,w$6=271,h$7=390,nm$6="id_laser_v",ddd$6=0,markers$6=[],assets$6=[{nm:"id_laser_v",fr:60,id:"m8gbp0cygyhyhkn8",layers:[{ty:3,ddd:0,ind:5,hd:!1,nm:"id_laser_v - Null",sr:1,ks:{a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ty:3,ddd:0,ind:6,hd:!1,nm:"Rectangle 465 - Null",sr:1,parent:5,ks:{a:{a:0,k:[74,195]},o:{a:0,k:100},p:{a:1,k:[{t:0,s:[116,195],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:59.772,s:[155,195],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:67.992,s:[148,195],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:139.908,s:[116,195]}]},r:{a:0,k:0},s:{a:1,k:[{t:0,s:[100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:59.772,s:[-100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:67.992,s:[-100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:139.908,s:[100,100]}]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ty:4,ddd:0,ind:7,hd:!1,nm:"Rectangle 465",sr:1,parent:6,ks:{a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}},ao:0,ip:0,op:162,st:0,bm:0,shapes:[{ty:"gr",nm:"Group",hd:!1,np:3,it:[{ty:"sh",nm:"Path",hd:!1,ks:{a:0,k:{c:!0,v:[[3.4546,343.2121],[1e-4,329.7788],[1e-4,58.7552],[3.4546,45.3219],[72.7499,.0697],[74.0001,3.2919],[74.0001,386.7085],[72.7499,389.9306],[3.4546,343.2121]],i:[[0,0],[0,6.5041],[0,0],[-2.0118,1.319],[0,0],[0,-2.0856],[0,0],[.6451,.423],[0,0]],o:[[-2.01182,-1.319029999999998],[0,0],[0,-6.50412],[0,0],[.6451200000000057,-.42297],[0,0],[0,2.085640000000012],[0,0],[0,0]]}}},{ty:"gf",o:{a:0,k:100},g:{p:4,k:{a:0,k:[0,1,1,1,.2396,1,1,1,.4948,1,1,1,.8906,1,1,1,0,1,.2396,.58,.4948,.3,.8906,0]}},s:{a:0,k:[30989068029558517e-22,194.9998238535722]},e:{a:0,k:[68.99999654078556,194.9998238535725]},t:1,nm:"Fill",hd:!1,r:1},{ty:"tr",a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}}]}]}]}],layers$6=[{ty:3,ddd:0,ind:5,hd:!1,nm:"id_laser_v - Null",sr:1,ks:{a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"id_laser_v",refId:"m8gbp0cygyhyhkn8",sr:1,ks:{a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}},ao:0,w:271,h:390,ip:0,op:162,st:0,hd:!1,bm:0}],meta$1={a:"",d:"",tc:"",g:"Aninix"},idLaserVertical={fr:fr$6,v:v$6,ip:ip$6,op:op$6,w:w$6,h:h$7,nm:nm$6,ddd:ddd$6,markers:markers$6,assets:assets$6,layers:layers$6,meta:meta$1},uploadDigitalId=async({token:Be,file:Le,onProgress:Ye=()=>{}})=>{const tt=Date.now(),nt=await exports.api.post("/omni/add/front-id?idType=DigitalId",Le,{headers:{"X-Incode-Hardware-Id":Be,"Content-Type":Le.type||"application/octet-stream"},onUploadProgress:({loaded:gt,total:At})=>{const xt=gt/At*100;Ye(xt)}}),ft=Date.now(),ht=ft-tt;return{...nt.data,uploadDurationMs:ht,uploadStartTime:tt,uploadEndTime:ft}},validateDigitalIdFile=Be=>{var nt;const Le=["application/pdf"],Ye=[".pdf"],tt=`.${(nt=Be.name.split(".").pop())==null?void 0:nt.toLowerCase()}`;return!Le.includes(Be.type)&&!Ye.includes(tt)?{isValid:!1,errorMessage:"idv2.digitalIdUpload.invalidFileType"}:{isValid:!0}},getFileValidationErrorMessage=(Be,Le)=>{switch(Be){case"idv2.digitalIdUpload.invalidFileType":return Le("idv2.digitalIdUpload.invalidFileType");case"idv2.digitalIdUpload.fileTooBig":return Le("idv2.digitalIdUpload.fileTooBig");default:return Le("idv2.digitalIdUpload.invalidFileType")}},PdfPreview=({previewUrl:Be,previewError:Le,pageOrientation:Ye,width:tt,height:nt,showBorder:ft=!1,borderColor:ht="#189F60",onLoadSuccess:gt,onLoadError:At})=>{const[xt,Et]=React.useState(!1),yt=React.useRef(),Ct=React.useRef(null);if(React.useEffect(()=>{yt.current!==Be&&(Et(!1),yt.current=Be,Ct.current&&(clearTimeout(Ct.current),Ct.current=null),Ct.current=setTimeout(()=>{const bt=new Error("PDF preview loading timeout");At(bt)},5e3))}),React.useEffect(()=>()=>{Ct.current&&clearTimeout(Ct.current)},[]),!Be||Le)return null;const kt=bt=>{Ct.current&&(clearTimeout(Ct.current),Ct.current=null),gt(bt),setTimeout(()=>{Et(!0)},200)},vt=bt=>{Ct.current&&(clearTimeout(Ct.current),Ct.current=null),Et(!1),At(bt)};return jsxRuntimeExports.jsx(Flex,{direction:"column",align:"center",justify:"center",overflow:"hidden",borderRadius:"8px",w:`${tt}px`,h:`${nt}px`,border:ft?`4px solid ${ht}`:"1px solid #E9E9EB",children:jsxRuntimeExports.jsx("div",{style:{opacity:xt?1:0,transition:"opacity 0.2s ease-in-out"},children:jsxRuntimeExports.jsx(Document$1,{file:Be,onLoadSuccess:kt,onLoadError:vt,loading:jsxRuntimeExports.jsx(Flex,{align:"center",justify:"center",w:`${tt}px`,h:`${nt}px`}),children:jsxRuntimeExports.jsx("div",{style:{transform:Ye==="landscape"?"rotate(90deg)":"none",transformOrigin:"center"},children:jsxRuntimeExports.jsx(Page,{pageNumber:1,width:tt,height:nt,renderTextLayer:!1,renderAnnotationLayer:!1})})})},Be)})},DigitalIdErrorState=({icon:Be,title:Le,subtitle:Ye,onButtonClick:tt,buttonText:nt,selectedFile:ft})=>{const{t:ht}=useTranslation$1(),gt=useTokens(),{token:At}=useCaptureIdState(),[xt,Et]=React.useState(null),[yt,Ct]=React.useState(!1),[kt,vt]=React.useState("portrait");React.useEffect(()=>{At&&addEvent({token:At,code:"digitalIdErrorDisplayed",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadFailed,payload:{errorTitle:Le,hasSelectedFile:!!ft,fileSize:ft==null?void 0:ft.size,fileType:ft==null?void 0:ft.type}})},[At,Le,ft]),React.useEffect(()=>{if(ft){const Rt=URL.createObjectURL(ft);return Et(Rt),Ct(!1),()=>{URL.revokeObjectURL(Rt)}}},[ft]);const bt=Rt=>{Ct(!1),Rt.getPage(1).then(Tt=>{const Bt=Tt.getViewport({scale:1}),Dt=Bt.width>Bt.height;vt(Dt?"landscape":"portrait")})},It=Rt=>{console.error("Error loading PDF:",Rt),Ct(!0)},wt=()=>{At&&addEvent({token:At,code:"digitalIdErrorAction",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadFailed,payload:{action:"tryAgain",errorTitle:Le}}),tt==null||tt()};return jsxRuntimeExports.jsx(Box,{hFull:!0,wFull:!0,position:"absolute",bg:gt.color.surface.neutral.light,zIndex:1e3,top:0,left:0,right:0,bottom:0,m:"auto",children:jsxRuntimeExports.jsxs(Flex,{position:"absolute",bottom:0,left:0,right:0,top:0,xsPt:"40px",direction:"column",align:"center",justify:"space-between",wFull:!0,hFull:!0,p:"20px",m:"auto",maxW:"450px",children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",justify:"center",maxW:"100%",wFull:!0,hFull:!0,children:[jsxRuntimeExports.jsx(Flex,{content:"center",mt:10,mb:3,children:Be}),jsxRuntimeExports.jsx(Title$o,{textAlign:"center",letterSpacing:gt.typography.letterSpacing.tight,lineHeight:"114%",color:gt.color.surface.neutral.dark,fontSize:gt.typography.fontSize["2xl"],pl:5,pr:5,children:Le}),jsxRuntimeExports.jsx(Spacer,{size:3}),jsxRuntimeExports.jsx(Text$7,{color:gt.color.text.body.secondary,fontWeight:"500",textAlign:"center",fontSize:gt.typography.fontSize.base,letterSpacing:-.5,pl:4,pr:4,mb:10,children:Ye}),xt&&!yt&&jsxRuntimeExports.jsx(PdfPreview,{previewUrl:xt,previewError:yt,pageOrientation:kt,width:156,height:221,showBorder:!0,borderColor:"#E71111",onLoadSuccess:bt,onLoadError:It}),xt&&yt&&jsxRuntimeExports.jsx(UploadIDScreenImage,{isError:!0,size:132}),jsxRuntimeExports.jsx(Spacer,{size:20})]}),jsxRuntimeExports.jsx(Flex,{direction:"column",wFull:!0,children:jsxRuntimeExports.jsx(Button$b,{onClick:wt,children:jsxRuntimeExports.jsx(Text$7,{color:gt.color.text.body.invert,fontSize:gt.typography.fontSize.lg,fontWeight:gt.typography.fontWeight.medium,textAlign:"center",children:nt??ht("idv2.digitalIdUpload.tryAgain")})})})]})})};__webpack_exports__GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${__webpack_exports__version}/pdf.worker.min.mjs`;const DigitalIdFileReview=({selectedFile:Be,onFileReplaced:Le,onFlowCompleted:Ye,autoTriggerPicker:tt=!1})=>{const{t:nt}=useTranslation$1(),ft=useTokens(),{token:ht,completeFlow:gt,goToIdStep:At}=useCaptureIdState(),xt=React.useRef(null),[Et,yt]=React.useState(!1),[Ct,kt]=React.useState(!1),[vt,bt]=React.useState(0),[It,wt]=React.useState(null),[Rt,Tt]=React.useState(!1),[Bt,Dt]=React.useState(null),[Pt,Nt]=React.useState("portrait");React.useEffect(()=>{if(ht)return addScreenEvent({module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,token:ht,shouldOpen:!0}),()=>{addScreenEvent({module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,token:ht,shouldOpen:!1})}},[ht]),React.useEffect(()=>{tt&&!Be&&Kt()},[tt,Be]),React.useEffect(()=>{if(Be){Tt(!1);const Qt=URL.createObjectURL(Be);return wt(Qt),()=>{URL.revokeObjectURL(Qt)}}wt(null)},[Be]);const Lt=Qt=>{Tt(!1),Qt.getPage(1).then(jt=>{const Gt=jt.getViewport({scale:1}),qt=Gt.width>Gt.height;Nt(qt?"landscape":"portrait")})},Wt=Qt=>{console.error("Error loading PDF:",Qt),Tt(!0)},$t=Qt=>{var zt;const jt=(zt=Qt.target.files)==null?void 0:zt[0];if(!jt)return;if(!validateDigitalIdFile(jt).isValid){Dt({countryCode:void 0,acceptedDocuments:[],failReason:"INVALID_FILE_TYPE"}),ht&&addEvent({token:ht,code:"digitalIdValidationError",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,payload:{errorType:"invalidFileType",fileSize:jt.size,fileType:jt.type,fileName:jt.name.split(".").pop()}});return}const qt=new File([jt],jt.name,{type:jt.type,lastModified:jt.lastModified});Le(qt)},Kt=()=>{xt.current&&!Et&&(xt.current.click(),ht&&addEvent({token:ht,code:"digitalIdFilePickerTriggered",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview}))},Vt=()=>{ht&&addEvent({token:ht,code:"digitalIdFlowCompleted",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,payload:{finalAction:"continue"}}),gt(),Ye==null||Ye()},Ut=()=>{ht&&addEvent({token:ht,code:"digitalIdTryAgain",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,payload:{errorType:Bt==null?void 0:Bt.failReason}}),At()},_t=async()=>{Be&&await Xt(Be)},Xt=async Qt=>{if(!ht)return;const jt=Date.now();yt(!0),kt(!1),bt(0),addEvent({token:ht,code:"digitalIdUploadInitiated",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,payload:{fileSize:Qt.size,fileType:Qt.type,fileName:Qt.name.split(".").pop()}});try{const Gt=new File([Qt],Qt.name,{type:Qt.type,lastModified:Qt.lastModified}),qt=await uploadDigitalId({token:ht,file:Gt,onProgress:s0=>{bt(Math.min(s0,90)),s0>=25&&s0<30?addEvent({token:ht,code:"digitalIdUploadProgress",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadProgress,payload:{progress:25,uploadDurationMs:Date.now()-jt}}):s0>=50&&s0<55?addEvent({token:ht,code:"digitalIdUploadProgress",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadProgress,payload:{progress:50,uploadDurationMs:Date.now()-jt}}):s0>=75&&s0<80&&addEvent({token:ht,code:"digitalIdUploadProgress",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadProgress,payload:{progress:75,uploadDurationMs:Date.now()-jt}})}}),zt=Date.now()-jt;if(qt.failReason){addEvent({token:ht,code:"digitalIdUploadFailed",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadFailed,payload:{failReason:qt.failReason,uploadDurationMs:zt,countryCode:qt.countryCode,acceptedDocuments:qt.acceptedDocuments}}),Dt({countryCode:qt.countryCode,acceptedDocuments:qt.acceptedDocuments||[],failReason:qt.failReason}),yt(!1);return}addEvent({token:ht,code:"digitalIdUploadSuccess",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadSuccess,payload:{uploadDurationMs:zt,sessionStatus:qt.sessionStatus,typeOfId:qt.typeOfId,skipBackIdCapture:qt.skipBackIdCapture}});const e0=Date.now();addEvent({token:ht,code:"digitalIdAnalysisStarted",module:eventModuleNames.front,screen:eventScreenNames.digitalIdAnalysisProgress,payload:{uploadDurationMs:zt}}),bt(100),kt(!0),yt(!1),setTimeout(()=>{const s0=Date.now()-e0;addEvent({token:ht,code:"digitalIdAnalysisCompleted",module:eventModuleNames.front,screen:eventScreenNames.digitalIdAnalysisProgress,payload:{analysisDurationMs:s0}}),addEvent({token:ht,code:"digitalIdVerificationSuccess",module:eventModuleNames.front,screen:eventScreenNames.digitalIdVerificationSuccess,payload:{sessionStatus:qt.sessionStatus,typeOfId:qt.typeOfId,skipBackIdCapture:qt.skipBackIdCapture}})},1e3)}catch(Gt){console.error("Error uploading PDF:",Gt);const qt=Date.now()-jt,zt=Gt instanceof Error?Gt.message:String(Gt),e0=zt.includes("ERR_UPLOAD_FILE_CHANGED")||zt.includes("file changed")||zt.includes("FILE_CHANGED");addEvent({token:ht,code:"digitalIdUploadFailed",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadFailed,payload:{failReason:e0?"FILE_CHANGED_ERROR":"NETWORK_ERROR",uploadDurationMs:qt,errorType:e0?"fileChanged":"network"}}),Dt({countryCode:void 0,acceptedDocuments:[],failReason:e0?"FILE_CHANGED_ERROR":"NETWORK_ERROR"}),yt(!1),bt(0)}};if(Bt){let Qt="";switch(Bt.failReason){case"DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED":Qt=nt("idv2.digitalIdUpload.errorScreen.thisIdMustBeScanned");break;case"ID_TYPE_UNACCEPTABLE":Qt=nt("idv2.digitalIdUpload.wrongDocumentTypeScreen.errorTitle");break;case"FILE_CHANGED_ERROR":Qt=nt("idv2.digitalIdUpload.errorScreen.fileChangedError");break;default:Qt=nt("idv2.digitalIdUpload.unknownDocumentTypeScreen.errorTitle");break}return jsxRuntimeExports.jsx(DigitalIdErrorState,{icon:jsxRuntimeExports.jsx(ErrorIcon$1,{}),title:Qt,subtitle:nt("idv2.digitalIdUpload.errorScreen.pleaseTryScanning"),buttonText:nt("idv2.digitalIdUpload.errorScreen.scanId"),onButtonClick:Ut,selectedFile:Be})}return Et||Ct?jsxRuntimeExports.jsx(Box,{hFull:!0,wFull:!0,position:"absolute",bg:ft.color.surface.neutral.light,zIndex:1e3,top:0,left:0,right:0,bottom:0,m:"auto",children:jsxRuntimeExports.jsxs(Flex,{position:"absolute",bottom:0,left:0,right:0,top:0,xsPt:"40px",direction:"column",align:"center",justify:"space-between",wFull:!0,hFull:!0,p:"20px",m:"auto",maxW:"450px",children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",justify:"center",maxW:"100%",wFull:!0,hFull:!0,children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",wFull:!0,mb:"32px",children:[Ct?jsxRuntimeExports.jsx(Flex,{direction:"column",align:"center",mb:"16px",children:jsxRuntimeExports.jsx(SuccessIcon$1,{size:32})}):jsxRuntimeExports.jsx("div",{style:{width:"143px",height:"8px",borderRadius:"100px",overflow:"hidden",backgroundColor:"#E9E9EB",marginBottom:"22px"},children:jsxRuntimeExports.jsx("div",{style:{width:Et?`${vt}%`:"60%",height:"100%",backgroundColor:"#189F60",transition:"width 0.6s cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:"100px"}})}),jsxRuntimeExports.jsx(Text$7,{fontSize:ft.typography.fontSize["2xl"],fontWeight:700,color:ft.color.text.body.primary,textAlign:"center",letterSpacing:ft.typography.letterSpacing.tight,children:nt(Ct?"idv2.digitalIdUpload.successfullyProcessed":"idv2.digitalIdUpload.analyzing")}),Ct&&jsxRuntimeExports.jsx(Text$7,{fontSize:ft.typography.fontSize.base,fontWeight:500,color:ft.color.text.body.secondary,textAlign:"center",letterSpacing:"-0.5px",mt:"8px",children:nt("idv2.digitalIdUpload.loadingSuccess.letsContinue")})]}),jsxRuntimeExports.jsxs(Flex,{align:"center",justify:"center",position:"relative",children:[It&&!Rt?jsxRuntimeExports.jsx(PdfPreview,{previewUrl:It,previewError:Rt,pageOrientation:Pt,width:156,height:221,showBorder:!0,borderColor:"#189F60",onLoadSuccess:Lt,onLoadError:Wt}):jsxRuntimeExports.jsx(UploadIDScreenImage,{size:191,isAnalyzing:!0}),Et&&jsxRuntimeExports.jsx(Flex,{position:"absolute",align:"center",justify:"center",style:{top:-2,transform:"scale(1.35)"},children:jsxRuntimeExports.jsx(Lottie,{animationData:idLaserVertical,loop:!0,style:{width:`${1*156}px`,height:`${1*231}px`}})})]}),jsxRuntimeExports.jsx(Spacer,{size:20})]}),Ct&&jsxRuntimeExports.jsx(Flex,{direction:"column",wFull:!0,children:jsxRuntimeExports.jsx(Button$b,{onClick:Vt,children:nt("idv2.digitalIdUpload.continue")})})]})}):jsxRuntimeExports.jsxs(Flex,{direction:"column",alignItems:"center",align:"center",justify:"space-between",pt:5,pb:3,hFull:!0,children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",justify:"flex-start",maxW:"100%",children:[jsxRuntimeExports.jsx(Text$7,{fontSize:ft.typography.fontSize["2xl"],fontWeight:700,color:ft.color.text.body.primary,textAlign:"center",letterSpacing:ft.typography.letterSpacing.tight,mb:3,children:nt("idv2.digitalIdUpload.reviewScreen.title")}),jsxRuntimeExports.jsx(Text$7,{fontSize:"16px",fontWeight:500,color:ft.color.text.body.secondary,textAlign:"center",letterSpacing:"-0.5px",mb:10,pl:0,pr:0,children:nt("idv2.digitalIdUpload.reviewScreen.description")}),jsxRuntimeExports.jsx("input",{ref:xt,type:"file",accept:"application/pdf",onChange:$t,style:{display:"none"}}),jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",mb:"24px",w:"100%",gap:2,children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",justify:"center",w:"114px",h:"162px",position:"relative",children:[Be&&It&&!Rt&&jsxRuntimeExports.jsx(PdfPreview,{previewUrl:It,previewError:Rt,pageOrientation:Pt,width:114,height:162,showBorder:!1,onLoadSuccess:Lt,onLoadError:Wt}),Be&&It&&Rt&&jsxRuntimeExports.jsx(UploadIDScreenImage,{size:132}),!Be&&jsxRuntimeExports.jsx(UploadIDScreenImage,{size:132})]}),Be&&jsxRuntimeExports.jsx(Flex,{align:"center",gap:2,children:jsxRuntimeExports.jsx(Text$7,{fontSize:ft.typography.fontSize.sm,fontWeight:500,color:ft.color.text.body.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxW:"200px",children:Be.name})})]}),Et&&jsxRuntimeExports.jsxs(Flex,{direction:"column",wFull:!0,mb:"16px",children:[jsxRuntimeExports.jsxs(Text$7,{fontSize:"14px",color:ft.color.text.body.secondary,textAlign:"center",mb:"8px",children:[nt("idv2.digitalIdUpload.uploading","Uploading...")," ",Math.round(vt),"%"]}),jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"4px",backgroundColor:ft.color.surface.neutral.light,borderRadius:"2px",overflow:"hidden"},children:jsxRuntimeExports.jsx("div",{style:{width:`${vt}%`,height:"100%",backgroundColor:ft.color.surface.primary[500],transition:"width 0.3s ease"}})})]})]}),jsxRuntimeExports.jsxs(Flex,{direction:"column",gap:3,wFull:!0,children:[jsxRuntimeExports.jsx(Button$b,{onClick:Be?_t:Kt,disabled:Et,children:nt(Be?"idv2.digitalIdUpload.reviewScreen.continue":"idv2.digitalIdUpload.digitalIdUploadButtonTitle")}),Be&&jsxRuntimeExports.jsx(Button$b,{onClick:Kt,disabled:Et,variant:"secondary",children:nt("idv2.digitalIdUpload.reviewScreen.replaceButton")})]})]})},DigitalIdFileSelection=({onFileSelected:Be})=>{const{t:Le}=useTranslation$1(),Ye=useTokens(),{token:tt}=useCaptureIdState(),nt=React.useRef(null),[ft,ht]=React.useState(null);React.useEffect(()=>{if(tt)return addScreenEvent({module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileSelection,token:tt,shouldOpen:!0}),()=>{addScreenEvent({module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileSelection,token:tt,shouldOpen:!1})}},[tt]);const gt=xt=>{var kt;const Et=(kt=xt.target.files)==null?void 0:kt[0];if(!Et)return;const yt=validateDigitalIdFile(Et);if(!yt.isValid){ht(getFileValidationErrorMessage(yt.errorMessage||"idv2.digitalIdUpload.invalidFileType",Le)),tt&&addEvent({token:tt,code:"digitalIdValidationError",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileSelection,payload:{errorType:"invalidFileType",fileSize:Et.size,fileType:Et.type,fileName:Et.name.split(".").pop()}});return}ht(null);const Ct=new File([Et],Et.name,{type:Et.type,lastModified:Et.lastModified});Be(Ct)},At=()=>{nt.current&&(nt.current.click(),tt&&addEvent({token:tt,code:"digitalIdFilePickerTriggered",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileSelection}))};return jsxRuntimeExports.jsxs(Flex,{direction:"column",alignItems:"center",align:"center",justify:"space-between",pt:3,pb:3,hFull:!0,children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",justify:"flex-start",maxW:"100%",children:[jsxRuntimeExports.jsx(Text$7,{fontSize:"16px",fontWeight:500,color:Ye.color.text.body.secondary,textAlign:"center",letterSpacing:"-0.5px",mb:"24px",pl:0,pr:0,children:Le("idv2.digitalIdUpload.screenDescription")}),jsxRuntimeExports.jsx(Flex,{direction:"column",align:"center",justify:"center",px:10,py:6,children:jsxRuntimeExports.jsx(UploadIDScreenImage,{})}),jsxRuntimeExports.jsx("input",{ref:nt,type:"file",accept:"application/pdf",onChange:gt,style:{display:"none"}}),ft&&jsxRuntimeExports.jsx(Text$7,{fontSize:"14px",color:Ye.color.text.status.negative,textAlign:"center",mb:"16px",children:ft})]}),jsxRuntimeExports.jsx(Flex,{direction:"column",gap:3,wFull:!0,children:jsxRuntimeExports.jsx(Button$b,{onClick:At,children:Le("idv2.digitalIdUpload.digitalIdUploadButtonTitle")})})]})},DigitalIdFlow=()=>{const{t:Be}=useTranslation$1(),{captureConfiguration:Le,token:Ye}=useCaptureIdState(),tt=Le.showTutorial?"fileSelection":"fileReview",[nt,ft]=React.useState(tt),[ht,gt]=React.useState(null),[At,xt]=React.useState(!1);React.useEffect(()=>(Ye&&addEvent({token:Ye,code:"digitalIdFlowInitiated",module:eventModuleNames.front,payload:{initialView:tt,showTutorial:Le.showTutorial}}),()=>{Ye&&!At&&addEvent({token:Ye,code:"digitalIdFlowAbandoned",module:eventModuleNames.front,payload:{currentView:nt,hasSelectedFile:!!ht}})}),[Ye,tt,Le.showTutorial,At,nt,ht]);const Et=kt=>{gt(kt),ft("fileReview"),Ye&&addEvent({token:Ye,code:"digitalIdViewTransition",module:eventModuleNames.front,payload:{fromView:"fileSelection",toView:"fileReview",fileSize:kt.size,fileType:kt.type}})},yt=kt=>{gt(kt),Ye&&addEvent({token:Ye,code:"digitalIdFileReplaced",module:eventModuleNames.front,payload:{fileSize:kt.size,fileType:kt.type}})},Ct=()=>{xt(!0),Ye&&addEvent({token:Ye,code:"digitalIdFlowCompleted",module:eventModuleNames.front,payload:{finalView:nt,hasSelectedFile:!!ht}})};return nt==="fileSelection"?jsxRuntimeExports.jsx(IdFlowPage,{title:Be("idv2.digitalIdUpload.screenTitle"),"data-testid":"digital-id-file-selection-page",maxW:"450px",children:jsxRuntimeExports.jsx(DigitalIdFileSelection,{onFileSelected:Et})}):nt==="fileReview"?jsxRuntimeExports.jsx(IdFlowPage,{"data-testid":"digital-id-file-review-page",maxW:"450px",children:jsxRuntimeExports.jsx(DigitalIdFileReview,{selectedFile:ht,onFileReplaced:yt,onFlowCompleted:Ct,autoTriggerPicker:!Le.showTutorial})}):null},defaultOrientation="horizontal";class IdDetectionManager extends EventEmitter$5{constructor({getCanvas:Le,onCapture:Ye,detectionIdType:tt,timeout:nt=1e3}){super(),this.pipeline=null,this.pipelineProfile=null,this.detectionState="detecting",this.idType=null,this.idSide=null,this.orientation=defaultOrientation,this.counterValue=null,this.isDetecting=!1,this.isProcessingLocked=!1,this.detectionTimeout=null,this.manualCaptureHasTriggered=!1,this.startDetectionTime=null,this.processFrame=async()=>{var ft,ht;if(!(!this.isDetecting||this.isProcessingLocked))try{const gt=(ft=this.getCanvas)==null?void 0:ft.call(this);if(!gt)return;this.isProcessingLocked=!0,this.pipeline||await this.initializePipeline(),this.pipelineProfile&&await MlWasmJSApi$1.handleDetectionCallAndUpdateState(this.pipelineProfile.pipelineType),await((ht=this.pipeline)==null?void 0:ht.detect(gt))}catch(gt){console.error("ID Detection error:",gt)}finally{await sleep(100),this.isProcessingLocked=!1}},this.handleOnCapturing=()=>{var ht;if(this.resetTimer(),!this.isDetecting)return;this.setDetectionState("capturing");const ft=`capture${this.detectionIdType}`;addEvent({token:(ht=idFlowManager.getToken)==null?void 0:ht.call(idFlowManager),code:ft,payload:{[ft]:!0}})},this.handleOnCapture=(ft,ht,gt)=>{this.setOrientation(gt),this.onCapture(ft,{qualityElements:ht,isManualCapture:!1})},this.switchToManualCapture=ft=>{var gt;const ht={[`manualCapture${this.detectionIdType}`]:!0,reason:ft===void 0?"needHelp":ft?"idleTimeout":"bestFrameTimeout"};this.startDetectionTime&&(ht.timeToManualCaptureMode=Date.now()-this.startDetectionTime,this.startDetectionTime=null),addEvent({token:(gt=idFlowManager.getToken)==null?void 0:gt.call(idFlowManager),code:`switchToManualCapture${this.detectionIdType}`,payload:ht}),this.manualCaptureHasTriggered=!0,this.setDetectionState("manualCapture"),this.stopDetection()},this.manualCapture=()=>{var gt,At;const ft=(gt=this.getCanvas)==null?void 0:gt.call(this);if(!ft)return;const ht=`manualCapture${this.detectionIdType}`;addEvent({token:(At=idFlowManager.getToken)==null?void 0:At.call(idFlowManager),code:ht,payload:{[ht]:!0}}),this.onCapture(ft,{isManualCapture:!0})},this.getCanvas=Le,this.onCapture=Ye,this.detectionIdType=tt,this.timeout=nt,window.addEventListener("offline",()=>{this.setDetectionState("offline"),this.stopDetection()}),window.addEventListener("online",()=>{this.setDetectionState("detecting"),this.startDetection()})}startDetection(){if(this.startDetectionTime=Date.now(),this.manualCaptureHasTriggered){this.setDetectionState("manualCapture"),this.stopDetection();return}this.isDetecting=!0,onFrameEmitter.on("newFrame",this.processFrame)}stopDetection(){this.isDetecting=!1,onFrameEmitter.off("newFrame",this.processFrame),this.detectionState="detecting",this.idType=null,this.idSide=null,this.orientation="horizontal",this.detectionTimeout&&(clearTimeout(this.detectionTimeout),this.detectionTimeout=null)}async initializePipeline(){const Le=idFlowManager.getCaptureConfiguration();this.pipelineProfile=detectionSetup.getProfile(DetectionType.IDCapture);const Ye=new IdCapture;await Ye.initialize({onCapturing:this.handleOnCapturing,onCapture:this.handleOnCapture,onFarAway:()=>this.setStateWithDelay("farAway"),onGlare:()=>this.setStateWithDelay("glare"),onBlur:()=>this.setStateWithDelay("blur"),onIDNotDetected:()=>this.setDetectionState("idNotDetected"),onSwitchToManualCapture:this.switchToManualCapture,onIDTypeChange:tt=>this.setIdType(tt),onIDSideChange:tt=>this.setIdSide(tt),onCapturingCounterValueChange:tt=>{this.counterValue=tt,this.emitState()},onMaskChange:(tt,nt,ft,ht)=>{ht&&this.setOrientation(ht)},onDetectionStarted:()=>{},idType:this.detectionIdType,isV2:!0,isFixedMask:!1,isBlurCheckEnabled:!1,isGlareCheckEnabled:!1,pipelineProfile:this.pipelineProfile,idDetectedTimeout:Le.idDetectedTimeout,autocaptureTimeout:Le.autoCaptureTimeout}),this.pipeline=Ye}resetTimer(){this.detectionTimeout&&(clearTimeout(this.detectionTimeout),this.detectionTimeout=null)}setStateWithDelay(Le){this.resetTimer(),this.detectionState!=="capturing"&&(this.setDetectionState(Le),this.detectionTimeout=setTimeout(()=>{this.setDetectionState("detecting"),this.isDetecting=!0,this.detectionTimeout=setTimeout(()=>{this.setDetectionState("idNotDetected")},3e3)},this.timeout))}setDetectionState(Le){this.detectionState=Le,this.emitState()}setIdType(Le){this.idType=Le,this.emitState()}setIdSide(Le){this.idSide=Le,this.emitState()}setOrientation(Le){this.orientation=Le,this.emitState()}emitState(){this.emit("stateChange",{detectionState:this.detectionState,idType:this.idType,idSide:this.idSide,orientation:this.orientation,counterValue:this.counterValue})}}const getDetectionIdTypeFromMode=Be=>{if(Be==="passport")return"Passport";if(Be==="front")return"FrontId";if(Be==="back")return"BackId"};function useIdDetection({getCanvas:Be,onCapture:Le,mode:Ye}){const[tt,nt]=React.useState("detecting"),[ft,ht]=React.useState(null),[gt,At]=React.useState(null),[xt,Et]=React.useState(defaultOrientation),[yt,Ct]=React.useState(null),kt=React.useRef(Be),vt=React.useRef(Le),bt=React.useRef(null);React.useEffect(()=>{kt.current=Be,vt.current=Le},[Be,Le]),React.useEffect(()=>{const Kt=new IdDetectionManager({getCanvas:()=>kt.current(),onCapture:(Ut,_t)=>vt.current(Ut,_t),detectionIdType:getDetectionIdTypeFromMode(Ye)});bt.current=Kt;const Vt=Ut=>{nt(Ut.detectionState),ht(Ut.idType),At(Ut.idSide),Et(Ut.orientation),Ut.counterValue!==null&&Ct(Ut.counterValue)};return Kt.on("stateChange",Vt),()=>{Kt.stopDetection(),Kt.off("stateChange",Vt),Kt.removeAllListeners()}},[Ye]);const It=()=>{var Kt;return(Kt=bt.current)==null?void 0:Kt.startDetection()},wt=()=>{var Kt;return(Kt=bt.current)==null?void 0:Kt.stopDetection()};function Rt(){if(Ye==="front")return gt==="back";if(Ye==="back")return gt==="front";if(Ye==="passport")return gt==="back"}const Tt=tt==="idNotDetected",Bt=tt==="capturing",Dt=tt==="farAway",Pt=tt==="glare",Nt=tt==="blur",Lt=tt==="manualCapture",Wt=tt==="detecting"||tt==="idNotDetected"||tt==="manualCapture",$t=Dt||Pt||Nt;return{startDetection:It,stopDetection:wt,detectionState:tt,idType:ft,idSide:gt,shouldShowIdHint:Tt,isCapturing:Bt,isFarAway:Dt,isGlare:Pt,isBlur:Nt,isManualCapture:Lt,isWrongSide:Rt(),isIdle:Wt,isBadState:$t,orientation:xt,counterValue:yt,switchToManualCapture:()=>{var Kt;return(Kt=bt.current)==null?void 0:Kt.switchToManualCapture()},onManualCapture:()=>{var Kt;return(Kt=bt.current)==null?void 0:Kt.manualCapture()}}}const ratios={horizontal:{id:22/35,passport:30/42},vertical:{id:35/22,passport:42/30}},getRatioValue=(Be,Le="id")=>ratios[Be][Le];function useAspectRatio(Be,Le,Ye="id"){const[tt,nt]=React.useState(),[ft,ht]=React.useState();return React.useEffect(()=>{if(!Le)return;const gt=getRatioValue(Le,Ye);if(typeof window.CSS<"u"&&window.CSS.supports("aspect-ratio","1")){nt(void 0),ht(void 0);return}function xt(){var Ct,kt,vt,bt,It,wt,Rt,Tt;const Et=(Ct=idFlowManager.getFrameSizeByOrientation(Le))!=null&&Ct.width?(kt=idFlowManager.getFrameSizeByOrientation(Le))==null?void 0:kt.width:((vt=Be.current)==null?void 0:vt.offsetWidth)??0,yt=(bt=idFlowManager.getFrameSizeByOrientation(Le))!=null&&bt.height?(It=idFlowManager.getFrameSizeByOrientation(Le))==null?void 0:It.height:((wt=Be.current)==null?void 0:wt.offsetHeight)??0;(Rt=idFlowManager.getFrameSizeByOrientation(Le))!=null&&Rt.height?(Tt=idFlowManager.getFrameSizeByOrientation(Le))!=null&&Tt.width||(ht(yt/gt),nt(yt)):(nt(Et*gt),ht(Et))}return xt(),window.addEventListener("resize",xt),()=>window.removeEventListener("resize",xt)},[Ye,Le]),{height:tt,width:ft}}const COUNTER_SIZE=92,BORDER_SIZE=4,Container$d=dt.div`
|
|
5435
|
+
`,UploadIDScreenImage=({shirtColor:Be,size:Le=191,isAnalyzing:Ye=!1,isError:tt=!1})=>{const nt=useTokens(),ft=Be||nt.color.surface.primary[500];return jsxRuntimeExports.jsx(Container$e,{children:jsxRuntimeExports.jsxs("svg",{width:Le,height:Le*266/191,viewBox:"0 0 191 266",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"uploadIdScreenImageTitle",role:"img",children:[jsxRuntimeExports.jsx("title",{id:"uploadIdScreenImageTitle",children:"Upload ID Screen Image"}),jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{d:"M17.5 11.1724C17.5 7.21119 20.7112 4 24.6724 4H166.328C170.289 4 173.5 7.2112 173.5 11.1724V228.138C173.5 232.099 170.289 235.31 166.328 235.31H24.6724C20.7112 235.31 17.5 232.099 17.5 228.138V11.1724Z",fill:"white"}),jsxRuntimeExports.jsx("rect",{x:"98.1895",y:"35.3799",width:"68.1379",height:"83.3793",rx:"7.17241",fill:Ye||tt?"#E9E9EB":"#F0F6FF"}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M124.391 67.5897C124.391 68.725 123.469 69.6497 122.331 69.6497H114.953C113.818 69.6497 112.893 68.725 112.893 67.5897V60.2117C112.893 59.074 113.818 58.1518 114.953 58.1518H122.331C123.469 58.1518 124.391 59.074 124.391 60.2117V67.5897ZM122.331 53.3105H114.953C111.148 53.3105 108.052 56.4065 108.052 60.2117V67.5897C108.052 71.3949 111.148 74.4909 114.953 74.4909H122.331C126.136 74.4909 129.232 71.3949 129.232 67.5897V60.2117C129.232 56.4065 126.136 53.3105 122.331 53.3105Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M118.643 61.4951C117.307 61.4951 116.223 62.5941 116.223 63.9303C116.223 65.2664 117.307 66.3509 118.643 66.3509C119.979 66.3509 121.064 65.2664 121.064 63.9303V63.9012C121.064 62.565 119.979 61.4951 118.643 61.4951Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M118.643 88.7246C117.307 88.7246 116.223 89.8236 116.223 91.1597C116.223 92.4959 117.307 93.5804 118.643 93.5804C119.979 93.5804 121.064 92.4959 121.064 91.1597V91.1307C121.064 89.7945 119.979 88.7246 118.643 88.7246Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M124.391 94.8222C124.391 95.9574 123.469 96.8821 122.331 96.8821H114.953C113.818 96.8821 112.893 95.9574 112.893 94.8222V87.4441C112.893 86.3064 113.818 85.3842 114.953 85.3842H122.331C123.469 85.3842 124.391 86.3064 124.391 87.4441V94.8222ZM122.331 80.543H114.953C111.148 80.543 108.052 83.6389 108.052 87.4441V94.8222C108.052 98.6274 111.148 101.723 114.953 101.723H122.331C126.136 101.723 129.232 98.6274 129.232 94.8222V87.4441C129.232 83.6389 126.136 80.543 122.331 80.543Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M151.623 94.8222C151.623 95.9574 150.701 96.8821 149.563 96.8821H142.185C141.05 96.8821 140.125 95.9574 140.125 94.8222V87.4441C140.125 86.3064 141.05 85.3842 142.185 85.3842H149.563C150.701 85.3842 151.623 86.3064 151.623 87.4441V94.8222ZM149.563 80.543H142.185C138.38 80.543 135.284 83.6389 135.284 87.4441V94.8222C135.284 98.6274 138.38 101.723 142.185 101.723H149.563C153.369 101.723 156.465 98.6274 156.465 94.8222V87.4441C156.465 83.6389 153.369 80.543 149.563 80.543Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M145.876 88.6826C144.54 88.6826 143.455 89.7671 143.455 91.1032V91.1299C143.455 92.466 144.54 93.5359 145.876 93.5359C147.212 93.5359 148.296 92.4394 148.296 91.1032C148.296 89.7671 147.212 88.6826 145.876 88.6826Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M137.705 58.18C139.041 58.18 140.125 57.0955 140.125 55.7594V55.7303C140.125 54.3941 139.041 53.3242 137.705 53.3242C136.369 53.3242 135.284 54.4232 135.284 55.7594C135.284 57.0955 136.369 58.18 137.705 58.18Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M150.487 53.3105H145.876C144.537 53.3105 143.455 54.395 143.455 55.7312C143.455 57.0673 144.537 58.1518 145.876 58.1518H150.487C151.114 58.1518 151.625 58.6625 151.625 59.2919V63.9007C151.625 65.2369 152.707 66.3213 154.045 66.3213C155.381 66.3213 156.466 65.2369 156.466 63.9007V59.2919C156.466 55.9926 153.784 53.3105 150.487 53.3105Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M154.045 69.6514H145.876C144.54 69.6514 143.455 70.7358 143.455 72.072C143.455 73.4081 144.54 74.4925 145.876 74.4925H154.045C155.381 74.4925 156.466 73.4081 156.466 72.072C156.466 70.7358 155.381 69.6514 154.045 69.6514Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M137.705 74.4922C139.041 74.4922 140.125 73.4078 140.125 72.0716V67.4604C140.125 66.8334 140.636 66.3227 141.266 66.3227H145.874C147.211 66.3227 148.295 65.2382 148.295 63.9021C148.295 62.5659 147.211 61.4814 145.874 61.4814H141.266C137.966 61.4814 135.284 64.1635 135.284 67.4604V72.0716C135.284 73.4078 136.369 74.4922 137.705 74.4922Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("rect",{x:"29.1553",y:"134",width:"54.6897",height:"10.7586",rx:"3.58621",fill:"#EBECEF"}),jsxRuntimeExports.jsx("rect",{x:"17.5",y:"16.5518",width:"156",height:"10.7586",fill:"#EBECEF"}),jsxRuntimeExports.jsx("rect",{x:"29.1553",y:"152.828",width:"54.6897",height:"10.7586",rx:"3.58621",fill:"#EBECEF"}),jsxRuntimeExports.jsx("rect",{x:"29.1553",y:"171.655",width:"72.6207",height:"10.7586",rx:"3.58621",fill:"#EBECEF"})]}),jsxRuntimeExports.jsx("path",{d:"M24.6729 4.44824H166.327C170.041 4.44824 173.052 7.45921 173.052 11.1729V228.138C173.052 231.851 170.041 234.862 166.327 234.862H24.6729C20.9592 234.862 17.9482 231.851 17.9482 228.138V11.1729C17.9482 7.45921 20.9592 4.44824 24.6729 4.44824Z",stroke:Ye?"#189F60":tt?"#E71111":"#EBECEF","stroke-width":Ye||tt?"4":"0.896552"})]}),jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("rect",{x:"24.6729",y:"35.8066",width:"68.1379",height:"82.9505",rx:"4.93753",fill:Ye||tt?"#E9E9EB":"#F0F6FF"}),jsxRuntimeExports.jsx("path",{d:"M49.36 91.1735V91.2999C49.3251 93.9726 47.0753 95.9823 42.6104 97.3291C47.9904 101.237 53.3707 104.364 58.7507 104.364C64.1307 104.364 69.5111 101.237 74.8911 97.3291C70.4565 95.9808 68.2066 93.968 68.1415 91.2908C68.1415 90.2747 68.145 80.3761 68.1497 79.36C68.4704 79.4052 68.4432 79.3765 68.1497 79.295C68.1585 75.9478 68.1729 80.3294 68.1928 75.7552C68.2128 71.181 49.0493 67.0886 49.3306 79.6487C49.3344 80.9294 49.3421 89.7232 49.36 91.1735Z",fill:"#E0E0E0"}),jsxRuntimeExports.jsx("path",{d:"M92.8103 106.416C92.8103 108.838 92.8103 111.556 92.8103 113.823C92.8103 116.55 90.5997 118.759 87.8728 118.759H29.6104C26.8835 118.759 24.6729 116.55 24.6729 113.823C24.6729 111.669 24.6729 109.075 24.6729 106.609C27.8413 100.94 46.2752 95.6817 46.2752 95.6817C47.9856 98.7716 53.0062 101.59 58.1454 101.716C63.7221 101.853 69.4385 99.0337 71.2165 95.6797C71.2165 95.6797 89.6412 100.745 92.8103 106.416Z",fill:Ye||tt?"#757575":ft}),jsxRuntimeExports.jsx("path",{d:"M49.1074 85.037C56.9841 84.2188 64.4004 87.6292 64.4004 87.6292C64.4004 87.6292 62.9302 95.3516 49.1074 93.1072V85.037Z",fill:"#CDCDCD"}),jsxRuntimeExports.jsx("path",{d:"M42.6488 68.8767C43.699 67.1248 45.009 68.3295 45.5328 69.1509L46.2644 76.9402C46.2387 77.6181 45.8326 78.0487 44.7734 78.1827C43.4493 78.3502 42.5746 74.7442 42.2696 73.3982C41.9645 72.0521 41.336 71.0665 42.6488 68.8767Z",fill:"#D0D0D0"}),jsxRuntimeExports.jsx("path",{d:"M74.3552 69.3252C73.3216 67.5635 72.0003 68.7558 71.4688 69.5721L70.6635 77.3542C70.6827 78.0322 71.0848 78.4667 72.1427 78.6107C73.4651 78.7907 74.3739 75.1932 74.6917 73.8501C75.0094 72.507 75.6472 71.5273 74.3552 69.3252Z",fill:"#D0D0D0"}),jsxRuntimeExports.jsx("path",{d:"M73.3109 70.6918C73.3109 81.9566 65.1557 91.0886 58.7907 91.0886C51.829 91.0886 44.2705 81.9566 44.2705 70.6918C44.2705 60.6551 45.0714 49.9307 58.7907 49.9307C72.51 49.9307 73.3109 60.423 73.3109 70.6918Z",fill:"#FAFAFA"})]})]})})},fr$6=60,v$6="5.9.6",ip$6=0,op$6=161,w$6=271,h$7=390,nm$6="id_laser_v",ddd$6=0,markers$6=[],assets$6=[{nm:"id_laser_v",fr:60,id:"m8gbp0cygyhyhkn8",layers:[{ty:3,ddd:0,ind:5,hd:!1,nm:"id_laser_v - Null",sr:1,ks:{a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ty:3,ddd:0,ind:6,hd:!1,nm:"Rectangle 465 - Null",sr:1,parent:5,ks:{a:{a:0,k:[74,195]},o:{a:0,k:100},p:{a:1,k:[{t:0,s:[116,195],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:59.772,s:[155,195],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:67.992,s:[148,195],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:139.908,s:[116,195]}]},r:{a:0,k:0},s:{a:1,k:[{t:0,s:[100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:59.772,s:[-100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:67.992,s:[-100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:139.908,s:[100,100]}]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ty:4,ddd:0,ind:7,hd:!1,nm:"Rectangle 465",sr:1,parent:6,ks:{a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}},ao:0,ip:0,op:162,st:0,bm:0,shapes:[{ty:"gr",nm:"Group",hd:!1,np:3,it:[{ty:"sh",nm:"Path",hd:!1,ks:{a:0,k:{c:!0,v:[[3.4546,343.2121],[1e-4,329.7788],[1e-4,58.7552],[3.4546,45.3219],[72.7499,.0697],[74.0001,3.2919],[74.0001,386.7085],[72.7499,389.9306],[3.4546,343.2121]],i:[[0,0],[0,6.5041],[0,0],[-2.0118,1.319],[0,0],[0,-2.0856],[0,0],[.6451,.423],[0,0]],o:[[-2.01182,-1.319029999999998],[0,0],[0,-6.50412],[0,0],[.6451200000000057,-.42297],[0,0],[0,2.085640000000012],[0,0],[0,0]]}}},{ty:"gf",o:{a:0,k:100},g:{p:4,k:{a:0,k:[0,1,1,1,.2396,1,1,1,.4948,1,1,1,.8906,1,1,1,0,1,.2396,.58,.4948,.3,.8906,0]}},s:{a:0,k:[30989068029558517e-22,194.9998238535722]},e:{a:0,k:[68.99999654078556,194.9998238535725]},t:1,nm:"Fill",hd:!1,r:1},{ty:"tr",a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}}]}]}]}],layers$6=[{ty:3,ddd:0,ind:5,hd:!1,nm:"id_laser_v - Null",sr:1,ks:{a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"id_laser_v",refId:"m8gbp0cygyhyhkn8",sr:1,ks:{a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}},ao:0,w:271,h:390,ip:0,op:162,st:0,hd:!1,bm:0}],meta$1={a:"",d:"",tc:"",g:"Aninix"},idLaserVertical={fr:fr$6,v:v$6,ip:ip$6,op:op$6,w:w$6,h:h$7,nm:nm$6,ddd:ddd$6,markers:markers$6,assets:assets$6,layers:layers$6,meta:meta$1},uploadDigitalId=async({token:Be,file:Le,onProgress:Ye=()=>{}})=>{const tt=Date.now(),nt=await exports.api.post("/omni/add/front-id?idType=DigitalId",Le,{headers:{"X-Incode-Hardware-Id":Be,"Content-Type":Le.type||"application/octet-stream"},onUploadProgress:({loaded:gt,total:At})=>{const xt=gt/At*100;Ye(xt)}}),ft=Date.now(),ht=ft-tt;return{...nt.data,uploadDurationMs:ht,uploadStartTime:tt,uploadEndTime:ft}},validateDigitalIdFile=Be=>{var nt;const Le=["application/pdf"],Ye=[".pdf"],tt=`.${(nt=Be.name.split(".").pop())==null?void 0:nt.toLowerCase()}`;return!Le.includes(Be.type)&&!Ye.includes(tt)?{isValid:!1,errorMessage:"idv2.digitalIdUpload.invalidFileType"}:{isValid:!0}},getFileValidationErrorMessage=(Be,Le)=>{switch(Be){case"idv2.digitalIdUpload.invalidFileType":return Le("idv2.digitalIdUpload.invalidFileType");case"idv2.digitalIdUpload.fileTooBig":return Le("idv2.digitalIdUpload.fileTooBig");default:return Le("idv2.digitalIdUpload.invalidFileType")}},PdfPreview=({previewUrl:Be,previewError:Le,pageOrientation:Ye,width:tt,height:nt,showBorder:ft=!1,borderColor:ht="#189F60",onLoadSuccess:gt,onLoadError:At})=>{const[xt,Et]=React.useState(!1),yt=React.useRef(),Ct=React.useRef(null);if(React.useEffect(()=>{yt.current!==Be&&(Et(!1),yt.current=Be,Ct.current&&(clearTimeout(Ct.current),Ct.current=null),Ct.current=setTimeout(()=>{const bt=new Error("PDF preview loading timeout");At(bt)},5e3))}),React.useEffect(()=>()=>{Ct.current&&clearTimeout(Ct.current)},[]),!Be||Le)return null;const kt=bt=>{Ct.current&&(clearTimeout(Ct.current),Ct.current=null),gt(bt),setTimeout(()=>{Et(!0)},200)},vt=bt=>{Ct.current&&(clearTimeout(Ct.current),Ct.current=null),Et(!1),At(bt)};return jsxRuntimeExports.jsx(Flex,{direction:"column",align:"center",justify:"center",overflow:"hidden",borderRadius:"8px",w:`${tt}px`,h:`${nt}px`,border:ft?`4px solid ${ht}`:"1px solid #E9E9EB",children:jsxRuntimeExports.jsx("div",{style:{opacity:xt?1:0,transition:"opacity 0.2s ease-in-out"},children:jsxRuntimeExports.jsx(Document$1,{file:Be,onLoadSuccess:kt,onLoadError:vt,loading:jsxRuntimeExports.jsx(Flex,{align:"center",justify:"center",w:`${tt}px`,h:`${nt}px`}),children:jsxRuntimeExports.jsx("div",{style:{transform:Ye==="landscape"?"rotate(90deg)":"none",transformOrigin:"center"},children:jsxRuntimeExports.jsx(Page,{pageNumber:1,width:tt,height:nt,renderTextLayer:!1,renderAnnotationLayer:!1})})})},Be)})},DigitalIdErrorState=({icon:Be,title:Le,subtitle:Ye,onButtonClick:tt,buttonText:nt,selectedFile:ft})=>{const{t:ht}=useTranslation$1(),gt=useTokens(),{token:At}=useCaptureIdState(),[xt,Et]=React.useState(null),[yt,Ct]=React.useState(!1),[kt,vt]=React.useState("portrait");React.useEffect(()=>{At&&addEvent({token:At,code:"digitalIdErrorDisplayed",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadFailed,payload:{errorTitle:Le,hasSelectedFile:!!ft,fileSize:ft==null?void 0:ft.size,fileType:ft==null?void 0:ft.type}})},[At,Le,ft]),React.useEffect(()=>{if(ft){const Rt=URL.createObjectURL(ft);return Et(Rt),Ct(!1),()=>{URL.revokeObjectURL(Rt)}}},[ft]);const bt=Rt=>{Ct(!1),Rt.getPage(1).then(Tt=>{const Bt=Tt.getViewport({scale:1}),Dt=Bt.width>Bt.height;vt(Dt?"landscape":"portrait")})},It=Rt=>{console.error("Error loading PDF:",Rt),Ct(!0)},wt=()=>{At&&addEvent({token:At,code:"digitalIdErrorAction",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadFailed,payload:{action:"tryAgain",errorTitle:Le}}),tt==null||tt()};return jsxRuntimeExports.jsx(Box,{hFull:!0,wFull:!0,position:"absolute",bg:gt.color.surface.neutral.light,zIndex:1e3,top:0,left:0,right:0,bottom:0,m:"auto",children:jsxRuntimeExports.jsxs(Flex,{position:"absolute",bottom:0,left:0,right:0,top:0,xsPt:"40px",direction:"column",align:"center",justify:"space-between",wFull:!0,hFull:!0,p:"20px",m:"auto",maxW:"450px",children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",justify:"center",maxW:"100%",wFull:!0,hFull:!0,children:[jsxRuntimeExports.jsx(Flex,{content:"center",mt:10,mb:3,children:Be}),jsxRuntimeExports.jsx(Title$o,{textAlign:"center",letterSpacing:gt.typography.letterSpacing.tight,lineHeight:"114%",color:gt.color.surface.neutral.dark,fontSize:gt.typography.fontSize["2xl"],pl:5,pr:5,children:Le}),jsxRuntimeExports.jsx(Spacer,{size:3}),jsxRuntimeExports.jsx(Text$7,{color:gt.color.text.body.secondary,fontWeight:"500",textAlign:"center",fontSize:gt.typography.fontSize.base,letterSpacing:-.5,pl:4,pr:4,mb:10,children:Ye}),xt&&!yt&&jsxRuntimeExports.jsx(PdfPreview,{previewUrl:xt,previewError:yt,pageOrientation:kt,width:156,height:221,showBorder:!0,borderColor:"#E71111",onLoadSuccess:bt,onLoadError:It}),xt&&yt&&jsxRuntimeExports.jsx(UploadIDScreenImage,{isError:!0,size:132}),jsxRuntimeExports.jsx(Spacer,{size:20})]}),jsxRuntimeExports.jsx(Flex,{direction:"column",wFull:!0,children:jsxRuntimeExports.jsx(Button$b,{onClick:wt,children:jsxRuntimeExports.jsx(Text$7,{color:gt.color.text.body.invert,fontSize:gt.typography.fontSize.lg,fontWeight:gt.typography.fontWeight.medium,textAlign:"center",children:nt??ht("idv2.digitalIdUpload.tryAgain")})})})]})})};__webpack_exports__GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${__webpack_exports__version}/pdf.worker.min.mjs`;const DigitalIdFileReview=({selectedFile:Be,onFileReplaced:Le,onFlowCompleted:Ye,autoTriggerPicker:tt=!1})=>{const{t:nt}=useTranslation$1(),ft=useTokens(),{token:ht,completeFlow:gt,goToIdStep:At}=useCaptureIdState(),xt=React.useRef(null),[Et,yt]=React.useState(!1),[Ct,kt]=React.useState(!1),[vt,bt]=React.useState(0),[It,wt]=React.useState(null),[Rt,Tt]=React.useState(!1),[Bt,Dt]=React.useState(null),[Pt,Nt]=React.useState("portrait");React.useEffect(()=>{if(ht)return addScreenEvent({module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,token:ht,shouldOpen:!0}),()=>{addScreenEvent({module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,token:ht,shouldOpen:!1})}},[ht]),React.useEffect(()=>{tt&&!Be&&Kt()},[tt,Be]),React.useEffect(()=>{if(Be){Tt(!1);const Qt=URL.createObjectURL(Be);return wt(Qt),()=>{URL.revokeObjectURL(Qt)}}wt(null)},[Be]);const Lt=Qt=>{Tt(!1),Qt.getPage(1).then(jt=>{const Gt=jt.getViewport({scale:1}),qt=Gt.width>Gt.height;Nt(qt?"landscape":"portrait")})},Wt=Qt=>{console.error("Error loading PDF:",Qt),Tt(!0)},$t=Qt=>{var zt;const jt=(zt=Qt.target.files)==null?void 0:zt[0];if(!jt)return;if(!validateDigitalIdFile(jt).isValid){Dt({countryCode:void 0,acceptedDocuments:[],failReason:"INVALID_FILE_TYPE"}),ht&&addEvent({token:ht,code:"digitalIdValidationError",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,payload:{errorType:"invalidFileType",fileSize:jt.size,fileType:jt.type,fileName:jt.name.split(".").pop()}});return}const qt=new File([jt],jt.name,{type:jt.type,lastModified:jt.lastModified});Le(qt)},Kt=()=>{xt.current&&!Et&&(xt.current.click(),ht&&addEvent({token:ht,code:"digitalIdFilePickerTriggered",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview}))},Vt=()=>{ht&&addEvent({token:ht,code:"digitalIdFlowCompleted",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,payload:{finalAction:"continue"}}),gt(),Ye==null||Ye()},Ut=()=>{ht&&addEvent({token:ht,code:"digitalIdTryAgain",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,payload:{errorType:Bt==null?void 0:Bt.failReason}}),At()},_t=async()=>{Be&&await Xt(Be)},Xt=async Qt=>{if(!ht)return;const jt=Date.now();yt(!0),kt(!1),bt(0),addEvent({token:ht,code:"digitalIdUploadInitiated",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileReview,payload:{fileSize:Qt.size,fileType:Qt.type,fileName:Qt.name.split(".").pop()}});try{const Gt=new File([Qt],Qt.name,{type:Qt.type,lastModified:Qt.lastModified}),qt=await uploadDigitalId({token:ht,file:Gt,onProgress:s0=>{bt(Math.min(s0,90)),s0>=25&&s0<30?addEvent({token:ht,code:"digitalIdUploadProgress",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadProgress,payload:{progress:25,uploadDurationMs:Date.now()-jt}}):s0>=50&&s0<55?addEvent({token:ht,code:"digitalIdUploadProgress",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadProgress,payload:{progress:50,uploadDurationMs:Date.now()-jt}}):s0>=75&&s0<80&&addEvent({token:ht,code:"digitalIdUploadProgress",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadProgress,payload:{progress:75,uploadDurationMs:Date.now()-jt}})}}),zt=Date.now()-jt;if(qt.failReason){addEvent({token:ht,code:"digitalIdUploadFailed",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadFailed,payload:{failReason:qt.failReason,uploadDurationMs:zt,countryCode:qt.countryCode,acceptedDocuments:qt.acceptedDocuments}}),Dt({countryCode:qt.countryCode,acceptedDocuments:qt.acceptedDocuments||[],failReason:qt.failReason}),yt(!1);return}addEvent({token:ht,code:"digitalIdUploadSuccess",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadSuccess,payload:{uploadDurationMs:zt,sessionStatus:qt.sessionStatus,typeOfId:qt.typeOfId,skipBackIdCapture:qt.skipBackIdCapture}});const e0=Date.now();addEvent({token:ht,code:"digitalIdAnalysisStarted",module:eventModuleNames.front,screen:eventScreenNames.digitalIdAnalysisProgress,payload:{uploadDurationMs:zt}}),bt(100),kt(!0),yt(!1),setTimeout(()=>{const s0=Date.now()-e0;addEvent({token:ht,code:"digitalIdAnalysisCompleted",module:eventModuleNames.front,screen:eventScreenNames.digitalIdAnalysisProgress,payload:{analysisDurationMs:s0}}),addEvent({token:ht,code:"digitalIdVerificationSuccess",module:eventModuleNames.front,screen:eventScreenNames.digitalIdVerificationSuccess,payload:{sessionStatus:qt.sessionStatus,typeOfId:qt.typeOfId,skipBackIdCapture:qt.skipBackIdCapture}})},1e3)}catch(Gt){console.error("Error uploading PDF:",Gt);const qt=Date.now()-jt,zt=Gt instanceof Error?Gt.message:String(Gt),e0=zt.includes("ERR_UPLOAD_FILE_CHANGED")||zt.includes("file changed")||zt.includes("FILE_CHANGED");addEvent({token:ht,code:"digitalIdUploadFailed",module:eventModuleNames.front,screen:eventScreenNames.digitalIdUploadFailed,payload:{failReason:e0?"FILE_CHANGED_ERROR":"NETWORK_ERROR",uploadDurationMs:qt,errorType:e0?"fileChanged":"network"}}),Dt({countryCode:void 0,acceptedDocuments:[],failReason:e0?"FILE_CHANGED_ERROR":"NETWORK_ERROR"}),yt(!1),bt(0)}};if(Bt){let Qt="";switch(Bt.failReason){case"DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED":Qt=nt("idv2.digitalIdUpload.errorScreen.thisIdMustBeScanned");break;case"ID_TYPE_UNACCEPTABLE":Qt=nt("idv2.digitalIdUpload.wrongDocumentTypeScreen.errorTitle");break;case"FILE_CHANGED_ERROR":Qt=nt("idv2.digitalIdUpload.errorScreen.fileChangedError");break;default:Qt=nt("idv2.digitalIdUpload.unknownDocumentTypeScreen.errorTitle");break}return jsxRuntimeExports.jsx(DigitalIdErrorState,{icon:jsxRuntimeExports.jsx(ErrorIcon$1,{}),title:Qt,subtitle:nt("idv2.digitalIdUpload.errorScreen.pleaseTryScanning"),buttonText:nt("idv2.digitalIdUpload.errorScreen.scanId"),onButtonClick:Ut,selectedFile:Be})}return Et||Ct?jsxRuntimeExports.jsx(Box,{hFull:!0,wFull:!0,position:"absolute",bg:ft.color.surface.neutral.light,zIndex:1e3,top:0,left:0,right:0,bottom:0,m:"auto",children:jsxRuntimeExports.jsxs(Flex,{position:"absolute",bottom:0,left:0,right:0,top:0,xsPt:"40px",direction:"column",align:"center",justify:"space-between",wFull:!0,hFull:!0,p:"20px",m:"auto",maxW:"450px",children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",justify:"center",maxW:"100%",wFull:!0,hFull:!0,children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",wFull:!0,mb:"32px",children:[Ct?jsxRuntimeExports.jsx(Flex,{direction:"column",align:"center",mb:"16px",children:jsxRuntimeExports.jsx(SuccessIcon$1,{size:32})}):jsxRuntimeExports.jsx("div",{style:{width:"143px",height:"8px",borderRadius:"100px",overflow:"hidden",backgroundColor:"#E9E9EB",marginBottom:"22px"},children:jsxRuntimeExports.jsx("div",{style:{width:Et?`${vt}%`:"60%",height:"100%",backgroundColor:"#189F60",transition:"width 0.6s cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:"100px"}})}),jsxRuntimeExports.jsx(Text$7,{fontSize:ft.typography.fontSize["2xl"],fontWeight:700,color:ft.color.text.body.primary,textAlign:"center",letterSpacing:ft.typography.letterSpacing.tight,children:nt(Ct?"idv2.digitalIdUpload.successfullyProcessed":"idv2.digitalIdUpload.analyzing")}),Ct&&jsxRuntimeExports.jsx(Text$7,{fontSize:ft.typography.fontSize.base,fontWeight:500,color:ft.color.text.body.secondary,textAlign:"center",letterSpacing:"-0.5px",mt:"8px",children:nt("idv2.digitalIdUpload.loadingSuccess.letsContinue")})]}),jsxRuntimeExports.jsxs(Flex,{align:"center",justify:"center",position:"relative",children:[It&&!Rt?jsxRuntimeExports.jsx(PdfPreview,{previewUrl:It,previewError:Rt,pageOrientation:Pt,width:156,height:221,showBorder:!0,borderColor:"#189F60",onLoadSuccess:Lt,onLoadError:Wt}):jsxRuntimeExports.jsx(UploadIDScreenImage,{size:191,isAnalyzing:!0}),Et&&jsxRuntimeExports.jsx(Flex,{position:"absolute",align:"center",justify:"center",style:{top:-2,transform:"scale(1.35)"},children:jsxRuntimeExports.jsx(Lottie,{animationData:idLaserVertical,loop:!0,style:{width:`${1*156}px`,height:`${1*231}px`}})})]}),jsxRuntimeExports.jsx(Spacer,{size:20})]}),Ct&&jsxRuntimeExports.jsx(Flex,{direction:"column",wFull:!0,children:jsxRuntimeExports.jsx(Button$b,{onClick:Vt,children:nt("idv2.digitalIdUpload.continue")})})]})}):jsxRuntimeExports.jsxs(Flex,{direction:"column",alignItems:"center",align:"center",justify:"space-between",pt:5,pb:3,hFull:!0,children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",justify:"flex-start",maxW:"100%",children:[jsxRuntimeExports.jsx(Text$7,{fontSize:ft.typography.fontSize["2xl"],fontWeight:700,color:ft.color.text.body.primary,textAlign:"center",letterSpacing:ft.typography.letterSpacing.tight,mb:3,children:nt("idv2.digitalIdUpload.reviewScreen.title")}),jsxRuntimeExports.jsx(Text$7,{fontSize:"16px",fontWeight:500,color:ft.color.text.body.secondary,textAlign:"center",letterSpacing:"-0.5px",mb:10,pl:0,pr:0,children:nt("idv2.digitalIdUpload.reviewScreen.description")}),jsxRuntimeExports.jsx("input",{ref:xt,type:"file",accept:"application/pdf",onChange:$t,style:{display:"none"}}),jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",mb:"24px",w:"100%",gap:2,children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",justify:"center",w:"114px",h:"162px",position:"relative",children:[Be&&It&&!Rt&&jsxRuntimeExports.jsx(PdfPreview,{previewUrl:It,previewError:Rt,pageOrientation:Pt,width:114,height:162,showBorder:!1,onLoadSuccess:Lt,onLoadError:Wt}),Be&&It&&Rt&&jsxRuntimeExports.jsx(UploadIDScreenImage,{size:132}),!Be&&jsxRuntimeExports.jsx(UploadIDScreenImage,{size:132})]}),Be&&jsxRuntimeExports.jsx(Flex,{align:"center",gap:2,children:jsxRuntimeExports.jsx(Text$7,{fontSize:ft.typography.fontSize.sm,fontWeight:500,color:ft.color.text.body.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxW:"200px",children:Be.name})})]}),Et&&jsxRuntimeExports.jsxs(Flex,{direction:"column",wFull:!0,mb:"16px",children:[jsxRuntimeExports.jsxs(Text$7,{fontSize:"14px",color:ft.color.text.body.secondary,textAlign:"center",mb:"8px",children:[nt("idv2.digitalIdUpload.uploading","Uploading...")," ",Math.round(vt),"%"]}),jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"4px",backgroundColor:ft.color.surface.neutral.light,borderRadius:"2px",overflow:"hidden"},children:jsxRuntimeExports.jsx("div",{style:{width:`${vt}%`,height:"100%",backgroundColor:ft.color.surface.primary[500],transition:"width 0.3s ease"}})})]})]}),jsxRuntimeExports.jsxs(Flex,{direction:"column",gap:3,wFull:!0,children:[jsxRuntimeExports.jsx(Button$b,{onClick:Be?_t:Kt,disabled:Et,children:nt(Be?"idv2.digitalIdUpload.reviewScreen.continue":"idv2.digitalIdUpload.digitalIdUploadButtonTitle")}),Be&&jsxRuntimeExports.jsx(Button$b,{onClick:Kt,disabled:Et,variant:"secondary",children:nt("idv2.digitalIdUpload.reviewScreen.replaceButton")})]})]})},DigitalIdFileSelection=({onFileSelected:Be})=>{const{t:Le}=useTranslation$1(),Ye=useTokens(),{token:tt}=useCaptureIdState(),nt=React.useRef(null),[ft,ht]=React.useState(null);React.useEffect(()=>{if(tt)return addScreenEvent({module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileSelection,token:tt,shouldOpen:!0}),()=>{addScreenEvent({module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileSelection,token:tt,shouldOpen:!1})}},[tt]);const gt=xt=>{var kt;const Et=(kt=xt.target.files)==null?void 0:kt[0];if(!Et)return;const yt=validateDigitalIdFile(Et);if(!yt.isValid){ht(getFileValidationErrorMessage(yt.errorMessage||"idv2.digitalIdUpload.invalidFileType",Le)),tt&&addEvent({token:tt,code:"digitalIdValidationError",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileSelection,payload:{errorType:"invalidFileType",fileSize:Et.size,fileType:Et.type,fileName:Et.name.split(".").pop()}});return}ht(null);const Ct=new File([Et],Et.name,{type:Et.type,lastModified:Et.lastModified});Be(Ct)},At=()=>{nt.current&&(nt.current.click(),tt&&addEvent({token:tt,code:"digitalIdFilePickerTriggered",module:eventModuleNames.front,screen:eventScreenNames.digitalIdFileSelection}))};return jsxRuntimeExports.jsxs(Flex,{direction:"column",alignItems:"center",align:"center",justify:"space-between",pt:3,pb:3,hFull:!0,children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",align:"center",justify:"flex-start",maxW:"100%",children:[jsxRuntimeExports.jsx(Text$7,{fontSize:"16px",fontWeight:500,color:Ye.color.text.body.secondary,textAlign:"center",letterSpacing:"-0.5px",mb:"24px",pl:0,pr:0,children:Le("idv2.digitalIdUpload.screenDescription")}),jsxRuntimeExports.jsx(Flex,{direction:"column",align:"center",justify:"center",px:10,py:6,children:jsxRuntimeExports.jsx(UploadIDScreenImage,{})}),jsxRuntimeExports.jsx("input",{ref:nt,type:"file",accept:"application/pdf",onChange:gt,style:{display:"none"}}),ft&&jsxRuntimeExports.jsx(Text$7,{fontSize:"14px",color:Ye.color.text.status.negative,textAlign:"center",mb:"16px",children:ft})]}),jsxRuntimeExports.jsx(Flex,{direction:"column",gap:3,wFull:!0,children:jsxRuntimeExports.jsx(Button$b,{onClick:At,children:Le("idv2.digitalIdUpload.digitalIdUploadButtonTitle")})})]})},DigitalIdFlow=()=>{const{t:Be}=useTranslation$1(),{captureConfiguration:Le,token:Ye}=useCaptureIdState(),tt=Le.showTutorial?"fileSelection":"fileReview",[nt,ft]=React.useState(tt),[ht,gt]=React.useState(null),[At,xt]=React.useState(!1);React.useEffect(()=>(Ye&&addEvent({token:Ye,code:"digitalIdFlowInitiated",module:eventModuleNames.front,payload:{initialView:tt,showTutorial:Le.showTutorial}}),()=>{Ye&&!At&&addEvent({token:Ye,code:"digitalIdFlowAbandoned",module:eventModuleNames.front,payload:{currentView:nt,hasSelectedFile:!!ht}})}),[Ye,tt,Le.showTutorial,At,nt,ht]);const Et=kt=>{gt(kt),ft("fileReview"),Ye&&addEvent({token:Ye,code:"digitalIdViewTransition",module:eventModuleNames.front,payload:{fromView:"fileSelection",toView:"fileReview",fileSize:kt.size,fileType:kt.type}})},yt=kt=>{gt(kt),Ye&&addEvent({token:Ye,code:"digitalIdFileReplaced",module:eventModuleNames.front,payload:{fileSize:kt.size,fileType:kt.type}})},Ct=()=>{xt(!0),Ye&&addEvent({token:Ye,code:"digitalIdFlowCompleted",module:eventModuleNames.front,payload:{finalView:nt,hasSelectedFile:!!ht}})};return nt==="fileSelection"?jsxRuntimeExports.jsx(IdFlowPage,{title:Be("idv2.digitalIdUpload.screenTitle"),"data-testid":"digital-id-file-selection-page",maxW:"450px",children:jsxRuntimeExports.jsx(DigitalIdFileSelection,{onFileSelected:Et})}):nt==="fileReview"?jsxRuntimeExports.jsx(IdFlowPage,{"data-testid":"digital-id-file-review-page",maxW:"450px",children:jsxRuntimeExports.jsx(DigitalIdFileReview,{selectedFile:ht,onFileReplaced:yt,onFlowCompleted:Ct,autoTriggerPicker:!Le.showTutorial})}):null},defaultOrientation="horizontal";class IdDetectionManager extends EventEmitter$5{constructor({getCanvas:Le,onCapture:Ye,detectionIdType:tt,timeout:nt=1e3}){super(),this.pipeline=null,this.pipelineProfile=null,this.detectionState="detecting",this.idType=null,this.idSide=null,this.orientation=defaultOrientation,this.counterValue=null,this.isDetecting=!1,this.isProcessingLocked=!1,this.detectionTimeout=null,this.manualCaptureHasTriggered=!1,this.startDetectionTime=null,this.processFrame=async()=>{var ft,ht;if(!(!this.isDetecting||this.isProcessingLocked))try{const gt=(ft=this.getCanvas)==null?void 0:ft.call(this);if(!gt)return;this.isProcessingLocked=!0,this.pipeline||await this.initializePipeline(),this.pipelineProfile&&await MlWasmJSApi$1.handleDetectionCallAndUpdateState(this.pipelineProfile.pipelineType),await((ht=this.pipeline)==null?void 0:ht.detect(gt))}catch(gt){console.error("ID Detection error:",gt)}finally{await sleep(100),this.isProcessingLocked=!1}},this.handleOnCapturing=()=>{var ht;if(this.resetTimer(),!this.isDetecting)return;this.setDetectionState("capturing");const ft=`capture${this.detectionIdType}`;addEvent({token:(ht=idFlowManager.getToken)==null?void 0:ht.call(idFlowManager),code:ft,payload:{[ft]:!0}})},this.handleOnCapture=(ft,ht,gt)=>{this.setOrientation(gt),this.onCapture(ft,{qualityElements:ht,isManualCapture:!1})},this.switchToManualCapture=ft=>{var gt;const ht={[`manualCapture${this.detectionIdType}`]:!0,reason:ft===void 0?"needHelp":ft?"idleTimeout":"bestFrameTimeout"};this.startDetectionTime&&(ht.timeToManualCaptureMode=Date.now()-this.startDetectionTime,this.startDetectionTime=null),addEvent({token:(gt=idFlowManager.getToken)==null?void 0:gt.call(idFlowManager),code:`switchToManualCapture${this.detectionIdType}`,payload:ht}),this.manualCaptureHasTriggered=!0,this.setDetectionState("manualCapture"),this.stopDetection()},this.manualCapture=()=>{var gt,At;const ft=(gt=this.getCanvas)==null?void 0:gt.call(this);if(!ft)return;const ht=`manualCapture${this.detectionIdType}`;addEvent({token:(At=idFlowManager.getToken)==null?void 0:At.call(idFlowManager),code:ht,payload:{[ht]:!0}}),this.onCapture(ft,{isManualCapture:!0})},this.getCanvas=Le,this.onCapture=Ye,this.detectionIdType=tt,this.timeout=nt,window.addEventListener("offline",()=>{this.setDetectionState("offline"),this.stopDetection()}),window.addEventListener("online",()=>{this.setDetectionState("detecting"),this.startDetection()})}startDetection(){if(this.startDetectionTime=Date.now(),this.manualCaptureHasTriggered){this.setDetectionState("manualCapture"),this.stopDetection();return}this.isDetecting=!0,onFrameEmitter.on("newFrame",this.processFrame)}stopDetection(){this.isDetecting=!1,onFrameEmitter.off("newFrame",this.processFrame),this.detectionState="detecting",this.idType=null,this.idSide=null,this.orientation="horizontal",this.detectionTimeout&&(clearTimeout(this.detectionTimeout),this.detectionTimeout=null)}async initializePipeline(){const Le=idFlowManager.getCaptureConfiguration();this.pipelineProfile=detectionSetup.getProfile(DetectionType.IDCapture);const Ye=new IdCapture;await Ye.initialize({onCapturing:this.handleOnCapturing,onCapture:this.handleOnCapture,onFarAway:()=>this.setStateWithDelay("farAway"),onGlare:()=>this.setStateWithDelay("glare"),onBlur:()=>this.setStateWithDelay("blur"),onIDNotDetected:()=>this.setDetectionState("idNotDetected"),onSwitchToManualCapture:this.switchToManualCapture,onIDTypeChange:tt=>this.setIdType(tt),onIDSideChange:tt=>this.setIdSide(tt),onCapturingCounterValueChange:tt=>{this.counterValue=tt,this.emitState()},onMaskChange:(tt,nt,ft,ht)=>{ht&&this.setOrientation(ht)},onDetectionStarted:()=>{},idType:this.detectionIdType,isV2:!0,isFixedMask:!1,isBlurCheckEnabled:!1,isGlareCheckEnabled:!1,pipelineProfile:this.pipelineProfile,idDetectedTimeout:Le.idDetectedTimeout,autocaptureTimeout:Le.autoCaptureTimeout}),this.pipeline=Ye}resetTimer(){this.detectionTimeout&&(clearTimeout(this.detectionTimeout),this.detectionTimeout=null)}setStateWithDelay(Le){this.resetTimer(),this.detectionState!=="capturing"&&(this.setDetectionState(Le),this.detectionTimeout=setTimeout(()=>{this.setDetectionState("detecting"),this.isDetecting=!0,this.detectionTimeout=setTimeout(()=>{this.setDetectionState("idNotDetected")},3e3)},this.timeout))}setDetectionState(Le){this.detectionState=Le,this.emitState()}setIdType(Le){this.idType=Le,this.emitState()}setIdSide(Le){this.idSide=Le,this.emitState()}setOrientation(Le){this.orientation=Le,this.emitState()}emitState(){this.emit("stateChange",{detectionState:this.detectionState,idType:this.idType,idSide:this.idSide,orientation:this.orientation,counterValue:this.counterValue})}}const getDetectionIdTypeFromMode=Be=>{if(Be==="passport")return"Passport";if(Be==="front")return"FrontId";if(Be==="back")return"BackId"};function useIdDetection({getCanvas:Be,onCapture:Le,mode:Ye}){const[tt,nt]=React.useState("detecting"),[ft,ht]=React.useState(null),[gt,At]=React.useState(null),[xt,Et]=React.useState(defaultOrientation),[yt,Ct]=React.useState(null),kt=React.useRef(Be),vt=React.useRef(Le),bt=React.useRef(null);React.useEffect(()=>{kt.current=Be,vt.current=Le},[Be,Le]),React.useEffect(()=>{const Kt=new IdDetectionManager({getCanvas:()=>kt.current(),onCapture:(Ut,_t)=>vt.current(Ut,_t),detectionIdType:getDetectionIdTypeFromMode(Ye)});bt.current=Kt;const Vt=Ut=>{nt(Ut.detectionState),ht(Ut.idType),At(Ut.idSide),Et(Ut.orientation),Ut.counterValue!==null&&Ct(Ut.counterValue)};return Kt.on("stateChange",Vt),()=>{Kt.stopDetection(),Kt.off("stateChange",Vt),Kt.removeAllListeners()}},[Ye]);const It=()=>{var Kt;return(Kt=bt.current)==null?void 0:Kt.startDetection()},wt=()=>{var Kt;return(Kt=bt.current)==null?void 0:Kt.stopDetection()};function Rt(){if(Ye==="front")return gt==="back";if(Ye==="back")return gt==="front";if(Ye==="passport")return gt==="back"}const Tt=tt==="idNotDetected",Bt=tt==="capturing",Dt=tt==="farAway",Pt=tt==="glare",Nt=tt==="blur",Lt=tt==="manualCapture",Wt=tt==="detecting"||tt==="idNotDetected"||tt==="manualCapture",$t=Dt||Pt||Nt;return{startDetection:It,stopDetection:wt,detectionState:tt,idType:ft,idSide:gt,shouldShowIdHint:Tt,isCapturing:Bt,isFarAway:Dt,isGlare:Pt,isBlur:Nt,isManualCapture:Lt,isWrongSide:Rt(),isIdle:Wt,isBadState:$t,orientation:xt,counterValue:yt,switchToManualCapture:()=>{var Kt;return(Kt=bt.current)==null?void 0:Kt.switchToManualCapture()},onManualCapture:()=>{var Kt;return(Kt=bt.current)==null?void 0:Kt.manualCapture()}}}const SvgLockIcon=Be=>React__namespace.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...Be},React__namespace.createElement("path",{d:"M8 2.83368C9.38071 2.83368 10.5 3.95297 10.5 5.33368V6.66669H11.333C11.7012 6.66669 12 6.96549 12 7.33368V11.9997C12 12.3679 11.7012 12.6667 11.333 12.6667H4.66699C4.2988 12.6667 4 12.3679 4 11.9997V7.33368C4 6.96549 4.2988 6.66669 4.66699 6.66669H5.5V5.33368C5.5 3.95297 6.61929 2.83368 8 2.83368ZM8 3.83368C7.17157 3.83368 6.5 4.50525 6.5 5.33368V6.66669H9.5V5.33368C9.5 4.50525 8.82843 3.83368 8 3.83368Z",fill:"#FCFCFD"})),EncryptionLabel=()=>{const{t:Be}=useTranslation$1(),Le=useTokens();return jsxRuntimeExports.jsxs(Flex,{align:"center",gap:Le.spacing[1],children:[jsxRuntimeExports.jsx(SvgLockIcon,{}),jsxRuntimeExports.jsx(Text$7,{color:Le.color.surface.neutral.light,fontWeight:400,fontSize:Le.typography.fontSize.sm,letterSpacing:"0.14px",lineHeight:Le.spacing[5],children:Be("encryptionLabel.encryptedPhotos")})]})},ratios={horizontal:{id:22/35,passport:30/42},vertical:{id:35/22,passport:42/30}},getRatioValue=(Be,Le="id")=>ratios[Be][Le];function useAspectRatio(Be,Le,Ye="id"){const[tt,nt]=React.useState(),[ft,ht]=React.useState();return React.useEffect(()=>{if(!Le)return;const gt=getRatioValue(Le,Ye);if(typeof window.CSS<"u"&&window.CSS.supports("aspect-ratio","1")){nt(void 0),ht(void 0);return}function xt(){var Ct,kt,vt,bt,It,wt,Rt,Tt;const Et=(Ct=idFlowManager.getFrameSizeByOrientation(Le))!=null&&Ct.width?(kt=idFlowManager.getFrameSizeByOrientation(Le))==null?void 0:kt.width:((vt=Be.current)==null?void 0:vt.offsetWidth)??0,yt=(bt=idFlowManager.getFrameSizeByOrientation(Le))!=null&&bt.height?(It=idFlowManager.getFrameSizeByOrientation(Le))==null?void 0:It.height:((wt=Be.current)==null?void 0:wt.offsetHeight)??0;(Rt=idFlowManager.getFrameSizeByOrientation(Le))!=null&&Rt.height?(Tt=idFlowManager.getFrameSizeByOrientation(Le))!=null&&Tt.width||(ht(yt/gt),nt(yt)):(nt(Et*gt),ht(Et))}return xt(),window.addEventListener("resize",xt),()=>window.removeEventListener("resize",xt)},[Ye,Le]),{height:tt,width:ft}}const COUNTER_SIZE=92,BORDER_SIZE=4,Container$d=dt.div`
|
|
5436
5436
|
position: relative;
|
|
5437
5437
|
width: ${COUNTER_SIZE}px;
|
|
5438
5438
|
height: ${COUNTER_SIZE}px;
|
|
@@ -5522,7 +5522,15 @@ linearGradient:first-of-type {
|
|
|
5522
5522
|
-o-aspect-ratio: 30 / 42;
|
|
5523
5523
|
}
|
|
5524
5524
|
}
|
|
5525
|
-
`,
|
|
5525
|
+
`,BottomContainer$1=dt.div`
|
|
5526
|
+
position: absolute;
|
|
5527
|
+
left: 0;
|
|
5528
|
+
right: 0;
|
|
5529
|
+
display: flex;
|
|
5530
|
+
justify-content: center;
|
|
5531
|
+
align-items: center;
|
|
5532
|
+
z-index: 100;
|
|
5533
|
+
`,Bottom=({orientation:Be,children:Le})=>{var ft,ht;const Ye=idFlowManager.getParentSize(),tt=Be==="vertical"?(ft=idFlowManager.getVerticalFrameSize())==null?void 0:ft.height:((ht=idFlowManager.getHorizontalFrameSize())==null?void 0:ht.width)*ratios.horizontal.id,nt=Ye&&tt?`${Ye.height/2+tt/2+16}px`:"calc(50% + 16px)";return jsxRuntimeExports.jsx(BottomContainer$1,{style:{top:nt},children:Le})},StyledFrameBorder=dt.div`
|
|
5526
5534
|
position: absolute;
|
|
5527
5535
|
inset: 0;
|
|
5528
5536
|
border: 4px solid ${({$frameColor:Be})=>Be};
|
|
@@ -5544,7 +5552,7 @@ linearGradient:first-of-type {
|
|
|
5544
5552
|
border-radius: 10px;
|
|
5545
5553
|
animation: ${flashAnimation} 250ms ease-out forwards;
|
|
5546
5554
|
box-shadow: 0px 0px 50px 0px #fff;
|
|
5547
|
-
`,Top=({isWrongSide:Be,isIdle:Le,isFarAway:Ye,isCapturing:tt,isGlare:nt,isBlur:ft,mode:ht,isManualCapture:gt,orientation:At,minimalNotifications:xt})=>{const{t:Et}=useTranslation$1();if(tt)return jsxRuntimeExports.jsx(TopText,{title:Et("idv2.capture.takingPhoto"),subtitle:Et("idv2.capture.dontMove"),orientation:At});if(Be)return ht==="front"||ht==="passport"?jsxRuntimeExports.jsx(Notification$2,{type:"front",minimal:xt}):jsxRuntimeExports.jsx(Notification$2,{type:"back",minimal:xt});if(Ye)return jsxRuntimeExports.jsx(Notification$2,{type:"notAligned",minimal:xt});if(nt)return jsxRuntimeExports.jsx(Notification$2,{type:"glare",minimal:xt});if(ft)return jsxRuntimeExports.jsx(Notification$2,{type:"blur",minimal:xt});if(Le){const yt=`idv2.capture.fillFrame${capitalize$2(ht)}`;return jsxRuntimeExports.jsx(TopText,{title:Et(yt),subtitle:gt?"":Et("idv2.capture.autoCapture"),orientation:At})}},CaptureOverlay=React.forwardRef(({isWrongSide:Be,isIdle:Le,isFarAway:Ye,isGlare:tt,isBlur:nt,isManualCapture:ft,isCapturing:ht,mode:gt,frameColor:At,orientation:xt,counterValue:Et,isCameraReady:yt},Ct)=>{var wt;const kt=useTokens(),{uiConfig:vt}=useCaptureIdState(),{height:bt,width:It}=useAspectRatio(Ct,xt,gt==="passport"?"passport":"id");return jsxRuntimeExports.jsx(FlexCenter,{wFull:!0,hFull:!0,bg:kt.color.surface.neutral.dark,children:jsxRuntimeExports.jsxs(Box,{wFull:!0,hFull:!0,zIndex:10,children:[jsxRuntimeExports.jsx(Top,{isWrongSide:Be,isIdle:Le,isFarAway:Ye,isGlare:tt,isBlur:nt,isManualCapture:ft,isCapturing:ht,mode:gt,orientation:xt,minimalNotifications:((wt=vt==null?void 0:vt.notifications)==null?void 0:wt.minimal)??!1}),jsxRuntimeExports.jsx(Frame,{ref:Ct,style:{height:bt?`${bt}px`:void 0,width:It?`${It}px`:void 0},className:cx(xt,gt),children:jsxRuntimeExports.jsxs(StyledFrameBorder,{$frameColor:At,$isCameraReady:yt,children:[ht&&Et>0&&jsxRuntimeExports.jsx(Counter,{children:Et}),ht&&Et===0&&jsxRuntimeExports.jsx(FlashOverlay,{})]})})]})})});CaptureOverlay.displayName="CaptureOverlay";const FrameContainer=({children:Be})=>jsxRuntimeExports.jsx(FlexCenter,{wFull:!0,hFull:!0,children:jsxRuntimeExports.jsx(Box,{wFull:!0,hFull:!0,zIndex:10,children:Be})}),SvgBackHorizontalHint=Be=>React__namespace.createElement("svg",{width:802,height:800,viewBox:"0 0 802 800",fill:"none",xmlns:"http://www.w3.org/2000/svg",...Be},React__namespace.createElement("path",{d:"M400.998 274.069C401.25 265.541 379.406 266.366 370.767 265.572C338.454 262.602 336.684 260.97 318.328 258C195.208 260.877 251.462 277.778 142.88 319.191C130.802 323.8 120.695 332.864 114.311 344.671C90.6979 388.383 65.6465 431.033 31.9757 469.135C-11.6845 511.548 -0.0235567 584.886 6.29265 607.964C24.2699 654.367 106.875 585.478 128.642 583.736C140.973 583.261 162.232 584.089 173.728 579.418C228.223 549.204 237.668 556.247 284.583 556.247C293.591 556.247 326.368 545.935 326.368 545.935C347.902 545.956 370.164 543.656 370.164 537.005C370.164 491.994 274.662 511.442 248.007 508.431C218.913 508.678 209.493 475.323 198.172 447.181C188.591 423.382 191.059 396.066 204.411 374.411C215.586 356.293 227.004 338.226 242.649 317.623C280.342 280.377 398.87 346.51 400.998 274.048V274.069Z",fill:"url(#paint0_linear_17753_4417)",fillOpacity:.35}),React__namespace.createElement("path",{d:"M318.258 259.002C336.463 261.952 338.371 263.598 370.676 266.567C372.862 266.768 375.893 266.868 379.119 267.034C382.372 267.201 385.866 267.437 389.071 267.909C392.296 268.384 395.136 269.087 397.129 270.14C399.098 271.18 400.037 272.436 399.998 274.019C399.736 282.939 397.687 289.633 394.301 294.637C390.919 299.634 386.15 303.026 380.303 305.254C368.541 309.735 352.564 309.456 335.241 308.045C318.017 306.642 299.489 304.12 282.983 304.291C266.485 304.462 251.662 307.312 241.946 316.912L241.896 316.962L241.853 317.019C227.157 336.371 216.186 353.488 205.66 370.487L203.56 373.886C190.043 395.808 187.543 423.458 197.244 447.555C202.87 461.539 208.108 477.057 215.577 488.982C223.07 500.945 232.955 509.533 247.951 509.431C254.726 510.185 265.778 509.527 278.394 508.835C291.1 508.138 305.491 507.399 319.039 507.967C332.609 508.536 345.21 510.414 354.389 514.874C358.965 517.098 362.65 519.945 365.191 523.554C367.726 527.153 369.164 531.567 369.164 537.005C369.164 538.033 368.297 539.177 365.921 540.306C363.621 541.397 360.272 542.29 356.174 542.986C347.997 544.376 337.113 544.945 326.369 544.935H326.215L326.068 544.981H326.067H326.066C326.066 544.982 326.064 544.982 326.062 544.982C326.059 544.984 326.053 544.986 326.045 544.988C326.029 544.993 326.006 545.001 325.975 545.011C325.913 545.03 325.821 545.058 325.7 545.096C325.459 545.171 325.103 545.282 324.647 545.423C323.736 545.704 322.422 546.106 320.818 546.589C317.609 547.554 313.238 548.841 308.587 550.127C303.935 551.414 299.011 552.698 294.695 553.659C290.348 554.628 286.711 555.247 284.583 555.247C272.868 555.247 263.519 554.808 255.155 554.619C246.806 554.431 239.462 554.492 231.865 555.511C216.657 557.55 200.555 563.403 173.299 578.511C167.723 580.762 159.708 581.718 151.445 582.152C143.114 582.591 134.887 582.495 128.604 582.736L128.583 582.737L128.562 582.739C125.656 582.972 121.849 584.304 117.464 586.268C113.051 588.244 107.94 590.911 102.396 593.901C91.2829 599.894 78.4016 607.193 65.6328 612.994C52.8439 618.805 40.3196 623.039 29.9365 623C24.7651 622.981 20.1769 621.9 16.3545 619.473C12.5493 617.056 9.42301 613.254 7.24121 607.642C4.10601 596.16 -0.350209 572.207 1.39062 545.866C3.13474 519.476 11.0889 490.82 32.6729 469.853L32.7002 469.826L32.7246 469.798C66.4742 431.606 91.5705 388.873 115.191 345.146L115.19 345.146C121.467 333.538 131.395 324.644 143.237 320.125L143.236 320.124C170.432 309.752 187.335 300.904 199.318 293.411C205.308 289.666 210.06 286.265 214.238 283.195C218.426 280.119 222.005 277.403 225.7 274.981C240.331 265.395 256.776 260.443 318.258 259.002Z",stroke:"url(#paint1_linear_17753_4417)",strokeOpacity:.8,strokeWidth:2}),React__namespace.createElement("path",{d:"M227 300.53C227 294.715 231.513 290 237.081 290L566.919 290C572.487 290 577 294.715 577 300.53V499.47C577 505.285 572.487 510 566.919 510H237.081C231.513 510 227 505.285 227 499.47L227 300.53Z",fill:"white",fillOpacity:.8}),React__namespace.createElement("path",{d:"M227 300.53C227 294.715 231.513 290 237.081 290L566.919 290C572.487 290 577 294.715 577 300.53V499.47C577 505.285 572.487 510 566.919 510H237.081C231.513 510 227 505.285 227 499.47L227 300.53Z",fill:"url(#paint2_linear_17753_4417)",fillOpacity:.8}),React__namespace.createElement("path",{opacity:.8,d:"M254 478C254 479.657 252.657 481 251 481L250 481C248.343 481 247 479.657 247 478L247 446C247 444.343 248.343 443 250 443L251 443C252.657 443 254 444.343 254 446L254 478ZM267 478C267 479.657 265.657 481 264 481L263 481C261.343 481 260 479.657 260 478L260 446C260 444.343 261.343 443 263 443L264 443C265.657 443 267 444.343 267 446L267 478ZM280 478C280 479.657 278.657 481 277 481L276 481C274.343 481 273 479.657 273 478L273 446C273 444.343 274.343 443 276 443L277 443C278.657 443 280 444.343 280 446L280 478ZM293 478C293 479.657 291.657 481 290 481C288.343 481 287 479.657 287 478L287 446C287 444.343 288.343 443 290 443C291.657 443 293 444.343 293 446L293 478ZM306 478C306 479.657 304.657 481 303 481C301.343 481 300 479.657 300 478L300 446C300 444.343 301.343 443 303 443C304.657 443 306 444.343 306 446L306 478ZM320 478C320 479.657 318.657 481 317 481L316 481C314.343 481 313 479.657 313 478L313 446C313 444.343 314.343 443 316 443L317 443C318.657 443 320 444.343 320 446L320 478ZM333 478C333 479.657 331.657 481 330 481L329 481C327.343 481 326 479.657 326 478L326 446C326 444.343 327.343 443 329 443L330 443C331.657 443 333 444.343 333 446L333 478ZM346 478C346 479.657 344.657 481 343 481C341.343 481 340 479.657 340 478L340 446C340 444.343 341.343 443 343 443C344.657 443 346 444.343 346 446L346 478ZM359 478C359 479.657 357.657 481 356 481C354.343 481 353 479.657 353 478L353 446C353 444.343 354.343 443 356 443C357.657 443 359 444.343 359 446L359 478ZM373 478C373 479.657 371.657 481 370 481L369 481C367.343 481 366 479.657 366 478L366 446C366 444.343 367.343 443 369 443L370 443C371.657 443 373 444.343 373 446L373 478ZM386 478C386 479.657 384.657 481 383 481L382 481C380.343 481 379 479.657 379 478L379 446C379 444.343 380.343 443 382 443L383 443C384.657 443 386 444.343 386 446L386 478ZM399 478C399 479.657 397.657 481 396 481L395 481C393.343 481 392 479.657 392 478L392 446C392 444.343 393.343 443 395 443L396 443C397.657 443 399 444.343 399 446L399 478Z",fill:"#9E9E9E"}),React__namespace.createElement("path",{d:"M325.816 407C327.022 407 328 407.978 328 409.184V414.816C328 416.022 327.022 417 325.816 417H249.184C247.978 417 247 416.022 247 414.816V409.184C247 407.978 247.978 407 249.184 407H325.816ZM345.816 390C347.022 390 348 390.978 348 392.184V397.816C348 399.022 347.022 400 345.816 400H249.184C247.978 400 247 399.022 247 397.816V392.184C247 390.978 247.978 390 249.184 390H345.816ZM399.816 373C401.022 373 402 373.978 402 375.184V380.816C402 382.022 401.022 383 399.816 383H249.184C247.978 383 247 382.022 247 380.816V375.184C247 373.978 247.978 373 249.184 373H399.816ZM324.861 300C326.595 300 328 301.405 328 303.139V306.861C328 308.595 326.595 310 324.861 310H250.139C248.405 310 247 308.595 247 306.861V303.139C247 301.405 248.405 300 250.139 300H324.861Z",fill:"#C9C9C9"}),React__namespace.createElement("path",{d:"M136.007 396.57C146.986 397.048 157.118 390.784 165.483 383.667C175.929 374.776 184.905 364.174 191.933 352.411C197.126 343.729 201.257 334.425 206.913 326.026C216.431 311.88 222.886 296.856 231.115 281.927C246.685 281.654 265.217 283.757 284.58 278.233C296.079 283.4 308.58 286.346 321.186 286.863C329.183 287.188 337.552 286.45 344.431 282.368C351.31 278.287 356.875 270.22 355.162 262.416C353.351 257.943 330.373 252.036 317.534 248.718C306.614 240.415 293.751 240.233 280.028 239.813C266.305 239.394 244.859 239.114 231.536 239.347C218.214 239.581 210.114 235.767 202.663 241.169C166.97 267.073 158.015 305.74 119.861 327.881C116.23 340.157 113.424 353.467 116.046 365.992C118.668 378.517 125.759 388.867 136.017 396.57L136.007 396.57Z",fill:"url(#paint3_linear_17753_4417)",fillOpacity:.35}),React__namespace.createElement("path",{d:"M203.25 241.978C206.701 239.476 210.311 239.075 214.843 239.319C219.308 239.559 224.866 240.465 231.553 240.347C244.854 240.114 266.284 240.394 279.997 240.813C293.795 241.235 306.308 241.439 316.929 249.514L317.089 249.635L317.283 249.686C323.709 251.346 332.633 253.646 340.175 256.085C343.949 257.306 347.345 258.552 349.897 259.759C351.174 260.363 352.209 260.944 352.966 261.49C353.696 262.016 354.061 262.438 354.204 262.728C355.719 269.91 350.577 277.559 343.92 281.508C337.293 285.44 329.162 286.187 321.226 285.863C308.748 285.352 296.372 282.435 284.99 277.321L284.657 277.172L284.306 277.272C265.11 282.747 246.83 280.651 231.097 280.927L230.518 280.937L230.239 281.444C221.944 296.492 215.574 311.362 206.084 325.467C203.226 329.711 200.759 334.175 198.368 338.64C195.97 343.118 193.656 347.584 191.075 351.898L191.074 351.898C184.32 363.202 175.752 373.426 165.802 382.073L164.835 382.906C156.596 389.915 146.832 395.907 136.371 395.581C126.421 388.029 119.571 377.949 117.025 365.787C114.483 353.646 117.141 340.685 120.71 328.542C139.778 317.375 151.587 302.111 162.992 286.527C174.306 271.068 185.209 255.321 202.426 242.583L203.25 241.978Z",stroke:"url(#paint4_linear_17753_4417)",strokeOpacity:.8,strokeWidth:2}),React__namespace.createElement("rect",{x:227,y:324,width:350,height:32,fill:"#D9D9D9"}),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"paint0_linear_17753_4417",x1:230.178,y1:405.156,x2:54.4989,y2:551.352,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint1_linear_17753_4417",x1:209.209,y1:440.712,x2:39.1322,y2:556.905,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint2_linear_17753_4417",x1:380.099,y1:323.737,x2:297.587,y2:643.028,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint3_linear_17753_4417",x1:196.898,y1:296.054,x2:151.044,y2:370.026,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:.512567,stopColor:"white",stopOpacity:.3}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint4_linear_17753_4417",x1:214.019,y1:287.751,x2:161.637,y2:358.721,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})))),SvgBackVerticalHint=Be=>React__namespace.createElement("svg",{width:800,height:800,viewBox:"0 0 800 800",fill:"none",xmlns:"http://www.w3.org/2000/svg",...Be},React__namespace.createElement("g",{clipPath:"url(#clip0_17753_4392)"},React__namespace.createElement("path",{d:"M205.545 199.272C208.532 182.253 206.229 143.198 218.413 123.134C230.06 116.864 236.366 118.436 242.602 123.134C250.174 128.838 288.292 186.732 253.353 289.742C249.769 311.24 257.832 339.008 238.123 390.066C268.583 368.568 236.009 378.421 291.554 310.344C347.099 242.268 367.404 223.224 446.242 242.035C509.313 257.083 554.593 273.983 574.303 280.552C581.171 283.836 594.55 289.026 593.116 300.491C592.167 308.083 589.71 318.692 577.886 326.058C582.664 335.451 587.079 358.715 583.495 376.63C583.495 390.245 587.741 399.62 587.741 402.606C586.927 404.845 585.74 407.283 584.157 409.624C589.831 412.36 598.341 421.311 596.934 434.853C595.519 448.468 593.947 463.218 592.454 468.891L589.39 488.598C587.307 500.839 575.25 509.283 565.8 507.393C569.88 508.659 574.156 511.325 575.25 512.783C577.938 516.366 580.625 517.261 587.792 523.532C605.71 531.593 604.01 542.064 603.918 546.821C603.875 549.087 600.848 555.541 599.056 557.631C597.265 559.721 595.462 563.36 584.905 565.414C568.105 568.683 547.477 555.726 528.664 558.413C509.851 561.1 457.888 595.138 434.595 602.304C411.302 609.47 391.593 706.264 354.861 761.8C338.377 801.213 281.841 852.765 243.466 852.999C205.091 853.234 119.951 796.538 104.077 783.305C88.2032 770.071 82.0162 749.781 82.8984 734.783C83.7806 719.785 120.335 668.617 119.951 650.091C119.568 631.564 115.957 517.262 121.332 469.787C126.707 422.313 167.023 324.676 164.335 303.178C161.647 281.681 166.127 264.661 170.606 260.183C174.19 256.6 195.392 218.083 205.545 199.272Z",fill:"url(#paint0_linear_17753_4392)",fillOpacity:.5}),React__namespace.createElement("path",{d:"M528.664 333.634C559.419 336.582 567.39 332.598 577.886 326.058M531.129 486.873C553.064 501.346 558.017 505.836 565.8 507.393M577.886 326.058C589.71 318.692 592.167 308.083 593.116 300.491C594.55 289.026 581.171 283.836 574.303 280.552C554.593 273.983 509.313 257.083 446.242 242.035C367.404 223.224 347.099 242.268 291.554 310.344C236.009 378.421 268.583 368.568 238.123 390.066C257.832 339.008 249.769 311.24 253.353 289.742C288.292 186.732 250.174 128.838 242.602 123.134C236.366 118.436 230.06 116.864 218.413 123.134C206.229 143.198 208.532 182.253 205.545 199.272C195.392 218.083 174.19 256.6 170.606 260.183C166.127 264.661 161.647 281.681 164.335 303.178C167.023 324.676 126.707 422.313 121.332 469.787C115.957 517.262 119.568 631.564 119.951 650.091C120.335 668.617 83.7806 719.785 82.8984 734.783C82.0162 749.781 88.2032 770.071 104.077 783.305C119.951 796.538 205.091 853.234 243.466 852.999C281.841 852.765 338.377 801.213 354.861 761.8C391.593 706.264 411.302 609.47 434.595 602.304C457.888 595.138 509.851 561.1 528.664 558.413C547.477 555.726 568.105 568.683 584.905 565.414C595.462 563.36 597.265 559.721 599.057 557.631C600.848 555.541 603.875 549.087 603.918 546.821C604.01 542.064 605.71 531.593 587.792 523.532C580.625 517.261 577.938 516.366 575.25 512.783C574.156 511.325 569.88 508.659 565.8 507.393M577.886 326.058C582.664 335.451 587.079 358.715 583.495 376.63C583.495 390.245 587.741 399.62 587.741 402.606C586.927 404.845 585.74 407.283 584.157 409.624M540.31 402.606C569.296 430.101 576.455 421.018 584.157 409.624M584.157 409.624C589.831 412.36 598.341 421.311 596.934 434.853C595.519 448.468 593.948 463.218 592.454 468.891L589.39 488.598C587.307 500.839 575.25 509.283 565.8 507.393M565.8 507.393C547.891 503.81 542.109 486.508 540.31 477.849C539.844 469.535 540.61 449.796 547.403 437.342L531.129 425.313",stroke:"url(#paint1_linear_17753_4392)",strokeOpacity:.8,strokeWidth:2.5}),React__namespace.createElement("path",{d:"M538.362 189.884L538.362 611.417C538.362 617.567 533.156 622.662 526.598 622.662L273.402 622.662C266.844 622.662 261.638 617.567 261.638 611.417L261.638 189.884C261.638 183.733 266.843 178.638 273.402 178.638L526.598 178.638C533.157 178.638 538.362 183.733 538.362 189.884Z",fill:"white",fillOpacity:.8}),React__namespace.createElement("path",{d:"M538.362 189.884L538.362 611.417C538.362 617.567 533.156 622.662 526.598 622.662L273.402 622.662C266.844 622.662 261.638 617.567 261.638 611.417L261.638 189.884C261.638 183.733 266.843 178.638 273.402 178.638L526.598 178.638C533.157 178.638 538.362 183.733 538.362 189.884Z",fill:"url(#paint2_linear_17753_4392)",fillOpacity:.8}),React__namespace.createElement("path",{d:"M538.362 189.884L538.362 611.417C538.362 617.567 533.156 622.662 526.598 622.662L273.402 622.662C266.844 622.662 261.638 617.567 261.638 611.417L261.638 189.884C261.638 183.733 266.843 178.638 273.402 178.638L526.598 178.638C533.157 178.638 538.362 183.733 538.362 189.884Z",stroke:"white",strokeWidth:3.27581}),React__namespace.createElement("path",{opacity:.8,d:"M300.252 210.982C298.518 210.982 297.113 209.576 297.113 207.842L297.113 205.705C297.114 203.971 298.519 202.566 300.252 202.566L342.021 202.566C343.755 202.566 345.16 203.971 345.16 205.705L345.16 207.842C345.16 209.576 343.755 210.982 342.021 210.982L300.252 210.982ZM300.252 227.807C298.518 227.807 297.113 226.402 297.113 224.668L297.113 222.531C297.113 220.797 298.518 219.392 300.252 219.392L342.021 219.392C343.755 219.392 345.16 220.797 345.16 222.531L345.16 224.668C345.16 226.402 343.755 227.807 342.021 227.807L300.252 227.807ZM300.252 244.639C298.518 244.639 297.113 243.234 297.113 241.5L297.113 239.363C297.113 237.629 298.518 236.224 300.252 236.224L342.021 236.224C343.755 236.224 345.16 237.629 345.16 239.363L345.16 241.5C345.16 243.234 343.755 244.639 342.021 244.639L300.252 244.639ZM300.252 261.472C298.518 261.472 297.113 260.067 297.113 258.333L297.113 256.196C297.113 254.462 298.519 253.057 300.252 253.057L342.021 253.057C343.755 253.057 345.16 254.462 345.16 256.196L345.16 258.333C345.16 260.067 343.755 261.472 342.021 261.472L300.252 261.472ZM300.252 278.298C298.519 278.298 297.113 276.893 297.113 275.16L297.113 273.022C297.113 271.288 298.518 269.883 300.252 269.883L342.021 269.883C343.755 269.883 345.16 271.289 345.16 273.022L345.16 275.16C345.16 276.893 343.755 278.298 342.021 278.298L300.252 278.298ZM300.252 295.131C298.518 295.131 297.113 293.726 297.113 291.993L297.113 289.855C297.113 288.121 298.518 286.716 300.252 286.716L342.021 286.716C343.755 286.716 345.16 288.122 345.16 289.855L345.16 291.993C345.16 293.726 343.755 295.131 342.021 295.131L300.252 295.131ZM300.252 311.957C298.518 311.957 297.113 310.551 297.113 308.818L297.113 306.68C297.113 304.947 298.519 303.542 300.252 303.542L342.021 303.542C343.755 303.542 345.16 304.947 345.16 306.68L345.16 308.818C345.16 310.551 343.755 311.956 342.021 311.957L300.252 311.957ZM300.252 328.792C298.518 328.792 297.113 327.386 297.113 325.653L297.113 323.515C297.113 321.782 298.518 320.376 300.252 320.376L342.021 320.376C343.755 320.377 345.16 321.782 345.16 323.515L345.16 325.653C345.16 327.386 343.755 328.791 342.021 328.792L300.252 328.792ZM300.252 345.625C298.518 345.625 297.113 344.219 297.113 342.486L297.113 340.348C297.113 338.615 298.519 337.209 300.252 337.209L342.021 337.209C343.755 337.21 345.16 338.615 345.16 340.348L345.16 342.486C345.16 344.219 343.755 345.624 342.021 345.625L300.252 345.625ZM300.252 362.449C298.518 362.449 297.113 361.044 297.113 359.31L297.113 357.172C297.113 355.439 298.519 354.034 300.252 354.034L342.021 354.034C343.755 354.034 345.16 355.439 345.16 357.172L345.16 359.31C345.16 361.044 343.755 362.449 342.021 362.449L300.252 362.449ZM300.252 379.283C298.519 379.283 297.113 377.877 297.113 376.144L297.113 374.006C297.113 372.273 298.518 370.868 300.252 370.868L342.021 370.868C343.755 370.868 345.16 372.273 345.16 374.006L345.16 376.144C345.16 377.877 343.755 379.283 342.021 379.283L300.252 379.283ZM300.252 396.116C298.518 396.116 297.113 394.71 297.113 392.977L297.113 390.839C297.113 389.106 298.518 387.701 300.252 387.701L342.021 387.701C343.755 387.701 345.16 389.106 345.16 390.839L345.16 392.977C345.16 394.71 343.755 396.116 342.021 396.116L300.252 396.116Z",fill:"#9E9E9E"}),React__namespace.createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M489.951 177.006L489.951 624.3L453.429 624.3L453.429 177L489.951 177.006Z",fill:"#C9C9C9"}),React__namespace.createElement("path",{d:"M386.607 303.47C386.607 304.676 385.63 305.653 384.424 305.654L375.861 305.654C374.655 305.654 373.677 304.676 373.677 303.47L373.677 204.751C373.677 203.545 374.655 202.568 375.861 202.568L384.424 202.568C385.63 202.568 386.607 203.545 386.607 204.751L386.607 303.47ZM408.16 328.716C408.16 329.922 407.182 330.9 405.977 330.9L397.414 330.9C396.208 330.9 395.23 329.922 395.229 328.716L395.229 204.751C395.23 203.545 396.208 202.568 397.414 202.568L405.977 202.568C407.182 202.568 408.16 203.545 408.16 204.751L408.16 328.716ZM429.707 398.141C429.707 399.347 428.729 400.325 427.523 400.326L418.961 400.326C417.755 400.326 416.776 399.347 416.776 398.141L416.776 204.751C416.777 203.545 417.755 202.568 418.961 202.568L427.523 202.568C428.729 202.568 429.707 203.545 429.707 204.751L429.707 398.141ZM522.381 302.515C522.381 304.248 520.976 305.654 519.242 305.654L512.59 305.654C510.856 305.654 509.45 304.249 509.45 302.515L509.45 205.706C509.45 203.973 510.856 202.568 512.59 202.568L519.242 202.568C520.976 202.568 522.381 203.973 522.381 205.706L522.381 302.515Z",fill:"#C9C9C9"})),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"paint0_linear_17753_4392",x1:399,y1:31.5,x2:247,y2:711.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:.645103,stopColor:"white",stopOpacity:.35}),React__namespace.createElement("stop",{offset:.830381,stopColor:"white",stopOpacity:.1}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint1_linear_17753_4392",x1:462.249,y1:119,x2:232.613,y2:681.21,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:.692339,stopColor:"white",stopOpacity:.65411}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint2_linear_17753_4392",x1:497.062,y1:372.661,x2:90.4819,y2:268.024,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("clipPath",{id:"clip0_17753_4392"},React__namespace.createElement("rect",{width:800,height:800,fill:"white"})))),SvgFrontHorizontalHint=Be=>React__namespace.createElement("svg",{width:800,height:800,viewBox:"0 0 800 800",fill:"none",xmlns:"http://www.w3.org/2000/svg",...Be},React__namespace.createElement("g",{clipPath:"url(#clip0_17714_6315)"},React__namespace.createElement("path",{d:"M398.998 274.069C399.25 265.541 377.406 266.366 368.767 265.572C336.454 262.602 334.684 260.97 316.328 258C193.208 260.877 249.462 277.778 140.88 319.191C128.802 323.8 118.695 332.864 112.311 344.671C88.6979 388.383 63.6465 431.033 29.9757 469.135C-13.6845 511.548 -2.02356 584.886 4.29265 607.964C22.2699 654.367 104.875 585.478 126.642 583.736C138.973 583.261 160.232 584.089 171.728 579.418C226.223 549.204 235.668 556.247 282.583 556.247C291.591 556.247 324.368 545.935 324.368 545.935C345.902 545.956 368.164 543.656 368.164 537.005C368.164 491.994 272.662 511.442 246.007 508.431C216.913 508.678 207.493 475.323 196.172 447.181C186.591 423.382 189.059 396.066 202.411 374.411C213.586 356.293 225.004 338.226 240.649 317.623C278.342 280.377 396.87 346.51 398.998 274.048V274.069Z",fill:"url(#paint0_linear_17714_6315)",fillOpacity:.35}),React__namespace.createElement("path",{d:"M316.258 259.002C334.463 261.952 336.371 263.598 368.676 266.567C370.862 266.768 373.893 266.868 377.119 267.034C380.372 267.201 383.866 267.437 387.071 267.909C390.296 268.384 393.136 269.087 395.129 270.14C397.098 271.18 398.037 272.436 397.998 274.019C397.736 282.939 395.687 289.633 392.301 294.637C388.919 299.634 384.15 303.026 378.303 305.254C366.541 309.735 350.564 309.456 333.241 308.045C316.017 306.642 297.489 304.12 280.983 304.291C264.485 304.462 249.662 307.312 239.946 316.912L239.896 316.962L239.853 317.019C225.157 336.371 214.186 353.488 203.66 370.487L201.56 373.886C188.043 395.808 185.543 423.458 195.244 447.555C200.87 461.539 206.108 477.057 213.577 488.982C221.07 500.945 230.955 509.533 245.951 509.431C252.726 510.185 263.778 509.527 276.394 508.835C289.1 508.138 303.491 507.399 317.039 507.967C330.609 508.536 343.21 510.414 352.389 514.874C356.965 517.098 360.65 519.945 363.191 523.554C365.726 527.153 367.164 531.567 367.164 537.005C367.164 538.033 366.297 539.177 363.921 540.306C361.621 541.397 358.272 542.29 354.174 542.986C345.997 544.376 335.113 544.945 324.369 544.935H324.215L324.068 544.981H324.067H324.066C324.066 544.982 324.064 544.982 324.062 544.982C324.059 544.984 324.053 544.986 324.045 544.988C324.029 544.993 324.006 545.001 323.975 545.011C323.913 545.03 323.821 545.058 323.7 545.096C323.459 545.171 323.103 545.282 322.647 545.423C321.736 545.704 320.422 546.106 318.818 546.589C315.609 547.554 311.238 548.841 306.587 550.127C301.935 551.414 297.011 552.698 292.695 553.659C288.348 554.628 284.711 555.247 282.583 555.247C270.868 555.247 261.519 554.808 253.155 554.619C244.806 554.431 237.462 554.492 229.865 555.511C214.657 557.55 198.555 563.403 171.299 578.511C165.723 580.762 157.708 581.718 149.445 582.152C141.114 582.591 132.887 582.495 126.604 582.736L126.583 582.737L126.562 582.739C123.656 582.972 119.849 584.304 115.464 586.268C111.051 588.244 105.94 590.911 100.396 593.901C89.2829 599.894 76.4016 607.193 63.6328 612.994C50.8439 618.805 38.3196 623.039 27.9365 623C22.7651 622.981 18.1769 621.9 14.3545 619.473C10.5493 617.056 7.42301 613.254 5.24121 607.642C2.10601 596.16 -2.35021 572.207 -0.609375 545.866C1.13474 519.476 9.08892 490.82 30.6729 469.853L30.7002 469.826L30.7246 469.798C64.4742 431.606 89.5705 388.873 113.191 345.146L113.19 345.146C119.467 333.538 129.395 324.644 141.237 320.125L141.236 320.124C168.432 309.752 185.335 300.904 197.318 293.411C203.308 289.666 208.06 286.265 212.238 283.195C216.426 280.119 220.005 277.403 223.7 274.981C238.331 265.395 254.776 260.443 316.258 259.002Z",stroke:"url(#paint1_linear_17714_6315)",strokeOpacity:.8,strokeWidth:2}),React__namespace.createElement("path",{d:"M225 298C225 293.582 228.582 290 233 290H567C571.418 290 575 293.582 575 298V502C575 506.419 571.418 510 567 510H233C228.582 510 225 506.419 225 502V298Z",fill:"white",fillOpacity:.8}),React__namespace.createElement("path",{d:"M225 298C225 293.582 228.582 290 233 290H567C571.418 290 575 293.582 575 298V502C575 506.419 571.418 510 567 510H233C228.582 510 225 506.419 225 502V298Z",fill:"url(#paint2_linear_17714_6315)",fillOpacity:.8}),React__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M245.003 339.183C245.004 337.977 245.981 337 247.187 337H554.816C556.022 337 557 337.978 557 339.184V341.816C557 343.022 556.022 344 554.816 344H247.185C245.979 344 245.001 343.021 245.001 341.815L245.003 339.183Z",fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:350,y:375,width:81,height:12,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:350,y:402,width:81,height:11,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:350,y:428,width:113,height:12,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:350,y:455,width:37,height:12,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:245,y:305,width:148,height:18,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:526,y:305,width:30,height:17,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:244.262,y:362.1,width:92.8147,height:111.378,rx:6.55163,fill:"#AEAEAE"}),React__namespace.createElement("path",{d:"M279.089 436.469V436.639C279.042 440.235 276.015 442.939 270.008 444.751C277.246 450.01 284.485 454.217 291.724 454.217C298.963 454.217 306.201 450.01 313.44 444.751C307.474 442.937 304.446 440.229 304.359 436.627C304.359 435.26 304.364 421.942 304.37 420.575C304.801 420.636 304.765 420.597 304.37 420.487C304.382 415.984 304.401 421.879 304.428 415.725C304.455 409.57 278.671 404.064 279.05 420.963C279.055 422.686 279.065 434.518 279.089 436.469Z",fill:"url(#paint3_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M278.748 428.213C289.346 427.112 299.324 431.7 299.324 431.7C299.324 431.7 297.346 442.091 278.748 439.071V428.213Z",fill:"#CDCDCD"}),React__namespace.createElement("mask",{id:"mask0_17714_6315",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:244,y:362,width:94,height:112},React__namespace.createElement("rect",{x:244.262,y:362.1,width:92.8147,height:111.378,rx:6.55163,fill:"#AEAEAE"})),React__namespace.createElement("g",{mask:"url(#mask0_17714_6315)"},React__namespace.createElement("path",{d:"M338.753 457.237C343.017 464.867 345.471 482.463 345.471 482.463H237.977C237.977 482.463 240.432 464.865 244.695 457.237C248.958 449.61 274.939 442.535 274.939 442.535C274.939 447.159 283.901 453.826 290.909 453.945C300.682 453.945 308.496 447.159 308.496 442.533C308.496 442.533 334.489 449.608 338.753 457.237Z",fill:"#757575"})),React__namespace.createElement("path",{d:"M270.058 406.472C271.471 404.115 273.234 405.735 273.938 406.841L274.923 417.321C274.888 418.233 274.342 418.812 272.917 418.992C271.135 419.218 269.958 414.366 269.548 412.555C269.137 410.744 268.292 409.418 270.058 406.472Z",fill:"url(#paint4_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M312.719 407.072C311.329 404.702 309.551 406.306 308.836 407.404L307.752 417.875C307.778 418.787 308.319 419.372 309.742 419.565C311.522 419.808 312.744 414.967 313.172 413.16C313.6 411.353 314.458 410.035 312.719 407.072Z",fill:"url(#paint5_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M311.315 408.913C311.315 424.069 300.342 436.356 291.778 436.356C282.412 436.356 272.242 424.069 272.242 408.913C272.242 395.409 273.32 380.979 291.778 380.979C310.237 380.979 311.315 395.097 311.315 408.913Z",fill:"url(#paint6_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M532.362 467.202V467.276C532.344 468.847 531.133 470.028 528.73 470.82C531.625 473.117 534.52 474.955 537.415 474.955C540.31 474.955 543.205 473.117 546.1 470.82C543.714 470.027 542.503 468.844 542.468 467.271C542.468 466.674 542.47 460.856 542.473 460.259C542.645 460.286 542.631 460.269 542.473 460.221C542.477 458.254 542.485 460.829 542.496 458.14C542.507 455.452 532.195 453.047 532.347 460.429C532.349 461.181 532.353 466.35 532.362 467.202Z",fill:"url(#paint7_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M528.247 452.919C528.781 451.958 529.507 452.583 529.803 453.016L530.334 457.193C530.332 457.558 530.121 457.796 529.554 457.887C528.845 458.001 528.311 456.076 528.123 455.358C527.935 454.639 527.579 454.12 528.247 452.919Z",fill:"url(#paint8_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M546.495 453.227C546.044 452.225 545.268 452.786 544.936 453.192L544.054 457.309C544.025 457.673 544.214 457.928 544.772 458.067C545.469 458.24 546.164 456.368 546.412 455.668C546.66 454.967 547.058 454.48 546.495 453.227Z",fill:"url(#paint9_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M556.225 476.272C557.93 479.605 558.912 487.291 558.912 487.291H515.922C515.922 487.291 516.904 479.604 518.609 476.272C520.314 472.94 530.704 469.85 530.704 469.85C531.624 471.666 534.326 473.322 537.091 473.396C540.092 473.477 543.168 471.82 544.125 469.849C544.125 469.849 554.52 472.939 556.225 476.272Z",fill:"white"}),React__namespace.createElement("path",{d:"M545.235 453.528C545.235 459.888 540.785 465.043 537.312 465.043C533.513 465.043 529.389 459.888 529.389 453.528C529.389 447.862 529.516 441.72 537.312 441.807C545.647 441.807 545.235 447.731 545.235 453.528Z",fill:"url(#paint10_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M134.007 396.57C144.986 397.048 155.118 390.784 163.483 383.667C173.929 374.776 182.905 364.174 189.933 352.411C195.126 343.729 199.257 334.425 204.913 326.026C214.431 311.88 220.886 296.856 229.115 281.927C244.685 281.655 263.217 283.757 282.58 278.234C294.079 283.4 306.58 286.346 319.186 286.863C327.183 287.189 335.552 286.45 342.431 282.368C349.31 278.287 354.875 270.22 353.162 262.416C351.351 257.943 328.373 252.036 315.534 248.718C304.614 240.415 291.751 240.233 278.028 239.813C264.305 239.394 242.859 239.114 229.536 239.347C216.214 239.581 208.114 235.767 200.663 241.169C164.97 267.073 156.015 305.74 117.861 327.881C114.23 340.157 111.424 353.467 114.046 365.992C116.668 378.517 123.759 388.867 134.017 396.57L134.007 396.57Z",fill:"url(#paint11_linear_17714_6315)",fillOpacity:.35}),React__namespace.createElement("path",{d:"M201.25 241.979C204.701 239.476 208.311 239.075 212.843 239.319C217.308 239.559 222.866 240.465 229.553 240.348C242.854 240.114 264.284 240.394 277.997 240.813C291.795 241.235 304.308 241.439 314.929 249.514L315.089 249.635L315.283 249.686C321.709 251.347 330.633 253.646 338.175 256.085C341.949 257.306 345.345 258.552 347.897 259.759C349.174 260.363 350.209 260.944 350.966 261.49C351.696 262.016 352.061 262.439 352.204 262.728C353.719 269.91 348.577 277.559 341.92 281.508C335.293 285.44 327.162 286.187 319.226 285.863C306.748 285.352 294.372 282.436 282.99 277.321L282.657 277.172L282.306 277.272C263.11 282.747 244.83 280.652 229.097 280.927L228.518 280.937L228.239 281.444C219.944 296.492 213.574 311.363 204.084 325.467C201.226 329.711 198.759 334.175 196.368 338.64C193.97 343.118 191.656 347.584 189.075 351.898L189.074 351.898C182.32 363.202 173.752 373.426 163.802 382.073L162.835 382.906C154.596 389.915 144.832 395.907 134.371 395.581C124.421 388.029 117.571 377.95 115.025 365.787C112.483 353.646 115.141 340.685 118.71 328.542C137.778 317.375 149.587 302.111 160.992 286.527C172.306 271.068 183.209 255.321 200.426 242.583L201.25 241.979Z",stroke:"url(#paint12_linear_17714_6315)",strokeOpacity:.8,strokeWidth:2})),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"paint0_linear_17714_6315",x1:228.178,y1:405.156,x2:52.4989,y2:551.352,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint1_linear_17714_6315",x1:207.209,y1:440.712,x2:37.1322,y2:556.905,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint2_linear_17714_6315",x1:378.099,y1:323.737,x2:295.587,y2:643.028,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint3_linear_17714_6315",x1:289.798,y1:421.991,x2:289.798,y2:442.905,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#B1B1B1"}),React__namespace.createElement("stop",{offset:1,stopColor:"white"})),React__namespace.createElement("linearGradient",{id:"paint4_linear_17714_6315",x1:273.869,y1:411.771,x2:270.469,y2:412.399,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.171875,stopColor:"#BDBDBD"}),React__namespace.createElement("stop",{offset:.640625,stopColor:"#E1E1E1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#DDDDDD"})),React__namespace.createElement("linearGradient",{id:"paint5_linear_17714_6315",x1:308.858,y1:412.335,x2:312.252,y2:412.996,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.0416667,stopColor:"#B5B5B5"}),React__namespace.createElement("stop",{offset:.362488,stopColor:"#E2E2E2"}),React__namespace.createElement("stop",{offset:1,stopColor:"white"})),React__namespace.createElement("linearGradient",{id:"paint6_linear_17714_6315",x1:274.644,y1:408.409,x2:297.208,y2:408.125,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#E0E0E0"}),React__namespace.createElement("stop",{offset:.510417,stopColor:"#F4F4F4"}),React__namespace.createElement("stop",{offset:1,stopColor:"white"})),React__namespace.createElement("linearGradient",{id:"paint7_linear_17714_6315",x1:536.645,y1:460.878,x2:536.645,y2:470.013,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D6D4D4"}),React__namespace.createElement("stop",{offset:1,stopColor:"#E4E4E4"})),React__namespace.createElement("linearGradient",{id:"paint8_linear_17714_6315",x1:528.777,y1:453.97,x2:529.187,y2:456.527,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D7D7D7"}),React__namespace.createElement("stop",{offset:1,stopColor:"#CDCDCD"})),React__namespace.createElement("linearGradient",{id:"paint9_linear_17714_6315",x1:545.877,y1:454.229,x2:545.253,y2:456.743,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D9D9D9"}),React__namespace.createElement("stop",{offset:1,stopColor:"#CDCDCD"})),React__namespace.createElement("linearGradient",{id:"paint10_linear_17714_6315",x1:528.973,y1:456.379,x2:538.202,y2:456.379,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#CECECE"}),React__namespace.createElement("stop",{offset:1,stopColor:"#E7E7E7"})),React__namespace.createElement("linearGradient",{id:"paint11_linear_17714_6315",x1:194.898,y1:296.054,x2:149.044,y2:370.026,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:.512567,stopColor:"white",stopOpacity:.3}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint12_linear_17714_6315",x1:212.019,y1:287.751,x2:159.637,y2:358.721,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("clipPath",{id:"clip0_17714_6315"},React__namespace.createElement("rect",{width:800,height:800,fill:"white"})))),SvgFrontVerticalHint=Be=>React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 800 800",...Be},React__namespace.createElement("g",{clipPath:"url(#a)"},React__namespace.createElement("path",{fill:"url(#b)",fillOpacity:.5,d:"M205.545 199.272c2.987-17.019.684-56.074 12.868-76.138 11.647-6.27 17.953-4.698 24.189 0 7.572 5.704 45.69 63.598 10.751 166.608-3.584 21.498 4.479 49.266-15.23 100.324 30.46-21.498-2.114-11.645 53.431-79.722 55.545-68.076 75.85-87.12 154.688-68.309 63.071 15.048 108.351 31.948 128.061 38.517 6.868 3.284 20.247 8.474 18.813 19.939-.949 7.592-3.406 18.201-15.23 25.567 4.778 9.393 9.193 32.657 5.609 50.572 0 13.615 4.246 22.99 4.246 25.976-.814 2.239-2.001 4.677-3.584 7.018 5.674 2.736 14.184 11.687 12.777 25.229-1.415 13.615-2.987 28.365-4.48 34.038l-3.064 19.707c-2.083 12.241-14.14 20.685-23.59 18.795 4.08 1.266 8.356 3.932 9.45 5.39 2.688 3.583 5.375 4.478 12.542 10.749 17.918 8.061 16.218 18.532 16.126 23.289-.043 2.266-3.07 8.72-4.862 10.81-1.791 2.09-3.594 5.729-14.151 7.783-16.8 3.269-37.428-9.688-56.241-7.001-18.813 2.687-70.776 36.725-94.069 43.891-23.293 7.166-43.002 103.96-79.734 159.496-16.484 39.413-73.02 90.965-111.395 91.199-38.375.235-123.515-56.461-139.389-69.694-15.8738-13.234-22.0608-33.524-21.1786-48.522.8822-14.998 37.4366-66.166 37.0526-84.692-.383-18.527-3.994-132.829 1.381-180.304 5.375-47.474 45.691-145.111 43.003-166.609-2.688-21.497 1.792-38.517 6.271-42.995 3.584-3.583 24.786-42.1 34.939-60.911Z"}),React__namespace.createElement("path",{stroke:"url(#c)",strokeOpacity:.8,strokeWidth:2.5,d:"M528.664 333.634c30.755 2.948 38.726-1.036 49.222-7.576m-46.757 160.815c21.935 14.473 26.888 18.963 34.671 20.52m12.086-181.335c11.824-7.366 14.281-17.975 15.23-25.567 1.434-11.465-11.945-16.655-18.813-19.939-19.71-6.569-64.99-23.469-128.061-38.517-78.838-18.811-99.143.233-154.688 68.309-55.545 68.077-22.971 58.224-53.431 79.722 19.709-51.058 11.646-78.826 15.23-100.324 34.939-103.01-3.179-160.904-10.751-166.608-6.236-4.698-12.542-6.27-24.189 0-12.184 20.064-9.881 59.119-12.868 76.138-10.153 18.811-31.355 57.328-34.939 60.911-4.479 4.478-8.959 21.498-6.271 42.995 2.688 21.498-37.628 119.135-43.003 166.609-5.375 47.475-1.764 161.777-1.381 180.304.384 18.526-36.1704 69.694-37.0526 84.692-.8822 14.998 5.3048 35.288 21.1786 48.522 15.874 13.233 101.014 69.929 139.389 69.694 38.375-.234 94.911-51.786 111.395-91.199 36.732-55.536 56.441-152.33 79.734-159.496 23.293-7.166 75.256-41.204 94.069-43.891 18.813-2.687 39.441 10.27 56.241 7.001 10.557-2.054 12.36-5.693 14.152-7.783 1.791-2.09 4.818-8.544 4.861-10.81.092-4.757 1.792-15.228-16.126-23.289-7.167-6.271-9.854-7.166-12.542-10.749-1.094-1.458-5.37-4.124-9.45-5.39m12.086-181.335c4.778 9.393 9.193 32.657 5.609 50.572 0 13.615 4.246 22.99 4.246 25.976-.814 2.239-2.001 4.677-3.584 7.018m-43.847-7.018c28.986 27.495 36.145 18.412 43.847 7.018m0 0c5.674 2.736 14.184 11.687 12.777 25.229-1.415 13.615-2.986 28.365-4.48 34.038l-3.064 19.707c-2.083 12.241-14.14 20.685-23.59 18.795m0 0c-17.909-3.583-23.691-20.885-25.49-29.544-.466-8.314.3-28.053 7.093-40.507l-16.274-12.029"}),React__namespace.createElement("g",{filter:"url(#d)"},React__namespace.createElement("path",{fill:"#fff",fillOpacity:.8,d:"M527.351 177c6.986 0 12.649 5.663 12.649 12.649v420.702c0 6.986-5.663 12.649-12.649 12.649H272.649c-6.986 0-12.649-5.663-12.649-12.649V189.649c0-6.986 5.663-12.649 12.649-12.649h254.702Z"}),React__namespace.createElement("path",{fill:"url(#e)",fillOpacity:.8,d:"M527.351 177c6.986 0 12.649 5.663 12.649 12.649v420.702c0 6.986-5.663 12.649-12.649 12.649H272.649c-6.986 0-12.649-5.663-12.649-12.649V189.649c0-6.986 5.663-12.649 12.649-12.649h254.702Z"}),React__namespace.createElement("path",{stroke:"#fff",strokeWidth:4.18219,d:"M537.909 189.648v420.704c0 5.83-4.727 10.557-10.557 10.557H272.648c-5.83 0-10.557-4.727-10.557-10.557V189.648c0-5.83 4.727-10.557 10.557-10.557h254.704c5.83 0 10.557 4.727 10.557 10.557Z"})),React__namespace.createElement("path",{fill:"#C9C9C9",fillRule:"evenodd",d:"M477.543 202.25c1.539.001 2.786 1.249 2.786 2.788v392.034c0 1.54-1.248 2.788-2.788 2.788h-3.604c-1.54 0-2.788-1.248-2.788-2.788V205.036c0-1.54 1.249-2.789 2.79-2.788l3.604.002Z",clipRule:"evenodd"}),React__namespace.createElement("rect",{width:103.085,height:15.1766,x:432.132,y:336.888,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 432.132 336.888)"}),React__namespace.createElement("rect",{width:103.085,height:15.1766,x:397.704,y:336.886,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 397.704 336.886)"}),React__namespace.createElement("rect",{width:143.057,height:15.1766,x:363.283,y:336.886,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 363.283 336.886)"}),React__namespace.createElement("rect",{width:46.283,height:15.1766,x:328.854,y:336.886,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 328.854 336.886)"}),React__namespace.createElement("rect",{width:189.522,height:21.128,x:520.38,y:201.9,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 520.38 201.9)"}),React__namespace.createElement("rect",{width:38.7345,height:21.128,x:520.38,y:560.194,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 520.38 560.194)"}),React__namespace.createElement("rect",{width:118.495,height:142.195,x:447.95,y:201.59,fill:"#AEAEAE",rx:8.36438,transform:"rotate(90 447.95 201.59)"}),React__namespace.createElement("path",{fill:"url(#f)",d:"M353.004 246.053h-.217c-4.591-.059-8.043-3.924-10.357-11.594-6.713 9.242-12.084 18.484-12.084 27.725 0 9.242 5.371 18.483 12.084 27.725 2.316-7.618 5.774-11.482 10.372-11.594 1.746 0 18.749.006 20.494.014-.077.551-.028.504.112 0 5.749.015-1.777.04 6.08.074 7.858.034 14.887-32.883-6.688-32.4-2.2.007-17.305.02-19.796.05Z"}),React__namespace.createElement("path",{fill:"#CDCDCD",d:"M363.546 245.619c1.405 13.53-4.453 26.269-4.453 26.269s-13.265-2.525-9.41-26.269h13.863Z"}),React__namespace.createElement("mask",{id:"g",width:143,height:120,x:305,y:201,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},React__namespace.createElement("rect",{width:118.495,height:142.195,x:447.95,y:201.59,fill:"#AEAEAE",rx:8.36438,transform:"rotate(90 447.95 201.59)"})),React__namespace.createElement("g",{mask:"url(#g)"},React__namespace.createElement("path",{fill:"#757575",d:"M326.49 322.225c-9.74 5.444-32.205 8.577-32.205 8.577V193.565s22.467 3.135 32.205 8.577c9.738 5.443 18.77 38.612 18.77 38.612-5.903 0-14.415 11.442-14.567 20.39 0 12.476 8.664 22.452 14.571 22.452 0 0-9.033 33.185-18.774 38.629Z"})),React__namespace.createElement("path",{fill:"url(#h)",d:"M391.302 234.526c3.009 1.804.94 4.055-.471 4.954l-13.38 1.257c-1.164-.044-1.904-.742-2.134-2.561-.288-2.275 5.906-3.777 8.219-4.301 2.312-.524 4.005-1.604 7.766.651Z"}),React__namespace.createElement("path",{fill:"url(#i)",d:"M390.535 288.99c3.026-1.776.978-4.046-.424-4.959l-13.368-1.383c-1.164.033-1.91.724-2.158 2.541-.309 2.272 5.87 3.833 8.178 4.378 2.307.546 3.989 1.642 7.772-.577Z"}),React__namespace.createElement("path",{fill:"url(#j)",d:"M388.186 287.196c-19.35 0-35.036-14.008-35.036-24.942 0-11.958 15.686-24.941 35.036-24.941 17.24 0 35.662 1.375 35.662 24.941s-18.023 24.942-35.662 24.942Z"}),React__namespace.createElement("g",{clipPath:"url(#k)"},React__namespace.createElement("path",{fill:"url(#l)",d:"M314.47 568.667h-.094c-2-.024-3.503-1.566-4.51-4.628-2.924 3.689-5.263 7.378-5.263 11.067s2.339 7.378 5.263 11.067c1.008-3.04 2.514-4.583 4.516-4.628.76 0 8.165.003 8.925.006-.034.22-.012.201.048 0 2.504.006-.773.016 2.648.029 3.422.014 6.483-13.126-2.912-12.933-.958.003-7.536.008-8.621.02Z"}),React__namespace.createElement("path",{fill:"url(#m)",d:"M332.577 563.457c1.227.682.429 1.609-.123 1.987l-5.333.678c-.466-.003-.771-.272-.887-.996-.145-.906 2.312-1.588 3.23-1.828.917-.239 1.58-.693 3.113.159Z"}),React__namespace.createElement("path",{fill:"url(#n)",d:"M332.184 586.754c1.28-.576.563-1.567.045-1.99l-5.256-1.127c-.465-.037-.792.206-.968.918-.221.89 2.169 1.777 3.063 2.093.894.317 1.516.825 3.116.106Z"}),React__namespace.createElement("path",{fill:"#fff",d:"M302.926 599.073c-4.241 2.173-14.024 3.424-14.024 3.424v-54.781s9.784 1.251 14.024 3.423c4.241 2.173 8.174 15.413 8.174 15.413-2.311 1.173-4.42 4.615-4.514 8.139-.102 3.824 2.007 7.744 4.516 8.963 0 0-3.934 13.246-8.176 15.419Z"}),React__namespace.createElement("path",{fill:"#C6C6C6",d:"M302.926 599.073c-4.241 2.173-14.024 3.424-14.024 3.424v-54.781s9.784 1.251 14.024 3.423c4.241 2.173 8.174 15.413 8.174 15.413-2.57 0-6.277 4.568-6.343 8.139 0 4.98 3.773 8.963 6.345 8.963 0 0-3.934 13.246-8.176 15.419Z"}),React__namespace.createElement("path",{fill:"url(#o)",d:"M331.799 585.145c-8.119 0-14.701-5.681-14.701-10.115 0-4.85 6.582-10.115 14.701-10.115 7.235 0 15.075.162 14.964 10.115 0 10.642-7.562 10.115-14.964 10.115Z"}))),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"b",x1:399,x2:247,y1:31.5,y2:711.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:.645103,stopColor:"#fff",stopOpacity:.35}),React__namespace.createElement("stop",{offset:.830381,stopColor:"#fff",stopOpacity:.1}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"c",x1:462.249,x2:232.613,y1:119,y2:681.21,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:.692339,stopColor:"#fff",stopOpacity:.65411}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"e",x1:497.062,x2:90.6296,y1:372.093,y2:267.188,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"f",x1:371.488,x2:344.787,y1:259.725,y2:259.725,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#B1B1B1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"h",x1:384.537,x2:383.734,y1:239.392,y2:235.051,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.171875,stopColor:"#BDBDBD"}),React__namespace.createElement("stop",{offset:.640625,stopColor:"#E1E1E1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#DDD"})),React__namespace.createElement("linearGradient",{id:"i",x1:383.816,x2:382.973,y1:284.06,y2:288.393,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.0416667,stopColor:"#B5B5B5"}),React__namespace.createElement("stop",{offset:.362488,stopColor:"#E2E2E2"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"j",x1:388.829,x2:389.192,y1:240.379,y2:269.186,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#E0E0E0"}),React__namespace.createElement("stop",{offset:.510417,stopColor:"#F4F4F4"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"l",x1:322.52,x2:310.892,y1:574.125,y2:574.125,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D6D4D4"}),React__namespace.createElement("stop",{offset:1,stopColor:"#E4E4E4"})),React__namespace.createElement("linearGradient",{id:"m",x1:331.236,x2:327.97,y1:564.134,y2:564.657,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D7D7D7"}),React__namespace.createElement("stop",{offset:1,stopColor:"#CDCDCD"})),React__namespace.createElement("linearGradient",{id:"n",x1:330.904,x2:327.695,y1:585.965,y2:585.169,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D9D9D9"}),React__namespace.createElement("stop",{offset:1,stopColor:"#CDCDCD"})),React__namespace.createElement("linearGradient",{id:"o",x1:328.16,x2:328.16,y1:564.384,y2:576.167,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#CECECE"}),React__namespace.createElement("stop",{offset:1,stopColor:"#E7E7E7"})),React__namespace.createElement("clipPath",{id:"a"},React__namespace.createElement("path",{fill:"#fff",d:"M0 0h800v800H0z"})),React__namespace.createElement("clipPath",{id:"k"},React__namespace.createElement("path",{fill:"#fff",d:"M0 0h60.2597v65.7385H0z",transform:"rotate(90 -94.546 450.431)"})),React__namespace.createElement("filter",{id:"d",width:362.764,height:528.764,x:218.618,y:141.135,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},React__namespace.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),React__namespace.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),React__namespace.createElement("feOffset",{dy:5.51762}),React__namespace.createElement("feGaussianBlur",{stdDeviation:20.6911}),React__namespace.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),React__namespace.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_17753_4329"}),React__namespace.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_17753_4329",result:"shape"})))),SvgPassportHorizontalHint=Be=>React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 800 800",...Be},React__namespace.createElement("g",{clipPath:"url(#a)"},React__namespace.createElement("path",{fill:"url(#b)",d:"M415.572 580.418c4.238-.127 9.173-1.097 14.216-2.469l23.174-8.448c-2.299 4.667-3.336 8.669-3.376 12.08-.03 4.204 1.466 7.435 3.865 9.807 2.362 2.317 5.505 3.738 8.659 4.549 3.176.815 6.477 1.043 9.289.908l.412.005.328-.213c8.506-4.907 27.223-15.81 35.28-20.989 2.042.327 4.428-.193 6.778-1.039 2.731-.977 5.744-2.508 8.725-4.27 5.363-3.156 10.78-7.126 14.544-10.137 3.843 3.905 8.33 5.211 12.163 5.269 2.081.028 3.99-.298 5.512-.801.922-.288 1.777-.649 2.461-1.094.158.034.33.058.493.069.678.026 1.278-.189 1.701-.405l27.061-60.035c4.892-12.832 2.373-25.148-2.101-38.976-1.122-3.493-2.38-7.073-3.676-10.804-3.872-11.105-8.182-23.483-10.966-38.273-.117-15.297-4.053-24.765-9.202-30.35-5.099-5.54-11.272-7.073-15.562-6.697-20.792-1.449-69.646-4.875-99.793-7.035-12.981-.927-23.098-3.717-31.98-6.166l-.039-.011-.151-.041c-3.878-1.067-7.528-2.071-11.093-2.827-5.824-1.235-11.348-1.769-16.991-.631-5.656 1.147-11.287 3.951-17.38 9.157-27.728 21.918-63.835 48.309-78.424 58.766l-.074.067-.068.044c-11.63 10.46-28.652 31.511-48.357 46.072 0 0 6.739 18.716 8.816 35.5 2.077 16.784 5.184 17.5 5.684 39.5s3 38.5-9 78.5c-11.269 37.563-28.5 40-28.5 40 37.5 1.5 63.902 1.409 109.858-41.662 4.243-4.1 23.892-20.125 30.287-25.255 11.454-9.189 15.119-14.692 23.552-20.699 7.269-5.193 15.011-11.434 19.641-16.136.608 4.528 3.008 9.117 5.062 12.277 2.472 2.305 5.016 3.026 9.172 2.893Z"}),React__namespace.createElement("path",{fill:"url(#c)",fillRule:"evenodd",d:"M558.988 386.387c-4.458-4.962-9.693-6.218-13.027-5.894l-.124.012-.125-.008c-8.099-.566-20.943-1.429-35.389-2.401-22.488-1.512-48.857-3.285-67.245-4.6l.214-2.992c18.389 1.315 44.731 3.086 67.209 4.598 14.378.966 27.175 1.827 35.299 2.393 4.286-.372 10.382 1.279 15.42 6.888 5.077 5.652 8.975 15.197 9.095 30.473 2.761 14.712 7.066 27.199 10.95 38.465 1.335 3.875 2.621 7.605 3.777 11.232 4.5 14.112 7.038 26.692 2.176 39.48l-.024.064-28.904 59.127-.151.163c-.721.775-2.016 1.446-3.468 1.916-1.513.491-3.4.829-5.471.799-3.837-.054-8.318-1.376-12.16-5.317-3.759 3.02-9.217 7.023-14.618 10.206-2.978 1.755-5.983 3.288-8.705 4.263-2.374.85-4.753 1.359-6.763 1.024-8.027 5.163-26.785 16.099-35.313 21.01l-.317.182-.365.016c-2.8.126-6.088-.101-9.244-.906-3.146-.803-6.261-2.208-8.598-4.516-2.374-2.345-3.862-5.546-3.822-9.717.04-4.117 1.563-9.098 5.007-15.114 8.571-14.971 20.411-25.619 30.526-32.931 5.06-3.659 9.698-6.489 13.286-8.607.74-.438 1.429-.84 2.066-1.213.919-.537 1.73-1.012 2.435-1.436.544-.328.99-.606 1.346-.841-2.242-4.159-4.959-10.333-6.535-16.688-1.408-5.679-1.984-11.82-.172-16.784-6.742 1.437-16.148 2.973-25.565 3.575-5.481.35-10.997.386-16.011-.107-4.996-.492-9.596-1.519-13.179-3.36l1.372-2.668c3.104 1.595 7.279 2.567 12.101 3.042 4.802.473 10.146.443 15.525.099 10.76-.688 21.533-2.622 28.148-4.193l3.676-.873-2.077 3.157c-2.762 4.199-2.579 10.64-.906 17.39 1.65 6.654 4.635 13.157 6.875 17.09l.592 1.04-.882.808c-.588.539-1.59 1.177-2.76 1.882-.716.432-1.56.925-2.497 1.473-.636.372-1.315.77-2.027 1.19-3.554 2.098-8.102 4.875-13.054 8.455-9.909 7.164-21.392 17.515-29.68 31.991-3.3 5.764-4.577 10.233-4.61 13.651-.032 3.364 1.137 5.783 2.931 7.555 1.832 1.81 4.398 3.02 7.231 3.743 2.691.687 5.532.91 8.007.83 8.887-5.12 27.855-16.188 35.383-21.081l.57-.371.655.185c1.195.338 3.094.103 5.633-.807 2.473-.886 5.297-2.315 8.193-4.022 5.222-3.077 10.533-6.968 14.207-9.916-1.54-2.103-2.903-4.711-4.005-7.914-3.444-10.007-1.412-23.561 1.874-35.925 2.551-9.597 5.937-18.739 8.357-25.273.637-1.72 1.207-3.259 1.677-4.578-.617-1.919-1.813-4.696-3.395-8.173-.67-1.471-1.408-3.066-2.191-4.759-1.189-2.57-2.481-5.364-3.792-8.282-4.143-9.22-8.617-19.986-11.211-30.211-12.095 4.085-30.926 7.388-47.85 9.173-8.855.934-17.239 1.457-23.923 1.455-3.34-.001-6.283-.134-8.663-.419-2.314-.277-4.305-.72-5.579-1.467l1.519-2.588c.693.407 2.136.803 4.417 1.077 2.217.265 5.032.396 8.307.397 6.546.002 14.819-.512 23.607-1.438 17.608-1.857 37.077-5.349 48.72-9.562l1.585-.573.385 1.641c2.445 10.402 7.071 21.603 11.422 31.286 1.311 2.916 2.582 5.665 3.762 8.214.784 1.695 1.528 3.303 2.215 4.813 1.694 3.723 3.05 6.863 3.684 9.028l.136.464-.16.456c-.52 1.476-1.166 3.22-1.892 5.18-2.419 6.533-5.729 15.469-8.238 24.91-3.279 12.338-5.06 25.101-1.936 34.177 1.221 3.549 2.75 6.197 4.404 8.157 3.412 4.042 7.477 5.297 10.902 5.346 1.727.024 3.288-.26 4.504-.654 1.081-.35 1.761-.744 2.066-.989l28.625-58.556c4.442-11.747 2.208-23.445-2.254-37.44-1.121-3.517-2.383-7.178-3.704-11.008-3.91-11.341-8.334-24.172-11.138-39.18l-.025-.132-.001-.134c-.095-14.879-3.875-23.665-8.328-28.623Z",clipRule:"evenodd",opacity:.5}),React__namespace.createElement("path",{fill:"url(#d)",fillOpacity:.3,d:"M561.108 29c5.463 0 9.892 4.3658 9.892 9.7513V274H229V38.7513C229 33.3658 233.429 29 238.892 29h322.216Z"}),React__namespace.createElement("path",{fill:"#C9C9C9",fillOpacity:.8,fillRule:"evenodd",d:"M571 274v-7H229v7h342Z",clipRule:"evenodd"}),React__namespace.createElement("path",{fill:"#fff",d:"M229 274h342v200H229z"}),React__namespace.createElement("path",{fill:"#E9E9EB",d:"M379.815 438c1.105 0 2 .895 2 2v10c0 1.105-.895 2-2 2h-44c-1.104 0-2-.895-2-2v-10c0-1.105.896-2 2-2h44Zm92-27c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2h-136c-1.104 0-2-.895-2-2v-9c0-1.105.896-2 2-2h136Zm-38-27c1.105 0 2 .895 2 2v10c0 1.105-.895 2-2 2h-98c-1.104 0-2-.895-2-2v-10c0-1.105.896-2 2-2h98Zm0-27c1.105 0 2 .895 2 2v10c0 1.105-.895 2-2 2h-98c-1.104 0-2-.895-2-2v-10c0-1.105.896-2 2-2h98Z"}),React__namespace.createElement("rect",{width:34,height:13,x:514.815,y:441,fill:"#E9E9EB",rx:2}),React__namespace.createElement("rect",{width:34,height:13,x:514.815,y:412,fill:"#E9E9EB",rx:2}),React__namespace.createElement("rect",{width:34,height:13,x:514.815,y:384,fill:"#E9E9EB",rx:2}),React__namespace.createElement("path",{fill:"#F4F4F5",d:"M229 474h342v40c0 6.627-5.373 12-12 12H241c-6.627 0-12-5.373-12-12v-40Z"}),React__namespace.createElement("rect",{width:140,height:20,x:252.815,y:302,fill:"#C9C9C9",fillOpacity:.5,rx:2}),React__namespace.createElement("rect",{width:27,height:27,x:522.815,y:302,fill:"#EAF0F6",rx:2}),React__namespace.createElement("rect",{width:302.152,height:13.6164,x:248.16,y:483.789,fill:"#C9C9C9",fillOpacity:.5,rx:1.13155}),React__namespace.createElement("rect",{width:302.152,height:13.6164,x:248.16,y:504.213,fill:"#C9C9C9",fillOpacity:.5,rx:1.13155}),React__namespace.createElement("path",{fill:"#fff",d:"M329.649 436.427c3.68 6.486 5.799 21.445 5.799 21.445h-92.787s2.12-14.961 5.799-21.445c3.68-6.485 26.106-12.499 26.106-12.499 1.986 3.534 7.817 6.758 13.786 6.902 6.476.156 13.115-3.068 15.18-6.904 0 0 22.436 6.015 26.117 12.501Z"}),React__namespace.createElement("path",{fill:"#AEAEAE",d:"M258.815 356c-4.418 0-8 3.587-8 8.012V434c6.876-5.44 23.751-9.973 23.751-9.973 0 3.937 7.736 9.613 13.786 9.714 8.435 0 15.18-5.777 15.18-9.716 0 0 14.738 3.957 22.283 8.915v-68.928c0-4.425-3.581-8.012-8-8.012h-59Z"}),React__namespace.createElement("path",{fill:"url(#e)",d:"M277.626 418.773v.147c-.04 3.108-2.643 5.444-7.808 7.01 6.224 4.545 12.448 8.18 18.671 8.18 6.223 0 12.447-3.635 18.67-8.18-5.129-1.567-7.732-3.908-7.807-7.021 0-1.181.004-12.691.009-13.872.371.052.34.019 0-.076.01-3.892.027 1.203.05-4.116.023-5.318-22.144-10.077-21.819 4.528.005 1.489.013 11.714.034 13.4Z"}),React__namespace.createElement("path",{fill:"#CDCDCD",d:"M277.738 411.629c9.325-.968 18.105 3.068 18.105 3.068s-1.74 9.138-18.105 6.482v-9.55Z"}),React__namespace.createElement("path",{fill:"url(#f)",d:"M269.964 392.91c1.232-1.943 2.75-.622 3.355.281l.808 8.599c-.034.749-.509 1.228-1.743 1.384-1.542.195-2.54-3.782-2.887-5.266-.348-1.485-1.074-2.569.467-4.998Z"}),React__namespace.createElement("path",{fill:"url(#g)",d:"M307.008 394.029c-1.214-1.954-2.745-.648-3.359.25l-.889 8.591c.027.749.498 1.232 1.73 1.4 1.54.21 2.576-3.757 2.937-5.239.362-1.481 1.098-2.558-.419-5.002Z"}),React__namespace.createElement("path",{fill:"#fff",d:"M306.028 394.716c0 13.008-9.533 23.552-16.974 23.552-8.138 0-16.973-10.544-16.973-23.552 0-11.589.936-23.973 16.973-23.973s16.974 12.116 16.974 23.973Z"}),React__namespace.createElement("path",{fill:"#707070",d:"M325.815 432.159V448c0 4.418-3.581 8-8 8h-59c-4.418 0-8-3.582-8-8v-14.752c6.876-5.589 23.5-9.748 23.5-9.748 0 4.044 7.987 9.378 14.037 9.482 8.435 0 14.963-5.435 14.963-9.482 0 0 14.955 3.565 22.5 8.659Z"}),React__namespace.createElement("path",{fill:"#C9C9C9",fillOpacity:.8,fillRule:"evenodd",d:"M240.815 24h318c9.389 0 17 7.6112 17 17v473c0 9.389-7.611 17-17 17h-318c-9.388 0-17-7.611-17-17V41c0-9.3888 7.612-17 17-17Zm0 5C234.188 29 229 34.3726 229 41v473c0 6.627 5.188 12 11.815 12h318c6.628 0 12.185-5.373 12.185-12V41c0-6.6274-5.557-12-12.185-12h-318Z",clipRule:"evenodd"}),React__namespace.createElement("path",{fill:"url(#h)",d:"m217.673 295.259-16.131 50.81-13.818 22.397c-4.624 5.653-13.741 19.044-13.22 27.374.652 10.412-2.49 76.411-1.699 90.409.632 11.198-11.848 86.074-16.16 114.816C138.641 720.427 221.067 681.548 237.5 646c13.148-28.439 18.47-65.338 15.816-112.912-1.609-28.845-14.401-55.523-15.73-79.338-1.419-25.445-4.848-60.056.409-74.683 14.3-26.206 5.169-64.457-1.588-78.635-5.406-11.342-14.742-8.175-18.734-5.173Z"}),React__namespace.createElement("path",{fill:"url(#i)",fillRule:"evenodd",d:"m206.963 348.548-14.441 23.406-.263.321c-2.114 2.586-5.32 7.03-7.896 11.731-1.285 2.344-2.346 4.633-3.047 6.698-.722 2.127-.937 3.656-.877 4.616.326 5.214-.215 22.625-.774 40.6-.04 1.277-.08 2.556-.119 3.834-.612 19.753-1.18 39.361-.805 46.012.198 3.494-.571 10.928-1.691 19.748-1.158 9.117-2.802 20.482-4.594 32.352-1.987 13.159-4.103 26.608-5.974 38.502-1.563 9.936-2.955 18.787-3.96 25.479v.005c-4.435 29.4-2.402 47.823 2.465 58.65 4.618 10.273 11.855 13.952 20.008 14.05 8.682.103 18.895-3.921 28.162-10.461 9.249-6.527 16.709-14.967 20.24-22.607 12.522-27.086 16.612-60.757 13.981-107.918-.765-13.706-4.194-27.017-7.771-40.313-.189-.705-.379-1.41-.57-2.115-3.332-12.356-6.719-24.914-7.388-36.91-.222-3.977-.498-8.241-.783-12.651-.611-9.436-1.265-19.538-1.524-28.919-.191-6.927-.176-13.641.239-19.621.41-5.895 1.23-11.472 2.834-15.936l.164-.456.232-.425c6.312-11.568 7.65-26.266 6.365-40.285-1.282-13.972-5.088-26.377-8.132-32.763-1.934-4.059-3.951-4.587-5.084-4.668-1.093-.078-2.296.236-3.337.716l-15.66 49.328Zm10.71-53.289-16.131 50.81-13.818 22.397c-4.624 5.653-13.741 19.044-13.22 27.374.307 4.909-.229 22.172-.798 40.517-.639 20.567-1.319 42.493-.902 49.892.489 8.652-6.85 55.318-12.202 89.348-1.575 10.014-2.977 18.933-3.958 25.468-18.003 119.362 65.69 78.443 82.124 42.895 13.147-28.439 17.202-63.298 14.547-110.872-.843-15.113-4.755-29.631-8.481-43.454-3.385-12.56-6.615-24.546-7.248-35.884-.228-4.091-.508-8.419-.796-12.862-1.502-23.196-3.208-49.546 1.205-61.821 14.3-26.206 5.169-64.457-1.589-78.635-5.406-11.342-14.741-8.175-18.733-5.173Z",clipRule:"evenodd"})),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"b",x1:651,x2:240.5,y1:-134,y2:662.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"c",x1:585.816,x2:451.816,y1:415,y2:658.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff",stopOpacity:.5}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"d",x1:399.499,x2:399.499,y1:29,y2:260,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.108594,stopColor:"#EAEAEA",stopOpacity:0}),React__namespace.createElement("stop",{offset:1,stopColor:"#848484"})),React__namespace.createElement("linearGradient",{id:"e",x1:286.833,x2:286.833,y1:406.261,y2:424.335,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#B1B1B1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"f",x1:273.239,x2:270.299,y1:397.239,y2:397.798,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.171875,stopColor:"#BDBDBD"}),React__namespace.createElement("stop",{offset:.640625,stopColor:"#E1E1E1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#DDD"})),React__namespace.createElement("linearGradient",{id:"g",x1:303.692,x2:306.626,y1:398.327,y2:398.914,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.0416667,stopColor:"#B5B5B5"}),React__namespace.createElement("stop",{offset:.362488,stopColor:"#E2E2E2"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"h",x1:292.5,x2:188.344,y1:69,y2:692.978,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#DCDCDC"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"i",x1:221.315,x2:220.354,y1:366,y2:565.109,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("clipPath",{id:"a"},React__namespace.createElement("path",{fill:"#fff",d:"M0 0h800v800H0z",transform:"matrix(-1 0 0 1 800 0)"})))),SvgPassportVerticalHint=Be=>React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 800 800",...Be},React__namespace.createElement("g",{clipPath:"url(#a)"},React__namespace.createElement("path",{fill:"url(#b)",fillRule:"evenodd",d:"M231.843 392.153c5.324-.558 10.366.505 13.447 1.683l.103.039 18.429 9.465 30.08 8.875c4.919.197 12.773 1.176 20.839 3.492 8.172 2.347 16.8 6.134 22.749 12.083 5.752 5.752 14.184 17.239 22.311 29.11 8.163 11.922 16.131 24.399 20.977 32.254l1.882 3.051h-3.584c-2.346 0-5.838.871-8.53 3.445-2.612 2.497-4.731 6.847-3.98 14.356 1.577 15.766-1.461 28.736-3.432 33.929.498 3.732.701 14.082-1.575 31.528-1.544 11.842-5.765 17.785-11.222 20.251-5.187 2.346-10.895 1.204-14.551.472l-.102-.02c-3.854-.771-6.617-3.938-8.45-7.012-.226-.378-.442-.762-.648-1.149-.616 4.316-1.458 9.242-2.532 14.117-1.824 8.285-4.387 16.766-7.836 21.725-3.712 5.336-9.083 6.7-14.016 6.301-3.065-.248-3.029-1.172-5.495-2.271l8.835 71.964c.002.006.003.013.004.019 3.11 16.822 2.207 44.074-1.632 68.258-3.825 24.086-10.669 45.831-32.092 54.442-20.967 8.428-45.704 6.62-67.903 1.111-22.19-5.508-42.134-14.787-53.792-21.704-5.516-2.684-13.393-7.875-19.281-14.861-5.921-7.027-10.041-16.154-7.198-26.435 2.511-9.078 3.07-24.757 2.691-40.907-.377-16.013-1.665-32.204-2.742-42.25l-6.509-31.548-.009-.145c-1.5-25.667-4.799-81.999-5.999-101.997-1.383-23.045 15.597-34.574 21.803-38.788.868-.589 1.524-1.035 1.892-1.35 1.297-1.112 4.584-4.514 8.268-8.438 3.608-3.842 7.487-8.067 9.985-10.814l16.954-22.938 17.505-22.506c6.505-8.673 21.396-28.495 28.997-38.496 4.214-5.545 9.991-7.778 15.359-8.341Zm.417 3.978c-4.566.479-9.206 2.329-12.592 6.784-7.595 9.994-22.491 29.822-28.992 38.49l-.01.014-17.496 22.494-17.046 23.062-.068.075c-2.505 2.755-6.438 7.039-10.097 10.936-3.616 3.851-7.079 7.449-8.581 8.737-.559.479-1.424 1.08-2.495 1.824-6.603 4.588-21.036 14.615-19.81 35.038 1.197 19.964 4.487 76.125 5.991 101.858l6.49 31.452.01.096c1.088 10.128 2.393 26.485 2.774 42.679.378 16.109-.146 32.346-2.835 42.068-2.356 8.519.94 16.309 6.402 22.79 5.468 6.489 12.895 11.383 18.043 13.877l.076.037.073.043c11.352 6.745 30.972 15.889 52.786 21.303 21.851 5.424 45.613 7.033 65.447-.939 19.377-7.789 25.865-27.627 29.633-51.358 3.751-23.623 4.701-50.41 1.646-66.923l-.004-.019-10.234-80.47 3.789 2.445c2.391 1.542 3.352 3.312 7.365 3.637 3.925.318 7.722-.735 10.409-4.599 2.951-4.241 5.388-12.01 7.214-20.3 1.805-8.196 2.944-16.564 3.437-21.747l3.94-.26c.464 2.01 1.522 5.131 3.144 7.85 1.666 2.793 3.653 4.709 5.799 5.138 3.849.77 8.333 1.584 12.222-.173 3.668-1.659 7.447-5.966 8.903-17.124 2.393-18.35 1.959-28.37 1.514-30.894l-.101-.568.218-.534c1.711-4.2 4.929-16.873 3.362-32.546-.849-8.492 1.532-14.142 5.195-17.645 2.444-2.336 5.34-3.604 7.936-4.174-4.869-7.804-11.968-18.839-19.216-29.426-8.156-11.912-16.391-23.092-21.839-28.54-5.251-5.251-13.122-8.797-21.025-11.067-7.869-2.26-15.531-3.187-20.131-3.349l-.253-.009-30.923-9.124-18.567-9.535c-2.598-.974-6.953-1.881-11.503-1.404Z",clipRule:"evenodd"}),React__namespace.createElement("path",{fill:"#fff",d:"M275 229h196v342H275V229Z"}),React__namespace.createElement("path",{fill:"url(#c)",fillOpacity:.3,d:"M30 238.863c0-5.447 4.3658-9.863 9.7513-9.863H275v341H39.7512c-5.3855 0-9.7513-4.416-9.7513-9.863L30 238.863Z"}),React__namespace.createElement("path",{fill:"#AEAEAE",d:"M353 538c0 4.418 3.587 8 8.012 8H431c-5.44-6.875-9.973-23.751-9.973-23.751 3.937 0 9.613-7.736 9.714-13.785 0-8.435-5.777-15.181-9.716-15.181 0 0 3.957-14.737 8.915-22.283h-68.928c-4.425 0-8.012 3.582-8.012 8v59Z"}),React__namespace.createElement("path",{fill:"url(#d)",d:"M415.773 519.189h.147c3.108.041 5.444 2.643 7.01 7.808 4.545-6.223 8.18-12.447 8.18-18.67 0-6.224-3.635-12.448-8.18-18.671-1.567 5.13-3.908 7.732-7.021 7.808-1.181 0-12.691-.004-13.872-.01.052-.371.019-.339-.076 0-3.892-.01 1.203-.027-4.116-.05-5.318-.023-10.077 22.145 4.528 21.819 1.489-.004 11.714-.013 13.4-.034Z"}),React__namespace.createElement("path",{fill:"#CDCDCD",d:"M408.63 519.077c-.969-9.325 3.067-18.105 3.067-18.105s9.138 1.74 6.482 18.105h-9.549Z"}),React__namespace.createElement("path",{fill:"url(#e)",d:"M389.91 526.852c-1.943-1.233-.622-2.751.281-3.356l8.599-.808c.749.034 1.228.509 1.384 1.743.195 1.542-3.782 2.54-5.266 2.888-1.485.347-2.569 1.073-4.998-.467Z"}),React__namespace.createElement("path",{fill:"url(#f)",d:"M391.03 489.808c-1.955 1.214-.649 2.744.249 3.358l8.591.889c.749-.027 1.233-.497 1.4-1.73.21-1.54-3.757-2.575-5.238-2.937-1.482-.362-2.559-1.098-5.002.42Z"}),React__namespace.createElement("path",{fill:"#fff",d:"M391.716 490.788c13.008 0 23.552 9.533 23.552 16.973 0 8.138-10.544 16.973-23.552 16.973-11.589 0-23.973-.936-23.973-16.973s12.116-16.973 23.973-16.973Z"}),React__namespace.createElement("path",{fill:"#707070",d:"M429.159 471H445c4.418 0 8 3.582 8 8v59c0 4.418-3.582 8-8 8h-14.752c-5.589-6.875-9.748-23.5-9.748-23.5 4.044 0 9.378-7.987 9.482-14.036 0-8.435-5.435-14.964-9.482-14.964 0 0 3.565-14.954 8.659-22.5Z"}),React__namespace.createElement("path",{fill:"#E9E9EB",d:"M436 418c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v43c0 1.104-.896 2-2 2h-9c-1.104 0-2-.896-2-2v-43Zm-26.214-91c0-1.105.896-2 2-2h9.286c1.105 0 2 .896 2 2v134c0 1.104-.895 2-2 2h-9.286c-1.104 0-2-.895-2-2V327Zm-26.571 37.154c0-1.104.895-2 2-2h9.286c1.104.001 2 .896 2 2V461c0 1.104-.896 2-2 2h-9.286c-1.105 0-2-.895-2-2v-96.846Zm-26.571 0c0-1.104.895-2 2-2h9.286c1.104.001 2 .896 2 2V461c0 1.104-.896 2-2 2h-9.286c-1.105 0-2-.895-2-2v-96.846Z"}),React__namespace.createElement("rect",{width:34,height:12,x:441,y:286,fill:"#E9E9EB",rx:2,transform:"rotate(-90 441 286)"}),React__namespace.createElement("rect",{width:34,height:12,x:413,y:286,fill:"#E9E9EB",rx:2,transform:"rotate(-90 413 286)"}),React__namespace.createElement("rect",{width:34,height:13,x:384,y:286,fill:"#E9E9EB",rx:2,transform:"rotate(-90 384 286)"}),React__namespace.createElement("path",{fill:"#F4F4F5",d:"M471 571V229h42c6.627 0 12 5.373 12 12v318c0 6.627-5.373 12-12 12h-42Z"}),React__namespace.createElement("rect",{width:139,height:19,x:303,y:546,fill:"#C9C9C9",fillOpacity:.5,rx:2,transform:"rotate(-90 303 546)"}),React__namespace.createElement("rect",{width:28,height:28,x:303,y:280,fill:"#EAF0F6",rx:2,transform:"rotate(-90 303 280)"}),React__namespace.createElement("rect",{width:299,height:13,x:481,y:551,fill:"#C9C9C9",fillOpacity:.5,rx:2,transform:"rotate(-90 481 551)"}),React__namespace.createElement("rect",{width:299,height:13,x:502,y:551,fill:"#C9C9C9",fillOpacity:.5,rx:2,transform:"rotate(-90 502 551)"}),React__namespace.createElement("path",{fill:"url(#g)",stroke:"url(#h)",strokeWidth:6,d:"M291.236 614.053c17.5 91 15.508 156.278 9.494 171.762-18.872 70.363-109.364 47.471-148.681 21.591-3.814-48.5 39.153-70.476 41.804-121.931-.152-7.444 14.136-81.358 15.979-91.247 1.843-9.89 1.168-48.684-1.131-61.128-2.3-12.445.075-38.353 7.916-64.553 7.84-26.201 20.701-33.312 35.79-31.013 15.826 2.412 18.824 15.696 20.965 25.184 2.142 9.489 8.143 25.784 8.486 52.132.343 26.348-5.267 16.251 9.378 99.203Z"}),React__namespace.createElement("path",{fill:"#C9C9C9",fillOpacity:.8,fillRule:"evenodd",d:"M23 559V241c0-9.389 7.6112-17 17-17h473c9.389 0 17 7.611 17 17v318c0 9.389-7.611 17-17 17H40c-9.3888 0-17-7.611-17-17Zm5 0c0 6.627 5.3726 12 12 12h473c6.627 0 12-5.373 12-12V241c0-6.627-5.373-12-12-12H40c-6.6274 0-12 5.373-12 12v318Z",clipRule:"evenodd"})),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"b",x1:451.5,x2:288.5,y1:411.5,y2:650.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"c",x1:30,x2:261,y1:400,y2:400,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.108594,stopColor:"#EAEAEA",stopOpacity:0}),React__namespace.createElement("stop",{offset:1,stopColor:"#848484"})),React__namespace.createElement("linearGradient",{id:"d",x1:403.261,x2:421.335,y1:509.982,y2:509.982,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#B1B1B1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"e",x1:394.239,x2:394.798,y1:523.577,y2:526.517,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.171875,stopColor:"#BDBDBD"}),React__namespace.createElement("stop",{offset:.640625,stopColor:"#E1E1E1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#DDD"})),React__namespace.createElement("linearGradient",{id:"f",x1:395.328,x2:395.914,y1:493.124,y2:490.189,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.0416667,stopColor:"#B5B5B5"}),React__namespace.createElement("stop",{offset:.362488,stopColor:"#E2E2E2"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"g",x1:284.5,x2:240.5,y1:48.0001,y2:752.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D9D9D9"}),React__namespace.createElement("stop",{offset:.897222,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"h",x1:239.736,x2:226.736,y1:477.053,y2:751.053,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.10944,stopColor:"#fff"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("clipPath",{id:"a"},React__namespace.createElement("path",{fill:"#fff",d:"M0 0h800v800H0z"})))),slideUpAndDown=mt`
|
|
5555
|
+
`,Top=({isWrongSide:Be,isIdle:Le,isFarAway:Ye,isCapturing:tt,isGlare:nt,isBlur:ft,mode:ht,isManualCapture:gt,orientation:At,minimalNotifications:xt})=>{const{t:Et}=useTranslation$1();if(tt)return jsxRuntimeExports.jsx(TopText,{title:Et("idv2.capture.takingPhoto"),subtitle:Et("idv2.capture.dontMove"),orientation:At});if(Be)return ht==="front"||ht==="passport"?jsxRuntimeExports.jsx(Notification$2,{type:"front",minimal:xt}):jsxRuntimeExports.jsx(Notification$2,{type:"back",minimal:xt});if(Ye)return jsxRuntimeExports.jsx(Notification$2,{type:"notAligned",minimal:xt});if(nt)return jsxRuntimeExports.jsx(Notification$2,{type:"glare",minimal:xt});if(ft)return jsxRuntimeExports.jsx(Notification$2,{type:"blur",minimal:xt});if(Le){const yt=`idv2.capture.fillFrame${capitalize$2(ht)}`;return jsxRuntimeExports.jsx(TopText,{title:Et(yt),subtitle:gt?"":Et("idv2.capture.autoCapture"),orientation:At})}},CaptureOverlay=React.forwardRef(({isWrongSide:Be,isIdle:Le,isFarAway:Ye,isGlare:tt,isBlur:nt,isManualCapture:ft,isCapturing:ht,mode:gt,frameColor:At,orientation:xt,counterValue:Et,isCameraReady:yt},Ct)=>{var wt;const kt=useTokens(),{uiConfig:vt}=useCaptureIdState(),{height:bt,width:It}=useAspectRatio(Ct,xt,gt==="passport"?"passport":"id");return jsxRuntimeExports.jsx(FlexCenter,{wFull:!0,hFull:!0,bg:kt.color.surface.neutral.dark,children:jsxRuntimeExports.jsxs(Box,{wFull:!0,hFull:!0,zIndex:10,children:[jsxRuntimeExports.jsx(Top,{isWrongSide:Be,isIdle:Le,isFarAway:Ye,isGlare:tt,isBlur:nt,isManualCapture:ft,isCapturing:ht,mode:gt,orientation:xt,minimalNotifications:((wt=vt==null?void 0:vt.notifications)==null?void 0:wt.minimal)??!1}),jsxRuntimeExports.jsx(Frame,{ref:Ct,style:{height:bt?`${bt}px`:void 0,width:It?`${It}px`:void 0},className:cx(xt,gt),children:jsxRuntimeExports.jsxs(StyledFrameBorder,{$frameColor:At,$isCameraReady:yt,children:[ht&&Et>0&&jsxRuntimeExports.jsx(Counter,{children:Et}),ht&&Et===0&&jsxRuntimeExports.jsx(FlashOverlay,{})]})}),jsxRuntimeExports.jsx(Bottom,{orientation:xt,children:jsxRuntimeExports.jsx(EncryptionLabel,{})})]})})});CaptureOverlay.displayName="CaptureOverlay";const FrameContainer=({children:Be})=>jsxRuntimeExports.jsx(FlexCenter,{wFull:!0,hFull:!0,children:jsxRuntimeExports.jsx(Box,{wFull:!0,hFull:!0,zIndex:10,children:Be})}),SvgBackHorizontalHint=Be=>React__namespace.createElement("svg",{width:802,height:800,viewBox:"0 0 802 800",fill:"none",xmlns:"http://www.w3.org/2000/svg",...Be},React__namespace.createElement("path",{d:"M400.998 274.069C401.25 265.541 379.406 266.366 370.767 265.572C338.454 262.602 336.684 260.97 318.328 258C195.208 260.877 251.462 277.778 142.88 319.191C130.802 323.8 120.695 332.864 114.311 344.671C90.6979 388.383 65.6465 431.033 31.9757 469.135C-11.6845 511.548 -0.0235567 584.886 6.29265 607.964C24.2699 654.367 106.875 585.478 128.642 583.736C140.973 583.261 162.232 584.089 173.728 579.418C228.223 549.204 237.668 556.247 284.583 556.247C293.591 556.247 326.368 545.935 326.368 545.935C347.902 545.956 370.164 543.656 370.164 537.005C370.164 491.994 274.662 511.442 248.007 508.431C218.913 508.678 209.493 475.323 198.172 447.181C188.591 423.382 191.059 396.066 204.411 374.411C215.586 356.293 227.004 338.226 242.649 317.623C280.342 280.377 398.87 346.51 400.998 274.048V274.069Z",fill:"url(#paint0_linear_17753_4417)",fillOpacity:.35}),React__namespace.createElement("path",{d:"M318.258 259.002C336.463 261.952 338.371 263.598 370.676 266.567C372.862 266.768 375.893 266.868 379.119 267.034C382.372 267.201 385.866 267.437 389.071 267.909C392.296 268.384 395.136 269.087 397.129 270.14C399.098 271.18 400.037 272.436 399.998 274.019C399.736 282.939 397.687 289.633 394.301 294.637C390.919 299.634 386.15 303.026 380.303 305.254C368.541 309.735 352.564 309.456 335.241 308.045C318.017 306.642 299.489 304.12 282.983 304.291C266.485 304.462 251.662 307.312 241.946 316.912L241.896 316.962L241.853 317.019C227.157 336.371 216.186 353.488 205.66 370.487L203.56 373.886C190.043 395.808 187.543 423.458 197.244 447.555C202.87 461.539 208.108 477.057 215.577 488.982C223.07 500.945 232.955 509.533 247.951 509.431C254.726 510.185 265.778 509.527 278.394 508.835C291.1 508.138 305.491 507.399 319.039 507.967C332.609 508.536 345.21 510.414 354.389 514.874C358.965 517.098 362.65 519.945 365.191 523.554C367.726 527.153 369.164 531.567 369.164 537.005C369.164 538.033 368.297 539.177 365.921 540.306C363.621 541.397 360.272 542.29 356.174 542.986C347.997 544.376 337.113 544.945 326.369 544.935H326.215L326.068 544.981H326.067H326.066C326.066 544.982 326.064 544.982 326.062 544.982C326.059 544.984 326.053 544.986 326.045 544.988C326.029 544.993 326.006 545.001 325.975 545.011C325.913 545.03 325.821 545.058 325.7 545.096C325.459 545.171 325.103 545.282 324.647 545.423C323.736 545.704 322.422 546.106 320.818 546.589C317.609 547.554 313.238 548.841 308.587 550.127C303.935 551.414 299.011 552.698 294.695 553.659C290.348 554.628 286.711 555.247 284.583 555.247C272.868 555.247 263.519 554.808 255.155 554.619C246.806 554.431 239.462 554.492 231.865 555.511C216.657 557.55 200.555 563.403 173.299 578.511C167.723 580.762 159.708 581.718 151.445 582.152C143.114 582.591 134.887 582.495 128.604 582.736L128.583 582.737L128.562 582.739C125.656 582.972 121.849 584.304 117.464 586.268C113.051 588.244 107.94 590.911 102.396 593.901C91.2829 599.894 78.4016 607.193 65.6328 612.994C52.8439 618.805 40.3196 623.039 29.9365 623C24.7651 622.981 20.1769 621.9 16.3545 619.473C12.5493 617.056 9.42301 613.254 7.24121 607.642C4.10601 596.16 -0.350209 572.207 1.39062 545.866C3.13474 519.476 11.0889 490.82 32.6729 469.853L32.7002 469.826L32.7246 469.798C66.4742 431.606 91.5705 388.873 115.191 345.146L115.19 345.146C121.467 333.538 131.395 324.644 143.237 320.125L143.236 320.124C170.432 309.752 187.335 300.904 199.318 293.411C205.308 289.666 210.06 286.265 214.238 283.195C218.426 280.119 222.005 277.403 225.7 274.981C240.331 265.395 256.776 260.443 318.258 259.002Z",stroke:"url(#paint1_linear_17753_4417)",strokeOpacity:.8,strokeWidth:2}),React__namespace.createElement("path",{d:"M227 300.53C227 294.715 231.513 290 237.081 290L566.919 290C572.487 290 577 294.715 577 300.53V499.47C577 505.285 572.487 510 566.919 510H237.081C231.513 510 227 505.285 227 499.47L227 300.53Z",fill:"white",fillOpacity:.8}),React__namespace.createElement("path",{d:"M227 300.53C227 294.715 231.513 290 237.081 290L566.919 290C572.487 290 577 294.715 577 300.53V499.47C577 505.285 572.487 510 566.919 510H237.081C231.513 510 227 505.285 227 499.47L227 300.53Z",fill:"url(#paint2_linear_17753_4417)",fillOpacity:.8}),React__namespace.createElement("path",{opacity:.8,d:"M254 478C254 479.657 252.657 481 251 481L250 481C248.343 481 247 479.657 247 478L247 446C247 444.343 248.343 443 250 443L251 443C252.657 443 254 444.343 254 446L254 478ZM267 478C267 479.657 265.657 481 264 481L263 481C261.343 481 260 479.657 260 478L260 446C260 444.343 261.343 443 263 443L264 443C265.657 443 267 444.343 267 446L267 478ZM280 478C280 479.657 278.657 481 277 481L276 481C274.343 481 273 479.657 273 478L273 446C273 444.343 274.343 443 276 443L277 443C278.657 443 280 444.343 280 446L280 478ZM293 478C293 479.657 291.657 481 290 481C288.343 481 287 479.657 287 478L287 446C287 444.343 288.343 443 290 443C291.657 443 293 444.343 293 446L293 478ZM306 478C306 479.657 304.657 481 303 481C301.343 481 300 479.657 300 478L300 446C300 444.343 301.343 443 303 443C304.657 443 306 444.343 306 446L306 478ZM320 478C320 479.657 318.657 481 317 481L316 481C314.343 481 313 479.657 313 478L313 446C313 444.343 314.343 443 316 443L317 443C318.657 443 320 444.343 320 446L320 478ZM333 478C333 479.657 331.657 481 330 481L329 481C327.343 481 326 479.657 326 478L326 446C326 444.343 327.343 443 329 443L330 443C331.657 443 333 444.343 333 446L333 478ZM346 478C346 479.657 344.657 481 343 481C341.343 481 340 479.657 340 478L340 446C340 444.343 341.343 443 343 443C344.657 443 346 444.343 346 446L346 478ZM359 478C359 479.657 357.657 481 356 481C354.343 481 353 479.657 353 478L353 446C353 444.343 354.343 443 356 443C357.657 443 359 444.343 359 446L359 478ZM373 478C373 479.657 371.657 481 370 481L369 481C367.343 481 366 479.657 366 478L366 446C366 444.343 367.343 443 369 443L370 443C371.657 443 373 444.343 373 446L373 478ZM386 478C386 479.657 384.657 481 383 481L382 481C380.343 481 379 479.657 379 478L379 446C379 444.343 380.343 443 382 443L383 443C384.657 443 386 444.343 386 446L386 478ZM399 478C399 479.657 397.657 481 396 481L395 481C393.343 481 392 479.657 392 478L392 446C392 444.343 393.343 443 395 443L396 443C397.657 443 399 444.343 399 446L399 478Z",fill:"#9E9E9E"}),React__namespace.createElement("path",{d:"M325.816 407C327.022 407 328 407.978 328 409.184V414.816C328 416.022 327.022 417 325.816 417H249.184C247.978 417 247 416.022 247 414.816V409.184C247 407.978 247.978 407 249.184 407H325.816ZM345.816 390C347.022 390 348 390.978 348 392.184V397.816C348 399.022 347.022 400 345.816 400H249.184C247.978 400 247 399.022 247 397.816V392.184C247 390.978 247.978 390 249.184 390H345.816ZM399.816 373C401.022 373 402 373.978 402 375.184V380.816C402 382.022 401.022 383 399.816 383H249.184C247.978 383 247 382.022 247 380.816V375.184C247 373.978 247.978 373 249.184 373H399.816ZM324.861 300C326.595 300 328 301.405 328 303.139V306.861C328 308.595 326.595 310 324.861 310H250.139C248.405 310 247 308.595 247 306.861V303.139C247 301.405 248.405 300 250.139 300H324.861Z",fill:"#C9C9C9"}),React__namespace.createElement("path",{d:"M136.007 396.57C146.986 397.048 157.118 390.784 165.483 383.667C175.929 374.776 184.905 364.174 191.933 352.411C197.126 343.729 201.257 334.425 206.913 326.026C216.431 311.88 222.886 296.856 231.115 281.927C246.685 281.654 265.217 283.757 284.58 278.233C296.079 283.4 308.58 286.346 321.186 286.863C329.183 287.188 337.552 286.45 344.431 282.368C351.31 278.287 356.875 270.22 355.162 262.416C353.351 257.943 330.373 252.036 317.534 248.718C306.614 240.415 293.751 240.233 280.028 239.813C266.305 239.394 244.859 239.114 231.536 239.347C218.214 239.581 210.114 235.767 202.663 241.169C166.97 267.073 158.015 305.74 119.861 327.881C116.23 340.157 113.424 353.467 116.046 365.992C118.668 378.517 125.759 388.867 136.017 396.57L136.007 396.57Z",fill:"url(#paint3_linear_17753_4417)",fillOpacity:.35}),React__namespace.createElement("path",{d:"M203.25 241.978C206.701 239.476 210.311 239.075 214.843 239.319C219.308 239.559 224.866 240.465 231.553 240.347C244.854 240.114 266.284 240.394 279.997 240.813C293.795 241.235 306.308 241.439 316.929 249.514L317.089 249.635L317.283 249.686C323.709 251.346 332.633 253.646 340.175 256.085C343.949 257.306 347.345 258.552 349.897 259.759C351.174 260.363 352.209 260.944 352.966 261.49C353.696 262.016 354.061 262.438 354.204 262.728C355.719 269.91 350.577 277.559 343.92 281.508C337.293 285.44 329.162 286.187 321.226 285.863C308.748 285.352 296.372 282.435 284.99 277.321L284.657 277.172L284.306 277.272C265.11 282.747 246.83 280.651 231.097 280.927L230.518 280.937L230.239 281.444C221.944 296.492 215.574 311.362 206.084 325.467C203.226 329.711 200.759 334.175 198.368 338.64C195.97 343.118 193.656 347.584 191.075 351.898L191.074 351.898C184.32 363.202 175.752 373.426 165.802 382.073L164.835 382.906C156.596 389.915 146.832 395.907 136.371 395.581C126.421 388.029 119.571 377.949 117.025 365.787C114.483 353.646 117.141 340.685 120.71 328.542C139.778 317.375 151.587 302.111 162.992 286.527C174.306 271.068 185.209 255.321 202.426 242.583L203.25 241.978Z",stroke:"url(#paint4_linear_17753_4417)",strokeOpacity:.8,strokeWidth:2}),React__namespace.createElement("rect",{x:227,y:324,width:350,height:32,fill:"#D9D9D9"}),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"paint0_linear_17753_4417",x1:230.178,y1:405.156,x2:54.4989,y2:551.352,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint1_linear_17753_4417",x1:209.209,y1:440.712,x2:39.1322,y2:556.905,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint2_linear_17753_4417",x1:380.099,y1:323.737,x2:297.587,y2:643.028,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint3_linear_17753_4417",x1:196.898,y1:296.054,x2:151.044,y2:370.026,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:.512567,stopColor:"white",stopOpacity:.3}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint4_linear_17753_4417",x1:214.019,y1:287.751,x2:161.637,y2:358.721,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})))),SvgBackVerticalHint=Be=>React__namespace.createElement("svg",{width:800,height:800,viewBox:"0 0 800 800",fill:"none",xmlns:"http://www.w3.org/2000/svg",...Be},React__namespace.createElement("g",{clipPath:"url(#clip0_17753_4392)"},React__namespace.createElement("path",{d:"M205.545 199.272C208.532 182.253 206.229 143.198 218.413 123.134C230.06 116.864 236.366 118.436 242.602 123.134C250.174 128.838 288.292 186.732 253.353 289.742C249.769 311.24 257.832 339.008 238.123 390.066C268.583 368.568 236.009 378.421 291.554 310.344C347.099 242.268 367.404 223.224 446.242 242.035C509.313 257.083 554.593 273.983 574.303 280.552C581.171 283.836 594.55 289.026 593.116 300.491C592.167 308.083 589.71 318.692 577.886 326.058C582.664 335.451 587.079 358.715 583.495 376.63C583.495 390.245 587.741 399.62 587.741 402.606C586.927 404.845 585.74 407.283 584.157 409.624C589.831 412.36 598.341 421.311 596.934 434.853C595.519 448.468 593.947 463.218 592.454 468.891L589.39 488.598C587.307 500.839 575.25 509.283 565.8 507.393C569.88 508.659 574.156 511.325 575.25 512.783C577.938 516.366 580.625 517.261 587.792 523.532C605.71 531.593 604.01 542.064 603.918 546.821C603.875 549.087 600.848 555.541 599.056 557.631C597.265 559.721 595.462 563.36 584.905 565.414C568.105 568.683 547.477 555.726 528.664 558.413C509.851 561.1 457.888 595.138 434.595 602.304C411.302 609.47 391.593 706.264 354.861 761.8C338.377 801.213 281.841 852.765 243.466 852.999C205.091 853.234 119.951 796.538 104.077 783.305C88.2032 770.071 82.0162 749.781 82.8984 734.783C83.7806 719.785 120.335 668.617 119.951 650.091C119.568 631.564 115.957 517.262 121.332 469.787C126.707 422.313 167.023 324.676 164.335 303.178C161.647 281.681 166.127 264.661 170.606 260.183C174.19 256.6 195.392 218.083 205.545 199.272Z",fill:"url(#paint0_linear_17753_4392)",fillOpacity:.5}),React__namespace.createElement("path",{d:"M528.664 333.634C559.419 336.582 567.39 332.598 577.886 326.058M531.129 486.873C553.064 501.346 558.017 505.836 565.8 507.393M577.886 326.058C589.71 318.692 592.167 308.083 593.116 300.491C594.55 289.026 581.171 283.836 574.303 280.552C554.593 273.983 509.313 257.083 446.242 242.035C367.404 223.224 347.099 242.268 291.554 310.344C236.009 378.421 268.583 368.568 238.123 390.066C257.832 339.008 249.769 311.24 253.353 289.742C288.292 186.732 250.174 128.838 242.602 123.134C236.366 118.436 230.06 116.864 218.413 123.134C206.229 143.198 208.532 182.253 205.545 199.272C195.392 218.083 174.19 256.6 170.606 260.183C166.127 264.661 161.647 281.681 164.335 303.178C167.023 324.676 126.707 422.313 121.332 469.787C115.957 517.262 119.568 631.564 119.951 650.091C120.335 668.617 83.7806 719.785 82.8984 734.783C82.0162 749.781 88.2032 770.071 104.077 783.305C119.951 796.538 205.091 853.234 243.466 852.999C281.841 852.765 338.377 801.213 354.861 761.8C391.593 706.264 411.302 609.47 434.595 602.304C457.888 595.138 509.851 561.1 528.664 558.413C547.477 555.726 568.105 568.683 584.905 565.414C595.462 563.36 597.265 559.721 599.057 557.631C600.848 555.541 603.875 549.087 603.918 546.821C604.01 542.064 605.71 531.593 587.792 523.532C580.625 517.261 577.938 516.366 575.25 512.783C574.156 511.325 569.88 508.659 565.8 507.393M577.886 326.058C582.664 335.451 587.079 358.715 583.495 376.63C583.495 390.245 587.741 399.62 587.741 402.606C586.927 404.845 585.74 407.283 584.157 409.624M540.31 402.606C569.296 430.101 576.455 421.018 584.157 409.624M584.157 409.624C589.831 412.36 598.341 421.311 596.934 434.853C595.519 448.468 593.948 463.218 592.454 468.891L589.39 488.598C587.307 500.839 575.25 509.283 565.8 507.393M565.8 507.393C547.891 503.81 542.109 486.508 540.31 477.849C539.844 469.535 540.61 449.796 547.403 437.342L531.129 425.313",stroke:"url(#paint1_linear_17753_4392)",strokeOpacity:.8,strokeWidth:2.5}),React__namespace.createElement("path",{d:"M538.362 189.884L538.362 611.417C538.362 617.567 533.156 622.662 526.598 622.662L273.402 622.662C266.844 622.662 261.638 617.567 261.638 611.417L261.638 189.884C261.638 183.733 266.843 178.638 273.402 178.638L526.598 178.638C533.157 178.638 538.362 183.733 538.362 189.884Z",fill:"white",fillOpacity:.8}),React__namespace.createElement("path",{d:"M538.362 189.884L538.362 611.417C538.362 617.567 533.156 622.662 526.598 622.662L273.402 622.662C266.844 622.662 261.638 617.567 261.638 611.417L261.638 189.884C261.638 183.733 266.843 178.638 273.402 178.638L526.598 178.638C533.157 178.638 538.362 183.733 538.362 189.884Z",fill:"url(#paint2_linear_17753_4392)",fillOpacity:.8}),React__namespace.createElement("path",{d:"M538.362 189.884L538.362 611.417C538.362 617.567 533.156 622.662 526.598 622.662L273.402 622.662C266.844 622.662 261.638 617.567 261.638 611.417L261.638 189.884C261.638 183.733 266.843 178.638 273.402 178.638L526.598 178.638C533.157 178.638 538.362 183.733 538.362 189.884Z",stroke:"white",strokeWidth:3.27581}),React__namespace.createElement("path",{opacity:.8,d:"M300.252 210.982C298.518 210.982 297.113 209.576 297.113 207.842L297.113 205.705C297.114 203.971 298.519 202.566 300.252 202.566L342.021 202.566C343.755 202.566 345.16 203.971 345.16 205.705L345.16 207.842C345.16 209.576 343.755 210.982 342.021 210.982L300.252 210.982ZM300.252 227.807C298.518 227.807 297.113 226.402 297.113 224.668L297.113 222.531C297.113 220.797 298.518 219.392 300.252 219.392L342.021 219.392C343.755 219.392 345.16 220.797 345.16 222.531L345.16 224.668C345.16 226.402 343.755 227.807 342.021 227.807L300.252 227.807ZM300.252 244.639C298.518 244.639 297.113 243.234 297.113 241.5L297.113 239.363C297.113 237.629 298.518 236.224 300.252 236.224L342.021 236.224C343.755 236.224 345.16 237.629 345.16 239.363L345.16 241.5C345.16 243.234 343.755 244.639 342.021 244.639L300.252 244.639ZM300.252 261.472C298.518 261.472 297.113 260.067 297.113 258.333L297.113 256.196C297.113 254.462 298.519 253.057 300.252 253.057L342.021 253.057C343.755 253.057 345.16 254.462 345.16 256.196L345.16 258.333C345.16 260.067 343.755 261.472 342.021 261.472L300.252 261.472ZM300.252 278.298C298.519 278.298 297.113 276.893 297.113 275.16L297.113 273.022C297.113 271.288 298.518 269.883 300.252 269.883L342.021 269.883C343.755 269.883 345.16 271.289 345.16 273.022L345.16 275.16C345.16 276.893 343.755 278.298 342.021 278.298L300.252 278.298ZM300.252 295.131C298.518 295.131 297.113 293.726 297.113 291.993L297.113 289.855C297.113 288.121 298.518 286.716 300.252 286.716L342.021 286.716C343.755 286.716 345.16 288.122 345.16 289.855L345.16 291.993C345.16 293.726 343.755 295.131 342.021 295.131L300.252 295.131ZM300.252 311.957C298.518 311.957 297.113 310.551 297.113 308.818L297.113 306.68C297.113 304.947 298.519 303.542 300.252 303.542L342.021 303.542C343.755 303.542 345.16 304.947 345.16 306.68L345.16 308.818C345.16 310.551 343.755 311.956 342.021 311.957L300.252 311.957ZM300.252 328.792C298.518 328.792 297.113 327.386 297.113 325.653L297.113 323.515C297.113 321.782 298.518 320.376 300.252 320.376L342.021 320.376C343.755 320.377 345.16 321.782 345.16 323.515L345.16 325.653C345.16 327.386 343.755 328.791 342.021 328.792L300.252 328.792ZM300.252 345.625C298.518 345.625 297.113 344.219 297.113 342.486L297.113 340.348C297.113 338.615 298.519 337.209 300.252 337.209L342.021 337.209C343.755 337.21 345.16 338.615 345.16 340.348L345.16 342.486C345.16 344.219 343.755 345.624 342.021 345.625L300.252 345.625ZM300.252 362.449C298.518 362.449 297.113 361.044 297.113 359.31L297.113 357.172C297.113 355.439 298.519 354.034 300.252 354.034L342.021 354.034C343.755 354.034 345.16 355.439 345.16 357.172L345.16 359.31C345.16 361.044 343.755 362.449 342.021 362.449L300.252 362.449ZM300.252 379.283C298.519 379.283 297.113 377.877 297.113 376.144L297.113 374.006C297.113 372.273 298.518 370.868 300.252 370.868L342.021 370.868C343.755 370.868 345.16 372.273 345.16 374.006L345.16 376.144C345.16 377.877 343.755 379.283 342.021 379.283L300.252 379.283ZM300.252 396.116C298.518 396.116 297.113 394.71 297.113 392.977L297.113 390.839C297.113 389.106 298.518 387.701 300.252 387.701L342.021 387.701C343.755 387.701 345.16 389.106 345.16 390.839L345.16 392.977C345.16 394.71 343.755 396.116 342.021 396.116L300.252 396.116Z",fill:"#9E9E9E"}),React__namespace.createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M489.951 177.006L489.951 624.3L453.429 624.3L453.429 177L489.951 177.006Z",fill:"#C9C9C9"}),React__namespace.createElement("path",{d:"M386.607 303.47C386.607 304.676 385.63 305.653 384.424 305.654L375.861 305.654C374.655 305.654 373.677 304.676 373.677 303.47L373.677 204.751C373.677 203.545 374.655 202.568 375.861 202.568L384.424 202.568C385.63 202.568 386.607 203.545 386.607 204.751L386.607 303.47ZM408.16 328.716C408.16 329.922 407.182 330.9 405.977 330.9L397.414 330.9C396.208 330.9 395.23 329.922 395.229 328.716L395.229 204.751C395.23 203.545 396.208 202.568 397.414 202.568L405.977 202.568C407.182 202.568 408.16 203.545 408.16 204.751L408.16 328.716ZM429.707 398.141C429.707 399.347 428.729 400.325 427.523 400.326L418.961 400.326C417.755 400.326 416.776 399.347 416.776 398.141L416.776 204.751C416.777 203.545 417.755 202.568 418.961 202.568L427.523 202.568C428.729 202.568 429.707 203.545 429.707 204.751L429.707 398.141ZM522.381 302.515C522.381 304.248 520.976 305.654 519.242 305.654L512.59 305.654C510.856 305.654 509.45 304.249 509.45 302.515L509.45 205.706C509.45 203.973 510.856 202.568 512.59 202.568L519.242 202.568C520.976 202.568 522.381 203.973 522.381 205.706L522.381 302.515Z",fill:"#C9C9C9"})),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"paint0_linear_17753_4392",x1:399,y1:31.5,x2:247,y2:711.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:.645103,stopColor:"white",stopOpacity:.35}),React__namespace.createElement("stop",{offset:.830381,stopColor:"white",stopOpacity:.1}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint1_linear_17753_4392",x1:462.249,y1:119,x2:232.613,y2:681.21,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:.692339,stopColor:"white",stopOpacity:.65411}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint2_linear_17753_4392",x1:497.062,y1:372.661,x2:90.4819,y2:268.024,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("clipPath",{id:"clip0_17753_4392"},React__namespace.createElement("rect",{width:800,height:800,fill:"white"})))),SvgFrontHorizontalHint=Be=>React__namespace.createElement("svg",{width:800,height:800,viewBox:"0 0 800 800",fill:"none",xmlns:"http://www.w3.org/2000/svg",...Be},React__namespace.createElement("g",{clipPath:"url(#clip0_17714_6315)"},React__namespace.createElement("path",{d:"M398.998 274.069C399.25 265.541 377.406 266.366 368.767 265.572C336.454 262.602 334.684 260.97 316.328 258C193.208 260.877 249.462 277.778 140.88 319.191C128.802 323.8 118.695 332.864 112.311 344.671C88.6979 388.383 63.6465 431.033 29.9757 469.135C-13.6845 511.548 -2.02356 584.886 4.29265 607.964C22.2699 654.367 104.875 585.478 126.642 583.736C138.973 583.261 160.232 584.089 171.728 579.418C226.223 549.204 235.668 556.247 282.583 556.247C291.591 556.247 324.368 545.935 324.368 545.935C345.902 545.956 368.164 543.656 368.164 537.005C368.164 491.994 272.662 511.442 246.007 508.431C216.913 508.678 207.493 475.323 196.172 447.181C186.591 423.382 189.059 396.066 202.411 374.411C213.586 356.293 225.004 338.226 240.649 317.623C278.342 280.377 396.87 346.51 398.998 274.048V274.069Z",fill:"url(#paint0_linear_17714_6315)",fillOpacity:.35}),React__namespace.createElement("path",{d:"M316.258 259.002C334.463 261.952 336.371 263.598 368.676 266.567C370.862 266.768 373.893 266.868 377.119 267.034C380.372 267.201 383.866 267.437 387.071 267.909C390.296 268.384 393.136 269.087 395.129 270.14C397.098 271.18 398.037 272.436 397.998 274.019C397.736 282.939 395.687 289.633 392.301 294.637C388.919 299.634 384.15 303.026 378.303 305.254C366.541 309.735 350.564 309.456 333.241 308.045C316.017 306.642 297.489 304.12 280.983 304.291C264.485 304.462 249.662 307.312 239.946 316.912L239.896 316.962L239.853 317.019C225.157 336.371 214.186 353.488 203.66 370.487L201.56 373.886C188.043 395.808 185.543 423.458 195.244 447.555C200.87 461.539 206.108 477.057 213.577 488.982C221.07 500.945 230.955 509.533 245.951 509.431C252.726 510.185 263.778 509.527 276.394 508.835C289.1 508.138 303.491 507.399 317.039 507.967C330.609 508.536 343.21 510.414 352.389 514.874C356.965 517.098 360.65 519.945 363.191 523.554C365.726 527.153 367.164 531.567 367.164 537.005C367.164 538.033 366.297 539.177 363.921 540.306C361.621 541.397 358.272 542.29 354.174 542.986C345.997 544.376 335.113 544.945 324.369 544.935H324.215L324.068 544.981H324.067H324.066C324.066 544.982 324.064 544.982 324.062 544.982C324.059 544.984 324.053 544.986 324.045 544.988C324.029 544.993 324.006 545.001 323.975 545.011C323.913 545.03 323.821 545.058 323.7 545.096C323.459 545.171 323.103 545.282 322.647 545.423C321.736 545.704 320.422 546.106 318.818 546.589C315.609 547.554 311.238 548.841 306.587 550.127C301.935 551.414 297.011 552.698 292.695 553.659C288.348 554.628 284.711 555.247 282.583 555.247C270.868 555.247 261.519 554.808 253.155 554.619C244.806 554.431 237.462 554.492 229.865 555.511C214.657 557.55 198.555 563.403 171.299 578.511C165.723 580.762 157.708 581.718 149.445 582.152C141.114 582.591 132.887 582.495 126.604 582.736L126.583 582.737L126.562 582.739C123.656 582.972 119.849 584.304 115.464 586.268C111.051 588.244 105.94 590.911 100.396 593.901C89.2829 599.894 76.4016 607.193 63.6328 612.994C50.8439 618.805 38.3196 623.039 27.9365 623C22.7651 622.981 18.1769 621.9 14.3545 619.473C10.5493 617.056 7.42301 613.254 5.24121 607.642C2.10601 596.16 -2.35021 572.207 -0.609375 545.866C1.13474 519.476 9.08892 490.82 30.6729 469.853L30.7002 469.826L30.7246 469.798C64.4742 431.606 89.5705 388.873 113.191 345.146L113.19 345.146C119.467 333.538 129.395 324.644 141.237 320.125L141.236 320.124C168.432 309.752 185.335 300.904 197.318 293.411C203.308 289.666 208.06 286.265 212.238 283.195C216.426 280.119 220.005 277.403 223.7 274.981C238.331 265.395 254.776 260.443 316.258 259.002Z",stroke:"url(#paint1_linear_17714_6315)",strokeOpacity:.8,strokeWidth:2}),React__namespace.createElement("path",{d:"M225 298C225 293.582 228.582 290 233 290H567C571.418 290 575 293.582 575 298V502C575 506.419 571.418 510 567 510H233C228.582 510 225 506.419 225 502V298Z",fill:"white",fillOpacity:.8}),React__namespace.createElement("path",{d:"M225 298C225 293.582 228.582 290 233 290H567C571.418 290 575 293.582 575 298V502C575 506.419 571.418 510 567 510H233C228.582 510 225 506.419 225 502V298Z",fill:"url(#paint2_linear_17714_6315)",fillOpacity:.8}),React__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M245.003 339.183C245.004 337.977 245.981 337 247.187 337H554.816C556.022 337 557 337.978 557 339.184V341.816C557 343.022 556.022 344 554.816 344H247.185C245.979 344 245.001 343.021 245.001 341.815L245.003 339.183Z",fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:350,y:375,width:81,height:12,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:350,y:402,width:81,height:11,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:350,y:428,width:113,height:12,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:350,y:455,width:37,height:12,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:245,y:305,width:148,height:18,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:526,y:305,width:30,height:17,rx:2.18388,fill:"#C9C9C9"}),React__namespace.createElement("rect",{x:244.262,y:362.1,width:92.8147,height:111.378,rx:6.55163,fill:"#AEAEAE"}),React__namespace.createElement("path",{d:"M279.089 436.469V436.639C279.042 440.235 276.015 442.939 270.008 444.751C277.246 450.01 284.485 454.217 291.724 454.217C298.963 454.217 306.201 450.01 313.44 444.751C307.474 442.937 304.446 440.229 304.359 436.627C304.359 435.26 304.364 421.942 304.37 420.575C304.801 420.636 304.765 420.597 304.37 420.487C304.382 415.984 304.401 421.879 304.428 415.725C304.455 409.57 278.671 404.064 279.05 420.963C279.055 422.686 279.065 434.518 279.089 436.469Z",fill:"url(#paint3_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M278.748 428.213C289.346 427.112 299.324 431.7 299.324 431.7C299.324 431.7 297.346 442.091 278.748 439.071V428.213Z",fill:"#CDCDCD"}),React__namespace.createElement("mask",{id:"mask0_17714_6315",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:244,y:362,width:94,height:112},React__namespace.createElement("rect",{x:244.262,y:362.1,width:92.8147,height:111.378,rx:6.55163,fill:"#AEAEAE"})),React__namespace.createElement("g",{mask:"url(#mask0_17714_6315)"},React__namespace.createElement("path",{d:"M338.753 457.237C343.017 464.867 345.471 482.463 345.471 482.463H237.977C237.977 482.463 240.432 464.865 244.695 457.237C248.958 449.61 274.939 442.535 274.939 442.535C274.939 447.159 283.901 453.826 290.909 453.945C300.682 453.945 308.496 447.159 308.496 442.533C308.496 442.533 334.489 449.608 338.753 457.237Z",fill:"#757575"})),React__namespace.createElement("path",{d:"M270.058 406.472C271.471 404.115 273.234 405.735 273.938 406.841L274.923 417.321C274.888 418.233 274.342 418.812 272.917 418.992C271.135 419.218 269.958 414.366 269.548 412.555C269.137 410.744 268.292 409.418 270.058 406.472Z",fill:"url(#paint4_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M312.719 407.072C311.329 404.702 309.551 406.306 308.836 407.404L307.752 417.875C307.778 418.787 308.319 419.372 309.742 419.565C311.522 419.808 312.744 414.967 313.172 413.16C313.6 411.353 314.458 410.035 312.719 407.072Z",fill:"url(#paint5_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M311.315 408.913C311.315 424.069 300.342 436.356 291.778 436.356C282.412 436.356 272.242 424.069 272.242 408.913C272.242 395.409 273.32 380.979 291.778 380.979C310.237 380.979 311.315 395.097 311.315 408.913Z",fill:"url(#paint6_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M532.362 467.202V467.276C532.344 468.847 531.133 470.028 528.73 470.82C531.625 473.117 534.52 474.955 537.415 474.955C540.31 474.955 543.205 473.117 546.1 470.82C543.714 470.027 542.503 468.844 542.468 467.271C542.468 466.674 542.47 460.856 542.473 460.259C542.645 460.286 542.631 460.269 542.473 460.221C542.477 458.254 542.485 460.829 542.496 458.14C542.507 455.452 532.195 453.047 532.347 460.429C532.349 461.181 532.353 466.35 532.362 467.202Z",fill:"url(#paint7_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M528.247 452.919C528.781 451.958 529.507 452.583 529.803 453.016L530.334 457.193C530.332 457.558 530.121 457.796 529.554 457.887C528.845 458.001 528.311 456.076 528.123 455.358C527.935 454.639 527.579 454.12 528.247 452.919Z",fill:"url(#paint8_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M546.495 453.227C546.044 452.225 545.268 452.786 544.936 453.192L544.054 457.309C544.025 457.673 544.214 457.928 544.772 458.067C545.469 458.24 546.164 456.368 546.412 455.668C546.66 454.967 547.058 454.48 546.495 453.227Z",fill:"url(#paint9_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M556.225 476.272C557.93 479.605 558.912 487.291 558.912 487.291H515.922C515.922 487.291 516.904 479.604 518.609 476.272C520.314 472.94 530.704 469.85 530.704 469.85C531.624 471.666 534.326 473.322 537.091 473.396C540.092 473.477 543.168 471.82 544.125 469.849C544.125 469.849 554.52 472.939 556.225 476.272Z",fill:"white"}),React__namespace.createElement("path",{d:"M545.235 453.528C545.235 459.888 540.785 465.043 537.312 465.043C533.513 465.043 529.389 459.888 529.389 453.528C529.389 447.862 529.516 441.72 537.312 441.807C545.647 441.807 545.235 447.731 545.235 453.528Z",fill:"url(#paint10_linear_17714_6315)"}),React__namespace.createElement("path",{d:"M134.007 396.57C144.986 397.048 155.118 390.784 163.483 383.667C173.929 374.776 182.905 364.174 189.933 352.411C195.126 343.729 199.257 334.425 204.913 326.026C214.431 311.88 220.886 296.856 229.115 281.927C244.685 281.655 263.217 283.757 282.58 278.234C294.079 283.4 306.58 286.346 319.186 286.863C327.183 287.189 335.552 286.45 342.431 282.368C349.31 278.287 354.875 270.22 353.162 262.416C351.351 257.943 328.373 252.036 315.534 248.718C304.614 240.415 291.751 240.233 278.028 239.813C264.305 239.394 242.859 239.114 229.536 239.347C216.214 239.581 208.114 235.767 200.663 241.169C164.97 267.073 156.015 305.74 117.861 327.881C114.23 340.157 111.424 353.467 114.046 365.992C116.668 378.517 123.759 388.867 134.017 396.57L134.007 396.57Z",fill:"url(#paint11_linear_17714_6315)",fillOpacity:.35}),React__namespace.createElement("path",{d:"M201.25 241.979C204.701 239.476 208.311 239.075 212.843 239.319C217.308 239.559 222.866 240.465 229.553 240.348C242.854 240.114 264.284 240.394 277.997 240.813C291.795 241.235 304.308 241.439 314.929 249.514L315.089 249.635L315.283 249.686C321.709 251.347 330.633 253.646 338.175 256.085C341.949 257.306 345.345 258.552 347.897 259.759C349.174 260.363 350.209 260.944 350.966 261.49C351.696 262.016 352.061 262.439 352.204 262.728C353.719 269.91 348.577 277.559 341.92 281.508C335.293 285.44 327.162 286.187 319.226 285.863C306.748 285.352 294.372 282.436 282.99 277.321L282.657 277.172L282.306 277.272C263.11 282.747 244.83 280.652 229.097 280.927L228.518 280.937L228.239 281.444C219.944 296.492 213.574 311.363 204.084 325.467C201.226 329.711 198.759 334.175 196.368 338.64C193.97 343.118 191.656 347.584 189.075 351.898L189.074 351.898C182.32 363.202 173.752 373.426 163.802 382.073L162.835 382.906C154.596 389.915 144.832 395.907 134.371 395.581C124.421 388.029 117.571 377.95 115.025 365.787C112.483 353.646 115.141 340.685 118.71 328.542C137.778 317.375 149.587 302.111 160.992 286.527C172.306 271.068 183.209 255.321 200.426 242.583L201.25 241.979Z",stroke:"url(#paint12_linear_17714_6315)",strokeOpacity:.8,strokeWidth:2})),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"paint0_linear_17714_6315",x1:228.178,y1:405.156,x2:52.4989,y2:551.352,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint1_linear_17714_6315",x1:207.209,y1:440.712,x2:37.1322,y2:556.905,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint2_linear_17714_6315",x1:378.099,y1:323.737,x2:295.587,y2:643.028,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint3_linear_17714_6315",x1:289.798,y1:421.991,x2:289.798,y2:442.905,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#B1B1B1"}),React__namespace.createElement("stop",{offset:1,stopColor:"white"})),React__namespace.createElement("linearGradient",{id:"paint4_linear_17714_6315",x1:273.869,y1:411.771,x2:270.469,y2:412.399,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.171875,stopColor:"#BDBDBD"}),React__namespace.createElement("stop",{offset:.640625,stopColor:"#E1E1E1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#DDDDDD"})),React__namespace.createElement("linearGradient",{id:"paint5_linear_17714_6315",x1:308.858,y1:412.335,x2:312.252,y2:412.996,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.0416667,stopColor:"#B5B5B5"}),React__namespace.createElement("stop",{offset:.362488,stopColor:"#E2E2E2"}),React__namespace.createElement("stop",{offset:1,stopColor:"white"})),React__namespace.createElement("linearGradient",{id:"paint6_linear_17714_6315",x1:274.644,y1:408.409,x2:297.208,y2:408.125,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#E0E0E0"}),React__namespace.createElement("stop",{offset:.510417,stopColor:"#F4F4F4"}),React__namespace.createElement("stop",{offset:1,stopColor:"white"})),React__namespace.createElement("linearGradient",{id:"paint7_linear_17714_6315",x1:536.645,y1:460.878,x2:536.645,y2:470.013,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D6D4D4"}),React__namespace.createElement("stop",{offset:1,stopColor:"#E4E4E4"})),React__namespace.createElement("linearGradient",{id:"paint8_linear_17714_6315",x1:528.777,y1:453.97,x2:529.187,y2:456.527,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D7D7D7"}),React__namespace.createElement("stop",{offset:1,stopColor:"#CDCDCD"})),React__namespace.createElement("linearGradient",{id:"paint9_linear_17714_6315",x1:545.877,y1:454.229,x2:545.253,y2:456.743,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D9D9D9"}),React__namespace.createElement("stop",{offset:1,stopColor:"#CDCDCD"})),React__namespace.createElement("linearGradient",{id:"paint10_linear_17714_6315",x1:528.973,y1:456.379,x2:538.202,y2:456.379,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#CECECE"}),React__namespace.createElement("stop",{offset:1,stopColor:"#E7E7E7"})),React__namespace.createElement("linearGradient",{id:"paint11_linear_17714_6315",x1:194.898,y1:296.054,x2:149.044,y2:370.026,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:.512567,stopColor:"white",stopOpacity:.3}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"paint12_linear_17714_6315",x1:212.019,y1:287.751,x2:159.637,y2:358.721,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"white"}),React__namespace.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),React__namespace.createElement("clipPath",{id:"clip0_17714_6315"},React__namespace.createElement("rect",{width:800,height:800,fill:"white"})))),SvgFrontVerticalHint=Be=>React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 800 800",...Be},React__namespace.createElement("g",{clipPath:"url(#a)"},React__namespace.createElement("path",{fill:"url(#b)",fillOpacity:.5,d:"M205.545 199.272c2.987-17.019.684-56.074 12.868-76.138 11.647-6.27 17.953-4.698 24.189 0 7.572 5.704 45.69 63.598 10.751 166.608-3.584 21.498 4.479 49.266-15.23 100.324 30.46-21.498-2.114-11.645 53.431-79.722 55.545-68.076 75.85-87.12 154.688-68.309 63.071 15.048 108.351 31.948 128.061 38.517 6.868 3.284 20.247 8.474 18.813 19.939-.949 7.592-3.406 18.201-15.23 25.567 4.778 9.393 9.193 32.657 5.609 50.572 0 13.615 4.246 22.99 4.246 25.976-.814 2.239-2.001 4.677-3.584 7.018 5.674 2.736 14.184 11.687 12.777 25.229-1.415 13.615-2.987 28.365-4.48 34.038l-3.064 19.707c-2.083 12.241-14.14 20.685-23.59 18.795 4.08 1.266 8.356 3.932 9.45 5.39 2.688 3.583 5.375 4.478 12.542 10.749 17.918 8.061 16.218 18.532 16.126 23.289-.043 2.266-3.07 8.72-4.862 10.81-1.791 2.09-3.594 5.729-14.151 7.783-16.8 3.269-37.428-9.688-56.241-7.001-18.813 2.687-70.776 36.725-94.069 43.891-23.293 7.166-43.002 103.96-79.734 159.496-16.484 39.413-73.02 90.965-111.395 91.199-38.375.235-123.515-56.461-139.389-69.694-15.8738-13.234-22.0608-33.524-21.1786-48.522.8822-14.998 37.4366-66.166 37.0526-84.692-.383-18.527-3.994-132.829 1.381-180.304 5.375-47.474 45.691-145.111 43.003-166.609-2.688-21.497 1.792-38.517 6.271-42.995 3.584-3.583 24.786-42.1 34.939-60.911Z"}),React__namespace.createElement("path",{stroke:"url(#c)",strokeOpacity:.8,strokeWidth:2.5,d:"M528.664 333.634c30.755 2.948 38.726-1.036 49.222-7.576m-46.757 160.815c21.935 14.473 26.888 18.963 34.671 20.52m12.086-181.335c11.824-7.366 14.281-17.975 15.23-25.567 1.434-11.465-11.945-16.655-18.813-19.939-19.71-6.569-64.99-23.469-128.061-38.517-78.838-18.811-99.143.233-154.688 68.309-55.545 68.077-22.971 58.224-53.431 79.722 19.709-51.058 11.646-78.826 15.23-100.324 34.939-103.01-3.179-160.904-10.751-166.608-6.236-4.698-12.542-6.27-24.189 0-12.184 20.064-9.881 59.119-12.868 76.138-10.153 18.811-31.355 57.328-34.939 60.911-4.479 4.478-8.959 21.498-6.271 42.995 2.688 21.498-37.628 119.135-43.003 166.609-5.375 47.475-1.764 161.777-1.381 180.304.384 18.526-36.1704 69.694-37.0526 84.692-.8822 14.998 5.3048 35.288 21.1786 48.522 15.874 13.233 101.014 69.929 139.389 69.694 38.375-.234 94.911-51.786 111.395-91.199 36.732-55.536 56.441-152.33 79.734-159.496 23.293-7.166 75.256-41.204 94.069-43.891 18.813-2.687 39.441 10.27 56.241 7.001 10.557-2.054 12.36-5.693 14.152-7.783 1.791-2.09 4.818-8.544 4.861-10.81.092-4.757 1.792-15.228-16.126-23.289-7.167-6.271-9.854-7.166-12.542-10.749-1.094-1.458-5.37-4.124-9.45-5.39m12.086-181.335c4.778 9.393 9.193 32.657 5.609 50.572 0 13.615 4.246 22.99 4.246 25.976-.814 2.239-2.001 4.677-3.584 7.018m-43.847-7.018c28.986 27.495 36.145 18.412 43.847 7.018m0 0c5.674 2.736 14.184 11.687 12.777 25.229-1.415 13.615-2.986 28.365-4.48 34.038l-3.064 19.707c-2.083 12.241-14.14 20.685-23.59 18.795m0 0c-17.909-3.583-23.691-20.885-25.49-29.544-.466-8.314.3-28.053 7.093-40.507l-16.274-12.029"}),React__namespace.createElement("g",{filter:"url(#d)"},React__namespace.createElement("path",{fill:"#fff",fillOpacity:.8,d:"M527.351 177c6.986 0 12.649 5.663 12.649 12.649v420.702c0 6.986-5.663 12.649-12.649 12.649H272.649c-6.986 0-12.649-5.663-12.649-12.649V189.649c0-6.986 5.663-12.649 12.649-12.649h254.702Z"}),React__namespace.createElement("path",{fill:"url(#e)",fillOpacity:.8,d:"M527.351 177c6.986 0 12.649 5.663 12.649 12.649v420.702c0 6.986-5.663 12.649-12.649 12.649H272.649c-6.986 0-12.649-5.663-12.649-12.649V189.649c0-6.986 5.663-12.649 12.649-12.649h254.702Z"}),React__namespace.createElement("path",{stroke:"#fff",strokeWidth:4.18219,d:"M537.909 189.648v420.704c0 5.83-4.727 10.557-10.557 10.557H272.648c-5.83 0-10.557-4.727-10.557-10.557V189.648c0-5.83 4.727-10.557 10.557-10.557h254.704c5.83 0 10.557 4.727 10.557 10.557Z"})),React__namespace.createElement("path",{fill:"#C9C9C9",fillRule:"evenodd",d:"M477.543 202.25c1.539.001 2.786 1.249 2.786 2.788v392.034c0 1.54-1.248 2.788-2.788 2.788h-3.604c-1.54 0-2.788-1.248-2.788-2.788V205.036c0-1.54 1.249-2.789 2.79-2.788l3.604.002Z",clipRule:"evenodd"}),React__namespace.createElement("rect",{width:103.085,height:15.1766,x:432.132,y:336.888,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 432.132 336.888)"}),React__namespace.createElement("rect",{width:103.085,height:15.1766,x:397.704,y:336.886,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 397.704 336.886)"}),React__namespace.createElement("rect",{width:143.057,height:15.1766,x:363.283,y:336.886,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 363.283 336.886)"}),React__namespace.createElement("rect",{width:46.283,height:15.1766,x:328.854,y:336.886,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 328.854 336.886)"}),React__namespace.createElement("rect",{width:189.522,height:21.128,x:520.38,y:201.9,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 520.38 201.9)"}),React__namespace.createElement("rect",{width:38.7345,height:21.128,x:520.38,y:560.194,fill:"#C9C9C9",rx:2.78813,transform:"rotate(90 520.38 560.194)"}),React__namespace.createElement("rect",{width:118.495,height:142.195,x:447.95,y:201.59,fill:"#AEAEAE",rx:8.36438,transform:"rotate(90 447.95 201.59)"}),React__namespace.createElement("path",{fill:"url(#f)",d:"M353.004 246.053h-.217c-4.591-.059-8.043-3.924-10.357-11.594-6.713 9.242-12.084 18.484-12.084 27.725 0 9.242 5.371 18.483 12.084 27.725 2.316-7.618 5.774-11.482 10.372-11.594 1.746 0 18.749.006 20.494.014-.077.551-.028.504.112 0 5.749.015-1.777.04 6.08.074 7.858.034 14.887-32.883-6.688-32.4-2.2.007-17.305.02-19.796.05Z"}),React__namespace.createElement("path",{fill:"#CDCDCD",d:"M363.546 245.619c1.405 13.53-4.453 26.269-4.453 26.269s-13.265-2.525-9.41-26.269h13.863Z"}),React__namespace.createElement("mask",{id:"g",width:143,height:120,x:305,y:201,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},React__namespace.createElement("rect",{width:118.495,height:142.195,x:447.95,y:201.59,fill:"#AEAEAE",rx:8.36438,transform:"rotate(90 447.95 201.59)"})),React__namespace.createElement("g",{mask:"url(#g)"},React__namespace.createElement("path",{fill:"#757575",d:"M326.49 322.225c-9.74 5.444-32.205 8.577-32.205 8.577V193.565s22.467 3.135 32.205 8.577c9.738 5.443 18.77 38.612 18.77 38.612-5.903 0-14.415 11.442-14.567 20.39 0 12.476 8.664 22.452 14.571 22.452 0 0-9.033 33.185-18.774 38.629Z"})),React__namespace.createElement("path",{fill:"url(#h)",d:"M391.302 234.526c3.009 1.804.94 4.055-.471 4.954l-13.38 1.257c-1.164-.044-1.904-.742-2.134-2.561-.288-2.275 5.906-3.777 8.219-4.301 2.312-.524 4.005-1.604 7.766.651Z"}),React__namespace.createElement("path",{fill:"url(#i)",d:"M390.535 288.99c3.026-1.776.978-4.046-.424-4.959l-13.368-1.383c-1.164.033-1.91.724-2.158 2.541-.309 2.272 5.87 3.833 8.178 4.378 2.307.546 3.989 1.642 7.772-.577Z"}),React__namespace.createElement("path",{fill:"url(#j)",d:"M388.186 287.196c-19.35 0-35.036-14.008-35.036-24.942 0-11.958 15.686-24.941 35.036-24.941 17.24 0 35.662 1.375 35.662 24.941s-18.023 24.942-35.662 24.942Z"}),React__namespace.createElement("g",{clipPath:"url(#k)"},React__namespace.createElement("path",{fill:"url(#l)",d:"M314.47 568.667h-.094c-2-.024-3.503-1.566-4.51-4.628-2.924 3.689-5.263 7.378-5.263 11.067s2.339 7.378 5.263 11.067c1.008-3.04 2.514-4.583 4.516-4.628.76 0 8.165.003 8.925.006-.034.22-.012.201.048 0 2.504.006-.773.016 2.648.029 3.422.014 6.483-13.126-2.912-12.933-.958.003-7.536.008-8.621.02Z"}),React__namespace.createElement("path",{fill:"url(#m)",d:"M332.577 563.457c1.227.682.429 1.609-.123 1.987l-5.333.678c-.466-.003-.771-.272-.887-.996-.145-.906 2.312-1.588 3.23-1.828.917-.239 1.58-.693 3.113.159Z"}),React__namespace.createElement("path",{fill:"url(#n)",d:"M332.184 586.754c1.28-.576.563-1.567.045-1.99l-5.256-1.127c-.465-.037-.792.206-.968.918-.221.89 2.169 1.777 3.063 2.093.894.317 1.516.825 3.116.106Z"}),React__namespace.createElement("path",{fill:"#fff",d:"M302.926 599.073c-4.241 2.173-14.024 3.424-14.024 3.424v-54.781s9.784 1.251 14.024 3.423c4.241 2.173 8.174 15.413 8.174 15.413-2.311 1.173-4.42 4.615-4.514 8.139-.102 3.824 2.007 7.744 4.516 8.963 0 0-3.934 13.246-8.176 15.419Z"}),React__namespace.createElement("path",{fill:"#C6C6C6",d:"M302.926 599.073c-4.241 2.173-14.024 3.424-14.024 3.424v-54.781s9.784 1.251 14.024 3.423c4.241 2.173 8.174 15.413 8.174 15.413-2.57 0-6.277 4.568-6.343 8.139 0 4.98 3.773 8.963 6.345 8.963 0 0-3.934 13.246-8.176 15.419Z"}),React__namespace.createElement("path",{fill:"url(#o)",d:"M331.799 585.145c-8.119 0-14.701-5.681-14.701-10.115 0-4.85 6.582-10.115 14.701-10.115 7.235 0 15.075.162 14.964 10.115 0 10.642-7.562 10.115-14.964 10.115Z"}))),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"b",x1:399,x2:247,y1:31.5,y2:711.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:.645103,stopColor:"#fff",stopOpacity:.35}),React__namespace.createElement("stop",{offset:.830381,stopColor:"#fff",stopOpacity:.1}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"c",x1:462.249,x2:232.613,y1:119,y2:681.21,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:.692339,stopColor:"#fff",stopOpacity:.65411}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"e",x1:497.062,x2:90.6296,y1:372.093,y2:267.188,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"f",x1:371.488,x2:344.787,y1:259.725,y2:259.725,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#B1B1B1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"h",x1:384.537,x2:383.734,y1:239.392,y2:235.051,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.171875,stopColor:"#BDBDBD"}),React__namespace.createElement("stop",{offset:.640625,stopColor:"#E1E1E1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#DDD"})),React__namespace.createElement("linearGradient",{id:"i",x1:383.816,x2:382.973,y1:284.06,y2:288.393,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.0416667,stopColor:"#B5B5B5"}),React__namespace.createElement("stop",{offset:.362488,stopColor:"#E2E2E2"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"j",x1:388.829,x2:389.192,y1:240.379,y2:269.186,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#E0E0E0"}),React__namespace.createElement("stop",{offset:.510417,stopColor:"#F4F4F4"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"l",x1:322.52,x2:310.892,y1:574.125,y2:574.125,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D6D4D4"}),React__namespace.createElement("stop",{offset:1,stopColor:"#E4E4E4"})),React__namespace.createElement("linearGradient",{id:"m",x1:331.236,x2:327.97,y1:564.134,y2:564.657,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D7D7D7"}),React__namespace.createElement("stop",{offset:1,stopColor:"#CDCDCD"})),React__namespace.createElement("linearGradient",{id:"n",x1:330.904,x2:327.695,y1:585.965,y2:585.169,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D9D9D9"}),React__namespace.createElement("stop",{offset:1,stopColor:"#CDCDCD"})),React__namespace.createElement("linearGradient",{id:"o",x1:328.16,x2:328.16,y1:564.384,y2:576.167,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#CECECE"}),React__namespace.createElement("stop",{offset:1,stopColor:"#E7E7E7"})),React__namespace.createElement("clipPath",{id:"a"},React__namespace.createElement("path",{fill:"#fff",d:"M0 0h800v800H0z"})),React__namespace.createElement("clipPath",{id:"k"},React__namespace.createElement("path",{fill:"#fff",d:"M0 0h60.2597v65.7385H0z",transform:"rotate(90 -94.546 450.431)"})),React__namespace.createElement("filter",{id:"d",width:362.764,height:528.764,x:218.618,y:141.135,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},React__namespace.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),React__namespace.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),React__namespace.createElement("feOffset",{dy:5.51762}),React__namespace.createElement("feGaussianBlur",{stdDeviation:20.6911}),React__namespace.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),React__namespace.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_17753_4329"}),React__namespace.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_17753_4329",result:"shape"})))),SvgPassportHorizontalHint=Be=>React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 800 800",...Be},React__namespace.createElement("g",{clipPath:"url(#a)"},React__namespace.createElement("path",{fill:"url(#b)",d:"M415.572 580.418c4.238-.127 9.173-1.097 14.216-2.469l23.174-8.448c-2.299 4.667-3.336 8.669-3.376 12.08-.03 4.204 1.466 7.435 3.865 9.807 2.362 2.317 5.505 3.738 8.659 4.549 3.176.815 6.477 1.043 9.289.908l.412.005.328-.213c8.506-4.907 27.223-15.81 35.28-20.989 2.042.327 4.428-.193 6.778-1.039 2.731-.977 5.744-2.508 8.725-4.27 5.363-3.156 10.78-7.126 14.544-10.137 3.843 3.905 8.33 5.211 12.163 5.269 2.081.028 3.99-.298 5.512-.801.922-.288 1.777-.649 2.461-1.094.158.034.33.058.493.069.678.026 1.278-.189 1.701-.405l27.061-60.035c4.892-12.832 2.373-25.148-2.101-38.976-1.122-3.493-2.38-7.073-3.676-10.804-3.872-11.105-8.182-23.483-10.966-38.273-.117-15.297-4.053-24.765-9.202-30.35-5.099-5.54-11.272-7.073-15.562-6.697-20.792-1.449-69.646-4.875-99.793-7.035-12.981-.927-23.098-3.717-31.98-6.166l-.039-.011-.151-.041c-3.878-1.067-7.528-2.071-11.093-2.827-5.824-1.235-11.348-1.769-16.991-.631-5.656 1.147-11.287 3.951-17.38 9.157-27.728 21.918-63.835 48.309-78.424 58.766l-.074.067-.068.044c-11.63 10.46-28.652 31.511-48.357 46.072 0 0 6.739 18.716 8.816 35.5 2.077 16.784 5.184 17.5 5.684 39.5s3 38.5-9 78.5c-11.269 37.563-28.5 40-28.5 40 37.5 1.5 63.902 1.409 109.858-41.662 4.243-4.1 23.892-20.125 30.287-25.255 11.454-9.189 15.119-14.692 23.552-20.699 7.269-5.193 15.011-11.434 19.641-16.136.608 4.528 3.008 9.117 5.062 12.277 2.472 2.305 5.016 3.026 9.172 2.893Z"}),React__namespace.createElement("path",{fill:"url(#c)",fillRule:"evenodd",d:"M558.988 386.387c-4.458-4.962-9.693-6.218-13.027-5.894l-.124.012-.125-.008c-8.099-.566-20.943-1.429-35.389-2.401-22.488-1.512-48.857-3.285-67.245-4.6l.214-2.992c18.389 1.315 44.731 3.086 67.209 4.598 14.378.966 27.175 1.827 35.299 2.393 4.286-.372 10.382 1.279 15.42 6.888 5.077 5.652 8.975 15.197 9.095 30.473 2.761 14.712 7.066 27.199 10.95 38.465 1.335 3.875 2.621 7.605 3.777 11.232 4.5 14.112 7.038 26.692 2.176 39.48l-.024.064-28.904 59.127-.151.163c-.721.775-2.016 1.446-3.468 1.916-1.513.491-3.4.829-5.471.799-3.837-.054-8.318-1.376-12.16-5.317-3.759 3.02-9.217 7.023-14.618 10.206-2.978 1.755-5.983 3.288-8.705 4.263-2.374.85-4.753 1.359-6.763 1.024-8.027 5.163-26.785 16.099-35.313 21.01l-.317.182-.365.016c-2.8.126-6.088-.101-9.244-.906-3.146-.803-6.261-2.208-8.598-4.516-2.374-2.345-3.862-5.546-3.822-9.717.04-4.117 1.563-9.098 5.007-15.114 8.571-14.971 20.411-25.619 30.526-32.931 5.06-3.659 9.698-6.489 13.286-8.607.74-.438 1.429-.84 2.066-1.213.919-.537 1.73-1.012 2.435-1.436.544-.328.99-.606 1.346-.841-2.242-4.159-4.959-10.333-6.535-16.688-1.408-5.679-1.984-11.82-.172-16.784-6.742 1.437-16.148 2.973-25.565 3.575-5.481.35-10.997.386-16.011-.107-4.996-.492-9.596-1.519-13.179-3.36l1.372-2.668c3.104 1.595 7.279 2.567 12.101 3.042 4.802.473 10.146.443 15.525.099 10.76-.688 21.533-2.622 28.148-4.193l3.676-.873-2.077 3.157c-2.762 4.199-2.579 10.64-.906 17.39 1.65 6.654 4.635 13.157 6.875 17.09l.592 1.04-.882.808c-.588.539-1.59 1.177-2.76 1.882-.716.432-1.56.925-2.497 1.473-.636.372-1.315.77-2.027 1.19-3.554 2.098-8.102 4.875-13.054 8.455-9.909 7.164-21.392 17.515-29.68 31.991-3.3 5.764-4.577 10.233-4.61 13.651-.032 3.364 1.137 5.783 2.931 7.555 1.832 1.81 4.398 3.02 7.231 3.743 2.691.687 5.532.91 8.007.83 8.887-5.12 27.855-16.188 35.383-21.081l.57-.371.655.185c1.195.338 3.094.103 5.633-.807 2.473-.886 5.297-2.315 8.193-4.022 5.222-3.077 10.533-6.968 14.207-9.916-1.54-2.103-2.903-4.711-4.005-7.914-3.444-10.007-1.412-23.561 1.874-35.925 2.551-9.597 5.937-18.739 8.357-25.273.637-1.72 1.207-3.259 1.677-4.578-.617-1.919-1.813-4.696-3.395-8.173-.67-1.471-1.408-3.066-2.191-4.759-1.189-2.57-2.481-5.364-3.792-8.282-4.143-9.22-8.617-19.986-11.211-30.211-12.095 4.085-30.926 7.388-47.85 9.173-8.855.934-17.239 1.457-23.923 1.455-3.34-.001-6.283-.134-8.663-.419-2.314-.277-4.305-.72-5.579-1.467l1.519-2.588c.693.407 2.136.803 4.417 1.077 2.217.265 5.032.396 8.307.397 6.546.002 14.819-.512 23.607-1.438 17.608-1.857 37.077-5.349 48.72-9.562l1.585-.573.385 1.641c2.445 10.402 7.071 21.603 11.422 31.286 1.311 2.916 2.582 5.665 3.762 8.214.784 1.695 1.528 3.303 2.215 4.813 1.694 3.723 3.05 6.863 3.684 9.028l.136.464-.16.456c-.52 1.476-1.166 3.22-1.892 5.18-2.419 6.533-5.729 15.469-8.238 24.91-3.279 12.338-5.06 25.101-1.936 34.177 1.221 3.549 2.75 6.197 4.404 8.157 3.412 4.042 7.477 5.297 10.902 5.346 1.727.024 3.288-.26 4.504-.654 1.081-.35 1.761-.744 2.066-.989l28.625-58.556c4.442-11.747 2.208-23.445-2.254-37.44-1.121-3.517-2.383-7.178-3.704-11.008-3.91-11.341-8.334-24.172-11.138-39.18l-.025-.132-.001-.134c-.095-14.879-3.875-23.665-8.328-28.623Z",clipRule:"evenodd",opacity:.5}),React__namespace.createElement("path",{fill:"url(#d)",fillOpacity:.3,d:"M561.108 29c5.463 0 9.892 4.3658 9.892 9.7513V274H229V38.7513C229 33.3658 233.429 29 238.892 29h322.216Z"}),React__namespace.createElement("path",{fill:"#C9C9C9",fillOpacity:.8,fillRule:"evenodd",d:"M571 274v-7H229v7h342Z",clipRule:"evenodd"}),React__namespace.createElement("path",{fill:"#fff",d:"M229 274h342v200H229z"}),React__namespace.createElement("path",{fill:"#E9E9EB",d:"M379.815 438c1.105 0 2 .895 2 2v10c0 1.105-.895 2-2 2h-44c-1.104 0-2-.895-2-2v-10c0-1.105.896-2 2-2h44Zm92-27c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2h-136c-1.104 0-2-.895-2-2v-9c0-1.105.896-2 2-2h136Zm-38-27c1.105 0 2 .895 2 2v10c0 1.105-.895 2-2 2h-98c-1.104 0-2-.895-2-2v-10c0-1.105.896-2 2-2h98Zm0-27c1.105 0 2 .895 2 2v10c0 1.105-.895 2-2 2h-98c-1.104 0-2-.895-2-2v-10c0-1.105.896-2 2-2h98Z"}),React__namespace.createElement("rect",{width:34,height:13,x:514.815,y:441,fill:"#E9E9EB",rx:2}),React__namespace.createElement("rect",{width:34,height:13,x:514.815,y:412,fill:"#E9E9EB",rx:2}),React__namespace.createElement("rect",{width:34,height:13,x:514.815,y:384,fill:"#E9E9EB",rx:2}),React__namespace.createElement("path",{fill:"#F4F4F5",d:"M229 474h342v40c0 6.627-5.373 12-12 12H241c-6.627 0-12-5.373-12-12v-40Z"}),React__namespace.createElement("rect",{width:140,height:20,x:252.815,y:302,fill:"#C9C9C9",fillOpacity:.5,rx:2}),React__namespace.createElement("rect",{width:27,height:27,x:522.815,y:302,fill:"#EAF0F6",rx:2}),React__namespace.createElement("rect",{width:302.152,height:13.6164,x:248.16,y:483.789,fill:"#C9C9C9",fillOpacity:.5,rx:1.13155}),React__namespace.createElement("rect",{width:302.152,height:13.6164,x:248.16,y:504.213,fill:"#C9C9C9",fillOpacity:.5,rx:1.13155}),React__namespace.createElement("path",{fill:"#fff",d:"M329.649 436.427c3.68 6.486 5.799 21.445 5.799 21.445h-92.787s2.12-14.961 5.799-21.445c3.68-6.485 26.106-12.499 26.106-12.499 1.986 3.534 7.817 6.758 13.786 6.902 6.476.156 13.115-3.068 15.18-6.904 0 0 22.436 6.015 26.117 12.501Z"}),React__namespace.createElement("path",{fill:"#AEAEAE",d:"M258.815 356c-4.418 0-8 3.587-8 8.012V434c6.876-5.44 23.751-9.973 23.751-9.973 0 3.937 7.736 9.613 13.786 9.714 8.435 0 15.18-5.777 15.18-9.716 0 0 14.738 3.957 22.283 8.915v-68.928c0-4.425-3.581-8.012-8-8.012h-59Z"}),React__namespace.createElement("path",{fill:"url(#e)",d:"M277.626 418.773v.147c-.04 3.108-2.643 5.444-7.808 7.01 6.224 4.545 12.448 8.18 18.671 8.18 6.223 0 12.447-3.635 18.67-8.18-5.129-1.567-7.732-3.908-7.807-7.021 0-1.181.004-12.691.009-13.872.371.052.34.019 0-.076.01-3.892.027 1.203.05-4.116.023-5.318-22.144-10.077-21.819 4.528.005 1.489.013 11.714.034 13.4Z"}),React__namespace.createElement("path",{fill:"#CDCDCD",d:"M277.738 411.629c9.325-.968 18.105 3.068 18.105 3.068s-1.74 9.138-18.105 6.482v-9.55Z"}),React__namespace.createElement("path",{fill:"url(#f)",d:"M269.964 392.91c1.232-1.943 2.75-.622 3.355.281l.808 8.599c-.034.749-.509 1.228-1.743 1.384-1.542.195-2.54-3.782-2.887-5.266-.348-1.485-1.074-2.569.467-4.998Z"}),React__namespace.createElement("path",{fill:"url(#g)",d:"M307.008 394.029c-1.214-1.954-2.745-.648-3.359.25l-.889 8.591c.027.749.498 1.232 1.73 1.4 1.54.21 2.576-3.757 2.937-5.239.362-1.481 1.098-2.558-.419-5.002Z"}),React__namespace.createElement("path",{fill:"#fff",d:"M306.028 394.716c0 13.008-9.533 23.552-16.974 23.552-8.138 0-16.973-10.544-16.973-23.552 0-11.589.936-23.973 16.973-23.973s16.974 12.116 16.974 23.973Z"}),React__namespace.createElement("path",{fill:"#707070",d:"M325.815 432.159V448c0 4.418-3.581 8-8 8h-59c-4.418 0-8-3.582-8-8v-14.752c6.876-5.589 23.5-9.748 23.5-9.748 0 4.044 7.987 9.378 14.037 9.482 8.435 0 14.963-5.435 14.963-9.482 0 0 14.955 3.565 22.5 8.659Z"}),React__namespace.createElement("path",{fill:"#C9C9C9",fillOpacity:.8,fillRule:"evenodd",d:"M240.815 24h318c9.389 0 17 7.6112 17 17v473c0 9.389-7.611 17-17 17h-318c-9.388 0-17-7.611-17-17V41c0-9.3888 7.612-17 17-17Zm0 5C234.188 29 229 34.3726 229 41v473c0 6.627 5.188 12 11.815 12h318c6.628 0 12.185-5.373 12.185-12V41c0-6.6274-5.557-12-12.185-12h-318Z",clipRule:"evenodd"}),React__namespace.createElement("path",{fill:"url(#h)",d:"m217.673 295.259-16.131 50.81-13.818 22.397c-4.624 5.653-13.741 19.044-13.22 27.374.652 10.412-2.49 76.411-1.699 90.409.632 11.198-11.848 86.074-16.16 114.816C138.641 720.427 221.067 681.548 237.5 646c13.148-28.439 18.47-65.338 15.816-112.912-1.609-28.845-14.401-55.523-15.73-79.338-1.419-25.445-4.848-60.056.409-74.683 14.3-26.206 5.169-64.457-1.588-78.635-5.406-11.342-14.742-8.175-18.734-5.173Z"}),React__namespace.createElement("path",{fill:"url(#i)",fillRule:"evenodd",d:"m206.963 348.548-14.441 23.406-.263.321c-2.114 2.586-5.32 7.03-7.896 11.731-1.285 2.344-2.346 4.633-3.047 6.698-.722 2.127-.937 3.656-.877 4.616.326 5.214-.215 22.625-.774 40.6-.04 1.277-.08 2.556-.119 3.834-.612 19.753-1.18 39.361-.805 46.012.198 3.494-.571 10.928-1.691 19.748-1.158 9.117-2.802 20.482-4.594 32.352-1.987 13.159-4.103 26.608-5.974 38.502-1.563 9.936-2.955 18.787-3.96 25.479v.005c-4.435 29.4-2.402 47.823 2.465 58.65 4.618 10.273 11.855 13.952 20.008 14.05 8.682.103 18.895-3.921 28.162-10.461 9.249-6.527 16.709-14.967 20.24-22.607 12.522-27.086 16.612-60.757 13.981-107.918-.765-13.706-4.194-27.017-7.771-40.313-.189-.705-.379-1.41-.57-2.115-3.332-12.356-6.719-24.914-7.388-36.91-.222-3.977-.498-8.241-.783-12.651-.611-9.436-1.265-19.538-1.524-28.919-.191-6.927-.176-13.641.239-19.621.41-5.895 1.23-11.472 2.834-15.936l.164-.456.232-.425c6.312-11.568 7.65-26.266 6.365-40.285-1.282-13.972-5.088-26.377-8.132-32.763-1.934-4.059-3.951-4.587-5.084-4.668-1.093-.078-2.296.236-3.337.716l-15.66 49.328Zm10.71-53.289-16.131 50.81-13.818 22.397c-4.624 5.653-13.741 19.044-13.22 27.374.307 4.909-.229 22.172-.798 40.517-.639 20.567-1.319 42.493-.902 49.892.489 8.652-6.85 55.318-12.202 89.348-1.575 10.014-2.977 18.933-3.958 25.468-18.003 119.362 65.69 78.443 82.124 42.895 13.147-28.439 17.202-63.298 14.547-110.872-.843-15.113-4.755-29.631-8.481-43.454-3.385-12.56-6.615-24.546-7.248-35.884-.228-4.091-.508-8.419-.796-12.862-1.502-23.196-3.208-49.546 1.205-61.821 14.3-26.206 5.169-64.457-1.589-78.635-5.406-11.342-14.741-8.175-18.733-5.173Z",clipRule:"evenodd"})),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"b",x1:651,x2:240.5,y1:-134,y2:662.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"c",x1:585.816,x2:451.816,y1:415,y2:658.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff",stopOpacity:.5}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"d",x1:399.499,x2:399.499,y1:29,y2:260,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.108594,stopColor:"#EAEAEA",stopOpacity:0}),React__namespace.createElement("stop",{offset:1,stopColor:"#848484"})),React__namespace.createElement("linearGradient",{id:"e",x1:286.833,x2:286.833,y1:406.261,y2:424.335,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#B1B1B1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"f",x1:273.239,x2:270.299,y1:397.239,y2:397.798,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.171875,stopColor:"#BDBDBD"}),React__namespace.createElement("stop",{offset:.640625,stopColor:"#E1E1E1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#DDD"})),React__namespace.createElement("linearGradient",{id:"g",x1:303.692,x2:306.626,y1:398.327,y2:398.914,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.0416667,stopColor:"#B5B5B5"}),React__namespace.createElement("stop",{offset:.362488,stopColor:"#E2E2E2"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"h",x1:292.5,x2:188.344,y1:69,y2:692.978,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#DCDCDC"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"i",x1:221.315,x2:220.354,y1:366,y2:565.109,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("clipPath",{id:"a"},React__namespace.createElement("path",{fill:"#fff",d:"M0 0h800v800H0z",transform:"matrix(-1 0 0 1 800 0)"})))),SvgPassportVerticalHint=Be=>React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 800 800",...Be},React__namespace.createElement("g",{clipPath:"url(#a)"},React__namespace.createElement("path",{fill:"url(#b)",fillRule:"evenodd",d:"M231.843 392.153c5.324-.558 10.366.505 13.447 1.683l.103.039 18.429 9.465 30.08 8.875c4.919.197 12.773 1.176 20.839 3.492 8.172 2.347 16.8 6.134 22.749 12.083 5.752 5.752 14.184 17.239 22.311 29.11 8.163 11.922 16.131 24.399 20.977 32.254l1.882 3.051h-3.584c-2.346 0-5.838.871-8.53 3.445-2.612 2.497-4.731 6.847-3.98 14.356 1.577 15.766-1.461 28.736-3.432 33.929.498 3.732.701 14.082-1.575 31.528-1.544 11.842-5.765 17.785-11.222 20.251-5.187 2.346-10.895 1.204-14.551.472l-.102-.02c-3.854-.771-6.617-3.938-8.45-7.012-.226-.378-.442-.762-.648-1.149-.616 4.316-1.458 9.242-2.532 14.117-1.824 8.285-4.387 16.766-7.836 21.725-3.712 5.336-9.083 6.7-14.016 6.301-3.065-.248-3.029-1.172-5.495-2.271l8.835 71.964c.002.006.003.013.004.019 3.11 16.822 2.207 44.074-1.632 68.258-3.825 24.086-10.669 45.831-32.092 54.442-20.967 8.428-45.704 6.62-67.903 1.111-22.19-5.508-42.134-14.787-53.792-21.704-5.516-2.684-13.393-7.875-19.281-14.861-5.921-7.027-10.041-16.154-7.198-26.435 2.511-9.078 3.07-24.757 2.691-40.907-.377-16.013-1.665-32.204-2.742-42.25l-6.509-31.548-.009-.145c-1.5-25.667-4.799-81.999-5.999-101.997-1.383-23.045 15.597-34.574 21.803-38.788.868-.589 1.524-1.035 1.892-1.35 1.297-1.112 4.584-4.514 8.268-8.438 3.608-3.842 7.487-8.067 9.985-10.814l16.954-22.938 17.505-22.506c6.505-8.673 21.396-28.495 28.997-38.496 4.214-5.545 9.991-7.778 15.359-8.341Zm.417 3.978c-4.566.479-9.206 2.329-12.592 6.784-7.595 9.994-22.491 29.822-28.992 38.49l-.01.014-17.496 22.494-17.046 23.062-.068.075c-2.505 2.755-6.438 7.039-10.097 10.936-3.616 3.851-7.079 7.449-8.581 8.737-.559.479-1.424 1.08-2.495 1.824-6.603 4.588-21.036 14.615-19.81 35.038 1.197 19.964 4.487 76.125 5.991 101.858l6.49 31.452.01.096c1.088 10.128 2.393 26.485 2.774 42.679.378 16.109-.146 32.346-2.835 42.068-2.356 8.519.94 16.309 6.402 22.79 5.468 6.489 12.895 11.383 18.043 13.877l.076.037.073.043c11.352 6.745 30.972 15.889 52.786 21.303 21.851 5.424 45.613 7.033 65.447-.939 19.377-7.789 25.865-27.627 29.633-51.358 3.751-23.623 4.701-50.41 1.646-66.923l-.004-.019-10.234-80.47 3.789 2.445c2.391 1.542 3.352 3.312 7.365 3.637 3.925.318 7.722-.735 10.409-4.599 2.951-4.241 5.388-12.01 7.214-20.3 1.805-8.196 2.944-16.564 3.437-21.747l3.94-.26c.464 2.01 1.522 5.131 3.144 7.85 1.666 2.793 3.653 4.709 5.799 5.138 3.849.77 8.333 1.584 12.222-.173 3.668-1.659 7.447-5.966 8.903-17.124 2.393-18.35 1.959-28.37 1.514-30.894l-.101-.568.218-.534c1.711-4.2 4.929-16.873 3.362-32.546-.849-8.492 1.532-14.142 5.195-17.645 2.444-2.336 5.34-3.604 7.936-4.174-4.869-7.804-11.968-18.839-19.216-29.426-8.156-11.912-16.391-23.092-21.839-28.54-5.251-5.251-13.122-8.797-21.025-11.067-7.869-2.26-15.531-3.187-20.131-3.349l-.253-.009-30.923-9.124-18.567-9.535c-2.598-.974-6.953-1.881-11.503-1.404Z",clipRule:"evenodd"}),React__namespace.createElement("path",{fill:"#fff",d:"M275 229h196v342H275V229Z"}),React__namespace.createElement("path",{fill:"url(#c)",fillOpacity:.3,d:"M30 238.863c0-5.447 4.3658-9.863 9.7513-9.863H275v341H39.7512c-5.3855 0-9.7513-4.416-9.7513-9.863L30 238.863Z"}),React__namespace.createElement("path",{fill:"#AEAEAE",d:"M353 538c0 4.418 3.587 8 8.012 8H431c-5.44-6.875-9.973-23.751-9.973-23.751 3.937 0 9.613-7.736 9.714-13.785 0-8.435-5.777-15.181-9.716-15.181 0 0 3.957-14.737 8.915-22.283h-68.928c-4.425 0-8.012 3.582-8.012 8v59Z"}),React__namespace.createElement("path",{fill:"url(#d)",d:"M415.773 519.189h.147c3.108.041 5.444 2.643 7.01 7.808 4.545-6.223 8.18-12.447 8.18-18.67 0-6.224-3.635-12.448-8.18-18.671-1.567 5.13-3.908 7.732-7.021 7.808-1.181 0-12.691-.004-13.872-.01.052-.371.019-.339-.076 0-3.892-.01 1.203-.027-4.116-.05-5.318-.023-10.077 22.145 4.528 21.819 1.489-.004 11.714-.013 13.4-.034Z"}),React__namespace.createElement("path",{fill:"#CDCDCD",d:"M408.63 519.077c-.969-9.325 3.067-18.105 3.067-18.105s9.138 1.74 6.482 18.105h-9.549Z"}),React__namespace.createElement("path",{fill:"url(#e)",d:"M389.91 526.852c-1.943-1.233-.622-2.751.281-3.356l8.599-.808c.749.034 1.228.509 1.384 1.743.195 1.542-3.782 2.54-5.266 2.888-1.485.347-2.569 1.073-4.998-.467Z"}),React__namespace.createElement("path",{fill:"url(#f)",d:"M391.03 489.808c-1.955 1.214-.649 2.744.249 3.358l8.591.889c.749-.027 1.233-.497 1.4-1.73.21-1.54-3.757-2.575-5.238-2.937-1.482-.362-2.559-1.098-5.002.42Z"}),React__namespace.createElement("path",{fill:"#fff",d:"M391.716 490.788c13.008 0 23.552 9.533 23.552 16.973 0 8.138-10.544 16.973-23.552 16.973-11.589 0-23.973-.936-23.973-16.973s12.116-16.973 23.973-16.973Z"}),React__namespace.createElement("path",{fill:"#707070",d:"M429.159 471H445c4.418 0 8 3.582 8 8v59c0 4.418-3.582 8-8 8h-14.752c-5.589-6.875-9.748-23.5-9.748-23.5 4.044 0 9.378-7.987 9.482-14.036 0-8.435-5.435-14.964-9.482-14.964 0 0 3.565-14.954 8.659-22.5Z"}),React__namespace.createElement("path",{fill:"#E9E9EB",d:"M436 418c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v43c0 1.104-.896 2-2 2h-9c-1.104 0-2-.896-2-2v-43Zm-26.214-91c0-1.105.896-2 2-2h9.286c1.105 0 2 .896 2 2v134c0 1.104-.895 2-2 2h-9.286c-1.104 0-2-.895-2-2V327Zm-26.571 37.154c0-1.104.895-2 2-2h9.286c1.104.001 2 .896 2 2V461c0 1.104-.896 2-2 2h-9.286c-1.105 0-2-.895-2-2v-96.846Zm-26.571 0c0-1.104.895-2 2-2h9.286c1.104.001 2 .896 2 2V461c0 1.104-.896 2-2 2h-9.286c-1.105 0-2-.895-2-2v-96.846Z"}),React__namespace.createElement("rect",{width:34,height:12,x:441,y:286,fill:"#E9E9EB",rx:2,transform:"rotate(-90 441 286)"}),React__namespace.createElement("rect",{width:34,height:12,x:413,y:286,fill:"#E9E9EB",rx:2,transform:"rotate(-90 413 286)"}),React__namespace.createElement("rect",{width:34,height:13,x:384,y:286,fill:"#E9E9EB",rx:2,transform:"rotate(-90 384 286)"}),React__namespace.createElement("path",{fill:"#F4F4F5",d:"M471 571V229h42c6.627 0 12 5.373 12 12v318c0 6.627-5.373 12-12 12h-42Z"}),React__namespace.createElement("rect",{width:139,height:19,x:303,y:546,fill:"#C9C9C9",fillOpacity:.5,rx:2,transform:"rotate(-90 303 546)"}),React__namespace.createElement("rect",{width:28,height:28,x:303,y:280,fill:"#EAF0F6",rx:2,transform:"rotate(-90 303 280)"}),React__namespace.createElement("rect",{width:299,height:13,x:481,y:551,fill:"#C9C9C9",fillOpacity:.5,rx:2,transform:"rotate(-90 481 551)"}),React__namespace.createElement("rect",{width:299,height:13,x:502,y:551,fill:"#C9C9C9",fillOpacity:.5,rx:2,transform:"rotate(-90 502 551)"}),React__namespace.createElement("path",{fill:"url(#g)",stroke:"url(#h)",strokeWidth:6,d:"M291.236 614.053c17.5 91 15.508 156.278 9.494 171.762-18.872 70.363-109.364 47.471-148.681 21.591-3.814-48.5 39.153-70.476 41.804-121.931-.152-7.444 14.136-81.358 15.979-91.247 1.843-9.89 1.168-48.684-1.131-61.128-2.3-12.445.075-38.353 7.916-64.553 7.84-26.201 20.701-33.312 35.79-31.013 15.826 2.412 18.824 15.696 20.965 25.184 2.142 9.489 8.143 25.784 8.486 52.132.343 26.348-5.267 16.251 9.378 99.203Z"}),React__namespace.createElement("path",{fill:"#C9C9C9",fillOpacity:.8,fillRule:"evenodd",d:"M23 559V241c0-9.389 7.6112-17 17-17h473c9.389 0 17 7.611 17 17v318c0 9.389-7.611 17-17 17H40c-9.3888 0-17-7.611-17-17Zm5 0c0 6.627 5.3726 12 12 12h473c6.627 0 12-5.373 12-12V241c0-6.627-5.373-12-12-12H40c-6.6274 0-12 5.373-12 12v318Z",clipRule:"evenodd"})),React__namespace.createElement("defs",null,React__namespace.createElement("linearGradient",{id:"b",x1:451.5,x2:288.5,y1:411.5,y2:650.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#fff"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"c",x1:30,x2:261,y1:400,y2:400,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.108594,stopColor:"#EAEAEA",stopOpacity:0}),React__namespace.createElement("stop",{offset:1,stopColor:"#848484"})),React__namespace.createElement("linearGradient",{id:"d",x1:403.261,x2:421.335,y1:509.982,y2:509.982,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#B1B1B1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"e",x1:394.239,x2:394.798,y1:523.577,y2:526.517,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.171875,stopColor:"#BDBDBD"}),React__namespace.createElement("stop",{offset:.640625,stopColor:"#E1E1E1"}),React__namespace.createElement("stop",{offset:1,stopColor:"#DDD"})),React__namespace.createElement("linearGradient",{id:"f",x1:395.328,x2:395.914,y1:493.124,y2:490.189,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.0416667,stopColor:"#B5B5B5"}),React__namespace.createElement("stop",{offset:.362488,stopColor:"#E2E2E2"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff"})),React__namespace.createElement("linearGradient",{id:"g",x1:284.5,x2:240.5,y1:48.0001,y2:752.5,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{stopColor:"#D9D9D9"}),React__namespace.createElement("stop",{offset:.897222,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("linearGradient",{id:"h",x1:239.736,x2:226.736,y1:477.053,y2:751.053,gradientUnits:"userSpaceOnUse"},React__namespace.createElement("stop",{offset:.10944,stopColor:"#fff"}),React__namespace.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),React__namespace.createElement("clipPath",{id:"a"},React__namespace.createElement("path",{fill:"#fff",d:"M0 0h800v800H0z"})))),slideUpAndDown=mt`
|
|
5548
5556
|
0%, 33% {
|
|
5549
5557
|
transform: translateY(100%);
|
|
5550
5558
|
opacity: 0;
|
|
@@ -5677,7 +5685,7 @@ linearGradient:first-of-type {
|
|
|
5677
5685
|
display: flex;
|
|
5678
5686
|
align-items: center;
|
|
5679
5687
|
justify-content: center;
|
|
5680
|
-
`,NeedHelp=({switchToManualCapture:Be,onCloseCancel:Le})=>{const[Ye,tt]=React.useState(!1),{t:nt}=useTranslation$1(),ft=React.useCallback(()=>{tt(!0)},[]),ht=React.useCallback(()=>{tt(!1)},[]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IconContainer$2,{children:jsxRuntimeExports.jsx(Button$b,{variant:"link",type:"button","aria-label":nt("idv2.needHelp.open"),onClick:()=>{tt(!0)},children:jsxRuntimeExports.jsx(SvgCommonIssuesIcon,{})})}),Ye?jsxRuntimeExports.jsx(CommonIssues,{onClose:ht,switchToManualCapture:Be,onCloseCancel:Le}):jsxRuntimeExports.jsx(IconContainer$2,{style:{pointerEvents:Ye?"none":"auto"},children:jsxRuntimeExports.jsx(Button$b,{type:"button",variant:"link","aria-label":nt("idv2.needHelp.open"),onClick:ft,children:jsxRuntimeExports.jsx(SvgCommonIssuesIcon,{})})})]})},fr$5=60,v$5="5.9.6",ip$5=0,op$5=161,w$5=390,h$6=271,nm$5="id_laser_h",ddd$5=0,markers$5=[],assets$5=[{nm:"id_laser_h",fr:60,id:"m8gbpa7d4wklnmgw",layers:[{ty:3,ddd:0,ind:5,hd:!1,nm:"id_laser_h - Null",sr:1,ks:{a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ty:3,ddd:0,ind:6,hd:!1,nm:"Rectangle 465 - Null",sr:1,parent:5,ks:{a:{a:0,k:[54,133]},o:{a:0,k:100},p:{a:1,k:[{t:0,s:[75,136],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:59.928000000000004,s:[315,136],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:69.28200000000001,s:[315,136],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:141.006,s:[75,136]}]},r:{a:0,k:0},s:{a:1,k:[{t:0,s:[100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:59.928000000000004,s:[-100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:69.28200000000001,s:[-100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:141.006,s:[100,100]}]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ty:4,ddd:0,ind:7,hd:!1,nm:"Rectangle 465",sr:1,parent:6,ks:{a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}},ao:0,ip:0,op:162,st:0,bm:0,shapes:[{ty:"gr",nm:"Group",hd:!1,np:3,it:[{ty:"sh",nm:"Path",hd:!1,ks:{a:0,k:{c:!0,v:[[3.4546,240.9087],[1e-4,231.7465],[1e-4,33.2534],[3.4546,24.0912],[72.7499,.0474],[74.0001,2.2451],[74.0001,263.7549],[72.7499,265.9526],[3.4546,240.9087]],i:[[0,0],[0,4.4361],[0,0],[-2.0118,.8997],[0,0],[0,-1.4225],[0,0],[.6451,.2885],[0,0]],o:[[-2.01182,-.8996500000000083],[0,0],[0,-4.436140000000002],[0,0],[.6451200000000057,-.28848],[0,0],[0,1.4225099999999884],[0,0],[0,0]]}}},{ty:"gf",o:{a:0,k:100},g:{p:4,k:{a:0,k:[0,1,1,1,.2396,1,1,1,.4948,1,1,1,.8906,1,1,1,0,1,.2396,.58,.4948,.3,.8906,0]}},s:{a:0,k:[3098905332132529e-21,132.9998798591031]},e:{a:0,k:[68.9999965407841,132.9998798591033]},t:1,nm:"Fill",hd:!1,r:1},{ty:"tr",a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}}]}]}]}],layers$5=[{ty:3,ddd:0,ind:5,hd:!1,nm:"id_laser_h - Null",sr:1,ks:{a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"id_laser_h",refId:"m8gbpa7d4wklnmgw",sr:1,ks:{a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}},ao:0,w:390,h:271,ip:0,op:162,st:0,hd:!1,bm:0}],meta={a:"",d:"",tc:"",g:"Aninix"},idLaserHorizontal={fr:fr$5,v:v$5,ip:ip$5,op:op$5,w:w$5,h:h$6,nm:nm$5,ddd:ddd$5,markers:markers$5,assets:assets$5,layers:layers$5,meta},useProcessingLayout=Be=>React.useMemo(()=>{var gt,At;const Le=idFlowManager.getParentSize();if(!Le)return{contentMarginTop:"15%",shouldShowAtBottom:!1};const Ye=Be==="vertical"?(gt=idFlowManager.getVerticalFrameSize())==null?void 0:gt.height:((At=idFlowManager.getHorizontalFrameSize())==null?void 0:At.width)*ratios.horizontal.id,tt=Le.height>options.maxContentHeight?options.maxContentHeight:Le.height,nt=tt/2-Ye/2,ht={height:window.innerHeight}.height-tt<=100;return{contentMarginTop:ht?`${(nt-62)/2}px`:"0px",shouldShowAtBottom:ht}},[Be]),getProgressBarMargin=(Be,Le,Ye)=>{const tt=idFlowManager.getParentSize();return Le?{mt:Ye,smMt:tt?`${tt.height*(Be==="vertical"?.08:.13)}px`:"0px",xsMt:tt?`${tt.height*(Be==="vertical"?.04:.07)}px`:"0px"}:{mt:"0px"}},getStatusMessageMargin=(Be,Le)=>Be?`${(Number.parseFloat(Le)-52)/2}px`:"0px",IdProcessingLayout=({image:Be,orientation:Le,initialMode:Ye,borderColor:tt,children:nt})=>{const ft=useTokens(),ht=React.useRef(null),{height:gt,width:At}=useAspectRatio(ht,Le,Ye);return jsxRuntimeExports.jsxs(Box,{hFull:!0,wFull:!0,position:"absolute",bg:ft.color.surface.neutral.dark,zIndex:1e3,left:0,top:0,children:[jsxRuntimeExports.
|
|
5688
|
+
`,NeedHelp=({switchToManualCapture:Be,onCloseCancel:Le})=>{const[Ye,tt]=React.useState(!1),{t:nt}=useTranslation$1(),ft=React.useCallback(()=>{tt(!0)},[]),ht=React.useCallback(()=>{tt(!1)},[]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IconContainer$2,{children:jsxRuntimeExports.jsx(Button$b,{variant:"link",type:"button","aria-label":nt("idv2.needHelp.open"),onClick:()=>{tt(!0)},children:jsxRuntimeExports.jsx(SvgCommonIssuesIcon,{})})}),Ye?jsxRuntimeExports.jsx(CommonIssues,{onClose:ht,switchToManualCapture:Be,onCloseCancel:Le}):jsxRuntimeExports.jsx(IconContainer$2,{style:{pointerEvents:Ye?"none":"auto"},children:jsxRuntimeExports.jsx(Button$b,{type:"button",variant:"link","aria-label":nt("idv2.needHelp.open"),onClick:ft,children:jsxRuntimeExports.jsx(SvgCommonIssuesIcon,{})})})]})},fr$5=60,v$5="5.9.6",ip$5=0,op$5=161,w$5=390,h$6=271,nm$5="id_laser_h",ddd$5=0,markers$5=[],assets$5=[{nm:"id_laser_h",fr:60,id:"m8gbpa7d4wklnmgw",layers:[{ty:3,ddd:0,ind:5,hd:!1,nm:"id_laser_h - Null",sr:1,ks:{a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ty:3,ddd:0,ind:6,hd:!1,nm:"Rectangle 465 - Null",sr:1,parent:5,ks:{a:{a:0,k:[54,133]},o:{a:0,k:100},p:{a:1,k:[{t:0,s:[75,136],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:59.928000000000004,s:[315,136],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:69.28200000000001,s:[315,136],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]},ti:[0,0],to:[0,0]},{t:141.006,s:[75,136]}]},r:{a:0,k:0},s:{a:1,k:[{t:0,s:[100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:59.928000000000004,s:[-100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:69.28200000000001,s:[-100,100],o:{x:[.5],y:[.35]},i:{x:[.15],y:[1]}},{t:141.006,s:[100,100]}]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ty:4,ddd:0,ind:7,hd:!1,nm:"Rectangle 465",sr:1,parent:6,ks:{a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}},ao:0,ip:0,op:162,st:0,bm:0,shapes:[{ty:"gr",nm:"Group",hd:!1,np:3,it:[{ty:"sh",nm:"Path",hd:!1,ks:{a:0,k:{c:!0,v:[[3.4546,240.9087],[1e-4,231.7465],[1e-4,33.2534],[3.4546,24.0912],[72.7499,.0474],[74.0001,2.2451],[74.0001,263.7549],[72.7499,265.9526],[3.4546,240.9087]],i:[[0,0],[0,4.4361],[0,0],[-2.0118,.8997],[0,0],[0,-1.4225],[0,0],[.6451,.2885],[0,0]],o:[[-2.01182,-.8996500000000083],[0,0],[0,-4.436140000000002],[0,0],[.6451200000000057,-.28848],[0,0],[0,1.4225099999999884],[0,0],[0,0]]}}},{ty:"gf",o:{a:0,k:100},g:{p:4,k:{a:0,k:[0,1,1,1,.2396,1,1,1,.4948,1,1,1,.8906,1,1,1,0,1,.2396,.58,.4948,.3,.8906,0]}},s:{a:0,k:[3098905332132529e-21,132.9998798591031]},e:{a:0,k:[68.9999965407841,132.9998798591033]},t:1,nm:"Fill",hd:!1,r:1},{ty:"tr",a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}}]}]}]}],layers$5=[{ty:3,ddd:0,ind:5,hd:!1,nm:"id_laser_h - Null",sr:1,ks:{a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0}},ao:0,ip:0,op:162,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"id_laser_h",refId:"m8gbpa7d4wklnmgw",sr:1,ks:{a:{a:0,k:[0,0]},p:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},sa:{a:0,k:0},r:{a:0,k:0},o:{a:0,k:100}},ao:0,w:390,h:271,ip:0,op:162,st:0,hd:!1,bm:0}],meta={a:"",d:"",tc:"",g:"Aninix"},idLaserHorizontal={fr:fr$5,v:v$5,ip:ip$5,op:op$5,w:w$5,h:h$6,nm:nm$5,ddd:ddd$5,markers:markers$5,assets:assets$5,layers:layers$5,meta},useProcessingLayout=Be=>React.useMemo(()=>{var gt,At;const Le=idFlowManager.getParentSize();if(!Le)return{contentMarginTop:"15%",shouldShowAtBottom:!1};const Ye=Be==="vertical"?(gt=idFlowManager.getVerticalFrameSize())==null?void 0:gt.height:((At=idFlowManager.getHorizontalFrameSize())==null?void 0:At.width)*ratios.horizontal.id,tt=Le.height>options.maxContentHeight?options.maxContentHeight:Le.height,nt=tt/2-Ye/2,ht={height:window.innerHeight}.height-tt<=100;return{contentMarginTop:ht?`${(nt-62)/2}px`:"0px",shouldShowAtBottom:ht}},[Be]),getProgressBarMargin=(Be,Le,Ye)=>{const tt=idFlowManager.getParentSize();return Le?{mt:Ye,smMt:tt?`${tt.height*(Be==="vertical"?.08:.13)}px`:"0px",xsMt:tt?`${tt.height*(Be==="vertical"?.04:.07)}px`:"0px"}:{mt:"0px"}},getStatusMessageMargin=(Be,Le)=>Be?`${(Number.parseFloat(Le)-52)/2}px`:"0px",IdProcessingLayout=({image:Be,orientation:Le,initialMode:Ye,borderColor:tt,children:nt})=>{const ft=useTokens(),ht=React.useRef(null),{height:gt,width:At}=useAspectRatio(ht,Le,Ye);return jsxRuntimeExports.jsxs(Box,{hFull:!0,wFull:!0,position:"absolute",bg:ft.color.surface.neutral.dark,zIndex:1e3,left:0,top:0,children:[jsxRuntimeExports.jsxs(FrameContainer,{children:[jsxRuntimeExports.jsx(Frame,{className:Le,ref:ht,style:{height:gt?`${gt}px`:void 0,width:At?`${At}px`:void 0},children:jsxRuntimeExports.jsx(Box,{position:"absolute",inset:0,borderWidth:1,borderStyle:"solid",borderColor:tt,borderRadius:"10px",boxShadow:`0 0 0 9999px ${ft.color.surface.neutral.dark}`,zIndex:3,hFull:!0,wFull:!0})}),jsxRuntimeExports.jsx(Bottom,{orientation:Le,children:jsxRuntimeExports.jsx(EncryptionLabel,{})})]}),jsxRuntimeExports.jsx(Image$e,{src:`data:image/png;base64,${Be}`,alt:"ID capture",position:"fixed",wFull:!0,hFull:!0,left:0,top:0,zIndex:1}),jsxRuntimeExports.jsx(Flex,{position:"absolute",bottom:0,left:0,right:0,top:0,zIndex:1e3,direction:"column",align:"center",maxH:"900px",m:"auto",children:nt})]})},IdAnalyzing=({image:Be,progress:Le,orientation:Ye,initialMode:tt})=>{const{t:nt}=useTranslation$1(),ft=useTokens(),{contentMarginTop:ht,shouldShowAtBottom:gt}=useProcessingLayout(Ye),At=getProgressBarMargin(Ye,gt,ht);return jsxRuntimeExports.jsxs(IdProcessingLayout,{image:Be,orientation:Ye,initialMode:tt,borderColor:ft.color.surface.status.positive,children:[jsxRuntimeExports.jsx(Box,{h:2,w:"143px",bg:ft.color.surface.secondary[700],borderRadius:4,overflow:"hidden",mb:6,...At,children:jsxRuntimeExports.jsx(Box,{hFull:!0,w:`${Le}%`,bg:ft.color.surface.status.positive,borderRadius:4,transition:"width 0.5s ease-in-out"})}),jsxRuntimeExports.jsx(Title$o,{color:ft.color.text.body.invert,children:nt("idv2.capture.processing.analyzing")}),jsxRuntimeExports.jsx(FlexCenter,{wFull:!0,hFull:!0,position:"absolute",children:jsxRuntimeExports.jsx(Lottie,{animationData:Ye==="horizontal"?idLaserHorizontal:idLaserVertical,loop:!0,style:Ye==="vertical"?{height:(()=>{var xt;return((xt=idFlowManager.getVerticalFrameSize())==null?void 0:xt.height)+200})()}:{width:(()=>{var xt;return((xt=idFlowManager.getHorizontalFrameSize())==null?void 0:xt.width)+100})()}})})]})},SvgRedStrike=Be=>React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:33,height:32,viewBox:"0 0 33 32",fill:"none",...Be},React__namespace.createElement("path",{d:"M16.5 0C25.3219 0 32.5 7.17642 32.5 16C32.5 24.8219 25.3219 32 16.5 32C7.67811 32 0.5 24.8219 0.5 16C0.5 7.17642 7.67811 0 16.5 0ZM13.6553 11.3701C13.1618 10.8767 12.3636 10.8767 11.8701 11.3701C11.3767 11.8636 11.3767 12.6618 11.8701 13.1553L14.9053 16.1924L11.8721 19.2256C11.3803 19.7191 11.3803 20.5173 11.8721 21.0107C12.3656 21.504 13.1658 21.5041 13.6592 21.0107L16.6924 17.9775L19.7334 21.0205C19.981 21.2664 20.3029 21.3916 20.6279 21.3916C20.9513 21.3916 21.2746 21.2664 21.5205 21.0205C22.014 20.527 22.014 19.7269 21.5205 19.2334L18.4775 16.1924L21.5107 13.1572C22.0041 12.6638 22.004 11.8639 21.5107 11.3721C21.0173 10.8786 20.2191 10.8786 19.7256 11.3721L16.6904 14.4053L13.6553 11.3701Z",fill:"#E71111"})),getErrorConfig=(Be,Le,Ye)=>{const tt={UPLOAD_ERROR:{title:Ye("idv2.capture.processing.errors.upload.title"),subtitle:Ye("idv2.capture.processing.errors.upload.subtitle")},CLASSIFICATION_FAILED:{title:Ye("idv2.capture.processing.errors.classification.title"),subtitle:Ye("idv2.capture.processing.errors.classification.subtitle")},LOW_SHARPNESS:{title:Ye("idv2.capture.processing.errors.sharpness.title"),subtitle:Ye("idv2.capture.processing.errors.sharpness.subtitle")},GLARE_DETECTED:{title:Ye("idv2.capture.processing.errors.glare.title"),subtitle:Ye("idv2.capture.processing.errors.glare.subtitle")},WRONG_DOCUMENT_SIDE:{title:Ye("idv2.capture.processing.errors.wrongSide.title"),subtitle:Ye(`idv2.capture.processing.errors.wrongSide.${Le}.subtitle`)},ID_TYPE_UNACCEPTABLE:{title:Ye("idv2.capture.processing.errors.unacceptable.title"),subtitle:Ye("idv2.capture.processing.errors.unacceptable.subtitle")},READABILITY_ISSUE:{title:Ye("idv2.capture.processing.errors.readability.title"),subtitle:Ye("idv2.capture.processing.errors.readability.subtitle")},RETRY_EXHAUSTED_CONTINUE_TO_BACK:{title:Ye("idv2.capture.processing.errors.default.title"),subtitle:Ye("idv2.capture.processing.errors.default.subtitle")},RETRY_EXHAUSTED_SKIP_BACK:{title:Ye("idv2.capture.processing.errors.default.title"),subtitle:Ye("idv2.capture.processing.errors.default.subtitle")},NO_MORE_TRIES:{title:Ye("idv2.capture.processing.errors.default.title"),subtitle:Ye("idv2.capture.processing.errors.default.subtitle")},UNEXPECTED_ERROR:{title:Ye("idv2.capture.processing.errors.default.title"),subtitle:Ye("idv2.capture.processing.errors.default.subtitle")},NO_TOKEN:{title:Ye("idv2.capture.processing.errors.default.title"),subtitle:Ye("idv2.capture.processing.errors.default.subtitle")}};return Be&&tt[Be]?tt[Be]:{title:Ye("idv2.capture.processing.errors.default.title"),subtitle:Ye("idv2.capture.processing.errors.default.subtitle")}},IconContainer$1=dt.div`
|
|
5681
5689
|
path {
|
|
5682
5690
|
fill: ${({$fillColor:Be})=>Be};
|
|
5683
5691
|
}
|
|
@@ -10278,7 +10286,7 @@ Url: ${_getEventFilterUrl(Be)}`),!0}return!1}function _isIgnoredError(Be,Le){ret
|
|
|
10278
10286
|
onmessage = (ev) => { postMessage({isOpenBeat:true});
|
|
10279
10287
|
debugger; for (let i = 0; i < ev.data.moreDebugs; i++) { debugger; }
|
|
10280
10288
|
postMessage({isOpenBeat:false});
|
|
10281
|
-
};`],{type:"text/javascript"})));let Ye=!1,tt=!0,nt,ft=Number.NaN;const ht=xt=>{xt.data.isOpenBeat?new Promise(yt=>{nt=yt,setTimeout(()=>{nt(!0)},Be.maxMillisBeforeAckWhenClosed+1)}).then(yt=>{if(yt!==null){if(yt!==Ye){Ye=yt;const Ct={true:Be.onDetectOpen,false:Be.onDetectClose}[`${yt}`];Ct&&Ct()}ft=setTimeout(()=>{ft=Number.NaN,gt()},Be.pollingIntervalSeconds*1e3)}}):nt(!1)},gt=()=>{Le.postMessage({moreDebugs:Be.moreAnnoyingDebuggerStatements})},At={config:Be,get isOpen(){if(tt&&Be.onCheckOpennessWhilePaused==="throw")throw new Error('`onCheckOpennessWhilePaused` is set to `"throw"`.');return Ye},get paused(){return tt},set paused(xt){tt!==xt&&(tt=xt,xt?(Le.removeEventListener("message",ht),clearTimeout(ft),ft=Number.NaN,nt(null)):(Le.addEventListener("message",ht),gt()))}};switch(Object.freeze(At),globalThis.devtoolsDetector=At,Be.startup){case"manual":break;case"asap":At.paused=!1;break;case"domContentLoaded":{document.readyState!=="loading"?At.paused=!1:document.addEventListener("DOMContentLoaded",()=>{At.paused=!1},{once:!0});break}}}const i18nSetup=async(Be,Le)=>{Be&&await i18n.changeLanguage(Be),Le&&i18n.addResourceBundle(i18n.resolvedLanguage,"default",Le,!0,!0)};function getRecorderProvider(Be){return isStageEnv(Be)||isDemoEnv(Be)||isSaasEnv(Be)||isStageK8sEnv(Be)?"openVidu":"openTok"}const initializeDetection=async({forceProductionMode:Be,disableIpify:Le=!1,sdkVersion:Ye,flow:tt}={})=>{await detectionSetup.setupDetect(Be,Ye,Le,tt)},setupI18n=async(Be,Le)=>{i18n.isInitialized?await i18nSetup(Be,Le):await new Promise(Ye=>{i18n.on("initialized",async()=>{await i18nSetup(Be,Le),Ye()})})},setup=async({forceProductionMode:Be,theme:Le={},clientId:Ye,lang:tt,translations:nt={},apiKey:ft,apiURL:ht,tokboxApiKey:gt="46135862",options:At,customHeaders:xt,fingerprintApiKey:Et="5uYRiI0XM6p8k4124ELX",clientExperimentId:yt,version:Ct,flowId:kt,skipInitialization:vt=!1})=>{try{window.location.hostname.includes("stage.incodetest")||init({dsn:"https://ce77899310d29f9e8da45741a6073cd3@o4506435887824896.ingest.us.sentry.io/4510357973172224",sendDefaultPii:!0,environment:process.env.NODE_ENV,release:version$4})}catch(It){console.error("Failed to initialize Sentry:",It)}setTheme(Le),setOptions({...At,recorderProvider:getRecorderProvider(ht)}),Ye&&(ft=sha1(Ye));const bt=createApi({apiKey:ft,apiURL:ht,customHeaders:{...xt,...At.useSha256?{"X-RSA-Encryption-Scheme":"RSA/NONE/OAEPWITHSHA-256ANDMGF1PADDING"}:{}}});setApi(bt),setFingerprintApiKey(Et),vt||(initialize({apiKey:ft,apiURL:ht,clientExperimentId:yt,flowId:kt}),await detectionSetup.setupDetect(Be,Ct)),At.unsafeMode||setupFiles(),await setupI18n(tt,nt)};async function attachSignatureOnAnnotation({contractId:Be,signatureType:Le,token:Ye,signedContractId:tt,orientation:nt="ORIENTATION_NORMAL",signatureText:ft=""}){return exports.api.post("/omni/attach-signature-on-annotation",{contractId:Be,signatureType:Le,signedContractId:tt,orientation:nt,replacementText:ft},{headers:{"X-Incode-Hardware-Id":Ye}}).then(ht=>ht.data).catch(ht=>{var gt;return Promise.reject((gt=ht==null?void 0:ht.response)==null?void 0:gt.data)})}async function getSignedContractsLinks({token:Be}){return exports.api.get("/omni/get/signed-contracts-links",{headers:{"X-Incode-Hardware-Id":Be}}).then(Le=>Le.data).catch(Le=>{var Ye;return Promise.reject((Ye=Le==null?void 0:Le.response)==null?void 0:Ye.data)})}function renderSignature(Be,{onSuccess:Le,token:Ye,type:tt,title:nt,subtitle:ft,initials:ht=!1,sendBase64:gt=!0,showSignatureInput:At=!1,canvasBackgroundColor:xt,canvasBorderColor:Et,penColor:yt,onInputChange:Ct}){const kt=createRoot$1(Be),vt={onSuccess:handleUnmountRoot(Le,kt,Be),onInputChange:Ct,token:Ye,type:tt,title:nt,subtitle:ft,initials:ht,sendBase64:gt,canvasBackgroundColor:xt,canvasBorderColor:Et,penColor:yt,showSignatureInput:At};customRender(jsxRuntimeExports.jsx(App$1,{token:Ye,children:jsxRuntimeExports.jsx(Signature$1,{...vt})}),Be,kt)}function addWatchListResults({token:Be,firstName:Le=null,surName:Ye=null,birthYear:tt=null,countryCodes:nt=[]}){return exports.api.post("/omni/watchlist-result",{firstName:Le,surName:Ye,birthYear:tt,countryCodes:nt,subscribe:!0},{headers:{"X-Incode-Hardware-Id":Be}}).then(ft=>ft.data).catch(ft=>Promise.reject(ft.response.data))}function initWatchList({token:Be}){return exports.api.post("/omni/init-watchlist",{},{headers:{"X-Incode-Hardware-Id":Be}}).then(Le=>Le.data).catch(Le=>Promise.reject(Le.response.data))}const getWorkflowConfig=async({token:Be})=>{const{data:Le}=await exports.api.get("/omni/workflow/info",{headers:{"X-Incode-Hardware-Id":Be}});return Le},getCurrentNode=async({token:Be})=>{const{data:Le}=await exports.api.get("/omni/workflow/current/node",{headers:{"X-Incode-Hardware-Id":Be}});return Le},processNode=async({token:Be})=>{const{data:Le}=await exports.api.post("/omni/workflow/process/node",{},{headers:{"X-Incode-Hardware-Id":Be}});return Le},wfSDKConfig={nativeCamera:!0,sendBase64:!0},Address=({token:Be,goNext:Le,config:Ye,workflowId:tt,onError:nt})=>(useModuleEvents({module:eventModuleNames.document,token:Be.token}),jsxRuntimeExports.jsx(ProofOfAddress$2,{token:Be.token,onSuccess:Le,title:Ye.title,subtitle:Ye.text,workflowId:tt,sendBase64:wfSDKConfig.sendBase64,disableSkipPoa:Ye.disableSkipPoa,onError:()=>nt()})),AdvancedElectronicSignature=({token:Be,goNext:Le,onError:Ye,config:tt})=>jsxRuntimeExports.jsx(AdvancedElectronicSignature$1,{onError:Ye,onSuccess:Le,token:Be.token,uploadDocument:tt.uploadDocument,downloadDocument:tt.downloadDocument}),BiometricConsent=({token:Be,regulationType:Le,goNext:Ye,onError:tt})=>jsxRuntimeExports.jsx(BiometricConsent$1,{token:Be,onSuccess:Ye,onCancel:tt,regulationType:Le}),CombinedConsent=({token:Be,config:Le,goNext:Ye})=>jsxRuntimeExports.jsx(CombinedConsent$1,{consentId:Le==null?void 0:Le.combinedConsents,token:Be,onSuccess:Ye}),Curp=({session:Be,goNext:Le})=>jsxRuntimeExports.jsx(EnterCurp,{token:Be.token,onSuccess:Le,curpValidationRetries:Be.curpValidationRetries}),processCustomNode=async({token:Be,...Le})=>{const{data:Ye}=await exports.api.post("/omni/custom-module/execution",{...Le},{headers:{"X-Incode-Hardware-Id":Be}});return Ye},IdRank={SECOND_ID:"SECOND_ID"},CustomModuleStatuses={SUCCESS:"OK",FAIL:"FAIL",UNKNOWN:"UNKNOWN"},CustomModule=({token:Be,config:Le,goNext:Ye,customModuleCallback:tt,nodeId:nt})=>{const[ft,ht]=React.useState(!1);React.useEffect(()=>{(async()=>{if(!tt&&typeof tt!="function")return ht(!0),screenEvent({module:eventModuleNames.customModule,code:"screenOpened",token:Be.token,screen:eventScreenNames.customModuleProcessing}),await processCustomNode({token:Be.token,message:null,interviewId:Be.interviewId,nodeId:nt,callbackName:Le.callbackName,status:CustomModuleStatuses.UNKNOWN}),ht(!1),screenEvent({module:eventModuleNames.customModule,code:"screenClosed",token:Be.token,screen:eventScreenNames.customModuleProcessing}),Ye();screenEvent({module:eventModuleNames.customModule,code:"screenOpened",token:Be.token,screen:eventScreenNames.customModuleCallback}),tt({onSuccess:At,onError:xt,interviewId:Be.interviewId,nodeId:nt,name:Le.callbackName})})()},[tt,Be.interviewId,nt,Le.callbackName,Be.token,Ye]),useModuleEvents({module:eventModuleNames.customModule,token:Be.token});const gt=async(Et,yt=null)=>{ht(!0),screenEvent({module:eventModuleNames.customModule,code:"screenClosed",token:Be.token,screen:eventScreenNames.customModuleCallback}),screenEvent({module:eventModuleNames.customModule,code:"screenOpened",token:Be.token,screen:eventScreenNames.customModuleProcessing}),await processCustomNode({token:Be.token,message:yt,interviewId:Be.interviewId,nodeId:nt,callbackName:Le.callbackName,status:Et}),ht(!1),screenEvent({module:eventModuleNames.customModule,code:"screenClosed",token:Be.token,screen:eventScreenNames.customModuleProcessing}),Ye()},At=async Et=>{gt(CustomModuleStatuses.SUCCESS,Et)},xt=async Et=>{gt(CustomModuleStatuses.FAIL,Et)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ft?jsxRuntimeExports.jsx(Spinner$6,{}):null})},specialCasesFlow$1="6374ad13eac341cb71ed30ea",ProofOfAddressContainer$1=dt.div`
|
|
10289
|
+
};`],{type:"text/javascript"})));let Ye=!1,tt=!0,nt,ft=Number.NaN;const ht=xt=>{xt.data.isOpenBeat?new Promise(yt=>{nt=yt,setTimeout(()=>{nt(!0)},Be.maxMillisBeforeAckWhenClosed+1)}).then(yt=>{if(yt!==null){if(yt!==Ye){Ye=yt;const Ct={true:Be.onDetectOpen,false:Be.onDetectClose}[`${yt}`];Ct&&Ct()}ft=setTimeout(()=>{ft=Number.NaN,gt()},Be.pollingIntervalSeconds*1e3)}}):nt(!1)},gt=()=>{Le.postMessage({moreDebugs:Be.moreAnnoyingDebuggerStatements})},At={config:Be,get isOpen(){if(tt&&Be.onCheckOpennessWhilePaused==="throw")throw new Error('`onCheckOpennessWhilePaused` is set to `"throw"`.');return Ye},get paused(){return tt},set paused(xt){tt!==xt&&(tt=xt,xt?(Le.removeEventListener("message",ht),clearTimeout(ft),ft=Number.NaN,nt(null)):(Le.addEventListener("message",ht),gt()))}};switch(Object.freeze(At),globalThis.devtoolsDetector=At,Be.startup){case"manual":break;case"asap":At.paused=!1;break;case"domContentLoaded":{document.readyState!=="loading"?At.paused=!1:document.addEventListener("DOMContentLoaded",()=>{At.paused=!1},{once:!0});break}}}const i18nSetup=async(Be,Le)=>{Be&&await i18n.changeLanguage(Be),Le&&i18n.addResourceBundle(i18n.resolvedLanguage,"default",Le,!0,!0)};function getRecorderProvider(Be){return isStageEnv(Be)||isDemoEnv(Be)||isSaasEnv(Be)||isStageK8sEnv(Be)?"openVidu":"openTok"}const initializeDetection=async({forceProductionMode:Be,disableIpify:Le=!1,sdkVersion:Ye,flow:tt}={})=>{await detectionSetup.setupDetect(Be,Ye,Le,tt)},setupI18n=async(Be,Le)=>{i18n.isInitialized?await i18nSetup(Be,Le):await new Promise(Ye=>{i18n.on("initialized",async()=>{await i18nSetup(Be,Le),Ye()})})},setup=async({forceProductionMode:Be,theme:Le={},clientId:Ye,lang:tt,translations:nt={},apiKey:ft,apiURL:ht,tokboxApiKey:gt="46135862",options:At,customHeaders:xt,fingerprintApiKey:Et="5uYRiI0XM6p8k4124ELX",clientExperimentId:yt,version:Ct,flowId:kt,skipInitialization:vt=!1})=>{try{window.location.hostname.includes("stage.incodetest")||init({dsn:"https://ce77899310d29f9e8da45741a6073cd3@o4506435887824896.ingest.us.sentry.io/4510357973172224",sendDefaultPii:!0,environment:process.env.NODE_ENV,release:version$4})}catch(It){console.error("Failed to initialize Sentry:",It)}setTheme(Le),setOptions({...At,recorderProvider:getRecorderProvider(ht)}),Ye&&(ft=sha1(Ye));const bt=createApi({apiKey:ft,apiURL:ht,customHeaders:{...xt,...At.useSha256?{"X-RSA-Encryption-Scheme":"RSA/NONE/OAEPWITHSHA-256ANDMGF1PADDING"}:{}}});setApi(bt),setFingerprintApiKey(Et),vt||(initialize({apiKey:ft,apiURL:ht,clientExperimentId:yt,flowId:kt}),await detectionSetup.setupDetect(Be,Ct)),At.unsafeMode||setupFiles(),await setupI18n(tt,nt)};async function attachSignatureOnAnnotation({contractId:Be,signatureType:Le,token:Ye,signedContractId:tt,orientation:nt="ORIENTATION_NORMAL",signatureText:ft=""}){return exports.api.post("/omni/attach-signature-on-annotation",{contractId:Be,signatureType:Le,signedContractId:tt,orientation:nt,replacementText:ft},{headers:{"X-Incode-Hardware-Id":Ye}}).then(ht=>ht.data).catch(ht=>{var gt;return Promise.reject((gt=ht==null?void 0:ht.response)==null?void 0:gt.data)})}async function getSignedContractsLinks({token:Be}){return exports.api.get("/omni/get/signed-contracts-links",{headers:{"X-Incode-Hardware-Id":Be}}).then(Le=>Le.data).catch(Le=>{var Ye;return Promise.reject((Ye=Le==null?void 0:Le.response)==null?void 0:Ye.data)})}function renderSignature(Be,{onSuccess:Le,token:Ye,type:tt,title:nt,subtitle:ft,initials:ht=!1,sendBase64:gt=!0,showSignatureInput:At=!1,canvasBackgroundColor:xt,canvasBorderColor:Et,penColor:yt,onInputChange:Ct}){const kt=createRoot$1(Be),vt={onSuccess:handleUnmountRoot(Le,kt,Be),onInputChange:Ct,token:Ye,type:tt,title:nt,subtitle:ft,initials:ht,sendBase64:gt,canvasBackgroundColor:xt,canvasBorderColor:Et,penColor:yt,showSignatureInput:At};customRender(jsxRuntimeExports.jsx(App$1,{token:Ye,children:jsxRuntimeExports.jsx(Signature$1,{...vt})}),Be,kt)}function addWatchListResults({token:Be,firstName:Le=null,surName:Ye=null,birthYear:tt=null,countryCodes:nt=[]}){return exports.api.post("/omni/watchlist-result",{firstName:Le,surName:Ye,birthYear:tt,countryCodes:nt,subscribe:!0},{headers:{"X-Incode-Hardware-Id":Be}}).then(ft=>ft.data).catch(ft=>Promise.reject(ft.response.data))}function initWatchList({token:Be}){return exports.api.post("/omni/init-watchlist",{},{headers:{"X-Incode-Hardware-Id":Be}}).then(Le=>Le.data).catch(Le=>Promise.reject(Le.response.data))}const getWorkflowConfig=async({token:Be})=>{const{data:Le}=await exports.api.get("/omni/workflow/info",{headers:{"X-Incode-Hardware-Id":Be}});return Le},getCurrentNode=async({token:Be})=>{const{data:Le}=await exports.api.get("/omni/workflow/current/node",{headers:{"X-Incode-Hardware-Id":Be}});return Le},processNode=async({token:Be})=>{const{data:Le}=await exports.api.post("/omni/workflow/process/node",{},{headers:{"X-Incode-Hardware-Id":Be}});return Le},wfSDKConfig={nativeCamera:!0,sendBase64:!0},Address=({token:Be,goNext:Le,config:Ye,workflowId:tt,onError:nt})=>(useModuleEvents({module:eventModuleNames.document,token:Be.token}),jsxRuntimeExports.jsx(ProofOfAddress$2,{token:Be.token,onSuccess:Le,title:Ye.title,subtitle:Ye.text,workflowId:tt,sendBase64:wfSDKConfig.sendBase64,disableSkipPoa:Ye.disableSkipPoa,onError:()=>nt()})),AdvancedElectronicSignature=({token:Be,goNext:Le,onError:Ye,config:tt})=>jsxRuntimeExports.jsx(AdvancedElectronicSignature$1,{onError:Ye,onSuccess:Le,token:Be.token,uploadDocument:tt.uploadDocument,downloadDocument:tt.downloadDocument});function FinishScreen$1({token:Be,useDefaultText:Le=!1}){const{t:Ye}=i18n;useDocumentTitle(Ye("verificationComplete.title"));const tt=Be.endScreenTitle,nt=Be.endScreenText,ft=tt&&!Le?tt:nt&&!Le?"":Ye("verificationComplete.title"),ht=nt&&!Le?nt:tt&&!Le?"":Ye("verificationComplete.message");return jsxRuntimeExports.jsxs("div",{className:"finish",role:"region","aria-live":"assertive",children:[ft?jsxRuntimeExports.jsx("h1",{className:"finish-title",children:ft}):null,ht?jsxRuntimeExports.jsx("p",{className:"finish-subtitle",children:ht}):null]})}const BiometricConsent=({token:Be,regulationType:Le,goNext:Ye,onError:tt})=>jsxRuntimeExports.jsx(BiometricConsent$1,{token:Be,onSuccess:Ye,onCancel:tt,regulationType:Le}),CombinedConsent=({token:Be,config:Le,goNext:Ye})=>jsxRuntimeExports.jsx(CombinedConsent$1,{consentId:Le==null?void 0:Le.combinedConsents,token:Be,onSuccess:Ye}),Curp=({session:Be,goNext:Le})=>jsxRuntimeExports.jsx(EnterCurp,{token:Be.token,onSuccess:Le,curpValidationRetries:Be.curpValidationRetries}),processCustomNode=async({token:Be,...Le})=>{const{data:Ye}=await exports.api.post("/omni/custom-module/execution",{...Le},{headers:{"X-Incode-Hardware-Id":Be}});return Ye},IdRank={SECOND_ID:"SECOND_ID"},CustomModuleStatuses={SUCCESS:"OK",FAIL:"FAIL",UNKNOWN:"UNKNOWN"},CustomModule=({token:Be,config:Le,goNext:Ye,customModuleCallback:tt,nodeId:nt})=>{const[ft,ht]=React.useState(!1);React.useEffect(()=>{(async()=>{if(!tt&&typeof tt!="function")return ht(!0),screenEvent({module:eventModuleNames.customModule,code:"screenOpened",token:Be.token,screen:eventScreenNames.customModuleProcessing}),await processCustomNode({token:Be.token,message:null,interviewId:Be.interviewId,nodeId:nt,callbackName:Le.callbackName,status:CustomModuleStatuses.UNKNOWN}),ht(!1),screenEvent({module:eventModuleNames.customModule,code:"screenClosed",token:Be.token,screen:eventScreenNames.customModuleProcessing}),Ye();screenEvent({module:eventModuleNames.customModule,code:"screenOpened",token:Be.token,screen:eventScreenNames.customModuleCallback}),tt({onSuccess:At,onError:xt,interviewId:Be.interviewId,nodeId:nt,name:Le.callbackName})})()},[tt,Be.interviewId,nt,Le.callbackName,Be.token,Ye]),useModuleEvents({module:eventModuleNames.customModule,token:Be.token});const gt=async(Et,yt=null)=>{ht(!0),screenEvent({module:eventModuleNames.customModule,code:"screenClosed",token:Be.token,screen:eventScreenNames.customModuleCallback}),screenEvent({module:eventModuleNames.customModule,code:"screenOpened",token:Be.token,screen:eventScreenNames.customModuleProcessing}),await processCustomNode({token:Be.token,message:yt,interviewId:Be.interviewId,nodeId:nt,callbackName:Le.callbackName,status:Et}),ht(!1),screenEvent({module:eventModuleNames.customModule,code:"screenClosed",token:Be.token,screen:eventScreenNames.customModuleProcessing}),Ye()},At=async Et=>{gt(CustomModuleStatuses.SUCCESS,Et)},xt=async Et=>{gt(CustomModuleStatuses.FAIL,Et)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ft?jsxRuntimeExports.jsx(Spinner$6,{}):null})},specialCasesFlow$1="6374ad13eac341cb71ed30ea",ProofOfAddressContainer$1=dt.div`
|
|
10282
10290
|
display: flex;
|
|
10283
10291
|
flex-direction: column;
|
|
10284
10292
|
align-items: center;
|
|
@@ -10328,7 +10336,7 @@ onmessage = (ev) => { postMessage({isOpenBeat:true});
|
|
|
10328
10336
|
width: 48px;
|
|
10329
10337
|
height: 48px;
|
|
10330
10338
|
margin-bottom: 16px;
|
|
10331
|
-
`,scoreStatus={[approvedStatuses.OK]:"Ok",[approvedStatuses.FAIL]:"Fail",[approvedStatuses.UNKNOWN]:"Unknown"},getScoreStatus=Be=>{switch(Be){case approvedStatuses.OK:case approvedStatuses.MANUAL_OK:return scoreStatus.OK;case approvedStatuses.FAIL:case approvedStatuses.MANUAL_FAIL:return scoreStatus.FAIL;default:return scoreStatus.UNKNOWN}};function RedirectedCallFinished({title:Be,subtitle:Le,displayOnboardingResultOnDesktop:Ye,token:tt}){const{score:nt,isLoading:ft}=useScore(Ye,tt),{t:ht}=useTranslation$1(),gt=getScoreStatus(nt==null?void 0:nt.overall.status);return ft&&Ye?jsxRuntimeExports.jsx(RedirectedCallFinishedContainer,{className:"IncodeRedirectCallFinishedContainer",children:jsxRuntimeExports.jsx(Spinner$5,{})}):Ye?jsxRuntimeExports.jsxs(RedirectedCallFinishedContainer,{className:"IncodeRedirectCallFinishedContainer",children:[gt!==scoreStatus.UNKNOWN&&jsxRuntimeExports.jsx(ImageWrapper,{children:jsxRuntimeExports.jsx("img",{src:gt===scoreStatus.OK?success:denied,alt:"verification"})}),jsxRuntimeExports.jsx(Subtitle,{className:"IncodeRedirectCallFinishedSubtitle",children:ht(`verificationComplete.title${gt}`)})]}):jsxRuntimeExports.jsxs(RedirectedCallFinishedContainer,{className:"IncodeRedirectCallFinishedContainer",children:[jsxRuntimeExports.jsx(Title$1,{className:"IncodeRedirectCallFinishedTitle",children:Be}),jsxRuntimeExports.jsx(Subtitle,{className:"IncodeRedirectCallFinishedSubtitle",children:Le})]})}let cachedAssets;const useAssets=({startSuccess:Be,token:Le,skipAssets:Ye})=>{const[tt,nt]=React.useState(exports.theme),[ft,ht]=React.useState(),gt=useUrlTheme();return React.useEffect(()=>{if(Ye){ht({});return}async function At(){if(!Le)return;const xt=cachedAssets||await fetchAssets({token:Le==null?void 0:Le.token}),Et=await getLogo(xt);ht({...xt,logo:Et}),cachedAssets=xt,xt.theme&&fetch(xt.theme).then(yt=>yt.json()).then(yt=>{let Ct=nt(yt);gt!=null&>.isUrlTheme&&(Ct=nt(gt)),nt(Ct)}),xt["customCSS.css"]&&fetch(xt["customCSS.css"]).then(yt=>yt.text()).then(yt=>{const Ct=document.createElement("style");Ct.innerHTML=yt,document.getElementsByTagName("head")[0].appendChild(Ct)})}At()},[Be,Le,gt,Ye]),{theme:tt,assets:ft}};async function getLogo(Be){const Le=Object.keys(Be).find(tt=>tt.startsWith("logo"));if(!Le)return;const Ye=Be[Le];if(Le.includes(".svg")){const tt=await fetch(Ye).then(ft=>ft.text()),nt=new Blob([tt],{type:"image/svg+xml"});return URL.createObjectURL(nt)}return Ye}const RedirectToMobile=({session:Be,disableSmsOption:Le,skipDesktopRedirect:Ye,allowSkipRedirect:tt,expired:nt,allowReEnrollment:ft,displayOnboardingResultOnDesktop:ht,qrPhishingResistance:gt,url:At,showFinishScreen:xt=!0,authHint:Et})=>{const{t:yt}=i18n,{nextStep:Ct,currentStep:kt}=useSteps(),{assets:vt}=useAssets({startSuccess:!0,token:Be});return vt?jsxRuntimeExports.jsxs(Steps,{currentStep:kt,children:[jsxRuntimeExports.jsx(Redirect,{session:Be,onSuccess:xt?Ct:emptyFunc,showSms:!Le,skipDesktopRedirect:Ye,allowSkipRedirect:tt,allowReEnrollment:ft,expired:nt,assets:vt,qrPhishingResistance:gt,url:At,authHint:Et}),xt&&jsxRuntimeExports.jsx(RedirectedCallFinished,{title:Be.endScreenTitle||yt("support.thanks"),subtitle:Be.endScreenText||yt("support.successFinish"),displayOnboardingResultOnDesktop:ht,token:Be.token})]}):jsxRuntimeExports.jsx(Loader$3,{})},Selfie=({token:Be,config:Le,goNext:Ye,onError:tt,ageAssurance:nt,disableZoomCheck:ft,parentSize:ht,disableUnsupportedBrowserScreen:gt})=>{useModuleEvents({module:eventModuleNames.selfie,token:Be.token,payload:{moduleVersion:"1"}});const At=Et=>{if(Et.message==="Virtual camera is detected"){tt();return}switch(Et.type){case"timeout":case"permissionDenied":tt();break;case"skip":Ye();break;default:Ye()}},xt={showPreview:Le.showPreview,assistedOnboarding:Le.assistedOnboarding,isSecondId:Le.secondId,captureAttempts:Le.captureAttempts,autoCaptureTimeout:Le.autoCaptureTimeout,isRecordingEnabled:Le.enableFaceRecording,showTutorial:Le.showTutorial,ageAssurance:nt,disableZoomCheck:ft,maskCheckEnabled:Le.validateFaceMask,lensesCheckEnabled:Le.validateLenses,hatCheckEnabled:Le.validateHeadCover,eyesClosedCheckEnabled:Le.validateClosedEyes,deepsightLiveness:Le.deepsightLiveness};return jsxRuntimeExports.jsx(CaptureFace,{onSuccess:Ye,onError:At,session:Be,captureConfig:xt,parentSize:ht,disableUnsupportedBrowserScreen:gt})},Signature=({token:Be,config:Le,goNext:Ye})=>jsxRuntimeExports.jsx(Signature$1,{token:Be.token,onSuccess:Ye,title:Le.title,subtitle:Le.subtitle}),VideoSelfie=({token:Be,config:Le,goNext:Ye,onError:tt,wfConfig:nt})=>{const{showTutorials:ft,checkLiveness:ht,useAsSelfie:gt,compareOcrEnabled:At,compareIdEnabled:xt,checkIdScan:Et,checkDocumentScan:yt,checkVoiceConsent:Ct,voiceConsentQuestions:kt,showPassport:vt,numberOfTries:bt,compareBackOcrEnabled:It,compareBackIdEnabled:wt}=Le;return jsxRuntimeExports.jsx(Recorder,{token:Be,onSuccess:Ye,onError:tt,showTutorial:ft,modules:getVideoSelfieModules(nt,{checkIdScan:Et,checkDocumentScan:yt,checkVoiceConsent:Ct,questionsCount:kt,showPassport:vt}),speechToTextCheck:!0,onLog:()=>{},numberOfTries:bt??3,performLiveness:ht,videoSelfieAsSelfie:gt,compareOCREnabled:At,compareIDEnabled:xt,compareBackOCREnabled:It,compareBackIDEnabled:wt,questionsCount:kt,useOpenVidu:nt.useOpenVidu,disableUnsupportedBrowserScreen:nt.disableUnsupportedBrowserScreen})},WatchList=({token:Be,goNext:Le})=>jsxRuntimeExports.jsx(GlobalWatchList,{token:Be,onSuccess:Le}),getModule=({currentNode:Be,token:Le,onNext:Ye,onError:tt,onSuccess:nt,wfConfig:ft,setState:ht,customModuleCallback:gt,authHint:At,showFinishScreen:xt})=>{if(Be){if(Be.nodeType==="FINISH")return jsxRuntimeExports.jsx(FinishScreen,{useDefaultText:!Le.endScreenTitle&&!Le.endScreenText,token:Le,workflowId:Be.workflowId,onSuccess:nt,redirectOriginOnly:ft.redirectOriginOnly,showFinishScreen:xt});switch(Be.moduleKey){case"ID_CAPTURE":return jsxRuntimeExports.jsx(IDCapture,{config:Be.moduleConfiguration,token:Le,onNext:Ye,onError:tt,mergeSessionRecordings:ft.mergeSessionRecordings,ageAssurance:ft.ageAssurance,disableUnsupportedBrowserScreen:ft.disableUnsupportedBrowserScreen});case"ID_OCR":return jsxRuntimeExports.jsx(OcrData,{goNext:Ye,token:Le,config:Be.moduleConfiguration});case"ID":return jsxRuntimeExports.jsx(ProcessId,{goNext:Ye,token:Le,config:Be.moduleConfiguration});case"SELFIE":return jsxRuntimeExports.jsx(Selfie,{config:Be.moduleConfiguration,token:Le,goNext:async()=>{await processNode({token:Le.token}),Ye(!1)},onError:tt,ageAssurance:ft.ageAssurance,disableZoomCheck:Be.workflowId==="67dc72bfe0eef492939b43b1",disableUnsupportedBrowserScreen:ft.disableUnsupportedBrowserScreen});case"FACE_MATCH":return jsxRuntimeExports.jsx(FaceMatch,{token:Le,goNext:async()=>{ht("PROCESSING"),await processNode({token:Le.token}),await Ye(!1),ht("STEPS")},config:Be.moduleConfiguration});case"DOCUMENT_CAPTURE":return jsxRuntimeExports.jsx(DocumentCapture,{token:Le,goNext:Ye,config:Be.moduleConfiguration,workflowId:Be.workflowId,onError:Ye});case"SIGNATURE":return jsxRuntimeExports.jsx(Signature,{goNext:Ye,config:Be.moduleConfiguration,token:Le});case"AE_SIGNATURE":return jsxRuntimeExports.jsx(AdvancedElectronicSignature,{goNext:Ye,config:Be.moduleConfiguration,token:Le,onError:tt});case"QE_SIGNATURE":return jsxRuntimeExports.jsx(QualifiedElectronicSignature,{goNext:Ye,config:Be.moduleConfiguration,token:Le,onError:tt});case"CURP_VALIDATION":return jsxRuntimeExports.jsx(Curp,{goNext:Ye,token:Le});case"WATCHLIST":return jsxRuntimeExports.jsx(WatchList,{goNext:Ye,token:Le});case"PHONE":return jsxRuntimeExports.jsx(Phone,{goNext:Ye,config:Be.moduleConfiguration,token:Le,onError:tt});case"EMAIL":return jsxRuntimeExports.jsx(Email,{goNext:Ye,config:Be.moduleConfiguration,token:Le,onError:tt});case"DYNAMIC_FORMS":return jsxRuntimeExports.jsx(Forms,{goNext:Ye,config:Be.moduleConfiguration,token:Le,onError:tt});case"EKYB":return jsxRuntimeExports.jsx(Ekyb,{goNext:Ye,config:Be.moduleConfiguration,token:Le});case"EXTERNAL_VERIFICATION":return jsxRuntimeExports.jsx(Ekyc,{goNext:Ye,token:Le,config:Be.moduleConfiguration});case"COMBINED_CONSENT":return jsxRuntimeExports.jsx(CombinedConsent,{goNext:Ye,config:Be.moduleConfiguration,token:Le});case"VIDEO_ONBOARDING":return jsxRuntimeExports.jsx(VideoSelfie,{goNext:Ye,token:Le,config:Be.moduleConfiguration,onError:tt,wfConfig:ft});case"ADDRESS":return jsxRuntimeExports.jsx(Address,{token:Le,goNext:Ye,config:Be.moduleConfiguration,workflowId:Be.workflowId,onError:Ye});case"GEOLOCATION":return jsxRuntimeExports.jsx(Geolocation,{goNext:Ye,token:Le,config:Be.moduleConfiguration});case"GOVT_VALIDATION":case"GOVT_VALIDATION_PROVISIONING":return jsxRuntimeExports.jsx(GovernmentValidation,{goNext:Ye,config:Be.moduleConfiguration,token:Le});case"USER_CONSENT":return jsxRuntimeExports.jsx(PrivacyConsent,{goNext:Ye,config:Be.moduleConfiguration,token:Le});case"CUSTOM_MODULE":return jsxRuntimeExports.jsx(CustomModule,{goNext:Ye,config:Be.moduleConfiguration,token:Le,customModuleCallback:gt,nodeId:Be.id});case"AUTHENTICATION":return jsxRuntimeExports.jsx(FaceAuthentication,{goNext:Ye,config:Be.moduleConfiguration,token:Le,authHint:At});default:return jsxRuntimeExports.jsx(NotImplementedModule,{goNext:Ye})}}},NotImplementedModule=({goNext:Be})=>(React.useEffect(()=>{Be()},[Be]),null),useSession=({workflowId:Be,token:Le,wfConfig:Ye,qrUuid:tt,uuid:nt})=>{const[ft,ht]=React.useState(null),[gt,At]=React.useState(Le??null),[xt,Et]=React.useState(Ye??null),[yt,Ct]=React.useState(null),[kt,vt]=React.useState("LOADING");return React.useEffect(()=>{(async()=>{try{let It="STEPS",wt,Rt=Ye;gt||(wt=await createNewSession({configurationId:Be,...tt&&{qrUuid:tt},...nt&&{uuid:nt}}),At(wt)),Rt||(Rt=await getWorkflowConfig({token:(gt==null?void 0:gt.token)??(wt==null?void 0:wt.token)}),Et(Rt)),mobile.isDesktop()&&(It=Rt.redirectDesktopToMobile?"REDIRECT":"STEPS"),gt!=null&>.showMandatoryConsent&&(It="MANDATORY_CONSENT"),ht(await getNextStep((gt==null?void 0:gt.token)??(wt==null?void 0:wt.token))),vt(It)}catch(It){const wt=It;if(vt("ERROR"),wt.status===4004)return Ct({message:"invalidUUID"});if(wt.status===4026)return Ct({message:"expiredUUID"});if(wt.status===4027)return Ct({message:"invalidWorkflow"});if(wt.status===4028)return Ct({message:"WorkflowNotActive"});if(wt.status===4081)return Ct({message:"invalidQRuuid"});if(wt.status===400){const Rt=wt.message||"";return Rt.includes("Interview does not exist for id")?Ct({message:"invalidSession"}):Ct({message:Rt})}Ct({message:"serverError"})}})()},[Be,gt,Ye]),{session:gt,error:yt,state:kt,setState:vt,workflowConfig:xt,currentStep:ft,setCurrentStep:ht}},getNextStep=async Be=>await getCurrentNode({token:Be}),Workflow=({workflowId:Be,token:Le,onError:Ye,onSuccess:tt,wfConfig:nt,customModuleCallback:ft,authHint:ht,redirectUrl:gt,qrUuid:At,uuid:xt,showFinishScreen:Et,skipDesktopRedirect:yt=emptyFunc})=>{const[Ct,kt]=React.useState(!1),{session:vt,setCurrentStep:bt,currentStep:It,state:wt,workflowConfig:Rt,error:Tt,setState:Bt}=useSession({workflowId:Be,token:Le,wfConfig:nt,qrUuid:At,uuid:xt}),Dt=React.useMemo(()=>{let Pt=!1;return async(Nt=!0)=>{if(Pt)return;Pt=!0;let Lt;try{Nt?Lt=await processNode({token:vt==null?void 0:vt.token}):Lt=await getCurrentNode({token:vt==null?void 0:vt.token}),bt(Lt)}catch(Wt){Bt("ERROR"),console.error(Wt)}finally{Pt=!1}}},[vt==null?void 0:vt.token,Bt,bt]);return React.useEffect(()=>(document.body.style.overflow="hidden",document.body.scrollTop=0,document.documentElement.scrollTop=0,()=>{document.body.style.overflow="auto"}),[]),!(Rt!=null&&Rt.qrPhishingResistance)&&!It||wt==="LOADING"||!(vt!=null&&vt.token)||!Rt?jsxRuntimeExports.jsx(Loader$3,{}):wt==="PROCESSING"?jsxRuntimeExports.jsx(Spinner$6,{}):wt==="ERROR"?Ye(Tt==null?void 0:Tt.message):wt==="MANDATORY_CONSENT"?jsxRuntimeExports.jsx(BiometricConsent,{token:vt,onError:()=>Bt("ERROR"),goNext:()=>Bt("STEPS"),regulationType:vt==null?void 0:vt.regulationType}):wt==="REDIRECT"&&!Ct?jsxRuntimeExports.jsx(RedirectToMobile,{allowSkipRedirect:(Rt==null?void 0:Rt.addContinueToDesktop)??!1,skipDesktopRedirect:()=>{kt(!0),yt()},session:vt,expired:(Tt==null?void 0:Tt.message)==="expiredUUID",displayOnboardingResultOnDesktop:!1,disableSmsOption:(Rt==null?void 0:Rt.disableSmsOption)??!1,qrPhishingResistance:(Rt==null?void 0:Rt.qrPhishingResistance)??!1,url:gt,showFinishScreen:Et,authHint:ht}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:getModule({currentNode:It,token:vt,onNext:Dt,onError:Ye,onSuccess:tt,wfConfig:Rt,setState:Bt,customModuleCallback:ft,authHint:ht,showFinishScreen:Et})})},executeWorkflow=async({element:Be,token:Le,workflowId:Ye,apiURL:tt,customModuleCallback:nt,onSuccess:ft,onError:ht,wfConfig:gt,authHint:At,qrUuid:xt,uuid:Et,redirectUrl:yt,clientId:Ct,showFinishScreen:kt,skipDesktopRedirect:vt})=>{const bt=createRoot$1(Be),It=Le?`${tt}/0`:tt;setup({apiURL:It,flowId:Ye,clientId:Ct,skipInitialization:!0,options:{}});const wt=Workflow;customRender(jsxRuntimeExports.jsx(App$1,{disableUnsupportedBrowserScreen:gt==null?void 0:gt.disableUnsupportedBrowserScreen,children:jsxRuntimeExports.jsx(wt,{token:Le,workflowId:Ye,onSuccess:ft,onError:ht,wfConfig:gt,customModuleCallback:nt,authHint:At,redirectUrl:yt,qrUuid:xt,uuid:Et,showFinishScreen:kt,skipDesktopRedirect:vt})}),Be,bt)};function create({apiKey:Be,apiURL:Le,lang:Ye,encrypt:tt=!1,translations:nt={},theme:ft={},clientId:ht,tokboxApiKey:gt="46135862",darkMode:At=!1,hostingApp:xt,unsafeMode:Et=!1,customHeaders:yt,fingerprintApiKey:Ct="5uYRiI0XM6p8k4124ELX",redirectFromUnsupportedBrowsers:kt=!1,useSha256:vt=!1,forceProductionMode:bt=!1,clientExperimentId:It,version:wt,skipInitialization:Rt=!1}){const Tt=setup({theme:ft,clientId:ht,lang:Ye,translations:nt,apiKey:Be,apiURL:Le,tokboxApiKey:gt,skipInitialization:Rt,options:{darkMode:At,hostingApp:xt,unsafeMode:Et,redirectFromUnsupportedBrowsers:kt,useSha256:vt},customHeaders:yt,fingerprintApiKey:Ct,forceProductionMode:bt,clientExperimentId:It,version:wt});async function Bt(){await Tt}return{createSession:createSession$3,createNewSession,updateSession:updateSession$1,publishKeys,capture,frontType,backType,selfieType,ocrData,getScore,addToQueue:addToQueue$1,getQueueIndex,addDocument,state,processId,processFace,getInterviewerName,getOpenTokTest,addAddressStatement,processAddressStatement,processWatchlist,processGovernmentValidation,addPhone,addPhoneInstantVerify,postFingerPrint:postFingerprint,getImages:getImages$1,getConnectionDetails,fetchModules,fetchModels,update:update$1,renderCamera,renderConference,renderManualIdUpload:manualIdUpload,renderFrontTutorial,renderBackTutorial,renderSelfieTutorial,renderPassportTutorial,renderDocumentTutorial:renderTutorialDocument,encrypt:tt,sendFingerprint,getFingerPrint:getFingerprint,getDeviceFingerprintInfo,verifyOTP,generateOTP,connectToQueue,addConferenceEvent,removeFromQueue,approve,addGeolocation,warmup:detectionSetup.warmup,renderSignature,renderAdvancedElectronicSignature,addSignature,getMedicalOcrData,renderVideoSelfie,renderOTP,addEvent,getRandomQuestions,sendGeolocation,fetchProcessingStatus,theme:exports.theme,tokboxApiKey:gt,mock,setSessionStatus,renderCapture,addSpeech,fetchAssets,setTheme,sendOTPSMS,compareOTP,getFinishStatus,renderLogin,renderLoginIncodeID,renderLoginDesktop,identify,identifyInstantVerify,OneToOneIdentify:oneToOneIdentify,addCurp,addCurpv2,renderEnterCurp,addInitials,attachSignatureOnAnnotation,getSignedContractsLinks,renderRedirectToMobile,renderQr,getOnboardingStatus,addWatchListResults,initWatchList,addName,addEmail,addCustomFields,addBarcode,renderRetrySteps,isDesktop:mobile.isDesktop,addFrontSecondId,processSecondId,ocrDataSecondId,processFaceSecondId,getCustomFields,getImagesV2:getImages,renderFaceMatch,sendRedirectSMS,sendMfa,getInterviewData,lastNameMatch,lastNameMatchByCustomer,sendEmail,addCreditCardFront,addCreditCardBack,processCreditCard,i18n,compareOCR,compareID,compareBackID,compareBackOCR,getStartInfo,addMLConsent,renderMlConsent,sendEkyb,addQrCodeText,renderQrScanner,addContract,processCrossDocumentData,processAntiFraud,darkMode:At,getSecondIdImages,getSecondIdImagesV2,enableDeviceRiskModule,getDeviceRiskModuleConfiguration,collectDeviceRiskResults,addBankInfo,getBelvoWidgetToken,getWatchlist,useModuleEvents,useScreenEvents,eventModuleNames,eventScreenNames,addScreenEvent,updateSecondId:update,createRedirectUrl,compareGovValidationOTP,compareInstantVerifyOTP,getAdvancedElectronicSignatureUnsignedDocs,processAdvancedElectronicSignatureDocs,renderUniversalIdentity,renderInstantVerify,getInstantVerifyMissingModules,renderWatchList,renderEmail:renderEmail$1,renderGeolocation:renderEmail,renderPhone,instantVerifyShareIdentity,renderForms,submitAnswer,getForms,generateAESDocumentUploadUrl,getModuleConfig,instantVerifyUpdate,renderDocumentSelector,renderBiometricConsent:renderBiometricConsent$1,processImss,renderUserConsent,processGlobalWatchlist,getRedirectUrl,renderCombinedConsent:renderBiometricConsent,setUxType,getOtpStatus,getLocationSuggestions,initialize:Bt,renderFiscalQr,renderQualifiedElectronicSignature,renderCertificateIssuance,renderCaptureId,getPhone,renderCaptureFace,renderAuthFace,executeFlow,executeWorkflow,getWorkflowConfig}}const poaImage="data:image/svg+xml,%3csvg%20width='232'%20height='223'%20viewBox='0%200%20232%20223'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='232'%20height='223'%20rx='5'%20fill='%23E0E8EB'/%3e%3cg%20filter='url(%23filter0_d_1867_34445)'%3e%3cpath%20d='M52%2027C52%2024.7909%2053.7909%2023%2056%2023H175C177.209%2023%20179%2024.7909%20179%2027V197C179%20199.209%20177.209%20201%20175%20201H56C53.7909%20201%2052%20199.209%2052%20197V27Z'%20fill='white'/%3e%3c/g%3e%3crect%20x='60'%20y='82'%20width='31'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='61'%20width='61'%20height='8'%20rx='1'%20fill='%2320263D'/%3e%3crect%20x='60'%20y='96'%20width='31'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='89'%20width='31'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='132'%20y='101'%20width='39'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='132'%20y='111'%20width='39'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='129'%20width='93'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='150'%20width='93'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='143'%20width='104'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='136'%20width='100'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='157'%20width='100'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='132'%20y='94'%20width='39'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='75'%20y='106'%20width='12'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='75'%20y='31'%20width='12'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='160'%20y='31'%20width='11'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='160'%20y='187'%20width='11'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='143'%20y='187'%20width='11'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='92'%20y='187'%20width='36'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='187'%20width='15'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='146'%20y='31'%20width='11'%20height='5'%20rx='1'%20fill='%23DBB107'/%3e%3crect%20x='60'%20y='106'%20width='11'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='31'%20width='11'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='112'%20width='11'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='37'%20width='11'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='75'%20y='112'%20width='12'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M52.0017%2053H179V55H52L52.0017%2053Z'%20fill='%23E9E9EB'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_1867_34445'%20x='43'%20y='19'%20width='145'%20height='196'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='5'/%3e%3cfeGaussianBlur%20stdDeviation='4.5'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.149145%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_1867_34445'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_1867_34445'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",specialCasesFlow="6374ad13eac341cb71ed30ea",ProofOfAddressContainer=dt.div`
|
|
10339
|
+
`,scoreStatus={[approvedStatuses.OK]:"Ok",[approvedStatuses.FAIL]:"Fail",[approvedStatuses.UNKNOWN]:"Unknown"},getScoreStatus=Be=>{switch(Be){case approvedStatuses.OK:case approvedStatuses.MANUAL_OK:return scoreStatus.OK;case approvedStatuses.FAIL:case approvedStatuses.MANUAL_FAIL:return scoreStatus.FAIL;default:return scoreStatus.UNKNOWN}};function RedirectedCallFinished({title:Be,subtitle:Le,displayOnboardingResultOnDesktop:Ye,token:tt}){const{score:nt,isLoading:ft}=useScore(Ye,tt),{t:ht}=useTranslation$1(),gt=getScoreStatus(nt==null?void 0:nt.overall.status);return ft&&Ye?jsxRuntimeExports.jsx(RedirectedCallFinishedContainer,{className:"IncodeRedirectCallFinishedContainer",children:jsxRuntimeExports.jsx(Spinner$5,{})}):Ye?jsxRuntimeExports.jsxs(RedirectedCallFinishedContainer,{className:"IncodeRedirectCallFinishedContainer",children:[gt!==scoreStatus.UNKNOWN&&jsxRuntimeExports.jsx(ImageWrapper,{children:jsxRuntimeExports.jsx("img",{src:gt===scoreStatus.OK?success:denied,alt:"verification"})}),jsxRuntimeExports.jsx(Subtitle,{className:"IncodeRedirectCallFinishedSubtitle",children:ht(`verificationComplete.title${gt}`)})]}):jsxRuntimeExports.jsxs(RedirectedCallFinishedContainer,{className:"IncodeRedirectCallFinishedContainer",children:[jsxRuntimeExports.jsx(Title$1,{className:"IncodeRedirectCallFinishedTitle",children:Be}),jsxRuntimeExports.jsx(Subtitle,{className:"IncodeRedirectCallFinishedSubtitle",children:Le})]})}let cachedAssets;const useAssets=({startSuccess:Be,token:Le,skipAssets:Ye})=>{const[tt,nt]=React.useState(exports.theme),[ft,ht]=React.useState(),gt=useUrlTheme();return React.useEffect(()=>{if(Ye){ht({});return}async function At(){if(!Le)return;const xt=cachedAssets||await fetchAssets({token:Le==null?void 0:Le.token}),Et=await getLogo(xt);ht({...xt,logo:Et}),cachedAssets=xt,xt.theme&&fetch(xt.theme).then(yt=>yt.json()).then(yt=>{let Ct=nt(yt);gt!=null&>.isUrlTheme&&(Ct=nt(gt)),nt(Ct)}),xt["customCSS.css"]&&fetch(xt["customCSS.css"]).then(yt=>yt.text()).then(yt=>{const Ct=document.createElement("style");Ct.innerHTML=yt,document.getElementsByTagName("head")[0].appendChild(Ct)})}At()},[Be,Le,gt,Ye]),{theme:tt,assets:ft}};async function getLogo(Be){const Le=Object.keys(Be).find(tt=>tt.startsWith("logo"));if(!Le)return;const Ye=Be[Le];if(Le.includes(".svg")){const tt=await fetch(Ye).then(ft=>ft.text()),nt=new Blob([tt],{type:"image/svg+xml"});return URL.createObjectURL(nt)}return Ye}const RedirectToMobile=({session:Be,disableSmsOption:Le,skipDesktopRedirect:Ye,allowSkipRedirect:tt,expired:nt,allowReEnrollment:ft,displayOnboardingResultOnDesktop:ht,qrPhishingResistance:gt,url:At,showFinishScreen:xt=!0,authHint:Et})=>{const{t:yt}=i18n,{nextStep:Ct,currentStep:kt}=useSteps(),{assets:vt}=useAssets({startSuccess:!0,token:Be});return vt?jsxRuntimeExports.jsxs(Steps,{currentStep:kt,children:[jsxRuntimeExports.jsx(Redirect,{session:Be,onSuccess:xt?Ct:emptyFunc,showSms:!Le,skipDesktopRedirect:Ye,allowSkipRedirect:tt,allowReEnrollment:ft,expired:nt,assets:vt,qrPhishingResistance:gt,url:At,authHint:Et}),xt&&jsxRuntimeExports.jsx(RedirectedCallFinished,{title:Be.endScreenTitle||yt("support.thanks"),subtitle:Be.endScreenText||yt("support.successFinish"),displayOnboardingResultOnDesktop:ht,token:Be.token})]}):jsxRuntimeExports.jsx(Loader$3,{})},Selfie=({token:Be,config:Le,goNext:Ye,onError:tt,ageAssurance:nt,disableZoomCheck:ft,parentSize:ht,disableUnsupportedBrowserScreen:gt})=>{useModuleEvents({module:eventModuleNames.selfie,token:Be.token,payload:{moduleVersion:"1"}});const At=Et=>{if(Et.message==="Virtual camera is detected"){tt();return}switch(Et.type){case"timeout":case"permissionDenied":tt();break;case"skip":Ye();break;default:Ye()}},xt={showPreview:Le.showPreview,assistedOnboarding:Le.assistedOnboarding,isSecondId:Le.secondId,captureAttempts:Le.captureAttempts,autoCaptureTimeout:Le.autoCaptureTimeout,isRecordingEnabled:Le.enableFaceRecording,showTutorial:Le.showTutorial,ageAssurance:nt,disableZoomCheck:ft,maskCheckEnabled:Le.validateFaceMask,lensesCheckEnabled:Le.validateLenses,hatCheckEnabled:Le.validateHeadCover,eyesClosedCheckEnabled:Le.validateClosedEyes,deepsightLiveness:Le.deepsightLiveness};return jsxRuntimeExports.jsx(CaptureFace,{onSuccess:Ye,onError:At,session:Be,captureConfig:xt,parentSize:ht,disableUnsupportedBrowserScreen:gt})},Signature=({token:Be,config:Le,goNext:Ye})=>jsxRuntimeExports.jsx(Signature$1,{token:Be.token,onSuccess:Ye,title:Le.title,subtitle:Le.subtitle}),VideoSelfie=({token:Be,config:Le,goNext:Ye,onError:tt,wfConfig:nt})=>{const{showTutorials:ft,checkLiveness:ht,useAsSelfie:gt,compareOcrEnabled:At,compareIdEnabled:xt,checkIdScan:Et,checkDocumentScan:yt,checkVoiceConsent:Ct,voiceConsentQuestions:kt,showPassport:vt,numberOfTries:bt,compareBackOcrEnabled:It,compareBackIdEnabled:wt}=Le;return jsxRuntimeExports.jsx(Recorder,{token:Be,onSuccess:Ye,onError:tt,showTutorial:ft,modules:getVideoSelfieModules(nt,{checkIdScan:Et,checkDocumentScan:yt,checkVoiceConsent:Ct,questionsCount:kt,showPassport:vt}),speechToTextCheck:!0,onLog:()=>{},numberOfTries:bt??3,performLiveness:ht,videoSelfieAsSelfie:gt,compareOCREnabled:At,compareIDEnabled:xt,compareBackOCREnabled:It,compareBackIDEnabled:wt,questionsCount:kt,useOpenVidu:nt.useOpenVidu,disableUnsupportedBrowserScreen:nt.disableUnsupportedBrowserScreen})},WatchList=({token:Be,goNext:Le})=>jsxRuntimeExports.jsx(GlobalWatchList,{token:Be,onSuccess:Le}),getModule=({currentNode:Be,token:Le,onNext:Ye,onError:tt,onSuccess:nt,wfConfig:ft,setState:ht,customModuleCallback:gt,authHint:At,showFinishScreen:xt})=>{if(Be){if(Be.nodeType==="FINISH")return jsxRuntimeExports.jsx(FinishScreen,{useDefaultText:!Le.endScreenTitle&&!Le.endScreenText,token:Le,workflowId:Be.workflowId,onSuccess:nt,redirectOriginOnly:ft.redirectOriginOnly,showFinishScreen:xt});if(Be.nodeType==="ASYNC_RESOLUTION")return jsxRuntimeExports.jsx(FinishScreen$1,{token:Le,useDefaultText:!Le.endScreenTitle&&!Le.endScreenText});switch(Be.moduleKey){case"ID_CAPTURE":return jsxRuntimeExports.jsx(IDCapture,{config:Be.moduleConfiguration,token:Le,onNext:Ye,onError:tt,mergeSessionRecordings:ft.mergeSessionRecordings,ageAssurance:ft.ageAssurance,disableUnsupportedBrowserScreen:ft.disableUnsupportedBrowserScreen});case"ID_OCR":return jsxRuntimeExports.jsx(OcrData,{goNext:Ye,token:Le,config:Be.moduleConfiguration});case"ID":return jsxRuntimeExports.jsx(ProcessId,{goNext:Ye,token:Le,config:Be.moduleConfiguration});case"SELFIE":return jsxRuntimeExports.jsx(Selfie,{config:Be.moduleConfiguration,token:Le,goNext:async()=>{await processNode({token:Le.token}),Ye(!1)},onError:tt,ageAssurance:ft.ageAssurance,disableZoomCheck:Be.workflowId==="67dc72bfe0eef492939b43b1",disableUnsupportedBrowserScreen:ft.disableUnsupportedBrowserScreen});case"FACE_MATCH":return jsxRuntimeExports.jsx(FaceMatch,{token:Le,goNext:async()=>{ht("PROCESSING"),await processNode({token:Le.token}),await Ye(!1),ht("STEPS")},config:Be.moduleConfiguration});case"DOCUMENT_CAPTURE":return jsxRuntimeExports.jsx(DocumentCapture,{token:Le,goNext:Ye,config:Be.moduleConfiguration,workflowId:Be.workflowId,onError:Ye});case"SIGNATURE":return jsxRuntimeExports.jsx(Signature,{goNext:Ye,config:Be.moduleConfiguration,token:Le});case"AE_SIGNATURE":return jsxRuntimeExports.jsx(AdvancedElectronicSignature,{goNext:Ye,config:Be.moduleConfiguration,token:Le,onError:tt});case"QE_SIGNATURE":return jsxRuntimeExports.jsx(QualifiedElectronicSignature,{goNext:Ye,config:Be.moduleConfiguration,token:Le,onError:tt});case"CURP_VALIDATION":return jsxRuntimeExports.jsx(Curp,{goNext:Ye,token:Le});case"WATCHLIST":return jsxRuntimeExports.jsx(WatchList,{goNext:Ye,token:Le});case"PHONE":return jsxRuntimeExports.jsx(Phone,{goNext:Ye,config:Be.moduleConfiguration,token:Le,onError:tt});case"EMAIL":return jsxRuntimeExports.jsx(Email,{goNext:Ye,config:Be.moduleConfiguration,token:Le,onError:tt});case"DYNAMIC_FORMS":return jsxRuntimeExports.jsx(Forms,{goNext:Ye,config:Be.moduleConfiguration,token:Le,onError:tt});case"EKYB":return jsxRuntimeExports.jsx(Ekyb,{goNext:Ye,config:Be.moduleConfiguration,token:Le});case"EXTERNAL_VERIFICATION":return jsxRuntimeExports.jsx(Ekyc,{goNext:Ye,token:Le,config:Be.moduleConfiguration});case"COMBINED_CONSENT":return jsxRuntimeExports.jsx(CombinedConsent,{goNext:Ye,config:Be.moduleConfiguration,token:Le});case"VIDEO_ONBOARDING":return jsxRuntimeExports.jsx(VideoSelfie,{goNext:Ye,token:Le,config:Be.moduleConfiguration,onError:tt,wfConfig:ft});case"ADDRESS":return jsxRuntimeExports.jsx(Address,{token:Le,goNext:Ye,config:Be.moduleConfiguration,workflowId:Be.workflowId,onError:Ye});case"GEOLOCATION":return jsxRuntimeExports.jsx(Geolocation,{goNext:Ye,token:Le,config:Be.moduleConfiguration});case"GOVT_VALIDATION":case"GOVT_VALIDATION_PROVISIONING":return jsxRuntimeExports.jsx(GovernmentValidation,{goNext:Ye,config:Be.moduleConfiguration,token:Le});case"USER_CONSENT":return jsxRuntimeExports.jsx(PrivacyConsent,{goNext:Ye,config:Be.moduleConfiguration,token:Le});case"CUSTOM_MODULE":return jsxRuntimeExports.jsx(CustomModule,{goNext:Ye,config:Be.moduleConfiguration,token:Le,customModuleCallback:gt,nodeId:Be.id});case"AUTHENTICATION":return jsxRuntimeExports.jsx(FaceAuthentication,{goNext:Ye,config:Be.moduleConfiguration,token:Le,authHint:At});default:return jsxRuntimeExports.jsx(NotImplementedModule,{goNext:Ye})}}},NotImplementedModule=({goNext:Be})=>(React.useEffect(()=>{Be()},[Be]),null),useSession=({workflowId:Be,token:Le,wfConfig:Ye,qrUuid:tt,uuid:nt})=>{const[ft,ht]=React.useState(null),[gt,At]=React.useState(Le??null),[xt,Et]=React.useState(Ye??null),[yt,Ct]=React.useState(null),[kt,vt]=React.useState("LOADING");return React.useEffect(()=>{(async()=>{try{let It="STEPS",wt,Rt=Ye;gt||(wt=await createNewSession({configurationId:Be,...tt&&{qrUuid:tt},...nt&&{uuid:nt}}),At(wt)),Rt||(Rt=await getWorkflowConfig({token:(gt==null?void 0:gt.token)??(wt==null?void 0:wt.token)}),Et(Rt)),mobile.isDesktop()&&(It=Rt.redirectDesktopToMobile?"REDIRECT":"STEPS"),gt!=null&>.showMandatoryConsent&&(It="MANDATORY_CONSENT"),ht(await getNextStep((gt==null?void 0:gt.token)??(wt==null?void 0:wt.token))),vt(It)}catch(It){const wt=It;if(vt("ERROR"),wt.status===4004)return Ct({message:"invalidUUID"});if(wt.status===4026)return Ct({message:"expiredUUID"});if(wt.status===4027)return Ct({message:"invalidWorkflow"});if(wt.status===4028)return Ct({message:"WorkflowNotActive"});if(wt.status===4081)return Ct({message:"invalidQRuuid"});if(wt.status===400){const Rt=wt.message||"";return Rt.includes("Interview does not exist for id")?Ct({message:"invalidSession"}):Ct({message:Rt})}Ct({message:"serverError"})}})()},[Be,gt,Ye]),{session:gt,error:yt,state:kt,setState:vt,workflowConfig:xt,currentStep:ft,setCurrentStep:ht}},getNextStep=async Be=>await getCurrentNode({token:Be}),Workflow=({workflowId:Be,token:Le,onError:Ye,onSuccess:tt,wfConfig:nt,customModuleCallback:ft,authHint:ht,redirectUrl:gt,qrUuid:At,uuid:xt,showFinishScreen:Et,skipDesktopRedirect:yt=emptyFunc})=>{const[Ct,kt]=React.useState(!1),{session:vt,setCurrentStep:bt,currentStep:It,state:wt,workflowConfig:Rt,error:Tt,setState:Bt}=useSession({workflowId:Be,token:Le,wfConfig:nt,qrUuid:At,uuid:xt}),Dt=React.useMemo(()=>{let Pt=!1;return async(Nt=!0)=>{if(Pt)return;Pt=!0;let Lt;try{Nt?Lt=await processNode({token:vt==null?void 0:vt.token}):Lt=await getCurrentNode({token:vt==null?void 0:vt.token}),bt(Lt)}catch(Wt){Bt("ERROR"),console.error(Wt)}finally{Pt=!1}}},[vt==null?void 0:vt.token,Bt,bt]);return React.useEffect(()=>(document.body.style.overflow="hidden",document.body.scrollTop=0,document.documentElement.scrollTop=0,()=>{document.body.style.overflow="auto"}),[]),!(Rt!=null&&Rt.qrPhishingResistance)&&!It||wt==="LOADING"||!(vt!=null&&vt.token)||!Rt?jsxRuntimeExports.jsx(Loader$3,{}):wt==="PROCESSING"?jsxRuntimeExports.jsx(Spinner$6,{}):wt==="ERROR"?Ye(Tt==null?void 0:Tt.message):wt==="MANDATORY_CONSENT"?jsxRuntimeExports.jsx(BiometricConsent,{token:vt,onError:()=>Bt("ERROR"),goNext:()=>Bt("STEPS"),regulationType:vt==null?void 0:vt.regulationType}):wt==="REDIRECT"&&!Ct?jsxRuntimeExports.jsx(RedirectToMobile,{allowSkipRedirect:(Rt==null?void 0:Rt.addContinueToDesktop)??!1,skipDesktopRedirect:()=>{kt(!0),yt()},session:vt,expired:(Tt==null?void 0:Tt.message)==="expiredUUID",displayOnboardingResultOnDesktop:!1,disableSmsOption:(Rt==null?void 0:Rt.disableSmsOption)??!1,qrPhishingResistance:(Rt==null?void 0:Rt.qrPhishingResistance)??!1,url:gt,showFinishScreen:Et,authHint:ht}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:getModule({currentNode:It,token:vt,onNext:Dt,onError:Ye,onSuccess:tt,wfConfig:Rt,setState:Bt,customModuleCallback:ft,authHint:ht,showFinishScreen:Et})})},executeWorkflow=async({element:Be,token:Le,workflowId:Ye,apiURL:tt,customModuleCallback:nt,onSuccess:ft,onError:ht,wfConfig:gt,authHint:At,qrUuid:xt,uuid:Et,redirectUrl:yt,clientId:Ct,showFinishScreen:kt,skipDesktopRedirect:vt})=>{const bt=createRoot$1(Be),It=Le?`${tt}/0`:tt;setup({apiURL:It,flowId:Ye,clientId:Ct,skipInitialization:!0,options:{}});const wt=Workflow;customRender(jsxRuntimeExports.jsx(App$1,{disableUnsupportedBrowserScreen:gt==null?void 0:gt.disableUnsupportedBrowserScreen,children:jsxRuntimeExports.jsx(wt,{token:Le,workflowId:Ye,onSuccess:ft,onError:ht,wfConfig:gt,customModuleCallback:nt,authHint:At,redirectUrl:yt,qrUuid:xt,uuid:Et,showFinishScreen:kt,skipDesktopRedirect:vt})}),Be,bt)};function create({apiKey:Be,apiURL:Le,lang:Ye,encrypt:tt=!1,translations:nt={},theme:ft={},clientId:ht,tokboxApiKey:gt="46135862",darkMode:At=!1,hostingApp:xt,unsafeMode:Et=!1,customHeaders:yt,fingerprintApiKey:Ct="5uYRiI0XM6p8k4124ELX",redirectFromUnsupportedBrowsers:kt=!1,useSha256:vt=!1,forceProductionMode:bt=!1,clientExperimentId:It,version:wt,skipInitialization:Rt=!1}){const Tt=setup({theme:ft,clientId:ht,lang:Ye,translations:nt,apiKey:Be,apiURL:Le,tokboxApiKey:gt,skipInitialization:Rt,options:{darkMode:At,hostingApp:xt,unsafeMode:Et,redirectFromUnsupportedBrowsers:kt,useSha256:vt},customHeaders:yt,fingerprintApiKey:Ct,forceProductionMode:bt,clientExperimentId:It,version:wt});async function Bt(){await Tt}return{createSession:createSession$3,createNewSession,updateSession:updateSession$1,publishKeys,capture,frontType,backType,selfieType,ocrData,getScore,addToQueue:addToQueue$1,getQueueIndex,addDocument,state,processId,processFace,getInterviewerName,getOpenTokTest,addAddressStatement,processAddressStatement,processWatchlist,processGovernmentValidation,addPhone,addPhoneInstantVerify,postFingerPrint:postFingerprint,getImages:getImages$1,getConnectionDetails,fetchModules,fetchModels,update:update$1,renderCamera,renderConference,renderManualIdUpload:manualIdUpload,renderFrontTutorial,renderBackTutorial,renderSelfieTutorial,renderPassportTutorial,renderDocumentTutorial:renderTutorialDocument,encrypt:tt,sendFingerprint,getFingerPrint:getFingerprint,getDeviceFingerprintInfo,verifyOTP,generateOTP,connectToQueue,addConferenceEvent,removeFromQueue,approve,addGeolocation,warmup:detectionSetup.warmup,renderSignature,renderAdvancedElectronicSignature,addSignature,getMedicalOcrData,renderVideoSelfie,renderOTP,addEvent,getRandomQuestions,sendGeolocation,fetchProcessingStatus,theme:exports.theme,tokboxApiKey:gt,mock,setSessionStatus,renderCapture,addSpeech,fetchAssets,setTheme,sendOTPSMS,compareOTP,getFinishStatus,renderLogin,renderLoginIncodeID,renderLoginDesktop,identify,identifyInstantVerify,OneToOneIdentify:oneToOneIdentify,addCurp,addCurpv2,renderEnterCurp,addInitials,attachSignatureOnAnnotation,getSignedContractsLinks,renderRedirectToMobile,renderQr,getOnboardingStatus,addWatchListResults,initWatchList,addName,addEmail,addCustomFields,addBarcode,renderRetrySteps,isDesktop:mobile.isDesktop,addFrontSecondId,processSecondId,ocrDataSecondId,processFaceSecondId,getCustomFields,getImagesV2:getImages,renderFaceMatch,sendRedirectSMS,sendMfa,getInterviewData,lastNameMatch,lastNameMatchByCustomer,sendEmail,addCreditCardFront,addCreditCardBack,processCreditCard,i18n,compareOCR,compareID,compareBackID,compareBackOCR,getStartInfo,addMLConsent,renderMlConsent,sendEkyb,addQrCodeText,renderQrScanner,addContract,processCrossDocumentData,processAntiFraud,darkMode:At,getSecondIdImages,getSecondIdImagesV2,enableDeviceRiskModule,getDeviceRiskModuleConfiguration,collectDeviceRiskResults,addBankInfo,getBelvoWidgetToken,getWatchlist,useModuleEvents,useScreenEvents,eventModuleNames,eventScreenNames,addScreenEvent,updateSecondId:update,createRedirectUrl,compareGovValidationOTP,compareInstantVerifyOTP,getAdvancedElectronicSignatureUnsignedDocs,processAdvancedElectronicSignatureDocs,renderUniversalIdentity,renderInstantVerify,getInstantVerifyMissingModules,renderWatchList,renderEmail:renderEmail$1,renderGeolocation:renderEmail,renderPhone,instantVerifyShareIdentity,renderForms,submitAnswer,getForms,generateAESDocumentUploadUrl,getModuleConfig,instantVerifyUpdate,renderDocumentSelector,renderBiometricConsent:renderBiometricConsent$1,processImss,renderUserConsent,processGlobalWatchlist,getRedirectUrl,renderCombinedConsent:renderBiometricConsent,setUxType,getOtpStatus,getLocationSuggestions,initialize:Bt,renderFiscalQr,renderQualifiedElectronicSignature,renderCertificateIssuance,renderCaptureId,getPhone,renderCaptureFace,renderAuthFace,executeFlow,executeWorkflow,getWorkflowConfig}}const poaImage="data:image/svg+xml,%3csvg%20width='232'%20height='223'%20viewBox='0%200%20232%20223'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='232'%20height='223'%20rx='5'%20fill='%23E0E8EB'/%3e%3cg%20filter='url(%23filter0_d_1867_34445)'%3e%3cpath%20d='M52%2027C52%2024.7909%2053.7909%2023%2056%2023H175C177.209%2023%20179%2024.7909%20179%2027V197C179%20199.209%20177.209%20201%20175%20201H56C53.7909%20201%2052%20199.209%2052%20197V27Z'%20fill='white'/%3e%3c/g%3e%3crect%20x='60'%20y='82'%20width='31'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='61'%20width='61'%20height='8'%20rx='1'%20fill='%2320263D'/%3e%3crect%20x='60'%20y='96'%20width='31'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='89'%20width='31'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='132'%20y='101'%20width='39'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='132'%20y='111'%20width='39'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='129'%20width='93'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='150'%20width='93'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='143'%20width='104'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='136'%20width='100'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='157'%20width='100'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='132'%20y='94'%20width='39'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='75'%20y='106'%20width='12'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='75'%20y='31'%20width='12'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='160'%20y='31'%20width='11'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='160'%20y='187'%20width='11'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='143'%20y='187'%20width='11'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='92'%20y='187'%20width='36'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='187'%20width='15'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='146'%20y='31'%20width='11'%20height='5'%20rx='1'%20fill='%23DBB107'/%3e%3crect%20x='60'%20y='106'%20width='11'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='31'%20width='11'%20height='5'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='112'%20width='11'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='60'%20y='37'%20width='11'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3crect%20x='75'%20y='112'%20width='12'%20height='4'%20rx='1'%20fill='%23E9E9EB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M52.0017%2053H179V55H52L52.0017%2053Z'%20fill='%23E9E9EB'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_1867_34445'%20x='43'%20y='19'%20width='145'%20height='196'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='5'/%3e%3cfeGaussianBlur%20stdDeviation='4.5'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.149145%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_1867_34445'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_1867_34445'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",specialCasesFlow="6374ad13eac341cb71ed30ea",ProofOfAddressContainer=dt.div`
|
|
10332
10340
|
display: flex;
|
|
10333
10341
|
flex-direction: column;
|
|
10334
10342
|
align-items: center;
|