@regulaforensics/idv-face 3.10.588-nightly → 3.10.589-rc

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/README.md CHANGED
@@ -9,7 +9,6 @@ It is delivered as part of the **IDV Capturing** solution and has a version sync
9
9
 
10
10
  The module is an **npm package** that **exports a Web Component**, inside which the **Lit** framework (LitJS) is used for rendering and component logic.
11
11
 
12
-
13
12
  ## FaceSDK Versioning
14
13
 
15
14
  This module declares a **peerDependency** on:
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { BaseModule } from '../../../../interfaces-idv/src';
2
- import { FailedAssets } from '../../interfaces-idv/src';
3
- import { IdvAsset } from '../../interfaces-idv/src';
4
- import { IdvModuleProps } from '../../../../interfaces-idv/src';
5
1
  import { LitElement } from 'lit';
6
2
  import { RecordingProcess } from '@regulaforensics/vp-frontend-face-components';
7
3
  import { TemplateResult } from 'lit-html';
8
4
 
5
+ declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
6
+ abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
7
+ abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
8
+ }
9
+
9
10
  export declare class FaceIdv extends LitElement implements BaseModule<FaceModuleProps, object> {
10
11
  props: IdvModuleProps<FaceModuleProps, object> | null;
11
12
  private renderVersion;
@@ -16,7 +17,6 @@ export declare class FaceIdv extends LitElement implements BaseModule<FaceModule
16
17
  static deinitialize(): void;
17
18
  static getIdentifier: () => string;
18
19
  static displayName: string;
19
- static cancel(): void;
20
20
  render(): TemplateResult<1>;
21
21
  }
22
22
 
@@ -42,7 +42,6 @@ declare type FaceModuleProps = {
42
42
  };
43
43
  localizationKeys?: Record<string, string>;
44
44
  customization?: {
45
- fontFamily?: string;
46
45
  onboardingScreenBackgroundColor?: string;
47
46
  onboardingScreenStartButtonBackgroundColor?: string;
48
47
  onboardingScreenStartButtonBackgroundHover?: string;
@@ -111,6 +110,47 @@ declare type FaceModuleProps = {
111
110
  preloadAssetsRequired?: boolean;
112
111
  };
113
112
 
113
+ declare type FailedAssets = {
114
+ imageURL: Set<string>;
115
+ base64: Set<string>;
116
+ blockingAssets: Set<string>;
117
+ };
118
+
119
+ declare type IdvAsset = {
120
+ idvAsset: ImageLike;
121
+ };
122
+
123
+ declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
124
+ isProcessing?: (isProcessing: boolean) => void;
125
+ moduleProps: TModuleProps;
126
+ modulesConfig?: TModulesConfig;
127
+ perform: (data: any, type?: PerformType) => void;
128
+ idvEventListener: (module: string, data: any) => void;
129
+ nonce?: string;
130
+ };
131
+
132
+ declare type ImageBase = {
133
+ imageURL?: string;
134
+ imageId?: string;
135
+ base64?: string;
136
+ prepareRequired?: boolean;
137
+ failurePolicy?: ImageFailurePolicy;
138
+ timeout?: number;
139
+ };
140
+
141
+ declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
142
+
143
+ declare type ImageLike = ImageBase & {
144
+ placeholderImage?: ImageLike;
145
+ };
146
+
147
+ declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
148
+
149
+ declare const PerformTypes: {
150
+ readonly FORM: "form";
151
+ readonly DATA: "data";
152
+ };
153
+
114
154
  declare type RecordingProcessKeys = keyof typeof RecordingProcess;
115
155
 
116
156
  export { }
