@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.
Files changed (39) hide show
  1. package/document.mjs +865 -874
  2. package/document.umd.js +27 -27
  3. package/face.mjs +1252 -1323
  4. package/face.umd.js +27 -27
  5. package/magnifeye-liveness.mjs +766 -789
  6. package/magnifeye-liveness.umd.js +45 -45
  7. package/multi-range-liveness.mjs +841 -856
  8. package/multi-range-liveness.umd.js +24 -24
  9. package/package.json +7 -4
  10. package/palm.mjs +873 -891
  11. package/palm.umd.js +27 -27
  12. package/smile-liveness.mjs +1143 -1187
  13. package/smile-liveness.umd.js +37 -37
  14. package/ui/src/types/common.d.ts +3 -19
  15. package/ui/src/types/configuration.d.ts +60 -0
  16. package/ui/src/types/document.d.ts +8 -7
  17. package/ui/src/types/eye-gaze.d.ts +9 -8
  18. package/ui/src/types/face.d.ts +8 -20
  19. package/ui/src/types/magnifeye.d.ts +7 -7
  20. package/ui/src/types/multi-range.d.ts +8 -8
  21. package/ui/src/types/palm.d.ts +8 -7
  22. package/ui/src/types/smile.d.ts +8 -15
  23. package/ui-common/src/types/common.d.ts +21 -35
  24. package/ui-common/src/types/document.d.ts +1 -9
  25. package/ui-common/src/types/events/common-deprecated.d.ts +20 -0
  26. package/ui-common/src/types/events/common.d.ts +0 -13
  27. package/ui-common/src/types/events/document.d.ts +3 -7
  28. package/ui-common/src/types/events/face.d.ts +9 -2
  29. package/ui-common/src/types/events/index.d.ts +1 -0
  30. package/ui-common/src/types/events/palm.d.ts +3 -2
  31. package/ui-common/src/types/events/smile.d.ts +10 -5
  32. package/ui-common/src/types/eye-gaze.d.ts +6 -6
  33. package/ui-common/src/types/face.d.ts +1 -20
  34. package/ui-common/src/types/magnifeye.d.ts +6 -6
  35. package/ui-common/src/types/modality/detection/document.d.ts +9 -0
  36. package/ui-common/src/types/modality/detection/face.d.ts +20 -0
  37. package/ui-common/src/types/modality/detection/palm.d.ts +20 -0
  38. package/ui-common/src/types/palm.d.ts +1 -20
  39. package/ui-common/src/types/smile.d.ts +23 -16
