@ahmed_hani/dot-auto-capture-ui 7.4.0 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -7
- package/document.mjs +607 -584
- package/document.umd.js +35 -24
- package/face.mjs +410 -379
- package/face.umd.js +28 -17
- package/magnifeye-liveness.mjs +457 -430
- package/magnifeye-liveness.umd.js +36 -26
- package/multi-range-liveness.mjs +2953 -0
- package/multi-range-liveness.umd.js +257 -0
- package/package.json +14 -9
- package/palm.mjs +750 -687
- package/palm.umd.js +36 -25
- package/smile-liveness.mjs +584 -558
- package/smile-liveness.umd.js +44 -33
- package/ui/src/types/multi-range.d.ts +28 -0
- package/ui/src/types/palm.d.ts +2 -1
- package/ui-common/src/types/common.d.ts +15 -4
- package/ui-common/src/types/events/common.d.ts +41 -0
- package/ui-common/src/types/events/index.d.ts +1 -0
- package/ui-common/src/types/events/multi-range.d.ts +16 -0
- package/ui-common/src/types/eye-gaze.d.ts +1 -0
- package/ui-common/src/types/index.d.ts +1 -0
- package/ui-common/src/types/magnifeye.d.ts +1 -0
- package/ui-common/src/types/multi-range.d.ts +37 -0
- package/ui-common/src/types/palm.d.ts +1 -1
- package/ui-common/src/types/smile.d.ts +1 -0
- package/tsconfig.production.json +0 -22
package/smile-liveness.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(H){typeof define=="function"&&define.amd?define(H):H()})(function(){"use strict";var Ka=Object.defineProperty;var Qa=(H,p,fe)=>p in H?Ka(H,p,{enumerable:!0,configurable:!0,writable:!0,value:fe}):H[p]=fe;var It=(H,p,fe)=>Qa(H,typeof p!="symbol"?p+"":p,fe);var H,p,fe,de,kn,On,Nn,In,Tt,xt,At,Tn,De={},xn=[],$o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=Array.isArray;function q(e,t){for(var n in t)e[n]=t[n];return e}function Rt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function D(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?H.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]==null&&(s[i]=e.defaultProps[i]);return He(e,s,r,o,null)}function He(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++fe,__i:-1,__u:0};return o==null&&p.vnode!=null&&p.vnode(i),i}function ko(){return{current:null}}function B(e){return e.children}function V(e,t){this.props=e,this.context=t}function be(e,t){if(t==null)return e.__?be(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"?be(e):null}function An(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return An(e)}}function Lt(e){(!e.__d&&(e.__d=!0)&&de.push(e)&&!Je.__r++||kn!=p.debounceRendering)&&((kn=p.debounceRendering)||On)(Je)}function Je(){for(var e,t,n,r,o,i,s,c=1;de.length;)de.length>c&&de.sort(Nn),e=de.shift(),c=de.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=q({},r)).__v=r.__v+1,p.vnode&&p.vnode(n),Pt(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??be(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Mn(i,n,s),n.__e!=o&&An(n)));Je.__r=0}function Rn(e,t,n,r,o,i,s,c,a,u,d){var l,h,_,y,E,$,g=r&&r.__k||xn,m=t.length;for(a=Oo(n,t,g,a,m),l=0;l<m;l++)(_=n.__k[l])!=null&&(h=_.__i==-1?De:g[_.__i]||De,_.__i=l,$=Pt(e,_,h,o,i,s,c,a,u,d),y=_.__e,_.ref&&h.ref!=_.ref&&(h.ref&&Dt(h.ref,null,_),d.push(_.ref,_.__c||y,_)),E==null&&y!=null&&(E=y),4&_.__u||h.__k===_.__k?a=Ln(_,a,e):typeof _.type=="function"&&$!==void 0?a=$:y&&(a=y.nextSibling),_.__u&=-7);return n.__e=E,a}function Oo(e,t,n,r,o){var i,s,c,a,u,d=n.length,l=d,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(a=i+h,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?He(null,s,null,null,null):Me(s)?He(B,{children:s},null,null,null):s.constructor==null&&s.__b>0?He(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,c=null,(u=s.__i=No(s,n,a,l))!=-1&&(l--,(c=n[u])&&(c.__u|=2)),c==null||c.__v==null?(u==-1&&(o>d?h--:o<d&&h++),typeof s.type!="function"&&(s.__u|=4)):u!=a&&(u==a-1?h--:u==a+1?h++:(u>a?h--:h++,s.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<d;i++)(c=n[i])!=null&&(2&c.__u)==0&&(c.__e==r&&(r=be(c)),Un(c,c));return r}function Ln(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=Ln(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=be(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"||(Me(e)?e.some(function(n){Q(n,t)}):t.push(e)),t}function No(e,t,n,r){var o,i,s=e.key,c=e.type,a=t[n];if(a===null&&e.key==null||a&&s==a.key&&c==a.type&&(2&a.__u)==0)return n;if(r>(a!=null&&(2&a.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((a=t[o])&&(2&a.__u)==0&&s==a.key&&c==a.type)return o;o--}if(i<t.length){if((a=t[i])&&(2&a.__u)==0&&s==a.key&&c==a.type)return i;i++}}return-1}function Pn(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||$o.test(t)?n:n+"px"}function et(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||Pn(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Pn(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(In,"$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?At:xt,i)):e.removeEventListener(t,i?At:xt,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(p.event?p.event(t):t)}}}function Pt(e,t,n,r,o,i,s,c,a,u){var d,l,h,_,y,E,$,g,m,k,b,N,S,v,F,z,Ze,j=t.type;if(t.constructor!=null)return null;128&n.__u&&(a=!!(32&n.__u),i=[c=t.__e=n.__e]),(d=p.__b)&&d(t);e:if(typeof j=="function")try{if(g=t.props,m="prototype"in j&&j.prototype.render,k=(d=j.contextType)&&r[d.__c],b=d?k?k.props.value:d.__:r,n.__c?$=(l=t.__c=n.__c).__=l.__E:(m?t.__c=l=new j(g,b):(t.__c=l=new V(g,b),l.constructor=j,l.render=To),k&&k.sub(l),l.props=g,l.state||(l.state={}),l.context=b,l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),m&&l.__s==null&&(l.__s=l.state),m&&j.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=q({},l.__s)),q(l.__s,j.getDerivedStateFromProps(g,l.__s))),_=l.props,y=l.state,l.__v=t,h)m&&j.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),m&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(m&&j.getDerivedStateFromProps==null&&g!==_&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,b),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,b)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(we){we&&(we.__=t)}),N=0;N<l._sb.length;N++)l.__h.push(l._sb[N]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,b),m&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(_,y,E)})}if(l.context=b,l.props=g,l.__P=e,l.__e=!1,S=p.__r,v=0,m){for(l.state=l.__s,l.__d=!1,S&&S(t),d=l.render(l.props,l.state,l.context),F=0;F<l._sb.length;F++)l.__h.push(l._sb[F]);l._sb=[]}else do l.__d=!1,S&&S(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++v<25);l.state=l.__s,l.getChildContext!=null&&(r=q(q({},r),l.getChildContext())),m&&!h&&l.getSnapshotBeforeUpdate!=null&&(E=l.getSnapshotBeforeUpdate(_,y)),z=d,d!=null&&d.type===B&&d.key==null&&(z=Hn(d.props.children)),c=Rn(e,Me(z)?z:[z],t,n,r,o,i,s,c,a,u),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),$&&(l.__E=l.__=null)}catch(we){if(t.__v=null,a||i!=null)if(we.then){for(t.__u|=a?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else for(Ze=i.length;Ze--;)Rt(i[Ze]);else t.__e=n.__e,t.__k=n.__k;p.__e(we,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=Io(n.__e,t,n,r,o,i,s,a,u);return(d=p.diffed)&&d(t),128&t.__u?void 0:c}function Mn(e,t,n){for(var r=0;r<n.length;r++)Dt(n[r],n[++r],n[++r]);p.__c&&p.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){p.__e(i,o.__v)}})}function Hn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Me(e)?e.map(Hn):q({},e)}function Io(e,t,n,r,o,i,s,c,a){var u,d,l,h,_,y,E,$=n.props,g=t.props,m=t.type;if(m=="svg"?o="http://www.w3.org/2000/svg":m=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((_=i[u])&&"setAttribute"in _==!!m&&(m?_.localName==m:_.nodeType==3)){e=_,i[u]=null;break}}if(e==null){if(m==null)return document.createTextNode(g);e=document.createElementNS(o,m,g.is&&g),c&&(p.__m&&p.__m(t,i),c=!1),i=null}if(m==null)$===g||c&&e.data==g||(e.data=g);else{if(i=i&&H.call(e.childNodes),$=n.props||De,!c&&i!=null)for($={},u=0;u<e.attributes.length;u++)$[(_=e.attributes[u]).name]=_.value;for(u in $)if(_=$[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=_;else if(!(u in g)){if(u=="value"&&"defaultValue"in g||u=="checked"&&"defaultChecked"in g)continue;et(e,u,null,_,o)}}for(u in g)_=g[u],u=="children"?h=_:u=="dangerouslySetInnerHTML"?d=_:u=="value"?y=_:u=="checked"?E=_:c&&typeof _!="function"||$[u]===_||et(e,u,_,$[u],o);if(d)c||l&&(d.__html==l.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),Rn(t.type=="template"?e.content:e,Me(h)?h:[h],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&be(n,0),c,a),i!=null)for(u=i.length;u--;)Rt(i[u]);c||(u="value",m=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[u]||m=="progress"&&!y||m=="option"&&y!=$[u])&&et(e,u,y,$[u],o),u="checked",E!=null&&E!=e[u]&&et(e,u,E,$[u],o))}return e}function Dt(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){p.__e(o,n)}}function Un(e,t,n){var r,o;if(p.unmount&&p.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Dt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){p.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Un(r[o],t,n||typeof e.type!="function");n||Rt(e.__e),e.__c=e.__=e.__e=void 0}function To(e,t,n){return this.constructor(e,n)}function se(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),p.__&&p.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Pt(t,e=(!r&&n||t).__k=D(B,null,[e]),o||De,De,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?H.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Mn(i,e,s)}function Mt(e,t){se(e,t,Mt)}function Ht(e,t,n){var r,o,i,s,c=q({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:c[i]=t[i]==null&&s!=null?s[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?H.call(arguments,2):n),He(e.type,c,r||e.key,o||e.ref,null)}function Fn(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(s){s.__e=!0,Lt(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+Tn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}H=xn.slice,p={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(c){e=c}throw e}},fe=0,V.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),Lt(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Lt(this))},V.prototype.render=B,de=[],On=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Nn=function(e,t){return e.__v.__b-t.__v.__b},Je.__r=0,In=/(PointerCapture)$|Capture$/i,Tt=0,xt=Dn(!1),At=Dn(!0),Tn=0;function Ut(){return(Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var xo=["context","children"];function Ao(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,c={},a=Object.keys(r);for(s=0;s<a.length;s++)o.indexOf(i=a[s])>=0||(c[i]=r[i]);return c}(e,xo);return Ht(t,n)}function Ro(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=D(Ao,Ut({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,c=n.attributes,a=n.childNodes;for(s=c.length;s--;)c[s].name!=="slot"&&(i[c[s].name]=c[s].value,i[Bn(c[s].name)]=c[s].value);for(s=a.length;s--;){var u=t(a[s],null),d=a[s].slot;d?i[d]=D(Wn,{name:d},u):o[s]=u}var l=r?D(Wn,null,o):o;return D(r||n.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Mt:se)(this._vdom,this._root)}function Bn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Lo(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Bn(e)]=n,this._vdom=Ht(this._vdom,r),se(this._vdom,this._root)}}function Po(){se(this._vdom=null,this._root)}function Wn(e,t){var n=this;return D("slot",Ut({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Do(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=Ro,o.prototype.attributeChangedCallback=Lo,o.prototype.disconnectedCallback=Po,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(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var c=typeof s;s!=null&&c!=="string"&&c!=="boolean"&&c!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}var Mo=0;function f(e,t,n,r,o,i){t||(t={});var s,c,a=t;if("ref"in a)for(c in a={},t)c=="ref"?s=t[c]:a[c]=t[c];var u={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Mo,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(c in s)a[c]===void 0&&(a[c]=s[c]);return p.vnode&&p.vnode(u),u}const zn={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var Ue=(e=>(e.CAMERA_PROPS_CHANGED="face-auto-capture:camera-props-changed",e.CONTROL="face-auto-capture:control",e.DETECTED_FACE_CHANGED="face-auto-capture:detected-face-changed",e.FACE_DETECTION="face-auto-capture:face-detection",e.INSTRUCTION_CHANGED="face-auto-capture:instruction-changed",e.STATE_CHANGED="face-auto-capture:state-changed",e.VIDEO_ELEMENT_SIZE="face-auto-capture:video-element-size",e))(Ue||{}),Ft=(e=>(e.CONTROL="smile-auto-capture:control",e.INSTRUCTION_ESCALATED="smile:instruction-escalated",e.STATUS_CHANGED="smile-auto-capture:status-changed",e))(Ft||{});const jn={EYE_NOT_PRESENT:"eye_not_present"},L={CANDIDATE_SELECTION:"candidate_selection",FACE_TOO_CLOSE:"face_too_close",FACE_TOO_FAR:"face_too_far",FACE_CENTERING:"face_centering",FACE_NOT_PRESENT:"face_not_present",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",DEVICE_PITCHED:"device_pitched",LEFT_EYE_NOT_PRESENT:`left_${jn.EYE_NOT_PRESENT}`,RIGHT_EYE_NOT_PRESENT:`right_${jn.EYE_NOT_PRESENT}`,MOUTH_NOT_PRESENT:"mouth_not_present",MOUTH_SCORE_TOO_HIGH:"mouth_score_too_high",MOUTH_SCORE_TOO_LOW:"mouth_score_too_low"},Bt={...{LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING"},DONE:"DONE"},J={...L,SMILE:"smile",SMILE_CANDIDATE_SELECTION:"smile_candidate_selection",KEEP_NEUTRAL_EXPRESSION:"keep_neutral_expression"},tt={NEUTRAL:"NEUTRAL",SMILE:"SMILE"},$e=Bt;var ae,I,Wt,Gn,ke=0,Vn=[],x=p,Yn=x.__b,qn=x.__r,Zn=x.diffed,Xn=x.__c,Kn=x.unmount,Qn=x.__;function Oe(e,t){x.__h&&x.__h(I,e,ke||t),ke=0;var n=I.__H||(I.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function M(e){return ke=1,zt(nr,e)}function zt(e,t,n){var r=Oe(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):nr(void 0,t),function(c){var a=r.__N?r.__N[0]:r.__[0],u=r.t(a,c);a!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=I,!I.__f)){var o=function(c,a,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!i||i.call(this,c,a,u);var l=r.__c.props!==c;return d.forEach(function(h){if(h.__N){var _=h.__[0];h.__=h.__N,h.__N=void 0,_!==h.__[0]&&(l=!0)}}),i&&i.call(this,c,a,u)||l};I.__f=!0;var i=I.shouldComponentUpdate,s=I.componentWillUpdate;I.componentWillUpdate=function(c,a,u){if(this.__e){var d=i;i=void 0,o(c,a,u),i=d}s&&s.call(this,c,a,u)},I.shouldComponentUpdate=o}return r.__N||r.__}function Z(e,t){var n=Oe(ae++,3);!x.__s&&Gt(n.__H,t)&&(n.__=e,n.u=t,I.__H.__h.push(n))}function Ne(e,t){var n=Oe(ae++,4);!x.__s&&Gt(n.__H,t)&&(n.__=e,n.u=t,I.__h.push(n))}function nt(e){return ke=5,ee(function(){return{current:e}},[])}function Jn(e,t,n){ke=6,Ne(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=Oe(ae++,7);return Gt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function _e(e,t){return ke=8,ee(function(){return e},t)}function Fe(e){var t=I.context[e.__c],n=Oe(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(I)),t.props.value):e.__}function rt(e,t){x.useDebugValue&&x.useDebugValue(t?t(e):e)}function er(){var e=Oe(ae++,11);if(!e.__){for(var t=I.__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 Ho(){for(var e;e=Vn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ot),e.__H.__h.forEach(jt),e.__H.__h=[]}catch(t){e.__H.__h=[],x.__e(t,e.__v)}}x.__b=function(e){I=null,Yn&&Yn(e)},x.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Qn&&Qn(e,t)},x.__r=function(e){qn&&qn(e),ae=0;var t=(I=e.__c).__H;t&&(Wt===I?(t.__h=[],I.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(ot),t.__h.forEach(jt),t.__h=[],ae=0)),Wt=I},x.diffed=function(e){Zn&&Zn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Vn.push(t)!==1&&Gn===x.requestAnimationFrame||((Gn=x.requestAnimationFrame)||Uo)(Ho)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Wt=I=null},x.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ot),n.__h=n.__h.filter(function(r){return!r.__||jt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],x.__e(r,n.__v)}}),Xn&&Xn(e,t)},x.unmount=function(e){Kn&&Kn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ot(r)}catch(o){t=o}}),n.__H=void 0,t&&x.__e(t,n.__v))};var tr=typeof requestAnimationFrame=="function";function Uo(e){var t,n=function(){clearTimeout(r),tr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);tr&&(t=requestAnimationFrame(n))}function ot(e){var t=I,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),I=t}function jt(e){var t=I;e.__c=e.__(),I=t}function Gt(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 he(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 Fo(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Bo=/^((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)-.*))$/,Wo=Fo(function(e){return Bo.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 Vt(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=M({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Ne(function(){o.__=n,o.u=t,Yt(o)&&i({t:o})},[e,n,t]),Z(function(){return Yt(o)&&i({t:o}),e(function(){Yt(o)&&i({t:o})})},[e]),n}function Yt(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 sr(e){return e}function ar(){return[!1,ir]}var cr=Ne;function qt(e,t){this.props=e,this.context=t}function zo(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Vt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,D(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qt.prototype=new V).isPureReactComponent=!0,qt.prototype.shouldComponentUpdate=function(e,t){return Vt(this.props,e)||Vt(this.state,t)};var lr=p.__b;p.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),lr&&lr(e)};var jo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Go(e){function t(n){var r=rr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=jo,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))},Vo={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},Yo=p.__e;p.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Yo(e,t,n,r)};var fr=p.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 it(){this.__u=0,this.o=null,this.__b=null}function hr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return D(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Be(){this.i=null,this.l=null}p.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),fr&&fr(e)},(it.prototype=new V).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=hr(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=s;var c=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=_r(a,a.__c.__P,a.__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(s,s)},it.prototype.componentWillUnmount=function(){this.o=[]},it.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=dr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&D(B,null,e.fallback);return o&&(o.__u&=-33),[D(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 Zo(e){return this.getChildContext=function(){return e.context},e.children}function Xo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){se(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)}}}se(D(Zo,{context:t.context},e.__v),t.v)}function Ko(e,t){var n=D(Xo,{__v:e,h:t});return n.containerInfo=t,n}(Be.prototype=new V).__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()}},Be.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},Be.prototype.componentDidUpdate=Be.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,Qo=/^(?: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]/,Jo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ei=/[A-Z0-9]/g,ti=typeof document<"u",ni=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ri(e,t,n){return t.__k==null&&(t.textContent=""),se(e,t),typeof n=="function"&&n(),e?e.__c:null}function oi(e,t,n){return Mt(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 gr=p.event;function ii(){}function si(){return this.cancelBubble}function ai(){return this.defaultPrevented}p.event=function(e){return gr&&(e=gr(e)),e.persist=ii,e.isPropagationStopped=si,e.isDefaultPrevented=ai,e.nativeEvent=e};var Zt,ci={enumerable:!1,configurable:!0,get:function(){return this.class}},yr=p.vnode;p.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var c=n[s];if(!(s==="value"&&"defaultValue"in n&&c==null||ti&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&c===!0?c="":a==="translate"&&c==="no"?c=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||ni(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":Jo.test(s)&&(s=a):a=s="oninput":i&&Qo.test(s)?s=s.replace(ei,"-$&").toLowerCase():c===null&&(c=void 0),a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=c}}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",ci)):(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=p.__r;p.__r=function(e){vr&&vr(e),Zt=e.__c};var Cr=p.diffed;p.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),Zt=null};var li={ReactCurrentDispatcher:{current:{readContext:function(e){return Zt.__n[e.__c].props.value},useCallback:_e,useContext:Fe,useDebugValue:rt,useDeferredValue:sr,useEffect:Z,useId:er,useImperativeHandle:Jn,useInsertionEffect:cr,useLayoutEffect:Ne,useMemo:ee,useReducer:zt,useRef:nt,useState:M,useSyncExternalStore:or,useTransition:ar}}};function ui(e){return D.bind(null,e)}function st(e){return!!e&&e.$$typeof===mr}function fi(e){return st(e)&&e.type===B}function di(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function _i(e){return st(e)?Ht.apply(null,arguments):e}function hi(e){return!!e.__k&&(se(null,e),!0)}function pi(e){return e&&(e.base||e.nodeType===1&&e)||null}var mi=function(e,t){return e(t)},gi=function(e,t){return e(t)},yi=B,vi=st,te={useState:M,useId:er,useReducer:zt,useEffect:Z,useLayoutEffect:Ne,useInsertionEffect:cr,useTransition:ar,useDeferredValue:sr,useSyncExternalStore:or,startTransition:ir,useRef:nt,useImperativeHandle:Jn,useMemo:ee,useCallback:_e,useContext:Fe,useDebugValue:rt,version:"18.3.1",Children:Vo,render:ri,hydrate:oi,unmountComponentAtNode:hi,createPortal:Ko,createElement:D,createContext:Fn,createFactory:ui,cloneElement:_i,createRef:ko,Fragment:B,isValidElement:st,isElement:vi,isFragment:fi,isMemo:di,findDOMNode:pi,Component:V,PureComponent:qt,memo:zo,forwardRef:Go,flushSync:gi,unstable_batchedUpdates:mi,StrictMode:yi,Suspense:it,SuspenseList:Be,lazy:qo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:li};function Ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt,Sr;function Si(){return Sr||(Sr=1,Xt=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 s=Object.keys(t),c=Object.keys(n);if(s.length!==c.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(n),u=0;u<s.length;u++){var d=s[u];if(!a(d))return!1;var l=t[d],h=n[d];if(i=r?r.call(o,l,h,d):void 0,i===!1||i===void 0&&l!==h)return!1}return!0}),Xt}var wi=Si();const Ei=Ci(wi);var T="-ms-",We="-moz-",O="-webkit-",wr="comm",at="rule",Kt="decl",bi="@import",Er="@keyframes",$i="@layer",br=Math.abs,Qt=String.fromCharCode,Jt=Object.assign;function ki(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function $r(e){return e.trim()}function ne(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function ct(e,t,n){return e.indexOf(t,n)}function R(e,t){return e.charCodeAt(t)|0}function Ie(e,t,n){return e.slice(t,n)}function X(e){return e.length}function kr(e){return e.length}function ze(e,t){return t.push(e),e}function Oi(e,t){return e.map(t).join("")}function Or(e,t){return e.filter(function(n){return!ne(n,t)})}var lt=1,Te=1,Nr=0,W=0,A=0,xe="";function ut(e,t,n,r,o,i,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:lt,column:Te,length:s,return:"",siblings:c}}function ce(e,t){return Jt(ut("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ae(e){for(;e.root;)e=ce(e.root,{children:[e]});ze(e,e.siblings)}function Ni(){return A}function Ii(){return A=W>0?R(xe,--W):0,Te--,A===10&&(Te=1,lt--),A}function Y(){return A=W<Nr?R(xe,W++):0,Te++,A===10&&(Te=1,lt++),A}function pe(){return R(xe,W)}function ft(){return W}function dt(e,t){return Ie(xe,e,t)}function en(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 Ti(e){return lt=Te=1,Nr=X(xe=e),W=0,[]}function xi(e){return xe="",e}function tn(e){return $r(dt(W-1,nn(e===91?e+2:e===40?e+1:e)))}function Ai(e){for(;(A=pe())&&A<33;)Y();return en(e)>2||en(A)>3?"":" "}function Ri(e,t){for(;--t&&Y()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return dt(e,ft()+(t<6&&pe()==32&&Y()==32))}function nn(e){for(;Y();)switch(A){case e:return W;case 34:case 39:e!==34&&e!==39&&nn(A);break;case 40:e===41&&nn(e);break;case 92:Y();break}return W}function Li(e,t){for(;Y()&&e+A!==57;)if(e+A===84&&pe()===47)break;return"/*"+dt(t,W-1)+"*"+Qt(e===47?e:Y())}function Pi(e){for(;!en(pe());)Y();return dt(e,W)}function Di(e){return xi(_t("",null,null,null,[""],e=Ti(e),0,[0],e))}function _t(e,t,n,r,o,i,s,c,a){for(var u=0,d=0,l=s,h=0,_=0,y=0,E=1,$=1,g=1,m=0,k="",b=o,N=i,S=r,v=k;$;)switch(y=m,m=Y()){case 40:if(y!=108&&R(v,l-1)==58){ct(v+=C(tn(m),"&","&\f"),"&\f",br(u?c[u-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:v+=tn(m);break;case 9:case 10:case 13:case 32:v+=Ai(y);break;case 92:v+=Ri(ft()-1,7);continue;case 47:switch(pe()){case 42:case 47:ze(Mi(Li(Y(),ft()),t,n,a),a);break;default:v+="/"}break;case 123*E:c[u++]=X(v)*g;case 125*E:case 59:case 0:switch(m){case 0:case 125:$=0;case 59+d:g==-1&&(v=C(v,/\f/g,"")),_>0&&X(v)-l&&ze(_>32?Tr(v+";",r,n,l-1,a):Tr(C(v," ","")+";",r,n,l-2,a),a);break;case 59:v+=";";default:if(ze(S=Ir(v,t,n,u,d,o,c,k,b=[],N=[],l,i),i),m===123)if(d===0)_t(v,t,S,S,b,i,l,c,N);else switch(h===99&&R(v,3)===110?100:h){case 100:case 108:case 109:case 115:_t(e,S,S,r&&ze(Ir(e,S,S,0,0,o,c,k,o,b=[],l,N),N),o,N,l,c,r?b:N);break;default:_t(v,S,S,S,[""],N,0,c,N)}}u=d=_=0,E=g=1,k=v="",l=s;break;case 58:l=1+X(v),_=y;default:if(E<1){if(m==123)--E;else if(m==125&&E++==0&&Ii()==125)continue}switch(v+=Qt(m),m*E){case 38:g=d>0?1:(v+="\f",-1);break;case 44:c[u++]=(X(v)-1)*g,g=1;break;case 64:pe()===45&&(v+=tn(Y())),h=pe(),d=l=X(k=v+=Pi(ft())),m++;break;case 45:y===45&&X(v)==2&&(E=0)}}return i}function Ir(e,t,n,r,o,i,s,c,a,u,d,l){for(var h=o-1,_=o===0?i:[""],y=kr(_),E=0,$=0,g=0;E<r;++E)for(var m=0,k=Ie(e,h+1,h=br($=s[E])),b=e;m<y;++m)(b=$r($>0?_[m]+" "+k:C(k,/&\f/g,_[m])))&&(a[g++]=b);return ut(e,t,n,o===0?at:c,a,u,d,l)}function Mi(e,t,n,r){return ut(e,t,n,wr,Qt(Ni()),Ie(e,2,-2),0,r)}function Tr(e,t,n,r,o){return ut(e,t,n,Kt,Ie(e,0,r),Ie(e,r+1,-1),r,o)}function xr(e,t,n){switch(ki(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 4789:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+We+e+T+e+e;case 5936:switch(R(e,t+11)){case 114:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return O+e+T+e+e;case 6165:return O+e+T+"flex-"+e+e;case 5187:return O+e+C(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+T+"flex-$1$2")+e;case 5443:return O+e+T+"flex-item-"+C(e,/flex-|-self/g,"")+(ne(e,/flex-|baseline/)?"":T+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return O+e+T+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return O+e+T+C(e,"shrink","negative")+e;case 5292:return O+e+T+C(e,"basis","preferred-size")+e;case 6060:return O+"box-"+C(e,"-grow","")+O+e+T+C(e,"grow","positive")+e;case 4554:return O+C(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4200:if(!ne(e,/flex-|baseline/))return T+"grid-column-align"+Ie(e,t)+e;break;case 2592:case 3360:return T+C(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ne(r.props,/grid-\w+-end/)})?~ct(e+(n=n[t].value),"span",0)?e:T+C(e,"-start","")+e+T+"grid-row-span:"+(~ct(n,"span",0)?ne(n,/\d+/):+ne(n,/\d+/)-+ne(e,/\d+/))+";":T+C(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ne(r.props,/grid-\w+-start/)})?e:T+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(X(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+We+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch",0)?xr(C(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,c,a,u){return T+o+":"+i+u+(s?T+o+"-span:"+(c?a:+a-+i)+u:"")+e});case 4949:if(R(e,t+6)===121)return C(e,":",":"+O)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(R(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+T+"$2box$3")+e;case 100:return C(e,":",":"+T)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function ht(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Hi(e,t,n,r){switch(e.type){case $i:if(e.children.length)break;case bi:case Kt:return e.return=e.return||e.value;case wr:return"";case Er:return e.return=e.value+"{"+ht(e.children,r)+"}";case at:if(!X(e.value=e.props.join(",")))return""}return X(n=ht(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ui(e){var t=kr(e);return function(n,r,o,i){for(var s="",c=0;c<t;c++)s+=e[c](n,r,o,i)||"";return s}}function Fi(e){return function(t){t.root||(t=t.return)&&e(t)}}function Bi(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Kt:e.return=xr(e.value,e.length,n);return;case Er:return ht([ce(e,{value:C(e.value,"@","@"+O)})],r);case at:if(e.length)return Oi(n=e.props,function(o){switch(ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ae(ce(e,{props:[C(o,/:(read-\w+)/,":"+We+"$1")]})),Ae(ce(e,{props:[o]})),Jt(e,{props:Or(n,r)});break;case"::placeholder":Ae(ce(e,{props:[C(o,/:(plac\w+)/,":"+O+"input-$1")]})),Ae(ce(e,{props:[C(o,/:(plac\w+)/,":"+We+"$1")]})),Ae(ce(e,{props:[C(o,/:(plac\w+)/,T+"input-$1")]})),Ae(ce(e,{props:[o]})),Jt(e,{props:Or(n,r)});break}return""})}}var Wi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w={},me=typeof process<"u"&&w!==void 0&&(w.REACT_APP_SC_ATTR||w.SC_ATTR)||"data-styled",Ar="active",Rr="data-styled-version",pt="6.1.18",rn=`/*!sc*/
|
|
2
|
-
`,mt=typeof window<"u"&&typeof document<"u",
|
|
1
|
+
(function(H){typeof define=="function"&&define.amd?define(H):H()})(function(){"use strict";var Ka=Object.defineProperty;var Qa=(H,p,fe)=>p in H?Ka(H,p,{enumerable:!0,configurable:!0,writable:!0,value:fe}):H[p]=fe;var It=(H,p,fe)=>Qa(H,typeof p!="symbol"?p+"":p,fe);var H,p,fe,de,On,Nn,In,Tn,Tt,xt,At,xn,De={},An=[],ko=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=Array.isArray;function q(e,t){for(var n in t)e[n]=t[n];return e}function Rt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function D(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?H.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]==null&&(s[i]=e.defaultProps[i]);return He(e,s,r,o,null)}function He(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++fe,__i:-1,__u:0};return o==null&&p.vnode!=null&&p.vnode(i),i}function Oo(){return{current:null}}function B(e){return e.children}function V(e,t){this.props=e,this.context=t}function be(e,t){if(t==null)return e.__?be(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"?be(e):null}function Rn(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 Rn(e)}}function Lt(e){(!e.__d&&(e.__d=!0)&&de.push(e)&&!Je.__r++||On!=p.debounceRendering)&&((On=p.debounceRendering)||Nn)(Je)}function Je(){for(var e,t,n,r,o,i,s,c=1;de.length;)de.length>c&&de.sort(In),e=de.shift(),c=de.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=q({},r)).__v=r.__v+1,p.vnode&&p.vnode(n),Pt(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??be(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Hn(i,n,s),n.__e!=o&&Rn(n)));Je.__r=0}function Ln(e,t,n,r,o,i,s,c,a,u,d){var l,_,h,y,E,$,g=r&&r.__k||An,m=t.length;for(a=No(n,t,g,a,m),l=0;l<m;l++)(h=n.__k[l])!=null&&(_=h.__i==-1?De:g[h.__i]||De,h.__i=l,$=Pt(e,h,_,o,i,s,c,a,u,d),y=h.__e,h.ref&&_.ref!=h.ref&&(_.ref&&Dt(_.ref,null,h),d.push(h.ref,h.__c||y,h)),E==null&&y!=null&&(E=y),4&h.__u||_.__k===h.__k?a=Pn(h,a,e):typeof h.type=="function"&&$!==void 0?a=$:y&&(a=y.nextSibling),h.__u&=-7);return n.__e=E,a}function No(e,t,n,r,o){var i,s,c,a,u,d=n.length,l=d,_=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(a=i+_,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?He(null,s,null,null,null):Me(s)?He(B,{children:s},null,null,null):s.constructor==null&&s.__b>0?He(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,c=null,(u=s.__i=Io(s,n,a,l))!=-1&&(l--,(c=n[u])&&(c.__u|=2)),c==null||c.__v==null?(u==-1&&(o>d?_--:o<d&&_++),typeof s.type!="function"&&(s.__u|=4)):u!=a&&(u==a-1?_--:u==a+1?_++:(u>a?_--:_++,s.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<d;i++)(c=n[i])!=null&&(2&c.__u)==0&&(c.__e==r&&(r=be(c)),Fn(c,c));return r}function Pn(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Pn(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=be(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"||(Me(e)?e.some(function(n){Q(n,t)}):t.push(e)),t}function Io(e,t,n,r){var o,i,s=e.key,c=e.type,a=t[n];if(a===null&&e.key==null||a&&s==a.key&&c==a.type&&(2&a.__u)==0)return n;if(r>(a!=null&&(2&a.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((a=t[o])&&(2&a.__u)==0&&s==a.key&&c==a.type)return o;o--}if(i<t.length){if((a=t[i])&&(2&a.__u)==0&&s==a.key&&c==a.type)return i;i++}}return-1}function Dn(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||ko.test(t)?n:n+"px"}function et(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||Dn(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Dn(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?At:xt,i)):e.removeEventListener(t,i?At:xt,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 Mn(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(p.event?p.event(t):t)}}}function Pt(e,t,n,r,o,i,s,c,a,u){var d,l,_,h,y,E,$,g,m,k,b,N,S,v,F,z,Ze,j=t.type;if(t.constructor!=null)return null;128&n.__u&&(a=!!(32&n.__u),i=[c=t.__e=n.__e]),(d=p.__b)&&d(t);e:if(typeof j=="function")try{if(g=t.props,m="prototype"in j&&j.prototype.render,k=(d=j.contextType)&&r[d.__c],b=d?k?k.props.value:d.__:r,n.__c?$=(l=t.__c=n.__c).__=l.__E:(m?t.__c=l=new j(g,b):(t.__c=l=new V(g,b),l.constructor=j,l.render=xo),k&&k.sub(l),l.props=g,l.state||(l.state={}),l.context=b,l.__n=r,_=l.__d=!0,l.__h=[],l._sb=[]),m&&l.__s==null&&(l.__s=l.state),m&&j.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=q({},l.__s)),q(l.__s,j.getDerivedStateFromProps(g,l.__s))),h=l.props,y=l.state,l.__v=t,_)m&&j.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),m&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(m&&j.getDerivedStateFromProps==null&&g!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,b),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,b)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(we){we&&(we.__=t)}),N=0;N<l._sb.length;N++)l.__h.push(l._sb[N]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,b),m&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,y,E)})}if(l.context=b,l.props=g,l.__P=e,l.__e=!1,S=p.__r,v=0,m){for(l.state=l.__s,l.__d=!1,S&&S(t),d=l.render(l.props,l.state,l.context),F=0;F<l._sb.length;F++)l.__h.push(l._sb[F]);l._sb=[]}else do l.__d=!1,S&&S(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++v<25);l.state=l.__s,l.getChildContext!=null&&(r=q(q({},r),l.getChildContext())),m&&!_&&l.getSnapshotBeforeUpdate!=null&&(E=l.getSnapshotBeforeUpdate(h,y)),z=d,d!=null&&d.type===B&&d.key==null&&(z=Un(d.props.children)),c=Ln(e,Me(z)?z:[z],t,n,r,o,i,s,c,a,u),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),$&&(l.__E=l.__=null)}catch(we){if(t.__v=null,a||i!=null)if(we.then){for(t.__u|=a?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else for(Ze=i.length;Ze--;)Rt(i[Ze]);else t.__e=n.__e,t.__k=n.__k;p.__e(we,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=To(n.__e,t,n,r,o,i,s,a,u);return(d=p.diffed)&&d(t),128&t.__u?void 0:c}function Hn(e,t,n){for(var r=0;r<n.length;r++)Dt(n[r],n[++r],n[++r]);p.__c&&p.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){p.__e(i,o.__v)}})}function Un(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Me(e)?e.map(Un):q({},e)}function To(e,t,n,r,o,i,s,c,a){var u,d,l,_,h,y,E,$=n.props,g=t.props,m=t.type;if(m=="svg"?o="http://www.w3.org/2000/svg":m=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!m&&(m?h.localName==m:h.nodeType==3)){e=h,i[u]=null;break}}if(e==null){if(m==null)return document.createTextNode(g);e=document.createElementNS(o,m,g.is&&g),c&&(p.__m&&p.__m(t,i),c=!1),i=null}if(m==null)$===g||c&&e.data==g||(e.data=g);else{if(i=i&&H.call(e.childNodes),$=n.props||De,!c&&i!=null)for($={},u=0;u<e.attributes.length;u++)$[(h=e.attributes[u]).name]=h.value;for(u in $)if(h=$[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=h;else if(!(u in g)){if(u=="value"&&"defaultValue"in g||u=="checked"&&"defaultChecked"in g)continue;et(e,u,null,h,o)}}for(u in g)h=g[u],u=="children"?_=h:u=="dangerouslySetInnerHTML"?d=h:u=="value"?y=h:u=="checked"?E=h:c&&typeof h!="function"||$[u]===h||et(e,u,h,$[u],o);if(d)c||l&&(d.__html==l.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),Ln(t.type=="template"?e.content:e,Me(_)?_:[_],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&be(n,0),c,a),i!=null)for(u=i.length;u--;)Rt(i[u]);c||(u="value",m=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[u]||m=="progress"&&!y||m=="option"&&y!=$[u])&&et(e,u,y,$[u],o),u="checked",E!=null&&E!=e[u]&&et(e,u,E,$[u],o))}return e}function Dt(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){p.__e(o,n)}}function Fn(e,t,n){var r,o;if(p.unmount&&p.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Dt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){p.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Fn(r[o],t,n||typeof e.type!="function");n||Rt(e.__e),e.__c=e.__=e.__e=void 0}function xo(e,t,n){return this.constructor(e,n)}function se(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),p.__&&p.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Pt(t,e=(!r&&n||t).__k=D(B,null,[e]),o||De,De,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?H.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Hn(i,e,s)}function Mt(e,t){se(e,t,Mt)}function Ht(e,t,n){var r,o,i,s,c=q({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:c[i]=t[i]==null&&s!=null?s[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?H.call(arguments,2):n),He(e.type,c,r||e.key,o||e.ref,null)}function Bn(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(s){s.__e=!0,Lt(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+xn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}H=An.slice,p={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(c){e=c}throw e}},fe=0,V.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),Lt(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Lt(this))},V.prototype.render=B,de=[],Nn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,In=function(e,t){return e.__v.__b-t.__v.__b},Je.__r=0,Tn=/(PointerCapture)$|Capture$/i,Tt=0,xt=Mn(!1),At=Mn(!0),xn=0;function Ut(){return(Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ao=["context","children"];function Ro(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,c={},a=Object.keys(r);for(s=0;s<a.length;s++)o.indexOf(i=a[s])>=0||(c[i]=r[i]);return c}(e,Ao);return Ht(t,n)}function Lo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=D(Ro,Ut({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,c=n.attributes,a=n.childNodes;for(s=c.length;s--;)c[s].name!=="slot"&&(i[c[s].name]=c[s].value,i[Wn(c[s].name)]=c[s].value);for(s=a.length;s--;){var u=t(a[s],null),d=a[s].slot;d?i[d]=D(zn,{name:d},u):o[s]=u}var l=r?D(zn,null,o):o;return D(r||n.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Mt:se)(this._vdom,this._root)}function Wn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Po(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Wn(e)]=n,this._vdom=Ht(this._vdom,r),se(this._vdom,this._root)}}function Do(){se(this._vdom=null,this._root)}function zn(e,t){var n=this;return D("slot",Ut({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Mo(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=Lo,o.prototype.attributeChangedCallback=Po,o.prototype.disconnectedCallback=Do,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(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var c=typeof s;s!=null&&c!=="string"&&c!=="boolean"&&c!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}var Ho=0;function f(e,t,n,r,o,i){t||(t={});var s,c,a=t;if("ref"in a)for(c in a={},t)c=="ref"?s=t[c]:a[c]=t[c];var u={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ho,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(c in s)a[c]===void 0&&(a[c]=s[c]);return p.vnode&&p.vnode(u),u}const jn={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var Ue=(e=>(e.CAMERA_PROPS_CHANGED="face-auto-capture:camera-props-changed",e.CONTROL="face-auto-capture:control",e.DETECTED_FACE_CHANGED="face-auto-capture:detected-face-changed",e.FACE_DETECTION="face-auto-capture:face-detection",e.INSTRUCTION_CHANGED="face-auto-capture:instruction-changed",e.STATE_CHANGED="face-auto-capture:state-changed",e.VIDEO_ELEMENT_SIZE="face-auto-capture:video-element-size",e))(Ue||{}),Ft=(e=>(e.CONTROL="smile-auto-capture:control",e.INSTRUCTION_ESCALATED="smile:instruction-escalated",e.STATUS_CHANGED="smile-auto-capture:status-changed",e))(Ft||{});const Bt={...{LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING",COMPLETE:"COMPLETE"},DONE:"DONE"},Gn={EYE_NOT_PRESENT:"eye_not_present"},L={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"},J={...L,SMILE:"smile",SMILE_CANDIDATE_SELECTION:"smile_candidate_selection",KEEP_NEUTRAL_EXPRESSION:"keep_neutral_expression"},tt={NEUTRAL:"NEUTRAL",SMILE:"SMILE"},$e=Bt;var ae,I,Wt,Vn,ke=0,Yn=[],x=p,qn=x.__b,Zn=x.__r,Xn=x.diffed,Kn=x.__c,Qn=x.unmount,Jn=x.__;function Oe(e,t){x.__h&&x.__h(I,e,ke||t),ke=0;var n=I.__H||(I.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function M(e){return ke=1,zt(rr,e)}function zt(e,t,n){var r=Oe(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):rr(void 0,t),function(c){var a=r.__N?r.__N[0]:r.__[0],u=r.t(a,c);a!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=I,!I.__f)){var o=function(c,a,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(_){return!!_.__c});if(d.every(function(_){return!_.__N}))return!i||i.call(this,c,a,u);var l=r.__c.props!==c;return d.forEach(function(_){if(_.__N){var h=_.__[0];_.__=_.__N,_.__N=void 0,h!==_.__[0]&&(l=!0)}}),i&&i.call(this,c,a,u)||l};I.__f=!0;var i=I.shouldComponentUpdate,s=I.componentWillUpdate;I.componentWillUpdate=function(c,a,u){if(this.__e){var d=i;i=void 0,o(c,a,u),i=d}s&&s.call(this,c,a,u)},I.shouldComponentUpdate=o}return r.__N||r.__}function Z(e,t){var n=Oe(ae++,3);!x.__s&&Gt(n.__H,t)&&(n.__=e,n.u=t,I.__H.__h.push(n))}function Ne(e,t){var n=Oe(ae++,4);!x.__s&&Gt(n.__H,t)&&(n.__=e,n.u=t,I.__h.push(n))}function nt(e){return ke=5,ee(function(){return{current:e}},[])}function er(e,t,n){ke=6,Ne(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=Oe(ae++,7);return Gt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function he(e,t){return ke=8,ee(function(){return e},t)}function Fe(e){var t=I.context[e.__c],n=Oe(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(I)),t.props.value):e.__}function rt(e,t){x.useDebugValue&&x.useDebugValue(t?t(e):e)}function tr(){var e=Oe(ae++,11);if(!e.__){for(var t=I.__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 Uo(){for(var e;e=Yn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ot),e.__H.__h.forEach(jt),e.__H.__h=[]}catch(t){e.__H.__h=[],x.__e(t,e.__v)}}x.__b=function(e){I=null,qn&&qn(e)},x.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Jn&&Jn(e,t)},x.__r=function(e){Zn&&Zn(e),ae=0;var t=(I=e.__c).__H;t&&(Wt===I?(t.__h=[],I.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(ot),t.__h.forEach(jt),t.__h=[],ae=0)),Wt=I},x.diffed=function(e){Xn&&Xn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Yn.push(t)!==1&&Vn===x.requestAnimationFrame||((Vn=x.requestAnimationFrame)||Fo)(Uo)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Wt=I=null},x.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ot),n.__h=n.__h.filter(function(r){return!r.__||jt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],x.__e(r,n.__v)}}),Kn&&Kn(e,t)},x.unmount=function(e){Qn&&Qn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ot(r)}catch(o){t=o}}),n.__H=void 0,t&&x.__e(t,n.__v))};var nr=typeof requestAnimationFrame=="function";function Fo(e){var t,n=function(){clearTimeout(r),nr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);nr&&(t=requestAnimationFrame(n))}function ot(e){var t=I,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),I=t}function jt(e){var t=I;e.__c=e.__(),I=t}function Gt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function rr(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 _e(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 Bo(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Wo=/^((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)-.*))$/,zo=Bo(function(e){return Wo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function or(e,t){for(var n in t)e[n]=t[n];return e}function Vt(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 ir(e,t){var n=t(),r=M({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Ne(function(){o.__=n,o.u=t,Yt(o)&&i({t:o})},[e,n,t]),Z(function(){return Yt(o)&&i({t:o}),e(function(){Yt(o)&&i({t:o})})},[e]),n}function Yt(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 sr(e){e()}function ar(e){return e}function cr(){return[!1,sr]}var lr=Ne;function qt(e,t){this.props=e,this.context=t}function jo(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Vt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,D(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qt.prototype=new V).isPureReactComponent=!0,qt.prototype.shouldComponentUpdate=function(e,t){return Vt(this.props,e)||Vt(this.state,t)};var ur=p.__b;p.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ur&&ur(e)};var Go=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Vo(e){function t(n){var r=or({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Go,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var fr=function(e,t){return e==null?null:Q(Q(e).map(t))},Yo={map:fr,forEach:fr,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},qo=p.__e;p.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}qo(e,t,n,r)};var dr=p.unmount;function hr(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=or({},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 hr(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 it(){this.__u=0,this.o=null,this.__b=null}function pr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Zo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return D(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Be(){this.i=null,this.l=null}p.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),dr&&dr(e)},(it.prototype=new V).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=pr(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=s;var c=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=_r(a,a.__c.__P,a.__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(s,s)},it.prototype.componentWillUnmount=function(){this.o=[]},it.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=hr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&D(B,null,e.fallback);return o&&(o.__u&=-33),[D(B,null,t.__a?null:e.children),o]};var mr=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 Xo(e){return this.getChildContext=function(){return e.context},e.children}function Ko(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){se(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)}}}se(D(Xo,{context:t.context},e.__v),t.v)}function Qo(e,t){var n=D(Ko,{__v:e,h:t});return n.containerInfo=t,n}(Be.prototype=new V).__a=function(e){var t=this,n=pr(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),mr(t,e,r)):o()};n?n(i):i()}},Be.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},Be.prototype.componentDidUpdate=Be.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){mr(e,n,t)})};var gr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Jo=/^(?: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]/,ei=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ti=/[A-Z0-9]/g,ni=typeof document<"u",ri=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function oi(e,t,n){return t.__k==null&&(t.textContent=""),se(e,t),typeof n=="function"&&n(),e?e.__c:null}function ii(e,t,n){return Mt(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 yr=p.event;function si(){}function ai(){return this.cancelBubble}function ci(){return this.defaultPrevented}p.event=function(e){return yr&&(e=yr(e)),e.persist=si,e.isPropagationStopped=ai,e.isDefaultPrevented=ci,e.nativeEvent=e};var Zt,li={enumerable:!1,configurable:!0,get:function(){return this.class}},vr=p.vnode;p.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var c=n[s];if(!(s==="value"&&"defaultValue"in n&&c==null||ni&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&c===!0?c="":a==="translate"&&c==="no"?c=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||ri(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":ei.test(s)&&(s=a):a=s="oninput":i&&Jo.test(s)?s=s.replace(ti,"-$&").toLowerCase():c===null&&(c=void 0),a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=c}}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",li)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=gr,vr&&vr(e)};var Cr=p.__r;p.__r=function(e){Cr&&Cr(e),Zt=e.__c};var Sr=p.diffed;p.diffed=function(e){Sr&&Sr(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),Zt=null};var ui={ReactCurrentDispatcher:{current:{readContext:function(e){return Zt.__n[e.__c].props.value},useCallback:he,useContext:Fe,useDebugValue:rt,useDeferredValue:ar,useEffect:Z,useId:tr,useImperativeHandle:er,useInsertionEffect:lr,useLayoutEffect:Ne,useMemo:ee,useReducer:zt,useRef:nt,useState:M,useSyncExternalStore:ir,useTransition:cr}}};function fi(e){return D.bind(null,e)}function st(e){return!!e&&e.$$typeof===gr}function di(e){return st(e)&&e.type===B}function hi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function _i(e){return st(e)?Ht.apply(null,arguments):e}function pi(e){return!!e.__k&&(se(null,e),!0)}function mi(e){return e&&(e.base||e.nodeType===1&&e)||null}var gi=function(e,t){return e(t)},yi=function(e,t){return e(t)},vi=B,Ci=st,te={useState:M,useId:tr,useReducer:zt,useEffect:Z,useLayoutEffect:Ne,useInsertionEffect:lr,useTransition:cr,useDeferredValue:ar,useSyncExternalStore:ir,startTransition:sr,useRef:nt,useImperativeHandle:er,useMemo:ee,useCallback:he,useContext:Fe,useDebugValue:rt,version:"18.3.1",Children:Yo,render:oi,hydrate:ii,unmountComponentAtNode:pi,createPortal:Qo,createElement:D,createContext:Bn,createFactory:fi,cloneElement:_i,createRef:Oo,Fragment:B,isValidElement:st,isElement:Ci,isFragment:di,isMemo:hi,findDOMNode:mi,Component:V,PureComponent:qt,memo:jo,forwardRef:Vo,flushSync:yi,unstable_batchedUpdates:gi,StrictMode:vi,Suspense:it,SuspenseList:Be,lazy:Zo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ui};function Si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt,wr;function wi(){return wr||(wr=1,Xt=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 s=Object.keys(t),c=Object.keys(n);if(s.length!==c.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(n),u=0;u<s.length;u++){var d=s[u];if(!a(d))return!1;var l=t[d],_=n[d];if(i=r?r.call(o,l,_,d):void 0,i===!1||i===void 0&&l!==_)return!1}return!0}),Xt}var Ei=wi();const bi=Si(Ei);var T="-ms-",We="-moz-",O="-webkit-",Er="comm",at="rule",Kt="decl",$i="@import",br="@keyframes",ki="@layer",$r=Math.abs,Qt=String.fromCharCode,Jt=Object.assign;function Oi(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function kr(e){return e.trim()}function ne(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function ct(e,t,n){return e.indexOf(t,n)}function R(e,t){return e.charCodeAt(t)|0}function Ie(e,t,n){return e.slice(t,n)}function X(e){return e.length}function Or(e){return e.length}function ze(e,t){return t.push(e),e}function Ni(e,t){return e.map(t).join("")}function Nr(e,t){return e.filter(function(n){return!ne(n,t)})}var lt=1,Te=1,Ir=0,W=0,A=0,xe="";function ut(e,t,n,r,o,i,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:lt,column:Te,length:s,return:"",siblings:c}}function ce(e,t){return Jt(ut("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ae(e){for(;e.root;)e=ce(e.root,{children:[e]});ze(e,e.siblings)}function Ii(){return A}function Ti(){return A=W>0?R(xe,--W):0,Te--,A===10&&(Te=1,lt--),A}function Y(){return A=W<Ir?R(xe,W++):0,Te++,A===10&&(Te=1,lt++),A}function pe(){return R(xe,W)}function ft(){return W}function dt(e,t){return Ie(xe,e,t)}function en(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 xi(e){return lt=Te=1,Ir=X(xe=e),W=0,[]}function Ai(e){return xe="",e}function tn(e){return kr(dt(W-1,nn(e===91?e+2:e===40?e+1:e)))}function Ri(e){for(;(A=pe())&&A<33;)Y();return en(e)>2||en(A)>3?"":" "}function Li(e,t){for(;--t&&Y()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return dt(e,ft()+(t<6&&pe()==32&&Y()==32))}function nn(e){for(;Y();)switch(A){case e:return W;case 34:case 39:e!==34&&e!==39&&nn(A);break;case 40:e===41&&nn(e);break;case 92:Y();break}return W}function Pi(e,t){for(;Y()&&e+A!==57;)if(e+A===84&&pe()===47)break;return"/*"+dt(t,W-1)+"*"+Qt(e===47?e:Y())}function Di(e){for(;!en(pe());)Y();return dt(e,W)}function Mi(e){return Ai(ht("",null,null,null,[""],e=xi(e),0,[0],e))}function ht(e,t,n,r,o,i,s,c,a){for(var u=0,d=0,l=s,_=0,h=0,y=0,E=1,$=1,g=1,m=0,k="",b=o,N=i,S=r,v=k;$;)switch(y=m,m=Y()){case 40:if(y!=108&&R(v,l-1)==58){ct(v+=C(tn(m),"&","&\f"),"&\f",$r(u?c[u-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:v+=tn(m);break;case 9:case 10:case 13:case 32:v+=Ri(y);break;case 92:v+=Li(ft()-1,7);continue;case 47:switch(pe()){case 42:case 47:ze(Hi(Pi(Y(),ft()),t,n,a),a);break;default:v+="/"}break;case 123*E:c[u++]=X(v)*g;case 125*E:case 59:case 0:switch(m){case 0:case 125:$=0;case 59+d:g==-1&&(v=C(v,/\f/g,"")),h>0&&X(v)-l&&ze(h>32?xr(v+";",r,n,l-1,a):xr(C(v," ","")+";",r,n,l-2,a),a);break;case 59:v+=";";default:if(ze(S=Tr(v,t,n,u,d,o,c,k,b=[],N=[],l,i),i),m===123)if(d===0)ht(v,t,S,S,b,i,l,c,N);else switch(_===99&&R(v,3)===110?100:_){case 100:case 108:case 109:case 115:ht(e,S,S,r&&ze(Tr(e,S,S,0,0,o,c,k,o,b=[],l,N),N),o,N,l,c,r?b:N);break;default:ht(v,S,S,S,[""],N,0,c,N)}}u=d=h=0,E=g=1,k=v="",l=s;break;case 58:l=1+X(v),h=y;default:if(E<1){if(m==123)--E;else if(m==125&&E++==0&&Ti()==125)continue}switch(v+=Qt(m),m*E){case 38:g=d>0?1:(v+="\f",-1);break;case 44:c[u++]=(X(v)-1)*g,g=1;break;case 64:pe()===45&&(v+=tn(Y())),_=pe(),d=l=X(k=v+=Di(ft())),m++;break;case 45:y===45&&X(v)==2&&(E=0)}}return i}function Tr(e,t,n,r,o,i,s,c,a,u,d,l){for(var _=o-1,h=o===0?i:[""],y=Or(h),E=0,$=0,g=0;E<r;++E)for(var m=0,k=Ie(e,_+1,_=$r($=s[E])),b=e;m<y;++m)(b=kr($>0?h[m]+" "+k:C(k,/&\f/g,h[m])))&&(a[g++]=b);return ut(e,t,n,o===0?at:c,a,u,d,l)}function Hi(e,t,n,r){return ut(e,t,n,Er,Qt(Ii()),Ie(e,2,-2),0,r)}function xr(e,t,n,r,o){return ut(e,t,n,Kt,Ie(e,0,r),Ie(e,r+1,-1),r,o)}function Ar(e,t,n){switch(Oi(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 4789:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+We+e+T+e+e;case 5936:switch(R(e,t+11)){case 114:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return O+e+T+e+e;case 6165:return O+e+T+"flex-"+e+e;case 5187:return O+e+C(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+T+"flex-$1$2")+e;case 5443:return O+e+T+"flex-item-"+C(e,/flex-|-self/g,"")+(ne(e,/flex-|baseline/)?"":T+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return O+e+T+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return O+e+T+C(e,"shrink","negative")+e;case 5292:return O+e+T+C(e,"basis","preferred-size")+e;case 6060:return O+"box-"+C(e,"-grow","")+O+e+T+C(e,"grow","positive")+e;case 4554:return O+C(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4200:if(!ne(e,/flex-|baseline/))return T+"grid-column-align"+Ie(e,t)+e;break;case 2592:case 3360:return T+C(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ne(r.props,/grid-\w+-end/)})?~ct(e+(n=n[t].value),"span",0)?e:T+C(e,"-start","")+e+T+"grid-row-span:"+(~ct(n,"span",0)?ne(n,/\d+/):+ne(n,/\d+/)-+ne(e,/\d+/))+";":T+C(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ne(r.props,/grid-\w+-start/)})?e:T+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(X(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+We+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch",0)?Ar(C(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,c,a,u){return T+o+":"+i+u+(s?T+o+"-span:"+(c?a:+a-+i)+u:"")+e});case 4949:if(R(e,t+6)===121)return C(e,":",":"+O)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(R(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+T+"$2box$3")+e;case 100:return C(e,":",":"+T)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function _t(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ui(e,t,n,r){switch(e.type){case ki:if(e.children.length)break;case $i:case Kt:return e.return=e.return||e.value;case Er:return"";case br:return e.return=e.value+"{"+_t(e.children,r)+"}";case at:if(!X(e.value=e.props.join(",")))return""}return X(n=_t(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fi(e){var t=Or(e);return function(n,r,o,i){for(var s="",c=0;c<t;c++)s+=e[c](n,r,o,i)||"";return s}}function Bi(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wi(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Kt:e.return=Ar(e.value,e.length,n);return;case br:return _t([ce(e,{value:C(e.value,"@","@"+O)})],r);case at:if(e.length)return Ni(n=e.props,function(o){switch(ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ae(ce(e,{props:[C(o,/:(read-\w+)/,":"+We+"$1")]})),Ae(ce(e,{props:[o]})),Jt(e,{props:Nr(n,r)});break;case"::placeholder":Ae(ce(e,{props:[C(o,/:(plac\w+)/,":"+O+"input-$1")]})),Ae(ce(e,{props:[C(o,/:(plac\w+)/,":"+We+"$1")]})),Ae(ce(e,{props:[C(o,/:(plac\w+)/,T+"input-$1")]})),Ae(ce(e,{props:[o]})),Jt(e,{props:Nr(n,r)});break}return""})}}var zi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w={},me=typeof process<"u"&&w!==void 0&&(w.REACT_APP_SC_ATTR||w.SC_ATTR)||"data-styled",Rr="active",Lr="data-styled-version",pt="6.1.18",rn=`/*!sc*/
|
|
2
|
+
`,mt=typeof window<"u"&&typeof document<"u",ji=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&w!==void 0&&w.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&w.REACT_APP_SC_DISABLE_SPEEDY!==""?w.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&w.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&w!==void 0&&w.SC_DISABLE_SPEEDY!==void 0&&w.SC_DISABLE_SPEEDY!==""?w.SC_DISABLE_SPEEDY!=="false"&&w.SC_DISABLE_SPEEDY:w.NODE_ENV!=="production"),Pr=/invalid hook call/i,gt=new Set,Gi=function(e,t){if(w.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
3
|
`)+`You may see this warning because you've called styled inside another component.
|
|
4
4
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5
5
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
6
|
-
`,o=console.error;try{var i=!0;console.error=function(s){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];
|
|
6
|
+
`,o=console.error;try{var i=!0;console.error=function(s){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];Pr.test(s)?(i=!1,gt.delete(r)):o.apply(void 0,_e([s],c,!1))},nt(),i&&!gt.has(r)&&(console.warn(r),gt.add(r))}catch(s){Pr.test(s.message)&>.delete(r)}finally{console.error=o}}},yt=Object.freeze([]),Re=Object.freeze({});function Vi(e,t,n){return n===void 0&&(n=Re),e.theme!==n.theme&&e.theme||t||n.theme}var on=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"]),Yi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,qi=/(^-|-$)/g;function Dr(e){return e.replace(Yi,"-").replace(qi,"")}var Zi=/(a)(d)/gi,vt=52,Mr=function(e){return String.fromCharCode(e+(e>25?39:97))};function sn(e){var t,n="";for(t=Math.abs(e);t>vt;t=t/vt|0)n=Mr(t%vt)+n;return(Mr(t%vt)+n).replace(Zi,"$1-$2")}var an,Hr=5381,ge=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ur=function(e){return ge(Hr,e)};function Fr(e){return sn(Ur(e)>>>0)}function Br(e){return w.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function cn(e){return typeof e=="string"&&(w.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Wr=typeof Symbol=="function"&&Symbol.for,zr=Wr?Symbol.for("react.memo"):60115,Xi=Wr?Symbol.for("react.forward_ref"):60112,Ki={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ji=((an={})[Xi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},an[zr]=jr,an);function Gr(e){return("type"in(t=e)&&t.type.$$typeof)===zr?jr:"$$typeof"in e?Ji[e.$$typeof]:Ki;var t}var es=Object.defineProperty,ts=Object.getOwnPropertyNames,Vr=Object.getOwnPropertySymbols,ns=Object.getOwnPropertyDescriptor,rs=Object.getPrototypeOf,Yr=Object.prototype;function qr(e,t,n){if(typeof t!="string"){if(Yr){var r=rs(t);r&&r!==Yr&&qr(e,r,n)}var o=ts(t);Vr&&(o=o.concat(Vr(t)));for(var i=Gr(e),s=Gr(t),c=0;c<o.length;++c){var a=o[c];if(!(a in Qi||n&&n[a]||s&&a in s||i&&a in i)){var u=ns(t,a);try{es(e,a,u)}catch{}}}}return e}function ye(e){return typeof e=="function"}function ln(e){return typeof e=="object"&&"styledComponentId"in e}function ve(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function un(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Le(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function fn(e,t,n){if(n===void 0&&(n=!1),!n&&!Le(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=fn(e[r],t[r]);else if(Le(t))for(var r in t)e[r]=fn(e[r],t[r]);return e}function dn(e,t){Object.defineProperty(e,"toString",{value:t})}var os=w.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
7
7
|
|
|
8
8
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
9
9
|
|
|
@@ -44,7 +44,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
44
44
|
|
|
45
45
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
46
46
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
47
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function os(){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(s){n=n.replace(/%[a-z]/,s)}),n}function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return w.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(os.apply(void 0,he([rs[e]],t,!1)).trim())}var is=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 s=o;s<i;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(t+1),a=(s=0,n.length);s<a;s++)this.tag.insertRule(c,n[s])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(rn);return n},e}(),ss=1<<30,Ct=new Map,St=new Map,wt=1,Et=function(e){if(Ct.has(e))return Ct.get(e);for(;St.has(wt);)wt++;var t=wt++;if(w.NODE_ENV!=="production"&&((0|t)<0||t>ss))throw K(16,"".concat(t));return Ct.set(e,t),St.set(t,e),t},as=function(e,t){wt=t+1,Ct.set(e,t),St.set(t,e)},cs="style[".concat(me,"][").concat(Rr,'="').concat(pt,'"]'),ls=new RegExp("^".concat(me,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),us=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},fs=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(rn),o=[],i=0,s=r.length;i<s;i++){var c=r[i].trim();if(c){var a=c.match(ls);if(a){var u=0|parseInt(a[1],10),d=a[2];u!==0&&(as(d,u),us(e,d,a[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},qr=function(e){for(var t=document.querySelectorAll(cs),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(me)!==Ar&&(fs(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ds(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Zr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(c){var a=Array.from(c.querySelectorAll("style[".concat(me,"]")));return a[a.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(me,Ar),r.setAttribute(Rr,pt);var s=ds();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},_s=function(){function e(t){this.element=Zr(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 s=r[o];if(s.ownerNode===n)return s}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}(),hs=function(){function e(t){this.element=Zr(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}(),ps=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=mt,ms={isServer:!mt,useCSSOMInjection:!zi},Kr=function(){function e(t,n,r){t===void 0&&(t=Re),n===void 0&&(n={});var o=this;this.options=P(P({},ms),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&mt&&Xr&&(Xr=!1,qr(this)),dn(this,function(){return function(i){for(var s=i.getTag(),c=s.length,a="",u=function(l){var h=function(g){return St.get(g)}(l);if(h===void 0)return"continue";var _=i.names.get(h),y=s.getGroup(l);if(_===void 0||!_.size||y.length===0)return"continue";var E="".concat(me,".g").concat(l,'[id="').concat(h,'"]'),$="";_!==void 0&&_.forEach(function(g){g.length>0&&($+="".concat(g,","))}),a+="".concat(y).concat(E,'{content:"').concat($,'"}').concat(rn)},d=0;d<c;d++)u(d);return a}(o)})}return e.registerId=function(t){return Et(t)},e.prototype.rehydrate=function(){!this.server&&mt&&qr(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 ps(o):r?new _s(o):new hs(o)}(this.options),new is(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}(),gs=/&/g,ys=/^\s*\/\/.*$/gm;function Qr(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=Qr(n.children,t)),n})}function Jr(e){var t,n,r,o=e===void 0?Re:e,i=o.options,s=i===void 0?Re:i,c=o.plugins,a=c===void 0?yt:c,u=function(h,_,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):h},d=a.slice();d.push(function(h){h.type===at&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(gs,n).replace(r,u))}),s.prefix&&d.push(Bi),d.push(Hi);var l=function(h,_,y,E){_===void 0&&(_=""),y===void 0&&(y=""),E===void 0&&(E="&"),t=E,n=_,r=new RegExp("\\".concat(n,"\\b"),"g");var $=h.replace(ys,""),g=Di(y||_?"".concat(y," ").concat(_," { ").concat($," }"):$);s.namespace&&(g=Qr(g,s.namespace));var m=[];return ht(g,Ui(d.concat(Fi(function(k){return m.push(k)})))),m};return l.hash=a.length?a.reduce(function(h,_){return _.name||K(15),ge(h,_.name)},Mr).toString():"",l}var vs=new Kr,_n=Jr(),hn=te.createContext({shouldForwardProp:void 0,styleSheet:vs,stylis:_n});hn.Consumer;var Cs=te.createContext(void 0);function pn(){return Fe(hn)}function Ss(e){var t=M(e.stylisPlugins),n=t[0],r=t[1],o=pn().styleSheet,i=ee(function(){var a=o;return e.sheet?a=e.sheet:e.target&&(a=a.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(a=a.reconstructWithOptions({useCSSOMInjection:!1})),a},[e.disableCSSOMInjection,e.sheet,e.target,o]),s=ee(function(){return Jr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);Z(function(){Ei(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var c=ee(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:s}},[e.shouldForwardProp,i,s]);return te.createElement(hn.Provider,{value:c},te.createElement(Cs.Provider,{value:s},e.children))}var mn=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=_n);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,dn(this,function(){throw K(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=_n),this.name+t.hash},e}(),ws=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;ws(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||ye(i)?r.push("".concat(eo(o),":"),i,";"):Le(i)?r.push.apply(r,he(he(["".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 Wi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ce(e,t,n,r){if(to(e))return[];if(ln(e))return[".".concat(e.styledComponentId)];if(ye(e)){if(!ye(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return w.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof mn||Le(o)||o===null||console.error("".concat(Fr(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.")),Ce(o,t,n,r)}var i;return e instanceof mn?n?(e.inject(n,r),[e.getName(r)]):[e]:Le(e)?no(e):Array.isArray(e)?Array.prototype.concat.apply(yt,e.map(function(s){return Ce(s,t,n,r)})):[e.toString()]}function Es(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ye(n)&&!ln(n))return!1}return!0}var bs=Hr(pt),$s=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=w.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Es(t),this.componentId=n,this.baseHash=ge(bs,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=ve(o,this.staticRulesId);else{var i=un(Ce(this.rules,t,n,r)),s=sn(ge(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var c=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,c)}o=ve(o,s),this.staticRulesId=s}else{for(var a=ge(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var l=this.rules[d];if(typeof l=="string")u+=l,w.NODE_ENV!=="production"&&(a=ge(a,l));else if(l){var h=un(Ce(l,t,n,r));a=ge(a,h+d),u+=h}}if(u){var _=sn(a>>>0);n.hasNameForId(this.componentId,_)||n.insertRules(this.componentId,_,r(u,".".concat(_),void 0,this.componentId)),o=ve(o,_)}}return o},e}(),je=te.createContext(void 0);je.Consumer;function ks(){var e=Fe(je);if(!e)throw K(18);return e}function Os(e){var t=te.useContext(je),n=ee(function(){return function(r,o){if(!r)throw K(14);if(ye(r)){var i=r(o);if(w.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw K(7);return i}if(Array.isArray(r)||typeof r!="object")throw K(8);return o?P(P({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?te.createElement(je.Provider,{value:n},e.children):null}var gn={},ro=new Set;function Ns(e,t,n){var r=ln(e),o=e,i=!cn(e),s=t.attrs,c=s===void 0?yt:s,a=t.componentId,u=a===void 0?function(b,N){var S=typeof b!="string"?"sc":Pr(b);gn[S]=(gn[S]||0)+1;var v="".concat(S,"-").concat(Ur(pt+S+gn[S]));return N?"".concat(N,"-").concat(v):v}(t.displayName,t.parentComponentId):a,d=t.displayName,l=d===void 0?function(b){return cn(b)?"styled.".concat(b):"Styled(".concat(Fr(b),")")}(e):d,h=t.displayName&&t.componentId?"".concat(Pr(t.displayName),"-").concat(t.componentId):t.componentId||u,_=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,y=t.shouldForwardProp;if(r&&o.shouldForwardProp){var E=o.shouldForwardProp;if(t.shouldForwardProp){var $=t.shouldForwardProp;y=function(b,N){return E(b,N)&&$(b,N)}}else y=E}var g=new $s(n,h,r?o.componentStyle:void 0);function m(b,N){return function(S,v,F){var z=S.attrs,Ze=S.componentStyle,j=S.defaultProps,we=S.foldedComponentIds,Eo=S.styledComponentId,qa=S.target,Za=te.useContext(je),Xa=pn(),wn=S.shouldForwardProp||Xa.shouldForwardProp;w.NODE_ENV!=="production"&&rt(Eo);var bo=Gi(v,Za,j)||Re,ie=function(kt,Qe,Ot){for(var Pe,Ee=P(P({},Qe),{className:void 0,theme:Ot}),$n=0;$n<kt.length;$n+=1){var Nt=ye(Pe=kt[$n])?Pe(Ee):Pe;for(var ue in Nt)Ee[ue]=ue==="className"?ve(Ee[ue],Nt[ue]):ue==="style"?P(P({},Ee[ue]),Nt[ue]):Nt[ue]}return Qe.className&&(Ee.className=ve(Ee.className,Qe.className)),Ee}(z,v,bo),Xe=ie.as||qa,Ke={};for(var G in ie)ie[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&ie.theme===bo||(G==="forwardedAs"?Ke.as=ie.forwardedAs:wn&&!wn(G,Xe)||(Ke[G]=ie[G],wn||w.NODE_ENV!=="development"||Wo(G)||ro.has(G)||!on.has(Xe)||(ro.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 En=function(kt,Qe){var Ot=pn(),Pe=kt.generateAndInjectStyles(Qe,Ot.styleSheet,Ot.stylis);return w.NODE_ENV!=="production"&&rt(Pe),Pe}(Ze,ie);w.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(En);var bn=ve(we,Eo);return En&&(bn+=" "+En),ie.className&&(bn+=" "+ie.className),Ke[cn(Xe)&&!on.has(Xe)?"class":"className"]=bn,F&&(Ke.ref=F),D(Xe,Ke)}(k,b,N)}m.displayName=l;var k=te.forwardRef(m);return k.attrs=_,k.componentStyle=g,k.displayName=l,k.shouldForwardProp=y,k.foldedComponentIds=r?ve(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=h,k.target=r?o.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?function(N){for(var S=[],v=1;v<arguments.length;v++)S[v-1]=arguments[v];for(var F=0,z=S;F<z.length;F++)fn(N,z[F],!0);return N}({},o.defaultProps,b):b}}),w.NODE_ENV!=="production"&&(ji(l,h),k.warnTooManyClasses=function(b,N){var S={},v=!1;return function(F){if(!v&&(S[F]=!0,Object.keys(S).length>=200)){var z=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(b).concat(z,`.
|
|
47
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function is(){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(s){n=n.replace(/%[a-z]/,s)}),n}function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return w.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(is.apply(void 0,_e([os[e]],t,!1)).trim())}var ss=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 s=o;s<i;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(t+1),a=(s=0,n.length);s<a;s++)this.tag.insertRule(c,n[s])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(rn);return n},e}(),as=1<<30,Ct=new Map,St=new Map,wt=1,Et=function(e){if(Ct.has(e))return Ct.get(e);for(;St.has(wt);)wt++;var t=wt++;if(w.NODE_ENV!=="production"&&((0|t)<0||t>as))throw K(16,"".concat(t));return Ct.set(e,t),St.set(t,e),t},cs=function(e,t){wt=t+1,Ct.set(e,t),St.set(t,e)},ls="style[".concat(me,"][").concat(Lr,'="').concat(pt,'"]'),us=new RegExp("^".concat(me,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),fs=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},ds=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(rn),o=[],i=0,s=r.length;i<s;i++){var c=r[i].trim();if(c){var a=c.match(us);if(a){var u=0|parseInt(a[1],10),d=a[2];u!==0&&(cs(d,u),fs(e,d,a[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Zr=function(e){for(var t=document.querySelectorAll(ls),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(me)!==Rr&&(ds(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function hs(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Xr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(c){var a=Array.from(c.querySelectorAll("style[".concat(me,"]")));return a[a.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(me,Rr),r.setAttribute(Lr,pt);var s=hs();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},_s=function(){function e(t){this.element=Xr(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 s=r[o];if(s.ownerNode===n)return s}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}(),ps=function(){function e(t){this.element=Xr(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}(),ms=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}(),Kr=mt,gs={isServer:!mt,useCSSOMInjection:!ji},Qr=function(){function e(t,n,r){t===void 0&&(t=Re),n===void 0&&(n={});var o=this;this.options=P(P({},gs),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&mt&&Kr&&(Kr=!1,Zr(this)),dn(this,function(){return function(i){for(var s=i.getTag(),c=s.length,a="",u=function(l){var _=function(g){return St.get(g)}(l);if(_===void 0)return"continue";var h=i.names.get(_),y=s.getGroup(l);if(h===void 0||!h.size||y.length===0)return"continue";var E="".concat(me,".g").concat(l,'[id="').concat(_,'"]'),$="";h!==void 0&&h.forEach(function(g){g.length>0&&($+="".concat(g,","))}),a+="".concat(y).concat(E,'{content:"').concat($,'"}').concat(rn)},d=0;d<c;d++)u(d);return a}(o)})}return e.registerId=function(t){return Et(t)},e.prototype.rehydrate=function(){!this.server&&mt&&Zr(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 ms(o):r?new _s(o):new ps(o)}(this.options),new ss(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}(),ys=/&/g,vs=/^\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 eo(e){var t,n,r,o=e===void 0?Re:e,i=o.options,s=i===void 0?Re:i,c=o.plugins,a=c===void 0?yt:c,u=function(_,h,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):_},d=a.slice();d.push(function(_){_.type===at&&_.value.includes("&")&&(_.props[0]=_.props[0].replace(ys,n).replace(r,u))}),s.prefix&&d.push(Wi),d.push(Ui);var l=function(_,h,y,E){h===void 0&&(h=""),y===void 0&&(y=""),E===void 0&&(E="&"),t=E,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var $=_.replace(vs,""),g=Mi(y||h?"".concat(y," ").concat(h," { ").concat($," }"):$);s.namespace&&(g=Jr(g,s.namespace));var m=[];return _t(g,Fi(d.concat(Bi(function(k){return m.push(k)})))),m};return l.hash=a.length?a.reduce(function(_,h){return h.name||K(15),ge(_,h.name)},Hr).toString():"",l}var Cs=new Qr,hn=eo(),_n=te.createContext({shouldForwardProp:void 0,styleSheet:Cs,stylis:hn});_n.Consumer;var Ss=te.createContext(void 0);function pn(){return Fe(_n)}function ws(e){var t=M(e.stylisPlugins),n=t[0],r=t[1],o=pn().styleSheet,i=ee(function(){var a=o;return e.sheet?a=e.sheet:e.target&&(a=a.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(a=a.reconstructWithOptions({useCSSOMInjection:!1})),a},[e.disableCSSOMInjection,e.sheet,e.target,o]),s=ee(function(){return eo({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);Z(function(){bi(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var c=ee(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:s}},[e.shouldForwardProp,i,s]);return te.createElement(_n.Provider,{value:c},te.createElement(Ss.Provider,{value:s},e.children))}var mn=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=hn);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,dn(this,function(){throw K(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=hn),this.name+t.hash},e}(),Es=function(e){return e>="A"&&e<="Z"};function to(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Es(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var no=function(e){return e==null||e===!1||e===""},ro=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!no(i)&&(Array.isArray(i)&&i.isCss||ye(i)?r.push("".concat(to(o),":"),i,";"):Le(i)?r.push.apply(r,_e(_e(["".concat(o," {")],ro(i),!1),["}"],!1)):r.push("".concat(to(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in zi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ce(e,t,n,r){if(no(e))return[];if(ln(e))return[".".concat(e.styledComponentId)];if(ye(e)){if(!ye(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return w.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof mn||Le(o)||o===null||console.error("".concat(Br(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.")),Ce(o,t,n,r)}var i;return e instanceof mn?n?(e.inject(n,r),[e.getName(r)]):[e]:Le(e)?ro(e):Array.isArray(e)?Array.prototype.concat.apply(yt,e.map(function(s){return Ce(s,t,n,r)})):[e.toString()]}function bs(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ye(n)&&!ln(n))return!1}return!0}var $s=Ur(pt),ks=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=w.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&bs(t),this.componentId=n,this.baseHash=ge($s,n),this.baseStyle=r,Qr.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=ve(o,this.staticRulesId);else{var i=un(Ce(this.rules,t,n,r)),s=sn(ge(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var c=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,c)}o=ve(o,s),this.staticRulesId=s}else{for(var a=ge(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var l=this.rules[d];if(typeof l=="string")u+=l,w.NODE_ENV!=="production"&&(a=ge(a,l));else if(l){var _=un(Ce(l,t,n,r));a=ge(a,_+d),u+=_}}if(u){var h=sn(a>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(u,".".concat(h),void 0,this.componentId)),o=ve(o,h)}}return o},e}(),je=te.createContext(void 0);je.Consumer;function Os(){var e=Fe(je);if(!e)throw K(18);return e}function Ns(e){var t=te.useContext(je),n=ee(function(){return function(r,o){if(!r)throw K(14);if(ye(r)){var i=r(o);if(w.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw K(7);return i}if(Array.isArray(r)||typeof r!="object")throw K(8);return o?P(P({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?te.createElement(je.Provider,{value:n},e.children):null}var gn={},oo=new Set;function Is(e,t,n){var r=ln(e),o=e,i=!cn(e),s=t.attrs,c=s===void 0?yt:s,a=t.componentId,u=a===void 0?function(b,N){var S=typeof b!="string"?"sc":Dr(b);gn[S]=(gn[S]||0)+1;var v="".concat(S,"-").concat(Fr(pt+S+gn[S]));return N?"".concat(N,"-").concat(v):v}(t.displayName,t.parentComponentId):a,d=t.displayName,l=d===void 0?function(b){return cn(b)?"styled.".concat(b):"Styled(".concat(Br(b),")")}(e):d,_=t.displayName&&t.componentId?"".concat(Dr(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,y=t.shouldForwardProp;if(r&&o.shouldForwardProp){var E=o.shouldForwardProp;if(t.shouldForwardProp){var $=t.shouldForwardProp;y=function(b,N){return E(b,N)&&$(b,N)}}else y=E}var g=new ks(n,_,r?o.componentStyle:void 0);function m(b,N){return function(S,v,F){var z=S.attrs,Ze=S.componentStyle,j=S.defaultProps,we=S.foldedComponentIds,bo=S.styledComponentId,qa=S.target,Za=te.useContext(je),Xa=pn(),En=S.shouldForwardProp||Xa.shouldForwardProp;w.NODE_ENV!=="production"&&rt(bo);var $o=Vi(v,Za,j)||Re,ie=function(kt,Qe,Ot){for(var Pe,Ee=P(P({},Qe),{className:void 0,theme:Ot}),kn=0;kn<kt.length;kn+=1){var Nt=ye(Pe=kt[kn])?Pe(Ee):Pe;for(var ue in Nt)Ee[ue]=ue==="className"?ve(Ee[ue],Nt[ue]):ue==="style"?P(P({},Ee[ue]),Nt[ue]):Nt[ue]}return Qe.className&&(Ee.className=ve(Ee.className,Qe.className)),Ee}(z,v,$o),Xe=ie.as||qa,Ke={};for(var G in ie)ie[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&ie.theme===$o||(G==="forwardedAs"?Ke.as=ie.forwardedAs:En&&!En(G,Xe)||(Ke[G]=ie[G],En||w.NODE_ENV!=="development"||zo(G)||oo.has(G)||!on.has(Xe)||(oo.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 bn=function(kt,Qe){var Ot=pn(),Pe=kt.generateAndInjectStyles(Qe,Ot.styleSheet,Ot.stylis);return w.NODE_ENV!=="production"&&rt(Pe),Pe}(Ze,ie);w.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(bn);var $n=ve(we,bo);return bn&&($n+=" "+bn),ie.className&&($n+=" "+ie.className),Ke[cn(Xe)&&!on.has(Xe)?"class":"className"]=$n,F&&(Ke.ref=F),D(Xe,Ke)}(k,b,N)}m.displayName=l;var k=te.forwardRef(m);return k.attrs=h,k.componentStyle=g,k.displayName=l,k.shouldForwardProp=y,k.foldedComponentIds=r?ve(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=_,k.target=r?o.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?function(N){for(var S=[],v=1;v<arguments.length;v++)S[v-1]=arguments[v];for(var F=0,z=S;F<z.length;F++)fn(N,z[F],!0);return N}({},o.defaultProps,b):b}}),w.NODE_ENV!=="production"&&(Gi(l,_),k.warnTooManyClasses=function(b,N){var S={},v=!1;return function(F){if(!v&&(S[F]=!0,Object.keys(S).length>=200)){var z=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(b).concat(z,`.
|
|
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 />`),v=!0,S={}}}}(l,
|
|
56
|
+
<Component />`),v=!0,S={}}}}(l,_)),dn(k,function(){return".".concat(k.styledComponentId)}),i&&qr(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function io(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var so=function(e){return Object.assign(e,{isCss:!0})};function yn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ye(e)||Le(e))return so(Ce(io(yt,_e([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Ce(r):so(Ce(io(r,t)))}function vn(e,t,n){if(n===void 0&&(n=Re),!t)throw K(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,yn.apply(void 0,_e([o],i,!1)))};return r.attrs=function(o){return vn(e,t,P(P({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return vn(e,t,P(P({},n),o))},r}var ao=function(e){return vn(Is,e)},U=ao;on.forEach(function(e){U[e]=ao(e)});function le(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];w.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=un(yn.apply(void 0,_e([e],t,!1))),o=Fr(r);return new mn(o,r)}w.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
57
|
Perhaps you're looking to import 'styled-components/native'?
|
|
58
58
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var bt="__sc-".concat(me,"__");w.NODE_ENV!=="production"&&w.NODE_ENV!=="test"&&typeof window<"u"&&(window[bt]||(window[bt]=0),window[bt]===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[bt]+=1);const re={CIRCLE_SOLID:"circle-solid",ELLIPSE_SOLID:"ellipse-solid",MAN_SOLID:"man-solid",WOMAN_SOLID:"woman-solid",SQUARE_ROUNDED_DASH:"square-rounded-dash",SQUARE_ROUNDED_SOLID:"square-rounded-solid",SQUARE_DASH:"square-dash",SQUARE_SOLID:"square-solid"},
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={CIRCLE_SOLID:"circle-solid",ELLIPSE_SOLID:"ellipse-solid",MAN_SOLID:"man-solid",WOMAN_SOLID:"woman-solid",SQUARE_ROUNDED_DASH:"square-rounded-dash",SQUARE_ROUNDED_SOLID:"square-rounded-solid",SQUARE_DASH:"square-dash",SQUARE_SOLID:"square-solid"},co=14,Ts=.0276;var oe=(e=>(e[e.S=300]="S",e[e.M=400]="M",e[e.L=500]="L",e[e.Default=600]="Default",e))(oe||{});const Ge={300:{iconSize:40,marginLeft:12,buttonPadding:4},400:{iconSize:45,marginLeft:12,buttonPadding:8},500:{iconSize:52,marginLeft:12,buttonPadding:12},600:{iconSize:52,marginLeft:12,buttonPadding:24}},lo={loading:{text:"Loading. Please wait.",visible:!0},done:{text:"Waiting for input...",visible:!0}},xs={...{[L.CANDIDATE_SELECTION]:"Stay still…",[L.FACE_TOO_CLOSE]:"Move back",[L.FACE_TOO_FAR]:"Move closer",[L.FACE_CENTERING]:"Center your face",[L.FACE_NOT_PRESENT]:"Position your face into the circle",[L.SHARPNESS_TOO_LOW]:"Turn face against light",[L.BRIGHTNESS_TOO_LOW]:"Turn face against light",[L.BRIGHTNESS_TOO_HIGH]:"Less light needed",[L.DEVICE_PITCHED]:"Hold your phone at eye level",[L.LEFT_EYE_NOT_PRESENT]:"Position your face into the circle",[L.RIGHT_EYE_NOT_PRESENT]:"Position your face into the circle",[L.MOUTH_SCORE_TOO_HIGH]:"Keep neutral expression",[L.MOUTH_SCORE_TOO_LOW]:"Smile :)",[L.MOUTH_NOT_PRESENT]:"Position your face into the circle"},[J.SMILE]:"Smile :)",[J.SMILE_CANDIDATE_SELECTION]:"Smile :)",[J.KEEP_NEUTRAL_EXPRESSION]:"Keep neutral expression"},As={[J.SMILE]:"Smile more!",[J.KEEP_NEUTRAL_EXPRESSION]:"Don't smile"},Rs="rgba(19, 19, 19, 0.5)",Ls=34;function uo(e,t){return Math.max(t,t+(e-400)*Ts+2)}const Ps=(e,t=co)=>e?e.width<e.height?uo(e.width,t):uo(e.height,t):t,Ds=e=>e>oe.Default?Ge[oe.Default]:e>oe.L?Ge[oe.L]:e>oe.M?Ge[oe.M]:Ge[oe.S],Ms=e=>e?Ds(e.width):Ge[oe.Default];function Hs(){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 Us({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=Bn(void 0);Ve.displayName="UiCustomizationContext";function Se(){const e=Fe(Ve);if(!e)throw new Error(`${Ve.displayName} must be used within a ${Ve.displayName} Provider`);return e}function Fs({children:e,props:t,videoElementSize:n}){const{font:r}=Os(),o=ee(()=>({...t,videoElementSize:n,fontSize:Ps(n,r.minimumSize)}),[t,r.minimumSize,n]);return f(Ve.Provider,{value:o,children:e})}const fo=({svgSize:e})=>f("svg",{fill:"none",height:e,viewBox:"0 0 16 14",width:e,xmlns:"http://www.w3.org/2000/svg",children:f("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"})}),Bs=U.div`
|
|
61
61
|
width: 100%;
|
|
62
62
|
height: 100%;
|
|
63
63
|
top: 0;
|
|
@@ -76,14 +76,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={CIRCLE_SOLI
|
|
|
76
76
|
aspect-ratio: 9/16;
|
|
77
77
|
}
|
|
78
78
|
`}
|
|
79
|
-
`,
|
|
79
|
+
`,Ws=U.div`
|
|
80
80
|
width: 100%;
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
justify-content: center;
|
|
84
84
|
align-items: center;
|
|
85
85
|
color: ${e=>e.theme.colors.instructionTextColor};
|
|
86
|
-
`,
|
|
86
|
+
`,zs=U.p`
|
|
87
87
|
background: ${e=>e.theme.colors.instructionColor};
|
|
88
88
|
border-radius: 0.25em;
|
|
89
89
|
padding: 0.583em 0.666em;
|
|
@@ -91,11 +91,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={CIRCLE_SOLI
|
|
|
91
91
|
font-size: ${e=>`${e.$fontSize}px`};
|
|
92
92
|
line-height: 1em;
|
|
93
93
|
max-width: 80%;
|
|
94
|
-
`,Cn=({Icon:e,isCameraReady:t,position:n="absolute",text:r})=>{const{fontSize:o}=Se();return f(
|
|
94
|
+
`,Cn=({Icon:e,isCameraReady:t,position:n="absolute",text:r})=>{const{fontSize:o}=Se();return f(Bs,{$isCameraReady:t,$position:n,children:f(Ws,{children:[e?f(e,{svgSize:o*2}):null,f(zs,{$fontSize:o,children:r})]})})},ho=({text:e="An unknown error has occurred"})=>f(Cn,{Icon:fo,position:"relative",text:e});class js 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?f(ho,{Icon:fo,isCameraReady:!1}):this.props.children}}const Gs=U.div`
|
|
95
95
|
font-family: ${e=>e.theme.font.family};
|
|
96
96
|
font-style: ${e=>e.theme.font.style};
|
|
97
97
|
font-weight: ${e=>e.theme.font.weight};
|
|
98
|
-
`,
|
|
98
|
+
`,Vs=({children:e,uiProps:t,videoElementSize:n})=>(Z(()=>{Hs()},[]),f(ws,{target:t.styleTarget,children:f(Ns,{theme:t.theme,children:f(Gs,{children:f(js,{videoElementSize:n,children:f(Fs,{props:t,videoElementSize:n,children:e})})})})})),Ys=.75,qs="dot-auto-capture-video",Ye=(e,t)=>{const n=nt(t);Z(()=>{n.current=t},[t]),Z(()=>{const r=o=>n.current(o);return document.addEventListener(e,r),()=>{document.removeEventListener(e,r)}},[e])};function Zs(e){const[t,n]=M(),r=he(o=>{var i;n((i=o.detail)==null?void 0:i.size)},[n]);return Ye(e,r),Ne(()=>{if(!t){const o=document.getElementById(qs);o&&n(o.getBoundingClientRect())}},[t,n]),t}function Xs(e,t){return e?`${e}, ${t}`:t}const qe={colors:{placeholderColor:"white",placeholderColorSuccess:"#00BFB2",instructionColor:"#F8FBFB",instructionColorSuccess:"#00BFB2",instructionTextColor:"#021B41;"},font:{family:"Montserrat, Arial, sans-serif",weight:"600",style:"normal",minimumSize:co}},Ks=e=>{var t;return e?{...qe,...e,colors:{...qe.colors,...e.colors},font:{...qe.font,...e.font,family:Xs((t=e.font)==null?void 0:t.family,qe.font.family)}}:qe},_o=(e,t)=>Math.min(e,t),Qs=({height:e,width:t},n)=>{const r=_o(t,e)*n,o=(t-r)/2,i=(e-r)/2;return{shiftX:o,shiftY:i,width:r,height:r}},Js=(e,t)=>{const{height:n,shiftX:r,shiftY:o,width:i}=Qs(e,t);return{shiftX:r/e.width,shiftY:o/e.height,width:i/e.width,height:n/e.height}};function ea(e){return Js(e,Ys)}const Sn=(e,t)=>{document.dispatchEvent(new CustomEvent(e,{detail:t}))},$t=class $t{constructor(){It(this,"lastDetails");It(this,"delayedTime");this.lastDetails={},this.delayedTime=0}static getInstance(){return this._instance||(this._instance=new $t),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)&&Sn(t,n)}dispatchDelayedCustomEventOnChange(t,n,r){const o=performance.now();o-this.delayedTime>r&&(this.dispatchCustomEventOnChange(t,n),this.delayedTime=o)}dispatchCustomEvent(t,n){Sn(t,n)}};It($t,"_instance");let wn=$t;wn.getInstance();const po=(e,t)=>{Sn(e,{instruction:t})};async function ta(){return navigator.mediaDevices.enumerateDevices()}async function na(){return(await ta()).filter(t=>t.kind==="videoinput")}const ra=()=>{const[e,t]=M(!1);return Z(()=>{(async()=>{(await na()).length>1&&t(!0)})()},[]),e},oa=({size:e})=>f("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:e,xmlns:"http://www.w3.org/2000/svg",children:[f("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"}),f("circle",{cx:"17.5",cy:"24.5",fill:"white",r:"1.5"}),f("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"}),f("circle",{fill:"white",r:"1.5",transform:"matrix(-1 0 0 1 34.5 24.5)"}),f("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"})]}),ia=({size:e})=>f("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:"52",xmlns:"http://www.w3.org/2000/svg",children:[f("circle",{cx:"26",cy:"26",fill:"#131313",fillOpacity:"0.3",r:"26"}),f("path",{d:"M18 26C18 25.4477 17.5523 25 17 25C16.4477 25 16 25.4477 16 26H18ZM34 26C34 26.5523 34.4477 27 35 27C35.5523 27 36 26.5523 36 26H34ZM18.3977 19.5032C18.0387 19.923 18.0879 20.5542 18.5076 20.9132C18.9273 21.2722 19.5586 21.2229 19.9176 20.8032L18.3977 19.5032ZM33.5961 32.504C33.9555 32.0846 33.9069 31.4533 33.4875 31.094C33.0681 30.7346 32.4368 30.7832 32.0775 31.2026L33.5961 32.504ZM33.8321 24.4453C33.5257 23.9858 32.9048 23.8616 32.4453 24.1679C31.9858 24.4743 31.8616 25.0952 32.1679 25.5547L33.8321 24.4453ZM35 28L34.1679 28.5547C34.3534 28.8329 34.6656 29 35 29C35.3344 29 35.6466 28.8329 35.8321 28.5547L35 28ZM37.8321 25.5547C38.1384 25.0952 38.0142 24.4743 37.5547 24.1679C37.0952 23.8616 36.4743 23.9858 36.1679 24.4453L37.8321 25.5547ZM14.1679 26.4453C13.8616 26.9048 13.9858 27.5257 14.4453 27.8321C14.9048 28.1384 15.5257 28.0142 15.8321 27.5547L14.1679 26.4453ZM17 24L17.8321 23.4453C17.6466 23.1671 17.3344 23 17 23C16.6656 23 16.3534 23.1671 16.1679 23.4453L17 24ZM18.1679 27.5547C18.4743 28.0142 19.0952 28.1384 19.5547 27.8321C20.0142 27.5257 20.1384 26.9048 19.8321 26.4453L18.1679 27.5547ZM26 34C21.5817 34 18 30.4183 18 26H16C16 31.5228 20.4772 36 26 36V34ZM26 18C30.4183 18 34 21.5817 34 26H36C36 20.4772 31.5228 16 26 16V18ZM19.9176 20.8032C21.3864 19.0859 23.5658 18 26 18V16C22.9568 16 20.2302 17.3606 18.3977 19.5032L19.9176 20.8032ZM32.0775 31.2026C30.6087 32.9165 28.4314 34 26 34V36C29.0398 36 31.7636 34.6424 33.5961 32.504L32.0775 31.2026ZM32.1679 25.5547L34.1679 28.5547L35.8321 27.4453L33.8321 24.4453L32.1679 25.5547ZM35.8321 28.5547L37.8321 25.5547L36.1679 24.4453L34.1679 27.4453L35.8321 28.5547ZM15.8321 27.5547L17.8321 24.5547L16.1679 23.4453L14.1679 26.4453L15.8321 27.5547ZM16.1679 24.5547L18.1679 27.5547L19.8321 26.4453L17.8321 23.4453L16.1679 24.5547Z",fill:"white"})]}),mo=U.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[bt]+=1);const re={CIRCLE_SOLI
|
|
|
105
105
|
&:disabled {
|
|
106
106
|
cursor: not-allowed;
|
|
107
107
|
}
|
|
108
|
-
`,sa=({marginLeft:e,size:t,...n})=>f(
|
|
108
|
+
`,sa=({marginLeft:e,size:t,...n})=>f(mo,{$marginLeft:e,...n,children:f(oa,{size:t})}),aa=({marginLeft:e,size:t,...n})=>f(mo,{$marginLeft:e,...n,children:f(ia,{size:t})}),ca=U.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
|
-
`,la=({customControlEvent:e,isSwitchCameraDisabled:t})=>{const{showCameraButtons:n,videoElementSize:r}=Se(),o=ra();if(!n)return null;const{buttonPadding:i,iconSize:s,marginLeft:c}=
|
|
114
|
+
`,la=({customControlEvent:e,isSwitchCameraDisabled:t})=>{const{showCameraButtons:n,videoElementSize:r}=Se(),o=ra();if(!n)return null;const{buttonPadding:i,iconSize:s,marginLeft:c}=Ms(r);return f(ca,{$padding:i,children:[o&&f(aa,{disabled:t,onClick:()=>{po(e,jn.SWITCH_CAMERA)},size:s}),f(sa,{marginLeft:o?c:0,onClick:()=>{po(e,jn.TOGGLE_MIRROR)},size:s})]})},ua="2.5s",fa="0.3s",da="linear",ha=le`
|
|
115
115
|
0% {
|
|
116
116
|
opacity: 0;
|
|
117
117
|
}
|
|
@@ -159,14 +159,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={CIRCLE_SOLI
|
|
|
159
159
|
transform: scale(1);
|
|
160
160
|
opacity: 1;
|
|
161
161
|
}
|
|
162
|
-
`;const
|
|
162
|
+
`;const _a=U.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
168
|
${e=>e.$isAnimating&&yn`
|
|
169
|
-
animation: ${
|
|
169
|
+
animation: ${ha} ${fa}
|
|
170
170
|
${da} both;
|
|
171
171
|
animation-delay: ${ua};
|
|
172
172
|
|
|
@@ -206,7 +206,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={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
|
-
`,ma=({children:e,cssBottom:t,cssTop:n,isAnimating:r,isInCandidateSelection:o,isPortrait:i})=>{const{fontSize:s}=Se();return f(
|
|
209
|
+
`,ma=({children:e,cssBottom:t,cssTop:n,isAnimating:r,isInCandidateSelection:o,isPortrait:i})=>{const{fontSize:s}=Se();return f(_a,{$cssBottom:t,$cssTop:n,$isAnimating:r,$isPortrait:i,children:f(pa,{$fontSize:s,$isInCandidateSelection:o,$wrap:e.length>Ls,children:e})})},ga=U.div`
|
|
210
210
|
color: ${e=>e.theme.colors.instructionTextColor};
|
|
211
211
|
animation: spin 2s linear infinite;
|
|
212
212
|
|
|
@@ -218,11 +218,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={CIRCLE_SOLI
|
|
|
218
218
|
`,ya=({svgSize:e})=>f(ga,{children:f("svg",{fill:"none",height:e,viewBox:"0 0 48 48",width:e,xmlns:"http://www.w3.org/2000/svg",children:[f("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"}),f("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"}),f("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"}),f("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"}),f("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"}),f("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"}),f("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"}),f("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"})]})}),va=U.div`
|
|
219
219
|
z-index: 1;
|
|
220
220
|
position: absolute;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
221
|
+
// Scale up the backdrop to have space when placeholder is scaled below 1
|
|
222
|
+
top: -50%;
|
|
223
|
+
left: -50%;
|
|
224
|
+
width: 200%;
|
|
225
|
+
height: 200%;
|
|
226
|
+
outline: ${({$backdropColor:e,$shorterSide:t=1e3})=>`${t*.2}px solid ${e}`};
|
|
227
|
+
transform: scale(${e=>e.$scale||1});
|
|
228
|
+
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
229
|
+
|
|
230
|
+
// Scale the children to 50% of the size of the backdrop to achieve 1:1 ratio between placeholder and backdrop
|
|
231
|
+
g {
|
|
232
|
+
transform: scale(0.5);
|
|
233
|
+
translate: 25% 25%;
|
|
234
|
+
}
|
|
235
|
+
`,go=({children:e,height:t,scale:n,width:r})=>{const{backdropColor:o}=Se(),i=_o(r,t);return f(va,{$backdropColor:o,$scale:n,$shorterSide:i,children:f("svg",{viewBox:`0 0 ${r} ${t}`,children:[f("defs",{children:f("mask",{id:"mask",children:[f("rect",{fill:"#fff",height:"100%",width:"100%"}),f("g",{children:e})]})}),f("rect",{fill:o,height:"100%",mask:"url(#mask)",width:"100%"})]})})};function Ca({cameraHeight:e,cameraWidth:t,state:n}){var o;const{appStateInstructions:r}=Se();return!n||n===Bt.ERROR||!((o=r==null?void 0:r[n])!=null&&o.visible)?null:n===Bt.DONE?f(B,{children:[e&&t&&f(go,{height:e,width:t}),f(Cn,{isCameraReady:!0,text:r[n].text})]}):f(Cn,{Icon:ya,isCameraReady:!0,text:r[n].text})}function Sa({isRounded:e,isSquare:t,...n}){return e?f("rect",{fill:"#000",...n,rx:"2%"}):f("rect",{fill:"#000",...n,rx:t?"0":"50%"})}const wa=()=>f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("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"})});function Ea(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("path",{d:"M38.9231 240C38.9231 108.23 129.248 2 240 2C350.752 2 441.077 108.23 441.077 240C441.077 371.77 350.752 478 240 478C129.248 478 38.9231 371.77 38.9231 240Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4"})})}function ba(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("path",{clipRule:"evenodd",d:"M123.592 81.0326C143.203 50.4946 180.289 34 240 34C299.711 34 336.797 50.4946 356.408 81.0326C375.742 111.138 377.681 154.313 368.661 207.051C371.545 208.577 374.834 210.748 377.278 215.028C380.075 219.925 381.612 227.297 380.77 239.048C379.202 260.93 372.883 270.75 366.157 276.198C363.521 278.333 360.842 279.765 358.659 280.932C358.141 281.209 357.651 281.471 357.196 281.724C354.727 283.097 353.459 284.114 352.94 285.588C346.115 312.745 335.656 325.235 326.992 335.581C325.711 337.111 324.469 338.595 323.283 340.072C318.736 345.738 315.077 351.244 313.058 359.018C311.036 366.806 310.62 377.042 312.887 392.189C323.28 427.534 349.601 445.607 379.548 458.155C380.567 458.582 381.047 459.754 380.62 460.773C380.193 461.792 379.021 462.271 378.002 461.845C347.548 449.083 319.871 430.304 309.01 393.182L308.972 393.052L308.952 392.918C306.617 377.396 306.974 366.534 309.187 358.012C311.409 349.454 315.459 343.431 320.164 337.568C321.377 336.057 322.636 334.552 323.926 333.011C332.525 322.737 342.484 310.837 349.08 284.533L349.099 284.458L349.124 284.385C350.161 281.284 352.747 279.621 355.253 278.228C355.794 277.927 356.344 277.632 356.902 277.333C359.061 276.176 361.329 274.961 363.639 273.09C369.248 268.547 375.264 259.921 376.78 238.762C377.594 227.404 376.048 220.94 373.805 217.012C371.594 213.141 368.56 211.453 365.547 209.952L364.214 209.287L364.469 207.818C373.737 154.637 371.701 112.248 353.043 83.194C334.485 54.2962 299.065 38 240 38C180.935 38 145.516 54.2962 126.958 83.194C108.3 112.248 106.264 154.637 115.531 207.818L115.787 209.287L114.453 209.952C111.441 211.453 108.406 213.141 106.196 217.012C103.953 220.94 102.406 227.404 103.22 238.762C104.736 259.921 110.753 268.547 116.361 273.09C118.672 274.961 120.94 276.176 123.099 277.333C123.656 277.632 124.206 277.927 124.748 278.228C127.254 279.621 129.84 281.284 130.877 284.385L130.901 284.458L130.92 284.533C137.517 310.837 147.476 322.737 156.074 333.011C157.364 334.552 158.624 336.057 159.837 337.568C164.542 343.431 168.592 349.454 170.814 358.012C173.026 366.534 173.384 377.396 171.048 392.918L171.028 393.052L170.99 393.182C160.129 430.304 132.452 449.083 101.998 461.845C100.979 462.271 99.8075 461.792 99.3806 460.773C98.9537 459.754 99.4335 458.582 100.452 458.155C130.399 445.607 156.721 427.534 167.113 392.189C169.381 377.042 168.964 366.806 166.942 359.018C164.924 351.244 161.264 345.738 156.717 340.072C155.532 338.595 154.29 337.111 153.008 335.581C144.345 325.235 133.886 312.745 127.061 285.588C126.541 284.114 125.273 283.097 122.804 281.724C122.349 281.471 121.859 281.209 121.341 280.932C119.159 279.765 116.479 278.333 113.844 276.198C107.117 270.75 100.798 260.93 99.2303 239.048C98.3883 227.297 99.9259 219.925 102.722 215.028C105.166 210.748 108.455 208.577 111.339 207.051C102.319 154.313 104.259 111.138 123.592 81.0326Z",fill:"currentColor",fillRule:"evenodd"})})}function $a(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("rect",{height:"476",rx:"2",stroke:"currentColor",strokeDasharray:"48 48",strokeLinecap:"square",strokeWidth:"4",width:"476",x:"2",y:"2"})})}function ka(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("rect",{height:"476",rx:"14",stroke:"currentColor",strokeDasharray:"24 24",strokeLinecap:"square",strokeWidth:"4",width:"476",x:"2",y:"2"})})}function Oa(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("rect",{height:"476",rx:"14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4",width:"476",x:"2",y:"2"})})}function Na(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("rect",{height:"476",rx:"2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4",width:"476",x:"2",y:"2"})})}function Ia(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("path",{clipRule:"evenodd",d:"M126.126 87.8654C147.739 56.7835 184.591 34.0001 239.665 34.0001C239.779 34.0001 239.891 34.0096 240 34.0279C240.109 34.0096 240.221 34.0001 240.335 34.0001C295.41 34.0001 332.261 56.7835 353.874 87.8654C375.428 118.862 381.724 157.957 376.086 190.544C373.539 205.262 371.039 233.823 376.056 253.971C380.828 273.135 387.879 290.154 393.431 303.54L393.491 303.685C396.23 310.287 398.627 316.064 400.16 320.726C400.933 323.077 401.511 325.214 401.797 327.079C402.073 328.879 402.11 330.618 401.637 332.107C399.79 339.478 396.615 344.943 392.398 348.881C388.174 352.825 383.031 355.122 377.446 356.355C366.388 358.799 353.231 357.133 341.237 355.551C340.93 355.51 340.623 355.47 340.317 355.43C334.586 354.672 329.126 353.951 324.151 353.668C318.894 353.368 314.374 353.574 310.799 354.649C307.298 355.702 304.789 357.558 303.304 360.596C301.785 363.704 301.203 368.322 302.207 375.153C309.297 399.432 323.779 413.44 341.432 422.745C356.457 430.665 373.692 435.144 390.741 439.575C393.916 440.401 397.085 441.224 400.232 442.068C401.298 442.354 401.931 443.451 401.645 444.518C401.359 445.585 400.262 446.218 399.196 445.932C396.115 445.106 392.991 444.294 389.842 443.477C372.804 439.052 355.041 434.44 339.567 426.283C321.093 416.546 305.757 401.713 298.328 376.139L298.29 376.01L298.271 375.877C297.181 368.587 297.678 362.998 299.71 358.839C301.787 354.59 305.326 352.119 309.647 350.819C313.895 349.541 318.973 349.366 324.378 349.674C329.508 349.966 335.107 350.706 340.788 351.457C341.112 351.5 341.436 351.543 341.76 351.585C353.925 353.19 366.342 354.713 376.583 352.45C381.65 351.33 386.088 349.3 389.668 345.957C393.241 342.621 396.083 337.86 397.773 331.072L397.791 330.998L397.815 330.925C398.022 330.302 398.087 329.272 397.843 327.686C397.605 326.133 397.102 324.232 396.36 321.976C394.875 317.458 392.525 311.794 389.74 305.081L389.737 305.073C384.19 291.701 377.028 274.428 372.174 254.937C366.952 233.964 369.571 204.733 372.144 189.862C377.623 158.197 371.48 120.191 350.59 90.149C329.759 60.1924 294.162 38.0001 240.335 38.0001C240.221 38.0001 240.109 37.9905 240 37.9722C239.891 37.9905 239.779 38.0001 239.665 38.0001C185.838 38.0001 150.241 60.1924 129.41 90.149C108.52 120.191 102.377 158.197 107.856 189.862C110.429 204.733 113.048 233.964 107.826 254.937C102.972 274.428 95.8101 291.701 90.2633 305.073L90.2607 305.079C87.4756 311.793 85.1256 317.458 83.6398 321.976C82.8977 324.232 82.3951 326.133 82.1567 327.686C81.9133 329.272 81.9778 330.302 82.1847 330.925L82.2088 330.998L82.2273 331.072C83.9176 337.86 86.7592 342.621 90.3324 345.957C93.9121 349.3 98.3505 351.33 103.417 352.45C113.658 354.713 126.075 353.19 138.24 351.585C138.564 351.543 138.888 351.5 139.212 351.457C144.893 350.706 150.492 349.966 155.622 349.674C161.027 349.366 166.105 349.541 170.353 350.819C174.674 352.119 178.213 354.59 180.29 358.839C182.323 362.998 182.819 368.587 181.73 375.877L181.71 376.01L181.672 376.139C174.243 401.713 158.907 416.546 140.433 426.283C124.959 434.44 107.196 439.052 90.1584 443.477C87.0093 444.294 83.8851 445.106 80.8046 445.932C79.7377 446.218 78.6409 445.585 78.3548 444.518C78.0687 443.451 78.7017 442.354 79.7685 442.068C82.9154 441.224 86.0842 440.401 89.2594 439.575C106.308 435.144 123.543 430.665 138.568 422.745C156.221 413.44 170.703 399.432 177.793 375.153C178.797 368.322 178.215 363.704 176.696 360.596C175.211 357.558 172.702 355.702 169.201 354.649C165.626 353.574 161.106 353.368 155.849 353.668C150.874 353.951 145.414 354.672 139.683 355.43C139.377 355.47 139.07 355.51 138.763 355.551C126.769 357.133 113.613 358.799 102.554 356.355C96.9695 355.122 91.8259 352.825 87.6024 348.881C83.3855 344.943 80.2095 339.478 78.3628 332.107C77.8896 330.618 77.9268 328.879 78.203 327.079C78.4892 325.214 79.0667 323.077 79.84 320.726C81.3732 316.064 83.7701 310.286 86.5089 303.684L86.5686 303.54C92.1215 290.154 99.1722 273.135 103.944 253.971C108.961 233.823 106.461 205.262 103.914 190.544C98.2759 157.957 104.572 118.862 126.126 87.8654Z",fill:"currentColor",fillRule:"evenodd"})})}const Ta=U.div`
|
|
226
236
|
z-index: 1;
|
|
227
237
|
position: absolute;
|
|
228
238
|
top: ${e=>e.$placeholderRectangle.shiftY*100}%;
|
|
@@ -230,19 +240,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={CIRCLE_SOLI
|
|
|
230
240
|
left: ${e=>e.$placeholderRectangle.shiftX*100}%;
|
|
231
241
|
right: ${e=>(1-e.$placeholderRectangle.shiftX-e.$placeholderRectangle.width)*100}%;
|
|
232
242
|
color: ${e=>e.$isInCandidateSelection?`${e.theme.colors.placeholderColorSuccess}`:`${e.theme.colors.placeholderColor}`};
|
|
233
|
-
|
|
243
|
+
transform: scale(${e=>e.$scale||1});
|
|
244
|
+
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
234
245
|
svg {
|
|
235
246
|
width: 100%;
|
|
236
247
|
height: 100%;
|
|
237
248
|
}
|
|
238
|
-
`,xa=({children:e,className:t,isInCandidateSelection:n,onAnimationEnd:r,placeholderRectangle:o})=>f(Ta,{$isInCandidateSelection:n,$placeholderRectangle:o,className:t,onAnimationEnd:r,children:e}),Aa={[re.CIRCLE_SOLID]:f(wa,{}),[re.ELLIPSE_SOLID]:f(Ea,{}),[re.MAN_SOLID]:f(ba,{}),[re.WOMAN_SOLID]:f(Ia,{}),[re.SQUARE_ROUNDED_DASH]:f(ka,{}),[re.SQUARE_ROUNDED_SOLID]:f(Oa,{}),[re.SQUARE_DASH]:f($a,{}),[re.SQUARE_SOLID]:f(Na,{})};function Ra({backdropHeight:e,backdropWidth:t,isBackdrop:n,placeholderRectangle:r,...o}){const{placeholder:i}=Se(),s=i.toLowerCase().includes("square"),c=i.toLowerCase().includes("rounded");return f(B,{children:[n&&f(
|
|
249
|
+
`,xa=({children:e,className:t,isInCandidateSelection:n,onAnimationEnd:r,placeholderRectangle:o,scale:i})=>f(Ta,{$isInCandidateSelection:n,$placeholderRectangle:o,$scale:i,className:t,onAnimationEnd:r,children:e}),Aa={[re.CIRCLE_SOLID]:f(wa,{}),[re.ELLIPSE_SOLID]:f(Ea,{}),[re.MAN_SOLID]:f(ba,{}),[re.WOMAN_SOLID]:f(Ia,{}),[re.SQUARE_ROUNDED_DASH]:f(ka,{}),[re.SQUARE_ROUNDED_SOLID]:f(Oa,{}),[re.SQUARE_DASH]:f($a,{}),[re.SQUARE_SOLID]:f(Na,{})};function Ra({backdropHeight:e,backdropWidth:t,isBackdrop:n,placeholderRectangle:r,...o}){const{placeholder:i}=Se(),s=i.toLowerCase().includes("square"),c=i.toLowerCase().includes("rounded");return f(B,{children:[n&&f(go,{height:e,width:t,children:f(Sa,{height:`${r.height*100}%`,isRounded:c,isSquare:s,width:`${r.width*100}%`,x:`${r.shiftX*100}%`,y:`${r.shiftY*100}%`})}),f(xa,{placeholderRectangle:r,...o,children:Aa[i]})]})}const La=()=>{const[e,t]=M(),[n,r]=M(!1),o=he(a=>{var d,l;t((d=a==null?void 0:a.detail)==null?void 0:d.cameraResolution);const u=(l=a==null?void 0:a.detail)==null?void 0:l.isMirroring;u!==void 0&&r(u)},[t]);Ye(Ue.CAMERA_PROPS_CHANGED,o);const[i,s]=M({code:L.FACE_NOT_PRESENT,isEscalated:!1}),c=he(a=>{var u,d;s({code:(u=a==null?void 0:a.detail)==null?void 0:u.instructionCode,isEscalated:((d=a==null?void 0:a.detail)==null?void 0:d.isEscalated)??!1})},[s]);return Ye(Ue.INSTRUCTION_CHANGED,c),{cameraResolution:e,instruction:i,isMirroring:n}},Pa=()=>{const[e,t]=M(tt.NEUTRAL),[n,r]=M($e.LOADING),[o,i]=M(),s=he(c=>{const{error:a,phase:u,state:d}=c.detail||{};u&&t(u),d&&r(d),a&&i(a)},[t,r,i]);return Ye(Ft.STATUS_CHANGED,s),{smilePhase:e,smileState:n,smileError:o}},yo=".3s",Da=".2s",Ma=".8s",vo=".4s",Co=".4s",Ha=".5s",Ua="1.5s",Fa=2e3,So=le`
|
|
239
250
|
0%, 100% {
|
|
240
251
|
transform: scale(1);
|
|
241
252
|
}
|
|
242
253
|
50% {
|
|
243
254
|
transform: scale(2);
|
|
244
255
|
}
|
|
245
|
-
`,
|
|
256
|
+
`,Ba=le`
|
|
246
257
|
0%, 100% {
|
|
247
258
|
transform: scale(1,1);
|
|
248
259
|
opacity: 1;
|
|
@@ -251,27 +262,27 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={CIRCLE_SOLI
|
|
|
251
262
|
transform: scale(1,0.1);
|
|
252
263
|
opacity: 0.5;
|
|
253
264
|
}
|
|
254
|
-
`,
|
|
265
|
+
`,wo=le`
|
|
255
266
|
0% {
|
|
256
267
|
stroke-dashoffset: 100;
|
|
257
268
|
}
|
|
258
269
|
100% {
|
|
259
270
|
stroke-dashoffset: 200;
|
|
260
271
|
}
|
|
261
|
-
`,
|
|
272
|
+
`,Eo=le`
|
|
262
273
|
from {
|
|
263
274
|
opacity: 1;
|
|
264
275
|
}
|
|
265
276
|
to {
|
|
266
277
|
opacity: 0;
|
|
267
278
|
}
|
|
268
|
-
`,
|
|
279
|
+
`,Wa=(e,t)=>{const[n,r]=M(!1);return Z(()=>{t===tt.SMILE&&r(!0);const o=setTimeout(()=>{r(!1)},Fa);return()=>clearTimeout(o)},[t]),t===tt.SMILE&&e===J.CANDIDATE_SELECTION?J.SMILE_CANDIDATE_SELECTION:n?J.SMILE:e};function za({eventName:e}){const[t,n]=M([]),r=he(o=>{var s;const i=(s=o.detail)==null?void 0:s.instructionCode;i&&n(c=>[...c,i])},[n]);return Ye(e,r),{escalatedInstructionCodes:t}}const ja=U.div`
|
|
269
280
|
position: absolute;
|
|
270
281
|
top: ${e=>e.$initialPosition.shiftY*100}%;
|
|
271
282
|
bottom: ${e=>(1-e.$initialPosition.shiftY-e.$initialPosition.height)*100}%;
|
|
272
283
|
left: ${e=>e.$initialPosition.shiftX*100}%;
|
|
273
284
|
right: ${e=>(1-e.$initialPosition.shiftX-e.$initialPosition.width)*100}%;
|
|
274
|
-
animation: ${
|
|
285
|
+
animation: ${Eo} ${Ha} ${Ua} ease-in-out;
|
|
275
286
|
animation-fill-mode: forwards;
|
|
276
287
|
z-index: 1;
|
|
277
288
|
|
|
@@ -282,7 +293,7 @@ to {
|
|
|
282
293
|
stroke-linecap: round;
|
|
283
294
|
stroke-dasharray: 100;
|
|
284
295
|
stroke-dashoffset: 100;
|
|
285
|
-
animation: ${
|
|
296
|
+
animation: ${wo} ${vo} ${Co} forwards;
|
|
286
297
|
}
|
|
287
298
|
#right-mouth {
|
|
288
299
|
fill: none;
|
|
@@ -293,18 +304,18 @@ to {
|
|
|
293
304
|
stroke-dashoffset: 100;
|
|
294
305
|
transform: scale(-1, 1);
|
|
295
306
|
transform-origin: 119.4px 191.7px;
|
|
296
|
-
animation: ${
|
|
307
|
+
animation: ${wo} ${vo} ${Co} forwards;
|
|
297
308
|
}
|
|
298
309
|
#left-eye {
|
|
299
310
|
transform-origin: 86.8px 96px;
|
|
300
311
|
fill: #ffffff;
|
|
301
|
-
animation: ${
|
|
312
|
+
animation: ${So} ${yo} forwards;
|
|
302
313
|
}
|
|
303
314
|
#right-eye {
|
|
304
315
|
transform-origin: 173.2px 96px;
|
|
305
316
|
fill: #ffffff;
|
|
306
317
|
animation:
|
|
307
|
-
${
|
|
308
|
-
${
|
|
318
|
+
${So} ${yo} forwards,
|
|
319
|
+
${Ba} ${Da} ${Ma} forwards;
|
|
309
320
|
}
|
|
310
|
-
`,Ga=({animate:e,initialPosition:t,show:n})=>{const[r,o]=M(!0);return Z(()=>{e&&o(!0)},[e]),!r||!n?null:f(ja,{$initialPosition:t,onAnimationEnd:i=>i.animationName===
|
|
321
|
+
`,Ga=({animate:e,initialPosition:t,show:n})=>{const[r,o]=M(!0);return Z(()=>{e&&o(!0)},[e]),!r||!n?null:f(ja,{$initialPosition:t,onAnimationEnd:i=>i.animationName===Eo.getName()&&o(!1),children:f("svg",{viewBox:"0 0 260 260",children:[f("circle",{cx:"86.8",cy:"96",id:"left-eye",r:"9.6"}),f("circle",{cx:"173.2",cy:"96",id:"right-eye",r:"9.6"}),f("path",{d:"M62.8,156.3c0,0,20.4,35.4,66.6,35.4",id:"left-mouth"}),f("path",{d:"M42.8,156.3c0,0,20.4,35.4,66.6,35.4",id:"right-mouth"})]})})},Va=()=>{const{cameraResolution:e,instruction:t}=La(),{smileError:n,smilePhase:r,smileState:o}=Pa(),i=Wa(t.code,r),{escalatedInstructionCodes:s}=za({eventName:Ft.INSTRUCTION_ESCALATED}),{escalatedInstructions:c,instructions:a}=Se(),u=t.code===J.CANDIDATE_SELECTION,d=Us({escalatedInstructions:c,instructions:a,currentInstruction:{...t,code:i}});if(o===$e.ERROR)return f(ho,{text:n==null?void 0:n.message});if((o===$e.RUNNING||o===$e.WAITING)&&e){const l=ea(e);return f(B,{children:[f(Ra,{backdropHeight:e.height,backdropWidth:e.width,isBackdrop:!0,isInCandidateSelection:u,placeholderRectangle:l}),f(Ga,{animate:s.includes("mouth_score_too_low"),initialPosition:l,show:r===tt.SMILE}),d&&f(ma,{cssBottom:(l.height+l.shiftY)*100,isAnimating:!1,isInCandidateSelection:u,isPortrait:e.width<e.height,children:d}),f(la,{customControlEvent:Ue.CONTROL,isSwitchCameraDisabled:u})]})}return f(Ca,{cameraHeight:e==null?void 0:e.height,cameraWidth:e==null?void 0:e.width,state:o})},Ya=e=>{var c,a;const t={...xs,...e==null?void 0:e.instructions},n={...As,...e==null?void 0:e.escalatedInstructions};t.mouth_score_too_low=t.smile,n.mouth_score_too_low=n.smile,t.mouth_score_too_high=t.keep_neutral_expression,n.mouth_score_too_high=n.keep_neutral_expression;const r={[$e.LOADING]:{...lo.loading,...(c=e==null?void 0:e.appStateInstructions)==null?void 0:c.loading},[$e.DONE]:{...lo.done,...(a=e==null?void 0:e.appStateInstructions)==null?void 0:a.done}},o=(e==null?void 0:e.backdropColor)??Rs,i=(e==null?void 0:e.showCameraButtons)??!1,s=Ks(e==null?void 0:e.theme);return{placeholder:re.CIRCLE_SOLID,backdropColor:o,instructions:t,appStateInstructions:r,showCameraButtons:i,theme:s,escalatedInstructions:n}};Mo(({props:e})=>{const t=Zs(Ue.VIDEO_ELEMENT_SIZE);return f(Vs,{uiProps:Ya(e),videoElementSize:t,children:f(Va,{})})},"x-dot-smile-liveness-ui",["props"])});
|