@ahmed_hani/dot-auto-capture-ui 7.6.1 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/document.mjs +865 -874
- package/document.umd.js +27 -27
- package/face.mjs +1252 -1323
- package/face.umd.js +27 -27
- package/magnifeye-liveness.mjs +766 -789
- package/magnifeye-liveness.umd.js +45 -45
- package/multi-range-liveness.mjs +841 -856
- package/multi-range-liveness.umd.js +24 -24
- package/package.json +7 -4
- package/palm.mjs +873 -891
- package/palm.umd.js +27 -27
- package/smile-liveness.mjs +1143 -1187
- package/smile-liveness.umd.js +37 -37
- package/ui/src/types/common.d.ts +3 -19
- package/ui/src/types/configuration.d.ts +60 -0
- package/ui/src/types/document.d.ts +8 -7
- package/ui/src/types/eye-gaze.d.ts +9 -8
- package/ui/src/types/face.d.ts +8 -20
- package/ui/src/types/magnifeye.d.ts +7 -7
- package/ui/src/types/multi-range.d.ts +8 -8
- package/ui/src/types/palm.d.ts +8 -7
- package/ui/src/types/smile.d.ts +8 -15
- package/ui-common/src/types/common.d.ts +21 -35
- package/ui-common/src/types/document.d.ts +1 -9
- package/ui-common/src/types/events/common-deprecated.d.ts +20 -0
- package/ui-common/src/types/events/common.d.ts +0 -13
- package/ui-common/src/types/events/document.d.ts +3 -7
- package/ui-common/src/types/events/face.d.ts +9 -2
- package/ui-common/src/types/events/index.d.ts +1 -0
- package/ui-common/src/types/events/palm.d.ts +3 -2
- package/ui-common/src/types/events/smile.d.ts +10 -5
- package/ui-common/src/types/eye-gaze.d.ts +6 -6
- package/ui-common/src/types/face.d.ts +1 -20
- package/ui-common/src/types/magnifeye.d.ts +6 -6
- package/ui-common/src/types/modality/detection/document.d.ts +9 -0
- package/ui-common/src/types/modality/detection/face.d.ts +20 -0
- package/ui-common/src/types/modality/detection/palm.d.ts +20 -0
- package/ui-common/src/types/palm.d.ts +1 -20
- package/ui-common/src/types/smile.d.ts +23 -16
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(H){typeof define=="function"&&define.amd?define(H):H()})(function(){"use strict";var Qs=Object.defineProperty;var ec=(H,p,le)=>p in H?Qs(H,p,{enumerable:!0,configurable:!0,writable:!0,value:le}):H[p]=le;var xt=(H,p,le)=>ec(H,typeof p!="symbol"?p+"":p,le);var H,p,le,ue,xn,In,An,Rn,It,At,Rt,Pn,Le={},Dn=[],So=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=Array.isArray;function Z(e,t){for(var n in t)e[n]=t[n];return e}function Pt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function M(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?H.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]==null&&(a[i]=e.defaultProps[i]);return He(e,a,r,o,null)}function He(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++le,__i:-1,__u:0};return o==null&&p.vnode!=null&&p.vnode(i),i}function bo(){return{current:null}}function G(e){return e.children}function V(e,t){this.props=e,this.context=t}function we(e,t){if(t==null)return e.__?we(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"?we(e):null}function Ln(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ln(e)}}function Dt(e){(!e.__d&&(e.__d=!0)&&ue.push(e)&&!tt.__r++||xn!=p.debounceRendering)&&((xn=p.debounceRendering)||In)(tt)}function tt(){for(var e,t,n,r,o,i,a,c=1;ue.length;)ue.length>c&&ue.sort(An),e=ue.shift(),c=ue.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Z({},r)).__v=r.__v+1,p.vnode&&p.vnode(n),Lt(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??we(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,Bn(i,n,a),n.__e!=o&&Ln(n)));tt.__r=0}function Mn(e,t,n,r,o,i,a,c,s,u,f){var l,h,_,y,S,$,g=r&&r.__k||Dn,m=t.length;for(s=$o(n,t,g,s,m),l=0;l<m;l++)(_=n.__k[l])!=null&&(h=_.__i==-1?Le:g[_.__i]||Le,_.__i=l,$=Lt(e,_,h,o,i,a,c,s,u,f),y=_.__e,_.ref&&h.ref!=_.ref&&(h.ref&&Mt(h.ref,null,_),f.push(_.ref,_.__c||y,_)),S==null&&y!=null&&(S=y),4&_.__u||h.__k===_.__k?s=Hn(_,s,e):typeof _.type=="function"&&$!==void 0?s=$:y&&(s=y.nextSibling),_.__u&=-7);return n.__e=S,s}function $o(e,t,n,r,o){var i,a,c,s,u,f=n.length,l=f,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(s=i+h,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?He(null,a,null,null,null):Me(a)?He(G,{children:a},null,null,null):a.constructor==null&&a.__b>0?He(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,c=null,(u=a.__i=Oo(a,n,s,l))!=-1&&(l--,(c=n[u])&&(c.__u|=2)),c==null||c.__v==null?(u==-1&&(o>f?h--:o<f&&h++),typeof a.type!="function"&&(a.__u|=4)):u!=s&&(u==s-1?h--:u==s+1?h++:(u>s?h--:h++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<f;i++)(c=n[i])!=null&&(2&c.__u)==0&&(c.__e==r&&(r=we(c)),Wn(c,c));return r}function Hn(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Hn(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=we(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function J(e,t){return t=t||[],e==null||typeof e=="boolean"||(Me(e)?e.some(function(n){J(n,t)}):t.push(e)),t}function Oo(e,t,n,r){var o,i,a=e.key,c=e.type,s=t[n];if(s===null&&e.key==null||s&&a==s.key&&c==s.type&&(2&s.__u)==0)return n;if(r>(s!=null&&(2&s.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((s=t[o])&&(2&s.__u)==0&&a==s.key&&c==s.type)return o;o--}if(i<t.length){if((s=t[i])&&(2&s.__u)==0&&a==s.key&&c==s.type)return i;i++}}return-1}function Fn(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||So.test(t)?n:n+"px"}function nt(e,t,n,r,o){var i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Fn(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Fn(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Rn,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=It,e.addEventListener(t,i?Rt:At,i)):e.removeEventListener(t,i?Rt:At,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Un(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=It++;else if(t.t<n.u)return;return n(p.event?p.event(t):t)}}}function Lt(e,t,n,r,o,i,a,c,s,u){var f,l,h,_,y,S,$,g,m,O,b,N,E,v,U,z,Ke,W=t.type;if(t.constructor!=null)return null;128&n.__u&&(s=!!(32&n.__u),i=[c=t.__e=n.__e]),(f=p.__b)&&f(t);e:if(typeof W=="function")try{if(g=t.props,m="prototype"in W&&W.prototype.render,O=(f=W.contextType)&&r[f.__c],b=f?O?O.props.value:f.__:r,n.__c?$=(l=t.__c=n.__c).__=l.__E:(m?t.__c=l=new W(g,b):(t.__c=l=new V(g,b),l.constructor=W,l.render=No),O&&O.sub(l),l.props=g,l.state||(l.state={}),l.context=b,l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),m&&l.__s==null&&(l.__s=l.state),m&&W.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Z({},l.__s)),Z(l.__s,W.getDerivedStateFromProps(g,l.__s))),_=l.props,y=l.state,l.__v=t,h)m&&W.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),m&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(m&&W.getDerivedStateFromProps==null&&g!==_&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,b),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,b)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ce){Ce&&(Ce.__=t)}),N=0;N<l._sb.length;N++)l.__h.push(l._sb[N]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,b),m&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(_,y,S)})}if(l.context=b,l.props=g,l.__P=e,l.__e=!1,E=p.__r,v=0,m){for(l.state=l.__s,l.__d=!1,E&&E(t),f=l.render(l.props,l.state,l.context),U=0;U<l._sb.length;U++)l.__h.push(l._sb[U]);l._sb=[]}else do l.__d=!1,E&&E(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++v<25);l.state=l.__s,l.getChildContext!=null&&(r=Z(Z({},r),l.getChildContext())),m&&!h&&l.getSnapshotBeforeUpdate!=null&&(S=l.getSnapshotBeforeUpdate(_,y)),z=f,f!=null&&f.type===G&&f.key==null&&(z=zn(f.props.children)),c=Mn(e,Me(z)?z:[z],t,n,r,o,i,a,c,s,u),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),$&&(l.__E=l.__=null)}catch(Ce){if(t.__v=null,s||i!=null)if(Ce.then){for(t.__u|=s?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else for(Ke=i.length;Ke--;)Pt(i[Ke]);else t.__e=n.__e,t.__k=n.__k;p.__e(Ce,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=ko(n.__e,t,n,r,o,i,a,s,u);return(f=p.diffed)&&f(t),128&t.__u?void 0:c}function Bn(e,t,n){for(var r=0;r<n.length;r++)Mt(n[r],n[++r],n[++r]);p.__c&&p.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){p.__e(i,o.__v)}})}function zn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Me(e)?e.map(zn):Z({},e)}function ko(e,t,n,r,o,i,a,c,s){var u,f,l,h,_,y,S,$=n.props,g=t.props,m=t.type;if(m=="svg"?o="http://www.w3.org/2000/svg":m=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((_=i[u])&&"setAttribute"in _==!!m&&(m?_.localName==m:_.nodeType==3)){e=_,i[u]=null;break}}if(e==null){if(m==null)return document.createTextNode(g);e=document.createElementNS(o,m,g.is&&g),c&&(p.__m&&p.__m(t,i),c=!1),i=null}if(m==null)$===g||c&&e.data==g||(e.data=g);else{if(i=i&&H.call(e.childNodes),$=n.props||Le,!c&&i!=null)for($={},u=0;u<e.attributes.length;u++)$[(_=e.attributes[u]).name]=_.value;for(u in $)if(_=$[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=_;else if(!(u in g)){if(u=="value"&&"defaultValue"in g||u=="checked"&&"defaultChecked"in g)continue;nt(e,u,null,_,o)}}for(u in g)_=g[u],u=="children"?h=_:u=="dangerouslySetInnerHTML"?f=_:u=="value"?y=_:u=="checked"?S=_:c&&typeof _!="function"||$[u]===_||nt(e,u,_,$[u],o);if(f)c||l&&(f.__html==l.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(l&&(e.innerHTML=""),Mn(t.type=="template"?e.content:e,Me(h)?h:[h],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&we(n,0),c,s),i!=null)for(u=i.length;u--;)Pt(i[u]);c||(u="value",m=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[u]||m=="progress"&&!y||m=="option"&&y!=$[u])&&nt(e,u,y,$[u],o),u="checked",S!=null&&S!=e[u]&&nt(e,u,S,$[u],o))}return e}function Mt(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){p.__e(o,n)}}function Wn(e,t,n){var r,o;if(p.unmount&&p.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Mt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){p.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Wn(r[o],t,n||typeof e.type!="function");n||Pt(e.__e),e.__c=e.__=e.__e=void 0}function No(e,t,n){return this.constructor(e,n)}function oe(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),p.__&&p.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],Lt(t,e=(!r&&n||t).__k=M(G,null,[e]),o||Le,Le,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?H.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Bn(i,e,a)}function Ht(e,t){oe(e,t,Ht)}function Ft(e,t,n){var r,o,i,a,c=Z({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:c[i]=t[i]==null&&a!=null?a[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?H.call(arguments,2):n),He(e.type,c,r||e.key,o||e.ref,null)}function jn(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(a){a.__e=!0,Dt(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+Pn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}H=Dn.slice,p={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},le=0,V.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Z({},this.state),typeof e=="function"&&(e=e(Z({},n),this.props)),e&&Z(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Dt(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Dt(this))},V.prototype.render=G,ue=[],In=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,An=function(e,t){return e.__v.__b-t.__v.__b},tt.__r=0,Rn=/(PointerCapture)$|Capture$/i,It=0,At=Un(!1),Rt=Un(!0),Pn=0;function Ut(){return(Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var To=["context","children"];function xo(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,a,c={},s=Object.keys(r);for(a=0;a<s.length;a++)o.indexOf(i=s[a])>=0||(c[i]=r[i]);return c}(e,To);return Ft(t,n)}function Io(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=M(xo,Ut({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},a=0,c=n.attributes,s=n.childNodes;for(a=c.length;a--;)c[a].name!=="slot"&&(i[c[a].name]=c[a].value,i[Gn(c[a].name)]=c[a].value);for(a=s.length;a--;){var u=t(s[a],null),f=s[a].slot;f?i[f]=M(Vn,{name:f},u):o[a]=u}var l=r?M(Vn,null,o):o;return M(r||n.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ht:oe)(this._vdom,this._root)}function Gn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Ao(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Gn(e)]=n,this._vdom=Ft(this._vdom,r),oe(this._vdom,this._root)}}function Ro(){oe(this._vdom=null,this._root)}function Vn(e,t){var n=this;return M("slot",Ut({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Po(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Io,o.prototype.attributeChangedCallback=Ao,o.prototype.disconnectedCallback=Ro,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(a){this._vdom?this.attributeChangedCallback(i,null,a):(this._props||(this._props={}),this._props[i]=a,this.connectedCallback());var c=typeof a;a!=null&&c!=="string"&&c!=="boolean"&&c!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}var Do=0;function d(e,t,n,r,o,i){t||(t={});var a,c,s=t;if("ref"in s)for(c in s={},t)c=="ref"?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Do,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(c in a)s[c]===void 0&&(s[c]=a[c]);return p.vnode&&p.vnode(u),u}const Yn={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var Se=(e=>(e.CAMERA_PROPS_CHANGED="face-auto-capture:camera-props-changed",e.CONTROL="face-auto-capture:control",e.DETECTED_FACE_CHANGED="face-auto-capture:detected-face-changed",e.FACE_DETECTION="face-auto-capture:face-detection",e.INSTRUCTION_CHANGED="face-auto-capture:instruction-changed",e.STATE_CHANGED="face-auto-capture:state-changed",e.VIDEO_ELEMENT_SIZE="face-auto-capture:video-element-size",e))(Se||{}),Bt=(e=>(e.ANIMATION_END="magnifeye-auto-capture:animation-end",e.CONTROL="magnifeye-auto-capture:control",e.STATUS_CHANGED="magnifeye-auto-capture:status-changed",e))(Bt||{});const zt={...{LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING",COMPLETE:"COMPLETE"},DONE:"DONE"},Zn={EYE_NOT_PRESENT:"eye_not_present"},P={CANDIDATE_SELECTION:"candidate_selection",FACE_TOO_CLOSE:"face_too_close",FACE_TOO_FAR:"face_too_far",FACE_CENTERING:"face_centering",FACE_NOT_PRESENT:"face_not_present",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",DEVICE_PITCHED:"device_pitched",LEFT_EYE_NOT_PRESENT:`left_${Zn.EYE_NOT_PRESENT}`,RIGHT_EYE_NOT_PRESENT:`right_${Zn.EYE_NOT_PRESENT}`,MOUTH_NOT_PRESENT:"mouth_not_present",MOUTH_SCORE_TOO_HIGH:"mouth_score_too_high",MOUTH_SCORE_TOO_LOW:"mouth_score_too_low"},Fe={...P,FIT_YOUR_EYE:"fit_your_eye"};var Ue=(e=>(e.CLOSEUP="CLOSEUP",e.DISTANT="DISTANT",e.MIDDLE="MIDDLE",e))(Ue||{});const be=zt;var ie,T,Wt,qn,$e=0,Xn=[],I=p,Kn=I.__b,Jn=I.__r,Qn=I.diffed,er=I.__c,tr=I.unmount,nr=I.__;function Oe(e,t){I.__h&&I.__h(T,e,$e||t),$e=0;var n=T.__H||(T.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function F(e){return $e=1,jt(ar,e)}function jt(e,t,n){var r=Oe(ie++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ar(void 0,t),function(c){var s=r.__N?r.__N[0]:r.__[0],u=r.t(s,c);s!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=T,!T.__f)){var o=function(c,s,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,c,s,u);var l=r.__c.props!==c;return f.forEach(function(h){if(h.__N){var _=h.__[0];h.__=h.__N,h.__N=void 0,_!==h.__[0]&&(l=!0)}}),i&&i.call(this,c,s,u)||l};T.__f=!0;var i=T.shouldComponentUpdate,a=T.componentWillUpdate;T.componentWillUpdate=function(c,s,u){if(this.__e){var f=i;i=void 0,o(c,s,u),i=f}a&&a.call(this,c,s,u)},T.shouldComponentUpdate=o}return r.__N||r.__}function q(e,t){var n=Oe(ie++,3);!I.__s&&Vt(n.__H,t)&&(n.__=e,n.u=t,T.__H.__h.push(n))}function ke(e,t){var n=Oe(ie++,4);!I.__s&&Vt(n.__H,t)&&(n.__=e,n.u=t,T.__h.push(n))}function Be(e){return $e=5,Q(function(){return{current:e}},[])}function rr(e,t,n){$e=6,ke(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Q(e,t){var n=Oe(ie++,7);return Vt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function fe(e,t){return $e=8,Q(function(){return e},t)}function ze(e){var t=T.context[e.__c],n=Oe(ie++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(T)),t.props.value):e.__}function rt(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function or(){var e=Oe(ie++,11);if(!e.__){for(var t=T.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Lo(){for(var e;e=Xn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ot),e.__H.__h.forEach(Gt),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){T=null,Kn&&Kn(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),nr&&nr(e,t)},I.__r=function(e){Jn&&Jn(e),ie=0;var t=(T=e.__c).__H;t&&(Wt===T?(t.__h=[],T.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(ot),t.__h.forEach(Gt),t.__h=[],ie=0)),Wt=T},I.diffed=function(e){Qn&&Qn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Xn.push(t)!==1&&qn===I.requestAnimationFrame||((qn=I.requestAnimationFrame)||Mo)(Lo)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Wt=T=null},I.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ot),n.__h=n.__h.filter(function(r){return!r.__||Gt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(r,n.__v)}}),er&&er(e,t)},I.unmount=function(e){tr&&tr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ot(r)}catch(o){t=o}}),n.__H=void 0,t&&I.__e(t,n.__v))};var ir=typeof requestAnimationFrame=="function";function Mo(e){var t,n=function(){clearTimeout(r),ir&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ir&&(t=requestAnimationFrame(n))}function ot(e){var t=T,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),T=t}function Gt(e){var t=T;e.__c=e.__(),T=t}function Vt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ar(e,t){return typeof t=="function"?t(e):t}var D=function(){return D=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},D.apply(this,arguments)};function de(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Ho(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fo=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Uo=Ho(function(e){return Fo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function sr(e,t){for(var n in t)e[n]=t[n];return e}function Yt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function cr(e,t){var n=t(),r=F({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ke(function(){o.__=n,o.u=t,Zt(o)&&i({t:o})},[e,n,t]),q(function(){return Zt(o)&&i({t:o}),e(function(){Zt(o)&&i({t:o})})},[e]),n}function Zt(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function lr(e){e()}function ur(e){return e}function fr(){return[!1,lr]}var dr=ke;function qt(e,t){this.props=e,this.context=t}function Bo(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Yt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,M(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qt.prototype=new V).isPureReactComponent=!0,qt.prototype.shouldComponentUpdate=function(e,t){return Yt(this.props,e)||Yt(this.state,t)};var _r=p.__b;p.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_r&&_r(e)};var zo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Wo(e){function t(n){var r=sr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=zo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var hr=function(e,t){return e==null?null:J(J(e).map(t))},jo={map:hr,forEach:hr,count:function(e){return e?J(e).length:0},only:function(e){var t=J(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:J},Go=p.__e;p.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Go(e,t,n,r)};var pr=p.unmount;function mr(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=sr({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return mr(r,t,n)})),e}function gr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return gr(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function it(){this.__u=0,this.o=null,this.__b=null}function yr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Vo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return M(n,i)}return o.displayName="Lazy",o.__f=!0,o}function We(){this.i=null,this.l=null}p.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),pr&&pr(e)},(it.prototype=new V).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=yr(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=a;var c=function(){if(!--r.__u){if(r.state.__a){var s=r.state.__a;r.__v.__k[0]=gr(s,s.__c.__P,s.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},it.prototype.componentWillUnmount=function(){this.o=[]},it.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=mr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&M(G,null,e.fallback);return o&&(o.__u&=-33),[M(G,null,t.__a?null:e.children),o]};var vr=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Yo(e){return this.getChildContext=function(){return e.context},e.children}function Zo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){oe(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},appendChild:function(o){this.childNodes.push(o),t.h.appendChild(o)},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}oe(M(Yo,{context:t.context},e.__v),t.v)}function qo(e,t){var n=M(Zo,{__v:e,h:t});return n.containerInfo=t,n}(We.prototype=new V).__a=function(e){var t=this,n=yr(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),vr(t,e,r)):o()};n?n(i):i()}},We.prototype.render=function(e){this.i=null,this.l=new Map;var t=J(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},We.prototype.componentDidUpdate=We.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){vr(e,n,t)})};var Cr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Xo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ko=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Jo=/[A-Z0-9]/g,Qo=typeof document<"u",ei=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ti(e,t,n){return t.__k==null&&(t.textContent=""),oe(e,t),typeof n=="function"&&n(),e?e.__c:null}function ni(e,t,n){return Ht(e,t),typeof n=="function"&&n(),e?e.__c:null}V.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(V.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Er=p.event;function ri(){}function oi(){return this.cancelBubble}function ii(){return this.defaultPrevented}p.event=function(e){return Er&&(e=Er(e)),e.persist=ri,e.isPropagationStopped=oi,e.isDefaultPrevented=ii,e.nativeEvent=e};var Xt,ai={enumerable:!1,configurable:!0,get:function(){return this.class}},wr=p.vnode;p.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var c=n[a];if(!(a==="value"&&"defaultValue"in n&&c==null||Qo&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var s=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&c===!0?c="":s==="translate"&&c==="no"?c=!1:s[0]==="o"&&s[1]==="n"?s==="ondoubleclick"?a="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||ei(n.type)?s==="onfocus"?a="onfocusin":s==="onblur"?a="onfocusout":Ko.test(a)&&(a=s):s=a="oninput":i&&Xo.test(a)?a=a.replace(Jo,"-$&").toLowerCase():c===null&&(c=void 0),s==="oninput"&&o[a=s]&&(a="oninputCapture"),o[a]=c}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=J(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=J(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ai)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Cr,wr&&wr(e)};var Sr=p.__r;p.__r=function(e){Sr&&Sr(e),Xt=e.__c};var br=p.diffed;p.diffed=function(e){br&&br(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Xt=null};var si={ReactCurrentDispatcher:{current:{readContext:function(e){return Xt.__n[e.__c].props.value},useCallback:fe,useContext:ze,useDebugValue:rt,useDeferredValue:ur,useEffect:q,useId:or,useImperativeHandle:rr,useInsertionEffect:dr,useLayoutEffect:ke,useMemo:Q,useReducer:jt,useRef:Be,useState:F,useSyncExternalStore:cr,useTransition:fr}}};function ci(e){return M.bind(null,e)}function at(e){return!!e&&e.$$typeof===Cr}function li(e){return at(e)&&e.type===G}function ui(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function fi(e){return at(e)?Ft.apply(null,arguments):e}function di(e){return!!e.__k&&(oe(null,e),!0)}function _i(e){return e&&(e.base||e.nodeType===1&&e)||null}var hi=function(e,t){return e(t)},pi=function(e,t){return e(t)},mi=G,gi=at,ee={useState:F,useId:or,useReducer:jt,useEffect:q,useLayoutEffect:ke,useInsertionEffect:dr,useTransition:fr,useDeferredValue:ur,useSyncExternalStore:cr,startTransition:lr,useRef:Be,useImperativeHandle:rr,useMemo:Q,useCallback:fe,useContext:ze,useDebugValue:rt,version:"18.3.1",Children:jo,render:ti,hydrate:ni,unmountComponentAtNode:di,createPortal:qo,createElement:M,createContext:jn,createFactory:ci,cloneElement:fi,createRef:bo,Fragment:G,isValidElement:at,isElement:gi,isFragment:li,isMemo:ui,findDOMNode:_i,Component:V,PureComponent:qt,memo:Bo,forwardRef:Wo,flushSync:pi,unstable_batchedUpdates:hi,StrictMode:mi,Suspense:it,SuspenseList:We,lazy:Vo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:si};function yi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kt,$r;function vi(){return $r||($r=1,Kt=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),c=Object.keys(n);if(a.length!==c.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var f=a[u];if(!s(f))return!1;var l=t[f],h=n[f];if(i=r?r.call(o,l,h,f):void 0,i===!1||i===void 0&&l!==h)return!1}return!0}),Kt}var Ci=vi();const Ei=yi(Ci);var x="-ms-",je="-moz-",k="-webkit-",Or="comm",st="rule",Jt="decl",wi="@import",kr="@keyframes",Si="@layer",Nr=Math.abs,Qt=String.fromCharCode,en=Object.assign;function bi(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function Tr(e){return e.trim()}function te(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function ct(e,t,n){return e.indexOf(t,n)}function R(e,t){return e.charCodeAt(t)|0}function Ne(e,t,n){return e.slice(t,n)}function X(e){return e.length}function xr(e){return e.length}function Ge(e,t){return t.push(e),e}function $i(e,t){return e.map(t).join("")}function Ir(e,t){return e.filter(function(n){return!te(n,t)})}var lt=1,Te=1,Ar=0,B=0,A=0,xe="";function ut(e,t,n,r,o,i,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:lt,column:Te,length:a,return:"",siblings:c}}function ae(e,t){return en(ut("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ie(e){for(;e.root;)e=ae(e.root,{children:[e]});Ge(e,e.siblings)}function Oi(){return A}function ki(){return A=B>0?R(xe,--B):0,Te--,A===10&&(Te=1,lt--),A}function Y(){return A=B<Ar?R(xe,B++):0,Te++,A===10&&(Te=1,lt++),A}function _e(){return R(xe,B)}function ft(){return B}function dt(e,t){return Ne(xe,e,t)}function tn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ni(e){return lt=Te=1,Ar=X(xe=e),B=0,[]}function Ti(e){return xe="",e}function nn(e){return Tr(dt(B-1,rn(e===91?e+2:e===40?e+1:e)))}function xi(e){for(;(A=_e())&&A<33;)Y();return tn(e)>2||tn(A)>3?"":" "}function Ii(e,t){for(;--t&&Y()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return dt(e,ft()+(t<6&&_e()==32&&Y()==32))}function rn(e){for(;Y();)switch(A){case e:return B;case 34:case 39:e!==34&&e!==39&&rn(A);break;case 40:e===41&&rn(e);break;case 92:Y();break}return B}function Ai(e,t){for(;Y()&&e+A!==57;)if(e+A===84&&_e()===47)break;return"/*"+dt(t,B-1)+"*"+Qt(e===47?e:Y())}function Ri(e){for(;!tn(_e());)Y();return dt(e,B)}function Pi(e){return Ti(_t("",null,null,null,[""],e=Ni(e),0,[0],e))}function _t(e,t,n,r,o,i,a,c,s){for(var u=0,f=0,l=a,h=0,_=0,y=0,S=1,$=1,g=1,m=0,O="",b=o,N=i,E=r,v=O;$;)switch(y=m,m=Y()){case 40:if(y!=108&&R(v,l-1)==58){ct(v+=C(nn(m),"&","&\f"),"&\f",Nr(u?c[u-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:v+=nn(m);break;case 9:case 10:case 13:case 32:v+=xi(y);break;case 92:v+=Ii(ft()-1,7);continue;case 47:switch(_e()){case 42:case 47:Ge(Di(Ai(Y(),ft()),t,n,s),s);break;default:v+="/"}break;case 123*S:c[u++]=X(v)*g;case 125*S:case 59:case 0:switch(m){case 0:case 125:$=0;case 59+f:g==-1&&(v=C(v,/\f/g,"")),_>0&&X(v)-l&&Ge(_>32?Pr(v+";",r,n,l-1,s):Pr(C(v," ","")+";",r,n,l-2,s),s);break;case 59:v+=";";default:if(Ge(E=Rr(v,t,n,u,f,o,c,O,b=[],N=[],l,i),i),m===123)if(f===0)_t(v,t,E,E,b,i,l,c,N);else switch(h===99&&R(v,3)===110?100:h){case 100:case 108:case 109:case 115:_t(e,E,E,r&&Ge(Rr(e,E,E,0,0,o,c,O,o,b=[],l,N),N),o,N,l,c,r?b:N);break;default:_t(v,E,E,E,[""],N,0,c,N)}}u=f=_=0,S=g=1,O=v="",l=a;break;case 58:l=1+X(v),_=y;default:if(S<1){if(m==123)--S;else if(m==125&&S++==0&&ki()==125)continue}switch(v+=Qt(m),m*S){case 38:g=f>0?1:(v+="\f",-1);break;case 44:c[u++]=(X(v)-1)*g,g=1;break;case 64:_e()===45&&(v+=nn(Y())),h=_e(),f=l=X(O=v+=Ri(ft())),m++;break;case 45:y===45&&X(v)==2&&(S=0)}}return i}function Rr(e,t,n,r,o,i,a,c,s,u,f,l){for(var h=o-1,_=o===0?i:[""],y=xr(_),S=0,$=0,g=0;S<r;++S)for(var m=0,O=Ne(e,h+1,h=Nr($=a[S])),b=e;m<y;++m)(b=Tr($>0?_[m]+" "+O:C(O,/&\f/g,_[m])))&&(s[g++]=b);return ut(e,t,n,o===0?st:c,s,u,f,l)}function Di(e,t,n,r){return ut(e,t,n,Or,Qt(Oi()),Ne(e,2,-2),0,r)}function Pr(e,t,n,r,o){return ut(e,t,n,Jt,Ne(e,0,r),Ne(e,r+1,-1),r,o)}function Dr(e,t,n){switch(bi(e,t)){case 5103:return k+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return k+e+e;case 4789:return je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+je+e+x+e+e;case 5936:switch(R(e,t+11)){case 114:return k+e+x+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+x+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+x+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return k+e+x+e+e;case 6165:return k+e+x+"flex-"+e+e;case 5187:return k+e+C(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+x+"flex-$1$2")+e;case 5443:return k+e+x+"flex-item-"+C(e,/flex-|-self/g,"")+(te(e,/flex-|baseline/)?"":x+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return k+e+x+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+x+C(e,"shrink","negative")+e;case 5292:return k+e+x+C(e,"basis","preferred-size")+e;case 6060:return k+"box-"+C(e,"-grow","")+k+e+x+C(e,"grow","positive")+e;case 4554:return k+C(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+x+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!te(e,/flex-|baseline/))return x+"grid-column-align"+Ne(e,t)+e;break;case 2592:case 3360:return x+C(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,te(r.props,/grid-\w+-end/)})?~ct(e+(n=n[t].value),"span",0)?e:x+C(e,"-start","")+e+x+"grid-row-span:"+(~ct(n,"span",0)?te(n,/\d+/):+te(n,/\d+/)-+te(e,/\d+/))+";":x+C(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return te(r.props,/grid-\w+-start/)})?e:x+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,k+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(X(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+je+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch",0)?Dr(C(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,a,c,s,u){return x+o+":"+i+u+(a?x+o+"-span:"+(c?s:+s-+i)+u:"")+e});case 4949:if(R(e,t+6)===121)return C(e,":",":"+k)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(R(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+x+"$2box$3")+e;case 100:return C(e,":",":"+x)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function ht(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Li(e,t,n,r){switch(e.type){case Si:if(e.children.length)break;case wi:case Jt:return e.return=e.return||e.value;case Or:return"";case kr:return e.return=e.value+"{"+ht(e.children,r)+"}";case st:if(!X(e.value=e.props.join(",")))return""}return X(n=ht(e.children,r))?e.return=e.value+"{"+n+"}":""}function Mi(e){var t=xr(e);return function(n,r,o,i){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,i)||"";return a}}function Hi(e){return function(t){t.root||(t=t.return)&&e(t)}}function Fi(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Jt:e.return=Dr(e.value,e.length,n);return;case kr:return ht([ae(e,{value:C(e.value,"@","@"+k)})],r);case st:if(e.length)return $i(n=e.props,function(o){switch(te(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ie(ae(e,{props:[C(o,/:(read-\w+)/,":"+je+"$1")]})),Ie(ae(e,{props:[o]})),en(e,{props:Ir(n,r)});break;case"::placeholder":Ie(ae(e,{props:[C(o,/:(plac\w+)/,":"+k+"input-$1")]})),Ie(ae(e,{props:[C(o,/:(plac\w+)/,":"+je+"$1")]})),Ie(ae(e,{props:[C(o,/:(plac\w+)/,x+"input-$1")]})),Ie(ae(e,{props:[o]})),en(e,{props:Ir(n,r)});break}return""})}}var Ui={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w={},he=typeof process<"u"&&w!==void 0&&(w.REACT_APP_SC_ATTR||w.SC_ATTR)||"data-styled",Lr="active",Mr="data-styled-version",pt="6.1.18",on=`/*!sc*/
|
|
2
|
-
`,
|
|
1
|
+
(function(re){typeof define=="function"&&define.amd?define(re):re()})(function(){"use strict";var re,v,$n,le,kn,On,Nn,Tn,Ot,Nt,Tt,xn,Le={},In=[],Co=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,De=Array.isArray;function Y(e,t){for(var n in t)e[n]=t[n];return e}function xt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function M(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?re.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]==null&&(a[i]=e.defaultProps[i]);return Me(e,a,r,o,null)}function Me(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++$n,__i:-1,__u:0};return o==null&&v.vnode!=null&&v.vnode(i),i}function Eo(){return{current:null}}function j(e){return e.children}function G(e,t){this.props=e,this.context=t}function Ee(e,t){if(t==null)return e.__?Ee(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"?Ee(e):null}function An(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return An(e)}}function It(e){(!e.__d&&(e.__d=!0)&&le.push(e)&&!et.__r++||kn!=v.debounceRendering)&&((kn=v.debounceRendering)||On)(et)}function et(){for(var e,t,n,r,o,i,a,c=1;le.length;)le.length>c&&le.sort(Nn),e=le.shift(),c=le.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Y({},r)).__v=r.__v+1,v.vnode&&v.vnode(n),At(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Ee(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,Mn(i,n,a),n.__e!=o&&An(n)));et.__r=0}function Rn(e,t,n,r,o,i,a,c,s,u,f){var l,p,_,g,S,$,m=r&&r.__k||In,h=t.length;for(s=wo(n,t,m,s,h),l=0;l<h;l++)(_=n.__k[l])!=null&&(p=_.__i==-1?Le:m[_.__i]||Le,_.__i=l,$=At(e,_,p,o,i,a,c,s,u,f),g=_.__e,_.ref&&p.ref!=_.ref&&(p.ref&&Rt(p.ref,null,_),f.push(_.ref,_.__c||g,_)),S==null&&g!=null&&(S=g),4&_.__u||p.__k===_.__k?s=Pn(_,s,e):typeof _.type=="function"&&$!==void 0?s=$:g&&(s=g.nextSibling),_.__u&=-7);return n.__e=S,s}function wo(e,t,n,r,o){var i,a,c,s,u,f=n.length,l=f,p=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(s=i+p,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Me(null,a,null,null,null):De(a)?Me(j,{children:a},null,null,null):a.constructor==null&&a.__b>0?Me(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,c=null,(u=a.__i=So(a,n,s,l))!=-1&&(l--,(c=n[u])&&(c.__u|=2)),c==null||c.__v==null?(u==-1&&(o>f?p--:o<f&&p++),typeof a.type!="function"&&(a.__u|=4)):u!=s&&(u==s-1?p--:u==s+1?p++:(u>s?p--:p++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<f;i++)(c=n[i])!=null&&(2&c.__u)==0&&(c.__e==r&&(r=Ee(c)),Fn(c,c));return r}function Pn(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Pn(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Ee(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function K(e,t){return t=t||[],e==null||typeof e=="boolean"||(De(e)?e.some(function(n){K(n,t)}):t.push(e)),t}function So(e,t,n,r){var o,i,a=e.key,c=e.type,s=t[n];if(s===null&&e.key==null||s&&a==s.key&&c==s.type&&(2&s.__u)==0)return n;if(r>(s!=null&&(2&s.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((s=t[o])&&(2&s.__u)==0&&a==s.key&&c==s.type)return o;o--}if(i<t.length){if((s=t[i])&&(2&s.__u)==0&&a==s.key&&c==s.type)return i;i++}}return-1}function Ln(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Co.test(t)?n:n+"px"}function tt(e,t,n,r,o){var i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ln(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Ln(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Tn,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Ot,e.addEventListener(t,i?Tt:Nt,i)):e.removeEventListener(t,i?Tt:Nt,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Dn(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Ot++;else if(t.t<n.u)return;return n(v.event?v.event(t):t)}}}function At(e,t,n,r,o,i,a,c,s,u){var f,l,p,_,g,S,$,m,h,k,b,N,E,y,F,B,Xe,z=t.type;if(t.constructor!=null)return null;128&n.__u&&(s=!!(32&n.__u),i=[c=t.__e=n.__e]),(f=v.__b)&&f(t);e:if(typeof z=="function")try{if(m=t.props,h="prototype"in z&&z.prototype.render,k=(f=z.contextType)&&r[f.__c],b=f?k?k.props.value:f.__:r,n.__c?$=(l=t.__c=n.__c).__=l.__E:(h?t.__c=l=new z(m,b):(t.__c=l=new G(m,b),l.constructor=z,l.render=$o),k&&k.sub(l),l.props=m,l.state||(l.state={}),l.context=b,l.__n=r,p=l.__d=!0,l.__h=[],l._sb=[]),h&&l.__s==null&&(l.__s=l.state),h&&z.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Y({},l.__s)),Y(l.__s,z.getDerivedStateFromProps(m,l.__s))),_=l.props,g=l.state,l.__v=t,p)h&&z.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),h&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(h&&z.getDerivedStateFromProps==null&&m!==_&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(m,b),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(m,l.__s,b)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(l.props=m,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(ve){ve&&(ve.__=t)}),N=0;N<l._sb.length;N++)l.__h.push(l._sb[N]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(m,l.__s,b),h&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(_,g,S)})}if(l.context=b,l.props=m,l.__P=e,l.__e=!1,E=v.__r,y=0,h){for(l.state=l.__s,l.__d=!1,E&&E(t),f=l.render(l.props,l.state,l.context),F=0;F<l._sb.length;F++)l.__h.push(l._sb[F]);l._sb=[]}else do l.__d=!1,E&&E(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++y<25);l.state=l.__s,l.getChildContext!=null&&(r=Y(Y({},r),l.getChildContext())),h&&!p&&l.getSnapshotBeforeUpdate!=null&&(S=l.getSnapshotBeforeUpdate(_,g)),B=f,f!=null&&f.type===j&&f.key==null&&(B=Hn(f.props.children)),c=Rn(e,De(B)?B:[B],t,n,r,o,i,a,c,s,u),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),$&&(l.__E=l.__=null)}catch(ve){if(t.__v=null,s||i!=null)if(ve.then){for(t.__u|=s?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else for(Xe=i.length;Xe--;)xt(i[Xe]);else t.__e=n.__e,t.__k=n.__k;v.__e(ve,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=bo(n.__e,t,n,r,o,i,a,s,u);return(f=v.diffed)&&f(t),128&t.__u?void 0:c}function Mn(e,t,n){for(var r=0;r<n.length;r++)Rt(n[r],n[++r],n[++r]);v.__c&&v.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){v.__e(i,o.__v)}})}function Hn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:De(e)?e.map(Hn):Y({},e)}function bo(e,t,n,r,o,i,a,c,s){var u,f,l,p,_,g,S,$=n.props,m=t.props,h=t.type;if(h=="svg"?o="http://www.w3.org/2000/svg":h=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((_=i[u])&&"setAttribute"in _==!!h&&(h?_.localName==h:_.nodeType==3)){e=_,i[u]=null;break}}if(e==null){if(h==null)return document.createTextNode(m);e=document.createElementNS(o,h,m.is&&m),c&&(v.__m&&v.__m(t,i),c=!1),i=null}if(h==null)$===m||c&&e.data==m||(e.data=m);else{if(i=i&&re.call(e.childNodes),$=n.props||Le,!c&&i!=null)for($={},u=0;u<e.attributes.length;u++)$[(_=e.attributes[u]).name]=_.value;for(u in $)if(_=$[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=_;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;tt(e,u,null,_,o)}}for(u in m)_=m[u],u=="children"?p=_:u=="dangerouslySetInnerHTML"?f=_:u=="value"?g=_:u=="checked"?S=_:c&&typeof _!="function"||$[u]===_||tt(e,u,_,$[u],o);if(f)c||l&&(f.__html==l.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(l&&(e.innerHTML=""),Rn(t.type=="template"?e.content:e,De(p)?p:[p],t,n,r,h=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Ee(n,0),c,s),i!=null)for(u=i.length;u--;)xt(i[u]);c||(u="value",h=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[u]||h=="progress"&&!g||h=="option"&&g!=$[u])&&tt(e,u,g,$[u],o),u="checked",S!=null&&S!=e[u]&&tt(e,u,S,$[u],o))}return e}function Rt(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){v.__e(o,n)}}function Fn(e,t,n){var r,o;if(v.unmount&&v.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Rt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){v.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Fn(r[o],t,n||typeof e.type!="function");n||xt(e.__e),e.__c=e.__=e.__e=void 0}function $o(e,t,n){return this.constructor(e,n)}function oe(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),v.__&&v.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],At(t,e=(!r&&n||t).__k=M(j,null,[e]),o||Le,Le,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?re.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Mn(i,e,a)}function Pt(e,t){oe(e,t,Pt)}function Lt(e,t,n){var r,o,i,a,c=Y({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:c[i]=t[i]==null&&a!=null?a[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?re.call(arguments,2):n),Me(e.type,c,r||e.key,o||e.ref,null)}function Un(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(a){a.__e=!0,It(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+xn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}re=In.slice,v={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},$n=0,G.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Y({},this.state),typeof e=="function"&&(e=e(Y({},n),this.props)),e&&Y(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),It(this))},G.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),It(this))},G.prototype.render=j,le=[],On=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Nn=function(e,t){return e.__v.__b-t.__v.__b},et.__r=0,Tn=/(PointerCapture)$|Capture$/i,Ot=0,Nt=Dn(!1),Tt=Dn(!0),xn=0;function Dt(){return(Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ko=["context","children"];function Oo(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,a,c={},s=Object.keys(r);for(a=0;a<s.length;a++)o.indexOf(i=s[a])>=0||(c[i]=r[i]);return c}(e,ko);return Lt(t,n)}function No(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=M(Oo,Dt({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},a=0,c=n.attributes,s=n.childNodes;for(a=c.length;a--;)c[a].name!=="slot"&&(i[c[a].name]=c[a].value,i[Bn(c[a].name)]=c[a].value);for(a=s.length;a--;){var u=t(s[a],null),f=s[a].slot;f?i[f]=M(zn,{name:f},u):o[a]=u}var l=r?M(zn,null,o):o;return M(r||n.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Pt:oe)(this._vdom,this._root)}function Bn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function To(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Bn(e)]=n,this._vdom=Lt(this._vdom,r),oe(this._vdom,this._root)}}function xo(){oe(this._vdom=null,this._root)}function zn(e,t){var n=this;return M("slot",Dt({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Io(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=No,o.prototype.attributeChangedCallback=To,o.prototype.disconnectedCallback=xo,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(a){this._vdom?this.attributeChangedCallback(i,null,a):(this._props||(this._props={}),this._props[i]=a,this.connectedCallback());var c=typeof a;a!=null&&c!=="string"&&c!=="boolean"&&c!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}var Ao=0;function d(e,t,n,r,o,i){t||(t={});var a,c,s=t;if("ref"in s)for(c in s={},t)c=="ref"?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ao,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(c in a)s[c]===void 0&&(s[c]=a[c]);return v.vnode&&v.vnode(u),u}const Wn={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var we=(e=>(e.CAMERA_PROPS_CHANGED="face-auto-capture:camera-props-changed",e.CONTROL="face-auto-capture:control",e.DETECTION_CHANGED="face-auto-capture:detection-changed",e.FACE_DETECTION="face-auto-capture:face-detection",e.INSTRUCTION_CHANGED="face-auto-capture:instruction-changed",e.STATE_CHANGED="face-auto-capture:state-changed",e.VIDEO_ELEMENT_SIZE="face-auto-capture:video-element-size",e))(we||{}),Mt=(e=>(e.ANIMATION_END="magnifeye-auto-capture:animation-end",e.CONTROL="magnifeye-auto-capture:control",e.STATUS_CHANGED="magnifeye-auto-capture:status-changed",e))(Mt||{});const Ht={...{LOADING:"loading",ERROR:"error",WAITING:"waiting",RUNNING:"running",COMPLETE:"complete"},DONE:"done"},jn={EYE_NOT_PRESENT:"eye_not_present"},P={CANDIDATE_SELECTION:"candidate_selection",FACE_TOO_CLOSE:"face_too_close",FACE_TOO_FAR:"face_too_far",FACE_CENTERING:"face_centering",FACE_NOT_PRESENT:"face_not_present",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",DEVICE_PITCHED:"device_pitched",LEFT_EYE_NOT_PRESENT:`left_${jn.EYE_NOT_PRESENT}`,RIGHT_EYE_NOT_PRESENT:`right_${jn.EYE_NOT_PRESENT}`,MOUTH_NOT_PRESENT:"mouth_not_present",MOUTH_SCORE_TOO_HIGH:"mouth_score_too_high",MOUTH_SCORE_TOO_LOW:"mouth_score_too_low"},He={...P,FIT_YOUR_EYE:"fit_your_eye"};var Fe=(e=>(e.CLOSEUP="CLOSEUP",e.DISTANT="DISTANT",e.MIDDLE="MIDDLE",e))(Fe||{});const Se=Ht;var ie,T,Ft,Gn,be=0,Vn=[],I=v,Yn=I.__b,Zn=I.__r,qn=I.diffed,Xn=I.__c,Kn=I.unmount,Jn=I.__;function $e(e,t){I.__h&&I.__h(T,e,be||t),be=0;var n=T.__H||(T.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function H(e){return be=1,Ut(nr,e)}function Ut(e,t,n){var r=$e(ie++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):nr(void 0,t),function(c){var s=r.__N?r.__N[0]:r.__[0],u=r.t(s,c);s!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=T,!T.__f)){var o=function(c,s,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,c,s,u);var l=r.__c.props!==c;return f.forEach(function(p){if(p.__N){var _=p.__[0];p.__=p.__N,p.__N=void 0,_!==p.__[0]&&(l=!0)}}),i&&i.call(this,c,s,u)||l};T.__f=!0;var i=T.shouldComponentUpdate,a=T.componentWillUpdate;T.componentWillUpdate=function(c,s,u){if(this.__e){var f=i;i=void 0,o(c,s,u),i=f}a&&a.call(this,c,s,u)},T.shouldComponentUpdate=o}return r.__N||r.__}function Z(e,t){var n=$e(ie++,3);!I.__s&&zt(n.__H,t)&&(n.__=e,n.u=t,T.__H.__h.push(n))}function ke(e,t){var n=$e(ie++,4);!I.__s&&zt(n.__H,t)&&(n.__=e,n.u=t,T.__h.push(n))}function Ue(e){return be=5,J(function(){return{current:e}},[])}function Qn(e,t,n){be=6,ke(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function J(e,t){var n=$e(ie++,7);return zt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ue(e,t){return be=8,J(function(){return e},t)}function Be(e){var t=T.context[e.__c],n=$e(ie++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(T)),t.props.value):e.__}function nt(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function er(){var e=$e(ie++,11);if(!e.__){for(var t=T.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Ro(){for(var e;e=Vn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(rt),e.__H.__h.forEach(Bt),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){T=null,Yn&&Yn(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Jn&&Jn(e,t)},I.__r=function(e){Zn&&Zn(e),ie=0;var t=(T=e.__c).__H;t&&(Ft===T?(t.__h=[],T.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(rt),t.__h.forEach(Bt),t.__h=[],ie=0)),Ft=T},I.diffed=function(e){qn&&qn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Vn.push(t)!==1&&Gn===I.requestAnimationFrame||((Gn=I.requestAnimationFrame)||Po)(Ro)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ft=T=null},I.__c=function(e,t){t.some(function(n){try{n.__h.forEach(rt),n.__h=n.__h.filter(function(r){return!r.__||Bt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(r,n.__v)}}),Xn&&Xn(e,t)},I.unmount=function(e){Kn&&Kn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{rt(r)}catch(o){t=o}}),n.__H=void 0,t&&I.__e(t,n.__v))};var tr=typeof requestAnimationFrame=="function";function Po(e){var t,n=function(){clearTimeout(r),tr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);tr&&(t=requestAnimationFrame(n))}function rt(e){var t=T,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),T=t}function Bt(e){var t=T;e.__c=e.__(),T=t}function zt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function nr(e,t){return typeof t=="function"?t(e):t}var L=function(){return L=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},L.apply(this,arguments)};function fe(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Lo(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Do=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Mo=Lo(function(e){return Do.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function rr(e,t){for(var n in t)e[n]=t[n];return e}function Wt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function or(e,t){var n=t(),r=H({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ke(function(){o.__=n,o.u=t,jt(o)&&i({t:o})},[e,n,t]),Z(function(){return jt(o)&&i({t:o}),e(function(){jt(o)&&i({t:o})})},[e]),n}function jt(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function ir(e){e()}function ar(e){return e}function sr(){return[!1,ir]}var cr=ke;function Gt(e,t){this.props=e,this.context=t}function Ho(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Wt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,M(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Gt.prototype=new G).isPureReactComponent=!0,Gt.prototype.shouldComponentUpdate=function(e,t){return Wt(this.props,e)||Wt(this.state,t)};var lr=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),lr&&lr(e)};var Fo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Uo(e){function t(n){var r=rr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Fo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ur=function(e,t){return e==null?null:K(K(e).map(t))},Bo={map:ur,forEach:ur,count:function(e){return e?K(e).length:0},only:function(e){var t=K(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:K},zo=v.__e;v.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}zo(e,t,n,r)};var fr=v.unmount;function dr(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=rr({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return dr(r,t,n)})),e}function _r(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return _r(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ot(){this.__u=0,this.o=null,this.__b=null}function pr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Wo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return M(n,i)}return o.displayName="Lazy",o.__f=!0,o}function ze(){this.i=null,this.l=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),fr&&fr(e)},(ot.prototype=new G).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=pr(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=a;var c=function(){if(!--r.__u){if(r.state.__a){var s=r.state.__a;r.__v.__k[0]=_r(s,s.__c.__P,s.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},ot.prototype.componentWillUnmount=function(){this.o=[]},ot.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=dr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&M(j,null,e.fallback);return o&&(o.__u&=-33),[M(j,null,t.__a?null:e.children),o]};var hr=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function jo(e){return this.getChildContext=function(){return e.context},e.children}function Go(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){oe(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},appendChild:function(o){this.childNodes.push(o),t.h.appendChild(o)},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}oe(M(jo,{context:t.context},e.__v),t.v)}function Vo(e,t){var n=M(Go,{__v:e,h:t});return n.containerInfo=t,n}(ze.prototype=new G).__a=function(e){var t=this,n=pr(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),hr(t,e,r)):o()};n?n(i):i()}},ze.prototype.render=function(e){this.i=null,this.l=new Map;var t=K(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},ze.prototype.componentDidUpdate=ze.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){hr(e,n,t)})};var mr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Yo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Zo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,qo=/[A-Z0-9]/g,Xo=typeof document<"u",Ko=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Jo(e,t,n){return t.__k==null&&(t.textContent=""),oe(e,t),typeof n=="function"&&n(),e?e.__c:null}function Qo(e,t,n){return Pt(e,t),typeof n=="function"&&n(),e?e.__c:null}G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(G.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var gr=v.event;function ei(){}function ti(){return this.cancelBubble}function ni(){return this.defaultPrevented}v.event=function(e){return gr&&(e=gr(e)),e.persist=ei,e.isPropagationStopped=ti,e.isDefaultPrevented=ni,e.nativeEvent=e};var Vt,ri={enumerable:!1,configurable:!0,get:function(){return this.class}},yr=v.vnode;v.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var c=n[a];if(!(a==="value"&&"defaultValue"in n&&c==null||Xo&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var s=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&c===!0?c="":s==="translate"&&c==="no"?c=!1:s[0]==="o"&&s[1]==="n"?s==="ondoubleclick"?a="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||Ko(n.type)?s==="onfocus"?a="onfocusin":s==="onblur"?a="onfocusout":Zo.test(a)&&(a=s):s=a="oninput":i&&Yo.test(a)?a=a.replace(qo,"-$&").toLowerCase():c===null&&(c=void 0),s==="oninput"&&o[a=s]&&(a="oninputCapture"),o[a]=c}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=K(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=K(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ri)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=mr,yr&&yr(e)};var vr=v.__r;v.__r=function(e){vr&&vr(e),Vt=e.__c};var Cr=v.diffed;v.diffed=function(e){Cr&&Cr(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Vt=null};var oi={ReactCurrentDispatcher:{current:{readContext:function(e){return Vt.__n[e.__c].props.value},useCallback:ue,useContext:Be,useDebugValue:nt,useDeferredValue:ar,useEffect:Z,useId:er,useImperativeHandle:Qn,useInsertionEffect:cr,useLayoutEffect:ke,useMemo:J,useReducer:Ut,useRef:Ue,useState:H,useSyncExternalStore:or,useTransition:sr}}};function ii(e){return M.bind(null,e)}function it(e){return!!e&&e.$$typeof===mr}function ai(e){return it(e)&&e.type===j}function si(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ci(e){return it(e)?Lt.apply(null,arguments):e}function li(e){return!!e.__k&&(oe(null,e),!0)}function ui(e){return e&&(e.base||e.nodeType===1&&e)||null}var fi=function(e,t){return e(t)},di=function(e,t){return e(t)},_i=j,pi=it,Q={useState:H,useId:er,useReducer:Ut,useEffect:Z,useLayoutEffect:ke,useInsertionEffect:cr,useTransition:sr,useDeferredValue:ar,useSyncExternalStore:or,startTransition:ir,useRef:Ue,useImperativeHandle:Qn,useMemo:J,useCallback:ue,useContext:Be,useDebugValue:nt,version:"18.3.1",Children:Bo,render:Jo,hydrate:Qo,unmountComponentAtNode:li,createPortal:Vo,createElement:M,createContext:Un,createFactory:ii,cloneElement:ci,createRef:Eo,Fragment:j,isValidElement:it,isElement:pi,isFragment:ai,isMemo:si,findDOMNode:ui,Component:G,PureComponent:Gt,memo:Ho,forwardRef:Uo,flushSync:di,unstable_batchedUpdates:fi,StrictMode:_i,Suspense:ot,SuspenseList:ze,lazy:Wo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oi};function hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yt,Er;function mi(){return Er||(Er=1,Yt=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),c=Object.keys(n);if(a.length!==c.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var f=a[u];if(!s(f))return!1;var l=t[f],p=n[f];if(i=r?r.call(o,l,p,f):void 0,i===!1||i===void 0&&l!==p)return!1}return!0}),Yt}var gi=mi();const yi=hi(gi);var x="-ms-",We="-moz-",O="-webkit-",wr="comm",at="rule",Zt="decl",vi="@import",Sr="@keyframes",Ci="@layer",br=Math.abs,qt=String.fromCharCode,Xt=Object.assign;function Ei(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function $r(e){return e.trim()}function ee(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function st(e,t,n){return e.indexOf(t,n)}function R(e,t){return e.charCodeAt(t)|0}function Oe(e,t,n){return e.slice(t,n)}function q(e){return e.length}function kr(e){return e.length}function je(e,t){return t.push(e),e}function wi(e,t){return e.map(t).join("")}function Or(e,t){return e.filter(function(n){return!ee(n,t)})}var ct=1,Ne=1,Nr=0,U=0,A=0,Te="";function lt(e,t,n,r,o,i,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ct,column:Ne,length:a,return:"",siblings:c}}function ae(e,t){return Xt(lt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xe(e){for(;e.root;)e=ae(e.root,{children:[e]});je(e,e.siblings)}function Si(){return A}function bi(){return A=U>0?R(Te,--U):0,Ne--,A===10&&(Ne=1,ct--),A}function V(){return A=U<Nr?R(Te,U++):0,Ne++,A===10&&(Ne=1,ct++),A}function de(){return R(Te,U)}function ut(){return U}function ft(e,t){return Oe(Te,e,t)}function Kt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $i(e){return ct=Ne=1,Nr=q(Te=e),U=0,[]}function ki(e){return Te="",e}function Jt(e){return $r(ft(U-1,Qt(e===91?e+2:e===40?e+1:e)))}function Oi(e){for(;(A=de())&&A<33;)V();return Kt(e)>2||Kt(A)>3?"":" "}function Ni(e,t){for(;--t&&V()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return ft(e,ut()+(t<6&&de()==32&&V()==32))}function Qt(e){for(;V();)switch(A){case e:return U;case 34:case 39:e!==34&&e!==39&&Qt(A);break;case 40:e===41&&Qt(e);break;case 92:V();break}return U}function Ti(e,t){for(;V()&&e+A!==57;)if(e+A===84&&de()===47)break;return"/*"+ft(t,U-1)+"*"+qt(e===47?e:V())}function xi(e){for(;!Kt(de());)V();return ft(e,U)}function Ii(e){return ki(dt("",null,null,null,[""],e=$i(e),0,[0],e))}function dt(e,t,n,r,o,i,a,c,s){for(var u=0,f=0,l=a,p=0,_=0,g=0,S=1,$=1,m=1,h=0,k="",b=o,N=i,E=r,y=k;$;)switch(g=h,h=V()){case 40:if(g!=108&&R(y,l-1)==58){st(y+=C(Jt(h),"&","&\f"),"&\f",br(u?c[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:y+=Jt(h);break;case 9:case 10:case 13:case 32:y+=Oi(g);break;case 92:y+=Ni(ut()-1,7);continue;case 47:switch(de()){case 42:case 47:je(Ai(Ti(V(),ut()),t,n,s),s);break;default:y+="/"}break;case 123*S:c[u++]=q(y)*m;case 125*S:case 59:case 0:switch(h){case 0:case 125:$=0;case 59+f:m==-1&&(y=C(y,/\f/g,"")),_>0&&q(y)-l&&je(_>32?xr(y+";",r,n,l-1,s):xr(C(y," ","")+";",r,n,l-2,s),s);break;case 59:y+=";";default:if(je(E=Tr(y,t,n,u,f,o,c,k,b=[],N=[],l,i),i),h===123)if(f===0)dt(y,t,E,E,b,i,l,c,N);else switch(p===99&&R(y,3)===110?100:p){case 100:case 108:case 109:case 115:dt(e,E,E,r&&je(Tr(e,E,E,0,0,o,c,k,o,b=[],l,N),N),o,N,l,c,r?b:N);break;default:dt(y,E,E,E,[""],N,0,c,N)}}u=f=_=0,S=m=1,k=y="",l=a;break;case 58:l=1+q(y),_=g;default:if(S<1){if(h==123)--S;else if(h==125&&S++==0&&bi()==125)continue}switch(y+=qt(h),h*S){case 38:m=f>0?1:(y+="\f",-1);break;case 44:c[u++]=(q(y)-1)*m,m=1;break;case 64:de()===45&&(y+=Jt(V())),p=de(),f=l=q(k=y+=xi(ut())),h++;break;case 45:g===45&&q(y)==2&&(S=0)}}return i}function Tr(e,t,n,r,o,i,a,c,s,u,f,l){for(var p=o-1,_=o===0?i:[""],g=kr(_),S=0,$=0,m=0;S<r;++S)for(var h=0,k=Oe(e,p+1,p=br($=a[S])),b=e;h<g;++h)(b=$r($>0?_[h]+" "+k:C(k,/&\f/g,_[h])))&&(s[m++]=b);return lt(e,t,n,o===0?at:c,s,u,f,l)}function Ai(e,t,n,r){return lt(e,t,n,wr,qt(Si()),Oe(e,2,-2),0,r)}function xr(e,t,n,r,o){return lt(e,t,n,Zt,Oe(e,0,r),Oe(e,r+1,-1),r,o)}function Ir(e,t,n){switch(Ei(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 4789:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+We+e+x+e+e;case 5936:switch(R(e,t+11)){case 114:return O+e+x+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+x+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+x+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return O+e+x+e+e;case 6165:return O+e+x+"flex-"+e+e;case 5187:return O+e+C(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+x+"flex-$1$2")+e;case 5443:return O+e+x+"flex-item-"+C(e,/flex-|-self/g,"")+(ee(e,/flex-|baseline/)?"":x+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return O+e+x+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return O+e+x+C(e,"shrink","negative")+e;case 5292:return O+e+x+C(e,"basis","preferred-size")+e;case 6060:return O+"box-"+C(e,"-grow","")+O+e+x+C(e,"grow","positive")+e;case 4554:return O+C(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+x+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4200:if(!ee(e,/flex-|baseline/))return x+"grid-column-align"+Oe(e,t)+e;break;case 2592:case 3360:return x+C(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ee(r.props,/grid-\w+-end/)})?~st(e+(n=n[t].value),"span",0)?e:x+C(e,"-start","")+e+x+"grid-row-span:"+(~st(n,"span",0)?ee(n,/\d+/):+ee(n,/\d+/)-+ee(e,/\d+/))+";":x+C(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ee(r.props,/grid-\w+-start/)})?e:x+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+We+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~st(e,"stretch",0)?Ir(C(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,a,c,s,u){return x+o+":"+i+u+(a?x+o+"-span:"+(c?s:+s-+i)+u:"")+e});case 4949:if(R(e,t+6)===121)return C(e,":",":"+O)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(R(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+x+"$2box$3")+e;case 100:return C(e,":",":"+x)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function _t(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ri(e,t,n,r){switch(e.type){case Ci:if(e.children.length)break;case vi:case Zt:return e.return=e.return||e.value;case wr:return"";case Sr:return e.return=e.value+"{"+_t(e.children,r)+"}";case at:if(!q(e.value=e.props.join(",")))return""}return q(n=_t(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pi(e){var t=kr(e);return function(n,r,o,i){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,i)||"";return a}}function Li(e){return function(t){t.root||(t=t.return)&&e(t)}}function Di(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Zt:e.return=Ir(e.value,e.length,n);return;case Sr:return _t([ae(e,{value:C(e.value,"@","@"+O)})],r);case at:if(e.length)return wi(n=e.props,function(o){switch(ee(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xe(ae(e,{props:[C(o,/:(read-\w+)/,":"+We+"$1")]})),xe(ae(e,{props:[o]})),Xt(e,{props:Or(n,r)});break;case"::placeholder":xe(ae(e,{props:[C(o,/:(plac\w+)/,":"+O+"input-$1")]})),xe(ae(e,{props:[C(o,/:(plac\w+)/,":"+We+"$1")]})),xe(ae(e,{props:[C(o,/:(plac\w+)/,x+"input-$1")]})),xe(ae(e,{props:[o]})),Xt(e,{props:Or(n,r)});break}return""})}}var Mi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w={},_e=typeof process<"u"&&w!==void 0&&(w.REACT_APP_SC_ATTR||w.SC_ATTR)||"data-styled",Ar="active",Rr="data-styled-version",pt="6.1.18",en=`/*!sc*/
|
|
2
|
+
`,ht=typeof window<"u"&&typeof document<"u",Hi=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&w!==void 0&&w.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&w.REACT_APP_SC_DISABLE_SPEEDY!==""?w.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&w.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&w!==void 0&&w.SC_DISABLE_SPEEDY!==void 0&&w.SC_DISABLE_SPEEDY!==""?w.SC_DISABLE_SPEEDY!=="false"&&w.SC_DISABLE_SPEEDY:w.NODE_ENV!=="production"),Pr=/invalid hook call/i,mt=new Set,Fi=function(e,t){if(w.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
3
|
`)+`You may see this warning because you've called styled inside another component.
|
|
4
4
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5
5
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
6
|
-
`,o=console.error;try{var i=!0;console.error=function(a){for(var c=[],s=1;s<arguments.length;s++)c[s-1]=arguments[s];
|
|
6
|
+
`,o=console.error;try{var i=!0;console.error=function(a){for(var c=[],s=1;s<arguments.length;s++)c[s-1]=arguments[s];Pr.test(a)?(i=!1,mt.delete(r)):o.apply(void 0,fe([a],c,!1))},Ue(),i&&!mt.has(r)&&(console.warn(r),mt.add(r))}catch(a){Pr.test(a.message)&&mt.delete(r)}finally{console.error=o}}},gt=Object.freeze([]),Ie=Object.freeze({});function Ui(e,t,n){return n===void 0&&(n=Ie),e.theme!==n.theme&&e.theme||t||n.theme}var tn=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Bi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,zi=/(^-|-$)/g;function Lr(e){return e.replace(Bi,"-").replace(zi,"")}var Wi=/(a)(d)/gi,yt=52,Dr=function(e){return String.fromCharCode(e+(e>25?39:97))};function nn(e){var t,n="";for(t=Math.abs(e);t>yt;t=t/yt|0)n=Dr(t%yt)+n;return(Dr(t%yt)+n).replace(Wi,"$1-$2")}var rn,Mr=5381,pe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Hr=function(e){return pe(Mr,e)};function Fr(e){return nn(Hr(e)>>>0)}function Ur(e){return w.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function on(e){return typeof e=="string"&&(w.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Br=typeof Symbol=="function"&&Symbol.for,zr=Br?Symbol.for("react.memo"):60115,ji=Br?Symbol.for("react.forward_ref"):60112,Gi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Wr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yi=((rn={})[ji]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rn[zr]=Wr,rn);function jr(e){return("type"in(t=e)&&t.type.$$typeof)===zr?Wr:"$$typeof"in e?Yi[e.$$typeof]:Gi;var t}var Zi=Object.defineProperty,qi=Object.getOwnPropertyNames,Gr=Object.getOwnPropertySymbols,Xi=Object.getOwnPropertyDescriptor,Ki=Object.getPrototypeOf,Vr=Object.prototype;function Yr(e,t,n){if(typeof t!="string"){if(Vr){var r=Ki(t);r&&r!==Vr&&Yr(e,r,n)}var o=qi(t);Gr&&(o=o.concat(Gr(t)));for(var i=jr(e),a=jr(t),c=0;c<o.length;++c){var s=o[c];if(!(s in Vi||n&&n[s]||a&&s in a||i&&s in i)){var u=Xi(t,s);try{Zi(e,s,u)}catch{}}}}return e}function he(e){return typeof e=="function"}function an(e){return typeof e=="object"&&"styledComponentId"in e}function me(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function sn(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Ae(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function cn(e,t,n){if(n===void 0&&(n=!1),!n&&!Ae(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=cn(e[r],t[r]);else if(Ae(t))for(var r in t)e[r]=cn(e[r],t[r]);return e}function ln(e,t){Object.defineProperty(e,"toString",{value:t})}var Ji=w.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
7
7
|
|
|
8
8
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
9
9
|
|
|
@@ -44,7 +44,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
44
44
|
|
|
45
45
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
46
46
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
47
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function na(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return w.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(na.apply(void 0,de([ta[e]],t,!1)).trim())}var ra=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw K(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),s=(a=0,n.length);a<s;a++)this.tag.insertRule(c,n[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,a=o;a<i;a++)n+="".concat(this.tag.getRule(a)).concat(on);return n},e}(),oa=1<<30,Ct=new Map,Et=new Map,wt=1,St=function(e){if(Ct.has(e))return Ct.get(e);for(;Et.has(wt);)wt++;var t=wt++;if(w.NODE_ENV!=="production"&&((0|t)<0||t>oa))throw K(16,"".concat(t));return Ct.set(e,t),Et.set(t,e),t},ia=function(e,t){wt=t+1,Ct.set(e,t),Et.set(t,e)},aa="style[".concat(he,"][").concat(Mr,'="').concat(pt,'"]'),sa=new RegExp("^".concat(he,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ca=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},la=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(on),o=[],i=0,a=r.length;i<a;i++){var c=r[i].trim();if(c){var s=c.match(sa);if(s){var u=0|parseInt(s[1],10),f=s[2];u!==0&&(ia(f,u),ca(e,f,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Jr=function(e){for(var t=document.querySelectorAll(aa),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(he)!==Lr&&(la(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ua(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Qr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(c){var s=Array.from(c.querySelectorAll("style[".concat(he,"]")));return s[s.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(he,Lr),r.setAttribute(Mr,pt);var a=ua();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},fa=function(){function e(t){this.element=Qr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var a=r[o];if(a.ownerNode===n)return a}throw K(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),da=function(){function e(t){this.element=Qr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),_a=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),eo=mt,ha={isServer:!mt,useCSSOMInjection:!Bi},to=function(){function e(t,n,r){t===void 0&&(t=Ae),n===void 0&&(n={});var o=this;this.options=D(D({},ha),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&mt&&eo&&(eo=!1,Jr(this)),_n(this,function(){return function(i){for(var a=i.getTag(),c=a.length,s="",u=function(l){var h=function(g){return Et.get(g)}(l);if(h===void 0)return"continue";var _=i.names.get(h),y=a.getGroup(l);if(_===void 0||!_.size||y.length===0)return"continue";var S="".concat(he,".g").concat(l,'[id="').concat(h,'"]'),$="";_!==void 0&&_.forEach(function(g){g.length>0&&($+="".concat(g,","))}),s+="".concat(y).concat(S,'{content:"').concat($,'"}').concat(on)},f=0;f<c;f++)u(f);return s}(o)})}return e.registerId=function(t){return St(t)},e.prototype.rehydrate=function(){!this.server&&mt&&Jr(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(D(D({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new _a(o):r?new fa(o):new da(o)}(this.options),new ra(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(St(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(St(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(St(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),pa=/&/g,ma=/^\s*\/\/.*$/gm;function no(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=no(n.children,t)),n})}function ro(e){var t,n,r,o=e===void 0?Ae:e,i=o.options,a=i===void 0?Ae:i,c=o.plugins,s=c===void 0?yt:c,u=function(h,_,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):h},f=s.slice();f.push(function(h){h.type===st&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(pa,n).replace(r,u))}),a.prefix&&f.push(Fi),f.push(Li);var l=function(h,_,y,S){_===void 0&&(_=""),y===void 0&&(y=""),S===void 0&&(S="&"),t=S,n=_,r=new RegExp("\\".concat(n,"\\b"),"g");var $=h.replace(ma,""),g=Pi(y||_?"".concat(y," ").concat(_," { ").concat($," }"):$);a.namespace&&(g=no(g,a.namespace));var m=[];return ht(g,Mi(f.concat(Hi(function(O){return m.push(O)})))),m};return l.hash=s.length?s.reduce(function(h,_){return _.name||K(15),pe(h,_.name)},Br).toString():"",l}var ga=new to,hn=ro(),pn=ee.createContext({shouldForwardProp:void 0,styleSheet:ga,stylis:hn});pn.Consumer;var ya=ee.createContext(void 0);function mn(){return ze(pn)}function va(e){var t=F(e.stylisPlugins),n=t[0],r=t[1],o=mn().styleSheet,i=Q(function(){var s=o;return e.sheet?s=e.sheet:e.target&&(s=s.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(s=s.reconstructWithOptions({useCSSOMInjection:!1})),s},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=Q(function(){return ro({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);q(function(){Ei(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var c=Q(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return ee.createElement(pn.Provider,{value:c},ee.createElement(ya.Provider,{value:a},e.children))}var gn=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=hn);var a=r.name+i.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,i(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,_n(this,function(){throw K(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=hn),this.name+t.hash},e}(),Ca=function(e){return e>="A"&&e<="Z"};function oo(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Ca(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var io=function(e){return e==null||e===!1||e===""},ao=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!io(i)&&(Array.isArray(i)&&i.isCss||me(i)?r.push("".concat(oo(o),":"),i,";"):Re(i)?r.push.apply(r,de(de(["".concat(o," {")],ao(i),!1),["}"],!1)):r.push("".concat(oo(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Ui||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ye(e,t,n,r){if(io(e))return[];if(un(e))return[".".concat(e.styledComponentId)];if(me(e)){if(!me(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return w.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof gn||Re(o)||o===null||console.error("".concat(jr(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ye(o,t,n,r)}var i;return e instanceof gn?n?(e.inject(n,r),[e.getName(r)]):[e]:Re(e)?ao(e):Array.isArray(e)?Array.prototype.concat.apply(yt,e.map(function(a){return ye(a,t,n,r)})):[e.toString()]}function Ea(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(me(n)&&!un(n))return!1}return!0}var wa=zr(pt),Sa=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=w.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Ea(t),this.componentId=n,this.baseHash=pe(wa,n),this.baseStyle=r,to.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ge(o,this.staticRulesId);else{var i=fn(ye(this.rules,t,n,r)),a=sn(pe(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,a)){var c=r(i,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,c)}o=ge(o,a),this.staticRulesId=a}else{for(var s=pe(this.baseHash,r.hash),u="",f=0;f<this.rules.length;f++){var l=this.rules[f];if(typeof l=="string")u+=l,w.NODE_ENV!=="production"&&(s=pe(s,l));else if(l){var h=fn(ye(l,t,n,r));s=pe(s,h+f),u+=h}}if(u){var _=sn(s>>>0);n.hasNameForId(this.componentId,_)||n.insertRules(this.componentId,_,r(u,".".concat(_),void 0,this.componentId)),o=ge(o,_)}}return o},e}(),Ve=ee.createContext(void 0);Ve.Consumer;function so(){var e=ze(Ve);if(!e)throw K(18);return e}function ba(e){var t=ee.useContext(Ve),n=Q(function(){return function(r,o){if(!r)throw K(14);if(me(r)){var i=r(o);if(w.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw K(7);return i}if(Array.isArray(r)||typeof r!="object")throw K(8);return o?D(D({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?ee.createElement(Ve.Provider,{value:n},e.children):null}var yn={},co=new Set;function $a(e,t,n){var r=un(e),o=e,i=!ln(e),a=t.attrs,c=a===void 0?yt:a,s=t.componentId,u=s===void 0?function(b,N){var E=typeof b!="string"?"sc":Fr(b);yn[E]=(yn[E]||0)+1;var v="".concat(E,"-").concat(Wr(pt+E+yn[E]));return N?"".concat(N,"-").concat(v):v}(t.displayName,t.parentComponentId):s,f=t.displayName,l=f===void 0?function(b){return ln(b)?"styled.".concat(b):"Styled(".concat(jr(b),")")}(e):f,h=t.displayName&&t.componentId?"".concat(Fr(t.displayName),"-").concat(t.componentId):t.componentId||u,_=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,y=t.shouldForwardProp;if(r&&o.shouldForwardProp){var S=o.shouldForwardProp;if(t.shouldForwardProp){var $=t.shouldForwardProp;y=function(b,N){return S(b,N)&&$(b,N)}}else y=S}var g=new Sa(n,h,r?o.componentStyle:void 0);function m(b,N){return function(E,v,U){var z=E.attrs,Ke=E.componentStyle,W=E.defaultProps,Ce=E.foldedComponentIds,Eo=E.styledComponentId,Xs=E.target,Ks=ee.useContext(Ve),Js=mn(),On=E.shouldForwardProp||Js.shouldForwardProp;w.NODE_ENV!=="production"&&rt(Eo);var wo=Wi(v,Ks,W)||Ae,re=function(kt,et,Nt){for(var De,Ee=D(D({},et),{className:void 0,theme:Nt}),Tn=0;Tn<kt.length;Tn+=1){var Tt=me(De=kt[Tn])?De(Ee):De;for(var ce in Tt)Ee[ce]=ce==="className"?ge(Ee[ce],Tt[ce]):ce==="style"?D(D({},Ee[ce]),Tt[ce]):Tt[ce]}return et.className&&(Ee.className=ge(Ee.className,et.className)),Ee}(z,v,wo),Je=re.as||Xs,Qe={};for(var j in re)re[j]===void 0||j[0]==="$"||j==="as"||j==="theme"&&re.theme===wo||(j==="forwardedAs"?Qe.as=re.forwardedAs:On&&!On(j,Je)||(Qe[j]=re[j],On||w.NODE_ENV!=="development"||Uo(j)||co.has(j)||!an.has(Je)||(co.add(j),console.warn('styled-components: it looks like an unknown prop "'.concat(j,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var kn=function(kt,et){var Nt=mn(),De=kt.generateAndInjectStyles(et,Nt.styleSheet,Nt.stylis);return w.NODE_ENV!=="production"&&rt(De),De}(Ke,re);w.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(kn);var Nn=ge(Ce,Eo);return kn&&(Nn+=" "+kn),re.className&&(Nn+=" "+re.className),Qe[ln(Je)&&!an.has(Je)?"class":"className"]=Nn,U&&(Qe.ref=U),M(Je,Qe)}(O,b,N)}m.displayName=l;var O=ee.forwardRef(m);return O.attrs=_,O.componentStyle=g,O.displayName=l,O.shouldForwardProp=y,O.foldedComponentIds=r?ge(o.foldedComponentIds,o.styledComponentId):"",O.styledComponentId=h,O.target=r?o.target:e,Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?function(N){for(var E=[],v=1;v<arguments.length;v++)E[v-1]=arguments[v];for(var U=0,z=E;U<z.length;U++)dn(N,z[U],!0);return N}({},o.defaultProps,b):b}}),w.NODE_ENV!=="production"&&(zi(l,h),O.warnTooManyClasses=function(b,N){var E={},v=!1;return function(U){if(!v&&(E[U]=!0,Object.keys(E).length>=200)){var z=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(b).concat(z,`.
|
|
47
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Qi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function X(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return w.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Qi.apply(void 0,fe([Ji[e]],t,!1)).trim())}var ea=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw X(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),s=(a=0,n.length);a<s;a++)this.tag.insertRule(c,n[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,a=o;a<i;a++)n+="".concat(this.tag.getRule(a)).concat(en);return n},e}(),ta=1<<30,vt=new Map,Ct=new Map,Et=1,wt=function(e){if(vt.has(e))return vt.get(e);for(;Ct.has(Et);)Et++;var t=Et++;if(w.NODE_ENV!=="production"&&((0|t)<0||t>ta))throw X(16,"".concat(t));return vt.set(e,t),Ct.set(t,e),t},na=function(e,t){Et=t+1,vt.set(e,t),Ct.set(t,e)},ra="style[".concat(_e,"][").concat(Rr,'="').concat(pt,'"]'),oa=new RegExp("^".concat(_e,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ia=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},aa=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(en),o=[],i=0,a=r.length;i<a;i++){var c=r[i].trim();if(c){var s=c.match(oa);if(s){var u=0|parseInt(s[1],10),f=s[2];u!==0&&(na(f,u),ia(e,f,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Zr=function(e){for(var t=document.querySelectorAll(ra),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(_e)!==Ar&&(aa(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function sa(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var qr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(c){var s=Array.from(c.querySelectorAll("style[".concat(_e,"]")));return s[s.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(_e,Ar),r.setAttribute(Rr,pt);var a=sa();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},ca=function(){function e(t){this.element=qr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var a=r[o];if(a.ownerNode===n)return a}throw X(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),la=function(){function e(t){this.element=qr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),ua=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Xr=ht,fa={isServer:!ht,useCSSOMInjection:!Hi},Kr=function(){function e(t,n,r){t===void 0&&(t=Ie),n===void 0&&(n={});var o=this;this.options=L(L({},fa),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&ht&&Xr&&(Xr=!1,Zr(this)),ln(this,function(){return function(i){for(var a=i.getTag(),c=a.length,s="",u=function(l){var p=function(m){return Ct.get(m)}(l);if(p===void 0)return"continue";var _=i.names.get(p),g=a.getGroup(l);if(_===void 0||!_.size||g.length===0)return"continue";var S="".concat(_e,".g").concat(l,'[id="').concat(p,'"]'),$="";_!==void 0&&_.forEach(function(m){m.length>0&&($+="".concat(m,","))}),s+="".concat(g).concat(S,'{content:"').concat($,'"}').concat(en)},f=0;f<c;f++)u(f);return s}(o)})}return e.registerId=function(t){return wt(t)},e.prototype.rehydrate=function(){!this.server&&ht&&Zr(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(L(L({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new ua(o):r?new ca(o):new la(o)}(this.options),new ea(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(wt(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(wt(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(wt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),da=/&/g,_a=/^\s*\/\/.*$/gm;function Jr(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Jr(n.children,t)),n})}function Qr(e){var t,n,r,o=e===void 0?Ie:e,i=o.options,a=i===void 0?Ie:i,c=o.plugins,s=c===void 0?gt:c,u=function(p,_,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):p},f=s.slice();f.push(function(p){p.type===at&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(da,n).replace(r,u))}),a.prefix&&f.push(Di),f.push(Ri);var l=function(p,_,g,S){_===void 0&&(_=""),g===void 0&&(g=""),S===void 0&&(S="&"),t=S,n=_,r=new RegExp("\\".concat(n,"\\b"),"g");var $=p.replace(_a,""),m=Ii(g||_?"".concat(g," ").concat(_," { ").concat($," }"):$);a.namespace&&(m=Jr(m,a.namespace));var h=[];return _t(m,Pi(f.concat(Li(function(k){return h.push(k)})))),h};return l.hash=s.length?s.reduce(function(p,_){return _.name||X(15),pe(p,_.name)},Mr).toString():"",l}var pa=new Kr,un=Qr(),fn=Q.createContext({shouldForwardProp:void 0,styleSheet:pa,stylis:un});fn.Consumer;var ha=Q.createContext(void 0);function dn(){return Be(fn)}function ma(e){var t=H(e.stylisPlugins),n=t[0],r=t[1],o=dn().styleSheet,i=J(function(){var s=o;return e.sheet?s=e.sheet:e.target&&(s=s.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(s=s.reconstructWithOptions({useCSSOMInjection:!1})),s},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=J(function(){return Qr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);Z(function(){yi(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var c=J(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return Q.createElement(fn.Provider,{value:c},Q.createElement(ha.Provider,{value:a},e.children))}var _n=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=un);var a=r.name+i.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,i(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ln(this,function(){throw X(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=un),this.name+t.hash},e}(),ga=function(e){return e>="A"&&e<="Z"};function eo(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ga(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var to=function(e){return e==null||e===!1||e===""},no=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!to(i)&&(Array.isArray(i)&&i.isCss||he(i)?r.push("".concat(eo(o),":"),i,";"):Ae(i)?r.push.apply(r,fe(fe(["".concat(o," {")],no(i),!1),["}"],!1)):r.push("".concat(eo(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Mi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ge(e,t,n,r){if(to(e))return[];if(an(e))return[".".concat(e.styledComponentId)];if(he(e)){if(!he(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return w.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof _n||Ae(o)||o===null||console.error("".concat(Ur(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ge(o,t,n,r)}var i;return e instanceof _n?n?(e.inject(n,r),[e.getName(r)]):[e]:Ae(e)?no(e):Array.isArray(e)?Array.prototype.concat.apply(gt,e.map(function(a){return ge(a,t,n,r)})):[e.toString()]}function ya(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(he(n)&&!an(n))return!1}return!0}var va=Hr(pt),Ca=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=w.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&ya(t),this.componentId=n,this.baseHash=pe(va,n),this.baseStyle=r,Kr.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=me(o,this.staticRulesId);else{var i=sn(ge(this.rules,t,n,r)),a=nn(pe(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,a)){var c=r(i,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,c)}o=me(o,a),this.staticRulesId=a}else{for(var s=pe(this.baseHash,r.hash),u="",f=0;f<this.rules.length;f++){var l=this.rules[f];if(typeof l=="string")u+=l,w.NODE_ENV!=="production"&&(s=pe(s,l));else if(l){var p=sn(ge(l,t,n,r));s=pe(s,p+f),u+=p}}if(u){var _=nn(s>>>0);n.hasNameForId(this.componentId,_)||n.insertRules(this.componentId,_,r(u,".".concat(_),void 0,this.componentId)),o=me(o,_)}}return o},e}(),Ge=Q.createContext(void 0);Ge.Consumer;function ro(){var e=Be(Ge);if(!e)throw X(18);return e}function Ea(e){var t=Q.useContext(Ge),n=J(function(){return function(r,o){if(!r)throw X(14);if(he(r)){var i=r(o);if(w.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw X(7);return i}if(Array.isArray(r)||typeof r!="object")throw X(8);return o?L(L({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?Q.createElement(Ge.Provider,{value:n},e.children):null}var pn={},oo=new Set;function wa(e,t,n){var r=an(e),o=e,i=!on(e),a=t.attrs,c=a===void 0?gt:a,s=t.componentId,u=s===void 0?function(b,N){var E=typeof b!="string"?"sc":Lr(b);pn[E]=(pn[E]||0)+1;var y="".concat(E,"-").concat(Fr(pt+E+pn[E]));return N?"".concat(N,"-").concat(y):y}(t.displayName,t.parentComponentId):s,f=t.displayName,l=f===void 0?function(b){return on(b)?"styled.".concat(b):"Styled(".concat(Ur(b),")")}(e):f,p=t.displayName&&t.componentId?"".concat(Lr(t.displayName),"-").concat(t.componentId):t.componentId||u,_=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var S=o.shouldForwardProp;if(t.shouldForwardProp){var $=t.shouldForwardProp;g=function(b,N){return S(b,N)&&$(b,N)}}else g=S}var m=new Ca(n,p,r?o.componentStyle:void 0);function h(b,N){return function(E,y,F){var B=E.attrs,Xe=E.componentStyle,z=E.defaultProps,ve=E.foldedComponentIds,yo=E.styledComponentId,Ys=E.target,Zs=Q.useContext(Ge),qs=dn(),En=E.shouldForwardProp||qs.shouldForwardProp;w.NODE_ENV!=="production"&&nt(yo);var vo=Ui(y,Zs,z)||Ie,ne=function(bt,Qe,$t){for(var Pe,Ce=L(L({},Qe),{className:void 0,theme:$t}),bn=0;bn<bt.length;bn+=1){var kt=he(Pe=bt[bn])?Pe(Ce):Pe;for(var ce in kt)Ce[ce]=ce==="className"?me(Ce[ce],kt[ce]):ce==="style"?L(L({},Ce[ce]),kt[ce]):kt[ce]}return Qe.className&&(Ce.className=me(Ce.className,Qe.className)),Ce}(B,y,vo),Ke=ne.as||Ys,Je={};for(var W in ne)ne[W]===void 0||W[0]==="$"||W==="as"||W==="theme"&&ne.theme===vo||(W==="forwardedAs"?Je.as=ne.forwardedAs:En&&!En(W,Ke)||(Je[W]=ne[W],En||w.NODE_ENV!=="development"||Mo(W)||oo.has(W)||!tn.has(Ke)||(oo.add(W),console.warn('styled-components: it looks like an unknown prop "'.concat(W,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var wn=function(bt,Qe){var $t=dn(),Pe=bt.generateAndInjectStyles(Qe,$t.styleSheet,$t.stylis);return w.NODE_ENV!=="production"&&nt(Pe),Pe}(Xe,ne);w.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(wn);var Sn=me(ve,yo);return wn&&(Sn+=" "+wn),ne.className&&(Sn+=" "+ne.className),Je[on(Ke)&&!tn.has(Ke)?"class":"className"]=Sn,F&&(Je.ref=F),M(Ke,Je)}(k,b,N)}h.displayName=l;var k=Q.forwardRef(h);return k.attrs=_,k.componentStyle=m,k.displayName=l,k.shouldForwardProp=g,k.foldedComponentIds=r?me(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=p,k.target=r?o.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?function(N){for(var E=[],y=1;y<arguments.length;y++)E[y-1]=arguments[y];for(var F=0,B=E;F<B.length;F++)cn(N,B[F],!0);return N}({},o.defaultProps,b):b}}),w.NODE_ENV!=="production"&&(Fi(l,p),k.warnTooManyClasses=function(b,N){var E={},y=!1;return function(F){if(!y&&(E[F]=!0,Object.keys(E).length>=200)){var B=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(b).concat(B,`.
|
|
48
48
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
49
49
|
Example:
|
|
50
50
|
const Component = styled.div.attrs(props => ({
|
|
@@ -53,11 +53,11 @@ Example:
|
|
|
53
53
|
},
|
|
54
54
|
}))\`width: 100%;\`
|
|
55
55
|
|
|
56
|
-
<Component />`),
|
|
56
|
+
<Component />`),y=!0,E={}}}}(l,p)),ln(k,function(){return".".concat(k.styledComponentId)}),i&&Yr(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function io(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ao=function(e){return Object.assign(e,{isCss:!0})};function se(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(he(e)||Ae(e))return ao(ge(io(gt,fe([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ge(r):ao(ge(io(r,t)))}function hn(e,t,n){if(n===void 0&&(n=Ie),!t)throw X(1,t);var r=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,se.apply(void 0,fe([o],i,!1)))};return r.attrs=function(o){return hn(e,t,L(L({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return hn(e,t,L(L({},n),o))},r}var so=function(e){return hn(wa,e)},D=so;tn.forEach(function(e){D[e]=so(e)});function Re(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];w.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=sn(se.apply(void 0,fe([e],t,!1))),o=Fr(r);return new _n(o,r)}w.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
57
|
Perhaps you're looking to import 'styled-components/native'?
|
|
58
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
58
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var St="__sc-".concat(_e,"__");w.NODE_ENV!=="production"&&w.NODE_ENV!=="test"&&typeof window<"u"&&(window[St]||(window[St]=0),window[St]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
59
59
|
|
|
60
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const Sa=2,co=14,ba=.0276;var te=(e=>(e[e.S=300]="S",e[e.M=400]="M",e[e.L=500]="L",e[e.Default=600]="Default",e))(te||{});const Ve={300:{iconSize:40,marginLeft:12,buttonPadding:4},400:{iconSize:45,marginLeft:12,buttonPadding:8},500:{iconSize:52,marginLeft:12,buttonPadding:12},600:{iconSize:52,marginLeft:12,buttonPadding:24}},lo={loading:{text:"Loading. Please wait.",visible:!0},done:{text:"Waiting for input...",visible:!0}},$a={...{[P.CANDIDATE_SELECTION]:"Stay still…",[P.FACE_TOO_CLOSE]:"Move back",[P.FACE_TOO_FAR]:"Move closer",[P.FACE_CENTERING]:"Center your face",[P.FACE_NOT_PRESENT]:"Position your face into the circle",[P.SHARPNESS_TOO_LOW]:"Turn face against light",[P.BRIGHTNESS_TOO_LOW]:"Turn face against light",[P.BRIGHTNESS_TOO_HIGH]:"Less light needed",[P.DEVICE_PITCHED]:"Hold your phone at eye level",[P.LEFT_EYE_NOT_PRESENT]:"Position your face into the circle",[P.RIGHT_EYE_NOT_PRESENT]:"Position your face into the circle",[P.MOUTH_SCORE_TOO_HIGH]:"Keep neutral expression",[P.MOUTH_SCORE_TOO_LOW]:"Smile :)",[P.MOUTH_NOT_PRESENT]:"Position your face into the circle"},[He.FIT_YOUR_EYE]:"Fit your eye into square",[He.DEVICE_PITCHED]:"Hold your phone at eye level"},ka="rgba(19, 19, 19, 0.5)",Oa=34;function uo(e,t){return Math.max(t,t+(e-400)*ba+2)}const Na=(e,t=co)=>e?e.width<e.height?uo(e.width,t):uo(e.height,t):t,Ta=e=>e>te.Default?Ve[te.Default]:e>te.L?Ve[te.L]:e>te.M?Ve[te.M]:Ve[te.S],xa=e=>e?Ta(e.width):Ve[te.Default];function Ia(){const e="https://fonts.googleapis.com/css?family=Montserrat:600";if(!document.querySelector(`link[href="${e}"]`)){const n=document.createElement("link");n.href=e,n.rel="stylesheet",document.head.appendChild(n)}}const Ye=Un(void 0);Ye.displayName="ConfigurationContext";function ye(){const e=Be(Ye);if(!e)throw new Error(`${Ye.displayName} must be used within a ${Ye.displayName} Provider`);return e}function Aa({children:e,configuration:t,videoElementSize:n}){const{font:r}=ro(),o=J(()=>({...t,videoElementSize:n,fontSize:Na(n,r.minimumSize)}),[t,r.minimumSize,n]);return d(Ye.Provider,{value:o,children:e})}const fo=({svgSize:e})=>d("svg",{fill:"none",height:e,viewBox:"0 0 16 14",width:e,xmlns:"http://www.w3.org/2000/svg",children:d("path",{clipRule:"evenodd",d:"M14.3062 13.5002H1.69384C0.932655 13.5002 0.450552 12.6837 0.818264 12.0172L7.12444 0.587236C7.5047 -0.101994 8.49533 -0.101996 8.87559 0.587234L15.1818 12.0172C15.5495 12.6837 15.0674 13.5002 14.3062 13.5002ZM8.00001 3.25025C8.41423 3.25025 8.75002 3.58604 8.75002 4.00025V8.50025C8.75002 8.91446 8.41423 9.25025 8.00001 9.25025C7.5858 9.25025 7.25001 8.91446 7.25001 8.50025V4.00025C7.25001 3.58604 7.5858 3.25025 8.00001 3.25025ZM8.75002 11.2502C8.75002 11.6645 8.41423 12.0002 8.00001 12.0002C7.5858 12.0002 7.25001 11.6645 7.25001 11.2502C7.25001 10.836 7.5858 10.5002 8.00001 10.5002C8.41423 10.5002 8.75002 10.836 8.75002 11.2502Z",fill:"currentColor",fillRule:"evenodd"})}),Ra=D.div`
|
|
61
61
|
width: 100%;
|
|
62
62
|
height: 100%;
|
|
63
63
|
top: 0;
|
|
@@ -76,14 +76,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
76
76
|
aspect-ratio: 9/16;
|
|
77
77
|
}
|
|
78
78
|
`}
|
|
79
|
-
`,
|
|
79
|
+
`,Pa=D.div`
|
|
80
80
|
width: 100%;
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
justify-content: center;
|
|
84
84
|
align-items: center;
|
|
85
85
|
color: ${e=>e.theme.colors.instructionTextColor};
|
|
86
|
-
`,
|
|
86
|
+
`,La=D.p`
|
|
87
87
|
background: ${e=>e.theme.colors.instructionColor};
|
|
88
88
|
border-radius: 0.25em;
|
|
89
89
|
padding: 0.583em 0.666em;
|
|
@@ -91,11 +91,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
91
91
|
font-size: ${e=>`${e.$fontSize}px`};
|
|
92
92
|
line-height: 1em;
|
|
93
93
|
max-width: 80%;
|
|
94
|
-
`,
|
|
94
|
+
`,mn=({Icon:e,isCameraReady:t,position:n="absolute",text:r})=>{const{fontSize:o}=ye();return d(Ra,{$isCameraReady:t,$position:n,children:d(Pa,{children:[e?d(e,{svgSize:o*2}):null,d(La,{$fontSize:o,children:r})]})})},_o=({text:e="An unknown error has occurred"})=>d(mn,{Icon:fo,position:"relative",text:e});class Da extends G{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){console.error(t,n)}render(){return this.state.hasError?d(_o,{Icon:fo,isCameraReady:!1}):this.props.children}}const Ma=D.div`
|
|
95
95
|
font-family: ${e=>e.theme.font.family};
|
|
96
96
|
font-style: ${e=>e.theme.font.style};
|
|
97
97
|
font-weight: ${e=>e.theme.font.weight};
|
|
98
|
-
|
|
98
|
+
`;function Ha({children:e,uiConfiguration:t,videoElementSize:n}){return Z(()=>{Ia()},[]),d(ma,{target:t.styleTarget,children:d(Ea,{theme:t.styling.theme,children:d(Ma,{children:d(Da,{videoElementSize:n,children:d(Aa,{configuration:t,videoElementSize:n,children:e})})})})})}const Fa=.75,Ua=2,Ba="dot-auto-capture-video";function Ze(e,t){const n=Ue(t);Z(()=>{n.current=t},[t]),Z(()=>{if(!e)return;const r=o=>n.current(o);return document.addEventListener(e,r),()=>{document.removeEventListener(e,r)}},[e])}function za(e){const[t,n]=H(),r=ue(o=>{var i;n((i=o.detail)==null?void 0:i.size)},[n]);return Ze(e,r),ke(()=>{if(!t){const o=document.getElementById(Ba);o&&n(o.getBoundingClientRect())}},[t,n]),t}function Wa(e,t){return e?`${e}, ${t}`:t}const qe={colors:{placeholderColor:"white",placeholderColorSuccess:"#00BFB2",instructionColor:"#F8FBFB",instructionColorSuccess:"#00BFB2",instructionTextColor:"#021B41;"},font:{family:"Montserrat, Arial, sans-serif",weight:"600",style:"normal",minimumSize:co}},ja=e=>{var t;return e?{...qe,...e,colors:{...qe.colors,...e.colors},font:{...qe.font,...e.font,family:Wa((t=e.font)==null?void 0:t.family,qe.font.family)}}:qe},po=(e,t)=>{document.dispatchEvent(new CustomEvent(e,{detail:t}))},ho=(e,t)=>{po(e,{instruction:t})},Ga=e=>{po(e,{animationEnd:!0})},Va=e=>Number.parseFloat(e.toFixed(3)),gn=(e,t)=>Math.min(e,t),Ya=({height:e,width:t},n)=>{const r=gn(t,e)*n,o=(t-r)/2,i=(e-r)/2;return{shiftX:o,shiftY:i,width:r,height:r}},Za=(e,t)=>{const{height:n,shiftX:r,shiftY:o,width:i}=Ya(e,t);return{shiftX:r/e.width,shiftY:o/e.height,width:i/e.width,height:n/e.height}};function qa(e,t){const n=gn(t.width,t.height);return Va(e*n)}function Xa(e){return Za(e,Fa)}function Ka(e,t){return qa(e,t)*Ua}async function Ja(){return navigator.mediaDevices.enumerateDevices()}async function Qa(){return(await Ja()).filter(t=>t.kind==="videoinput")}const es=()=>{const[e,t]=H(!1);return Z(()=>{(async()=>{(await Qa()).length>1&&t(!0)})()},[]),e},ts=({size:e})=>d("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:e,xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z",fill:"#131313",fillOpacity:"0.3"}),d("circle",{cx:"17.5",cy:"24.5",fill:"white",r:"1.5"}),d("path",{d:"M15 17H16C19.5 17 23 21 23 29C22.5 29 21.5 29 20 29C20 29 20.25 33 19.5 34.5C18.75 36 16 36 16 36H15",stroke:"white",strokeWidth:"2"}),d("circle",{fill:"white",r:"1.5",transform:"matrix(-1 0 0 1 34.5 24.5)"}),d("path",{d:"M37 17H36C32.5 17 29 21 29 29C29.5 29 30.5 29 32 29C32 29 31.75 33 32.5 34.5C33.25 36 36 36 36 36H37",stroke:"white",strokeWidth:"2"})]}),ns=({size:e})=>d("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:"52",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"26",cy:"26",fill:"#131313",fillOpacity:"0.3",r:"26"}),d("path",{d:"M18 26C18 25.4477 17.5523 25 17 25C16.4477 25 16 25.4477 16 26H18ZM34 26C34 26.5523 34.4477 27 35 27C35.5523 27 36 26.5523 36 26H34ZM18.3977 19.5032C18.0387 19.923 18.0879 20.5542 18.5076 20.9132C18.9273 21.2722 19.5586 21.2229 19.9176 20.8032L18.3977 19.5032ZM33.5961 32.504C33.9555 32.0846 33.9069 31.4533 33.4875 31.094C33.0681 30.7346 32.4368 30.7832 32.0775 31.2026L33.5961 32.504ZM33.8321 24.4453C33.5257 23.9858 32.9048 23.8616 32.4453 24.1679C31.9858 24.4743 31.8616 25.0952 32.1679 25.5547L33.8321 24.4453ZM35 28L34.1679 28.5547C34.3534 28.8329 34.6656 29 35 29C35.3344 29 35.6466 28.8329 35.8321 28.5547L35 28ZM37.8321 25.5547C38.1384 25.0952 38.0142 24.4743 37.5547 24.1679C37.0952 23.8616 36.4743 23.9858 36.1679 24.4453L37.8321 25.5547ZM14.1679 26.4453C13.8616 26.9048 13.9858 27.5257 14.4453 27.8321C14.9048 28.1384 15.5257 28.0142 15.8321 27.5547L14.1679 26.4453ZM17 24L17.8321 23.4453C17.6466 23.1671 17.3344 23 17 23C16.6656 23 16.3534 23.1671 16.1679 23.4453L17 24ZM18.1679 27.5547C18.4743 28.0142 19.0952 28.1384 19.5547 27.8321C20.0142 27.5257 20.1384 26.9048 19.8321 26.4453L18.1679 27.5547ZM26 34C21.5817 34 18 30.4183 18 26H16C16 31.5228 20.4772 36 26 36V34ZM26 18C30.4183 18 34 21.5817 34 26H36C36 20.4772 31.5228 16 26 16V18ZM19.9176 20.8032C21.3864 19.0859 23.5658 18 26 18V16C22.9568 16 20.2302 17.3606 18.3977 19.5032L19.9176 20.8032ZM32.0775 31.2026C30.6087 32.9165 28.4314 34 26 34V36C29.0398 36 31.7636 34.6424 33.5961 32.504L32.0775 31.2026ZM32.1679 25.5547L34.1679 28.5547L35.8321 27.4453L33.8321 24.4453L32.1679 25.5547ZM35.8321 28.5547L37.8321 25.5547L36.1679 24.4453L34.1679 27.4453L35.8321 28.5547ZM15.8321 27.5547L17.8321 24.5547L16.1679 23.4453L14.1679 26.4453L15.8321 27.5547ZM16.1679 24.5547L18.1679 27.5547L19.8321 26.4453L17.8321 23.4453L16.1679 24.5547Z",fill:"white"})]}),mo=D.button`
|
|
99
99
|
background: none;
|
|
100
100
|
border: none;
|
|
101
101
|
padding: 0;
|
|
@@ -105,34 +105,34 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
105
105
|
&:disabled {
|
|
106
106
|
cursor: not-allowed;
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,rs=({marginLeft:e,size:t,...n})=>d(mo,{$marginLeft:e,...n,children:d(ts,{size:t})}),os=({marginLeft:e,size:t,...n})=>d(mo,{$marginLeft:e,...n,children:d(ns,{size:t})}),is=D.div`
|
|
109
109
|
position: absolute;
|
|
110
110
|
top: 0;
|
|
111
111
|
right: 0;
|
|
112
112
|
padding: ${e=>`${e.$padding}px`};
|
|
113
113
|
z-index: 2;
|
|
114
|
-
`,
|
|
114
|
+
`,as=({customControlEvent:e,isSwitchCameraDisabled:t})=>{const{control:{showCameraButtons:n},videoElementSize:r}=ye(),o=es();if(!n)return null;const{buttonPadding:i,iconSize:a,marginLeft:c}=xa(r);return d(is,{$padding:i,children:[o&&d(os,{disabled:t,onClick:()=>{ho(e,Wn.SWITCH_CAMERA)},size:a}),d(rs,{marginLeft:o?c:0,onClick:()=>{ho(e,Wn.TOGGLE_MIRROR)},size:a})]})},go=2.6,yn="1.5s",vn="1.5s",Cn="ease-in-out",ss=2500,cs="2.5s",ls="0.3s",us="linear",fs=".5s",ds="3s",_s="ease-in-out",ps=".5s",hs=".5s",ms="ease-out",gs=e=>Re`
|
|
115
115
|
100% {
|
|
116
116
|
transform: translateX(22%) scale(${e});
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`,ys=e=>Re`
|
|
119
119
|
100% {
|
|
120
120
|
transform: translate(34%, 8%) scale(${e*.98});
|
|
121
121
|
}
|
|
122
|
-
`,
|
|
122
|
+
`,vs=Re`
|
|
123
123
|
0% {
|
|
124
124
|
opacity: 0;
|
|
125
125
|
}
|
|
126
126
|
100% {
|
|
127
127
|
opacity: 1;
|
|
128
128
|
}
|
|
129
|
-
`,
|
|
129
|
+
`,Cs=Re`
|
|
130
130
|
100% {
|
|
131
131
|
transform: translate(-50%, -50%) scale(2.6);
|
|
132
132
|
top: 50%;
|
|
133
133
|
left: 50%;
|
|
134
134
|
}
|
|
135
|
-
`,
|
|
135
|
+
`,Es=Re`
|
|
136
136
|
5% {
|
|
137
137
|
transform: translate(-50%, -50%) scale(0.7);
|
|
138
138
|
opacity: 1;
|
|
@@ -155,7 +155,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
155
155
|
transform: translate(-50%, -50%) scale(0.85);
|
|
156
156
|
opacity: 0.5;
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
`,ws=Re`
|
|
159
159
|
5% {
|
|
160
160
|
opacity: 1;
|
|
161
161
|
}
|
|
@@ -167,16 +167,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
167
167
|
transform: scale(1);
|
|
168
168
|
opacity: 1;
|
|
169
169
|
}
|
|
170
|
-
`,
|
|
170
|
+
`,Ss=D.div`
|
|
171
171
|
position: absolute;
|
|
172
172
|
left: 50%;
|
|
173
173
|
|
|
174
174
|
${e=>e.$cssTop?`top: ${e.$cssTop}%;`:""}
|
|
175
175
|
${e=>e.$cssBottom?`bottom: ${e.$cssBottom}%;`:""}
|
|
176
176
|
${e=>e.$isAnimating&&se`
|
|
177
|
-
animation: ${
|
|
178
|
-
${
|
|
179
|
-
animation-delay: ${
|
|
177
|
+
animation: ${vs} ${ls}
|
|
178
|
+
${us} both;
|
|
179
|
+
animation-delay: ${cs};
|
|
180
180
|
|
|
181
181
|
@media (orientation: landscape) {
|
|
182
182
|
bottom: ${e.$cssBottom?e.$cssBottom-15:""}%;
|
|
@@ -200,7 +200,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
200
200
|
${e=>e.$cssTop||e.$isPortrait?"-50%":e.$isPortrait?"":"50%"}
|
|
201
201
|
);
|
|
202
202
|
z-index: 2;
|
|
203
|
-
`,
|
|
203
|
+
`,bs=D.div`
|
|
204
204
|
display: flex;
|
|
205
205
|
align-items: center;
|
|
206
206
|
justify-content: center;
|
|
@@ -214,7 +214,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
214
214
|
line-height: 1em;
|
|
215
215
|
font-size: ${e=>`${e.$fontSize}px`};
|
|
216
216
|
white-space: ${e=>e.$wrap?"break-spaces":"nowrap"};
|
|
217
|
-
|
|
217
|
+
`,$s=({children:e,cssBottom:t,cssTop:n,isAnimating:r,isInCandidateSelection:o,isPortrait:i})=>{const{fontSize:a}=ye();return d(Ss,{$cssBottom:t,$cssTop:n,$isAnimating:r,$isPortrait:i,children:d(bs,{$fontSize:a,$isInCandidateSelection:o,$wrap:e.length>Oa,children:e})})},ks=D.div`
|
|
218
218
|
color: ${e=>e.theme.colors.instructionTextColor};
|
|
219
219
|
animation: spin 2s linear infinite;
|
|
220
220
|
|
|
@@ -223,7 +223,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
223
223
|
transform: rotate(-360deg);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
`,
|
|
226
|
+
`,Os=({svgSize:e})=>d(ks,{children:d("svg",{fill:"none",height:e,viewBox:"0 0 48 48",width:e,xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M30.9229 9.75026C30.9229 12.3736 28.7533 14.5002 26.0767 14.5002C23.4003 14.5002 21.2307 12.3736 21.2307 9.75026C21.2307 7.12664 23.4003 5 26.0767 5C28.7533 5 30.9229 7.12664 30.9229 9.75026Z",fill:"currentColor"}),d("path",{d:"M40.6155 15.8556C40.6155 18.1044 38.7559 19.9273 36.4618 19.9273C34.1675 19.9273 32.3079 18.1044 32.3079 15.8556C32.3079 13.607 34.1675 11.7842 36.4618 11.7842C38.7559 11.7842 40.6155 13.607 40.6155 15.8556Z",fill:"currentColor"}),d("path",{d:"M42 27.3921C42 29.2659 40.4502 30.785 38.5386 30.785C36.6267 30.785 35.0769 29.2659 35.0769 27.3921C35.0769 25.5181 36.6267 23.999 38.5386 23.999C40.4502 23.999 42 25.5181 42 27.3921Z",fill:"currentColor"}),d("path",{d:"M35.0766 37.5712C35.0766 39.0704 33.837 40.2858 32.3075 40.2858C30.7779 40.2858 29.5383 39.0704 29.5383 37.5712C29.5383 36.0723 30.7779 34.8569 32.3075 34.8569C33.837 34.8569 35.0766 36.0723 35.0766 37.5712Z",fill:"currentColor"}),d("path",{d:"M22.6154 40.2858C22.6154 41.7848 21.3756 43.0001 19.846 43.0001C18.3168 43.0001 17.0769 41.7848 17.0769 40.2858C17.0769 38.7866 18.3168 37.5713 19.846 37.5713C21.3756 37.5713 22.6154 38.7866 22.6154 40.2858Z",fill:"currentColor"}),d("path",{d:"M11.5382 32.8216C11.5382 33.9457 10.6085 34.8573 9.46137 34.8573C8.31426 34.8573 7.38452 33.9457 7.38452 32.8216C7.38452 31.6972 8.31426 30.7856 9.46137 30.7856C10.6085 30.7856 11.5382 31.6972 11.5382 32.8216Z",fill:"currentColor"}),d("path",{d:"M8.76913 21.2849C8.76913 22.0345 8.14932 22.642 7.38456 22.642C6.6198 22.642 6 22.0345 6 21.2849C6 20.5353 6.61981 19.9277 7.38456 19.9277C8.14933 19.9277 8.76913 20.5353 8.76913 21.2849Z",fill:"currentColor"}),d("path",{d:"M15.6927 11.7844C15.6927 12.534 15.0729 13.1415 14.3081 13.1415C13.5434 13.1415 12.9236 12.534 12.9236 11.7844C12.9236 11.0348 13.5434 10.4272 14.3081 10.4272C15.0729 10.4272 15.6927 11.0348 15.6927 11.7844Z",fill:"currentColor"})]})}),Ns=D.div`
|
|
227
227
|
z-index: 1;
|
|
228
228
|
position: absolute;
|
|
229
229
|
// Scale up the backdrop to have space when placeholder is scaled below 1
|
|
@@ -240,7 +240,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
240
240
|
transform: scale(0.5);
|
|
241
241
|
translate: 25% 25%;
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,Ts=({children:e,height:t,scale:n,width:r})=>{const{styling:{backdropColor:o}}=ye(),i=gn(r,t);return d(Ns,{$backdropColor:o,$scale:n,$shorterSide:i,children:d("svg",{viewBox:`0 0 ${r} ${t}`,children:[d("defs",{children:d("mask",{id:"mask",children:[d("rect",{fill:"#fff",height:"100%",width:"100%"}),d("g",{children:e})]})}),d("rect",{fill:o,height:"100%",mask:"url(#mask)",width:"100%"})]})})};function xs({cameraHeight:e,cameraWidth:t,state:n}){var o;const{appStateInstructions:r}=ye();return!n||n===Ht.ERROR||!((o=r==null?void 0:r[n])!=null&&o.visible)?null:n===Ht.DONE?d(j,{children:[e&&t&&d(Ts,{height:e,width:t}),d(mn,{isCameraReady:!0,text:r[n].text})]}):d(mn,{Icon:Os,isCameraReady:!0,text:r[n].text})}const Is=D.canvas`
|
|
244
244
|
transform: ${e=>e.$isImageMirror?"rotateY(180deg)":"none"};
|
|
245
245
|
position: absolute;
|
|
246
246
|
top: 0;
|
|
@@ -248,7 +248,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
248
248
|
width: 100%;
|
|
249
249
|
height: 100%;
|
|
250
250
|
z-index: 1;
|
|
251
|
-
`;function
|
|
251
|
+
`;function As(e){const t=e.getContext("2d");t&&t.clearRect(0,0,t.canvas.width,t.canvas.height)}const Rs=({cameraResolution:e,isImageMirror:t})=>{const n=Ue(null),r=ro(),[o,i]=H(),a=ue(c=>{var s;i((s=c==null?void 0:c.detail)==null?void 0:s.detectedObject)},[i]);return Ze(we.DETECTION_CHANGED,a),Z(()=>{if(!n.current)return;const c=(s,u)=>{var g;if(!u)return;const{faceCenter:f,faceSize:l}=u,p=(g=n==null?void 0:n.current)==null?void 0:g.getContext("2d");if(!p)return;const _=Ka(l,s);p.beginPath(),p.arc(f.x,f.y,_,0,2*Math.PI,!1),p.lineWidth=Sa,p.strokeStyle=r.colors.placeholderColor,p.stroke()};n.current.width=e.width,n.current.height=e.height,As(n.current),c(e,o)},[e,o,r.colors.placeholderColor]),d(Is,{ref:n,$isImageMirror:t})},Ps=()=>{const[e,t]=H(),[n,r]=H(!1),o=ue(s=>{var f,l;t((f=s==null?void 0:s.detail)==null?void 0:f.cameraResolution);const u=(l=s==null?void 0:s.detail)==null?void 0:l.isMirroring;u!==void 0&&r(u)},[t]);Ze(we.CAMERA_PROPS_CHANGED,o);const[i,a]=H({code:P.FACE_NOT_PRESENT,isEscalated:!1}),c=ue(s=>{var u,f;a({code:(u=s==null?void 0:s.detail)==null?void 0:u.instructionCode,isEscalated:((f=s==null?void 0:s.detail)==null?void 0:f.isEscalated)??!1})},[a]);return Ze(we.INSTRUCTION_CHANGED,c),{cameraResolution:e,instruction:i,isMirroring:n}},Ls=()=>{const[e,t]=H(Fe.DISTANT),[n,r]=H(Se.LOADING),[o,i]=H(),a=ue(c=>{const{error:s,phase:u,state:f}=c.detail||{};u&&t(u),f&&r(f),s&&i(s)},[t,r,i]);return Ze(Mt.STATUS_CHANGED,a),{magnifEyePhase:e,magnifEyeState:n,magnifEyeError:o}},Ds=(e,t)=>{const[n,r]=H(!1);return Z(()=>{if(t===Fe.CLOSEUP){r(!0);const o=setTimeout(()=>{r(!1)},ss);return()=>clearTimeout(o)}},[t]),e&&n?e===He.CANDIDATE_SELECTION?e:He.FIT_YOUR_EYE:e},Ms=D.div`
|
|
252
252
|
z-index: 1;
|
|
253
253
|
position: absolute;
|
|
254
254
|
top: 0;
|
|
@@ -268,24 +268,24 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
268
268
|
transform-origin: center;
|
|
269
269
|
|
|
270
270
|
${e=>e.$isAnimating&&se`
|
|
271
|
-
animation: ${
|
|
272
|
-
${
|
|
273
|
-
animation-delay: ${
|
|
271
|
+
animation: ${gs(go)} ${vn}
|
|
272
|
+
${Cn} both;
|
|
273
|
+
animation-delay: ${yn};
|
|
274
274
|
`}
|
|
275
275
|
|
|
276
276
|
@media (max-width: 667px) {
|
|
277
277
|
${e=>e.$isAnimating&&se`
|
|
278
|
-
animation: ${
|
|
279
|
-
${
|
|
280
|
-
animation-delay: ${
|
|
278
|
+
animation: ${ys(go)} ${vn}
|
|
279
|
+
${Cn} both;
|
|
280
|
+
animation-delay: ${yn};
|
|
281
281
|
`}
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
`,
|
|
285
|
-
M61,48.5V54c0,3.9-3.1,7-7,7h-5.2`,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1"})})}function
|
|
284
|
+
`,Hs=({handleAnimationEnd:e,height:t,initialPosition:n,isAnimating:r,isInCandidateSelection:o,width:i})=>{const{styling:{backdropColor:a}}=ye();return d(Ms,{$isAnimating:r,$isInCandidateSelection:o,onAnimationEnd:e,children:d("svg",{viewBox:`0 0 ${i} ${t}`,children:[d("mask",{id:"mask",children:[d("rect",{fill:"#fff",height:"100%",width:"100%"}),d("rect",{fill:"#000",height:`${n.height*100}%`,id:"backdrop-cutout",rx:"50%",width:`${n.width*100}%`,x:`${n.shiftX*100}%`,y:`${n.shiftY*100}%`})]}),d("rect",{fill:a,height:"100%",mask:"url(#mask)",width:"100%"}),d("rect",{clipPath:"circle()",fill:"none",height:`${n.height*100}%`,id:"placeholder",rx:"50%",stroke:"currentColor",strokeWidth:"3",width:`${n.width*100}%`,x:`${n.shiftX*100}%`,y:`${n.shiftY*100}%`})]})})};function Fs(){return d("svg",{id:"Layer_1",style:"enable-background:new 0 0 62 62;",version:"1.1",viewBox:"0 0 62 62",x:"0px",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve",y:"0px",children:d("path",{className:"st0",d:`M48.8,1H54c3.9,0,7,3.1,7,7v5.5 M13.2,1H8C4.1,1,1,4.1,1,8c0,1.8,0,3.7,0,5.5 M1,48.5V54c0,3.9,3.1,7,7,7h5.8
|
|
285
|
+
M61,48.5V54c0,3.9-3.1,7-7,7h-5.2`,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1"})})}function Us(){return d("svg",{id:"Layer_1",style:"enable-background:new 0 0 154 70;",version:"1.1",viewBox:"0 0 154 70",x:"0px",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve",y:"0px",children:[d("path",{className:"st0",d:"M98.1,35c0,11-9.4,20-21,20c-11.6,0-21-9-21-20s9.4-20,21-20C88.7,15,98.1,24,98.1,35z",fill:"none",stroke:"#FFFFFF",strokeWidth:"2"}),d("path",{className:"st1",d:`M152.5,35c-0.2,0.2-0.5,0.5-0.8,0.8c-0.9,0.9-2.2,2.3-4,3.9c-3.5,3.3-8.6,7.6-15.2,11.9
|
|
286
286
|
C119.3,60.3,100.3,69,77.1,69c-23.2,0-42.3-8.7-55.6-17.3C14.8,47.3,9.6,43,6.1,39.7c-1.8-1.6-3.1-3-4-3.9c-0.3-0.3-0.6-0.6-0.8-0.8
|
|
287
287
|
c0.2-0.2,0.5-0.5,0.8-0.8c0.9-0.9,2.2-2.3,4-3.9c3.5-3.3,8.7-7.6,15.4-11.9C34.8,9.7,53.8,1,77.1,1c23.2,0,42.2,8.7,55.4,17.3
|
|
288
|
-
c6.6,4.3,11.7,8.7,15.2,11.9c1.7,1.6,3.1,3,4,3.9C152,34.5,152.3,34.8,152.5,35z`,fill:"none",stroke:"#FFFFFF",strokeMiterlimit:"10",strokeWidth:"2"})]})}const
|
|
288
|
+
c6.6,4.3,11.7,8.7,15.2,11.9c1.7,1.6,3.1,3,4,3.9C152,34.5,152.3,34.8,152.5,35z`,fill:"none",stroke:"#FFFFFF",strokeMiterlimit:"10",strokeWidth:"2"})]})}const Bs=D.div`
|
|
289
289
|
z-index: 1;
|
|
290
290
|
position: absolute;
|
|
291
291
|
top: 47%;
|
|
@@ -299,10 +299,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
${e=>e.$isAnimating&&se`
|
|
302
|
-
animation: ${
|
|
303
|
-
animation-delay: ${
|
|
302
|
+
animation: ${Cs} ${vn} ${Cn} both;
|
|
303
|
+
animation-delay: ${yn};
|
|
304
304
|
`}
|
|
305
|
-
`,
|
|
305
|
+
`,zs=D.div`
|
|
306
306
|
z-index: 1;
|
|
307
307
|
display: flex;
|
|
308
308
|
justify-content: center;
|
|
@@ -315,8 +315,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
315
315
|
opacity: 0;
|
|
316
316
|
|
|
317
317
|
${e=>e.$isAnimating&&se`
|
|
318
|
-
animation: ${
|
|
319
|
-
animation-delay: ${
|
|
318
|
+
animation: ${Es} ${ds} ${_s} both;
|
|
319
|
+
animation-delay: ${fs};
|
|
320
320
|
`}
|
|
321
321
|
|
|
322
322
|
svg {
|
|
@@ -325,7 +325,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
325
325
|
height: auto;
|
|
326
326
|
filter: drop-shadow(0px 0px 5px rgba(2, 27, 65, 0.3));
|
|
327
327
|
}
|
|
328
|
-
`,
|
|
328
|
+
`,Ws=D.div`
|
|
329
329
|
z-index: 1;
|
|
330
330
|
position: absolute;
|
|
331
331
|
width: 100%;
|
|
@@ -335,8 +335,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
335
335
|
opacity: 0;
|
|
336
336
|
|
|
337
337
|
${e=>e.$isAnimating&&se`
|
|
338
|
-
animation: ${
|
|
339
|
-
animation-delay: ${
|
|
338
|
+
animation: ${ws} ${hs} ${ms} both;
|
|
339
|
+
animation-delay: ${ps};
|
|
340
340
|
`}
|
|
341
341
|
|
|
342
342
|
svg {
|
|
@@ -345,4 +345,4 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const Oa=2,_o=14,ka=.
|
|
|
345
345
|
height: auto;
|
|
346
346
|
filter: drop-shadow(0px 0px 4px rgba(2, 27, 65, 0.3));
|
|
347
347
|
}
|
|
348
|
-
`,
|
|
348
|
+
`,js=({isAnimating:e,isInCandidateSelection:t})=>d(Bs,{$isAnimating:e,children:[d(Ws,{$isAnimating:e,$isInCandidateSelection:t,children:d(Fs,{})}),d(zs,{$isAnimating:e,children:d(Us,{})})]}),Gs=()=>{const{cameraResolution:e,instruction:t,isMirroring:n}=Ps(),{magnifEyeError:r,magnifEyePhase:o,magnifEyeState:i}=Ls(),{instructions:a}=ye(),c=Ds(t.code,o),s=c===He.CANDIDATE_SELECTION,u=o===Fe.MIDDLE||o===Fe.CLOSEUP;if(i===Se.ERROR)return d(_o,{text:r==null?void 0:r.message});if((i===Se.RUNNING||i===Se.WAITING)&&e){const f=Xa(e);return d(j,{children:[!u&&d(Rs,{cameraResolution:e,isImageMirror:n}),d(Hs,{handleAnimationEnd:()=>Ga(Mt.ANIMATION_END),height:e.height,initialPosition:f,isAnimating:u,isInCandidateSelection:s,width:e.width}),c&&d($s,{cssBottom:(f.height+f.shiftY)*100,isAnimating:u,isInCandidateSelection:s,isPortrait:e.width<e.height,children:a[c]}),d(js,{isAnimating:u,isInCandidateSelection:s}),!u&&d(as,{customControlEvent:we.CONTROL,isSwitchCameraDisabled:s})]})}return d(xs,{cameraHeight:e==null?void 0:e.height,cameraWidth:e==null?void 0:e.width,state:i})},Vs=e=>{var i,a,c,s,u;const t={...$a,...e==null?void 0:e.instructions},n={[Se.LOADING]:{...lo.loading,...(i=e==null?void 0:e.appStateInstructions)==null?void 0:i.loading},[Se.DONE]:{...lo.done,...(a=e==null?void 0:e.appStateInstructions)==null?void 0:a.done}},r={...e==null?void 0:e.styling,backdropColor:((c=e==null?void 0:e.styling)==null?void 0:c.backdropColor)??ka,theme:ja((s=e==null?void 0:e.styling)==null?void 0:s.theme)},o={showCameraButtons:((u=e==null?void 0:e.control)==null?void 0:u.showCameraButtons)??!1};return{instructions:t,appStateInstructions:n,styling:r,control:o}};Io(({configuration:e})=>{const t=za(we.VIDEO_ELEMENT_SIZE);return d(Ha,{uiConfiguration:Vs(e),videoElementSize:t,children:d(Gs,{})})},"x-dot-magnifeye-liveness-ui",["configuration"])});
|