package/dist/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var RegulaIdvFace=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=globalThis,n=t.ShadowRoot&&(t.ShadyCSS===void 0||t.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,r=Symbol(),i=new WeakMap,a=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(n&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=i.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&i.set(t,e))}return e}toString(){return this.cssText}},o=e=>new a(typeof e==`string`?e:e+``,void 0,r),s=(e,...t)=>new a(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,r),c=(e,r)=>{if(n)e.adoptedStyleSheets=r.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of r){let r=document.createElement(`style`),i=t.litNonce;i!==void 0&&r.setAttribute(`nonce`,i),r.textContent=n.cssText,e.appendChild(r)}},l=n?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return o(t)})(e):e;function u(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){u(a,r,i,o,s,`next`,e)}function s(e){u(a,r,i,o,s,`throw`,e)}o(void 0)})}}var f,p,{is:m,defineProperty:h,getOwnPropertyDescriptor:g,getOwnPropertyNames:_,getOwnPropertySymbols:v,getPrototypeOf:y}=Object,b=globalThis,x=b.trustedTypes,S=x?x.emptyScript:``,C=b.reactiveElementPolyfillSupport,w=(e,t)=>e,T={toAttribute(e,t){switch(t){case Boolean:e=e?S:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},E=(e,t)=>!m(e,t),D={attribute:!0,type:String,converter:T,reflect:!1,useDefault:!1,hasChanged:E};(f=Symbol).metadata!=null||(f.metadata=Symbol(`metadata`)),b.litPropertyMetadata!=null||(b.litPropertyMetadata=new WeakMap);var O=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)==null?this.l=[]:t).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=D){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&h(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){var r;let{get:i,set:a}=(r=g(this.prototype,e))==null?{get(){return this[t]},set(e){this[t]=e}}:r;return{get:i,set(t){let r=i==null?void 0:i.call(this);a==null||a.call(this,t),this.requestUpdate(e,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))==null?D:t}static _$Ei(){if(this.hasOwnProperty(w(`elementProperties`)))return;let e=y(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(w(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w(`properties`))){let e=this.properties,t=[..._(e),...v(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(l(e))}else e!==void 0&&t.push(l(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(e=>e(this))}addController(e){var t,n;((t=this._$EO)==null?this._$EO=new Set:t).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;let t=(e=this.shadowRoot)==null?this.attachShadow(this.constructor.shadowRootOptions):e;return c(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){var i;let a=(((i=n.converter)==null?void 0:i.toAttribute)===void 0?T:n.converter).toAttribute(t,n.type);this._$Em=e,a==null?this.removeAttribute(r):this.setAttribute(r,a),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){var i,a,o;let e=n.getPropertyOptions(r),s=typeof e.converter==`function`?{fromAttribute:e.converter}:((i=e.converter)==null?void 0:i.fromAttribute)===void 0?T:e.converter;this._$Em=r;let c=s.fromAttribute(t,e.type);this[r]=(a=c==null?(o=this._$Ej)==null?void 0:o.get(r):c)==null?c:a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){var a,o;let s=this.constructor;if(!1===r&&(i=this[e]),n!=null||(n=s.getPropertyOptions(e)),!(((a=n.hasChanged)==null?E:a)(i,t)||n.useDefault&&n.reflect&&i===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(s._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){var o,s,c;n&&!((o=this._$Ej)==null?this._$Ej=new Map:o).has(e)&&(this._$Ej.set(e,(s=a==null?t:a)==null?this[e]:s),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&((c=this._$Eq)==null?this._$Eq=new Set:c).add(e))}_$EP(){var e=this;return d(function*(){e.isUpdatePending=!0;try{yield e._$ES}catch(e){Promise.reject(e)}let t=e.scheduleUpdate();return t!=null&&(yield t),!e.isUpdatePending})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{var n;e=this.shouldUpdate(t),e?(this.willUpdate(t),(n=this._$EO)==null||n.forEach(e=>{var t;return(t=e.hostUpdate)==null?void 0:t.call(e)}),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(e=>{var t;return(t=e.hostUpdated)==null?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}};O.elementStyles=[],O.shadowRootOptions={mode:`open`},O[w(`elementProperties`)]=new Map,O[w(`finalized`)]=new Map,C==null||C({ReactiveElement:O}),((p=b.reactiveElementVersions)==null?b.reactiveElementVersions=[]:p).push(`2.1.2`);var k,A=globalThis,j=e=>e,M=A.trustedTypes,N=M?M.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,P=`$lit$`,F=`lit$${Math.random().toFixed(9).slice(2)}$`,I=`?`+F,L=`<${I}>`,R=document,ee=()=>R.createComment(``),te=e=>e===null||typeof e!=`object`&&typeof e!=`function`,z=Array.isArray,ne=e=>z(e)||typeof(e==null?void 0:e[Symbol.iterator])==`function`,re=`[
2
- \f\r]`,ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ae=/-->/g,oe=/>/g,se=RegExp(`>|${re}(?:([^\\s"'>=/]+)(${re}*=${re}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),ce=/'/g,le=/"/g,ue=/^(?:script|style|textarea|title)$/i,de=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),fe=Symbol.for(`lit-noChange`),B=Symbol.for(`lit-nothing`),pe=new WeakMap,me=R.createTreeWalker(R,129);function he(e,t){if(!z(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return N===void 0?t:N.createHTML(t)}var ge=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=ie;for(let t=0;t<n;t++){var s;let n=e[t],c,l,u=-1,d=0;for(;d<n.length&&(o.lastIndex=d,l=o.exec(n),l!==null);)d=o.lastIndex,o===ie?l[1]===`!--`?o=ae:l[1]===void 0?l[2]===void 0?l[3]!==void 0&&(o=se):(ue.test(l[2])&&(i=RegExp(`</`+l[2],`g`)),o=se):o=oe:o===se?l[0]===`>`?(o=(s=i)==null?ie:s,u=-1):l[1]===void 0?u=-2:(u=o.lastIndex-l[2].length,c=l[1],o=l[3]===void 0?se:l[3]===`"`?le:ce):o===le||o===ce?o=se:o===ae||o===oe?o=ie:(o=se,i=void 0);let f=o===se&&e[t+1].startsWith(`/>`)?` `:``;a+=o===ie?n+L:u>=0?(r.push(c),n.slice(0,u)+P+n.slice(u)+F+f):n+F+(u===-2?t:f)}return[he(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},_e=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=ge(t,n);if(this.el=e.createElement(l,r),me.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=me.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(P)){let t=u[o++],n=i.getAttribute(e).split(F),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Se:r[1]===`?`?Ce:r[1]===`@`?we:xe}),i.removeAttribute(e)}else e.startsWith(F)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(ue.test(i.tagName)){let e=i.textContent.split(F),t=e.length-1;if(t>0){i.textContent=M?M.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],ee()),me.nextNode(),c.push({type:2,index:++a});i.append(e[t],ee())}}}else if(i.nodeType===8)if(i.data===I)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(F,e+1))!==-1;)c.push({type:7,index:a}),e+=F.length-1}a++}}static createElement(e,t){let n=R.createElement(`template`);return n.innerHTML=e,n}};function ve(e,t,n=e,r){var i,a,o;if(t===fe)return t;let s=r===void 0?n._$Cl:(i=n._$Co)==null?void 0:i[r],c=te(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==c&&(s==null||(a=s._$AO)==null||a.call(s,!1),c===void 0?s=void 0:(s=new c(e),s._$AT(e,n,r)),r===void 0?n._$Cl=s:((o=n._$Co)==null?n._$Co=[]:o)[r]=s),s!==void 0&&(t=ve(e,s._$AS(e,t.values),s,r)),t}var ye=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;let{el:{content:n},parts:r}=this._$AD,i=((t=e==null?void 0:e.creationScope)==null?R:t).importNode(n,!0);me.currentNode=i;let a=me.nextNode(),o=0,s=0,c=r[0];for(;c!==void 0;){if(o===c.index){let t;c.type===2?t=new be(a,a.nextSibling,this,e):c.type===1?t=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(t=new Te(a,this,e)),this._$AV.push(t),c=r[++s]}o!==(c==null?void 0:c.index)&&(a=me.nextNode(),o++)}return me.currentNode=R,i}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},be=class e{get _$AU(){var e,t;return(e=(t=this._$AM)==null?void 0:t._$AU)==null?this._$Cv:e}constructor(e,t,n,r){var i;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=(i=r==null?void 0:r.isConnected)==null?!0:i}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ve(this,e,t),te(e)?e===B||e==null||e===``?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==fe&&this._(e):e._$litType$===void 0?e.nodeType===void 0?ne(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==B&&te(this._$AH)?this._$AA.nextSibling.data=e:this.T(R.createTextNode(e)),this._$AH=e}$(e){var t;let{values:n,_$litType$:r}=e,i=typeof r==`number`?this._$AC(e):(r.el===void 0&&(r.el=_e.createElement(he(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)==null?void 0:t._$AD)===i)this._$AH.p(n);else{let e=new ye(i,this),t=e.u(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=pe.get(e.strings);return t===void 0&&pe.set(e.strings,t=new _e(e)),t}k(t){z(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(ee()),this.O(ee()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)==null||n.call(this,!1,!0,t);e!==this._$AB;){let t=j(e).nextSibling;j(e).remove(),e=t}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}},xe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=B}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=ve(this,e,t,0),a=!te(e)||e!==this._$AH&&e!==fe,a&&(this._$AH=e);else{var o;let r=e,s,c;for(e=i[0],s=0;s<i.length-1;s++)c=ve(this,r[n+s],t,s),c===fe&&(c=this._$AH[s]),a||(a=!te(c)||c!==this._$AH[s]),c===B?e=B:e!==B&&(e+=((o=c)==null?``:o)+i[s+1]),this._$AH[s]=c}a&&!r&&this.j(e)}j(e){e===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e==null?``:e)}},Se=class extends xe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===B?void 0:e}},Ce=class extends xe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}},we=class extends xe{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){var n;if((e=(n=ve(this,e,t,0))==null?B:n)===fe)return;let r=this._$AH,i=e===B&&r!==B||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==B&&(r===B||i);i&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH==`function`?this._$AH.call((t=(n=this.options)==null?void 0:n.host)==null?this.element:t,e):this._$AH.handleEvent(e)}},Te=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ve(this,e)}},Ee={M:P,P:F,A:I,C:1,L:ge,R:ye,D:ne,V:ve,I:be,H:xe,N:Ce,U:we,B:Se,F:Te},De=A.litHtmlPolyfillSupport;De==null||De(_e,be),((k=A.litHtmlVersions)==null?A.litHtmlVersions=[]:k).push(`3.3.3`);var Oe=(e,t,n)=>{var r;let i=(r=n==null?void 0:n.renderBefore)==null?t:r,a=i._$litPart$;if(a===void 0){var o;let e=(o=n==null?void 0:n.renderBefore)==null?null:o;i._$litPart$=a=new be(t.insertBefore(ee(),e),e,void 0,n==null?{}:n)}return a._$AI(e),a},ke,Ae,je=globalThis,Me=class extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;let t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Oe(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return fe}};Me._$litElement$=!0,Me.finalized=!0,(ke=je.litElementHydrateSupport)==null||ke.call(je,{LitElement:Me});var Ne=je.litElementPolyfillSupport;Ne==null||Ne({LitElement:Me}),((Ae=je.litElementVersions)==null?je.litElementVersions=[]:Ae).push(`4.2.2`);var Pe={attribute:!0,type:String,converter:T,reflect:!1,hasChanged:E},Fe=(e=Pe,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function Ie(e){return(t,n)=>typeof n==`object`?Fe(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}var Le=e=>(...t)=>({_$litDirective$:e,values:t}),Re=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},{I:ze}=Ee,Be={},Ve=(e,t=Be)=>e._$AH=t,He=Le(class extends Re{constructor(){super(...arguments),this.key=B}render(e,t){return this.key=e,t}update(e,[t,n]){return t!==this.key&&(Ve(e),this.key=t),n}});function Ue(e){"@babel/helpers - typeof";return Ue=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ue(e)}function We(e,t){if(Ue(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ue(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ge(e){var t=We(e,`string`);return Ue(t)==`symbol`?t:t+``}function Ke(e,t,n){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qe(Object(n),!0).forEach(function(t){Ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ye=class e{constructor({errorCode:e,errorCodeKey:t,message:n,underlyingError:r,underlyingBaseError:i,domain:a,module:o,errorEnumName:s,shortDomainCode:c}){this.errorCode=e,this.errorCodeKey=t,this.message=n,this.underlyingError=r,this.underlyingBaseError=i,this.module=o,this.domain=a,this.errorEnumName=s,this.shortDomainCode=c}static getErrorKey(e,t){let n=Object.keys(t).find(n=>t[n]===e);if(!n)throw Error(`Invalid errorCode: ${e} in enum`);return n}get lastUnderlyingError(){let t=this.underlyingBaseError;for(;(t==null?void 0:t.underlyingBaseError)instanceof e;)t=t.underlyingBaseError;return t==null?void 0:t.underlyingError}toObject(){let t={errorCode:this.errorCode,errorCodeKey:this.errorCodeKey,errorEnumName:this.errorEnumName,message:this.message,module:this.module,underlyingError:this.underlyingError,lastUnderlineError:this.lastUnderlyingError};return this.underlyingBaseError&&this.underlyingBaseError instanceof e&&(t.underlyingBaseError=this.underlyingBaseError.toObject()),t}get shortChain(){let t=`${this.shortDomainCode}:${this.errorCode}${this.underlyingError?`-`+this.underlyingError:``}`;return this.underlyingBaseError instanceof e&&(t+=`-${this.underlyingBaseError.shortChain}`),t}get fullChain(){let t=`${this.module}.${this.domain}:${this.errorCodeKey}${this.underlyingError?`-`+this.underlyingError:``}`;return this.underlyingBaseError instanceof e&&(t+=`-${this.underlyingBaseError.fullChain}`),t}};function Xe(e,t){if(t.displayName?console.log(`Register module: ${t.displayName}`):console.error(`Missed "displayName" when register module`),t.getSupportedTemplates&&typeof t.getSupportedTemplates==`function`){let e=t.getSupportedTemplates();console.log(`${t==null?void 0:t.displayName} supported templates: ${e.join(`, `)}`)}else console.error(`Missed "getSupportedTemplates" method when register module`);if(t.initialize&&typeof t.initialize==`function`||console.error(`${t==null?void 0:t.displayName} "initialize" method was not implemented`),t.deinitialize&&typeof t.deinitialize==`function`||console.error(`${t==null?void 0:t.displayName} "deinitialize" method was not implemented`),t.cancel&&typeof t.cancel==`function`||console.error(`${t==null?void 0:t.displayName} "cancel" method was not implemented`),t.isReady&&typeof t.isReady==`function`||console.error(`${t==null?void 0:t.displayName} "isReady" method was not implemented`),t.getIdentifier&&typeof t.getIdentifier==`function`){let e=t.getIdentifier();console.log(`Module id: ${e}`)}else console.error(`Missed "getIdentifier" when register module`);customElements.get(t.getIdentifier())?console.log(`Module ${e} has already registered`):customElements.define(e,t),console.log(`-------`)}function Ze(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}var Qe={FORM:`form`,DATA:`data`},$e=(e,t)=>e.base64&&!(t!=null&&t.base64.has(e.base64))?e.base64:e.imageURL&&!(t!=null&&t.imageURL.has(e.imageURL))?e.imageURL:``,et=(e,t,n)=>{var r;if(!t)return;let i=(r=e==null?void 0:e.idvAsset)==null?null:r;for(;i;){let e=$e(i,n);if(e)return e;i=i.failurePolicy===`placeholderImage`&&i.placeholderImage||null}},tt={EMPTY:-1,ERROR:0,OK:1,TIMEOUT:2},nt=[`LANDSCAPE_MODE_RESTRICTED`,`TIMEOUT_ERROR`,`CHANGE_CAMERA`,`DEVICE_ROTATE`,`APP_INACTIVE`],rt=function(e){return e.LIVENESS=`LIVENESS`,e}({}),it=`idv-face`,at=function(e){return e[e.NO_INITIALIZED=0]=`NO_INITIALIZED`,e[e.UNKNOWN_STEP=1]=`UNKNOWN_STEP`,e[e.LIVENESS_ERROR=2]=`LIVENESS_ERROR`,e[e.IMAGE_LOADING_FAILED=3]=`IMAGE_LOADING_FAILED`,e}({}),ot=function(e){return e[e.CONFIGURATION_FAILED=0]=`CONFIGURATION_FAILED`,e[e.INTERNAL_ERROR=1]=`INTERNAL_ERROR`,e[e.PRESENTER_UNAVAILABLE=2]=`PRESENTER_UNAVAILABLE`,e}({}),st,ct,lt=class e extends Ye{constructor({errorCode:t,message:n,underlyingError:r,underlyingBaseError:i}){let a=Ye.getErrorKey(t,at);super({errorCode:t,errorCodeKey:a,errorEnumName:e.ERROR_ENUM_NAME,module:e.MODULE,message:n,underlyingError:r,underlyingBaseError:i,domain:e.ERROR_ENUM_NAME,shortDomainCode:e.SHORT_CODE})}};st=lt,st.MODULE=it,st.ERROR_ENUM_NAME=`FaceModuleError`,st.SHORT_CODE=`FM`;var ut=class e extends Ye{constructor({errorCode:t,message:n,underlyingError:r,underlyingBaseError:i}){let a=Ye.getErrorKey(t,ot);super({errorCode:t,errorCodeKey:a,errorEnumName:e.ERROR_ENUM_NAME,module:e.MODULE,message:n,underlyingError:r,underlyingBaseError:i,domain:e.ERROR_ENUM_NAME,shortDomainCode:e.SHORT_CODE})}};ct=ut,ct.MODULE=it,ct.ERROR_ENUM_NAME=`LivenessError`,ct.SHORT_CODE=`FML`;var dt=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})};function ft(e){return Ie(Je(Je({},e),{},{state:!0,attribute:!1}))}var pt=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function mt(e,t){return(n,r,i)=>{let a=t=>{var n,r;return(n=(r=t.renderRoot)==null?void 0:r.querySelector(e))==null?null:n};if(t){let{get:e,set:t}=typeof r==`object`?n:i==null?(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})():i;return pt(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return pt(n,r,{get(){return a(this)}})}}var ht=Object.defineProperty,gt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,yt=(e,t,n)=>t in e?ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bt=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&yt(e,n,t[n]);if(gt)for(var n of gt(t))vt.call(t,n)&&yt(e,n,t[n]);return e},xt=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),St=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function wt(e){if(Object.prototype.hasOwnProperty.call(e,`__esModule`))return e;var t=e.default;if(typeof t==`function`){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Tt={},Et,Dt;function V(){if(Dt)return Et;Dt=1;var e=function(e){return e&&e.Math===Math&&e};return Et=e(typeof globalThis==`object`&&globalThis)||e(typeof window==`object`&&window)||e(typeof self==`object`&&self)||e(typeof St==`object`&&St)||e(typeof Et==`object`&&Et)||(function(){return this})()||Function(`return this`)(),Et}var Ot={},kt,At;function H(){return At||(At=1,kt=function(e){try{return!!e()}catch(e){return!0}}),kt}var jt,Mt;function Nt(){return Mt?jt:(Mt=1,jt=!H()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),jt)}var Pt,Ft;function It(){return Ft?Pt:(Ft=1,Pt=!H()(function(){var e=(function(){}).bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)}),Pt)}var Lt,Rt;function zt(){if(Rt)return Lt;Rt=1;var e=It(),t=Function.prototype.call;return Lt=e?t.bind(t):function(){return t.apply(t,arguments)},Lt}var Bt={},Vt;function Ht(){if(Vt)return Bt;Vt=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor;return Bt.f=t&&!e.call({1:2},1)?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Bt}var Ut,Wt;function Gt(){return Wt||(Wt=1,Ut=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Ut}var Kt,qt;function U(){if(qt)return Kt;qt=1;var e=It(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return Kt=e?r:function(e){return function(){return n.apply(e,arguments)}},Kt}var Jt,Yt;function Xt(){if(Yt)return Jt;Yt=1;var e=U(),t=e({}.toString),n=e(``.slice);return Jt=function(e){return n(t(e),8,-1)},Jt}var Zt,Qt;function $t(){if(Qt)return Zt;Qt=1;var e=U(),t=H(),n=Xt(),r=Object,i=e(``.split);return Zt=t(function(){return!r(`z`).propertyIsEnumerable(0)})?function(e){return n(e)===`String`?i(e,``):r(e)}:r,Zt}var en,tn;function nn(){return tn||(tn=1,en=function(e){return e==null}),en}var rn,an;function on(){if(an)return rn;an=1;var e=nn(),t=TypeError;return rn=function(n){if(e(n))throw new t(`Can't call method on `+n);return n},rn}var sn,cn;function ln(){if(cn)return sn;cn=1;var e=$t(),t=on();return sn=function(n){return e(t(n))},sn}var un,dn;function fn(){if(dn)return un;dn=1;var e=typeof document==`object`&&document.all;return un=e===void 0&&e!==void 0?function(t){return typeof t==`function`||t===e}:function(e){return typeof e==`function`},un}var pn,mn;function hn(){if(mn)return pn;mn=1;var e=fn();return pn=function(t){return typeof t==`object`?t!==null:e(t)},pn}var gn,_n;function vn(){if(_n)return gn;_n=1;var e=V(),t=fn(),n=function(e){return t(e)?e:void 0};return gn=function(t,r){return arguments.length<2?n(e[t]):e[t]&&e[t][r]},gn}var yn,bn;function xn(){return bn?yn:(bn=1,yn=U()({}.isPrototypeOf),yn)}var Sn,Cn;function wn(){if(Cn)return Sn;Cn=1;var e=V().navigator,t=e&&e.userAgent;return Sn=t?String(t):``,Sn}var Tn,En;function Dn(){if(En)return Tn;En=1;var e=V(),t=wn(),n=e.process,r=e.Deno,i=n&&n.versions||r&&r.version,a=i&&i.v8,o,s;return a&&(o=a.split(`.`),s=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!s&&t&&(o=t.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=t.match(/Chrome\/(\d+)/),o&&(s=+o[1]))),Tn=s,Tn}var On,kn;function An(){if(kn)return On;kn=1;var e=Dn(),t=H(),n=V().String;return On=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol(`symbol detection`);return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),On}var jn,Mn;function Nn(){return Mn?jn:(Mn=1,jn=An()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,jn)}var Pn,Fn;function In(){if(Fn)return Pn;Fn=1;var e=vn(),t=fn(),n=xn(),r=Nn(),i=Object;return Pn=r?function(e){return typeof e==`symbol`}:function(r){var a=e(`Symbol`);return t(a)&&n(a.prototype,i(r))},Pn}var Ln,Rn;function zn(){if(Rn)return Ln;Rn=1;var e=String;return Ln=function(t){try{return e(t)}catch(e){return`Object`}},Ln}var Bn,Vn;function Hn(){if(Vn)return Bn;Vn=1;var e=fn(),t=zn(),n=TypeError;return Bn=function(r){if(e(r))return r;throw new n(t(r)+` is not a function`)},Bn}var Un,Wn;function Gn(){if(Wn)return Un;Wn=1;var e=Hn(),t=nn();return Un=function(n,r){var i=n[r];return t(i)?void 0:e(i)},Un}var Kn,qn;function Jn(){if(qn)return Kn;qn=1;var e=zt(),t=fn(),n=hn(),r=TypeError;return Kn=function(i,a){var o,s;if(a===`string`&&t(o=i.toString)&&!n(s=e(o,i))||t(o=i.valueOf)&&!n(s=e(o,i))||a!==`string`&&t(o=i.toString)&&!n(s=e(o,i)))return s;throw new r(`Can't convert object to primitive value`)},Kn}var Yn={exports:{}},Xn,Zn;function Qn(){return Zn||(Zn=1,Xn=!1),Xn}var $n,er;function tr(){if(er)return $n;er=1;var e=V(),t=Object.defineProperty;return $n=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r},$n}var nr;function rr(){if(nr)return Yn.exports;nr=1;var e=Qn(),t=V(),n=tr(),r=`__core-js_shared__`,i=Yn.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:`3.48.0`,mode:e?`pure`:`global`,copyright:`© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.`,license:`https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE`,source:`https://github.com/zloirock/core-js`}),Yn.exports}var ir,ar;function or(){if(ar)return ir;ar=1;var e=rr();return ir=function(t,n){return e[t]||(e[t]=n||{})},ir}var sr,cr;function lr(){if(cr)return sr;cr=1;var e=on(),t=Object;return sr=function(n){return t(e(n))},sr}var ur,dr;function fr(){if(dr)return ur;dr=1;var e=U(),t=lr(),n=e({}.hasOwnProperty);return ur=Object.hasOwn||function(e,r){return n(t(e),r)},ur}var pr,mr;function hr(){if(mr)return pr;mr=1;var e=U(),t=0,n=Math.random(),r=e(1.1.toString);return pr=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+r(++t+n,36)},pr}var gr,_r;function vr(){if(_r)return gr;_r=1;var e=V(),t=or(),n=fr(),r=hr(),i=An(),a=Nn(),o=e.Symbol,s=t(`wks`),c=a?o.for||o:o&&o.withoutSetter||r;return gr=function(e){return n(s,e)||(s[e]=i&&n(o,e)?o[e]:c(`Symbol.`+e)),s[e]},gr}var yr,br;function xr(){if(br)return yr;br=1;var e=zt(),t=hn(),n=In(),r=Gn(),i=Jn(),a=vr(),o=TypeError,s=a(`toPrimitive`);return yr=function(a,c){if(!t(a)||n(a))return a;var l=r(a,s),u;if(l){if(c===void 0&&(c=`default`),u=e(l,a,c),!t(u)||n(u))return u;throw new o(`Can't convert object to primitive value`)}return c===void 0&&(c=`number`),i(a,c)},yr}var Sr,Cr;function wr(){if(Cr)return Sr;Cr=1;var e=xr(),t=In();return Sr=function(n){var r=e(n,`string`);return t(r)?r:r+``},Sr}var Tr,Er;function Dr(){if(Er)return Tr;Er=1;var e=V(),t=hn(),n=e.document,r=t(n)&&t(n.createElement);return Tr=function(e){return r?n.createElement(e):{}},Tr}var Or,kr;function Ar(){if(kr)return Or;kr=1;var e=Nt(),t=H(),n=Dr();return Or=!e&&!t(function(){return Object.defineProperty(n(`div`),"a",{get:function(){return 7}}).a!==7}),Or}var jr;function Mr(){if(jr)return Ot;jr=1;var e=Nt(),t=zt(),n=Ht(),r=Gt(),i=ln(),a=wr(),o=fr(),s=Ar(),c=Object.getOwnPropertyDescriptor;return Ot.f=e?c:function(e,l){if(e=i(e),l=a(l),s)try{return c(e,l)}catch(e){}if(o(e,l))return r(!t(n.f,e,l),e[l])},Ot}var Nr={},Pr,Fr;function Ir(){if(Fr)return Pr;Fr=1;var e=Nt(),t=H();return Pr=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Pr}var Lr,Rr;function zr(){if(Rr)return Lr;Rr=1;var e=hn(),t=String,n=TypeError;return Lr=function(r){if(e(r))return r;throw new n(t(r)+` is not an object`)},Lr}var Br;function Vr(){if(Br)return Nr;Br=1;var e=Nt(),t=Ar(),n=Ir(),r=zr(),i=wr(),a=TypeError,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=`enumerable`,l=`configurable`,u=`writable`;return Nr.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),typeof e==`function`&&t===`prototype`&&`value`in n&&u in n&&!n[u]){var a=s(e,t);a&&a[u]&&(e[t]=n.value,n={configurable:l in n?n[l]:a[l],enumerable:c in n?n[c]:a[c],writable:!1})}return o(e,t,n)}:o:function(e,n,s){if(r(e),n=i(n),r(s),t)try{return o(e,n,s)}catch(e){}if(`get`in s||`set`in s)throw new a(`Accessors not supported`);return`value`in s&&(e[n]=s.value),e},Nr}var Hr,Ur;function Wr(){if(Ur)return Hr;Ur=1;var e=Nt(),t=Vr(),n=Gt();return Hr=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e},Hr}var Gr={exports:{}},Kr,qr;function Jr(){if(qr)return Kr;qr=1;var e=Nt(),t=fr(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,`name`);return Kr={EXISTS:i,PROPER:i&&(function(){}).name===`something`,CONFIGURABLE:i&&(!e||e&&r(n,`name`).configurable)},Kr}var Yr,Xr;function Zr(){if(Xr)return Yr;Xr=1;var e=U(),t=fn(),n=rr(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),Yr=n.inspectSource,Yr}var Qr,$r;function ei(){if($r)return Qr;$r=1;var e=V(),t=fn(),n=e.WeakMap;return Qr=t(n)&&/native code/.test(String(n)),Qr}var ti,ni;function ri(){if(ni)return ti;ni=1;var e=or(),t=hr(),n=e(`keys`);return ti=function(e){return n[e]||(n[e]=t(e))},ti}var ii,ai;function oi(){return ai||(ai=1,ii={}),ii}var si,ci;function li(){if(ci)return si;ci=1;var e=ei(),t=V(),n=hn(),r=Wr(),i=fr(),a=rr(),o=ri(),s=oi(),c=`Object already initialized`,l=t.TypeError,u=t.WeakMap,d,f,p,m=function(e){return p(e)?f(e):d(e,{})},h=function(e){return function(t){var r;if(!n(t)||(r=f(t)).type!==e)throw new l(`Incompatible receiver, `+e+` required`);return r}};if(e||a.state){var g=a.state||(a.state=new u);g.get=g.get,g.has=g.has,g.set=g.set,d=function(e,t){if(g.has(e))throw new l(c);return t.facade=e,g.set(e,t),t},f=function(e){return g.get(e)||{}},p=function(e){return g.has(e)}}else{var _=o(`state`);s[_]=!0,d=function(e,t){if(i(e,_))throw new l(c);return t.facade=e,r(e,_,t),t},f=function(e){return i(e,_)?e[_]:{}},p=function(e){return i(e,_)}}return si={set:d,get:f,has:p,enforce:m,getterFor:h},si}var ui;function di(){if(ui)return Gr.exports;ui=1;var e=U(),t=H(),n=fn(),r=fr(),i=Nt(),a=Jr().CONFIGURABLE,o=Zr(),s=li(),c=s.enforce,l=s.get,u=String,d=Object.defineProperty,f=e(``.slice),p=e(``.replace),m=e([].join),h=i&&!t(function(){return d(function(){},`length`,{value:8}).length!==8}),g=String(String).split(`String`),_=Gr.exports=function(e,t,n){f(u(t),0,7)===`Symbol(`&&(t=`[`+p(u(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!r(e,`name`)||a&&e.name!==t)&&(i?d(e,`name`,{value:t,configurable:!0}):e.name=t),h&&n&&r(n,`arity`)&&e.length!==n.arity&&d(e,`length`,{value:n.arity});try{n&&r(n,`constructor`)&&n.constructor?i&&d(e,`prototype`,{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=c(e);return r(o,`source`)||(o.source=m(g,typeof t==`string`?t:``)),e};return Function.prototype.toString=_(function(){return n(this)&&l(this).source||o(this)},`toString`),Gr.exports}var fi,pi;function mi(){if(pi)return fi;pi=1;var e=fn(),t=Vr(),n=di(),r=tr();return fi=function(i,a,o,s){s||(s={});var c=s.enumerable,l=s.name===void 0?a:s.name;if(e(o)&&n(o,l,s),s.global)c?i[a]=o:r(a,o);else{try{s.unsafe?i[a]&&(c=!0):delete i[a]}catch(e){}c?i[a]=o:t.f(i,a,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i},fi}var hi={},gi,_i;function vi(){if(_i)return gi;_i=1;var e=Math.ceil,t=Math.floor;return gi=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},gi}var yi,bi;function xi(){if(bi)return yi;bi=1;var e=vi();return yi=function(t){var n=+t;return n!==n||n===0?0:e(n)},yi}var Si,Ci;function wi(){if(Ci)return Si;Ci=1;var e=xi(),t=Math.max,n=Math.min;return Si=function(r,i){var a=e(r);return a<0?t(a+i,0):n(a,i)},Si}var Ti,Ei;function Di(){if(Ei)return Ti;Ei=1;var e=xi(),t=Math.min;return Ti=function(n){var r=e(n);return r>0?t(r,9007199254740991):0},Ti}var Oi,ki;function Ai(){if(ki)return Oi;ki=1;var e=Di();return Oi=function(t){return e(t.length)},Oi}var ji,Mi;function Ni(){if(Mi)return ji;Mi=1;var e=ln(),t=wi(),n=Ai(),r=function(r){return function(i,a,o){var s=e(i),c=n(s);if(c===0)return!r&&-1;var l=t(o,c),u;if(r&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((r||l in s)&&s[l]===a)return r||l||0;return!r&&-1}};return ji={includes:r(!0),indexOf:r(!1)},ji}var Pi,Fi;function Ii(){if(Fi)return Pi;Fi=1;var e=U(),t=fr(),n=ln(),r=Ni().indexOf,i=oi(),a=e([].push);return Pi=function(e,o){var s=n(e),c=0,l=[],u;for(u in s)!t(i,u)&&t(s,u)&&a(l,u);for(;o.length>c;)t(s,u=o[c++])&&(~r(l,u)||a(l,u));return l},Pi}var Li,Ri;function zi(){return Ri||(Ri=1,Li=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]),Li}var Bi;function Vi(){if(Bi)return hi;Bi=1;var e=Ii(),t=zi().concat(`length`,`prototype`);return hi.f=Object.getOwnPropertyNames||function(n){return e(n,t)},hi}var Hi={},Ui;function Wi(){return Ui||(Ui=1,Hi.f=Object.getOwnPropertySymbols),Hi}var Gi,Ki;function qi(){if(Ki)return Gi;Ki=1;var e=vn(),t=U(),n=Vi(),r=Wi(),i=zr(),a=t([].concat);return Gi=e(`Reflect`,`ownKeys`)||function(e){var t=n.f(i(e)),o=r.f;return o?a(t,o(e)):t},Gi}var Ji,Yi;function Xi(){if(Yi)return Ji;Yi=1;var e=fr(),t=qi(),n=Mr(),r=Vr();return Ji=function(i,a,o){for(var s=t(a),c=r.f,l=n.f,u=0;u<s.length;u++){var d=s[u];!e(i,d)&&!(o&&e(o,d))&&c(i,d,l(a,d))}},Ji}var Zi,Qi;function $i(){if(Qi)return Zi;Qi=1;var e=H(),t=fn(),n=/#|\.prototype\./,r=function(n,r){var c=a[i(n)];return c===s?!0:c===o?!1:t(r)?e(r):!!r},i=r.normalize=function(e){return String(e).replace(n,`.`).toLowerCase()},a=r.data={},o=r.NATIVE=`N`,s=r.POLYFILL=`P`;return Zi=r,Zi}var ea,ta;function na(){if(ta)return ea;ta=1;var e=V(),t=Mr().f,n=Wr(),r=mi(),i=tr(),a=Xi(),o=$i();return ea=function(s,c){var l=s.target,u=s.global,d=s.stat,f,p,m,h,g,_;if(p=u?e:d?e[l]||i(l,{}):e[l]&&e[l].prototype,p)for(m in c){if(g=c[m],s.dontCallGetSet?(_=t(p,m),h=_&&_.value):h=p[m],f=o(u?m:l+(d?`.`:`#`)+m,s.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;a(g,h)}(s.sham||h&&h.sham)&&n(g,`sham`,!0),r(p,m,g,s)}},ea}var ra,ia;function aa(){if(ia)return ra;ia=1;var e=It(),t=Function.prototype,n=t.apply,r=t.call;return ra=typeof Reflect==`object`&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),ra}var oa,sa;function ca(){if(sa)return oa;sa=1;var e=U(),t=Hn();return oa=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}},oa}var la,ua;function da(){if(ua)return la;ua=1;var e=hn();return la=function(t){return e(t)||t===null},la}var fa,pa;function ma(){if(pa)return fa;pa=1;var e=da(),t=String,n=TypeError;return fa=function(r){if(e(r))return r;throw new n(`Can't set `+t(r)+` as a prototype`)},fa}var ha,ga;function _a(){if(ga)return ha;ga=1;var e=ca(),t=hn(),n=on(),r=ma();return ha=Object.setPrototypeOf||(`__proto__`in{}?(function(){var i=!1,a={},o;try{o=e(Object.prototype,`__proto__`,`set`),o(a,[]),i=a instanceof Array}catch(e){}return function(e,a){return n(e),r(a),t(e)&&(i?o(e,a):e.__proto__=a),e}})():void 0),ha}var va,ya;function ba(){if(ya)return va;ya=1;var e=Vr().f;return va=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})},va}var xa,Sa;function Ca(){if(Sa)return xa;Sa=1;var e=fn(),t=hn(),n=_a();return xa=function(r,i,a){var o,s;return n&&e(o=i.constructor)&&o!==a&&t(s=o.prototype)&&s!==a.prototype&&n(r,s),r},xa}var wa,Ta;function Ea(){if(Ta)return wa;Ta=1;var e=vr()(`toStringTag`),t={};return t[e]=`z`,wa=String(t)===`[object z]`,wa}var Da,Oa;function ka(){if(Oa)return Da;Oa=1;var e=Ea(),t=fn(),n=Xt(),r=vr()(`toStringTag`),i=Object,a=n((function(){return arguments})())===`Arguments`,o=function(e,t){try{return e[t]}catch(e){}};return Da=e?n:function(e){var s,c,l;return e===void 0?`Undefined`:e===null?`Null`:typeof(c=o(s=i(e),r))==`string`?c:a?n(s):(l=n(s))===`Object`&&t(s.callee)?`Arguments`:l},Da}var Aa,ja;function Ma(){if(ja)return Aa;ja=1;var e=ka(),t=String;return Aa=function(n){if(e(n)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return t(n)},Aa}var Na,Pa;function Fa(){if(Pa)return Na;Pa=1;var e=Ma();return Na=function(t,n){return t===void 0?arguments.length<2?``:n:e(t)},Na}var Ia,La;function Ra(){if(La)return Ia;La=1;var e=hn(),t=Wr();return Ia=function(n,r){e(r)&&`cause`in r&&t(n,`cause`,r.cause)},Ia}var za,Ba;function Va(){if(Ba)return za;Ba=1;var e=U(),t=Error,n=e(``.replace),r=(function(e){return String(new t(e).stack)})(`zxcasd`),i=/\n\s*at [^:]*:[^\n]*/,a=i.test(r);return za=function(e,r){if(a&&typeof e==`string`&&!t.prepareStackTrace)for(;r--;)e=n(e,i,``);return e},za}var Ha,Ua;function Wa(){if(Ua)return Ha;Ua=1;var e=H(),t=Gt();return Ha=!e(function(){var e=Error(`a`);return`stack`in e?(Object.defineProperty(e,"stack",t(1,7)),e.stack!==7):!0}),Ha}var Ga,Ka;function qa(){if(Ka)return Ga;Ka=1;var e=Wr(),t=Va(),n=Wa(),r=Error.captureStackTrace;return Ga=function(i,a,o,s){n&&(r?r(i,a):e(i,`stack`,t(o,s)))},Ga}var Ja,Ya;function Xa(){if(Ya)return Ja;Ya=1;var e=vn(),t=fr(),n=Wr(),r=xn(),i=_a(),a=Xi(),o=ba(),s=Ca(),c=Fa(),l=Ra(),u=qa(),d=Nt(),f=Qn();return Ja=function(p,m,h,g){var _=`stackTraceLimit`,v=g?2:1,y=p.split(`.`),b=y[y.length-1],x=e.apply(null,y);if(x){var S=x.prototype;if(!f&&t(S,`cause`)&&delete S.cause,!h)return x;var C=e(`Error`),w=m(function(e,t){var i=c(g?t:e,void 0),a=g?new x(e):new x;return i!==void 0&&n(a,`message`,i),u(a,w,a.stack,2),this&&r(S,this)&&s(a,this,w),arguments.length>v&&l(a,arguments[v]),a});if(w.prototype=S,b===`Error`?d&&_ in x&&(o(w,x,_),o(w,x,`prepareStackTrace`)):i?i(w,C):a(w,C,{name:!0}),a(w,x),!f)try{S.name!==b&&n(S,`name`,b),S.constructor=w}catch(e){}return w}},Ja}var Za;function Qa(){if(Za)return Tt;Za=1;var e=na(),t=V(),n=aa(),r=Xa(),i=`WebAssembly`,a=t[i],o=Error(`e`,{cause:7}).cause!==7,s=function(t,n){var i={};i[t]=r(t,n,o),e({global:!0,constructor:!0,arity:1,forced:o},i)},c=function(t,n){if(a&&a[t]){var s={};s[t]=r(i+`.`+t,n,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},s)}};return s(`Error`,function(e){return function(t){return n(e,this,arguments)}}),s(`EvalError`,function(e){return function(t){return n(e,this,arguments)}}),s(`RangeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`ReferenceError`,function(e){return function(t){return n(e,this,arguments)}}),s(`SyntaxError`,function(e){return function(t){return n(e,this,arguments)}}),s(`TypeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`URIError`,function(e){return function(t){return n(e,this,arguments)}}),c(`CompileError`,function(e){return function(t){return n(e,this,arguments)}}),c(`LinkError`,function(e){return function(t){return n(e,this,arguments)}}),c(`RuntimeError`,function(e){return function(t){return n(e,this,arguments)}}),Tt}Qa();var $a={},eo,to;function no(){if(to)return eo;to=1;var e=Xt();return eo=Array.isArray||function(t){return e(t)===`Array`},eo}var ro,io;function ao(){if(io)return ro;io=1;var e=Nt(),t=no(),n=TypeError,r=Object.getOwnPropertyDescriptor;return ro=e&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}})()?function(e,i){if(t(e)&&!r(e,`length`).writable)throw new n(`Cannot set read only .length`);return e.length=i}:function(e,t){return e.length=t},ro}var oo,so;function co(){if(so)return oo;so=1;var e=TypeError,t=9007199254740991;return oo=function(n){if(n>t)throw e(`Maximum allowed index exceeded`);return n},oo}var lo;function uo(){if(lo)return $a;lo=1;var e=na(),t=lr(),n=Ai(),r=ao(),i=co();return e({target:`Array`,proto:!0,arity:1,forced:H()(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var a=t(this),o=n(a),s=arguments.length;i(o+s);for(var c=0;c<s;c++)a[o]=arguments[c],o++;return r(a,o),o}}),$a}uo();var fo={},po,mo;function ho(){if(mo)return po;mo=1;var e=xn(),t=TypeError;return po=function(n,r){if(e(r,n))return n;throw new t(`Incorrect invocation`)},po}var go,_o;function vo(){return _o?go:(_o=1,go=!H()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),go)}var yo,bo;function xo(){if(bo)return yo;bo=1;var e=fr(),t=fn(),n=lr(),r=ri(),i=vo(),a=r(`IE_PROTO`),o=Object,s=o.prototype;return yo=i?o.getPrototypeOf:function(r){var i=n(r);if(e(i,a))return i[a];var c=i.constructor;return t(c)&&i instanceof c?c.prototype:i instanceof o?s:null},yo}var So,Co;function wo(){if(Co)return So;Co=1;var e=di(),t=Vr();return So=function(n,r,i){return i.get&&e(i.get,r,{getter:!0}),i.set&&e(i.set,r,{setter:!0}),t.f(n,r,i)},So}var To,Eo;function Do(){if(Eo)return To;Eo=1;var e=Nt(),t=Vr(),n=Gt();return To=function(r,i,a){e?t.f(r,i,n(0,a)):r[i]=a},To}var Oo={},ko,Ao;function jo(){if(Ao)return ko;Ao=1;var e=Ii(),t=zi();return ko=Object.keys||function(n){return e(n,t)},ko}var Mo;function No(){if(Mo)return Oo;Mo=1;var e=Nt(),t=Ir(),n=Vr(),r=zr(),i=ln(),a=jo();return Oo.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var o=i(t),s=a(t),c=s.length,l=0,u;c>l;)n.f(e,u=s[l++],o[u]);return e},Oo}var Po,Fo;function Io(){return Fo?Po:(Fo=1,Po=vn()(`document`,`documentElement`),Po)}var Lo,Ro;function zo(){if(Ro)return Lo;Ro=1;var e=zr(),t=No(),n=zi(),r=oi(),i=Io(),a=Dr(),o=ri(),s=`>`,c=`<`,l=`prototype`,u=`script`,d=o(`IE_PROTO`),f=function(){},p=function(e){return c+u+s+e+c+`/`+u+s},m=function(e){e.write(p(``)),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){var e=a(`iframe`),t=`java`+u+`:`,n;return e.style.display=`none`,i.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(p(`document.F=Object`)),n.close(),n.F},g,_=function(){try{g=new ActiveXObject(`htmlfile`)}catch(e){}_=typeof document<`u`?document.domain&&g?m(g):h():m(g);for(var e=n.length;e--;)delete _[l][n[e]];return _()};return r[d]=!0,Lo=Object.create||function(n,r){var i;return n===null?i=_():(f[l]=e(n),i=new f,f[l]=null,i[d]=n),r===void 0?i:t.f(i,r)},Lo}var Bo,Vo;function Ho(){if(Vo)return Bo;Vo=1;var e=H(),t=fn(),n=hn(),r=zo(),i=xo(),a=mi(),o=vr(),s=Qn(),c=o(`iterator`),l=!1,u,d,f;return[].keys&&(f=[].keys(),`next`in f?(d=i(i(f)),d!==Object.prototype&&(u=d)):l=!0),!n(u)||e(function(){var e={};return u[c].call(e)!==e})?u={}:s&&(u=r(u)),t(u[c])||a(u,c,function(){return this}),Bo={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:l},Bo}var Uo;function Wo(){if(Uo)return fo;Uo=1;var e=na(),t=V(),n=ho(),r=zr(),i=fn(),a=xo(),o=wo(),s=Do(),c=H(),l=fr(),u=vr(),d=Ho().IteratorPrototype,f=Nt(),p=Qn(),m=`constructor`,h=`Iterator`,g=u(`toStringTag`),_=TypeError,v=t[h],y=p||!i(v)||v.prototype!==d||!c(function(){v({})}),b=function(){if(n(this,d),a(this)===d)throw new _(`Abstract class Iterator not directly constructable`)},x=function(e,t){f?o(d,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===d)throw new _(`You can't redefine this property`);l(this,e)?this[e]=t:s(this,e,t)}}):d[e]=t};return l(d,g)||x(g,h),(y||!l(d,m)||d[m]===Object)&&x(m,b),b.prototype=d,e({global:!0,constructor:!0,forced:y},{Iterator:b}),fo}Wo();var Go={},Ko,qo;function Jo(){return qo||(qo=1,Ko=function(e){return{iterator:e,next:e.next,done:!1}}),Ko}var Yo,Xo;function Zo(){if(Xo)return Yo;Xo=1;var e=mi();return Yo=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t},Yo}var Qo,$o;function es(){return $o||($o=1,Qo=function(e,t){return{value:e,done:t}}),Qo}var ts,ns;function rs(){if(ns)return ts;ns=1;var e=zt(),t=zr(),n=Gn();return ts=function(r,i,a){var o,s;t(r);try{if(o=n(r,`return`),!o){if(i===`throw`)throw a;return a}o=e(o,r)}catch(e){s=!0,o=e}if(i===`throw`)throw a;if(s)throw o;return t(o),a},ts}var is,as;function os(){if(as)return is;as=1;var e=rs();return is=function(t,n,r){for(var i=t.length-1;i>=0;i--)if(t[i]!==void 0)try{r=e(t[i].iterator,n,r)}catch(e){n=`throw`,r=e}if(n===`throw`)throw r;return r},is}var ss,cs;function ls(){if(cs)return ss;cs=1;var e=zt(),t=zo(),n=Wr(),r=Zo(),i=vr(),a=li(),o=Gn(),s=Ho().IteratorPrototype,c=es(),l=rs(),u=os(),d=i(`toStringTag`),f=`IteratorHelper`,p=`WrapForValidIterator`,m=`normal`,h=`throw`,g=a.set,_=function(n){var i=a.getterFor(n?p:f);return r(t(s),{next:function(){var e=i(this);if(n)return e.nextHandler();if(e.done)return c(void 0,!0);try{var t=e.nextHandler();return e.returnHandlerResult?t:c(t,e.done)}catch(t){throw e.done=!0,t}},return:function(){var t=i(this),r=t.iterator;if(t.done=!0,n){var a=o(r,`return`);return a?e(a,r):c(void 0,!0)}if(t.inner)try{l(t.inner.iterator,m)}catch(e){return l(r,h,e)}if(t.openIters)try{u(t.openIters,m)}catch(e){return l(r,h,e)}return r&&l(r,m),c(void 0,!0)}})},v=_(!0),y=_(!1);return n(y,d,`Iterator Helper`),ss=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?p:f,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,g(this,i)};return r.prototype=t?v:y,r},ss}var us,ds;function fs(){if(ds)return us;ds=1;var e=zr(),t=rs();return us=function(n,r,i,a){try{return a?r(e(i)[0],i[1]):r(i)}catch(e){t(n,`throw`,e)}},us}var ps,ms;function hs(){return ms||(ms=1,ps=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}),ps}var gs,_s;function vs(){if(_s)return gs;_s=1;var e=V();return gs=function(t,n){var r=e.Iterator,i=r&&r.prototype,a=i&&i[t],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof n||(o=!1)}if(!o)return a},gs}var ys;function bs(){if(ys)return Go;ys=1;var e=na(),t=zt(),n=Hn(),r=zr(),i=Jo(),a=ls(),o=fs(),s=Qn(),c=rs(),l=hs(),u=vs(),d=!s&&!l(`filter`,function(){}),f=!s&&!d&&u(`filter`,TypeError),p=s||d||f,m=a(function(){for(var e=this.iterator,n=this.predicate,i=this.next,a,s,c;;){if(a=r(t(i,e)),s=this.done=!!a.done,s)return;if(c=a.value,o(e,n,[c,this.counter++],!0))return c}});return e({target:`Iterator`,proto:!0,real:!0,forced:p},{filter:function(e){r(this);try{n(e)}catch(e){c(this,`throw`,e)}return f?t(f,this,e):new m(i(this),{predicate:e})}}),Go}bs();var xs={},Ss,Cs;function ws(){if(Cs)return Ss;Cs=1;var e=Xt(),t=U();return Ss=function(n){if(e(n)===`Function`)return t(n)},Ss}var Ts,Es;function Ds(){if(Es)return Ts;Es=1;var e=ws(),t=Hn(),n=It(),r=e(e.bind);return Ts=function(e,i){return t(e),i===void 0?e:n?r(e,i):function(){return e.apply(i,arguments)}},Ts}var Os,ks;function As(){return ks||(ks=1,Os={}),Os}var js,Ms;function Ns(){if(Ms)return js;Ms=1;var e=vr(),t=As(),n=e(`iterator`),r=Array.prototype;return js=function(e){return e!==void 0&&(t.Array===e||r[n]===e)},js}var Ps,Fs;function Is(){if(Fs)return Ps;Fs=1;var e=ka(),t=Gn(),n=nn(),r=As(),i=vr()(`iterator`);return Ps=function(a){if(!n(a))return t(a,i)||t(a,`@@iterator`)||r[e(a)]},Ps}var Ls,Rs;function zs(){if(Rs)return Ls;Rs=1;var e=zt(),t=Hn(),n=zr(),r=zn(),i=Is(),a=TypeError;return Ls=function(o,s){var c=arguments.length<2?i(o):s;if(t(c))return n(e(c,o));throw new a(r(o)+` is not iterable`)},Ls}var Bs,Vs;function Hs(){if(Vs)return Bs;Vs=1;var e=Ds(),t=zt(),n=zr(),r=zn(),i=Ns(),a=Ai(),o=xn(),s=zs(),c=Is(),l=rs(),u=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;return Bs=function(p,m,h){var g=h&&h.that,_=!!(h&&h.AS_ENTRIES),v=!!(h&&h.IS_RECORD),y=!!(h&&h.IS_ITERATOR),b=!!(h&&h.INTERRUPTED),x=e(m,g),S,C,w,T,E,D,O,k=function(e){return S&&l(S,`normal`),new d(!0,e)},A=function(e){return _?(n(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=p.iterator;else if(y)S=p;else{if(C=c(p),!C)throw new u(r(p)+` is not iterable`);if(i(C)){for(w=0,T=a(p);T>w;w++)if(E=A(p[w]),E&&o(f,E))return E;return new d(!1)}S=s(p,C)}for(D=v?p.next:S.next;!(O=t(D,S)).done;){try{E=A(O.value)}catch(e){l(S,`throw`,e)}if(typeof E==`object`&&E&&o(f,E))return E}return new d(!1)},Bs}var Us;function Ws(){if(Us)return xs;Us=1;var e=na(),t=zt(),n=Hs(),r=Hn(),i=zr(),a=Jo(),o=rs(),s=vs()(`forEach`,TypeError);return e({target:`Iterator`,proto:!0,real:!0,forced:s},{forEach:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;n(c,function(t){e(t,l++)},{IS_RECORD:!0})}}),xs}Ws();var Gs={},Ks,qs;function Js(){if(qs)return Ks;qs=1;var e=hn(),t=li().get;return Ks=function(n){if(!e(n))return!1;var r=t(n);return!!r&&r.type===`RawJSON`},Ks}var Ys,Xs;function Zs(){return Xs?Ys:(Xs=1,Ys=U()([].slice),Ys)}var Qs,$s;function ec(){if($s)return Qs;$s=1;var e=U(),t=fr(),n=SyntaxError,r=parseInt,i=String.fromCharCode,a=e(``.charAt),o=e(``.slice),s=e(/./.exec),c={'\\"':`"`,"\\\\":`\\`,"\\/":`/`,"\\b":`\b`,"\\f":`\f`,"\\n":`
2
+ \f\r]`,ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ae=/-->/g,oe=/>/g,se=RegExp(`>|${re}(?:([^\\s"'>=/]+)(${re}*=${re}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),ce=/'/g,le=/"/g,ue=/^(?:script|style|textarea|title)$/i,de=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),fe=Symbol.for(`lit-noChange`),B=Symbol.for(`lit-nothing`),pe=new WeakMap,me=R.createTreeWalker(R,129);function he(e,t){if(!z(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return N===void 0?t:N.createHTML(t)}var ge=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=ie;for(let t=0;t<n;t++){var s;let n=e[t],c,l,u=-1,d=0;for(;d<n.length&&(o.lastIndex=d,l=o.exec(n),l!==null);)d=o.lastIndex,o===ie?l[1]===`!--`?o=ae:l[1]===void 0?l[2]===void 0?l[3]!==void 0&&(o=se):(ue.test(l[2])&&(i=RegExp(`</`+l[2],`g`)),o=se):o=oe:o===se?l[0]===`>`?(o=(s=i)==null?ie:s,u=-1):l[1]===void 0?u=-2:(u=o.lastIndex-l[2].length,c=l[1],o=l[3]===void 0?se:l[3]===`"`?le:ce):o===le||o===ce?o=se:o===ae||o===oe?o=ie:(o=se,i=void 0);let f=o===se&&e[t+1].startsWith(`/>`)?` `:``;a+=o===ie?n+L:u>=0?(r.push(c),n.slice(0,u)+P+n.slice(u)+F+f):n+F+(u===-2?t:f)}return[he(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},_e=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=ge(t,n);if(this.el=e.createElement(l,r),me.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=me.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(P)){let t=u[o++],n=i.getAttribute(e).split(F),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Se:r[1]===`?`?Ce:r[1]===`@`?we:xe}),i.removeAttribute(e)}else e.startsWith(F)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(ue.test(i.tagName)){let e=i.textContent.split(F),t=e.length-1;if(t>0){i.textContent=M?M.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],ee()),me.nextNode(),c.push({type:2,index:++a});i.append(e[t],ee())}}}else if(i.nodeType===8)if(i.data===I)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(F,e+1))!==-1;)c.push({type:7,index:a}),e+=F.length-1}a++}}static createElement(e,t){let n=R.createElement(`template`);return n.innerHTML=e,n}};function ve(e,t,n=e,r){var i,a,o;if(t===fe)return t;let s=r===void 0?n._$Cl:(i=n._$Co)==null?void 0:i[r],c=te(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==c&&(s==null||(a=s._$AO)==null||a.call(s,!1),c===void 0?s=void 0:(s=new c(e),s._$AT(e,n,r)),r===void 0?n._$Cl=s:((o=n._$Co)==null?n._$Co=[]:o)[r]=s),s!==void 0&&(t=ve(e,s._$AS(e,t.values),s,r)),t}var ye=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;let{el:{content:n},parts:r}=this._$AD,i=((t=e==null?void 0:e.creationScope)==null?R:t).importNode(n,!0);me.currentNode=i;let a=me.nextNode(),o=0,s=0,c=r[0];for(;c!==void 0;){if(o===c.index){let t;c.type===2?t=new be(a,a.nextSibling,this,e):c.type===1?t=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(t=new Te(a,this,e)),this._$AV.push(t),c=r[++s]}o!==(c==null?void 0:c.index)&&(a=me.nextNode(),o++)}return me.currentNode=R,i}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},be=class e{get _$AU(){var e,t;return(e=(t=this._$AM)==null?void 0:t._$AU)==null?this._$Cv:e}constructor(e,t,n,r){var i;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=(i=r==null?void 0:r.isConnected)==null?!0:i}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ve(this,e,t),te(e)?e===B||e==null||e===``?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==fe&&this._(e):e._$litType$===void 0?e.nodeType===void 0?ne(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==B&&te(this._$AH)?this._$AA.nextSibling.data=e:this.T(R.createTextNode(e)),this._$AH=e}$(e){var t;let{values:n,_$litType$:r}=e,i=typeof r==`number`?this._$AC(e):(r.el===void 0&&(r.el=_e.createElement(he(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)==null?void 0:t._$AD)===i)this._$AH.p(n);else{let e=new ye(i,this),t=e.u(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=pe.get(e.strings);return t===void 0&&pe.set(e.strings,t=new _e(e)),t}k(t){z(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(ee()),this.O(ee()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)==null||n.call(this,!1,!0,t);e!==this._$AB;){let t=j(e).nextSibling;j(e).remove(),e=t}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}},xe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=B}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=ve(this,e,t,0),a=!te(e)||e!==this._$AH&&e!==fe,a&&(this._$AH=e);else{var o;let r=e,s,c;for(e=i[0],s=0;s<i.length-1;s++)c=ve(this,r[n+s],t,s),c===fe&&(c=this._$AH[s]),a||(a=!te(c)||c!==this._$AH[s]),c===B?e=B:e!==B&&(e+=((o=c)==null?``:o)+i[s+1]),this._$AH[s]=c}a&&!r&&this.j(e)}j(e){e===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e==null?``:e)}},Se=class extends xe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===B?void 0:e}},Ce=class extends xe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}},we=class extends xe{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){var n;if((e=(n=ve(this,e,t,0))==null?B:n)===fe)return;let r=this._$AH,i=e===B&&r!==B||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==B&&(r===B||i);i&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH==`function`?this._$AH.call((t=(n=this.options)==null?void 0:n.host)==null?this.element:t,e):this._$AH.handleEvent(e)}},Te=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ve(this,e)}},Ee={M:P,P:F,A:I,C:1,L:ge,R:ye,D:ne,V:ve,I:be,H:xe,N:Ce,U:we,B:Se,F:Te},De=A.litHtmlPolyfillSupport;De==null||De(_e,be),((k=A.litHtmlVersions)==null?A.litHtmlVersions=[]:k).push(`3.3.3`);var Oe=(e,t,n)=>{var r;let i=(r=n==null?void 0:n.renderBefore)==null?t:r,a=i._$litPart$;if(a===void 0){var o;let e=(o=n==null?void 0:n.renderBefore)==null?null:o;i._$litPart$=a=new be(t.insertBefore(ee(),e),e,void 0,n==null?{}:n)}return a._$AI(e),a},ke,Ae,je=globalThis,Me=class extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;let t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Oe(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return fe}};Me._$litElement$=!0,Me.finalized=!0,(ke=je.litElementHydrateSupport)==null||ke.call(je,{LitElement:Me});var Ne=je.litElementPolyfillSupport;Ne==null||Ne({LitElement:Me}),((Ae=je.litElementVersions)==null?je.litElementVersions=[]:Ae).push(`4.2.2`);var Pe={attribute:!0,type:String,converter:T,reflect:!1,hasChanged:E},Fe=(e=Pe,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function Ie(e){return(t,n)=>typeof n==`object`?Fe(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}var Le=e=>(...t)=>({_$litDirective$:e,values:t}),Re=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},{I:ze}=Ee,Be={},Ve=(e,t=Be)=>e._$AH=t,He=Le(class extends Re{constructor(){super(...arguments),this.key=B}render(e,t){return this.key=e,t}update(e,[t,n]){return t!==this.key&&(Ve(e),this.key=t),n}});function Ue(e){"@babel/helpers - typeof";return Ue=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ue(e)}function We(e,t){if(Ue(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ue(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ge(e){var t=We(e,`string`);return Ue(t)==`symbol`?t:t+``}function Ke(e,t,n){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qe(Object(n),!0).forEach(function(t){Ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ye=class e{constructor({errorCode:e,errorCodeKey:t,message:n,underlyingError:r,underlyingBaseError:i,domain:a,module:o,errorEnumName:s,shortDomainCode:c}){this.errorCode=e,this.errorCodeKey=t,this.message=n,this.underlyingError=r,this.underlyingBaseError=i,this.module=o,this.domain=a,this.errorEnumName=s,this.shortDomainCode=c}static getErrorKey(e,t){let n=Object.keys(t).find(n=>t[n]===e);if(!n)throw Error(`Invalid errorCode: ${e} in enum`);return n}get lastUnderlyingError(){let t=this.underlyingBaseError;for(;(t==null?void 0:t.underlyingBaseError)instanceof e;)t=t.underlyingBaseError;return t==null?void 0:t.underlyingError}toObject(){let t={errorCode:this.errorCode,errorCodeKey:this.errorCodeKey,errorEnumName:this.errorEnumName,message:this.message,module:this.module,underlyingError:this.underlyingError,lastUnderlineError:this.lastUnderlyingError};return this.underlyingBaseError&&this.underlyingBaseError instanceof e&&(t.underlyingBaseError=this.underlyingBaseError.toObject()),t}get shortChain(){let t=`${this.shortDomainCode}:${this.errorCode}${this.underlyingError?`-`+this.underlyingError:``}`;return this.underlyingBaseError instanceof e&&(t+=`-${this.underlyingBaseError.shortChain}`),t}get fullChain(){let t=`${this.module}.${this.domain}:${this.errorCodeKey}${this.underlyingError?`-`+this.underlyingError:``}`;return this.underlyingBaseError instanceof e&&(t+=`-${this.underlyingBaseError.fullChain}`),t}};function Xe(e,t){if(t.displayName?console.log(`Register module: ${t.displayName}`):console.error(`Missed "displayName" when register module`),t.getSupportedTemplates&&typeof t.getSupportedTemplates==`function`){let e=t.getSupportedTemplates();console.log(`${t==null?void 0:t.displayName} supported templates: ${e.join(`, `)}`)}else console.error(`Missed "getSupportedTemplates" method when register module`);if(t.initialize&&typeof t.initialize==`function`||console.error(`${t==null?void 0:t.displayName} "initialize" method was not implemented`),t.deinitialize&&typeof t.deinitialize==`function`||console.error(`${t==null?void 0:t.displayName} "deinitialize" method was not implemented`),t.isReady&&typeof t.isReady==`function`||console.error(`${t==null?void 0:t.displayName} "isReady" method was not implemented`),t.getIdentifier&&typeof t.getIdentifier==`function`){let e=t.getIdentifier();console.log(`Module id: ${e}`)}else console.error(`Missed "getIdentifier" when register module`);customElements.get(t.getIdentifier())?console.log(`Module ${e} has already registered`):customElements.define(e,t),console.log(`-------`)}function Ze(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}var Qe={FORM:`form`,DATA:`data`},$e=(e,t)=>e.base64&&!(t!=null&&t.base64.has(e.base64))?e.base64:e.imageURL&&!(t!=null&&t.imageURL.has(e.imageURL))?e.imageURL:``,et=(e,t,n)=>{var r;if(!t)return;let i=(r=e==null?void 0:e.idvAsset)==null?null:r;for(;i;){let e=$e(i,n);if(e)return e;i=i.failurePolicy===`placeholderImage`&&i.placeholderImage||null}},tt={EMPTY:-1,ERROR:0,OK:1,TIMEOUT:2},nt=[`LANDSCAPE_MODE_RESTRICTED`,`TIMEOUT_ERROR`,`CHANGE_CAMERA`,`DEVICE_ROTATE`,`APP_INACTIVE`],rt=function(e){return e.LIVENESS=`LIVENESS`,e}({}),it=`idv-face`,at=function(e){return e[e.NO_INITIALIZED=0]=`NO_INITIALIZED`,e[e.UNKNOWN_STEP=1]=`UNKNOWN_STEP`,e[e.LIVENESS_ERROR=2]=`LIVENESS_ERROR`,e[e.IMAGE_LOADING_FAILED=3]=`IMAGE_LOADING_FAILED`,e}({}),ot=function(e){return e[e.CONFIGURATION_FAILED=0]=`CONFIGURATION_FAILED`,e[e.INTERNAL_ERROR=1]=`INTERNAL_ERROR`,e[e.PRESENTER_UNAVAILABLE=2]=`PRESENTER_UNAVAILABLE`,e}({}),st,ct,lt=class e extends Ye{constructor({errorCode:t,message:n,underlyingError:r,underlyingBaseError:i}){let a=Ye.getErrorKey(t,at);super({errorCode:t,errorCodeKey:a,errorEnumName:e.ERROR_ENUM_NAME,module:e.MODULE,message:n,underlyingError:r,underlyingBaseError:i,domain:e.ERROR_ENUM_NAME,shortDomainCode:e.SHORT_CODE})}};st=lt,st.MODULE=it,st.ERROR_ENUM_NAME=`FaceModuleError`,st.SHORT_CODE=`FM`;var ut=class e extends Ye{constructor({errorCode:t,message:n,underlyingError:r,underlyingBaseError:i}){let a=Ye.getErrorKey(t,ot);super({errorCode:t,errorCodeKey:a,errorEnumName:e.ERROR_ENUM_NAME,module:e.MODULE,message:n,underlyingError:r,underlyingBaseError:i,domain:e.ERROR_ENUM_NAME,shortDomainCode:e.SHORT_CODE})}};ct=ut,ct.MODULE=it,ct.ERROR_ENUM_NAME=`LivenessError`,ct.SHORT_CODE=`FML`;var dt=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})};function ft(e){return Ie(Je(Je({},e),{},{state:!0,attribute:!1}))}var pt=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function mt(e,t){return(n,r,i)=>{let a=t=>{var n,r;return(n=(r=t.renderRoot)==null?void 0:r.querySelector(e))==null?null:n};if(t){let{get:e,set:t}=typeof r==`object`?n:i==null?(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})():i;return pt(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return pt(n,r,{get(){return a(this)}})}}var ht=Object.defineProperty,gt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,yt=(e,t,n)=>t in e?ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bt=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&yt(e,n,t[n]);if(gt)for(var n of gt(t))vt.call(t,n)&&yt(e,n,t[n]);return e},xt=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),St=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function wt(e){if(Object.prototype.hasOwnProperty.call(e,`__esModule`))return e;var t=e.default;if(typeof t==`function`){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Tt={},Et,Dt;function V(){if(Dt)return Et;Dt=1;var e=function(e){return e&&e.Math===Math&&e};return Et=e(typeof globalThis==`object`&&globalThis)||e(typeof window==`object`&&window)||e(typeof self==`object`&&self)||e(typeof St==`object`&&St)||e(typeof Et==`object`&&Et)||(function(){return this})()||Function(`return this`)(),Et}var Ot={},kt,At;function H(){return At||(At=1,kt=function(e){try{return!!e()}catch(e){return!0}}),kt}var jt,Mt;function Nt(){return Mt?jt:(Mt=1,jt=!H()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),jt)}var Pt,Ft;function It(){return Ft?Pt:(Ft=1,Pt=!H()(function(){var e=(function(){}).bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)}),Pt)}var Lt,Rt;function zt(){if(Rt)return Lt;Rt=1;var e=It(),t=Function.prototype.call;return Lt=e?t.bind(t):function(){return t.apply(t,arguments)},Lt}var Bt={},Vt;function Ht(){if(Vt)return Bt;Vt=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor;return Bt.f=t&&!e.call({1:2},1)?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Bt}var Ut,Wt;function Gt(){return Wt||(Wt=1,Ut=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Ut}var Kt,qt;function U(){if(qt)return Kt;qt=1;var e=It(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return Kt=e?r:function(e){return function(){return n.apply(e,arguments)}},Kt}var Jt,Yt;function Xt(){if(Yt)return Jt;Yt=1;var e=U(),t=e({}.toString),n=e(``.slice);return Jt=function(e){return n(t(e),8,-1)},Jt}var Zt,Qt;function $t(){if(Qt)return Zt;Qt=1;var e=U(),t=H(),n=Xt(),r=Object,i=e(``.split);return Zt=t(function(){return!r(`z`).propertyIsEnumerable(0)})?function(e){return n(e)===`String`?i(e,``):r(e)}:r,Zt}var en,tn;function nn(){return tn||(tn=1,en=function(e){return e==null}),en}var rn,an;function on(){if(an)return rn;an=1;var e=nn(),t=TypeError;return rn=function(n){if(e(n))throw new t(`Can't call method on `+n);return n},rn}var sn,cn;function ln(){if(cn)return sn;cn=1;var e=$t(),t=on();return sn=function(n){return e(t(n))},sn}var un,dn;function fn(){if(dn)return un;dn=1;var e=typeof document==`object`&&document.all;return un=e===void 0&&e!==void 0?function(t){return typeof t==`function`||t===e}:function(e){return typeof e==`function`},un}var pn,mn;function hn(){if(mn)return pn;mn=1;var e=fn();return pn=function(t){return typeof t==`object`?t!==null:e(t)},pn}var gn,_n;function vn(){if(_n)return gn;_n=1;var e=V(),t=fn(),n=function(e){return t(e)?e:void 0};return gn=function(t,r){return arguments.length<2?n(e[t]):e[t]&&e[t][r]},gn}var yn,bn;function xn(){return bn?yn:(bn=1,yn=U()({}.isPrototypeOf),yn)}var Sn,Cn;function wn(){if(Cn)return Sn;Cn=1;var e=V().navigator,t=e&&e.userAgent;return Sn=t?String(t):``,Sn}var Tn,En;function Dn(){if(En)return Tn;En=1;var e=V(),t=wn(),n=e.process,r=e.Deno,i=n&&n.versions||r&&r.version,a=i&&i.v8,o,s;return a&&(o=a.split(`.`),s=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!s&&t&&(o=t.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=t.match(/Chrome\/(\d+)/),o&&(s=+o[1]))),Tn=s,Tn}var On,kn;function An(){if(kn)return On;kn=1;var e=Dn(),t=H(),n=V().String;return On=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol(`symbol detection`);return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),On}var jn,Mn;function Nn(){return Mn?jn:(Mn=1,jn=An()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,jn)}var Pn,Fn;function In(){if(Fn)return Pn;Fn=1;var e=vn(),t=fn(),n=xn(),r=Nn(),i=Object;return Pn=r?function(e){return typeof e==`symbol`}:function(r){var a=e(`Symbol`);return t(a)&&n(a.prototype,i(r))},Pn}var Ln,Rn;function zn(){if(Rn)return Ln;Rn=1;var e=String;return Ln=function(t){try{return e(t)}catch(e){return`Object`}},Ln}var Bn,Vn;function Hn(){if(Vn)return Bn;Vn=1;var e=fn(),t=zn(),n=TypeError;return Bn=function(r){if(e(r))return r;throw new n(t(r)+` is not a function`)},Bn}var Un,Wn;function Gn(){if(Wn)return Un;Wn=1;var e=Hn(),t=nn();return Un=function(n,r){var i=n[r];return t(i)?void 0:e(i)},Un}var Kn,qn;function Jn(){if(qn)return Kn;qn=1;var e=zt(),t=fn(),n=hn(),r=TypeError;return Kn=function(i,a){var o,s;if(a===`string`&&t(o=i.toString)&&!n(s=e(o,i))||t(o=i.valueOf)&&!n(s=e(o,i))||a!==`string`&&t(o=i.toString)&&!n(s=e(o,i)))return s;throw new r(`Can't convert object to primitive value`)},Kn}var Yn={exports:{}},Xn,Zn;function Qn(){return Zn||(Zn=1,Xn=!1),Xn}var $n,er;function tr(){if(er)return $n;er=1;var e=V(),t=Object.defineProperty;return $n=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r},$n}var nr;function rr(){if(nr)return Yn.exports;nr=1;var e=Qn(),t=V(),n=tr(),r=`__core-js_shared__`,i=Yn.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:`3.48.0`,mode:e?`pure`:`global`,copyright:`© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.`,license:`https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE`,source:`https://github.com/zloirock/core-js`}),Yn.exports}var ir,ar;function or(){if(ar)return ir;ar=1;var e=rr();return ir=function(t,n){return e[t]||(e[t]=n||{})},ir}var sr,cr;function lr(){if(cr)return sr;cr=1;var e=on(),t=Object;return sr=function(n){return t(e(n))},sr}var ur,dr;function fr(){if(dr)return ur;dr=1;var e=U(),t=lr(),n=e({}.hasOwnProperty);return ur=Object.hasOwn||function(e,r){return n(t(e),r)},ur}var pr,mr;function hr(){if(mr)return pr;mr=1;var e=U(),t=0,n=Math.random(),r=e(1.1.toString);return pr=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+r(++t+n,36)},pr}var gr,_r;function vr(){if(_r)return gr;_r=1;var e=V(),t=or(),n=fr(),r=hr(),i=An(),a=Nn(),o=e.Symbol,s=t(`wks`),c=a?o.for||o:o&&o.withoutSetter||r;return gr=function(e){return n(s,e)||(s[e]=i&&n(o,e)?o[e]:c(`Symbol.`+e)),s[e]},gr}var yr,br;function xr(){if(br)return yr;br=1;var e=zt(),t=hn(),n=In(),r=Gn(),i=Jn(),a=vr(),o=TypeError,s=a(`toPrimitive`);return yr=function(a,c){if(!t(a)||n(a))return a;var l=r(a,s),u;if(l){if(c===void 0&&(c=`default`),u=e(l,a,c),!t(u)||n(u))return u;throw new o(`Can't convert object to primitive value`)}return c===void 0&&(c=`number`),i(a,c)},yr}var Sr,Cr;function wr(){if(Cr)return Sr;Cr=1;var e=xr(),t=In();return Sr=function(n){var r=e(n,`string`);return t(r)?r:r+``},Sr}var Tr,Er;function Dr(){if(Er)return Tr;Er=1;var e=V(),t=hn(),n=e.document,r=t(n)&&t(n.createElement);return Tr=function(e){return r?n.createElement(e):{}},Tr}var Or,kr;function Ar(){if(kr)return Or;kr=1;var e=Nt(),t=H(),n=Dr();return Or=!e&&!t(function(){return Object.defineProperty(n(`div`),"a",{get:function(){return 7}}).a!==7}),Or}var jr;function Mr(){if(jr)return Ot;jr=1;var e=Nt(),t=zt(),n=Ht(),r=Gt(),i=ln(),a=wr(),o=fr(),s=Ar(),c=Object.getOwnPropertyDescriptor;return Ot.f=e?c:function(e,l){if(e=i(e),l=a(l),s)try{return c(e,l)}catch(e){}if(o(e,l))return r(!t(n.f,e,l),e[l])},Ot}var Nr={},Pr,Fr;function Ir(){if(Fr)return Pr;Fr=1;var e=Nt(),t=H();return Pr=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Pr}var Lr,Rr;function zr(){if(Rr)return Lr;Rr=1;var e=hn(),t=String,n=TypeError;return Lr=function(r){if(e(r))return r;throw new n(t(r)+` is not an object`)},Lr}var Br;function Vr(){if(Br)return Nr;Br=1;var e=Nt(),t=Ar(),n=Ir(),r=zr(),i=wr(),a=TypeError,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=`enumerable`,l=`configurable`,u=`writable`;return Nr.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),typeof e==`function`&&t===`prototype`&&`value`in n&&u in n&&!n[u]){var a=s(e,t);a&&a[u]&&(e[t]=n.value,n={configurable:l in n?n[l]:a[l],enumerable:c in n?n[c]:a[c],writable:!1})}return o(e,t,n)}:o:function(e,n,s){if(r(e),n=i(n),r(s),t)try{return o(e,n,s)}catch(e){}if(`get`in s||`set`in s)throw new a(`Accessors not supported`);return`value`in s&&(e[n]=s.value),e},Nr}var Hr,Ur;function Wr(){if(Ur)return Hr;Ur=1;var e=Nt(),t=Vr(),n=Gt();return Hr=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e},Hr}var Gr={exports:{}},Kr,qr;function Jr(){if(qr)return Kr;qr=1;var e=Nt(),t=fr(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,`name`);return Kr={EXISTS:i,PROPER:i&&(function(){}).name===`something`,CONFIGURABLE:i&&(!e||e&&r(n,`name`).configurable)},Kr}var Yr,Xr;function Zr(){if(Xr)return Yr;Xr=1;var e=U(),t=fn(),n=rr(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),Yr=n.inspectSource,Yr}var Qr,$r;function ei(){if($r)return Qr;$r=1;var e=V(),t=fn(),n=e.WeakMap;return Qr=t(n)&&/native code/.test(String(n)),Qr}var ti,ni;function ri(){if(ni)return ti;ni=1;var e=or(),t=hr(),n=e(`keys`);return ti=function(e){return n[e]||(n[e]=t(e))},ti}var ii,ai;function oi(){return ai||(ai=1,ii={}),ii}var si,ci;function li(){if(ci)return si;ci=1;var e=ei(),t=V(),n=hn(),r=Wr(),i=fr(),a=rr(),o=ri(),s=oi(),c=`Object already initialized`,l=t.TypeError,u=t.WeakMap,d,f,p,m=function(e){return p(e)?f(e):d(e,{})},h=function(e){return function(t){var r;if(!n(t)||(r=f(t)).type!==e)throw new l(`Incompatible receiver, `+e+` required`);return r}};if(e||a.state){var g=a.state||(a.state=new u);g.get=g.get,g.has=g.has,g.set=g.set,d=function(e,t){if(g.has(e))throw new l(c);return t.facade=e,g.set(e,t),t},f=function(e){return g.get(e)||{}},p=function(e){return g.has(e)}}else{var _=o(`state`);s[_]=!0,d=function(e,t){if(i(e,_))throw new l(c);return t.facade=e,r(e,_,t),t},f=function(e){return i(e,_)?e[_]:{}},p=function(e){return i(e,_)}}return si={set:d,get:f,has:p,enforce:m,getterFor:h},si}var ui;function di(){if(ui)return Gr.exports;ui=1;var e=U(),t=H(),n=fn(),r=fr(),i=Nt(),a=Jr().CONFIGURABLE,o=Zr(),s=li(),c=s.enforce,l=s.get,u=String,d=Object.defineProperty,f=e(``.slice),p=e(``.replace),m=e([].join),h=i&&!t(function(){return d(function(){},`length`,{value:8}).length!==8}),g=String(String).split(`String`),_=Gr.exports=function(e,t,n){f(u(t),0,7)===`Symbol(`&&(t=`[`+p(u(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!r(e,`name`)||a&&e.name!==t)&&(i?d(e,`name`,{value:t,configurable:!0}):e.name=t),h&&n&&r(n,`arity`)&&e.length!==n.arity&&d(e,`length`,{value:n.arity});try{n&&r(n,`constructor`)&&n.constructor?i&&d(e,`prototype`,{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=c(e);return r(o,`source`)||(o.source=m(g,typeof t==`string`?t:``)),e};return Function.prototype.toString=_(function(){return n(this)&&l(this).source||o(this)},`toString`),Gr.exports}var fi,pi;function mi(){if(pi)return fi;pi=1;var e=fn(),t=Vr(),n=di(),r=tr();return fi=function(i,a,o,s){s||(s={});var c=s.enumerable,l=s.name===void 0?a:s.name;if(e(o)&&n(o,l,s),s.global)c?i[a]=o:r(a,o);else{try{s.unsafe?i[a]&&(c=!0):delete i[a]}catch(e){}c?i[a]=o:t.f(i,a,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i},fi}var hi={},gi,_i;function vi(){if(_i)return gi;_i=1;var e=Math.ceil,t=Math.floor;return gi=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},gi}var yi,bi;function xi(){if(bi)return yi;bi=1;var e=vi();return yi=function(t){var n=+t;return n!==n||n===0?0:e(n)},yi}var Si,Ci;function wi(){if(Ci)return Si;Ci=1;var e=xi(),t=Math.max,n=Math.min;return Si=function(r,i){var a=e(r);return a<0?t(a+i,0):n(a,i)},Si}var Ti,Ei;function Di(){if(Ei)return Ti;Ei=1;var e=xi(),t=Math.min;return Ti=function(n){var r=e(n);return r>0?t(r,9007199254740991):0},Ti}var Oi,ki;function Ai(){if(ki)return Oi;ki=1;var e=Di();return Oi=function(t){return e(t.length)},Oi}var ji,Mi;function Ni(){if(Mi)return ji;Mi=1;var e=ln(),t=wi(),n=Ai(),r=function(r){return function(i,a,o){var s=e(i),c=n(s);if(c===0)return!r&&-1;var l=t(o,c),u;if(r&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((r||l in s)&&s[l]===a)return r||l||0;return!r&&-1}};return ji={includes:r(!0),indexOf:r(!1)},ji}var Pi,Fi;function Ii(){if(Fi)return Pi;Fi=1;var e=U(),t=fr(),n=ln(),r=Ni().indexOf,i=oi(),a=e([].push);return Pi=function(e,o){var s=n(e),c=0,l=[],u;for(u in s)!t(i,u)&&t(s,u)&&a(l,u);for(;o.length>c;)t(s,u=o[c++])&&(~r(l,u)||a(l,u));return l},Pi}var Li,Ri;function zi(){return Ri||(Ri=1,Li=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]),Li}var Bi;function Vi(){if(Bi)return hi;Bi=1;var e=Ii(),t=zi().concat(`length`,`prototype`);return hi.f=Object.getOwnPropertyNames||function(n){return e(n,t)},hi}var Hi={},Ui;function Wi(){return Ui||(Ui=1,Hi.f=Object.getOwnPropertySymbols),Hi}var Gi,Ki;function qi(){if(Ki)return Gi;Ki=1;var e=vn(),t=U(),n=Vi(),r=Wi(),i=zr(),a=t([].concat);return Gi=e(`Reflect`,`ownKeys`)||function(e){var t=n.f(i(e)),o=r.f;return o?a(t,o(e)):t},Gi}var Ji,Yi;function Xi(){if(Yi)return Ji;Yi=1;var e=fr(),t=qi(),n=Mr(),r=Vr();return Ji=function(i,a,o){for(var s=t(a),c=r.f,l=n.f,u=0;u<s.length;u++){var d=s[u];!e(i,d)&&!(o&&e(o,d))&&c(i,d,l(a,d))}},Ji}var Zi,Qi;function $i(){if(Qi)return Zi;Qi=1;var e=H(),t=fn(),n=/#|\.prototype\./,r=function(n,r){var c=a[i(n)];return c===s?!0:c===o?!1:t(r)?e(r):!!r},i=r.normalize=function(e){return String(e).replace(n,`.`).toLowerCase()},a=r.data={},o=r.NATIVE=`N`,s=r.POLYFILL=`P`;return Zi=r,Zi}var ea,ta;function na(){if(ta)return ea;ta=1;var e=V(),t=Mr().f,n=Wr(),r=mi(),i=tr(),a=Xi(),o=$i();return ea=function(s,c){var l=s.target,u=s.global,d=s.stat,f,p,m,h,g,_;if(p=u?e:d?e[l]||i(l,{}):e[l]&&e[l].prototype,p)for(m in c){if(g=c[m],s.dontCallGetSet?(_=t(p,m),h=_&&_.value):h=p[m],f=o(u?m:l+(d?`.`:`#`)+m,s.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;a(g,h)}(s.sham||h&&h.sham)&&n(g,`sham`,!0),r(p,m,g,s)}},ea}var ra,ia;function aa(){if(ia)return ra;ia=1;var e=It(),t=Function.prototype,n=t.apply,r=t.call;return ra=typeof Reflect==`object`&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),ra}var oa,sa;function ca(){if(sa)return oa;sa=1;var e=U(),t=Hn();return oa=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}},oa}var la,ua;function da(){if(ua)return la;ua=1;var e=hn();return la=function(t){return e(t)||t===null},la}var fa,pa;function ma(){if(pa)return fa;pa=1;var e=da(),t=String,n=TypeError;return fa=function(r){if(e(r))return r;throw new n(`Can't set `+t(r)+` as a prototype`)},fa}var ha,ga;function _a(){if(ga)return ha;ga=1;var e=ca(),t=hn(),n=on(),r=ma();return ha=Object.setPrototypeOf||(`__proto__`in{}?(function(){var i=!1,a={},o;try{o=e(Object.prototype,`__proto__`,`set`),o(a,[]),i=a instanceof Array}catch(e){}return function(e,a){return n(e),r(a),t(e)&&(i?o(e,a):e.__proto__=a),e}})():void 0),ha}var va,ya;function ba(){if(ya)return va;ya=1;var e=Vr().f;return va=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})},va}var xa,Sa;function Ca(){if(Sa)return xa;Sa=1;var e=fn(),t=hn(),n=_a();return xa=function(r,i,a){var o,s;return n&&e(o=i.constructor)&&o!==a&&t(s=o.prototype)&&s!==a.prototype&&n(r,s),r},xa}var wa,Ta;function Ea(){if(Ta)return wa;Ta=1;var e=vr()(`toStringTag`),t={};return t[e]=`z`,wa=String(t)===`[object z]`,wa}var Da,Oa;function ka(){if(Oa)return Da;Oa=1;var e=Ea(),t=fn(),n=Xt(),r=vr()(`toStringTag`),i=Object,a=n((function(){return arguments})())===`Arguments`,o=function(e,t){try{return e[t]}catch(e){}};return Da=e?n:function(e){var s,c,l;return e===void 0?`Undefined`:e===null?`Null`:typeof(c=o(s=i(e),r))==`string`?c:a?n(s):(l=n(s))===`Object`&&t(s.callee)?`Arguments`:l},Da}var Aa,ja;function Ma(){if(ja)return Aa;ja=1;var e=ka(),t=String;return Aa=function(n){if(e(n)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return t(n)},Aa}var Na,Pa;function Fa(){if(Pa)return Na;Pa=1;var e=Ma();return Na=function(t,n){return t===void 0?arguments.length<2?``:n:e(t)},Na}var Ia,La;function Ra(){if(La)return Ia;La=1;var e=hn(),t=Wr();return Ia=function(n,r){e(r)&&`cause`in r&&t(n,`cause`,r.cause)},Ia}var za,Ba;function Va(){if(Ba)return za;Ba=1;var e=U(),t=Error,n=e(``.replace),r=(function(e){return String(new t(e).stack)})(`zxcasd`),i=/\n\s*at [^:]*:[^\n]*/,a=i.test(r);return za=function(e,r){if(a&&typeof e==`string`&&!t.prepareStackTrace)for(;r--;)e=n(e,i,``);return e},za}var Ha,Ua;function Wa(){if(Ua)return Ha;Ua=1;var e=H(),t=Gt();return Ha=!e(function(){var e=Error(`a`);return`stack`in e?(Object.defineProperty(e,"stack",t(1,7)),e.stack!==7):!0}),Ha}var Ga,Ka;function qa(){if(Ka)return Ga;Ka=1;var e=Wr(),t=Va(),n=Wa(),r=Error.captureStackTrace;return Ga=function(i,a,o,s){n&&(r?r(i,a):e(i,`stack`,t(o,s)))},Ga}var Ja,Ya;function Xa(){if(Ya)return Ja;Ya=1;var e=vn(),t=fr(),n=Wr(),r=xn(),i=_a(),a=Xi(),o=ba(),s=Ca(),c=Fa(),l=Ra(),u=qa(),d=Nt(),f=Qn();return Ja=function(p,m,h,g){var _=`stackTraceLimit`,v=g?2:1,y=p.split(`.`),b=y[y.length-1],x=e.apply(null,y);if(x){var S=x.prototype;if(!f&&t(S,`cause`)&&delete S.cause,!h)return x;var C=e(`Error`),w=m(function(e,t){var i=c(g?t:e,void 0),a=g?new x(e):new x;return i!==void 0&&n(a,`message`,i),u(a,w,a.stack,2),this&&r(S,this)&&s(a,this,w),arguments.length>v&&l(a,arguments[v]),a});if(w.prototype=S,b===`Error`?d&&_ in x&&(o(w,x,_),o(w,x,`prepareStackTrace`)):i?i(w,C):a(w,C,{name:!0}),a(w,x),!f)try{S.name!==b&&n(S,`name`,b),S.constructor=w}catch(e){}return w}},Ja}var Za;function Qa(){if(Za)return Tt;Za=1;var e=na(),t=V(),n=aa(),r=Xa(),i=`WebAssembly`,a=t[i],o=Error(`e`,{cause:7}).cause!==7,s=function(t,n){var i={};i[t]=r(t,n,o),e({global:!0,constructor:!0,arity:1,forced:o},i)},c=function(t,n){if(a&&a[t]){var s={};s[t]=r(i+`.`+t,n,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},s)}};return s(`Error`,function(e){return function(t){return n(e,this,arguments)}}),s(`EvalError`,function(e){return function(t){return n(e,this,arguments)}}),s(`RangeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`ReferenceError`,function(e){return function(t){return n(e,this,arguments)}}),s(`SyntaxError`,function(e){return function(t){return n(e,this,arguments)}}),s(`TypeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`URIError`,function(e){return function(t){return n(e,this,arguments)}}),c(`CompileError`,function(e){return function(t){return n(e,this,arguments)}}),c(`LinkError`,function(e){return function(t){return n(e,this,arguments)}}),c(`RuntimeError`,function(e){return function(t){return n(e,this,arguments)}}),Tt}Qa();var $a={},eo,to;function no(){if(to)return eo;to=1;var e=Xt();return eo=Array.isArray||function(t){return e(t)===`Array`},eo}var ro,io;function ao(){if(io)return ro;io=1;var e=Nt(),t=no(),n=TypeError,r=Object.getOwnPropertyDescriptor;return ro=e&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}})()?function(e,i){if(t(e)&&!r(e,`length`).writable)throw new n(`Cannot set read only .length`);return e.length=i}:function(e,t){return e.length=t},ro}var oo,so;function co(){if(so)return oo;so=1;var e=TypeError,t=9007199254740991;return oo=function(n){if(n>t)throw e(`Maximum allowed index exceeded`);return n},oo}var lo;function uo(){if(lo)return $a;lo=1;var e=na(),t=lr(),n=Ai(),r=ao(),i=co();return e({target:`Array`,proto:!0,arity:1,forced:H()(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var a=t(this),o=n(a),s=arguments.length;i(o+s);for(var c=0;c<s;c++)a[o]=arguments[c],o++;return r(a,o),o}}),$a}uo();var fo={},po,mo;function ho(){if(mo)return po;mo=1;var e=xn(),t=TypeError;return po=function(n,r){if(e(r,n))return n;throw new t(`Incorrect invocation`)},po}var go,_o;function vo(){return _o?go:(_o=1,go=!H()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),go)}var yo,bo;function xo(){if(bo)return yo;bo=1;var e=fr(),t=fn(),n=lr(),r=ri(),i=vo(),a=r(`IE_PROTO`),o=Object,s=o.prototype;return yo=i?o.getPrototypeOf:function(r){var i=n(r);if(e(i,a))return i[a];var c=i.constructor;return t(c)&&i instanceof c?c.prototype:i instanceof o?s:null},yo}var So,Co;function wo(){if(Co)return So;Co=1;var e=di(),t=Vr();return So=function(n,r,i){return i.get&&e(i.get,r,{getter:!0}),i.set&&e(i.set,r,{setter:!0}),t.f(n,r,i)},So}var To,Eo;function Do(){if(Eo)return To;Eo=1;var e=Nt(),t=Vr(),n=Gt();return To=function(r,i,a){e?t.f(r,i,n(0,a)):r[i]=a},To}var Oo={},ko,Ao;function jo(){if(Ao)return ko;Ao=1;var e=Ii(),t=zi();return ko=Object.keys||function(n){return e(n,t)},ko}var Mo;function No(){if(Mo)return Oo;Mo=1;var e=Nt(),t=Ir(),n=Vr(),r=zr(),i=ln(),a=jo();return Oo.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var o=i(t),s=a(t),c=s.length,l=0,u;c>l;)n.f(e,u=s[l++],o[u]);return e},Oo}var Po,Fo;function Io(){return Fo?Po:(Fo=1,Po=vn()(`document`,`documentElement`),Po)}var Lo,Ro;function zo(){if(Ro)return Lo;Ro=1;var e=zr(),t=No(),n=zi(),r=oi(),i=Io(),a=Dr(),o=ri(),s=`>`,c=`<`,l=`prototype`,u=`script`,d=o(`IE_PROTO`),f=function(){},p=function(e){return c+u+s+e+c+`/`+u+s},m=function(e){e.write(p(``)),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){var e=a(`iframe`),t=`java`+u+`:`,n;return e.style.display=`none`,i.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(p(`document.F=Object`)),n.close(),n.F},g,_=function(){try{g=new ActiveXObject(`htmlfile`)}catch(e){}_=typeof document<`u`?document.domain&&g?m(g):h():m(g);for(var e=n.length;e--;)delete _[l][n[e]];return _()};return r[d]=!0,Lo=Object.create||function(n,r){var i;return n===null?i=_():(f[l]=e(n),i=new f,f[l]=null,i[d]=n),r===void 0?i:t.f(i,r)},Lo}var Bo,Vo;function Ho(){if(Vo)return Bo;Vo=1;var e=H(),t=fn(),n=hn(),r=zo(),i=xo(),a=mi(),o=vr(),s=Qn(),c=o(`iterator`),l=!1,u,d,f;return[].keys&&(f=[].keys(),`next`in f?(d=i(i(f)),d!==Object.prototype&&(u=d)):l=!0),!n(u)||e(function(){var e={};return u[c].call(e)!==e})?u={}:s&&(u=r(u)),t(u[c])||a(u,c,function(){return this}),Bo={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:l},Bo}var Uo;function Wo(){if(Uo)return fo;Uo=1;var e=na(),t=V(),n=ho(),r=zr(),i=fn(),a=xo(),o=wo(),s=Do(),c=H(),l=fr(),u=vr(),d=Ho().IteratorPrototype,f=Nt(),p=Qn(),m=`constructor`,h=`Iterator`,g=u(`toStringTag`),_=TypeError,v=t[h],y=p||!i(v)||v.prototype!==d||!c(function(){v({})}),b=function(){if(n(this,d),a(this)===d)throw new _(`Abstract class Iterator not directly constructable`)},x=function(e,t){f?o(d,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===d)throw new _(`You can't redefine this property`);l(this,e)?this[e]=t:s(this,e,t)}}):d[e]=t};return l(d,g)||x(g,h),(y||!l(d,m)||d[m]===Object)&&x(m,b),b.prototype=d,e({global:!0,constructor:!0,forced:y},{Iterator:b}),fo}Wo();var Go={},Ko,qo;function Jo(){return qo||(qo=1,Ko=function(e){return{iterator:e,next:e.next,done:!1}}),Ko}var Yo,Xo;function Zo(){if(Xo)return Yo;Xo=1;var e=mi();return Yo=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t},Yo}var Qo,$o;function es(){return $o||($o=1,Qo=function(e,t){return{value:e,done:t}}),Qo}var ts,ns;function rs(){if(ns)return ts;ns=1;var e=zt(),t=zr(),n=Gn();return ts=function(r,i,a){var o,s;t(r);try{if(o=n(r,`return`),!o){if(i===`throw`)throw a;return a}o=e(o,r)}catch(e){s=!0,o=e}if(i===`throw`)throw a;if(s)throw o;return t(o),a},ts}var is,as;function os(){if(as)return is;as=1;var e=rs();return is=function(t,n,r){for(var i=t.length-1;i>=0;i--)if(t[i]!==void 0)try{r=e(t[i].iterator,n,r)}catch(e){n=`throw`,r=e}if(n===`throw`)throw r;return r},is}var ss,cs;function ls(){if(cs)return ss;cs=1;var e=zt(),t=zo(),n=Wr(),r=Zo(),i=vr(),a=li(),o=Gn(),s=Ho().IteratorPrototype,c=es(),l=rs(),u=os(),d=i(`toStringTag`),f=`IteratorHelper`,p=`WrapForValidIterator`,m=`normal`,h=`throw`,g=a.set,_=function(n){var i=a.getterFor(n?p:f);return r(t(s),{next:function(){var e=i(this);if(n)return e.nextHandler();if(e.done)return c(void 0,!0);try{var t=e.nextHandler();return e.returnHandlerResult?t:c(t,e.done)}catch(t){throw e.done=!0,t}},return:function(){var t=i(this),r=t.iterator;if(t.done=!0,n){var a=o(r,`return`);return a?e(a,r):c(void 0,!0)}if(t.inner)try{l(t.inner.iterator,m)}catch(e){return l(r,h,e)}if(t.openIters)try{u(t.openIters,m)}catch(e){return l(r,h,e)}return r&&l(r,m),c(void 0,!0)}})},v=_(!0),y=_(!1);return n(y,d,`Iterator Helper`),ss=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?p:f,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,g(this,i)};return r.prototype=t?v:y,r},ss}var us,ds;function fs(){if(ds)return us;ds=1;var e=zr(),t=rs();return us=function(n,r,i,a){try{return a?r(e(i)[0],i[1]):r(i)}catch(e){t(n,`throw`,e)}},us}var ps,ms;function hs(){return ms||(ms=1,ps=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}),ps}var gs,_s;function vs(){if(_s)return gs;_s=1;var e=V();return gs=function(t,n){var r=e.Iterator,i=r&&r.prototype,a=i&&i[t],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof n||(o=!1)}if(!o)return a},gs}var ys;function bs(){if(ys)return Go;ys=1;var e=na(),t=zt(),n=Hn(),r=zr(),i=Jo(),a=ls(),o=fs(),s=Qn(),c=rs(),l=hs(),u=vs(),d=!s&&!l(`filter`,function(){}),f=!s&&!d&&u(`filter`,TypeError),p=s||d||f,m=a(function(){for(var e=this.iterator,n=this.predicate,i=this.next,a,s,c;;){if(a=r(t(i,e)),s=this.done=!!a.done,s)return;if(c=a.value,o(e,n,[c,this.counter++],!0))return c}});return e({target:`Iterator`,proto:!0,real:!0,forced:p},{filter:function(e){r(this);try{n(e)}catch(e){c(this,`throw`,e)}return f?t(f,this,e):new m(i(this),{predicate:e})}}),Go}bs();var xs={},Ss,Cs;function ws(){if(Cs)return Ss;Cs=1;var e=Xt(),t=U();return Ss=function(n){if(e(n)===`Function`)return t(n)},Ss}var Ts,Es;function Ds(){if(Es)return Ts;Es=1;var e=ws(),t=Hn(),n=It(),r=e(e.bind);return Ts=function(e,i){return t(e),i===void 0?e:n?r(e,i):function(){return e.apply(i,arguments)}},Ts}var Os,ks;function As(){return ks||(ks=1,Os={}),Os}var js,Ms;function Ns(){if(Ms)return js;Ms=1;var e=vr(),t=As(),n=e(`iterator`),r=Array.prototype;return js=function(e){return e!==void 0&&(t.Array===e||r[n]===e)},js}var Ps,Fs;function Is(){if(Fs)return Ps;Fs=1;var e=ka(),t=Gn(),n=nn(),r=As(),i=vr()(`iterator`);return Ps=function(a){if(!n(a))return t(a,i)||t(a,`@@iterator`)||r[e(a)]},Ps}var Ls,Rs;function zs(){if(Rs)return Ls;Rs=1;var e=zt(),t=Hn(),n=zr(),r=zn(),i=Is(),a=TypeError;return Ls=function(o,s){var c=arguments.length<2?i(o):s;if(t(c))return n(e(c,o));throw new a(r(o)+` is not iterable`)},Ls}var Bs,Vs;function Hs(){if(Vs)return Bs;Vs=1;var e=Ds(),t=zt(),n=zr(),r=zn(),i=Ns(),a=Ai(),o=xn(),s=zs(),c=Is(),l=rs(),u=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;return Bs=function(p,m,h){var g=h&&h.that,_=!!(h&&h.AS_ENTRIES),v=!!(h&&h.IS_RECORD),y=!!(h&&h.IS_ITERATOR),b=!!(h&&h.INTERRUPTED),x=e(m,g),S,C,w,T,E,D,O,k=function(e){return S&&l(S,`normal`),new d(!0,e)},A=function(e){return _?(n(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=p.iterator;else if(y)S=p;else{if(C=c(p),!C)throw new u(r(p)+` is not iterable`);if(i(C)){for(w=0,T=a(p);T>w;w++)if(E=A(p[w]),E&&o(f,E))return E;return new d(!1)}S=s(p,C)}for(D=v?p.next:S.next;!(O=t(D,S)).done;){try{E=A(O.value)}catch(e){l(S,`throw`,e)}if(typeof E==`object`&&E&&o(f,E))return E}return new d(!1)},Bs}var Us;function Ws(){if(Us)return xs;Us=1;var e=na(),t=zt(),n=Hs(),r=Hn(),i=zr(),a=Jo(),o=rs(),s=vs()(`forEach`,TypeError);return e({target:`Iterator`,proto:!0,real:!0,forced:s},{forEach:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;n(c,function(t){e(t,l++)},{IS_RECORD:!0})}}),xs}Ws();var Gs={},Ks,qs;function Js(){if(qs)return Ks;qs=1;var e=hn(),t=li().get;return Ks=function(n){if(!e(n))return!1;var r=t(n);return!!r&&r.type===`RawJSON`},Ks}var Ys,Xs;function Zs(){return Xs?Ys:(Xs=1,Ys=U()([].slice),Ys)}var Qs,$s;function ec(){if($s)return Qs;$s=1;var e=U(),t=fr(),n=SyntaxError,r=parseInt,i=String.fromCharCode,a=e(``.charAt),o=e(``.slice),s=e(/./.exec),c={'\\"':`"`,"\\\\":`\\`,"\\/":`/`,"\\b":`\b`,"\\f":`\f`,"\\n":`
3
3
  `,"\\r":`\r`,"\\t":` `},l=/^[\da-f]{4}$/i,u=/^[\u0000-\u001F]$/;return Qs=function(e,d){for(var f=!0,p=``;d<e.length;){var m=a(e,d);if(m===`\\`){var h=o(e,d,d+2);if(t(c,h))p+=c[h],d+=2;else if(h===`\\u`){d+=2;var g=o(e,d,d+4);if(!s(l,g))throw new n(`Bad Unicode escape at: `+d);p+=i(r(g,16)),d+=4}else throw new n(`Unknown escape sequence: "`+h+`"`)}else if(m===`"`){f=!1,d++;break}else{if(s(u,m))throw new n(`Bad control character in string literal at: `+d);p+=m,d++}}if(f)throw new n(`Unterminated string at: `+d);return{value:p,end:d}},Qs}var tc,nc;function rc(){return nc?tc:(nc=1,tc=!H()(function(){var e=`9007199254740993`,t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e}),tc)}var ic;function ac(){if(ic)return Gs;ic=1;var e=na(),t=vn(),n=aa(),r=zt(),i=U(),a=H(),o=no(),s=fn(),c=Js(),l=In(),u=Xt(),d=Ma(),f=Zs(),p=ec(),m=hr(),h=An(),g=rc(),_=String,v=t(`JSON`,`stringify`),y=i(/./.exec),b=i(``.charAt),x=i(``.charCodeAt),S=i(``.replace),C=i(``.slice),w=i([].push),T=i(1.1.toString),E=/[\uD800-\uDFFF]/g,D=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,k=m(),A=k.length,j=!h||a(function(){var e=t(`Symbol`)(`stringify detection`);return v([e])!==`[null]`||v({a:e})!==`{}`||v(Object(e))!==`{}`}),M=a(function(){return v(`\udf06\ud834`)!==`"\\udf06\\ud834"`||v(`\udead`)!==`"\\udead"`}),N=j?function(e,t){var i=f(arguments),a=F(t);if(!(!s(a)&&(e===void 0||l(e))))return i[1]=function(e,t){if(s(a)&&(t=r(a,this,_(e),t)),!l(t))return t},n(v,null,i)}:v,P=function(e,t,n){var r=b(n,t-1),i=b(n,t+1);return y(D,e)&&!y(O,i)||y(O,e)&&!y(D,r)?`\\u`+T(x(e,0),16):e},F=function(e){if(s(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];typeof i==`string`?w(n,i):(typeof i==`number`||u(i)===`Number`||u(i)===`String`)&&w(n,d(i))}var a=n.length,c=!0;return function(e,t){if(c)return c=!1,t;if(o(this))return t;for(var r=0;r<a;r++)if(n[r]===e)return t}}};return v&&e({target:`JSON`,stat:!0,arity:3,forced:j||M||!g},{stringify:function(e,t,n){var i=F(t),a=[],o=N(e,function(e,t){var n=s(i)?r(i,this,_(e),t):t;return!g&&c(n)?k+(w(a,n.rawJSON)-1):n},n);if(typeof o!=`string`||(M&&(o=S(o,E,P)),g))return o;for(var l=``,u=o.length,d=0;d<u;d++){var f=b(o,d);if(f===`"`){var m=p(o,++d).end-1,h=C(o,d,m);l+=C(h,0,A)===k?a[C(h,A)]:`"`+h+`"`,d=m}else l+=f}return l}}),Gs}ac();var oc={},sc,cc;function lc(){return cc||(cc=1,sc=`
4
4
  \v\f\r \xA0               \u2028\u2029`),sc}var uc,dc;function fc(){if(dc)return uc;dc=1;var e=U(),t=on(),n=Ma(),r=lc(),i=e(``.replace),a=RegExp(`^[`+r+`]+`),o=RegExp(`(^|[^`+r+`])[`+r+`]+$`),s=function(e){return function(r){var s=n(t(r));return e&1&&(s=i(s,a,``)),e&2&&(s=i(s,o,`$1`)),s}};return uc={start:s(1),end:s(2),trim:s(3)},uc}var pc,mc;function hc(){if(mc)return pc;mc=1;var e=Jr().PROPER,t=H(),n=lc(),r=`​…᠎`;return pc=function(i){return t(function(){return!!n[i]()||r[i]()!==r||e&&n[i].name!==i})},pc}var gc;function _c(){if(gc)return oc;gc=1;var e=na(),t=fc().trim;return e({target:`String`,proto:!0,forced:hc()(`trim`)},{trim:function(){return t(this)}}),oc}_c();var vc={},yc,bc;function xc(){return bc||(bc=1,yc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),yc}var Sc,Cc;function wc(){if(Cc)return Sc;Cc=1;var e=Dr()(`span`).classList,t=e&&e.constructor&&e.constructor.prototype;return Sc=t===Object.prototype?void 0:t,Sc}var Tc,Ec;function Dc(){if(Ec)return Tc;Ec=1;var e=vr(),t=zo(),n=Vr().f,r=e(`unscopables`),i=Array.prototype;return i[r]===void 0&&n(i,r,{configurable:!0,value:t(null)}),Tc=function(e){i[r][e]=!0},Tc}var Oc,kc;function Ac(){if(kc)return Oc;kc=1;var e=Vr().f,t=fr(),n=vr()(`toStringTag`);return Oc=function(r,i,a){r&&!a&&(r=r.prototype),r&&!t(r,n)&&e(r,n,{configurable:!0,value:i})},Oc}var jc,Mc;function Nc(){if(Mc)return jc;Mc=1;var e=Ho().IteratorPrototype,t=zo(),n=Gt(),r=Ac(),i=As(),a=function(){return this};return jc=function(o,s,c,l){var u=s+` Iterator`;return o.prototype=t(e,{next:n(+!l,c)}),r(o,u,!1,!0),i[u]=a,o},jc}var Pc,Fc;function Ic(){if(Fc)return Pc;Fc=1;var e=na(),t=zt(),n=Qn(),r=Jr(),i=fn(),a=Nc(),o=xo(),s=_a(),c=Ac(),l=Wr(),u=mi(),d=vr(),f=As(),p=Ho(),m=r.PROPER,h=r.CONFIGURABLE,g=p.IteratorPrototype,_=p.BUGGY_SAFARI_ITERATORS,v=d(`iterator`),y=`keys`,b=`values`,x=`entries`,S=function(){return this};return Pc=function(r,d,p,C,w,T,E){a(p,d,C);var D=function(e){if(e===w&&M)return M;if(!_&&e&&e in A)return A[e];switch(e){case y:return function(){return new p(this,e)};case b:return function(){return new p(this,e)};case x:return function(){return new p(this,e)}}return function(){return new p(this)}},O=d+` Iterator`,k=!1,A=r.prototype,j=A[v]||A[`@@iterator`]||w&&A[w],M=!_&&j||D(w),N=d===`Array`&&A.entries||j,P,F,I;if(N&&(P=o(N.call(new r)),P!==Object.prototype&&P.next&&(!n&&o(P)!==g&&(s?s(P,g):i(P[v])||u(P,v,S)),c(P,O,!0,!0),n&&(f[O]=S))),m&&w===b&&j&&j.name!==b&&(!n&&h?l(A,`name`,b):(k=!0,M=function(){return t(j,this)})),w)if(F={values:D(b),keys:T?M:D(y),entries:D(x)},E)for(I in F)(_||k||!(I in A))&&u(A,I,F[I]);else e({target:d,proto:!0,forced:_||k},F);return(!n||E)&&A[v]!==M&&u(A,v,M,{name:w}),f[d]=M,F},Pc}var Lc,Rc;function zc(){if(Rc)return Lc;Rc=1;var e=ln(),t=Dc(),n=As(),r=li(),i=Vr().f,a=Ic(),o=es(),s=Qn(),c=Nt(),l=`Array Iterator`,u=r.set,d=r.getterFor(l);Lc=a(Array,`Array`,function(t,n){u(this,{type:l,target:e(t),index:0,kind:n})},function(){var e=d(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,o(void 0,!0);switch(e.kind){case`keys`:return o(n,!1);case`values`:return o(t[n],!1)}return o([n,t[n]],!1)},`values`);var f=n.Arguments=n.Array;if(t(`keys`),t(`values`),t(`entries`),!s&&c&&f.name!==`values`)try{i(f,`name`,{value:`values`})}catch(e){}return Lc}var Bc;function Vc(){if(Bc)return vc;Bc=1;var e=V(),t=xc(),n=wc(),r=zc(),i=Wr(),a=Ac(),o=vr()(`iterator`),s=r.values,c=function(e,n){if(e){if(e[o]!==s)try{i(e,o,s)}catch(t){e[o]=s}if(a(e,n,!0),t[n]){for(var c in r)if(e[c]!==r[c])try{i(e,c,r[c])}catch(t){e[c]=r[c]}}}};for(var l in t)c(e[l]&&e[l].prototype,l);return c(n,`DOMTokenList`),vc}Vc();var Hc,W,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c={},el=[],tl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,nl=Array.isArray;function rl(e,t){for(var n in t)e[n]=t[n];return e}function il(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function al(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?Hc.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return ol(e,o,r,i,null)}function ol(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Uc:i,__i:-1,__u:0};return i==null&&W.vnode!=null&&W.vnode(a),a}function sl(){return{current:null}}function cl(e){return e.children}function ll(e,t){this.props=e,this.context=t}function ul(e,t){if(t==null)return e.__?ul(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?ul(e):null}function dl(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],a=rl({},t);a.__v=t.__v+1,W.vnode&&W.vnode(a),Cl(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n==null?ul(t):n,!!(32&t.__u),i),a.__v=t.__v,a.__.__k[a.__i]=a,Tl(r,a,i),t.__e=t.__=null,a.__e!=n&&fl(a)}}function fl(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),fl(e)}function pl(e){(!e.__d&&(e.__d=!0)&&Wc.push(e)&&!ml.__r++||Gc!=W.debounceRendering)&&((Gc=W.debounceRendering)||Kc)(ml)}function ml(){for(var e,t=1;Wc.length;)Wc.length>t&&Wc.sort(qc),e=Wc.shift(),t=Wc.length,dl(e);ml.__r=0}function hl(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v=r&&r.__k||el,y=t.length;for(c=gl(n,t,v,c,y),d=0;d<y;d++)(p=n.__k[d])!=null&&(f=p.__i!=-1&&v[p.__i]||$c,p.__i=d,g=Cl(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Ol(f.ref,null,p),u.push(p.ref,p.__c||m,p)),h==null&&m!=null&&(h=m),(_=!!(4&p.__u))||f.__k===p.__k?c=_l(p,c,e,_):typeof p.type==`function`&&g!==void 0?c=g:m&&(c=m.nextSibling),p.__u&=-7);return n.__e=h,c}function gl(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?o=e.__k[a]=ol(null,o,null,null,null):nl(o)?o=e.__k[a]=ol(cl,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[a]=ol(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,c=a+f,o.__=e,o.__b=e.__b+1,s=null,(l=o.__i=yl(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=ul(s)),kl(s,s));return r}function _l(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=_l(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=ul(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function vl(e,t){return t=t||[],e==null||typeof e==`boolean`||(nl(e)?e.some(function(e){vl(e,t)}):t.push(e)),t}function yl(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&(2&l.__u)==0;if(l===null&&s==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function bl(e,t,n){t[0]==`-`?e.setProperty(t,n==null?``:n):e[t]=n==null?``:typeof n!=`number`||tl.test(t)?n:n+`px`}function xl(e,t,n,r,i){var a,o;e:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||bl(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||bl(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(Jc,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Yc,e.addEventListener(t,a?Zc:Xc,a)):e.removeEventListener(t,a?Zc:Xc,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n==null?``:n;break e}catch(e){}typeof n==`function`||(n==null||n===!1&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function Sl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Yc++;else if(t.t<n.u)return;return n(W.event?W.event(t):t)}}}function Cl(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=W.__b)&&u(t);e:if(typeof T==`function`)try{if(_=t.props,v=`prototype`in T&&T.prototype.render,y=(u=T.contextType)&&r[u.__c],b=u?y?y.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(v?t.__c=d=new T(_,b):(t.__c=d=new ll(_,b),d.constructor=T,d.render=Al),y&&y.sub(d),d.state||(d.state={}),d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),v&&d.__s==null&&(d.__s=d.state),v&&T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=rl({},d.__s)),rl(d.__s,T.getDerivedStateFromProps(_,d.__s))),p=d.props,m=d.state,d.__v=t,f)v&&T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),v&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(v&&T.getDerivedStateFromProps==null&&_!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(_,b),t.__v==n.__v||!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(_,d.__s,b)===!1){t.__v!=n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),el.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(_,d.__s,b),v&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,m,h)})}if(d.context=b,d.props=_,d.__P=e,d.__e=!1,x=W.__r,S=0,v)d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),el.push.apply(d.__h,d._sb),d._sb=[];else do d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++S<25);d.state=d.__s,d.getChildContext!=null&&(r=rl(rl({},r),d.getChildContext())),v&&!f&&d.getSnapshotBeforeUpdate!=null&&(h=d.getSnapshotBeforeUpdate(p,m)),C=u!=null&&u.type===cl&&u.key==null?El(u.props.children):u,s=hl(e,nl(C)?C:[C],t,n,r,i,a,o,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||a!=null)if(e.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else{for(w=a.length;w--;)il(a[w]);wl(t)}else t.__e=n.__e,t.__k=n.__k,e.then||wl(t);W.__e(e,t,n)}else a==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Dl(n.__e,t,n,r,i,a,o,c,l);return(u=W.diffed)&&u(t),128&t.__u?void 0:s}function wl(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(wl))}function Tl(e,t,n){for(var r=0;r<n.length;r++)Ol(n[r],n[++r],n[++r]);W.__c&&W.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){W.__e(e,t.__v)}})}function El(e){return typeof e!=`object`||!e||e.__b>0?e:nl(e)?e.map(El):rl({},e)}function Dl(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g=n.props||$c,_=t.props,v=t.type;if(v==`svg`?i=`http://www.w3.org/2000/svg`:v==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||(i=`http://www.w3.org/1999/xhtml`),a!=null){for(l=0;l<a.length;l++)if((p=a[l])&&`setAttribute`in p==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,a[l]=null;break}}if(e==null){if(v==null)return document.createTextNode(_);e=document.createElementNS(i,v,_.is&&_),s&&(W.__m&&W.__m(t,a),s=!1),a=null}if(v==null)g===_||s&&e.data==_||(e.data=_);else{if(a=a&&Hc.call(e.childNodes),!s&&a!=null)for(g={},l=0;l<e.attributes.length;l++)g[(p=e.attributes[l]).name]=p.value;for(l in g)p=g[l],l==`dangerouslySetInnerHTML`?d=p:l==`children`||l in _||l==`value`&&`defaultValue`in _||l==`checked`&&`defaultChecked`in _||xl(e,l,null,p,i);for(l in _)p=_[l],l==`children`?f=p:l==`dangerouslySetInnerHTML`?u=p:l==`value`?m=p:l==`checked`?h=p:s&&typeof p!=`function`||g[l]===p||xl(e,l,p,g[l],i);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=``),hl(t.type==`template`?e.content:e,nl(f)?f:[f],t,n,r,v==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&ul(n,0),s,c),a!=null)for(l=a.length;l--;)il(a[l]);s||(l=`value`,v==`progress`&&m==null?e.removeAttribute(`value`):m!=null&&(m!==e[l]||v==`progress`&&!m||v==`option`&&m!=g[l])&&xl(e,l,m,g[l],i),l=`checked`,h!=null&&h!=e[l]&&xl(e,l,h,g[l],i))}return e}function Ol(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){W.__e(e,n)}}function kl(e,t,n){var r,i;if(W.unmount&&W.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Ol(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){W.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&kl(r[i],t,n||typeof e.type!=`function`);n||il(e.__e),e.__c=e.__=e.__e=void 0}function Al(e,t,n){return this.constructor(e,n)}function jl(e,t,n){var r,i,a,o;t==document&&(t=document.documentElement),W.__&&W.__(e,t),i=(r=typeof n==`function`)?null:n&&n.__k||t.__k,a=[],o=[],Cl(t,e=(!r&&n||t).__k=al(cl,null,[e]),i||$c,$c,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Hc.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r,o),Tl(a,e,o)}function Ml(e,t){jl(e,t,Ml)}function Nl(e,t,n){var r,i,a,o,s=rl({},e.props);for(a in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)a==`key`?r=t[a]:a==`ref`?i=t[a]:s[a]=t[a]===void 0&&o!=null?o[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?Hc.call(arguments,2):n),ol(e.type,s,r||e.key,i||e.ref,null)}function Pl(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,pl(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c=`__cC`+ Qc++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}Hc=el.slice,W={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},Uc=0,ll.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=rl({},this.state);typeof e==`function`&&(e=e(rl({},n),this.props)),e&&rl(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),pl(this))},ll.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),pl(this))},ll.prototype.render=cl,Wc=[],Kc=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qc=function(e,t){return e.__v.__b-t.__v.__b},ml.__r=0,Jc=/(PointerCapture)$|Capture$/i,Yc=0,Xc=Sl(!1),Zc=Sl(!0),Qc=0;var Fl={},Il;function Ll(){if(Il)return Fl;Il=1;var e=na(),t=Nt(),n=V(),r=vn(),i=U(),a=zt(),o=fn(),s=hn(),c=no(),l=fr(),u=Ma(),d=Ai(),f=Do(),p=H(),m=ec(),h=An(),g=n.JSON,_=n.Number,v=n.SyntaxError,y=g&&g.parse,b=r(`Object`,`keys`),x=Object.getOwnPropertyDescriptor,S=i(``.charAt),C=i(``.slice),w=i(/./.exec),T=i([].push),E=/^\d$/,D=/^[1-9]$/,O=/^[\d-]$/,k=/^[\t\n\r ]$/,A=0,j=1,M=function(e,t){e=u(e);var n=new I(e,0),r=n.parse(),i=r.value,a=n.skip(k,r.end);if(a<e.length)throw new v(`Unexpected extra character: "`+S(e,a)+`" after the parsed data at: `+a);return o(t)?N({"":i},``,t,r):i},N=function(e,t,n,r){var i=e[t],o=r&&i===r.value,u=o&&typeof r.source==`string`?{source:r.source}:{},f,p,m,h,g;if(s(i)){var _=c(i),v=o?r.nodes:_?[]:{};if(_)for(f=v.length,m=d(i),h=0;h<m;h++)P(i,h,N(i,``+h,n,h<f?v[h]:void 0));else for(p=b(i),m=d(p),h=0;h<m;h++)g=p[h],P(i,g,N(i,g,n,l(v,g)?v[g]:void 0))}return a(n,e,t,i,u)},P=function(e,n,r){if(t){var i=x(e,n);if(i&&!i.configurable)return}r===void 0?delete e[n]:f(e,n,r)},F=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},I=function(e,t){this.source=e,this.index=t};I.prototype={fork:function(e){return new I(this.source,e)},parse:function(){var e=this.source,t=this.skip(k,this.index),n=this.fork(t),r=S(e,t);if(w(O,r))return n.number();switch(r){case`{`:return n.object();case`[`:return n.array();case`"`:return n.string();case`t`:return n.keyword(!0);case`f`:return n.keyword(!1);case`n`:return n.keyword(null)}throw new v(`Unexpected character: "`+r+`" at: `+t)},node:function(e,t,n,r,i){return new F(t,r,e?null:C(this.source,n,r),i)},object:function(){for(var e=this.source,t=this.index+1,n=!1,r={},i={};t<e.length;){if(t=this.until([`"`,`}`],t),S(e,t)===`}`&&!n){t++;break}var a=this.fork(t).string(),o=a.value;t=a.end,t=this.until([`:`],t)+1,t=this.skip(k,t),a=this.fork(t).parse(),f(i,o,a),f(r,o,a.value),t=this.until([`,`,`}`],a.end);var s=S(e,t);if(s===`,`)n=!0,t++;else if(s===`}`){t++;break}}return this.node(j,r,this.index,t,i)},array:function(){for(var e=this.source,t=this.index+1,n=!1,r=[],i=[];t<e.length;){if(t=this.skip(k,t),S(e,t)===`]`&&!n){t++;break}var a=this.fork(t).parse();if(T(i,a),T(r,a.value),t=this.until([`,`,`]`],a.end),S(e,t)===`,`)n=!0,t++;else if(S(e,t)===`]`){t++;break}}return this.node(j,r,this.index,t,i)},string:function(){var e=this.index,t=m(this.source,this.index+1);return this.node(A,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if(S(e,n)===`-`&&n++,S(e,n)===`0`)n++;else if(w(D,S(e,n)))n=this.skip(E,n+1);else throw new v(`Failed to parse number at: `+n);if(S(e,n)===`.`&&(n=this.skip(E,n+1)),S(e,n)===`e`||S(e,n)===`E`){n++,(S(e,n)===`+`||S(e,n)===`-`)&&n++;var r=n;if(n=this.skip(E,n),r===n)throw new v(`Failed to parse number's exponent value at: `+n)}return this.node(A,_(C(e,t,n)),t,n)},keyword:function(e){var t=``+e,n=this.index,r=n+t.length;if(C(this.source,n,r)!==t)throw new v(`Failed to parse value at: `+n);return this.node(A,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length&&w(e,S(n,t));t++);return t},until:function(e,t){t=this.skip(k,t);for(var n=S(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new v(`Unexpected character: "`+n+`" at: `+t)}};var L=p(function(){var e=`9007199254740993`,t;return y(e,function(e,n,r){t=r.source}),t!==e}),R=h&&!p(function(){return 1/y(`-0 `)!=-1/0});return e({target:`JSON`,stat:!0,forced:L},{parse:function(e,t){return R&&!o(t)?y(e):M(e,t)}}),Fl}Ll();var Rl={},zl,Bl;function Vl(){if(Bl)return zl;Bl=1;var e=zr();return zl=function(){var t=e(this),n=``;return t.hasIndices&&(n+=`d`),t.global&&(n+=`g`),t.ignoreCase&&(n+=`i`),t.multiline&&(n+=`m`),t.dotAll&&(n+=`s`),t.unicode&&(n+=`u`),t.unicodeSets&&(n+=`v`),t.sticky&&(n+=`y`),n},zl}var Hl,Ul;function Wl(){if(Ul)return Hl;Ul=1;var e=H(),t=V().RegExp,n=e(function(){var e=t(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!==null}),r=n||e(function(){return!t(`a`,`y`).sticky});return Hl={BROKEN_CARET:n||e(function(){var e=t(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!==null}),MISSED_STICKY:r,UNSUPPORTED_Y:n},Hl}var Gl,Kl;function ql(){if(Kl)return Gl;Kl=1;var e=H(),t=V().RegExp;return Gl=e(function(){var e=t(`.`,`s`);return!(e.dotAll&&e.test(`
5
5
  `)&&e.flags===`s`)}),Gl}var Jl,Yl;function Xl(){if(Yl)return Jl;Yl=1;var e=H(),t=V().RegExp;return Jl=e(function(){var e=t(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`}),Jl}var Zl,Ql;function $l(){if(Ql)return Zl;Ql=1;var e=zt(),t=U(),n=Ma(),r=Vl(),i=Wl(),a=or(),o=zo(),s=li().get,c=ql(),l=Xl(),u=a(`native-string-replace`,String.prototype.replace),d=RegExp.prototype.exec,f=d,p=t(``.charAt),m=t(``.indexOf),h=t(``.replace),g=t(``.slice),_=(function(){var t=/a/,n=/b*/g;return e(d,t,`a`),e(d,n,`a`),t.lastIndex!==0||n.lastIndex!==0})(),v=i.BROKEN_CARET,y=/()??/.exec(``)[1]!==void 0;return(_||y||v||c||l)&&(f=function(t){var i=this,a=s(i),c=n(t),l=a.raw,b,x,S,C,w,T,E;if(l)return l.lastIndex=i.lastIndex,b=e(f,l,c),i.lastIndex=l.lastIndex,b;var D=a.groups,O=v&&i.sticky,k=e(r,i),A=i.source,j=0,M=c;if(O&&(k=h(k,`y`,``),m(k,`g`)===-1&&(k+=`g`),M=g(c,i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&p(c,i.lastIndex-1)!==`
@@ -239,4 +239,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
239
239
  face-liveness::part(retry-screen-too-much-turn-image) {
240
240
  background-image: url(${o(i)});
241
241
  }
242
- `)}return r}_prepareTranslations(e){let{locale:t,localizationKeys:n}=e,r=t&&typeof t==`string`?t.slice(0,2).toLowerCase():``;return!r||!n?null:iw({translationKeysData:aw,translationKeysProps:n,locale:r})}_prepareSettings(e){var t,n,r,i,a,o,s;let{config:c,copyright:l,sessionId:u,serviceToken:d,serviceURL:f,customization:p,locale:m,failedAssets:h,preloadAssetsRequired:g}=e,_={fontFamily:p==null?void 0:p.fontFamily,onboardingScreenBackgroundColor:p==null?void 0:p.onboardingScreenBackgroundColor,onboardingScreenStartButtonBackground:p==null?void 0:p.onboardingScreenStartButtonBackgroundColor,onboardingScreenIllumination:et(p==null?void 0:p.onboardingScreenIllumination,g,h),onboardingScreenAccessories:et(p==null?void 0:p.onboardingScreenAccessories,g,h),onboardingScreenCameraLevel:et(p==null?void 0:p.onboardingScreenCameraLevel,g,h),cameraScreenFrontHintLabelText:p==null?void 0:p.cameraScreenFrontHintLabelTextColor,cameraScreenFrontHintLabelBackground:p==null?void 0:p.cameraScreenFrontHintLabelBackgroundColor,cameraScreenStrokeNormal:p==null?void 0:p.cameraScreenStrokeNormalColor,cameraScreenStrokeActiveColor:p==null?void 0:p.cameraScreenStrokeActiveColor,cameraScreenSectorTarget:p==null?void 0:p.cameraScreenSectorTargetColor,cameraScreenSectorActive:p==null?void 0:p.cameraScreenSectorActiveColor,processingScreenProgress:p==null?void 0:p.processingScreenProgressColor,successScreenImage:et(p==null?void 0:p.successScreenImage,g,h),successScreenBackgroundColor:p==null?void 0:p.successScreenBackgroundColor,infoScreenErrorCodeColor:p==null?void 0:p.infoScreenErrorCodeColor,infoScreenErrorCodeTextFontSize:p==null?void 0:p.infoScreenErrorCodeTextFontSize,retryScreenPersonImage:et(p==null?void 0:p.retryScreenHintSubject,g,h),retryScreenEnvironmentImage:et(p==null?void 0:p.retryScreenHintEnvironment,g,h),onboardingScreenStartButtonBackgroundHover:p==null?void 0:p.onboardingScreenStartButtonBackgroundHover,onboardingScreenStartButtonTitleHover:p==null?void 0:p.onboardingScreenStartButtonTitleHover,retryScreenRetryButtonTitleHover:p==null?void 0:p.retryScreenRetryButtonTitleHover,retryScreenRetryButtonBackgroundHover:p==null?void 0:p.retryScreenRetryButtonBackgroundHover,infoScreenRetryButtonBackgroundHover:p==null?void 0:p.infoScreenRetryButtonBackgroundHover,infoScreenRetryButtonTitleHover:p==null?void 0:p.infoScreenRetryButtonTitleHover},v=Ze({url:f,tag:u,retryCount:c==null?void 0:c.attemptsCount,changeCamera:(t=c==null?void 0:c.cameraSwitchEnabled)==null?!1:t,cameraId:c==null?void 0:c.cameraId,detectOcclusion:c==null?void 0:c.detectOcclusion,metadata:(n=c==null?void 0:c.metadata)==null?{}:n,rotationAngle:c==null?void 0:c.cameraRotationAngle,workerPath:c==null?void 0:c.workerPath,customization:Ze(_),nonce:(r=this.props)==null?void 0:r.nonce}),y=c==null?void 0:c.recordingProcess,b=y&&y in Lm?Lm[y]:Lm.SYNCHRONOUS_UPLOAD,x=(i=c==null?void 0:c.type)==null?`ACTIVE`:i,S=x===`BLINK`?rh.ACTIVE:rh[x],C=Je(Je({},m&&typeof m==`string`?{locale:m.slice(0,2).toLowerCase()}:{}),{},{recordingProcess:b,livenessType:S,startScreen:!(!(c==null||(a=c.skipSteps)==null)&&a.includes(`ONBOARDING_STEP`)),copyright:(o=(s=c==null?void 0:c.copyright)==null?l:s)==null?!0:o,headers:Je({Authorization:`Connection ${d}`},c==null?void 0:c.headers),closeDisabled:typeof(c==null?void 0:c.closeButtonEnabled)==`boolean`?!c.closeButtonEnabled:!1});return Je(Je({},v),C)}_setFaceLivenessProps(){if(!this.props||!this._component)return;console.info(`%cFace Liveness web component version: %s`,`color: #6e56b0;`,this._component.version);let{serviceURL:e,customization:t,preloadAssetsRequired:n,failedAssets:r}=this.props.moduleProps;if(!e||!rw(e)){let e=new ut({errorCode:ot.CONFIGURATION_FAILED,message:`serviceURL is not defined or is invalid.`}),t=new lt({errorCode:at.LIVENESS_ERROR,underlyingBaseError:e});this.props.perform(t)}c(this.shadowRoot,[...this.shadowRoot.adoptedStyleSheets,...this._prepareCustomizationStyles(t,n,r)]),this._component.settings=this._prepareSettings(this.props.moduleProps),this._component.translations=this._prepareTranslations(this.props.moduleProps)}updated(e){e.has(`props`)&&this._setFaceLivenessProps()}render(){return de`<face-liveness @face-liveness="${this._handleFaceLiveness}"></face-liveness>`}},lw.styles=[ow],lw);cw([ft(),sw(`design:type`,Object)],uw.prototype,`props`,void 0),cw([mt(`face-liveness`),sw(`design:type`,Object)],uw.prototype,`_component`,void 0),uw=cw([dt(`face-liveness-verification`)],uw);var dw,fw=!1,pw=class extends Me{constructor(...e){super(...e),this.props=null,this.renderVersion=0}setProps(e){let t=e.moduleProps.failedAssets;if(t&&t.blockingAssets.size>0){var n;let r=new lt({errorCode:at.IMAGE_LOADING_FAILED,message:`Failed to load image asset${t.blockingAssets.size>1?`s`:``}: ${[...t.blockingAssets].join(`, `)}`});(n=e.perform)==null||n.call(e,r)}this.renderVersion++,this.props=e}static isReady(){return fw}static initialize(e){fw=!0}static deinitialize(){fw=!1}static cancel(){}render(){return de`${He(this.renderVersion,de`<face-liveness-verification .props=${this.props}></face-liveness-verification>`)}`}};return dw=pw,dw.getSupportedTemplates=()=>[rt.LIVENESS],dw.getIdentifier=()=>it,dw.displayName=it,cw([Ie({attribute:!1}),sw(`design:type`,Object)],pw.prototype,`props`,void 0),cw([Ie({attribute:!1}),sw(`design:type`,Object)],pw.prototype,`renderVersion`,void 0),Xe(it,pw),e.FaceIdv=pw,e})({});
242
+ `)}return r}_prepareTranslations(e){let{locale:t,localizationKeys:n}=e,r=t&&typeof t==`string`?t.slice(0,2).toLowerCase():``;return!r||!n?null:iw({translationKeysData:aw,translationKeysProps:n,locale:r})}_prepareSettings(e){var t,n,r,i,a,o,s;let{config:c,copyright:l,sessionId:u,serviceToken:d,serviceURL:f,customization:p,locale:m,failedAssets:h,preloadAssetsRequired:g}=e,_={onboardingScreenBackgroundColor:p==null?void 0:p.onboardingScreenBackgroundColor,onboardingScreenStartButtonBackground:p==null?void 0:p.onboardingScreenStartButtonBackgroundColor,onboardingScreenIllumination:et(p==null?void 0:p.onboardingScreenIllumination,g,h),onboardingScreenAccessories:et(p==null?void 0:p.onboardingScreenAccessories,g,h),onboardingScreenCameraLevel:et(p==null?void 0:p.onboardingScreenCameraLevel,g,h),cameraScreenFrontHintLabelText:p==null?void 0:p.cameraScreenFrontHintLabelTextColor,cameraScreenFrontHintLabelBackground:p==null?void 0:p.cameraScreenFrontHintLabelBackgroundColor,cameraScreenStrokeNormal:p==null?void 0:p.cameraScreenStrokeNormalColor,cameraScreenStrokeActiveColor:p==null?void 0:p.cameraScreenStrokeActiveColor,cameraScreenSectorTarget:p==null?void 0:p.cameraScreenSectorTargetColor,cameraScreenSectorActive:p==null?void 0:p.cameraScreenSectorActiveColor,processingScreenProgress:p==null?void 0:p.processingScreenProgressColor,successScreenImage:et(p==null?void 0:p.successScreenImage,g,h),successScreenBackgroundColor:p==null?void 0:p.successScreenBackgroundColor,infoScreenErrorCodeColor:p==null?void 0:p.infoScreenErrorCodeColor,infoScreenErrorCodeTextFontSize:p==null?void 0:p.infoScreenErrorCodeTextFontSize,retryScreenPersonImage:et(p==null?void 0:p.retryScreenHintSubject,g,h),retryScreenEnvironmentImage:et(p==null?void 0:p.retryScreenHintEnvironment,g,h),onboardingScreenStartButtonBackgroundHover:p==null?void 0:p.onboardingScreenStartButtonBackgroundHover,onboardingScreenStartButtonTitleHover:p==null?void 0:p.onboardingScreenStartButtonTitleHover,retryScreenRetryButtonTitleHover:p==null?void 0:p.retryScreenRetryButtonTitleHover,retryScreenRetryButtonBackgroundHover:p==null?void 0:p.retryScreenRetryButtonBackgroundHover,infoScreenRetryButtonBackgroundHover:p==null?void 0:p.infoScreenRetryButtonBackgroundHover,infoScreenRetryButtonTitleHover:p==null?void 0:p.infoScreenRetryButtonTitleHover},v=Ze({url:f,tag:u,retryCount:c==null?void 0:c.attemptsCount,changeCamera:(t=c==null?void 0:c.cameraSwitchEnabled)==null?!1:t,cameraId:c==null?void 0:c.cameraId,detectOcclusion:c==null?void 0:c.detectOcclusion,metadata:(n=c==null?void 0:c.metadata)==null?{}:n,rotationAngle:c==null?void 0:c.cameraRotationAngle,workerPath:c==null?void 0:c.workerPath,customization:Ze(_),nonce:(r=this.props)==null?void 0:r.nonce}),y=c==null?void 0:c.recordingProcess,b=y&&y in Lm?Lm[y]:Lm.SYNCHRONOUS_UPLOAD,x=(i=c==null?void 0:c.type)==null?`ACTIVE`:i,S=x===`BLINK`?rh.ACTIVE:rh[x],C=Je(Je({},m&&typeof m==`string`?{locale:m.slice(0,2).toLowerCase()}:{}),{},{recordingProcess:b,livenessType:S,startScreen:!(!(c==null||(a=c.skipSteps)==null)&&a.includes(`ONBOARDING_STEP`)),copyright:(o=(s=c==null?void 0:c.copyright)==null?l:s)==null?!0:o,headers:Je({Authorization:`Connection ${d}`},c==null?void 0:c.headers),closeDisabled:typeof(c==null?void 0:c.closeButtonEnabled)==`boolean`?!c.closeButtonEnabled:!1});return Je(Je({},v),C)}_setFaceLivenessProps(){if(!this.props||!this._component)return;console.info(`%cFace Liveness web component version: %s`,`color: #6e56b0;`,this._component.version);let{serviceURL:e,customization:t,preloadAssetsRequired:n,failedAssets:r}=this.props.moduleProps;if(!e||!rw(e)){let e=new ut({errorCode:ot.CONFIGURATION_FAILED,message:`serviceURL is not defined or is invalid.`}),t=new lt({errorCode:at.LIVENESS_ERROR,underlyingBaseError:e});this.props.perform(t)}c(this.shadowRoot,[...this.shadowRoot.adoptedStyleSheets,...this._prepareCustomizationStyles(t,n,r)]),this._component.settings=this._prepareSettings(this.props.moduleProps),this._component.translations=this._prepareTranslations(this.props.moduleProps)}updated(e){e.has(`props`)&&this._setFaceLivenessProps()}render(){return de`<face-liveness @face-liveness="${this._handleFaceLiveness}"></face-liveness>`}},lw.styles=[ow],lw);cw([ft(),sw(`design:type`,Object)],uw.prototype,`props`,void 0),cw([mt(`face-liveness`),sw(`design:type`,Object)],uw.prototype,`_component`,void 0),uw=cw([dt(`face-liveness-verification`)],uw);var dw,fw=!1,pw=class extends Me{constructor(...e){super(...e),this.props=null,this.renderVersion=0}setProps(e){let t=e.moduleProps.failedAssets;if(t&&t.blockingAssets.size>0){var n;let r=new lt({errorCode:at.IMAGE_LOADING_FAILED,message:`Failed to load image asset${t.blockingAssets.size>1?`s`:``}: ${[...t.blockingAssets].join(`, `)}`});(n=e.perform)==null||n.call(e,r)}this.renderVersion++,this.props=e}static isReady(){return fw}static initialize(e){fw=!0}static deinitialize(){fw=!1}render(){return de`${He(this.renderVersion,de`<face-liveness-verification .props=${this.props}></face-liveness-verification>`)}`}};return dw=pw,dw.getSupportedTemplates=()=>[rt.LIVENESS],dw.getIdentifier=()=>it,dw.displayName=it,cw([Ie({attribute:!1}),sw(`design:type`,Object)],pw.prototype,`props`,void 0),cw([Ie({attribute:!1}),sw(`design:type`,Object)],pw.prototype,`renderVersion`,void 0),Xe(it,pw),e.FaceIdv=pw,e})({});
package/dist/main.js CHANGED
@@ -766,7 +766,7 @@ function Ye(e, t) {
766
766
  let e = t.getSupportedTemplates();
767
767
  console.log(`${t == null ? void 0 : t.displayName} supported templates: ${e.join(", ")}`);
768
768
  } else console.error("Missed \"getSupportedTemplates\" method when register module");
769
- if (t.initialize && typeof t.initialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "initialize" method was not implemented`), t.deinitialize && typeof t.deinitialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "deinitialize" method was not implemented`), t.cancel && typeof t.cancel == "function" || console.error(`${t == null ? void 0 : t.displayName} "cancel" method was not implemented`), t.isReady && typeof t.isReady == "function" || console.error(`${t == null ? void 0 : t.displayName} "isReady" method was not implemented`), t.getIdentifier && typeof t.getIdentifier == "function") {
769
+ if (t.initialize && typeof t.initialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "initialize" method was not implemented`), t.deinitialize && typeof t.deinitialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "deinitialize" method was not implemented`), t.isReady && typeof t.isReady == "function" || console.error(`${t == null ? void 0 : t.displayName} "isReady" method was not implemented`), t.getIdentifier && typeof t.getIdentifier == "function") {
770
770
  let e = t.getIdentifier();
771
771
  console.log(`Module id: ${e}`);
772
772
  } else console.error("Missed \"getIdentifier\" when register module");
@@ -15011,7 +15011,6 @@ var cw, lw = (cw = class extends je {
15011
15011
  _prepareSettings(e) {
15012
15012
  var t, n, r, i, a, o, s;
15013
15013
  let { config: c, copyright: l, sessionId: u, serviceToken: d, serviceURL: f, customization: p, locale: m, failedAssets: h, preloadAssetsRequired: g } = e, _ = {
15014
- fontFamily: p == null ? void 0 : p.fontFamily,
15015
15014
  onboardingScreenBackgroundColor: p == null ? void 0 : p.onboardingScreenBackgroundColor,
15016
15015
  onboardingScreenStartButtonBackground: p == null ? void 0 : p.onboardingScreenStartButtonBackgroundColor,
15017
15016
  onboardingScreenIllumination: $e(p == null ? void 0 : p.onboardingScreenIllumination, g, h),
@@ -15109,7 +15108,6 @@ var uw, dw = !1, fw = class extends je {
15109
15108
  static deinitialize() {
15110
15109
  dw = !1;
15111
15110
  }
15112
- static cancel() {}
15113
15111
  render() {
15114
15112
  return ue`${Ve(this.renderVersion, ue`<face-liveness-verification .props=${this.props}></face-liveness-verification>`)}`;
15115
15113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-face",
3
- "version": "3.10.588-nightly",
3
+ "version": "3.10.589-rc",
4
4
  "description": "Regula framework agnostic web components to work with face idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.js",