@@ -1,9 +1,9 @@
1
- (function(D){typeof define=="function"&&define.amd?define(D):D()})(function(){"use strict";var Fs=Object.defineProperty;var Hs=(D,g,ue)=>g in D?Fs(D,g,{enumerable:!0,configurable:!0,writable:!0,value:ue}):D[g]=ue;var Nt=(D,g,ue)=>Hs(D,typeof g!="symbol"?g+"":g,ue);var D,g,ue,fe,On,kn,Nn,Tn,Tt,It,Rt,In,Le={},Rn=[],vo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,De=Array.isArray;function q(e,t){for(var n in t)e[n]=t[n];return e}function xt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function L(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?D.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??++ue,__i:-1,__u:0};return o==null&&g.vnode!=null&&g.vnode(i),i}function Co(){return{current:null}}function B(e){return e.children}function Z(e,t){this.props=e,this.context=t}function Se(e,t){if(t==null)return e.__?Se(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"?Se(e):null}function xn(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 xn(e)}}function At(e){(!e.__d&&(e.__d=!0)&&fe.push(e)&&!Je.__r++||On!=g.debounceRendering)&&((On=g.debounceRendering)||kn)(Je)}function Je(){for(var e,t,n,r,o,i,a,s=1;fe.length;)fe.length>s&&fe.sort(Nn),e=fe.shift(),s=fe.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=q({},r)).__v=r.__v+1,g.vnode&&g.vnode(n),Pt(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Se(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,Mn(i,n,a),n.__e!=o&&xn(n)));Je.__r=0}function An(e,t,n,r,o,i,a,s,l,u,f){var c,_,d,y,v,C,m=r&&r.__k||Rn,p=t.length;for(l=Eo(n,t,m,l,p),c=0;c<p;c++)(d=n.__k[c])!=null&&(_=d.__i==-1?Le:m[d.__i]||Le,d.__i=c,C=Pt(e,d,_,o,i,a,s,l,u,f),y=d.__e,d.ref&&_.ref!=d.ref&&(_.ref&&Lt(_.ref,null,d),f.push(d.ref,d.__c||y,d)),v==null&&y!=null&&(v=y),4&d.__u||_.__k===d.__k?l=Pn(d,l,e):typeof d.type=="function"&&C!==void 0?l=C:y&&(l=y.nextSibling),d.__u&=-7);return n.__e=v,l}function Eo(e,t,n,r,o){var i,a,s,l,u,f=n.length,c=f,_=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=i+_,(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(B,{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,s=null,(u=a.__i=So(a,n,l,c))!=-1&&(c--,(s=n[u])&&(s.__u|=2)),s==null||s.__v==null?(u==-1&&(o>f?_--:o<f&&_++),typeof a.type!="function"&&(a.__u|=4)):u!=l&&(u==l-1?_--:u==l+1?_++:(u>l?_--:_++,a.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<f;i++)(s=n[i])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=Se(s)),Hn(s,s));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=Se(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Q(e,t){return t=t||[],e==null||typeof e=="boolean"||(De(e)?e.some(function(n){Q(n,t)}):t.push(e)),t}function So(e,t,n,r){var o,i,a=e.key,s=e.type,l=t[n];if(l===null&&e.key==null||l&&a==l.key&&s==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&(2&l.__u)==0&&a==l.key&&s==l.type)return o;o--}if(i<t.length){if((l=t[i])&&(2&l.__u)==0&&a==l.key&&s==l.type)return i;i++}}return-1}function Ln(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||vo.test(t)?n:n+"px"}function Qe(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=Tt,e.addEventListener(t,i?Rt:It,i)):e.removeEventListener(t,i?Rt:It,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=Tt++;else if(t.t<n.u)return;return n(g.event?g.event(t):t)}}}function Pt(e,t,n,r,o,i,a,s,l,u){var f,c,_,d,y,v,C,m,p,O,$,N,w,E,U,G,Ye,j=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(f=g.__b)&&f(t);e:if(typeof j=="function")try{if(m=t.props,p="prototype"in j&&j.prototype.render,O=(f=j.contextType)&&r[f.__c],$=f?O?O.props.value:f.__:r,n.__c?C=(c=t.__c=n.__c).__=c.__E:(p?t.__c=c=new j(m,$):(t.__c=c=new Z(m,$),c.constructor=j,c.render=bo),O&&O.sub(c),c.props=m,c.state||(c.state={}),c.context=$,c.__n=r,_=c.__d=!0,c.__h=[],c._sb=[]),p&&c.__s==null&&(c.__s=c.state),p&&j.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=q({},c.__s)),q(c.__s,j.getDerivedStateFromProps(m,c.__s))),d=c.props,y=c.state,c.__v=t,_)p&&j.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),p&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(p&&j.getDerivedStateFromProps==null&&m!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,$),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,$)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ce){Ce&&(Ce.__=t)}),N=0;N<c._sb.length;N++)c.__h.push(c._sb[N]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,$),p&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,y,v)})}if(c.context=$,c.props=m,c.__P=e,c.__e=!1,w=g.__r,E=0,p){for(c.state=c.__s,c.__d=!1,w&&w(t),f=c.render(c.props,c.state,c.context),U=0;U<c._sb.length;U++)c.__h.push(c._sb[U]);c._sb=[]}else do c.__d=!1,w&&w(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++E<25);c.state=c.__s,c.getChildContext!=null&&(r=q(q({},r),c.getChildContext())),p&&!_&&c.getSnapshotBeforeUpdate!=null&&(v=c.getSnapshotBeforeUpdate(d,y)),G=f,f!=null&&f.type===B&&f.key==null&&(G=Fn(f.props.children)),s=An(e,De(G)?G:[G],t,n,r,o,i,a,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),C&&(c.__E=c.__=null)}catch(Ce){if(t.__v=null,l||i!=null)if(Ce.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(Ye=i.length;Ye--;)xt(i[Ye]);else t.__e=n.__e,t.__k=n.__k;g.__e(Ce,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=wo(n.__e,t,n,r,o,i,a,l,u);return(f=g.diffed)&&f(t),128&t.__u?void 0:s}function Mn(e,t,n){for(var r=0;r<n.length;r++)Lt(n[r],n[++r],n[++r]);g.__c&&g.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){g.__e(i,o.__v)}})}function Fn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:De(e)?e.map(Fn):q({},e)}function wo(e,t,n,r,o,i,a,s,l){var u,f,c,_,d,y,v,C=n.props,m=t.props,p=t.type;if(p=="svg"?o="http://www.w3.org/2000/svg":p=="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((d=i[u])&&"setAttribute"in d==!!p&&(p?d.localName==p:d.nodeType==3)){e=d,i[u]=null;break}}if(e==null){if(p==null)return document.createTextNode(m);e=document.createElementNS(o,p,m.is&&m),s&&(g.__m&&g.__m(t,i),s=!1),i=null}if(p==null)C===m||s&&e.data==m||(e.data=m);else{if(i=i&&D.call(e.childNodes),C=n.props||Le,!s&&i!=null)for(C={},u=0;u<e.attributes.length;u++)C[(d=e.attributes[u]).name]=d.value;for(u in C)if(d=C[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=d;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;Qe(e,u,null,d,o)}}for(u in m)d=m[u],u=="children"?_=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?y=d:u=="checked"?v=d:s&&typeof d!="function"||C[u]===d||Qe(e,u,d,C[u],o);if(f)s||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),An(t.type=="template"?e.content:e,De(_)?_:[_],t,n,r,p=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Se(n,0),s,l),i!=null)for(u=i.length;u--;)xt(i[u]);s||(u="value",p=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[u]||p=="progress"&&!y||p=="option"&&y!=C[u])&&Qe(e,u,y,C[u],o),u="checked",v!=null&&v!=e[u]&&Qe(e,u,v,C[u],o))}return e}function Lt(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){g.__e(o,n)}}function Hn(e,t,n){var r,o;if(g.unmount&&g.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Lt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){g.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Hn(r[o],t,n||typeof e.type!="function");n||xt(e.__e),e.__c=e.__=e.__e=void 0}function bo(e,t,n){return this.constructor(e,n)}function ie(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),g.__&&g.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],Pt(t,e=(!r&&n||t).__k=L(B,null,[e]),o||Le,Le,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?D.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Mn(i,e,a)}function Dt(e,t){ie(e,t,Dt)}function Mt(e,t,n){var r,o,i,a,s=q({},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]:s[i]=t[i]==null&&a!=null?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?D.call(arguments,2):n),Me(e.type,s,r||e.key,o||e.ref,null)}function zn(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,At(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"+In++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}D=Rn.slice,g={__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(s){e=s}throw e}},ue=0,Z.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=q({},this.state),typeof e=="function"&&(e=e(q({},n),this.props)),e&&q(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),At(this))},Z.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),At(this))},Z.prototype.render=B,fe=[],kn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Nn=function(e,t){return e.__v.__b-t.__v.__b},Je.__r=0,Tn=/(PointerCapture)$|Capture$/i,Tt=0,It=Dn(!1),Rt=Dn(!0),In=0;function Ft(){return(Ft=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 $o=["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,s={},l=Object.keys(r);for(a=0;a<l.length;a++)o.indexOf(i=l[a])>=0||(s[i]=r[i]);return s}(e,$o);return Mt(t,n)}function ko(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=L(Oo,Ft({},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,s=n.attributes,l=n.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(i[s[a].name]=s[a].value,i[Un(s[a].name)]=s[a].value);for(a=l.length;a--;){var u=t(l[a],null),f=l[a].slot;f?i[f]=L(Bn,{name:f},u):o[a]=u}var c=r?L(Bn,null,o):o;return L(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Dt:ie)(this._vdom,this._root)}function Un(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function No(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Un(e)]=n,this._vdom=Mt(this._vdom,r),ie(this._vdom,this._root)}}function To(){ie(this._vdom=null,this._root)}function Bn(e,t){var n=this;return L("slot",Ft({},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=ko,o.prototype.attributeChangedCallback=No,o.prototype.disconnectedCallback=To,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 s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}var Ro=0;function h(e,t,n,r,o,i){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var u={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ro,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return g.vnode&&g.vnode(u),u}const Wn={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"},Fe={DETECTION_CHANGED:"multi-range-auto-capture:detection-changed",CAMERA_PROPS_CHANGED:"multi-range-auto-capture:camera-props-changed",CONTROL:"multi-range-auto-capture:control",INSTRUCTION_CHANGED:"multi-range-auto-capture:instruction-changed",VIDEO_ELEMENT_SIZE:"multi-range-auto-capture:video-element-size",CHALLENGE_VALUE_CHANGED:"multi-range-auto-capture:challenge-value-changed",STATE_CHANGED:"multi-range-auto-capture:state-changed"},F={LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING",COMPLETE:"COMPLETE"},Gn={EYE_NOT_PRESENT:"eye_not_present"},M={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_${Gn.EYE_NOT_PRESENT}`,RIGHT_EYE_NOT_PRESENT:`right_${Gn.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"},et={CANDIDATE_SELECTION:"candidate_selection",FACE_TOO_CLOSE:"face_too_close",FACE_TOO_FAR:"face_too_far",FACE_NOT_PRESENT:"face_not_present"},we={ZERO:"ZERO",ONE:"ONE",TWO:"TWO",THREE:"THREE",FOUR:"FOUR",FIVE:"FIVE"};var ae,T,Ht,jn,be=0,Vn=[],R=g,Zn=R.__b,Yn=R.__r,qn=R.diffed,Xn=R.__c,Kn=R.unmount,Jn=R.__;function $e(e,t){R.__h&&R.__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,zt(nr,e)}function zt(e,t,n){var r=$e(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):nr(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,s);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=T,!T.__f)){var o=function(s,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(_){return!!_.__c});if(f.every(function(_){return!_.__N}))return!i||i.call(this,s,l,u);var c=r.__c.props!==s;return f.forEach(function(_){if(_.__N){var d=_.__[0];_.__=_.__N,_.__N=void 0,d!==_.__[0]&&(c=!0)}}),i&&i.call(this,s,l,u)||c};T.__f=!0;var i=T.shouldComponentUpdate,a=T.componentWillUpdate;T.componentWillUpdate=function(s,l,u){if(this.__e){var f=i;i=void 0,o(s,l,u),i=f}a&&a.call(this,s,l,u)},T.shouldComponentUpdate=o}return r.__N||r.__}function X(e,t){var n=$e(ae++,3);!R.__s&&Bt(n.__H,t)&&(n.__=e,n.u=t,T.__H.__h.push(n))}function Oe(e,t){var n=$e(ae++,4);!R.__s&&Bt(n.__H,t)&&(n.__=e,n.u=t,T.__h.push(n))}function He(e){return be=5,ee(function(){return{current:e}},[])}function Qn(e,t,n){be=6,Oe(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 ee(e,t){var n=$e(ae++,7);return Bt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function se(e,t){return be=8,ee(function(){return e},t)}function ze(e){var t=T.context[e.__c],n=$e(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(T)),t.props.value):e.__}function tt(e,t){R.useDebugValue&&R.useDebugValue(t?t(e):e)}function er(){var e=$e(ae++,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 xo(){for(var e;e=Vn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nt),e.__H.__h.forEach(Ut),e.__H.__h=[]}catch(t){e.__H.__h=[],R.__e(t,e.__v)}}R.__b=function(e){T=null,Zn&&Zn(e)},R.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Jn&&Jn(e,t)},R.__r=function(e){Yn&&Yn(e),ae=0;var t=(T=e.__c).__H;t&&(Ht===T?(t.__h=[],T.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(nt),t.__h.forEach(Ut),t.__h=[],ae=0)),Ht=T},R.diffed=function(e){qn&&qn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Vn.push(t)!==1&&jn===R.requestAnimationFrame||((jn=R.requestAnimationFrame)||Ao)(xo)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ht=T=null},R.__c=function(e,t){t.some(function(n){try{n.__h.forEach(nt),n.__h=n.__h.filter(function(r){return!r.__||Ut(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],R.__e(r,n.__v)}}),Xn&&Xn(e,t)},R.unmount=function(e){Kn&&Kn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{nt(r)}catch(o){t=o}}),n.__H=void 0,t&&R.__e(t,n.__v))};var tr=typeof requestAnimationFrame=="function";function Ao(e){var t,n=function(){clearTimeout(r),tr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);tr&&(t=requestAnimationFrame(n))}function nt(e){var t=T,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),T=t}function Ut(e){var t=T;e.__c=e.__(),T=t}function Bt(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 P=function(){return P=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},P.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 Po(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Lo=/^((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)-.*))$/,Do=Po(function(e){return Lo.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 Oe(function(){o.__=n,o.u=t,Gt(o)&&i({t:o})},[e,n,t]),X(function(){return Gt(o)&&i({t:o}),e(function(){Gt(o)&&i({t:o})})},[e]),n}function Gt(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=Oe;function jt(e,t){this.props=e,this.context=t}function Mo(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,L(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(jt.prototype=new Z).isPureReactComponent=!0,jt.prototype.shouldComponentUpdate=function(e,t){return Wt(this.props,e)||Wt(this.state,t)};var lr=g.__b;g.__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 Ho(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:Q(Q(e).map(t))},zo={map:ur,forEach:ur,count:function(e){return e?Q(e).length:0},only:function(e){var t=Q(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Q},Uo=g.__e;g.__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)}Uo(e,t,n,r)};var fr=g.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 rt(){this.__u=0,this.o=null,this.__b=null}function hr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Bo(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 L(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Ue(){this.i=null,this.l=null}g.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),fr&&fr(e)},(rt.prototype=new Z).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=hr(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=_r(l,l.__c.__P,l.__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)},rt.prototype.componentWillUnmount=function(){this.o=[]},rt.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&&L(B,null,e.fallback);return o&&(o.__u&=-33),[L(B,null,t.__a?null:e.children),o]};var pr=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 Wo(e){return this.getChildContext=function(){return e.context},e.children}function Go(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){ie(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)}}}ie(L(Wo,{context:t.context},e.__v),t.v)}function jo(e,t){var n=L(Go,{__v:e,h:t});return n.containerInfo=t,n}(Ue.prototype=new Z).__a=function(e){var t=this,n=hr(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),pr(t,e,r)):o()};n?n(i):i()}},Ue.prototype.render=function(e){this.i=null,this.l=new Map;var t=Q(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},Ue.prototype.componentDidUpdate=Ue.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){pr(e,n,t)})};var mr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Vo=/^(?: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)/,Yo=/[A-Z0-9]/g,qo=typeof document<"u",Xo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ko(e,t,n){return t.__k==null&&(t.textContent=""),ie(e,t),typeof n=="function"&&n(),e?e.__c:null}function Jo(e,t,n){return Dt(e,t),typeof n=="function"&&n(),e?e.__c:null}Z.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Z.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=g.event;function Qo(){}function ei(){return this.cancelBubble}function ti(){return this.defaultPrevented}g.event=function(e){return gr&&(e=gr(e)),e.persist=Qo,e.isPropagationStopped=ei,e.isDefaultPrevented=ti,e.nativeEvent=e};var Vt,ni={enumerable:!1,configurable:!0,get:function(){return this.class}},yr=g.vnode;g.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 s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||qo&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Xo(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Zo.test(a)&&(a=l):l=a="oninput":i&&Vo.test(a)?a=a.replace(Yo,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Q(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Q(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",ni)):(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=g.__r;g.__r=function(e){vr&&vr(e),Vt=e.__c};var Cr=g.diffed;g.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 ri={ReactCurrentDispatcher:{current:{readContext:function(e){return Vt.__n[e.__c].props.value},useCallback:se,useContext:ze,useDebugValue:tt,useDeferredValue:ar,useEffect:X,useId:er,useImperativeHandle:Qn,useInsertionEffect:cr,useLayoutEffect:Oe,useMemo:ee,useReducer:zt,useRef:He,useState:H,useSyncExternalStore:or,useTransition:sr}}};function oi(e){return L.bind(null,e)}function ot(e){return!!e&&e.$$typeof===mr}function ii(e){return ot(e)&&e.type===B}function ai(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function si(e){return ot(e)?Mt.apply(null,arguments):e}function ci(e){return!!e.__k&&(ie(null,e),!0)}function li(e){return e&&(e.base||e.nodeType===1&&e)||null}var ui=function(e,t){return e(t)},fi=function(e,t){return e(t)},di=B,_i=ot,te={useState:H,useId:er,useReducer:zt,useEffect:X,useLayoutEffect:Oe,useInsertionEffect:cr,useTransition:sr,useDeferredValue:ar,useSyncExternalStore:or,startTransition:ir,useRef:He,useImperativeHandle:Qn,useMemo:ee,useCallback:se,useContext:ze,useDebugValue:tt,version:"18.3.1",Children:zo,render:Ko,hydrate:Jo,unmountComponentAtNode:ci,createPortal:jo,createElement:L,createContext:zn,createFactory:oi,cloneElement:si,createRef:Co,Fragment:B,isValidElement:ot,isElement:_i,isFragment:ii,isMemo:ai,findDOMNode:li,Component:Z,PureComponent:jt,memo:Mo,forwardRef:Ho,flushSync:fi,unstable_batchedUpdates:ui,StrictMode:di,Suspense:rt,SuspenseList:Ue,lazy:Bo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ri};function hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zt,Er;function pi(){return Er||(Er=1,Zt=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),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var f=a[u];if(!l(f))return!1;var c=t[f],_=n[f];if(i=r?r.call(o,c,_,f):void 0,i===!1||i===void 0&&c!==_)return!1}return!0}),Zt}var mi=pi();const gi=hi(mi);var I="-ms-",Be="-moz-",k="-webkit-",Sr="comm",it="rule",Yt="decl",yi="@import",wr="@keyframes",vi="@layer",br=Math.abs,qt=String.fromCharCode,Xt=Object.assign;function Ci(e,t){return A(e,0)^45?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}function $r(e){return e.trim()}function ne(e,t){return(e=t.exec(e))?e[0]:e}function S(e,t,n){return e.replace(t,n)}function at(e,t,n){return e.indexOf(t,n)}function A(e,t){return e.charCodeAt(t)|0}function ke(e,t,n){return e.slice(t,n)}function K(e){return e.length}function Or(e){return e.length}function We(e,t){return t.push(e),e}function Ei(e,t){return e.map(t).join("")}function kr(e,t){return e.filter(function(n){return!ne(n,t)})}var st=1,Ne=1,Nr=0,W=0,x=0,Te="";function ct(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:st,column:Ne,length:a,return:"",siblings:s}}function ce(e,t){return Xt(ct("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ie(e){for(;e.root;)e=ce(e.root,{children:[e]});We(e,e.siblings)}function Si(){return x}function wi(){return x=W>0?A(Te,--W):0,Ne--,x===10&&(Ne=1,st--),x}function Y(){return x=W<Nr?A(Te,W++):0,Ne++,x===10&&(Ne=1,st++),x}function _e(){return A(Te,W)}function lt(){return W}function ut(e,t){return ke(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 bi(e){return st=Ne=1,Nr=K(Te=e),W=0,[]}function $i(e){return Te="",e}function Jt(e){return $r(ut(W-1,Qt(e===91?e+2:e===40?e+1:e)))}function Oi(e){for(;(x=_e())&&x<33;)Y();return Kt(e)>2||Kt(x)>3?"":" "}function ki(e,t){for(;--t&&Y()&&!(x<48||x>102||x>57&&x<65||x>70&&x<97););return ut(e,lt()+(t<6&&_e()==32&&Y()==32))}function Qt(e){for(;Y();)switch(x){case e:return W;case 34:case 39:e!==34&&e!==39&&Qt(x);break;case 40:e===41&&Qt(e);break;case 92:Y();break}return W}function Ni(e,t){for(;Y()&&e+x!==57;)if(e+x===84&&_e()===47)break;return"/*"+ut(t,W-1)+"*"+qt(e===47?e:Y())}function Ti(e){for(;!Kt(_e());)Y();return ut(e,W)}function Ii(e){return $i(ft("",null,null,null,[""],e=bi(e),0,[0],e))}function ft(e,t,n,r,o,i,a,s,l){for(var u=0,f=0,c=a,_=0,d=0,y=0,v=1,C=1,m=1,p=0,O="",$=o,N=i,w=r,E=O;C;)switch(y=p,p=Y()){case 40:if(y!=108&&A(E,c-1)==58){at(E+=S(Jt(p),"&","&\f"),"&\f",br(u?s[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:E+=Jt(p);break;case 9:case 10:case 13:case 32:E+=Oi(y);break;case 92:E+=ki(lt()-1,7);continue;case 47:switch(_e()){case 42:case 47:We(Ri(Ni(Y(),lt()),t,n,l),l);break;default:E+="/"}break;case 123*v:s[u++]=K(E)*m;case 125*v:case 59:case 0:switch(p){case 0:case 125:C=0;case 59+f:m==-1&&(E=S(E,/\f/g,"")),d>0&&K(E)-c&&We(d>32?Ir(E+";",r,n,c-1,l):Ir(S(E," ","")+";",r,n,c-2,l),l);break;case 59:E+=";";default:if(We(w=Tr(E,t,n,u,f,o,s,O,$=[],N=[],c,i),i),p===123)if(f===0)ft(E,t,w,w,$,i,c,s,N);else switch(_===99&&A(E,3)===110?100:_){case 100:case 108:case 109:case 115:ft(e,w,w,r&&We(Tr(e,w,w,0,0,o,s,O,o,$=[],c,N),N),o,N,c,s,r?$:N);break;default:ft(E,w,w,w,[""],N,0,s,N)}}u=f=d=0,v=m=1,O=E="",c=a;break;case 58:c=1+K(E),d=y;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&wi()==125)continue}switch(E+=qt(p),p*v){case 38:m=f>0?1:(E+="\f",-1);break;case 44:s[u++]=(K(E)-1)*m,m=1;break;case 64:_e()===45&&(E+=Jt(Y())),_=_e(),f=c=K(O=E+=Ti(lt())),p++;break;case 45:y===45&&K(E)==2&&(v=0)}}return i}function Tr(e,t,n,r,o,i,a,s,l,u,f,c){for(var _=o-1,d=o===0?i:[""],y=Or(d),v=0,C=0,m=0;v<r;++v)for(var p=0,O=ke(e,_+1,_=br(C=a[v])),$=e;p<y;++p)($=$r(C>0?d[p]+" "+O:S(O,/&\f/g,d[p])))&&(l[m++]=$);return ct(e,t,n,o===0?it:s,l,u,f,c)}function Ri(e,t,n,r){return ct(e,t,n,Sr,qt(Si()),ke(e,2,-2),0,r)}function Ir(e,t,n,r,o){return ct(e,t,n,Yt,ke(e,0,r),ke(e,r+1,-1),r,o)}function Rr(e,t,n){switch(Ci(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 Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+Be+e+I+e+e;case 5936:switch(A(e,t+11)){case 114:return k+e+I+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+I+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+I+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return k+e+I+e+e;case 6165:return k+e+I+"flex-"+e+e;case 5187:return k+e+S(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+I+"flex-$1$2")+e;case 5443:return k+e+I+"flex-item-"+S(e,/flex-|-self/g,"")+(ne(e,/flex-|baseline/)?"":I+"grid-row-"+S(e,/flex-|-self/g,""))+e;case 4675:return k+e+I+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+I+S(e,"shrink","negative")+e;case 5292:return k+e+I+S(e,"basis","preferred-size")+e;case 6060:return k+"box-"+S(e,"-grow","")+k+e+I+S(e,"grow","positive")+e;case 4554:return k+S(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+I+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!ne(e,/flex-|baseline/))return I+"grid-column-align"+ke(e,t)+e;break;case 2592:case 3360:return I+S(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ne(r.props,/grid-\w+-end/)})?~at(e+(n=n[t].value),"span",0)?e:I+S(e,"-start","")+e+I+"grid-row-span:"+(~at(n,"span",0)?ne(n,/\d+/):+ne(n,/\d+/)-+ne(e,/\d+/))+";":I+S(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ne(r.props,/grid-\w+-start/)})?e:I+S(S(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return S(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(K(e)-1-t>6)switch(A(e,t+1)){case 109:if(A(e,t+4)!==45)break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+Be+(A(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~at(e,"stretch",0)?Rr(S(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return S(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,a,s,l,u){return I+o+":"+i+u+(a?I+o+"-span:"+(s?l:+l-+i)+u:"")+e});case 4949:if(A(e,t+6)===121)return S(e,":",":"+k)+e;break;case 6444:switch(A(e,A(e,14)===45?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(A(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+I+"$2box$3")+e;case 100:return S(e,":",":"+I)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(e,"scroll-","scroll-snap-")+e}return e}function dt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function xi(e,t,n,r){switch(e.type){case vi:if(e.children.length)break;case yi:case Yt:return e.return=e.return||e.value;case Sr:return"";case wr:return e.return=e.value+"{"+dt(e.children,r)+"}";case it:if(!K(e.value=e.props.join(",")))return""}return K(n=dt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ai(e){var t=Or(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Pi(e){return function(t){t.root||(t=t.return)&&e(t)}}function Li(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Yt:e.return=Rr(e.value,e.length,n);return;case wr:return dt([ce(e,{value:S(e.value,"@","@"+k)})],r);case it:if(e.length)return Ei(n=e.props,function(o){switch(ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ie(ce(e,{props:[S(o,/:(read-\w+)/,":"+Be+"$1")]})),Ie(ce(e,{props:[o]})),Xt(e,{props:kr(n,r)});break;case"::placeholder":Ie(ce(e,{props:[S(o,/:(plac\w+)/,":"+k+"input-$1")]})),Ie(ce(e,{props:[S(o,/:(plac\w+)/,":"+Be+"$1")]})),Ie(ce(e,{props:[S(o,/:(plac\w+)/,I+"input-$1")]})),Ie(ce(e,{props:[o]})),Xt(e,{props:kr(n,r)});break}return""})}}var Di={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},b={},he=typeof process<"u"&&b!==void 0&&(b.REACT_APP_SC_ATTR||b.SC_ATTR)||"data-styled",xr="active",Ar="data-styled-version",_t="6.1.18",en=`/*!sc*/
2
- `,ht=typeof window<"u"&&typeof document<"u",Mi=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&b!==void 0&&b.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&b.REACT_APP_SC_DISABLE_SPEEDY!==""?b.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&b.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&b!==void 0&&b.SC_DISABLE_SPEEDY!==void 0&&b.SC_DISABLE_SPEEDY!==""?b.SC_DISABLE_SPEEDY!=="false"&&b.SC_DISABLE_SPEEDY:b.NODE_ENV!=="production"),Pr=/invalid hook call/i,pt=new Set,Fi=function(e,t){if(b.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
1
+ (function(oe){typeof define=="function"&&define.amd?define(oe):oe()})(function(){"use strict";var oe,S,Sn,ue,En,wn,bn,$n,Ot,kt,Nt,On,Ae={},kn=[],ho=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Le=Array.isArray;function Y(e,t){for(var n in t)e[n]=t[n];return e}function Tt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function L(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?oe.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??++Sn,__i:-1,__u:0};return o==null&&S.vnode!=null&&S.vnode(i),i}function mo(){return{current:null}}function U(e){return e.children}function V(e,t){this.props=e,this.context=t}function Se(e,t){if(t==null)return e.__?Se(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"?Se(e):null}function Nn(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 Nn(e)}}function It(e){(!e.__d&&(e.__d=!0)&&ue.push(e)&&!Ke.__r++||En!=S.debounceRendering)&&((En=S.debounceRendering)||wn)(Ke)}function Ke(){for(var e,t,n,r,o,i,a,s=1;ue.length;)ue.length>s&&ue.sort(bn),e=ue.shift(),s=ue.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Y({},r)).__v=r.__v+1,S.vnode&&S.vnode(n),Rt(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Se(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,Pn(i,n,a),n.__e!=o&&Nn(n)));Ke.__r=0}function Tn(e,t,n,r,o,i,a,s,l,u,f){var c,_,d,g,y,v,m=r&&r.__k||kn,h=t.length;for(l=go(n,t,m,l,h),c=0;c<h;c++)(d=n.__k[c])!=null&&(_=d.__i==-1?Ae:m[d.__i]||Ae,d.__i=c,v=Rt(e,d,_,o,i,a,s,l,u,f),g=d.__e,d.ref&&_.ref!=d.ref&&(_.ref&&xt(_.ref,null,d),f.push(d.ref,d.__c||g,d)),y==null&&g!=null&&(y=g),4&d.__u||_.__k===d.__k?l=In(d,l,e):typeof d.type=="function"&&v!==void 0?l=v:g&&(l=g.nextSibling),d.__u&=-7);return n.__e=y,l}function go(e,t,n,r,o){var i,a,s,l,u,f=n.length,c=f,_=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=i+_,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Me(null,a,null,null,null):Le(a)?Me(U,{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,s=null,(u=a.__i=yo(a,n,l,c))!=-1&&(c--,(s=n[u])&&(s.__u|=2)),s==null||s.__v==null?(u==-1&&(o>f?_--:o<f&&_++),typeof a.type!="function"&&(a.__u|=4)):u!=l&&(u==l-1?_--:u==l+1?_++:(u>l?_--:_++,a.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<f;i++)(s=n[i])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=Se(s)),Ln(s,s));return r}function In(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=In(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Se(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"||(Le(e)?e.some(function(n){J(n,t)}):t.push(e)),t}function yo(e,t,n,r){var o,i,a=e.key,s=e.type,l=t[n];if(l===null&&e.key==null||l&&a==l.key&&s==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&(2&l.__u)==0&&a==l.key&&s==l.type)return o;o--}if(i<t.length){if((l=t[i])&&(2&l.__u)==0&&a==l.key&&s==l.type)return i;i++}}return-1}function Rn(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||ho.test(t)?n:n+"px"}function Je(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||Rn(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Rn(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace($n,"$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?Nt:kt,i)):e.removeEventListener(t,i?Nt:kt,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 xn(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(S.event?S.event(t):t)}}}function Rt(e,t,n,r,o,i,a,s,l,u){var f,c,_,d,g,y,v,m,h,O,$,N,w,C,z,W,Ze,j=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(f=S.__b)&&f(t);e:if(typeof j=="function")try{if(m=t.props,h="prototype"in j&&j.prototype.render,O=(f=j.contextType)&&r[f.__c],$=f?O?O.props.value:f.__:r,n.__c?v=(c=t.__c=n.__c).__=c.__E:(h?t.__c=c=new j(m,$):(t.__c=c=new V(m,$),c.constructor=j,c.render=Co),O&&O.sub(c),c.props=m,c.state||(c.state={}),c.context=$,c.__n=r,_=c.__d=!0,c.__h=[],c._sb=[]),h&&c.__s==null&&(c.__s=c.state),h&&j.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Y({},c.__s)),Y(c.__s,j.getDerivedStateFromProps(m,c.__s))),d=c.props,g=c.state,c.__v=t,_)h&&j.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),h&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(h&&j.getDerivedStateFromProps==null&&m!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,$),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,$)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(ve){ve&&(ve.__=t)}),N=0;N<c._sb.length;N++)c.__h.push(c._sb[N]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,$),h&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,g,y)})}if(c.context=$,c.props=m,c.__P=e,c.__e=!1,w=S.__r,C=0,h){for(c.state=c.__s,c.__d=!1,w&&w(t),f=c.render(c.props,c.state,c.context),z=0;z<c._sb.length;z++)c.__h.push(c._sb[z]);c._sb=[]}else do c.__d=!1,w&&w(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++C<25);c.state=c.__s,c.getChildContext!=null&&(r=Y(Y({},r),c.getChildContext())),h&&!_&&c.getSnapshotBeforeUpdate!=null&&(y=c.getSnapshotBeforeUpdate(d,g)),W=f,f!=null&&f.type===U&&f.key==null&&(W=An(f.props.children)),s=Tn(e,Le(W)?W:[W],t,n,r,o,i,a,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),v&&(c.__E=c.__=null)}catch(ve){if(t.__v=null,l||i!=null)if(ve.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(Ze=i.length;Ze--;)Tt(i[Ze]);else t.__e=n.__e,t.__k=n.__k;S.__e(ve,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=vo(n.__e,t,n,r,o,i,a,l,u);return(f=S.diffed)&&f(t),128&t.__u?void 0:s}function Pn(e,t,n){for(var r=0;r<n.length;r++)xt(n[r],n[++r],n[++r]);S.__c&&S.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){S.__e(i,o.__v)}})}function An(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Le(e)?e.map(An):Y({},e)}function vo(e,t,n,r,o,i,a,s,l){var u,f,c,_,d,g,y,v=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((d=i[u])&&"setAttribute"in d==!!h&&(h?d.localName==h:d.nodeType==3)){e=d,i[u]=null;break}}if(e==null){if(h==null)return document.createTextNode(m);e=document.createElementNS(o,h,m.is&&m),s&&(S.__m&&S.__m(t,i),s=!1),i=null}if(h==null)v===m||s&&e.data==m||(e.data=m);else{if(i=i&&oe.call(e.childNodes),v=n.props||Ae,!s&&i!=null)for(v={},u=0;u<e.attributes.length;u++)v[(d=e.attributes[u]).name]=d.value;for(u in v)if(d=v[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=d;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;Je(e,u,null,d,o)}}for(u in m)d=m[u],u=="children"?_=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?g=d:u=="checked"?y=d:s&&typeof d!="function"||v[u]===d||Je(e,u,d,v[u],o);if(f)s||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Tn(t.type=="template"?e.content:e,Le(_)?_:[_],t,n,r,h=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Se(n,0),s,l),i!=null)for(u=i.length;u--;)Tt(i[u]);s||(u="value",h=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[u]||h=="progress"&&!g||h=="option"&&g!=v[u])&&Je(e,u,g,v[u],o),u="checked",y!=null&&y!=e[u]&&Je(e,u,y,v[u],o))}return e}function xt(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){S.__e(o,n)}}function Ln(e,t,n){var r,o;if(S.unmount&&S.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||xt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){S.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ln(r[o],t,n||typeof e.type!="function");n||Tt(e.__e),e.__c=e.__=e.__e=void 0}function Co(e,t,n){return this.constructor(e,n)}function ie(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),S.__&&S.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],Rt(t,e=(!r&&n||t).__k=L(U,null,[e]),o||Ae,Ae,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?oe.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Pn(i,e,a)}function Pt(e,t){ie(e,t,Pt)}function At(e,t,n){var r,o,i,a,s=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]:s[i]=t[i]==null&&a!=null?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?oe.call(arguments,2):n),Me(e.type,s,r||e.key,o||e.ref,null)}function Mn(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"+On++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}oe=kn.slice,S={__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(s){e=s}throw e}},Sn=0,V.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))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),It(this))},V.prototype.render=U,ue=[],wn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,bn=function(e,t){return e.__v.__b-t.__v.__b},Ke.__r=0,$n=/(PointerCapture)$|Capture$/i,Ot=0,kt=xn(!1),Nt=xn(!0),On=0;function Lt(){return(Lt=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 So=["context","children"];function Eo(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,a,s={},l=Object.keys(r);for(a=0;a<l.length;a++)o.indexOf(i=l[a])>=0||(s[i]=r[i]);return s}(e,So);return At(t,n)}function wo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=L(Eo,Lt({},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,s=n.attributes,l=n.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(i[s[a].name]=s[a].value,i[Dn(s[a].name)]=s[a].value);for(a=l.length;a--;){var u=t(l[a],null),f=l[a].slot;f?i[f]=L(Fn,{name:f},u):o[a]=u}var c=r?L(Fn,null,o):o;return L(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Pt:ie)(this._vdom,this._root)}function Dn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function bo(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Dn(e)]=n,this._vdom=At(this._vdom,r),ie(this._vdom,this._root)}}function $o(){ie(this._vdom=null,this._root)}function Fn(e,t){var n=this;return L("slot",Lt({},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 Oo(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=wo,o.prototype.attributeChangedCallback=bo,o.prototype.disconnectedCallback=$o,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 s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}var ko=0;function p(e,t,n,r,o,i){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var u={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ko,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return S.vnode&&S.vnode(u),u}const Hn={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"},De={DETECTION_CHANGED:"multi-range-auto-capture:detection-changed",CAMERA_PROPS_CHANGED:"multi-range-auto-capture:camera-props-changed",CONTROL:"multi-range-auto-capture:control",INSTRUCTION_CHANGED:"multi-range-auto-capture:instruction-changed",VIDEO_ELEMENT_SIZE:"multi-range-auto-capture:video-element-size",CHALLENGE_VALUE_CHANGED:"multi-range-auto-capture:challenge-value-changed",STATE_CHANGED:"multi-range-auto-capture:state-changed"},D={LOADING:"loading",ERROR:"error",WAITING:"waiting",RUNNING:"running",COMPLETE:"complete"},zn={EYE_NOT_PRESENT:"eye_not_present"},M={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"},Qe={CANDIDATE_SELECTION:"candidate_selection",FACE_TOO_CLOSE:"face_too_close",FACE_TOO_FAR:"face_too_far",FACE_NOT_PRESENT:"face_not_present"},Ee={ZERO:"ZERO",ONE:"ONE",TWO:"TWO",THREE:"THREE",FOUR:"FOUR",FIVE:"FIVE"};var ae,T,Mt,Un,we=0,Bn=[],R=S,Wn=R.__b,jn=R.__r,Gn=R.diffed,Vn=R.__c,Zn=R.unmount,Yn=R.__;function be(e,t){R.__h&&R.__h(T,e,we||t),we=0;var n=T.__H||(T.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function F(e){return we=1,Dt(Jn,e)}function Dt(e,t,n){var r=be(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Jn(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,s);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=T,!T.__f)){var o=function(s,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(_){return!!_.__c});if(f.every(function(_){return!_.__N}))return!i||i.call(this,s,l,u);var c=r.__c.props!==s;return f.forEach(function(_){if(_.__N){var d=_.__[0];_.__=_.__N,_.__N=void 0,d!==_.__[0]&&(c=!0)}}),i&&i.call(this,s,l,u)||c};T.__f=!0;var i=T.shouldComponentUpdate,a=T.componentWillUpdate;T.componentWillUpdate=function(s,l,u){if(this.__e){var f=i;i=void 0,o(s,l,u),i=f}a&&a.call(this,s,l,u)},T.shouldComponentUpdate=o}return r.__N||r.__}function q(e,t){var n=be(ae++,3);!R.__s&&Ht(n.__H,t)&&(n.__=e,n.u=t,T.__H.__h.push(n))}function $e(e,t){var n=be(ae++,4);!R.__s&&Ht(n.__H,t)&&(n.__=e,n.u=t,T.__h.push(n))}function Fe(e){return we=5,Q(function(){return{current:e}},[])}function qn(e,t,n){we=6,$e(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=be(ae++,7);return Ht(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function se(e,t){return we=8,Q(function(){return e},t)}function He(e){var t=T.context[e.__c],n=be(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(T)),t.props.value):e.__}function et(e,t){R.useDebugValue&&R.useDebugValue(t?t(e):e)}function Xn(){var e=be(ae++,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 No(){for(var e;e=Bn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tt),e.__H.__h.forEach(Ft),e.__H.__h=[]}catch(t){e.__H.__h=[],R.__e(t,e.__v)}}R.__b=function(e){T=null,Wn&&Wn(e)},R.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Yn&&Yn(e,t)},R.__r=function(e){jn&&jn(e),ae=0;var t=(T=e.__c).__H;t&&(Mt===T?(t.__h=[],T.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(tt),t.__h.forEach(Ft),t.__h=[],ae=0)),Mt=T},R.diffed=function(e){Gn&&Gn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Bn.push(t)!==1&&Un===R.requestAnimationFrame||((Un=R.requestAnimationFrame)||To)(No)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Mt=T=null},R.__c=function(e,t){t.some(function(n){try{n.__h.forEach(tt),n.__h=n.__h.filter(function(r){return!r.__||Ft(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],R.__e(r,n.__v)}}),Vn&&Vn(e,t)},R.unmount=function(e){Zn&&Zn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{tt(r)}catch(o){t=o}}),n.__H=void 0,t&&R.__e(t,n.__v))};var Kn=typeof requestAnimationFrame=="function";function To(e){var t,n=function(){clearTimeout(r),Kn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Kn&&(t=requestAnimationFrame(n))}function tt(e){var t=T,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),T=t}function Ft(e){var t=T;e.__c=e.__(),T=t}function Ht(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Jn(e,t){return typeof t=="function"?t(e):t}var A=function(){return A=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},A.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 Io(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ro=/^((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)-.*))$/,xo=Io(function(e){return Ro.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Qn(e,t){for(var n in t)e[n]=t[n];return e}function zt(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 er(e,t){var n=t(),r=F({t:{__:n,u:t}}),o=r[0].t,i=r[1];return $e(function(){o.__=n,o.u=t,Ut(o)&&i({t:o})},[e,n,t]),q(function(){return Ut(o)&&i({t:o}),e(function(){Ut(o)&&i({t:o})})},[e]),n}function Ut(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 tr(e){e()}function nr(e){return e}function rr(){return[!1,tr]}var or=$e;function Bt(e,t){this.props=e,this.context=t}function Po(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:zt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,L(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Bt.prototype=new V).isPureReactComponent=!0,Bt.prototype.shouldComponentUpdate=function(e,t){return zt(this.props,e)||zt(this.state,t)};var ir=S.__b;S.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ir&&ir(e)};var Ao=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Lo(e){function t(n){var r=Qn({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ao,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ar=function(e,t){return e==null?null:J(J(e).map(t))},Mo={map:ar,forEach:ar,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},Do=S.__e;S.__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)}Do(e,t,n,r)};var sr=S.unmount;function cr(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=Qn({},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 cr(r,t,n)})),e}function lr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return lr(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 nt(){this.__u=0,this.o=null,this.__b=null}function ur(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Fo(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 L(n,i)}return o.displayName="Lazy",o.__f=!0,o}function ze(){this.i=null,this.l=null}S.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),sr&&sr(e)},(nt.prototype=new V).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=ur(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=lr(l,l.__c.__P,l.__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)},nt.prototype.componentWillUnmount=function(){this.o=[]},nt.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]=cr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&L(U,null,e.fallback);return o&&(o.__u&=-33),[L(U,null,t.__a?null:e.children),o]};var fr=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 Ho(e){return this.getChildContext=function(){return e.context},e.children}function zo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){ie(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)}}}ie(L(Ho,{context:t.context},e.__v),t.v)}function Uo(e,t){var n=L(zo,{__v:e,h:t});return n.containerInfo=t,n}(ze.prototype=new V).__a=function(e){var t=this,n=ur(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),fr(t,e,r)):o()};n?n(i):i()}},ze.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},ze.prototype.componentDidUpdate=ze.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){fr(e,n,t)})};var dr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Bo=/^(?: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]/,Wo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,jo=/[A-Z0-9]/g,Go=typeof document<"u",Vo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Zo(e,t,n){return t.__k==null&&(t.textContent=""),ie(e,t),typeof n=="function"&&n(),e?e.__c:null}function Yo(e,t,n){return Pt(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 _r=S.event;function qo(){}function Xo(){return this.cancelBubble}function Ko(){return this.defaultPrevented}S.event=function(e){return _r&&(e=_r(e)),e.persist=qo,e.isPropagationStopped=Xo,e.isDefaultPrevented=Ko,e.nativeEvent=e};var Wt,Jo={enumerable:!1,configurable:!0,get:function(){return this.class}},pr=S.vnode;S.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 s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||Go&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Vo(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Wo.test(a)&&(a=l):l=a="oninput":i&&Bo.test(a)?a=a.replace(jo,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=s}}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",Jo)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=dr,pr&&pr(e)};var hr=S.__r;S.__r=function(e){hr&&hr(e),Wt=e.__c};var mr=S.diffed;S.diffed=function(e){mr&&mr(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),Wt=null};var Qo={ReactCurrentDispatcher:{current:{readContext:function(e){return Wt.__n[e.__c].props.value},useCallback:se,useContext:He,useDebugValue:et,useDeferredValue:nr,useEffect:q,useId:Xn,useImperativeHandle:qn,useInsertionEffect:or,useLayoutEffect:$e,useMemo:Q,useReducer:Dt,useRef:Fe,useState:F,useSyncExternalStore:er,useTransition:rr}}};function ei(e){return L.bind(null,e)}function rt(e){return!!e&&e.$$typeof===dr}function ti(e){return rt(e)&&e.type===U}function ni(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ri(e){return rt(e)?At.apply(null,arguments):e}function oi(e){return!!e.__k&&(ie(null,e),!0)}function ii(e){return e&&(e.base||e.nodeType===1&&e)||null}var ai=function(e,t){return e(t)},si=function(e,t){return e(t)},ci=U,li=rt,ee={useState:F,useId:Xn,useReducer:Dt,useEffect:q,useLayoutEffect:$e,useInsertionEffect:or,useTransition:rr,useDeferredValue:nr,useSyncExternalStore:er,startTransition:tr,useRef:Fe,useImperativeHandle:qn,useMemo:Q,useCallback:se,useContext:He,useDebugValue:et,version:"18.3.1",Children:Mo,render:Zo,hydrate:Yo,unmountComponentAtNode:oi,createPortal:Uo,createElement:L,createContext:Mn,createFactory:ei,cloneElement:ri,createRef:mo,Fragment:U,isValidElement:rt,isElement:li,isFragment:ti,isMemo:ni,findDOMNode:ii,Component:V,PureComponent:Bt,memo:Po,forwardRef:Lo,flushSync:si,unstable_batchedUpdates:ai,StrictMode:ci,Suspense:nt,SuspenseList:ze,lazy:Fo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qo};function ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jt,gr;function fi(){return gr||(gr=1,jt=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),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var f=a[u];if(!l(f))return!1;var c=t[f],_=n[f];if(i=r?r.call(o,c,_,f):void 0,i===!1||i===void 0&&c!==_)return!1}return!0}),jt}var di=fi();const _i=ui(di);var I="-ms-",Ue="-moz-",k="-webkit-",yr="comm",ot="rule",Gt="decl",pi="@import",vr="@keyframes",hi="@layer",Cr=Math.abs,Vt=String.fromCharCode,Zt=Object.assign;function mi(e,t){return P(e,0)^45?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}function Sr(e){return e.trim()}function te(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,n){return e.replace(t,n)}function it(e,t,n){return e.indexOf(t,n)}function P(e,t){return e.charCodeAt(t)|0}function Oe(e,t,n){return e.slice(t,n)}function X(e){return e.length}function Er(e){return e.length}function Be(e,t){return t.push(e),e}function gi(e,t){return e.map(t).join("")}function wr(e,t){return e.filter(function(n){return!te(n,t)})}var at=1,ke=1,br=0,B=0,x=0,Ne="";function st(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:at,column:ke,length:a,return:"",siblings:s}}function ce(e,t){return Zt(st("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Te(e){for(;e.root;)e=ce(e.root,{children:[e]});Be(e,e.siblings)}function yi(){return x}function vi(){return x=B>0?P(Ne,--B):0,ke--,x===10&&(ke=1,at--),x}function Z(){return x=B<br?P(Ne,B++):0,ke++,x===10&&(ke=1,at++),x}function de(){return P(Ne,B)}function ct(){return B}function lt(e,t){return Oe(Ne,e,t)}function Yt(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 Ci(e){return at=ke=1,br=X(Ne=e),B=0,[]}function Si(e){return Ne="",e}function qt(e){return Sr(lt(B-1,Xt(e===91?e+2:e===40?e+1:e)))}function Ei(e){for(;(x=de())&&x<33;)Z();return Yt(e)>2||Yt(x)>3?"":" "}function wi(e,t){for(;--t&&Z()&&!(x<48||x>102||x>57&&x<65||x>70&&x<97););return lt(e,ct()+(t<6&&de()==32&&Z()==32))}function Xt(e){for(;Z();)switch(x){case e:return B;case 34:case 39:e!==34&&e!==39&&Xt(x);break;case 40:e===41&&Xt(e);break;case 92:Z();break}return B}function bi(e,t){for(;Z()&&e+x!==57;)if(e+x===84&&de()===47)break;return"/*"+lt(t,B-1)+"*"+Vt(e===47?e:Z())}function $i(e){for(;!Yt(de());)Z();return lt(e,B)}function Oi(e){return Si(ut("",null,null,null,[""],e=Ci(e),0,[0],e))}function ut(e,t,n,r,o,i,a,s,l){for(var u=0,f=0,c=a,_=0,d=0,g=0,y=1,v=1,m=1,h=0,O="",$=o,N=i,w=r,C=O;v;)switch(g=h,h=Z()){case 40:if(g!=108&&P(C,c-1)==58){it(C+=E(qt(h),"&","&\f"),"&\f",Cr(u?s[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:C+=qt(h);break;case 9:case 10:case 13:case 32:C+=Ei(g);break;case 92:C+=wi(ct()-1,7);continue;case 47:switch(de()){case 42:case 47:Be(ki(bi(Z(),ct()),t,n,l),l);break;default:C+="/"}break;case 123*y:s[u++]=X(C)*m;case 125*y:case 59:case 0:switch(h){case 0:case 125:v=0;case 59+f:m==-1&&(C=E(C,/\f/g,"")),d>0&&X(C)-c&&Be(d>32?Or(C+";",r,n,c-1,l):Or(E(C," ","")+";",r,n,c-2,l),l);break;case 59:C+=";";default:if(Be(w=$r(C,t,n,u,f,o,s,O,$=[],N=[],c,i),i),h===123)if(f===0)ut(C,t,w,w,$,i,c,s,N);else switch(_===99&&P(C,3)===110?100:_){case 100:case 108:case 109:case 115:ut(e,w,w,r&&Be($r(e,w,w,0,0,o,s,O,o,$=[],c,N),N),o,N,c,s,r?$:N);break;default:ut(C,w,w,w,[""],N,0,s,N)}}u=f=d=0,y=m=1,O=C="",c=a;break;case 58:c=1+X(C),d=g;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&vi()==125)continue}switch(C+=Vt(h),h*y){case 38:m=f>0?1:(C+="\f",-1);break;case 44:s[u++]=(X(C)-1)*m,m=1;break;case 64:de()===45&&(C+=qt(Z())),_=de(),f=c=X(O=C+=$i(ct())),h++;break;case 45:g===45&&X(C)==2&&(y=0)}}return i}function $r(e,t,n,r,o,i,a,s,l,u,f,c){for(var _=o-1,d=o===0?i:[""],g=Er(d),y=0,v=0,m=0;y<r;++y)for(var h=0,O=Oe(e,_+1,_=Cr(v=a[y])),$=e;h<g;++h)($=Sr(v>0?d[h]+" "+O:E(O,/&\f/g,d[h])))&&(l[m++]=$);return st(e,t,n,o===0?ot:s,l,u,f,c)}function ki(e,t,n,r){return st(e,t,n,yr,Vt(yi()),Oe(e,2,-2),0,r)}function Or(e,t,n,r,o){return st(e,t,n,Gt,Oe(e,0,r),Oe(e,r+1,-1),r,o)}function kr(e,t,n){switch(mi(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 Ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+Ue+e+I+e+e;case 5936:switch(P(e,t+11)){case 114:return k+e+I+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+I+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+I+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return k+e+I+e+e;case 6165:return k+e+I+"flex-"+e+e;case 5187:return k+e+E(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+I+"flex-$1$2")+e;case 5443:return k+e+I+"flex-item-"+E(e,/flex-|-self/g,"")+(te(e,/flex-|baseline/)?"":I+"grid-row-"+E(e,/flex-|-self/g,""))+e;case 4675:return k+e+I+"flex-line-pack"+E(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+I+E(e,"shrink","negative")+e;case 5292:return k+e+I+E(e,"basis","preferred-size")+e;case 6060:return k+"box-"+E(e,"-grow","")+k+e+I+E(e,"grow","positive")+e;case 4554:return k+E(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+I+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!te(e,/flex-|baseline/))return I+"grid-column-align"+Oe(e,t)+e;break;case 2592:case 3360:return I+E(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,te(r.props,/grid-\w+-end/)})?~it(e+(n=n[t].value),"span",0)?e:I+E(e,"-start","")+e+I+"grid-row-span:"+(~it(n,"span",0)?te(n,/\d+/):+te(n,/\d+/)-+te(e,/\d+/))+";":I+E(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return te(r.props,/grid-\w+-start/)})?e:I+E(E(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return E(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(P(e,t+1)){case 109:if(P(e,t+4)!==45)break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+Ue+(P(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~it(e,"stretch",0)?kr(E(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return E(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,a,s,l,u){return I+o+":"+i+u+(a?I+o+"-span:"+(s?l:+l-+i)+u:"")+e});case 4949:if(P(e,t+6)===121)return E(e,":",":"+k)+e;break;case 6444:switch(P(e,P(e,14)===45?18:11)){case 120:return E(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(P(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+I+"$2box$3")+e;case 100:return E(e,":",":"+I)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return E(e,"scroll-","scroll-snap-")+e}return e}function ft(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ni(e,t,n,r){switch(e.type){case hi:if(e.children.length)break;case pi:case Gt:return e.return=e.return||e.value;case yr:return"";case vr:return e.return=e.value+"{"+ft(e.children,r)+"}";case ot:if(!X(e.value=e.props.join(",")))return""}return X(n=ft(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ti(e){var t=Er(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Ii(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ri(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Gt:e.return=kr(e.value,e.length,n);return;case vr:return ft([ce(e,{value:E(e.value,"@","@"+k)})],r);case ot:if(e.length)return gi(n=e.props,function(o){switch(te(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Te(ce(e,{props:[E(o,/:(read-\w+)/,":"+Ue+"$1")]})),Te(ce(e,{props:[o]})),Zt(e,{props:wr(n,r)});break;case"::placeholder":Te(ce(e,{props:[E(o,/:(plac\w+)/,":"+k+"input-$1")]})),Te(ce(e,{props:[E(o,/:(plac\w+)/,":"+Ue+"$1")]})),Te(ce(e,{props:[E(o,/:(plac\w+)/,I+"input-$1")]})),Te(ce(e,{props:[o]})),Zt(e,{props:wr(n,r)});break}return""})}}var xi={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},b={},_e=typeof process<"u"&&b!==void 0&&(b.REACT_APP_SC_ATTR||b.SC_ATTR)||"data-styled",Nr="active",Tr="data-styled-version",dt="6.1.18",Kt=`/*!sc*/
2
+ `,_t=typeof window<"u"&&typeof document<"u",Pi=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&b!==void 0&&b.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&b.REACT_APP_SC_DISABLE_SPEEDY!==""?b.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&b.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&b!==void 0&&b.SC_DISABLE_SPEEDY!==void 0&&b.SC_DISABLE_SPEEDY!==""?b.SC_DISABLE_SPEEDY!=="false"&&b.SC_DISABLE_SPEEDY:b.NODE_ENV!=="production"),Ir=/invalid hook call/i,pt=new Set,Ai=function(e,t){if(b.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 s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];Pr.test(a)?(i=!1,pt.delete(r)):o.apply(void 0,de([a],s,!1))},He(),i&&!pt.has(r)&&(console.warn(r),pt.add(r))}catch(a){Pr.test(a.message)&&pt.delete(r)}finally{console.error=o}}},mt=Object.freeze([]),Re=Object.freeze({});function Hi(e,t,n){return n===void 0&&(n=Re),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"]),zi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ui=/(^-|-$)/g;function Lr(e){return e.replace(zi,"-").replace(Ui,"")}var Bi=/(a)(d)/gi,gt=52,Dr=function(e){return String.fromCharCode(e+(e>25?39:97))};function nn(e){var t,n="";for(t=Math.abs(e);t>gt;t=t/gt|0)n=Dr(t%gt)+n;return(Dr(t%gt)+n).replace(Bi,"$1-$2")}var rn,Mr=5381,pe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Fr=function(e){return pe(Mr,e)};function Hr(e){return nn(Fr(e)>>>0)}function zr(e){return b.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function on(e){return typeof e=="string"&&(b.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ur=typeof Symbol=="function"&&Symbol.for,Br=Ur?Symbol.for("react.memo"):60115,Wi=Ur?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},ji={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},Vi=((rn={})[Wi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rn[Br]=Wr,rn);function Gr(e){return("type"in(t=e)&&t.type.$$typeof)===Br?Wr:"$$typeof"in e?Vi[e.$$typeof]:Gi;var t}var Zi=Object.defineProperty,Yi=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,qi=Object.getOwnPropertyDescriptor,Xi=Object.getPrototypeOf,Vr=Object.prototype;function Zr(e,t,n){if(typeof t!="string"){if(Vr){var r=Xi(t);r&&r!==Vr&&Zr(e,r,n)}var o=Yi(t);jr&&(o=o.concat(jr(t)));for(var i=Gr(e),a=Gr(t),s=0;s<o.length;++s){var l=o[s];if(!(l in ji||n&&n[l]||a&&l in a||i&&l in i)){var u=qi(t,l);try{Zi(e,l,u)}catch{}}}}return e}function me(e){return typeof e=="function"}function an(e){return typeof e=="object"&&"styledComponentId"in e}function ge(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 xe(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&&!xe(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(xe(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 Ki=b.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
6
+ `,o=console.error;try{var i=!0;console.error=function(a){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];Ir.test(a)?(i=!1,pt.delete(r)):o.apply(void 0,fe([a],s,!1))},Fe(),i&&!pt.has(r)&&(console.warn(r),pt.add(r))}catch(a){Ir.test(a.message)&&pt.delete(r)}finally{console.error=o}}},ht=Object.freeze([]),Ie=Object.freeze({});function Li(e,t,n){return n===void 0&&(n=Ie),e.theme!==n.theme&&e.theme||t||n.theme}var Jt=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"]),Mi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Di=/(^-|-$)/g;function Rr(e){return e.replace(Mi,"-").replace(Di,"")}var Fi=/(a)(d)/gi,mt=52,xr=function(e){return String.fromCharCode(e+(e>25?39:97))};function Qt(e){var t,n="";for(t=Math.abs(e);t>mt;t=t/mt|0)n=xr(t%mt)+n;return(xr(t%mt)+n).replace(Fi,"$1-$2")}var en,Pr=5381,pe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ar=function(e){return pe(Pr,e)};function Lr(e){return Qt(Ar(e)>>>0)}function Mr(e){return b.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function tn(e){return typeof e=="string"&&(b.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Dr=typeof Symbol=="function"&&Symbol.for,Fr=Dr?Symbol.for("react.memo"):60115,Hi=Dr?Symbol.for("react.forward_ref"):60112,zi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ui={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Hr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bi=((en={})[Hi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},en[Fr]=Hr,en);function zr(e){return("type"in(t=e)&&t.type.$$typeof)===Fr?Hr:"$$typeof"in e?Bi[e.$$typeof]:zi;var t}var Wi=Object.defineProperty,ji=Object.getOwnPropertyNames,Ur=Object.getOwnPropertySymbols,Gi=Object.getOwnPropertyDescriptor,Vi=Object.getPrototypeOf,Br=Object.prototype;function Wr(e,t,n){if(typeof t!="string"){if(Br){var r=Vi(t);r&&r!==Br&&Wr(e,r,n)}var o=ji(t);Ur&&(o=o.concat(Ur(t)));for(var i=zr(e),a=zr(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Ui||n&&n[l]||a&&l in a||i&&l in i)){var u=Gi(t,l);try{Wi(e,l,u)}catch{}}}}return e}function he(e){return typeof e=="function"}function nn(e){return typeof e=="object"&&"styledComponentId"in e}function me(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function rn(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Re(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function on(e,t,n){if(n===void 0&&(n=!1),!n&&!Re(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=on(e[r],t[r]);else if(Re(t))for(var r in t)e[r]=on(e[r],t[r]);return e}function an(e,t){Object.defineProperty(e,"toString",{value:t})}var Zi=b.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 Ji(){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 J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return b.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(Ji.apply(void 0,de([Ki[e]],t,!1)).trim())}var Qi=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 J(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 s=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(s,n[a])&&(this.groupSizes[t]++,s++)},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}(),ea=1<<30,yt=new Map,vt=new Map,Ct=1,Et=function(e){if(yt.has(e))return yt.get(e);for(;vt.has(Ct);)Ct++;var t=Ct++;if(b.NODE_ENV!=="production"&&((0|t)<0||t>ea))throw J(16,"".concat(t));return yt.set(e,t),vt.set(t,e),t},ta=function(e,t){Ct=t+1,yt.set(e,t),vt.set(t,e)},na="style[".concat(he,"][").concat(Ar,'="').concat(_t,'"]'),ra=new RegExp("^".concat(he,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),oa=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)},ia=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 s=r[i].trim();if(s){var l=s.match(ra);if(l){var u=0|parseInt(l[1],10),f=l[2];u!==0&&(ta(f,u),oa(e,f,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Yr=function(e){for(var t=document.querySelectorAll(na),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(he)!==xr&&(ia(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function aa(){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(s){var l=Array.from(s.querySelectorAll("style[".concat(he,"]")));return l[l.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(he,xr),r.setAttribute(Ar,_t);var a=aa();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},sa=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 J(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}(),ca=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}(),la=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,ua={isServer:!ht,useCSSOMInjection:!Mi},Kr=function(){function e(t,n,r){t===void 0&&(t=Re),n===void 0&&(n={});var o=this;this.options=P(P({},ua),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&ht&&Xr&&(Xr=!1,Yr(this)),ln(this,function(){return function(i){for(var a=i.getTag(),s=a.length,l="",u=function(c){var _=function(m){return vt.get(m)}(c);if(_===void 0)return"continue";var d=i.names.get(_),y=a.getGroup(c);if(d===void 0||!d.size||y.length===0)return"continue";var v="".concat(he,".g").concat(c,'[id="').concat(_,'"]'),C="";d!==void 0&&d.forEach(function(m){m.length>0&&(C+="".concat(m,","))}),l+="".concat(y).concat(v,'{content:"').concat(C,'"}').concat(en)},f=0;f<s;f++)u(f);return l}(o)})}return e.registerId=function(t){return Et(t)},e.prototype.rehydrate=function(){!this.server&&ht&&Yr(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(P(P({},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 la(o):r?new sa(o):new ca(o)}(this.options),new Qi(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(Et(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(Et(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Et(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),fa=/&/g,da=/^\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?Re:e,i=o.options,a=i===void 0?Re:i,s=o.plugins,l=s===void 0?mt:s,u=function(_,d,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):_},f=l.slice();f.push(function(_){_.type===it&&_.value.includes("&")&&(_.props[0]=_.props[0].replace(fa,n).replace(r,u))}),a.prefix&&f.push(Li),f.push(xi);var c=function(_,d,y,v){d===void 0&&(d=""),y===void 0&&(y=""),v===void 0&&(v="&"),t=v,n=d,r=new RegExp("\\".concat(n,"\\b"),"g");var C=_.replace(da,""),m=Ii(y||d?"".concat(y," ").concat(d," { ").concat(C," }"):C);a.namespace&&(m=Jr(m,a.namespace));var p=[];return dt(m,Ai(f.concat(Pi(function(O){return p.push(O)})))),p};return c.hash=l.length?l.reduce(function(_,d){return d.name||J(15),pe(_,d.name)},Mr).toString():"",c}var _a=new Kr,un=Qr(),fn=te.createContext({shouldForwardProp:void 0,styleSheet:_a,stylis:un});fn.Consumer;var ha=te.createContext(void 0);function dn(){return ze(fn)}function pa(e){var t=H(e.stylisPlugins),n=t[0],r=t[1],o=dn().styleSheet,i=ee(function(){var l=o;return e.sheet?l=e.sheet:e.target&&(l=l.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(l=l.reconstructWithOptions({useCSSOMInjection:!1})),l},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=ee(function(){return Qr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);X(function(){gi(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var s=ee(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return te.createElement(fn.Provider,{value:s},te.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 J(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=un),this.name+t.hash},e}(),ma=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;ma(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||me(i)?r.push("".concat(eo(o),":"),i,";"):xe(i)?r.push.apply(r,de(de(["".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 Di||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ye(e,t,n,r){if(to(e))return[];if(an(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 b.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof _n||xe(o)||o===null||console.error("".concat(zr(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 _n?n?(e.inject(n,r),[e.getName(r)]):[e]:xe(e)?no(e):Array.isArray(e)?Array.prototype.concat.apply(mt,e.map(function(a){return ye(a,t,n,r)})):[e.toString()]}function ga(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(me(n)&&!an(n))return!1}return!0}var ya=Fr(_t),va=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=b.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&ga(t),this.componentId=n,this.baseHash=pe(ya,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=ge(o,this.staticRulesId);else{var i=sn(ye(this.rules,t,n,r)),a=nn(pe(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(i,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}o=ge(o,a),this.staticRulesId=a}else{for(var l=pe(this.baseHash,r.hash),u="",f=0;f<this.rules.length;f++){var c=this.rules[f];if(typeof c=="string")u+=c,b.NODE_ENV!=="production"&&(l=pe(l,c));else if(c){var _=sn(ye(c,t,n,r));l=pe(l,_+f),u+=_}}if(u){var d=nn(l>>>0);n.hasNameForId(this.componentId,d)||n.insertRules(this.componentId,d,r(u,".".concat(d),void 0,this.componentId)),o=ge(o,d)}}return o},e}(),Ge=te.createContext(void 0);Ge.Consumer;function ro(){var e=ze(Ge);if(!e)throw J(18);return e}function Ca(e){var t=te.useContext(Ge),n=ee(function(){return function(r,o){if(!r)throw J(14);if(me(r)){var i=r(o);if(b.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw J(7);return i}if(Array.isArray(r)||typeof r!="object")throw J(8);return o?P(P({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?te.createElement(Ge.Provider,{value:n},e.children):null}var hn={},oo=new Set;function Ea(e,t,n){var r=an(e),o=e,i=!on(e),a=t.attrs,s=a===void 0?mt:a,l=t.componentId,u=l===void 0?function($,N){var w=typeof $!="string"?"sc":Lr($);hn[w]=(hn[w]||0)+1;var E="".concat(w,"-").concat(Hr(_t+w+hn[w]));return N?"".concat(N,"-").concat(E):E}(t.displayName,t.parentComponentId):l,f=t.displayName,c=f===void 0?function($){return on($)?"styled.".concat($):"Styled(".concat(zr($),")")}(e):f,_=t.displayName&&t.componentId?"".concat(Lr(t.displayName),"-").concat(t.componentId):t.componentId||u,d=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,y=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;y=function($,N){return v($,N)&&C($,N)}}else y=v}var m=new va(n,_,r?o.componentStyle:void 0);function p($,N){return function(w,E,U){var G=w.attrs,Ye=w.componentStyle,j=w.defaultProps,Ce=w.foldedComponentIds,go=w.styledComponentId,Ls=w.target,Ds=te.useContext(Ge),Ms=dn(),Sn=w.shouldForwardProp||Ms.shouldForwardProp;b.NODE_ENV!=="production"&&tt(go);var yo=Hi(E,Ds,j)||Re,oe=function($t,Ke,Ot){for(var Pe,Ee=P(P({},Ke),{className:void 0,theme:Ot}),$n=0;$n<$t.length;$n+=1){var kt=me(Pe=$t[$n])?Pe(Ee):Pe;for(var le in kt)Ee[le]=le==="className"?ge(Ee[le],kt[le]):le==="style"?P(P({},Ee[le]),kt[le]):kt[le]}return Ke.className&&(Ee.className=ge(Ee.className,Ke.className)),Ee}(G,E,yo),qe=oe.as||Ls,Xe={};for(var V in oe)oe[V]===void 0||V[0]==="$"||V==="as"||V==="theme"&&oe.theme===yo||(V==="forwardedAs"?Xe.as=oe.forwardedAs:Sn&&!Sn(V,qe)||(Xe[V]=oe[V],Sn||b.NODE_ENV!=="development"||Do(V)||oo.has(V)||!tn.has(qe)||(oo.add(V),console.warn('styled-components: it looks like an unknown prop "'.concat(V,'" 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($t,Ke){var Ot=dn(),Pe=$t.generateAndInjectStyles(Ke,Ot.styleSheet,Ot.stylis);return b.NODE_ENV!=="production"&&tt(Pe),Pe}(Ye,oe);b.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses(wn);var bn=ge(Ce,go);return wn&&(bn+=" "+wn),oe.className&&(bn+=" "+oe.className),Xe[on(qe)&&!tn.has(qe)?"class":"className"]=bn,U&&(Xe.ref=U),L(qe,Xe)}(O,$,N)}p.displayName=c;var O=te.forwardRef(p);return O.attrs=d,O.componentStyle=m,O.displayName=c,O.shouldForwardProp=y,O.foldedComponentIds=r?ge(o.foldedComponentIds,o.styledComponentId):"",O.styledComponentId=_,O.target=r?o.target:e,Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function($){this._foldedDefaultProps=r?function(N){for(var w=[],E=1;E<arguments.length;E++)w[E-1]=arguments[E];for(var U=0,G=w;U<G.length;U++)cn(N,G[U],!0);return N}({},o.defaultProps,$):$}}),b.NODE_ENV!=="production"&&(Fi(c,_),O.warnTooManyClasses=function($,N){var w={},E=!1;return function(U){if(!E&&(w[U]=!0,Object.keys(w).length>=200)){var G=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat($).concat(G,`.
47
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Yi(){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 b.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(Yi.apply(void 0,fe([Zi[e]],t,!1)).trim())}var qi=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 s=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(s,n[a])&&(this.groupSizes[t]++,s++)},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(Kt);return n},e}(),Xi=1<<30,gt=new Map,yt=new Map,vt=1,Ct=function(e){if(gt.has(e))return gt.get(e);for(;yt.has(vt);)vt++;var t=vt++;if(b.NODE_ENV!=="production"&&((0|t)<0||t>Xi))throw K(16,"".concat(t));return gt.set(e,t),yt.set(t,e),t},Ki=function(e,t){vt=t+1,gt.set(e,t),yt.set(t,e)},Ji="style[".concat(_e,"][").concat(Tr,'="').concat(dt,'"]'),Qi=new RegExp("^".concat(_e,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ea=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)},ta=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Kt),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(Qi);if(l){var u=0|parseInt(l[1],10),f=l[2];u!==0&&(Ki(f,u),ea(e,f,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},jr=function(e){for(var t=document.querySelectorAll(Ji),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(_e)!==Nr&&(ta(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function na(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Gr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(s){var l=Array.from(s.querySelectorAll("style[".concat(_e,"]")));return l[l.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(_e,Nr),r.setAttribute(Tr,dt);var a=na();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},ra=function(){function e(t){this.element=Gr(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}(),oa=function(){function e(t){this.element=Gr(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}(),ia=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}(),Vr=_t,aa={isServer:!_t,useCSSOMInjection:!Pi},Zr=function(){function e(t,n,r){t===void 0&&(t=Ie),n===void 0&&(n={});var o=this;this.options=A(A({},aa),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&_t&&Vr&&(Vr=!1,jr(this)),an(this,function(){return function(i){for(var a=i.getTag(),s=a.length,l="",u=function(c){var _=function(m){return yt.get(m)}(c);if(_===void 0)return"continue";var d=i.names.get(_),g=a.getGroup(c);if(d===void 0||!d.size||g.length===0)return"continue";var y="".concat(_e,".g").concat(c,'[id="').concat(_,'"]'),v="";d!==void 0&&d.forEach(function(m){m.length>0&&(v+="".concat(m,","))}),l+="".concat(g).concat(y,'{content:"').concat(v,'"}').concat(Kt)},f=0;f<s;f++)u(f);return l}(o)})}return e.registerId=function(t){return Ct(t)},e.prototype.rehydrate=function(){!this.server&&_t&&jr(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(A(A({},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 ia(o):r?new ra(o):new oa(o)}(this.options),new qi(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(Ct(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(Ct(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ct(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),sa=/&/g,ca=/^\s*\/\/.*$/gm;function Yr(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=Yr(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,s=o.plugins,l=s===void 0?ht:s,u=function(_,d,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):_},f=l.slice();f.push(function(_){_.type===ot&&_.value.includes("&")&&(_.props[0]=_.props[0].replace(sa,n).replace(r,u))}),a.prefix&&f.push(Ri),f.push(Ni);var c=function(_,d,g,y){d===void 0&&(d=""),g===void 0&&(g=""),y===void 0&&(y="&"),t=y,n=d,r=new RegExp("\\".concat(n,"\\b"),"g");var v=_.replace(ca,""),m=Oi(g||d?"".concat(g," ").concat(d," { ").concat(v," }"):v);a.namespace&&(m=Yr(m,a.namespace));var h=[];return ft(m,Ti(f.concat(Ii(function(O){return h.push(O)})))),h};return c.hash=l.length?l.reduce(function(_,d){return d.name||K(15),pe(_,d.name)},Pr).toString():"",c}var la=new Zr,sn=qr(),cn=ee.createContext({shouldForwardProp:void 0,styleSheet:la,stylis:sn});cn.Consumer;var ua=ee.createContext(void 0);function ln(){return He(cn)}function fa(e){var t=F(e.stylisPlugins),n=t[0],r=t[1],o=ln().styleSheet,i=Q(function(){var l=o;return e.sheet?l=e.sheet:e.target&&(l=l.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(l=l.reconstructWithOptions({useCSSOMInjection:!1})),l},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=Q(function(){return qr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);q(function(){_i(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var s=Q(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return ee.createElement(cn.Provider,{value:s},ee.createElement(ua.Provider,{value:a},e.children))}var un=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=sn);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,an(this,function(){throw K(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=sn),this.name+t.hash},e}(),da=function(e){return e>="A"&&e<="Z"};function Xr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;da(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Kr=function(e){return e==null||e===!1||e===""},Jr=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Kr(i)&&(Array.isArray(i)&&i.isCss||he(i)?r.push("".concat(Xr(o),":"),i,";"):Re(i)?r.push.apply(r,fe(fe(["".concat(o," {")],Jr(i),!1),["}"],!1)):r.push("".concat(Xr(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in xi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ge(e,t,n,r){if(Kr(e))return[];if(nn(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 b.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof un||Re(o)||o===null||console.error("".concat(Mr(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 un?n?(e.inject(n,r),[e.getName(r)]):[e]:Re(e)?Jr(e):Array.isArray(e)?Array.prototype.concat.apply(ht,e.map(function(a){return ge(a,t,n,r)})):[e.toString()]}function _a(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(he(n)&&!nn(n))return!1}return!0}var pa=Ar(dt),ha=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=b.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&_a(t),this.componentId=n,this.baseHash=pe(pa,n),this.baseStyle=r,Zr.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=rn(ge(this.rules,t,n,r)),a=Qt(pe(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(i,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}o=me(o,a),this.staticRulesId=a}else{for(var l=pe(this.baseHash,r.hash),u="",f=0;f<this.rules.length;f++){var c=this.rules[f];if(typeof c=="string")u+=c,b.NODE_ENV!=="production"&&(l=pe(l,c));else if(c){var _=rn(ge(c,t,n,r));l=pe(l,_+f),u+=_}}if(u){var d=Qt(l>>>0);n.hasNameForId(this.componentId,d)||n.insertRules(this.componentId,d,r(u,".".concat(d),void 0,this.componentId)),o=me(o,d)}}return o},e}(),We=ee.createContext(void 0);We.Consumer;function Qr(){var e=He(We);if(!e)throw K(18);return e}function ma(e){var t=ee.useContext(We),n=Q(function(){return function(r,o){if(!r)throw K(14);if(he(r)){var i=r(o);if(b.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?A(A({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?ee.createElement(We.Provider,{value:n},e.children):null}var fn={},eo=new Set;function ga(e,t,n){var r=nn(e),o=e,i=!tn(e),a=t.attrs,s=a===void 0?ht:a,l=t.componentId,u=l===void 0?function($,N){var w=typeof $!="string"?"sc":Rr($);fn[w]=(fn[w]||0)+1;var C="".concat(w,"-").concat(Lr(dt+w+fn[w]));return N?"".concat(N,"-").concat(C):C}(t.displayName,t.parentComponentId):l,f=t.displayName,c=f===void 0?function($){return tn($)?"styled.".concat($):"Styled(".concat(Mr($),")")}(e):f,_=t.displayName&&t.componentId?"".concat(Rr(t.displayName),"-").concat(t.componentId):t.componentId||u,d=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var y=o.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;g=function($,N){return y($,N)&&v($,N)}}else g=y}var m=new ha(n,_,r?o.componentStyle:void 0);function h($,N){return function(w,C,z){var W=w.attrs,Ze=w.componentStyle,j=w.defaultProps,ve=w.foldedComponentIds,_o=w.styledComponentId,xs=w.target,Ps=ee.useContext(We),As=ln(),gn=w.shouldForwardProp||As.shouldForwardProp;b.NODE_ENV!=="production"&&et(_o);var po=Li(C,Ps,j)||Ie,re=function(wt,Xe,bt){for(var Pe,Ce=A(A({},Xe),{className:void 0,theme:bt}),Cn=0;Cn<wt.length;Cn+=1){var $t=he(Pe=wt[Cn])?Pe(Ce):Pe;for(var le in $t)Ce[le]=le==="className"?me(Ce[le],$t[le]):le==="style"?A(A({},Ce[le]),$t[le]):$t[le]}return Xe.className&&(Ce.className=me(Ce.className,Xe.className)),Ce}(W,C,po),Ye=re.as||xs,qe={};for(var G in re)re[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&re.theme===po||(G==="forwardedAs"?qe.as=re.forwardedAs:gn&&!gn(G,Ye)||(qe[G]=re[G],gn||b.NODE_ENV!=="development"||xo(G)||eo.has(G)||!Jt.has(Ye)||(eo.add(G),console.warn('styled-components: it looks like an unknown prop "'.concat(G,'" 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 yn=function(wt,Xe){var bt=ln(),Pe=wt.generateAndInjectStyles(Xe,bt.styleSheet,bt.stylis);return b.NODE_ENV!=="production"&&et(Pe),Pe}(Ze,re);b.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses(yn);var vn=me(ve,_o);return yn&&(vn+=" "+yn),re.className&&(vn+=" "+re.className),qe[tn(Ye)&&!Jt.has(Ye)?"class":"className"]=vn,z&&(qe.ref=z),L(Ye,qe)}(O,$,N)}h.displayName=c;var O=ee.forwardRef(h);return O.attrs=d,O.componentStyle=m,O.displayName=c,O.shouldForwardProp=g,O.foldedComponentIds=r?me(o.foldedComponentIds,o.styledComponentId):"",O.styledComponentId=_,O.target=r?o.target:e,Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function($){this._foldedDefaultProps=r?function(N){for(var w=[],C=1;C<arguments.length;C++)w[C-1]=arguments[C];for(var z=0,W=w;z<W.length;z++)on(N,W[z],!0);return N}({},o.defaultProps,$):$}}),b.NODE_ENV!=="production"&&(Ai(c,_),O.warnTooManyClasses=function($,N){var w={},C=!1;return function(z){if(!C&&(w[z]=!0,Object.keys(w).length>=200)){var W=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat($).concat(W,`.
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 />`),E=!0,w={}}}}(c,_)),ln(O,function(){return".".concat(O.styledComponentId)}),i&&Zr(O,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),O}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 pn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(me(e)||xe(e))return ao(ye(io(mt,de([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ye(r):ao(ye(io(r,t)))}function mn(e,t,n){if(n===void 0&&(n=Re),!t)throw J(1,t);var r=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,pn.apply(void 0,de([o],i,!1)))};return r.attrs=function(o){return mn(e,t,P(P({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return mn(e,t,P(P({},n),o))},r}var so=function(e){return mn(Ea,e)},z=so;tn.forEach(function(e){z[e]=so(e)});function St(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];b.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(pn.apply(void 0,de([e],t,!1))),o=Hr(r);return new _n(o,r)}b.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
56
+ <Component />`),C=!0,w={}}}}(c,_)),an(O,function(){return".".concat(O.styledComponentId)}),i&&Wr(O,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),O}function to(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 no=function(e){return Object.assign(e,{isCss:!0})};function dn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(he(e)||Re(e))return no(ge(to(ht,fe([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ge(r):no(ge(to(r,t)))}function _n(e,t,n){if(n===void 0&&(n=Ie),!t)throw K(1,t);var r=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,dn.apply(void 0,fe([o],i,!1)))};return r.attrs=function(o){return _n(e,t,A(A({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return _n(e,t,A(A({},n),o))},r}var ro=function(e){return _n(ga,e)},H=ro;Jt.forEach(function(e){H[e]=ro(e)});function St(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];b.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=rn(dn.apply(void 0,fe([e],t,!1))),o=Lr(r);return new un(o,r)}b.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 wt="__sc-".concat(he,"__");b.NODE_ENV!=="production"&&b.NODE_ENV!=="test"&&typeof window<"u"&&(window[wt]||(window[wt]=0),window[wt]===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.
58
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Et="__sc-".concat(_e,"__");b.NODE_ENV!=="production"&&b.NODE_ENV!=="test"&&typeof window<"u"&&(window[Et]||(window[Et]=0),window[Et]===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[wt]+=1);const co={CIRCLE_SOLID:"circle-solid"},Sa=2,lo=14,wa=.0276;var re=(e=>(e[e.S=300]="S",e[e.M=400]="M",e[e.L=500]="L",e[e.Default=600]="Default",e))(re||{});const je={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}},gn={loading:{text:"Loading. Please wait.",visible:!0},waiting:{text:"Waiting for input...",visible:!0}},ba={[M.CANDIDATE_SELECTION]:"Stay still…",[M.FACE_TOO_CLOSE]:"Move back",[M.FACE_TOO_FAR]:"Move closer",[M.FACE_CENTERING]:"Center your face",[M.FACE_NOT_PRESENT]:"Position your face into the circle",[M.SHARPNESS_TOO_LOW]:"Turn face against light",[M.BRIGHTNESS_TOO_LOW]:"Turn face against light",[M.BRIGHTNESS_TOO_HIGH]:"Less light needed",[M.DEVICE_PITCHED]:"Hold your phone at eye level",[M.LEFT_EYE_NOT_PRESENT]:"Position your face into the circle",[M.RIGHT_EYE_NOT_PRESENT]:"Position your face into the circle",[M.MOUTH_SCORE_TOO_HIGH]:"Keep neutral expression",[M.MOUTH_SCORE_TOO_LOW]:"Smile :)",[M.MOUTH_NOT_PRESENT]:"Position your face into the circle"},$a=co.CIRCLE_SOLID,Oa={...ba},ka={[et.FACE_TOO_CLOSE]:"Move your face back",[et.FACE_TOO_FAR]:"Move your face closer"},Na="rgba(19, 19, 19, 0.5)",Ta=34;function uo(e,t){return Math.max(t,t+(e-400)*wa+2)}const Ia=(e,t=lo)=>e?e.width<e.height?uo(e.width,t):uo(e.height,t):t,Ra=e=>e>re.Default?je[re.Default]:e>re.L?je[re.L]:e>re.M?je[re.M]:je[re.S],xa=e=>e?Ra(e.width):je[re.Default];function Aa(){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)}}function Pa({currentInstruction:e,escalatedInstructions:t,instructions:n}){const{code:r,isEscalated:o}=e;if(r)return o&&t&&r in t?t[r]:n[r]}const Ve=zn(void 0);Ve.displayName="UiCustomizationContext";function ve(){const e=ze(Ve);if(!e)throw new Error(`${Ve.displayName} must be used within a ${Ve.displayName} Provider`);return e}function La({children:e,props:t,videoElementSize:n}){const{font:r}=ro(),o=ee(()=>({...t,videoElementSize:n,fontSize:Ia(n,r.minimumSize)}),[t,r.minimumSize,n]);return h(Ve.Provider,{value:o,children:e})}const fo=({svgSize:e})=>h("svg",{fill:"none",height:e,viewBox:"0 0 16 14",width:e,xmlns:"http://www.w3.org/2000/svg",children:h("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"})}),Da=z.div`
60
+ See https://s-c.sh/2BAXzed for more info.`),window[Et]+=1);const oo={CIRCLE_SOLID:"circle-solid"},ya=2,io=14,va=.0276;var ne=(e=>(e[e.S=300]="S",e[e.M=400]="M",e[e.L=500]="L",e[e.Default=600]="Default",e))(ne||{});const je={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}},pn={loading:{text:"Loading. Please wait.",visible:!0},waiting:{text:"Waiting for input...",visible:!0}},Ca={[M.CANDIDATE_SELECTION]:"Stay still…",[M.FACE_TOO_CLOSE]:"Move back",[M.FACE_TOO_FAR]:"Move closer",[M.FACE_CENTERING]:"Center your face",[M.FACE_NOT_PRESENT]:"Position your face into the circle",[M.SHARPNESS_TOO_LOW]:"Turn face against light",[M.BRIGHTNESS_TOO_LOW]:"Turn face against light",[M.BRIGHTNESS_TOO_HIGH]:"Less light needed",[M.DEVICE_PITCHED]:"Hold your phone at eye level",[M.LEFT_EYE_NOT_PRESENT]:"Position your face into the circle",[M.RIGHT_EYE_NOT_PRESENT]:"Position your face into the circle",[M.MOUTH_SCORE_TOO_HIGH]:"Keep neutral expression",[M.MOUTH_SCORE_TOO_LOW]:"Smile :)",[M.MOUTH_NOT_PRESENT]:"Position your face into the circle"},Sa=oo.CIRCLE_SOLID,Ea={...Ca},wa={[Qe.FACE_TOO_CLOSE]:"Move your face back",[Qe.FACE_TOO_FAR]:"Move your face closer"},ba="rgba(19, 19, 19, 0.5)",$a=34;function ao(e,t){return Math.max(t,t+(e-400)*va+2)}const Oa=(e,t=io)=>e?e.width<e.height?ao(e.width,t):ao(e.height,t):t,ka=e=>e>ne.Default?je[ne.Default]:e>ne.L?je[ne.L]:e>ne.M?je[ne.M]:je[ne.S],Na=e=>e?ka(e.width):je[ne.Default];function Ta(){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)}}function Ia({currentInstruction:e,escalatedInstructions:t,instructions:n}){const{code:r,isEscalated:o}=e;if(r)return o&&t&&r in t?t[r]:n[r]}const Ge=Mn(void 0);Ge.displayName="ConfigurationContext";function ye(){const e=He(Ge);if(!e)throw new Error(`${Ge.displayName} must be used within a ${Ge.displayName} Provider`);return e}function Ra({children:e,configuration:t,videoElementSize:n}){const{font:r}=Qr(),o=Q(()=>({...t,videoElementSize:n,fontSize:Oa(n,r.minimumSize)}),[t,r.minimumSize,n]);return p(Ge.Provider,{value:o,children:e})}const so=({svgSize:e})=>p("svg",{fill:"none",height:e,viewBox:"0 0 16 14",width:e,xmlns:"http://www.w3.org/2000/svg",children:p("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"})}),xa=H.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[wt]+=1);const co={CIRCLE_SOLI
76
76
  aspect-ratio: 9/16;
77
77
  }
78
78
  `}
79
- `,Ma=z.div`
79
+ `,Pa=H.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
- `,Fa=z.p`
86
+ `,Aa=H.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[wt]+=1);const co={CIRCLE_SOLI
91
91
  font-size: ${e=>`${e.$fontSize}px`};
92
92
  line-height: 1em;
93
93
  max-width: 80%;
94
- `,yn=({Icon:e,isCameraReady:t,position:n="absolute",text:r})=>{const{fontSize:o}=ve();return h(Da,{$isCameraReady:t,$position:n,children:h(Ma,{children:[e?h(e,{svgSize:o*2}):null,h(Fa,{$fontSize:o,children:r})]})})},_o=({text:e="An unknown error has occurred"})=>h(yn,{Icon:fo,position:"relative",text:e});class Ha extends Z{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?h(_o,{Icon:fo,isCameraReady:!1}):this.props.children}}const za=z.div`
94
+ `,hn=({Icon:e,isCameraReady:t,position:n="absolute",text:r})=>{const{fontSize:o}=ye();return p(xa,{$isCameraReady:t,$position:n,children:p(Pa,{children:[e?p(e,{svgSize:o*2}):null,p(Aa,{$fontSize:o,children:r})]})})},co=({text:e="An unknown error has occurred"})=>p(hn,{Icon:so,position:"relative",text:e});class La extends V{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?p(co,{Icon:so,isCameraReady:!1}):this.props.children}}const Ma=H.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
- `,Ua=({children:e,uiProps:t,videoElementSize:n})=>(X(()=>{Aa()},[]),h(pa,{target:t.styleTarget,children:h(Ca,{theme:t.theme,children:h(za,{children:h(Ha,{videoElementSize:n,children:h(La,{props:t,videoElementSize:n,children:e})})})})})),Ba=.75,Wa=2,Ga="dot-auto-capture-video",Ae=(e,t)=>{const n=He(t);X(()=>{n.current=t},[t]),X(()=>{const r=o=>n.current(o);return document.addEventListener(e,r),()=>{document.removeEventListener(e,r)}},[e])};function ja(e){const[t,n]=H(),r=se(o=>{var i;n((i=o.detail)==null?void 0:i.size)},[n]);return Ae(e,r),Oe(()=>{if(!t){const o=document.getElementById(Ga);o&&n(o.getBoundingClientRect())}},[t,n]),t}function Va(e,t){return e?`${e}, ${t}`:t}const Ze={colors:{placeholderColor:"white",placeholderColorSuccess:"#00BFB2",instructionColor:"#F8FBFB",instructionColorSuccess:"#00BFB2",instructionTextColor:"#021B41;"},font:{family:"Montserrat, Arial, sans-serif",weight:"600",style:"normal",minimumSize:lo}},Za=e=>{var t;return e?{...Ze,...e,colors:{...Ze.colors,...e.colors},font:{...Ze.font,...e.font,family:Va((t=e.font)==null?void 0:t.family,Ze.font.family)}}:Ze},Ya=e=>Number.parseFloat(e.toFixed(3)),vn=(e,t)=>Math.min(e,t),qa=({height:e,width:t},n)=>{const r=vn(t,e)*n,o=(t-r)/2,i=(e-r)/2;return{shiftX:o,shiftY:i,width:r,height:r}},Xa=(e,t)=>{const{height:n,shiftX:r,shiftY:o,width:i}=qa(e,t);return{shiftX:r/e.width,shiftY:o/e.height,width:i/e.width,height:n/e.height}};function Ka(e,t){const n=vn(t.width,t.height);return Ya(e*n)}function Ja(e){return Xa(e,Ba)}function Qa(e,t){return Ka(e,t)*Wa}const Cn=(e,t)=>{document.dispatchEvent(new CustomEvent(e,{detail:t}))},bt=class bt{constructor(){Nt(this,"lastDetails");Nt(this,"delayedTime");this.lastDetails={},this.delayedTime=0}static getInstance(){return this._instance||(this._instance=new bt),this._instance}restart(){this.lastDetails={},this.delayedTime=0}isDetailChanged(t,n){return JSON.stringify(n)!==JSON.stringify(this.lastDetails[t])?(this.lastDetails[t]=n,!0):!1}dispatchCustomEventOnChange(t,n){this.isDetailChanged(t,n)&&Cn(t,n)}dispatchDelayedCustomEventOnChange(t,n,r){const o=performance.now();o-this.delayedTime>r&&(this.dispatchCustomEventOnChange(t,n),this.delayedTime=o)}dispatchCustomEvent(t,n){Cn(t,n)}};Nt(bt,"_instance");let En=bt;En.getInstance();const ho=(e,t)=>{Cn(e,{instruction:t})};async function es(){return navigator.mediaDevices.enumerateDevices()}async function ts(){return(await es()).filter(t=>t.kind==="videoinput")}const ns=()=>{const[e,t]=H(!1);return X(()=>{(async()=>{(await ts()).length>1&&t(!0)})()},[]),e},rs=({size:e})=>h("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:e,xmlns:"http://www.w3.org/2000/svg",children:[h("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"}),h("circle",{cx:"17.5",cy:"24.5",fill:"white",r:"1.5"}),h("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"}),h("circle",{fill:"white",r:"1.5",transform:"matrix(-1 0 0 1 34.5 24.5)"}),h("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"})]}),os=({size:e})=>h("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:"52",xmlns:"http://www.w3.org/2000/svg",children:[h("circle",{cx:"26",cy:"26",fill:"#131313",fillOpacity:"0.3",r:"26"}),h("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"})]}),po=z.button`
98
+ `;function Da({children:e,uiConfiguration:t,videoElementSize:n}){return q(()=>{Ta()},[]),p(fa,{target:t.styleTarget,children:p(ma,{theme:t.styling.theme,children:p(Ma,{children:p(La,{videoElementSize:n,children:p(Ra,{configuration:t,videoElementSize:n,children:e})})})})})}const Fa=.75,Ha=2,za="dot-auto-capture-video";function xe(e,t){const n=Fe(t);q(()=>{n.current=t},[t]),q(()=>{if(!e)return;const r=o=>n.current(o);return document.addEventListener(e,r),()=>{document.removeEventListener(e,r)}},[e])}function Ua(e){const[t,n]=F(),r=se(o=>{var i;n((i=o.detail)==null?void 0:i.size)},[n]);return xe(e,r),$e(()=>{if(!t){const o=document.getElementById(za);o&&n(o.getBoundingClientRect())}},[t,n]),t}function Ba(e,t){return e?`${e}, ${t}`:t}const Ve={colors:{placeholderColor:"white",placeholderColorSuccess:"#00BFB2",instructionColor:"#F8FBFB",instructionColorSuccess:"#00BFB2",instructionTextColor:"#021B41;"},font:{family:"Montserrat, Arial, sans-serif",weight:"600",style:"normal",minimumSize:io}},Wa=e=>{var t;return e?{...Ve,...e,colors:{...Ve.colors,...e.colors},font:{...Ve.font,...e.font,family:Ba((t=e.font)==null?void 0:t.family,Ve.font.family)}}:Ve},ja=e=>Number.parseFloat(e.toFixed(3)),mn=(e,t)=>Math.min(e,t),Ga=({height:e,width:t},n)=>{const r=mn(t,e)*n,o=(t-r)/2,i=(e-r)/2;return{shiftX:o,shiftY:i,width:r,height:r}},Va=(e,t)=>{const{height:n,shiftX:r,shiftY:o,width:i}=Ga(e,t);return{shiftX:r/e.width,shiftY:o/e.height,width:i/e.width,height:n/e.height}};function Za(e,t){const n=mn(t.width,t.height);return ja(e*n)}function Ya(e){return Va(e,Fa)}function qa(e,t){return Za(e,t)*Ha}const Xa=(e,t)=>{document.dispatchEvent(new CustomEvent(e,{detail:t}))},lo=(e,t)=>{Xa(e,{instruction:t})};async function Ka(){return navigator.mediaDevices.enumerateDevices()}async function Ja(){return(await Ka()).filter(t=>t.kind==="videoinput")}const Qa=()=>{const[e,t]=F(!1);return q(()=>{(async()=>{(await Ja()).length>1&&t(!0)})()},[]),e},es=({size:e})=>p("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:e,xmlns:"http://www.w3.org/2000/svg",children:[p("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"}),p("circle",{cx:"17.5",cy:"24.5",fill:"white",r:"1.5"}),p("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"}),p("circle",{fill:"white",r:"1.5",transform:"matrix(-1 0 0 1 34.5 24.5)"}),p("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"})]}),ts=({size:e})=>p("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:"52",xmlns:"http://www.w3.org/2000/svg",children:[p("circle",{cx:"26",cy:"26",fill:"#131313",fillOpacity:"0.3",r:"26"}),p("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"})]}),uo=H.button`
99
99
  background: none;
100
100
  border: none;
101
101
  padding: 0;
@@ -105,13 +105,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);const co={CIRCLE_SOLI
105
105
  &:disabled {
106
106
  cursor: not-allowed;
107
107
  }
108
- `,is=({marginLeft:e,size:t,...n})=>h(po,{$marginLeft:e,...n,children:h(rs,{size:t})}),as=({marginLeft:e,size:t,...n})=>h(po,{$marginLeft:e,...n,children:h(os,{size:t})}),ss=z.div`
108
+ `,ns=({marginLeft:e,size:t,...n})=>p(uo,{$marginLeft:e,...n,children:p(es,{size:t})}),rs=({marginLeft:e,size:t,...n})=>p(uo,{$marginLeft:e,...n,children:p(ts,{size:t})}),os=H.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
- `,cs=({customControlEvent:e,isSwitchCameraDisabled:t})=>{const{showCameraButtons:n,videoElementSize:r}=ve(),o=ns();if(!n)return null;const{buttonPadding:i,iconSize:a,marginLeft:s}=xa(r);return h(ss,{$padding:i,children:[o&&h(as,{disabled:t,onClick:()=>{ho(e,Wn.SWITCH_CAMERA)},size:a}),h(is,{marginLeft:o?s:0,onClick:()=>{ho(e,Wn.TOGGLE_MIRROR)},size:a})]})},ls="2.5s",us="0.3s",fs="linear",ds=St`
114
+ `,is=({customControlEvent:e,isSwitchCameraDisabled:t})=>{const{control:{showCameraButtons:n},videoElementSize:r}=ye(),o=Qa();if(!n)return null;const{buttonPadding:i,iconSize:a,marginLeft:s}=Na(r);return p(os,{$padding:i,children:[o&&p(rs,{disabled:t,onClick:()=>{lo(e,Hn.SWITCH_CAMERA)},size:a}),p(ns,{marginLeft:o?s:0,onClick:()=>{lo(e,Hn.TOGGLE_MIRROR)},size:a})]})},as="2.5s",ss="0.3s",cs="linear",ls=St`
115
115
  0% {
116
116
  opacity: 0;
117
117
  }
@@ -159,16 +159,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);const co={CIRCLE_SOLI
159
159
  transform: scale(1);
160
160
  opacity: 1;
161
161
  }
162
- `;const _s=z.div`
162
+ `;const us=H.div`
163
163
  position: absolute;
164
164
  left: 50%;
165
165
 
166
166
  ${e=>e.$cssTop?`top: ${e.$cssTop}%;`:""}
167
167
  ${e=>e.$cssBottom?`bottom: ${e.$cssBottom}%;`:""}
168
- ${e=>e.$isAnimating&&pn`
169
- animation: ${ds} ${us}
170
- ${fs} both;
171
- animation-delay: ${ls};
168
+ ${e=>e.$isAnimating&&dn`
169
+ animation: ${ls} ${ss}
170
+ ${cs} both;
171
+ animation-delay: ${as};
172
172
 
173
173
  @media (orientation: landscape) {
174
174
  bottom: ${e.$cssBottom?e.$cssBottom-15:""}%;
@@ -192,7 +192,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);const co={CIRCLE_SOLI
192
192
  ${e=>e.$cssTop||e.$isPortrait?"-50%":e.$isPortrait?"":"50%"}
193
193
  );
194
194
  z-index: 2;
195
- `,hs=z.div`
195
+ `,fs=H.div`
196
196
  display: flex;
197
197
  align-items: center;
198
198
  justify-content: center;
@@ -206,7 +206,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);const co={CIRCLE_SOLI
206
206
  line-height: 1em;
207
207
  font-size: ${e=>`${e.$fontSize}px`};
208
208
  white-space: ${e=>e.$wrap?"break-spaces":"nowrap"};
209
- `,ps=({children:e,cssBottom:t,cssTop:n,isAnimating:r,isInCandidateSelection:o,isPortrait:i})=>{const{fontSize:a}=ve();return h(_s,{$cssBottom:t,$cssTop:n,$isAnimating:r,$isPortrait:i,children:h(hs,{$fontSize:a,$isInCandidateSelection:o,$wrap:e.length>Ta,children:e})})},ms=z.div`
209
+ `,ds=({children:e,cssBottom:t,cssTop:n,isAnimating:r,isInCandidateSelection:o,isPortrait:i})=>{const{fontSize:a}=ye();return p(us,{$cssBottom:t,$cssTop:n,$isAnimating:r,$isPortrait:i,children:p(fs,{$fontSize:a,$isInCandidateSelection:o,$wrap:e.length>$a,children:e})})},_s=H.div`
210
210
  color: ${e=>e.theme.colors.instructionTextColor};
211
211
  animation: spin 2s linear infinite;
212
212
 
@@ -215,7 +215,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);const co={CIRCLE_SOLI
215
215
  transform: rotate(-360deg);
216
216
  }
217
217
  }
218
- `,gs=({svgSize:e})=>h(ms,{children:h("svg",{fill:"none",height:e,viewBox:"0 0 48 48",width:e,xmlns:"http://www.w3.org/2000/svg",children:[h("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"}),h("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"}),h("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"}),h("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"}),h("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"}),h("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"}),h("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"}),h("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"})]})}),ys=z.div`
218
+ `,ps=({svgSize:e})=>p(_s,{children:p("svg",{fill:"none",height:e,viewBox:"0 0 48 48",width:e,xmlns:"http://www.w3.org/2000/svg",children:[p("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"}),p("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"}),p("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"}),p("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"}),p("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"}),p("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"}),p("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"}),p("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"})]})}),hs=H.div`
219
219
  z-index: 1;
220
220
  position: absolute;
221
221
  // Scale up the backdrop to have space when placeholder is scaled below 1
@@ -232,7 +232,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);const co={CIRCLE_SOLI
232
232
  transform: scale(0.5);
233
233
  translate: 25% 25%;
234
234
  }
235
- `,mo=({children:e,height:t,scale:n,width:r})=>{const{backdropColor:o}=ve(),i=vn(r,t);return h(ys,{$backdropColor:o,$scale:n,$shorterSide:i,children:h("svg",{viewBox:`0 0 ${r} ${t}`,children:[h("defs",{children:h("mask",{id:"mask",children:[h("rect",{fill:"#fff",height:"100%",width:"100%"}),h("g",{children:e})]})}),h("rect",{fill:o,height:"100%",mask:"url(#mask)",width:"100%"})]})})};function vs({cameraHeight:e,cameraWidth:t,isBackdrop:n,state:r}){const{appStateInstructions:o}=ve(),i=r===F.ERROR||r===F.RUNNING;return!r||i||!(o!=null&&o[r].visible)?null:r===F.WAITING||r===F.COMPLETE?h(B,{children:[n&&e&&t&&h(mo,{height:e,width:t}),h(yn,{isCameraReady:!0,text:o[F.WAITING].text})]}):h(yn,{Icon:gs,isCameraReady:!0,text:o[F.LOADING].text})}function Cs({isRounded:e,isSquare:t,...n}){return e?h("rect",{fill:"#000",...n,rx:"2%"}):h("rect",{fill:"#000",...n,rx:t?"0":"50%"})}const Es=()=>h("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:h("path",{d:"M2 240C2 108.556 108.556 2 240 2C371.444 2 478 108.556 478 240C478 371.444 371.444 478 240 478C108.556 478 2 371.444 2 240Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4"})}),Ss=z.div`
235
+ `,fo=({children:e,height:t,scale:n,width:r})=>{const{styling:{backdropColor:o}}=ye(),i=mn(r,t);return p(hs,{$backdropColor:o,$scale:n,$shorterSide:i,children:p("svg",{viewBox:`0 0 ${r} ${t}`,children:[p("defs",{children:p("mask",{id:"mask",children:[p("rect",{fill:"#fff",height:"100%",width:"100%"}),p("g",{children:e})]})}),p("rect",{fill:o,height:"100%",mask:"url(#mask)",width:"100%"})]})})};function ms({cameraHeight:e,cameraWidth:t,isBackdrop:n,state:r}){const{appStateInstructions:o}=ye(),i=r===D.ERROR||r===D.RUNNING;return!r||i||!(o!=null&&o[r].visible)?null:r===D.WAITING||r===D.COMPLETE?p(U,{children:[n&&e&&t&&p(fo,{height:e,width:t}),p(hn,{isCameraReady:!0,text:o[D.WAITING].text})]}):p(hn,{Icon:ps,isCameraReady:!0,text:o[D.LOADING].text})}function gs({isRounded:e,isSquare:t,...n}){return e?p("rect",{fill:"#000",...n,rx:"2%"}):p("rect",{fill:"#000",...n,rx:t?"0":"50%"})}const ys=()=>p("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M2 240C2 108.556 108.556 2 240 2C371.444 2 478 108.556 478 240C478 371.444 371.444 478 240 478C108.556 478 2 371.444 2 240Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4"})}),vs=H.div`
236
236
  z-index: 1;
237
237
  position: absolute;
238
238
  top: ${e=>e.$placeholderRectangle.shiftY*100}%;
@@ -246,7 +246,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);const co={CIRCLE_SOLI
246
246
  width: 100%;
247
247
  height: 100%;
248
248
  }
249
- `,ws=({children:e,className:t,isInCandidateSelection:n,onAnimationEnd:r,placeholderRectangle:o,scale:i})=>h(Ss,{$isInCandidateSelection:n,$placeholderRectangle:o,$scale:i,className:t,onAnimationEnd:r,children:e}),bs={[co.CIRCLE_SOLID]:h(Es,{})};function $s({backdropHeight:e,backdropWidth:t,placeholderRectangle:n,scale:r,...o}){const{placeholder:i}=ve();return h(B,{children:[h(mo,{height:e,scale:r,width:t,children:h(Cs,{height:`${n.height*100}%`,width:`${n.width*100}%`,x:`${n.shiftX*100}%`,y:`${n.shiftY*100}%`})}),h(ws,{placeholderRectangle:n,scale:r,...o,children:bs[i]})]})}const Os=new Map([[we.ZERO,{minFaceSizeRatio:.13,maxFaceSizeRatio:.15,scale:.85}],[we.ONE,{minFaceSizeRatio:.152,maxFaceSizeRatio:.172,scale:1}],[we.TWO,{minFaceSizeRatio:.18,maxFaceSizeRatio:.205,scale:1.18}],[we.THREE,{minFaceSizeRatio:.215,maxFaceSizeRatio:.24,scale:1.41}],[we.FOUR,{minFaceSizeRatio:.245,maxFaceSizeRatio:.275,scale:1.61}],[we.FIVE,{minFaceSizeRatio:.28,maxFaceSizeRatio:.34,scale:1.84}]]);function ks({customEvents:e,defaultInstructionCode:t}){const[n,r]=H(),[o,i]=H(!1),a=se(v=>{var m,p;r((m=v==null?void 0:v.detail)==null?void 0:m.cameraResolution);const C=(p=v==null?void 0:v.detail)==null?void 0:p.isMirroring;C!==void 0&&i(C)},[r]);Ae(e.CAMERA_PROPS_CHANGED,a);const[s,l]=H({code:t,isEscalated:!1}),u=se(v=>{var m,p;const C=v;l({code:(m=C==null?void 0:C.detail)==null?void 0:m.instructionCode,isEscalated:((p=C==null?void 0:C.detail)==null?void 0:p.isEscalated)??!1})},[l]);Ae(e.INSTRUCTION_CHANGED,u);const[f,c]=H(F.LOADING),[_,d]=H(),y=se(v=>{var m,p;c((m=v.detail)==null?void 0:m.appState);const C=(p=v==null?void 0:v.detail)==null?void 0:p.error;C&&d(C)},[c,d]);return Ae(e.STATE_CHANGED,y),{cameraResolution:n,instruction:s,isMirroring:o,appState:f,error:_}}function Ns(){const e=ks({customEvents:Fe,defaultInstructionCode:et.FACE_NOT_PRESENT}),[t,n]=H(1),r=se(o=>{var s;const i=o,{currentMultiRangeLivenessChallengeItem:a}=i.detail;n(((s=Os.get(a))==null?void 0:s.scale)??1)},[]);return Ae(Fe.CHALLENGE_VALUE_CHANGED,r),X(()=>{e.appState!==F.RUNNING&&n(1)},[e.appState]),{...e,faceScale:t}}const Ts=z.canvas`
249
+ `,Cs=({children:e,className:t,isInCandidateSelection:n,onAnimationEnd:r,placeholderRectangle:o,scale:i})=>p(vs,{$isInCandidateSelection:n,$placeholderRectangle:o,$scale:i,className:t,onAnimationEnd:r,children:e}),Ss={[oo.CIRCLE_SOLID]:p(ys,{})};function Es({backdropHeight:e,backdropWidth:t,placeholderRectangle:n,scale:r,...o}){const{placeholder:i}=ye();return p(U,{children:[p(fo,{height:e,scale:r,width:t,children:p(gs,{height:`${n.height*100}%`,width:`${n.width*100}%`,x:`${n.shiftX*100}%`,y:`${n.shiftY*100}%`})}),p(Cs,{placeholderRectangle:n,scale:r,...o,children:Ss[i]})]})}const ws=new Map([[Ee.ZERO,{minFaceSizeRatio:.13,maxFaceSizeRatio:.15,scale:.85}],[Ee.ONE,{minFaceSizeRatio:.152,maxFaceSizeRatio:.172,scale:1}],[Ee.TWO,{minFaceSizeRatio:.18,maxFaceSizeRatio:.205,scale:1.18}],[Ee.THREE,{minFaceSizeRatio:.215,maxFaceSizeRatio:.24,scale:1.41}],[Ee.FOUR,{minFaceSizeRatio:.245,maxFaceSizeRatio:.275,scale:1.61}],[Ee.FIVE,{minFaceSizeRatio:.28,maxFaceSizeRatio:.34,scale:1.84}]]);function bs({customEvents:e,defaultInstructionCode:t}){const[n,r]=F(),[o,i]=F(!1),a=se(y=>{var m,h;r((m=y==null?void 0:y.detail)==null?void 0:m.cameraResolution);const v=(h=y==null?void 0:y.detail)==null?void 0:h.isMirroring;v!==void 0&&i(v)},[r]);xe(e.CAMERA_PROPS_CHANGED,a);const[s,l]=F({code:t,isEscalated:!1}),u=se(y=>{var m,h;const v=y;l({code:(m=v==null?void 0:v.detail)==null?void 0:m.instructionCode,isEscalated:((h=v==null?void 0:v.detail)==null?void 0:h.isEscalated)??!1})},[l]);xe(e.INSTRUCTION_CHANGED,u);const[f,c]=F(D.LOADING),[_,d]=F(),g=se(y=>{var m,h;c((m=y.detail)==null?void 0:m.appState);const v=(h=y==null?void 0:y.detail)==null?void 0:h.error;v&&d(v)},[c,d]);return xe(e.STATE_CHANGED,g),{cameraResolution:n,instruction:s,isMirroring:o,appState:f,error:_}}function $s(){const e=bs({customEvents:De,defaultInstructionCode:Qe.FACE_NOT_PRESENT}),[t,n]=F(1),r=se(o=>{var s;const i=o,{currentMultiRangeLivenessChallengeItem:a}=i.detail;n(((s=ws.get(a))==null?void 0:s.scale)??1)},[]);return xe(De.CHALLENGE_VALUE_CHANGED,r),q(()=>{e.appState!==D.RUNNING&&n(1)},[e.appState]),{...e,faceScale:t}}const Os=H.canvas`
250
250
  transform: ${e=>e.$isImageMirror?"rotateY(180deg)":"none"};
251
251
  position: absolute;
252
252
  top: 0;
@@ -254,4 +254,4 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);const co={CIRCLE_SOLI
254
254
  width: 100%;
255
255
  height: 100%;
256
256
  z-index: 1;
257
- `;function Is(e){const t=e.getContext("2d");t&&t.clearRect(0,0,t.canvas.width,t.canvas.height)}function Rs({cameraResolution:e,isImageMirror:t}){const n=He(null),r=ro(),[o,i]=H(),a=se(s=>{var l,u,f;i((f=(u=(l=s==null?void 0:s.detail)==null?void 0:l.detectionDetails)==null?void 0:u.processedImage)==null?void 0:f.detection)},[i]);return Ae(Fe.DETECTION_CHANGED,a),X(()=>{if(!n.current)return;const s=(l,u)=>{var y;if(!u)return;const{faceCenter:f,faceSize:c}=u,_=(y=n==null?void 0:n.current)==null?void 0:y.getContext("2d");if(!_)return;const d=Qa(c,l);_.beginPath(),_.arc(f.x,f.y,d,0,2*Math.PI,!1),_.lineWidth=Sa,_.strokeStyle=r.colors.placeholderColor,_.stroke()};n.current.width=e.width,n.current.height=e.height,Is(n.current),s(e,o)},[e,o,r.colors.placeholderColor]),h(Ts,{ref:n,$isImageMirror:t})}function xs(){const{appState:e,cameraResolution:t,error:n,faceScale:r,instruction:o,isMirroring:i}=Ns(),{escalatedInstructions:a,instructions:s,showDetectionLayer:l}=ve(),u=o.code===et.CANDIDATE_SELECTION,f=Pa({escalatedInstructions:a,instructions:s,currentInstruction:{...o,code:o.code}});if(e===F.ERROR)return h(_o,{text:n==null?void 0:n.message});if(e===F.RUNNING&&t){const c=Ja(t);return h(B,{children:[l&&h(Rs,{cameraResolution:t,isImageMirror:i}),h($s,{backdropHeight:t.height,backdropWidth:t.width,isInCandidateSelection:u,placeholderRectangle:c,scale:r}),f&&h(ps,{cssBottom:(c.height+c.shiftY)*100,isInCandidateSelection:u,isPortrait:t.width<t.height,children:f}),h(cs,{customControlEvent:Fe.CONTROL,isSwitchCameraDisabled:u})]})}return h(vs,{cameraHeight:t==null?void 0:t.height,cameraWidth:t==null?void 0:t.width,isBackdrop:!0,state:e})}function As(e){var u,f,c;const t={...Oa,...e==null?void 0:e.instructions},n={...ka,...e==null?void 0:e.escalatedInstructions},r={[F.LOADING]:{...gn.loading,...(u=e==null?void 0:e.appStateInstructions)==null?void 0:u.loading},[F.WAITING]:{...gn.waiting,...(f=e==null?void 0:e.appStateInstructions)==null?void 0:f.waiting},[F.COMPLETE]:{...gn.waiting,...(c=e==null?void 0:e.appStateInstructions)==null?void 0:c.waiting}},o=(e==null?void 0:e.placeholder)??$a,i=(e==null?void 0:e.backdropColor)??Na,a=(e==null?void 0:e.showDetectionLayer)??!1,s=(e==null?void 0:e.showCameraButtons)??!1,l=Za(e==null?void 0:e.theme);return{instructions:t,appStateInstructions:r,placeholder:o,showDetectionLayer:a,showCameraButtons:s,theme:l,escalatedInstructions:n,backdropColor:i}}function Ps({props:e}){const t=ja(Fe.VIDEO_ELEMENT_SIZE);return h(Ua,{uiProps:As(e),videoElementSize:t,children:h(xs,{})})}Io(Ps,"x-dot-multi-range-liveness-ui",["props"])});
257
+ `;function ks(e){const t=e.getContext("2d");t&&t.clearRect(0,0,t.canvas.width,t.canvas.height)}function Ns({cameraResolution:e,isImageMirror:t}){const n=Fe(null),r=Qr(),[o,i]=F(),a=se(s=>{var l,u,f;i((f=(u=(l=s==null?void 0:s.detail)==null?void 0:l.detectionDetails)==null?void 0:u.processedImage)==null?void 0:f.detection)},[i]);return xe(De.DETECTION_CHANGED,a),q(()=>{if(!n.current)return;const s=(l,u)=>{var g;if(!u)return;const{faceCenter:f,faceSize:c}=u,_=(g=n==null?void 0:n.current)==null?void 0:g.getContext("2d");if(!_)return;const d=qa(c,l);_.beginPath(),_.arc(f.x,f.y,d,0,2*Math.PI,!1),_.lineWidth=ya,_.strokeStyle=r.colors.placeholderColor,_.stroke()};n.current.width=e.width,n.current.height=e.height,ks(n.current),s(e,o)},[e,o,r.colors.placeholderColor]),p(Os,{ref:n,$isImageMirror:t})}function Ts(){const{appState:e,cameraResolution:t,error:n,faceScale:r,instruction:o,isMirroring:i}=$s(),{control:{showDetectionLayer:a},escalatedInstructions:s,instructions:l}=ye(),u=o.code===Qe.CANDIDATE_SELECTION,f=Ia({escalatedInstructions:s,instructions:l,currentInstruction:{...o,code:o.code}});if(e===D.ERROR)return p(co,{text:n==null?void 0:n.message});if(e===D.RUNNING&&t){const c=Ya(t);return p(U,{children:[a&&p(Ns,{cameraResolution:t,isImageMirror:i}),p(Es,{backdropHeight:t.height,backdropWidth:t.width,isInCandidateSelection:u,placeholderRectangle:c,scale:r}),f&&p(ds,{cssBottom:(c.height+c.shiftY)*100,isInCandidateSelection:u,isPortrait:t.width<t.height,children:f}),p(is,{customControlEvent:De.CONTROL,isSwitchCameraDisabled:u})]})}return p(ms,{cameraHeight:t==null?void 0:t.height,cameraWidth:t==null?void 0:t.width,isBackdrop:!0,state:e})}function Is(e){var s,l,u,f,c,_,d;const t={...Ea,...e==null?void 0:e.instructions},n={...wa,...e==null?void 0:e.escalatedInstructions},r={[D.LOADING]:{...pn.loading,...(s=e==null?void 0:e.appStateInstructions)==null?void 0:s.loading},[D.WAITING]:{...pn.waiting,...(l=e==null?void 0:e.appStateInstructions)==null?void 0:l.waiting},[D.COMPLETE]:{...pn.waiting,...(u=e==null?void 0:e.appStateInstructions)==null?void 0:u.waiting}},o={...e==null?void 0:e.styling,backdropColor:((f=e==null?void 0:e.styling)==null?void 0:f.backdropColor)??ba,theme:Wa((c=e==null?void 0:e.styling)==null?void 0:c.theme)},i={showCameraButtons:((_=e==null?void 0:e.control)==null?void 0:_.showCameraButtons)??!1,showDetectionLayer:((d=e==null?void 0:e.control)==null?void 0:d.showDetectionLayer)??!1},a=(e==null?void 0:e.placeholder)??Sa;return{instructions:t,appStateInstructions:r,placeholder:a,styling:o,control:i,escalatedInstructions:n}}function Rs({configuration:e}){const t=Ua(De.VIDEO_ELEMENT_SIZE);return p(Da,{uiConfiguration:Is(e),videoElementSize:t,children:p(Ts,{})})}Oo(Rs,"x-dot-multi-range-liveness-ui",["configuration"])});