@tsocial/tvweb-sdk.tiki 5.9.1 → 5.9.2

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.
@@ -3,7 +3,7 @@
3
3
  object-assign
4
4
  (c) Sindre Sorhus
5
5
  @license MIT
6
- */var gm=Object.getOwnPropertySymbols,mm=Object.prototype.hasOwnProperty,vm=Object.prototype.propertyIsEnumerable;function ym(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var bm=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=ym(e),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))mm.call(r,a)&&(o[a]=r[a]);if(gm){n=gm(r);for(var s=0;s<n.length;s++)vm.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o},wm="function"==typeof Symbol&&Symbol.for,Cm=wm?Symbol.for("react.element"):60103,km=wm?Symbol.for("react.portal"):60106,Em=wm?Symbol.for("react.fragment"):60107,Sm=wm?Symbol.for("react.strict_mode"):60108,Bm=wm?Symbol.for("react.profiler"):60114,_m=wm?Symbol.for("react.provider"):60109,Am=wm?Symbol.for("react.context"):60110,xm=wm?Symbol.for("react.forward_ref"):60112,Tm=wm?Symbol.for("react.suspense"):60113,Im=wm?Symbol.for("react.memo"):60115,Pm=wm?Symbol.for("react.lazy"):60116,Rm="function"==typeof Symbol&&Symbol.iterator;function Nm(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Om={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lm={};function Mm(e,t,r){this.props=e,this.context=t,this.refs=Lm,this.updater=r||Om}function Dm(){}function Um(e,t,r){this.props=e,this.context=t,this.refs=Lm,this.updater=r||Om}Mm.prototype.isReactComponent={},Mm.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(Nm(85));this.updater.enqueueSetState(this,e,t,"setState")},Mm.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Dm.prototype=Mm.prototype;var jm=Um.prototype=new Dm;jm.constructor=Um,bm(jm,Mm.prototype),jm.isPureReactComponent=!0;var Fm={current:null},Vm=Object.prototype.hasOwnProperty,zm={key:!0,ref:!0,__self:!0,__source:!0};function Km(e,t,r){var n,o={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)Vm.call(t,n)&&!zm.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:Cm,type:e,key:i,ref:a,props:o,_owner:Fm.current}}function Hm(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cm}var qm=/\/+/g,Wm=[];function Qm(e,t,r,n){if(Wm.length){var o=Wm.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function Gm(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>Wm.length&&Wm.push(e)}function Xm(e,t,r,n){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Cm:case km:i=!0}}if(i)return r(n,e,""===t?"."+$m(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var s=t+$m(o=e[a],a);i+=Xm(o,s,r,n)}else if(null===e||"object"!=typeof e?s=null:s="function"==typeof(s=Rm&&e[Rm]||e["@@iterator"])?s:null,"function"==typeof s)for(e=s.call(e),a=0;!(o=e.next()).done;)i+=Xm(o=o.value,s=t+$m(o,a++),r,n);else if("object"===o)throw r=""+e,Error(Nm(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return i}function Ym(e,t,r){return null==e?0:Xm(e,"",t,r)}function $m(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function Zm(e,t){e.func.call(e.context,t,e.count++)}function Jm(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?ev(e,n,r,(function(e){return e})):null!=e&&(Hm(e)&&(e=function(e,t){return{$$typeof:Cm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(qm,"$&/")+"/")+r)),n.push(e))}function ev(e,t,r,n,o){var i="";null!=r&&(i=(""+r).replace(qm,"$&/")+"/"),Ym(e,Jm,t=Qm(t,i,n,o)),Gm(t)}var tv={current:null};function rv(){var e=tv.current;if(null===e)throw Error(Nm(321));return e}var nv={Children:{map:function(e,t,r){if(null==e)return e;var n=[];return ev(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Ym(e,Zm,t=Qm(null,null,t,r)),Gm(t)},count:function(e){return Ym(e,(function(){return null}),null)},toArray:function(e){var t=[];return ev(e,t,null,(function(e){return e})),t},only:function(e){if(!Hm(e))throw Error(Nm(143));return e}},Component:Mm,Fragment:Em,Profiler:Bm,PureComponent:Um,StrictMode:Sm,Suspense:Tm,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:tv,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Fm,IsSomeRendererActing:{current:!1},assign:bm},cloneElement:function(e,t,r){if(null==e)throw Error(Nm(267,e));var n=bm({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Fm.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)Vm.call(t,c)&&!zm.hasOwnProperty(c)&&(n[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)n.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:Cm,type:e.type,key:o,ref:i,props:n,_owner:a}},createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:Am,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:_m,_context:e},e.Consumer=e},createElement:Km,createFactory:function(e){var t=Km.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:xm,render:e}},isValidElement:Hm,lazy:function(e){return{$$typeof:Pm,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:Im,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return rv().useCallback(e,t)},useContext:function(e,t){return rv().useContext(e,t)},useDebugValue:function(){},useEffect:function(e,t){return rv().useEffect(e,t)},useImperativeHandle:function(e,t,r){return rv().useImperativeHandle(e,t,r)},useLayoutEffect:function(e,t){return rv().useLayoutEffect(e,t)},useMemo:function(e,t){return rv().useMemo(e,t)},useReducer:function(e,t,r){return rv().useReducer(e,t,r)},useRef:function(e){return rv().useRef(e)},useState:function(e){return rv().useState(e)},version:"16.14.0"},ov=(r((function(e,t){})),r((function(e){e.exports=nv}))),iv="function"==typeof Symbol&&Symbol.for,av=iv?Symbol.for("react.element"):60103,sv=iv?Symbol.for("react.portal"):60106,cv=iv?Symbol.for("react.fragment"):60107,uv=iv?Symbol.for("react.strict_mode"):60108,lv=iv?Symbol.for("react.profiler"):60114,dv=iv?Symbol.for("react.provider"):60109,fv=iv?Symbol.for("react.context"):60110,pv=iv?Symbol.for("react.async_mode"):60111,hv=iv?Symbol.for("react.concurrent_mode"):60111,gv=iv?Symbol.for("react.forward_ref"):60112,mv=iv?Symbol.for("react.suspense"):60113,vv=iv?Symbol.for("react.suspense_list"):60120,yv=iv?Symbol.for("react.memo"):60115,bv=iv?Symbol.for("react.lazy"):60116,wv=iv?Symbol.for("react.block"):60121,Cv=iv?Symbol.for("react.fundamental"):60117,kv=iv?Symbol.for("react.responder"):60118,Ev=iv?Symbol.for("react.scope"):60119;function Sv(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case av:switch(e=e.type){case pv:case hv:case cv:case lv:case uv:case mv:return e;default:switch(e=e&&e.$$typeof){case fv:case gv:case bv:case yv:case dv:return e;default:return t}}case sv:return t}}}function Bv(e){return Sv(e)===hv}var _v={AsyncMode:pv,ConcurrentMode:hv,ContextConsumer:fv,ContextProvider:dv,Element:av,ForwardRef:gv,Fragment:cv,Lazy:bv,Memo:yv,Portal:sv,Profiler:lv,StrictMode:uv,Suspense:mv,isAsyncMode:function(e){return Bv(e)||Sv(e)===pv},isConcurrentMode:Bv,isContextConsumer:function(e){return Sv(e)===fv},isContextProvider:function(e){return Sv(e)===dv},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===av},isForwardRef:function(e){return Sv(e)===gv},isFragment:function(e){return Sv(e)===cv},isLazy:function(e){return Sv(e)===bv},isMemo:function(e){return Sv(e)===yv},isPortal:function(e){return Sv(e)===sv},isProfiler:function(e){return Sv(e)===lv},isStrictMode:function(e){return Sv(e)===uv},isSuspense:function(e){return Sv(e)===mv},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===cv||e===hv||e===lv||e===uv||e===mv||e===vv||"object"==typeof e&&null!==e&&(e.$$typeof===bv||e.$$typeof===yv||e.$$typeof===dv||e.$$typeof===fv||e.$$typeof===gv||e.$$typeof===Cv||e.$$typeof===kv||e.$$typeof===Ev||e.$$typeof===wv)},typeOf:Sv};r((function(e,t){})),r((function(e){e.exports=_v})),Function.call.bind(Object.prototype.hasOwnProperty);function Av(){}function xv(){}xv.resetWarningCache=Av;var Tv=r((function(e){e.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xv,resetWarningCache:Av};return r.PropTypes=r,r}()})),Iv=60103,Pv=60106,Rv=60107,Nv=60108,Ov=60114,Lv=60109,Mv=60110,Dv=60112,Uv=60113,jv=60120,Fv=60115,Vv=60116,zv=60121,Kv=60122,Hv=60117,qv=60129,Wv=60131;if("function"==typeof Symbol&&Symbol.for){var Qv=Symbol.for;Iv=Qv("react.element"),Pv=Qv("react.portal"),Rv=Qv("react.fragment"),Nv=Qv("react.strict_mode"),Ov=Qv("react.profiler"),Lv=Qv("react.provider"),Mv=Qv("react.context"),Dv=Qv("react.forward_ref"),Uv=Qv("react.suspense"),jv=Qv("react.suspense_list"),Fv=Qv("react.memo"),Vv=Qv("react.lazy"),zv=Qv("react.block"),Kv=Qv("react.server.block"),Hv=Qv("react.fundamental"),qv=Qv("react.debug_trace_mode"),Wv=Qv("react.legacy_hidden")}function Gv(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Iv:switch(e=e.type){case Rv:case Ov:case Nv:case Uv:case jv:return e;default:switch(e=e&&e.$$typeof){case Mv:case Dv:case Vv:case Fv:case Lv:return e;default:return t}}case Pv:return t}}}var Xv={ContextConsumer:Mv,ContextProvider:Lv,Element:Iv,ForwardRef:Dv,Fragment:Rv,Lazy:Vv,Memo:Fv,Portal:Pv,Profiler:Ov,StrictMode:Nv,Suspense:Uv,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return Gv(e)===Mv},isContextProvider:function(e){return Gv(e)===Lv},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Iv},isForwardRef:function(e){return Gv(e)===Dv},isFragment:function(e){return Gv(e)===Rv},isLazy:function(e){return Gv(e)===Vv},isMemo:function(e){return Gv(e)===Fv},isPortal:function(e){return Gv(e)===Pv},isProfiler:function(e){return Gv(e)===Ov},isStrictMode:function(e){return Gv(e)===Nv},isSuspense:function(e){return Gv(e)===Uv},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Rv||e===Ov||e===qv||e===Nv||e===Uv||e===jv||e===Wv||"object"==typeof e&&null!==e&&(e.$$typeof===Vv||e.$$typeof===Fv||e.$$typeof===Lv||e.$$typeof===Mv||e.$$typeof===Dv||e.$$typeof===Hv||e.$$typeof===zv||e[0]===Kv)},typeOf:Gv},Yv=(r((function(e,t){})),r((function(e){e.exports=Xv})));function $v(e){function t(e,n,c,u,f){for(var p,h,g,m,w,k=0,E=0,S=0,B=0,_=0,R=0,O=g=p=0,M=0,D=0,U=0,j=0,F=c.length,V=F-1,z="",K="",H="",q="";M<F;){if(h=c.charCodeAt(M),M===V&&0!==E+B+S+k&&(0!==E&&(h=47===E?10:47),B=S=k=0,F++,V++),0===E+B+S+k){if(M===V&&(0<D&&(z=z.replace(d,"")),0<z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:z+=c.charAt(M)}h=59}switch(h){case 123:for(p=(z=z.trim()).charCodeAt(0),g=1,j=++M;M<F;){switch(h=c.charCodeAt(M)){case 123:g++;break;case 125:g--;break;case 47:switch(h=c.charCodeAt(M+1)){case 42:case 47:e:{for(O=M+1;O<V;++O)switch(c.charCodeAt(O)){case 47:if(42===h&&42===c.charCodeAt(O-1)&&M+2!==O){M=O+1;break e}break;case 10:if(47===h){M=O+1;break e}}M=O}}break;case 91:h++;case 40:h++;case 34:case 39:for(;M++<V&&c.charCodeAt(M)!==h;);}if(0===g)break;M++}switch(g=c.substring(j,M),0===p&&(p=(z=z.replace(l,"").trim()).charCodeAt(0)),p){case 64:switch(0<D&&(z=z.replace(d,"")),h=z.charCodeAt(1)){case 100:case 109:case 115:case 45:D=n;break;default:D=P}if(j=(g=t(n,D,g,h,f+1)).length,0<N&&(w=s(3,g,D=r(P,z,U),n,x,A,j,h,f,u),z=D.join(""),void 0!==w&&0===(j=(g=w.trim()).length)&&(h=0,g="")),0<j)switch(h){case 115:z=z.replace(C,a);case 100:case 109:case 45:g=z+"{"+g+"}";break;case 107:g=(z=z.replace(v,"$1 $2"))+"{"+g+"}",g=1===I||2===I&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=z+g,112===u&&(K+=g,g="")}else g="";break;default:g=t(n,r(n,z,U),g,u,f+1)}H+=g,g=U=D=O=p=0,z="",h=c.charCodeAt(++M);break;case 125:case 59:if(1<(j=(z=(0<D?z.replace(d,""):z).trim()).length))switch(0===O&&(p=z.charCodeAt(0),45===p||96<p&&123>p)&&(j=(z=z.replace(" ",":")).length),0<N&&void 0!==(w=s(1,z,n,e,x,A,K.length,u,f,u))&&0===(j=(z=w.trim()).length)&&(z="\0\0"),p=z.charCodeAt(0),h=z.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){q+=z+c.charAt(M);break}default:58!==z.charCodeAt(j-1)&&(K+=o(z,p,h,z.charCodeAt(2)))}U=D=O=p=0,z="",h=c.charCodeAt(++M)}}switch(h){case 13:case 10:47===E?E=0:0===1+p&&107!==u&&0<z.length&&(D=1,z+="\0"),0<N*L&&s(0,z,n,e,x,A,K.length,u,f,u),A=1,x++;break;case 59:case 125:if(0===E+B+S+k){A++;break}default:switch(A++,m=c.charAt(M),h){case 9:case 32:if(0===B+k+E)switch(_){case 44:case 58:case 9:case 32:m="";break;default:32!==h&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===B+E+k&&(D=U=1,m="\f"+m);break;case 108:if(0===B+E+k+T&&0<O)switch(M-O){case 2:112===_&&58===c.charCodeAt(M-3)&&(T=_);case 8:111===R&&(T=R)}break;case 58:0===B+E+k&&(O=M);break;case 44:0===E+S+B+k&&(D=1,m+="\r");break;case 34:case 39:0===E&&(B=B===h?0:0===B?h:B);break;case 91:0===B+E+S&&k++;break;case 93:0===B+E+S&&k--;break;case 41:0===B+E+k&&S--;break;case 40:if(0===B+E+k){if(0===p)switch(2*_+3*R){case 533:break;default:p=1}S++}break;case 64:0===E+S+B+k+O+g&&(g=1);break;case 42:case 47:if(!(0<B+k+S))switch(E){case 0:switch(2*h+3*c.charCodeAt(M+1)){case 235:E=47;break;case 220:j=M,E=42}break;case 42:47===h&&42===_&&j+2!==M&&(33===c.charCodeAt(j+2)&&(K+=c.substring(j,M+1)),m="",E=0)}}0===E&&(z+=m)}R=_,_=h,M++}if(0<(j=K.length)){if(D=n,0<N&&(void 0!==(w=s(2,K,D,e,x,A,j,u,f,u))&&0===(K=w).length))return q+K+H;if(K=D.join(",")+"{"+K+"}",0!=I*T){switch(2!==I||i(K,2)||(T=0),T){case 111:K=K.replace(b,":-moz-$1")+K;break;case 112:K=K.replace(y,"::-webkit-input-$1")+K.replace(y,"::-moz-$1")+K.replace(y,":-ms-input-$1")+K}T=0}}return q+K+H}function r(e,t,r){var o=t.trim().split(g);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===I||2===I&&i(c,1)?"-webkit-"+c+c:c}if(0===I||2===I&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(_,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(E,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(E,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===B.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),O(2!==t?n:n.replace(S,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var d,f=0,p=t;f<N;++f)switch(d=R[f].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?I=1:(I=2,O=e):I=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<N){var o=s(-1,r,n,n,x,A,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(P,n,r,0,0);return 0<N&&(void 0!==(o=s(-2,i,n,n,x,A,i.length,0,0,0))&&(i=o)),"",T=0,A=x=1,i}var l=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,E=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,B=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,A=1,x=1,T=0,I=1,P=[],R=[],N=0,O=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:N=R.length=0;break;default:if("function"==typeof t)R[N++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else L=0|!!t}return e},u.set=c,void 0!==e&&c(e),u}var Zv={animationIterationCount: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};var Jv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,ey=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return Jv.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ty="function"==typeof Symbol&&Symbol.for,ry=ty?Symbol.for("react.element"):60103,ny=ty?Symbol.for("react.portal"):60106,oy=ty?Symbol.for("react.fragment"):60107,iy=ty?Symbol.for("react.strict_mode"):60108,ay=ty?Symbol.for("react.profiler"):60114,sy=ty?Symbol.for("react.provider"):60109,cy=ty?Symbol.for("react.context"):60110,uy=ty?Symbol.for("react.async_mode"):60111,ly=ty?Symbol.for("react.concurrent_mode"):60111,dy=ty?Symbol.for("react.forward_ref"):60112,fy=ty?Symbol.for("react.suspense"):60113,py=ty?Symbol.for("react.suspense_list"):60120,hy=ty?Symbol.for("react.memo"):60115,gy=ty?Symbol.for("react.lazy"):60116,my=ty?Symbol.for("react.block"):60121,vy=ty?Symbol.for("react.fundamental"):60117,yy=ty?Symbol.for("react.responder"):60118,by=ty?Symbol.for("react.scope"):60119;function wy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ry:switch(e=e.type){case uy:case ly:case oy:case ay:case iy:case fy:return e;default:switch(e=e&&e.$$typeof){case cy:case dy:case gy:case hy:case sy:return e;default:return t}}case ny:return t}}}function Cy(e){return wy(e)===ly}var ky={AsyncMode:uy,ConcurrentMode:ly,ContextConsumer:cy,ContextProvider:sy,Element:ry,ForwardRef:dy,Fragment:oy,Lazy:gy,Memo:hy,Portal:ny,Profiler:ay,StrictMode:iy,Suspense:fy,isAsyncMode:function(e){return Cy(e)||wy(e)===uy},isConcurrentMode:Cy,isContextConsumer:function(e){return wy(e)===cy},isContextProvider:function(e){return wy(e)===sy},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ry},isForwardRef:function(e){return wy(e)===dy},isFragment:function(e){return wy(e)===oy},isLazy:function(e){return wy(e)===gy},isMemo:function(e){return wy(e)===hy},isPortal:function(e){return wy(e)===ny},isProfiler:function(e){return wy(e)===ay},isStrictMode:function(e){return wy(e)===iy},isSuspense:function(e){return wy(e)===fy},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===oy||e===ly||e===ay||e===iy||e===fy||e===py||"object"==typeof e&&null!==e&&(e.$$typeof===gy||e.$$typeof===hy||e.$$typeof===sy||e.$$typeof===cy||e.$$typeof===dy||e.$$typeof===vy||e.$$typeof===yy||e.$$typeof===by||e.$$typeof===my)},typeOf:wy},Ey=(r((function(e,t){})),r((function(e){e.exports=ky}))),Sy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},By={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ay={};function xy(e){return Ey.isMemo(e)?_y:Ay[e.$$typeof]||Sy}Ay[Ey.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ay[Ey.Memo]=_y;var Ty=Object.defineProperty,Iy=Object.getOwnPropertyNames,Py=Object.getOwnPropertySymbols,Ry=Object.getOwnPropertyDescriptor,Ny=Object.getPrototypeOf,Oy=Object.prototype;var Ly=function e(t,r,n){if("string"!=typeof r){if(Oy){var o=Ny(r);o&&o!==Oy&&e(t,o,n)}var i=Iy(r);Py&&(i=i.concat(Py(r)));for(var a=xy(t),s=xy(r),c=0;c<i.length;++c){var u=i[c];if(!(By[u]||n&&n[u]||s&&s[u]||a&&a[u])){var l=Ry(r,u);try{Ty(t,u,l)}catch(e){}}}}return t};function My(){return(My=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Dy=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},Uy=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Yv.typeOf(e)},jy=Object.freeze([]),Fy=Object.freeze({});function Vy(e){return"function"==typeof e}function zy(e){return e.displayName||e.name||"Component"}function Ky(e){return e&&"string"==typeof e.styledComponentId}var Hy="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",qy="undefined"!=typeof window&&"HTMLElement"in window,Wy=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),Qy={};function Gy(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var Xy=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&Gy(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),Yy=new Map,$y=new Map,Zy=1,Jy=function(e){if(Yy.has(e))return Yy.get(e);for(;$y.has(Zy);)Zy++;var t=Zy++;return Yy.set(e,t),$y.set(t,e),t},eb=function(e){return $y.get(e)},tb=function(e,t){Yy.set(e,t),$y.set(t,e)},rb="style["+Hy+'][data-styled-version="5.2.1"]',nb=new RegExp("^"+Hy+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),ob=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},ib=function(e,t){for(var r=t.innerHTML.split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(nb);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(tb(u,c),ob(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},ab=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Hy))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Hy,"active"),n.setAttribute("data-styled-version","5.2.1");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},sb=function(){function e(e){var t=this.element=ab(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}Gy(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),cb=function(){function e(e){var t=this.element=ab(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ub=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),lb=qy,db={isServer:!qy,useCSSOMInjection:!Wy},fb=function(){function e(e,t,r){void 0===e&&(e=Fy),void 0===t&&(t={}),this.options=My({},db,{},e),this.gs=t,this.names=new Map(r),!this.options.isServer&&qy&&lb&&(lb=!1,function(e){for(var t=document.querySelectorAll(rb),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(Hy)&&(ib(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Jy(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(My({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new ub(o):n?new sb(o):new cb(o),new Xy(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Jy(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Jy(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Jy(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=eb(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(void 0!==a&&0!==s.length){var c=Hy+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),pb=/(a)(d)/gi,hb=function(e){return String.fromCharCode(e+(e>25?39:97))};function gb(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=hb(t%52)+r;return(hb(t%52)+r).replace(pb,"$1-$2")}var mb=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},vb=function(e){return mb(5381,e)};function yb(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Vy(r)&&!Ky(r))return!1}return!0}var bb=vb("5.2.1"),wb=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&yb(e),this.componentId=t,this.baseHash=mb(bb,t),this.baseStyle=r,fb.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Mb(this.rules,e,t,r).join(""),a=gb(mb(this.baseHash,i.length)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=mb(this.baseHash,r.hash),l="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)l+=f;else if(f){var p=Mb(f,e,t,r),h=Array.isArray(p)?p.join(""):p;u=mb(u,h+d),l+=h}}if(l){var g=gb(u>>>0);if(!t.hasNameForId(n,g)){var m=r(l,"."+g,void 0,n);t.insertRules(n,g,m)}o.push(g)}}return o.join(" ")},e}(),Cb=/^\s*\/\/.*$/gm,kb=[":","[",".","#"];var Eb=ov.createContext(),Sb=(Eb.Consumer,ov.createContext()),Bb=(Sb.Consumer,new fb),_b=function(e){var t,r,n,o,i=void 0===e?Fy:e,a=i.options,s=void 0===a?Fy:a,c=i.plugins,u=void 0===c?jy:c,l=new $v(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,d){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,n,i){return 0===n&&kb.includes(i[r.length])||i.match(o)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var c=e.replace(Cb,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=u.length?u.reduce((function(e,t){return t.name||Gy(15),mb(e,t.name)}),5381).toString():"",h}();function Ab(){return ov.useContext(Eb)||Bb}function xb(){return ov.useContext(Sb)||_b}var Tb=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=_b);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Gy(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=_b),this.name+e.hash},e}(),Ib=/([A-Z])/,Pb=/([A-Z])/g,Rb=/^ms-/,Nb=function(e){return"-"+e.toLowerCase()};function Ob(e){return Ib.test(e)?e.replace(Pb,Nb).replace(Rb,"-ms-"):e}var Lb=function(e){return null==e||!1===e||""===e};function Mb(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Mb(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Lb(e)?"":Ky(e)?"."+e.styledComponentId:Vy(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:Mb(e(t),t,r,n):e instanceof Tb?r?(e.inject(r,n),e.getName(n)):e:Uy(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Lb(t[a])&&(Uy(t[a])?i.push.apply(i,e(t[a],a)):Vy(t[a])?i.push(Ob(a)+":",t[a],";"):i.push(Ob(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in Zv?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}function Db(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Vy(e)||Uy(e)?Mb(Dy(jy,[e].concat(r))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Mb(Dy(e,r))}var Ub=function(e,t,r){return void 0===r&&(r=Fy),e.theme!==r.theme&&e.theme||t||r.theme},jb=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fb=/(^-|-$)/g;function Vb(e){return e.replace(jb,"-").replace(Fb,"")}var zb=function(e){return gb(vb(e)>>>0)};function Kb(e){return"string"==typeof e&&!0}var Hb=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},qb=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Wb(e,t,r){var n=e[r];Hb(t)&&Hb(n)?Qb(n,t):e[r]=t}function Qb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Hb(a))for(var s in a)qb(s)&&Wb(e,a[s],s)}return e}var Gb=ov.createContext();Gb.Consumer;function Xb(e){var t=ov.useContext(Gb),r=ov.useMemo((function(){return function(e,t){return e?Vy(e)?e(t):Array.isArray(e)||"object"!=typeof e?Gy(8):t?My({},t,{},e):e:Gy(14)}(e.theme,t)}),[e.theme,t]);return e.children?ov.createElement(Gb.Provider,{value:r},e.children):null}var Yb={};function $b(e,t,r){var n=Ky(e),o=!Kb(e),i=t.attrs,a=void 0===i?jy:i,s=t.componentId,c=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Vb(e);Yb[r]=(Yb[r]||0)+1;var n=r+"-"+zb("5.2.1"+r+Yb[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,u=t.displayName,l=void 0===u?function(e){return Kb(e)?"styled."+e:"Styled("+zy(e)+")"}(e):u,d=t.displayName&&t.componentId?Vb(t.displayName)+"-"+t.componentId:t.componentId||c,f=n&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,p=t.shouldForwardProp;n&&e.shouldForwardProp&&(p=t.shouldForwardProp?function(r,n){return e.shouldForwardProp(r,n)&&t.shouldForwardProp(r,n)}:e.shouldForwardProp);var h,g=new wb(r,d,n?e.componentStyle:void 0),m=g.isStatic&&0===a.length,v=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,l=e.target,d=function(e,t,r){void 0===e&&(e=Fy);var n=My({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in Vy(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(Ub(t,ov.useContext(Gb),a)||Fy,t,o),f=d[0],p=d[1],h=function(e,t,r,n){var o=Ab(),i=xb();return t?e.generateAndInjectStyles(Fy,o,i):e.generateAndInjectStyles(r,o,i)}(i,n,f),g=r,m=p.$as||t.$as||p.as||t.as||l,v=Kb(m),y=p!==t?My({},t,{},p):t,b={};for(var w in y)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?b.as=y[w]:(c?c(w,ey):!v||ey(w))&&(b[w]=y[w]));return t.style&&p.style!==t.style&&(b.style=My({},t.style,{},p.style)),b.className=Array.prototype.concat(s,u,h!==u?h:null,t.className,p.className).filter(Boolean).join(" "),b.ref=g,ov.createElement(m,b)}(h,e,t,m)};return v.displayName=l,(h=ov.forwardRef(v)).attrs=f,h.componentStyle=g,h.displayName=l,h.shouldForwardProp=p,h.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):jy,h.styledComponentId=d,h.target=n?e.target:e,h.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Kb(e)?e:Vb(zy(e)));return $b(e,My({},o,{attrs:f,componentId:i}),r)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Qb({},e.defaultProps,t):t}}),h.toString=function(){return"."+h.styledComponentId},o&&Ly(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var Zb=function(e){return function e(t,r,n){if(void 0===n&&(n=Fy),!Yv.isValidElementType(r))return Gy(1,String(r));var o=function(){return t(r,n,Db.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,My({},n,{},o))},o.attrs=function(o){return e(t,r,My({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}($b,e)};["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Zb[e]=Zb(e)}));var Jb=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=yb(e),fb.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(Mb(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&fb.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function ew(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Db.apply(void 0,[e].concat(r)),i="sc-global-"+zb(JSON.stringify(o)),a=new Jb(o,i);function s(e){var t=Ab(),r=xb(),n=ov.useContext(Gb),o=ov.useRef(t.allocateGSInstance(i)).current;return ov.useLayoutEffect((function(){return c(o,e,t,n,r),function(){return a.removeStyles(o,t)}}),[o,e,t,n,r]),null}function c(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Qy,r,o);else{var i=My({},t,{theme:Ub(t,n,s.defaultProps)});a.renderStyles(e,i,r,o)}}return ov.memo(s)}function tw(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Db.apply(void 0,[e].concat(r)).join(""),i=zb(o);return new Tb(i,o)}var rw=r((function(e,t){var r,n,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,u=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(u,0),e}},l=Date.now();t.unstable_now=function(){return Date.now()-l},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(u,0))},n=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var m=f.now();t.unstable_now=function(){return f.now()-m}}var v=!1,y=null,b=-1,w=5,C=0;i=function(){return t.unstable_now()>=C},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,E=k.port2;k.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();C=e+w;try{y(!0,e)?E.postMessage(null):(v=!1,y=null)}catch(e){throw E.postMessage(null),e}}else v=!1},r=function(e){y=e,v||(v=!0,E.postMessage(null))},n=function(e,r){b=p((function(){e(t.unstable_now())}),r)},o=function(){h(b),b=-1}}function S(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,o=e[n];if(!(void 0!==o&&0<A(o,t)))break e;e[n]=t,e[r]=o,r=n}}function B(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var i=2*(n+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>A(a,r))void 0!==c&&0>A(c,a)?(e[n]=c,e[s]=r,n=s):(e[n]=a,e[i]=r,n=i);else{if(!(void 0!==c&&0>A(c,r)))break e;e[n]=c,e[s]=r,n=s}}}return t}return null}function A(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var x=[],T=[],I=1,P=null,R=3,N=!1,O=!1,L=!1;function M(e){for(var t=B(T);null!==t;){if(null===t.callback)_(T);else{if(!(t.startTime<=e))break;_(T),t.sortIndex=t.expirationTime,S(x,t)}t=B(T)}}function D(e){if(L=!1,M(e),!O)if(null!==B(x))O=!0,r(U);else{var t=B(T);null!==t&&n(D,t.startTime-e)}}function U(e,r){O=!1,L&&(L=!1,o()),N=!0;var a=R;try{for(M(r),P=B(x);null!==P&&(!(P.expirationTime>r)||e&&!i());){var s=P.callback;if(null!==s){P.callback=null,R=P.priorityLevel;var c=s(P.expirationTime<=r);r=t.unstable_now(),"function"==typeof c?P.callback=c:P===B(x)&&_(x),M(r)}else _(x);P=B(x)}if(null!==P)var u=!0;else{var l=B(T);null!==l&&n(D,l.startTime-r),u=!1}return u}finally{P=null,R=a,N=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||N||(O=!0,r(U))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return B(x)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var r=R;R=t;try{return e()}finally{R=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=R;R=e;try{return t()}finally{R=r}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:j(e)}else a=j(e),c=s;return e={id:I++,callback:i,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,S(T,e),null===B(x)&&e===B(T)&&(L?o():L=!0,n(D,c-s))):(e.sortIndex=a,S(x,e),O||N||(O=!0,r(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var r=B(x);return r!==P&&null!==P&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<P.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=R;return function(){var r=R;R=t;try{return e.apply(this,arguments)}finally{R=r}}}})),nw=(r((function(e,t){})),r((function(e){e.exports=rw})));function ow(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!ov)throw Error(ow(227));function iw(e,t,r,n,o,i,a,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var aw=!1,sw=null,cw=!1,uw=null,lw={onError:function(e){aw=!0,sw=e}};function dw(e,t,r,n,o,i,a,s,c){aw=!1,sw=null,iw.apply(lw,arguments)}var fw=null,pw=null,hw=null;function gw(e,t,r){var n=e.type||"unknown-event";e.currentTarget=hw(r),function(e,t,r,n,o,i,a,s,c){if(dw.apply(this,arguments),aw){if(!aw)throw Error(ow(198));var u=sw;aw=!1,sw=null,cw||(cw=!0,uw=u)}}(n,t,void 0,e),e.currentTarget=null}var mw=null,vw={};function yw(){if(mw)for(var e in vw){var t=vw[e],r=mw.indexOf(e);if(!(-1<r))throw Error(ow(96,e));if(!ww[r]){if(!t.extractEvents)throw Error(ow(97,e));for(var n in ww[r]=t,r=t.eventTypes){var o=void 0,i=r[n],a=t,s=n;if(Cw.hasOwnProperty(s))throw Error(ow(99,s));Cw[s]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&bw(c[o],a,s);o=!0}else i.registrationName?(bw(i.registrationName,a,s),o=!0):o=!1;if(!o)throw Error(ow(98,n,e))}}}}function bw(e,t,r){if(kw[e])throw Error(ow(100,e));kw[e]=t,Ew[e]=t.eventTypes[r].dependencies}var ww=[],Cw={},kw={},Ew={};function Sw(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!vw.hasOwnProperty(t)||vw[t]!==n){if(vw[t])throw Error(ow(102,t));vw[t]=n,r=!0}}r&&yw()}var Bw=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),_w=null,Aw=null,xw=null;function Tw(e){if(e=pw(e)){if("function"!=typeof _w)throw Error(ow(280));var t=e.stateNode;t&&(t=fw(t),_w(e.stateNode,e.type,t))}}function Iw(e){Aw?xw?xw.push(e):xw=[e]:Aw=e}function Pw(){if(Aw){var e=Aw,t=xw;if(xw=Aw=null,Tw(e),t)for(e=0;e<t.length;e++)Tw(t[e])}}function Rw(e,t){return e(t)}function Nw(e,t,r,n,o){return e(t,r,n,o)}function Ow(){}var Lw=Rw,Mw=!1,Dw=!1;function Uw(){null===Aw&&null===xw||(Ow(),Pw())}function jw(e,t,r){if(Dw)return e(t,r);Dw=!0;try{return Lw(e,t,r)}finally{Dw=!1,Uw()}}var Fw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Vw=Object.prototype.hasOwnProperty,zw={},Kw={};function Hw(e,t,r,n,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i}var qw={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){qw[e]=new Hw(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];qw[t]=new Hw(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){qw[e]=new Hw(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){qw[e]=new Hw(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){qw[e]=new Hw(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){qw[e]=new Hw(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){qw[e]=new Hw(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){qw[e]=new Hw(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){qw[e]=new Hw(e,5,!1,e.toLowerCase(),null,!1)}));var Ww=/[\-:]([a-z])/g;function Qw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Ww,Qw);qw[t]=new Hw(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Ww,Qw);qw[t]=new Hw(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Ww,Qw);qw[t]=new Hw(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){qw[e]=new Hw(e,1,!1,e.toLowerCase(),null,!1)})),qw.xlinkHref=new Hw("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){qw[e]=new Hw(e,1,!1,e.toLowerCase(),null,!0)}));var Gw=ov.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Xw(e,t,r,n){var o=qw.hasOwnProperty(t)?qw[t]:null;(null!==o?0===o.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!Vw.call(Kw,e)||!Vw.call(zw,e)&&(Fw.test(e)?Kw[e]=!0:(zw[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}Gw.hasOwnProperty("ReactCurrentDispatcher")||(Gw.ReactCurrentDispatcher={current:null}),Gw.hasOwnProperty("ReactCurrentBatchConfig")||(Gw.ReactCurrentBatchConfig={suspense:null});var Yw=/^(.*)[\\\/]/,$w="function"==typeof Symbol&&Symbol.for,Zw=$w?Symbol.for("react.element"):60103,Jw=$w?Symbol.for("react.portal"):60106,eC=$w?Symbol.for("react.fragment"):60107,tC=$w?Symbol.for("react.strict_mode"):60108,rC=$w?Symbol.for("react.profiler"):60114,nC=$w?Symbol.for("react.provider"):60109,oC=$w?Symbol.for("react.context"):60110,iC=$w?Symbol.for("react.concurrent_mode"):60111,aC=$w?Symbol.for("react.forward_ref"):60112,sC=$w?Symbol.for("react.suspense"):60113,cC=$w?Symbol.for("react.suspense_list"):60120,uC=$w?Symbol.for("react.memo"):60115,lC=$w?Symbol.for("react.lazy"):60116,dC=$w?Symbol.for("react.block"):60121,fC="function"==typeof Symbol&&Symbol.iterator;function pC(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fC&&e[fC]||e["@@iterator"])?e:null}function hC(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case eC:return"Fragment";case Jw:return"Portal";case rC:return"Profiler";case tC:return"StrictMode";case sC:return"Suspense";case cC:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case oC:return"Context.Consumer";case nC:return"Context.Provider";case aC:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case uC:return hC(e.type);case dC:return hC(e.render);case lC:if(e=1===e._status?e._result:null)return hC(e)}return null}function gC(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,o=e._debugSource,i=hC(e.type);r=null,n&&(r=hC(n.type)),n=i,i="",o?i=" (at "+o.fileName.replace(Yw,"")+":"+o.lineNumber+")":r&&(i=" (created by "+r+")"),r="\n in "+(n||"Unknown")+i}t+=r,e=e.return}while(e);return t}function mC(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function vC(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function yC(e){e._valueTracker||(e._valueTracker=function(e){var t=vC(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function bC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=vC(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function wC(e,t){var r=t.checked;return bm({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function CC(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=mC(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function kC(e,t){null!=(t=t.checked)&&Xw(e,"checked",t,!1)}function EC(e,t){kC(e,t);var r=mC(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?BC(e,t.type,r):t.hasOwnProperty("defaultValue")&&BC(e,t.type,mC(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function SC(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function BC(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function _C(e,t){return e=bm({children:void 0},t),(t=function(e){var t="";return ov.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function AC(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+mC(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function xC(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ow(91));return bm({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function TC(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(ow(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(ow(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:mC(r)}}function IC(e,t){var r=mC(t.value),n=mC(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function PC(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var RC="http://www.w3.org/1999/xhtml",NC="http://www.w3.org/2000/svg";function OC(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function LC(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?OC(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var MC,DC,UC=(DC=function(e,t){if(e.namespaceURI!==NC||"innerHTML"in e)e.innerHTML=t;else{for((MC=MC||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=MC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return DC(e,t)}))}:DC);function jC(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}function FC(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var VC={animationend:FC("Animation","AnimationEnd"),animationiteration:FC("Animation","AnimationIteration"),animationstart:FC("Animation","AnimationStart"),transitionend:FC("Transition","TransitionEnd")},zC={},KC={};function HC(e){if(zC[e])return zC[e];if(!VC[e])return e;var t,r=VC[e];for(t in r)if(r.hasOwnProperty(t)&&t in KC)return zC[e]=r[t];return e}Bw&&(KC=document.createElement("div").style,"AnimationEvent"in window||(delete VC.animationend.animation,delete VC.animationiteration.animation,delete VC.animationstart.animation),"TransitionEvent"in window||delete VC.transitionend.transition);var qC=HC("animationend"),WC=HC("animationiteration"),QC=HC("animationstart"),GC=HC("transitionend"),XC="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),YC=new("function"==typeof WeakMap?WeakMap:Map);function $C(e){var t=YC.get(e);return void 0===t&&(t=new Map,YC.set(e,t)),t}function ZC(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function JC(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function ek(e){if(ZC(e)!==e)throw Error(ow(188))}function tk(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=ZC(e)))throw Error(ow(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return ek(o),e;if(i===n)return ek(o),t;i=i.sibling}throw Error(ow(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a)throw Error(ow(189))}}if(r.alternate!==n)throw Error(ow(190))}if(3!==r.tag)throw Error(ow(188));return r.stateNode.current===r?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rk(e,t){if(null==t)throw Error(ow(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function nk(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var ok=null;function ik(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)gw(e,t[n],r[n]);else t&&gw(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ak(e){if(null!==e&&(ok=rk(ok,e)),e=ok,ok=null,e){if(nk(e,ik),ok)throw Error(ow(95));if(cw)throw e=uw,cw=!1,uw=null,e}}function sk(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ck(e){if(!Bw)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var uk=[];function lk(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>uk.length&&uk.push(e)}function dk(e,t,r,n){if(uk.length){var o=uk.pop();return o.topLevelType=e,o.eventSystemFlags=n,o.nativeEvent=t,o.targetInst=r,o}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:r,ancestors:[]}}function fk(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n=r;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=r.tag)&&6!==t||e.ancestors.push(r),r=_E(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var o=sk(e.nativeEvent);n=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===r&&(a|=64);for(var s=null,c=0;c<ww.length;c++){var u=ww[c];u&&(u=u.extractEvents(n,t,i,o,a))&&(s=rk(s,u))}ak(s)}}function pk(e,t,r){if(!r.has(e)){switch(e){case"scroll":Qk(t,"scroll",!0);break;case"focus":case"blur":Qk(t,"focus",!0),Qk(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":ck(e)&&Qk(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===XC.indexOf(e)&&Wk(e,t)}r.set(e,null)}}var hk,gk,mk,vk=!1,yk=[],bk=null,wk=null,Ck=null,kk=new Map,Ek=new Map,Sk=[],Bk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),_k="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ak(e,t,r,n,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|r,nativeEvent:o,container:n}}function xk(e,t){switch(e){case"focus":case"blur":bk=null;break;case"dragenter":case"dragleave":wk=null;break;case"mouseover":case"mouseout":Ck=null;break;case"pointerover":case"pointerout":kk.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ek.delete(t.pointerId)}}function Tk(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e=Ak(t,r,n,o,i),null!==t&&(null!==(t=AE(t))&&gk(t)),e):(e.eventSystemFlags|=n,e)}function Ik(e){var t=_E(e.target);if(null!==t){var r=ZC(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=JC(r)))return e.blockedOn=t,void nw.unstable_runWithPriority(e.priority,(function(){mk(r)}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Pk(e){if(null!==e.blockedOn)return!1;var t=$k(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var r=AE(t);return null!==r&&gk(r),e.blockedOn=t,!1}return!0}function Rk(e,t,r){Pk(e)&&r.delete(t)}function Nk(){for(vk=!1;0<yk.length;){var e=yk[0];if(null!==e.blockedOn){null!==(e=AE(e.blockedOn))&&hk(e);break}var t=$k(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yk.shift()}null!==bk&&Pk(bk)&&(bk=null),null!==wk&&Pk(wk)&&(wk=null),null!==Ck&&Pk(Ck)&&(Ck=null),kk.forEach(Rk),Ek.forEach(Rk)}function Ok(e,t){e.blockedOn===t&&(e.blockedOn=null,vk||(vk=!0,nw.unstable_scheduleCallback(nw.unstable_NormalPriority,Nk)))}function Lk(e){function t(t){return Ok(t,e)}if(0<yk.length){Ok(yk[0],e);for(var r=1;r<yk.length;r++){var n=yk[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==bk&&Ok(bk,e),null!==wk&&Ok(wk,e),null!==Ck&&Ok(Ck,e),kk.forEach(t),Ek.forEach(t),r=0;r<Sk.length;r++)(n=Sk[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Sk.length&&null===(r=Sk[0]).blockedOn;)Ik(r),null===r.blockedOn&&Sk.shift()}var Mk={},Dk=new Map,Uk=new Map,jk=["abort","abort",qC,"animationEnd",WC,"animationIteration",QC,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",GC,"transitionEnd","waiting","waiting"];function Fk(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],o=e[r+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[n],eventPriority:t},Uk.set(n,t),Dk.set(n,i),Mk[o]=i}}Fk("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Fk("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Fk(jk,2);for(var Vk="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),zk=0;zk<Vk.length;zk++)Uk.set(Vk[zk],0);var Kk=nw.unstable_UserBlockingPriority,Hk=nw.unstable_runWithPriority,qk=!0;function Wk(e,t){Qk(t,e,!1)}function Qk(e,t,r){var n=Uk.get(t);switch(void 0===n?2:n){case 0:n=Gk.bind(null,t,1,e);break;case 1:n=Xk.bind(null,t,1,e);break;default:n=Yk.bind(null,t,1,e)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function Gk(e,t,r,n){Mw||Ow();var o=Yk,i=Mw;Mw=!0;try{Nw(o,e,t,r,n)}finally{(Mw=i)||Uw()}}function Xk(e,t,r,n){Hk(Kk,Yk.bind(null,e,t,r,n))}function Yk(e,t,r,n){if(qk)if(0<yk.length&&-1<Bk.indexOf(e))e=Ak(null,e,t,r,n),yk.push(e);else{var o=$k(e,t,r,n);if(null===o)xk(e,n);else if(-1<Bk.indexOf(e))e=Ak(o,e,t,r,n),yk.push(e);else if(!function(e,t,r,n,o){switch(t){case"focus":return bk=Tk(bk,e,t,r,n,o),!0;case"dragenter":return wk=Tk(wk,e,t,r,n,o),!0;case"mouseover":return Ck=Tk(Ck,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return kk.set(i,Tk(kk.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Ek.set(i,Tk(Ek.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n)){xk(e,n),e=dk(e,n,null,t);try{jw(fk,e)}finally{lk(e)}}}}function $k(e,t,r,n){if(null!==(r=_E(r=sk(n)))){var o=ZC(r);if(null===o)r=null;else{var i=o.tag;if(13===i){if(null!==(r=JC(o)))return r;r=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null)}}e=dk(e,n,r,t);try{jw(fk,e)}finally{lk(e)}return null}var Zk={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jk=["Webkit","ms","Moz","O"];function eE(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||Zk.hasOwnProperty(e)&&Zk[e]?(""+t).trim():t+"px"}function tE(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=eE(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(Zk).forEach((function(e){Jk.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zk[t]=Zk[e]}))}));var rE=bm({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nE(e,t){if(t){if(rE[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ow(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ow(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ow(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ow(62,""))}}function oE(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var iE=RC;function aE(e,t){var r=$C(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=Ew[t];for(var n=0;n<t.length;n++)pk(t[n],e,r)}function sE(){}function cE(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function uE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lE(e,t){var r,n=uE(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=uE(n)}}function dE(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dE(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fE(){for(var e=window,t=cE();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=cE((e=t.contentWindow).document)}return t}function pE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hE=null,gE=null;function mE(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function vE(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var yE="function"==typeof setTimeout?setTimeout:void 0,bE="function"==typeof clearTimeout?clearTimeout:void 0;function wE(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function CE(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var kE=Math.random().toString(36).slice(2),EE="__reactInternalInstance$"+kE,SE="__reactEventHandlers$"+kE,BE="__reactContainere$"+kE;function _E(e){var t=e[EE];if(t)return t;for(var r=e.parentNode;r;){if(t=r[BE]||r[EE]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=CE(e);null!==e;){if(r=e[EE])return r;e=CE(e)}return t}r=(e=r).parentNode}return null}function AE(e){return!(e=e[EE]||e[BE])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xE(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ow(33))}function TE(e){return e[SE]||null}function IE(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function PE(e,t){var r=e.stateNode;if(!r)return null;var n=fw(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(ow(231,t,typeof r));return r}function RE(e,t,r){(t=PE(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=rk(r._dispatchListeners,t),r._dispatchInstances=rk(r._dispatchInstances,e))}function NE(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=IE(t);for(t=r.length;0<t--;)RE(r[t],"captured",e);for(t=0;t<r.length;t++)RE(r[t],"bubbled",e)}}function OE(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=PE(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=rk(r._dispatchListeners,t),r._dispatchInstances=rk(r._dispatchInstances,e))}function LE(e){e&&e.dispatchConfig.registrationName&&OE(e._targetInst,null,e)}function ME(e){nk(e,NE)}var DE=null,UE=null,jE=null;function FE(){if(jE)return jE;var e,t,r=UE,n=r.length,o="value"in DE?DE.value:DE.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===o[i-t];t++);return jE=o.slice(e,1<t?1-t:void 0)}function VE(){return!0}function zE(){return!1}function KE(e,t,r,n){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(r):"target"===o?this.target=n:this[o]=r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?VE:zE,this.isPropagationStopped=zE,this}function HE(e,t,r,n){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,r,n),o}return new this(e,t,r,n)}function qE(e){if(!(e instanceof this))throw Error(ow(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function WE(e){e.eventPool=[],e.getPooled=HE,e.release=qE}bm(KE.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=VE)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=VE)},persist:function(){this.isPersistent=VE},isPersistent:zE,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=zE,this._dispatchInstances=this._dispatchListeners=null}}),KE.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},KE.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var o=new t;return bm(o,r.prototype),r.prototype=o,r.prototype.constructor=r,r.Interface=bm({},n.Interface,e),r.extend=n.extend,WE(r),r},WE(KE);var QE=KE.extend({data:null}),GE=KE.extend({data:null}),XE=[9,13,27,32],YE=Bw&&"CompositionEvent"in window,$E=null;Bw&&"documentMode"in document&&($E=document.documentMode);var ZE=Bw&&"TextEvent"in window&&!$E,JE=Bw&&(!YE||$E&&8<$E&&11>=$E),eS=String.fromCharCode(32),tS={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rS=!1;function nS(e,t){switch(e){case"keyup":return-1!==XE.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function oS(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var iS=!1;var aS={eventTypes:tS,extractEvents:function(e,t,r,n){var o;if(YE)e:{switch(e){case"compositionstart":var i=tS.compositionStart;break e;case"compositionend":i=tS.compositionEnd;break e;case"compositionupdate":i=tS.compositionUpdate;break e}i=void 0}else iS?nS(e,r)&&(i=tS.compositionEnd):"keydown"===e&&229===r.keyCode&&(i=tS.compositionStart);return i?(JE&&"ko"!==r.locale&&(iS||i!==tS.compositionStart?i===tS.compositionEnd&&iS&&(o=FE()):(UE="value"in(DE=n)?DE.value:DE.textContent,iS=!0)),i=QE.getPooled(i,t,r,n),o?i.data=o:null!==(o=oS(r))&&(i.data=o),ME(i),o=i):o=null,(e=ZE?function(e,t){switch(e){case"compositionend":return oS(t);case"keypress":return 32!==t.which?null:(rS=!0,eS);case"textInput":return(e=t.data)===eS&&rS?null:e;default:return null}}(e,r):function(e,t){if(iS)return"compositionend"===e||!YE&&nS(e,t)?(e=FE(),jE=UE=DE=null,iS=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return JE&&"ko"!==t.locale?null:t.data;default:return null}}(e,r))?((t=GE.getPooled(tS.beforeInput,t,r,n)).data=e,ME(t)):t=null,null===o?t:null===t?o:[o,t]}},sS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!sS[e.type]:"textarea"===t}var uS={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function lS(e,t,r){return(e=KE.getPooled(uS.change,e,t,r)).type="change",Iw(r),ME(e),e}var dS=null,fS=null;function pS(e){ak(e)}function hS(e){if(bC(xE(e)))return e}function gS(e,t){if("change"===e)return t}var mS=!1;function vS(){dS&&(dS.detachEvent("onpropertychange",yS),fS=dS=null)}function yS(e){if("value"===e.propertyName&&hS(fS))if(e=lS(fS,e,sk(e)),Mw)ak(e);else{Mw=!0;try{Rw(pS,e)}finally{Mw=!1,Uw()}}}function bS(e,t,r){"focus"===e?(vS(),fS=r,(dS=t).attachEvent("onpropertychange",yS)):"blur"===e&&vS()}function wS(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return hS(fS)}function CS(e,t){if("click"===e)return hS(t)}function kS(e,t){if("input"===e||"change"===e)return hS(t)}Bw&&(mS=ck("input")&&(!document.documentMode||9<document.documentMode));var ES={eventTypes:uS,_isInputEventSupported:mS,extractEvents:function(e,t,r,n){var o=t?xE(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=gS;else if(cS(o))if(mS)a=kS;else{a=wS;var s=bS}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=CS);if(a&&(a=a(e,t)))return lS(a,r,n);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&BC(o,"number",o.value)}},SS=KE.extend({view:null,detail:null}),BS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _S(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=BS[e])&&!!t[e]}function AS(){return _S}var xS=0,TS=0,IS=!1,PS=!1,RS=SS.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:AS,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=xS;return xS=e.screenX,IS?"mousemove"===e.type?e.screenX-t:0:(IS=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=TS;return TS=e.screenY,PS?"mousemove"===e.type?e.screenY-t:0:(PS=!0,0)}}),NS=RS.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),OS={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},LS={eventTypes:OS,extractEvents:function(e,t,r,n,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(r.relatedTarget||r.fromElement)||!a&&!i)return null;(i=n.window===n?n:(i=n.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=r.relatedTarget||r.toElement)?_E(t):null)&&(t!==ZC(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=RS,c=OS.mouseLeave,u=OS.mouseEnter,l="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=NS,c=OS.pointerLeave,u=OS.pointerEnter,l="pointer");if(e=null==a?i:xE(a),i=null==t?i:xE(t),(c=s.getPooled(c,a,r,n)).type=l+"leave",c.target=e,c.relatedTarget=i,(r=s.getPooled(u,t,r,n)).type=l+"enter",r.target=i,r.relatedTarget=e,l=t,(n=a)&&l)e:{for(u=l,a=0,e=s=n;e;e=IE(e))a++;for(e=0,t=u;t;t=IE(t))e++;for(;0<a-e;)s=IE(s),a--;for(;0<e-a;)u=IE(u),e--;for(;a--;){if(s===u||s===u.alternate)break e;s=IE(s),u=IE(u)}s=null}else s=null;for(u=s,s=[];n&&n!==u&&(null===(a=n.alternate)||a!==u);)s.push(n),n=IE(n);for(n=[];l&&l!==u&&(null===(a=l.alternate)||a!==u);)n.push(l),l=IE(l);for(l=0;l<s.length;l++)OE(s[l],"bubbled",c);for(l=n.length;0<l--;)OE(n[l],"captured",r);return 0==(64&o)?[c]:[c,r]}};var MS="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},DS=Object.prototype.hasOwnProperty;function US(e,t){if(MS(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!DS.call(t,r[n])||!MS(e[r[n]],t[r[n]]))return!1;return!0}var jS=Bw&&"documentMode"in document&&11>=document.documentMode,FS={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},VS=null,zS=null,KS=null,HS=!1;function qS(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return HS||null==VS||VS!==cE(r)?null:("selectionStart"in(r=VS)&&pE(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},KS&&US(KS,r)?null:(KS=r,(e=KE.getPooled(FS.select,zS,e,t)).type="select",e.target=VS,ME(e),e))}var WS={eventTypes:FS,extractEvents:function(e,t,r,n,o,i){if(!(i=!(o=i||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{o=$C(o),i=Ew.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?xE(t):window,e){case"focus":(cS(o)||"true"===o.contentEditable)&&(VS=o,zS=t,KS=null);break;case"blur":KS=zS=VS=null;break;case"mousedown":HS=!0;break;case"contextmenu":case"mouseup":case"dragend":return HS=!1,qS(r,n);case"selectionchange":if(jS)break;case"keydown":case"keyup":return qS(r,n)}return null}},QS=KE.extend({animationName:null,elapsedTime:null,pseudoElement:null}),GS=KE.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),XS=SS.extend({relatedTarget:null});function YS(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var $S={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},JS=SS.extend({key:function(e){if(e.key){var t=$S[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=YS(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ZS[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:AS,charCode:function(e){return"keypress"===e.type?YS(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?YS(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),eB=RS.extend({dataTransfer:null}),tB=SS.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:AS}),rB=KE.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),nB=RS.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oB={eventTypes:Mk,extractEvents:function(e,t,r,n){var o=Dk.get(e);if(!o)return null;switch(e){case"keypress":if(0===YS(r))return null;case"keydown":case"keyup":e=JS;break;case"blur":case"focus":e=XS;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=RS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=eB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=tB;break;case qC:case WC:case QC:e=QS;break;case GC:e=rB;break;case"scroll":e=SS;break;case"wheel":e=nB;break;case"copy":case"cut":case"paste":e=GS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=NS;break;default:e=KE}return ME(t=e.getPooled(o,t,r,n)),t}};if(mw)throw Error(ow(101));mw=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),yw(),fw=TE,pw=AE,hw=xE,Sw({SimpleEventPlugin:oB,EnterLeaveEventPlugin:LS,ChangeEventPlugin:ES,SelectEventPlugin:WS,BeforeInputEventPlugin:aS});var iB=[],aB=-1;function sB(e){0>aB||(e.current=iB[aB],iB[aB]=null,aB--)}function cB(e,t){aB++,iB[aB]=e.current,e.current=t}var uB={},lB={current:uB},dB={current:!1},fB=uB;function pB(e,t){var r=e.type.contextTypes;if(!r)return uB;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function hB(e){return null!=(e=e.childContextTypes)}function gB(){sB(dB),sB(lB)}function mB(e,t,r){if(lB.current!==uB)throw Error(ow(168));cB(lB,t),cB(dB,r)}function vB(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw Error(ow(108,hC(t)||"Unknown",o));return bm({},r,{},n)}function yB(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||uB,fB=lB.current,cB(lB,e),cB(dB,dB.current),!0}function bB(e,t,r){var n=e.stateNode;if(!n)throw Error(ow(169));r?(e=vB(e,t,fB),n.__reactInternalMemoizedMergedChildContext=e,sB(dB),sB(lB),cB(lB,e)):sB(dB),cB(dB,r)}var wB=nw.unstable_runWithPriority,CB=nw.unstable_scheduleCallback,kB=nw.unstable_cancelCallback,EB=nw.unstable_requestPaint,SB=nw.unstable_now,BB=nw.unstable_getCurrentPriorityLevel,_B=nw.unstable_ImmediatePriority,AB=nw.unstable_UserBlockingPriority,xB=nw.unstable_NormalPriority,TB=nw.unstable_LowPriority,IB=nw.unstable_IdlePriority,PB={},RB=nw.unstable_shouldYield,NB=void 0!==EB?EB:function(){},OB=null,LB=null,MB=!1,DB=SB(),UB=1e4>DB?SB:function(){return SB()-DB};function jB(){switch(BB()){case _B:return 99;case AB:return 98;case xB:return 97;case TB:return 96;case IB:return 95;default:throw Error(ow(332))}}function FB(e){switch(e){case 99:return _B;case 98:return AB;case 97:return xB;case 96:return TB;case 95:return IB;default:throw Error(ow(332))}}function VB(e,t){return e=FB(e),wB(e,t)}function zB(e,t,r){return e=FB(e),CB(e,t,r)}function KB(e){return null===OB?(OB=[e],LB=CB(_B,qB)):OB.push(e),PB}function HB(){if(null!==LB){var e=LB;LB=null,kB(e)}qB()}function qB(){if(!MB&&null!==OB){MB=!0;var e=0;try{var t=OB;VB(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),OB=null}catch(t){throw null!==OB&&(OB=OB.slice(e+1)),CB(_B,HB),t}finally{MB=!1}}}function WB(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function QB(e,t){if(e&&e.defaultProps)for(var r in t=bm({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var GB={current:null},XB=null,YB=null,$B=null;function ZB(){$B=YB=XB=null}function JB(e){var t=GB.current;sB(GB),e.type._context._currentValue=t}function e_(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function t_(e,t){XB=e,$B=YB=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(xA=!0),e.firstContext=null)}function r_(e,t){if($B!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||($B=e,t=1073741823),t={context:e,observedBits:t,next:null},null===YB){if(null===XB)throw Error(ow(308));YB=t,XB.dependencies={expirationTime:0,firstContext:t,responders:null}}else YB=YB.next=t;return e._currentValue}var n_=!1;function o_(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function i_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function a_(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function s_(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function c_(e,t){var r=e.alternate;null!==r&&i_(r,e),null===(r=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function u_(e,t,r,n){var o=e.updateQueue;n_=!1;var i=o.baseQueue,a=o.shared.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}i=a,o.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=a))}if(null!==i){s=i.next;var c=o.baseState,u=0,l=null,d=null,f=null;if(null!==s)for(var p=s;;){if((a=p.expirationTime)<n){var h={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===f?(d=f=h,l=c):f=f.next=h,a>u&&(u=a)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),iT(a,p.suspenseConfig);e:{var g=e,m=p;switch(a=t,h=r,m.tag){case 1:if("function"==typeof(g=m.payload)){c=g.call(h,c,a);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(a="function"==typeof(g=m.payload)?g.call(h,c,a):g))break e;c=bm({},c,a);break e;case 2:n_=!0}}null!==p.callback&&(e.effectTag|=32,null===(a=o.effects)?o.effects=[p]:a.push(p))}if(null===(p=p.next)||p===s){if(null===(a=o.shared.pending))break;p=i.next=a.next,a.next=s,o.baseQueue=i=a,o.shared.pending=null}}null===f?l=c:f.next=d,o.baseState=l,o.baseQueue=f,aT(u),e.expirationTime=u,e.memoizedState=c}}function l_(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=o,o=r,"function"!=typeof n)throw Error(ow(191,n));n.call(o)}}}var d_=Gw.ReactCurrentBatchConfig,f_=(new ov.Component).refs;function p_(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:bm({},t,r),e.memoizedState=r,0===e.expirationTime&&(e.updateQueue.baseState=r)}var h_={isMounted:function(e){return!!(e=e._reactInternalFiber)&&ZC(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=Wx(),o=d_.suspense;(o=a_(n=Qx(n,e,o),o)).payload=t,null!=r&&(o.callback=r),s_(e,o),Gx(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=Wx(),o=d_.suspense;(o=a_(n=Qx(n,e,o),o)).tag=1,o.payload=t,null!=r&&(o.callback=r),s_(e,o),Gx(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=Wx(),n=d_.suspense;(n=a_(r=Qx(r,e,n),n)).tag=2,null!=t&&(n.callback=t),s_(e,n),Gx(e,r)}};function g_(e,t,r,n,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!US(r,n)||!US(o,i))}function m_(e,t,r){var n=!1,o=uB,i=t.contextType;return"object"==typeof i&&null!==i?i=r_(i):(o=hB(t)?fB:lB.current,i=(n=null!=(n=t.contextTypes))?pB(e,o):uB),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=h_,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function v_(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&h_.enqueueReplaceState(t,t.state,null)}function y_(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=f_,o_(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=r_(i):(i=hB(t)?fB:lB.current,o.context=pB(e,i)),u_(e,r,o,n),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(p_(e,t,i,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&h_.enqueueReplaceState(o,o.state,null),u_(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var b_=Array.isArray;function w_(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(ow(309));var n=r.stateNode}if(!n)throw Error(ow(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=n.refs;t===f_&&(t=n.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(ow(284));if(!r._owner)throw Error(ow(290,e))}return e}function C_(e,t){if("textarea"!==e.type)throw Error(ow(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function k_(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=_T(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=TT(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=o(t,r.props)).ref=w_(e,t,r),n.return=e,n):((n=AT(r.type,r.key,r.props,null,e.mode,n)).ref=w_(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=IT(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function l(e,t,r,n,i){return null===t||7!==t.tag?((t=xT(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=TT(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Zw:return(r=AT(t.type,t.key,t.props,null,e.mode,r)).ref=w_(e,null,t),r.return=e,r;case Jw:return(t=IT(t,e.mode,r)).return=e,t}if(b_(t)||pC(t))return(t=xT(t,e.mode,r,null)).return=e,t;C_(e,t)}return null}function f(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==o?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Zw:return r.key===o?r.type===eC?l(e,t,r.props.children,n,o):c(e,t,r,n):null;case Jw:return r.key===o?u(e,t,r,n):null}if(b_(r)||pC(r))return null!==o?null:l(e,t,r,n,null);C_(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Zw:return e=e.get(null===n.key?r:n.key)||null,n.type===eC?l(t,e,n.props.children,o,n.key):c(t,e,n,o);case Jw:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o)}if(b_(n)||pC(n))return l(t,e=e.get(r)||null,n,o,null);C_(t,n)}return null}function h(o,a,s,c){for(var u=null,l=null,h=a,g=a=0,m=null;null!==h&&g<s.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var v=f(o,h,s[g],c);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,g),null===l?u=v:l.sibling=v,l=v,h=m}if(g===s.length)return r(o,h),u;if(null===h){for(;g<s.length;g++)null!==(h=d(o,s[g],c))&&(a=i(h,a,g),null===l?u=h:l.sibling=h,l=h);return u}for(h=n(o,h);g<s.length;g++)null!==(m=p(h,o,g,s[g],c))&&(e&&null!==m.alternate&&h.delete(null===m.key?g:m.key),a=i(m,a,g),null===l?u=m:l.sibling=m,l=m);return e&&h.forEach((function(e){return t(o,e)})),u}function g(o,a,s,c){var u=pC(s);if("function"!=typeof u)throw Error(ow(150));if(null==(s=u.call(s)))throw Error(ow(151));for(var l=u=null,h=a,g=a=0,m=null,v=s.next();null!==h&&!v.done;g++,v=s.next()){h.index>g?(m=h,h=null):m=h.sibling;var y=f(o,h,v.value,c);if(null===y){null===h&&(h=m);break}e&&h&&null===y.alternate&&t(o,h),a=i(y,a,g),null===l?u=y:l.sibling=y,l=y,h=m}if(v.done)return r(o,h),u;if(null===h){for(;!v.done;g++,v=s.next())null!==(v=d(o,v.value,c))&&(a=i(v,a,g),null===l?u=v:l.sibling=v,l=v);return u}for(h=n(o,h);!v.done;g++,v=s.next())null!==(v=p(h,o,g,v.value,c))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),a=i(v,a,g),null===l?u=v:l.sibling=v,l=v);return e&&h.forEach((function(e){return t(o,e)})),u}return function(e,n,i,s){var c="object"==typeof i&&null!==i&&i.type===eC&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case Zw:e:{for(u=i.key,c=n;null!==c;){if(c.key===u){switch(c.tag){case 7:if(i.type===eC){r(e,c.sibling),(n=o(c,i.props.children)).return=e,e=n;break e}break;default:if(c.elementType===i.type){r(e,c.sibling),(n=o(c,i.props)).ref=w_(e,c,i),n.return=e,e=n;break e}}r(e,c);break}t(e,c),c=c.sibling}i.type===eC?((n=xT(i.props.children,e.mode,s,i.key)).return=e,e=n):((s=AT(i.type,i.key,i.props,null,e.mode,s)).ref=w_(e,n,i),s.return=e,e=s)}return a(e);case Jw:e:{for(c=i.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===i.containerInfo&&n.stateNode.implementation===i.implementation){r(e,n.sibling),(n=o(n,i.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=IT(i,e.mode,s)).return=e,e=n}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==n&&6===n.tag?(r(e,n.sibling),(n=o(n,i)).return=e,e=n):(r(e,n),(n=TT(i,e.mode,s)).return=e,e=n),a(e);if(b_(i))return h(e,n,i,s);if(pC(i))return g(e,n,i,s);if(u&&C_(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(ow(152,e.displayName||e.name||"Component"))}return r(e,n)}}var E_=k_(!0),S_=k_(!1),B_={},__={current:B_},A_={current:B_},x_={current:B_};function T_(e){if(e===B_)throw Error(ow(174));return e}function I_(e,t){switch(cB(x_,t),cB(A_,e),cB(__,B_),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:LC(null,"");break;default:t=LC(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}sB(__),cB(__,t)}function P_(){sB(__),sB(A_),sB(x_)}function R_(e){T_(x_.current);var t=T_(__.current),r=LC(t,e.type);t!==r&&(cB(A_,e),cB(__,r))}function N_(e){A_.current===e&&(sB(__),sB(A_))}var O_={current:0};function L_(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function M_(e,t){return{responder:e,props:t}}var D_=Gw.ReactCurrentDispatcher,U_=Gw.ReactCurrentBatchConfig,j_=0,F_=null,V_=null,z_=null,K_=!1;function H_(){throw Error(ow(321))}function q_(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!MS(e[r],t[r]))return!1;return!0}function W_(e,t,r,n,o,i){if(j_=i,F_=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,D_.current=null===e||null===e.memoizedState?gA:mA,e=r(n,o),t.expirationTime===j_){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(ow(301));i+=1,z_=V_=null,t.updateQueue=null,D_.current=vA,e=r(n,o)}while(t.expirationTime===j_)}if(D_.current=hA,t=null!==V_&&null!==V_.next,j_=0,z_=V_=F_=null,K_=!1,t)throw Error(ow(300));return e}function Q_(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===z_?F_.memoizedState=z_=e:z_=z_.next=e,z_}function G_(){if(null===V_){var e=F_.alternate;e=null!==e?e.memoizedState:null}else e=V_.next;var t=null===z_?F_.memoizedState:z_.next;if(null!==t)z_=t,V_=e;else{if(null===e)throw Error(ow(310));e={memoizedState:(V_=e).memoizedState,baseState:V_.baseState,baseQueue:V_.baseQueue,queue:V_.queue,next:null},null===z_?F_.memoizedState=z_=e:z_=z_.next=e}return z_}function X_(e,t){return"function"==typeof t?t(e):t}function Y_(e){var t=G_(),r=t.queue;if(null===r)throw Error(ow(311));r.lastRenderedReducer=e;var n=V_,o=n.baseQueue,i=r.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(null!==o){o=o.next,n=n.baseState;var s=a=i=null,c=o;do{var u=c.expirationTime;if(u<j_){var l={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(a=s=l,i=n):s=s.next=l,u>F_.expirationTime&&(F_.expirationTime=u,aT(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),iT(u,c.suspenseConfig),n=c.eagerReducer===e?c.eagerState:e(n,c.action);c=c.next}while(null!==c&&c!==o);null===s?i=n:s.next=a,MS(n,t.memoizedState)||(xA=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function $_(e){var t=G_(),r=t.queue;if(null===r)throw Error(ow(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);MS(i,t.memoizedState)||(xA=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Z_(e){var t=Q_();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:X_,lastRenderedState:e}).dispatch=pA.bind(null,F_,e),[t.memoizedState,e]}function J_(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=F_.updateQueue)?(t={lastEffect:null},F_.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function eA(){return G_().memoizedState}function tA(e,t,r,n){var o=Q_();F_.effectTag|=e,o.memoizedState=J_(1|t,r,void 0,void 0===n?null:n)}function rA(e,t,r,n){var o=G_();n=void 0===n?null:n;var i=void 0;if(null!==V_){var a=V_.memoizedState;if(i=a.destroy,null!==n&&q_(n,a.deps))return void J_(t,r,i,n)}F_.effectTag|=e,o.memoizedState=J_(1|t,r,i,n)}function nA(e,t){return tA(516,4,e,t)}function oA(e,t){return rA(516,4,e,t)}function iA(e,t){return rA(4,2,e,t)}function aA(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function sA(e,t,r){return r=null!=r?r.concat([e]):null,rA(4,2,aA.bind(null,t,e),r)}function cA(){}function uA(e,t){return Q_().memoizedState=[e,void 0===t?null:t],e}function lA(e,t){var r=G_();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&q_(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function dA(e,t){var r=G_();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&q_(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function fA(e,t,r){var n=jB();VB(98>n?98:n,(function(){e(!0)})),VB(97<n?97:n,(function(){var n=U_.suspense;U_.suspense=void 0===t?null:t;try{e(!1),r()}finally{U_.suspense=n}}))}function pA(e,t,r){var n=Wx(),o=d_.suspense;o={expirationTime:n=Qx(n,e,o),suspenseConfig:o,action:r,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===F_||null!==i&&i===F_)K_=!0,o.expirationTime=j_,F_.expirationTime=j_;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,r);if(o.eagerReducer=i,o.eagerState=s,MS(s,a))return}catch(e){}Gx(e,n)}}var hA={readContext:r_,useCallback:H_,useContext:H_,useEffect:H_,useImperativeHandle:H_,useLayoutEffect:H_,useMemo:H_,useReducer:H_,useRef:H_,useState:H_,useDebugValue:H_,useResponder:H_,useDeferredValue:H_,useTransition:H_},gA={readContext:r_,useCallback:uA,useContext:r_,useEffect:nA,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,tA(4,2,aA.bind(null,t,e),r)},useLayoutEffect:function(e,t){return tA(4,2,e,t)},useMemo:function(e,t){var r=Q_();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Q_();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=pA.bind(null,F_,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Q_().memoizedState=e},useState:Z_,useDebugValue:cA,useResponder:M_,useDeferredValue:function(e,t){var r=Z_(e),n=r[0],o=r[1];return nA((function(){var r=U_.suspense;U_.suspense=void 0===t?null:t;try{o(e)}finally{U_.suspense=r}}),[e,t]),n},useTransition:function(e){var t=Z_(!1),r=t[0];return t=t[1],[uA(fA.bind(null,t,e),[t,e]),r]}},mA={readContext:r_,useCallback:lA,useContext:r_,useEffect:oA,useImperativeHandle:sA,useLayoutEffect:iA,useMemo:dA,useReducer:Y_,useRef:eA,useState:function(){return Y_(X_)},useDebugValue:cA,useResponder:M_,useDeferredValue:function(e,t){var r=Y_(X_),n=r[0],o=r[1];return oA((function(){var r=U_.suspense;U_.suspense=void 0===t?null:t;try{o(e)}finally{U_.suspense=r}}),[e,t]),n},useTransition:function(e){var t=Y_(X_),r=t[0];return t=t[1],[lA(fA.bind(null,t,e),[t,e]),r]}},vA={readContext:r_,useCallback:lA,useContext:r_,useEffect:oA,useImperativeHandle:sA,useLayoutEffect:iA,useMemo:dA,useReducer:$_,useRef:eA,useState:function(){return $_(X_)},useDebugValue:cA,useResponder:M_,useDeferredValue:function(e,t){var r=$_(X_),n=r[0],o=r[1];return oA((function(){var r=U_.suspense;U_.suspense=void 0===t?null:t;try{o(e)}finally{U_.suspense=r}}),[e,t]),n},useTransition:function(e){var t=$_(X_),r=t[0];return t=t[1],[lA(fA.bind(null,t,e),[t,e]),r]}},yA=null,bA=null,wA=!1;function CA(e,t){var r=ST(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function kA(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function EA(e){if(wA){var t=bA;if(t){var r=t;if(!kA(e,t)){if(!(t=wE(r.nextSibling))||!kA(e,t))return e.effectTag=-1025&e.effectTag|2,wA=!1,void(yA=e);CA(yA,r)}yA=e,bA=wE(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,wA=!1,yA=e}}function SA(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;yA=e}function BA(e){if(e!==yA)return!1;if(!wA)return SA(e),wA=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!vE(t,e.memoizedProps))for(t=bA;t;)CA(e,t),t=wE(t.nextSibling);if(SA(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ow(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){bA=wE(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}bA=null}}else bA=yA?wE(e.stateNode.nextSibling):null;return!0}function _A(){bA=yA=null,wA=!1}var AA=Gw.ReactCurrentOwner,xA=!1;function TA(e,t,r,n){t.child=null===e?S_(t,null,r,n):E_(t,e.child,r,n)}function IA(e,t,r,n,o){r=r.render;var i=t.ref;return t_(t,o),n=W_(e,t,r,n,i,o),null===e||xA?(t.effectTag|=1,TA(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),WA(e,t,o))}function PA(e,t,r,n,o,i){if(null===e){var a=r.type;return"function"!=typeof a||BT(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=AT(r.type,null,n,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,RA(e,t,a,n,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(r=null!==(r=r.compare)?r:US)(o,n)&&e.ref===t.ref)?WA(e,t,i):(t.effectTag|=1,(e=_T(a,n)).ref=t.ref,e.return=t,t.child=e)}function RA(e,t,r,n,o,i){return null!==e&&US(e.memoizedProps,n)&&e.ref===t.ref&&(xA=!1,o<i)?(t.expirationTime=e.expirationTime,WA(e,t,i)):OA(e,t,r,n,i)}function NA(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function OA(e,t,r,n,o){var i=hB(r)?fB:lB.current;return i=pB(t,i),t_(t,o),r=W_(e,t,r,n,i,o),null===e||xA?(t.effectTag|=1,TA(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),WA(e,t,o))}function LA(e,t,r,n,o){if(hB(r)){var i=!0;yB(t)}else i=!1;if(t_(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),m_(t,r,n),y_(t,r,n,o),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,u=r.contextType;"object"==typeof u&&null!==u?u=r_(u):u=pB(t,u=hB(r)?fB:lB.current);var l=r.getDerivedStateFromProps,d="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||c!==u)&&v_(t,a,n,u),n_=!1;var f=t.memoizedState;a.state=f,u_(t,n,a,o),c=t.memoizedState,s!==n||f!==c||dB.current||n_?("function"==typeof l&&(p_(t,r,l,n),c=t.memoizedState),(s=n_||g_(t,r,s,n,f,c,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=c),a.props=n,a.state=c,a.context=u,n=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),n=!1)}else a=t.stateNode,i_(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:QB(t.type,s),c=a.context,"object"==typeof(u=r.contextType)&&null!==u?u=r_(u):u=pB(t,u=hB(r)?fB:lB.current),(d="function"==typeof(l=r.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||c!==u)&&v_(t,a,n,u),n_=!1,c=t.memoizedState,a.state=c,u_(t,n,a,o),f=t.memoizedState,s!==n||c!==f||dB.current||n_?("function"==typeof l&&(p_(t,r,l,n),f=t.memoizedState),(l=n_||g_(t,r,s,n,c,f,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=f),a.props=n,a.state=f,a.context=u,n=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),n=!1);return MA(e,t,r,n,i,o)}function MA(e,t,r,n,o,i){NA(e,t);var a=0!=(64&t.effectTag);if(!n&&!a)return o&&bB(t,r,!1),WA(e,t,i);n=t.stateNode,AA.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&a?(t.child=E_(t,e.child,null,i),t.child=E_(t,null,s,i)):TA(e,t,s,i),t.memoizedState=n.state,o&&bB(t,r,!0),t.child}function DA(e){var t=e.stateNode;t.pendingContext?mB(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mB(0,t.context,!1),I_(e,t.containerInfo)}var UA,jA,FA,VA={dehydrated:null,retryTime:0};function zA(e,t,r){var n,o=t.mode,i=t.pendingProps,a=O_.current,s=!1;if((n=0!=(64&t.effectTag))||(n=0!=(2&a)&&(null===e||null!==e.memoizedState)),n?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),cB(O_,1&a),null===e){if(void 0!==i.fallback&&EA(t),s){if(s=i.fallback,(i=xT(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(r=xT(s,o,r,null)).return=t,i.sibling=r,t.memoizedState=VA,t.child=i,r}return o=i.children,t.memoizedState=null,t.child=S_(t,null,o,r)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(i=i.fallback,(r=_T(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(r.child=s;null!==s;)s.return=r,s=s.sibling;return(o=_T(o,i)).return=t,r.sibling=o,r.childExpirationTime=0,t.memoizedState=VA,t.child=r,o}return r=E_(t,e.child,i.children,r),t.memoizedState=null,t.child=r}if(e=e.child,s){if(s=i.fallback,(i=xT(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(r=xT(s,o,r,null)).return=t,i.sibling=r,r.effectTag|=2,i.childExpirationTime=0,t.memoizedState=VA,t.child=i,r}return t.memoizedState=null,t.child=E_(t,e,i.children,r)}function KA(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t),e_(e.return,t)}function HA(e,t,r,n,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function qA(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(TA(e,t,n.children,r),0!=(2&(n=O_.current)))n=1&n|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&KA(e,r);else if(19===e.tag)KA(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(cB(O_,n),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===L_(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),HA(t,!1,o,r,i,t.lastEffect);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===L_(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}HA(t,!0,r,null,i,t.lastEffect);break;case"together":HA(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function WA(e,t,r){null!==e&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(0!==n&&aT(n),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw Error(ow(153));if(null!==t.child){for(r=_T(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=_T(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function QA(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function GA(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return hB(t.type)&&gB(),null;case 3:return P_(),sB(dB),sB(lB),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||!BA(t)||(t.effectTag|=4),null;case 5:N_(t),r=T_(x_.current);var o=t.type;if(null!==e&&null!=t.stateNode)jA(e,t,o,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(ow(166));return null}if(e=T_(__.current),BA(t)){n=t.stateNode,o=t.type;var i=t.memoizedProps;switch(n[EE]=t,n[SE]=i,o){case"iframe":case"object":case"embed":Wk("load",n);break;case"video":case"audio":for(e=0;e<XC.length;e++)Wk(XC[e],n);break;case"source":Wk("error",n);break;case"img":case"image":case"link":Wk("error",n),Wk("load",n);break;case"form":Wk("reset",n),Wk("submit",n);break;case"details":Wk("toggle",n);break;case"input":CC(n,i),Wk("invalid",n),aE(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Wk("invalid",n),aE(r,"onChange");break;case"textarea":TC(n,i),Wk("invalid",n),aE(r,"onChange")}for(var a in nE(o,i),e=null,i)if(i.hasOwnProperty(a)){var s=i[a];"children"===a?"string"==typeof s?n.textContent!==s&&(e=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(e=["children",""+s]):kw.hasOwnProperty(a)&&null!=s&&aE(r,a)}switch(o){case"input":yC(n),SC(n,i,!0);break;case"textarea":yC(n),PC(n);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(n.onclick=sE)}r=e,t.updateQueue=r,null!==r&&(t.effectTag|=4)}else{switch(a=9===r.nodeType?r:r.ownerDocument,e===iE&&(e=OC(o)),e===iE?"script"===o?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=a.createElement(o,{is:n.is}):(e=a.createElement(o),"select"===o&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,o),e[EE]=t,e[SE]=n,UA(e,t),t.stateNode=e,a=oE(o,n),o){case"iframe":case"object":case"embed":Wk("load",e),s=n;break;case"video":case"audio":for(s=0;s<XC.length;s++)Wk(XC[s],e);s=n;break;case"source":Wk("error",e),s=n;break;case"img":case"image":case"link":Wk("error",e),Wk("load",e),s=n;break;case"form":Wk("reset",e),Wk("submit",e),s=n;break;case"details":Wk("toggle",e),s=n;break;case"input":CC(e,n),s=wC(e,n),Wk("invalid",e),aE(r,"onChange");break;case"option":s=_C(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=bm({},n,{value:void 0}),Wk("invalid",e),aE(r,"onChange");break;case"textarea":TC(e,n),s=xC(e,n),Wk("invalid",e),aE(r,"onChange");break;default:s=n}nE(o,s);var c=s;for(i in c)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?tE(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&UC(e,u):"children"===i?"string"==typeof u?("textarea"!==o||""!==u)&&jC(e,u):"number"==typeof u&&jC(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(kw.hasOwnProperty(i)?null!=u&&aE(r,i):null!=u&&Xw(e,i,u,a))}switch(o){case"input":yC(e),SC(e,n,!1);break;case"textarea":yC(e),PC(e);break;case"option":null!=n.value&&e.setAttribute("value",""+mC(n.value));break;case"select":e.multiple=!!n.multiple,null!=(r=n.value)?AC(e,!!n.multiple,r,!1):null!=n.defaultValue&&AC(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=sE)}mE(o,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)FA(0,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(ow(166));r=T_(x_.current),T_(__.current),BA(t)?(r=t.stateNode,n=t.memoizedProps,r[EE]=t,r.nodeValue!==n&&(t.effectTag|=4)):((r=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[EE]=t,t.stateNode=r)}return null;case 13:return sB(O_),n=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=r,t):(r=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&BA(t):(n=null!==(o=e.memoizedState),r||null===o||null!==(o=e.child.sibling)&&(null!==(i=t.firstEffect)?(t.firstEffect=o,o.nextEffect=i):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&O_.current)?Ax===wx&&(Ax=Cx):(Ax!==wx&&Ax!==Cx||(Ax=kx),0!==Rx&&null!==Sx&&(NT(Sx,_x),OT(Sx,Rx)))),(r||n)&&(t.effectTag|=4),null);case 4:return P_(),null;case 10:return JB(t),null;case 17:return hB(t.type)&&gB(),null;case 19:if(sB(O_),null===(n=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(i=n.rendering)){if(o)QA(n,!1);else if(Ax!==wx||null!==e&&0!=(64&e.effectTag))for(i=t.child;null!==i;){if(null!==(e=L_(i))){for(t.effectTag|=64,QA(n,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)i=r,(o=n).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=i,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,i=e.dependencies,o.dependencies=null===i?null:{expirationTime:i.expirationTime,firstContext:i.firstContext,responders:i.responders}),n=n.sibling;return cB(O_,1&O_.current|2),t.child}i=i.sibling}}else{if(!o)if(null!==(e=L_(i))){if(t.effectTag|=64,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),QA(n,!0),null===n.tail&&"hidden"===n.tailMode&&!i.alternate)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*UB()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,o=!0,QA(n,!1),t.expirationTime=t.childExpirationTime=r-1);n.isBackwards?(i.sibling=t.child,t.child=i):(null!==(r=n.last)?r.sibling=i:t.child=i,n.last=i)}return null!==n.tail?(0===n.tailExpiration&&(n.tailExpiration=UB()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=UB(),r.sibling=null,t=O_.current,cB(O_,o?1&t|2:1&t),r):null}throw Error(ow(156,t.tag))}function XA(e){switch(e.tag){case 1:hB(e.type)&&gB();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(P_(),sB(dB),sB(lB),0!=(64&(t=e.effectTag)))throw Error(ow(285));return e.effectTag=-4097&t|64,e;case 5:return N_(e),null;case 13:return sB(O_),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return sB(O_),null;case 4:return P_(),null;case 10:return JB(e),null;default:return null}}function YA(e,t){return{value:e,source:t,stack:gC(t)}}UA=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},jA=function(e,t,r,n,o){var i=e.memoizedProps;if(i!==n){var a,s,c=t.stateNode;switch(T_(__.current),e=null,r){case"input":i=wC(c,i),n=wC(c,n),e=[];break;case"option":i=_C(c,i),n=_C(c,n),e=[];break;case"select":i=bm({},i,{value:void 0}),n=bm({},n,{value:void 0}),e=[];break;case"textarea":i=xC(c,i),n=xC(c,n),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(c.onclick=sE)}for(a in nE(r,n),r=null,i)if(!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&null!=i[a])if("style"===a)for(s in c=i[a])c.hasOwnProperty(s)&&(r||(r={}),r[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(kw.hasOwnProperty(a)?e||(e=[]):(e=e||[]).push(a,null));for(a in n){var u=n[a];if(c=null!=i?i[a]:void 0,n.hasOwnProperty(a)&&u!==c&&(null!=u||null!=c))if("style"===a)if(c){for(s in c)!c.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&c[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(e||(e=[]),e.push(a,r)),r=u;else"dangerouslySetInnerHTML"===a?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(a,u)):"children"===a?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(a,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(kw.hasOwnProperty(a)?(null!=u&&aE(o,a),e||c===u||(e=[])):(e=e||[]).push(a,u))}r&&(e=e||[]).push("style",r),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},FA=function(e,t,r,n){r!==n&&(t.effectTag|=4)};var $A="function"==typeof WeakSet?WeakSet:Set;function ZA(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=gC(r)),null!==r&&hC(r.type),t=t.value,null!==e&&1===e.tag&&hC(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function JA(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){yT(e,t)}else t.current=null}function ex(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:QB(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(ow(163))}function tx(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.destroy;r.destroy=void 0,void 0!==n&&n()}r=r.next}while(r!==t)}}function rx(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function nx(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:return void rx(3,r);case 1:if(e=r.stateNode,4&r.effectTag)if(null===t)e.componentDidMount();else{var n=r.elementType===r.type?t.memoizedProps:QB(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&l_(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}l_(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.effectTag&&mE(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&Lk(r)))));case 19:case 17:case 20:case 21:return}throw Error(ow(163))}function ox(e,t,r){switch("function"==typeof kT&&kT(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;VB(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var o=t;try{r()}catch(e){yT(o,e)}}e=e.next}while(e!==n)}))}break;case 1:JA(t),"function"==typeof(r=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){yT(e,t)}}(t,r);break;case 5:JA(t);break;case 4:lx(e,t,r)}}function ix(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ix(t)}function ax(e){return 5===e.tag||3===e.tag||4===e.tag}function sx(e){e:{for(var t=e.return;null!==t;){if(ax(t)){var r=t;break e}t=t.return}throw Error(ow(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(ow(161))}16&r.effectTag&&(jC(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||ax(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}n?cx(e,r,t):ux(e,r,t)}function cx(e,t,r){var n=e.tag,o=5===n||6===n;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=sE));else if(4!==n&&null!==(e=e.child))for(cx(e,t,r),e=e.sibling;null!==e;)cx(e,t,r),e=e.sibling}function ux(e,t,r){var n=e.tag,o=5===n||6===n;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ux(e,t,r),e=e.sibling;null!==e;)ux(e,t,r),e=e.sibling}function lx(e,t,r){for(var n,o,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(ow(160));switch(n=a.stateNode,a.tag){case 5:o=!1;break e;case 3:case 4:n=n.containerInfo,o=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var s=e,c=i,u=r,l=c;;)if(ox(s,l,u),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===c)break e;for(;null===l.sibling;){if(null===l.return||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(s=n,c=i.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(ox(e,i,r),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function dx(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void tx(3,t);case 1:return;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,o=null!==e?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[SE]=n,"input"===e&&"radio"===n.type&&null!=n.name&&kC(r,n),oE(e,o),t=oE(e,n),o=0;o<i.length;o+=2){var a=i[o],s=i[o+1];"style"===a?tE(r,s):"dangerouslySetInnerHTML"===a?UC(r,s):"children"===a?jC(r,s):Xw(r,a,s,t)}switch(e){case"input":EC(r,n);break;case"textarea":IC(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?AC(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?AC(r,!!n.multiple,n.defaultValue,!0):AC(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(ow(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Lk(t.containerInfo)));case 12:return;case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Ox=UB()),null!==r)e:for(e=r;;){if(5===e.tag)i=e.stateNode,n?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=eE("display",o));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void fx(t);case 19:return void fx(t);case 17:return}throw Error(ow(163))}function fx(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new $A),t.forEach((function(t){var n=wT.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var px="function"==typeof WeakMap?WeakMap:Map;function hx(e,t,r){(r=a_(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Mx||(Mx=!0,Dx=n),ZA(e,t)},r}function gx(e,t,r){(r=a_(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return ZA(e,t),n(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Ux?Ux=new Set([this]):Ux.add(this),ZA(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var mx,vx=Math.ceil,yx=Gw.ReactCurrentDispatcher,bx=Gw.ReactCurrentOwner,wx=0,Cx=3,kx=4,Ex=0,Sx=null,Bx=null,_x=0,Ax=wx,xx=null,Tx=1073741823,Ix=1073741823,Px=null,Rx=0,Nx=!1,Ox=0,Lx=null,Mx=!1,Dx=null,Ux=null,jx=!1,Fx=null,Vx=90,zx=null,Kx=0,Hx=null,qx=0;function Wx(){return 0!=(48&Ex)?1073741821-(UB()/10|0):0!==qx?qx:qx=1073741821-(UB()/10|0)}function Qx(e,t,r){if(0==(2&(t=t.mode)))return 1073741823;var n=jB();if(0==(4&t))return 99===n?1073741823:1073741822;if(0!=(16&Ex))return _x;if(null!==r)e=WB(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=WB(e,150,100);break;case 97:case 96:e=WB(e,5e3,250);break;case 95:e=2;break;default:throw Error(ow(326))}return null!==Sx&&e===_x&&--e,e}function Gx(e,t){if(50<Kx)throw Kx=0,Hx=null,Error(ow(185));if(null!==(e=Xx(e,t))){var r=jB();1073741823===t?0!=(8&Ex)&&0==(48&Ex)?Jx(e):($x(e),0===Ex&&HB()):$x(e),0==(4&Ex)||98!==r&&99!==r||(null===zx?zx=new Map([[e,t]]):(void 0===(r=zx.get(e))||r>t)&&zx.set(e,t))}}function Xx(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,o=null;if(null===n&&3===e.tag)o=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){o=n.stateNode;break}n=n.return}return null!==o&&(Sx===o&&(aT(t),Ax===kx&&NT(o,_x)),OT(o,t)),o}function Yx(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!RT(e,t=e.firstPendingTime))return t;var r=e.lastPingedTime;return 2>=(e=r>(e=e.nextKnownPendingLevel)?r:e)&&t!==e?0:e}function $x(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=KB(Jx.bind(null,e));else{var t=Yx(e),r=e.callbackNode;if(0===t)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=Wx();if(1073741823===t?n=99:1===t||2===t?n=95:n=0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==r){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=n)return;r!==PB&&kB(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?KB(Jx.bind(null,e)):zB(n,Zx.bind(null,e),{timeout:10*(1073741821-t)-UB()}),e.callbackNode=t}}}function Zx(e,t){if(qx=0,t)return LT(e,t=Wx()),$x(e),null;var r=Yx(e);if(0!==r){if(t=e.callbackNode,0!=(48&Ex))throw Error(ow(327));if(gT(),e===Sx&&r===_x||rT(e,r),null!==Bx){var n=Ex;Ex|=16;for(var o=oT();;)try{cT();break}catch(t){nT(e,t)}if(ZB(),Ex=n,yx.current=o,1===Ax)throw t=xx,rT(e,r),NT(e,r),$x(e),t;if(null===Bx)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=Ax,Sx=null,n){case wx:case 1:throw Error(ow(345));case 2:LT(e,2<r?2:r);break;case Cx:if(NT(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dT(o)),1073741823===Tx&&10<(o=Ox+500-UB())){if(Nx){var i=e.lastPingedTime;if(0===i||i>=r){e.lastPingedTime=r,rT(e,r);break}}if(0!==(i=Yx(e))&&i!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=yE(fT.bind(null,e),o);break}fT(e);break;case kx:if(NT(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dT(o)),Nx&&(0===(o=e.lastPingedTime)||o>=r)){e.lastPingedTime=r,rT(e,r);break}if(0!==(o=Yx(e))&&o!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}if(1073741823!==Ix?n=10*(1073741821-Ix)-UB():1073741823===Tx?n=0:(n=10*(1073741821-Tx)-5e3,0>(n=(o=UB())-n)&&(n=0),(r=10*(1073741821-r)-o)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*vx(n/1960))-n)&&(n=r)),10<n){e.timeoutHandle=yE(fT.bind(null,e),n);break}fT(e);break;case 5:if(1073741823!==Tx&&null!==Px){i=Tx;var a=Px;if(0>=(n=0|a.busyMinDurationMs)?n=0:(o=0|a.busyDelayMs,n=(i=UB()-(10*(1073741821-i)-(0|a.timeoutMs||5e3)))<=o?0:o+n-i),10<n){NT(e,r),e.timeoutHandle=yE(fT.bind(null,e),n);break}}fT(e);break;default:throw Error(ow(329))}if($x(e),e.callbackNode===t)return Zx.bind(null,e)}}return null}function Jx(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Ex))throw Error(ow(327));if(gT(),e===Sx&&t===_x||rT(e,t),null!==Bx){var r=Ex;Ex|=16;for(var n=oT();;)try{sT();break}catch(t){nT(e,t)}if(ZB(),Ex=r,yx.current=n,1===Ax)throw r=xx,rT(e,t),NT(e,t),$x(e),r;if(null!==Bx)throw Error(ow(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Sx=null,fT(e),$x(e)}return null}function eT(e,t){var r=Ex;Ex|=1;try{return e(t)}finally{0===(Ex=r)&&HB()}}function tT(e,t){var r=Ex;Ex&=-2,Ex|=8;try{return e(t)}finally{0===(Ex=r)&&HB()}}function rT(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,bE(r)),null!==Bx)for(r=Bx.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&gB();break;case 3:P_(),sB(dB),sB(lB);break;case 5:N_(n);break;case 4:P_();break;case 13:case 19:sB(O_);break;case 10:JB(n)}r=r.return}Sx=e,Bx=_T(e.current,null),_x=t,Ax=wx,xx=null,Ix=Tx=1073741823,Px=null,Rx=0,Nx=!1}function nT(e,t){for(;;){try{if(ZB(),D_.current=hA,K_)for(var r=F_.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(j_=0,z_=V_=F_=null,K_=!1,null===Bx||null===Bx.return)return Ax=1,xx=t,Bx=null;e:{var o=e,i=Bx.return,a=Bx,s=t;if(t=_x,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!=(1&O_.current),d=i;do{var f;if(f=13===d.tag){var p=d.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var h=d.memoizedProps;f=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!l)}}if(f){var g=d.updateQueue;if(null===g){var m=new Set;m.add(c),d.updateQueue=m}else g.add(c);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=a_(1073741823,null);v.tag=2,s_(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new px,s=new Set,y.set(c,s)):void 0===(s=y.get(c))&&(s=new Set,y.set(c,s)),!s.has(a)){s.add(a);var b=bT.bind(null,o,c,a);c.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((hC(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+gC(a))}5!==Ax&&(Ax=2),s=YA(s,a),d=i;do{switch(d.tag){case 3:c=s,d.effectTag|=4096,d.expirationTime=t,c_(d,hx(d,c,t));break e;case 1:c=s;var w=d.type,C=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==C&&"function"==typeof C.componentDidCatch&&(null===Ux||!Ux.has(C)))){d.effectTag|=4096,d.expirationTime=t,c_(d,gx(d,c,t));break e}}d=d.return}while(null!==d)}Bx=lT(Bx)}catch(e){t=e;continue}break}}function oT(){var e=yx.current;return yx.current=hA,null===e?hA:e}function iT(e,t){e<Tx&&2<e&&(Tx=e),null!==t&&e<Ix&&2<e&&(Ix=e,Px=t)}function aT(e){e>Rx&&(Rx=e)}function sT(){for(;null!==Bx;)Bx=uT(Bx)}function cT(){for(;null!==Bx&&!RB();)Bx=uT(Bx)}function uT(e){var t=mx(e.alternate,e,_x);return e.memoizedProps=e.pendingProps,null===t&&(t=lT(e)),bx.current=null,t}function lT(e){Bx=e;do{var t=Bx.alternate;if(e=Bx.return,0==(2048&Bx.effectTag)){if(t=GA(t,Bx,_x),1===_x||1!==Bx.childExpirationTime){for(var r=0,n=Bx.child;null!==n;){var o=n.expirationTime,i=n.childExpirationTime;o>r&&(r=o),i>r&&(r=i),n=n.sibling}Bx.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Bx.firstEffect),null!==Bx.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Bx.firstEffect),e.lastEffect=Bx.lastEffect),1<Bx.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Bx:e.firstEffect=Bx,e.lastEffect=Bx))}else{if(null!==(t=XA(Bx)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Bx.sibling))return t;Bx=e}while(null!==Bx);return Ax===wx&&(Ax=5),null}function dT(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function fT(e){var t=jB();return VB(99,pT.bind(null,e,t)),null}function pT(e,t){do{gT()}while(null!==Fx);if(0!=(48&Ex))throw Error(ow(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw Error(ow(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=dT(r);if(e.firstPendingTime=o,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Sx&&(Bx=Sx=null,_x=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,o=r.firstEffect):o=r:o=r.firstEffect,null!==o){var i=Ex;Ex|=32,bx.current=null,hE=qk;var a=fE();if(pE(a)){if("selectionStart"in a)var s={start:a.selectionStart,end:a.selectionEnd};else e:{var c=(s=(s=a.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var u=c.anchorOffset,l=c.focusNode;c=c.focusOffset;try{s.nodeType,l.nodeType}catch(e){s=null;break e}var d=0,f=-1,p=-1,h=0,g=0,m=a,v=null;t:for(;;){for(var y;m!==s||0!==u&&3!==m.nodeType||(f=d+u),m!==l||0!==c&&3!==m.nodeType||(p=d+c),3===m.nodeType&&(d+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===a)break t;if(v===s&&++h===u&&(f=d),v===l&&++g===c&&(p=d),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}s=-1===f||-1===p?null:{start:f,end:p}}else s=null}s=s||{start:0,end:0}}else s=null;gE={activeElementDetached:null,focusedElem:a,selectionRange:s},qk=!1,Lx=o;do{try{hT()}catch(e){if(null===Lx)throw Error(ow(330));yT(Lx,e),Lx=Lx.nextEffect}}while(null!==Lx);Lx=o;do{try{for(a=e,s=t;null!==Lx;){var b=Lx.effectTag;if(16&b&&jC(Lx.stateNode,""),128&b){var w=Lx.alternate;if(null!==w){var C=w.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(1038&b){case 2:sx(Lx),Lx.effectTag&=-3;break;case 6:sx(Lx),Lx.effectTag&=-3,dx(Lx.alternate,Lx);break;case 1024:Lx.effectTag&=-1025;break;case 1028:Lx.effectTag&=-1025,dx(Lx.alternate,Lx);break;case 4:dx(Lx.alternate,Lx);break;case 8:lx(a,u=Lx,s),ix(u)}Lx=Lx.nextEffect}}catch(e){if(null===Lx)throw Error(ow(330));yT(Lx,e),Lx=Lx.nextEffect}}while(null!==Lx);if(C=gE,w=fE(),b=C.focusedElem,s=C.selectionRange,w!==b&&b&&b.ownerDocument&&dE(b.ownerDocument.documentElement,b)){null!==s&&pE(b)&&(w=s.start,void 0===(C=s.end)&&(C=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(C,b.value.length)):(C=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(C=C.getSelection(),u=b.textContent.length,a=Math.min(s.start,u),s=void 0===s.end?a:Math.min(s.end,u),!C.extend&&a>s&&(u=s,s=a,a=u),u=lE(b,a),l=lE(b,s),u&&l&&(1!==C.rangeCount||C.anchorNode!==u.node||C.anchorOffset!==u.offset||C.focusNode!==l.node||C.focusOffset!==l.offset)&&((w=w.createRange()).setStart(u.node,u.offset),C.removeAllRanges(),a>s?(C.addRange(w),C.extend(l.node,l.offset)):(w.setEnd(l.node,l.offset),C.addRange(w))))),w=[];for(C=b;C=C.parentNode;)1===C.nodeType&&w.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(C=w[b]).element.scrollLeft=C.left,C.element.scrollTop=C.top}qk=!!hE,gE=hE=null,e.current=r,Lx=o;do{try{for(b=e;null!==Lx;){var k=Lx.effectTag;if(36&k&&nx(b,Lx.alternate,Lx),128&k){w=void 0;var E=Lx.ref;if(null!==E){var S=Lx.stateNode;switch(Lx.tag){case 5:w=S;break;default:w=S}"function"==typeof E?E(w):E.current=w}}Lx=Lx.nextEffect}}catch(e){if(null===Lx)throw Error(ow(330));yT(Lx,e),Lx=Lx.nextEffect}}while(null!==Lx);Lx=null,NB(),Ex=i}else e.current=r;if(jx)jx=!1,Fx=e,Vx=t;else for(Lx=o;null!==Lx;)t=Lx.nextEffect,Lx.nextEffect=null,Lx=t;if(0===(t=e.firstPendingTime)&&(Ux=null),1073741823===t?e===Hx?Kx++:(Kx=0,Hx=e):Kx=0,"function"==typeof CT&&CT(r.stateNode,n),$x(e),Mx)throw Mx=!1,e=Dx,Dx=null,e;return 0!=(8&Ex)||HB(),null}function hT(){for(;null!==Lx;){var e=Lx.effectTag;0!=(256&e)&&ex(Lx.alternate,Lx),0==(512&e)||jx||(jx=!0,zB(97,(function(){return gT(),null}))),Lx=Lx.nextEffect}}function gT(){if(90!==Vx){var e=97<Vx?97:Vx;return Vx=90,VB(e,mT)}}function mT(){if(null===Fx)return!1;var e=Fx;if(Fx=null,0!=(48&Ex))throw Error(ow(331));var t=Ex;for(Ex|=32,e=e.current.firstEffect;null!==e;){try{var r=e;if(0!=(512&r.effectTag))switch(r.tag){case 0:case 11:case 15:case 22:tx(5,r),rx(5,r)}}catch(t){if(null===e)throw Error(ow(330));yT(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return Ex=t,HB(),!0}function vT(e,t,r){s_(e,t=hx(e,t=YA(r,t),1073741823)),null!==(e=Xx(e,1073741823))&&$x(e)}function yT(e,t){if(3===e.tag)vT(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){vT(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Ux||!Ux.has(n))){s_(r,e=gx(r,e=YA(t,e),1073741823)),null!==(r=Xx(r,1073741823))&&$x(r);break}}r=r.return}}function bT(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),Sx===e&&_x===r?Ax===kx||Ax===Cx&&1073741823===Tx&&UB()-Ox<500?rT(e,_x):Nx=!0:RT(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,$x(e)))}function wT(e,t){var r=e.stateNode;null!==r&&r.delete(t),0===(t=0)&&(t=Qx(t=Wx(),e,null)),null!==(e=Xx(e,t))&&$x(e)}mx=function(e,t,r){var n=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||dB.current)xA=!0;else{if(n<r){switch(xA=!1,t.tag){case 3:DA(t),_A();break;case 5:if(R_(t),4&t.mode&&1!==r&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:hB(t.type)&&yB(t);break;case 4:I_(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,o=t.type._context,cB(GB,o._currentValue),o._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?zA(e,t,r):(cB(O_,1&O_.current),null!==(t=WA(e,t,r))?t.sibling:null);cB(O_,1&O_.current);break;case 19:if(n=t.childExpirationTime>=r,0!=(64&e.effectTag)){if(n)return qA(e,t,r);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),cB(O_,O_.current),!n)return null}return WA(e,t,r)}xA=!1}}else xA=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=pB(t,lB.current),t_(t,r),o=W_(null,t,n,e,o,r),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hB(n)){var i=!0;yB(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o_(t);var a=n.getDerivedStateFromProps;"function"==typeof a&&p_(t,n,a,e),o.updater=h_,t.stateNode=o,o._reactInternalFiber=t,y_(t,n,e,r),t=MA(null,t,n,!0,i,r)}else t.tag=0,TA(null,t,o,r),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return BT(e)?1:0;if(null!=e){if((e=e.$$typeof)===aC)return 11;if(e===uC)return 14}return 2}(o),e=QB(o,e),i){case 0:t=OA(null,t,o,e,r);break e;case 1:t=LA(null,t,o,e,r);break e;case 11:t=IA(null,t,o,e,r);break e;case 14:t=PA(null,t,o,QB(o.type,e),n,r);break e}throw Error(ow(306,o,""))}return t;case 0:return n=t.type,o=t.pendingProps,OA(e,t,n,o=t.elementType===n?o:QB(n,o),r);case 1:return n=t.type,o=t.pendingProps,LA(e,t,n,o=t.elementType===n?o:QB(n,o),r);case 3:if(DA(t),n=t.updateQueue,null===e||null===n)throw Error(ow(282));if(n=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,i_(e,t),u_(t,n,null,r),(n=t.memoizedState.element)===o)_A(),t=WA(e,t,r);else{if((o=t.stateNode.hydrate)&&(bA=wE(t.stateNode.containerInfo.firstChild),yA=t,o=wA=!0),o)for(r=S_(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else TA(e,t,n,r),_A();t=t.child}return t;case 5:return R_(t),null===e&&EA(t),n=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,vE(n,o)?a=null:null!==i&&vE(n,i)&&(t.effectTag|=16),NA(e,t),4&t.mode&&1!==r&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(TA(e,t,a,r),t=t.child),t;case 6:return null===e&&EA(t),null;case 13:return zA(e,t,r);case 4:return I_(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=E_(t,null,n,r):TA(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,IA(e,t,n,o=t.elementType===n?o:QB(n,o),r);case 7:return TA(e,t,t.pendingProps,r),t.child;case 8:case 12:return TA(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;var s=t.type._context;if(cB(GB,s._currentValue),s._currentValue=i,null!==a)if(s=a.value,0===(i=MS(s,i)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(s,i):1073741823))){if(a.children===o.children&&!dB.current){t=WA(e,t,r);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){a=s.child;for(var u=c.firstContext;null!==u;){if(u.context===n&&0!=(u.observedBits&i)){1===s.tag&&((u=a_(r,null)).tag=2,s_(s,u)),s.expirationTime<r&&(s.expirationTime=r),null!==(u=s.alternate)&&u.expirationTime<r&&(u.expirationTime=r),e_(s.return,r),c.expirationTime<r&&(c.expirationTime=r);break}u=u.next}}else a=10===s.tag&&s.type===t.type?null:s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}TA(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=(i=t.pendingProps).children,t_(t,r),n=n(o=r_(o,i.unstable_observedBits)),t.effectTag|=1,TA(e,t,n,r),t.child;case 14:return i=QB(o=t.type,t.pendingProps),PA(e,t,o,i=QB(o.type,i),n,r);case 15:return RA(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:QB(n,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,hB(n)?(e=!0,yB(t)):e=!1,t_(t,r),m_(t,n,o),y_(t,n,o,r),MA(null,t,n,!0,e,r);case 19:return qA(e,t,r)}throw Error(ow(156,t.tag))};var CT=null,kT=null;function ET(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function ST(e,t,r,n){return new ET(e,t,r,n)}function BT(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _T(e,t){var r=e.alternate;return null===r?((r=ST(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function AT(e,t,r,n,o,i){var a=2;if(n=e,"function"==typeof e)BT(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case eC:return xT(r.children,o,i,t);case iC:a=8,o|=7;break;case tC:a=8,o|=1;break;case rC:return(e=ST(12,r,t,8|o)).elementType=rC,e.type=rC,e.expirationTime=i,e;case sC:return(e=ST(13,r,t,o)).type=sC,e.elementType=sC,e.expirationTime=i,e;case cC:return(e=ST(19,r,t,o)).elementType=cC,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case nC:a=10;break e;case oC:a=9;break e;case aC:a=11;break e;case uC:a=14;break e;case lC:a=16,n=null;break e;case dC:a=22;break e}throw Error(ow(130,null==e?e:typeof e,""))}return(t=ST(a,r,t,o)).elementType=e,t.type=n,t.expirationTime=i,t}function xT(e,t,r,n){return(e=ST(7,e,n,t)).expirationTime=r,e}function TT(e,t,r){return(e=ST(6,e,null,t)).expirationTime=r,e}function IT(e,t,r){return(t=ST(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function PT(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function RT(e,t){var r=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==r&&r>=t&&e<=t}function NT(e,t){var r=e.firstSuspendedTime,n=e.lastSuspendedTime;r<t&&(e.firstSuspendedTime=t),(n>t||0===r)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function OT(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var r=e.firstSuspendedTime;0!==r&&(t>=r?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function LT(e,t){var r=e.lastExpiredTime;(0===r||r>t)&&(e.lastExpiredTime=t)}function MT(e,t,r,n){var o=t.current,i=Wx(),a=d_.suspense;i=Qx(i,o,a);e:if(r){t:{if(ZC(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(ow(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(hB(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(ow(171))}if(1===r.tag){var c=r.type;if(hB(c)){r=vB(r,c,s);break e}}r=s}else r=uB;return null===t.context?t.context=r:t.pendingContext=r,(t=a_(i,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),s_(o,t),Gx(o,i),i}function DT(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function UT(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function jT(e,t){UT(e,t),(e=e.alternate)&&UT(e,t)}function FT(e,t,r){var n=new PT(e,t,r=null!=r&&!0===r.hydrate),o=ST(3,null,null,2===t?7:1===t?3:0);n.current=o,o.stateNode=n,o_(o),e[BE]=n.current,r&&0!==t&&function(e,t){var r=$C(t);Bk.forEach((function(e){pk(e,t,r)})),_k.forEach((function(e){pk(e,t,r)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function VT(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function zT(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=DT(a);s.call(e)}}MT(t,a,e,o)}else{if(i=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new FT(e,0,t?{hydrate:!0}:void 0)}(r,n),a=i._internalRoot,"function"==typeof o){var c=o;o=function(){var e=DT(a);c.call(e)}}tT((function(){MT(t,a,e,o)}))}return DT(a)}function KT(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Jw,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}function HT(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!VT(t))throw Error(ow(200));return KT(e,t,null,r)}FT.prototype.render=function(e){MT(e,this._internalRoot,null,null)},FT.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;MT(null,e,null,(function(){t[BE]=null}))},hk=function(e){if(13===e.tag){var t=WB(Wx(),150,100);Gx(e,t),jT(e,t)}},gk=function(e){13===e.tag&&(Gx(e,3),jT(e,3))},mk=function(e){if(13===e.tag){var t=Wx();Gx(e,t=Qx(t,e,null)),jT(e,t)}},_w=function(e,t,r){switch(t){case"input":if(EC(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=TE(n);if(!o)throw Error(ow(90));bC(n),EC(n,o)}}}break;case"textarea":IC(e,r);break;case"select":null!=(t=r.value)&&AC(e,!!r.multiple,t,!1)}},Rw=eT,Nw=function(e,t,r,n,o){var i=Ex;Ex|=4;try{return VB(98,e.bind(null,t,r,n,o))}finally{0===(Ex=i)&&HB()}},Ow=function(){0==(49&Ex)&&(function(){if(null!==zx){var e=zx;zx=null,e.forEach((function(e,t){LT(t,e),$x(t)})),HB()}}(),gT())},Lw=function(e,t){var r=Ex;Ex|=2;try{return e(t)}finally{0===(Ex=r)&&HB()}};var qT={Events:[AE,xE,TE,Sw,Cw,ME,function(e){nk(e,LE)},Iw,Pw,Yk,ak,gT,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);CT=function(e){try{t.onCommitFiberRoot(r,e,void 0,64==(64&e.current.effectTag))}catch(e){}},kT=function(e){try{t.onCommitFiberUnmount(r,e)}catch(e){}}}catch(e){}})(bm({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gw.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tk(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:_E,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"});var WT={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qT,createPortal:HT,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(ow(188));throw Error(ow(268,Object.keys(e)))}return e=null===(e=tk(t))?null:e.stateNode},flushSync:function(e,t){if(0!=(48&Ex))throw Error(ow(187));var r=Ex;Ex|=1;try{return VB(99,e.bind(null,t))}finally{Ex=r,HB()}},hydrate:function(e,t,r){if(!VT(t))throw Error(ow(200));return zT(null,e,t,!0,r)},render:function(e,t,r){if(!VT(t))throw Error(ow(200));return zT(null,e,t,!1,r)},unmountComponentAtNode:function(e){if(!VT(e))throw Error(ow(40));return!!e._reactRootContainer&&(tT((function(){zT(null,null,e,!1,(function(){e._reactRootContainer=null,e[BE]=null}))})),!0)},unstable_batchedUpdates:eT,unstable_createPortal:function(e,t){return HT(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_renderSubtreeIntoContainer:function(e,t,r,n){if(!VT(r))throw Error(ow(200));if(null==e||void 0===e._reactInternalFiber)throw Error(ow(38));return zT(e,t,r,!1,n)},version:"16.14.0"},QT=0,GT={__interactionsRef:null,__subscriberRef:null,unstable_clear:function(e){return e()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++QT},unstable_subscribe:function(){},unstable_trace:function(e,t,r){return r()},unstable_unsubscribe:function(){},unstable_wrap:function(e){return e}},XT=(r((function(e,t){})),r((function(e){e.exports=GT})),r((function(e,t){})),r((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=WT}))),YT={not_supported:{code:"not_supported",msg:{en:"Camera is not well-supported on this device/browser. Please try another one.",vi:"Camera không được hỗ trợ. Vui lòng thử trình duyệt hoặc thiết bị khác."}},camera_timeout:{code:"camera_timeout",msg:{en:"Can't access camera. Please check camera permission, try again or try another browser/device",vi:"Không thể truy cập camera trong thời gian cho phép. Vui lòng kiểm tra quyền truy cập camera, thử lại hoặc thử trên trình duyệt/thiết bị khác."}},wrong_orientation:{code:"wrong_orientation",msg:{en:"You are using landscape mode. Please rotate screen to portrait mode and retry.",vi:"Bạn đang sử dụng chế độ màn hình xoay ngang. Vui lòng quay màn hình theo chiều dọc và thực hiện lại."}},unable_to_load_model:{code:"unable_to_load_model",msg:{en:"Unable to load model on this device/browser. Please try another one.",vi:"Không thể load model. Vui lòng thử trình duyệt hoặc thiết bị khác."}},no_permission:{code:"no_permission",msg:{en:"Please grant the permission to access the camera.",vi:"Vui lòng cấp quyền để truy cập camera."}},no_face:{code:"no_face",msg:{en:"Face not found",vi:"Không tìm thấy khuôn mặt"}},partial_face:{code:"partial_face",msg:{en:"Face out of the box",vi:"Không tìm thấy toàn bộ khuôn mặt"}},multiple_faces:{code:"multiple_faces",msg:{en:"Too many faces",vi:"Quá nhiều khuôn mặt"}},face_too_small:{code:"face_too_small",msg:{en:"Face too small",vi:"Khuôn mặt quá nhỏ"}},face_too_large:{code:"face_too_large",msg:{en:"Face too large",vi:"Khuôn mặt quá to"}},face_out_of_box:{code:"face_out_of_box",msg:{en:"Face is out of box",vi:"Khuôn mặt không nằm trọn vẹn trong khung ảnh"}},liveness_too_fast:{code:"liveness_too_fast",msg:{en:"Please turn your face SLOWLY",vi:"Vui lòng quay CHẬM lại"}},liveness_terminated:{code:"liveness_terminated",msg:{en:"Please try again.",vi:"Vui lòng thực hiện lại."}},liveness_terminated_face_tracking:{code:"liveness_terminated_face_tracking",msg:{en:"You need to turn your face SLOWLY.\nPlease try again.",vi:"Bạn cần quay CHẬM lại.\nVui lòng thực hiện lại."}},liveness_terminated_no_face:{code:"liveness_terminated_no_face",msg:{en:"Your face was missing for too long.\nPlease try again.",vi:"Khuôn mặt không nằm trong khung hình.\nXin vui lòng thử lại."}},liveness_terminated_time_out:{code:"liveness_terminated_time_out",msg:{en:"You need to complete gestures as instructed within <%= x %> seconds.\nPlease try again.",vi:"Bạn cần hoàn thành động tác theo chỉ dẫn trong <%= x %> giây.\nXin vui lòng thử lại."}},card_sanity_not_good:{code:"card_sanity_not_good",msg:{en:"Card sanity not good",vi:"Card sanity chưa đạt"}},api_call_error:{code:"api_call_error",msg:{en:"Api call error",vi:"Lỗi call api"}},upload_error:{code:"upload_error",msg:{en:"Upload error",vi:"Lỗi upload"}},sanity_check_error:{code:"sanity_check_error",msg:{en:"Sanity check error",vi:"Lỗi check sanity"}},read_id_card_error:{code:"read_id_card_error",msg:{en:"Read id card error",vi:"Lỗi read id card"}},detect_id_tampering_error:{code:"detect_id_tampering_error",msg:{en:"Detect id tampering error",vi:"Lỗi detect id tampering"}},detect_id_card_error:{code:"detect_id_card_error",msg:{en:"Can't detect id card type",vi:"Không thể detect id card type"}},missing_front_id_card:{code:"missing_front_id_card",msg:{en:"Missing front id",vi:"Không tìm thấy front id"}},server_error:{code:"server_error",msg:"Server error"},client_web_setting_not_found:{code:"client_web_setting_not_found",msg:"Client Web Setting Not Found"},id_detector_validate_angle_error:{code:"id_detector_validate_angle_error",msg:{en:"Please place ID card straight, not tilted",vi:"Vui lòng đặt giấy tờ thẳng, không bị nghiêng khi chụp"}},id_detector_no_cards:{code:"id_detector_no_cards",msg:{en:"Please capture the <%= side %> side of ID card\n (occupy 50-95% of the frame)",vi:"Vui lòng chụp mặt <%= side %> của giấy tờ\n (chiếm 50-95% khung hình)"}},id_detector_card_too_small:{code:"id_detector_card_too_small",msg:{en:"Please move ID card CLOSER\n (occupy 50-95% of the frame)",vi:"Vui lòng đưa giấy tờ lại GẦN hơn\n (chiếm 50-95% khung hình)"}},id_detector_error_incomplete:{code:"id_detector_error_incomplete",msg:{en:"Please move ID card FARTHER\n (occupy 50-95% of the frame)",vi:"Vui lòng đưa giấy tờ ra XA hơn\n (chiếm 50-95% khung hình)"}},glare_detected:{code:"glare_detected",msg:{en:"Glare is detected. Please adjust the shooting angle",vi:"Ảnh bị chói / lóa. Vui lòng điều chỉnh góc chụp."}},id_detector_error_front_side_no_faces:{code:"id_detector_error_front_side_no_faces",msg:{en:"Please capture the front side of ID card",vi:"Vui lòng chụp mặt trước của giấy tờ"}},id_detector_error_front_side_multiple_faces:{code:"id_detector_error_front_side_multiple_faces",msg:{en:"Please capture the front side of one ID card only (remove other items out of the frame)",vi:"Vui lòng chụp mặt trước 1 giấy tờ duy nhất"}},id_detector_error_back_side_has_faces:{code:"id_detector_error_back_side_has_faces",msg:{en:"Please capture the back side of ID card",vi:"Vui lòng chụp mặt sau của giấy tờ"}},id_detector_error_blur:{code:"id_detector_error_blur",msg:{en:"Blurry photo detected. Please capture again for a clearer image",vi:"Ảnh bị mờ. Vui lòng chụp lại để có ảnh rõ nét hơn"}},not_frontal_face:{code:"not_frontal_face",msg:{en:"Please look straight to camera.",vi:"Vui lòng nhìn thẳng vào camera."}}},$T={FRONTAL:"frontal",LEFT:"left",RIGHT:"right",UP:"up",DOWN:"down"},ZT=Object.freeze({__proto__:null,ErrorDuration:{SHORT:500,LONG:1500,TERMINATE:3e3},Errors:YT,FaceDirection:$T,Mode:{ACTIVE:"active",PASSIVE:"passive"},Messages:{REMAIN_TIME:{en:"Remaining time: <%= x %> seconds",vi:"Thời gian còn lại: <%= x %> giây"}},IDCardSide:{FRONT:"front",BACK:"back"},IDCardType:{VN:"vn.national_id"},IDCardMessage:{REMAINING_TIME:{en:"Remaining time: <%= x %> seconds",vi:"Thời gian còn lại: <%= x %> giây"},TIMEOUT_INSTRUCTION:{en:"You need to take the picture within <%= x %> seconds.\nPlease try again.",vi:"Bạn cần hoàn thành việc chụp giấy tờ trong <%= x %> giây.\nVui lòng thử lại."}}});function JT(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function eI(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){JT(i,n,o,a,s,"next",e)}function s(e){JT(i,n,o,a,s,"throw",e)}a(void 0)}))}}function tI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rI(){return(rI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function nI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nI(Object(r),!0).forEach((function(t){tI(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nI(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function iI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(e,t)||sI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aI(e){return function(e){if(Array.isArray(e))return cI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||sI(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sI(e,t){if(e){if("string"==typeof e)return cI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cI(e,t):void 0}}function cI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uI(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=sI(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}var lI=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},dI=function(e,t){return e===t||e!=e&&t!=t},fI=function(e,t){for(var r=e.length;r--;)if(dI(e[r][0],t))return r;return-1},pI=Array.prototype.splice;function hI(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}hI.prototype.clear=function(){this.__data__=[],this.size=0},hI.prototype.delete=function(e){var t=this.__data__,r=fI(t,e);return!(r<0||(r==t.length-1?t.pop():pI.call(t,r,1),--this.size,0))},hI.prototype.get=function(e){var t=this.__data__,r=fI(t,e);return r<0?void 0:t[r][1]},hI.prototype.has=function(e){return fI(this.__data__,e)>-1},hI.prototype.set=function(e,t){var r=this.__data__,n=fI(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var gI=hI,mI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function vI(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var yI,bI="object"==Gg(mI)&&mI&&mI.Object===Object&&mI,wI="object"==("undefined"==typeof self?"undefined":Gg(self))&&self&&self.Object===Object&&self,CI=bI||wI||Function("return this")(),kI=CI.Symbol,EI=Object.prototype,SI=EI.hasOwnProperty,BI=EI.toString,_I=kI?kI.toStringTag:void 0,AI=Object.prototype.toString,xI=kI?kI.toStringTag:void 0,TI=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":xI&&xI in Object(e)?function(e){var t=SI.call(e,_I),r=e[_I];try{e[_I]=void 0;var n=!0}catch(e){}var o=BI.call(e);return n&&(t?e[_I]=r:delete e[_I]),o}(e):function(e){return AI.call(e)}(e)},II=function(e){var t=Gg(e);return null!=e&&("object"==t||"function"==t)},PI=function(e){if(!II(e))return!1;var t=TI(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},RI=CI["__core-js_shared__"],NI=(yI=/[^.]+$/.exec(RI&&RI.keys&&RI.keys.IE_PROTO||""))?"Symbol(src)_1."+yI:"",OI=Function.prototype.toString,LI=function(e){if(null!=e){try{return OI.call(e)}catch(e){}try{return e+""}catch(e){}}return""},MI=/^\[object .+?Constructor\]$/,DI=Function.prototype,UI=Object.prototype,jI=DI.toString,FI=UI.hasOwnProperty,VI=RegExp("^"+jI.call(FI).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zI=function(e){return!(!II(e)||function(e){return!!NI&&NI in e}(e))&&(PI(e)?VI:MI).test(LI(e))},KI=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return zI(r)?r:void 0},HI=KI(CI,"Map"),qI=KI(Object,"create"),WI=Object.prototype.hasOwnProperty,QI=Object.prototype.hasOwnProperty;function GI(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}GI.prototype.clear=function(){this.__data__=qI?qI(null):{},this.size=0},GI.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},GI.prototype.get=function(e){var t=this.__data__;if(qI){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return WI.call(t,e)?t[e]:void 0},GI.prototype.has=function(e){var t=this.__data__;return qI?void 0!==t[e]:QI.call(t,e)},GI.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qI&&void 0===t?"__lodash_hash_undefined__":t,this};var XI=GI,YI=function(e,t){var r=e.__data__;return function(e){var t=Gg(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map};function $I(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$I.prototype.clear=function(){this.size=0,this.__data__={hash:new XI,map:new(HI||gI),string:new XI}},$I.prototype.delete=function(e){var t=YI(this,e).delete(e);return this.size-=t?1:0,t},$I.prototype.get=function(e){return YI(this,e).get(e)},$I.prototype.has=function(e){return YI(this,e).has(e)},$I.prototype.set=function(e,t){var r=YI(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ZI=$I;function JI(e){var t=this.__data__=new gI(e);this.size=t.size}JI.prototype.clear=function(){this.__data__=new gI,this.size=0},JI.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},JI.prototype.get=function(e){return this.__data__.get(e)},JI.prototype.has=function(e){return this.__data__.has(e)},JI.prototype.set=function(e,t){var r=this.__data__;if(r instanceof gI){var n=r.__data__;if(!HI||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ZI(n)}return r.set(e,t),this.size=r.size,this};var eP=JI,tP=function(){try{var e=KI(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),rP=function(e,t,r){"__proto__"==t&&tP?tP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},nP=Object.prototype.hasOwnProperty,oP=function(e,t,r){var n=e[t];nP.call(e,t)&&dI(n,r)&&(void 0!==r||t in e)||rP(e,t,r)},iP=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?rP(r,s,c):oP(r,s,c)}return r},aP=function(e){return null!=e&&"object"==Gg(e)},sP=function(e){return aP(e)&&"[object Arguments]"==TI(e)},cP=Object.prototype,uP=cP.hasOwnProperty,lP=cP.propertyIsEnumerable,dP=sP(function(){return arguments}())?sP:function(e){return aP(e)&&uP.call(e,"callee")&&!lP.call(e,"callee")},fP=Array.isArray,pP=function(){return!1},hP=vI((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?CI.Buffer:void 0,i=(o?o.isBuffer:void 0)||pP;e.exports=i})),gP=/^(?:0|[1-9]\d*)$/,mP=function(e,t){var r=Gg(e);return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&gP.test(e))&&e>-1&&e%1==0&&e<t},vP=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},yP={};yP["[object Float32Array]"]=yP["[object Float64Array]"]=yP["[object Int8Array]"]=yP["[object Int16Array]"]=yP["[object Int32Array]"]=yP["[object Uint8Array]"]=yP["[object Uint8ClampedArray]"]=yP["[object Uint16Array]"]=yP["[object Uint32Array]"]=!0,yP["[object Arguments]"]=yP["[object Array]"]=yP["[object ArrayBuffer]"]=yP["[object Boolean]"]=yP["[object DataView]"]=yP["[object Date]"]=yP["[object Error]"]=yP["[object Function]"]=yP["[object Map]"]=yP["[object Number]"]=yP["[object Object]"]=yP["[object RegExp]"]=yP["[object Set]"]=yP["[object String]"]=yP["[object WeakMap]"]=!1;var bP=function(e){return function(t){return e(t)}},wP=vI((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&bI.process,i=function(){try{return n&&n.require&&n.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i})),CP=wP&&wP.isTypedArray,kP=CP?bP(CP):function(e){return aP(e)&&vP(e.length)&&!!yP[TI(e)]},EP=Object.prototype.hasOwnProperty,SP=function(e,t){var r=fP(e),n=!r&&dP(e),o=!r&&!n&&hP(e),i=!r&&!n&&!o&&kP(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!EP.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||mP(u,c))||s.push(u);return s},BP=Object.prototype,_P=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||BP)},AP=function(e,t){return function(r){return e(t(r))}},xP=AP(Object.keys,Object),TP=Object.prototype.hasOwnProperty,IP=function(e){return null!=e&&vP(e.length)&&!PI(e)},PP=function(e){return IP(e)?SP(e):function(e){if(!_P(e))return xP(e);var t=[];for(var r in Object(e))TP.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},RP=Object.prototype.hasOwnProperty,NP=function(e){if(!II(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=_P(e),r=[];for(var n in e)("constructor"!=n||!t&&RP.call(e,n))&&r.push(n);return r},OP=function(e){return IP(e)?SP(e,!0):NP(e)},LP=vI((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?CI.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}})),MP=function(){return[]},DP=Object.prototype.propertyIsEnumerable,UP=Object.getOwnPropertySymbols,jP=UP?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(UP(e),(function(t){return DP.call(e,t)})))}:MP,FP=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},VP=AP(Object.getPrototypeOf,Object),zP=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)FP(t,jP(e)),e=VP(e);return t}:MP,KP=function(e,t,r){var n=t(e);return fP(e)?n:FP(n,r(e))},HP=function(e){return KP(e,PP,jP)},qP=function(e){return KP(e,OP,zP)},WP=KI(CI,"DataView"),QP=KI(CI,"Promise"),GP=KI(CI,"Set"),XP=KI(CI,"WeakMap"),YP=LI(WP),$P=LI(HI),ZP=LI(QP),JP=LI(GP),eR=LI(XP),tR=TI;(WP&&"[object DataView]"!=tR(new WP(new ArrayBuffer(1)))||HI&&"[object Map]"!=tR(new HI)||QP&&"[object Promise]"!=tR(QP.resolve())||GP&&"[object Set]"!=tR(new GP)||XP&&"[object WeakMap]"!=tR(new XP))&&(tR=function(e){var t=TI(e),r="[object Object]"==t?e.constructor:void 0,n=r?LI(r):"";if(n)switch(n){case YP:return"[object DataView]";case $P:return"[object Map]";case ZP:return"[object Promise]";case JP:return"[object Set]";case eR:return"[object WeakMap]"}return t});var rR=tR,nR=Object.prototype.hasOwnProperty,oR=CI.Uint8Array,iR=function(e){var t=new e.constructor(e.byteLength);return new oR(t).set(new oR(e)),t},aR=/\w*$/,sR=kI?kI.prototype:void 0,cR=sR?sR.valueOf:void 0,uR=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return iR(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return function(e,t){var r=t?iR(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?iR(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,aR.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new n;case"[object Symbol]":return function(e){return cR?Object(cR.call(e)):{}}(e)}},lR=Object.create,dR=function(){function e(){}return function(t){if(!II(t))return{};if(lR)return lR(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),fR=wP&&wP.isMap,pR=fR?bP(fR):function(e){return aP(e)&&"[object Map]"==rR(e)},hR=wP&&wP.isSet,gR=hR?bP(hR):function(e){return aP(e)&&"[object Set]"==rR(e)},mR={};mR["[object Arguments]"]=mR["[object Array]"]=mR["[object ArrayBuffer]"]=mR["[object DataView]"]=mR["[object Boolean]"]=mR["[object Date]"]=mR["[object Float32Array]"]=mR["[object Float64Array]"]=mR["[object Int8Array]"]=mR["[object Int16Array]"]=mR["[object Int32Array]"]=mR["[object Map]"]=mR["[object Number]"]=mR["[object Object]"]=mR["[object RegExp]"]=mR["[object Set]"]=mR["[object String]"]=mR["[object Symbol]"]=mR["[object Uint8Array]"]=mR["[object Uint8ClampedArray]"]=mR["[object Uint16Array]"]=mR["[object Uint32Array]"]=!0,mR["[object Error]"]=mR["[object Function]"]=mR["[object WeakMap]"]=!1;var vR=function e(t,r,n,o,i,a){var s,c=1&r,u=2&r,l=4&r;if(n&&(s=i?n(t,o,i,a):n(t)),void 0!==s)return s;if(!II(t))return t;var d=fP(t);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&nR.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!c)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(t,s)}else{var f=rR(t),p="[object Function]"==f||"[object GeneratorFunction]"==f;if(hP(t))return LP(t,c);if("[object Object]"==f||"[object Arguments]"==f||p&&!i){if(s=u||p?{}:function(e){return"function"!=typeof e.constructor||_P(e)?{}:dR(VP(e))}(t),!c)return u?function(e,t){return iP(e,zP(e),t)}(t,function(e,t){return e&&iP(t,OP(t),e)}(s,t)):function(e,t){return iP(e,jP(e),t)}(t,function(e,t){return e&&iP(t,PP(t),e)}(s,t))}else{if(!mR[f])return i?t:{};s=uR(t,f,c)}}a||(a=new eP);var h=a.get(t);if(h)return h;a.set(t,s),gR(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,a))})):pR(t)&&t.forEach((function(o,i){s.set(i,e(o,r,n,i,t,a))}));var g=d?void 0:(l?u?qP:HP:u?OP:PP)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(g||t,(function(o,i){g&&(o=t[i=o]),oP(s,i,e(o,r,n,i,t,a))})),s},yR=function(e){return"symbol"==Gg(e)||aP(e)&&"[object Symbol]"==TI(e)},bR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wR=/^\w*$/;function CR(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(CR.Cache||ZI),r}CR.Cache=ZI;var kR=CR,ER=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,SR=/\\(\\)?/g,BR=function(e){var t=kR((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ER,(function(e,r,n,o){t.push(n?o.replace(SR,"$1"):r||e)})),t}),(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}(),_R=kI?kI.prototype:void 0,AR=_R?_R.toString:void 0,xR=function e(t){if("string"==typeof t)return t;if(fP(t))return lI(t,e)+"";if(yR(t))return AR?AR.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},TR=function(e){return null==e?"":xR(e)},IR=function(e,t){return fP(e)?e:function(e,t){if(fP(e))return!1;var r=Gg(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!yR(e))||wR.test(e)||!bR.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:BR(TR(e))},PR=function(e){if("string"==typeof e||yR(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},RR=function(e,t){return t.length<2?e:function(e,t){for(var r=0,n=(t=IR(t,e)).length;null!=e&&r<n;)e=e[PR(t[r++])];return r&&r==n?e:void 0}(e,function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}(t,0,-1))},NR=function(e,t){return t=IR(t,e),null==(e=RR(e,t))||delete e[PR(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]},OR=Function.prototype,LR=Object.prototype,MR=OR.toString,DR=LR.hasOwnProperty,UR=MR.call(Object),jR=function(e){return function(e){if(!aP(e)||"[object Object]"!=TI(e))return!1;var t=VP(e);if(null===t)return!0;var r=DR.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&MR.call(r)==UR}(e)?void 0:e},FR=kI?kI.isConcatSpreadable:void 0,VR=function(e){return fP(e)||dP(e)||!!(FR&&e&&e[FR])},zR=function e(t,r,n,o,i){var a=-1,s=t.length;for(n||(n=VR),i||(i=[]);++a<s;){var c=t[a];r>0&&n(c)?r>1?e(c,r-1,n,o,i):FP(i,c):o||(i[i.length]=c)}return i},KR=function(e){return null!=e&&e.length?zR(e,1):[]},HR=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},qR=Math.max,WR=function(e){return function(){return e}},QR=tP?function(e,t){return tP(e,"toString",{configurable:!0,enumerable:!1,value:WR(t),writable:!0})}:function(e){return e},GR=Date.now,XR=function(e){var t=0,r=0;return function(){var n=GR(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(QR),YR=function(e){return XR(function(e,t,r){return t=qR(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=qR(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),HR(e,this,s)}}(e,void 0,KR),e+"")}((function(e,t){var r={};if(null==e)return r;var n=!1;t=lI(t,(function(t){return t=IR(t,e),n||(n=t.length>1),t})),iP(e,qP(e),r),n&&(r=vR(r,7,jR));for(var o=t.length;o--;)NR(r,t[o]);return r})),$R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return oI(oI({blazefaceModelUrl:"https://storage.googleapis.com/tfhub-tfjs-modules/tensorflow/tfjs-model/blazeface/1/default/1/model.json",opencvUrl:"https://unpkg.com/@tsocial/tv_web_sdk_resources@1.0.0/libs/opencv.js",idCardModelUrl:"https://unpkg.com/@tsocial/tv_web_sdk_resources@1.0.0/models/id-card/tflite/qtf16_model_224x224.tflite"},YR(e,["tfScriptUrls"])),{},{tfScriptUrls:oI({tfUrl:"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.11.0",tfBackendWasmUrl:"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm@3.11.0/dist/tf-backend-wasm.js",tfBackendCpuUrl:"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-cpu@3.11.0",tfBackendWebGlUrl:"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl@3.11.0",tfLiteUrl:"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-tflite@0.0.1-alpha.7/dist/tf-tflite.min.js",blazefaceScriptUrl:"https://cdn.jsdelivr.net/npm/@tensorflow-models/blazeface@0.0.7"},null==e?void 0:e.tfScriptUrls)})};function ZR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.resourceRoot,r=e.initCustomUrls,n=void 0===r?{}:r;return t?oI(oI({blazefaceModelUrl:"".concat(t,"models/1.0.0/blazeface/model.json"),opencvUrl:"".concat(t,"opencv/3.4.0/cv.js"),idCardModelUrl:"".concat(t,"models/1.0.0/id_card/tflite/qtf16_model_224x224.tflite")},YR(n,["tfScriptUrls"])),{},{tfScriptUrls:oI({tfUrl:"".concat(t,"tfjs/3.11.0/tf.js"),tfBackendWasmUrl:"".concat(t,"tfjs/3.11.0/backend-wasm.js"),tfBackendCpuUrl:"".concat(t,"tfjs/3.11.0/backend-cpu.js"),tfBackendWebGlUrl:"".concat(t,"tfjs/3.11.0/backend-webgl.js"),tfLiteUrl:"".concat(t,"tflite/0.0.1-alpha.7/tflite.min.js"),blazefaceScriptUrl:"".concat(t,"blazeface/0.0.7/bf.js")},null==n?void 0:n.tfScriptUrls)}):$R(n)}var JR=ov.createContext();function eN(e){var t=e.value,r=e.children,n=oI({},t),o=n.customUrls,i=n.resourceRoot;return i&&(n.customUrls=ZR({resourceRoot:i,initCustomUrls:o})),ov.createElement(JR.Provider,{value:n},r)}function tN(){var e=ov.useContext(JR);if(void 0===e)throw new Error("useSDKSettings must be used within a SDKSettingsProvider");return e}eN.propTypes={value:Tv.shape({lang:Tv.string,assetRoot:Tv.string,apiClient:Tv.shape({}),customUrls:Tv.shape({}),resourceRoot:Tv.string}).isRequired,children:Tv.node.isRequired};var rN,nN=Object.freeze({__proto__:null,SDKSettingsProvider:eN,useSDKSettings:tN}),oN=function(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}(Object.freeze({__proto__:null,default:{}})),iN=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(vI((function(e,t){!function(e,t){t=t&&t.hasOwnProperty("default")?t.default:t;var r=function(){function e(e){this.httpClient=e}return e.prototype.request=function(e,t){return this.httpClient.post("/v1/read_id_card_info_sync",e,t)},e}(),n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};
6
+ */var gm=Object.getOwnPropertySymbols,mm=Object.prototype.hasOwnProperty,vm=Object.prototype.propertyIsEnumerable;function ym(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var bm=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=ym(e),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))mm.call(r,a)&&(o[a]=r[a]);if(gm){n=gm(r);for(var s=0;s<n.length;s++)vm.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o},wm="function"==typeof Symbol&&Symbol.for,Cm=wm?Symbol.for("react.element"):60103,km=wm?Symbol.for("react.portal"):60106,Em=wm?Symbol.for("react.fragment"):60107,Sm=wm?Symbol.for("react.strict_mode"):60108,Bm=wm?Symbol.for("react.profiler"):60114,_m=wm?Symbol.for("react.provider"):60109,Am=wm?Symbol.for("react.context"):60110,xm=wm?Symbol.for("react.forward_ref"):60112,Tm=wm?Symbol.for("react.suspense"):60113,Im=wm?Symbol.for("react.memo"):60115,Pm=wm?Symbol.for("react.lazy"):60116,Rm="function"==typeof Symbol&&Symbol.iterator;function Nm(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Om={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lm={};function Mm(e,t,r){this.props=e,this.context=t,this.refs=Lm,this.updater=r||Om}function Dm(){}function Um(e,t,r){this.props=e,this.context=t,this.refs=Lm,this.updater=r||Om}Mm.prototype.isReactComponent={},Mm.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(Nm(85));this.updater.enqueueSetState(this,e,t,"setState")},Mm.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Dm.prototype=Mm.prototype;var jm=Um.prototype=new Dm;jm.constructor=Um,bm(jm,Mm.prototype),jm.isPureReactComponent=!0;var Fm={current:null},Vm=Object.prototype.hasOwnProperty,zm={key:!0,ref:!0,__self:!0,__source:!0};function Km(e,t,r){var n,o={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)Vm.call(t,n)&&!zm.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:Cm,type:e,key:i,ref:a,props:o,_owner:Fm.current}}function Hm(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cm}var qm=/\/+/g,Wm=[];function Qm(e,t,r,n){if(Wm.length){var o=Wm.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function Gm(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>Wm.length&&Wm.push(e)}function Xm(e,t,r,n){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Cm:case km:i=!0}}if(i)return r(n,e,""===t?"."+$m(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var s=t+$m(o=e[a],a);i+=Xm(o,s,r,n)}else if(null===e||"object"!=typeof e?s=null:s="function"==typeof(s=Rm&&e[Rm]||e["@@iterator"])?s:null,"function"==typeof s)for(e=s.call(e),a=0;!(o=e.next()).done;)i+=Xm(o=o.value,s=t+$m(o,a++),r,n);else if("object"===o)throw r=""+e,Error(Nm(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return i}function Ym(e,t,r){return null==e?0:Xm(e,"",t,r)}function $m(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function Zm(e,t){e.func.call(e.context,t,e.count++)}function Jm(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?ev(e,n,r,(function(e){return e})):null!=e&&(Hm(e)&&(e=function(e,t){return{$$typeof:Cm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(qm,"$&/")+"/")+r)),n.push(e))}function ev(e,t,r,n,o){var i="";null!=r&&(i=(""+r).replace(qm,"$&/")+"/"),Ym(e,Jm,t=Qm(t,i,n,o)),Gm(t)}var tv={current:null};function rv(){var e=tv.current;if(null===e)throw Error(Nm(321));return e}var nv={Children:{map:function(e,t,r){if(null==e)return e;var n=[];return ev(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Ym(e,Zm,t=Qm(null,null,t,r)),Gm(t)},count:function(e){return Ym(e,(function(){return null}),null)},toArray:function(e){var t=[];return ev(e,t,null,(function(e){return e})),t},only:function(e){if(!Hm(e))throw Error(Nm(143));return e}},Component:Mm,Fragment:Em,Profiler:Bm,PureComponent:Um,StrictMode:Sm,Suspense:Tm,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:tv,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Fm,IsSomeRendererActing:{current:!1},assign:bm},cloneElement:function(e,t,r){if(null==e)throw Error(Nm(267,e));var n=bm({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Fm.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)Vm.call(t,c)&&!zm.hasOwnProperty(c)&&(n[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)n.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:Cm,type:e.type,key:o,ref:i,props:n,_owner:a}},createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:Am,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:_m,_context:e},e.Consumer=e},createElement:Km,createFactory:function(e){var t=Km.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:xm,render:e}},isValidElement:Hm,lazy:function(e){return{$$typeof:Pm,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:Im,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return rv().useCallback(e,t)},useContext:function(e,t){return rv().useContext(e,t)},useDebugValue:function(){},useEffect:function(e,t){return rv().useEffect(e,t)},useImperativeHandle:function(e,t,r){return rv().useImperativeHandle(e,t,r)},useLayoutEffect:function(e,t){return rv().useLayoutEffect(e,t)},useMemo:function(e,t){return rv().useMemo(e,t)},useReducer:function(e,t,r){return rv().useReducer(e,t,r)},useRef:function(e){return rv().useRef(e)},useState:function(e){return rv().useState(e)},version:"16.14.0"},ov=(r((function(e,t){})),r((function(e){e.exports=nv}))),iv="function"==typeof Symbol&&Symbol.for,av=iv?Symbol.for("react.element"):60103,sv=iv?Symbol.for("react.portal"):60106,cv=iv?Symbol.for("react.fragment"):60107,uv=iv?Symbol.for("react.strict_mode"):60108,lv=iv?Symbol.for("react.profiler"):60114,dv=iv?Symbol.for("react.provider"):60109,fv=iv?Symbol.for("react.context"):60110,pv=iv?Symbol.for("react.async_mode"):60111,hv=iv?Symbol.for("react.concurrent_mode"):60111,gv=iv?Symbol.for("react.forward_ref"):60112,mv=iv?Symbol.for("react.suspense"):60113,vv=iv?Symbol.for("react.suspense_list"):60120,yv=iv?Symbol.for("react.memo"):60115,bv=iv?Symbol.for("react.lazy"):60116,wv=iv?Symbol.for("react.block"):60121,Cv=iv?Symbol.for("react.fundamental"):60117,kv=iv?Symbol.for("react.responder"):60118,Ev=iv?Symbol.for("react.scope"):60119;function Sv(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case av:switch(e=e.type){case pv:case hv:case cv:case lv:case uv:case mv:return e;default:switch(e=e&&e.$$typeof){case fv:case gv:case bv:case yv:case dv:return e;default:return t}}case sv:return t}}}function Bv(e){return Sv(e)===hv}var _v={AsyncMode:pv,ConcurrentMode:hv,ContextConsumer:fv,ContextProvider:dv,Element:av,ForwardRef:gv,Fragment:cv,Lazy:bv,Memo:yv,Portal:sv,Profiler:lv,StrictMode:uv,Suspense:mv,isAsyncMode:function(e){return Bv(e)||Sv(e)===pv},isConcurrentMode:Bv,isContextConsumer:function(e){return Sv(e)===fv},isContextProvider:function(e){return Sv(e)===dv},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===av},isForwardRef:function(e){return Sv(e)===gv},isFragment:function(e){return Sv(e)===cv},isLazy:function(e){return Sv(e)===bv},isMemo:function(e){return Sv(e)===yv},isPortal:function(e){return Sv(e)===sv},isProfiler:function(e){return Sv(e)===lv},isStrictMode:function(e){return Sv(e)===uv},isSuspense:function(e){return Sv(e)===mv},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===cv||e===hv||e===lv||e===uv||e===mv||e===vv||"object"==typeof e&&null!==e&&(e.$$typeof===bv||e.$$typeof===yv||e.$$typeof===dv||e.$$typeof===fv||e.$$typeof===gv||e.$$typeof===Cv||e.$$typeof===kv||e.$$typeof===Ev||e.$$typeof===wv)},typeOf:Sv};r((function(e,t){})),r((function(e){e.exports=_v})),Function.call.bind(Object.prototype.hasOwnProperty);function Av(){}function xv(){}xv.resetWarningCache=Av;var Tv=r((function(e){e.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xv,resetWarningCache:Av};return r.PropTypes=r,r}()})),Iv=60103,Pv=60106,Rv=60107,Nv=60108,Ov=60114,Lv=60109,Mv=60110,Dv=60112,Uv=60113,jv=60120,Fv=60115,Vv=60116,zv=60121,Kv=60122,Hv=60117,qv=60129,Wv=60131;if("function"==typeof Symbol&&Symbol.for){var Qv=Symbol.for;Iv=Qv("react.element"),Pv=Qv("react.portal"),Rv=Qv("react.fragment"),Nv=Qv("react.strict_mode"),Ov=Qv("react.profiler"),Lv=Qv("react.provider"),Mv=Qv("react.context"),Dv=Qv("react.forward_ref"),Uv=Qv("react.suspense"),jv=Qv("react.suspense_list"),Fv=Qv("react.memo"),Vv=Qv("react.lazy"),zv=Qv("react.block"),Kv=Qv("react.server.block"),Hv=Qv("react.fundamental"),qv=Qv("react.debug_trace_mode"),Wv=Qv("react.legacy_hidden")}function Gv(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Iv:switch(e=e.type){case Rv:case Ov:case Nv:case Uv:case jv:return e;default:switch(e=e&&e.$$typeof){case Mv:case Dv:case Vv:case Fv:case Lv:return e;default:return t}}case Pv:return t}}}var Xv={ContextConsumer:Mv,ContextProvider:Lv,Element:Iv,ForwardRef:Dv,Fragment:Rv,Lazy:Vv,Memo:Fv,Portal:Pv,Profiler:Ov,StrictMode:Nv,Suspense:Uv,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return Gv(e)===Mv},isContextProvider:function(e){return Gv(e)===Lv},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Iv},isForwardRef:function(e){return Gv(e)===Dv},isFragment:function(e){return Gv(e)===Rv},isLazy:function(e){return Gv(e)===Vv},isMemo:function(e){return Gv(e)===Fv},isPortal:function(e){return Gv(e)===Pv},isProfiler:function(e){return Gv(e)===Ov},isStrictMode:function(e){return Gv(e)===Nv},isSuspense:function(e){return Gv(e)===Uv},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Rv||e===Ov||e===qv||e===Nv||e===Uv||e===jv||e===Wv||"object"==typeof e&&null!==e&&(e.$$typeof===Vv||e.$$typeof===Fv||e.$$typeof===Lv||e.$$typeof===Mv||e.$$typeof===Dv||e.$$typeof===Hv||e.$$typeof===zv||e[0]===Kv)},typeOf:Gv},Yv=(r((function(e,t){})),r((function(e){e.exports=Xv})));function $v(e){function t(e,n,c,u,f){for(var p,h,g,m,w,k=0,E=0,S=0,B=0,_=0,R=0,O=g=p=0,M=0,D=0,U=0,j=0,F=c.length,V=F-1,z="",K="",H="",q="";M<F;){if(h=c.charCodeAt(M),M===V&&0!==E+B+S+k&&(0!==E&&(h=47===E?10:47),B=S=k=0,F++,V++),0===E+B+S+k){if(M===V&&(0<D&&(z=z.replace(d,"")),0<z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:z+=c.charAt(M)}h=59}switch(h){case 123:for(p=(z=z.trim()).charCodeAt(0),g=1,j=++M;M<F;){switch(h=c.charCodeAt(M)){case 123:g++;break;case 125:g--;break;case 47:switch(h=c.charCodeAt(M+1)){case 42:case 47:e:{for(O=M+1;O<V;++O)switch(c.charCodeAt(O)){case 47:if(42===h&&42===c.charCodeAt(O-1)&&M+2!==O){M=O+1;break e}break;case 10:if(47===h){M=O+1;break e}}M=O}}break;case 91:h++;case 40:h++;case 34:case 39:for(;M++<V&&c.charCodeAt(M)!==h;);}if(0===g)break;M++}switch(g=c.substring(j,M),0===p&&(p=(z=z.replace(l,"").trim()).charCodeAt(0)),p){case 64:switch(0<D&&(z=z.replace(d,"")),h=z.charCodeAt(1)){case 100:case 109:case 115:case 45:D=n;break;default:D=P}if(j=(g=t(n,D,g,h,f+1)).length,0<N&&(w=s(3,g,D=r(P,z,U),n,x,A,j,h,f,u),z=D.join(""),void 0!==w&&0===(j=(g=w.trim()).length)&&(h=0,g="")),0<j)switch(h){case 115:z=z.replace(C,a);case 100:case 109:case 45:g=z+"{"+g+"}";break;case 107:g=(z=z.replace(v,"$1 $2"))+"{"+g+"}",g=1===I||2===I&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=z+g,112===u&&(K+=g,g="")}else g="";break;default:g=t(n,r(n,z,U),g,u,f+1)}H+=g,g=U=D=O=p=0,z="",h=c.charCodeAt(++M);break;case 125:case 59:if(1<(j=(z=(0<D?z.replace(d,""):z).trim()).length))switch(0===O&&(p=z.charCodeAt(0),45===p||96<p&&123>p)&&(j=(z=z.replace(" ",":")).length),0<N&&void 0!==(w=s(1,z,n,e,x,A,K.length,u,f,u))&&0===(j=(z=w.trim()).length)&&(z="\0\0"),p=z.charCodeAt(0),h=z.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){q+=z+c.charAt(M);break}default:58!==z.charCodeAt(j-1)&&(K+=o(z,p,h,z.charCodeAt(2)))}U=D=O=p=0,z="",h=c.charCodeAt(++M)}}switch(h){case 13:case 10:47===E?E=0:0===1+p&&107!==u&&0<z.length&&(D=1,z+="\0"),0<N*L&&s(0,z,n,e,x,A,K.length,u,f,u),A=1,x++;break;case 59:case 125:if(0===E+B+S+k){A++;break}default:switch(A++,m=c.charAt(M),h){case 9:case 32:if(0===B+k+E)switch(_){case 44:case 58:case 9:case 32:m="";break;default:32!==h&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===B+E+k&&(D=U=1,m="\f"+m);break;case 108:if(0===B+E+k+T&&0<O)switch(M-O){case 2:112===_&&58===c.charCodeAt(M-3)&&(T=_);case 8:111===R&&(T=R)}break;case 58:0===B+E+k&&(O=M);break;case 44:0===E+S+B+k&&(D=1,m+="\r");break;case 34:case 39:0===E&&(B=B===h?0:0===B?h:B);break;case 91:0===B+E+S&&k++;break;case 93:0===B+E+S&&k--;break;case 41:0===B+E+k&&S--;break;case 40:if(0===B+E+k){if(0===p)switch(2*_+3*R){case 533:break;default:p=1}S++}break;case 64:0===E+S+B+k+O+g&&(g=1);break;case 42:case 47:if(!(0<B+k+S))switch(E){case 0:switch(2*h+3*c.charCodeAt(M+1)){case 235:E=47;break;case 220:j=M,E=42}break;case 42:47===h&&42===_&&j+2!==M&&(33===c.charCodeAt(j+2)&&(K+=c.substring(j,M+1)),m="",E=0)}}0===E&&(z+=m)}R=_,_=h,M++}if(0<(j=K.length)){if(D=n,0<N&&(void 0!==(w=s(2,K,D,e,x,A,j,u,f,u))&&0===(K=w).length))return q+K+H;if(K=D.join(",")+"{"+K+"}",0!=I*T){switch(2!==I||i(K,2)||(T=0),T){case 111:K=K.replace(b,":-moz-$1")+K;break;case 112:K=K.replace(y,"::-webkit-input-$1")+K.replace(y,"::-moz-$1")+K.replace(y,":-ms-input-$1")+K}T=0}}return q+K+H}function r(e,t,r){var o=t.trim().split(g);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===I||2===I&&i(c,1)?"-webkit-"+c+c:c}if(0===I||2===I&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(_,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(E,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(E,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===B.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),O(2!==t?n:n.replace(S,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var d,f=0,p=t;f<N;++f)switch(d=R[f].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?I=1:(I=2,O=e):I=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<N){var o=s(-1,r,n,n,x,A,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(P,n,r,0,0);return 0<N&&(void 0!==(o=s(-2,i,n,n,x,A,i.length,0,0,0))&&(i=o)),"",T=0,A=x=1,i}var l=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,E=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,B=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,A=1,x=1,T=0,I=1,P=[],R=[],N=0,O=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:N=R.length=0;break;default:if("function"==typeof t)R[N++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else L=0|!!t}return e},u.set=c,void 0!==e&&c(e),u}var Zv={animationIterationCount: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};var Jv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,ey=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return Jv.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ty="function"==typeof Symbol&&Symbol.for,ry=ty?Symbol.for("react.element"):60103,ny=ty?Symbol.for("react.portal"):60106,oy=ty?Symbol.for("react.fragment"):60107,iy=ty?Symbol.for("react.strict_mode"):60108,ay=ty?Symbol.for("react.profiler"):60114,sy=ty?Symbol.for("react.provider"):60109,cy=ty?Symbol.for("react.context"):60110,uy=ty?Symbol.for("react.async_mode"):60111,ly=ty?Symbol.for("react.concurrent_mode"):60111,dy=ty?Symbol.for("react.forward_ref"):60112,fy=ty?Symbol.for("react.suspense"):60113,py=ty?Symbol.for("react.suspense_list"):60120,hy=ty?Symbol.for("react.memo"):60115,gy=ty?Symbol.for("react.lazy"):60116,my=ty?Symbol.for("react.block"):60121,vy=ty?Symbol.for("react.fundamental"):60117,yy=ty?Symbol.for("react.responder"):60118,by=ty?Symbol.for("react.scope"):60119;function wy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ry:switch(e=e.type){case uy:case ly:case oy:case ay:case iy:case fy:return e;default:switch(e=e&&e.$$typeof){case cy:case dy:case gy:case hy:case sy:return e;default:return t}}case ny:return t}}}function Cy(e){return wy(e)===ly}var ky={AsyncMode:uy,ConcurrentMode:ly,ContextConsumer:cy,ContextProvider:sy,Element:ry,ForwardRef:dy,Fragment:oy,Lazy:gy,Memo:hy,Portal:ny,Profiler:ay,StrictMode:iy,Suspense:fy,isAsyncMode:function(e){return Cy(e)||wy(e)===uy},isConcurrentMode:Cy,isContextConsumer:function(e){return wy(e)===cy},isContextProvider:function(e){return wy(e)===sy},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ry},isForwardRef:function(e){return wy(e)===dy},isFragment:function(e){return wy(e)===oy},isLazy:function(e){return wy(e)===gy},isMemo:function(e){return wy(e)===hy},isPortal:function(e){return wy(e)===ny},isProfiler:function(e){return wy(e)===ay},isStrictMode:function(e){return wy(e)===iy},isSuspense:function(e){return wy(e)===fy},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===oy||e===ly||e===ay||e===iy||e===fy||e===py||"object"==typeof e&&null!==e&&(e.$$typeof===gy||e.$$typeof===hy||e.$$typeof===sy||e.$$typeof===cy||e.$$typeof===dy||e.$$typeof===vy||e.$$typeof===yy||e.$$typeof===by||e.$$typeof===my)},typeOf:wy},Ey=(r((function(e,t){})),r((function(e){e.exports=ky}))),Sy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},By={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ay={};function xy(e){return Ey.isMemo(e)?_y:Ay[e.$$typeof]||Sy}Ay[Ey.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ay[Ey.Memo]=_y;var Ty=Object.defineProperty,Iy=Object.getOwnPropertyNames,Py=Object.getOwnPropertySymbols,Ry=Object.getOwnPropertyDescriptor,Ny=Object.getPrototypeOf,Oy=Object.prototype;var Ly=function e(t,r,n){if("string"!=typeof r){if(Oy){var o=Ny(r);o&&o!==Oy&&e(t,o,n)}var i=Iy(r);Py&&(i=i.concat(Py(r)));for(var a=xy(t),s=xy(r),c=0;c<i.length;++c){var u=i[c];if(!(By[u]||n&&n[u]||s&&s[u]||a&&a[u])){var l=Ry(r,u);try{Ty(t,u,l)}catch(e){}}}}return t};function My(){return(My=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Dy=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},Uy=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Yv.typeOf(e)},jy=Object.freeze([]),Fy=Object.freeze({});function Vy(e){return"function"==typeof e}function zy(e){return e.displayName||e.name||"Component"}function Ky(e){return e&&"string"==typeof e.styledComponentId}var Hy="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",qy="undefined"!=typeof window&&"HTMLElement"in window,Wy=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),Qy={};function Gy(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var Xy=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&Gy(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),Yy=new Map,$y=new Map,Zy=1,Jy=function(e){if(Yy.has(e))return Yy.get(e);for(;$y.has(Zy);)Zy++;var t=Zy++;return Yy.set(e,t),$y.set(t,e),t},eb=function(e){return $y.get(e)},tb=function(e,t){Yy.set(e,t),$y.set(t,e)},rb="style["+Hy+'][data-styled-version="5.2.1"]',nb=new RegExp("^"+Hy+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),ob=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},ib=function(e,t){for(var r=t.innerHTML.split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(nb);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(tb(u,c),ob(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},ab=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Hy))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Hy,"active"),n.setAttribute("data-styled-version","5.2.1");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},sb=function(){function e(e){var t=this.element=ab(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}Gy(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),cb=function(){function e(e){var t=this.element=ab(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ub=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),lb=qy,db={isServer:!qy,useCSSOMInjection:!Wy},fb=function(){function e(e,t,r){void 0===e&&(e=Fy),void 0===t&&(t={}),this.options=My({},db,{},e),this.gs=t,this.names=new Map(r),!this.options.isServer&&qy&&lb&&(lb=!1,function(e){for(var t=document.querySelectorAll(rb),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(Hy)&&(ib(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Jy(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(My({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new ub(o):n?new sb(o):new cb(o),new Xy(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Jy(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Jy(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Jy(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=eb(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(void 0!==a&&0!==s.length){var c=Hy+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),pb=/(a)(d)/gi,hb=function(e){return String.fromCharCode(e+(e>25?39:97))};function gb(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=hb(t%52)+r;return(hb(t%52)+r).replace(pb,"$1-$2")}var mb=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},vb=function(e){return mb(5381,e)};function yb(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Vy(r)&&!Ky(r))return!1}return!0}var bb=vb("5.2.1"),wb=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&yb(e),this.componentId=t,this.baseHash=mb(bb,t),this.baseStyle=r,fb.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Mb(this.rules,e,t,r).join(""),a=gb(mb(this.baseHash,i.length)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=mb(this.baseHash,r.hash),l="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)l+=f;else if(f){var p=Mb(f,e,t,r),h=Array.isArray(p)?p.join(""):p;u=mb(u,h+d),l+=h}}if(l){var g=gb(u>>>0);if(!t.hasNameForId(n,g)){var m=r(l,"."+g,void 0,n);t.insertRules(n,g,m)}o.push(g)}}return o.join(" ")},e}(),Cb=/^\s*\/\/.*$/gm,kb=[":","[",".","#"];var Eb=ov.createContext(),Sb=(Eb.Consumer,ov.createContext()),Bb=(Sb.Consumer,new fb),_b=function(e){var t,r,n,o,i=void 0===e?Fy:e,a=i.options,s=void 0===a?Fy:a,c=i.plugins,u=void 0===c?jy:c,l=new $v(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,d){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,n,i){return 0===n&&kb.includes(i[r.length])||i.match(o)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var c=e.replace(Cb,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=u.length?u.reduce((function(e,t){return t.name||Gy(15),mb(e,t.name)}),5381).toString():"",h}();function Ab(){return ov.useContext(Eb)||Bb}function xb(){return ov.useContext(Sb)||_b}var Tb=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=_b);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Gy(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=_b),this.name+e.hash},e}(),Ib=/([A-Z])/,Pb=/([A-Z])/g,Rb=/^ms-/,Nb=function(e){return"-"+e.toLowerCase()};function Ob(e){return Ib.test(e)?e.replace(Pb,Nb).replace(Rb,"-ms-"):e}var Lb=function(e){return null==e||!1===e||""===e};function Mb(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Mb(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Lb(e)?"":Ky(e)?"."+e.styledComponentId:Vy(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:Mb(e(t),t,r,n):e instanceof Tb?r?(e.inject(r,n),e.getName(n)):e:Uy(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Lb(t[a])&&(Uy(t[a])?i.push.apply(i,e(t[a],a)):Vy(t[a])?i.push(Ob(a)+":",t[a],";"):i.push(Ob(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in Zv?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}function Db(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Vy(e)||Uy(e)?Mb(Dy(jy,[e].concat(r))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Mb(Dy(e,r))}var Ub=function(e,t,r){return void 0===r&&(r=Fy),e.theme!==r.theme&&e.theme||t||r.theme},jb=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fb=/(^-|-$)/g;function Vb(e){return e.replace(jb,"-").replace(Fb,"")}var zb=function(e){return gb(vb(e)>>>0)};function Kb(e){return"string"==typeof e&&!0}var Hb=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},qb=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Wb(e,t,r){var n=e[r];Hb(t)&&Hb(n)?Qb(n,t):e[r]=t}function Qb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Hb(a))for(var s in a)qb(s)&&Wb(e,a[s],s)}return e}var Gb=ov.createContext();Gb.Consumer;function Xb(e){var t=ov.useContext(Gb),r=ov.useMemo((function(){return function(e,t){return e?Vy(e)?e(t):Array.isArray(e)||"object"!=typeof e?Gy(8):t?My({},t,{},e):e:Gy(14)}(e.theme,t)}),[e.theme,t]);return e.children?ov.createElement(Gb.Provider,{value:r},e.children):null}var Yb={};function $b(e,t,r){var n=Ky(e),o=!Kb(e),i=t.attrs,a=void 0===i?jy:i,s=t.componentId,c=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Vb(e);Yb[r]=(Yb[r]||0)+1;var n=r+"-"+zb("5.2.1"+r+Yb[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,u=t.displayName,l=void 0===u?function(e){return Kb(e)?"styled."+e:"Styled("+zy(e)+")"}(e):u,d=t.displayName&&t.componentId?Vb(t.displayName)+"-"+t.componentId:t.componentId||c,f=n&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,p=t.shouldForwardProp;n&&e.shouldForwardProp&&(p=t.shouldForwardProp?function(r,n){return e.shouldForwardProp(r,n)&&t.shouldForwardProp(r,n)}:e.shouldForwardProp);var h,g=new wb(r,d,n?e.componentStyle:void 0),m=g.isStatic&&0===a.length,v=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,l=e.target,d=function(e,t,r){void 0===e&&(e=Fy);var n=My({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in Vy(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(Ub(t,ov.useContext(Gb),a)||Fy,t,o),f=d[0],p=d[1],h=function(e,t,r,n){var o=Ab(),i=xb();return t?e.generateAndInjectStyles(Fy,o,i):e.generateAndInjectStyles(r,o,i)}(i,n,f),g=r,m=p.$as||t.$as||p.as||t.as||l,v=Kb(m),y=p!==t?My({},t,{},p):t,b={};for(var w in y)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?b.as=y[w]:(c?c(w,ey):!v||ey(w))&&(b[w]=y[w]));return t.style&&p.style!==t.style&&(b.style=My({},t.style,{},p.style)),b.className=Array.prototype.concat(s,u,h!==u?h:null,t.className,p.className).filter(Boolean).join(" "),b.ref=g,ov.createElement(m,b)}(h,e,t,m)};return v.displayName=l,(h=ov.forwardRef(v)).attrs=f,h.componentStyle=g,h.displayName=l,h.shouldForwardProp=p,h.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):jy,h.styledComponentId=d,h.target=n?e.target:e,h.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Kb(e)?e:Vb(zy(e)));return $b(e,My({},o,{attrs:f,componentId:i}),r)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Qb({},e.defaultProps,t):t}}),h.toString=function(){return"."+h.styledComponentId},o&&Ly(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var Zb=function(e){return function e(t,r,n){if(void 0===n&&(n=Fy),!Yv.isValidElementType(r))return Gy(1,String(r));var o=function(){return t(r,n,Db.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,My({},n,{},o))},o.attrs=function(o){return e(t,r,My({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}($b,e)};["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Zb[e]=Zb(e)}));var Jb=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=yb(e),fb.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(Mb(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&fb.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function ew(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Db.apply(void 0,[e].concat(r)),i="sc-global-"+zb(JSON.stringify(o)),a=new Jb(o,i);function s(e){var t=Ab(),r=xb(),n=ov.useContext(Gb),o=ov.useRef(t.allocateGSInstance(i)).current;return ov.useLayoutEffect((function(){return c(o,e,t,n,r),function(){return a.removeStyles(o,t)}}),[o,e,t,n,r]),null}function c(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Qy,r,o);else{var i=My({},t,{theme:Ub(t,n,s.defaultProps)});a.renderStyles(e,i,r,o)}}return ov.memo(s)}function tw(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Db.apply(void 0,[e].concat(r)).join(""),i=zb(o);return new Tb(i,o)}var rw=r((function(e,t){var r,n,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,u=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(u,0),e}},l=Date.now();t.unstable_now=function(){return Date.now()-l},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(u,0))},n=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var m=f.now();t.unstable_now=function(){return f.now()-m}}var v=!1,y=null,b=-1,w=5,C=0;i=function(){return t.unstable_now()>=C},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,E=k.port2;k.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();C=e+w;try{y(!0,e)?E.postMessage(null):(v=!1,y=null)}catch(e){throw E.postMessage(null),e}}else v=!1},r=function(e){y=e,v||(v=!0,E.postMessage(null))},n=function(e,r){b=p((function(){e(t.unstable_now())}),r)},o=function(){h(b),b=-1}}function S(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,o=e[n];if(!(void 0!==o&&0<A(o,t)))break e;e[n]=t,e[r]=o,r=n}}function B(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var i=2*(n+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>A(a,r))void 0!==c&&0>A(c,a)?(e[n]=c,e[s]=r,n=s):(e[n]=a,e[i]=r,n=i);else{if(!(void 0!==c&&0>A(c,r)))break e;e[n]=c,e[s]=r,n=s}}}return t}return null}function A(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var x=[],T=[],I=1,P=null,R=3,N=!1,O=!1,L=!1;function M(e){for(var t=B(T);null!==t;){if(null===t.callback)_(T);else{if(!(t.startTime<=e))break;_(T),t.sortIndex=t.expirationTime,S(x,t)}t=B(T)}}function D(e){if(L=!1,M(e),!O)if(null!==B(x))O=!0,r(U);else{var t=B(T);null!==t&&n(D,t.startTime-e)}}function U(e,r){O=!1,L&&(L=!1,o()),N=!0;var a=R;try{for(M(r),P=B(x);null!==P&&(!(P.expirationTime>r)||e&&!i());){var s=P.callback;if(null!==s){P.callback=null,R=P.priorityLevel;var c=s(P.expirationTime<=r);r=t.unstable_now(),"function"==typeof c?P.callback=c:P===B(x)&&_(x),M(r)}else _(x);P=B(x)}if(null!==P)var u=!0;else{var l=B(T);null!==l&&n(D,l.startTime-r),u=!1}return u}finally{P=null,R=a,N=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||N||(O=!0,r(U))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return B(x)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var r=R;R=t;try{return e()}finally{R=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=R;R=e;try{return t()}finally{R=r}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:j(e)}else a=j(e),c=s;return e={id:I++,callback:i,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,S(T,e),null===B(x)&&e===B(T)&&(L?o():L=!0,n(D,c-s))):(e.sortIndex=a,S(x,e),O||N||(O=!0,r(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var r=B(x);return r!==P&&null!==P&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<P.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=R;return function(){var r=R;R=t;try{return e.apply(this,arguments)}finally{R=r}}}})),nw=(r((function(e,t){})),r((function(e){e.exports=rw})));function ow(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!ov)throw Error(ow(227));function iw(e,t,r,n,o,i,a,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var aw=!1,sw=null,cw=!1,uw=null,lw={onError:function(e){aw=!0,sw=e}};function dw(e,t,r,n,o,i,a,s,c){aw=!1,sw=null,iw.apply(lw,arguments)}var fw=null,pw=null,hw=null;function gw(e,t,r){var n=e.type||"unknown-event";e.currentTarget=hw(r),function(e,t,r,n,o,i,a,s,c){if(dw.apply(this,arguments),aw){if(!aw)throw Error(ow(198));var u=sw;aw=!1,sw=null,cw||(cw=!0,uw=u)}}(n,t,void 0,e),e.currentTarget=null}var mw=null,vw={};function yw(){if(mw)for(var e in vw){var t=vw[e],r=mw.indexOf(e);if(!(-1<r))throw Error(ow(96,e));if(!ww[r]){if(!t.extractEvents)throw Error(ow(97,e));for(var n in ww[r]=t,r=t.eventTypes){var o=void 0,i=r[n],a=t,s=n;if(Cw.hasOwnProperty(s))throw Error(ow(99,s));Cw[s]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&bw(c[o],a,s);o=!0}else i.registrationName?(bw(i.registrationName,a,s),o=!0):o=!1;if(!o)throw Error(ow(98,n,e))}}}}function bw(e,t,r){if(kw[e])throw Error(ow(100,e));kw[e]=t,Ew[e]=t.eventTypes[r].dependencies}var ww=[],Cw={},kw={},Ew={};function Sw(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!vw.hasOwnProperty(t)||vw[t]!==n){if(vw[t])throw Error(ow(102,t));vw[t]=n,r=!0}}r&&yw()}var Bw=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),_w=null,Aw=null,xw=null;function Tw(e){if(e=pw(e)){if("function"!=typeof _w)throw Error(ow(280));var t=e.stateNode;t&&(t=fw(t),_w(e.stateNode,e.type,t))}}function Iw(e){Aw?xw?xw.push(e):xw=[e]:Aw=e}function Pw(){if(Aw){var e=Aw,t=xw;if(xw=Aw=null,Tw(e),t)for(e=0;e<t.length;e++)Tw(t[e])}}function Rw(e,t){return e(t)}function Nw(e,t,r,n,o){return e(t,r,n,o)}function Ow(){}var Lw=Rw,Mw=!1,Dw=!1;function Uw(){null===Aw&&null===xw||(Ow(),Pw())}function jw(e,t,r){if(Dw)return e(t,r);Dw=!0;try{return Lw(e,t,r)}finally{Dw=!1,Uw()}}var Fw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Vw=Object.prototype.hasOwnProperty,zw={},Kw={};function Hw(e,t,r,n,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i}var qw={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){qw[e]=new Hw(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];qw[t]=new Hw(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){qw[e]=new Hw(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){qw[e]=new Hw(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){qw[e]=new Hw(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){qw[e]=new Hw(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){qw[e]=new Hw(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){qw[e]=new Hw(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){qw[e]=new Hw(e,5,!1,e.toLowerCase(),null,!1)}));var Ww=/[\-:]([a-z])/g;function Qw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Ww,Qw);qw[t]=new Hw(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Ww,Qw);qw[t]=new Hw(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Ww,Qw);qw[t]=new Hw(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){qw[e]=new Hw(e,1,!1,e.toLowerCase(),null,!1)})),qw.xlinkHref=new Hw("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){qw[e]=new Hw(e,1,!1,e.toLowerCase(),null,!0)}));var Gw=ov.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Xw(e,t,r,n){var o=qw.hasOwnProperty(t)?qw[t]:null;(null!==o?0===o.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!Vw.call(Kw,e)||!Vw.call(zw,e)&&(Fw.test(e)?Kw[e]=!0:(zw[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}Gw.hasOwnProperty("ReactCurrentDispatcher")||(Gw.ReactCurrentDispatcher={current:null}),Gw.hasOwnProperty("ReactCurrentBatchConfig")||(Gw.ReactCurrentBatchConfig={suspense:null});var Yw=/^(.*)[\\\/]/,$w="function"==typeof Symbol&&Symbol.for,Zw=$w?Symbol.for("react.element"):60103,Jw=$w?Symbol.for("react.portal"):60106,eC=$w?Symbol.for("react.fragment"):60107,tC=$w?Symbol.for("react.strict_mode"):60108,rC=$w?Symbol.for("react.profiler"):60114,nC=$w?Symbol.for("react.provider"):60109,oC=$w?Symbol.for("react.context"):60110,iC=$w?Symbol.for("react.concurrent_mode"):60111,aC=$w?Symbol.for("react.forward_ref"):60112,sC=$w?Symbol.for("react.suspense"):60113,cC=$w?Symbol.for("react.suspense_list"):60120,uC=$w?Symbol.for("react.memo"):60115,lC=$w?Symbol.for("react.lazy"):60116,dC=$w?Symbol.for("react.block"):60121,fC="function"==typeof Symbol&&Symbol.iterator;function pC(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fC&&e[fC]||e["@@iterator"])?e:null}function hC(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case eC:return"Fragment";case Jw:return"Portal";case rC:return"Profiler";case tC:return"StrictMode";case sC:return"Suspense";case cC:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case oC:return"Context.Consumer";case nC:return"Context.Provider";case aC:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case uC:return hC(e.type);case dC:return hC(e.render);case lC:if(e=1===e._status?e._result:null)return hC(e)}return null}function gC(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,o=e._debugSource,i=hC(e.type);r=null,n&&(r=hC(n.type)),n=i,i="",o?i=" (at "+o.fileName.replace(Yw,"")+":"+o.lineNumber+")":r&&(i=" (created by "+r+")"),r="\n in "+(n||"Unknown")+i}t+=r,e=e.return}while(e);return t}function mC(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function vC(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function yC(e){e._valueTracker||(e._valueTracker=function(e){var t=vC(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function bC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=vC(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function wC(e,t){var r=t.checked;return bm({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function CC(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=mC(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function kC(e,t){null!=(t=t.checked)&&Xw(e,"checked",t,!1)}function EC(e,t){kC(e,t);var r=mC(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?BC(e,t.type,r):t.hasOwnProperty("defaultValue")&&BC(e,t.type,mC(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function SC(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function BC(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function _C(e,t){return e=bm({children:void 0},t),(t=function(e){var t="";return ov.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function AC(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+mC(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function xC(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ow(91));return bm({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function TC(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(ow(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(ow(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:mC(r)}}function IC(e,t){var r=mC(t.value),n=mC(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function PC(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var RC="http://www.w3.org/1999/xhtml",NC="http://www.w3.org/2000/svg";function OC(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function LC(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?OC(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var MC,DC,UC=(DC=function(e,t){if(e.namespaceURI!==NC||"innerHTML"in e)e.innerHTML=t;else{for((MC=MC||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=MC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return DC(e,t)}))}:DC);function jC(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}function FC(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var VC={animationend:FC("Animation","AnimationEnd"),animationiteration:FC("Animation","AnimationIteration"),animationstart:FC("Animation","AnimationStart"),transitionend:FC("Transition","TransitionEnd")},zC={},KC={};function HC(e){if(zC[e])return zC[e];if(!VC[e])return e;var t,r=VC[e];for(t in r)if(r.hasOwnProperty(t)&&t in KC)return zC[e]=r[t];return e}Bw&&(KC=document.createElement("div").style,"AnimationEvent"in window||(delete VC.animationend.animation,delete VC.animationiteration.animation,delete VC.animationstart.animation),"TransitionEvent"in window||delete VC.transitionend.transition);var qC=HC("animationend"),WC=HC("animationiteration"),QC=HC("animationstart"),GC=HC("transitionend"),XC="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),YC=new("function"==typeof WeakMap?WeakMap:Map);function $C(e){var t=YC.get(e);return void 0===t&&(t=new Map,YC.set(e,t)),t}function ZC(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function JC(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function ek(e){if(ZC(e)!==e)throw Error(ow(188))}function tk(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=ZC(e)))throw Error(ow(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return ek(o),e;if(i===n)return ek(o),t;i=i.sibling}throw Error(ow(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a)throw Error(ow(189))}}if(r.alternate!==n)throw Error(ow(190))}if(3!==r.tag)throw Error(ow(188));return r.stateNode.current===r?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rk(e,t){if(null==t)throw Error(ow(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function nk(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var ok=null;function ik(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)gw(e,t[n],r[n]);else t&&gw(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ak(e){if(null!==e&&(ok=rk(ok,e)),e=ok,ok=null,e){if(nk(e,ik),ok)throw Error(ow(95));if(cw)throw e=uw,cw=!1,uw=null,e}}function sk(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ck(e){if(!Bw)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var uk=[];function lk(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>uk.length&&uk.push(e)}function dk(e,t,r,n){if(uk.length){var o=uk.pop();return o.topLevelType=e,o.eventSystemFlags=n,o.nativeEvent=t,o.targetInst=r,o}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:r,ancestors:[]}}function fk(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n=r;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=r.tag)&&6!==t||e.ancestors.push(r),r=_E(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var o=sk(e.nativeEvent);n=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===r&&(a|=64);for(var s=null,c=0;c<ww.length;c++){var u=ww[c];u&&(u=u.extractEvents(n,t,i,o,a))&&(s=rk(s,u))}ak(s)}}function pk(e,t,r){if(!r.has(e)){switch(e){case"scroll":Qk(t,"scroll",!0);break;case"focus":case"blur":Qk(t,"focus",!0),Qk(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":ck(e)&&Qk(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===XC.indexOf(e)&&Wk(e,t)}r.set(e,null)}}var hk,gk,mk,vk=!1,yk=[],bk=null,wk=null,Ck=null,kk=new Map,Ek=new Map,Sk=[],Bk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),_k="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ak(e,t,r,n,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|r,nativeEvent:o,container:n}}function xk(e,t){switch(e){case"focus":case"blur":bk=null;break;case"dragenter":case"dragleave":wk=null;break;case"mouseover":case"mouseout":Ck=null;break;case"pointerover":case"pointerout":kk.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ek.delete(t.pointerId)}}function Tk(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e=Ak(t,r,n,o,i),null!==t&&(null!==(t=AE(t))&&gk(t)),e):(e.eventSystemFlags|=n,e)}function Ik(e){var t=_E(e.target);if(null!==t){var r=ZC(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=JC(r)))return e.blockedOn=t,void nw.unstable_runWithPriority(e.priority,(function(){mk(r)}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Pk(e){if(null!==e.blockedOn)return!1;var t=$k(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var r=AE(t);return null!==r&&gk(r),e.blockedOn=t,!1}return!0}function Rk(e,t,r){Pk(e)&&r.delete(t)}function Nk(){for(vk=!1;0<yk.length;){var e=yk[0];if(null!==e.blockedOn){null!==(e=AE(e.blockedOn))&&hk(e);break}var t=$k(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yk.shift()}null!==bk&&Pk(bk)&&(bk=null),null!==wk&&Pk(wk)&&(wk=null),null!==Ck&&Pk(Ck)&&(Ck=null),kk.forEach(Rk),Ek.forEach(Rk)}function Ok(e,t){e.blockedOn===t&&(e.blockedOn=null,vk||(vk=!0,nw.unstable_scheduleCallback(nw.unstable_NormalPriority,Nk)))}function Lk(e){function t(t){return Ok(t,e)}if(0<yk.length){Ok(yk[0],e);for(var r=1;r<yk.length;r++){var n=yk[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==bk&&Ok(bk,e),null!==wk&&Ok(wk,e),null!==Ck&&Ok(Ck,e),kk.forEach(t),Ek.forEach(t),r=0;r<Sk.length;r++)(n=Sk[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Sk.length&&null===(r=Sk[0]).blockedOn;)Ik(r),null===r.blockedOn&&Sk.shift()}var Mk={},Dk=new Map,Uk=new Map,jk=["abort","abort",qC,"animationEnd",WC,"animationIteration",QC,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",GC,"transitionEnd","waiting","waiting"];function Fk(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],o=e[r+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[n],eventPriority:t},Uk.set(n,t),Dk.set(n,i),Mk[o]=i}}Fk("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Fk("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Fk(jk,2);for(var Vk="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),zk=0;zk<Vk.length;zk++)Uk.set(Vk[zk],0);var Kk=nw.unstable_UserBlockingPriority,Hk=nw.unstable_runWithPriority,qk=!0;function Wk(e,t){Qk(t,e,!1)}function Qk(e,t,r){var n=Uk.get(t);switch(void 0===n?2:n){case 0:n=Gk.bind(null,t,1,e);break;case 1:n=Xk.bind(null,t,1,e);break;default:n=Yk.bind(null,t,1,e)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function Gk(e,t,r,n){Mw||Ow();var o=Yk,i=Mw;Mw=!0;try{Nw(o,e,t,r,n)}finally{(Mw=i)||Uw()}}function Xk(e,t,r,n){Hk(Kk,Yk.bind(null,e,t,r,n))}function Yk(e,t,r,n){if(qk)if(0<yk.length&&-1<Bk.indexOf(e))e=Ak(null,e,t,r,n),yk.push(e);else{var o=$k(e,t,r,n);if(null===o)xk(e,n);else if(-1<Bk.indexOf(e))e=Ak(o,e,t,r,n),yk.push(e);else if(!function(e,t,r,n,o){switch(t){case"focus":return bk=Tk(bk,e,t,r,n,o),!0;case"dragenter":return wk=Tk(wk,e,t,r,n,o),!0;case"mouseover":return Ck=Tk(Ck,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return kk.set(i,Tk(kk.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Ek.set(i,Tk(Ek.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n)){xk(e,n),e=dk(e,n,null,t);try{jw(fk,e)}finally{lk(e)}}}}function $k(e,t,r,n){if(null!==(r=_E(r=sk(n)))){var o=ZC(r);if(null===o)r=null;else{var i=o.tag;if(13===i){if(null!==(r=JC(o)))return r;r=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null)}}e=dk(e,n,r,t);try{jw(fk,e)}finally{lk(e)}return null}var Zk={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jk=["Webkit","ms","Moz","O"];function eE(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||Zk.hasOwnProperty(e)&&Zk[e]?(""+t).trim():t+"px"}function tE(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=eE(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(Zk).forEach((function(e){Jk.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zk[t]=Zk[e]}))}));var rE=bm({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nE(e,t){if(t){if(rE[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ow(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ow(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ow(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ow(62,""))}}function oE(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var iE=RC;function aE(e,t){var r=$C(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=Ew[t];for(var n=0;n<t.length;n++)pk(t[n],e,r)}function sE(){}function cE(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function uE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lE(e,t){var r,n=uE(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=uE(n)}}function dE(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dE(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fE(){for(var e=window,t=cE();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=cE((e=t.contentWindow).document)}return t}function pE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hE=null,gE=null;function mE(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function vE(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var yE="function"==typeof setTimeout?setTimeout:void 0,bE="function"==typeof clearTimeout?clearTimeout:void 0;function wE(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function CE(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var kE=Math.random().toString(36).slice(2),EE="__reactInternalInstance$"+kE,SE="__reactEventHandlers$"+kE,BE="__reactContainere$"+kE;function _E(e){var t=e[EE];if(t)return t;for(var r=e.parentNode;r;){if(t=r[BE]||r[EE]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=CE(e);null!==e;){if(r=e[EE])return r;e=CE(e)}return t}r=(e=r).parentNode}return null}function AE(e){return!(e=e[EE]||e[BE])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xE(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ow(33))}function TE(e){return e[SE]||null}function IE(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function PE(e,t){var r=e.stateNode;if(!r)return null;var n=fw(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(ow(231,t,typeof r));return r}function RE(e,t,r){(t=PE(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=rk(r._dispatchListeners,t),r._dispatchInstances=rk(r._dispatchInstances,e))}function NE(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=IE(t);for(t=r.length;0<t--;)RE(r[t],"captured",e);for(t=0;t<r.length;t++)RE(r[t],"bubbled",e)}}function OE(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=PE(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=rk(r._dispatchListeners,t),r._dispatchInstances=rk(r._dispatchInstances,e))}function LE(e){e&&e.dispatchConfig.registrationName&&OE(e._targetInst,null,e)}function ME(e){nk(e,NE)}var DE=null,UE=null,jE=null;function FE(){if(jE)return jE;var e,t,r=UE,n=r.length,o="value"in DE?DE.value:DE.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===o[i-t];t++);return jE=o.slice(e,1<t?1-t:void 0)}function VE(){return!0}function zE(){return!1}function KE(e,t,r,n){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(r):"target"===o?this.target=n:this[o]=r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?VE:zE,this.isPropagationStopped=zE,this}function HE(e,t,r,n){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,r,n),o}return new this(e,t,r,n)}function qE(e){if(!(e instanceof this))throw Error(ow(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function WE(e){e.eventPool=[],e.getPooled=HE,e.release=qE}bm(KE.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=VE)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=VE)},persist:function(){this.isPersistent=VE},isPersistent:zE,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=zE,this._dispatchInstances=this._dispatchListeners=null}}),KE.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},KE.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var o=new t;return bm(o,r.prototype),r.prototype=o,r.prototype.constructor=r,r.Interface=bm({},n.Interface,e),r.extend=n.extend,WE(r),r},WE(KE);var QE=KE.extend({data:null}),GE=KE.extend({data:null}),XE=[9,13,27,32],YE=Bw&&"CompositionEvent"in window,$E=null;Bw&&"documentMode"in document&&($E=document.documentMode);var ZE=Bw&&"TextEvent"in window&&!$E,JE=Bw&&(!YE||$E&&8<$E&&11>=$E),eS=String.fromCharCode(32),tS={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rS=!1;function nS(e,t){switch(e){case"keyup":return-1!==XE.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function oS(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var iS=!1;var aS={eventTypes:tS,extractEvents:function(e,t,r,n){var o;if(YE)e:{switch(e){case"compositionstart":var i=tS.compositionStart;break e;case"compositionend":i=tS.compositionEnd;break e;case"compositionupdate":i=tS.compositionUpdate;break e}i=void 0}else iS?nS(e,r)&&(i=tS.compositionEnd):"keydown"===e&&229===r.keyCode&&(i=tS.compositionStart);return i?(JE&&"ko"!==r.locale&&(iS||i!==tS.compositionStart?i===tS.compositionEnd&&iS&&(o=FE()):(UE="value"in(DE=n)?DE.value:DE.textContent,iS=!0)),i=QE.getPooled(i,t,r,n),o?i.data=o:null!==(o=oS(r))&&(i.data=o),ME(i),o=i):o=null,(e=ZE?function(e,t){switch(e){case"compositionend":return oS(t);case"keypress":return 32!==t.which?null:(rS=!0,eS);case"textInput":return(e=t.data)===eS&&rS?null:e;default:return null}}(e,r):function(e,t){if(iS)return"compositionend"===e||!YE&&nS(e,t)?(e=FE(),jE=UE=DE=null,iS=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return JE&&"ko"!==t.locale?null:t.data;default:return null}}(e,r))?((t=GE.getPooled(tS.beforeInput,t,r,n)).data=e,ME(t)):t=null,null===o?t:null===t?o:[o,t]}},sS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!sS[e.type]:"textarea"===t}var uS={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function lS(e,t,r){return(e=KE.getPooled(uS.change,e,t,r)).type="change",Iw(r),ME(e),e}var dS=null,fS=null;function pS(e){ak(e)}function hS(e){if(bC(xE(e)))return e}function gS(e,t){if("change"===e)return t}var mS=!1;function vS(){dS&&(dS.detachEvent("onpropertychange",yS),fS=dS=null)}function yS(e){if("value"===e.propertyName&&hS(fS))if(e=lS(fS,e,sk(e)),Mw)ak(e);else{Mw=!0;try{Rw(pS,e)}finally{Mw=!1,Uw()}}}function bS(e,t,r){"focus"===e?(vS(),fS=r,(dS=t).attachEvent("onpropertychange",yS)):"blur"===e&&vS()}function wS(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return hS(fS)}function CS(e,t){if("click"===e)return hS(t)}function kS(e,t){if("input"===e||"change"===e)return hS(t)}Bw&&(mS=ck("input")&&(!document.documentMode||9<document.documentMode));var ES={eventTypes:uS,_isInputEventSupported:mS,extractEvents:function(e,t,r,n){var o=t?xE(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=gS;else if(cS(o))if(mS)a=kS;else{a=wS;var s=bS}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=CS);if(a&&(a=a(e,t)))return lS(a,r,n);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&BC(o,"number",o.value)}},SS=KE.extend({view:null,detail:null}),BS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _S(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=BS[e])&&!!t[e]}function AS(){return _S}var xS=0,TS=0,IS=!1,PS=!1,RS=SS.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:AS,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=xS;return xS=e.screenX,IS?"mousemove"===e.type?e.screenX-t:0:(IS=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=TS;return TS=e.screenY,PS?"mousemove"===e.type?e.screenY-t:0:(PS=!0,0)}}),NS=RS.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),OS={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},LS={eventTypes:OS,extractEvents:function(e,t,r,n,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(r.relatedTarget||r.fromElement)||!a&&!i)return null;(i=n.window===n?n:(i=n.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=r.relatedTarget||r.toElement)?_E(t):null)&&(t!==ZC(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=RS,c=OS.mouseLeave,u=OS.mouseEnter,l="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=NS,c=OS.pointerLeave,u=OS.pointerEnter,l="pointer");if(e=null==a?i:xE(a),i=null==t?i:xE(t),(c=s.getPooled(c,a,r,n)).type=l+"leave",c.target=e,c.relatedTarget=i,(r=s.getPooled(u,t,r,n)).type=l+"enter",r.target=i,r.relatedTarget=e,l=t,(n=a)&&l)e:{for(u=l,a=0,e=s=n;e;e=IE(e))a++;for(e=0,t=u;t;t=IE(t))e++;for(;0<a-e;)s=IE(s),a--;for(;0<e-a;)u=IE(u),e--;for(;a--;){if(s===u||s===u.alternate)break e;s=IE(s),u=IE(u)}s=null}else s=null;for(u=s,s=[];n&&n!==u&&(null===(a=n.alternate)||a!==u);)s.push(n),n=IE(n);for(n=[];l&&l!==u&&(null===(a=l.alternate)||a!==u);)n.push(l),l=IE(l);for(l=0;l<s.length;l++)OE(s[l],"bubbled",c);for(l=n.length;0<l--;)OE(n[l],"captured",r);return 0==(64&o)?[c]:[c,r]}};var MS="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},DS=Object.prototype.hasOwnProperty;function US(e,t){if(MS(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!DS.call(t,r[n])||!MS(e[r[n]],t[r[n]]))return!1;return!0}var jS=Bw&&"documentMode"in document&&11>=document.documentMode,FS={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},VS=null,zS=null,KS=null,HS=!1;function qS(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return HS||null==VS||VS!==cE(r)?null:("selectionStart"in(r=VS)&&pE(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},KS&&US(KS,r)?null:(KS=r,(e=KE.getPooled(FS.select,zS,e,t)).type="select",e.target=VS,ME(e),e))}var WS={eventTypes:FS,extractEvents:function(e,t,r,n,o,i){if(!(i=!(o=i||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{o=$C(o),i=Ew.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?xE(t):window,e){case"focus":(cS(o)||"true"===o.contentEditable)&&(VS=o,zS=t,KS=null);break;case"blur":KS=zS=VS=null;break;case"mousedown":HS=!0;break;case"contextmenu":case"mouseup":case"dragend":return HS=!1,qS(r,n);case"selectionchange":if(jS)break;case"keydown":case"keyup":return qS(r,n)}return null}},QS=KE.extend({animationName:null,elapsedTime:null,pseudoElement:null}),GS=KE.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),XS=SS.extend({relatedTarget:null});function YS(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var $S={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},JS=SS.extend({key:function(e){if(e.key){var t=$S[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=YS(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ZS[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:AS,charCode:function(e){return"keypress"===e.type?YS(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?YS(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),eB=RS.extend({dataTransfer:null}),tB=SS.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:AS}),rB=KE.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),nB=RS.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oB={eventTypes:Mk,extractEvents:function(e,t,r,n){var o=Dk.get(e);if(!o)return null;switch(e){case"keypress":if(0===YS(r))return null;case"keydown":case"keyup":e=JS;break;case"blur":case"focus":e=XS;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=RS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=eB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=tB;break;case qC:case WC:case QC:e=QS;break;case GC:e=rB;break;case"scroll":e=SS;break;case"wheel":e=nB;break;case"copy":case"cut":case"paste":e=GS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=NS;break;default:e=KE}return ME(t=e.getPooled(o,t,r,n)),t}};if(mw)throw Error(ow(101));mw=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),yw(),fw=TE,pw=AE,hw=xE,Sw({SimpleEventPlugin:oB,EnterLeaveEventPlugin:LS,ChangeEventPlugin:ES,SelectEventPlugin:WS,BeforeInputEventPlugin:aS});var iB=[],aB=-1;function sB(e){0>aB||(e.current=iB[aB],iB[aB]=null,aB--)}function cB(e,t){aB++,iB[aB]=e.current,e.current=t}var uB={},lB={current:uB},dB={current:!1},fB=uB;function pB(e,t){var r=e.type.contextTypes;if(!r)return uB;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function hB(e){return null!=(e=e.childContextTypes)}function gB(){sB(dB),sB(lB)}function mB(e,t,r){if(lB.current!==uB)throw Error(ow(168));cB(lB,t),cB(dB,r)}function vB(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw Error(ow(108,hC(t)||"Unknown",o));return bm({},r,{},n)}function yB(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||uB,fB=lB.current,cB(lB,e),cB(dB,dB.current),!0}function bB(e,t,r){var n=e.stateNode;if(!n)throw Error(ow(169));r?(e=vB(e,t,fB),n.__reactInternalMemoizedMergedChildContext=e,sB(dB),sB(lB),cB(lB,e)):sB(dB),cB(dB,r)}var wB=nw.unstable_runWithPriority,CB=nw.unstable_scheduleCallback,kB=nw.unstable_cancelCallback,EB=nw.unstable_requestPaint,SB=nw.unstable_now,BB=nw.unstable_getCurrentPriorityLevel,_B=nw.unstable_ImmediatePriority,AB=nw.unstable_UserBlockingPriority,xB=nw.unstable_NormalPriority,TB=nw.unstable_LowPriority,IB=nw.unstable_IdlePriority,PB={},RB=nw.unstable_shouldYield,NB=void 0!==EB?EB:function(){},OB=null,LB=null,MB=!1,DB=SB(),UB=1e4>DB?SB:function(){return SB()-DB};function jB(){switch(BB()){case _B:return 99;case AB:return 98;case xB:return 97;case TB:return 96;case IB:return 95;default:throw Error(ow(332))}}function FB(e){switch(e){case 99:return _B;case 98:return AB;case 97:return xB;case 96:return TB;case 95:return IB;default:throw Error(ow(332))}}function VB(e,t){return e=FB(e),wB(e,t)}function zB(e,t,r){return e=FB(e),CB(e,t,r)}function KB(e){return null===OB?(OB=[e],LB=CB(_B,qB)):OB.push(e),PB}function HB(){if(null!==LB){var e=LB;LB=null,kB(e)}qB()}function qB(){if(!MB&&null!==OB){MB=!0;var e=0;try{var t=OB;VB(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),OB=null}catch(t){throw null!==OB&&(OB=OB.slice(e+1)),CB(_B,HB),t}finally{MB=!1}}}function WB(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function QB(e,t){if(e&&e.defaultProps)for(var r in t=bm({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var GB={current:null},XB=null,YB=null,$B=null;function ZB(){$B=YB=XB=null}function JB(e){var t=GB.current;sB(GB),e.type._context._currentValue=t}function e_(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function t_(e,t){XB=e,$B=YB=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(xA=!0),e.firstContext=null)}function r_(e,t){if($B!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||($B=e,t=1073741823),t={context:e,observedBits:t,next:null},null===YB){if(null===XB)throw Error(ow(308));YB=t,XB.dependencies={expirationTime:0,firstContext:t,responders:null}}else YB=YB.next=t;return e._currentValue}var n_=!1;function o_(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function i_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function a_(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function s_(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function c_(e,t){var r=e.alternate;null!==r&&i_(r,e),null===(r=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function u_(e,t,r,n){var o=e.updateQueue;n_=!1;var i=o.baseQueue,a=o.shared.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}i=a,o.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=a))}if(null!==i){s=i.next;var c=o.baseState,u=0,l=null,d=null,f=null;if(null!==s)for(var p=s;;){if((a=p.expirationTime)<n){var h={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===f?(d=f=h,l=c):f=f.next=h,a>u&&(u=a)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),iT(a,p.suspenseConfig);e:{var g=e,m=p;switch(a=t,h=r,m.tag){case 1:if("function"==typeof(g=m.payload)){c=g.call(h,c,a);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(a="function"==typeof(g=m.payload)?g.call(h,c,a):g))break e;c=bm({},c,a);break e;case 2:n_=!0}}null!==p.callback&&(e.effectTag|=32,null===(a=o.effects)?o.effects=[p]:a.push(p))}if(null===(p=p.next)||p===s){if(null===(a=o.shared.pending))break;p=i.next=a.next,a.next=s,o.baseQueue=i=a,o.shared.pending=null}}null===f?l=c:f.next=d,o.baseState=l,o.baseQueue=f,aT(u),e.expirationTime=u,e.memoizedState=c}}function l_(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=o,o=r,"function"!=typeof n)throw Error(ow(191,n));n.call(o)}}}var d_=Gw.ReactCurrentBatchConfig,f_=(new ov.Component).refs;function p_(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:bm({},t,r),e.memoizedState=r,0===e.expirationTime&&(e.updateQueue.baseState=r)}var h_={isMounted:function(e){return!!(e=e._reactInternalFiber)&&ZC(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=Wx(),o=d_.suspense;(o=a_(n=Qx(n,e,o),o)).payload=t,null!=r&&(o.callback=r),s_(e,o),Gx(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=Wx(),o=d_.suspense;(o=a_(n=Qx(n,e,o),o)).tag=1,o.payload=t,null!=r&&(o.callback=r),s_(e,o),Gx(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=Wx(),n=d_.suspense;(n=a_(r=Qx(r,e,n),n)).tag=2,null!=t&&(n.callback=t),s_(e,n),Gx(e,r)}};function g_(e,t,r,n,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!US(r,n)||!US(o,i))}function m_(e,t,r){var n=!1,o=uB,i=t.contextType;return"object"==typeof i&&null!==i?i=r_(i):(o=hB(t)?fB:lB.current,i=(n=null!=(n=t.contextTypes))?pB(e,o):uB),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=h_,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function v_(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&h_.enqueueReplaceState(t,t.state,null)}function y_(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=f_,o_(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=r_(i):(i=hB(t)?fB:lB.current,o.context=pB(e,i)),u_(e,r,o,n),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(p_(e,t,i,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&h_.enqueueReplaceState(o,o.state,null),u_(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var b_=Array.isArray;function w_(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(ow(309));var n=r.stateNode}if(!n)throw Error(ow(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=n.refs;t===f_&&(t=n.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(ow(284));if(!r._owner)throw Error(ow(290,e))}return e}function C_(e,t){if("textarea"!==e.type)throw Error(ow(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function k_(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=_T(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=TT(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=o(t,r.props)).ref=w_(e,t,r),n.return=e,n):((n=AT(r.type,r.key,r.props,null,e.mode,n)).ref=w_(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=IT(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function l(e,t,r,n,i){return null===t||7!==t.tag?((t=xT(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=TT(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Zw:return(r=AT(t.type,t.key,t.props,null,e.mode,r)).ref=w_(e,null,t),r.return=e,r;case Jw:return(t=IT(t,e.mode,r)).return=e,t}if(b_(t)||pC(t))return(t=xT(t,e.mode,r,null)).return=e,t;C_(e,t)}return null}function f(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==o?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Zw:return r.key===o?r.type===eC?l(e,t,r.props.children,n,o):c(e,t,r,n):null;case Jw:return r.key===o?u(e,t,r,n):null}if(b_(r)||pC(r))return null!==o?null:l(e,t,r,n,null);C_(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Zw:return e=e.get(null===n.key?r:n.key)||null,n.type===eC?l(t,e,n.props.children,o,n.key):c(t,e,n,o);case Jw:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o)}if(b_(n)||pC(n))return l(t,e=e.get(r)||null,n,o,null);C_(t,n)}return null}function h(o,a,s,c){for(var u=null,l=null,h=a,g=a=0,m=null;null!==h&&g<s.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var v=f(o,h,s[g],c);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,g),null===l?u=v:l.sibling=v,l=v,h=m}if(g===s.length)return r(o,h),u;if(null===h){for(;g<s.length;g++)null!==(h=d(o,s[g],c))&&(a=i(h,a,g),null===l?u=h:l.sibling=h,l=h);return u}for(h=n(o,h);g<s.length;g++)null!==(m=p(h,o,g,s[g],c))&&(e&&null!==m.alternate&&h.delete(null===m.key?g:m.key),a=i(m,a,g),null===l?u=m:l.sibling=m,l=m);return e&&h.forEach((function(e){return t(o,e)})),u}function g(o,a,s,c){var u=pC(s);if("function"!=typeof u)throw Error(ow(150));if(null==(s=u.call(s)))throw Error(ow(151));for(var l=u=null,h=a,g=a=0,m=null,v=s.next();null!==h&&!v.done;g++,v=s.next()){h.index>g?(m=h,h=null):m=h.sibling;var y=f(o,h,v.value,c);if(null===y){null===h&&(h=m);break}e&&h&&null===y.alternate&&t(o,h),a=i(y,a,g),null===l?u=y:l.sibling=y,l=y,h=m}if(v.done)return r(o,h),u;if(null===h){for(;!v.done;g++,v=s.next())null!==(v=d(o,v.value,c))&&(a=i(v,a,g),null===l?u=v:l.sibling=v,l=v);return u}for(h=n(o,h);!v.done;g++,v=s.next())null!==(v=p(h,o,g,v.value,c))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),a=i(v,a,g),null===l?u=v:l.sibling=v,l=v);return e&&h.forEach((function(e){return t(o,e)})),u}return function(e,n,i,s){var c="object"==typeof i&&null!==i&&i.type===eC&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case Zw:e:{for(u=i.key,c=n;null!==c;){if(c.key===u){switch(c.tag){case 7:if(i.type===eC){r(e,c.sibling),(n=o(c,i.props.children)).return=e,e=n;break e}break;default:if(c.elementType===i.type){r(e,c.sibling),(n=o(c,i.props)).ref=w_(e,c,i),n.return=e,e=n;break e}}r(e,c);break}t(e,c),c=c.sibling}i.type===eC?((n=xT(i.props.children,e.mode,s,i.key)).return=e,e=n):((s=AT(i.type,i.key,i.props,null,e.mode,s)).ref=w_(e,n,i),s.return=e,e=s)}return a(e);case Jw:e:{for(c=i.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===i.containerInfo&&n.stateNode.implementation===i.implementation){r(e,n.sibling),(n=o(n,i.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=IT(i,e.mode,s)).return=e,e=n}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==n&&6===n.tag?(r(e,n.sibling),(n=o(n,i)).return=e,e=n):(r(e,n),(n=TT(i,e.mode,s)).return=e,e=n),a(e);if(b_(i))return h(e,n,i,s);if(pC(i))return g(e,n,i,s);if(u&&C_(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(ow(152,e.displayName||e.name||"Component"))}return r(e,n)}}var E_=k_(!0),S_=k_(!1),B_={},__={current:B_},A_={current:B_},x_={current:B_};function T_(e){if(e===B_)throw Error(ow(174));return e}function I_(e,t){switch(cB(x_,t),cB(A_,e),cB(__,B_),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:LC(null,"");break;default:t=LC(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}sB(__),cB(__,t)}function P_(){sB(__),sB(A_),sB(x_)}function R_(e){T_(x_.current);var t=T_(__.current),r=LC(t,e.type);t!==r&&(cB(A_,e),cB(__,r))}function N_(e){A_.current===e&&(sB(__),sB(A_))}var O_={current:0};function L_(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function M_(e,t){return{responder:e,props:t}}var D_=Gw.ReactCurrentDispatcher,U_=Gw.ReactCurrentBatchConfig,j_=0,F_=null,V_=null,z_=null,K_=!1;function H_(){throw Error(ow(321))}function q_(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!MS(e[r],t[r]))return!1;return!0}function W_(e,t,r,n,o,i){if(j_=i,F_=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,D_.current=null===e||null===e.memoizedState?gA:mA,e=r(n,o),t.expirationTime===j_){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(ow(301));i+=1,z_=V_=null,t.updateQueue=null,D_.current=vA,e=r(n,o)}while(t.expirationTime===j_)}if(D_.current=hA,t=null!==V_&&null!==V_.next,j_=0,z_=V_=F_=null,K_=!1,t)throw Error(ow(300));return e}function Q_(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===z_?F_.memoizedState=z_=e:z_=z_.next=e,z_}function G_(){if(null===V_){var e=F_.alternate;e=null!==e?e.memoizedState:null}else e=V_.next;var t=null===z_?F_.memoizedState:z_.next;if(null!==t)z_=t,V_=e;else{if(null===e)throw Error(ow(310));e={memoizedState:(V_=e).memoizedState,baseState:V_.baseState,baseQueue:V_.baseQueue,queue:V_.queue,next:null},null===z_?F_.memoizedState=z_=e:z_=z_.next=e}return z_}function X_(e,t){return"function"==typeof t?t(e):t}function Y_(e){var t=G_(),r=t.queue;if(null===r)throw Error(ow(311));r.lastRenderedReducer=e;var n=V_,o=n.baseQueue,i=r.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(null!==o){o=o.next,n=n.baseState;var s=a=i=null,c=o;do{var u=c.expirationTime;if(u<j_){var l={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(a=s=l,i=n):s=s.next=l,u>F_.expirationTime&&(F_.expirationTime=u,aT(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),iT(u,c.suspenseConfig),n=c.eagerReducer===e?c.eagerState:e(n,c.action);c=c.next}while(null!==c&&c!==o);null===s?i=n:s.next=a,MS(n,t.memoizedState)||(xA=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function $_(e){var t=G_(),r=t.queue;if(null===r)throw Error(ow(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);MS(i,t.memoizedState)||(xA=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Z_(e){var t=Q_();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:X_,lastRenderedState:e}).dispatch=pA.bind(null,F_,e),[t.memoizedState,e]}function J_(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=F_.updateQueue)?(t={lastEffect:null},F_.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function eA(){return G_().memoizedState}function tA(e,t,r,n){var o=Q_();F_.effectTag|=e,o.memoizedState=J_(1|t,r,void 0,void 0===n?null:n)}function rA(e,t,r,n){var o=G_();n=void 0===n?null:n;var i=void 0;if(null!==V_){var a=V_.memoizedState;if(i=a.destroy,null!==n&&q_(n,a.deps))return void J_(t,r,i,n)}F_.effectTag|=e,o.memoizedState=J_(1|t,r,i,n)}function nA(e,t){return tA(516,4,e,t)}function oA(e,t){return rA(516,4,e,t)}function iA(e,t){return rA(4,2,e,t)}function aA(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function sA(e,t,r){return r=null!=r?r.concat([e]):null,rA(4,2,aA.bind(null,t,e),r)}function cA(){}function uA(e,t){return Q_().memoizedState=[e,void 0===t?null:t],e}function lA(e,t){var r=G_();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&q_(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function dA(e,t){var r=G_();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&q_(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function fA(e,t,r){var n=jB();VB(98>n?98:n,(function(){e(!0)})),VB(97<n?97:n,(function(){var n=U_.suspense;U_.suspense=void 0===t?null:t;try{e(!1),r()}finally{U_.suspense=n}}))}function pA(e,t,r){var n=Wx(),o=d_.suspense;o={expirationTime:n=Qx(n,e,o),suspenseConfig:o,action:r,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===F_||null!==i&&i===F_)K_=!0,o.expirationTime=j_,F_.expirationTime=j_;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,r);if(o.eagerReducer=i,o.eagerState=s,MS(s,a))return}catch(e){}Gx(e,n)}}var hA={readContext:r_,useCallback:H_,useContext:H_,useEffect:H_,useImperativeHandle:H_,useLayoutEffect:H_,useMemo:H_,useReducer:H_,useRef:H_,useState:H_,useDebugValue:H_,useResponder:H_,useDeferredValue:H_,useTransition:H_},gA={readContext:r_,useCallback:uA,useContext:r_,useEffect:nA,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,tA(4,2,aA.bind(null,t,e),r)},useLayoutEffect:function(e,t){return tA(4,2,e,t)},useMemo:function(e,t){var r=Q_();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Q_();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=pA.bind(null,F_,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Q_().memoizedState=e},useState:Z_,useDebugValue:cA,useResponder:M_,useDeferredValue:function(e,t){var r=Z_(e),n=r[0],o=r[1];return nA((function(){var r=U_.suspense;U_.suspense=void 0===t?null:t;try{o(e)}finally{U_.suspense=r}}),[e,t]),n},useTransition:function(e){var t=Z_(!1),r=t[0];return t=t[1],[uA(fA.bind(null,t,e),[t,e]),r]}},mA={readContext:r_,useCallback:lA,useContext:r_,useEffect:oA,useImperativeHandle:sA,useLayoutEffect:iA,useMemo:dA,useReducer:Y_,useRef:eA,useState:function(){return Y_(X_)},useDebugValue:cA,useResponder:M_,useDeferredValue:function(e,t){var r=Y_(X_),n=r[0],o=r[1];return oA((function(){var r=U_.suspense;U_.suspense=void 0===t?null:t;try{o(e)}finally{U_.suspense=r}}),[e,t]),n},useTransition:function(e){var t=Y_(X_),r=t[0];return t=t[1],[lA(fA.bind(null,t,e),[t,e]),r]}},vA={readContext:r_,useCallback:lA,useContext:r_,useEffect:oA,useImperativeHandle:sA,useLayoutEffect:iA,useMemo:dA,useReducer:$_,useRef:eA,useState:function(){return $_(X_)},useDebugValue:cA,useResponder:M_,useDeferredValue:function(e,t){var r=$_(X_),n=r[0],o=r[1];return oA((function(){var r=U_.suspense;U_.suspense=void 0===t?null:t;try{o(e)}finally{U_.suspense=r}}),[e,t]),n},useTransition:function(e){var t=$_(X_),r=t[0];return t=t[1],[lA(fA.bind(null,t,e),[t,e]),r]}},yA=null,bA=null,wA=!1;function CA(e,t){var r=ST(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function kA(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function EA(e){if(wA){var t=bA;if(t){var r=t;if(!kA(e,t)){if(!(t=wE(r.nextSibling))||!kA(e,t))return e.effectTag=-1025&e.effectTag|2,wA=!1,void(yA=e);CA(yA,r)}yA=e,bA=wE(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,wA=!1,yA=e}}function SA(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;yA=e}function BA(e){if(e!==yA)return!1;if(!wA)return SA(e),wA=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!vE(t,e.memoizedProps))for(t=bA;t;)CA(e,t),t=wE(t.nextSibling);if(SA(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ow(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){bA=wE(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}bA=null}}else bA=yA?wE(e.stateNode.nextSibling):null;return!0}function _A(){bA=yA=null,wA=!1}var AA=Gw.ReactCurrentOwner,xA=!1;function TA(e,t,r,n){t.child=null===e?S_(t,null,r,n):E_(t,e.child,r,n)}function IA(e,t,r,n,o){r=r.render;var i=t.ref;return t_(t,o),n=W_(e,t,r,n,i,o),null===e||xA?(t.effectTag|=1,TA(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),WA(e,t,o))}function PA(e,t,r,n,o,i){if(null===e){var a=r.type;return"function"!=typeof a||BT(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=AT(r.type,null,n,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,RA(e,t,a,n,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(r=null!==(r=r.compare)?r:US)(o,n)&&e.ref===t.ref)?WA(e,t,i):(t.effectTag|=1,(e=_T(a,n)).ref=t.ref,e.return=t,t.child=e)}function RA(e,t,r,n,o,i){return null!==e&&US(e.memoizedProps,n)&&e.ref===t.ref&&(xA=!1,o<i)?(t.expirationTime=e.expirationTime,WA(e,t,i)):OA(e,t,r,n,i)}function NA(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function OA(e,t,r,n,o){var i=hB(r)?fB:lB.current;return i=pB(t,i),t_(t,o),r=W_(e,t,r,n,i,o),null===e||xA?(t.effectTag|=1,TA(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),WA(e,t,o))}function LA(e,t,r,n,o){if(hB(r)){var i=!0;yB(t)}else i=!1;if(t_(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),m_(t,r,n),y_(t,r,n,o),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,u=r.contextType;"object"==typeof u&&null!==u?u=r_(u):u=pB(t,u=hB(r)?fB:lB.current);var l=r.getDerivedStateFromProps,d="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||c!==u)&&v_(t,a,n,u),n_=!1;var f=t.memoizedState;a.state=f,u_(t,n,a,o),c=t.memoizedState,s!==n||f!==c||dB.current||n_?("function"==typeof l&&(p_(t,r,l,n),c=t.memoizedState),(s=n_||g_(t,r,s,n,f,c,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=c),a.props=n,a.state=c,a.context=u,n=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),n=!1)}else a=t.stateNode,i_(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:QB(t.type,s),c=a.context,"object"==typeof(u=r.contextType)&&null!==u?u=r_(u):u=pB(t,u=hB(r)?fB:lB.current),(d="function"==typeof(l=r.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||c!==u)&&v_(t,a,n,u),n_=!1,c=t.memoizedState,a.state=c,u_(t,n,a,o),f=t.memoizedState,s!==n||c!==f||dB.current||n_?("function"==typeof l&&(p_(t,r,l,n),f=t.memoizedState),(l=n_||g_(t,r,s,n,c,f,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=f),a.props=n,a.state=f,a.context=u,n=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),n=!1);return MA(e,t,r,n,i,o)}function MA(e,t,r,n,o,i){NA(e,t);var a=0!=(64&t.effectTag);if(!n&&!a)return o&&bB(t,r,!1),WA(e,t,i);n=t.stateNode,AA.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&a?(t.child=E_(t,e.child,null,i),t.child=E_(t,null,s,i)):TA(e,t,s,i),t.memoizedState=n.state,o&&bB(t,r,!0),t.child}function DA(e){var t=e.stateNode;t.pendingContext?mB(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mB(0,t.context,!1),I_(e,t.containerInfo)}var UA,jA,FA,VA={dehydrated:null,retryTime:0};function zA(e,t,r){var n,o=t.mode,i=t.pendingProps,a=O_.current,s=!1;if((n=0!=(64&t.effectTag))||(n=0!=(2&a)&&(null===e||null!==e.memoizedState)),n?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),cB(O_,1&a),null===e){if(void 0!==i.fallback&&EA(t),s){if(s=i.fallback,(i=xT(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(r=xT(s,o,r,null)).return=t,i.sibling=r,t.memoizedState=VA,t.child=i,r}return o=i.children,t.memoizedState=null,t.child=S_(t,null,o,r)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(i=i.fallback,(r=_T(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(r.child=s;null!==s;)s.return=r,s=s.sibling;return(o=_T(o,i)).return=t,r.sibling=o,r.childExpirationTime=0,t.memoizedState=VA,t.child=r,o}return r=E_(t,e.child,i.children,r),t.memoizedState=null,t.child=r}if(e=e.child,s){if(s=i.fallback,(i=xT(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(r=xT(s,o,r,null)).return=t,i.sibling=r,r.effectTag|=2,i.childExpirationTime=0,t.memoizedState=VA,t.child=i,r}return t.memoizedState=null,t.child=E_(t,e,i.children,r)}function KA(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t),e_(e.return,t)}function HA(e,t,r,n,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function qA(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(TA(e,t,n.children,r),0!=(2&(n=O_.current)))n=1&n|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&KA(e,r);else if(19===e.tag)KA(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(cB(O_,n),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===L_(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),HA(t,!1,o,r,i,t.lastEffect);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===L_(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}HA(t,!0,r,null,i,t.lastEffect);break;case"together":HA(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function WA(e,t,r){null!==e&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(0!==n&&aT(n),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw Error(ow(153));if(null!==t.child){for(r=_T(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=_T(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function QA(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function GA(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return hB(t.type)&&gB(),null;case 3:return P_(),sB(dB),sB(lB),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||!BA(t)||(t.effectTag|=4),null;case 5:N_(t),r=T_(x_.current);var o=t.type;if(null!==e&&null!=t.stateNode)jA(e,t,o,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(ow(166));return null}if(e=T_(__.current),BA(t)){n=t.stateNode,o=t.type;var i=t.memoizedProps;switch(n[EE]=t,n[SE]=i,o){case"iframe":case"object":case"embed":Wk("load",n);break;case"video":case"audio":for(e=0;e<XC.length;e++)Wk(XC[e],n);break;case"source":Wk("error",n);break;case"img":case"image":case"link":Wk("error",n),Wk("load",n);break;case"form":Wk("reset",n),Wk("submit",n);break;case"details":Wk("toggle",n);break;case"input":CC(n,i),Wk("invalid",n),aE(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Wk("invalid",n),aE(r,"onChange");break;case"textarea":TC(n,i),Wk("invalid",n),aE(r,"onChange")}for(var a in nE(o,i),e=null,i)if(i.hasOwnProperty(a)){var s=i[a];"children"===a?"string"==typeof s?n.textContent!==s&&(e=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(e=["children",""+s]):kw.hasOwnProperty(a)&&null!=s&&aE(r,a)}switch(o){case"input":yC(n),SC(n,i,!0);break;case"textarea":yC(n),PC(n);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(n.onclick=sE)}r=e,t.updateQueue=r,null!==r&&(t.effectTag|=4)}else{switch(a=9===r.nodeType?r:r.ownerDocument,e===iE&&(e=OC(o)),e===iE?"script"===o?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=a.createElement(o,{is:n.is}):(e=a.createElement(o),"select"===o&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,o),e[EE]=t,e[SE]=n,UA(e,t),t.stateNode=e,a=oE(o,n),o){case"iframe":case"object":case"embed":Wk("load",e),s=n;break;case"video":case"audio":for(s=0;s<XC.length;s++)Wk(XC[s],e);s=n;break;case"source":Wk("error",e),s=n;break;case"img":case"image":case"link":Wk("error",e),Wk("load",e),s=n;break;case"form":Wk("reset",e),Wk("submit",e),s=n;break;case"details":Wk("toggle",e),s=n;break;case"input":CC(e,n),s=wC(e,n),Wk("invalid",e),aE(r,"onChange");break;case"option":s=_C(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=bm({},n,{value:void 0}),Wk("invalid",e),aE(r,"onChange");break;case"textarea":TC(e,n),s=xC(e,n),Wk("invalid",e),aE(r,"onChange");break;default:s=n}nE(o,s);var c=s;for(i in c)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?tE(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&UC(e,u):"children"===i?"string"==typeof u?("textarea"!==o||""!==u)&&jC(e,u):"number"==typeof u&&jC(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(kw.hasOwnProperty(i)?null!=u&&aE(r,i):null!=u&&Xw(e,i,u,a))}switch(o){case"input":yC(e),SC(e,n,!1);break;case"textarea":yC(e),PC(e);break;case"option":null!=n.value&&e.setAttribute("value",""+mC(n.value));break;case"select":e.multiple=!!n.multiple,null!=(r=n.value)?AC(e,!!n.multiple,r,!1):null!=n.defaultValue&&AC(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=sE)}mE(o,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)FA(0,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(ow(166));r=T_(x_.current),T_(__.current),BA(t)?(r=t.stateNode,n=t.memoizedProps,r[EE]=t,r.nodeValue!==n&&(t.effectTag|=4)):((r=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[EE]=t,t.stateNode=r)}return null;case 13:return sB(O_),n=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=r,t):(r=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&BA(t):(n=null!==(o=e.memoizedState),r||null===o||null!==(o=e.child.sibling)&&(null!==(i=t.firstEffect)?(t.firstEffect=o,o.nextEffect=i):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&O_.current)?Ax===wx&&(Ax=Cx):(Ax!==wx&&Ax!==Cx||(Ax=kx),0!==Rx&&null!==Sx&&(NT(Sx,_x),OT(Sx,Rx)))),(r||n)&&(t.effectTag|=4),null);case 4:return P_(),null;case 10:return JB(t),null;case 17:return hB(t.type)&&gB(),null;case 19:if(sB(O_),null===(n=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(i=n.rendering)){if(o)QA(n,!1);else if(Ax!==wx||null!==e&&0!=(64&e.effectTag))for(i=t.child;null!==i;){if(null!==(e=L_(i))){for(t.effectTag|=64,QA(n,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)i=r,(o=n).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=i,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,i=e.dependencies,o.dependencies=null===i?null:{expirationTime:i.expirationTime,firstContext:i.firstContext,responders:i.responders}),n=n.sibling;return cB(O_,1&O_.current|2),t.child}i=i.sibling}}else{if(!o)if(null!==(e=L_(i))){if(t.effectTag|=64,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),QA(n,!0),null===n.tail&&"hidden"===n.tailMode&&!i.alternate)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*UB()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,o=!0,QA(n,!1),t.expirationTime=t.childExpirationTime=r-1);n.isBackwards?(i.sibling=t.child,t.child=i):(null!==(r=n.last)?r.sibling=i:t.child=i,n.last=i)}return null!==n.tail?(0===n.tailExpiration&&(n.tailExpiration=UB()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=UB(),r.sibling=null,t=O_.current,cB(O_,o?1&t|2:1&t),r):null}throw Error(ow(156,t.tag))}function XA(e){switch(e.tag){case 1:hB(e.type)&&gB();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(P_(),sB(dB),sB(lB),0!=(64&(t=e.effectTag)))throw Error(ow(285));return e.effectTag=-4097&t|64,e;case 5:return N_(e),null;case 13:return sB(O_),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return sB(O_),null;case 4:return P_(),null;case 10:return JB(e),null;default:return null}}function YA(e,t){return{value:e,source:t,stack:gC(t)}}UA=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},jA=function(e,t,r,n,o){var i=e.memoizedProps;if(i!==n){var a,s,c=t.stateNode;switch(T_(__.current),e=null,r){case"input":i=wC(c,i),n=wC(c,n),e=[];break;case"option":i=_C(c,i),n=_C(c,n),e=[];break;case"select":i=bm({},i,{value:void 0}),n=bm({},n,{value:void 0}),e=[];break;case"textarea":i=xC(c,i),n=xC(c,n),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(c.onclick=sE)}for(a in nE(r,n),r=null,i)if(!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&null!=i[a])if("style"===a)for(s in c=i[a])c.hasOwnProperty(s)&&(r||(r={}),r[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(kw.hasOwnProperty(a)?e||(e=[]):(e=e||[]).push(a,null));for(a in n){var u=n[a];if(c=null!=i?i[a]:void 0,n.hasOwnProperty(a)&&u!==c&&(null!=u||null!=c))if("style"===a)if(c){for(s in c)!c.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&c[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(e||(e=[]),e.push(a,r)),r=u;else"dangerouslySetInnerHTML"===a?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(a,u)):"children"===a?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(a,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(kw.hasOwnProperty(a)?(null!=u&&aE(o,a),e||c===u||(e=[])):(e=e||[]).push(a,u))}r&&(e=e||[]).push("style",r),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},FA=function(e,t,r,n){r!==n&&(t.effectTag|=4)};var $A="function"==typeof WeakSet?WeakSet:Set;function ZA(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=gC(r)),null!==r&&hC(r.type),t=t.value,null!==e&&1===e.tag&&hC(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function JA(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){yT(e,t)}else t.current=null}function ex(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:QB(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(ow(163))}function tx(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.destroy;r.destroy=void 0,void 0!==n&&n()}r=r.next}while(r!==t)}}function rx(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function nx(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:return void rx(3,r);case 1:if(e=r.stateNode,4&r.effectTag)if(null===t)e.componentDidMount();else{var n=r.elementType===r.type?t.memoizedProps:QB(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&l_(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}l_(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.effectTag&&mE(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&Lk(r)))));case 19:case 17:case 20:case 21:return}throw Error(ow(163))}function ox(e,t,r){switch("function"==typeof kT&&kT(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;VB(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var o=t;try{r()}catch(e){yT(o,e)}}e=e.next}while(e!==n)}))}break;case 1:JA(t),"function"==typeof(r=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){yT(e,t)}}(t,r);break;case 5:JA(t);break;case 4:lx(e,t,r)}}function ix(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ix(t)}function ax(e){return 5===e.tag||3===e.tag||4===e.tag}function sx(e){e:{for(var t=e.return;null!==t;){if(ax(t)){var r=t;break e}t=t.return}throw Error(ow(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(ow(161))}16&r.effectTag&&(jC(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||ax(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}n?cx(e,r,t):ux(e,r,t)}function cx(e,t,r){var n=e.tag,o=5===n||6===n;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=sE));else if(4!==n&&null!==(e=e.child))for(cx(e,t,r),e=e.sibling;null!==e;)cx(e,t,r),e=e.sibling}function ux(e,t,r){var n=e.tag,o=5===n||6===n;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ux(e,t,r),e=e.sibling;null!==e;)ux(e,t,r),e=e.sibling}function lx(e,t,r){for(var n,o,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(ow(160));switch(n=a.stateNode,a.tag){case 5:o=!1;break e;case 3:case 4:n=n.containerInfo,o=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var s=e,c=i,u=r,l=c;;)if(ox(s,l,u),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===c)break e;for(;null===l.sibling;){if(null===l.return||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(s=n,c=i.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(ox(e,i,r),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function dx(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void tx(3,t);case 1:return;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,o=null!==e?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[SE]=n,"input"===e&&"radio"===n.type&&null!=n.name&&kC(r,n),oE(e,o),t=oE(e,n),o=0;o<i.length;o+=2){var a=i[o],s=i[o+1];"style"===a?tE(r,s):"dangerouslySetInnerHTML"===a?UC(r,s):"children"===a?jC(r,s):Xw(r,a,s,t)}switch(e){case"input":EC(r,n);break;case"textarea":IC(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?AC(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?AC(r,!!n.multiple,n.defaultValue,!0):AC(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(ow(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Lk(t.containerInfo)));case 12:return;case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Ox=UB()),null!==r)e:for(e=r;;){if(5===e.tag)i=e.stateNode,n?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=eE("display",o));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void fx(t);case 19:return void fx(t);case 17:return}throw Error(ow(163))}function fx(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new $A),t.forEach((function(t){var n=wT.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var px="function"==typeof WeakMap?WeakMap:Map;function hx(e,t,r){(r=a_(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Mx||(Mx=!0,Dx=n),ZA(e,t)},r}function gx(e,t,r){(r=a_(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return ZA(e,t),n(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Ux?Ux=new Set([this]):Ux.add(this),ZA(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var mx,vx=Math.ceil,yx=Gw.ReactCurrentDispatcher,bx=Gw.ReactCurrentOwner,wx=0,Cx=3,kx=4,Ex=0,Sx=null,Bx=null,_x=0,Ax=wx,xx=null,Tx=1073741823,Ix=1073741823,Px=null,Rx=0,Nx=!1,Ox=0,Lx=null,Mx=!1,Dx=null,Ux=null,jx=!1,Fx=null,Vx=90,zx=null,Kx=0,Hx=null,qx=0;function Wx(){return 0!=(48&Ex)?1073741821-(UB()/10|0):0!==qx?qx:qx=1073741821-(UB()/10|0)}function Qx(e,t,r){if(0==(2&(t=t.mode)))return 1073741823;var n=jB();if(0==(4&t))return 99===n?1073741823:1073741822;if(0!=(16&Ex))return _x;if(null!==r)e=WB(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=WB(e,150,100);break;case 97:case 96:e=WB(e,5e3,250);break;case 95:e=2;break;default:throw Error(ow(326))}return null!==Sx&&e===_x&&--e,e}function Gx(e,t){if(50<Kx)throw Kx=0,Hx=null,Error(ow(185));if(null!==(e=Xx(e,t))){var r=jB();1073741823===t?0!=(8&Ex)&&0==(48&Ex)?Jx(e):($x(e),0===Ex&&HB()):$x(e),0==(4&Ex)||98!==r&&99!==r||(null===zx?zx=new Map([[e,t]]):(void 0===(r=zx.get(e))||r>t)&&zx.set(e,t))}}function Xx(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,o=null;if(null===n&&3===e.tag)o=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){o=n.stateNode;break}n=n.return}return null!==o&&(Sx===o&&(aT(t),Ax===kx&&NT(o,_x)),OT(o,t)),o}function Yx(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!RT(e,t=e.firstPendingTime))return t;var r=e.lastPingedTime;return 2>=(e=r>(e=e.nextKnownPendingLevel)?r:e)&&t!==e?0:e}function $x(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=KB(Jx.bind(null,e));else{var t=Yx(e),r=e.callbackNode;if(0===t)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=Wx();if(1073741823===t?n=99:1===t||2===t?n=95:n=0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==r){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=n)return;r!==PB&&kB(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?KB(Jx.bind(null,e)):zB(n,Zx.bind(null,e),{timeout:10*(1073741821-t)-UB()}),e.callbackNode=t}}}function Zx(e,t){if(qx=0,t)return LT(e,t=Wx()),$x(e),null;var r=Yx(e);if(0!==r){if(t=e.callbackNode,0!=(48&Ex))throw Error(ow(327));if(gT(),e===Sx&&r===_x||rT(e,r),null!==Bx){var n=Ex;Ex|=16;for(var o=oT();;)try{cT();break}catch(t){nT(e,t)}if(ZB(),Ex=n,yx.current=o,1===Ax)throw t=xx,rT(e,r),NT(e,r),$x(e),t;if(null===Bx)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=Ax,Sx=null,n){case wx:case 1:throw Error(ow(345));case 2:LT(e,2<r?2:r);break;case Cx:if(NT(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dT(o)),1073741823===Tx&&10<(o=Ox+500-UB())){if(Nx){var i=e.lastPingedTime;if(0===i||i>=r){e.lastPingedTime=r,rT(e,r);break}}if(0!==(i=Yx(e))&&i!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=yE(fT.bind(null,e),o);break}fT(e);break;case kx:if(NT(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dT(o)),Nx&&(0===(o=e.lastPingedTime)||o>=r)){e.lastPingedTime=r,rT(e,r);break}if(0!==(o=Yx(e))&&o!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}if(1073741823!==Ix?n=10*(1073741821-Ix)-UB():1073741823===Tx?n=0:(n=10*(1073741821-Tx)-5e3,0>(n=(o=UB())-n)&&(n=0),(r=10*(1073741821-r)-o)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*vx(n/1960))-n)&&(n=r)),10<n){e.timeoutHandle=yE(fT.bind(null,e),n);break}fT(e);break;case 5:if(1073741823!==Tx&&null!==Px){i=Tx;var a=Px;if(0>=(n=0|a.busyMinDurationMs)?n=0:(o=0|a.busyDelayMs,n=(i=UB()-(10*(1073741821-i)-(0|a.timeoutMs||5e3)))<=o?0:o+n-i),10<n){NT(e,r),e.timeoutHandle=yE(fT.bind(null,e),n);break}}fT(e);break;default:throw Error(ow(329))}if($x(e),e.callbackNode===t)return Zx.bind(null,e)}}return null}function Jx(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Ex))throw Error(ow(327));if(gT(),e===Sx&&t===_x||rT(e,t),null!==Bx){var r=Ex;Ex|=16;for(var n=oT();;)try{sT();break}catch(t){nT(e,t)}if(ZB(),Ex=r,yx.current=n,1===Ax)throw r=xx,rT(e,t),NT(e,t),$x(e),r;if(null!==Bx)throw Error(ow(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Sx=null,fT(e),$x(e)}return null}function eT(e,t){var r=Ex;Ex|=1;try{return e(t)}finally{0===(Ex=r)&&HB()}}function tT(e,t){var r=Ex;Ex&=-2,Ex|=8;try{return e(t)}finally{0===(Ex=r)&&HB()}}function rT(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,bE(r)),null!==Bx)for(r=Bx.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&gB();break;case 3:P_(),sB(dB),sB(lB);break;case 5:N_(n);break;case 4:P_();break;case 13:case 19:sB(O_);break;case 10:JB(n)}r=r.return}Sx=e,Bx=_T(e.current,null),_x=t,Ax=wx,xx=null,Ix=Tx=1073741823,Px=null,Rx=0,Nx=!1}function nT(e,t){for(;;){try{if(ZB(),D_.current=hA,K_)for(var r=F_.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(j_=0,z_=V_=F_=null,K_=!1,null===Bx||null===Bx.return)return Ax=1,xx=t,Bx=null;e:{var o=e,i=Bx.return,a=Bx,s=t;if(t=_x,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!=(1&O_.current),d=i;do{var f;if(f=13===d.tag){var p=d.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var h=d.memoizedProps;f=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!l)}}if(f){var g=d.updateQueue;if(null===g){var m=new Set;m.add(c),d.updateQueue=m}else g.add(c);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=a_(1073741823,null);v.tag=2,s_(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new px,s=new Set,y.set(c,s)):void 0===(s=y.get(c))&&(s=new Set,y.set(c,s)),!s.has(a)){s.add(a);var b=bT.bind(null,o,c,a);c.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((hC(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+gC(a))}5!==Ax&&(Ax=2),s=YA(s,a),d=i;do{switch(d.tag){case 3:c=s,d.effectTag|=4096,d.expirationTime=t,c_(d,hx(d,c,t));break e;case 1:c=s;var w=d.type,C=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==C&&"function"==typeof C.componentDidCatch&&(null===Ux||!Ux.has(C)))){d.effectTag|=4096,d.expirationTime=t,c_(d,gx(d,c,t));break e}}d=d.return}while(null!==d)}Bx=lT(Bx)}catch(e){t=e;continue}break}}function oT(){var e=yx.current;return yx.current=hA,null===e?hA:e}function iT(e,t){e<Tx&&2<e&&(Tx=e),null!==t&&e<Ix&&2<e&&(Ix=e,Px=t)}function aT(e){e>Rx&&(Rx=e)}function sT(){for(;null!==Bx;)Bx=uT(Bx)}function cT(){for(;null!==Bx&&!RB();)Bx=uT(Bx)}function uT(e){var t=mx(e.alternate,e,_x);return e.memoizedProps=e.pendingProps,null===t&&(t=lT(e)),bx.current=null,t}function lT(e){Bx=e;do{var t=Bx.alternate;if(e=Bx.return,0==(2048&Bx.effectTag)){if(t=GA(t,Bx,_x),1===_x||1!==Bx.childExpirationTime){for(var r=0,n=Bx.child;null!==n;){var o=n.expirationTime,i=n.childExpirationTime;o>r&&(r=o),i>r&&(r=i),n=n.sibling}Bx.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Bx.firstEffect),null!==Bx.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Bx.firstEffect),e.lastEffect=Bx.lastEffect),1<Bx.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Bx:e.firstEffect=Bx,e.lastEffect=Bx))}else{if(null!==(t=XA(Bx)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Bx.sibling))return t;Bx=e}while(null!==Bx);return Ax===wx&&(Ax=5),null}function dT(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function fT(e){var t=jB();return VB(99,pT.bind(null,e,t)),null}function pT(e,t){do{gT()}while(null!==Fx);if(0!=(48&Ex))throw Error(ow(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw Error(ow(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=dT(r);if(e.firstPendingTime=o,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Sx&&(Bx=Sx=null,_x=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,o=r.firstEffect):o=r:o=r.firstEffect,null!==o){var i=Ex;Ex|=32,bx.current=null,hE=qk;var a=fE();if(pE(a)){if("selectionStart"in a)var s={start:a.selectionStart,end:a.selectionEnd};else e:{var c=(s=(s=a.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var u=c.anchorOffset,l=c.focusNode;c=c.focusOffset;try{s.nodeType,l.nodeType}catch(e){s=null;break e}var d=0,f=-1,p=-1,h=0,g=0,m=a,v=null;t:for(;;){for(var y;m!==s||0!==u&&3!==m.nodeType||(f=d+u),m!==l||0!==c&&3!==m.nodeType||(p=d+c),3===m.nodeType&&(d+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===a)break t;if(v===s&&++h===u&&(f=d),v===l&&++g===c&&(p=d),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}s=-1===f||-1===p?null:{start:f,end:p}}else s=null}s=s||{start:0,end:0}}else s=null;gE={activeElementDetached:null,focusedElem:a,selectionRange:s},qk=!1,Lx=o;do{try{hT()}catch(e){if(null===Lx)throw Error(ow(330));yT(Lx,e),Lx=Lx.nextEffect}}while(null!==Lx);Lx=o;do{try{for(a=e,s=t;null!==Lx;){var b=Lx.effectTag;if(16&b&&jC(Lx.stateNode,""),128&b){var w=Lx.alternate;if(null!==w){var C=w.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(1038&b){case 2:sx(Lx),Lx.effectTag&=-3;break;case 6:sx(Lx),Lx.effectTag&=-3,dx(Lx.alternate,Lx);break;case 1024:Lx.effectTag&=-1025;break;case 1028:Lx.effectTag&=-1025,dx(Lx.alternate,Lx);break;case 4:dx(Lx.alternate,Lx);break;case 8:lx(a,u=Lx,s),ix(u)}Lx=Lx.nextEffect}}catch(e){if(null===Lx)throw Error(ow(330));yT(Lx,e),Lx=Lx.nextEffect}}while(null!==Lx);if(C=gE,w=fE(),b=C.focusedElem,s=C.selectionRange,w!==b&&b&&b.ownerDocument&&dE(b.ownerDocument.documentElement,b)){null!==s&&pE(b)&&(w=s.start,void 0===(C=s.end)&&(C=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(C,b.value.length)):(C=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(C=C.getSelection(),u=b.textContent.length,a=Math.min(s.start,u),s=void 0===s.end?a:Math.min(s.end,u),!C.extend&&a>s&&(u=s,s=a,a=u),u=lE(b,a),l=lE(b,s),u&&l&&(1!==C.rangeCount||C.anchorNode!==u.node||C.anchorOffset!==u.offset||C.focusNode!==l.node||C.focusOffset!==l.offset)&&((w=w.createRange()).setStart(u.node,u.offset),C.removeAllRanges(),a>s?(C.addRange(w),C.extend(l.node,l.offset)):(w.setEnd(l.node,l.offset),C.addRange(w))))),w=[];for(C=b;C=C.parentNode;)1===C.nodeType&&w.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(C=w[b]).element.scrollLeft=C.left,C.element.scrollTop=C.top}qk=!!hE,gE=hE=null,e.current=r,Lx=o;do{try{for(b=e;null!==Lx;){var k=Lx.effectTag;if(36&k&&nx(b,Lx.alternate,Lx),128&k){w=void 0;var E=Lx.ref;if(null!==E){var S=Lx.stateNode;switch(Lx.tag){case 5:w=S;break;default:w=S}"function"==typeof E?E(w):E.current=w}}Lx=Lx.nextEffect}}catch(e){if(null===Lx)throw Error(ow(330));yT(Lx,e),Lx=Lx.nextEffect}}while(null!==Lx);Lx=null,NB(),Ex=i}else e.current=r;if(jx)jx=!1,Fx=e,Vx=t;else for(Lx=o;null!==Lx;)t=Lx.nextEffect,Lx.nextEffect=null,Lx=t;if(0===(t=e.firstPendingTime)&&(Ux=null),1073741823===t?e===Hx?Kx++:(Kx=0,Hx=e):Kx=0,"function"==typeof CT&&CT(r.stateNode,n),$x(e),Mx)throw Mx=!1,e=Dx,Dx=null,e;return 0!=(8&Ex)||HB(),null}function hT(){for(;null!==Lx;){var e=Lx.effectTag;0!=(256&e)&&ex(Lx.alternate,Lx),0==(512&e)||jx||(jx=!0,zB(97,(function(){return gT(),null}))),Lx=Lx.nextEffect}}function gT(){if(90!==Vx){var e=97<Vx?97:Vx;return Vx=90,VB(e,mT)}}function mT(){if(null===Fx)return!1;var e=Fx;if(Fx=null,0!=(48&Ex))throw Error(ow(331));var t=Ex;for(Ex|=32,e=e.current.firstEffect;null!==e;){try{var r=e;if(0!=(512&r.effectTag))switch(r.tag){case 0:case 11:case 15:case 22:tx(5,r),rx(5,r)}}catch(t){if(null===e)throw Error(ow(330));yT(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return Ex=t,HB(),!0}function vT(e,t,r){s_(e,t=hx(e,t=YA(r,t),1073741823)),null!==(e=Xx(e,1073741823))&&$x(e)}function yT(e,t){if(3===e.tag)vT(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){vT(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Ux||!Ux.has(n))){s_(r,e=gx(r,e=YA(t,e),1073741823)),null!==(r=Xx(r,1073741823))&&$x(r);break}}r=r.return}}function bT(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),Sx===e&&_x===r?Ax===kx||Ax===Cx&&1073741823===Tx&&UB()-Ox<500?rT(e,_x):Nx=!0:RT(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,$x(e)))}function wT(e,t){var r=e.stateNode;null!==r&&r.delete(t),0===(t=0)&&(t=Qx(t=Wx(),e,null)),null!==(e=Xx(e,t))&&$x(e)}mx=function(e,t,r){var n=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||dB.current)xA=!0;else{if(n<r){switch(xA=!1,t.tag){case 3:DA(t),_A();break;case 5:if(R_(t),4&t.mode&&1!==r&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:hB(t.type)&&yB(t);break;case 4:I_(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,o=t.type._context,cB(GB,o._currentValue),o._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?zA(e,t,r):(cB(O_,1&O_.current),null!==(t=WA(e,t,r))?t.sibling:null);cB(O_,1&O_.current);break;case 19:if(n=t.childExpirationTime>=r,0!=(64&e.effectTag)){if(n)return qA(e,t,r);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),cB(O_,O_.current),!n)return null}return WA(e,t,r)}xA=!1}}else xA=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=pB(t,lB.current),t_(t,r),o=W_(null,t,n,e,o,r),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hB(n)){var i=!0;yB(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o_(t);var a=n.getDerivedStateFromProps;"function"==typeof a&&p_(t,n,a,e),o.updater=h_,t.stateNode=o,o._reactInternalFiber=t,y_(t,n,e,r),t=MA(null,t,n,!0,i,r)}else t.tag=0,TA(null,t,o,r),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return BT(e)?1:0;if(null!=e){if((e=e.$$typeof)===aC)return 11;if(e===uC)return 14}return 2}(o),e=QB(o,e),i){case 0:t=OA(null,t,o,e,r);break e;case 1:t=LA(null,t,o,e,r);break e;case 11:t=IA(null,t,o,e,r);break e;case 14:t=PA(null,t,o,QB(o.type,e),n,r);break e}throw Error(ow(306,o,""))}return t;case 0:return n=t.type,o=t.pendingProps,OA(e,t,n,o=t.elementType===n?o:QB(n,o),r);case 1:return n=t.type,o=t.pendingProps,LA(e,t,n,o=t.elementType===n?o:QB(n,o),r);case 3:if(DA(t),n=t.updateQueue,null===e||null===n)throw Error(ow(282));if(n=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,i_(e,t),u_(t,n,null,r),(n=t.memoizedState.element)===o)_A(),t=WA(e,t,r);else{if((o=t.stateNode.hydrate)&&(bA=wE(t.stateNode.containerInfo.firstChild),yA=t,o=wA=!0),o)for(r=S_(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else TA(e,t,n,r),_A();t=t.child}return t;case 5:return R_(t),null===e&&EA(t),n=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,vE(n,o)?a=null:null!==i&&vE(n,i)&&(t.effectTag|=16),NA(e,t),4&t.mode&&1!==r&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(TA(e,t,a,r),t=t.child),t;case 6:return null===e&&EA(t),null;case 13:return zA(e,t,r);case 4:return I_(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=E_(t,null,n,r):TA(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,IA(e,t,n,o=t.elementType===n?o:QB(n,o),r);case 7:return TA(e,t,t.pendingProps,r),t.child;case 8:case 12:return TA(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;var s=t.type._context;if(cB(GB,s._currentValue),s._currentValue=i,null!==a)if(s=a.value,0===(i=MS(s,i)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(s,i):1073741823))){if(a.children===o.children&&!dB.current){t=WA(e,t,r);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){a=s.child;for(var u=c.firstContext;null!==u;){if(u.context===n&&0!=(u.observedBits&i)){1===s.tag&&((u=a_(r,null)).tag=2,s_(s,u)),s.expirationTime<r&&(s.expirationTime=r),null!==(u=s.alternate)&&u.expirationTime<r&&(u.expirationTime=r),e_(s.return,r),c.expirationTime<r&&(c.expirationTime=r);break}u=u.next}}else a=10===s.tag&&s.type===t.type?null:s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}TA(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=(i=t.pendingProps).children,t_(t,r),n=n(o=r_(o,i.unstable_observedBits)),t.effectTag|=1,TA(e,t,n,r),t.child;case 14:return i=QB(o=t.type,t.pendingProps),PA(e,t,o,i=QB(o.type,i),n,r);case 15:return RA(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:QB(n,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,hB(n)?(e=!0,yB(t)):e=!1,t_(t,r),m_(t,n,o),y_(t,n,o,r),MA(null,t,n,!0,e,r);case 19:return qA(e,t,r)}throw Error(ow(156,t.tag))};var CT=null,kT=null;function ET(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function ST(e,t,r,n){return new ET(e,t,r,n)}function BT(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _T(e,t){var r=e.alternate;return null===r?((r=ST(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function AT(e,t,r,n,o,i){var a=2;if(n=e,"function"==typeof e)BT(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case eC:return xT(r.children,o,i,t);case iC:a=8,o|=7;break;case tC:a=8,o|=1;break;case rC:return(e=ST(12,r,t,8|o)).elementType=rC,e.type=rC,e.expirationTime=i,e;case sC:return(e=ST(13,r,t,o)).type=sC,e.elementType=sC,e.expirationTime=i,e;case cC:return(e=ST(19,r,t,o)).elementType=cC,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case nC:a=10;break e;case oC:a=9;break e;case aC:a=11;break e;case uC:a=14;break e;case lC:a=16,n=null;break e;case dC:a=22;break e}throw Error(ow(130,null==e?e:typeof e,""))}return(t=ST(a,r,t,o)).elementType=e,t.type=n,t.expirationTime=i,t}function xT(e,t,r,n){return(e=ST(7,e,n,t)).expirationTime=r,e}function TT(e,t,r){return(e=ST(6,e,null,t)).expirationTime=r,e}function IT(e,t,r){return(t=ST(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function PT(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function RT(e,t){var r=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==r&&r>=t&&e<=t}function NT(e,t){var r=e.firstSuspendedTime,n=e.lastSuspendedTime;r<t&&(e.firstSuspendedTime=t),(n>t||0===r)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function OT(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var r=e.firstSuspendedTime;0!==r&&(t>=r?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function LT(e,t){var r=e.lastExpiredTime;(0===r||r>t)&&(e.lastExpiredTime=t)}function MT(e,t,r,n){var o=t.current,i=Wx(),a=d_.suspense;i=Qx(i,o,a);e:if(r){t:{if(ZC(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(ow(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(hB(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(ow(171))}if(1===r.tag){var c=r.type;if(hB(c)){r=vB(r,c,s);break e}}r=s}else r=uB;return null===t.context?t.context=r:t.pendingContext=r,(t=a_(i,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),s_(o,t),Gx(o,i),i}function DT(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function UT(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function jT(e,t){UT(e,t),(e=e.alternate)&&UT(e,t)}function FT(e,t,r){var n=new PT(e,t,r=null!=r&&!0===r.hydrate),o=ST(3,null,null,2===t?7:1===t?3:0);n.current=o,o.stateNode=n,o_(o),e[BE]=n.current,r&&0!==t&&function(e,t){var r=$C(t);Bk.forEach((function(e){pk(e,t,r)})),_k.forEach((function(e){pk(e,t,r)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function VT(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function zT(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=DT(a);s.call(e)}}MT(t,a,e,o)}else{if(i=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new FT(e,0,t?{hydrate:!0}:void 0)}(r,n),a=i._internalRoot,"function"==typeof o){var c=o;o=function(){var e=DT(a);c.call(e)}}tT((function(){MT(t,a,e,o)}))}return DT(a)}function KT(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Jw,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}function HT(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!VT(t))throw Error(ow(200));return KT(e,t,null,r)}FT.prototype.render=function(e){MT(e,this._internalRoot,null,null)},FT.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;MT(null,e,null,(function(){t[BE]=null}))},hk=function(e){if(13===e.tag){var t=WB(Wx(),150,100);Gx(e,t),jT(e,t)}},gk=function(e){13===e.tag&&(Gx(e,3),jT(e,3))},mk=function(e){if(13===e.tag){var t=Wx();Gx(e,t=Qx(t,e,null)),jT(e,t)}},_w=function(e,t,r){switch(t){case"input":if(EC(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=TE(n);if(!o)throw Error(ow(90));bC(n),EC(n,o)}}}break;case"textarea":IC(e,r);break;case"select":null!=(t=r.value)&&AC(e,!!r.multiple,t,!1)}},Rw=eT,Nw=function(e,t,r,n,o){var i=Ex;Ex|=4;try{return VB(98,e.bind(null,t,r,n,o))}finally{0===(Ex=i)&&HB()}},Ow=function(){0==(49&Ex)&&(function(){if(null!==zx){var e=zx;zx=null,e.forEach((function(e,t){LT(t,e),$x(t)})),HB()}}(),gT())},Lw=function(e,t){var r=Ex;Ex|=2;try{return e(t)}finally{0===(Ex=r)&&HB()}};var qT={Events:[AE,xE,TE,Sw,Cw,ME,function(e){nk(e,LE)},Iw,Pw,Yk,ak,gT,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);CT=function(e){try{t.onCommitFiberRoot(r,e,void 0,64==(64&e.current.effectTag))}catch(e){}},kT=function(e){try{t.onCommitFiberUnmount(r,e)}catch(e){}}}catch(e){}})(bm({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gw.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tk(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:_E,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"});var WT={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qT,createPortal:HT,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(ow(188));throw Error(ow(268,Object.keys(e)))}return e=null===(e=tk(t))?null:e.stateNode},flushSync:function(e,t){if(0!=(48&Ex))throw Error(ow(187));var r=Ex;Ex|=1;try{return VB(99,e.bind(null,t))}finally{Ex=r,HB()}},hydrate:function(e,t,r){if(!VT(t))throw Error(ow(200));return zT(null,e,t,!0,r)},render:function(e,t,r){if(!VT(t))throw Error(ow(200));return zT(null,e,t,!1,r)},unmountComponentAtNode:function(e){if(!VT(e))throw Error(ow(40));return!!e._reactRootContainer&&(tT((function(){zT(null,null,e,!1,(function(){e._reactRootContainer=null,e[BE]=null}))})),!0)},unstable_batchedUpdates:eT,unstable_createPortal:function(e,t){return HT(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_renderSubtreeIntoContainer:function(e,t,r,n){if(!VT(r))throw Error(ow(200));if(null==e||void 0===e._reactInternalFiber)throw Error(ow(38));return zT(e,t,r,!1,n)},version:"16.14.0"},QT=0,GT={__interactionsRef:null,__subscriberRef:null,unstable_clear:function(e){return e()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++QT},unstable_subscribe:function(){},unstable_trace:function(e,t,r){return r()},unstable_unsubscribe:function(){},unstable_wrap:function(e){return e}},XT=(r((function(e,t){})),r((function(e){e.exports=GT})),r((function(e,t){})),r((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=WT}))),YT={not_supported:{code:"not_supported",msg:{en:"Camera is not well-supported on this device/browser. Please try another one.",vi:"Camera không được hỗ trợ. Vui lòng thử trình duyệt hoặc thiết bị khác."}},camera_timeout:{code:"camera_timeout",msg:{en:"Can't access camera. Please check camera permission, try again or try another browser/device",vi:"Không thể truy cập camera trong thời gian cho phép. Vui lòng kiểm tra quyền truy cập camera, thử lại hoặc thử trên trình duyệt/thiết bị khác."}},wrong_orientation:{code:"wrong_orientation",msg:{en:"You are using landscape mode. Please rotate screen to portrait mode and retry.",vi:"Bạn đang sử dụng chế độ màn hình xoay ngang. Vui lòng quay màn hình theo chiều dọc và thực hiện lại."}},unable_to_load_model:{code:"unable_to_load_model",msg:{en:"Unable to load model on this device/browser. Please try another one.",vi:"Không thể load model. Vui lòng thử trình duyệt hoặc thiết bị khác."}},no_permission:{code:"no_permission",msg:{en:"Please grant the permission to access the camera.",vi:"Vui lòng cấp quyền để truy cập camera."}},no_face:{code:"no_face",msg:{en:"Face not found",vi:"Không tìm thấy khuôn mặt"}},partial_face:{code:"partial_face",msg:{en:"Face out of the box",vi:"Không tìm thấy toàn bộ khuôn mặt"}},multiple_faces:{code:"multiple_faces",msg:{en:"Too many faces",vi:"Quá nhiều khuôn mặt"}},face_too_small:{code:"face_too_small",msg:{en:"Face too small",vi:"Khuôn mặt quá nhỏ"}},face_too_large:{code:"face_too_large",msg:{en:"Face too large",vi:"Khuôn mặt quá to"}},face_out_of_box:{code:"face_out_of_box",msg:{en:"Face is out of box",vi:"Khuôn mặt không nằm trọn vẹn trong khung ảnh"}},liveness_too_fast:{code:"liveness_too_fast",msg:{en:"Please turn your face SLOWLY",vi:"Vui lòng quay CHẬM lại"}},liveness_terminated:{code:"liveness_terminated",msg:{en:"Please try again.",vi:"Vui lòng thực hiện lại."}},liveness_terminated_face_tracking:{code:"liveness_terminated_face_tracking",msg:{en:"You need to turn your face SLOWLY.\nPlease try again.",vi:"Bạn cần quay CHẬM lại.\nVui lòng thực hiện lại."}},liveness_terminated_no_face:{code:"liveness_terminated_no_face",msg:{en:"Your face was missing for too long.\nPlease try again.",vi:"Khuôn mặt không nằm trong khung hình.\nXin vui lòng thử lại."}},liveness_terminated_time_out:{code:"liveness_terminated_time_out",msg:{en:"You need to complete gestures as instructed within <%= x %> seconds.\nPlease try again.",vi:"Bạn cần hoàn thành động tác theo chỉ dẫn trong <%= x %> giây.\nXin vui lòng thử lại."}},card_sanity_not_good:{code:"card_sanity_not_good",msg:{en:"Card sanity not good",vi:"Card sanity chưa đạt"}},api_call_error:{code:"api_call_error",msg:{en:"Api call error",vi:"Lỗi call api"}},upload_error:{code:"upload_error",msg:{en:"Upload error",vi:"Lỗi upload"}},sanity_check_error:{code:"sanity_check_error",msg:{en:"Sanity check error",vi:"Lỗi check sanity"}},read_id_card_error:{code:"read_id_card_error",msg:{en:"Read id card error",vi:"Lỗi read id card"}},detect_id_tampering_error:{code:"detect_id_tampering_error",msg:{en:"Detect id tampering error",vi:"Lỗi detect id tampering"}},detect_id_card_error:{code:"detect_id_card_error",msg:{en:"Can't detect id card type",vi:"Không thể detect id card type"}},missing_front_id_card:{code:"missing_front_id_card",msg:{en:"Missing front id",vi:"Không tìm thấy front id"}},server_error:{code:"server_error",msg:"Server error"},client_web_setting_not_found:{code:"client_web_setting_not_found",msg:"Client Web Setting Not Found"},id_detector_validate_angle_error:{code:"id_detector_validate_angle_error",msg:{en:"Please place ID card straight, not tilted",vi:"Vui lòng đặt giấy tờ thẳng, không bị nghiêng khi chụp"}},id_detector_no_cards:{code:"id_detector_no_cards",msg:{en:"Please capture the <%= side %> side of ID card\n (occupy 50-95% of the frame)",vi:"Vui lòng chụp mặt <%= side %> của giấy tờ\n (chiếm 50-95% khung hình)"}},id_detector_card_too_small:{code:"id_detector_card_too_small",msg:{en:"Please move ID card CLOSER\n (occupy 50-95% of the frame)",vi:"Vui lòng đưa giấy tờ lại GẦN hơn\n (chiếm 50-95% khung hình)"}},id_detector_error_incomplete:{code:"id_detector_error_incomplete",msg:{en:"Please move ID card FARTHER\n (occupy 50-95% of the frame)",vi:"Vui lòng đưa giấy tờ ra XA hơn\n (chiếm 50-95% khung hình)"}},glare_detected:{code:"glare_detected",msg:{en:"Glare is detected. Please adjust the shooting angle",vi:"Ảnh bị chói / lóa. Vui lòng điều chỉnh góc chụp."}},id_detector_error_front_side_no_faces:{code:"id_detector_error_front_side_no_faces",msg:{en:"Please capture the front side of ID card",vi:"Vui lòng chụp mặt trước của giấy tờ"}},id_detector_error_front_side_multiple_faces:{code:"id_detector_error_front_side_multiple_faces",msg:{en:"Please capture the front side of one ID card only (remove other items out of the frame)",vi:"Vui lòng chụp mặt trước 1 giấy tờ duy nhất"}},id_detector_error_back_side_has_faces:{code:"id_detector_error_back_side_has_faces",msg:{en:"Please capture the back side of ID card",vi:"Vui lòng chụp mặt sau của giấy tờ"}},id_detector_error_blur:{code:"id_detector_error_blur",msg:{en:"Blurry photo detected. Please capture again for a clearer image",vi:"Ảnh bị mờ. Vui lòng chụp lại để có ảnh rõ nét hơn"}},not_frontal_face:{code:"not_frontal_face",msg:{en:"Please look straight to camera.",vi:"Vui lòng nhìn thẳng vào camera."}},not_readable:{code:"NotReadableError",msg:{en:"",vi:""}}},$T={FRONTAL:"frontal",LEFT:"left",RIGHT:"right",UP:"up",DOWN:"down"},ZT=Object.freeze({__proto__:null,ErrorDuration:{SHORT:500,LONG:1500,TERMINATE:3e3},Errors:YT,FaceDirection:$T,Mode:{ACTIVE:"active",PASSIVE:"passive"},Messages:{REMAIN_TIME:{en:"Remaining time: <%= x %> seconds",vi:"Thời gian còn lại: <%= x %> giây"}},IDCardSide:{FRONT:"front",BACK:"back"},IDCardType:{VN:"vn.national_id"},IDCardMessage:{REMAINING_TIME:{en:"Remaining time: <%= x %> seconds",vi:"Thời gian còn lại: <%= x %> giây"},TIMEOUT_INSTRUCTION:{en:"You need to take the picture within <%= x %> seconds.\nPlease try again.",vi:"Bạn cần hoàn thành việc chụp giấy tờ trong <%= x %> giây.\nVui lòng thử lại."}}});function JT(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function eI(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){JT(i,n,o,a,s,"next",e)}function s(e){JT(i,n,o,a,s,"throw",e)}a(void 0)}))}}function tI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rI(){return(rI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function nI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nI(Object(r),!0).forEach((function(t){tI(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nI(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function iI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(e,t)||sI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aI(e){return function(e){if(Array.isArray(e))return cI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||sI(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sI(e,t){if(e){if("string"==typeof e)return cI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cI(e,t):void 0}}function cI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uI(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=sI(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}var lI=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},dI=function(e,t){return e===t||e!=e&&t!=t},fI=function(e,t){for(var r=e.length;r--;)if(dI(e[r][0],t))return r;return-1},pI=Array.prototype.splice;function hI(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}hI.prototype.clear=function(){this.__data__=[],this.size=0},hI.prototype.delete=function(e){var t=this.__data__,r=fI(t,e);return!(r<0||(r==t.length-1?t.pop():pI.call(t,r,1),--this.size,0))},hI.prototype.get=function(e){var t=this.__data__,r=fI(t,e);return r<0?void 0:t[r][1]},hI.prototype.has=function(e){return fI(this.__data__,e)>-1},hI.prototype.set=function(e,t){var r=this.__data__,n=fI(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var gI=hI,mI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function vI(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var yI,bI="object"==Gg(mI)&&mI&&mI.Object===Object&&mI,wI="object"==("undefined"==typeof self?"undefined":Gg(self))&&self&&self.Object===Object&&self,CI=bI||wI||Function("return this")(),kI=CI.Symbol,EI=Object.prototype,SI=EI.hasOwnProperty,BI=EI.toString,_I=kI?kI.toStringTag:void 0,AI=Object.prototype.toString,xI=kI?kI.toStringTag:void 0,TI=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":xI&&xI in Object(e)?function(e){var t=SI.call(e,_I),r=e[_I];try{e[_I]=void 0;var n=!0}catch(e){}var o=BI.call(e);return n&&(t?e[_I]=r:delete e[_I]),o}(e):function(e){return AI.call(e)}(e)},II=function(e){var t=Gg(e);return null!=e&&("object"==t||"function"==t)},PI=function(e){if(!II(e))return!1;var t=TI(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},RI=CI["__core-js_shared__"],NI=(yI=/[^.]+$/.exec(RI&&RI.keys&&RI.keys.IE_PROTO||""))?"Symbol(src)_1."+yI:"",OI=Function.prototype.toString,LI=function(e){if(null!=e){try{return OI.call(e)}catch(e){}try{return e+""}catch(e){}}return""},MI=/^\[object .+?Constructor\]$/,DI=Function.prototype,UI=Object.prototype,jI=DI.toString,FI=UI.hasOwnProperty,VI=RegExp("^"+jI.call(FI).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zI=function(e){return!(!II(e)||function(e){return!!NI&&NI in e}(e))&&(PI(e)?VI:MI).test(LI(e))},KI=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return zI(r)?r:void 0},HI=KI(CI,"Map"),qI=KI(Object,"create"),WI=Object.prototype.hasOwnProperty,QI=Object.prototype.hasOwnProperty;function GI(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}GI.prototype.clear=function(){this.__data__=qI?qI(null):{},this.size=0},GI.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},GI.prototype.get=function(e){var t=this.__data__;if(qI){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return WI.call(t,e)?t[e]:void 0},GI.prototype.has=function(e){var t=this.__data__;return qI?void 0!==t[e]:QI.call(t,e)},GI.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qI&&void 0===t?"__lodash_hash_undefined__":t,this};var XI=GI,YI=function(e,t){var r=e.__data__;return function(e){var t=Gg(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map};function $I(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$I.prototype.clear=function(){this.size=0,this.__data__={hash:new XI,map:new(HI||gI),string:new XI}},$I.prototype.delete=function(e){var t=YI(this,e).delete(e);return this.size-=t?1:0,t},$I.prototype.get=function(e){return YI(this,e).get(e)},$I.prototype.has=function(e){return YI(this,e).has(e)},$I.prototype.set=function(e,t){var r=YI(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ZI=$I;function JI(e){var t=this.__data__=new gI(e);this.size=t.size}JI.prototype.clear=function(){this.__data__=new gI,this.size=0},JI.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},JI.prototype.get=function(e){return this.__data__.get(e)},JI.prototype.has=function(e){return this.__data__.has(e)},JI.prototype.set=function(e,t){var r=this.__data__;if(r instanceof gI){var n=r.__data__;if(!HI||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ZI(n)}return r.set(e,t),this.size=r.size,this};var eP=JI,tP=function(){try{var e=KI(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),rP=function(e,t,r){"__proto__"==t&&tP?tP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},nP=Object.prototype.hasOwnProperty,oP=function(e,t,r){var n=e[t];nP.call(e,t)&&dI(n,r)&&(void 0!==r||t in e)||rP(e,t,r)},iP=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?rP(r,s,c):oP(r,s,c)}return r},aP=function(e){return null!=e&&"object"==Gg(e)},sP=function(e){return aP(e)&&"[object Arguments]"==TI(e)},cP=Object.prototype,uP=cP.hasOwnProperty,lP=cP.propertyIsEnumerable,dP=sP(function(){return arguments}())?sP:function(e){return aP(e)&&uP.call(e,"callee")&&!lP.call(e,"callee")},fP=Array.isArray,pP=function(){return!1},hP=vI((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?CI.Buffer:void 0,i=(o?o.isBuffer:void 0)||pP;e.exports=i})),gP=/^(?:0|[1-9]\d*)$/,mP=function(e,t){var r=Gg(e);return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&gP.test(e))&&e>-1&&e%1==0&&e<t},vP=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},yP={};yP["[object Float32Array]"]=yP["[object Float64Array]"]=yP["[object Int8Array]"]=yP["[object Int16Array]"]=yP["[object Int32Array]"]=yP["[object Uint8Array]"]=yP["[object Uint8ClampedArray]"]=yP["[object Uint16Array]"]=yP["[object Uint32Array]"]=!0,yP["[object Arguments]"]=yP["[object Array]"]=yP["[object ArrayBuffer]"]=yP["[object Boolean]"]=yP["[object DataView]"]=yP["[object Date]"]=yP["[object Error]"]=yP["[object Function]"]=yP["[object Map]"]=yP["[object Number]"]=yP["[object Object]"]=yP["[object RegExp]"]=yP["[object Set]"]=yP["[object String]"]=yP["[object WeakMap]"]=!1;var bP=function(e){return function(t){return e(t)}},wP=vI((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&bI.process,i=function(){try{return n&&n.require&&n.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i})),CP=wP&&wP.isTypedArray,kP=CP?bP(CP):function(e){return aP(e)&&vP(e.length)&&!!yP[TI(e)]},EP=Object.prototype.hasOwnProperty,SP=function(e,t){var r=fP(e),n=!r&&dP(e),o=!r&&!n&&hP(e),i=!r&&!n&&!o&&kP(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!EP.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||mP(u,c))||s.push(u);return s},BP=Object.prototype,_P=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||BP)},AP=function(e,t){return function(r){return e(t(r))}},xP=AP(Object.keys,Object),TP=Object.prototype.hasOwnProperty,IP=function(e){return null!=e&&vP(e.length)&&!PI(e)},PP=function(e){return IP(e)?SP(e):function(e){if(!_P(e))return xP(e);var t=[];for(var r in Object(e))TP.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},RP=Object.prototype.hasOwnProperty,NP=function(e){if(!II(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=_P(e),r=[];for(var n in e)("constructor"!=n||!t&&RP.call(e,n))&&r.push(n);return r},OP=function(e){return IP(e)?SP(e,!0):NP(e)},LP=vI((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?CI.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}})),MP=function(){return[]},DP=Object.prototype.propertyIsEnumerable,UP=Object.getOwnPropertySymbols,jP=UP?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(UP(e),(function(t){return DP.call(e,t)})))}:MP,FP=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},VP=AP(Object.getPrototypeOf,Object),zP=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)FP(t,jP(e)),e=VP(e);return t}:MP,KP=function(e,t,r){var n=t(e);return fP(e)?n:FP(n,r(e))},HP=function(e){return KP(e,PP,jP)},qP=function(e){return KP(e,OP,zP)},WP=KI(CI,"DataView"),QP=KI(CI,"Promise"),GP=KI(CI,"Set"),XP=KI(CI,"WeakMap"),YP=LI(WP),$P=LI(HI),ZP=LI(QP),JP=LI(GP),eR=LI(XP),tR=TI;(WP&&"[object DataView]"!=tR(new WP(new ArrayBuffer(1)))||HI&&"[object Map]"!=tR(new HI)||QP&&"[object Promise]"!=tR(QP.resolve())||GP&&"[object Set]"!=tR(new GP)||XP&&"[object WeakMap]"!=tR(new XP))&&(tR=function(e){var t=TI(e),r="[object Object]"==t?e.constructor:void 0,n=r?LI(r):"";if(n)switch(n){case YP:return"[object DataView]";case $P:return"[object Map]";case ZP:return"[object Promise]";case JP:return"[object Set]";case eR:return"[object WeakMap]"}return t});var rR=tR,nR=Object.prototype.hasOwnProperty,oR=CI.Uint8Array,iR=function(e){var t=new e.constructor(e.byteLength);return new oR(t).set(new oR(e)),t},aR=/\w*$/,sR=kI?kI.prototype:void 0,cR=sR?sR.valueOf:void 0,uR=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return iR(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return function(e,t){var r=t?iR(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?iR(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,aR.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new n;case"[object Symbol]":return function(e){return cR?Object(cR.call(e)):{}}(e)}},lR=Object.create,dR=function(){function e(){}return function(t){if(!II(t))return{};if(lR)return lR(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),fR=wP&&wP.isMap,pR=fR?bP(fR):function(e){return aP(e)&&"[object Map]"==rR(e)},hR=wP&&wP.isSet,gR=hR?bP(hR):function(e){return aP(e)&&"[object Set]"==rR(e)},mR={};mR["[object Arguments]"]=mR["[object Array]"]=mR["[object ArrayBuffer]"]=mR["[object DataView]"]=mR["[object Boolean]"]=mR["[object Date]"]=mR["[object Float32Array]"]=mR["[object Float64Array]"]=mR["[object Int8Array]"]=mR["[object Int16Array]"]=mR["[object Int32Array]"]=mR["[object Map]"]=mR["[object Number]"]=mR["[object Object]"]=mR["[object RegExp]"]=mR["[object Set]"]=mR["[object String]"]=mR["[object Symbol]"]=mR["[object Uint8Array]"]=mR["[object Uint8ClampedArray]"]=mR["[object Uint16Array]"]=mR["[object Uint32Array]"]=!0,mR["[object Error]"]=mR["[object Function]"]=mR["[object WeakMap]"]=!1;var vR=function e(t,r,n,o,i,a){var s,c=1&r,u=2&r,l=4&r;if(n&&(s=i?n(t,o,i,a):n(t)),void 0!==s)return s;if(!II(t))return t;var d=fP(t);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&nR.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!c)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(t,s)}else{var f=rR(t),p="[object Function]"==f||"[object GeneratorFunction]"==f;if(hP(t))return LP(t,c);if("[object Object]"==f||"[object Arguments]"==f||p&&!i){if(s=u||p?{}:function(e){return"function"!=typeof e.constructor||_P(e)?{}:dR(VP(e))}(t),!c)return u?function(e,t){return iP(e,zP(e),t)}(t,function(e,t){return e&&iP(t,OP(t),e)}(s,t)):function(e,t){return iP(e,jP(e),t)}(t,function(e,t){return e&&iP(t,PP(t),e)}(s,t))}else{if(!mR[f])return i?t:{};s=uR(t,f,c)}}a||(a=new eP);var h=a.get(t);if(h)return h;a.set(t,s),gR(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,a))})):pR(t)&&t.forEach((function(o,i){s.set(i,e(o,r,n,i,t,a))}));var g=d?void 0:(l?u?qP:HP:u?OP:PP)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(g||t,(function(o,i){g&&(o=t[i=o]),oP(s,i,e(o,r,n,i,t,a))})),s},yR=function(e){return"symbol"==Gg(e)||aP(e)&&"[object Symbol]"==TI(e)},bR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wR=/^\w*$/;function CR(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(CR.Cache||ZI),r}CR.Cache=ZI;var kR=CR,ER=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,SR=/\\(\\)?/g,BR=function(e){var t=kR((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ER,(function(e,r,n,o){t.push(n?o.replace(SR,"$1"):r||e)})),t}),(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}(),_R=kI?kI.prototype:void 0,AR=_R?_R.toString:void 0,xR=function e(t){if("string"==typeof t)return t;if(fP(t))return lI(t,e)+"";if(yR(t))return AR?AR.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},TR=function(e){return null==e?"":xR(e)},IR=function(e,t){return fP(e)?e:function(e,t){if(fP(e))return!1;var r=Gg(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!yR(e))||wR.test(e)||!bR.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:BR(TR(e))},PR=function(e){if("string"==typeof e||yR(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},RR=function(e,t){return t.length<2?e:function(e,t){for(var r=0,n=(t=IR(t,e)).length;null!=e&&r<n;)e=e[PR(t[r++])];return r&&r==n?e:void 0}(e,function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}(t,0,-1))},NR=function(e,t){return t=IR(t,e),null==(e=RR(e,t))||delete e[PR(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]},OR=Function.prototype,LR=Object.prototype,MR=OR.toString,DR=LR.hasOwnProperty,UR=MR.call(Object),jR=function(e){return function(e){if(!aP(e)||"[object Object]"!=TI(e))return!1;var t=VP(e);if(null===t)return!0;var r=DR.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&MR.call(r)==UR}(e)?void 0:e},FR=kI?kI.isConcatSpreadable:void 0,VR=function(e){return fP(e)||dP(e)||!!(FR&&e&&e[FR])},zR=function e(t,r,n,o,i){var a=-1,s=t.length;for(n||(n=VR),i||(i=[]);++a<s;){var c=t[a];r>0&&n(c)?r>1?e(c,r-1,n,o,i):FP(i,c):o||(i[i.length]=c)}return i},KR=function(e){return null!=e&&e.length?zR(e,1):[]},HR=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},qR=Math.max,WR=function(e){return function(){return e}},QR=tP?function(e,t){return tP(e,"toString",{configurable:!0,enumerable:!1,value:WR(t),writable:!0})}:function(e){return e},GR=Date.now,XR=function(e){var t=0,r=0;return function(){var n=GR(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(QR),YR=function(e){return XR(function(e,t,r){return t=qR(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=qR(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),HR(e,this,s)}}(e,void 0,KR),e+"")}((function(e,t){var r={};if(null==e)return r;var n=!1;t=lI(t,(function(t){return t=IR(t,e),n||(n=t.length>1),t})),iP(e,qP(e),r),n&&(r=vR(r,7,jR));for(var o=t.length;o--;)NR(r,t[o]);return r})),$R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return oI(oI({blazefaceModelUrl:"https://storage.googleapis.com/tfhub-tfjs-modules/tensorflow/tfjs-model/blazeface/1/default/1/model.json",opencvUrl:"https://unpkg.com/@tsocial/tv_web_sdk_resources@1.0.0/libs/opencv.js",idCardModelUrl:"https://unpkg.com/@tsocial/tv_web_sdk_resources@1.0.0/models/id-card/tflite/qtf16_model_224x224.tflite"},YR(e,["tfScriptUrls"])),{},{tfScriptUrls:oI({tfUrl:"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.11.0",tfBackendWasmUrl:"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm@3.11.0/dist/tf-backend-wasm.js",tfBackendCpuUrl:"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-cpu@3.11.0",tfBackendWebGlUrl:"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl@3.11.0",tfLiteUrl:"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-tflite@0.0.1-alpha.7/dist/tf-tflite.min.js",blazefaceScriptUrl:"https://cdn.jsdelivr.net/npm/@tensorflow-models/blazeface@0.0.7"},null==e?void 0:e.tfScriptUrls)})};function ZR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.resourceRoot,r=e.initCustomUrls,n=void 0===r?{}:r;return t?oI(oI({blazefaceModelUrl:"".concat(t,"models/1.0.0/blazeface/model.json"),opencvUrl:"".concat(t,"opencv/3.4.0/cv.js"),idCardModelUrl:"".concat(t,"models/1.0.0/id_card/tflite/qtf16_model_224x224.tflite")},YR(n,["tfScriptUrls"])),{},{tfScriptUrls:oI({tfUrl:"".concat(t,"tfjs/3.11.0/tf.js"),tfBackendWasmUrl:"".concat(t,"tfjs/3.11.0/backend-wasm.js"),tfBackendCpuUrl:"".concat(t,"tfjs/3.11.0/backend-cpu.js"),tfBackendWebGlUrl:"".concat(t,"tfjs/3.11.0/backend-webgl.js"),tfLiteUrl:"".concat(t,"tflite/0.0.1-alpha.7/tflite.min.js"),blazefaceScriptUrl:"".concat(t,"blazeface/0.0.7/bf.js")},null==n?void 0:n.tfScriptUrls)}):$R(n)}var JR=ov.createContext();function eN(e){var t=e.value,r=e.children,n=oI({},t),o=n.customUrls,i=n.resourceRoot;return i&&(n.customUrls=ZR({resourceRoot:i,initCustomUrls:o})),ov.createElement(JR.Provider,{value:n},r)}function tN(){var e=ov.useContext(JR);if(void 0===e)throw new Error("useSDKSettings must be used within a SDKSettingsProvider");return e}eN.propTypes={value:Tv.shape({lang:Tv.string,assetRoot:Tv.string,apiClient:Tv.shape({}),customUrls:Tv.shape({}),resourceRoot:Tv.string}).isRequired,children:Tv.node.isRequired};var rN,nN=Object.freeze({__proto__:null,SDKSettingsProvider:eN,useSDKSettings:tN}),oN=function(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}(Object.freeze({__proto__:null,default:{}})),iN=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(vI((function(e,t){!function(e,t){t=t&&t.hasOwnProperty("default")?t.default:t;var r=function(){function e(e){this.httpClient=e}return e.prototype.request=function(e,t){return this.httpClient.post("/v1/read_id_card_info_sync",e,t)},e}(),n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@@ -42,7 +42,7 @@ function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,s=o.create([0,1,2,
42
42
  * derived from CryptoJS.mode.CTR
43
43
  * Jan Hruby jhruby.web@gmail.com
44
44
  */
45
- (r=EN).mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var o=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var c=0;c<o;c++)e[t+c]^=s[c]}});return e.Decryptor=o,e}(),r.mode.CTRGladman)})),vI((function(e,t){var r,n,o;e.exports=((o=EN).mode.OFB=(n=(r=o.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}}),r.Decryptor=n,r),o.mode.OFB)})),vI((function(e,t){var r,n;e.exports=((n=EN).mode.ECB=((r=n.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),r.Decryptor=r.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),r),n.mode.ECB)})),vI((function(e,t){var r;e.exports=((r=EN).pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,o=n-r%n,i=r+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Ansix923)})),vI((function(e,t){var r;e.exports=((r=EN).pad.Iso10126={pad:function(e,t){var n=4*t,o=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(o-1)).concat(r.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126)})),vI((function(e,t){var r;e.exports=((r=EN).pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)})),vI((function(e,t){var r;e.exports=((r=EN).pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},r.pad.ZeroPadding)})),vI((function(e,t){var r;e.exports=((r=EN).pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)})),vI((function(e,t){var r,n,o,i;e.exports=(n=(r=i=EN).lib.CipherParams,o=r.enc.Hex,r.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return n.create({ciphertext:t})}},i.format.Hex)})),vI((function(e,t){var r;e.exports=(r=EN,function(){var e=r,t=e.lib.BlockCipher,n=e.algo,o=[],i=[],a=[],s=[],c=[],u=[],l=[],d=[],f=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var h=n^n<<1^n<<2^n<<3^n<<4;h=h>>>8^255&h^99,o[r]=h,i[h]=r;var g=e[r],m=e[g],v=e[m],y=257*e[h]^16843008*h;a[r]=y<<24|y>>>8,s[r]=y<<16|y>>>16,c[r]=y<<8|y>>>24,u[r]=y,y=16843009*v^65537*m^257*g^16843008*r,l[h]=y<<24|y>>>8,d[h]=y<<16|y>>>16,f[h]=y<<8|y>>>24,p[h]=y,r?(r=g^e[e[e[v^g]]],n^=e[e[n]]):r=n=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=t[a]:(u=i[a-1],a%r?r>6&&a%r==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=o[(u=u<<8|u>>>24)>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=h[a/r|0]<<24),i[a]=i[a-r]^u);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var u=i[a];else u=i[a-4];s[c]=c<4||a<=4?u:l[o[u>>>24]]^d[o[u>>>16&255]]^f[o[u>>>8&255]]^p[o[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,d,f,p,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],p=4,h=1;h<c;h++){var g=n[u>>>24]^o[l>>>16&255]^i[d>>>8&255]^a[255&f]^r[p++],m=n[l>>>24]^o[d>>>16&255]^i[f>>>8&255]^a[255&u]^r[p++],v=n[d>>>24]^o[f>>>16&255]^i[u>>>8&255]^a[255&l]^r[p++],y=n[f>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&d]^r[p++];u=g,l=m,d=v,f=y}g=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[p++],m=(s[l>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^r[p++],v=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[p++],y=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&d])^r[p++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(g)}(),r.AES)})),vI((function(e,t){var r;e.exports=(r=EN,function(){var e=r,t=e.lib,n=t.WordArray,o=t.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var u=o[i]=[],l=c[i];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+l)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+l)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(r=0;r<16;r++)d[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=u[c][((a^o[c])&l[c])>>>0];this._lBlock=a,this._rBlock=i^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function p(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=o._createHelper(d);var h=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(r)),this._des3=d.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(h)}(),r.TripleDES)})),vI((function(e,t){var r;e.exports=(r=EN,function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,s=t[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+s)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}e.RC4=t._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(a)}(),r.RC4)})),vI((function(e,t){var r;e.exports=(r=EN,function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,a=i[0],s=i[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&l,f=l<<16|65535&u;for(o[0]^=u,o[1]^=d,o[2]^=l,o[3]^=f,o[4]^=u,o[5]^=d,o[6]^=l,o[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),r.Rabbit)})),vI((function(e,t){var r;e.exports=(r=EN,function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&l,f=l<<16|65535&u;for(n[0]^=u,n[1]^=d,n[2]^=l,n[3]^=f,n[4]^=u,n[5]^=d,n[6]^=l,n[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),r.RabbitLegacy)})),vI((function(e,t){e.exports=EN}))),BN=function(e){var t=e.blob;return new Promise((function(e){var r=new FileReader;r.onload=function(t){var r=t.target.result,n=SN.MD5(SN.lib.WordArray.create(r)).toString();e(n)},r.readAsArrayBuffer(t)}))},_N=Object.freeze({__proto__:null,MD5:BN}),AN=["tracking"],xN=gN(),TN=ov.createContext(),IN={enable:!1,accessKey:"",secretKey:"",apiUrl:"",userId:""},PN=function(){var e=eI(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f,p,h,g;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.tag,n=t.event,o=t.log,i=yN(new Date),a=o,e.t0=n,e.next="sdk_mode.read_id_card_one_side"===e.t0?6:"sdk_mode.liveness"===e.t0?19:36;break;case 6:return a=pN(o),s=o.result_object,e.next=10,BN({blob:s.image.blob});case 10:if(e.t1=e.sent,a.result_object.image={blob:e.t1},delete a.result_object.recordedVideos,!s.qrScannedResult){e.next=18;break}return e.next=16,BN({blob:s.qrScannedResult.image.blob});case 16:a.result_object.qrScannedResult.image.blob=e.sent,delete a.result_object.qrScannedResult.recordedVideos;case 18:return e.abrupt("break",36);case 19:return a=pN(o),c=o.result_object,u=c.steps,l=c.frontalFaces,d=c.frontalScaledImage,f=u.map((function(e){return BN({blob:e.image.blob})})),e.next=24,Promise.all(f);case 24:return p=e.sent,u.forEach((function(e,t){a.result_object.steps[t].image.blob=p[t]})),h=l.map((function(e){return BN({blob:e})})),e.next=29,Promise.all(h);case 29:if(g=e.sent,l.forEach((function(e,t){a.result_object.frontalFaces[t]=g[t]})),!d){e.next=35;break}return e.next=34,BN({blob:d});case 34:a.result_object.frontalScaledImage=e.sent;case 35:return e.abrupt("break",36);case 36:return e.abrupt("return",{tag:r,event:n,log:oI({device_time:i},a)});case 37:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function RN(e){var t,r=e.userId;if(r)t=r;else{var n=CN("user-id");if(n)t=n;else{var o=fN();t=o,wN(o,"user-id")}}return t}function NN(e){var t=e.value,r=e.children,n=t.tracking,o=void 0===n?IN:n,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,AN),a=o.enable,s=o.accessKey,c=o.secretKey,u=o.apiUrl,l=o.userId,d=ov.useMemo((function(){return a?u&&s&&c?new iN(s,c,u):(console.error("apiUrl, accessKey and secretKey are required when tracking is enabled"),null):null}),[a,s,c,u]),f=ov.useMemo((function(){var e=RN({userId:l});return oI(oI({},xN),{},{"x-request-id":e})}),[l]),p=ov.useCallback(eI(regeneratorRuntime.mark((function e(){var t,r,n,o,i,s,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},r=t.tag,n=t.event,o=t.log,i=void 0===o?{}:o,!a){e.next=11;break}return e.prev=2,e.next=5,PN({tag:r,event:n,log:i});case 5:s=e.sent,d.httpClient.post("/v1/log_events",s,f),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:case"end":return e.stop()}}),e,null,[[2,9]])}))),[d,f,a]);return ov.createElement(TN.Provider,{value:oI(oI({},i),{},{sendEvent:p})},r)}function ON(){var e=ov.useContext(TN);return void 0===e?(console.warn("useSDKTracking must be used within a SDKTrackingProvider"),{sendEvent:function(){}}):e}NN.propTypes={value:Tv.shape({tracking:Tv.shape({enable:Tv.bool,accessKey:Tv.string,secretKey:Tv.string,apiUrl:Tv.string,userId:Tv.string})}).isRequired,children:Tv.node.isRequired};var LN=Object.freeze({__proto__:null,defaultTrackingConfig:IN,getXRequestId:RN,SDKTrackingProvider:NN,useSDKTracking:ON});function MN(e,t){return e&&!e.endsWith("/")?[e,"/",t].join(""):[e,t].join("")}function DN(){var e=tN();return null==e?void 0:e.assetRoot}var UN=Object.freeze({__proto__:null,getAsset:MN,useAssetRoot:DN,useAsset:function(e){return MN(DN(),e)}});function jN(e){return new Promise((function(t){return setTimeout(t,e)}))}var FN=Object.freeze({__proto__:null,sleep:jN}),VN=Symbol("Comlink.proxy"),zN=Symbol("Comlink.endpoint"),KN=Symbol("Comlink.releaseProxy"),HN=Symbol("Comlink.thrown"),qN=function(e){return"object"==Gg(e)&&null!==e||"function"==typeof e},WN=new Map([["proxy",{canHandle:function(e){return qN(e)&&e[VN]},serialize:function(e){var t=new MessageChannel,r=t.port1,n=t.port2;return QN(e,r),[n,[n]]},deserialize:function(e){return e.start(),XN(e)}}],["throw",{canHandle:function(e){return qN(e)&&HN in e},serialize:function(e){var t=e.value;return[t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[]]},deserialize:function(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function QN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:self;t.addEventListener("message",(function r(n){if(n&&n.data){var o,i=Object.assign({path:[]},n.data),a=i.id,s=i.type,c=i.path,u=(n.data.argumentList||[]).map(tO);try{var l=c.slice(0,-1).reduce((function(e,t){return e[t]}),e),d=c.reduce((function(e,t){return e[t]}),e);switch(s){case"GET":o=d;break;case"SET":l[c.slice(-1)[0]]=tO(n.data.value),o=!0;break;case"APPLY":o=d.apply(l,u);break;case"CONSTRUCT":o=function(e){return Object.assign(e,Jg({},VN,!0))}(am(d,dm(u)));break;case"ENDPOINT":var f=new MessageChannel,p=f.port1,h=f.port2;QN(e,h),o=function(e,t){return JN.set(e,t),e}(p,[p]);break;case"RELEASE":o=void 0;break;default:return}}catch(e){o=Jg({value:e},HN,0)}Promise.resolve(o).catch((function(e){return Jg({value:e},HN,0)})).then((function(e){var n=lm(eO(e),2),o=n[0],i=n[1];t.postMessage(Object.assign(Object.assign({},o),{id:a}),i),"RELEASE"===s&&(t.removeEventListener("message",r),GN(t))}))}})),t.start&&t.start()}function GN(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function XN(e,t){return $N(e,[],t)}function YN(e){if(e)throw new Error("Proxy has been released and is not useable")}function $N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=!1,o=new Proxy(r,{get:function(r,i){if(YN(n),i===KN)return function(){return rO(e,{type:"RELEASE",path:t.map((function(e){return e.toString()}))}).then((function(){GN(e),n=!0}))};if("then"===i){if(0===t.length)return{then:function(){return o}};var a=rO(e,{type:"GET",path:t.map((function(e){return e.toString()}))}).then(tO);return a.then.bind(a)}return $N(e,[].concat(dm(t),[i]))},set:function(r,o,i){YN(n);var a=lm(eO(i),2),s=a[0],c=a[1];return rO(e,{type:"SET",path:[].concat(dm(t),[o]).map((function(e){return e.toString()})),value:s},c).then(tO)},apply:function(r,o,i){YN(n);var a=t[t.length-1];if(a===zN)return rO(e,{type:"ENDPOINT"}).then(tO);if("bind"===a)return $N(e,t.slice(0,-1));var s=lm(ZN(i),2),c=s[0],u=s[1];return rO(e,{type:"APPLY",path:t.map((function(e){return e.toString()})),argumentList:c},u).then(tO)},construct:function(r,o){YN(n);var i=lm(ZN(o),2),a=i[0],s=i[1];return rO(e,{type:"CONSTRUCT",path:t.map((function(e){return e.toString()})),argumentList:a},s).then(tO)}});return o}function ZN(e){var t,r=e.map(eO);return[r.map((function(e){return e[0]})),(t=r.map((function(e){return e[1]})),Array.prototype.concat.apply([],t))]}var JN=new WeakMap;function eO(e){var t,r=hm(WN);try{for(r.s();!(t=r.n()).done;){var n=lm(t.value,2),o=n[0],i=n[1];if(i.canHandle(e)){var a=lm(i.serialize(e),2);return[{type:"HANDLER",name:o,value:a[0]},a[1]]}}}catch(e){r.e(e)}finally{r.f()}return[{type:"RAW",value:e},JN.get(e)||[]]}function tO(e){switch(e.type){case"HANDLER":return WN.get(e.name).deserialize(e.value);case"RAW":return e.value}}function rO(e,t,r){return new Promise((function(n){var o=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");e.addEventListener("message",(function t(r){r.data&&r.data.id&&r.data.id===o&&(e.removeEventListener("message",t),n(r.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),r)}))}var nO=function(){if(!window.Worker)return null;var e=new Blob(['const t=Symbol("Comlink.proxy"),e=Symbol("Comlink.endpoint"),r=Symbol("Comlink.releaseProxy"),n=Symbol("Comlink.thrown"),a=t=>"object"==typeof t&&null!==t||"function"==typeof t,o=new Map([["proxy",{canHandle:e=>a(e)&&e[t],serialize(t){const{port1:e,port2:r}=new MessageChannel;return i(t,e),[r,[r]]},deserialize(t){return t.start(),s(t,[],e);var e}}],["throw",{canHandle:t=>a(t)&&n in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function i(e,r=self){r.addEventListener("message",(function a(o){if(!o||!o.data)return;const{id:c,type:s,path:l}=Object.assign({path:[]},o.data),g=(o.data.argumentList||[]).map(m);let p;try{const r=l.slice(0,-1).reduce(((t,e)=>t[e]),e),n=l.reduce(((t,e)=>t[e]),e);switch(s){case"GET":p=n;break;case"SET":r[l.slice(-1)[0]]=m(o.data.value),p=!0;break;case"APPLY":p=n.apply(r,g);break;case"CONSTRUCT":p=function(e){return Object.assign(e,{[t]:!0})}(new n(...g));break;case"ENDPOINT":{const{port1:t,port2:r}=new MessageChannel;i(e,r),p=function(t,e){return f.set(t,e),t}(t,[t])}break;case"RELEASE":p=void 0;break;default:return}}catch(t){p={value:t,[n]:0}}Promise.resolve(p).catch((t=>({value:t,[n]:0}))).then((t=>{const[e,n]=h(t);r.postMessage(Object.assign(Object.assign({},e),{id:c}),n),"RELEASE"===s&&(r.removeEventListener("message",a),u(r))}))})),r.start&&r.start()}function u(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function c(t){if(t)throw new Error("Proxy has been released and is not useable")}function s(t,n=[],a=function(){}){let o=!1;const i=new Proxy(a,{get(e,a){if(c(o),a===r)return()=>g(t,{type:"RELEASE",path:n.map((t=>t.toString()))}).then((()=>{u(t),o=!0}));if("then"===a){if(0===n.length)return{then:()=>i};const e=g(t,{type:"GET",path:n.map((t=>t.toString()))}).then(m);return e.then.bind(e)}return s(t,[...n,a])},set(e,r,a){c(o);const[i,u]=h(a);return g(t,{type:"SET",path:[...n,r].map((t=>t.toString())),value:i},u).then(m)},apply(r,a,i){c(o);const u=n[n.length-1];if(u===e)return g(t,{type:"ENDPOINT"}).then(m);if("bind"===u)return s(t,n.slice(0,-1));const[f,h]=l(i);return g(t,{type:"APPLY",path:n.map((t=>t.toString())),argumentList:f},h).then(m)},construct(e,r){c(o);const[a,i]=l(r);return g(t,{type:"CONSTRUCT",path:n.map((t=>t.toString())),argumentList:a},i).then(m)}});return i}function l(t){const e=t.map(h);return[e.map((t=>t[0])),(r=e.map((t=>t[1])),Array.prototype.concat.apply([],r))];var r}const f=new WeakMap;function h(t){for(const[e,r]of o)if(r.canHandle(t)){const[n,a]=r.serialize(t);return[{type:"HANDLER",name:e,value:n},a]}return[{type:"RAW",value:t},f.get(t)||[]]}function m(t){switch(t.type){case"HANDLER":return o.get(t.name).deserialize(t.value);case"RAW":return t.value}}function g(t,e,r){return new Promise((n=>{const a=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.addEventListener("message",(function e(r){r.data&&r.data.id&&r.data.id===a&&(t.removeEventListener("message",e),n(r.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:a},e),r)}))}var p=[[0,1,0],[1,-4,1],[0,1,0]];function d(t,e,r,n){return t[4*(r*e+n)]}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(a)throw o}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return b(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var E="frontal",S="left",w="right",M="up",k="down",_=0,A=1,R=2;function L(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=y(t,2),a=n[0],o=n[1],i=y(e,2),u=i[0],c=i[1],s=[a[0],o[0]],l=[a[1],o[1]];return s[0]+r<=u[0]&&c[0]<=s[1]-r&&l[0]+r<=u[1]&&c[1]<=l[1]-.8*r?R:s[0]<=u[0]||c[0]<=s[1]||l[0]<=u[1]||c[1]<=l[1]?A:_}var P={code:"no_face",msg:{en:"Face not found",vi:"Không tìm thấy khuôn mặt"}},O={code:"partial_face",msg:{en:"Face out of the box",vi:"Không tìm thấy toàn bộ khuôn mặt"}},j={code:"multiple_faces",msg:{en:"Too many faces",vi:"Quá nhiều khuôn mặt"}},T={code:"face_too_small",msg:{en:"Face too small",vi:"Khuôn mặt quá nhỏ"}},F={code:"face_too_large",msg:{en:"Face too large",vi:"Khuôn mặt quá to"}},x={code:"face_out_of_box",msg:{en:"Face is out of box",vi:"Khuôn mặt không nằm trọn vẹn trong khung ảnh"}};function C(t){return Math.pow(Math.pow(t[0],2)+Math.pow(t[1],2),.5)}function N(t,e){return[t[0]-e[0],t[1]-e[1]]}function z(t,e,r,n){var a=r*(4*e)+4*n;return{r:t[a],g:t[a+1],b:t[a+2]}}i({calculateBlurScoreFunc:function(t){for(var e=t.data,r=t.reducedWidth,n=t.reducedHeight,a=0;a<e.length;a+=4){var o=(e[a]+e[a+1]+e[a+2])/3;e[a]=o}for(var i=0,u=0,c=n-1,s=r-1,l=1;l<c;l++)for(var f=1;f<s;f++){var h=p[0][0]*d(e,r,f-1,l-1)+p[0][1]*d(e,r,f,l-1)+p[0][2]*d(e,r,f+1,l-1)+p[1][0]*d(e,r,f-1,l)+p[1][1]*d(e,r,f,l)+p[1][2]*d(e,r,f+1,l)+p[2][0]*d(e,r,f-1,l+1)+p[2][1]*d(e,r,f,l+1)+p[2][2]*d(e,r,f+1,l+1);(h=Math.abs(h))>25&&i++,h>15&&h<25&&u++}var m=0;return i+u!==0&&(m=i/(i+u)),m},calculateFaceDirectionFunc:function(t){var e=t.landmarks,r=t.getPerfectFrontal,n=function(t){var e,r,n,a,o,i,u,c=y(t,4),s=c[0],l=c[1],f=c[2],h=c[3],m=N(l,s),g=C(m),p=(a=l,e=[(n=s)[0]+a[0],n[1]+a[1]],r=2,[e[0]/r,e[1]/r]),d=N(f,p),v=C(N(h,f)),b=N(h,p),E=C(b),S=(d[0]*b[0]+d[1]*b[1])/E,w=v/E;if(g>.5*E)o=(d[0]*m[0]+d[1]*m[1])/g/g;else{var M=C(N(d,function(t,e){return[t[0]*e,t[1]*e]}(b,S/E)));u=b,o=((i=d)[0]*u[1]-u[0]*i[1]>=0?1:-1)*M/g}return{left_right_score:o,up_down_score:w}}(e),a=n.left_right_score,o=n.up_down_score,i=y(e,3),u=i[0],c=i[1],s=i[2],l=c[0]-s[0],f=u[0]-s[0],h=r?.1:.3,m=o>.7,g=o<.42,p=a>=.35&&a<=.6,d=a<=-.35&&a>=-.6;return o>=.42&&o<=.7&&a>-h&&a<h&&l*f<0?{gesture:E,leftRightScore:a}:m&&!d&&!p?{gesture:M,leftRightScore:a}:g&&!d&&!p?{gesture:k,leftRightScore:a}:p&&!m&&!g?{gesture:w,leftRightScore:a}:d&&!m&&!g?{gesture:S,leftRightScore:a}:null},validatePredictionsFunc:function(t){var e,r,n,a,o,i,u,c,s,l,f,h,m,g,p,d,b,E,S,w,M,k,C,N,z,H,I,D,K,G,W,U,q=t.predictions,Y=t.width,B=[[0,0],[Y,t.height]],Q=q.reduce((function(t,e){var r=e.topLeft,n=e.bottomRight,a=e.probability,o=e.landmarks;a<.9||o.length<6||function(t){var e=t.small,r=e.coords,n=e.area,a=t.big,o=a.coords,i=a.area,u=n;if(!u){var c=y(r,2),s=c[0],l=c[1];u=(l[0]-s[0])*(l[1]-s[1])}var f=i;if(!f){var h=y(o,2),m=h[0],g=h[1];f=(g[0]-m[0])*(g[1]-m[1])}return u/f}({small:{coords:[r,n]},big:{coords:B}})<=.025?t[_].push(e):t[L(B,[r,n])].push(e);return t}),(v(e={},A,[]),v(e,R,[]),v(e,_,[]),e)),X=Q[R].length,$=Q[A].length;if(0===X)r=$>0?O:P;else if(X+$>1)r=j;else{var J=n=Q[R][0],V=J.topLeft,Z=J.bottomRight,tt=(C=B,N=y([V,Z],2),z=N[0],H=N[1],I=y(C,2),D=I[0],K=I[1],G=H[0]-z[0],W=H[1]-z[1],U=K[0]-D[0],G/U<W/U?G/U:W/U);tt<.4&&(r=T),tt>.61&&(r=F),L(B,(a=n.landmarks,u=a[0],c=a[1],s=a[2],l=a[3],f=a[4],h=a[5],m=.5*(u[1]+c[1]),g=m+1.5*(m-l[1]),p=l[1]-1.2*(s[1]-l[1]),d=[u[0],c[0],s[0],l[0],f[0],h[0]],b=Math.min.apply(Math,d),E=Math.min(g,p),S=Math.max.apply(Math,d),w=Math.max(g,p),M=Math.abs(l[0]-f[0])/Math.abs(l[0]-h[0]),k=l[0]-f[0]<0&&h[0]-l[0]>.05*(S-b),l[0]-f[0]>0&&h[0]-l[0]<-.05*(S-b)?(o=.2,i=.1):k?(o=.1,i=.2):M>2||M<.5?(o=.15,i=.15):(o=.05,i=.05),[[b-o*(S-b),E],[S+i*(S-b),w]]),.05*Y)!==R&&(r=x)}return{error:r,fullFace:n}},detectGlare:function(t,e,r){return function(t,e,r){for(var n=0,a=r[1],o=r[3],i=r[0],u=r[2],c=a;c<o;c++)for(var s=i;s<u;s++){var l=z(t,e,c,s),f=l.r,h=l.g,m=l.b;f>=245&&m>=245&&h>245&&(n+=1)}return n}(t,e,function(t,e){var r=Math.floor(.025*t),n=t-r,a=Math.floor(.025*e);return[r,a,n,e-a]}(e,r))/(e*r)>=.001}});']),t=URL.createObjectURL(e);return XN(new Worker(t))}(),oO=[[0,1,0],[1,-4,1],[0,1,0]];function iO(e,t,r,n){return e[4*(r*t+n)]}function aO(e){for(var t=e.data,r=e.reducedWidth,n=e.reducedHeight,o=0;o<t.length;o+=4){var i=(t[o]+t[o+1]+t[o+2])/3;t[o]=i}for(var a=0,s=0,c=n-1,u=r-1,l=1;l<c;l++)for(var d=1;d<u;d++){var f=oO[0][0]*iO(t,r,d-1,l-1)+oO[0][1]*iO(t,r,d,l-1)+oO[0][2]*iO(t,r,d+1,l-1)+oO[1][0]*iO(t,r,d-1,l)+oO[1][1]*iO(t,r,d,l)+oO[1][2]*iO(t,r,d+1,l)+oO[2][0]*iO(t,r,d-1,l+1)+oO[2][1]*iO(t,r,d,l+1)+oO[2][2]*iO(t,r,d+1,l+1);(f=Math.abs(f))>25&&a++,f>15&&f<25&&s++}var p=0;return a+s!==0&&(p=a/(a+s)),p}function sO(e){var t=e.width,r=e.height,n=e.getContext("2d"),o=Math.floor(t/2.8),i=Math.floor(r/2.8),a=t-o,s=r-i;return{data:n.getImageData(Math.floor(o/2),Math.floor(i/2),a,s).data,reducedWidth:a,reducedHeight:s}}function cO(){return(cO=eI(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=sO(t),nO){e.next=3;break}return e.abrupt("return",aO(r));case 3:return e.abrupt("return",nO.calculateBlurScoreFunc(r));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uO(e,t,r,n){return e[4*(n*t+r)]}var lO=Object.freeze({__proto__:null,calculateBlurScore:function(e){return cO.apply(this,arguments)},hasBetterBlurScore:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return null===t||e-t>r},hasBetterCardBlurScore:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return null===t||t-e>r},calculateIdCardBlurScore:function(e){var t=e.canvas,r=document.createElement("canvas"),n=r.getContext("2d");r.width=430,r.height=270,n.drawImage(t,0,0,r.width,r.height);var o=Math.floor(129),i=Math.floor(13.5),a=Math.floor(408.5),s=Math.floor(256.5),c=document.createElement("canvas"),u=c.getContext("2d"),l=a-o,d=s-i;c.width=l,c.height=d,u.drawImage(r,o,i,l,d,0,0,l,d);for(var f=u.getImageData(0,0,l,d).data,p=0;p<f.length;p+=4){var h=Math.round(.299*f[p]+.587*f[p+1]+.114*f[p+2]);f[p]=h}for(var g=d-1,m=l-1,v=0,y=[],b=1;b<g;b++)for(var w=1;w<m;w++){var C=4*-uO(f,l,w,b)+uO(f,l,w,b-1)+uO(f,l,w,b+1)+uO(f,l,w-1,b)+uO(f,l,w+1,b);v+=C,y.push(C)}v/=(l-2)*(d-2);for(var k=0,E=0;E<y.length;E++){var S=y[E]-v;k+=Math.pow(S,2)}var B=Math.sqrt(k/y.length);return 1/(1+Math.pow(2,B/2-10))}});function dO(e){var t,r,n,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u=s.x,l=s.y,d=s.width,f=s.height,p=e.videoWidth,h=e.videoHeight,g=window.innerWidth,m=window.innerHeight,v=g/m,y=p/h;v<y?(i=u*(n=p/g),a=(l-(t=(m-g/y)/2))*(o=h/(m-2*t))):(i=(u-(r=(g-m*y)/2))*(n=p/(g-2*r)),a=l*(o=h/m));var b=d*n,w=f*o,C=b,k=w,E=Math.max(b,w)*c;return{lostX:r,lostY:t,cropWidth:b=Math.floor(Math.min(p,b+2*E)),cropHeight:w=Math.floor(Math.min(h,w+2*E)),cropX:i=Math.floor(Math.max(0,i-E)),cropY:a=Math.floor(Math.max(0,a-E)),cropWidthWithoutPadding:C,cropHeightWithoutPadding:k}}var fO=Object.freeze({__proto__:null,analyzeVideoAndWindowSizes:dO,takePicture:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.canvas,n=t.video,o=t.cropArea,i=t.quality,a=void 0===i?1:i;if(r)e=r;else{var s=dO(n,o),c=s.cropWidth,u=s.cropHeight,l=s.cropX,d=s.cropY,f=(e=document.createElement("canvas")).getContext("2d");e.width=c,e.height=u,f.drawImage(n,l,d,c,u,0,0,c,u)}return new Promise((function(t){e.toBlob(t,"image/jpeg",a)}))}}),pO=function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=[e[r],e[t]];e[t]=n[0],e[r]=n[1]}return e},hO=Object.freeze({__proto__:null,shuffleArray:pO}),gO={NONE:0,PARTIAL:1,FULL:2};function mO(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=iI(e,2),o=n[0],i=n[1],a=iI(t,2),s=a[0],c=a[1],u=[o[0],i[0]],l=[o[1],i[1]];return u[0]+r<=s[0]&&c[0]<=u[1]-r&&l[0]+r<=s[1]&&c[1]<=l[1]-.8*r?gO.FULL:u[0]<=s[0]||c[0]<=u[1]||l[0]<=s[1]||c[1]<=l[1]?gO.PARTIAL:gO.NONE}function vO(e){var t=e.small,r=t.coords,n=t.area,o=e.big,i=o.coords,a=o.area,s=n;if(!s){var c=iI(r,2),u=c[0],l=c[1];s=(l[0]-u[0])*(l[1]-u[1])}var d=a;if(!d){var f=iI(i,2),p=f[0],h=f[1];d=(h[0]-p[0])*(h[1]-p[1])}return s/d}function yO(e,t){var r=iI(e,2),n=r[0],o=r[1],i=iI(t,2),a=i[0],s=i[1],c=o[0]-n[0],u=o[1]-n[1],l=s[0]-a[0];return c/l<u/l?c/l:u/l}var bO=Object.freeze({__proto__:null,ContainMode:gO,rectContains:mO,rectAreaRatio:vO,rectEdgeRatio:yO,isFaceCenter:function(e,t){var r=iI(e,2),n=r[0],o=r[1],i=iI(t,2),a=i[0],s=i[1],c=o[0]-n[0],u=o[1]-n[1],l=s[0]-a[0],d=Math.abs(n[0]-(l-c)/2)/l<.2,f=Math.abs(n[1]-(l-u)/2)/l<.2;return!(!d||!f)}});function wO(e){return Math.pow(Math.pow(e[0],2)+Math.pow(e[1],2),.5)}function CO(e,t){return[e[0]-t[0],e[1]-t[1]]}function kO(e){var t=e.landmarks,r=e.getPerfectFrontal,n=function(e){var t,r,n,o,i,a,s=iI(e,4),c=s[0],u=s[1],l=s[2],d=s[3],f=CO(u,c),p=wO(f),h=(n=u,2,[(t=[(r=c)[0]+n[0],r[1]+n[1]])[0]/2,t[1]/2]),g=CO(l,h),m=wO(CO(d,l)),v=CO(d,h),y=wO(v),b=(g[0]*v[0]+g[1]*v[1])/y,w=m/y;if(p>.5*y)o=(g[0]*f[0]+g[1]*f[1])/p/p;else{var C=wO(CO(g,function(e,t){return[e[0]*t,e[1]*t]}(v,b/y)));a=v,o=((i=g)[0]*a[1]-a[0]*i[1]>=0?1:-1)*C/p}return{left_right_score:o,up_down_score:w}}(t),o=n.left_right_score,i=n.up_down_score,a=iI(t,3),s=a[0],c=a[1],u=a[2],l=c[0]-u[0],d=s[0]-u[0],f=r?.1:.3,p=i>.7,h=i<.42,g=o>=.35&&o<=.6,m=o<=-.35&&o>=-.6;return i>=.42&&i<=.7&&o>-f&&o<f&&l*d<0?{gesture:$T.FRONTAL,leftRightScore:o}:!p||m||g?!h||m||g?!g||p||h?!m||p||h?null:{gesture:$T.LEFT,leftRightScore:o}:{gesture:$T.RIGHT,leftRightScore:o}:{gesture:$T.DOWN,leftRightScore:o}:{gesture:$T.UP,leftRightScore:o}}function EO(e){var t,r,n,o,i,a,s,c,u,l,d,f,p,h,g,m,v,y,b,w,C,k,E=e.predictions,S=e.width,B=[[0,0],[S,e.height]],_=E.reduce((function(e,t){var r=t.topLeft,n=t.bottomRight,o=t.probability,i=t.landmarks;return o<.9||i.length<6||vO({small:{coords:[r,n]},big:{coords:B}})<=.025?e[gO.NONE].push(t):e[mO(B,[r,n])].push(t),e}),(tI(t={},gO.PARTIAL,[]),tI(t,gO.FULL,[]),tI(t,gO.NONE,[]),t)),A=_[gO.FULL].length,x=_[gO.PARTIAL].length;if(0===A)r=x>0?YT.partial_face:YT.no_face;else if(A+x>1)r=YT.multiple_faces;else{var T=n=_[gO.FULL][0],I=yO([T.topLeft,T.bottomRight],B);I<.4&&(r=YT.face_too_small),I>.61&&(r=YT.face_too_large),mO(B,(s=(o=n.landmarks)[0],c=o[1],u=o[2],l=o[3],d=o[4],f=o[5],h=(p=.5*(s[1]+c[1]))+1.5*(p-l[1]),g=l[1]-1.2*(u[1]-l[1]),m=[s[0],c[0],u[0],l[0],d[0],f[0]],v=Math.min.apply(Math,m),y=Math.min(h,g),b=Math.max.apply(Math,m),w=Math.max(h,g),C=Math.abs(l[0]-d[0])/Math.abs(l[0]-f[0]),k=l[0]-d[0]<0&&f[0]-l[0]>.05*(b-v),l[0]-d[0]>0&&f[0]-l[0]<-.05*(b-v)?(i=.2,a=.1):k?(i=.1,a=.2):C>2||C<.5?(i=.15,a=.15):(i=.05,a=.05),[[v-i*(b-v),y],[b+a*(b-v),w]]),.05*S)!==gO.FULL&&(r=YT.face_out_of_box)}return{error:r,fullFace:n}}function SO(e,t){var r=t.customInstructions,n=t.customIcon,o=t.customDirectionIcon,i=t.customStepTimeConstraints,a={};return null!=r&&r[e]&&(a.instructions=r[e]),null!=n&&n[e]&&(a.icon=n[e]),null!=o&&o[e]&&(a.directionIcon=o[e]),null!=i&&i[e]&&(a.stepTimeConstraints=i[e]),a}function BO(){return(BO=eI(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(nO){e.next=2;break}return e.abrupt("return",EO(t));case 2:return e.abrupt("return",nO.validatePredictionsFunc(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _O(){return(_O=eI(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(nO){e.next=2;break}return e.abrupt("return",kO(t));case 2:return e.abrupt("return",nO.calculateFaceDirectionFunc(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var AO=Object.freeze({__proto__:null,initFaceVerificationData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.assetRoot,r=void 0===t?"/":t,n=e.customInstructions,o=e.customIcon,i=e.customDirectionIcon,a=e.customStepTimeConstraints;return{curStepIndex:0,steps:[].concat(aI(pO([oI({name:$T.LEFT,instructions:{en:"Turn your face to the left",vi:"Quay mặt chậm qua trái"},image:{blob:null,imageId:null,objUrl:null,blurScore:null,leftRightScore:null},frontalFaceImage:{blob:null,imageId:null,blurScore:null,leftRightScore:null},icon:MN(r,"ic_face_left.svg"),directionIcon:MN(r,"arrow_left.svg"),directionIconAnimation:"slide-horizontal",firstFrameSpottedAt:null,stepTimeConstraints:{delayTime:null}},SO($T.LEFT,{customInstructions:n,customIcon:o,customDirectionIcon:i,customStepTimeConstraints:a})),oI({name:$T.RIGHT,instructions:{en:"Turn your face to the right",vi:"Quay mặt chậm qua phải"},image:{blob:null,imageId:null,objUrl:null,blurScore:null,leftRightScore:null},frontalFaceImage:{blob:null,imageId:null,blurScore:null,leftRightScore:null},icon:MN(r,"ic_face_right.svg"),directionIcon:MN(r,"arrow_right.svg"),directionIconAnimation:"slide-horizontal",firstFrameSpottedAt:null,stepTimeConstraints:{delayTime:null}},SO($T.RIGHT,{customInstructions:n,customIcon:o,customDirectionIcon:i,customStepTimeConstraints:a})),oI({name:$T.UP,instructions:{en:"Turn your face up",vi:"Ngước mặt chậm lên trên"},image:{blob:null,imageId:null,objUrl:null,blurScore:null,leftRightScore:null},frontalFaceImage:{blob:null,imageId:null,blurScore:null,leftRightScore:null},icon:MN(r,"ic_face_up.svg"),directionIcon:MN(r,"arrow_up.svg"),directionIconAnimation:"slide-vertical",firstFrameSpottedAt:null,stepTimeConstraints:{delayTime:null}},SO($T.UP,{customInstructions:n,customIcon:o,customDirectionIcon:i,customStepTimeConstraints:a}))])),[oI({name:$T.FRONTAL,instructions:{en:"Look straight into the camera",vi:"Nhìn thẳng camera"},image:{blob:null,imageId:null,objUrl:null,blurScore:null,leftRightScore:null},frontalFaceImage:{blob:null,imageId:null,blurScore:null,leftRightScore:null},icon:MN(r,"ic_face_frontal.svg"),directionIcon:MN(r,"frontal.svg"),directionIconAnimation:"blink",firstFrameSpottedAt:null,stepTimeConstraints:{delayTime:null}},SO($T.FRONTAL,{customInstructions:n,customIcon:o,customDirectionIcon:i,customStepTimeConstraints:a}))])}},validatePredictions:function(e){return BO.apply(this,arguments)},calculateFaceDirection:function(e){return _O.apply(this,arguments)},faceTracker:function(){var e=[],t=[],r=[],n=[],o=[],i=0,a=0;function s(){a=i,r=aI(e),n=aI(t)}return function(c,u){var l=c.topLeft,d=c.bottomRight,f=c.landmarks,p=[],h=iI(l,2);p[0]=h[0],p[1]=h[1];var g=iI(d,2);p[2]=g[0],p[3]=g[1];var m=[],v=[];f.forEach((function(e,t){var r=iI(e,2);m[t]=r[0],v[t]=r[1]})),i=Date.now();var y=p[2]-p[0];if(e=[].concat(m),t=[].concat(v),!r.length&&!n.length||u)return s(),{score:0,time:i};for(var b=0;b<6;b++)o[b]=Math.sqrt((e[b]-r[b])*(e[b]-r[b])+(t[b]-n[b])*(t[b]-n[b]));for(var w=0;w<6;w++)o[w]/=(i-a)*y;for(var C=0,k=0;k<6;k++)C+=o[k];return C/=6,s(),{score:C,time:i}}}}),xO=document.createElement("canvas"),TO=xO.getContext("2d");xO.width=128,xO.height=128;var IO=function(){var e=eI(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.model,n=t.sCanvas,TO.drawImage(n,0,0,xO.width,xO.height),e.abrupt("return",r.estimateFaces(xO,!1,!1,!0));case 3:case"end":return e.stop()}var n}),e)})));return function(t){return e.apply(this,arguments)}}(),PO=Object.freeze({__proto__:null,SIZE:128,getModelPredictions:IO}),RO=Object.getOwnPropertySymbols,NO=Object.prototype.hasOwnProperty,OO=Object.prototype.propertyIsEnumerable;function LO(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var MO,DO=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=LO(e),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))NO.call(r,a)&&(o[a]=r[a]);if(RO){n=RO(r);for(var s=0;s<n.length;s++)OO.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o},UO=arguments[3],jO=arguments[4],FO=arguments[5],VO=JSON.stringify,zO=function(e,t){for(var r,n=Object.keys(FO),o=0,i=n.length;o<i;o++){var a=n[o],s=FO[a].exports;if(s===e||s&&s.default===e){r=a;break}}if(!r){r=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var c={};for(o=0,i=n.length;o<i;o++)c[a=n[o]]=a;jO[r]=["function(require,module,exports){"+e+"(self); }",c]}var u=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[r]=r,jO[u]=["function(require,module,exports){var f = require("+VO(r)+");(f.default ? f.default : f)(self);}",l];var d={};!function e(t){for(var r in d[t]=!0,jO[t][1]){var n=jO[t][1][r];d[n]||e(n)}}(u);var f="("+UO+")({"+Object.keys(d).map((function(e){return VO(e)+":["+jO[e][0]+","+VO(jO[e][1])+"]"})).join(",")+"},{},["+VO(u)+"])",p=window.URL||window.webkitURL||window.mozURL||window.msURL,h=new Blob([f],{type:"text/javascript"});if(t&&t.bare)return h;var g=p.createObjectURL(h),m=new Worker(g);return m.objectURL=g,m},KO=vI((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),HO={js:!0,wasm:!0};function qO(e){if(!(this instanceof qO))return new qO(e);var t=DO({},HO,e||{});if(this.options=t,this.__cache={},this.__init_promise=null,this.__modules=t.modules||{},this.__memory=null,this.__wasm={},this.__isLE=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0],!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}qO.prototype.has_wasm=function(){if(void 0!==MO)return MO;if(MO=!1,"undefined"==typeof WebAssembly)return MO;try{var e=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),t=new WebAssembly.Module(e);return 0!==new WebAssembly.Instance(t,{}).exports.test(4)&&(MO=!0),MO}catch(e){}return MO},qO.prototype.use=function(e){return this.__modules[e.name]=e,this.options.wasm&&this.has_wasm()&&e.wasm_fn?this[e.name]=e.wasm_fn:this[e.name]=e.fn,this},qO.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error('mathlib: only "wasm" was enabled, but it\'s not supported'));var e=this;return this.__init_promise=Promise.all(Object.keys(e.__modules).map((function(t){var r=e.__modules[t];return e.options.wasm&&e.has_wasm()&&r.wasm_fn?e.__wasm[t]?null:WebAssembly.compile(e.__base64decode(r.wasm_src)).then((function(r){e.__wasm[t]=r})):null}))).then((function(){return e})),this.__init_promise},qO.prototype.__base64decode=function(e){for(var t=e.replace(/[\r\n=]/g,""),r=t.length,n=new Uint8Array(3*r>>2),o=0,i=0,a=0;a<r;a++)a%4==0&&a&&(n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=255&o),o=o<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(a));var s=r%4*6;return 0===s?(n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=255&o):18===s?(n[i++]=o>>10&255,n[i++]=o>>2&255):12===s&&(n[i++]=o>>4&255),n},qO.prototype.__reallocate=function(e){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(e/65536)}),this.__memory;var t=this.__memory.buffer.byteLength;return t<e&&this.__memory.grow(Math.ceil((e-t)/65536)),this.__memory},qO.prototype.__instance=function(e,t,r){if(t&&this.__reallocate(t),!this.__wasm[e]){var n=this.__modules[e];this.__wasm[e]=new WebAssembly.Module(this.__base64decode(n.wasm_src))}if(!this.__cache[e]){var o={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[e]=new WebAssembly.Instance(this.__wasm[e],{env:DO(o,r||{})})}return this.__cache[e]},qO.prototype.__align=function(e,t){var r=e%(t=t||8);return e+(r?t-r:0)};var WO,QO,GO,XO,YO,$O,ZO=qO;function JO(e,t,r,n,o,i){var a,s,c,u,l,d,f,p,h,g,m,v,y,b;for(h=0;h<i;h++){for(f=h,p=0,u=l=(a=e[d=h*o])*n[6],m=n[0],v=n[1],y=n[4],b=n[5],g=0;g<o;g++)c=(s=e[d])*m+a*v+u*y+l*b,l=u,u=c,a=s,r[p]=u,p++,d++;for(p--,f+=i*(o-1),u=l=(a=e[--d])*n[7],s=a,m=n[2],v=n[3],g=o-1;g>=0;g--)c=s*m+a*v+u*y+l*b,l=u,u=c,a=s,s=e[d],t[f]=r[p]+u,d--,p--,f-=i}}var eL={name:"unsharp_mask",fn:function(e,t,r,n,o,i){var a,s,c,u,l,d,f,p,h,g,m,v,y;if(!(0===n||o<.5)){o>2&&(o=2);var b=function(e,t,r){for(var n,o,i,a,s,c=t*r,u=new Uint16Array(c),l=0;l<c;l++)n=e[4*l],o=e[4*l+1],i=e[4*l+2],s=n>=o&&n>=i?n:o>=i&&o>=n?o:i,a=n<=o&&n<=i?n:o<=i&&o<=n?o:i,u[l]=257*(s+a)>>1;return u}(e,t,r),w=new Uint16Array(b);!function(e,t,r,n){if(n){var o=new Uint16Array(e.length),i=new Float32Array(Math.max(t,r)),a=function(e){e<.5&&(e=.5);var t=Math.exp(.527076)/e,r=Math.exp(-t),n=Math.exp(-2*t),o=(1-r)*(1-r)/(1+2*t*r-n);return WO=o,QO=o*(t-1)*r,GO=o*(t+1)*r,XO=-o*n,YO=2*r,$O=-n,new Float32Array([WO,QO,GO,XO,YO,$O,(WO+QO)/(1-YO-$O),(GO+XO)/(1-YO-$O)])}(n);JO(e,o,i,a,t,r),JO(o,e,i,a,r,t)}}(w,t,r,o);for(var C=n/100*4096+.5|0,k=257*i|0,E=t*r,S=0;S<E;S++)v=2*(b[S]-w[S]),Math.abs(v)>=k&&(a=e[y=4*S],s=e[y+1],c=e[y+2],d=257*((p=a>=s&&a>=c?a:s>=a&&s>=c?s:c)+(f=a<=s&&a<=c?a:s<=a&&s<=c?s:c))>>1,f===p?u=l=0:(l=d<=32767?4095*(p-f)/(p+f)|0:4095*(p-f)/(510-p-f)|0,u=a===p?65535*(s-c)/(6*(p-f))|0:s===p?21845+(65535*(c-a)/(6*(p-f))|0):43690+(65535*(a-s)/(6*(p-f))|0)),(d+=C*v+2048>>12)>65535?d=65535:d<0&&(d=0),0===l?a=s=c=d>>8:(h=2*d-(g=d<=32767?d*(4096+l)+2048>>12:d+((65535-d)*l+2048>>12))>>8,g>>=8,a=(m=u+21845&65535)>=43690?h:m>=32767?h+(6*(g-h)*(43690-m)+32768>>16):m>=10922?g:h+(6*(g-h)*m+32768>>16),s=(m=65535&u)>=43690?h:m>=32767?h+(6*(g-h)*(43690-m)+32768>>16):m>=10922?g:h+(6*(g-h)*m+32768>>16),c=(m=u-21845&65535)>=43690?h:m>=32767?h+(6*(g-h)*(43690-m)+32768>>16):m>=10922?g:h+(6*(g-h)*m+32768>>16)),e[y]=a,e[y+1]=s,e[y+2]=c)}},wasm_fn:function(e,t,r,n,o,i){if(!(0===n||o<.5)){o>2&&(o=2);var a=t*r,s=4*a,c=2*a,u=2*a,l=4*Math.max(t,r),d=s,f=d+c,p=f+u,h=p+u,g=h+l,m=this.__instance("unsharp_mask",s+c+2*u+l+32,{exp:Math.exp}),v=new Uint32Array(e.buffer);new Uint32Array(this.__memory.buffer).set(v);var y=m.exports.hsl_l16||m.exports._hsl_l16;y(0,d,t,r),(y=m.exports.blurMono16||m.exports._blurMono16)(d,f,p,h,g,t,r,o),(y=m.exports.unsharp||m.exports._unsharp)(0,0,d,f,t,r,n,i),v.set(new Uint32Array(this.__memory.buffer,0,a))}},wasm_src:"AGFzbQEAAAABMQZgAXwBfGACfX8AYAZ/f39/f38AYAh/f39/f39/fQBgBH9/f38AYAh/f39/f39/fwACGQIDZW52A2V4cAAAA2VudgZtZW1vcnkCAAEDBgUBAgMEBQQEAXAAAAdMBRZfX2J1aWxkX2dhdXNzaWFuX2NvZWZzAAEOX19nYXVzczE2X2xpbmUAAgpibHVyTW9ubzE2AAMHaHNsX2wxNgAEB3Vuc2hhcnAABQkBAAqJEAXZAQEGfAJAIAFE24a6Q4Ia+z8gALujIgOaEAAiBCAEoCIGtjgCECABIANEAAAAAAAAAMCiEAAiBbaMOAIUIAFEAAAAAAAA8D8gBKEiAiACoiAEIAMgA6CiRAAAAAAAAPA/oCAFoaMiArY4AgAgASAEIANEAAAAAAAA8L+gIAKioiIHtjgCBCABIAQgA0QAAAAAAADwP6AgAqKiIgO2OAIIIAEgBSACoiIEtow4AgwgASACIAegIAVEAAAAAAAA8D8gBqGgIgKjtjgCGCABIAMgBKEgAqO2OAIcCwu3AwMDfwR9CHwCQCADKgIUIQkgAyoCECEKIAMqAgwhCyADKgIIIQwCQCAEQX9qIgdBAEgiCA0AIAIgAC8BALgiDSADKgIYu6IiDiAJuyIQoiAOIAq7IhGiIA0gAyoCBLsiEqIgAyoCALsiEyANoqCgoCIPtjgCACACQQRqIQIgAEECaiEAIAdFDQAgBCEGA0AgAiAOIBCiIA8iDiARoiANIBKiIBMgAC8BALgiDaKgoKAiD7Y4AgAgAkEEaiECIABBAmohACAGQX9qIgZBAUoNAAsLAkAgCA0AIAEgByAFbEEBdGogAEF+ai8BACIIuCINIAu7IhGiIA0gDLsiEqKgIA0gAyoCHLuiIg4gCrsiE6KgIA4gCbsiFKKgIg8gAkF8aioCALugqzsBACAHRQ0AIAJBeGohAiAAQXxqIQBBACAFQQF0ayEHIAEgBSAEQQF0QXxqbGohBgNAIAghAyAALwEAIQggBiANIBGiIAO4Ig0gEqKgIA8iECAToqAgDiAUoqAiDyACKgIAu6CrOwEAIAYgB2ohBiAAQX5qIQAgAkF8aiECIBAhDiAEQX9qIgRBAUoNAAsLCwvfAgIDfwZ8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIgyaEAAiDSANoCIPtjgCECAEIAxEAAAAAAAAAMCiEAAiDraMOAIUIAREAAAAAAAA8D8gDaEiCyALoiANIAwgDKCiRAAAAAAAAPA/oCAOoaMiC7Y4AgAgBCANIAxEAAAAAAAA8L+gIAuioiIQtjgCBCAEIA0gDEQAAAAAAADwP6AgC6KiIgy2OAIIIAQgDiALoiINtow4AgwgBCALIBCgIA5EAAAAAAAA8D8gD6GgIgujtjgCGCAEIAwgDaEgC6O2OAIcIAYEQCAFQQF0IQogBiEJIAIhCANAIAAgCCADIAQgBSAGEAIgACAKaiEAIAhBAmohCCAJQX9qIgkNAAsLIAVFDQAgBkEBdCEIIAUhAANAIAIgASADIAQgBiAFEAIgAiAIaiECIAFBAmohASAAQX9qIgANAAsLC7wBAQV/IAMgAmwiAwRAQQAgA2shBgNAIAAoAgAiBEEIdiIHQf8BcSECAn8gBEH/AXEiAyAEQRB2IgRB/wFxIgVPBEAgAyIIIAMgAk8NARoLIAQgBCAHIAIgA0kbIAIgBUkbQf8BcQshCAJAIAMgAk0EQCADIAVNDQELIAQgByAEIAMgAk8bIAIgBUsbQf8BcSEDCyAAQQRqIQAgASADIAhqQYECbEEBdjsBACABQQJqIQEgBkEBaiIGDQALCwvTBgEKfwJAIAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6CqIQ0gBSAEbCILBEAgB0GBAmwhDgNAQQAgAi8BACADLwEAayIGQQF0IgdrIAcgBkEASBsgDk8EQCAAQQJqLQAAIQUCfyAALQAAIgYgAEEBai0AACIESSIJRQRAIAYiCCAGIAVPDQEaCyAFIAUgBCAEIAVJGyAGIARLGwshCAJ/IAYgBE0EQCAGIgogBiAFTQ0BGgsgBSAFIAQgBCAFSxsgCRsLIgogCGoiD0GBAmwiEEEBdiERQQAhDAJ/QQAiCSAIIApGDQAaIAggCmsiCUH/H2wgD0H+AyAIayAKayAQQYCABEkbbSEMIAYgCEYEQCAEIAVrQf//A2wgCUEGbG0MAQsgBSAGayAGIARrIAQgCEYiBhtB//8DbCAJQQZsbUHVqgFBqtUCIAYbagshCSARIAcgDWxBgBBqQQx1aiIGQQAgBkEAShsiBkH//wMgBkH//wNIGyEGAkACfwJAIAxB//8DcSIFBEAgBkH//wFKDQEgBUGAIGogBmxBgBBqQQx2DAILIAZBCHYiBiEFIAYhBAwCCyAFIAZB//8Dc2xBgBBqQQx2IAZqCyIFQQh2IQcgBkEBdCAFa0EIdiIGIQQCQCAJQdWqAWpB//8DcSIFQanVAksNACAFQf//AU8EQEGq1QIgBWsgByAGa2xBBmxBgIACakEQdiAGaiEEDAELIAchBCAFQanVAEsNACAFIAcgBmtsQQZsQYCAAmpBEHYgBmohBAsCfyAGIgUgCUH//wNxIghBqdUCSw0AGkGq1QIgCGsgByAGa2xBBmxBgIACakEQdiAGaiAIQf//AU8NABogByIFIAhBqdUASw0AGiAIIAcgBmtsQQZsQYCAAmpBEHYgBmoLIQUgCUGr1QJqQf//A3EiCEGp1QJLDQAgCEH//wFPBEBBqtUCIAhrIAcgBmtsQQZsQYCAAmpBEHYgBmohBgwBCyAIQanVAEsEQCAHIQYMAQsgCCAHIAZrbEEGbEGAgAJqQRB2IAZqIQYLIAEgBDoAACABQQFqIAU6AAAgAUECaiAGOgAACyADQQJqIQMgAkECaiECIABBBGohACABQQRqIQEgC0F/aiILDQALCwsL"},tL=[{win:.5,filter:function(e){return e>=-.5&&e<.5?1:0}},{win:1,filter:function(e){if(e<=-1||e>=1)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*(.54+.46*Math.cos(t/1))}},{win:2,filter:function(e){if(e<=-2||e>=2)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/2)/(t/2)}},{win:3,filter:function(e){if(e<=-3||e>=3)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/3)/(t/3)}}];function rL(e){return Math.round(16383*e)}var nL=function(e,t,r,n,o){var i,a,s,c,u,l,d,f,p,h,g,m,v,y,b,w,C,k=tL[e].filter,E=1/n,S=Math.min(1,n),B=tL[e].win/S,_=Math.floor(2*(B+1)),A=new Int16Array((_+2)*r),x=0,T=!A.subarray||!A.set;for(i=0;i<r;i++){for(a=(i+.5)*E+o,s=Math.max(0,Math.floor(a-B)),u=(c=Math.min(t-1,Math.ceil(a+B)))-s+1,l=new Float32Array(u),d=new Int16Array(u),f=0,p=s,h=0;p<=c;p++,h++)f+=g=k((p+.5-a)*S),l[h]=g;for(m=0,h=0;h<l.length;h++)m+=v=l[h]/f,d[h]=rL(v);for(d[r>>1]+=rL(1-m),y=0;y<d.length&&0===d[y];)y++;if(y<d.length){for(b=d.length-1;b>0&&0===d[b];)b--;if(w=s+y,C=b-y+1,A[x++]=w,A[x++]=C,T)for(h=y;h<=b;h++)A[x++]=d[h];else A.set(d.subarray(y,b+1),x),x+=C}else A[x++]=0,A[x++]=0}return A};function oL(e){return e<0?0:e>255?255:e}var iL=!0;try{iL=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]}catch(e){}function aL(e,t,r){if(iL)t.set(function(e){return new Uint8Array(e.buffer,0,e.byteLength)}(e),r);else for(var n=r,o=0;o<e.length;o++){var i=e[o];t[n++]=255&i,t[n++]=i>>8&255}}var sL={name:"resize",fn:function(e){var t=e.src,r=e.width,n=e.height,o=e.toWidth,i=e.toHeight,a=e.scaleX||e.toWidth/e.width,s=e.scaleY||e.toHeight/e.height,c=e.offsetX||0,u=e.offsetY||0,l=e.dest||new Uint8Array(o*i*4),d=void 0===e.quality?3:e.quality,f=e.alpha||!1,p=nL(d,r,o,a,c),h=nL(d,n,i,s,u),g=new Uint8Array(o*n*4);return function(e,t,r,n,o,i){var a,s,c,u,l,d,f,p,h,g,m,v=0,y=0;for(h=0;h<n;h++){for(l=0,g=0;g<o;g++){for(d=i[l++],f=i[l++],p=v+4*d|0,a=s=c=u=0;f>0;f--)u=u+(m=i[l++])*e[p+3]|0,c=c+m*e[p+2]|0,s=s+m*e[p+1]|0,a=a+m*e[p]|0,p=p+4|0;t[y+3]=oL(u+8192>>14),t[y+2]=oL(c+8192>>14),t[y+1]=oL(s+8192>>14),t[y]=oL(a+8192>>14),y=y+4*n|0}y=4*(h+1)|0,v=(h+1)*r*4|0}}(t,g,r,n,o,p),function(e,t,r,n,o,i){var a,s,c,u,l,d,f,p,h,g,m,v=0,y=0;for(h=0;h<n;h++){for(l=0,g=0;g<o;g++){for(d=i[l++],f=i[l++],p=v+4*d|0,a=s=c=u=0;f>0;f--)u=u+(m=i[l++])*e[p+3]|0,c=c+m*e[p+2]|0,s=s+m*e[p+1]|0,a=a+m*e[p]|0,p=p+4|0;t[y+3]=oL(u+8192>>14),t[y+2]=oL(c+8192>>14),t[y+1]=oL(s+8192>>14),t[y]=oL(a+8192>>14),y=y+4*n|0}y=4*(h+1)|0,v=(h+1)*r*4|0}}(g,l,n,o,i,h),f||function(e,t,r){for(var n=3,o=t*r*4|0;n<o;)e[n]=255,n=n+4|0}(l,o,i),l},wasm_fn:function(e){var t=e.src,r=e.width,n=e.height,o=e.toWidth,i=e.toHeight,a=e.scaleX||e.toWidth/e.width,s=e.scaleY||e.toHeight/e.height,c=e.offsetX||0,u=e.offsetY||0,l=e.dest||new Uint8Array(o*i*4),d=void 0===e.quality?3:e.quality,f=e.alpha||!1,p=nL(d,r,o,a,c),h=nL(d,n,i,s,u),g=this.__align(0+Math.max(t.byteLength,l.byteLength)),m=this.__align(g+n*o*4),v=this.__align(m+p.byteLength),y=v+h.byteLength,b=this.__instance("resize",y),w=new Uint8Array(this.__memory.buffer),C=new Uint32Array(this.__memory.buffer),k=new Uint32Array(t.buffer);return C.set(k),aL(p,w,m),aL(h,w,v),(b.exports.convolveHV||b.exports._convolveHV)(m,v,g,r,n,o,i),new Uint32Array(l.buffer).set(new Uint32Array(this.__memory.buffer,0,i*o)),f||function(e,t,r){for(var n=3,o=t*r*4|0;n<o;)e[n]=255,n=n+4|0}(l,o,i),l},wasm_src:"AGFzbQEAAAABFAJgBn9/f39/fwBgB39/f39/f38AAg8BA2VudgZtZW1vcnkCAAEDAwIAAQQEAXAAAAcZAghjb252b2x2ZQAACmNvbnZvbHZlSFYAAQkBAArmAwLBAwEQfwJAIANFDQAgBEUNACAFQQRqIRVBACEMQQAhDQNAIA0hDkEAIRFBACEHA0AgB0ECaiESAn8gBSAHQQF0IgdqIgZBAmouAQAiEwRAQQAhCEEAIBNrIRQgFSAHaiEPIAAgDCAGLgEAakECdGohEEEAIQlBACEKQQAhCwNAIBAoAgAiB0EYdiAPLgEAIgZsIAtqIQsgB0H/AXEgBmwgCGohCCAHQRB2Qf8BcSAGbCAKaiEKIAdBCHZB/wFxIAZsIAlqIQkgD0ECaiEPIBBBBGohECAUQQFqIhQNAAsgEiATagwBC0EAIQtBACEKQQAhCUEAIQggEgshByABIA5BAnRqIApBgMAAakEOdSIGQf8BIAZB/wFIG0EQdEGAgPwHcUEAIAZBAEobIAtBgMAAakEOdSIGQf8BIAZB/wFIG0EYdEEAIAZBAEobciAJQYDAAGpBDnUiBkH/ASAGQf8BSBtBCHRBgP4DcUEAIAZBAEobciAIQYDAAGpBDnUiBkH/ASAGQf8BSBtB/wFxQQAgBkEAShtyNgIAIA4gA2ohDiARQQFqIhEgBEcNAAsgDCACaiEMIA1BAWoiDSADRw0ACwsLIQACQEEAIAIgAyAEIAUgABAAIAJBACAEIAUgBiABEAALCw=="};function cL(e){var t=e||[],r={js:t.indexOf("js")>=0,wasm:t.indexOf("wasm")>=0};ZO.call(this,r),this.features={js:r.js,wasm:r.wasm&&this.has_wasm()},this.use(eL),this.use(sL)}KO(cL,ZO),cL.prototype.resizeAndUnsharp=function(e,t){var r=this.resize(e,t);return e.unsharpAmount&&this.unsharp_mask(r,e.toWidth,e.toHeight,e.unsharpAmount,e.unsharpRadius,e.unsharpThreshold),r};var uL=cL;function lL(e,t){this.create=e,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=t||2e3}lL.prototype.acquire=function(){var e,t=this;return 0!==this.available.length?e=this.available.pop():((e=this.create()).id=this.lastId++,e.release=function(){return t.release(e)}),this.acquired[e.id]=e,e},lL.prototype.release=function(e){var t=this;delete this.acquired[e.id],e.lastUsed=Date.now(),this.available.push(e),0===this.timeoutId&&(this.timeoutId=setTimeout((function(){return t.gc()}),100))},lL.prototype.gc=function(){var e=this,t=Date.now();this.available=this.available.filter((function(r){return!(t-r.lastUsed>e.idle&&(r.destroy(),1))})),0!==this.available.length?this.timeoutId=setTimeout((function(){return e.gc()}),100):this.timeoutId=0};var dL=lL;function fL(e){return Object.prototype.toString.call(e)}var pL=function(e){var t=fL(e);return"[object HTMLCanvasElement]"===t||"[object OffscreenCanvas]"===t||"[object Canvas]"===t},hL=function(e){switch(e){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},gL=function(){var e,t=uL;onmessage=function(r){var n=r.data.opts;e||(e=new t(r.data.features));var o=e.resizeAndUnsharp(n);postMessage({result:o},[o.buffer])}};function mL(e){var t=Math.round(e);return Math.abs(e-t)<1e-5?t:Math.floor(e)}function vL(e){var t=Math.round(e);return Math.abs(e-t)<1e-5?t:Math.ceil(e)}var yL={},bL=!1;try{"undefined"!=typeof navigator&&navigator.userAgent&&(bL=navigator.userAgent.indexOf("Safari")>=0)}catch(e){}var wL=1;"undefined"!=typeof navigator&&(wL=Math.min(navigator.hardwareConcurrency||1,4));var CL,kL,EL={tile:1024,concurrency:wL,features:["js","wasm","ww"],idle:2e3,createCanvas:function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r}},SL={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0};function BL(){return{value:zO(gL),destroy:function(){if(this.value.terminate(),"undefined"!=typeof window){var e=window.URL||window.webkitURL||window.mozURL||window.msURL;e&&e.revokeObjectURL&&this.value.objectURL&&e.revokeObjectURL(this.value.objectURL)}}}}function _L(e){if(!(this instanceof _L))return new _L(e);this.options=DO({},EL,e||{});var t="lk_".concat(this.options.concurrency);this.__limit=yL[t]||function(e){var t=0,r=[];function n(){t<e&&r.length&&(t++,r.shift()())}return function(e){return new Promise((function(o,i){r.push((function(){e().then((function(e){o(e),t--,n()}),(function(e){i(e),t--,n()}))})),n()}))}}(this.options.concurrency),yL[t]||(yL[t]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}_L.prototype.init=function(){var e=this;if(this.__initPromise)return this.__initPromise;if(!1!==CL&&!0!==CL&&(CL=!1,"undefined"!=typeof ImageData&&"undefined"!=typeof Uint8ClampedArray))try{new ImageData(new Uint8ClampedArray(400),10,10),CL=!0}catch(t){}!1!==kL&&!0!==kL&&(kL=!1,"undefined"!=typeof ImageBitmap&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?kL=!0:this.debug("ImageBitmap does not support .close(), disabled")));var t=this.options.features.slice();if(t.indexOf("all")>=0&&(t=["cib","wasm","js","ww"]),this.__requested_features=t,this.__mathlib=new uL(t),t.indexOf("ww")>=0&&"undefined"!=typeof window&&"Worker"in window)try{zO((function(){})).terminate(),this.features.ww=!0;var r="wp_".concat(JSON.stringify(this.options));yL[r]?this.__workersPool=yL[r]:(this.__workersPool=new dL(BL,this.options.idle),yL[r]=this.__workersPool)}catch(t){}var n,o=this.__mathlib.init().then((function(t){DO(e.features,t.features)}));return n=kL?function(e){return Promise.resolve().then((function(){if("undefined"==typeof createImageBitmap)return!1;var t=e(100,100);return createImageBitmap(t,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then((function(e){var r=10===e.width;return e.close(),t=null,r}))})).catch((function(){return!1}))}(this.options.createCanvas).then((function(r){e.features.cib&&t.indexOf("cib")<0?e.debug("createImageBitmap() resize supported, but disabled by config"):t.indexOf("cib")>=0&&(e.features.cib=r)})):Promise.resolve(!1),this.__initPromise=Promise.all([o,n]).then((function(){return e})),this.__initPromise},_L.prototype.resize=function(e,t,r){var n=this;this.debug("Start resize...");var o=DO({},SL);if(isNaN(r)?r&&(o=DO(o,r)):o=DO(o,{quality:r}),o.toWidth=t.width,o.toHeight=t.height,o.width=e.naturalWidth||e.width,o.height=e.naturalHeight||e.height,0===t.width||0===t.height)return Promise.reject(new Error("Invalid output size: ".concat(t.width,"x").concat(t.height)));o.unsharpRadius>2&&(o.unsharpRadius=2);var i=!1,a=null;o.cancelToken&&(a=o.cancelToken.then((function(e){throw i=!0,e}),(function(e){throw i=!0,e})));var s=Math.ceil(Math.max(3,2.5*o.unsharpRadius|0));return this.init().then((function(){if(i)return a;if(n.features.cib){var r=t.getContext("2d",{alpha:Boolean(o.alpha)});return n.debug("Resize via createImageBitmap()"),createImageBitmap(e,{resizeWidth:o.toWidth,resizeHeight:o.toHeight,resizeQuality:hL(o.quality)}).then((function(e){if(i)return a;if(!o.unsharpAmount)return r.drawImage(e,0,0),e.close(),r=null,n.debug("Finished!"),t;n.debug("Unsharp result");var s=n.options.createCanvas(o.toWidth,o.toHeight),c=s.getContext("2d",{alpha:Boolean(o.alpha)});c.drawImage(e,0,0),e.close();var u=c.getImageData(0,0,o.toWidth,o.toHeight);return n.__mathlib.unsharp_mask(u.data,o.toWidth,o.toHeight,o.unsharpAmount,o.unsharpRadius,o.unsharpThreshold),r.putImageData(u,0,0),s.width=s.height=0,u=c=s=r=null,n.debug("Finished!"),t}))}var c={},u=function(e){return Promise.resolve().then((function(){return n.features.ww?new Promise((function(t,r){var o=n.__workersPool.acquire();a&&a.catch((function(e){return r(e)})),o.value.onmessage=function(e){o.release(),e.data.err?r(e.data.err):t(e.data.result)},o.value.postMessage({opts:e,features:n.__requested_features,preload:{wasm_nodule:n.__mathlib.__}},[e.src.buffer])})):n.__mathlib.resizeAndUnsharp(e,c)}))},l=function(e,t,r){var o,c,l,d=!1,f=function(t){return n.__limit((function(){if(i)return a;var s;if(pL(e))n.debug("Get tile pixel data"),s=o.getImageData(t.x,t.y,t.width,t.height);else{n.debug("Draw tile imageBitmap/image to temporary canvas");var d=n.options.createCanvas(t.width,t.height),f=d.getContext("2d",{alpha:Boolean(r.alpha)});f.globalCompositeOperation="copy",f.drawImage(c||e,t.x,t.y,t.width,t.height,0,0,t.width,t.height),n.debug("Get tile pixel data"),s=f.getImageData(0,0,t.width,t.height),d.width=d.height=0,f=d=null}var p={src:s.data,width:t.width,height:t.height,toWidth:t.toWidth,toHeight:t.toHeight,scaleX:t.scaleX,scaleY:t.scaleY,offsetX:t.offsetX,offsetY:t.offsetY,quality:r.quality,alpha:r.alpha,unsharpAmount:r.unsharpAmount,unsharpRadius:r.unsharpRadius,unsharpThreshold:r.unsharpThreshold};return n.debug("Invoke resize math"),Promise.resolve().then((function(){return u(p)})).then((function(e){if(i)return a;var r;if(s=null,n.debug("Convert raw rgba tile result to ImageData"),CL)r=new ImageData(new Uint8ClampedArray(e),t.toWidth,t.toHeight);else if((r=l.createImageData(t.toWidth,t.toHeight)).data.set)r.data.set(e);else for(var o=r.data.length-1;o>=0;o--)r.data[o]=e[o];return n.debug("Draw tile"),bL?l.putImageData(r,t.toX,t.toY,t.toInnerX-t.toX,t.toInnerY-t.toY,t.toInnerWidth+1e-5,t.toInnerHeight+1e-5):l.putImageData(r,t.toX,t.toY,t.toInnerX-t.toX,t.toInnerY-t.toY,t.toInnerWidth,t.toInnerHeight),null}))}))};return Promise.resolve().then((function(){if(l=t.getContext("2d",{alpha:Boolean(r.alpha)}),pL(e))return o=e.getContext("2d",{alpha:Boolean(r.alpha)}),null;if(function(e){return"[object ImageBitmap]"===fL(e)}(e))return c=e,d=!0,null;if(function(e){return"[object HTMLImageElement]"===fL(e)}(e))return kL?(n.debug("Decode image via createImageBitmap"),createImageBitmap(e).then((function(e){c=e})).catch((function(e){return null}))):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')})).then((function(){if(i)return a;n.debug("Calculate tiles");var e=function(e){var t,r,n,o,i,a,s=e.toWidth/e.width,c=e.toHeight/e.height,u=mL(e.srcTileSize*s)-2*e.destTileBorder,l=mL(e.srcTileSize*c)-2*e.destTileBorder;if(u<1||l<1)throw new Error("Internal error in pica: target tile width/height is too small.");var d,f=[];for(o=0;o<e.toHeight;o+=l)for(n=0;n<e.toWidth;n+=u)(t=n-e.destTileBorder)<0&&(t=0),t+(i=n+u+e.destTileBorder-t)>=e.toWidth&&(i=e.toWidth-t),(r=o-e.destTileBorder)<0&&(r=0),r+(a=o+l+e.destTileBorder-r)>=e.toHeight&&(a=e.toHeight-r),d={toX:t,toY:r,toWidth:i,toHeight:a,toInnerX:n,toInnerY:o,toInnerWidth:u,toInnerHeight:l,offsetX:t/s-mL(t/s),offsetY:r/c-mL(r/c),scaleX:s,scaleY:c,x:mL(t/s),y:mL(r/c),width:vL(i/s),height:vL(a/c)},f.push(d);return f}({width:r.width,height:r.height,srcTileSize:n.options.tile,toWidth:r.toWidth,toHeight:r.toHeight,destTileBorder:s}).map((function(e){return f(e)}));function o(){c&&(d||c.close(),c=null)}return n.debug("Process tiles"),Promise.all(e).then((function(){return n.debug("Finished!"),o(),t}),(function(e){throw o(),e}))}))};return function e(t,r,o,s){if(i)return a;var c,u=lm(t.shift(),2),d=u[0],f=u[1],p=0===t.length;return s=DO({},s,{toWidth:d,toHeight:f,quality:p?s.quality:Math.min(1,s.quality)}),p||(c=n.options.createCanvas(d,f)),l(r,p?o:c,s).then((function(){return p?o:(s.width=d,s.height=f,e(t,c,o,s))})).then((function(e){return c&&(c.width=c.height=0),e}))}(function(e,t,r,n,o,i){var a=r/e,s=n/t,c=(2*i+2+1)/o;if(c>.5)return[[r,n]];var u=Math.ceil(Math.log(Math.min(a,s))/Math.log(c));if(u<=1)return[[r,n]];for(var l=[],d=0;d<u;d++){var f=Math.round(Math.pow(Math.pow(e,u-d-1)*Math.pow(r,d+1),1/u)),p=Math.round(Math.pow(Math.pow(t,u-d-1)*Math.pow(n,d+1),1/u));l.push([f,p])}return l}(o.width,o.height,o.toWidth,o.toHeight,n.options.tile,s),e,t,o)}))},_L.prototype.resizeBuffer=function(e){var t=this,r=DO({},SL,e);return this.init().then((function(){return t.__mathlib.resizeAndUnsharp(r)}))},_L.prototype.toBlob=function(e,t,r){return t=t||"image/png",new Promise((function(n){if(e.toBlob)e.toBlob((function(e){return n(e)}),t,r);else if(e.convertToBlob)n(e.convertToBlob({type:t,quality:r}));else{for(var o=atob(e.toDataURL(t,r).split(",")[1]),i=o.length,a=new Uint8Array(i),s=0;s<i;s++)a[s]=o.charCodeAt(s);n(new Blob([a],{type:t}))}}))},_L.prototype.debug=function(){};var AL=new _L,xL=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.minSize,o=void 0===n?720:n,i=e/t;return e>t?{desW:Math.floor(o*i),desH:o}:{desW:o,desH:Math.floor(o/i)}},TL=Object.freeze({__proto__:null,scaleImage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minSize,n=void 0===r?720:r;return new Promise((function(t){var r=URL.createObjectURL(e),o=new Image;o.src=r;var i=document.createElement("canvas");o.onload=function(){if(o.width&&o.height&&(o.width<n||o.height<n)){var e=xL(o.width,o.height,{minSize:n}),r=e.desW,a=e.desH;i.width=r,i.height=a,AL.resize(o,i).then((function(e){return AL.toBlob(e,"image/jpeg",1)})).then((function(e){return t(e)}))}else t(null)}}))},createResizer:function(e){var t=e.width,r=e.height,n=document.createElement("canvas"),o=n.getContext("2d");return n.width=t,n.height=r,{resize:function(e){var t=e.srcCanvas;return o.drawImage(t,0,0,n.width,n.height),n}}},resizeBlobImg:function(e,t,r){var n=document.createElement("canvas"),o=n.getContext("2d");return n.width=t,n.height=r,new Promise((function(t){var r=URL.createObjectURL(e),i=new Image;i.onload=function(){URL.revokeObjectURL(r),o.drawImage(i,0,0,n.width,n.height),n.toBlob(t,"image/jpeg",1)},i.src=r}))},blobToCanvas:function(e){var t=e.blob;return new Promise((function(e){var r=document.createElement("canvas"),n=r.getContext("2d"),o=new Image;o.onload=function(t){var i=o.width,a=o.height;r.width=i,r.height=a,URL.revokeObjectURL(t.target.src),n.drawImage(t.target,0,0),e(r)},o.src=URL.createObjectURL(t)}))}});function IL(e,t,r,n){var o=r*(4*t)+4*n;return{r:e[o],g:e[o+1],b:e[o+2]}}function PL(e,t,r){return function(e,t,r){for(var n=0,o=r[1],i=r[3],a=r[0],s=r[2],c=o;c<i;c++)for(var u=a;u<s;u++){var l=IL(e,t,c,u),d=l.r,f=l.g,p=l.b;d>=245&&p>=245&&f>245&&(n+=1)}return n}(e,t,function(e,t){var r=Math.floor(.025*e),n=e-r,o=Math.floor(.025*t);return[r,o,n,t-o]}(t,r))/(t*r)>=.001}function RL(){return(RL=eI(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.getContext("2d"),n=r.getImageData(0,0,t.width,t.height),o=n.data,nO){e.next=5;break}return e.abrupt("return",PL(o,n.width,n.height));case 5:return e.abrupt("return",nO.detectGlare(o,n.width,n.height));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var NL=Object.freeze({__proto__:null,isCardGlare:function(e){return RL.apply(this,arguments)}}),OL="internal_server_error",LL="network_error",ML=gN();function DL(e){return 500*Math.pow(1.5,e)}function UL(e){return Array.isArray(null==e?void 0:e.errors)&&e.errors.find((function(e){return e.code===OL}))}function jL(e){return"Failed to fetch"===e.message||!e.response}function FL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.maxNetworkErrorRetryTimes,n=void 0===r?5:r,o=t.maxInternalServerErrorRetryTimes,i=void 0===o?1:o,a=t.propertyKey,s=t.onDone;return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var c=this;function u(e,t){return l.apply(this,arguments)}function l(){return(l=eI(regeneratorRuntime.mark((function t(o,l){var d,f,p,h,g,m,v,y,b=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=function(){return(m=eI(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h(t),n=p(t)-r,e.next=4,jN(DL(n));case 4:return e.abrupt("return",u(r,t,n));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)},g=function(e){return m.apply(this,arguments)},h=function(e){return e===l?Math.max(o-1,0):p(e)-1},p=function(e){return e===LL?n:e===OL?i:0},f=function(e){return o>0||(e===LL?void 0===o&&n>0:e===OL&&void 0===o&&i>0)},d=b.length>2&&void 0!==b[2]?b[2]:0,v=performance.now(),t.prev=7,t.next=10,e.apply(c,r);case 10:if(y=t.sent,s({response:y,retryCount:d,propertyKey:a,timeInMs:performance.now()-v,args:r}),!UL(y)||!f(OL)){t.next=16;break}return t.next=15,g(OL);case 15:return t.abrupt("return",t.sent);case 16:return t.abrupt("return",y);case 19:if(t.prev=19,t.t0=t.catch(7),s({error:t.t0,retryCount:d,propertyKey:a,timeInMs:performance.now()-v,args:r}),!jL(t.t0)||!f(LL)){t.next=24;break}return t.abrupt("return",g(LL));case 24:throw t.t0;case 25:case"end":return t.stop()}}),t,null,[[7,19]])})))).apply(this,arguments)}return u()}}function VL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.maxNetworkErrorRetryTimes,n=void 0===r?5:r,o=t.maxInternalServerErrorRetryTimes,i=void 0===o?1:o,a=t.onDone,s=void 0===a?function(){}:a,c={get:function(e,t){var r=e[t];return"function"==typeof r&&"constructor"!==t?FL(r,{maxNetworkErrorRetryTimes:n,maxInternalServerErrorRetryTimes:i,propertyKey:t,onDone:s}):r}};return new Proxy(e,c)}var zL=function(e){var t=e.response,r=(e.error,e.retryCount,e.propertyKey,e.timeInMs);return e.args,{event:"test-event",log:{request_status:t?"success":"fail",time_in_ms:r}}},KL=Object.freeze({__proto__:null,createRetryAPIClient:VL,useApiClient:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiCredentials,r=void 0===t?{}:t,n=e.tracking,o=void 0===n?{}:n,i=ov.useRef(null),a=ON(),s=a.sendEvent,c=ov.useCallback((function(e){try{var t=zL(e),r=t.event,n=t.log;s({tag:"sdk_api",event:r,log:n})}catch(e){}}),[s]);if(null===i.current){var u=r.accessKey,l=r.secretKey,d=r.apiUrl,f=o.userId,p=RN({userId:f});i.current=VL(new iN(u,l,d,{httpHeaders:oI(oI({},ML),{},{"x-request-id":p})}),{onDone:c})}return{apiClient:i.current}}}),HL="BFnYsWrH",qL="KbKcY2nb",WL=function(e){return e.split("").reverse().join("")},QL=function(e){var t=e.url;return new Promise((function(e){var r=document.createElement("script");r.onload=e,r.src=t,document.head.appendChild(r)}))},GL=window.fetch.bind(window);function XL(e){var t=e.split(","),r=t[0].match(/:(.*?);/)[1];return{u8arr:Uint8Array.from(atob(t[1]),(function(e){return e.charCodeAt(0)})),mime:r}}var YL=function(){var e=eI(regeneratorRuntime.mark((function e(){var t,r,n,o,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="".concat(WL(HL)).concat(WL(qL)),e.next=3,GL.apply(void 0,i);case 3:return r=e.sent,e.next=6,r.text();case 6:return n=e.sent,o=SN.AES.decrypt(n,t).toString(SN.enc.Utf8),e.abrupt("return",XL(o));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$L=function(){var e=eI(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GL.apply(void 0,n);case 2:return t=e.sent,e.next=5,t.text();case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ZL=Object.freeze({__proto__:null,reverseString:WL,loadExternalScript:QL,fetchWithDecryption:YL,fetchRawResource:$L}),JL=/^\s+|\s+$/g,eM=/^[-+]0x[0-9a-f]+$/i,tM=/^0b[01]+$/i,rM=/^0o[0-7]+$/i,nM=parseInt,oM=function(e){return e?1/0===(e=function(e){if("number"==typeof e)return e;if(yR(e))return NaN;if(II(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=II(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(JL,"");var r=tM.test(e);return r||rM.test(e)?nM(e.slice(2),r?2:8):eM.test(e)?NaN:+e}(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},iM=function(e,t){var r;if("function"!=typeof t)throw new TypeError("Expected a function");return e=function(e){var t=oM(e),r=t%1;return t==t?r?t-r:t:0}(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}},aM=function(e){return iM(2,e)}(function(){var e=eI(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c,u,l,d,f,p,h=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=h.length>0&&void 0!==h[0]?h[0]:{},r=t.tfUrl,n=void 0===r?"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.11.0":r,o=t.tfBackendWasmUrl,i=void 0===o?"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm@3.11.0/dist/tf-backend-wasm.js":o,a=t.tfBackendCpuUrl,s=void 0===a?"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-cpu@3.11.0":a,c=t.tfBackendWebGlUrl,u=void 0===c?"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl@3.11.0":c,l=t.tfLiteUrl,d=void 0===l?"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-tflite@0.0.1-alpha.7/dist/tf-tflite.min.js":l,f=t.blazefaceScriptUrl,p=void 0===f?"https://cdn.jsdelivr.net/npm/@tensorflow-models/blazeface@0.0.7":f,e.next=3,QL({url:n});case 3:return e.next=5,Promise.all([QL({url:i}),QL({url:s}),QL({url:u}),QL({url:p}),QL({url:d})]);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());function sM(){return(sM=eI(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c,u=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{},r=t.preferredBackends,n=void 0===r?["webgl","wasm","cpu"]:r,o=window,i=o.tf,e.next=4,i.enableProdMode();case 4:a=uI(n),e.prev=5,a.s();case 7:if((s=a.n()).done){e.next=21;break}return c=s.value,e.prev=9,e.next=12,i.setBackend(c);case 12:return e.abrupt("break",21);case 15:if(e.prev=15,e.t0=e.catch(9),c!==n[n.length-1]){e.next=19;break}throw e.t0;case 19:e.next=7;break;case 21:e.next=26;break;case 23:e.prev=23,e.t1=e.catch(5),a.e(e.t1);case 26:return e.prev=26,a.f(),e.finish(26);case 29:return e.next=31,i.ready();case 31:case"end":return e.stop()}}),e,null,[[5,23,26,29],[9,15]])})))).apply(this,arguments)}function cM(){return(cM=eI(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.modelUrl,n=window,o=n.blazeface,e.abrupt("return",r?o.load({modelUrl:r}):o.load());case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uM(){return(uM=eI(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.modelUrl,e.next=3,$L(r);case 3:return n=e.sent,o=n.rawData,e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lM(){return(lM=eI(regeneratorRuntime.mark((function e(t){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.modelUrl,n=window,o=n.tflite,e.next=4,YL(r);case 4:return i=e.sent,a=i.u8arr,e.abrupt("return",o.loadTFLiteModel(a,{numThreads:navigator.hardwareConcurrency/2}));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var dM=Object.freeze({__proto__:null,loadTensorFlow:aM,initTensorFlow:function(){return sM.apply(this,arguments)},loadBlazefaceModel:function(e){return cM.apply(this,arguments)},preloadResource:function(e){return uM.apply(this,arguments)},loadTFLiteModel:function(e){return lM.apply(this,arguments)}}),fM=Object.freeze({__proto__:null,enableAntiDebug:function(){var e,t,r=["action","gger","stateObject","apply","chain","test","input","Hello World!","constructor","counter","length","debu","call"];e=r,t=185,function(t){for(;--t;)e.push(e.shift())}(++t);var n,o,i=function(e,t){return r[e-=0]};function a(e){function t(e){if("string"==typeof e)return function(e){}[i("0x5")]("while (true) {}")[i("0x0")](i("0x6"));1!=="".concat(e/e)[i("0x7")]||e%20==0?function(){return!0}[i("0x5")]("".concat(i("0x8"),"gger"))[i("0x9")](i("0xa")):function(){return!1}.constructor("debu".concat(i("0xb")))[i("0x0")](i("0xc")),t(++e)}try{if(e)return t;t(0)}catch(e){}}setInterval((function(){a()}),4e3),n=!0,o=function(e,t){var r=n?function(){if(t){var r=t[i("0x0")](e,arguments);return t=null,r}}:function(){};return n=!1,r},function(){o(this,(function(){var e=new RegExp("function *\\( *\\)"),t=new RegExp("\\+\\+ *(?:_0x(?:[a-f0-9]){4,6}|(?:\\b|\\d)[a-z0-9]{1,4}(?:\\b|\\d))","i"),r=a("init");e.test(r+i("0x1"))&&t[i("0x2")](r+i("0x3"))?a():r("0")}))()}(),console.log(i("0x4"))}}),pM=Object.freeze({__proto__:null,useThemeContext:function(){return ov.useContext(Gb)}});function hM(){return(hM=eI(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.key,n=new TextEncoder,(o=n.encode(r)).reverse(),e.abrupt("return",crypto.subtle.digest("SHA-256",o));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var gM=Object.freeze({__proto__:null,encrypt:function(e){var t=e.blob,r=e.key;return new Promise((function(e){var n=new FileReader;n.onload=function(t){var n=t.target.result;(function(e){return hM.apply(this,arguments)})({key:r}).then((function(t){window.crypto.subtle.importKey("raw",t,"AES-GCM",!0,["encrypt","decrypt"]).then((function(t){window.crypto.subtle.encrypt({name:"AES-GCM",iv:new Uint8Array(12),tagLength:128},t,n).then((function(t){var r;e({hex:(r=t,aI(new Uint8Array(r)).map((function(e){return e.toString(16).padStart(2,"0")})).join(""))})}))}))}))},n.readAsArrayBuffer(t)}))}}),mM=function(){return URL.createObjectURL(new Blob(['\'use strict\';(function(){function T(a,b){let c=[],d="";b=a.readBits([8,16,16][b]);for(let d=0;d<b;d++){let b=a.readBits(8);c.push(b)}try{d+=decodeURIComponent(c.map(a=>`%${("0"+a.toString(16)).substr(-2)}`).join(""))}catch(e){}return{bytes:c,text:d}}function U(a,b){a=new V(a);let c=9>=b?0:26>=b?1:2;for(b={text:"",bytes:[],chunks:[],version:b};4<=a.available();){var d=a.readBits(4);if(d===t.Terminator)return b;if(d===t.ECI)0===a.readBits(1)?b.chunks.push({type:r.ECI,assignmentNumber:a.readBits(7)}):\n0===a.readBits(1)?b.chunks.push({type:r.ECI,assignmentNumber:a.readBits(14)}):0===a.readBits(1)?b.chunks.push({type:r.ECI,assignmentNumber:a.readBits(21)}):b.chunks.push({type:r.ECI,assignmentNumber:-1});else if(d===t.Numeric){var e=a;d=[];for(var f="",g=e.readBits([10,12,14][c]);3<=g;){var h=e.readBits(10);if(1E3<=h)throw Error("Invalid numeric value above 999");var k=Math.floor(h/100),n=Math.floor(h/10)%10;h%=10;d.push(48+k,48+n,48+h);f+=k.toString()+n.toString()+h.toString();g-=3}if(2===g){g=e.readBits(7);\nif(100<=g)throw Error("Invalid numeric value above 99");e=Math.floor(g/10);g%=10;d.push(48+e,48+g);f+=e.toString()+g.toString()}else if(1===g){e=e.readBits(4);if(10<=e)throw Error("Invalid numeric value above 9");d.push(48+e);f+=e.toString()}d={bytes:d,text:f};b.text+=d.text;b.bytes.push(...d.bytes);b.chunks.push({type:r.Numeric,text:d.text})}else if(d===t.Alphanumeric){e=a;d=[];f="";for(g=e.readBits([9,11,13][c]);2<=g;)n=e.readBits(11),k=Math.floor(n/45),n%=45,d.push(B[k].charCodeAt(0),B[n].charCodeAt(0)),\nf+=B[k]+B[n],g-=2;1===g&&(e=e.readBits(6),d.push(B[e].charCodeAt(0)),f+=B[e]);d={bytes:d,text:f};b.text+=d.text;b.bytes.push(...d.bytes);b.chunks.push({type:r.Alphanumeric,text:d.text})}else if(d===t.Byte)d=T(a,c),b.text+=d.text,b.bytes.push(...d.bytes),b.chunks.push({type:r.Byte,bytes:d.bytes,text:d.text});else if(d===t.Kanji){f=a;d=[];e=f.readBits([8,10,12][c]);for(g=0;g<e;g++)k=f.readBits(13),k=Math.floor(k/192)<<8|k%192,k=7936>k?k+33088:k+49472,d.push(k>>8,k&255);f=(new TextDecoder("shift-jis")).decode(Uint8Array.from(d));\nd={bytes:d,text:f};b.text+=d.text;b.bytes.push(...d.bytes);b.chunks.push({type:r.Kanji,bytes:d.bytes,text:d.text})}else d===t.StructuredAppend&&b.chunks.push({type:r.StructuredAppend,currentSequence:a.readBits(4),totalSequence:a.readBits(4),parity:a.readBits(8)})}if(0===a.available()||0===a.readBits(a.available()))return b}function J(a,b){return a^b}function W(a,b,c,d){b.degree()<c.degree()&&([b,c]=[c,b]);let e=a.zero;for(var f=a.one;c.degree()>=d/2;){var g=b;let d=e;b=c;e=f;if(b.isZero())return null;\nc=g;f=a.zero;g=b.getCoefficient(b.degree());for(g=a.inverse(g);c.degree()>=b.degree()&&!c.isZero();){let d=c.degree()-b.degree(),e=a.multiply(c.getCoefficient(c.degree()),g);f=f.addOrSubtract(a.buildMonomial(d,e));c=c.addOrSubtract(b.multiplyByMonomial(d,e))}f=f.multiplyPoly(e).addOrSubtract(d);if(c.degree()>=b.degree())return null}d=f.getCoefficient(0);if(0===d)return null;a=a.inverse(d);return[f.multiply(a),c.multiply(a)]}function X(a,b){let c=new Uint8ClampedArray(a.length);c.set(a);a=new Y(285,\n256,0);var d=new w(a,c),e=new Uint8ClampedArray(b),f=!1;for(var g=0;g<b;g++){var h=d.evaluateAt(a.exp(g+a.generatorBase));e[e.length-1-g]=h;0!==h&&(f=!0)}if(!f)return c;d=new w(a,e);d=W(a,a.buildMonomial(b,1),d,b);if(null===d)return null;b=d[0];g=b.degree();if(1===g)b=[b.getCoefficient(1)];else{e=Array(g);f=0;for(h=1;h<a.size&&f<g;h++)0===b.evaluateAt(h)&&(e[f]=a.inverse(h),f++);b=f!==g?null:e}if(null==b)return null;d=d[1];e=b.length;f=Array(e);for(g=0;g<e;g++){h=a.inverse(b[g]);let c=1;for(let d=\n0;d<e;d++)g!==d&&(c=a.multiply(c,J(1,a.multiply(b[d],h))));f[g]=a.multiply(d.evaluateAt(h),a.inverse(c));0!==a.generatorBase&&(f[g]=a.multiply(f[g],h))}d=f;for(e=0;e<b.length;e++){f=c.length-1-a.log(b[e]);if(0>f)return null;c[f]^=d[e]}return c}function E(a,b){a^=b;for(b=0;a;)b++,a&=a-1;return b}function C(a,b){return b<<1|a}function Z(a,b,c){c=aa[c.dataMask];let d=a.height;var e=17+4*b.versionNumber,f=A.createEmpty(e,e);f.setRegion(0,0,9,9,!0);f.setRegion(e-8,0,8,9,!0);f.setRegion(0,e-8,9,8,!0);for(var g of b.alignmentPatternCenters)for(var h of b.alignmentPatternCenters)6===\ng&&6===h||6===g&&h===e-7||g===e-7&&6===h||f.setRegion(g-2,h-2,5,5,!0);f.setRegion(6,9,1,e-17,!0);f.setRegion(9,6,e-17,1,!0);6<b.versionNumber&&(f.setRegion(e-11,0,3,6,!0),f.setRegion(0,e-11,6,3,!0));b=f;g=[];e=h=0;f=!0;for(let k=d-1;0<k;k-=2){6===k&&k--;for(let n=0;n<d;n++){let m=f?d-1-n:n;for(let d=0;2>d;d++){let f=k-d;if(!b.get(f,m)){e++;let b=a.get(f,m);c({y:m,x:f})&&(b=!b);h=h<<1|b;8===e&&(g.push(h),h=e=0)}}}f=!f}return g}function ba(a){var b=a.height,c=Math.floor((b-17)/4);if(6>=c)return K[c-\n1];c=0;for(var d=5;0<=d;d--)for(var e=b-9;e>=b-11;e--)c=C(a.get(e,d),c);d=0;for(e=5;0<=e;e--)for(let c=b-9;c>=b-11;c--)d=C(a.get(e,c),d);a=Infinity;let f;for(let e of K){if(e.infoBits===c||e.infoBits===d)return e;b=E(c,e.infoBits);b<a&&(f=e,a=b);b=E(d,e.infoBits);b<a&&(f=e,a=b)}if(3>=a)return f}function ca(a){let b=0;for(var c=0;8>=c;c++)6!==c&&(b=C(a.get(c,8),b));for(c=7;0<=c;c--)6!==c&&(b=C(a.get(8,c),b));var d=a.height;c=0;for(var e=d-1;e>=d-7;e--)c=C(a.get(8,e),c);for(e=d-8;e<d;e++)c=C(a.get(e,\n8),c);a=Infinity;d=null;for(let {bits:f,formatInfo:g}of da){if(f===b||f===c)return g;e=E(b,f);e<a&&(d=g,a=e);b!==c&&(e=E(c,f),e<a&&(d=g,a=e))}return 3>=a?d:null}function ea(a,b,c){let d=b.errorCorrectionLevels[c],e=[],f=0;d.ecBlocks.forEach(a=>{for(let b=0;b<a.numBlocks;b++)e.push({numDataCodewords:a.dataCodewordsPerBlock,codewords:[]}),f+=a.dataCodewordsPerBlock+d.ecCodewordsPerBlock});if(a.length<f)return null;a=a.slice(0,f);b=d.ecBlocks[0].dataCodewordsPerBlock;for(c=0;c<b;c++)for(var g of e)g.codewords.push(a.shift());\nif(1<d.ecBlocks.length)for(g=d.ecBlocks[0].numBlocks,b=d.ecBlocks[1].numBlocks,c=0;c<b;c++)e[g+c].codewords.push(a.shift());for(;0<a.length;)for(let b of e)b.codewords.push(a.shift());return e}function L(a){let b=ba(a);if(!b)return null;var c=ca(a);if(!c)return null;a=Z(a,b,c);var d=ea(a,b,c.errorCorrectionLevel);if(!d)return null;c=d.reduce((a,b)=>a+b.numDataCodewords,0);c=new Uint8ClampedArray(c);a=0;for(let b of d){d=X(b.codewords,b.codewords.length-b.numDataCodewords);if(!d)return null;for(let e=\n0;e<b.numDataCodewords;e++)c[a++]=d[e]}try{return U(c,b.versionNumber)}catch(e){return null}}function M(a,b,c,d){var e=a.x-b.x+c.x-d.x;let f=a.y-b.y+c.y-d.y;if(0===e&&0===f)return{a11:b.x-a.x,a12:b.y-a.y,a13:0,a21:c.x-b.x,a22:c.y-b.y,a23:0,a31:a.x,a32:a.y,a33:1};{let h=b.x-c.x;var g=d.x-c.x;let k=b.y-c.y,n=d.y-c.y;c=h*n-g*k;g=(e*n-g*f)/c;e=(h*f-e*k)/c;return{a11:b.x-a.x+g*b.x,a12:b.y-a.y+g*b.y,a13:g,a21:d.x-a.x+e*d.x,a22:d.y-a.y+e*d.y,a23:e,a31:a.x,a32:a.y,a33:1}}}function fa(a,b,c,d){a=M(a,b,c,d);\nreturn{a11:a.a22*a.a33-a.a23*a.a32,a12:a.a13*a.a32-a.a12*a.a33,a13:a.a12*a.a23-a.a13*a.a22,a21:a.a23*a.a31-a.a21*a.a33,a22:a.a11*a.a33-a.a13*a.a31,a23:a.a13*a.a21-a.a11*a.a23,a31:a.a21*a.a32-a.a22*a.a31,a32:a.a12*a.a31-a.a11*a.a32,a33:a.a11*a.a22-a.a12*a.a21}}function ha(a,b){var c=fa({x:3.5,y:3.5},{x:b.dimension-3.5,y:3.5},{x:b.dimension-6.5,y:b.dimension-6.5},{x:3.5,y:b.dimension-3.5}),d=M(b.topLeft,b.topRight,b.alignmentPattern,b.bottomLeft),e=d.a11*c.a11+d.a21*c.a12+d.a31*c.a13,f=d.a12*c.a11+\nd.a22*c.a12+d.a32*c.a13,g=d.a13*c.a11+d.a23*c.a12+d.a33*c.a13,h=d.a11*c.a21+d.a21*c.a22+d.a31*c.a23,k=d.a12*c.a21+d.a22*c.a22+d.a32*c.a23,n=d.a13*c.a21+d.a23*c.a22+d.a33*c.a23,m=d.a11*c.a31+d.a21*c.a32+d.a31*c.a33,l=d.a12*c.a31+d.a22*c.a32+d.a32*c.a33,p=d.a13*c.a31+d.a23*c.a32+d.a33*c.a33;c=A.createEmpty(b.dimension,b.dimension);d=(a,b)=>{const c=g*a+n*b+p;return{x:(e*a+h*b+m)/c,y:(f*a+k*b+l)/c}};for(let e=0;e<b.dimension;e++)for(let f=0;f<b.dimension;f++){let b=d(f+.5,e+.5);c.set(f,e,a.get(Math.floor(b.x),\nMath.floor(b.y)))}return{matrix:c,mappingFunction:d}}function x(a){return a.reduce((a,c)=>a+c)}function ia(a,b,c){let d=y(a,b),e=y(b,c),f=y(a,c),g,h,k;e>=d&&e>=f?[g,h,k]=[b,a,c]:f>=e&&f>=d?[g,h,k]=[a,b,c]:[g,h,k]=[a,c,b];0>(k.x-h.x)*(g.y-h.y)-(k.y-h.y)*(g.x-h.x)&&([g,k]=[k,g]);return{bottomLeft:g,topLeft:h,topRight:k}}function ja(a,b,c,d){d=(x(z(a,c,d,5))/7+x(z(a,b,d,5))/7+x(z(c,a,d,5))/7+x(z(b,a,d,5))/7)/4;if(1>d)throw Error("Invalid module size");b=Math.round(y(a,b)/d);a=Math.round(y(a,c)/d);a=\nMath.floor((b+a)/2)+7;switch(a%4){case 0:a++;break;case 2:a--}return{dimension:a,moduleSize:d}}function N(a,b,c,d){let e=[{x:Math.floor(a.x),y:Math.floor(a.y)}];var f=Math.abs(b.y-a.y)>Math.abs(b.x-a.x);if(f){var g=Math.floor(a.y);var h=Math.floor(a.x);a=Math.floor(b.y);b=Math.floor(b.x)}else g=Math.floor(a.x),h=Math.floor(a.y),a=Math.floor(b.x),b=Math.floor(b.y);let k=Math.abs(a-g),n=Math.abs(b-h),m=Math.floor(-k/2),l=g<a?1:-1,p=h<b?1:-1,q=!0;for(let v=g,u=h;v!==a+l;v+=l){g=f?u:v;h=f?v:u;if(c.get(g,\nh)!==q&&(q=!q,e.push({x:g,y:h}),e.length===d+1))break;m+=n;if(0<m){if(u===b)break;u+=p;m-=k}}c=[];for(f=0;f<d;f++)e[f]&&e[f+1]?c.push(y(e[f],e[f+1])):c.push(0);return c}function z(a,b,c,d){let e=b.y-a.y,f=b.x-a.x;b=N(a,b,c,Math.ceil(d/2));a=N(a,{x:a.x-f,y:a.y-e},c,Math.ceil(d/2));c=b.shift()+a.shift()-1;return a.concat(c).concat(...b)}function F(a,b){let c=x(a)/x(b),d=0;b.forEach((b,f)=>{d+=Math.pow(a[f]-b*c,2)});return{averageSize:c,error:d}}function O(a,b,c){try{let d=z(a,{x:-1,y:a.y},c,b.length),\ne=z(a,{x:a.x,y:-1},c,b.length),f=z(a,{x:Math.max(0,a.x-a.y)-1,y:Math.max(0,a.y-a.x)-1},c,b.length),g=z(a,{x:Math.min(c.width,a.x+a.y)+1,y:Math.min(c.height,a.y+a.x)+1},c,b.length),h=F(d,b),k=F(e,b),n=F(f,b),m=F(g,b),l=(h.averageSize+k.averageSize+n.averageSize+m.averageSize)/4;return Math.sqrt(h.error*h.error+k.error*k.error+n.error*n.error+m.error*m.error)+(Math.pow(h.averageSize-l,2)+Math.pow(k.averageSize-l,2)+Math.pow(n.averageSize-l,2)+Math.pow(m.averageSize-l,2))/l}catch(d){return Infinity}}\nfunction H(a,b){for(var c=Math.round(b.x);a.get(c,Math.round(b.y));)c--;for(var d=Math.round(b.x);a.get(d,Math.round(b.y));)d++;c=(c+d)/2;for(d=Math.round(b.y);a.get(Math.round(c),d);)d--;for(b=Math.round(b.y);a.get(Math.round(c),b);)b++;return{x:c,y:(d+b)/2}}function ka(a){var b=[],c=[];let d=[];var e=[];for(let m=0;m<=a.height;m++){var f=0,g=!1;let l=[0,0,0,0,0];for(let b=-1;b<=a.width;b++){var h=a.get(b,m);if(h===g)f++;else{l=[l[1],l[2],l[3],l[4],f];f=1;g=h;var k=x(l)/7;k=Math.abs(l[0]-k)<k&&Math.abs(l[1]-\nk)<k&&Math.abs(l[2]-3*k)<3*k&&Math.abs(l[3]-k)<k&&Math.abs(l[4]-k)<k&&!h;var n=x(l.slice(-3))/3;h=Math.abs(l[2]-n)<n&&Math.abs(l[3]-n)<n&&Math.abs(l[4]-n)<n&&h;if(k){let a=b-l[3]-l[4],d=a-l[2];k={startX:d,endX:a,y:m};n=c.filter(b=>d>=b.bottom.startX&&d<=b.bottom.endX||a>=b.bottom.startX&&d<=b.bottom.endX||d<=b.bottom.startX&&a>=b.bottom.endX&&1.5>l[2]/(b.bottom.endX-b.bottom.startX)&&.5<l[2]/(b.bottom.endX-b.bottom.startX));0<n.length?n[0].bottom=k:c.push({top:k,bottom:k})}if(h){let a=b-l[4],c=a-\nl[3];h={startX:c,y:m,endX:a};k=e.filter(b=>c>=b.bottom.startX&&c<=b.bottom.endX||a>=b.bottom.startX&&c<=b.bottom.endX||c<=b.bottom.startX&&a>=b.bottom.endX&&1.5>l[2]/(b.bottom.endX-b.bottom.startX)&&.5<l[2]/(b.bottom.endX-b.bottom.startX));0<k.length?k[0].bottom=h:e.push({top:h,bottom:h})}}}b.push(...c.filter(a=>a.bottom.y!==m&&2<=a.bottom.y-a.top.y));c=c.filter(a=>a.bottom.y===m);d.push(...e.filter(a=>a.bottom.y!==m));e=e.filter(a=>a.bottom.y===m)}b.push(...c.filter(a=>2<=a.bottom.y-a.top.y));d.push(...e);\nc=[];for(var m of b)2>m.bottom.y-m.top.y||(b=(m.top.startX+m.top.endX+m.bottom.startX+m.bottom.endX)/4,e=(m.top.y+m.bottom.y+1)/2,a.get(Math.round(b),Math.round(e))&&(f=[m.top.endX-m.top.startX,m.bottom.endX-m.bottom.startX,m.bottom.y-m.top.y+1],f=x(f)/f.length,g=O({x:Math.round(b),y:Math.round(e)},[1,1,3,1,1],a),c.push({score:g,x:b,y:e,size:f})));if(3>c.length)return null;c.sort((a,b)=>a.score-b.score);m=[];for(b=0;b<Math.min(c.length,5);++b){e=c[b];f=[];for(var l of c)l!==e&&f.push(Object.assign(Object.assign({},\nl),{score:l.score+Math.pow(l.size-e.size,2)/e.size}));f.sort((a,b)=>a.score-b.score);m.push({points:[e,f[0],f[1]],score:e.score+f[0].score+f[1].score})}m.sort((a,b)=>a.score-b.score);let {topRight:p,topLeft:q,bottomLeft:v}=ia(...m[0].points);m=P(a,d,p,q,v);l=[];m&&l.push({alignmentPattern:{x:m.alignmentPattern.x,y:m.alignmentPattern.y},bottomLeft:{x:v.x,y:v.y},dimension:m.dimension,topLeft:{x:q.x,y:q.y},topRight:{x:p.x,y:p.y}});m=H(a,p);b=H(a,q);c=H(a,v);(a=P(a,d,m,b,c))&&l.push({alignmentPattern:{x:a.alignmentPattern.x,\ny:a.alignmentPattern.y},bottomLeft:{x:c.x,y:c.y},topLeft:{x:b.x,y:b.y},topRight:{x:m.x,y:m.y},dimension:a.dimension});return 0===l.length?null:l}function P(a,b,c,d,e){let f,g;try{({dimension:f,moduleSize:g}=ja(d,c,e,a))}catch(m){return null}var h=c.x-d.x+e.x,k=c.y-d.y+e.y;c=(y(d,e)+y(d,c))/2/g;e=1-3/c;let n={x:d.x+e*(h-d.x),y:d.y+e*(k-d.y)};b=b.map(b=>{const c=(b.top.startX+b.top.endX+b.bottom.startX+b.bottom.endX)/4;b=(b.top.y+b.bottom.y+1)/2;if(a.get(Math.floor(c),Math.floor(b))){var d=O({x:Math.floor(c),\ny:Math.floor(b)},[1,1,1],a)+y({x:c,y:b},n);return{x:c,y:b,score:d}}}).filter(a=>!!a).sort((a,b)=>a.score-b.score);return{alignmentPattern:15<=c&&b.length?b[0]:n,dimension:f}}function Q(a){var b=ka(a);if(!b)return null;for(let e of b){b=ha(a,e);var c=b.matrix;if(null==c)c=null;else{var d=L(c);if(d)c=d;else{for(d=0;d<c.width;d++)for(let a=d+1;a<c.height;a++)c.get(d,a)!==c.get(a,d)&&(c.set(d,a,!c.get(d,a)),c.set(a,d,!c.get(a,d)));c=L(c)}}if(c)return{binaryData:c.bytes,data:c.text,chunks:c.chunks,version:c.version,\nlocation:{topRightCorner:b.mappingFunction(e.dimension,0),topLeftCorner:b.mappingFunction(0,0),bottomRightCorner:b.mappingFunction(e.dimension,e.dimension),bottomLeftCorner:b.mappingFunction(0,e.dimension),topRightFinderPattern:e.topRight,topLeftFinderPattern:e.topLeft,bottomLeftFinderPattern:e.bottomLeft,bottomRightAlignmentPattern:e.alignmentPattern},matrix:b.matrix}}return null}function R(a,b){Object.keys(b).forEach(c=>{a[c]=b[c]})}function I(a,b,c,d={}){let e=Object.create(null);R(e,la);R(e,d);\nd="onlyInvert"===e.inversionAttempts||"invertFirst"===e.inversionAttempts;var f="attemptBoth"===e.inversionAttempts||d;var g=e.greyScaleWeights,h=e.canOverwriteImage,k=b*c;if(a.length!==4*k)throw Error("Malformed data passed to binarizer.");var n=0;if(h){var m=new Uint8ClampedArray(a.buffer,n,k);n+=k}m=new S(b,c,m);if(g.useIntegerApproximation)for(var l=0;l<c;l++)for(var p=0;p<b;p++){var q=4*(l*b+p);m.set(p,l,g.red*a[q]+g.green*a[q+1]+g.blue*a[q+2]+128>>8)}else for(l=0;l<c;l++)for(p=0;p<b;p++)q=4*\n(l*b+p),m.set(p,l,g.red*a[q]+g.green*a[q+1]+g.blue*a[q+2]);g=Math.ceil(b/8);l=Math.ceil(c/8);p=g*l;if(h){var v=new Uint8ClampedArray(a.buffer,n,p);n+=p}v=new S(g,l,v);for(p=0;p<l;p++)for(q=0;q<g;q++){var u=Infinity,r=0;for(var t=0;8>t;t++)for(let a=0;8>a;a++){let b=m.get(8*q+a,8*p+t);u=Math.min(u,b);r=Math.max(r,b)}t=(u+r)/2;t=Math.min(255,1.11*t);24>=r-u&&(t=u/2,0<p&&0<q&&(r=(v.get(q,p-1)+2*v.get(q-1,p)+v.get(q-1,p-1))/4,u<r&&(t=r)));v.set(q,p,t)}h?(p=new Uint8ClampedArray(a.buffer,n,k),n+=k,p=new A(p,\nb)):p=A.createEmpty(b,c);q=null;f&&(h?(a=new Uint8ClampedArray(a.buffer,n,k),q=new A(a,b)):q=A.createEmpty(b,c));for(b=0;b<l;b++)for(a=0;a<g;a++){c=g-3;c=2>a?2:a>c?c:a;h=l-3;h=2>b?2:b>h?h:b;k=0;for(n=-2;2>=n;n++)for(u=-2;2>=u;u++)k+=v.get(c+n,h+u);c=k/25;for(h=0;8>h;h++)for(k=0;8>k;k++)n=8*a+h,u=8*b+k,r=m.get(n,u),p.set(n,u,r<=c),f&&q.set(n,u,!(r<=c))}f=f?{binarized:p,inverted:q}:{binarized:p};let {binarized:w,inverted:x}=f;(f=Q(d?x:w))||"attemptBoth"!==e.inversionAttempts&&"invertFirst"!==e.inversionAttempts||\n(f=Q(d?w:x));return f}class A{constructor(a,b){this.width=b;this.height=a.length/b;this.data=a}static createEmpty(a,b){return new A(new Uint8ClampedArray(a*b),a)}get(a,b){return 0>a||a>=this.width||0>b||b>=this.height?!1:!!this.data[b*this.width+a]}set(a,b,c){this.data[b*this.width+a]=c?1:0}setRegion(a,b,c,d,e){for(let f=b;f<b+d;f++)for(let b=a;b<a+c;b++)this.set(b,f,!!e)}}class S{constructor(a,b,c){this.width=a;a*=b;if(c&&c.length!==a)throw Error("Wrong buffer size");this.data=c||new Uint8ClampedArray(a)}get(a,\nb){return this.data[b*this.width+a]}set(a,b,c){this.data[b*this.width+a]=c}}class V{constructor(a){this.bitOffset=this.byteOffset=0;this.bytes=a}readBits(a){if(1>a||32<a||a>this.available())throw Error("Cannot read "+a.toString()+" bits");var b=0;if(0<this.bitOffset){b=8-this.bitOffset;var c=a<b?a:b;b-=c;b=(this.bytes[this.byteOffset]&255>>8-c<<b)>>b;a-=c;this.bitOffset+=c;8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(0<a){for(;8<=a;)b=b<<8|this.bytes[this.byteOffset]&255,this.byteOffset++,\na-=8;0<a&&(c=8-a,b=b<<a|(this.bytes[this.byteOffset]&255>>c<<c)>>c,this.bitOffset+=a)}return b}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}var r;(function(a){a.Numeric="numeric";a.Alphanumeric="alphanumeric";a.Byte="byte";a.Kanji="kanji";a.ECI="eci";a.StructuredAppend="structuredappend"})(r||(r={}));var t;(function(a){a[a.Terminator=0]="Terminator";a[a.Numeric=1]="Numeric";a[a.Alphanumeric=2]="Alphanumeric";a[a.Byte=4]="Byte";a[a.Kanji=8]="Kanji";a[a.ECI=7]="ECI";a[a.StructuredAppend=\n3]="StructuredAppend"})(t||(t={}));let B="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");class w{constructor(a,b){if(0===b.length)throw Error("No coefficients.");this.field=a;let c=b.length;if(1<c&&0===b[0]){let d=1;for(;d<c&&0===b[d];)d++;if(d===c)this.coefficients=a.zero.coefficients;else for(this.coefficients=new Uint8ClampedArray(c-d),a=0;a<this.coefficients.length;a++)this.coefficients[a]=b[d+a]}else this.coefficients=b}degree(){return this.coefficients.length-1}isZero(){return 0===\nthis.coefficients[0]}getCoefficient(a){return this.coefficients[this.coefficients.length-1-a]}addOrSubtract(a){if(this.isZero())return a;if(a.isZero())return this;let b=this.coefficients;a=a.coefficients;b.length>a.length&&([b,a]=[a,b]);let c=new Uint8ClampedArray(a.length),d=a.length-b.length;for(var e=0;e<d;e++)c[e]=a[e];for(e=d;e<a.length;e++)c[e]=b[e-d]^a[e];return new w(this.field,c)}multiply(a){if(0===a)return this.field.zero;if(1===a)return this;let b=this.coefficients.length,c=new Uint8ClampedArray(b);\nfor(let d=0;d<b;d++)c[d]=this.field.multiply(this.coefficients[d],a);return new w(this.field,c)}multiplyPoly(a){if(this.isZero()||a.isZero())return this.field.zero;let b=this.coefficients,c=b.length;a=a.coefficients;let d=a.length,e=new Uint8ClampedArray(c+d-1);for(let h=0;h<c;h++){let c=b[h];for(let b=0;b<d;b++){var f=h+b,g=this.field.multiply(c,a[b]);e[f]=e[h+b]^g}}return new w(this.field,e)}multiplyByMonomial(a,b){if(0>a)throw Error("Invalid degree less than 0");if(0===b)return this.field.zero;\nlet c=this.coefficients.length;a=new Uint8ClampedArray(c+a);for(let d=0;d<c;d++)a[d]=this.field.multiply(this.coefficients[d],b);return new w(this.field,a)}evaluateAt(a){let b=0;if(0===a)return this.getCoefficient(0);let c=this.coefficients.length;if(1===a)return this.coefficients.forEach(a=>{b^=a}),b;b=this.coefficients[0];for(let d=1;d<c;d++)b=J(this.field.multiply(a,b),this.coefficients[d]);return b}}class Y{constructor(a,b,c){this.primitive=a;this.size=b;this.generatorBase=c;this.expTable=Array(this.size);\nthis.logTable=Array(this.size);a=1;for(b=0;b<this.size;b++)this.expTable[b]=a,a*=2,a>=this.size&&(a=(a^this.primitive)&this.size-1);for(a=0;a<this.size-1;a++)this.logTable[this.expTable[a]]=a;this.zero=new w(this,Uint8ClampedArray.from([0]));this.one=new w(this,Uint8ClampedArray.from([1]))}multiply(a,b){return 0===a||0===b?0:this.expTable[(this.logTable[a]+this.logTable[b])%(this.size-1)]}inverse(a){if(0===a)throw Error("Can\'t invert 0");return this.expTable[this.size-this.logTable[a]-1]}buildMonomial(a,\nb){if(0>a)throw Error("Invalid monomial degree less than 0");if(0===b)return this.zero;a=new Uint8ClampedArray(a+1);a[0]=b;return new w(this,a)}log(a){if(0===a)throw Error("Can\'t take log(0)");return this.logTable[a]}exp(a){return this.expTable[a]}}let K=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,\necBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},\n{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,\ndataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},\n{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},\n{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},\n{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,\ndataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,\ndataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},\n{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},\n{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},\n{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},\n{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,\necBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,\ndataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,\ndataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,\necBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,\ndataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,\n32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},\n{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},\n{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,\ndataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},\n{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},\n{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,\n30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},\n{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,\ndataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},\n{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,\ndataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},\n{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,\ndataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}],da=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,\ndataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,\nformatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,\ndataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,\ndataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],aa=[a=>0===(a.y+a.x)%2,a=>0===a.y%2,a=>0===a.x%3,a=>0===(a.y+a.x)%3,a=>0===(Math.floor(a.y/2)+Math.floor(a.x/3))%2,a=>0===a.x*a.y%2+a.x*a.y%3,a=>0===(a.y*a.x%2+a.y*a.x%3)%2,a=>0===((a.y+a.x)%2+a.y*a.x%3)%2],y=(a,b)=>Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2)),la={inversionAttempts:"attemptBoth",greyScaleWeights:{red:.2126,green:.7152,blue:.0722,useIntegerApproximation:!1},\ncanOverwriteImage:!0};I.default=I;let G="dontInvert",D={red:77,green:150,blue:29,useIntegerApproximation:!0};self.onmessage=a=>{let b=a.data.data;switch(a.data.type){case "decode":a=I(b.data,b.width,b.height,{inversionAttempts:G,greyScaleWeights:D});self.postMessage({type:"qrResult",data:a?a.data:null});break;case "grayscaleWeights":D.red=b.red;D.green=b.green;D.blue=b.blue;D.useIntegerApproximation=b.useIntegerApproximation;break;case "inversionMode":switch(b){case "original":G="dontInvert";break;\ncase "invert":G="onlyInvert";break;case "both":G="attemptBoth";break;default:throw Error("Invalid inversion mode");}break;case "close":self.close()}}})()\n\n']))},vM=gN(),yM=function(){function e(t){var r=this,n=t.container,o=t.lang,i=void 0===o?"en":o,a=t.assetRoot,s=void 0===a?"https://unpkg.com/@tsocial/tvweb-sdk@latest/assets":a,c=t.resourceRoot,u=t.customUrls,l=void 0===u?{}:u,d=t.enableAntiDebug,f=void 0===d||d,p=t.warmupMessage,h=t.baseComponent,g=t.component,m=void 0===g?{}:g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),tI(this,"initNativeCamera",(function(e){var t=document.createElement("div");document.body.appendChild(t);var n=ov.createRef(),o=r.component.NativeCamera;return XT.render(ov.createElement(o,rI({},e,{ref:n})),t),{openCamera:function(){n.current.click()}}})),tI(this,"runWarmUpReadIDCard",eI(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.commonSettings.customUrls,e.abrupt("return",r.component.warmUpReadIdCard(t));case 2:case"end":return e.stop()}}),e)})))),tI(this,"runPreloadEKYCResources",eI(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r.commonSettings.customUrls,r.component.preloadEKYCResources(t);case 2:case"end":return e.stop()}}),e)})))),tI(this,"destroyView",(function(){XT.unmountComponentAtNode(r.container)})),function(e,t,r,n,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}(n,"container is a required parameter"),this.container=n,this.container.style="touch-action: none; -ms-touch-action: none;";var v=ZR({resourceRoot:c,initCustomUrls:l});this.commonSettings={lang:i,assetRoot:s,customUrls:v,enableAntiDebug:f,debug:!1,warmupMessage:p},this.component=oI(oI({},h),m)}var t;return(t=[{key:"checkCamera",value:function(){return(0,this.component.checkCamera)()}},{key:"getListCamera",value:function(){return(0,this.component.getListCamera)()}},{key:"readIDCardWithApiCall",value:function(e){var t=this.component.ReadIDCardWithApiCall;XT.render(ov.createElement(eN,{value:oI({},this.commonSettings)},ov.createElement(t,rI({onClose:this.destroyView},e))),this.container)}},{key:"readIDCardUIOnly",value:function(e){var t=this.component.ReadIDCardUIOnly;XT.render(ov.createElement(eN,{value:this.commonSettings},ov.createElement(t,rI({onClose:this.destroyView},e))),this.container)}},{key:"livenessDetection",value:function(e){var t=this.component.LivenessDetection;XT.render(ov.createElement(eN,{value:oI({},this.commonSettings)},ov.createElement(t,rI({onClose:this.destroyView},e))),this.container)}},{key:"compareFaces",value:function(e){var t=e.accessKey,r=e.secretKey,n=e.apiUrl,o=e.image1,i=e.image2,a=e.onSuccess,s=e.onError;VL(new iN(t,r,n,{httpHeaders:vM})).compareFaces({image1:{id:o},image2:{id:i}}).then((function(e){a(e)})).catch((function(e){s(e)}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function bM(e){return(bM="function"==typeof Symbol&&"symbol"==Gg(Symbol.iterator)?function(e){return Gg(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Gg(e)})(e)}function wM(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function CM(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){wM(i,n,o,a,s,"next",e)}function s(e){wM(i,n,o,a,s,"throw",e)}a(void 0)}))}}function kM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EM(){return(EM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function SM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function BM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?SM(Object(r),!0).forEach((function(t){kM(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _M(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function AM(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function xM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(e,t)||IM(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TM(e){return function(e){if(Array.isArray(e))return PM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||IM(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IM(e,t){if(e){if("string"==typeof e)return PM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?PM(e,t):void 0}}function PM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var RM="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function NM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function OM(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var LM,MM,DM,UM,jM,FM,VM,zM,KM,HM,qM,WM,QM,GM=OM((function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){e.exports={BROWSER_TYPES:{CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},DEVICE_TYPES:{MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},OS_TYPES:{IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},defaultData:{isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1}}},function(e,t,r){var n,o=r(2),i=r(0),a=i.BROWSER_TYPES,s=i.OS_TYPES,c=i.DEVICE_TYPES,u=r(4),l=u.checkType,d=u.broPayload,f=u.mobilePayload,p=u.wearPayload,h=u.consolePayload,g=u.stvPayload,m=u.getNavigatorInstance,v=u.isIOS13Check,y=new o,b=y.getBrowser(),w=y.getDevice(),C=y.getEngine(),k=y.getOS(),E=y.getUA(),S=a.CHROME,B=a.CHROMIUM,_=a.IE,A=a.INTERNET_EXPLORER,x=a.OPERA,T=a.FIREFOX,I=a.SAFARI,P=a.EDGE,R=a.YANDEX,N=a.MOBILE_SAFARI,O=c.MOBILE,L=c.TABLET,M=c.SMART_TV,D=c.BROWSER,U=c.WEARABLE,j=c.CONSOLE,F=s.ANDROID,V=s.WINDOWS_PHONE,z=s.IOS,K=s.WINDOWS,H=s.MAC_OS,q=function(){return k.name===s.WINDOWS&&"10"===k.version&&"string"==typeof E&&-1!==E.indexOf("Edg/")},W=function(){return b.name===P},Q=function(){return v("iPad")},G=w.type===M,X=w.type===j,Y=w.type===U,$=b.name===N||Q(),Z=b.name===B,J=function(){switch(w.type){case O:case L:return!0;default:return!1}}()||Q(),ee=w.type===O,te=w.type===L||Q(),re=w.type===D,ne=k.name===F,oe=k.name===V,ie=k.name===z||Q(),ae=b.name===S,se=b.name===T,ce=b.name===I||b.name===N,ue=b.name===x,le=b.name===A||b.name===_,de=k.version?k.version:"none",fe=k.name?k.name:"none",pe=b.major,he=b.version,ge=b.name,me=w.vendor?w.vendor:"none",ve=w.model?w.model:"none",ye=C.name,be=C.version,we=E,Ce=W()||q(),ke=b.name===R,Ee=w.type,Se=(n=m())&&(/iPad|iPhone|iPod/.test(n.platform)||"MacIntel"===n.platform&&n.maxTouchPoints>1)&&!window.MSStream,Be=Q(),_e=v("iPhone"),Ae=v("iPod"),xe=function(){var e=m(),t=e&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)}(),Te=q(),Ie=W(),Pe=k.name===K,Re=k.name===H,Ne=l(w.type);e.exports={deviceDetect:function(){var e=Ne.isBrowser,t=Ne.isMobile,r=Ne.isTablet,n=Ne.isSmartTV,o=Ne.isConsole,i=Ne.isWearable;return e?d(e,b,C,k,E):n?g(n,C,k,E):o?h(o,C,k,E):t||r?f(Ne,w,k,E):i?p(i,C,k,E):void 0},isSmartTV:G,isConsole:X,isWearable:Y,isMobileSafari:$,isChromium:Z,isMobile:J,isMobileOnly:ee,isTablet:te,isBrowser:re,isAndroid:ne,isWinPhone:oe,isIOS:ie,isChrome:ae,isFirefox:se,isSafari:ce,isOpera:ue,isIE:le,osVersion:de,osName:fe,fullBrowserVersion:pe,browserVersion:he,browserName:ge,mobileVendor:me,mobileModel:ve,engineName:ye,engineVersion:be,getUA:we,isEdge:Ce,isYandex:ke,deviceType:Ee,isIOS13:Se,isIPad13:Be,isIPhone13:_e,isIPod13:Ae,isElectron:xe,isEdgeChromium:Te,isLegacyEdge:Ie,isWindows:Pe,isMacOs:Re}},function(e,t,r){var n;
45
+ (r=EN).mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var o=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var c=0;c<o;c++)e[t+c]^=s[c]}});return e.Decryptor=o,e}(),r.mode.CTRGladman)})),vI((function(e,t){var r,n,o;e.exports=((o=EN).mode.OFB=(n=(r=o.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}}),r.Decryptor=n,r),o.mode.OFB)})),vI((function(e,t){var r,n;e.exports=((n=EN).mode.ECB=((r=n.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),r.Decryptor=r.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),r),n.mode.ECB)})),vI((function(e,t){var r;e.exports=((r=EN).pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,o=n-r%n,i=r+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Ansix923)})),vI((function(e,t){var r;e.exports=((r=EN).pad.Iso10126={pad:function(e,t){var n=4*t,o=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(o-1)).concat(r.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126)})),vI((function(e,t){var r;e.exports=((r=EN).pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)})),vI((function(e,t){var r;e.exports=((r=EN).pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},r.pad.ZeroPadding)})),vI((function(e,t){var r;e.exports=((r=EN).pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)})),vI((function(e,t){var r,n,o,i;e.exports=(n=(r=i=EN).lib.CipherParams,o=r.enc.Hex,r.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return n.create({ciphertext:t})}},i.format.Hex)})),vI((function(e,t){var r;e.exports=(r=EN,function(){var e=r,t=e.lib.BlockCipher,n=e.algo,o=[],i=[],a=[],s=[],c=[],u=[],l=[],d=[],f=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var h=n^n<<1^n<<2^n<<3^n<<4;h=h>>>8^255&h^99,o[r]=h,i[h]=r;var g=e[r],m=e[g],v=e[m],y=257*e[h]^16843008*h;a[r]=y<<24|y>>>8,s[r]=y<<16|y>>>16,c[r]=y<<8|y>>>24,u[r]=y,y=16843009*v^65537*m^257*g^16843008*r,l[h]=y<<24|y>>>8,d[h]=y<<16|y>>>16,f[h]=y<<8|y>>>24,p[h]=y,r?(r=g^e[e[e[v^g]]],n^=e[e[n]]):r=n=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=t[a]:(u=i[a-1],a%r?r>6&&a%r==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=o[(u=u<<8|u>>>24)>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=h[a/r|0]<<24),i[a]=i[a-r]^u);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var u=i[a];else u=i[a-4];s[c]=c<4||a<=4?u:l[o[u>>>24]]^d[o[u>>>16&255]]^f[o[u>>>8&255]]^p[o[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,d,f,p,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],p=4,h=1;h<c;h++){var g=n[u>>>24]^o[l>>>16&255]^i[d>>>8&255]^a[255&f]^r[p++],m=n[l>>>24]^o[d>>>16&255]^i[f>>>8&255]^a[255&u]^r[p++],v=n[d>>>24]^o[f>>>16&255]^i[u>>>8&255]^a[255&l]^r[p++],y=n[f>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&d]^r[p++];u=g,l=m,d=v,f=y}g=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[p++],m=(s[l>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^r[p++],v=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[p++],y=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&d])^r[p++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(g)}(),r.AES)})),vI((function(e,t){var r;e.exports=(r=EN,function(){var e=r,t=e.lib,n=t.WordArray,o=t.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var u=o[i]=[],l=c[i];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+l)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+l)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(r=0;r<16;r++)d[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=u[c][((a^o[c])&l[c])>>>0];this._lBlock=a,this._rBlock=i^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function p(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=o._createHelper(d);var h=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(r)),this._des3=d.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(h)}(),r.TripleDES)})),vI((function(e,t){var r;e.exports=(r=EN,function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,s=t[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+s)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}e.RC4=t._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(a)}(),r.RC4)})),vI((function(e,t){var r;e.exports=(r=EN,function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,a=i[0],s=i[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&l,f=l<<16|65535&u;for(o[0]^=u,o[1]^=d,o[2]^=l,o[3]^=f,o[4]^=u,o[5]^=d,o[6]^=l,o[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),r.Rabbit)})),vI((function(e,t){var r;e.exports=(r=EN,function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&l,f=l<<16|65535&u;for(n[0]^=u,n[1]^=d,n[2]^=l,n[3]^=f,n[4]^=u,n[5]^=d,n[6]^=l,n[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),r.RabbitLegacy)})),vI((function(e,t){e.exports=EN}))),BN=function(e){var t=e.blob;return new Promise((function(e){var r=new FileReader;r.onload=function(t){var r=t.target.result,n=SN.MD5(SN.lib.WordArray.create(r)).toString();e(n)},r.readAsArrayBuffer(t)}))},_N=Object.freeze({__proto__:null,MD5:BN}),AN=["tracking"],xN=gN(),TN=ov.createContext(),IN={enable:!1,accessKey:"",secretKey:"",apiUrl:"",userId:""},PN=function(){var e=eI(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f,p,h,g;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.tag,n=t.event,o=t.log,i=yN(new Date),a=o,e.t0=n,e.next="sdk_mode.read_id_card_one_side"===e.t0?6:"sdk_mode.liveness"===e.t0?19:36;break;case 6:return a=pN(o),s=o.result_object,e.next=10,BN({blob:s.image.blob});case 10:if(e.t1=e.sent,a.result_object.image={blob:e.t1},delete a.result_object.recordedVideos,!s.qrScannedResult){e.next=18;break}return e.next=16,BN({blob:s.qrScannedResult.image.blob});case 16:a.result_object.qrScannedResult.image.blob=e.sent,delete a.result_object.qrScannedResult.recordedVideos;case 18:return e.abrupt("break",36);case 19:return a=pN(o),c=o.result_object,u=c.steps,l=c.frontalFaces,d=c.frontalScaledImage,f=u.map((function(e){return BN({blob:e.image.blob})})),e.next=24,Promise.all(f);case 24:return p=e.sent,u.forEach((function(e,t){a.result_object.steps[t].image.blob=p[t]})),h=l.map((function(e){return BN({blob:e})})),e.next=29,Promise.all(h);case 29:if(g=e.sent,l.forEach((function(e,t){a.result_object.frontalFaces[t]=g[t]})),!d){e.next=35;break}return e.next=34,BN({blob:d});case 34:a.result_object.frontalScaledImage=e.sent;case 35:return e.abrupt("break",36);case 36:return e.abrupt("return",{tag:r,event:n,log:oI({device_time:i},a)});case 37:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function RN(e){var t,r=e.userId;if(r)t=r;else{var n=CN("user-id");if(n)t=n;else{var o=fN();t=o,wN(o,"user-id")}}return t}function NN(e){var t=e.value,r=e.children,n=t.tracking,o=void 0===n?IN:n,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,AN),a=o.enable,s=o.accessKey,c=o.secretKey,u=o.apiUrl,l=o.userId,d=ov.useMemo((function(){return a?u&&s&&c?new iN(s,c,u):(console.error("apiUrl, accessKey and secretKey are required when tracking is enabled"),null):null}),[a,s,c,u]),f=ov.useMemo((function(){var e=RN({userId:l});return oI(oI({},xN),{},{"x-request-id":e})}),[l]),p=ov.useCallback(eI(regeneratorRuntime.mark((function e(){var t,r,n,o,i,s,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},r=t.tag,n=t.event,o=t.log,i=void 0===o?{}:o,!a){e.next=11;break}return e.prev=2,e.next=5,PN({tag:r,event:n,log:i});case 5:s=e.sent,d.httpClient.post("/v1/log_events",s,f),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:case"end":return e.stop()}}),e,null,[[2,9]])}))),[d,f,a]);return ov.createElement(TN.Provider,{value:oI(oI({},i),{},{sendEvent:p})},r)}function ON(){var e=ov.useContext(TN);return void 0===e?(console.warn("useSDKTracking must be used within a SDKTrackingProvider"),{sendEvent:function(){}}):e}NN.propTypes={value:Tv.shape({tracking:Tv.shape({enable:Tv.bool,accessKey:Tv.string,secretKey:Tv.string,apiUrl:Tv.string,userId:Tv.string})}).isRequired,children:Tv.node.isRequired};var LN=Object.freeze({__proto__:null,defaultTrackingConfig:IN,getXRequestId:RN,SDKTrackingProvider:NN,useSDKTracking:ON});function MN(e,t){return e&&!e.endsWith("/")?[e,"/",t].join(""):[e,t].join("")}function DN(){var e=tN();return null==e?void 0:e.assetRoot}var UN=Object.freeze({__proto__:null,getAsset:MN,useAssetRoot:DN,useAsset:function(e){return MN(DN(),e)}});function jN(e){return new Promise((function(t){return setTimeout(t,e)}))}var FN=Object.freeze({__proto__:null,sleep:jN}),VN=Symbol("Comlink.proxy"),zN=Symbol("Comlink.endpoint"),KN=Symbol("Comlink.releaseProxy"),HN=Symbol("Comlink.thrown"),qN=function(e){return"object"==Gg(e)&&null!==e||"function"==typeof e},WN=new Map([["proxy",{canHandle:function(e){return qN(e)&&e[VN]},serialize:function(e){var t=new MessageChannel,r=t.port1,n=t.port2;return QN(e,r),[n,[n]]},deserialize:function(e){return e.start(),XN(e)}}],["throw",{canHandle:function(e){return qN(e)&&HN in e},serialize:function(e){var t=e.value;return[t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[]]},deserialize:function(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function QN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:self;t.addEventListener("message",(function r(n){if(n&&n.data){var o,i=Object.assign({path:[]},n.data),a=i.id,s=i.type,c=i.path,u=(n.data.argumentList||[]).map(tO);try{var l=c.slice(0,-1).reduce((function(e,t){return e[t]}),e),d=c.reduce((function(e,t){return e[t]}),e);switch(s){case"GET":o=d;break;case"SET":l[c.slice(-1)[0]]=tO(n.data.value),o=!0;break;case"APPLY":o=d.apply(l,u);break;case"CONSTRUCT":o=function(e){return Object.assign(e,Jg({},VN,!0))}(am(d,dm(u)));break;case"ENDPOINT":var f=new MessageChannel,p=f.port1,h=f.port2;QN(e,h),o=function(e,t){return JN.set(e,t),e}(p,[p]);break;case"RELEASE":o=void 0;break;default:return}}catch(e){o=Jg({value:e},HN,0)}Promise.resolve(o).catch((function(e){return Jg({value:e},HN,0)})).then((function(e){var n=lm(eO(e),2),o=n[0],i=n[1];t.postMessage(Object.assign(Object.assign({},o),{id:a}),i),"RELEASE"===s&&(t.removeEventListener("message",r),GN(t))}))}})),t.start&&t.start()}function GN(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function XN(e,t){return $N(e,[],t)}function YN(e){if(e)throw new Error("Proxy has been released and is not useable")}function $N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=!1,o=new Proxy(r,{get:function(r,i){if(YN(n),i===KN)return function(){return rO(e,{type:"RELEASE",path:t.map((function(e){return e.toString()}))}).then((function(){GN(e),n=!0}))};if("then"===i){if(0===t.length)return{then:function(){return o}};var a=rO(e,{type:"GET",path:t.map((function(e){return e.toString()}))}).then(tO);return a.then.bind(a)}return $N(e,[].concat(dm(t),[i]))},set:function(r,o,i){YN(n);var a=lm(eO(i),2),s=a[0],c=a[1];return rO(e,{type:"SET",path:[].concat(dm(t),[o]).map((function(e){return e.toString()})),value:s},c).then(tO)},apply:function(r,o,i){YN(n);var a=t[t.length-1];if(a===zN)return rO(e,{type:"ENDPOINT"}).then(tO);if("bind"===a)return $N(e,t.slice(0,-1));var s=lm(ZN(i),2),c=s[0],u=s[1];return rO(e,{type:"APPLY",path:t.map((function(e){return e.toString()})),argumentList:c},u).then(tO)},construct:function(r,o){YN(n);var i=lm(ZN(o),2),a=i[0],s=i[1];return rO(e,{type:"CONSTRUCT",path:t.map((function(e){return e.toString()})),argumentList:a},s).then(tO)}});return o}function ZN(e){var t,r=e.map(eO);return[r.map((function(e){return e[0]})),(t=r.map((function(e){return e[1]})),Array.prototype.concat.apply([],t))]}var JN=new WeakMap;function eO(e){var t,r=hm(WN);try{for(r.s();!(t=r.n()).done;){var n=lm(t.value,2),o=n[0],i=n[1];if(i.canHandle(e)){var a=lm(i.serialize(e),2);return[{type:"HANDLER",name:o,value:a[0]},a[1]]}}}catch(e){r.e(e)}finally{r.f()}return[{type:"RAW",value:e},JN.get(e)||[]]}function tO(e){switch(e.type){case"HANDLER":return WN.get(e.name).deserialize(e.value);case"RAW":return e.value}}function rO(e,t,r){return new Promise((function(n){var o=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");e.addEventListener("message",(function t(r){r.data&&r.data.id&&r.data.id===o&&(e.removeEventListener("message",t),n(r.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),r)}))}var nO=function(){if(!window.Worker)return null;var e=new Blob(['const t=Symbol("Comlink.proxy"),e=Symbol("Comlink.endpoint"),r=Symbol("Comlink.releaseProxy"),n=Symbol("Comlink.thrown"),a=t=>"object"==typeof t&&null!==t||"function"==typeof t,o=new Map([["proxy",{canHandle:e=>a(e)&&e[t],serialize(t){const{port1:e,port2:r}=new MessageChannel;return i(t,e),[r,[r]]},deserialize(t){return t.start(),s(t,[],e);var e}}],["throw",{canHandle:t=>a(t)&&n in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function i(e,r=self){r.addEventListener("message",(function a(o){if(!o||!o.data)return;const{id:c,type:s,path:l}=Object.assign({path:[]},o.data),g=(o.data.argumentList||[]).map(m);let p;try{const r=l.slice(0,-1).reduce(((t,e)=>t[e]),e),n=l.reduce(((t,e)=>t[e]),e);switch(s){case"GET":p=n;break;case"SET":r[l.slice(-1)[0]]=m(o.data.value),p=!0;break;case"APPLY":p=n.apply(r,g);break;case"CONSTRUCT":p=function(e){return Object.assign(e,{[t]:!0})}(new n(...g));break;case"ENDPOINT":{const{port1:t,port2:r}=new MessageChannel;i(e,r),p=function(t,e){return f.set(t,e),t}(t,[t])}break;case"RELEASE":p=void 0;break;default:return}}catch(t){p={value:t,[n]:0}}Promise.resolve(p).catch((t=>({value:t,[n]:0}))).then((t=>{const[e,n]=h(t);r.postMessage(Object.assign(Object.assign({},e),{id:c}),n),"RELEASE"===s&&(r.removeEventListener("message",a),u(r))}))})),r.start&&r.start()}function u(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function c(t){if(t)throw new Error("Proxy has been released and is not useable")}function s(t,n=[],a=function(){}){let o=!1;const i=new Proxy(a,{get(e,a){if(c(o),a===r)return()=>g(t,{type:"RELEASE",path:n.map((t=>t.toString()))}).then((()=>{u(t),o=!0}));if("then"===a){if(0===n.length)return{then:()=>i};const e=g(t,{type:"GET",path:n.map((t=>t.toString()))}).then(m);return e.then.bind(e)}return s(t,[...n,a])},set(e,r,a){c(o);const[i,u]=h(a);return g(t,{type:"SET",path:[...n,r].map((t=>t.toString())),value:i},u).then(m)},apply(r,a,i){c(o);const u=n[n.length-1];if(u===e)return g(t,{type:"ENDPOINT"}).then(m);if("bind"===u)return s(t,n.slice(0,-1));const[f,h]=l(i);return g(t,{type:"APPLY",path:n.map((t=>t.toString())),argumentList:f},h).then(m)},construct(e,r){c(o);const[a,i]=l(r);return g(t,{type:"CONSTRUCT",path:n.map((t=>t.toString())),argumentList:a},i).then(m)}});return i}function l(t){const e=t.map(h);return[e.map((t=>t[0])),(r=e.map((t=>t[1])),Array.prototype.concat.apply([],r))];var r}const f=new WeakMap;function h(t){for(const[e,r]of o)if(r.canHandle(t)){const[n,a]=r.serialize(t);return[{type:"HANDLER",name:e,value:n},a]}return[{type:"RAW",value:t},f.get(t)||[]]}function m(t){switch(t.type){case"HANDLER":return o.get(t.name).deserialize(t.value);case"RAW":return t.value}}function g(t,e,r){return new Promise((n=>{const a=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.addEventListener("message",(function e(r){r.data&&r.data.id&&r.data.id===a&&(t.removeEventListener("message",e),n(r.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:a},e),r)}))}var p=[[0,1,0],[1,-4,1],[0,1,0]];function d(t,e,r,n){return t[4*(r*e+n)]}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(a)throw o}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return b(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var E="frontal",S="left",w="right",M="up",k="down",_=0,A=1,R=2;function L(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=y(t,2),a=n[0],o=n[1],i=y(e,2),u=i[0],c=i[1],s=[a[0],o[0]],l=[a[1],o[1]];return s[0]+r<=u[0]&&c[0]<=s[1]-r&&l[0]+r<=u[1]&&c[1]<=l[1]-.8*r?R:s[0]<=u[0]||c[0]<=s[1]||l[0]<=u[1]||c[1]<=l[1]?A:_}var P={code:"no_face",msg:{en:"Face not found",vi:"Không tìm thấy khuôn mặt"}},O={code:"partial_face",msg:{en:"Face out of the box",vi:"Không tìm thấy toàn bộ khuôn mặt"}},j={code:"multiple_faces",msg:{en:"Too many faces",vi:"Quá nhiều khuôn mặt"}},T={code:"face_too_small",msg:{en:"Face too small",vi:"Khuôn mặt quá nhỏ"}},F={code:"face_too_large",msg:{en:"Face too large",vi:"Khuôn mặt quá to"}},x={code:"face_out_of_box",msg:{en:"Face is out of box",vi:"Khuôn mặt không nằm trọn vẹn trong khung ảnh"}};function C(t){return Math.pow(Math.pow(t[0],2)+Math.pow(t[1],2),.5)}function N(t,e){return[t[0]-e[0],t[1]-e[1]]}function z(t,e,r,n){var a=r*(4*e)+4*n;return{r:t[a],g:t[a+1],b:t[a+2]}}i({calculateBlurScoreFunc:function(t){for(var e=t.data,r=t.reducedWidth,n=t.reducedHeight,a=0;a<e.length;a+=4){var o=(e[a]+e[a+1]+e[a+2])/3;e[a]=o}for(var i=0,u=0,c=n-1,s=r-1,l=1;l<c;l++)for(var f=1;f<s;f++){var h=p[0][0]*d(e,r,f-1,l-1)+p[0][1]*d(e,r,f,l-1)+p[0][2]*d(e,r,f+1,l-1)+p[1][0]*d(e,r,f-1,l)+p[1][1]*d(e,r,f,l)+p[1][2]*d(e,r,f+1,l)+p[2][0]*d(e,r,f-1,l+1)+p[2][1]*d(e,r,f,l+1)+p[2][2]*d(e,r,f+1,l+1);(h=Math.abs(h))>25&&i++,h>15&&h<25&&u++}var m=0;return i+u!==0&&(m=i/(i+u)),m},calculateFaceDirectionFunc:function(t){var e=t.landmarks,r=t.getPerfectFrontal,n=function(t){var e,r,n,a,o,i,u,c=y(t,4),s=c[0],l=c[1],f=c[2],h=c[3],m=N(l,s),g=C(m),p=(a=l,e=[(n=s)[0]+a[0],n[1]+a[1]],r=2,[e[0]/r,e[1]/r]),d=N(f,p),v=C(N(h,f)),b=N(h,p),E=C(b),S=(d[0]*b[0]+d[1]*b[1])/E,w=v/E;if(g>.5*E)o=(d[0]*m[0]+d[1]*m[1])/g/g;else{var M=C(N(d,function(t,e){return[t[0]*e,t[1]*e]}(b,S/E)));u=b,o=((i=d)[0]*u[1]-u[0]*i[1]>=0?1:-1)*M/g}return{left_right_score:o,up_down_score:w}}(e),a=n.left_right_score,o=n.up_down_score,i=y(e,3),u=i[0],c=i[1],s=i[2],l=c[0]-s[0],f=u[0]-s[0],h=r?.1:.3,m=o>.7,g=o<.42,p=a>=.35&&a<=.6,d=a<=-.35&&a>=-.6;return o>=.42&&o<=.7&&a>-h&&a<h&&l*f<0?{gesture:E,leftRightScore:a}:m&&!d&&!p?{gesture:M,leftRightScore:a}:g&&!d&&!p?{gesture:k,leftRightScore:a}:p&&!m&&!g?{gesture:w,leftRightScore:a}:d&&!m&&!g?{gesture:S,leftRightScore:a}:null},validatePredictionsFunc:function(t){var e,r,n,a,o,i,u,c,s,l,f,h,m,g,p,d,b,E,S,w,M,k,C,N,z,H,I,D,K,G,W,U,q=t.predictions,Y=t.width,B=[[0,0],[Y,t.height]],Q=q.reduce((function(t,e){var r=e.topLeft,n=e.bottomRight,a=e.probability,o=e.landmarks;a<.9||o.length<6||function(t){var e=t.small,r=e.coords,n=e.area,a=t.big,o=a.coords,i=a.area,u=n;if(!u){var c=y(r,2),s=c[0],l=c[1];u=(l[0]-s[0])*(l[1]-s[1])}var f=i;if(!f){var h=y(o,2),m=h[0],g=h[1];f=(g[0]-m[0])*(g[1]-m[1])}return u/f}({small:{coords:[r,n]},big:{coords:B}})<=.025?t[_].push(e):t[L(B,[r,n])].push(e);return t}),(v(e={},A,[]),v(e,R,[]),v(e,_,[]),e)),X=Q[R].length,$=Q[A].length;if(0===X)r=$>0?O:P;else if(X+$>1)r=j;else{var J=n=Q[R][0],V=J.topLeft,Z=J.bottomRight,tt=(C=B,N=y([V,Z],2),z=N[0],H=N[1],I=y(C,2),D=I[0],K=I[1],G=H[0]-z[0],W=H[1]-z[1],U=K[0]-D[0],G/U<W/U?G/U:W/U);tt<.4&&(r=T),tt>.61&&(r=F),L(B,(a=n.landmarks,u=a[0],c=a[1],s=a[2],l=a[3],f=a[4],h=a[5],m=.5*(u[1]+c[1]),g=m+1.5*(m-l[1]),p=l[1]-1.2*(s[1]-l[1]),d=[u[0],c[0],s[0],l[0],f[0],h[0]],b=Math.min.apply(Math,d),E=Math.min(g,p),S=Math.max.apply(Math,d),w=Math.max(g,p),M=Math.abs(l[0]-f[0])/Math.abs(l[0]-h[0]),k=l[0]-f[0]<0&&h[0]-l[0]>.05*(S-b),l[0]-f[0]>0&&h[0]-l[0]<-.05*(S-b)?(o=.2,i=.1):k?(o=.1,i=.2):M>2||M<.5?(o=.15,i=.15):(o=.05,i=.05),[[b-o*(S-b),E],[S+i*(S-b),w]]),.05*Y)!==R&&(r=x)}return{error:r,fullFace:n}},detectGlare:function(t,e,r){return function(t,e,r){for(var n=0,a=r[1],o=r[3],i=r[0],u=r[2],c=a;c<o;c++)for(var s=i;s<u;s++){var l=z(t,e,c,s),f=l.r,h=l.g,m=l.b;f>=245&&m>=245&&h>245&&(n+=1)}return n}(t,e,function(t,e){var r=Math.floor(.025*t),n=t-r,a=Math.floor(.025*e);return[r,a,n,e-a]}(e,r))/(e*r)>=.001}});']),t=URL.createObjectURL(e);return XN(new Worker(t))}(),oO=[[0,1,0],[1,-4,1],[0,1,0]];function iO(e,t,r,n){return e[4*(r*t+n)]}function aO(e){for(var t=e.data,r=e.reducedWidth,n=e.reducedHeight,o=0;o<t.length;o+=4){var i=(t[o]+t[o+1]+t[o+2])/3;t[o]=i}for(var a=0,s=0,c=n-1,u=r-1,l=1;l<c;l++)for(var d=1;d<u;d++){var f=oO[0][0]*iO(t,r,d-1,l-1)+oO[0][1]*iO(t,r,d,l-1)+oO[0][2]*iO(t,r,d+1,l-1)+oO[1][0]*iO(t,r,d-1,l)+oO[1][1]*iO(t,r,d,l)+oO[1][2]*iO(t,r,d+1,l)+oO[2][0]*iO(t,r,d-1,l+1)+oO[2][1]*iO(t,r,d,l+1)+oO[2][2]*iO(t,r,d+1,l+1);(f=Math.abs(f))>25&&a++,f>15&&f<25&&s++}var p=0;return a+s!==0&&(p=a/(a+s)),p}function sO(e){var t=e.width,r=e.height,n=e.getContext("2d"),o=Math.floor(t/2.8),i=Math.floor(r/2.8),a=t-o,s=r-i;return{data:n.getImageData(Math.floor(o/2),Math.floor(i/2),a,s).data,reducedWidth:a,reducedHeight:s}}function cO(){return(cO=eI(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=sO(t),nO){e.next=3;break}return e.abrupt("return",aO(r));case 3:return e.abrupt("return",nO.calculateBlurScoreFunc(r));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uO(e,t,r,n){return e[4*(n*t+r)]}var lO=Object.freeze({__proto__:null,calculateBlurScore:function(e){return cO.apply(this,arguments)},hasBetterBlurScore:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return null===t||e-t>r},hasBetterCardBlurScore:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return null===t||t-e>r},calculateIdCardBlurScore:function(e){var t=e.canvas,r=document.createElement("canvas"),n=r.getContext("2d");r.width=430,r.height=270,n.drawImage(t,0,0,r.width,r.height);var o=Math.floor(129),i=Math.floor(13.5),a=Math.floor(408.5),s=Math.floor(256.5),c=document.createElement("canvas"),u=c.getContext("2d"),l=a-o,d=s-i;c.width=l,c.height=d,u.drawImage(r,o,i,l,d,0,0,l,d);for(var f=u.getImageData(0,0,l,d).data,p=0;p<f.length;p+=4){var h=Math.round(.299*f[p]+.587*f[p+1]+.114*f[p+2]);f[p]=h}for(var g=d-1,m=l-1,v=0,y=[],b=1;b<g;b++)for(var w=1;w<m;w++){var C=4*-uO(f,l,w,b)+uO(f,l,w,b-1)+uO(f,l,w,b+1)+uO(f,l,w-1,b)+uO(f,l,w+1,b);v+=C,y.push(C)}v/=(l-2)*(d-2);for(var k=0,E=0;E<y.length;E++){var S=y[E]-v;k+=Math.pow(S,2)}var B=Math.sqrt(k/y.length);return 1/(1+Math.pow(2,B/2-10))}});function dO(e){var t,r,n,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u=s.x,l=s.y,d=s.width,f=s.height,p=e.videoWidth,h=e.videoHeight,g=window.innerWidth,m=window.innerHeight,v=g/m,y=p/h;v<y?(i=u*(n=p/g),a=(l-(t=(m-g/y)/2))*(o=h/(m-2*t))):(i=(u-(r=(g-m*y)/2))*(n=p/(g-2*r)),a=l*(o=h/m));var b=d*n,w=f*o,C=b,k=w,E=Math.max(b,w)*c;return{lostX:r,lostY:t,cropWidth:b=Math.floor(Math.min(p,b+2*E)),cropHeight:w=Math.floor(Math.min(h,w+2*E)),cropX:i=Math.floor(Math.max(0,i-E)),cropY:a=Math.floor(Math.max(0,a-E)),cropWidthWithoutPadding:C,cropHeightWithoutPadding:k}}var fO=Object.freeze({__proto__:null,analyzeVideoAndWindowSizes:dO,takePicture:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.canvas,n=t.video,o=t.cropArea,i=t.quality,a=void 0===i?1:i;if(r)e=r;else{var s=dO(n,o),c=s.cropWidth,u=s.cropHeight,l=s.cropX,d=s.cropY,f=(e=document.createElement("canvas")).getContext("2d");e.width=c,e.height=u,f.drawImage(n,l,d,c,u,0,0,c,u)}return new Promise((function(t){e.toBlob(t,"image/jpeg",a)}))}}),pO=function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=[e[r],e[t]];e[t]=n[0],e[r]=n[1]}return e},hO=Object.freeze({__proto__:null,shuffleArray:pO}),gO={NONE:0,PARTIAL:1,FULL:2};function mO(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=iI(e,2),o=n[0],i=n[1],a=iI(t,2),s=a[0],c=a[1],u=[o[0],i[0]],l=[o[1],i[1]];return u[0]+r<=s[0]&&c[0]<=u[1]-r&&l[0]+r<=s[1]&&c[1]<=l[1]-.8*r?gO.FULL:u[0]<=s[0]||c[0]<=u[1]||l[0]<=s[1]||c[1]<=l[1]?gO.PARTIAL:gO.NONE}function vO(e){var t=e.small,r=t.coords,n=t.area,o=e.big,i=o.coords,a=o.area,s=n;if(!s){var c=iI(r,2),u=c[0],l=c[1];s=(l[0]-u[0])*(l[1]-u[1])}var d=a;if(!d){var f=iI(i,2),p=f[0],h=f[1];d=(h[0]-p[0])*(h[1]-p[1])}return s/d}function yO(e,t){var r=iI(e,2),n=r[0],o=r[1],i=iI(t,2),a=i[0],s=i[1],c=o[0]-n[0],u=o[1]-n[1],l=s[0]-a[0];return c/l<u/l?c/l:u/l}var bO=Object.freeze({__proto__:null,ContainMode:gO,rectContains:mO,rectAreaRatio:vO,rectEdgeRatio:yO,isFaceCenter:function(e,t){var r=iI(e,2),n=r[0],o=r[1],i=iI(t,2),a=i[0],s=i[1],c=o[0]-n[0],u=o[1]-n[1],l=s[0]-a[0],d=Math.abs(n[0]-(l-c)/2)/l<.2,f=Math.abs(n[1]-(l-u)/2)/l<.2;return!(!d||!f)}});function wO(e){return Math.pow(Math.pow(e[0],2)+Math.pow(e[1],2),.5)}function CO(e,t){return[e[0]-t[0],e[1]-t[1]]}function kO(e){var t=e.landmarks,r=e.getPerfectFrontal,n=function(e){var t,r,n,o,i,a,s=iI(e,4),c=s[0],u=s[1],l=s[2],d=s[3],f=CO(u,c),p=wO(f),h=(n=u,2,[(t=[(r=c)[0]+n[0],r[1]+n[1]])[0]/2,t[1]/2]),g=CO(l,h),m=wO(CO(d,l)),v=CO(d,h),y=wO(v),b=(g[0]*v[0]+g[1]*v[1])/y,w=m/y;if(p>.5*y)o=(g[0]*f[0]+g[1]*f[1])/p/p;else{var C=wO(CO(g,function(e,t){return[e[0]*t,e[1]*t]}(v,b/y)));a=v,o=((i=g)[0]*a[1]-a[0]*i[1]>=0?1:-1)*C/p}return{left_right_score:o,up_down_score:w}}(t),o=n.left_right_score,i=n.up_down_score,a=iI(t,3),s=a[0],c=a[1],u=a[2],l=c[0]-u[0],d=s[0]-u[0],f=r?.1:.3,p=i>.7,h=i<.42,g=o>=.35&&o<=.6,m=o<=-.35&&o>=-.6;return i>=.42&&i<=.7&&o>-f&&o<f&&l*d<0?{gesture:$T.FRONTAL,leftRightScore:o}:!p||m||g?!h||m||g?!g||p||h?!m||p||h?null:{gesture:$T.LEFT,leftRightScore:o}:{gesture:$T.RIGHT,leftRightScore:o}:{gesture:$T.DOWN,leftRightScore:o}:{gesture:$T.UP,leftRightScore:o}}function EO(e){var t,r,n,o,i,a,s,c,u,l,d,f,p,h,g,m,v,y,b,w,C,k,E=e.predictions,S=e.width,B=[[0,0],[S,e.height]],_=E.reduce((function(e,t){var r=t.topLeft,n=t.bottomRight,o=t.probability,i=t.landmarks;return o<.9||i.length<6||vO({small:{coords:[r,n]},big:{coords:B}})<=.025?e[gO.NONE].push(t):e[mO(B,[r,n])].push(t),e}),(tI(t={},gO.PARTIAL,[]),tI(t,gO.FULL,[]),tI(t,gO.NONE,[]),t)),A=_[gO.FULL].length,x=_[gO.PARTIAL].length;if(0===A)r=x>0?YT.partial_face:YT.no_face;else if(A+x>1)r=YT.multiple_faces;else{var T=n=_[gO.FULL][0],I=yO([T.topLeft,T.bottomRight],B);I<.4&&(r=YT.face_too_small),I>.61&&(r=YT.face_too_large),mO(B,(s=(o=n.landmarks)[0],c=o[1],u=o[2],l=o[3],d=o[4],f=o[5],h=(p=.5*(s[1]+c[1]))+1.5*(p-l[1]),g=l[1]-1.2*(u[1]-l[1]),m=[s[0],c[0],u[0],l[0],d[0],f[0]],v=Math.min.apply(Math,m),y=Math.min(h,g),b=Math.max.apply(Math,m),w=Math.max(h,g),C=Math.abs(l[0]-d[0])/Math.abs(l[0]-f[0]),k=l[0]-d[0]<0&&f[0]-l[0]>.05*(b-v),l[0]-d[0]>0&&f[0]-l[0]<-.05*(b-v)?(i=.2,a=.1):k?(i=.1,a=.2):C>2||C<.5?(i=.15,a=.15):(i=.05,a=.05),[[v-i*(b-v),y],[b+a*(b-v),w]]),.05*S)!==gO.FULL&&(r=YT.face_out_of_box)}return{error:r,fullFace:n}}function SO(e,t){var r=t.customInstructions,n=t.customIcon,o=t.customDirectionIcon,i=t.customStepTimeConstraints,a={};return null!=r&&r[e]&&(a.instructions=r[e]),null!=n&&n[e]&&(a.icon=n[e]),null!=o&&o[e]&&(a.directionIcon=o[e]),null!=i&&i[e]&&(a.stepTimeConstraints=i[e]),a}function BO(){return(BO=eI(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(nO){e.next=2;break}return e.abrupt("return",EO(t));case 2:return e.abrupt("return",nO.validatePredictionsFunc(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _O(){return(_O=eI(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(nO){e.next=2;break}return e.abrupt("return",kO(t));case 2:return e.abrupt("return",nO.calculateFaceDirectionFunc(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var AO=Object.freeze({__proto__:null,initFaceVerificationData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.assetRoot,r=void 0===t?"/":t,n=e.customInstructions,o=e.customIcon,i=e.customDirectionIcon,a=e.customStepTimeConstraints;return{curStepIndex:0,steps:[].concat(aI(pO([oI({name:$T.LEFT,instructions:{en:"Turn your face to the left",vi:"Quay mặt chậm qua trái"},image:{blob:null,imageId:null,objUrl:null,blurScore:null,leftRightScore:null},frontalFaceImage:{blob:null,imageId:null,blurScore:null,leftRightScore:null},icon:MN(r,"ic_face_left.svg"),directionIcon:MN(r,"arrow_left.svg"),directionIconAnimation:"slide-horizontal",firstFrameSpottedAt:null,stepTimeConstraints:{delayTime:null}},SO($T.LEFT,{customInstructions:n,customIcon:o,customDirectionIcon:i,customStepTimeConstraints:a})),oI({name:$T.RIGHT,instructions:{en:"Turn your face to the right",vi:"Quay mặt chậm qua phải"},image:{blob:null,imageId:null,objUrl:null,blurScore:null,leftRightScore:null},frontalFaceImage:{blob:null,imageId:null,blurScore:null,leftRightScore:null},icon:MN(r,"ic_face_right.svg"),directionIcon:MN(r,"arrow_right.svg"),directionIconAnimation:"slide-horizontal",firstFrameSpottedAt:null,stepTimeConstraints:{delayTime:null}},SO($T.RIGHT,{customInstructions:n,customIcon:o,customDirectionIcon:i,customStepTimeConstraints:a})),oI({name:$T.UP,instructions:{en:"Turn your face up",vi:"Ngước mặt chậm lên trên"},image:{blob:null,imageId:null,objUrl:null,blurScore:null,leftRightScore:null},frontalFaceImage:{blob:null,imageId:null,blurScore:null,leftRightScore:null},icon:MN(r,"ic_face_up.svg"),directionIcon:MN(r,"arrow_up.svg"),directionIconAnimation:"slide-vertical",firstFrameSpottedAt:null,stepTimeConstraints:{delayTime:null}},SO($T.UP,{customInstructions:n,customIcon:o,customDirectionIcon:i,customStepTimeConstraints:a}))])),[oI({name:$T.FRONTAL,instructions:{en:"Look straight into the camera",vi:"Nhìn thẳng camera"},image:{blob:null,imageId:null,objUrl:null,blurScore:null,leftRightScore:null},frontalFaceImage:{blob:null,imageId:null,blurScore:null,leftRightScore:null},icon:MN(r,"ic_face_frontal.svg"),directionIcon:MN(r,"frontal.svg"),directionIconAnimation:"blink",firstFrameSpottedAt:null,stepTimeConstraints:{delayTime:null}},SO($T.FRONTAL,{customInstructions:n,customIcon:o,customDirectionIcon:i,customStepTimeConstraints:a}))])}},validatePredictions:function(e){return BO.apply(this,arguments)},calculateFaceDirection:function(e){return _O.apply(this,arguments)},faceTracker:function(){var e=[],t=[],r=[],n=[],o=[],i=0,a=0;function s(){a=i,r=aI(e),n=aI(t)}return function(c,u){var l=c.topLeft,d=c.bottomRight,f=c.landmarks,p=[],h=iI(l,2);p[0]=h[0],p[1]=h[1];var g=iI(d,2);p[2]=g[0],p[3]=g[1];var m=[],v=[];f.forEach((function(e,t){var r=iI(e,2);m[t]=r[0],v[t]=r[1]})),i=Date.now();var y=p[2]-p[0];if(e=[].concat(m),t=[].concat(v),!r.length&&!n.length||u)return s(),{score:0,time:i};for(var b=0;b<6;b++)o[b]=Math.sqrt((e[b]-r[b])*(e[b]-r[b])+(t[b]-n[b])*(t[b]-n[b]));for(var w=0;w<6;w++)o[w]/=(i-a)*y;for(var C=0,k=0;k<6;k++)C+=o[k];return C/=6,s(),{score:C,time:i}}}}),xO=document.createElement("canvas"),TO=xO.getContext("2d");xO.width=128,xO.height=128;var IO=function(){var e=eI(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.model,n=t.sCanvas,TO.drawImage(n,0,0,xO.width,xO.height),e.abrupt("return",r.estimateFaces(xO,!1,!1,!0));case 3:case"end":return e.stop()}var n}),e)})));return function(t){return e.apply(this,arguments)}}(),PO=Object.freeze({__proto__:null,SIZE:128,getModelPredictions:IO}),RO=Object.getOwnPropertySymbols,NO=Object.prototype.hasOwnProperty,OO=Object.prototype.propertyIsEnumerable;function LO(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var MO,DO=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=LO(e),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))NO.call(r,a)&&(o[a]=r[a]);if(RO){n=RO(r);for(var s=0;s<n.length;s++)OO.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o},UO=arguments[3],jO=arguments[4],FO=arguments[5],VO=JSON.stringify,zO=function(e,t){for(var r,n=Object.keys(FO),o=0,i=n.length;o<i;o++){var a=n[o],s=FO[a].exports;if(s===e||s&&s.default===e){r=a;break}}if(!r){r=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var c={};for(o=0,i=n.length;o<i;o++)c[a=n[o]]=a;jO[r]=["function(require,module,exports){"+e+"(self); }",c]}var u=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[r]=r,jO[u]=["function(require,module,exports){var f = require("+VO(r)+");(f.default ? f.default : f)(self);}",l];var d={};!function e(t){for(var r in d[t]=!0,jO[t][1]){var n=jO[t][1][r];d[n]||e(n)}}(u);var f="("+UO+")({"+Object.keys(d).map((function(e){return VO(e)+":["+jO[e][0]+","+VO(jO[e][1])+"]"})).join(",")+"},{},["+VO(u)+"])",p=window.URL||window.webkitURL||window.mozURL||window.msURL,h=new Blob([f],{type:"text/javascript"});if(t&&t.bare)return h;var g=p.createObjectURL(h),m=new Worker(g);return m.objectURL=g,m},KO=vI((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),HO={js:!0,wasm:!0};function qO(e){if(!(this instanceof qO))return new qO(e);var t=DO({},HO,e||{});if(this.options=t,this.__cache={},this.__init_promise=null,this.__modules=t.modules||{},this.__memory=null,this.__wasm={},this.__isLE=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0],!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}qO.prototype.has_wasm=function(){if(void 0!==MO)return MO;if(MO=!1,"undefined"==typeof WebAssembly)return MO;try{var e=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),t=new WebAssembly.Module(e);return 0!==new WebAssembly.Instance(t,{}).exports.test(4)&&(MO=!0),MO}catch(e){}return MO},qO.prototype.use=function(e){return this.__modules[e.name]=e,this.options.wasm&&this.has_wasm()&&e.wasm_fn?this[e.name]=e.wasm_fn:this[e.name]=e.fn,this},qO.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error('mathlib: only "wasm" was enabled, but it\'s not supported'));var e=this;return this.__init_promise=Promise.all(Object.keys(e.__modules).map((function(t){var r=e.__modules[t];return e.options.wasm&&e.has_wasm()&&r.wasm_fn?e.__wasm[t]?null:WebAssembly.compile(e.__base64decode(r.wasm_src)).then((function(r){e.__wasm[t]=r})):null}))).then((function(){return e})),this.__init_promise},qO.prototype.__base64decode=function(e){for(var t=e.replace(/[\r\n=]/g,""),r=t.length,n=new Uint8Array(3*r>>2),o=0,i=0,a=0;a<r;a++)a%4==0&&a&&(n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=255&o),o=o<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(a));var s=r%4*6;return 0===s?(n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=255&o):18===s?(n[i++]=o>>10&255,n[i++]=o>>2&255):12===s&&(n[i++]=o>>4&255),n},qO.prototype.__reallocate=function(e){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(e/65536)}),this.__memory;var t=this.__memory.buffer.byteLength;return t<e&&this.__memory.grow(Math.ceil((e-t)/65536)),this.__memory},qO.prototype.__instance=function(e,t,r){if(t&&this.__reallocate(t),!this.__wasm[e]){var n=this.__modules[e];this.__wasm[e]=new WebAssembly.Module(this.__base64decode(n.wasm_src))}if(!this.__cache[e]){var o={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[e]=new WebAssembly.Instance(this.__wasm[e],{env:DO(o,r||{})})}return this.__cache[e]},qO.prototype.__align=function(e,t){var r=e%(t=t||8);return e+(r?t-r:0)};var WO,QO,GO,XO,YO,$O,ZO=qO;function JO(e,t,r,n,o,i){var a,s,c,u,l,d,f,p,h,g,m,v,y,b;for(h=0;h<i;h++){for(f=h,p=0,u=l=(a=e[d=h*o])*n[6],m=n[0],v=n[1],y=n[4],b=n[5],g=0;g<o;g++)c=(s=e[d])*m+a*v+u*y+l*b,l=u,u=c,a=s,r[p]=u,p++,d++;for(p--,f+=i*(o-1),u=l=(a=e[--d])*n[7],s=a,m=n[2],v=n[3],g=o-1;g>=0;g--)c=s*m+a*v+u*y+l*b,l=u,u=c,a=s,s=e[d],t[f]=r[p]+u,d--,p--,f-=i}}var eL={name:"unsharp_mask",fn:function(e,t,r,n,o,i){var a,s,c,u,l,d,f,p,h,g,m,v,y;if(!(0===n||o<.5)){o>2&&(o=2);var b=function(e,t,r){for(var n,o,i,a,s,c=t*r,u=new Uint16Array(c),l=0;l<c;l++)n=e[4*l],o=e[4*l+1],i=e[4*l+2],s=n>=o&&n>=i?n:o>=i&&o>=n?o:i,a=n<=o&&n<=i?n:o<=i&&o<=n?o:i,u[l]=257*(s+a)>>1;return u}(e,t,r),w=new Uint16Array(b);!function(e,t,r,n){if(n){var o=new Uint16Array(e.length),i=new Float32Array(Math.max(t,r)),a=function(e){e<.5&&(e=.5);var t=Math.exp(.527076)/e,r=Math.exp(-t),n=Math.exp(-2*t),o=(1-r)*(1-r)/(1+2*t*r-n);return WO=o,QO=o*(t-1)*r,GO=o*(t+1)*r,XO=-o*n,YO=2*r,$O=-n,new Float32Array([WO,QO,GO,XO,YO,$O,(WO+QO)/(1-YO-$O),(GO+XO)/(1-YO-$O)])}(n);JO(e,o,i,a,t,r),JO(o,e,i,a,r,t)}}(w,t,r,o);for(var C=n/100*4096+.5|0,k=257*i|0,E=t*r,S=0;S<E;S++)v=2*(b[S]-w[S]),Math.abs(v)>=k&&(a=e[y=4*S],s=e[y+1],c=e[y+2],d=257*((p=a>=s&&a>=c?a:s>=a&&s>=c?s:c)+(f=a<=s&&a<=c?a:s<=a&&s<=c?s:c))>>1,f===p?u=l=0:(l=d<=32767?4095*(p-f)/(p+f)|0:4095*(p-f)/(510-p-f)|0,u=a===p?65535*(s-c)/(6*(p-f))|0:s===p?21845+(65535*(c-a)/(6*(p-f))|0):43690+(65535*(a-s)/(6*(p-f))|0)),(d+=C*v+2048>>12)>65535?d=65535:d<0&&(d=0),0===l?a=s=c=d>>8:(h=2*d-(g=d<=32767?d*(4096+l)+2048>>12:d+((65535-d)*l+2048>>12))>>8,g>>=8,a=(m=u+21845&65535)>=43690?h:m>=32767?h+(6*(g-h)*(43690-m)+32768>>16):m>=10922?g:h+(6*(g-h)*m+32768>>16),s=(m=65535&u)>=43690?h:m>=32767?h+(6*(g-h)*(43690-m)+32768>>16):m>=10922?g:h+(6*(g-h)*m+32768>>16),c=(m=u-21845&65535)>=43690?h:m>=32767?h+(6*(g-h)*(43690-m)+32768>>16):m>=10922?g:h+(6*(g-h)*m+32768>>16)),e[y]=a,e[y+1]=s,e[y+2]=c)}},wasm_fn:function(e,t,r,n,o,i){if(!(0===n||o<.5)){o>2&&(o=2);var a=t*r,s=4*a,c=2*a,u=2*a,l=4*Math.max(t,r),d=s,f=d+c,p=f+u,h=p+u,g=h+l,m=this.__instance("unsharp_mask",s+c+2*u+l+32,{exp:Math.exp}),v=new Uint32Array(e.buffer);new Uint32Array(this.__memory.buffer).set(v);var y=m.exports.hsl_l16||m.exports._hsl_l16;y(0,d,t,r),(y=m.exports.blurMono16||m.exports._blurMono16)(d,f,p,h,g,t,r,o),(y=m.exports.unsharp||m.exports._unsharp)(0,0,d,f,t,r,n,i),v.set(new Uint32Array(this.__memory.buffer,0,a))}},wasm_src:"AGFzbQEAAAABMQZgAXwBfGACfX8AYAZ/f39/f38AYAh/f39/f39/fQBgBH9/f38AYAh/f39/f39/fwACGQIDZW52A2V4cAAAA2VudgZtZW1vcnkCAAEDBgUBAgMEBQQEAXAAAAdMBRZfX2J1aWxkX2dhdXNzaWFuX2NvZWZzAAEOX19nYXVzczE2X2xpbmUAAgpibHVyTW9ubzE2AAMHaHNsX2wxNgAEB3Vuc2hhcnAABQkBAAqJEAXZAQEGfAJAIAFE24a6Q4Ia+z8gALujIgOaEAAiBCAEoCIGtjgCECABIANEAAAAAAAAAMCiEAAiBbaMOAIUIAFEAAAAAAAA8D8gBKEiAiACoiAEIAMgA6CiRAAAAAAAAPA/oCAFoaMiArY4AgAgASAEIANEAAAAAAAA8L+gIAKioiIHtjgCBCABIAQgA0QAAAAAAADwP6AgAqKiIgO2OAIIIAEgBSACoiIEtow4AgwgASACIAegIAVEAAAAAAAA8D8gBqGgIgKjtjgCGCABIAMgBKEgAqO2OAIcCwu3AwMDfwR9CHwCQCADKgIUIQkgAyoCECEKIAMqAgwhCyADKgIIIQwCQCAEQX9qIgdBAEgiCA0AIAIgAC8BALgiDSADKgIYu6IiDiAJuyIQoiAOIAq7IhGiIA0gAyoCBLsiEqIgAyoCALsiEyANoqCgoCIPtjgCACACQQRqIQIgAEECaiEAIAdFDQAgBCEGA0AgAiAOIBCiIA8iDiARoiANIBKiIBMgAC8BALgiDaKgoKAiD7Y4AgAgAkEEaiECIABBAmohACAGQX9qIgZBAUoNAAsLAkAgCA0AIAEgByAFbEEBdGogAEF+ai8BACIIuCINIAu7IhGiIA0gDLsiEqKgIA0gAyoCHLuiIg4gCrsiE6KgIA4gCbsiFKKgIg8gAkF8aioCALugqzsBACAHRQ0AIAJBeGohAiAAQXxqIQBBACAFQQF0ayEHIAEgBSAEQQF0QXxqbGohBgNAIAghAyAALwEAIQggBiANIBGiIAO4Ig0gEqKgIA8iECAToqAgDiAUoqAiDyACKgIAu6CrOwEAIAYgB2ohBiAAQX5qIQAgAkF8aiECIBAhDiAEQX9qIgRBAUoNAAsLCwvfAgIDfwZ8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIgyaEAAiDSANoCIPtjgCECAEIAxEAAAAAAAAAMCiEAAiDraMOAIUIAREAAAAAAAA8D8gDaEiCyALoiANIAwgDKCiRAAAAAAAAPA/oCAOoaMiC7Y4AgAgBCANIAxEAAAAAAAA8L+gIAuioiIQtjgCBCAEIA0gDEQAAAAAAADwP6AgC6KiIgy2OAIIIAQgDiALoiINtow4AgwgBCALIBCgIA5EAAAAAAAA8D8gD6GgIgujtjgCGCAEIAwgDaEgC6O2OAIcIAYEQCAFQQF0IQogBiEJIAIhCANAIAAgCCADIAQgBSAGEAIgACAKaiEAIAhBAmohCCAJQX9qIgkNAAsLIAVFDQAgBkEBdCEIIAUhAANAIAIgASADIAQgBiAFEAIgAiAIaiECIAFBAmohASAAQX9qIgANAAsLC7wBAQV/IAMgAmwiAwRAQQAgA2shBgNAIAAoAgAiBEEIdiIHQf8BcSECAn8gBEH/AXEiAyAEQRB2IgRB/wFxIgVPBEAgAyIIIAMgAk8NARoLIAQgBCAHIAIgA0kbIAIgBUkbQf8BcQshCAJAIAMgAk0EQCADIAVNDQELIAQgByAEIAMgAk8bIAIgBUsbQf8BcSEDCyAAQQRqIQAgASADIAhqQYECbEEBdjsBACABQQJqIQEgBkEBaiIGDQALCwvTBgEKfwJAIAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6CqIQ0gBSAEbCILBEAgB0GBAmwhDgNAQQAgAi8BACADLwEAayIGQQF0IgdrIAcgBkEASBsgDk8EQCAAQQJqLQAAIQUCfyAALQAAIgYgAEEBai0AACIESSIJRQRAIAYiCCAGIAVPDQEaCyAFIAUgBCAEIAVJGyAGIARLGwshCAJ/IAYgBE0EQCAGIgogBiAFTQ0BGgsgBSAFIAQgBCAFSxsgCRsLIgogCGoiD0GBAmwiEEEBdiERQQAhDAJ/QQAiCSAIIApGDQAaIAggCmsiCUH/H2wgD0H+AyAIayAKayAQQYCABEkbbSEMIAYgCEYEQCAEIAVrQf//A2wgCUEGbG0MAQsgBSAGayAGIARrIAQgCEYiBhtB//8DbCAJQQZsbUHVqgFBqtUCIAYbagshCSARIAcgDWxBgBBqQQx1aiIGQQAgBkEAShsiBkH//wMgBkH//wNIGyEGAkACfwJAIAxB//8DcSIFBEAgBkH//wFKDQEgBUGAIGogBmxBgBBqQQx2DAILIAZBCHYiBiEFIAYhBAwCCyAFIAZB//8Dc2xBgBBqQQx2IAZqCyIFQQh2IQcgBkEBdCAFa0EIdiIGIQQCQCAJQdWqAWpB//8DcSIFQanVAksNACAFQf//AU8EQEGq1QIgBWsgByAGa2xBBmxBgIACakEQdiAGaiEEDAELIAchBCAFQanVAEsNACAFIAcgBmtsQQZsQYCAAmpBEHYgBmohBAsCfyAGIgUgCUH//wNxIghBqdUCSw0AGkGq1QIgCGsgByAGa2xBBmxBgIACakEQdiAGaiAIQf//AU8NABogByIFIAhBqdUASw0AGiAIIAcgBmtsQQZsQYCAAmpBEHYgBmoLIQUgCUGr1QJqQf//A3EiCEGp1QJLDQAgCEH//wFPBEBBqtUCIAhrIAcgBmtsQQZsQYCAAmpBEHYgBmohBgwBCyAIQanVAEsEQCAHIQYMAQsgCCAHIAZrbEEGbEGAgAJqQRB2IAZqIQYLIAEgBDoAACABQQFqIAU6AAAgAUECaiAGOgAACyADQQJqIQMgAkECaiECIABBBGohACABQQRqIQEgC0F/aiILDQALCwsL"},tL=[{win:.5,filter:function(e){return e>=-.5&&e<.5?1:0}},{win:1,filter:function(e){if(e<=-1||e>=1)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*(.54+.46*Math.cos(t/1))}},{win:2,filter:function(e){if(e<=-2||e>=2)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/2)/(t/2)}},{win:3,filter:function(e){if(e<=-3||e>=3)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/3)/(t/3)}}];function rL(e){return Math.round(16383*e)}var nL=function(e,t,r,n,o){var i,a,s,c,u,l,d,f,p,h,g,m,v,y,b,w,C,k=tL[e].filter,E=1/n,S=Math.min(1,n),B=tL[e].win/S,_=Math.floor(2*(B+1)),A=new Int16Array((_+2)*r),x=0,T=!A.subarray||!A.set;for(i=0;i<r;i++){for(a=(i+.5)*E+o,s=Math.max(0,Math.floor(a-B)),u=(c=Math.min(t-1,Math.ceil(a+B)))-s+1,l=new Float32Array(u),d=new Int16Array(u),f=0,p=s,h=0;p<=c;p++,h++)f+=g=k((p+.5-a)*S),l[h]=g;for(m=0,h=0;h<l.length;h++)m+=v=l[h]/f,d[h]=rL(v);for(d[r>>1]+=rL(1-m),y=0;y<d.length&&0===d[y];)y++;if(y<d.length){for(b=d.length-1;b>0&&0===d[b];)b--;if(w=s+y,C=b-y+1,A[x++]=w,A[x++]=C,T)for(h=y;h<=b;h++)A[x++]=d[h];else A.set(d.subarray(y,b+1),x),x+=C}else A[x++]=0,A[x++]=0}return A};function oL(e){return e<0?0:e>255?255:e}var iL=!0;try{iL=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]}catch(e){}function aL(e,t,r){if(iL)t.set(function(e){return new Uint8Array(e.buffer,0,e.byteLength)}(e),r);else for(var n=r,o=0;o<e.length;o++){var i=e[o];t[n++]=255&i,t[n++]=i>>8&255}}var sL={name:"resize",fn:function(e){var t=e.src,r=e.width,n=e.height,o=e.toWidth,i=e.toHeight,a=e.scaleX||e.toWidth/e.width,s=e.scaleY||e.toHeight/e.height,c=e.offsetX||0,u=e.offsetY||0,l=e.dest||new Uint8Array(o*i*4),d=void 0===e.quality?3:e.quality,f=e.alpha||!1,p=nL(d,r,o,a,c),h=nL(d,n,i,s,u),g=new Uint8Array(o*n*4);return function(e,t,r,n,o,i){var a,s,c,u,l,d,f,p,h,g,m,v=0,y=0;for(h=0;h<n;h++){for(l=0,g=0;g<o;g++){for(d=i[l++],f=i[l++],p=v+4*d|0,a=s=c=u=0;f>0;f--)u=u+(m=i[l++])*e[p+3]|0,c=c+m*e[p+2]|0,s=s+m*e[p+1]|0,a=a+m*e[p]|0,p=p+4|0;t[y+3]=oL(u+8192>>14),t[y+2]=oL(c+8192>>14),t[y+1]=oL(s+8192>>14),t[y]=oL(a+8192>>14),y=y+4*n|0}y=4*(h+1)|0,v=(h+1)*r*4|0}}(t,g,r,n,o,p),function(e,t,r,n,o,i){var a,s,c,u,l,d,f,p,h,g,m,v=0,y=0;for(h=0;h<n;h++){for(l=0,g=0;g<o;g++){for(d=i[l++],f=i[l++],p=v+4*d|0,a=s=c=u=0;f>0;f--)u=u+(m=i[l++])*e[p+3]|0,c=c+m*e[p+2]|0,s=s+m*e[p+1]|0,a=a+m*e[p]|0,p=p+4|0;t[y+3]=oL(u+8192>>14),t[y+2]=oL(c+8192>>14),t[y+1]=oL(s+8192>>14),t[y]=oL(a+8192>>14),y=y+4*n|0}y=4*(h+1)|0,v=(h+1)*r*4|0}}(g,l,n,o,i,h),f||function(e,t,r){for(var n=3,o=t*r*4|0;n<o;)e[n]=255,n=n+4|0}(l,o,i),l},wasm_fn:function(e){var t=e.src,r=e.width,n=e.height,o=e.toWidth,i=e.toHeight,a=e.scaleX||e.toWidth/e.width,s=e.scaleY||e.toHeight/e.height,c=e.offsetX||0,u=e.offsetY||0,l=e.dest||new Uint8Array(o*i*4),d=void 0===e.quality?3:e.quality,f=e.alpha||!1,p=nL(d,r,o,a,c),h=nL(d,n,i,s,u),g=this.__align(0+Math.max(t.byteLength,l.byteLength)),m=this.__align(g+n*o*4),v=this.__align(m+p.byteLength),y=v+h.byteLength,b=this.__instance("resize",y),w=new Uint8Array(this.__memory.buffer),C=new Uint32Array(this.__memory.buffer),k=new Uint32Array(t.buffer);return C.set(k),aL(p,w,m),aL(h,w,v),(b.exports.convolveHV||b.exports._convolveHV)(m,v,g,r,n,o,i),new Uint32Array(l.buffer).set(new Uint32Array(this.__memory.buffer,0,i*o)),f||function(e,t,r){for(var n=3,o=t*r*4|0;n<o;)e[n]=255,n=n+4|0}(l,o,i),l},wasm_src:"AGFzbQEAAAABFAJgBn9/f39/fwBgB39/f39/f38AAg8BA2VudgZtZW1vcnkCAAEDAwIAAQQEAXAAAAcZAghjb252b2x2ZQAACmNvbnZvbHZlSFYAAQkBAArmAwLBAwEQfwJAIANFDQAgBEUNACAFQQRqIRVBACEMQQAhDQNAIA0hDkEAIRFBACEHA0AgB0ECaiESAn8gBSAHQQF0IgdqIgZBAmouAQAiEwRAQQAhCEEAIBNrIRQgFSAHaiEPIAAgDCAGLgEAakECdGohEEEAIQlBACEKQQAhCwNAIBAoAgAiB0EYdiAPLgEAIgZsIAtqIQsgB0H/AXEgBmwgCGohCCAHQRB2Qf8BcSAGbCAKaiEKIAdBCHZB/wFxIAZsIAlqIQkgD0ECaiEPIBBBBGohECAUQQFqIhQNAAsgEiATagwBC0EAIQtBACEKQQAhCUEAIQggEgshByABIA5BAnRqIApBgMAAakEOdSIGQf8BIAZB/wFIG0EQdEGAgPwHcUEAIAZBAEobIAtBgMAAakEOdSIGQf8BIAZB/wFIG0EYdEEAIAZBAEobciAJQYDAAGpBDnUiBkH/ASAGQf8BSBtBCHRBgP4DcUEAIAZBAEobciAIQYDAAGpBDnUiBkH/ASAGQf8BSBtB/wFxQQAgBkEAShtyNgIAIA4gA2ohDiARQQFqIhEgBEcNAAsgDCACaiEMIA1BAWoiDSADRw0ACwsLIQACQEEAIAIgAyAEIAUgABAAIAJBACAEIAUgBiABEAALCw=="};function cL(e){var t=e||[],r={js:t.indexOf("js")>=0,wasm:t.indexOf("wasm")>=0};ZO.call(this,r),this.features={js:r.js,wasm:r.wasm&&this.has_wasm()},this.use(eL),this.use(sL)}KO(cL,ZO),cL.prototype.resizeAndUnsharp=function(e,t){var r=this.resize(e,t);return e.unsharpAmount&&this.unsharp_mask(r,e.toWidth,e.toHeight,e.unsharpAmount,e.unsharpRadius,e.unsharpThreshold),r};var uL=cL;function lL(e,t){this.create=e,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=t||2e3}lL.prototype.acquire=function(){var e,t=this;return 0!==this.available.length?e=this.available.pop():((e=this.create()).id=this.lastId++,e.release=function(){return t.release(e)}),this.acquired[e.id]=e,e},lL.prototype.release=function(e){var t=this;delete this.acquired[e.id],e.lastUsed=Date.now(),this.available.push(e),0===this.timeoutId&&(this.timeoutId=setTimeout((function(){return t.gc()}),100))},lL.prototype.gc=function(){var e=this,t=Date.now();this.available=this.available.filter((function(r){return!(t-r.lastUsed>e.idle&&(r.destroy(),1))})),0!==this.available.length?this.timeoutId=setTimeout((function(){return e.gc()}),100):this.timeoutId=0};var dL=lL;function fL(e){return Object.prototype.toString.call(e)}var pL=function(e){var t=fL(e);return"[object HTMLCanvasElement]"===t||"[object OffscreenCanvas]"===t||"[object Canvas]"===t},hL=function(e){switch(e){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},gL=function(){var e,t=uL;onmessage=function(r){var n=r.data.opts;e||(e=new t(r.data.features));var o=e.resizeAndUnsharp(n);postMessage({result:o},[o.buffer])}};function mL(e){var t=Math.round(e);return Math.abs(e-t)<1e-5?t:Math.floor(e)}function vL(e){var t=Math.round(e);return Math.abs(e-t)<1e-5?t:Math.ceil(e)}var yL={},bL=!1;try{"undefined"!=typeof navigator&&navigator.userAgent&&(bL=navigator.userAgent.indexOf("Safari")>=0)}catch(e){}var wL=1;"undefined"!=typeof navigator&&(wL=Math.min(navigator.hardwareConcurrency||1,4));var CL,kL,EL={tile:1024,concurrency:wL,features:["js","wasm","ww"],idle:2e3,createCanvas:function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r}},SL={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0};function BL(){return{value:zO(gL),destroy:function(){if(this.value.terminate(),"undefined"!=typeof window){var e=window.URL||window.webkitURL||window.mozURL||window.msURL;e&&e.revokeObjectURL&&this.value.objectURL&&e.revokeObjectURL(this.value.objectURL)}}}}function _L(e){if(!(this instanceof _L))return new _L(e);this.options=DO({},EL,e||{});var t="lk_".concat(this.options.concurrency);this.__limit=yL[t]||function(e){var t=0,r=[];function n(){t<e&&r.length&&(t++,r.shift()())}return function(e){return new Promise((function(o,i){r.push((function(){e().then((function(e){o(e),t--,n()}),(function(e){i(e),t--,n()}))})),n()}))}}(this.options.concurrency),yL[t]||(yL[t]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}_L.prototype.init=function(){var e=this;if(this.__initPromise)return this.__initPromise;if(!1!==CL&&!0!==CL&&(CL=!1,"undefined"!=typeof ImageData&&"undefined"!=typeof Uint8ClampedArray))try{new ImageData(new Uint8ClampedArray(400),10,10),CL=!0}catch(t){}!1!==kL&&!0!==kL&&(kL=!1,"undefined"!=typeof ImageBitmap&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?kL=!0:this.debug("ImageBitmap does not support .close(), disabled")));var t=this.options.features.slice();if(t.indexOf("all")>=0&&(t=["cib","wasm","js","ww"]),this.__requested_features=t,this.__mathlib=new uL(t),t.indexOf("ww")>=0&&"undefined"!=typeof window&&"Worker"in window)try{zO((function(){})).terminate(),this.features.ww=!0;var r="wp_".concat(JSON.stringify(this.options));yL[r]?this.__workersPool=yL[r]:(this.__workersPool=new dL(BL,this.options.idle),yL[r]=this.__workersPool)}catch(t){}var n,o=this.__mathlib.init().then((function(t){DO(e.features,t.features)}));return n=kL?function(e){return Promise.resolve().then((function(){if("undefined"==typeof createImageBitmap)return!1;var t=e(100,100);return createImageBitmap(t,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then((function(e){var r=10===e.width;return e.close(),t=null,r}))})).catch((function(){return!1}))}(this.options.createCanvas).then((function(r){e.features.cib&&t.indexOf("cib")<0?e.debug("createImageBitmap() resize supported, but disabled by config"):t.indexOf("cib")>=0&&(e.features.cib=r)})):Promise.resolve(!1),this.__initPromise=Promise.all([o,n]).then((function(){return e})),this.__initPromise},_L.prototype.resize=function(e,t,r){var n=this;this.debug("Start resize...");var o=DO({},SL);if(isNaN(r)?r&&(o=DO(o,r)):o=DO(o,{quality:r}),o.toWidth=t.width,o.toHeight=t.height,o.width=e.naturalWidth||e.width,o.height=e.naturalHeight||e.height,0===t.width||0===t.height)return Promise.reject(new Error("Invalid output size: ".concat(t.width,"x").concat(t.height)));o.unsharpRadius>2&&(o.unsharpRadius=2);var i=!1,a=null;o.cancelToken&&(a=o.cancelToken.then((function(e){throw i=!0,e}),(function(e){throw i=!0,e})));var s=Math.ceil(Math.max(3,2.5*o.unsharpRadius|0));return this.init().then((function(){if(i)return a;if(n.features.cib){var r=t.getContext("2d",{alpha:Boolean(o.alpha)});return n.debug("Resize via createImageBitmap()"),createImageBitmap(e,{resizeWidth:o.toWidth,resizeHeight:o.toHeight,resizeQuality:hL(o.quality)}).then((function(e){if(i)return a;if(!o.unsharpAmount)return r.drawImage(e,0,0),e.close(),r=null,n.debug("Finished!"),t;n.debug("Unsharp result");var s=n.options.createCanvas(o.toWidth,o.toHeight),c=s.getContext("2d",{alpha:Boolean(o.alpha)});c.drawImage(e,0,0),e.close();var u=c.getImageData(0,0,o.toWidth,o.toHeight);return n.__mathlib.unsharp_mask(u.data,o.toWidth,o.toHeight,o.unsharpAmount,o.unsharpRadius,o.unsharpThreshold),r.putImageData(u,0,0),s.width=s.height=0,u=c=s=r=null,n.debug("Finished!"),t}))}var c={},u=function(e){return Promise.resolve().then((function(){return n.features.ww?new Promise((function(t,r){var o=n.__workersPool.acquire();a&&a.catch((function(e){return r(e)})),o.value.onmessage=function(e){o.release(),e.data.err?r(e.data.err):t(e.data.result)},o.value.postMessage({opts:e,features:n.__requested_features,preload:{wasm_nodule:n.__mathlib.__}},[e.src.buffer])})):n.__mathlib.resizeAndUnsharp(e,c)}))},l=function(e,t,r){var o,c,l,d=!1,f=function(t){return n.__limit((function(){if(i)return a;var s;if(pL(e))n.debug("Get tile pixel data"),s=o.getImageData(t.x,t.y,t.width,t.height);else{n.debug("Draw tile imageBitmap/image to temporary canvas");var d=n.options.createCanvas(t.width,t.height),f=d.getContext("2d",{alpha:Boolean(r.alpha)});f.globalCompositeOperation="copy",f.drawImage(c||e,t.x,t.y,t.width,t.height,0,0,t.width,t.height),n.debug("Get tile pixel data"),s=f.getImageData(0,0,t.width,t.height),d.width=d.height=0,f=d=null}var p={src:s.data,width:t.width,height:t.height,toWidth:t.toWidth,toHeight:t.toHeight,scaleX:t.scaleX,scaleY:t.scaleY,offsetX:t.offsetX,offsetY:t.offsetY,quality:r.quality,alpha:r.alpha,unsharpAmount:r.unsharpAmount,unsharpRadius:r.unsharpRadius,unsharpThreshold:r.unsharpThreshold};return n.debug("Invoke resize math"),Promise.resolve().then((function(){return u(p)})).then((function(e){if(i)return a;var r;if(s=null,n.debug("Convert raw rgba tile result to ImageData"),CL)r=new ImageData(new Uint8ClampedArray(e),t.toWidth,t.toHeight);else if((r=l.createImageData(t.toWidth,t.toHeight)).data.set)r.data.set(e);else for(var o=r.data.length-1;o>=0;o--)r.data[o]=e[o];return n.debug("Draw tile"),bL?l.putImageData(r,t.toX,t.toY,t.toInnerX-t.toX,t.toInnerY-t.toY,t.toInnerWidth+1e-5,t.toInnerHeight+1e-5):l.putImageData(r,t.toX,t.toY,t.toInnerX-t.toX,t.toInnerY-t.toY,t.toInnerWidth,t.toInnerHeight),null}))}))};return Promise.resolve().then((function(){if(l=t.getContext("2d",{alpha:Boolean(r.alpha)}),pL(e))return o=e.getContext("2d",{alpha:Boolean(r.alpha)}),null;if(function(e){return"[object ImageBitmap]"===fL(e)}(e))return c=e,d=!0,null;if(function(e){return"[object HTMLImageElement]"===fL(e)}(e))return kL?(n.debug("Decode image via createImageBitmap"),createImageBitmap(e).then((function(e){c=e})).catch((function(e){return null}))):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')})).then((function(){if(i)return a;n.debug("Calculate tiles");var e=function(e){var t,r,n,o,i,a,s=e.toWidth/e.width,c=e.toHeight/e.height,u=mL(e.srcTileSize*s)-2*e.destTileBorder,l=mL(e.srcTileSize*c)-2*e.destTileBorder;if(u<1||l<1)throw new Error("Internal error in pica: target tile width/height is too small.");var d,f=[];for(o=0;o<e.toHeight;o+=l)for(n=0;n<e.toWidth;n+=u)(t=n-e.destTileBorder)<0&&(t=0),t+(i=n+u+e.destTileBorder-t)>=e.toWidth&&(i=e.toWidth-t),(r=o-e.destTileBorder)<0&&(r=0),r+(a=o+l+e.destTileBorder-r)>=e.toHeight&&(a=e.toHeight-r),d={toX:t,toY:r,toWidth:i,toHeight:a,toInnerX:n,toInnerY:o,toInnerWidth:u,toInnerHeight:l,offsetX:t/s-mL(t/s),offsetY:r/c-mL(r/c),scaleX:s,scaleY:c,x:mL(t/s),y:mL(r/c),width:vL(i/s),height:vL(a/c)},f.push(d);return f}({width:r.width,height:r.height,srcTileSize:n.options.tile,toWidth:r.toWidth,toHeight:r.toHeight,destTileBorder:s}).map((function(e){return f(e)}));function o(){c&&(d||c.close(),c=null)}return n.debug("Process tiles"),Promise.all(e).then((function(){return n.debug("Finished!"),o(),t}),(function(e){throw o(),e}))}))};return function e(t,r,o,s){if(i)return a;var c,u=lm(t.shift(),2),d=u[0],f=u[1],p=0===t.length;return s=DO({},s,{toWidth:d,toHeight:f,quality:p?s.quality:Math.min(1,s.quality)}),p||(c=n.options.createCanvas(d,f)),l(r,p?o:c,s).then((function(){return p?o:(s.width=d,s.height=f,e(t,c,o,s))})).then((function(e){return c&&(c.width=c.height=0),e}))}(function(e,t,r,n,o,i){var a=r/e,s=n/t,c=(2*i+2+1)/o;if(c>.5)return[[r,n]];var u=Math.ceil(Math.log(Math.min(a,s))/Math.log(c));if(u<=1)return[[r,n]];for(var l=[],d=0;d<u;d++){var f=Math.round(Math.pow(Math.pow(e,u-d-1)*Math.pow(r,d+1),1/u)),p=Math.round(Math.pow(Math.pow(t,u-d-1)*Math.pow(n,d+1),1/u));l.push([f,p])}return l}(o.width,o.height,o.toWidth,o.toHeight,n.options.tile,s),e,t,o)}))},_L.prototype.resizeBuffer=function(e){var t=this,r=DO({},SL,e);return this.init().then((function(){return t.__mathlib.resizeAndUnsharp(r)}))},_L.prototype.toBlob=function(e,t,r){return t=t||"image/png",new Promise((function(n){if(e.toBlob)e.toBlob((function(e){return n(e)}),t,r);else if(e.convertToBlob)n(e.convertToBlob({type:t,quality:r}));else{for(var o=atob(e.toDataURL(t,r).split(",")[1]),i=o.length,a=new Uint8Array(i),s=0;s<i;s++)a[s]=o.charCodeAt(s);n(new Blob([a],{type:t}))}}))},_L.prototype.debug=function(){};var AL=new _L,xL=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.minSize,o=void 0===n?720:n,i=e/t;return e>t?{desW:Math.floor(o*i),desH:o}:{desW:o,desH:Math.floor(o/i)}},TL=Object.freeze({__proto__:null,scaleImage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minSize,n=void 0===r?720:r;return new Promise((function(t){var r=URL.createObjectURL(e),o=new Image;o.src=r;var i=document.createElement("canvas");o.onload=function(){if(o.width&&o.height&&(o.width<n||o.height<n)){var e=xL(o.width,o.height,{minSize:n}),r=e.desW,a=e.desH;i.width=r,i.height=a,AL.resize(o,i).then((function(e){return AL.toBlob(e,"image/jpeg",1)})).then((function(e){return t(e)}))}else t(null)}}))},createResizer:function(e){var t=e.width,r=e.height,n=document.createElement("canvas"),o=n.getContext("2d");return n.width=t,n.height=r,{resize:function(e){var t=e.srcCanvas;return o.drawImage(t,0,0,n.width,n.height),n}}},resizeBlobImg:function(e,t,r){var n=document.createElement("canvas"),o=n.getContext("2d");return n.width=t,n.height=r,new Promise((function(t){var r=URL.createObjectURL(e),i=new Image;i.onload=function(){URL.revokeObjectURL(r),o.drawImage(i,0,0,n.width,n.height),n.toBlob(t,"image/jpeg",1)},i.src=r}))},blobToCanvas:function(e){var t=e.blob;return new Promise((function(e){var r=document.createElement("canvas"),n=r.getContext("2d"),o=new Image;o.onload=function(t){var i=o.width,a=o.height;r.width=i,r.height=a,URL.revokeObjectURL(t.target.src),n.drawImage(t.target,0,0),e(r)},o.src=URL.createObjectURL(t)}))}});function IL(e,t,r,n){var o=r*(4*t)+4*n;return{r:e[o],g:e[o+1],b:e[o+2]}}function PL(e,t,r){return function(e,t,r){for(var n=0,o=r[1],i=r[3],a=r[0],s=r[2],c=o;c<i;c++)for(var u=a;u<s;u++){var l=IL(e,t,c,u),d=l.r,f=l.g,p=l.b;d>=245&&p>=245&&f>245&&(n+=1)}return n}(e,t,function(e,t){var r=Math.floor(.025*e),n=e-r,o=Math.floor(.025*t);return[r,o,n,t-o]}(t,r))/(t*r)>=.001}function RL(){return(RL=eI(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.getContext("2d"),n=r.getImageData(0,0,t.width,t.height),o=n.data,nO){e.next=5;break}return e.abrupt("return",PL(o,n.width,n.height));case 5:return e.abrupt("return",nO.detectGlare(o,n.width,n.height));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var NL=Object.freeze({__proto__:null,isCardGlare:function(e){return RL.apply(this,arguments)}}),OL="internal_server_error",LL="network_error",ML=gN();function DL(e){return 500*Math.pow(1.5,e)}function UL(e){return Array.isArray(null==e?void 0:e.errors)&&e.errors.find((function(e){return e.code===OL}))}function jL(e){return"Failed to fetch"===e.message||!e.response}function FL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.maxNetworkErrorRetryTimes,n=void 0===r?5:r,o=t.maxInternalServerErrorRetryTimes,i=void 0===o?1:o,a=t.propertyKey,s=t.onDone;return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var c=this;function u(e,t){return l.apply(this,arguments)}function l(){return(l=eI(regeneratorRuntime.mark((function t(o,l){var d,f,p,h,g,m,v,y,b=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=function(){return(m=eI(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h(t),n=p(t)-r,e.next=4,jN(DL(n));case 4:return e.abrupt("return",u(r,t,n));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)},g=function(e){return m.apply(this,arguments)},h=function(e){return e===l?Math.max(o-1,0):p(e)-1},p=function(e){return e===LL?n:e===OL?i:0},f=function(e){return o>0||(e===LL?void 0===o&&n>0:e===OL&&void 0===o&&i>0)},d=b.length>2&&void 0!==b[2]?b[2]:0,v=performance.now(),t.prev=7,t.next=10,e.apply(c,r);case 10:if(y=t.sent,s({response:y,retryCount:d,propertyKey:a,timeInMs:performance.now()-v,args:r}),!UL(y)||!f(OL)){t.next=16;break}return t.next=15,g(OL);case 15:return t.abrupt("return",t.sent);case 16:return t.abrupt("return",y);case 19:if(t.prev=19,t.t0=t.catch(7),s({error:t.t0,retryCount:d,propertyKey:a,timeInMs:performance.now()-v,args:r}),!jL(t.t0)||!f(LL)){t.next=24;break}return t.abrupt("return",g(LL));case 24:throw t.t0;case 25:case"end":return t.stop()}}),t,null,[[7,19]])})))).apply(this,arguments)}return u()}}function VL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.maxNetworkErrorRetryTimes,n=void 0===r?5:r,o=t.maxInternalServerErrorRetryTimes,i=void 0===o?1:o,a=t.onDone,s=void 0===a?function(){}:a,c={get:function(e,t){var r=e[t];return"function"==typeof r&&"constructor"!==t?FL(r,{maxNetworkErrorRetryTimes:n,maxInternalServerErrorRetryTimes:i,propertyKey:t,onDone:s}):r}};return new Proxy(e,c)}var zL=function(e){var t=e.response,r=(e.error,e.retryCount,e.propertyKey,e.timeInMs);return e.args,{event:"test-event",log:{request_status:t?"success":"fail",time_in_ms:r}}},KL=Object.freeze({__proto__:null,createRetryAPIClient:VL,useApiClient:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiCredentials,r=void 0===t?{}:t,n=e.tracking,o=void 0===n?{}:n,i=ov.useRef(null),a=ON(),s=a.sendEvent,c=ov.useCallback((function(e){try{var t=zL(e),r=t.event,n=t.log;s({tag:"sdk_api",event:r,log:n})}catch(e){}}),[s]);if(null===i.current){var u=r.accessKey,l=r.secretKey,d=r.apiUrl,f=o.userId,p=RN({userId:f});i.current=VL(new iN(u,l,d,{httpHeaders:oI(oI({},ML),{},{"x-request-id":p})}),{onDone:c})}return{apiClient:i.current}}}),HL="BFnYsWrH",qL="KbKcY2nb",WL=function(e){return e.split("").reverse().join("")},QL=function(e){var t=e.url;return new Promise((function(e){var r=document.createElement("script");r.onload=e,r.src=t,document.head.appendChild(r)}))},GL=window.fetch.bind(window);function XL(e){var t=e.split(","),r=t[0].match(/:(.*?);/)[1];return{u8arr:Uint8Array.from(atob(t[1]),(function(e){return e.charCodeAt(0)})),mime:r}}var YL=function(){var e=eI(regeneratorRuntime.mark((function e(){var t,r,n,o,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="".concat(WL(HL)).concat(WL(qL)),e.next=3,GL.apply(void 0,i);case 3:return r=e.sent,e.next=6,r.text();case 6:return n=e.sent,o=SN.AES.decrypt(n,t).toString(SN.enc.Utf8),e.abrupt("return",XL(o));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$L=function(){var e=eI(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GL.apply(void 0,n);case 2:return t=e.sent,e.next=5,t.text();case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ZL=Object.freeze({__proto__:null,reverseString:WL,loadExternalScript:QL,fetchWithDecryption:YL,fetchRawResource:$L}),JL=/\s/,eM=/^\s+/,tM=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&JL.test(e.charAt(t)););return t}(e)+1).replace(eM,""):e},rM=/^[-+]0x[0-9a-f]+$/i,nM=/^0b[01]+$/i,oM=/^0o[0-7]+$/i,iM=parseInt,aM=function(e){return e?1/0===(e=function(e){if("number"==typeof e)return e;if(yR(e))return NaN;if(II(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=II(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tM(e);var r=nM.test(e);return r||oM.test(e)?iM(e.slice(2),r?2:8):rM.test(e)?NaN:+e}(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},sM=function(e,t){var r;if("function"!=typeof t)throw new TypeError("Expected a function");return e=function(e){var t=aM(e),r=t%1;return t==t?r?t-r:t:0}(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}},cM=function(e){return sM(2,e)}(function(){var e=eI(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c,u,l,d,f,p,h=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=h.length>0&&void 0!==h[0]?h[0]:{},r=t.tfUrl,n=void 0===r?"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.11.0":r,o=t.tfBackendWasmUrl,i=void 0===o?"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm@3.11.0/dist/tf-backend-wasm.js":o,a=t.tfBackendCpuUrl,s=void 0===a?"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-cpu@3.11.0":a,c=t.tfBackendWebGlUrl,u=void 0===c?"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl@3.11.0":c,l=t.tfLiteUrl,d=void 0===l?"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-tflite@0.0.1-alpha.7/dist/tf-tflite.min.js":l,f=t.blazefaceScriptUrl,p=void 0===f?"https://cdn.jsdelivr.net/npm/@tensorflow-models/blazeface@0.0.7":f,e.next=3,QL({url:n});case 3:return e.next=5,Promise.all([QL({url:i}),QL({url:s}),QL({url:u}),QL({url:p}),QL({url:d})]);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());function uM(){return(uM=eI(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c,u=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{},r=t.preferredBackends,n=void 0===r?["webgl","wasm","cpu"]:r,o=window,i=o.tf,e.next=4,i.enableProdMode();case 4:a=uI(n),e.prev=5,a.s();case 7:if((s=a.n()).done){e.next=21;break}return c=s.value,e.prev=9,e.next=12,i.setBackend(c);case 12:return e.abrupt("break",21);case 15:if(e.prev=15,e.t0=e.catch(9),c!==n[n.length-1]){e.next=19;break}throw e.t0;case 19:e.next=7;break;case 21:e.next=26;break;case 23:e.prev=23,e.t1=e.catch(5),a.e(e.t1);case 26:return e.prev=26,a.f(),e.finish(26);case 29:return e.next=31,i.ready();case 31:case"end":return e.stop()}}),e,null,[[5,23,26,29],[9,15]])})))).apply(this,arguments)}function lM(){return(lM=eI(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.modelUrl,n=window,o=n.blazeface,e.abrupt("return",r?o.load({modelUrl:r}):o.load());case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dM(){return(dM=eI(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.modelUrl,e.next=3,$L(r);case 3:return n=e.sent,o=n.rawData,e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fM(){return(fM=eI(regeneratorRuntime.mark((function e(t){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.modelUrl,n=window,o=n.tflite,e.next=4,YL(r);case 4:return i=e.sent,a=i.u8arr,e.abrupt("return",o.loadTFLiteModel(a,{numThreads:navigator.hardwareConcurrency/2}));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var pM=Object.freeze({__proto__:null,loadTensorFlow:cM,initTensorFlow:function(){return uM.apply(this,arguments)},loadBlazefaceModel:function(e){return lM.apply(this,arguments)},preloadResource:function(e){return dM.apply(this,arguments)},loadTFLiteModel:function(e){return fM.apply(this,arguments)}}),hM=Object.freeze({__proto__:null,enableAntiDebug:function(){var e,t,r=["action","gger","stateObject","apply","chain","test","input","Hello World!","constructor","counter","length","debu","call"];e=r,t=185,function(t){for(;--t;)e.push(e.shift())}(++t);var n,o,i=function(e,t){return r[e-=0]};function a(e){function t(e){if("string"==typeof e)return function(e){}[i("0x5")]("while (true) {}")[i("0x0")](i("0x6"));1!=="".concat(e/e)[i("0x7")]||e%20==0?function(){return!0}[i("0x5")]("".concat(i("0x8"),"gger"))[i("0x9")](i("0xa")):function(){return!1}.constructor("debu".concat(i("0xb")))[i("0x0")](i("0xc")),t(++e)}try{if(e)return t;t(0)}catch(e){}}setInterval((function(){a()}),4e3),n=!0,o=function(e,t){var r=n?function(){if(t){var r=t[i("0x0")](e,arguments);return t=null,r}}:function(){};return n=!1,r},function(){o(this,(function(){var e=new RegExp("function *\\( *\\)"),t=new RegExp("\\+\\+ *(?:_0x(?:[a-f0-9]){4,6}|(?:\\b|\\d)[a-z0-9]{1,4}(?:\\b|\\d))","i"),r=a("init");e.test(r+i("0x1"))&&t[i("0x2")](r+i("0x3"))?a():r("0")}))()}(),console.log(i("0x4"))}}),gM=Object.freeze({__proto__:null,useThemeContext:function(){return ov.useContext(Gb)}});function mM(){return(mM=eI(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.key,n=new TextEncoder,(o=n.encode(r)).reverse(),e.abrupt("return",crypto.subtle.digest("SHA-256",o));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var vM=Object.freeze({__proto__:null,encrypt:function(e){var t=e.blob,r=e.key;return new Promise((function(e){var n=new FileReader;n.onload=function(t){var n=t.target.result;(function(e){return mM.apply(this,arguments)})({key:r}).then((function(t){window.crypto.subtle.importKey("raw",t,"AES-GCM",!0,["encrypt","decrypt"]).then((function(t){window.crypto.subtle.encrypt({name:"AES-GCM",iv:new Uint8Array(12),tagLength:128},t,n).then((function(t){var r;e({hex:(r=t,aI(new Uint8Array(r)).map((function(e){return e.toString(16).padStart(2,"0")})).join(""))})}))}))}))},n.readAsArrayBuffer(t)}))}}),yM=function(){return URL.createObjectURL(new Blob(['\'use strict\';(function(){function T(a,b){let c=[],d="";b=a.readBits([8,16,16][b]);for(let d=0;d<b;d++){let b=a.readBits(8);c.push(b)}try{d+=decodeURIComponent(c.map(a=>`%${("0"+a.toString(16)).substr(-2)}`).join(""))}catch(e){}return{bytes:c,text:d}}function U(a,b){a=new V(a);let c=9>=b?0:26>=b?1:2;for(b={text:"",bytes:[],chunks:[],version:b};4<=a.available();){var d=a.readBits(4);if(d===t.Terminator)return b;if(d===t.ECI)0===a.readBits(1)?b.chunks.push({type:r.ECI,assignmentNumber:a.readBits(7)}):\n0===a.readBits(1)?b.chunks.push({type:r.ECI,assignmentNumber:a.readBits(14)}):0===a.readBits(1)?b.chunks.push({type:r.ECI,assignmentNumber:a.readBits(21)}):b.chunks.push({type:r.ECI,assignmentNumber:-1});else if(d===t.Numeric){var e=a;d=[];for(var f="",g=e.readBits([10,12,14][c]);3<=g;){var h=e.readBits(10);if(1E3<=h)throw Error("Invalid numeric value above 999");var k=Math.floor(h/100),n=Math.floor(h/10)%10;h%=10;d.push(48+k,48+n,48+h);f+=k.toString()+n.toString()+h.toString();g-=3}if(2===g){g=e.readBits(7);\nif(100<=g)throw Error("Invalid numeric value above 99");e=Math.floor(g/10);g%=10;d.push(48+e,48+g);f+=e.toString()+g.toString()}else if(1===g){e=e.readBits(4);if(10<=e)throw Error("Invalid numeric value above 9");d.push(48+e);f+=e.toString()}d={bytes:d,text:f};b.text+=d.text;b.bytes.push(...d.bytes);b.chunks.push({type:r.Numeric,text:d.text})}else if(d===t.Alphanumeric){e=a;d=[];f="";for(g=e.readBits([9,11,13][c]);2<=g;)n=e.readBits(11),k=Math.floor(n/45),n%=45,d.push(B[k].charCodeAt(0),B[n].charCodeAt(0)),\nf+=B[k]+B[n],g-=2;1===g&&(e=e.readBits(6),d.push(B[e].charCodeAt(0)),f+=B[e]);d={bytes:d,text:f};b.text+=d.text;b.bytes.push(...d.bytes);b.chunks.push({type:r.Alphanumeric,text:d.text})}else if(d===t.Byte)d=T(a,c),b.text+=d.text,b.bytes.push(...d.bytes),b.chunks.push({type:r.Byte,bytes:d.bytes,text:d.text});else if(d===t.Kanji){f=a;d=[];e=f.readBits([8,10,12][c]);for(g=0;g<e;g++)k=f.readBits(13),k=Math.floor(k/192)<<8|k%192,k=7936>k?k+33088:k+49472,d.push(k>>8,k&255);f=(new TextDecoder("shift-jis")).decode(Uint8Array.from(d));\nd={bytes:d,text:f};b.text+=d.text;b.bytes.push(...d.bytes);b.chunks.push({type:r.Kanji,bytes:d.bytes,text:d.text})}else d===t.StructuredAppend&&b.chunks.push({type:r.StructuredAppend,currentSequence:a.readBits(4),totalSequence:a.readBits(4),parity:a.readBits(8)})}if(0===a.available()||0===a.readBits(a.available()))return b}function J(a,b){return a^b}function W(a,b,c,d){b.degree()<c.degree()&&([b,c]=[c,b]);let e=a.zero;for(var f=a.one;c.degree()>=d/2;){var g=b;let d=e;b=c;e=f;if(b.isZero())return null;\nc=g;f=a.zero;g=b.getCoefficient(b.degree());for(g=a.inverse(g);c.degree()>=b.degree()&&!c.isZero();){let d=c.degree()-b.degree(),e=a.multiply(c.getCoefficient(c.degree()),g);f=f.addOrSubtract(a.buildMonomial(d,e));c=c.addOrSubtract(b.multiplyByMonomial(d,e))}f=f.multiplyPoly(e).addOrSubtract(d);if(c.degree()>=b.degree())return null}d=f.getCoefficient(0);if(0===d)return null;a=a.inverse(d);return[f.multiply(a),c.multiply(a)]}function X(a,b){let c=new Uint8ClampedArray(a.length);c.set(a);a=new Y(285,\n256,0);var d=new w(a,c),e=new Uint8ClampedArray(b),f=!1;for(var g=0;g<b;g++){var h=d.evaluateAt(a.exp(g+a.generatorBase));e[e.length-1-g]=h;0!==h&&(f=!0)}if(!f)return c;d=new w(a,e);d=W(a,a.buildMonomial(b,1),d,b);if(null===d)return null;b=d[0];g=b.degree();if(1===g)b=[b.getCoefficient(1)];else{e=Array(g);f=0;for(h=1;h<a.size&&f<g;h++)0===b.evaluateAt(h)&&(e[f]=a.inverse(h),f++);b=f!==g?null:e}if(null==b)return null;d=d[1];e=b.length;f=Array(e);for(g=0;g<e;g++){h=a.inverse(b[g]);let c=1;for(let d=\n0;d<e;d++)g!==d&&(c=a.multiply(c,J(1,a.multiply(b[d],h))));f[g]=a.multiply(d.evaluateAt(h),a.inverse(c));0!==a.generatorBase&&(f[g]=a.multiply(f[g],h))}d=f;for(e=0;e<b.length;e++){f=c.length-1-a.log(b[e]);if(0>f)return null;c[f]^=d[e]}return c}function E(a,b){a^=b;for(b=0;a;)b++,a&=a-1;return b}function C(a,b){return b<<1|a}function Z(a,b,c){c=aa[c.dataMask];let d=a.height;var e=17+4*b.versionNumber,f=A.createEmpty(e,e);f.setRegion(0,0,9,9,!0);f.setRegion(e-8,0,8,9,!0);f.setRegion(0,e-8,9,8,!0);for(var g of b.alignmentPatternCenters)for(var h of b.alignmentPatternCenters)6===\ng&&6===h||6===g&&h===e-7||g===e-7&&6===h||f.setRegion(g-2,h-2,5,5,!0);f.setRegion(6,9,1,e-17,!0);f.setRegion(9,6,e-17,1,!0);6<b.versionNumber&&(f.setRegion(e-11,0,3,6,!0),f.setRegion(0,e-11,6,3,!0));b=f;g=[];e=h=0;f=!0;for(let k=d-1;0<k;k-=2){6===k&&k--;for(let n=0;n<d;n++){let m=f?d-1-n:n;for(let d=0;2>d;d++){let f=k-d;if(!b.get(f,m)){e++;let b=a.get(f,m);c({y:m,x:f})&&(b=!b);h=h<<1|b;8===e&&(g.push(h),h=e=0)}}}f=!f}return g}function ba(a){var b=a.height,c=Math.floor((b-17)/4);if(6>=c)return K[c-\n1];c=0;for(var d=5;0<=d;d--)for(var e=b-9;e>=b-11;e--)c=C(a.get(e,d),c);d=0;for(e=5;0<=e;e--)for(let c=b-9;c>=b-11;c--)d=C(a.get(e,c),d);a=Infinity;let f;for(let e of K){if(e.infoBits===c||e.infoBits===d)return e;b=E(c,e.infoBits);b<a&&(f=e,a=b);b=E(d,e.infoBits);b<a&&(f=e,a=b)}if(3>=a)return f}function ca(a){let b=0;for(var c=0;8>=c;c++)6!==c&&(b=C(a.get(c,8),b));for(c=7;0<=c;c--)6!==c&&(b=C(a.get(8,c),b));var d=a.height;c=0;for(var e=d-1;e>=d-7;e--)c=C(a.get(8,e),c);for(e=d-8;e<d;e++)c=C(a.get(e,\n8),c);a=Infinity;d=null;for(let {bits:f,formatInfo:g}of da){if(f===b||f===c)return g;e=E(b,f);e<a&&(d=g,a=e);b!==c&&(e=E(c,f),e<a&&(d=g,a=e))}return 3>=a?d:null}function ea(a,b,c){let d=b.errorCorrectionLevels[c],e=[],f=0;d.ecBlocks.forEach(a=>{for(let b=0;b<a.numBlocks;b++)e.push({numDataCodewords:a.dataCodewordsPerBlock,codewords:[]}),f+=a.dataCodewordsPerBlock+d.ecCodewordsPerBlock});if(a.length<f)return null;a=a.slice(0,f);b=d.ecBlocks[0].dataCodewordsPerBlock;for(c=0;c<b;c++)for(var g of e)g.codewords.push(a.shift());\nif(1<d.ecBlocks.length)for(g=d.ecBlocks[0].numBlocks,b=d.ecBlocks[1].numBlocks,c=0;c<b;c++)e[g+c].codewords.push(a.shift());for(;0<a.length;)for(let b of e)b.codewords.push(a.shift());return e}function L(a){let b=ba(a);if(!b)return null;var c=ca(a);if(!c)return null;a=Z(a,b,c);var d=ea(a,b,c.errorCorrectionLevel);if(!d)return null;c=d.reduce((a,b)=>a+b.numDataCodewords,0);c=new Uint8ClampedArray(c);a=0;for(let b of d){d=X(b.codewords,b.codewords.length-b.numDataCodewords);if(!d)return null;for(let e=\n0;e<b.numDataCodewords;e++)c[a++]=d[e]}try{return U(c,b.versionNumber)}catch(e){return null}}function M(a,b,c,d){var e=a.x-b.x+c.x-d.x;let f=a.y-b.y+c.y-d.y;if(0===e&&0===f)return{a11:b.x-a.x,a12:b.y-a.y,a13:0,a21:c.x-b.x,a22:c.y-b.y,a23:0,a31:a.x,a32:a.y,a33:1};{let h=b.x-c.x;var g=d.x-c.x;let k=b.y-c.y,n=d.y-c.y;c=h*n-g*k;g=(e*n-g*f)/c;e=(h*f-e*k)/c;return{a11:b.x-a.x+g*b.x,a12:b.y-a.y+g*b.y,a13:g,a21:d.x-a.x+e*d.x,a22:d.y-a.y+e*d.y,a23:e,a31:a.x,a32:a.y,a33:1}}}function fa(a,b,c,d){a=M(a,b,c,d);\nreturn{a11:a.a22*a.a33-a.a23*a.a32,a12:a.a13*a.a32-a.a12*a.a33,a13:a.a12*a.a23-a.a13*a.a22,a21:a.a23*a.a31-a.a21*a.a33,a22:a.a11*a.a33-a.a13*a.a31,a23:a.a13*a.a21-a.a11*a.a23,a31:a.a21*a.a32-a.a22*a.a31,a32:a.a12*a.a31-a.a11*a.a32,a33:a.a11*a.a22-a.a12*a.a21}}function ha(a,b){var c=fa({x:3.5,y:3.5},{x:b.dimension-3.5,y:3.5},{x:b.dimension-6.5,y:b.dimension-6.5},{x:3.5,y:b.dimension-3.5}),d=M(b.topLeft,b.topRight,b.alignmentPattern,b.bottomLeft),e=d.a11*c.a11+d.a21*c.a12+d.a31*c.a13,f=d.a12*c.a11+\nd.a22*c.a12+d.a32*c.a13,g=d.a13*c.a11+d.a23*c.a12+d.a33*c.a13,h=d.a11*c.a21+d.a21*c.a22+d.a31*c.a23,k=d.a12*c.a21+d.a22*c.a22+d.a32*c.a23,n=d.a13*c.a21+d.a23*c.a22+d.a33*c.a23,m=d.a11*c.a31+d.a21*c.a32+d.a31*c.a33,l=d.a12*c.a31+d.a22*c.a32+d.a32*c.a33,p=d.a13*c.a31+d.a23*c.a32+d.a33*c.a33;c=A.createEmpty(b.dimension,b.dimension);d=(a,b)=>{const c=g*a+n*b+p;return{x:(e*a+h*b+m)/c,y:(f*a+k*b+l)/c}};for(let e=0;e<b.dimension;e++)for(let f=0;f<b.dimension;f++){let b=d(f+.5,e+.5);c.set(f,e,a.get(Math.floor(b.x),\nMath.floor(b.y)))}return{matrix:c,mappingFunction:d}}function x(a){return a.reduce((a,c)=>a+c)}function ia(a,b,c){let d=y(a,b),e=y(b,c),f=y(a,c),g,h,k;e>=d&&e>=f?[g,h,k]=[b,a,c]:f>=e&&f>=d?[g,h,k]=[a,b,c]:[g,h,k]=[a,c,b];0>(k.x-h.x)*(g.y-h.y)-(k.y-h.y)*(g.x-h.x)&&([g,k]=[k,g]);return{bottomLeft:g,topLeft:h,topRight:k}}function ja(a,b,c,d){d=(x(z(a,c,d,5))/7+x(z(a,b,d,5))/7+x(z(c,a,d,5))/7+x(z(b,a,d,5))/7)/4;if(1>d)throw Error("Invalid module size");b=Math.round(y(a,b)/d);a=Math.round(y(a,c)/d);a=\nMath.floor((b+a)/2)+7;switch(a%4){case 0:a++;break;case 2:a--}return{dimension:a,moduleSize:d}}function N(a,b,c,d){let e=[{x:Math.floor(a.x),y:Math.floor(a.y)}];var f=Math.abs(b.y-a.y)>Math.abs(b.x-a.x);if(f){var g=Math.floor(a.y);var h=Math.floor(a.x);a=Math.floor(b.y);b=Math.floor(b.x)}else g=Math.floor(a.x),h=Math.floor(a.y),a=Math.floor(b.x),b=Math.floor(b.y);let k=Math.abs(a-g),n=Math.abs(b-h),m=Math.floor(-k/2),l=g<a?1:-1,p=h<b?1:-1,q=!0;for(let v=g,u=h;v!==a+l;v+=l){g=f?u:v;h=f?v:u;if(c.get(g,\nh)!==q&&(q=!q,e.push({x:g,y:h}),e.length===d+1))break;m+=n;if(0<m){if(u===b)break;u+=p;m-=k}}c=[];for(f=0;f<d;f++)e[f]&&e[f+1]?c.push(y(e[f],e[f+1])):c.push(0);return c}function z(a,b,c,d){let e=b.y-a.y,f=b.x-a.x;b=N(a,b,c,Math.ceil(d/2));a=N(a,{x:a.x-f,y:a.y-e},c,Math.ceil(d/2));c=b.shift()+a.shift()-1;return a.concat(c).concat(...b)}function F(a,b){let c=x(a)/x(b),d=0;b.forEach((b,f)=>{d+=Math.pow(a[f]-b*c,2)});return{averageSize:c,error:d}}function O(a,b,c){try{let d=z(a,{x:-1,y:a.y},c,b.length),\ne=z(a,{x:a.x,y:-1},c,b.length),f=z(a,{x:Math.max(0,a.x-a.y)-1,y:Math.max(0,a.y-a.x)-1},c,b.length),g=z(a,{x:Math.min(c.width,a.x+a.y)+1,y:Math.min(c.height,a.y+a.x)+1},c,b.length),h=F(d,b),k=F(e,b),n=F(f,b),m=F(g,b),l=(h.averageSize+k.averageSize+n.averageSize+m.averageSize)/4;return Math.sqrt(h.error*h.error+k.error*k.error+n.error*n.error+m.error*m.error)+(Math.pow(h.averageSize-l,2)+Math.pow(k.averageSize-l,2)+Math.pow(n.averageSize-l,2)+Math.pow(m.averageSize-l,2))/l}catch(d){return Infinity}}\nfunction H(a,b){for(var c=Math.round(b.x);a.get(c,Math.round(b.y));)c--;for(var d=Math.round(b.x);a.get(d,Math.round(b.y));)d++;c=(c+d)/2;for(d=Math.round(b.y);a.get(Math.round(c),d);)d--;for(b=Math.round(b.y);a.get(Math.round(c),b);)b++;return{x:c,y:(d+b)/2}}function ka(a){var b=[],c=[];let d=[];var e=[];for(let m=0;m<=a.height;m++){var f=0,g=!1;let l=[0,0,0,0,0];for(let b=-1;b<=a.width;b++){var h=a.get(b,m);if(h===g)f++;else{l=[l[1],l[2],l[3],l[4],f];f=1;g=h;var k=x(l)/7;k=Math.abs(l[0]-k)<k&&Math.abs(l[1]-\nk)<k&&Math.abs(l[2]-3*k)<3*k&&Math.abs(l[3]-k)<k&&Math.abs(l[4]-k)<k&&!h;var n=x(l.slice(-3))/3;h=Math.abs(l[2]-n)<n&&Math.abs(l[3]-n)<n&&Math.abs(l[4]-n)<n&&h;if(k){let a=b-l[3]-l[4],d=a-l[2];k={startX:d,endX:a,y:m};n=c.filter(b=>d>=b.bottom.startX&&d<=b.bottom.endX||a>=b.bottom.startX&&d<=b.bottom.endX||d<=b.bottom.startX&&a>=b.bottom.endX&&1.5>l[2]/(b.bottom.endX-b.bottom.startX)&&.5<l[2]/(b.bottom.endX-b.bottom.startX));0<n.length?n[0].bottom=k:c.push({top:k,bottom:k})}if(h){let a=b-l[4],c=a-\nl[3];h={startX:c,y:m,endX:a};k=e.filter(b=>c>=b.bottom.startX&&c<=b.bottom.endX||a>=b.bottom.startX&&c<=b.bottom.endX||c<=b.bottom.startX&&a>=b.bottom.endX&&1.5>l[2]/(b.bottom.endX-b.bottom.startX)&&.5<l[2]/(b.bottom.endX-b.bottom.startX));0<k.length?k[0].bottom=h:e.push({top:h,bottom:h})}}}b.push(...c.filter(a=>a.bottom.y!==m&&2<=a.bottom.y-a.top.y));c=c.filter(a=>a.bottom.y===m);d.push(...e.filter(a=>a.bottom.y!==m));e=e.filter(a=>a.bottom.y===m)}b.push(...c.filter(a=>2<=a.bottom.y-a.top.y));d.push(...e);\nc=[];for(var m of b)2>m.bottom.y-m.top.y||(b=(m.top.startX+m.top.endX+m.bottom.startX+m.bottom.endX)/4,e=(m.top.y+m.bottom.y+1)/2,a.get(Math.round(b),Math.round(e))&&(f=[m.top.endX-m.top.startX,m.bottom.endX-m.bottom.startX,m.bottom.y-m.top.y+1],f=x(f)/f.length,g=O({x:Math.round(b),y:Math.round(e)},[1,1,3,1,1],a),c.push({score:g,x:b,y:e,size:f})));if(3>c.length)return null;c.sort((a,b)=>a.score-b.score);m=[];for(b=0;b<Math.min(c.length,5);++b){e=c[b];f=[];for(var l of c)l!==e&&f.push(Object.assign(Object.assign({},\nl),{score:l.score+Math.pow(l.size-e.size,2)/e.size}));f.sort((a,b)=>a.score-b.score);m.push({points:[e,f[0],f[1]],score:e.score+f[0].score+f[1].score})}m.sort((a,b)=>a.score-b.score);let {topRight:p,topLeft:q,bottomLeft:v}=ia(...m[0].points);m=P(a,d,p,q,v);l=[];m&&l.push({alignmentPattern:{x:m.alignmentPattern.x,y:m.alignmentPattern.y},bottomLeft:{x:v.x,y:v.y},dimension:m.dimension,topLeft:{x:q.x,y:q.y},topRight:{x:p.x,y:p.y}});m=H(a,p);b=H(a,q);c=H(a,v);(a=P(a,d,m,b,c))&&l.push({alignmentPattern:{x:a.alignmentPattern.x,\ny:a.alignmentPattern.y},bottomLeft:{x:c.x,y:c.y},topLeft:{x:b.x,y:b.y},topRight:{x:m.x,y:m.y},dimension:a.dimension});return 0===l.length?null:l}function P(a,b,c,d,e){let f,g;try{({dimension:f,moduleSize:g}=ja(d,c,e,a))}catch(m){return null}var h=c.x-d.x+e.x,k=c.y-d.y+e.y;c=(y(d,e)+y(d,c))/2/g;e=1-3/c;let n={x:d.x+e*(h-d.x),y:d.y+e*(k-d.y)};b=b.map(b=>{const c=(b.top.startX+b.top.endX+b.bottom.startX+b.bottom.endX)/4;b=(b.top.y+b.bottom.y+1)/2;if(a.get(Math.floor(c),Math.floor(b))){var d=O({x:Math.floor(c),\ny:Math.floor(b)},[1,1,1],a)+y({x:c,y:b},n);return{x:c,y:b,score:d}}}).filter(a=>!!a).sort((a,b)=>a.score-b.score);return{alignmentPattern:15<=c&&b.length?b[0]:n,dimension:f}}function Q(a){var b=ka(a);if(!b)return null;for(let e of b){b=ha(a,e);var c=b.matrix;if(null==c)c=null;else{var d=L(c);if(d)c=d;else{for(d=0;d<c.width;d++)for(let a=d+1;a<c.height;a++)c.get(d,a)!==c.get(a,d)&&(c.set(d,a,!c.get(d,a)),c.set(a,d,!c.get(a,d)));c=L(c)}}if(c)return{binaryData:c.bytes,data:c.text,chunks:c.chunks,version:c.version,\nlocation:{topRightCorner:b.mappingFunction(e.dimension,0),topLeftCorner:b.mappingFunction(0,0),bottomRightCorner:b.mappingFunction(e.dimension,e.dimension),bottomLeftCorner:b.mappingFunction(0,e.dimension),topRightFinderPattern:e.topRight,topLeftFinderPattern:e.topLeft,bottomLeftFinderPattern:e.bottomLeft,bottomRightAlignmentPattern:e.alignmentPattern},matrix:b.matrix}}return null}function R(a,b){Object.keys(b).forEach(c=>{a[c]=b[c]})}function I(a,b,c,d={}){let e=Object.create(null);R(e,la);R(e,d);\nd="onlyInvert"===e.inversionAttempts||"invertFirst"===e.inversionAttempts;var f="attemptBoth"===e.inversionAttempts||d;var g=e.greyScaleWeights,h=e.canOverwriteImage,k=b*c;if(a.length!==4*k)throw Error("Malformed data passed to binarizer.");var n=0;if(h){var m=new Uint8ClampedArray(a.buffer,n,k);n+=k}m=new S(b,c,m);if(g.useIntegerApproximation)for(var l=0;l<c;l++)for(var p=0;p<b;p++){var q=4*(l*b+p);m.set(p,l,g.red*a[q]+g.green*a[q+1]+g.blue*a[q+2]+128>>8)}else for(l=0;l<c;l++)for(p=0;p<b;p++)q=4*\n(l*b+p),m.set(p,l,g.red*a[q]+g.green*a[q+1]+g.blue*a[q+2]);g=Math.ceil(b/8);l=Math.ceil(c/8);p=g*l;if(h){var v=new Uint8ClampedArray(a.buffer,n,p);n+=p}v=new S(g,l,v);for(p=0;p<l;p++)for(q=0;q<g;q++){var u=Infinity,r=0;for(var t=0;8>t;t++)for(let a=0;8>a;a++){let b=m.get(8*q+a,8*p+t);u=Math.min(u,b);r=Math.max(r,b)}t=(u+r)/2;t=Math.min(255,1.11*t);24>=r-u&&(t=u/2,0<p&&0<q&&(r=(v.get(q,p-1)+2*v.get(q-1,p)+v.get(q-1,p-1))/4,u<r&&(t=r)));v.set(q,p,t)}h?(p=new Uint8ClampedArray(a.buffer,n,k),n+=k,p=new A(p,\nb)):p=A.createEmpty(b,c);q=null;f&&(h?(a=new Uint8ClampedArray(a.buffer,n,k),q=new A(a,b)):q=A.createEmpty(b,c));for(b=0;b<l;b++)for(a=0;a<g;a++){c=g-3;c=2>a?2:a>c?c:a;h=l-3;h=2>b?2:b>h?h:b;k=0;for(n=-2;2>=n;n++)for(u=-2;2>=u;u++)k+=v.get(c+n,h+u);c=k/25;for(h=0;8>h;h++)for(k=0;8>k;k++)n=8*a+h,u=8*b+k,r=m.get(n,u),p.set(n,u,r<=c),f&&q.set(n,u,!(r<=c))}f=f?{binarized:p,inverted:q}:{binarized:p};let {binarized:w,inverted:x}=f;(f=Q(d?x:w))||"attemptBoth"!==e.inversionAttempts&&"invertFirst"!==e.inversionAttempts||\n(f=Q(d?w:x));return f}class A{constructor(a,b){this.width=b;this.height=a.length/b;this.data=a}static createEmpty(a,b){return new A(new Uint8ClampedArray(a*b),a)}get(a,b){return 0>a||a>=this.width||0>b||b>=this.height?!1:!!this.data[b*this.width+a]}set(a,b,c){this.data[b*this.width+a]=c?1:0}setRegion(a,b,c,d,e){for(let f=b;f<b+d;f++)for(let b=a;b<a+c;b++)this.set(b,f,!!e)}}class S{constructor(a,b,c){this.width=a;a*=b;if(c&&c.length!==a)throw Error("Wrong buffer size");this.data=c||new Uint8ClampedArray(a)}get(a,\nb){return this.data[b*this.width+a]}set(a,b,c){this.data[b*this.width+a]=c}}class V{constructor(a){this.bitOffset=this.byteOffset=0;this.bytes=a}readBits(a){if(1>a||32<a||a>this.available())throw Error("Cannot read "+a.toString()+" bits");var b=0;if(0<this.bitOffset){b=8-this.bitOffset;var c=a<b?a:b;b-=c;b=(this.bytes[this.byteOffset]&255>>8-c<<b)>>b;a-=c;this.bitOffset+=c;8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(0<a){for(;8<=a;)b=b<<8|this.bytes[this.byteOffset]&255,this.byteOffset++,\na-=8;0<a&&(c=8-a,b=b<<a|(this.bytes[this.byteOffset]&255>>c<<c)>>c,this.bitOffset+=a)}return b}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}var r;(function(a){a.Numeric="numeric";a.Alphanumeric="alphanumeric";a.Byte="byte";a.Kanji="kanji";a.ECI="eci";a.StructuredAppend="structuredappend"})(r||(r={}));var t;(function(a){a[a.Terminator=0]="Terminator";a[a.Numeric=1]="Numeric";a[a.Alphanumeric=2]="Alphanumeric";a[a.Byte=4]="Byte";a[a.Kanji=8]="Kanji";a[a.ECI=7]="ECI";a[a.StructuredAppend=\n3]="StructuredAppend"})(t||(t={}));let B="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");class w{constructor(a,b){if(0===b.length)throw Error("No coefficients.");this.field=a;let c=b.length;if(1<c&&0===b[0]){let d=1;for(;d<c&&0===b[d];)d++;if(d===c)this.coefficients=a.zero.coefficients;else for(this.coefficients=new Uint8ClampedArray(c-d),a=0;a<this.coefficients.length;a++)this.coefficients[a]=b[d+a]}else this.coefficients=b}degree(){return this.coefficients.length-1}isZero(){return 0===\nthis.coefficients[0]}getCoefficient(a){return this.coefficients[this.coefficients.length-1-a]}addOrSubtract(a){if(this.isZero())return a;if(a.isZero())return this;let b=this.coefficients;a=a.coefficients;b.length>a.length&&([b,a]=[a,b]);let c=new Uint8ClampedArray(a.length),d=a.length-b.length;for(var e=0;e<d;e++)c[e]=a[e];for(e=d;e<a.length;e++)c[e]=b[e-d]^a[e];return new w(this.field,c)}multiply(a){if(0===a)return this.field.zero;if(1===a)return this;let b=this.coefficients.length,c=new Uint8ClampedArray(b);\nfor(let d=0;d<b;d++)c[d]=this.field.multiply(this.coefficients[d],a);return new w(this.field,c)}multiplyPoly(a){if(this.isZero()||a.isZero())return this.field.zero;let b=this.coefficients,c=b.length;a=a.coefficients;let d=a.length,e=new Uint8ClampedArray(c+d-1);for(let h=0;h<c;h++){let c=b[h];for(let b=0;b<d;b++){var f=h+b,g=this.field.multiply(c,a[b]);e[f]=e[h+b]^g}}return new w(this.field,e)}multiplyByMonomial(a,b){if(0>a)throw Error("Invalid degree less than 0");if(0===b)return this.field.zero;\nlet c=this.coefficients.length;a=new Uint8ClampedArray(c+a);for(let d=0;d<c;d++)a[d]=this.field.multiply(this.coefficients[d],b);return new w(this.field,a)}evaluateAt(a){let b=0;if(0===a)return this.getCoefficient(0);let c=this.coefficients.length;if(1===a)return this.coefficients.forEach(a=>{b^=a}),b;b=this.coefficients[0];for(let d=1;d<c;d++)b=J(this.field.multiply(a,b),this.coefficients[d]);return b}}class Y{constructor(a,b,c){this.primitive=a;this.size=b;this.generatorBase=c;this.expTable=Array(this.size);\nthis.logTable=Array(this.size);a=1;for(b=0;b<this.size;b++)this.expTable[b]=a,a*=2,a>=this.size&&(a=(a^this.primitive)&this.size-1);for(a=0;a<this.size-1;a++)this.logTable[this.expTable[a]]=a;this.zero=new w(this,Uint8ClampedArray.from([0]));this.one=new w(this,Uint8ClampedArray.from([1]))}multiply(a,b){return 0===a||0===b?0:this.expTable[(this.logTable[a]+this.logTable[b])%(this.size-1)]}inverse(a){if(0===a)throw Error("Can\'t invert 0");return this.expTable[this.size-this.logTable[a]-1]}buildMonomial(a,\nb){if(0>a)throw Error("Invalid monomial degree less than 0");if(0===b)return this.zero;a=new Uint8ClampedArray(a+1);a[0]=b;return new w(this,a)}log(a){if(0===a)throw Error("Can\'t take log(0)");return this.logTable[a]}exp(a){return this.expTable[a]}}let K=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,\necBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},\n{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,\ndataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},\n{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},\n{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},\n{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,\ndataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,\ndataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},\n{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},\n{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},\n{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},\n{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,\necBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,\ndataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,\ndataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,\necBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,\ndataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,\n32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},\n{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},\n{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,\ndataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},\n{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},\n{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,\n30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},\n{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,\ndataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},\n{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,\ndataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},\n{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,\ndataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}],da=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,\ndataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,\nformatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,\ndataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,\ndataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],aa=[a=>0===(a.y+a.x)%2,a=>0===a.y%2,a=>0===a.x%3,a=>0===(a.y+a.x)%3,a=>0===(Math.floor(a.y/2)+Math.floor(a.x/3))%2,a=>0===a.x*a.y%2+a.x*a.y%3,a=>0===(a.y*a.x%2+a.y*a.x%3)%2,a=>0===((a.y+a.x)%2+a.y*a.x%3)%2],y=(a,b)=>Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2)),la={inversionAttempts:"attemptBoth",greyScaleWeights:{red:.2126,green:.7152,blue:.0722,useIntegerApproximation:!1},\ncanOverwriteImage:!0};I.default=I;let G="dontInvert",D={red:77,green:150,blue:29,useIntegerApproximation:!0};self.onmessage=a=>{let b=a.data.data;switch(a.data.type){case "decode":a=I(b.data,b.width,b.height,{inversionAttempts:G,greyScaleWeights:D});self.postMessage({type:"qrResult",data:a?a.data:null});break;case "grayscaleWeights":D.red=b.red;D.green=b.green;D.blue=b.blue;D.useIntegerApproximation=b.useIntegerApproximation;break;case "inversionMode":switch(b){case "original":G="dontInvert";break;\ncase "invert":G="onlyInvert";break;case "both":G="attemptBoth";break;default:throw Error("Invalid inversion mode");}break;case "close":self.close()}}})()\n\n']))},bM=gN(),wM=function(){function e(t){var r=this,n=t.container,o=t.lang,i=void 0===o?"en":o,a=t.assetRoot,s=void 0===a?"https://unpkg.com/@tsocial/tvweb-sdk@latest/assets":a,c=t.resourceRoot,u=t.customUrls,l=void 0===u?{}:u,d=t.enableAntiDebug,f=void 0===d||d,p=t.warmupMessage,h=t.baseComponent,g=t.component,m=void 0===g?{}:g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),tI(this,"initNativeCamera",(function(e){var t=document.createElement("div");document.body.appendChild(t);var n=ov.createRef(),o=r.component.NativeCamera;return XT.render(ov.createElement(o,rI({},e,{ref:n})),t),{openCamera:function(){n.current.click()}}})),tI(this,"runWarmUpReadIDCard",eI(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.commonSettings.customUrls,e.abrupt("return",r.component.warmUpReadIdCard(t));case 2:case"end":return e.stop()}}),e)})))),tI(this,"runPreloadEKYCResources",eI(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r.commonSettings.customUrls,r.component.preloadEKYCResources(t);case 2:case"end":return e.stop()}}),e)})))),tI(this,"destroyView",(function(){XT.unmountComponentAtNode(r.container)})),function(e,t,r,n,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}(n,"container is a required parameter"),this.container=n,this.container.style="touch-action: none; -ms-touch-action: none;";var v=ZR({resourceRoot:c,initCustomUrls:l});this.commonSettings={lang:i,assetRoot:s,customUrls:v,enableAntiDebug:f,debug:!1,warmupMessage:p},this.component=oI(oI({},h),m)}var t;return(t=[{key:"checkCamera",value:function(){return(0,this.component.checkCamera)()}},{key:"getListCamera",value:function(){return(0,this.component.getListCamera)()}},{key:"readIDCardWithApiCall",value:function(e){var t=this.component.ReadIDCardWithApiCall;XT.render(ov.createElement(eN,{value:oI({},this.commonSettings)},ov.createElement(t,rI({onClose:this.destroyView},e))),this.container)}},{key:"readIDCardUIOnly",value:function(e){var t=this.component.ReadIDCardUIOnly;XT.render(ov.createElement(eN,{value:this.commonSettings},ov.createElement(t,rI({onClose:this.destroyView},e))),this.container)}},{key:"livenessDetection",value:function(e){var t=this.component.LivenessDetection;XT.render(ov.createElement(eN,{value:oI({},this.commonSettings)},ov.createElement(t,rI({onClose:this.destroyView},e))),this.container)}},{key:"compareFaces",value:function(e){var t=e.accessKey,r=e.secretKey,n=e.apiUrl,o=e.image1,i=e.image2,a=e.onSuccess,s=e.onError;VL(new iN(t,r,n,{httpHeaders:bM})).compareFaces({image1:{id:o},image2:{id:i}}).then((function(e){a(e)})).catch((function(e){s(e)}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function CM(e){return(CM="function"==typeof Symbol&&"symbol"==Gg(Symbol.iterator)?function(e){return Gg(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Gg(e)})(e)}function kM(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function EM(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){kM(i,n,o,a,s,"next",e)}function s(e){kM(i,n,o,a,s,"throw",e)}a(void 0)}))}}function SM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BM(){return(BM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function AM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_M(Object(r),!0).forEach((function(t){SM(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xM(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function TM(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function IM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(e,t)||RM(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PM(e){return function(e){if(Array.isArray(e))return NM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||RM(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RM(e,t){if(e){if("string"==typeof e)return NM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?NM(e,t):void 0}}function NM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var OM="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function LM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function MM(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var DM,UM,jM,FM,VM,zM,KM,HM,qM,WM,QM,GM,XM,YM=MM((function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){e.exports={BROWSER_TYPES:{CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},DEVICE_TYPES:{MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},OS_TYPES:{IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},defaultData:{isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1}}},function(e,t,r){var n,o=r(2),i=r(0),a=i.BROWSER_TYPES,s=i.OS_TYPES,c=i.DEVICE_TYPES,u=r(4),l=u.checkType,d=u.broPayload,f=u.mobilePayload,p=u.wearPayload,h=u.consolePayload,g=u.stvPayload,m=u.getNavigatorInstance,v=u.isIOS13Check,y=new o,b=y.getBrowser(),w=y.getDevice(),C=y.getEngine(),k=y.getOS(),E=y.getUA(),S=a.CHROME,B=a.CHROMIUM,_=a.IE,A=a.INTERNET_EXPLORER,x=a.OPERA,T=a.FIREFOX,I=a.SAFARI,P=a.EDGE,R=a.YANDEX,N=a.MOBILE_SAFARI,O=c.MOBILE,L=c.TABLET,M=c.SMART_TV,D=c.BROWSER,U=c.WEARABLE,j=c.CONSOLE,F=s.ANDROID,V=s.WINDOWS_PHONE,z=s.IOS,K=s.WINDOWS,H=s.MAC_OS,q=function(){return k.name===s.WINDOWS&&"10"===k.version&&"string"==typeof E&&-1!==E.indexOf("Edg/")},W=function(){return b.name===P},Q=function(){return v("iPad")},G=w.type===M,X=w.type===j,Y=w.type===U,$=b.name===N||Q(),Z=b.name===B,J=function(){switch(w.type){case O:case L:return!0;default:return!1}}()||Q(),ee=w.type===O,te=w.type===L||Q(),re=w.type===D,ne=k.name===F,oe=k.name===V,ie=k.name===z||Q(),ae=b.name===S,se=b.name===T,ce=b.name===I||b.name===N,ue=b.name===x,le=b.name===A||b.name===_,de=k.version?k.version:"none",fe=k.name?k.name:"none",pe=b.major,he=b.version,ge=b.name,me=w.vendor?w.vendor:"none",ve=w.model?w.model:"none",ye=C.name,be=C.version,we=E,Ce=W()||q(),ke=b.name===R,Ee=w.type,Se=(n=m())&&(/iPad|iPhone|iPod/.test(n.platform)||"MacIntel"===n.platform&&n.maxTouchPoints>1)&&!window.MSStream,Be=Q(),_e=v("iPhone"),Ae=v("iPod"),xe=function(){var e=m(),t=e&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)}(),Te=q(),Ie=W(),Pe=k.name===K,Re=k.name===H,Ne=l(w.type);e.exports={deviceDetect:function(){var e=Ne.isBrowser,t=Ne.isMobile,r=Ne.isTablet,n=Ne.isSmartTV,o=Ne.isConsole,i=Ne.isWearable;return e?d(e,b,C,k,E):n?g(n,C,k,E):o?h(o,C,k,E):t||r?f(Ne,w,k,E):i?p(i,C,k,E):void 0},isSmartTV:G,isConsole:X,isWearable:Y,isMobileSafari:$,isChromium:Z,isMobile:J,isMobileOnly:ee,isTablet:te,isBrowser:re,isAndroid:ne,isWinPhone:oe,isIOS:ie,isChrome:ae,isFirefox:se,isSafari:ce,isOpera:ue,isIE:le,osVersion:de,osName:fe,fullBrowserVersion:pe,browserVersion:he,browserName:ge,mobileVendor:me,mobileModel:ve,engineName:ye,engineVersion:be,getUA:we,isEdge:Ce,isYandex:ke,deviceType:Ee,isIOS13:Se,isIPad13:Be,isIPhone13:_e,isIPod13:Ae,isElectron:xe,isEdgeChromium:Te,isLegacyEdge:Ie,isWindows:Pe,isMacOs:Re}},function(e,t,r){var n;
46
46
  /*!
47
47
  * UAParser.js v0.7.18
48
48
  * Lightweight JavaScript-based User-Agent string parser
@@ -50,7 +50,7 @@ function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,s=o.create([0,1,2,
50
50
  *
51
51
  * Copyright © 2012-2016 Faisal Salman <fyzlman@gmail.com>
52
52
  * Dual licensed under GPLv2 or MIT
53
- */!function(o,i){var a="function",s="undefined",c="object",u="model",l="name",d="type",f="vendor",p="version",h="architecture",g="console",m="mobile",v="tablet",y="smarttv",b="wearable",w={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},C={rgx:function(e,t){for(var r,n,o,s,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(r=n=0;r<f.length&&!u;)if(u=f[r++].exec(e))for(o=0;o<p.length;o++)l=u[++n],Gg(s=p[o])===c&&s.length>0?2==s.length?Gg(s[1])==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?Gg(s[1])!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;d+=2}},str:function(e,t){for(var r in t)if(Gg(t[r])===c&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(w.has(t[r][n],e))return"?"===r?i:r}else if(w.has(t[r],e))return"?"===r?i:r;return e}},k={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},E={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[l,p],[/(opios)[\/\s]+([\w\.]+)/i],[[l,"Opera Mini"],p],[/\s(opr)\/([\w\.]+)/i],[[l,"Opera"],p],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[l,p],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[l,"IE"],p],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[l,"Edge"],p],[/(yabrowser)\/([\w\.]+)/i],[[l,"Yandex"],p],[/(puffin)\/([\w\.]+)/i],[[l,"Puffin"],p],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[l,"UCBrowser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],p],[/(micromessenger)\/([\w\.]+)/i],[[l,"WeChat"],p],[/(qqbrowserlite)\/([\w\.]+)/i],[l,p],[/(QQ)\/([\d\.]+)/i],[l,p],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[l,p],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[l,p],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[l,p],[/(MetaSr)[\/\s]?([\w\.]+)/i],[l],[/(LBBROWSER)/i],[l],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[p,[l,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[l,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[l,/(.+)/,"$1 WebView"],p],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[l,/(.+(?:g|us))(.+)/,"$1 $2"],p],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[p,[l,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[l,p],[/(dolfin)\/([\w\.]+)/i],[[l,"Dolphin"],p],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[l,"Chrome"],p],[/(coast)\/([\w\.]+)/i],[[l,"Opera Coast"],p],[/fxios\/([\w\.-]+)/i],[p,[l,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[p,l],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[l,"GSA"],p],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[l,[p,C.str,k.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[l,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[l,"Netscape"],p],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[l,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,w.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[h,/ower/,"",w.lowerize]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[h,w.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[u,f,[d,v]],[/applecoremedia\/[\w\.]+ \((ipad)/],[u,[f,"Apple"],[d,v]],[/(apple\s{0,1}tv)/i],[[u,"Apple TV"],[f,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[f,u,[d,v]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[u,[f,"Amazon"],[d,v]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[u,C.str,k.device.amazon.model],[f,"Amazon"],[d,m]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[u,f,[d,m]],[/\((ip[honed|\s\w*]+);/i],[u,[f,"Apple"],[d,m]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[f,u,[d,m]],[/\(bb10;\s(\w+)/i],[u,[f,"BlackBerry"],[d,m]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[u,[f,"Asus"],[d,v]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[f,"Sony"],[u,"Xperia Tablet"],[d,v]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[u,[f,"Sony"],[d,m]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[f,u,[d,g]],[/android.+;\s(shield)\sbuild/i],[u,[f,"Nvidia"],[d,g]],[/(playstation\s[34portablevi]+)/i],[u,[f,"Sony"],[d,g]],[/(sprint\s(\w+))/i],[[f,C.str,k.device.sprint.vendor],[u,C.str,k.device.sprint.model],[d,m]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[f,u,[d,v]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[f,[u,/_/g," "],[d,m]],[/(nexus\s9)/i],[u,[f,"HTC"],[d,v]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[u,[f,"Huawei"],[d,m]],[/(microsoft);\s(lumia[\s\w]+)/i],[f,u,[d,m]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[u,[f,"Microsoft"],[d,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,"Microsoft"],[d,m]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[u,[f,"Motorola"],[d,m]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[u,[f,"Motorola"],[d,v]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[f,w.trim],[u,w.trim],[d,y]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,"Samsung"],[d,y]],[/\(dtv[\);].+(aquos)/i],[u,[f,"Sharp"],[d,y]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[f,"Samsung"],u,[d,v]],[/smart-tv.+(samsung)/i],[f,[d,y],u],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[f,"Samsung"],u,[d,m]],[/sie-(\w*)/i],[u,[f,"Siemens"],[d,m]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[f,"Nokia"],u,[d,m]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[u,[f,"Acer"],[d,v]],[/android.+([vl]k\-?\d{3})\s+build/i],[u,[f,"LG"],[d,v]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[f,"LG"],u,[d,v]],[/(lg) netcast\.tv/i],[f,u,[d,y]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[u,[f,"LG"],[d,m]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[u,[f,"Lenovo"],[d,v]],[/linux;.+((jolla));/i],[f,u,[d,m]],[/((pebble))app\/[\d\.]+\s/i],[f,u,[d,b]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[f,u,[d,m]],[/crkey/i],[[u,"Chromecast"],[f,"Google"]],[/android.+;\s(glass)\s\d/i],[u,[f,"Google"],[d,b]],[/android.+;\s(pixel c)\s/i],[u,[f,"Google"],[d,v]],[/android.+;\s(pixel xl|pixel)\s/i],[u,[f,"Google"],[d,m]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[u,/_/g," "],[f,"Xiaomi"],[d,m]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[u,/_/g," "],[f,"Xiaomi"],[d,v]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[u,[f,"Meizu"],[d,v]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[u,[f,"OnePlus"],[d,m]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[u,[f,"RCA"],[d,v]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[u,[f,"Dell"],[d,v]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[u,[f,"Verizon"],[d,v]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[f,"Barnes & Noble"],u,[d,v]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[u,[f,"NuVision"],[d,v]],[/android.+;\s(k88)\sbuild/i],[u,[f,"ZTE"],[d,v]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[u,[f,"Swiss"],[d,m]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[u,[f,"Swiss"],[d,v]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[u,[f,"Zeki"],[d,v]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[f,"Dragon Touch"],u,[d,v]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[u,[f,"Insignia"],[d,v]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[u,[f,"NextBook"],[d,v]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[f,"Voice"],u,[d,m]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[f,"LvTel"],u,[d,m]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[u,[f,"Envizen"],[d,v]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[f,u,[d,v]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[u,[f,"MachSpeed"],[d,v]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[f,u,[d,v]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[u,[f,"Rotor"],[d,v]],[/android.+(KS(.+))\s+build/i],[u,[f,"Amazon"],[d,v]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[f,u,[d,v]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[d,w.lowerize],f,u],[/(android[\w\.\s\-]{0,9});.+build/i],[u,[f,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[l,p],[/rv\:([\w\.]{1,9}).+(gecko)/i],[p,l]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[l,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[l,[p,C.str,k.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[l,"Windows"],[p,C.str,k.os.windows.version]],[/\((bb)(10);/i],[[l,"BlackBerry"],p],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[l,p],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[l,"Symbian"],p],[/\((series40);/i],[l],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[l,"Firefox OS"],p],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[l,p],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[l,"Chromium OS"],p],[/(sunos)\s?([\w\.\d]*)/i],[[l,"Solaris"],p],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[l,p],[/(haiku)\s(\w+)/i],[l,p],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[l,"Mac OS"],[p,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[l,p]]},S=function e(t,r){if("object"==Gg(t)&&(r=t,t=i),!(this instanceof e))return new e(t,r).getResult();var n=t||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),a=r?w.extend(E,r):E;return this.getBrowser=function(){var e={name:i,version:i};return C.rgx.call(e,n,a.browser),e.major=w.major(e.version),e},this.getCPU=function(){var e={architecture:i};return C.rgx.call(e,n,a.cpu),e},this.getDevice=function(){var e={vendor:i,model:i,type:i};return C.rgx.call(e,n,a.device),e},this.getEngine=function(){var e={name:i,version:i};return C.rgx.call(e,n,a.engine),e},this.getOS=function(){var e={name:i,version:i};return C.rgx.call(e,n,a.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};S.VERSION="0.7.18",S.BROWSER={NAME:l,MAJOR:"major",VERSION:p},S.CPU={ARCHITECTURE:h},S.DEVICE={MODEL:u,VENDOR:f,TYPE:d,CONSOLE:g,MOBILE:m,SMARTTV:y,TABLET:v,WEARABLE:b,EMBEDDED:"embedded"},S.ENGINE={NAME:l,VERSION:p},S.OS={NAME:l,VERSION:p},Gg(t)!==s?(Gg(e)!==s&&e.exports&&(t=e.exports=S),t.UAParser=S):r(3)?(n=function(){return S}.call(t,r,t,e))===i||(e.exports=n):o&&(o.UAParser=S);var B=o&&(o.jQuery||o.Zepto);if(Gg(B)!==s){var _=new S;B.ua=_.getResult(),B.ua.get=function(){return _.getUA()},B.ua.set=function(e){_.setUA(e);var t=_.getResult();for(var r in t)B.ua[r]=t[r]}}}("object"==("undefined"==typeof window?"undefined":Gg(window))?window:this)},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(0),i=o.DEVICE_TYPES,a=o.defaultData,s=t.getNavigatorInstance=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},c=t.isIOS13Check=function(e){var t=s();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:function(e){switch(e){case i.MOBILE:return{isMobile:!0};case i.TABLET:return{isTablet:!0};case i.SMART_TV:return{isSmartTV:!0};case i.CONSOLE:return{isConsole:!0};case i.WEARABLE:return{isWearable:!0};case i.BROWSER:return{isBrowser:!0};default:return a}},broPayload:function(e,t,r,n,o){return{isBrowser:e,browserMajorVersion:t.major,browserFullVersion:t.version,browserName:t.name,engineName:r.name||!1,engineVersion:r.version,osName:n.name,osVersion:n.version,userAgent:o}},mobilePayload:function(e,t,r,o){return n({},e,{vendor:t.vendor,model:t.model,os:r.name,osVersion:r.version,ua:o})},stvPayload:function(e,t,r,n){return{isSmartTV:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},consolePayload:function(e,t,r,n){return{isConsole:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},wearPayload:function(e,t,r,n){return{isWearable:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},getNavigatorInstance:s,isIOS13Check:c}}])})),XM=NM(GM),YM=Object.freeze(Object.assign(Object.create(null),GM,{default:XM}));function $M(){return"function"==typeof navigator.enumerateDevices?navigator.enumerateDevices():"object"===bM(navigator.mediaDevices)&&"function"==typeof navigator.mediaDevices.enumerateDevices?navigator.mediaDevices.enumerateDevices():new Promise((function(e,t){try{if(null==window.MediaStreamTrack||null==window.MediaStreamTrack.getSources)throw new Error;window.MediaStreamTrack.getSources((function(t){e(t.filter((function(e){return"video"===e.kind.toLowerCase()||"videoinput"===e.kind.toLowerCase()})).map((function(e){return{deviceId:null!=e.deviceId?e.deviceId:"",groupId:e.groupId,kind:"videoinput",label:e.label,toJSON:function(){return this}}})))}))}catch(e){return t(e)}}))}var ZM=ZT.Errors,JM=Zb.div(LM||(LM=AM(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: #000;\n display: flex;\n justify-content: center;\n z-index: ",";\n ","\n"])),1e3,(function(e){return e.checkCameraMode&&"opacity: 0;"})),eD=Zb.video(MM||(MM=AM(["\n width: 100%;\n ","\n"])),(function(e){return e.flipHorizontal&&"\n transform: scale(".concat(-1*e.scale,", ").concat(1*e.scale,");\n ")})),tD=Zb.div(DM||(DM=AM(["\n cursor: pointer;\n text-align: center;\n width: 50px;\n\n img {\n width: 100%;\n }\n"]))),rD=Zb(tD)(UM||(UM=AM(["\n z-index: ",";\n position: absolute;\n top: 20px;\n right: 20px;\n width: 20px;\n"])),1100),nD=Zb.div(jM||(jM=AM(["\n z-index: ",";\n position: absolute;\n top: 40px;\n color: red;\n"])),1020),oD=Zb.div(FM||(FM=AM(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: ",";\n"])),1030),iD=Zb.section(VM||(VM=AM(["\n width: 280px;\n padding: 0.625rem 0 0 0;\n background: #ffffff;\n border-radius: 0.3125rem;\n box-shadow: 2px 2px 14px rgba(0, 0, 0, 0.15);\n"]))),aD=Zb.header(zM||(zM=AM(["\n text-align: center;\n padding: 0.625rem 1rem;\n"]))),sD=Zb.h2(KM||(KM=AM(["\n margin: 0.25rem auto;\n padding: 0;\n font-weight: 600;\n font-size: 1.2rem;\n"]))),cD=Zb.p(HM||(HM=AM(["\n padding: 0 0 0.3125rem;\n margin: 0.25rem auto;\n font-size: 0.8rem;\n"]))),uD=Zb.ul(qM||(qM=AM(["\n list-style: none;\n padding: 0;\n margin: 0;\n"]))),lD=Zb.li(WM||(WM=AM(["\n margin: 0;\n text-align: left;\n cursor: pointer;\n font-size: 0.82rem;\n transition: all 550ms ease-in-out;\n border-top: 1px solid #dcdcdc;\n padding: 1rem 1rem;\n\n &:hover {\n background-color: rgba(230, 230, 230, 0.5);\n }\n"]))),dD=Zb.div(QM||(QM=AM(["\n position: absolute;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.7);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 9999;\n"]))),fD=ov.createRef(),pD=function(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return navigator.mediaDevices;var e=navigator.mozGetUserMedia||navigator.webkitGetUserMedia;return e?{getUserMedia:function(t){return new Promise((function(r,n){e.call(navigator,t,r,n)}))}}:null}();function hD(e){var t=e.checkCameraMode,r=e.frontCamera,n=e.onClose,o=e.children,i=e.onVideoPlayed,a=e.flipHorizontal,s=e.videoSettings,c=e.refVideo,u=e.onError,l=e.closeButton,d=e.videoClassName,f=e.scale,p=e.defaultCameraId,h=nN.useSDKSettings().lang,g=LN.useSDKTracking().sendEvent,m=UN.useAsset("ic_close.png"),v=xM(ov.useState(""),2),y=v[0],b=v[1],w=xM(ov.useState([]),2),C=w[0],k=w[1],E=xM(ov.useState(!1),2),S=E[0],B=E[1],_=ov.useRef(!1),A=ov.useRef(!1),x=ov.useCallback((function(){try{var e;(null==c||null===(e=c.current)||void 0===e?void 0:e.srcObject)instanceof MediaStream&&(c.current.srcObject.getTracks().forEach((function(e){return e.stop()})),c.current.srcObject=null)}catch(e){}}),[c]),T=ov.useCallback(function(){var e=CM(regeneratorRuntime.mark((function e(t){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return{},n=GM.isMobile?GM.isIOS?{width:{ideal:1460},aspectRatio:{ideal:window.innerHeight/window.innerWidth}}:{width:{ideal:1650},aspectRatio:{ideal:window.innerHeight/window.innerWidth}}:{height:{ideal:9999}},e.prev=2,e.next=5,pD.getUserMedia({audio:!1,video:BM(BM({},t?{deviceId:t}:{facingMode:r?"user":"environment"}),s||n)});case 5:return(o=e.sent)||(b(ZM.not_supported.msg[h]),u(ZM.not_supported)),e.abrupt("return",o);case 10:e.prev=10,e.t0=e.catch(2),"NotAllowedError"===e.t0.name?(b(ZM.no_permission.msg[h]),u(ZM.no_permission)):(t&&k(TM(C.filter((function(e){return e.deviceId!==t})))),B(!0),b(e.t0.message),u({code:e.t0.name||e.t0.code,message:e.t0.message}));case 13:return e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}(),[r,s,h,u,C]),I=ov.useCallback(CM(regeneratorRuntime.mark((function e(){var t,r,n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:p,(r=c.current).oncanplaythrough=function(){r.play(),A.current=!0,b("");var e=window.innerWidth,t=window.innerHeight,n=fO.analyzeVideoAndWindowSizes(r),o=n.lostX,a=void 0===o?0:o,s=n.lostY,c=void 0===s?0:s,u=Math.min(e,Math.floor(e-2*a)),l=Math.min(t,Math.floor(t-2*c));i&&i({clientWidth:e,clientHeight:t,videoAreaWidth:u,videoAreaHeight:l,lostX:a,lostY:c})},e.next=5,T(t);case 5:(n=e.sent)&&(r.srcObject=n);case 7:case"end":return e.stop()}}),e)}))),[c,T,i,p]);ov.useEffect((function(){function e(){return(e=CM(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,$M();case 3:t=e.sent,r=t.filter((function(e){return e.deviceId&&"videoinput"===e.kind})),k(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}S&&!_.current&&(_.current=!0,function(){e.apply(this,arguments)}())}),[S]),ov.useEffect((function(){function e(){return(e=CM(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:return e.next=4,$M();case 4:t=e.sent,(r=t.filter((function(e){return"videoinput"===e.kind&&e.label.includes("0")}))).length>0&&(n=r[0].deviceId,x(),I(n));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var t=c.current;return!pD||GM.browserName&&["facebook"].includes(GM.browserName.toLowerCase())||GM.getUA.includes("Zalo iOS")?(b(ZM.not_supported.msg[h]),u(ZM.not_supported)):t&&(GM.isAndroid&&!1===r?function(){e.apply(this,arguments)}():I()),function(){x()}}),[c,h,r,I,x,u]),ov.useEffect((function(){var e=setTimeout((function(){A.current||(b(ZM.camera_timeout.msg[h]),u(ZM.camera_timeout))}),3e5);return function(){clearTimeout(e)}}),[h,u]);var P=ov.useCallback((function(){x(),n&&n(),g({tag:"result",event:"user_activity.cancel",log:{}})}),[n,x,g]);return ov.createElement(JM,{checkCameraMode:t},S&&null!=C&&C.length?ov.createElement(dD,null,ov.createElement(oD,null,ov.createElement(iD,null,ov.createElement(aD,null,ov.createElement(sD,null,"Không thể mở camera mặc định"),ov.createElement(cD,null,"Vui lòng thử chọn camera khác trong danh sách dưới đây")),ov.createElement(uD,null,C.map((function(e,t){return ov.createElement(lD,{key:e.deviceId,onClick:function(){b(""),x(),B(!1),I(e.deviceId)}},e.label?e.label:"Camera ".concat(t+1))})))))):null,function(){if(!y)return null;var e=ZM.no_permission.msg[h];return y===e&&GM.isIOS?ov.createElement(nD,null,y," ",ov.createElement("button",{onClick:function(){window.location.reload()}},{vi:"Cấp lại quyền truy cập camera",en:"Request camera permission"}[h])):ov.createElement(nD,null,y)}(),ov.createElement(eD,{ref:c,playsInline:!0,muted:!0,flipHorizontal:a,className:d,scale:f}),o,l?ov.cloneElement(l,{onClick:P,"data-testid":"close-camera"}):ov.createElement(rD,{onClick:P,"data-testid":"close-camera"},ov.createElement("img",{src:m,alt:""})))}hD.propTypes={checkCameraMode:Tv.bool,frontCamera:Tv.bool,onClose:Tv.func,onError:Tv.func,onVideoPlayed:Tv.func,children:Tv.node,flipHorizontal:Tv.bool,videoSettings:Tv.object,refVideo:Tv.object,closeButton:Tv.node,videoClassName:Tv.string,scale:Tv.number,defaultCameraId:Tv.string},hD.defaultProps={checkCameraMode:!1,frontCamera:!0,onClose:null,onError:function(){},onVideoPlayed:null,children:null,flipHorizontal:!1,videoSettings:null,refVideo:null,closeButton:null,videoClassName:"",scale:1,defaultCameraId:void 0};var gD,mD,vD,yD=ov.forwardRef((function(e,t){return ov.createElement(hD,EM({},e,{refVideo:t||fD}))})),bD=Zb.table(gD||(gD=AM(["\n width: 100%;\n height: 100%;\n td {\n text-align: center;\n vertical-align: middle;\n padding: 0;\n border: 0;\n }\n border-spacing: 0;\n table-layout: auto;\n border-collapse: collapse;\n"]))),wD=Zb.div(mD||(mD=AM(["\n position: relative;\n"]))),CD=Array.from(Array(3).keys()),kD=Array.from(Array(3).keys());function ED(e){var t=e.children,r=e.x,n=e.y,o=e.width,i=e.height,a=e.className,s=e.surroundStyle;return ov.createElement(bD,{className:a},ov.createElement("tbody",null,CD.map((function(e,a){return ov.createElement("tr",{key:e,style:{height:0===a?n:"auto"},"data-testid":"row"},kD.map((function(e,n){var c=1===a&&1===n,u="auto";return c?u=o:0===n&&(u=r),ov.createElement("td",{"data-testid":c?"centeredCell":"cell",key:e,style:BM({width:u,height:c?i:"auto"},c?{}:s)},c?ov.createElement(wD,{style:{width:u,height:i}},t):null)})))}))))}ED.propTypes={children:Tv.node,x:Tv.string,y:Tv.string,width:Tv.string,height:Tv.string,className:Tv.string,surroundStyle:Tv.object},ED.defaultProps={children:null,x:"auto",y:"auto",width:"auto",height:"auto",className:"",surroundStyle:{}};var SD=Zb(ED)(vD||(vD=AM(["\n background: transparent;\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: ",";\n"])),1010);function BD(e){var t=e.className;return ov.createElement("svg",{className:t,width:"38px",height:"32px",viewBox:"0 0 24 21","data-testid":"camera-icon"},ov.createElement("title",null,"FA45C15C-1E21-4D7B-9585-07FB9F999CB8"),ov.createElement("desc",null,"Created with sketchtool."),ov.createElement("g",{id:"Web-demo",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ov.createElement("g",{id:"step1",transform:"translate(-950.000000, -380.000000)",fill:"currentColor",fillRule:"nonzero"},ov.createElement("g",{id:"Group",transform:"translate(950.000000, 380.000000)"},ov.createElement("g",{id:"Group-2"},ov.createElement("g",{id:"camera"},ov.createElement("path",{d:"M21,3 L17,3 L15,0 L9,0 L7,3 L3,3 C1.34314575,3 0,4.34314575 0,6 L0,18 C0,19.6568542 1.34314575,21 3,21 L21,21 C22.6568542,21 24,19.6568542 24,18 L24,6 C24,4.34314575 22.6568542,3 21,3 Z M12,17 C9.23857625,17 7,14.7614237 7,12 C7,9.23857625 9.23857625,7 12,7 C14.7614237,7 17,9.23857625 17,12 C17,14.7614237 14.7614237,17 12,17 L12,17 Z",id:"Shape"})))))))}BD.propTypes={className:Tv.string},BD.defaultProps={className:""};var _D,AD=function(e){var t=Gg(e);return null!=e&&("object"==t||"function"==t)},xD="object"==Gg(RM)&&RM&&RM.Object===Object&&RM,TD="object"==("undefined"==typeof self?"undefined":Gg(self))&&self&&self.Object===Object&&self,ID=xD||TD||Function("return this")(),PD=function(){return ID.Date.now()},RD=ID.Symbol,ND=Object.prototype,OD=ND.hasOwnProperty,LD=ND.toString,MD=RD?RD.toStringTag:void 0,DD=Object.prototype.toString,UD=RD?RD.toStringTag:void 0,jD=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":UD&&UD in Object(e)?function(e){var t=OD.call(e,MD),r=e[MD];try{e[MD]=void 0;var n=!0}catch(e){}var o=LD.call(e);return n&&(t?e[MD]=r:delete e[MD]),o}(e):function(e){return DD.call(e)}(e)},FD=function(e){return null!=e&&"object"==Gg(e)},VD=function(e){return"symbol"==Gg(e)||FD(e)&&"[object Symbol]"==jD(e)},zD=/^\s+|\s+$/g,KD=/^[-+]0x[0-9a-f]+$/i,HD=/^0b[01]+$/i,qD=/^0o[0-7]+$/i,WD=parseInt,QD=function(e){if("number"==typeof e)return e;if(VD(e))return NaN;if(AD(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=AD(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(zD,"");var r=HD.test(e);return r||qD.test(e)?WD(e.slice(2),r?2:8):KD.test(e)?NaN:+e},GD=Math.max,XD=Math.min,YD=function(e,t,r){var n,o,i,a,s,c,u=0,l=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,i=o;return n=o=void 0,u=t,a=e.apply(i,r)}function h(e){return u=e,s=setTimeout(m,t),l?p(e):a}function g(e){var r=e-c;return void 0===c||r>=t||r<0||d&&e-u>=i}function m(){var e=PD();if(g(e))return v(e);s=setTimeout(m,function(e){var r=t-(e-c);return d?XD(r,i-(e-u)):r}(e))}function v(e){return s=void 0,f&&n?p(e):(n=o=void 0,a)}function y(){var e=PD(),r=g(e);if(n=arguments,o=this,c=e,r){if(void 0===s)return h(c);if(d)return clearTimeout(s),s=setTimeout(m,t),p(c)}return void 0===s&&(s=setTimeout(m,t)),a}return t=QD(t)||0,AD(r)&&(l=!!r.leading,i=(d="maxWait"in r)?GD(QD(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=c=o=s=void 0},y.flush=function(){return void 0===s?a:v(PD())},y},$D=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return AD(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),YD(e,t,{leading:n,maxWait:t,trailing:o})},ZD=function(e){if(!AD(e))return!1;var t=jD(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},JD=ID["__core-js_shared__"],eU=(_D=/[^.]+$/.exec(JD&&JD.keys&&JD.keys.IE_PROTO||""))?"Symbol(src)_1."+_D:"",tU=Function.prototype.toString,rU=/^\[object .+?Constructor\]$/,nU=Function.prototype,oU=Object.prototype,iU=nU.toString,aU=oU.hasOwnProperty,sU=RegExp("^"+iU.call(aU).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cU=function(e){return!(!AD(e)||function(e){return!!eU&&eU in e}(e))&&(ZD(e)?sU:rU).test(function(e){if(null!=e){try{return tU.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))},uU=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return cU(r)?r:void 0},lU=function(){try{var e=uU(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),dU=function(e,t,r){"__proto__"==t&&lU?lU(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},fU=function(e,t){return e===t||e!=e&&t!=t},pU=Object.prototype.hasOwnProperty,hU=function(e,t,r){var n=e[t];pU.call(e,t)&&fU(n,r)&&(void 0!==r||t in e)||dU(e,t,r)},gU=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?dU(r,s,c):hU(r,s,c)}return r},mU=function(e){return e},vU=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},yU=Math.max,bU=function(e){return function(){return e}},wU=lU?function(e,t){return lU(e,"toString",{configurable:!0,enumerable:!1,value:bU(t),writable:!0})}:mU,CU=Date.now,kU=function(e){var t=0,r=0;return function(){var n=CU(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(wU),EU=function(e,t){return kU(function(e,t,r){return t=yU(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=yU(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),vU(e,this,s)}}(e,t,mU),e+"")},SU=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},BU=function(e){return null!=e&&SU(e.length)&&!ZD(e)},_U=/^(?:0|[1-9]\d*)$/,AU=function(e,t){var r=Gg(e);return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&_U.test(e))&&e>-1&&e%1==0&&e<t},xU=function(e,t,r){if(!AD(r))return!1;var n=Gg(t);return!!("number"==n?BU(r)&&AU(t,r.length):"string"==n&&t in r)&&fU(r[t],e)},TU=function(e){return EU((function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&xU(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t}))},IU=function(e){return FD(e)&&"[object Arguments]"==jD(e)},PU=Object.prototype,RU=PU.hasOwnProperty,NU=PU.propertyIsEnumerable,OU=IU(function(){return arguments}())?IU:function(e){return FD(e)&&RU.call(e,"callee")&&!NU.call(e,"callee")},LU=Array.isArray,MU=function(){return!1},DU=OM((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?ID.Buffer:void 0,i=(o?o.isBuffer:void 0)||MU;e.exports=i})),UU={};UU["[object Float32Array]"]=UU["[object Float64Array]"]=UU["[object Int8Array]"]=UU["[object Int16Array]"]=UU["[object Int32Array]"]=UU["[object Uint8Array]"]=UU["[object Uint8ClampedArray]"]=UU["[object Uint16Array]"]=UU["[object Uint32Array]"]=!0,UU["[object Arguments]"]=UU["[object Array]"]=UU["[object ArrayBuffer]"]=UU["[object Boolean]"]=UU["[object DataView]"]=UU["[object Date]"]=UU["[object Error]"]=UU["[object Function]"]=UU["[object Map]"]=UU["[object Number]"]=UU["[object Object]"]=UU["[object RegExp]"]=UU["[object Set]"]=UU["[object String]"]=UU["[object WeakMap]"]=!1;var jU=OM((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&xD.process,i=function(){try{return n&&n.require&&n.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i})),FU=jU&&jU.isTypedArray,VU=FU?function(e){return function(t){return e(t)}}(FU):function(e){return FD(e)&&SU(e.length)&&!!UU[jD(e)]},zU=Object.prototype.hasOwnProperty,KU=function(e,t){var r=LU(e),n=!r&&OU(e),o=!r&&!n&&DU(e),i=!r&&!n&&!o&&VU(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!zU.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||AU(u,c))||s.push(u);return s},HU=Object.prototype,qU=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||HU)},WU=Object.prototype.hasOwnProperty,QU=function(e){if(!AD(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=qU(e),r=[];for(var n in e)("constructor"!=n||!t&&WU.call(e,n))&&r.push(n);return r},GU=function(e){return BU(e)?KU(e,!0):QU(e)},XU=TU((function(e,t,r,n){gU(t,GU(t),e,n)})),YU=function(e,t){return function(r){return e(t(r))}},$U=YU(Object.getPrototypeOf,Object),ZU=Function.prototype,JU=Object.prototype,ej=ZU.toString,tj=JU.hasOwnProperty,rj=ej.call(Object),nj=function(e){if(!FD(e)||"[object Object]"!=jD(e))return!1;var t=$U(e);if(null===t)return!0;var r=tj.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ej.call(r)==rj},oj=function(e){if(!FD(e))return!1;var t=jD(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!nj(e)},ij=EU((function(e,t){try{return vU(e,void 0,t)}catch(e){return oj(e)?e:new Error(e)}})),aj=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},sj=Object.prototype,cj=sj.hasOwnProperty,uj=function(e,t,r,n){return void 0===e||fU(e,sj[r])&&!cj.call(n,r)?t:e},lj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dj=function(e){return"\\"+lj[e]},fj=YU(Object.keys,Object),pj=Object.prototype.hasOwnProperty,hj=function(e){return BU(e)?KU(e):function(e){if(!qU(e))return fj(e);var t=[];for(var r in Object(e))pj.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},gj=/<%=([\s\S]+?)%>/g,mj=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),vj=RD?RD.prototype:void 0,yj=vj?vj.toString:void 0,bj=function e(t){if("string"==typeof t)return t;if(LU(t))return aj(t,e)+"";if(VD(t))return yj?yj.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},wj=function(e){return null==e?"":bj(e)},Cj=/[&<>"']/g,kj=RegExp(Cj.source),Ej={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:gj,variable:"",imports:{_:{escape:function(e){return(e=wj(e))&&kj.test(e)?e.replace(Cj,mj):e}}}},Sj=/\b__p \+= '';/g,Bj=/\b(__p \+=) '' \+/g,_j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Aj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,xj=/($^)/,Tj=/['\n\r\u2028\u2029\\]/g,Ij=Object.prototype.hasOwnProperty,Pj=function(e,t,r){var n=Ej.imports._.templateSettings||Ej;r&&xU(e,t,r)&&(t=void 0),e=wj(e),t=XU({},t,n,uj);var o,i,a=XU({},t.imports,n.imports,uj),s=hj(a),c=function(e,t){return aj(t,(function(t){return e[t]}))}(a,s),u=0,l=t.interpolate||xj,d="__p += '",f=RegExp((t.escape||xj).source+"|"+l.source+"|"+(l===gj?Aj:xj).source+"|"+(t.evaluate||xj).source+"|$","g"),p=Ij.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(f,(function(t,r,n,a,s,c){return n||(n=a),d+=e.slice(u,c).replace(Tj,dj),r&&(o=!0,d+="' +\n__e("+r+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var h=Ij.call(t,"variable")&&t.variable;h||(d="with (obj) {\n"+d+"\n}\n"),d=(i?d.replace(Sj,""):d).replace(Bj,"$1").replace(_j,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=ij((function(){return Function(s,p+"return "+d).apply(void 0,c)}));if(g.source=d,oj(g))throw g;return g},Rj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nj=/^\w*$/,Oj=uU(Object,"create"),Lj=Object.prototype.hasOwnProperty,Mj=Object.prototype.hasOwnProperty;function Dj(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Dj.prototype.clear=function(){this.__data__=Oj?Oj(null):{},this.size=0},Dj.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Dj.prototype.get=function(e){var t=this.__data__;if(Oj){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Lj.call(t,e)?t[e]:void 0},Dj.prototype.has=function(e){var t=this.__data__;return Oj?void 0!==t[e]:Mj.call(t,e)},Dj.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Oj&&void 0===t?"__lodash_hash_undefined__":t,this};var Uj=Dj,jj=function(e,t){for(var r=e.length;r--;)if(fU(e[r][0],t))return r;return-1},Fj=Array.prototype.splice;function Vj(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vj.prototype.clear=function(){this.__data__=[],this.size=0},Vj.prototype.delete=function(e){var t=this.__data__,r=jj(t,e);return!(r<0||(r==t.length-1?t.pop():Fj.call(t,r,1),--this.size,0))},Vj.prototype.get=function(e){var t=this.__data__,r=jj(t,e);return r<0?void 0:t[r][1]},Vj.prototype.has=function(e){return jj(this.__data__,e)>-1},Vj.prototype.set=function(e,t){var r=this.__data__,n=jj(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var zj=Vj,Kj=uU(ID,"Map"),Hj=function(e,t){var r=e.__data__;return function(e){var t=Gg(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map};function qj(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qj.prototype.clear=function(){this.size=0,this.__data__={hash:new Uj,map:new(Kj||zj),string:new Uj}},qj.prototype.delete=function(e){var t=Hj(this,e).delete(e);return this.size-=t?1:0,t},qj.prototype.get=function(e){return Hj(this,e).get(e)},qj.prototype.has=function(e){return Hj(this,e).has(e)},qj.prototype.set=function(e,t){var r=Hj(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var Wj=qj;function Qj(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Qj.Cache||Wj),r}Qj.Cache=Wj;var Gj=Qj,Xj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yj=/\\(\\)?/g,$j=function(e){var t=Gj((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Xj,(function(e,r,n,o){t.push(n?o.replace(Yj,"$1"):r||e)})),t}),(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}(),Zj=function(e,t){return LU(e)?e:function(e,t){if(LU(e))return!1;var r=Gg(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!VD(e))||Nj.test(e)||!Rj.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:$j(wj(e))},Jj=function(e){if("string"==typeof e||VD(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},eF=function(e,t,r){var n=null==e?void 0:function(e,t){for(var r=0,n=(t=Zj(t,e)).length;null!=e&&r<n;)e=e[Jj(t[r++])];return r&&r==n?e:void 0}(e,t);return void 0===n?r:n},tF=ZT.Errors;function rF(e){var t=e.livenessSettings,r=e.apiClient,n=e.apiCheck,o=e.onError,i=xM(ov.useState({face_tracking_setting:{enable:!1,web_terminate_threshold:.0030152991993743408,web_warning_threshold:.0017317430600108828,limit_for:"all_flow",max_warning_time:5},flow_interval_time_ms:3e3,limit_time_liveness_check:{enable:!1,limit_time_second:45},terminate_if_no_face:{enable:!1,max_invalid_frame:5,max_time_ms:1e3}}),2),a=i[0],s=i[1];return ov.useEffect((function(){t?s(BM({},t)):n&&r.clientSettings().then((function(e){if(e&&e.data){var t,r=eF(e,"data.settings.sdk_settings.server_log_settings.enable"),n=eF(e,"data.settings.sdk_settings.active_liveness_settings"),i=eF(n,"save_encoded_frames",{});i.enable&&(t={enable:!0,framesIntervalTime:i.frames_interval_ms,framesBatchLength:i.frames_batch_len}),s(BM(BM({},n),{},{enableTracking:r,captureFrameSettings:t}))}e&&e.errors&&o(tF.server_error)})).catch((function(e){o(e)}))}),[t,r,o,n]),a}var nF=function(e){var t=e.curStep,r=e.faceDirection,n=eF(t,"stepTimeConstraints.delayTime");return!!n&&(null===t.firstFrameSpottedAt?(t.name===r&&(t.firstFrameSpottedAt=(new Date).getTime()),!0):(new Date).getTime()-t.firstFrameSpottedAt<n)},oF=function(e){var t=function(e){return e?1/0===(e=QD(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),r=t%1;return t==t?r?t-r:t:0},iF=function(e){return function(e,t){var r;if("function"!=typeof t)throw new TypeError("Expected a function");return e=oF(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}(2,e)};function aF(){return(aF=CM(regeneratorRuntime.mark((function e(){var t,r,n,o,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=t.blazefaceModelUrl,n=t.tfScriptUrls,e.next=3,dM.loadTensorFlow(n);case 3:return e.next=5,dM.initTensorFlow({preferredBackends:["wasm","webgl","cpu"]});case 5:return e.next=7,dM.loadBlazefaceModel({modelUrl:r});case 7:return o=e.sent,e.abrupt("return",{blazefaceModel:o});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var sF,cF,uF,lF,dF,fF,pF,hF=iF((function(){return aF.apply(this,arguments)})),gF=[],mF=function(){gF=[]},vF=function(e,t,r){r&&mF(),gF.push({id:null});var n=gF.length-1;t.httpClient.post("/v1/files",{frames:e,metadata:JSON.stringify({type:"selfie"})}).then((function(e){e&&e.data&&e.data.file_id?gF[n].id=e.data.file_id:gF[n].id=-1}))},yF=function(){return new Promise((function(e){var t=setInterval((function(){gF.every((function(e){return e.id}))&&(e(),clearInterval(t))}),200)}))},bF=function(e){return e.enable?gF.some((function(e){return-1===e.id}))?null:gF:[]},wF=AO.faceTracker(),CF=ZT.Mode,kF=ZT.FaceDirection,EF=ZT.Errors,SF=ZT.Messages;function BF(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.apiCheck,n=t.mode,o=t.bgCameraMask,i=t.bgCameraMaskRed,a=t.surroundStyle,s=t.cropAreaDimension,c=t.customInstructions,u=t.customIcon,l=t.customDirectionIcon,d=t.customStepTimeConstraints,f=void 0===d?(kM(e={},ZT.FaceDirection.UP,{delayTime:0}),kM(e,ZT.FaceDirection.LEFT,{delayTime:0}),kM(e,ZT.FaceDirection.RIGHT,{delayTime:0}),kM(e,ZT.FaceDirection.FRONTAL,{delayTime:2e3}),e):d,p=t.onLivenessDetectionDone,h=t.onError,g=t.frontalMinSize,m=t.waitingTimeToGetBetterFrames,v=void 0===m?500:m,y=t.captureFrameSettings,b=void 0===y?{enable:!1,framesIntervalTime:180,framesBatchLength:0}:y,w=t.livenessSettings,C=t.setRemainingTime,k=void 0===C?function(){}:C,E=t.onProcessing,S=void 0===E?function(){}:E,B=t.customErrors,_=t.customMessages,A=t.apiCredentials,x=void 0===A?{}:A,T=t.onFramesCaptured,I=void 0===T?function(){}:T,P=t.initFirstGestureTimeout,R=void 0===P?2e3:P,N=t.outputEncryptionSettings,O=t.cameraScale,L=void 0===O?1:O,M=t.passiveModeAuto,D=void 0!==M&&M,U=ov.useState(!1),j=xM(U,2),F=j[0],V=j[1],z=ov.useState(!1),K=xM(z,2),H=K[0],q=K[1],W=ov.useState(!1),Q=xM(W,2),G=Q[0],X=Q[1],Y=ov.useRef(null),$=nN.useSDKSettings(),Z=$.lang,J=$.assetRoot,ee=$.customUrls,te=KL.useApiClient({apiCredentials:x}),re=te.apiClient,ne=n===CF.ACTIVE,oe=ov.useReducer((function(e){return e+1}),0),ie=xM(oe,2),ae=(ie[0],ie[1]),se=ov.useRef(null),ce=ov.useRef(!1),ue=ov.useState(!1),le=xM(ue,2),de=le[0],fe=le[1],pe=ov.useRef({}),he=LN.useSDKTracking(),ge=he.sendEvent,me=ov.useRef(null);null===me.current&&(me.current=AO.initFaceVerificationData({assetRoot:J,customInstructions:c,customIcon:u,customDirectionIcon:l,customStepTimeConstraints:f}));var ve=ov.useState(),ye=xM(ve,2),be=ye[0],we=ye[1],Ce=ov.useMemo((function(){return $D(we,500)}),[we]),ke=ov.useRef([]),Ee=ov.useRef(),Se=ov.useRef(),Be=rF({livenessSettings:w,apiClient:re,apiCheck:r,onError:h}),_e=Be.face_tracking_setting,Ae=Be.flow_interval_time_ms,xe=Be.limit_time_liveness_check,Te=Be.terminate_if_no_face,Ie=Be.captureFrameSettings,Pe=void 0===Ie?b:Ie,Re=Be.enableTracking,Ne=ov.useMemo((function(){return $D((function(e){r&&!Re||ge(e)}),2e3)}),[r,Re,ge]),Oe=ov.useRef(0),Le=ov.useRef();ov.useEffect((function(){Ne({tag:"selfie",event:"user_activity.start",log:{}})}),[Ne]),ov.useEffect((function(){var e=!1;function t(){return(t=CM(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(de){t.next=11;break}return Se.current=performance.now(),t.next=4,hF(ee);case 4:if(pe.current=t.sent,!e){t.next=7;break}return t.abrupt("return");case 7:fe(!0),Ne({tag:"selfie",event:"user_activity.show",log:{}}),Ne({tag:"selfie",event:"sdk.load_model",log:{status:"success",time_in_ms:performance.now()-Se.current}}),Se.current=null;case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){t.apply(this,arguments)}(),function(){e=!0}}),[de,ee,Ne]);var Me=ov.useCallback((function(){k(""),me.current.curStepIndex=me.current.steps.length,q(!1),setTimeout((function(){me.current=AO.initFaceVerificationData({assetRoot:J,customInstructions:c,customIcon:u,customDirectionIcon:l}),Ee.current=Date.now(),Oe.current=0,Le.current=null,ke.current=[],X(!1),mF(),ae()}),Ae)}),[J,c,u,l,Ae,k]),De=ov.useRef(null),Ue=ov.useMemo((function(){return BM(BM({},EF),B)}),[B]),je=ov.useMemo((function(){return BM(BM({},SF),_)}),[_]),Fe=400;ov.useEffect((function(){if(F&&xe.enable&&G){Ee.current=Date.now();var e=xe.limit_time_second+1,t=xe.remain_time_show||10,r=xe.format||"s";De.current=setInterval((function(){var n=Math.round((1e3*e-(Date.now()-Ee.current))/1e3);if(me.current.curStepIndex<me.current.steps.length){if(n<=t&&n>=1){var o=Pj(je.REMAIN_TIME[Z]),i=n;switch(r){case"mm:ss":i=n.toString().padStart(5,"00:00");break;case"ss":i=n.toString().padStart(2,"0")}k(o({x:i}))}if(Math.round((Date.now()-Ee.current)/1e3)===e){var a,s={};Object.keys(null===(a=Ue.liveness_terminated_time_out)||void 0===a?void 0:a.msg).forEach((function(e){var t,r=Pj(null===(t=Ue.liveness_terminated_time_out)||void 0===t?void 0:t.msg[e]);s[e]=r({x:xe.limit_time_second})})),we(BM(BM({},Ue.liveness_terminated_time_out),{},{msg:s,duration:Ae})),Ne({tag:"selfie",event:"sdk_ui.show_alert",log:{alert:"liveness_terminated_time_out,"}}),Me()}}}),1e3)}return function(){clearInterval(De.current)}}),[Me,k,F,Z,Ae,xe.enable,xe.limit_time_second,G,Ue.liveness_terminated_time_out,je.REMAIN_TIME,xe.format,xe.remain_time_show,Ne]);var Ve=ov.useCallback((function(e){var t,r,n=e.clientWidth,i=e.clientHeight,c=e.videoAreaWidth,u=e.videoAreaHeight,l=e.lostX,d=e.lostY;GM.isMobile?r=t=c:t=r=u-200;var f=Math.floor((c-t)/2)+l,p=5+d,h=o;se.current={x:f,y:p,width:t,height:r,image:h,surroundStyle:a},"object"===bM(s)?se.current=BM(BM({},se.current),s):"function"==typeof s&&(se.current=BM(BM({},se.current),s({clientWidth:n,clientHeight:i,videoAreaWidth:c,videoAreaHeight:u,lostX:l,lostY:d,isMobile:GM.isMobile,width:t,height:r}))),ae(),V(!0)}),[o,a,s]),ze=ov.useState(3),Ke=xM(ze,2),He=Ke[0],qe=Ke[1],We=ov.useState(!1),Qe=xM(We,2),Ge=Qe[0],Xe=Qe[1],Ye=ov.useRef(!1),$e=ov.useCallback((function(e){Xe(e),Ye.current=e}),[]),Ze=ov.useRef(null),Je=ov.useRef([]),et=ov.useCallback((function(){qe(3),clearInterval(Ze.current),$e(!0);var e=function(){var e=CM(regeneratorRuntime.mark((function e(t){var n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t-1!=0){e.next=9;break}return clearInterval(Ze.current),n=Je.current,S(),o=n.map((function(e){return TL.resizeBlobImg(e.blob,Fe,Fe)})),e.next=7,Promise.all(o);case 7:i=e.sent,r?(a=TM(ke.current),s=n.map((function(e,t){return re.uploadImage({file:i[t],label:"portrait",metadata:JSON.stringify({gesture_score:e.leftRightScore,gesture:kF.FRONTAL})})})),Promise.all(s).then((function(e){return re.verifyFaceLiveness({images:e.map((function(e){return{id:e.data.image_id}})),videos:[{frames:a}]})})).then((function(e){p({apiCheckPassed:e.data.is_live,verifyFaceLivenessResult:e.data})})).catch((function(e){h({error:e})}))):p({frontalFaces:i,capturedFrames:ke.current});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Ze.current=setInterval((function(){qe((function(t){return e(t),t-1}))}),1e3)}),[$e,r,p,re,h,S]);ov.useEffect((function(){be&&(clearInterval(Ze.current),$e(!1),Je.current=[])}),[be,$e]),ov.useEffect((function(){var e,t=Y.current,n=function(){var e=CM(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=me.current.steps,r=[],t.forEach((function(e){var t=e.name,n=e.image,o=e.frontalFaceImage;if(t!==kF.FRONTAL){var i={label:"portrait",metadata:JSON.stringify({gesture_score:n.leftRightScore,gesture:t})};N&&N.key?r.push(re.httpClient.post("/v1/images",BM({base64:n.encrypted.hex},i),{"X-TV-Key":N.key})):r.push(re.uploadImage(BM({file:n.blob},i)))}else r.push(Promise.resolve({data:{image_id:null}}));if(o.blob){var a={label:"portrait",metadata:JSON.stringify({gesture_score:o.leftRightScore,gesture:kF.FRONTAL})};N&&N.key?r.push(re.httpClient.post("/v1/images",BM({base64:o.encrypted.hex},a),{"X-TV-Key":N.key})):r.push(re.uploadImage(BM({file:o.blob},a)))}else r.push(Promise.resolve({data:{image_id:null}}))})),e.next=5,Promise.all(r);case 5:n=e.sent,t.forEach((function(e,t){e.image.imageId=n[2*t].data.image_id,e.frontalFaceImage.imageId=n[2*t+1].data.image_id}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=CM(regeneratorRuntime.mark((function e(){var t,r,o,i,a,s,c,u,l,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n();case 3:if(t=me.current.steps,0!==(r=t.filter((function(e){return e.frontalFaceImage.imageId}))).length){e.next=9;break}p({error:"wrong_face_movement"}),e.next=26;break;case 9:return e.next=11,yF();case 11:if(o=bF(Pe)){e.next=16;break}p({error:"network_error"}),e.next=26;break;case 16:return i=re.verifyFaceLiveness({images:r.map((function(e){return{id:e.frontalFaceImage.imageId}})),gesture_images:t.filter((function(e){return e.image.imageId&&e.name!==kF.FRONTAL})).map((function(e){return{gesture:e.name,images:[{id:e.image.imageId}]}})),videos:o}),a=re.requestVerifyPortrait({image:{id:r[r.length-1].frontalFaceImage.imageId}}),e.next=20,Promise.all([i,a]);case 20:s=e.sent,c=xM(s,2),u=c[0],l=c[1],d=!0===u.data.is_live,p({apiCheckPassed:d,verifyFaceLivenessResult:u.data,verifyFacePortraitResult:l.data,frontalFaces:r.map((function(e){return{id:e.frontalFaceImage.imageId,blob:e.frontalFaceImage.blob}})),steps:t.filter((function(e){return e.image.imageId&&e.name!==kF.FRONTAL})).map((function(e){var t=e.name,r=e.image;return{name:t,blob:r.blob,id:r.imageId}}))});case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(0),h({error:e.t0});case 31:case"end":return e.stop()}}),e,null,[[0,28]])})));return function(){return e.apply(this,arguments)}}(),s=function(){var e=CM(regeneratorRuntime.mark((function e(){var t,r,n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=me.current.steps,r=[],t.map((function(e){return r.push({name:e.name,blob:e.image.blob}),e.frontalFaceImage.blob&&r.push({name:e.name,blob:e.frontalFaceImage.blob}),0})),n=r.map((function(e){return TL.resizeBlobImg(e.blob,Fe,Fe)})),e.next=6,Promise.all(n);case 6:return o=e.sent,i=r.map((function(e,t){return{name:e.name,blob:o[t]}})),e.next=10,Promise.all(t.map(function(){var e=CM(regeneratorRuntime.mark((function e(r,n){var o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=i.filter((function(e){return e.name===r.name})),t[n].image.blob=o[0].blob,r.frontalFaceImage.blob&&(t[n].frontalFaceImage.blob=o[1].blob),!N||!N.key){e.next=12;break}return a=N.key,e.next=7,gM.encrypt({blob:o[0].blob,key:a});case 7:if(t[n].image.encrypted=e.sent,!r.frontalFaceImage.blob){e.next=12;break}return e.next=11,gM.encrypt({blob:o[1].blob,key:a});case 11:t[n].frontalFaceImage.encrypted=e.sent;case 12:return e.abrupt("return",0);case 13:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=CM(regeneratorRuntime.mark((function e(){var t,n,o,i,c,u,l,d,f,h,m,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=me.current.steps,n=t[me.current.curStepIndex],Ne({tag:"selfie",event:"user_activity.".concat(n.name),log:{time_capture_in_seconds:((performance.now()-Se.current)/1e3).toFixed(1)}}),me.current.curStepIndex++,Se.current=performance.now(),_e.enable&&"each_gesture"===_e.limit_for&&(Oe.current=0),me.current.curStepIndex!==t.length){e.next=36;break}if(xe.enable&&k(""),!p){e.next=36;break}return Pe.enable&&Pe.framesBatchLength>0&&ke.current.length%Pe.framesBatchLength>0&&(I(ke.current.slice(ke.current.length%Pe.framesBatchLength*-1).map((function(e){return{base64:e.base64,label:e.label,index:e.index}}))),r&&vF(ke.current.slice(ke.current.length%Pe.framesBatchLength*-1),re)),Ne({tag:"selfie",event:"user_activity",log:{time_capture_in_seconds:((Date.now()-Ee.current)/1e3).toFixed(1)}}),S(),e.next=14,s();case 14:if(r){e.next=34;break}if(l=t.filter((function(e){return e.name!==kF.FRONTAL})).map((function(e){return{name:e.name,image:{blob:e.image.blob,encrypted:e.image.encrypted}}})),d=t.filter((function(e){return e.name!==kF.FRONTAL})).map((function(e){return e.frontalFaceImage.blob})).filter((function(e){return null!==e})),f=t.filter((function(e){return e.name!==kF.FRONTAL})).map((function(e){return e.frontalFaceImage.encrypted})).filter((function(e){return e&&e.hex})),h=null===(o=t.find((function(e){return e.name===kF.FRONTAL})))||void 0===o||null===(i=o.image)||void 0===i?void 0:i.blob,m=null===(c=t.find((function(e){return e.name===kF.FRONTAL})))||void 0===c||null===(u=c.image)||void 0===u?void 0:u.encrypted,!h||!g){e.next=26;break}return e.next=23,TL.scaleImage(h,{minSize:g});case 23:e.t0=e.sent,e.next=27;break;case 26:e.t0=null;case 27:v=e.t0,h&&d.push(h),m&&f.push(m),Ne({tag:"result",event:"sdk_mode.liveness",log:{result_object:{steps:l,frontalFaces:d,frontalScaledImage:v}}}),p({steps:l,frontalFaces:d,frontalFacesEncrypted:f,frontalScaledImage:v,capturedFrames:ke.current}),e.next=36;break;case 34:return e.next=36,a();case 36:ae();case 37:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=YD((function(){var e=me.current,t=e.curStepIndex,r=e.steps,n=r[t],o=null!==(null==n?void 0:n.image.blob),i=null!==(null==n?void 0:n.frontalFaceImage.blob),a=r.filter((function(e){return e.frontalFaceImage.blob})).length,s=!1;return o&&(i||![1].includes(t)||a>=1)?(ce.current=!1,c(),s=!0):ce.current=!(!o||i),q(!1),s}),v);function l(e,t,r,n){return d.apply(this,arguments)}function d(){return(d=CM(regeneratorRuntime.mark((function e(t,r,n,o){var i,a,s,l,d,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=me.current,a=i.curStepIndex,s=i.steps,!(a<s.length)){e.next=24;break}if(l=s[a],!nF({faceDirection:t,curStep:l})){e.next=5;break}return e.abrupt("return");case 5:if(t!==kF.FRONTAL||null!==l.frontalFaceImage.blurScore&&!lO.hasBetterBlurScore(n,l.frontalFaceImage.blurScore)){e.next=13;break}return l.frontalFaceImage.blurScore=n,e.next=9,fO.takePicture({canvas:r});case 9:d=e.sent,l.frontalFaceImage.blob=d,l.frontalFaceImage.leftRightScore=o,ce.current&&(ce.current=!1,c());case 13:if(l.name!==t||null!==l.image.blurScore&&!lO.hasBetterBlurScore(n,l.image.blurScore)){e.next=24;break}return q(!0),l.image.blurScore=n,e.next=18,fO.takePicture({canvas:r});case 18:f=e.sent,l.image.blob=f,l.image.leftRightScore=o,l.image.objUrl&&URL.revokeObjectURL(l.image.objUrl),l.image.objUrl=URL.createObjectURL(f),u();case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e,t,r){return m.apply(this,arguments)}function m(){return(m=CM(regeneratorRuntime.mark((function e(t,r,n){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!0===Ye.current&&t===kF.FRONTAL&&Je.current.length<3)){e.next=5;break}return e.next=3,fO.takePicture({canvas:r});case 3:o=e.sent,Je.current.push({blob:o,leftRightScore:n});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e,t,n,o){if(ke.current.length&&Date.now()-ke.current[ke.current.length-1].time<Pe.framesIntervalTime)return null;if(Pe.enable&&!o){var i=e.topLeft,a=e.bottomRight,s=[].concat(TM(i),TM(a)),c=[];[i,a].forEach((function(e){c=[].concat(TM(c),[e[0]/PO.SIZE*t.width,e[1]/PO.SIZE*t.height])}));var u=wF(e,0===ke.current.length),l=u.score,d=u.time,f=t.toDataURL("image/jpeg",.8);return ke.current.push({label:"portrait",base64:f.split(",")[1],landmarks:n,original_landmarks:n.map((function(e){return[e[0]/PO.SIZE*t.width,e[1]/PO.SIZE*t.height]})),score:l,time:d,index:ke.current.length,bbox:s,original_bbox:c}),Pe.framesBatchLength>0&&ke.current.length%Pe.framesBatchLength==0&&I&&(I(ke.current.slice(-Pe.framesBatchLength).map((function(e){return{base64:e.base64,label:e.label,index:e.index}}))),r&&vF(ke.current.slice(-Pe.framesBatchLength),re,ke.current.length===Pe.framesBatchLength)),l}return null}function b(e){if(!_e.enable||null===e||!G)return!0;var t=_e.web_warning_threshold,r=_e.web_terminate_threshold,n=_e.max_warning_time;return e<t||(e<r&&Oe.current<n?(Oe.current++,Oe.current===n?(we(BM(BM({},Ue.liveness_terminated_face_tracking),{},{duration:Ae})),Ne({tag:"selfie",event:"sdk_ui.show_alert",log:{alert:"liveness_terminated_face_tracking"}})):we(BM(BM({},Ue.liveness_too_fast),{},{duration:1500})),!0):(we(BM(BM({},Ue.liveness_terminated),{},{duration:Ae})),Ne({tag:"selfie",event:"sdk_ui.show_alert",log:{alert:"liveness_terminated"}}),Me(),!1))}function w(e){if(Te.enable&&G){var t=Te.max_time_ms;Le.current&&e||(Le.current={time:Date.now(),frame:0}),e&&Le.current.frame++;var r=Le.current.time;e&&Date.now()-r>=t&&(we(BM(BM({},Ue.liveness_terminated_no_face),{},{duration:Ae})),Ne({tag:"selfie",event:"sdk_ui.show_alert",log:{alert:"liveness_terminated_no_face"}}),Me())}}function C(e,t){return E.apply(this,arguments)}function E(){return(E=CM(regeneratorRuntime.mark((function r(n,a){var s,c,u,d,p,h,g,m,v,k,E,S,B,_,A,x,T,I,P,R,N;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(0!==(null==a?void 0:a.width)&&0!==(null==a?void 0:a.height)){r.next=2;break}return r.abrupt("return");case 2:return s=n.cropX,c=n.cropY,u=n.cropWidth,d=n.cropHeight,a.getContext("2d").drawImage(t,s,c,u,d,-(u*L-u)/2/L,-(d*L-d)/2/L,u,d),p=pe.current.blazefaceModel,r.next=8,lO.calculateBlurScore(a);case 8:return h=r.sent,r.next=11,PO.getModelPredictions({model:p,sCanvas:a});case 11:return g=r.sent,r.next=14,AO.validatePredictions({predictions:g,width:PO.SIZE,height:PO.SIZE});case 14:if(m=r.sent,v=m.error,k=m.fullFace,se.current.image=o,S=null,B=null,_=null,A=me.current,x=A.curStepIndex,T=A.steps,!k){r.next=29;break}return I=T[x],_=k.landmarks,r.next=27,AO.calculateFaceDirection({landmarks:_,getPerfectFrontal:I&&I.name===kF.FRONTAL});case 27:(P=r.sent)&&(S=P.gesture,B=P.leftRightScore);case 29:if(R="no_face"===(null==v?void 0:v.code)||"partial_face"===(null==v?void 0:v.code),N=x<T.length,w(R&&N),null!=v&&v.code&&Ne({tag:"selfie",event:"sdk_ui.show_alert",log:{alert:v.code}}),v&&("face_too_small"!==v.code||![kF.DOWN,kF.UP,kF.LEFT,kF.RIGHT].includes(S))){r.next=54;break}if(ne||y(g[0],a,_),!ne){r.next=43;break}if(G||(X(!0),Se.current=performance.now(),Ee.current=Date.now()),!b(y(g[0],a,_,x>=T.length))){r.next=41;break}return r.next=41,l(S,a,h,B);case 41:r.next=52;break;case 43:if(![kF.LEFT,kF.RIGHT].includes(S)){r.next=48;break}E=Ue.not_frontal_face,se.current.image=i,r.next=52;break;case 48:if(v){r.next=52;break}return D&&!Ye.current&&0===Je.current.length&&setTimeout((function(){et()}),500),r.next=52,f(S,a,B);case 52:r.next=55;break;case 54:x<T.length&&(E=Ue[v.code],se.current.image=i);case 55:Ce(E),-1!==e&&(e=requestAnimationFrame((function(){return C(n,a)})));case 57:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function B(){return(B=CM(regeneratorRuntime.mark((function e(){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=fO.analyzeVideoAndWindowSizes(t,se.current),n=r.cropWidth,o=r.cropHeight,(i=document.createElement("canvas")).width=n,i.height=o,(a=i.getContext("2d")).translate(n,0),a.scale(-1*L,1*L),C(r,i);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return F&&de&&setTimeout((function(){!function(){B.apply(this,arguments)}()}),R),function(){cancelAnimationFrame(e),e=-1}}),[R,F,Z,ne,re,r,o,i,p,h,g,v,Pe,S,_e,xe.enable,k,Ce,Ae,Me,Te,G,Ue,de,Ne,I,N,L,et,D]);var tt=me.current,rt=tt.curStepIndex,nt=tt.steps,ot=ov.useMemo((function(){return nt.find((function(e){return e.name===ZT.FaceDirection.FRONTAL}))}),[nt]),it=ce.current?ot:nt[rt],at=it&&G?it.instructions[Z]:null,st=it&&G?it.directionIcon:"",ct=it?it.directionIconAnimation:"";return{countdownToTakePicture:He,cropArea:se,curStepIndex:rt,directionIcon:st,directionIconAnimation:ct,faceDetectionError:be,handleTriggerPassiveMode:et,handleVideoPlayed:Ve,instructions:at,isActiveMode:ne,refVideo:Y,showCountdown:Ge,steps:nt,videoPlayed:F,activeCapturing:H,isFirstValidFrameFound:G,warmupDone:de}}var _F=(kM(sF={},ZT.FaceDirection.LEFT,90),kM(sF,ZT.FaceDirection.RIGHT,270),kM(sF,ZT.FaceDirection.UP,180),kM(sF,ZT.FaceDirection.DOWN,0),sF),AF=tw(["0%{opacity:0.15;}50%{opacity:0.3;}100%{opacity:1;}"]),xF=Zb.div(cF||(cF=AM(["\n width: 200px;\n height: 200px;\n position: relative;\n transform: scale(0.48);\n\n .top,\n .right,\n .bottom,\n .left {\n position: absolute;\n }\n\n .top {\n top: 0;\n left: 50%;\n transform: rotate(","deg) translateX(-50%);\n }\n\n .right {\n right: 0;\n top: 50%;\n transform: rotate(","deg) translateX(-50%);\n }\n\n .bottom {\n bottom: 0;\n left: 50%;\n transform: rotate(","deg) translateX(50%);\n }\n\n .left {\n left: 0;\n top: 50%;\n transform: rotate(","deg) translateX(50%);\n }\n"])),_F[ZT.FaceDirection.DOWN],_F[ZT.FaceDirection.LEFT],_F[ZT.FaceDirection.UP],_F[ZT.FaceDirection.RIGHT]),TF=Zb.div(uF||(uF=AM(["\n width: 70px;\n transform: rotate(","deg);\n"])),(function(e){var t,r=e.direction;return null!==(t=_F[r])&&void 0!==t?t:0})),IF=Zb.span(lF||(lF=AM(["\n display: flex;\n margin: 4px 0;\n width: 100%;\n height: 15px;\n animation: "," 1s infinite;\n animation-direction: alternate;\n\n &::before,\n &::after {\n content: '';\n height: 100%;\n width: 50%;\n background: rgba(255, 255, 255, 0.8);\n }\n\n &::before {\n transform: skewY(32deg);\n }\n\n &::after {\n width: 50%;\n transform: skewY(-32deg);\n }\n"])),AF),PF=Zb(IF)(dF||(dF=AM(["\n animation-delay: 0s;\n"]))),RF=Zb(IF)(fF||(fF=AM(["\n animation-delay: 0.5s;\n"]))),NF=Zb(IF)(pF||(pF=AM(["\n animation-delay: 1s;\n"])));function OF(e){var t=e.type;return t!==ZT.FaceDirection.FRONTAL?ov.createElement(TF,{direction:t},ov.createElement(PF,null),ov.createElement(RF,null),ov.createElement(NF,null)):ov.createElement(xF,null,ov.createElement(TF,{className:"top"},ov.createElement(PF,null),ov.createElement(RF,null),ov.createElement(NF,null)),ov.createElement(TF,{className:"right"},ov.createElement(PF,null),ov.createElement(RF,null),ov.createElement(NF,null)),ov.createElement(TF,{className:"bottom"},ov.createElement(PF,null),ov.createElement(RF,null),ov.createElement(NF,null)),ov.createElement(TF,{className:"left"},ov.createElement(PF,null),ov.createElement(RF,null),ov.createElement(NF,null)))}OF.propTypes={type:Tv.oneOf([ZT.FaceDirection.LEFT,ZT.FaceDirection.RIGHT,ZT.FaceDirection.UP,ZT.FaceDirection.FRONTAL])},OF.defaultProps={type:ZT.FaceDirection.LEFT};var LF,MF=ZT.ErrorDuration;function DF(e){var t=e.children,r=e.errorMsg,n=e.className;return ov.isValidElement(t)?r?ov.createElement("div",{className:n},ov.cloneElement(t,{errorMsg:r})):null:r?ov.createElement("div",{className:n},r):null}function UF(e){var t=e.children,r=e.className,n=e.error,o=ov.useRef(0),i=ov.useRef(""),a=nN.useSDKSettings().lang,s=ov.useRef(MF.SHORT),c=n||{},u=c.msg,l=c.duration,d=void 0===l?MF.SHORT:l,f=null==u?void 0:u[a];return Date.now()-o.current>=s.current?(o.current=Date.now(),s.current=d,i.current=f,DF({children:t,errorMsg:f,className:r})):DF({children:t,errorMsg:i.current,className:r})}UF.propTypes={children:Tv.node,className:Tv.string},UF.defaultProps={className:""};var jF=Zb.circle(LF||(LF=AM(["\n transition: stroke-dashoffset 0.4s;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n"])));function FF(e){var t=e.className,r=e.style,n=e.radius,o=e.strokeWidth,i=e.progress,a=e.hasError,s=e.activeColor,c=e.innerPadding,u=e.outsideRingColor,l=e.outsideRingOpacity,d=e.insideRingColor,f=e.insideRingWidth,p=e.insideRingStrokeDash,h=e.errorRingWidth,g=e.errorRingColor,m=e.dashedRingColor,v=e.dashedRingOpacity,y=e.dashedRingWidth,b=e.dashedRingLineThick,w=e.dashedRingLineSpacing,C=e.dashedInsideRingColor,k=e.dashedInsideRingWidth,E=e.showOutsideRing,S=e.showInsideRing,B=e.showDashedRing,_=2*n,A=2*n,x=n-2*o,T=2*Math.PI*x,I=T-i/100*T,P=x-y/2-o/2-c,R=2*Math.PI*P,N=R-i/100*R,O=P-k/2-y/2,L=2*Math.PI*O,M=L-i/100*L,D=O-f/2-k/2,U=O-h/2-k/2;return ov.createElement("svg",{className:t,style:r,width:_,height:A,viewBox:"0 0 ".concat(_," ").concat(A),fill:"none",xmlns:"http://www.w3.org/2000/svg"},E?ov.createElement(ov.Fragment,null,ov.createElement("circle",{"data-testid":"outsideRing",opacity:l,cx:n,cy:n,r:x,stroke:u}),ov.createElement(jF,{"data-testid":"outsideAnimateRing",cx:n,cy:n,r:x,stroke:s,strokeWidth:o,strokeLinecap:"round",strokeDasharray:"".concat(T," ").concat(T),style:{strokeDashoffset:I}})):null,B?ov.createElement(ov.Fragment,null,ov.createElement("circle",{"data-testid":"dashedRing",opacity:v,cx:n,cy:n,r:P,stroke:m,strokeWidth:y,strokeDasharray:"".concat(b," ").concat(w)}),ov.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse"},ov.createElement("circle",{cx:n,cy:n,r:P,stroke:s,strokeWidth:y,strokeDasharray:"".concat(b," ").concat(w)})),ov.createElement("g",{mask:"url(#mask0)"},ov.createElement(jF,{"data-testid":"dashedAnimateRing",cx:n,cy:n,r:P,stroke:s,strokeWidth:y,strokeDasharray:"".concat(R," ").concat(R),style:{strokeDashoffset:N}})),ov.createElement("circle",{"data-testid":"dashedInsideRing",opacity:v,cx:n,cy:n,r:O,stroke:C,strokeWidth:k}),ov.createElement(jF,{"data-testid":"dashedInsideAnimateRing",cx:n,cy:n,r:O,stroke:s,strokeWidth:k,strokeLinecap:"round",strokeDasharray:"".concat(L," ").concat(L),style:{strokeDashoffset:M}})):null,S?ov.createElement("circle",{"data-testid":"insideRing",strokeDasharray:p,cx:n,cy:n,r:D,stroke:d,strokeWidth:f}):null,a?ov.createElement("circle",{"data-testid":"errorRing",strokeDasharray:p,cx:n,cy:n,r:U,stroke:g,strokeWidth:h}):null)}function VF(e){var t=e.className;return ov.createElement("svg",{className:t,width:"320",height:"320",viewBox:"0 0 320 320",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M320 0H0V320H320V0ZM160 296C235.111 296 296 235.111 296 160C296 84.8893 235.111 24 160 24C84.8893 24 24 84.8893 24 160C24 235.111 84.8893 296 160 296Z",fill:"currentColor"}))}function zF(){return(zF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}FF.propTypes={className:Tv.string,style:Tv.shape({}),radius:Tv.number,strokeWidth:Tv.number,progress:Tv.number,hasError:Tv.bool,activeColor:Tv.string,innerPadding:Tv.number,outsideRingColor:Tv.string,outsideRingOpacity:Tv.number,insideRingColor:Tv.string,insideRingWidth:Tv.number,insideRingStrokeDash:Tv.string,errorRingColor:Tv.string,errorRingWidth:Tv.number,dashedRingColor:Tv.string,dashedRingOpacity:Tv.number,dashedRingWidth:Tv.number,dashedRingLineThick:Tv.number,dashedRingLineSpacing:Tv.number,dashedInsideRingColor:Tv.string,dashedInsideRingWidth:Tv.number,showOutsideRing:Tv.bool,showDashedRing:Tv.bool,showInsideRing:Tv.bool},FF.defaultProps={className:"",style:null,radius:160,strokeWidth:3,progress:0,hasError:!1,activeColor:"#0092ff",innerPadding:5,outsideRingColor:"#f2f6f9",outsideRingOpacity:.1,insideRingColor:"#f2f6f9",insideRingWidth:3,insideRingStrokeDash:"0",errorRingColor:"#df0000",errorRingWidth:3,dashedRingColor:"#ffffff",dashedRingOpacity:.3,dashedRingWidth:10,dashedRingLineThick:1,dashedRingLineSpacing:6,dashedInsideRingColor:"#ffffff",dashedInsideRingWidth:0,showOutsideRing:!0,showDashedRing:!0,showInsideRing:!0},VF.propTypes={className:Tv.string},VF.defaultProps={className:""};var KF,HF,qF="undefined"!=typeof window?ov.useLayoutEffect:ov.useEffect,WF={popupContent:{tooltip:{position:"absolute",zIndex:999},modal:{position:"relative",margin:"auto"}},popupArrow:{height:"8px",width:"16px",position:"absolute",background:"transparent",color:"#FFF",zIndex:-1},overlay:{tooltip:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",zIndex:999},modal:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",display:"flex",zIndex:999}}},QF=["top left","top center","top right","right top","right center","right bottom","bottom left","bottom center","bottom right","left top","left center","left bottom"],GF=function(e,t,r,n,o){var i=o.offsetX,a=o.offsetY,s=n?8:0,c=r.split(" "),u=e.top+e.height/2,l=e.left+e.width/2,d=t.height,f=t.width,p=u-d/2,h=l-f/2,g="",m="0%",v="0%";switch(c[0]){case"top":p-=d/2+e.height/2+s,g="rotate(180deg) translateX(50%)",m="100%",v="50%";break;case"bottom":p+=d/2+e.height/2+s,g="rotate(0deg) translateY(-100%) translateX(-50%)",v="50%";break;case"left":h-=f/2+e.width/2+s,g=" rotate(90deg) translateY(50%) translateX(-25%)",v="100%",m="50%";break;case"right":h+=f/2+e.width/2+s,g="rotate(-90deg) translateY(-150%) translateX(25%)",m="50%"}switch(c[1]){case"top":p=e.top,m=e.height/2+"px";break;case"bottom":p=e.top-d+e.height,m=d-e.height/2+"px";break;case"left":h=e.left,v=e.width/2+"px";break;case"right":h=e.left-f+e.width,v=f-e.width/2+"px"}return{top:p="top"===c[0]?p-a:p+a,left:h="left"===c[0]?h-i:h+i,transform:g,arrowLeft:v,arrowTop:m}},XF=0,YF=ov.forwardRef((function(e,t){var r=e.trigger,n=void 0===r?null:r,o=e.onOpen,i=void 0===o?function(){}:o,a=e.onClose,s=void 0===a?function(){}:a,c=e.defaultOpen,u=void 0!==c&&c,l=e.open,d=void 0===l?void 0:l,f=e.disabled,p=void 0!==f&&f,h=e.nested,g=void 0!==h&&h,m=e.closeOnDocumentClick,v=void 0===m||m,y=e.repositionOnResize,b=void 0===y||y,w=e.closeOnEscape,C=void 0===w||w,k=e.on,E=void 0===k?["click"]:k,S=e.contentStyle,B=void 0===S?{}:S,_=e.arrowStyle,A=void 0===_?{}:_,x=e.overlayStyle,T=void 0===x?{}:x,I=e.className,P=void 0===I?"":I,R=e.position,N=void 0===R?"bottom center":R,O=e.modal,L=void 0!==O&&O,M=e.lockScroll,D=void 0!==M&&M,U=e.arrow,j=void 0===U||U,F=e.offsetX,V=void 0===F?0:F,z=e.offsetY,K=void 0===z?0:z,H=e.mouseEnterDelay,q=void 0===H?100:H,W=e.mouseLeaveDelay,Q=void 0===W?100:W,G=e.keepTooltipInside,X=void 0!==G&&G,Y=e.children,$=ov.useState(d||u),Z=$[0],J=$[1],ee=ov.useRef(null),te=ov.useRef(null),re=ov.useRef(null),ne=ov.useRef(null),oe=ov.useRef("popup-"+ ++XF),ie=!!L||!n,ae=ov.useRef(0);qF((function(){return Z?(ne.current=document.activeElement,ye(),ge(),pe()):he(),function(){clearTimeout(ae.current)}}),[Z]),ov.useEffect((function(){"boolean"==typeof d&&(d?se():ce())}),[d,p]);var se=function(e){Z||p||(J(!0),setTimeout((function(){return i(e)}),0))},ce=function(e){var t;Z&&!p&&(J(!1),ie&&(null===(t=ne.current)||void 0===t||t.focus()),setTimeout((function(){return s(e)}),0))},ue=function(e){null==e||e.stopPropagation(),Z?ce(e):se(e)},le=function(e){clearTimeout(ae.current),ae.current=setTimeout((function(){return se(e)}),q)},de=function(e){null==e||e.preventDefault(),ue()},fe=function(e){clearTimeout(ae.current),ae.current=setTimeout((function(){return ce(e)}),Q)},pe=function(){ie&&D&&(document.getElementsByTagName("body")[0].style.overflow="hidden")},he=function(){ie&&D&&(document.getElementsByTagName("body")[0].style.overflow="auto")},ge=function(){var e,t=null==te||null===(e=te.current)||void 0===e?void 0:e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),r=Array.prototype.slice.call(t)[0];null==r||r.focus()};ov.useImperativeHandle(t,(function(){return{open:function(){se()},close:function(){ce()},toggle:function(){ue()}}}));var me,ve,ye=function(){if(!ie&&Z&&(null==ee?void 0:ee.current)&&(null==ee?void 0:ee.current)&&(null==te?void 0:te.current)){var e,t,r=function(e,t,r,n,o,i){var a=o.offsetX,s=o.offsetY,c={arrowLeft:"0%",arrowTop:"0%",left:0,top:0,transform:"rotate(135deg)"},u=0,l=function(e){var t={top:0,left:0,width:window.innerWidth,height:window.innerHeight};if("string"==typeof e){var r=document.querySelector(e);null!==r&&(t=r.getBoundingClientRect())}return t}(i),d=Array.isArray(r)?r:[r];for((i||Array.isArray(r))&&(d=[].concat(d,QF));u<d.length;){var f={top:(c=GF(e,t,d[u],n,{offsetX:a,offsetY:s})).top,left:c.left,width:t.width,height:t.height};if(!(f.top<=l.top||f.left<=l.left||f.top+f.height>=l.top+l.height||f.left+f.width>=l.left+l.width))break;u++}return c}(ee.current.getBoundingClientRect(),te.current.getBoundingClientRect(),N,j,{offsetX:V,offsetY:K},X);te.current.style.top=r.top+window.scrollY+"px",te.current.style.left=r.left+window.scrollX+"px",j&&re.current&&(re.current.style.transform=r.transform,re.current.style.setProperty("-ms-transform",r.transform),re.current.style.setProperty("-webkit-transform",r.transform),re.current.style.top=(null===(e=A.top)||void 0===e?void 0:e.toString())||r.arrowTop,re.current.style.left=(null===(t=A.left)||void 0===t?void 0:t.toString())||r.arrowLeft)}};void 0===(ve=C)&&(ve=!0),ov.useEffect((function(){if(ve){var e=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){"Escape"===e.key&&me(e)}));return document.addEventListener("keyup",e),function(){ve&&document.removeEventListener("keyup",e)}}}),[me=ce,ve]),function(e,t){void 0===t&&(t=!0),ov.useEffect((function(){if(t){var r=function(t){if(9===t.keyCode){var r,n=null==e||null===(r=e.current)||void 0===r?void 0:r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),o=Array.prototype.slice.call(n);if(1===o.length)return void t.preventDefault();var i=o[0],a=o[o.length-1];t.shiftKey&&document.activeElement===i?(t.preventDefault(),a.focus()):document.activeElement===a&&(t.preventDefault(),i.focus())}};return document.addEventListener("keydown",r),function(){t&&document.removeEventListener("keydown",r)}}}),[e,t])}(te,Z&&ie),function(e,t){void 0===t&&(t=!0),ov.useEffect((function(){if(t){var r=function(){e()};return window.addEventListener("resize",r),function(){t&&window.removeEventListener("resize",r)}}}),[e,t])}(ye,b),function(e,t,r){void 0===r&&(r=!0),ov.useEffect((function(){if(r){var n=function(r){var n=Array.isArray(e)?e:[e],o=!1;n.forEach((function(e){e.current&&!e.current.contains(r.target)||(o=!0)})),r.stopPropagation(),o||t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),function(){r&&(document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n))}}}),[e,t,r])}(n?[te,ee]:[te],ce,v&&!g);var be,we=function(){return ov.createElement("div",Object.assign({},(e=ie?WF.popupContent.modal:WF.popupContent.tooltip,t={className:"popup-content "+(""!==P?P.split(" ").map((function(e){return e+"-content"})).join(" "):""),style:zF({},e,B,{pointerEvents:"auto"}),ref:te,onClick:function(e){e.stopPropagation()}},!L&&E.indexOf("hover")>=0&&(t.onMouseEnter=le,t.onMouseLeave=fe),t),{key:"C",role:ie?"dialog":"tooltip",id:oe.current}),j&&!ie&&ov.createElement("div",{ref:re,style:WF.popupArrow},ov.createElement("svg",{"data-testid":"arrow",className:"popup-arrow "+(""!==P?P.split(" ").map((function(e){return e+"-arrow"})).join(" "):""),viewBox:"0 0 32 16",style:zF({position:"absolute"},A)},ov.createElement("path",{d:"M16 0l16 16H0z",fill:"currentcolor"}))),Y&&"function"==typeof Y?Y(ce,Z):Y);var e,t},Ce=!(E.indexOf("hover")>=0),ke=ie?WF.overlay.modal:WF.overlay.tooltip,Ee=[Ce&&ov.createElement("div",{key:"O","data-testid":"overlay","data-popup":ie?"modal":"tooltip",className:"popup-overlay "+(""!==P?P.split(" ").map((function(e){return e+"-overlay"})).join(" "):""),style:zF({},ke,T,{pointerEvents:v&&g||ie?"auto":"none"}),onClick:v&&g?ce:void 0,tabIndex:-1},ie&&we()),!ie&&we()];return ov.createElement(ov.Fragment,null,function(){for(var e={key:"T",ref:ee,"aria-describedby":oe.current},t=Array.isArray(E)?E:[E],r=0,o=t.length;r<o;r++)switch(t[r]){case"click":e.onClick=ue;break;case"right-click":e.onContextMenu=de;break;case"hover":e.onMouseEnter=le,e.onMouseLeave=fe;break;case"focus":e.onFocus=le,e.onBlur=fe}if("function"==typeof n){var i=n(Z);return!!n&&ov.cloneElement(i,e)}return!!n&&ov.cloneElement(n,e)}(),Z&&XT.createPortal(Ee,(null===(be=document.getElementById("popup-root"))&&((be=document.createElement("div")).setAttribute("id","popup-root"),document.body.appendChild(be)),be)))})),$F=ew(KF||(KF=AM(["\n .popup-content {\n margin: auto;\n background: #fff;\n width: 100%;\n padding: 5px;\n border: 1px solid #d7d7d7;\n max-width: 568px;\n border-radius: 10px;\n }\n\n [role=tooltip].popup-content {\n width: 200px;\n box-shadow: 0 0 3px rgba(0, 0, 0, .16);\n border-radius: 5px\n }\n\n .popup-overlay {\n background: rgba(0, 0, 0, .5);\n padding: 10px;\n }\n\n [data-popup=tooltip].popup-overlay {\n background: transparent\n }\n\n .popup-arrow {\n -webkit-filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .16));\n filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .16));\n color: #fff;\n stroke-width: 2px;\n stroke: #d7d7d7;\n stroke-dasharray: 30px;\n stroke-dashoffset: -54px;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0\n }\n"]))),ZF=["open","children","overlayStyle"],JF=function(e){var t=e.open,r=e.children,n=e.overlayStyle,o=_M(e,ZF);return ov.createElement(ov.Fragment,null,ov.createElement(YF,EM({overlayStyle:BM(BM({},n),{},{zIndex:2e3}),closeOnDocumentClick:!1,closeOnEscape:!1,modal:!0,open:t},o),r),ov.createElement($F,null))};JF.propTypes={open:Tv.bool,children:Tv.node,overlayStyle:Tv.shape({})},JF.defaultProps={open:!1,children:null,overlayStyle:{}};var eV,tV,rV,nV,oV,iV,aV,sV,cV,uV,lV,dV,fV,pV,hV,gV,mV={WARMUP_INTRO:{en:"Warming up... Please wait a moment",vi:"Đang khởi động, vui lòng chờ trong giây lát..."}},vV=Zb.div(HF||(HF=AM(["\n font-size: 18px;\n text-align: center;\n padding: 10px;\n"]))),yV=function(e){var t=e.contentStyle,r=nN.useSDKSettings(),n=r.lang,o=r.warmupMessage,i=o?o[n]:mV.WARMUP_INTRO[n];return ov.createElement(JF,{open:!0,contentStyle:t},ov.createElement(vV,{className:"warmup-message"},i))};yV.propTypes={contentStyle:Tv.shape({})},yV.defaultProps={contentStyle:{}};var bV=Db(["z-index:",";color:#ffffff;"],1020),wV=Zb.div(eV||(eV=AM(["\n ","\n"])),bV),CV=Zb(UF)(tV||(tV=AM(["\n ","\n ","\n ","\n ","\n font-size: 18px;\n background: #ea3223;\n color: #fff;\n padding: 5px 10px;\n border-radius: 3px;\n position: absolute;\n white-space: pre-wrap;\n text-align: center;\n max-width: 80%;\n"])),bV,(function(e){var t=e.top;return t&&Db(["top:","px;"],t)}),(function(e){var t=e.bottom;return t&&Db(["bottom:","px;"],t)}),(function(e){return e.centerY&&Db(["top:50%;transform:translateY(-50%);"])})),kV=Zb(wV)(rV||(rV=AM(["\n ","\n font-size: 18px;\n background: #ea3223;\n color: #fff;\n padding: 5px 10px;\n border-radius: 3px;\n position: absolute;\n left: 50%;\n transform: translate(-50%, 0);\n white-space: nowrap;\n"])),(function(e){var t=e.top;return t&&Db(["top:","px;"],t)})),EV=Zb(wV)(nV||(nV=AM(["\n position: absolute;\n ","\n ","\n font-size: ",";\n text-shadow: 2px 2px 4px #000000;\n"])),(function(e){var t=e.top;return t&&Db(["top:","px;"],t)}),(function(e){var t=e.bottom;return t&&Db(["bottom:","px;"],t)}),(function(){return GM.isMobile?"20px":"22px"})),SV=Zb.div(oV||(oV=AM(["\n height: ",";\n position: absolute;\n ","\n ","\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: ",";\n"])),(function(){return GM.isMobile?"50px":"70px"}),(function(e){var t=e.top;return t&&Db(["top:","px;"],t)}),(function(e){var t=e.bottom;return t&&Db(["bottom:","px;"],t)}),1020),BV=Zb.div(iV||(iV=AM(["\n width: ",";\n height: ",";\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 2px solid #ffffff;\n font-size: 16px;\n color: #fff;\n font-weight: 700;\n\n & + & {\n margin-left: 10px;\n }\n\n ","\n img {\n width: 100%;\n margin: 0;\n border-radius: 50%;\n }\n"])),(function(){return GM.isMobile?"40px":"50px"}),(function(){return GM.isMobile?"40px":"50px"}),(function(e){return!e.active&&Db(["opacity:0.6;"])})),_V=Zb.div(aV||(aV=AM(["\n color: #ffffff;\n height: 70px;\n position: absolute;\n bottom: 0;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: ",";\n"])),1020),AV=Zb.div(sV||(sV=AM(["\n cursor: pointer;\n text-align: center;\n width: 50px;\n\n img {\n width: 100%;\n }\n"]))),xV=Zb.div(cV||(cV=AM(["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n color: #ffffff;\n font-size: 140px;\n opacity: 0.6;\n"]))),TV=Zb.div(uV||(uV=AM(["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))),IV=Zb(FF)(lV||(lV=AM(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"]))),PV=Zb(VF)(dV||(dV=AM(["\n width: 100%;\n height: 100%;\n vertical-align: middle;\n margin: 0;\n color: ",";\n"])),(function(e){var t=e.color;return null!=t?t:"rgba(0, 0, 0, 0.6)"})),RV=Zb.div(fV||(fV=AM(["\n position: absolute;\n z-index: -1;\n background: rgba(223, 0, 0, 0.2);\n border-radius: 50%;\n width: 86%;\n height: 86%;\n top: 7%;\n left: 7%;\n"]))),NV=tw(["from{opacity:1;}to{opacity:0;}"]),OV=Zb.div(pV||(pV=AM(["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n z-index: -1;\n background: rgba(255, 255, 255, 0.3);\n animation: "," 1s infinite;\n border-radius: 50%;\n"])),NV),LV=GM.isMobile?{width:640}:null,MV={background:"#000000",opacity:.6};function DV(e){var t=e.apiCheck,r=e.mode,n=e.onLivenessDetectionDone,o=e.onClose,i=e.onError,a=e.captureFrameSettings,s=e.onFramesCaptured,c=e.frontCamera,u=e.customDirectionIcon,l=e.customStepTimeConstraints,d=e.onProcessing,f=e.customErrors,p=e.livenessSettings,h=e.apiCredentials,g=e.outputEncryptionSettings,m=e.cameraScale,v=e.defaultCameraId,y=e.passiveModeAuto,b=UN.useAsset("bg_camera_mask.png"),w=UN.useAsset("bg_camera_mask_red.png"),C=xM(ov.useState({}),2),k=C[0],E=C[1],S=k.yFaceDetectionError,B=k.yFaceVerificationStepsWrapper,_=xM(ov.useState(""),2),A=_[0],x=_[1],T=ov.useCallback((function(e){var t=e.lostY,r=e.height,n=t+25,o=n+30;return E({yFaceDetectionError:n,yFaceVerificationStepsWrapper:o+r+20}),{y:Math.floor(o)}}),[]),I=BF({apiCheck:t,mode:r,bgCameraMask:b,bgCameraMaskRed:w,surroundStyle:MV,onLivenessDetectionDone:n,onError:i,cropAreaDimension:T,customDirectionIcon:u,captureFrameSettings:a,onFramesCaptured:s,livenessSettings:p,setRemainingTime:x,customStepTimeConstraints:l,onProcessing:d,customErrors:f,apiCredentials:h,outputEncryptionSettings:g,cameraScale:m,passiveModeAuto:y}),P=I.countdownToTakePicture,R=I.cropArea,N=I.curStepIndex,O=I.directionIcon,L=I.faceDetectionError,M=I.handleTriggerPassiveMode,D=I.handleVideoPlayed,U=I.instructions,j=I.isActiveMode,F=I.refVideo,V=I.showCountdown,z=I.steps,K=I.videoPlayed,H=I.activeCapturing,q=I.isFirstValidFrameFound,W=I.warmupDone;return ov.createElement(yD,{frontCamera:c,onVideoPlayed:D,onClose:o,flipHorizontal:c,ref:F,videoSettings:LV,onError:i,scale:m,defaultCameraId:v},!W&&ov.createElement(yV,null),K?ov.createElement(ov.Fragment,null,ov.createElement(CV,{top:S-15,className:"face-detection-error",error:L}),R.current?ov.createElement(SD,{x:"".concat(R.current.x,"px"),y:"".concat(R.current.y,"px"),width:"".concat(R.current.width,"px"),height:"".concat(R.current.height,"px"),surroundStyle:R.current.surroundStyle},ov.createElement(PV,null),ov.createElement(IV,{progress:N/z.length*100,hasError:!!L,showDashedRing:!1,showOutsideRing:!1,insideRingWidth:1,errorRingWidth:1,insideRingStrokeDash:"2"}),V?ov.createElement(xV,null,P):null,j?ov.createElement(ov.Fragment,null,ov.createElement(TV,null,O),H&&ov.createElement(OV,null)):null,L&&ov.createElement(RV,null)):null,j?ov.createElement(ov.Fragment,null,A&&ov.createElement(kV,{top:B-30},A),U?ov.createElement(EV,{top:B+5,className:"instructions"},U):null,q&&ov.createElement(SV,{top:B+35},z.map((function(e,t){var r=e.name,n=e.image.objUrl;return ov.createElement(BV,{key:r,active:N>=t,className:"step-item"},n?ov.createElement("img",{src:n,alt:""}):ov.createElement("span",null,t+1))})))):ov.createElement(ov.Fragment,null,L||y?null:ov.createElement(_V,null,ov.createElement(AV,{onClick:M},ov.createElement(BD,null))))):null)}DV.propTypes={apiCheck:Tv.bool,mode:Tv.string,onLivenessDetectionDone:Tv.func,onClose:Tv.func,onError:Tv.func,captureFrameSettings:Tv.shape({}),onFramesCaptured:Tv.func,frontCamera:Tv.bool,customDirectionIcon:Tv.shape({}),customStepTimeConstraints:Tv.shape({}),onProcessing:Tv.func,customErrors:Tv.shape({}),livenessSettings:Tv.shape({}),apiCredentials:Tv.shape({accessKey:Tv.string,secretKey:Tv.string,apiUrl:Tv.string}),outputEncryptionSettings:Tv.shape({}),cameraScale:Tv.number,defaultCameraId:Tv.string,passiveModeAuto:Tv.bool},DV.defaultProps={apiCheck:!1,mode:null,onLivenessDetectionDone:null,onClose:null,onError:function(){},captureFrameSettings:{enable:!1,framesIntervalTime:180,framesBatchLength:0},onFramesCaptured:function(){},frontCamera:!0,customDirectionIcon:(hV={},kM(hV,ZT.FaceDirection.LEFT,ov.createElement(OF,{type:ZT.FaceDirection.LEFT})),kM(hV,ZT.FaceDirection.RIGHT,ov.createElement(OF,{type:ZT.FaceDirection.RIGHT})),kM(hV,ZT.FaceDirection.UP,ov.createElement(OF,{type:ZT.FaceDirection.UP})),kM(hV,ZT.FaceDirection.FRONTAL,ov.createElement(OF,{type:ZT.FaceDirection.FRONTAL})),hV),customStepTimeConstraints:(gV={},kM(gV,ZT.FaceDirection.UP,{delayTime:0}),kM(gV,ZT.FaceDirection.LEFT,{delayTime:0}),kM(gV,ZT.FaceDirection.RIGHT,{delayTime:0}),kM(gV,ZT.FaceDirection.FRONTAL,{delayTime:2e3}),gV),onProcessing:function(){},customErrors:null,livenessSettings:null,apiCredentials:{accessKey:"5767c20d-87aa-4cad-8dbb-f5429f76c34b",secretKey:"c1446919-e60a-4575-a05d-304318212a1b",apiUrl:"https://tv-testing.trustingsocial.com/api"},outputEncryptionSettings:null,cameraScale:1,defaultCameraId:void 0,passiveModeAuto:!1};var UV,jV=Object.freeze({__proto__:null,Text:wV,FaceDetectionError:CV,CountdownTime:kV,FaceVerificationInstructions:EV,FaceVerificationStepsWrapper:SV,StepItem:BV,BottomButtonsOverlay:_V,Button:AV,CountDownOverlay:xV,InstructionsOverlay:TV,default:DV,useLivenessDetection:BF}),FV=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.frontCamera,r=void 0===t||t,n=document.createElement("div");document.body.appendChild(n);var o=function(){XT.unmountComponentAtNode(n)};return new Promise((function(e){XT.render(ov.createElement(nN.SDKSettingsProvider,{value:{lang:"en"}},ov.createElement(yD,{checkCameraMode:!0,frontCamera:r,onVideoPlayed:function(){o(),e(null)},onClose:o,onError:function(t){o(),e(t)}})),n)}))},VV=Zb.input(UV||(UV=AM(["\n display: none;\n"]))),zV=ov.forwardRef((function(e,t){var r=e.useFileBrowse,n=e.accept,o=e.frontCamera,i=e.onCaptureDone,a=e.outputEncryptionSettings,s=ov.useCallback(function(){var e=CM(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.target.files,!i){e.next=8;break}if(n=r[0],!a||!a.key){e.next=7;break}return e.next=6,gM.encrypt({blob:n,key:a.key});case 6:o=e.sent;case 7:i({file:n,encrypted:o});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[i,a]);return ov.createElement(VV,EM({ref:t,type:"file",accept:n,onChange:s},r?{}:{capture:o?"user":"environment"}))}));zV.propTypes={useFileBrowse:Tv.bool,accept:Tv.string,frontCamera:Tv.bool,onCaptureDone:Tv.func,outputEncryptionSettings:Tv.shape({key:Tv.string})},zV.defaultProps={useFileBrowse:!1,accept:"image/*",frontCamera:!1,onCaptureDone:null,outputEncryptionSettings:{key:""}};var KV,HV=Object.freeze({__proto__:null,Camera:BD}),qV="landscape",WV="portrait",QV=ZT.Errors,GV=Zb.div(KV||(KV=AM(["\n text-align: center;\n font-size: 20px;\n font-weight: 600;\n"])));function XV(e){var t=e.children,r=nN.useSDKSettings().lang,n=QV.wrong_orientation.msg[r],o=function(){var e=ov.useRef(screen.width>screen.height?qV:WV),t=xM(ov.useState(e.current),2),r=t[0],n=t[1];return ov.useEffect((function(){function e(){screen.width>screen.heightt?n(qV):n(WV)}return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),GM.isMobile?{curOrientation:r,initOrientation:e.current}:{curOrientation:"desktop"}}().curOrientation;return ov.createElement(ov.Fragment,null,o===qV&&ov.createElement(JF,{open:!0},ov.createElement(GV,null,n)),(o===WV||"desktop"===o)&&ov.createElement(ov.Fragment,null,t))}var YV=["tracking","clientSettings","livenessSettings","livenessComponent"];function $V(e){var t=e.tracking,r=void 0===t?{enable:!0}:t,n=e.clientSettings,o=e.livenessSettings,i=e.livenessComponent,a=void 0===i?DV:i,s=_M(e,YV),c=eF(n,"data.settings.sdk_settings.active_liveness_settings",o),u=eF(n,"data.settings.sdk_settings.server_log_settings.enable",r.enable);return ov.createElement(XV,null,ov.createElement(LN.SDKTrackingProvider,{value:{tracking:BM(BM({},r),{},{enable:u})}},ov.createElement(a,EM({},s,{livenessSettings:c}))))}function ZV(){return(ZV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function JV(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function ez(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function tz(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var rz=ov.createContext(null),nz="entering",oz="entered",iz=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o="exited",n.appearStatus=nz):o=oz:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",n.state={status:o},n.nextCallback=null,n}ez(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==nz&&r!==oz&&(t=nz):r!==nz&&r!==oz||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===nz?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[XT.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),c=n?s.appear:s.enter;e||r?(this.props.onEnter(i,a),this.safeSetState({status:nz},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:oz},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:oz},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:XT.findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:XT.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,JV(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return ov.createElement(rz.Provider,{value:null},"function"==typeof r?r(e,n):ov.cloneElement(ov.Children.only(r),n))},t}(ov.Component);function az(){}iz.contextType=rz,iz.propTypes={},iz.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:az,onEntering:az,onEntered:az,onExit:az,onExiting:az,onExited:az},iz.UNMOUNTED="unmounted",iz.EXITED="exited",iz.ENTERING=nz,iz.ENTERED=oz,iz.EXITING="exiting";var sz,cz,uz=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.remove(n):"string"==typeof r.className?r.className=tz(r.className,n):r.setAttribute("class",tz(r.className&&r.className.baseVal||"",n)));var r,n}))},lz=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?(n&&r?r+"-":"")+e:r[e];return{baseClassName:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}ez(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&e.scrollTop,n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)));var r,n}))}(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,i=r.done;this.appliedClasses[t]={},n&&uz(e,n),o&&uz(e,o),i&&uz(e,i)},r.render=function(){var e=this.props,t=(e.classNames,JV(e,["classNames"]));return ov.createElement(iz,ZV({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ov.Component);lz.defaultProps={classNames:""},lz.propTypes={};var dz=function(e,t,r){return function(){var n;e.props[t]&&(n=e.props)[t].apply(n,arguments),r()}},fz=((sz={})["out-in"]=function(e){var t=e.current,r=e.changeState;return ov.cloneElement(t,{in:!1,onExited:dz(t,"onExited",(function(){r(nz,null)}))})},sz["in-out"]=function(e){var t=e.current,r=e.changeState,n=e.children;return[t,ov.cloneElement(n,{in:!0,onEntered:dz(n,"onEntered",(function(){r(nz)}))})]},sz),pz=((cz={})["out-in"]=function(e){var t=e.children,r=e.changeState;return ov.cloneElement(t,{in:!0,onEntered:dz(t,"onEntered",(function(){r(oz,ov.cloneElement(t,{in:!0}))}))})},cz["in-out"]=function(e){var t=e.current,r=e.children,n=e.changeState;return[ov.cloneElement(t,{in:!1,onExited:dz(t,"onExited",(function(){n(oz,ov.cloneElement(r,{in:!0}))}))}),ov.cloneElement(r,{in:!0})]},cz),hz=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={status:oz,current:null},t.appeared=!1,t.changeState=function(e,r){void 0===r&&(r=t.state.current),t.setState({status:e,current:r})},t}ez(t,e);var r=t.prototype;return r.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===nz&&"in-out"===e.mode?{status:nz}:!t.current||((r=t.current)===(n=e.children)||ov.isValidElement(r)&&ov.isValidElement(n)&&null!=r.key&&r.key===n.key)?{current:ov.cloneElement(e.children,{in:!0})}:{status:"exiting"};var r,n},r.render=function(){var e,t=this.props,r=t.children,n=t.mode,o=this.state,i=o.status,a=o.current,s={children:r,current:a,changeState:this.changeState,status:i};switch(i){case nz:e=pz[n](s);break;case"exiting":e=fz[n](s);break;case oz:e=a}return ov.createElement(rz.Provider,{value:{isMounting:!this.appeared}},e)},t}(ov.Component);hz.propTypes={},hz.defaultProps={mode:"out-in"};var gz={DEFAULT:"default",ERROR:"error"};function mz(e){var t=e.className,r=e.width,n=e.height,o=e.type,i=e.strokeStyles,a=e.strokeWidth,s=e.radius,c=e.paddingStyle,u=ov.useMemo((function(){var e;return BM((kM(e={},gz.DEFAULT,{fill:"none",strokeWidth:a,stroke:"#fff",strokeDasharray:"7, 4",opacity:.6}),kM(e,gz.ERROR,{fill:"rgba(234,50,35, 0.1)",strokeWidth:a,stroke:"#ea3223"}),e),i)}),[a,i]),l=s+.8*a,d=u[o];return ov.createElement("svg",{width:r,height:n,className:t},ov.createElement("rect",{x:a/2,y:a/2,rx:s,ry:s,width:r-a,height:n-a,style:d}),ov.createElement("path",{d:"M0,".concat(l," Q0,0 ").concat(l,",0 L0,0 Z"),style:c}),ov.createElement("path",{d:"M0,".concat(n-l," Q0,").concat(n," ").concat(l,",").concat(n," L0,").concat(n," Z"),style:c}),ov.createElement("path",{d:"M".concat(r-l,",").concat(n," Q").concat(r,",").concat(n," ").concat(r,",").concat(n-l," L").concat(r,",").concat(n," Z"),style:c}),ov.createElement("path",{d:"M".concat(r-l,",0 Q").concat(r,",0 ").concat(r,",").concat(l," L").concat(r,",0 Z"),style:c}))}mz.propTypes={className:Tv.string,width:Tv.number,height:Tv.number,strokeWidth:Tv.number,strokeStyles:Tv.shape({}),type:Tv.oneOf([gz.DEFAULT,gz.ERROR]),radius:Tv.number,paddingStyle:Tv.shape({})},mz.defaultProps={className:"",width:600,height:400,strokeWidth:2,strokeStyles:{},type:gz.DEFAULT,radius:10,paddingStyle:{fill:"rgba(0, 0, 0, 0.6)"}};var vz,yz,bz,wz,Cz,kz,Ez,Sz,Bz,_z,Az,xz,Tz,Iz,Pz,Rz,Nz,Oz,Lz,Mz=Db([".flipY-exit{animation-name:",";animation-duration:","ms;animation-timing-function:ease-in;}.flipY-enter{animation-name:",";animation-duration:","ms;animation-timing-function:ease-out;}"],tw(["from{transform:perspective(400px);}to{transform:perspective(400px) rotateY(90deg);}"]),500,tw(["from{transform:perspective(400px) rotateY(-90deg);}to{transform:perspective(400px);}"]),500),Dz=Object.freeze({__proto__:null,animationDuration:500,default:Mz}),Uz=Db([".slide-horizontal{animation-name:",";animation-iteration-count:infinite;animation-duration:2000ms;animation-timing-function:linear;}.slide-vertical{animation-name:",";animation-iteration-count:infinite;animation-duration:2000ms;animation-timing-function:linear;}"],tw(["from,to{transform:translate3d(-","px,0,0);}50%{transform:translate3d(","px,0,0);}"],20,20),tw(["from,to{transform:translate3d(0,-","px,0);}50%{transform:translate3d(0,","px,0);}"],20,20)),jz=Object.freeze({__proto__:null,default:Uz}),Fz=Db([".blink{animation-name:",";animation-iteration-count:infinite;animation-duration:2000ms;animation-timing-function:linear;}"],tw(["from,to{opacity:1;}50%{opacity:0;}"])),Vz=Object.freeze({__proto__:null,default:Fz}),zz=Zb.div(vz||(vz=AM(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: ","; // must be higher than BASE_Z_INDEX and lower than other layers\n"])),1001),Kz=Db([".splash-enter{animation-name:",";animation-duration:","ms;animation-timing-function:ease-in;}"],tw(["from{background:#000;}to{}"]),300),Hz=Zb.div(yz||(yz=AM(["\n ","\n"])),Kz),qz=function(e){var t=e.keyForTransition,r=void 0===t?0:t;return ov.createElement(Hz,null,ov.createElement(hz,null,ov.createElement(lz,{key:r,timeout:{enter:300,exit:0},classNames:"splash",unmountOnExit:!1},ov.createElement(zz,null))))},Wz=Object.freeze({__proto__:null,default:qz}),Qz=Db([".spin{animation-name:",";animation-iteration-count:infinite;animation-duration:1000ms;animation-timing-function:linear;}"],tw(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"])),Gz=Object.freeze({__proto__:null,default:Qz}),Xz=Object.freeze({__proto__:null,flipY:Dz,slide:jz,blink:Vz,splash:Wz,spin:Gz}),Yz=qz,$z=Zb.div(bz||(bz=AM(["\n ","\n ","\n"])),Mz,Qz),Zz=Zb.img(wz||(wz=AM(["\n border-radius: 5px;\n opacity: 0.7;\n height: 38px;\n"]))),Jz=Zb.div(Cz||(Cz=AM(["\n cursor: pointer;\n text-align: center;\n width: ","px;\n\n img {\n width: 100%;\n }\n\n z-index: ",";\n position: fixed;\n\n ","\n"])),60,1020,GM.isMobile?Db(["top:",";"],(function(e){return e.y})):Db(["bottom:","px;"],10)),eK=Zb.div(kz||(kz=AM(["\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n margin: auto;\n width: ","px;\n height: ","px;\n\n img {\n width: 100%;\n }\n\n z-index: ",";\n"])),100,100,1020),tK=Zb.div(Ez||(Ez=AM(["\n color: #fff;\n text-align: center;\n"]))),rK=Zb.div(Sz||(Sz=AM(["\n transform: translateZ(1000px); // to fix rotating bug on safari\n transform-style: preserve-3d;\n position: absolute;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),nK=Zb.div(Bz||(Bz=AM(["\n display: flex;\n align-items: center;\n"]))),oK=Zb(tK)(_z||(_z=AM(["\n font-size: 20px;\n margin-left: 10px;\n color: #fff;\n"]))),iK=Zb(tK)(Az||(Az=AM(["\n font-size: 20px;\n margin-left: 10px;\n color: green;\n position: absolute;\n left: 0;\n top: 10px;\n background: white;\n z-index: ",";\n"])),1030),aK=Zb(tK)(xz||(xz=AM(["\n position: absolute;\n font-size: 16px;\n text-align: center;\n color: #fff;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),sK=Zb(aK)(Tz||(Tz=AM(["\n background: #ea3223;\n padding: 5px 10px;\n border-radius: 3px;\n"]))),cK=Zb(tK)(Iz||(Iz=AM(["\n position: absolute;\n font-size: 18px;\n text-align: center;\n border-radius: 3px;\n padding: 5px 10px;\n background: #ea3223;\n color: #fff;\n margin: 0 10px;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),uK=(Zb.div(Pz||(Pz=AM(["\n font-size: 18px;\n text-align: center;\n padding: 10px;\n"]))),Zb(mz)(Rz||(Rz=AM(["\n position: absolute;\n top: 0;\n left: 0;\n"])))),lK={BTN_OK:{en:"OK",vi:"Tôi đã hiểu"},FRONT:{en:"front",vi:"trước"},BACK:{en:"back",vi:"sau"},BTN_USE_THIS_PICTURE:{en:"Use this picture",vi:"Dùng ảnh này"},BTN_TRY_AGAIN:{en:"Try again",vi:"Thử lại"},CONFIRM_POPUP_VALID_QR:{en:"QR code scanned",vi:"Đã quét được mã QR"},CONFIRM_POPUP_INVALID_QR:{en:"Could not scan QR code",vi:"Không quét được mã QR"}},dK=ZT.IDCardMessage,fK=Zb.div(Nz||(Nz=AM(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),pK=Zb.div(Oz||(Oz=AM(["\n text-align: center;\n font-size: 1rem;\n"]))),hK=Zb.button(Lz||(Lz=AM(["\n margin-top: 20px;\n width: 100%;\n max-width: 160px;\n height: 50px;\n background-color: ",";\n border: 0;\n outline: none;\n border-radius: 0.25rem;\n color: #fff;\n font-weight: 400;\n cursor: pointer;\n font-size: 1rem;\n"])),(function(e){return e.theme.tsBlue})),gK=function(e){var t=e.onOk,r=e.maxSessionTime,n=nN.useSDKSettings().lang;return ov.createElement(fK,null,ov.createElement(pK,{className:"popup-message"},Pj(dK.TIMEOUT_INSTRUCTION[n])({x:r})),ov.createElement(hK,{className:"popup-button",onClick:t},lK.BTN_OK[n]))};gK.propTypes={onOk:Tv.func,maxSessionTime:Tv.number},gK.defaultProps={onOk:function(){},maxSessionTime:30};var mK=function(){var e=xM(ov.useState(!1),2),t=e[0],r=e[1],n=xM(ov.useState(null),2),o=n[0],i=n[1],a=xM(ov.useState({}),2),s=a[0],c=a[1];return{showPopup:ov.useCallback((function(e){var t=e.popupType,n=e.props;c(void 0===n?{}:n),i(t),r(null!==t)}),[]),popupShown:t,popupType:o,props:s}},vK="SESSION_TIMEOUT",yK="CONFIRM",bK="QR_INVALID",wK="QR_INSTRUCTIONS",CK=ZT.Errors;function kK(e,t){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)}function EK(e,t){return Math.sqrt(kK(e,t))}function SK(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.canvas,r=e.imgMargin,n=void 0===r?.15:r,o=window,i=o.cv,a=t.width,s=t.height,c=n;c<1&&(c=parseInt(.5*(s+a)*c,10));var u=i.imread(t),l=new i.Mat;return i.copyMakeBorder(u,l,c,c,c,c,i.BORDER_CONSTANT,new i.Scalar(0,0,0,255)),u.delete(),{mat:l,margin:c}}function BK(e,t){var r=window.cv,n=xM(t.map((function(e){return e.location})),4),o=n[0],i=n[1],a=n[2],s=n[3],c=EK(a,s),u=EK(i,o),l=Math.max(c,u),d=EK(i,a),f=EK(o,s),p=Math.max(d,f),h=[o.x,o.y,i.x,i.y,a.x,a.y,s.x,s.y],g=[0,0,l-1,0,l-1,p-1,0,p-1],m=r.imread(e),v=new r.Mat,y=new r.Size(l,p),b=r.matFromArray(4,1,r.CV_32FC2,h),w=r.matFromArray(4,1,r.CV_32FC2,g),C=r.getPerspectiveTransform(b,w);r.warpPerspective(m,v,C,y,r.INTER_LINEAR,r.BORDER_CONSTANT,new r.Scalar);var k=new ImageData(new Uint8ClampedArray(v.data),v.cols,v.rows);return m.delete(),v.delete(),b.delete(),w.delete(),k}function _K(e){var t=e.corners,r=e.width,n=e.height,o=Number.MAX_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER;t.forEach((function(e){var t=e.location,r=t.x,n=t.y;o=Math.min(o,r),i=Math.min(i,n),a=Math.max(a,r),s=Math.max(s,n)}));var c=.02;return o/r>=c&&i/n>=c&&(n-s)/n>=c&&(r-a)/r>=c}function AK(){return xK.apply(this,arguments)}function xK(){return(xK=CM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c,u,l,d,f,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.length>0&&void 0!==p[0]?p[0]:{},r=t.canvas,n=t.paddingPercent,o=void 0===n?.04:n,i=r.width,a=r.height,s=Math.floor(i*o),c=Math.floor(a*o),u=i-2*s,l=a-2*c,d=document.createElement("canvas"),f=d.getContext("2d"),d.width=u,d.height=l,f.drawImage(r,s,c,u,l,0,0,u,l),e.abrupt("return",NL.isCardGlare(d));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function TK(e){for(var t,r,n,o,i,a,s,c=e.length,u=0;u<c;u++){var l=(u+c-1)%c,d=(u+1)%c,f=(t=e[u].location,r=e[l].location,n=e[d].location,void 0,void 0,void 0,void 0,o={x:r.x-t.x,y:r.y-t.y},i={x:n.x-t.x,y:n.y-t.y},a=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2)),s=Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2)),180*Math.acos((o.x*i.x+o.y*i.y)/(a*s))/Math.PI);if(f<70||f>110)return!1}return!0}function IK(e){return PK.apply(this,arguments)}function PK(){return(PK=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.blazefaceModel,n=t.predictedIdCardCanvas,o=t.frontSide,i=n.width,a=n.height,s=Math.floor(i/3),c=Math.floor(4*a/5),u=document.createElement("canvas"),l=u.getContext("2d"),u.width=s,u.height=c,l.drawImage(n,0,Math.floor(a/5),s,c,0,0,s,c),e.next=12,PO.getModelPredictions({model:r,sCanvas:u});case 12:if(d=e.sent,f=d.filter((function(e){var t=e.topLeft,r=e.bottomRight,n=xM(e.probability,1)[0],o=e.landmarks;return!(n<.9||o.length<4||bO.rectAreaRatio({small:{coords:[t,r]},big:{coords:[[0,0],[PO.SIZE,PO.SIZE]]}})<.025)})),p=f.length,!o){e.next=22;break}if(0!==p){e.next=18;break}return e.abrupt("return",CK.id_detector_error_front_side_no_faces);case 18:if(!(p>1)){e.next=20;break}return e.abrupt("return",CK.id_detector_error_front_side_multiple_faces);case 20:e.next=24;break;case 22:if(!(p>0)){e.next=24;break}return e.abrupt("return",CK.id_detector_error_back_side_has_faces);case 24:return e.abrupt("return",null);case 25:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var RK=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=QD(r))==r?r:0),void 0!==t&&(t=(t=QD(t))==t?t:0),function(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}(QD(e),t,r)},NK="https://unpkg.com/@tsocial/tv_web_sdk_resources@1.0.0/libs/opencv.js";function OK(){return(OK=CM(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.url,n=void 0===r?NK:r,!window.cv){e.next=3;break}return e.abrupt("return",Promise.resolve());case 3:return e.next=5,ZL.loadExternalScript({url:n});case 5:return e.abrupt("return",new Promise((function(e){window.cv.onRuntimeInitialized=e})));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var LK=iF((function(e){return OK.apply(this,arguments)})),MK="https://unpkg.com/@tsocial/tv_web_sdk_resources@1.0.0/models/id-card/tflite/qtf16_model_224x224.tflite",DK={0:"top-left",1:"top-right",2:"bottom-right",3:"bottom-left",4:"cccd.front",5:"passport",6:"cmnd_old.front",7:"cmnd_old.back",8:"cmnd_new.front",9:"cmnd_new.back",10:"cccd_new.front",11:"cccd_new.back"};function UK(e){var t,r,n,o,i,a=e.card,s=e.corners,c=a.box,u={x:(c[1]+c[3])/2,y:(c[0]+c[2])/2},l=c[2]-c[0],d=c[1]-c[3],f=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=IM(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){throw e})),f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){s=!0,i=e})),f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(s);try{for(f.s();!(i=f.n()).done;){var p=i.value;switch(p.label){case"top-left":t||(t=p.location);break;case"top-right":r||(r=p.location);break;case"bottom-right":n||(n=p.location);break;case"bottom-left":o||(o=p.location)}}}catch(e){f.e(e)}finally{f.f()}if(![t,r,n,o].every(Boolean))return console.debug("Not qualified, corners missing"),!1;var h={x:(t.x+n.x)/2,y:(t.y+n.y)/2},g={x:(r.x+o.x)/2,y:(r.y+o.y)/2},m=kK(u,h),v=kK(u,g);return Math.sqrt(m)>(l+d)/8||Math.sqrt(v)>(l+d)/8?(console.debug("Not qualified, not close enough"),!1):(console.debug("Qualified"),!0)}var jK=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n,o,i,a,s,c;return t=e,(r=[{key:"load",value:(c=CM(regeneratorRuntime.mark((function e(){var t,r,n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=t.opencvUrl,n=t.modelUrl,e.next=3,Promise.all([LK({url:r}),this.loadModel({modelUrl:n})]);case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"loadModel",value:(s=CM(regeneratorRuntime.mark((function e(){var t,r,n,o,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=t.modelUrl,n=void 0===r?MK:r,e.next=3,dM.initTensorFlow({preferredBackends:["webgl","wasm","cpu"]});case 3:return e.next=5,dM.loadTFLiteModel({modelUrl:n});case 5:this.model=e.sent,o=this.model.inputs,this.inputSize=[o[0].shape[1],o[0].shape[2]];case 8:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"loadResource",value:(a=CM(regeneratorRuntime.mark((function e(){var t,r,n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=t.modelUrl,n=void 0===r?MK:r,e.next=3,dM.preloadResource({modelUrl:n});case 3:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"dispose",value:(i=CM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.model&&this.model.dispose();case 1:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"predict",value:(o=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f,p,h,g,m,v,y,b,w,C,k,E,S,B,_,A,x,T=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=T.length>1&&void 0!==T[1]?T[1]:{},n=r.imgMargin,o=void 0===n?.5:n,i=r.detectThreshold,a=void 0===i?.3:i,s=r.maxNumReturns,c=void 0===s?100:s,u=window,l=u.cv,d={},f=t.width,p=t.height,d.originalWidth=f,d.originalHeight=p,h=SK({canvas:t,imgMargin:o}),g=h.margin,m=h.mat,v=xM(this.inputSize,2),y=v[0],b=v[1],w=new l.Mat,l.resize(m,w,new l.Size(y,b),0,0,l.INTER_AREA),C=m.cols/y,k=m.rows/b,(E=document.createElement("canvas")).width=y,E.height=b,E.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(w.data),w.cols,w.rows),0,0),m.delete(),w.delete(),d.canvas=E,d.margin=g,e.next=24,this.detect(E,{detectThreshold:a,maxNumReturns:c});case 24:if(S=e.sent,B={inputImage:d,card:null},_=[],A=[],S.forEach((function(e){var t=xM(e.box,4),r=t[0],n=t[1],o=t[2],i=t[3];e.clazz<=3?_.push({clazz:e.clazz,label:e.label,score:e.score,location:{x:RK(Math.floor((i+n)/2*C-g),0,f),y:RK(Math.floor((r+o)/2*k-g),0,p)},scaledLocation:{x:RK(Math.floor((i+n)/2),0,E.width),y:RK(Math.floor((r+o)/2),0,E.height)}}):A.push({label:e.label,score:e.score,box:[RK(Math.floor(r*k-g),0,p),RK(Math.floor(n*C-g),0,f),RK(Math.floor(o*k-g),0,p),RK(Math.floor(i*C-g),0,f)]})})),_.sort((function(e,t){return t.score-e.score})),A.sort((function(e,t){return t.score-e.score})),!(A.length>0)){e.next=40;break}if(UK({card:x=A[0],corners:_})){e.next=36;break}return console.debug("Not qualified.",x,_),e.abrupt("return",B);case 36:return _.sort((function(e,t){return e.clazz-t.clazz})),x.corners=_,B.card=x,e.abrupt("return",B);case 40:return e.abrupt("return",B);case 41:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"detect",value:(n=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f,p,h,g,m,v,y,b,w,C,k,E,S,B=this,_=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=_.length>1&&void 0!==_[1]?_[1]:{},n=r.detectThreshold,o=r.maxNumReturns,i=window,a=i.tf,s=t.width,c=t.height,u=a.tidy((function(){var e=a.expandDims(a.cast(a.image.resizeNearestNeighbor(a.browser.fromPixels(t),B.inputSize),"float32"));return B.model.predict(e)})),e.next=7,Promise.all([u["StatefulPartitionedCall:1"].data(),u["StatefulPartitionedCall:2"].data(),u["StatefulPartitionedCall:3"].array()]);case 7:for(l=e.sent,d=xM(l,3),f=d[0],p=d[1],h=xM(d[2],1),g=h[0],m=[],v=Math.min(f.length,o),y=0;y<v;y++)(b=f[y])>n&&(C=p[y],k=null!==(w=DK[Math.round(C)])&&void 0!==w?w:"NA",E=g[y],S=[E[0]*c,E[3]*s,E[2]*c,E[1]*s],m.push({score:b,clazz:C,box:S,label:k}));return e.abrupt("return",m);case 17:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),e}();function FK(e){return VK.apply(this,arguments)}function VK(){return(VK=CM(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.idCardModel,e.abrupt("return",new Promise((function(e,t){var n=document.createElement("canvas");setTimeout(t,1e3),r.predict(n).then(e)})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zK(e){return KK.apply(this,arguments)}function KK(){return(KK=CM(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.idCardModel,n=!0,e.prev=2,o=performance.now(),e.next=6,FK({idCardModel:r});case 6:performance.now()-o>1e3&&(n=!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),n=!1;case 13:return e.abrupt("return",{fastEnough:n});case 14:case"end":return e.stop()}}),e,null,[[2,10]])})))).apply(this,arguments)}function HK(){return(HK=CM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c,u,l,d,f,p,h=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=h.length>0&&void 0!==h[0]?h[0]:{},r=t.opencvUrl,n=t.idCardModelUrl,o=t.blazefaceModelUrl,i=t.tfScriptUrls,"iOS"!==GM.osName||!GM.osVersion.includes("12.")){e.next=5;break}return e.next=4,LK({url:r});case 4:return e.abrupt("return",{ableToUseModel:!1});case 5:return e.next=7,dM.loadTensorFlow(i);case 7:return a=new jK,e.next=10,Promise.all([dM.loadBlazefaceModel({modelUrl:o}),a.load({opencvUrl:r,modelUrl:n})]);case 10:return s=e.sent,c=xM(s,1),u=c[0],l=!0,d=document.createElement("canvas"),e.prev=15,e.next=18,a.predict(d);case 18:return e.next=20,zK({idCardModel:a});case 20:f=e.sent,p=f.fastEnough,l=p,e.next=28;break;case 25:e.prev=25,e.t0=e.catch(15),l=!1;case 28:return e.abrupt("return",{ableToUseModel:l,idCardModel:a,blazefaceModel:u});case 29:case"end":return e.stop()}}),e,null,[[15,25]])})))).apply(this,arguments)}var qK=iF((function(){return HK.apply(this,arguments)})),WK=ZT.Errors;function QK(e){var t=e.refVideo,r=e.shouldStart,n=e.cropArea,o=e.settings,i=ov.useRef(null);null===i.current&&(i.current=document.createElement("canvas"));var a=ov.useRef(!1),s=ov.useRef(TL.createResizer({width:960,height:640})),c=ov.useRef(null),u=ov.useRef([{id:null,frames:[]}]),l=ov.useCallback((function(){!0===a.current&&(a.current=!1)}),[]),d=ov.useCallback((function(){u.current=[{id:null,frames:[]}]}),[]),f=ov.useCallback((function(){var e=u.current;e[e.length-1].frames.length>0&&e.push({id:null,frames:[]})}),[]),p=ov.useCallback(function(){var e=CM(regeneratorRuntime.mark((function e(t){var r,n,i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.workingCanvas,n=s.current,i=u.current,a=n.resize({srcCanvas:r}),c=a.toDataURL("image/jpeg",o.saveFrameQuality/100).split(",")[1],i[i.length-1].frames.push({base64:c});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o]),h=ov.useCallback(CM(regeneratorRuntime.mark((function e(){var r,n,s,u,l,d,f,h,g,m,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o){e.next=2;break}return e.abrupt("return");case 2:if(r=o.frameCaptureIntervalMs,o.enableRecording){e.next=5;break}return e.abrupt("return");case 5:n=c.current,s=t.current,a.current=!0,u=n.cropX,l=n.cropY,d=n.cropWidth,f=n.cropHeight,(h=i.current).width=d,h.height=f,g=h.getContext("2d"),m=null;case 14:if(g.drawImage(s,u,l,d,f,0,0,d,f),!r){e.next=25;break}if(!((v=(new Date).getTime())-m>=r)){e.next=23;break}return e.next=22,p({workingCanvas:h});case 22:m=v;case 23:e.next=27;break;case 25:return e.next=27,p({workingCanvas:h});case 27:if(a.current){e.next=29;break}return e.abrupt("break",33);case 29:return e.next=31,FN.sleep(15);case 31:e.next=14;break;case 33:case"end":return e.stop()}}),e)}))),[t,p,o]);return ov.useEffect((function(){var e=t.current;function o(){return(o=CM(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.current=fO.analyzeVideoAndWindowSizes(e,n),t.next=3,h();case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return r&&n&&function(){o.apply(this,arguments)}(),function(){l()}}),[r,n,t,l,f,h]),{refWorkingCanvas:i,stopCheckFrame:l,splitVideos:f,resetRecordedVideos:d,checkFrame:h,refRecordedVideos:u}}var GK,XK,YK,$K=function(e){var t=e.lang,r=e.onAboutToTimeout,n=e.onSessionTimeout,o=e.onVideoTimeLimitReached,i=e.settings,a=e.shouldStartTimers,s=e.sessionTime,c=ov.useRef(),u=xM(ov.useState(0),2),l=u[0],d=u[1],f=ov.useCallback((function(){clearInterval(c.current)}),[]),p=ov.useCallback((function(){d((function(e){return e+1}))}),[]);return ov.useEffect((function(){if(a){var e=i.maxRecordingTimePerVideo,t=0,u=s/3;c.current=setInterval((function(){var i=s-(t+=1);i<=u&&r&&r({curTimeLeft:i}),t>0&&t%e==0&&o&&o(),0===i&&(f(),n&&n())}),1e3)}return function(){f()}}),[a,t,r,f,n,o,l,i,s]),{stopTimers:f,startTimers:p}},ZK=function(e){var t=e.shouldStart,r=e.refVideo,n=e.cropArea,o=e.settings,i=e.onModelErrorChange,a=e.frontSide,s=e.onDebugInfoChange,c=e.onAboutToTimeout,u=e.onSessionTimeout,l=e.onCaptureDone,d=e.outputEncryptionSettings,f=e.quality,p=ov.useRef(!1),h=xM(ov.useState(!1),2),g=h[0],m=h[1],v=ov.useRef((function(){})),y=LN.useSDKTracking().sendEvent,b=ov.useRef(),w=ov.useRef(),C=ov.useRef(),k=nN.useSDKSettings(),E=k.debug,S=k.lang,B=k.enableAntiDebug;ov.useEffect((function(){B&&fM.enableAntiDebug()}),[B]);var _=ov.useCallback(function(){var e=CM(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y({tag:a?"id_front":"id_back",event:"sdk_ui.auto_capture",log:{}}),e.next=3,v.current(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[y,a]),A=ov.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i.apply(void 0,t);var n=eF(t,"0.code");n&&n!==b.current&&y({tag:a?"id_front":"id_back",event:"sdk_ui.show_alert",log:{alert:n}}),b.current=n}),[i,a,y]),x=function(e){var t=e.refVideo,r=e.shouldStart,n=e.cropArea,o=e.settings,i=e.onError,a=e.frontSide,s=e.onAutoCaptureSuccess,c=e.quality,u=ov.useRef(null);null===u.current&&(u.current=document.createElement("canvas"));var l=ov.useRef(!1),d=ov.useRef(null),f=xM(ov.useState(!1),2),p=f[0],h=f[1],g=ov.useRef({imageBlob:null,takenAt:null,blurScore:null,detectedCard:null}),m=ov.useRef({imageBlob:null,blurScore:null,error:null,detectedCard:null}),v=ov.useRef(!1),y=ov.useRef(!1),b=ov.useRef(null),w=ov.useRef(!1),C=ov.useRef({}),k=nN.useSDKSettings().customUrls;ov.useEffect((function(){var e=!1;function t(){return(t=CM(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o||p){t.next=12;break}if(!o.enableIdDetection){t.next=8;break}return t.next=4,qK(k);case 4:C.current=t.sent,b.current=o.enableBlurCheck&&C.current.ableToUseModel,t.next=9;break;case 8:b.current=!1;case 9:if(!e){t.next=11;break}return t.abrupt("return");case 11:h(!0);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){t.apply(this,arguments)}(),function(){e=!0}}),[p,o,k]);var E=ov.useCallback((function(){!0===l.current&&(l.current=!1)}),[]),S=ov.useCallback(function(){var e=CM(regeneratorRuntime.mark((function e(t){var r,n,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.blurScore,n=t.detectedCard,i=o.blurThreshold,a=g.current,s=m.current,!(r<i&&lO.hasBetterCardBlurScore(r,a.blurScore))){e.next=15;break}if(!w.current){e.next=9;break}a.imageBlob=s.imageBlob,e.next=12;break;case 9:return e.next=11,fO.takePicture({canvas:u.current,quality:c});case 11:a.imageBlob=e.sent;case 12:a.takenAt=(new Date).getTime(),a.blurScore=r,a.detectedCard=n;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,c]),B=ov.useCallback(function(){var e=CM(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.blurScore,n=t.detectedCard,y.current=!0,o=m.current,!lO.hasBetterCardBlurScore(r,o.blurScore)){e.next=10;break}return e.next=6,fO.takePicture({canvas:u.current,quality:c});case 6:o.imageBlob=e.sent,o.blurScore=r,o.detectedCard=n,w.current=!0;case 10:y.current=!1;case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c]),_=ov.useCallback(CM(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.waitForBestImageTimeMs,null===(r=g.current).imageBlob){e.next=8;break}if(!((new Date).getTime()-r.takenAt>t)){e.next=8;break}return e.next=7,s(r);case 7:E();case 8:case"end":return e.stop()}}),e)}))),[s,o,E]),A=ov.useCallback((function(){v.current=!0}),[]),x=ov.useCallback((function(){return new Promise((function(e){v.current=!1;var t=setInterval((function(){y.current||(clearInterval(t),e())}),150)}))}),[]),T=ov.useCallback(CM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var t=o.blurThreshold,r=m.current;b.current?(A(),setTimeout((function(){x().then((function(){lO.hasBetterCardBlurScore(r.blurScore,t)||(r.error=WK.id_detector_error_blur),null===r.imageBlob?fO.takePicture({canvas:u.current,quality:c}).then((function(t){r.imageBlob=t,e(r)})):e(r)}))}),2e3)):fO.takePicture({canvas:u.current,quality:c}).then((function(t){r.imageBlob=t,e(r)}))})));case 1:case"end":return e.stop()}}),e)}))),[o,A,x,c]),I=ov.useCallback(CM(regeneratorRuntime.mark((function e(){var r,n,s,c,f,h,y,b,k,E,A,x,T,I,P,R,N,O,L,M,D,U,j,F,V;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o&&p&&!l.current){e.next=2;break}return e.abrupt("return");case 2:g.current={imageBlob:null,takenAt:null,blurScore:null,detectedCard:null},m.current={imageBlob:null,blurScore:null,error:null,detectedCard:null},r=o.enableAutoCapture,n=o.enableBlurCheck,s=o.enableIdDetection,c=C.current,f=c.idCardModel,h=c.blazefaceModel,y=c.ableToUseModel,b=d.current,k=t.current,l.current=!0,E=b.cropX,A=b.cropY,x=b.cropWidth,T=b.cropHeight,I=b.cropWidthWithoutPadding,P=b.cropHeightWithoutPadding,(R=u.current).width=x,R.height=T,N=R.getContext("2d"),O=document.createElement("canvas"),L=O.getContext("2d"),M=s&&y?15:700;case 17:if(N.drawImage(k,E,A,x,T,0,0,x,T),w.current=!1,!s||!y){e.next=74;break}return D=null,e.next=24,f.predict(R,{detectThreshold:.3});case 24:if(!(U=e.sent).card){e.next=70;break}if(!_K({corners:U.card.corners,width:x,height:T})){e.next=67;break}if(!TK(U.card.corners)){e.next=64;break}if(j=BK(R,U.card.corners),!((F=bO.rectAreaRatio({small:{area:j.width*j.height},big:{area:I*P}}))<.5)){e.next=36;break}D=WK.id_detector_card_too_small,e.next=62;break;case 36:if(!(F>.95)){e.next=40;break}D=WK.id_detector_error_incomplete,e.next=62;break;case 40:return O.width=j.width,O.height=j.height,L.putImageData(j,0,0),e.next=45,AK({canvas:O});case 45:if(!e.sent){e.next=50;break}D=WK.glare_detected,e.next=62;break;case 50:return e.next=52,IK({blazefaceModel:h,predictedIdCardCanvas:O,frontSide:a});case 52:if(D=e.sent){e.next=62;break}if(!n){e.next=62;break}if(V=lO.calculateIdCardBlurScore({canvas:O}),!v.current){e.next=59;break}return e.next=59,B({blurScore:V,detectedCard:U.card});case 59:if(!r){e.next=62;break}return e.next=62,S({blurScore:V,detectedCard:U.card});case 62:e.next=65;break;case 64:D=WK.id_detector_validate_angle_error;case 65:e.next=68;break;case 67:D=WK.id_detector_error_incomplete;case 68:e.next=71;break;case 70:D=WK.id_detector_no_cards;case 71:return i(D),e.next=74,_();case 74:if(l.current){e.next=76;break}return e.abrupt("break",80);case 76:return e.next=78,FN.sleep(M);case 78:e.next=17;break;case 80:case"end":return e.stop()}}),e)}))),[t,o,p,a,i,S,B,_]);ov.useEffect((function(){var e=t.current;function o(){return(o=CM(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d.current=fO.analyzeVideoAndWindowSizes(e,n,.05),t.next=3,I();case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}r&&n&&p&&function(){o.apply(this,arguments)}()}),[r,n,t,E,I,p]);var P=ov.useCallback((function(){E()}),[E]);return ov.useEffect((function(){return P}),[P]),{refWorkingCanvas:u,stopCheckFrame:E,checkFrame:I,warmupDone:p,takePictureManually:T,refAbleToRunBurstMode:b}}({refVideo:r,shouldStart:t,cropArea:n,settings:o,onError:A,frontSide:a,onAutoCaptureSuccess:_,quality:f}),T=x.refWorkingCanvas,I=x.stopCheckFrame,P=x.checkFrame,R=x.warmupDone,N=x.takePictureManually,O=x.refAbleToRunBurstMode,L=QK({refVideo:r,shouldStart:t&&R,cropArea:n,settings:o}),M=L.stopCheckFrame,D=L.splitVideos,U=L.resetRecordedVideos,j=L.checkFrame,F=L.refRecordedVideos;!function(e){var t=e.debug,r=e.refRecordedVideos,n=e.refWorkingCanvas,o=e.refVideo,i=e.onChange;ov.useEffect((function(){var e;return t&&(e=setInterval((function(){var e=o.current,t=r.current,a=n.current,s=t[t.length-1],c={videoWidth:e.videoWidth,videoHeight:e.videoHeight,framesCount:s.frames.length,"window.innerWidth":window.innerWidth,"window.innerHeight":window.innerHeight,"canvas.width":null==a?void 0:a.width,"canvas.height":null==a?void 0:a.height};i&&i(JSON.stringify(c,null,2))}),1e3)),function(){return clearInterval(e)}}),[i,t,r,n,o])}({debug:E,refRecordedVideos:F,refWorkingCanvas:T,refVideo:r,onChange:s});var V=ov.useCallback((function(){M(),I(),U(),u()}),[U,M,I,u]),z=ov.useCallback((function(){D()}),[D]),K=$K({lang:S,onAboutToTimeout:c,onSessionTimeout:V,onVideoTimeLimitReached:z,settings:o,shouldStartTimers:R&&t&&(null==o?void 0:o.enableTimers),sessionTime:null==o?void 0:o.idCardSessionTime}),H=K.stopTimers,q=K.startTimers,W=ov.useCallback((function(){p.current=!1}),[]),Q=ov.useCallback(CM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return W(),q(),e.next=4,Promise.all([j(),P()]);case 4:case"end":return e.stop()}}),e)}))),[j,P,q,W]),G=ov.useCallback(CM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,s,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},r=t.imageBlob,n=t.error,o=t.detectedCard,!p.current){e.next=3;break}return e.abrupt("return");case 3:if(p.current=!0,m(!0),M(),I(),H(),A(null),!d||!d.key){e.next=14;break}return s=d.key,e.next=13,gM.encrypt({blob:r,key:s});case 13:i=e.sent;case 14:l({image:{blob:r,encrypted:i,detectedCard:o},error:n,recordedVideos:F.current}),m(!1),y({tag:a?"id_front":"id_back",event:"user_activity",log:{time_capture_in_seconds:(performance.now()-C.current)/1e3}});case 17:case"end":return e.stop()}}),e)}))),[M,I,H,A,l,F,a,y,d]);v.current=G;var X=ov.useCallback(CM(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),H(),M(),O.current||I(),e.next=6,N();case 6:return t=e.sent,e.next=9,G(t);case 9:m(!1),y({tag:a?"id_front":"id_back",event:"user_activity.capture",log:{}});case 11:case"end":return e.stop()}}),e)}))),[N,G,H,O,M,I,y,a]);return ov.useEffect((function(){t&&(y({tag:a?"id_front":"id_back",event:"user_activity.start",log:{}}),w.current=performance.now())}),[y,a,t]),ov.useEffect((function(){R&&(y({tag:a?"id_front":"id_back",event:"user_activity.show",log:{}}),y({tag:a?"id_front":"id_back",event:"sdk.load_model",log:{status:"success",time_in_ms:performance.now()-w.current}}),C.current=performance.now())}),[y,a,R]),{warmupDone:R,isProcessing:g,takePictureManually:X,restartSession:Q,resetIsProcessingImageBlobTaken:W}},JK=ZT.IDCardMessage,eH=ov.forwardRef((function(e,t){var r=e.description,n=e.usePortraitMask,o=e.windowAndVideoInfo,i=e.refVideo,a=e.frontSide,s=e.settings,c=e.onCaptureDone,u=e.onUISpacingChange,l=e.outputEncryptionSettings,d=xM(ov.useState({}),2),f=d[0],p=d[1],h=f.yDescription,g=f.yMessage,m=f.yCaptureButton,v=UN.useAsset("ic_camera.svg"),y=UN.useAsset("ic_loading.png"),b=xM(ov.useState(""),2),w=b[0],C=b[1],k=nN.useSDKSettings(),E=k.debug,S=k.lang,B=xM(ov.useState(null),2),_=B[0],A=B[1],x=xM(ov.useState(""),2),T=x[0],I=x[1],P=xM(ov.useState(null),2),R=P[0],N=P[1],O=mK(),L=O.showPopup,M=O.popupShown,D=O.popupType,U=ov.useCallback((function(e){I(null===e?"":Pj(e.msg[S])({side:a?lK.FRONT[S]:lK.BACK[S]}))}),[S,a]),j=ov.useCallback((function(){A(""),L({popupType:vK})}),[L]),F=ov.useCallback((function(){A(""),c.apply(void 0,arguments)}),[c]),V=ov.useCallback((function(e){var t=e.curTimeLeft;A(Pj(JK.REMAINING_TIME[S])({x:t}))}),[S]),z=ZK({shouldStart:!0,refVideo:i,cropArea:R,settings:s,onModelErrorChange:U,frontSide:a,onDebugInfoChange:C,onSessionTimeout:j,onCaptureDone:F,onAboutToTimeout:V,outputEncryptionSettings:l}),K=z.warmupDone,H=z.isProcessing,q=z.takePictureManually,W=z.restartSession,Q=z.resetIsProcessingImageBlobTaken,G=ov.useCallback((function(){L({popupType:null}),Q()}),[L,Q]),X=ov.useCallback(CM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(),e.next=3,W();case 3:case"end":return e.stop()}}),e)}))),[W,G]);ov.useEffect((function(){if(o){var e,t,r,i,a,s,c,l=o.videoAreaWidth,d=o.videoAreaHeight,f=o.lostX,h=o.lostY,g=o.clientHeight;n?(a=.7*(s=d-165),r=(c=(e=h+10)+45)+20,i=(t=c+s+10)+60):(a=GM.isMobile?l-6:Math.floor(.7*l),r=(c=(e=h+10)+50)+20,i=(t=c+(s=Math.floor(Math.min(a/1.5,g-2*h-80-100)))+10)+60);var m=Math.floor((l-a)/2)+f;N({x:m,y:c,width:a,height:s,surroundStyle:{opacity:.6,background:"#000"}});var v={yTitle:e,yDescription:t,yMessage:r,yCaptureButton:i};p(v),u(v)}}),[o,n,u]);var Y=ov.useCallback(CM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(""),e.next=3,q();case 3:case"end":return e.stop()}}),e)}))),[q]);return ov.useImperativeHandle(t,(function(){return{restartSession:X}}),[X]),ov.createElement(ov.Fragment,null,!K&&ov.createElement(yV,null),E&&ov.createElement(iK,null,w),H&&ov.createElement(eK,null,ov.createElement("img",{src:y,alt:"",className:"spin"})),R&&ov.createElement(SD,{x:"".concat(R.x,"px"),y:"".concat(R.y,"px"),width:"".concat(R.width,"px"),height:"".concat(R.height,"px"),surroundStyle:R.surroundStyle},ov.createElement(uK,{width:R.width,height:R.height,type:T?gz.ERROR:gz.DEFAULT})),!T&&ov.createElement(aK,{y:"".concat(h,"px"),className:"description"},r),T&&ov.createElement(sK,{y:"".concat(h,"px")},T),!H&&(!(null!=s&&s.disableCaptureButtonIfAlert)||!T)&&ov.createElement(Jz,{onClick:Y,y:"".concat(m,"px")},ov.createElement("img",{src:v,alt:""})),_&&ov.createElement(cK,{key:_,className:"message",y:"".concat(g,"px")},_),ov.createElement(JF,{open:M},D===vK&&ov.createElement(gK,{onOk:X,maxSessionTime:null==s?void 0:s.idCardSessionTime})))}));eH.propTypes={usePortraitMask:Tv.bool,description:Tv.string,windowAndVideoInfo:Tv.shape({}),refVideo:Tv.shape({}),frontSide:Tv.bool,settings:Tv.shape({}),onCaptureDone:Tv.func,onUISpacingChange:Tv.func,outputEncryptionSettings:Tv.shape({})},eH.defaultProps={usePortraitMask:!1,description:"",windowAndVideoInfo:{},refVideo:{},frontSide:!0,settings:{},onCaptureDone:function(){},onUISpacingChange:function(){},outputEncryptionSettings:null};var tH,rH,nH=Zb.div(GK||(GK=AM(["\n background: ",";\n backdrop-filter: blur(12px);\n border-radius: 8px;\n top: ",";\n position: absolute;\n z-index: ",";\n color: #fff;\n padding: 10px;\n margin: 0 10px;\n max-width: 275px;\n text-align: center;\n"])),(function(e){return e.background}),(function(e){return e.y}),1020),oH=Zb.div(XK||(XK=AM(["\n width: 0;\n height: 0;\n border-left: 20px solid transparent;\n border-right: 20px solid transparent;\n border-bottom: ",";\n position: absolute;\n left: 50%;\n top: ",";\n transform: translateX(-50%);\n"])),(function(e){return"".concat(e.arrowSize,"px solid ").concat(e.color)}),(function(e){return"".concat(e.top,"px")})),iH=function(e){var t=e.children,r=e.y;return ov.createElement(nH,{y:r,background:"#00ce78"},ov.createElement(oH,{arrowSize:10,top:-10,color:"#00ce78"}),t)},aH=Zb.div(YK||(YK=AM(["\n text-align: center;\n position: absolute;\n font-size: 18px;\n border-radius: 3px;\n padding: 5px 10px;\n background: #ea3223;\n color: #fff;\n margin: auto;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),sH={QR_INSTRUCTIONS_TEXT:{en:ov.createElement("span",null,"Please follow the instructions below to scan QR code:",ov.createElement("br",null),ov.createElement("br",null)," Move camera to the position of QR code on ID card. Align QR code to fit into camera frame to scan it"),vi:ov.createElement("span",null,"Vui lòng quét mã QR theo hướng dẫn sau:",ov.createElement("br",null),ov.createElement("br",null)," Đưa camera vào vị trí mã QR trên CCCD. Canh vừa mã QR vào 4 góc khung hình để quét mã")},QR_INSTRUCTIONS_START_BUTTON:{en:"Scan QR code",vi:"Tiến hành quét mã QR"},QR_INSTRUCTIONS_COUNTDOWN:{en:"Start in <%= x %> s",vi:"Bắt đầu trong <%= x %> giây"},QR_INVALID_POPUP_TITLE:{en:"Invalid QR code",vi:"QR không hợp lệ"},QR_INVALID_POPUP_DESCRIPTION:{en:"Please check and make sure scanning QR code on ID card",vi:"Vui lòng kiểm tra và đảm bảo việc thực hiện quét QR trên CCCD thật"},QR_INVALID_POPUP_RETRY_BUTTON:{en:"Scan QR (on ID card)",vi:"Quét lại QR (trên CCCD)"},QR_INVALID_POPUP_SKIP_BUTTON:{en:"Skip",vi:"Bỏ qua"},QR_TOOLTIP:{en:"Fit QR code to 4 corners of camera frame and try to move camera [in or out] to scan QR code",vi:"Canh vừa mã QR vào 4 góc khung hình và thử dịch chuyển camera [xa - gần] để quét được mã QR"},REMAINING_TIME:{en:"Remaining time: <%= x %> seconds",vi:"Thời gian còn lại: <%= x %> giây"},SESSION_TIMEOUT_POPUP_DESCRIPTION:{en:ov.createElement("span",null,"Quá thời gian quét. Vui lòng thực hiện lại.",ov.createElement("br",null),ov.createElement("br",null)," Đưa camera vào vị trí mã QR trên thẻ. Canh vừa vào 4 góc và"," ",ov.createElement("strong",{className:"text-primary"},"thử dịch chuyển camera [xa - gần]")," để camera điện thoại lấy nét chuẩn hơn."),vi:ov.createElement("span",null,"Quá thời gian quét. Vui lòng thực hiện lại.",ov.createElement("br",null),ov.createElement("br",null)," Đưa camera vào vị trí mã QR trên thẻ. Canh vừa vào 4 góc và"," ",ov.createElement("strong",{className:"text-primary"},"thử dịch chuyển camera [xa - gần]")," để camera điện thoại lấy nét chuẩn hơn.")},SESSION_TIMEOUT_POPUP_RETRY_BUTTON:{en:"Retry",vi:"Thực hiện lại"},SESSION_TIMEOUT_POPUP_SKIP_BUTTON:{en:"Skip",vi:"Bỏ qua"}},cH=function(e){var t=e.children,r=e.mt,n=e.mb,o=e.ml,i=e.mr,a=e.mx,s=e.my,c=e.pt,u=e.pb,l=e.pl,d=e.pr,f=e.px,p=e.py,h=t.props.style||{},g={};return null!==a&&(g.marginLeft=a,g.marginRight=a),null!==s&&(g.marginTop=s,g.marginBottom=s),null!==r&&(g.marginTop=r),null!==n&&(g.marginBottom=n),null!==o&&(g.marginLeft=o),null!==i&&(g.marginRight=i),null!==f&&(g.paddingLeft=f,g.paddingRight=f),null!==p&&(g.paddingTop=p,g.paddingBottom=p),null!==c&&(g.paddingTop=c),null!==u&&(g.paddingBottom=u),null!==l&&(g.paddingLeft=l),null!==d&&(g.paddingRight=d),ov.cloneElement(t,{style:BM(BM({},h),g)})};cH.propTypes={mt:Tv.string,ml:Tv.string,mr:Tv.string,mb:Tv.string,mx:Tv.string,my:Tv.string,pt:Tv.string,pl:Tv.string,pr:Tv.string,pb:Tv.string,px:Tv.string,py:Tv.string},cH.defaultProps={mt:null,ml:null,mr:null,mb:null,mx:null,my:null,pt:null,pl:null,pr:null,pb:null,px:null,py:null};var uH,lH,dH,fH,pH,hH,gH=Zb.button(tH||(tH=AM(["\n width: 100%;\n max-width: 294px;\n height: 66px;\n background-color: ",";\n border: 0;\n outline: none;\n border-radius: 3px;\n color: #fff;\n font-weight: normal;\n cursor: pointer;\n font-size: 1rem;\n"])),(function(e){return e.theme.tsBlue})),mH=Zb.a(rH||(rH=AM(["\n color: ",";\n cursor: pointer;\n"])),(function(e){return e.theme.tsBlue})),vH=Zb.div(uH||(uH=AM(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),yH=Zb.div(lH||(lH=AM(["\n color: ",";\n font-weight: bold;\n font-size: 16px;\n"])),(function(e){return e.theme.tsSecondary})),bH=Zb.div(dH||(dH=AM(["\n color: ",";\n font-weight: normal;\n font-size: 16px;\n text-align: center;\n"])),(function(e){return e.theme.tsSecondary})),wH=function(e){var t=e.onRetry,r=e.onSkip,n=nN.useSDKSettings().lang;return ov.createElement(vH,null,ov.createElement(cH,{mt:"25px"},ov.createElement(yH,null,sH.QR_INVALID_POPUP_TITLE[n])),ov.createElement(cH,{mt:"30px"},ov.createElement(bH,null,sH.QR_INVALID_POPUP_DESCRIPTION[n])),ov.createElement(cH,{mt:"30px"},ov.createElement(gH,{onClick:t},sH.QR_INVALID_POPUP_RETRY_BUTTON[n])),ov.createElement(cH,{my:"20px"},ov.createElement(mH,{onClick:r},sH.QR_INVALID_POPUP_SKIP_BUTTON[n])))};wH.propTypes={onRetry:Tv.func,onSkip:Tv.func},wH.defaultProps={onRetry:function(){},onSkip:function(){}};var CH=Zb.div(fH||(fH=AM(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),kH=Zb.div(pH||(pH=AM(["\n background: #e7e6e6;\n width: 100%;\n display: flex;\n justify-content: center;\n"]))),EH=Zb.div(hH||(hH=AM(["\n color: ",";\n font-weight: normal;\n font-size: 16px;\n text-align: center;\n line-height: 20px;\n"])),(function(e){return e.theme.tsSecondary})),SH=function(e){var t=e.onRetry,r=e.onSkip,n=nN.useSDKSettings().lang,o=UN.useAsset("qr_code_banner.svg");return ov.createElement(CH,null,ov.createElement(kH,null,ov.createElement("img",{src:o,alt:""})),ov.createElement(cH,{mt:"30px"},ov.createElement(EH,null,sH.SESSION_TIMEOUT_POPUP_DESCRIPTION[n])),ov.createElement(cH,{mt:"30px"},ov.createElement(gH,{onClick:t},sH.SESSION_TIMEOUT_POPUP_RETRY_BUTTON[n])),ov.createElement(cH,{my:"20px"},ov.createElement(mH,{onClick:r},sH.SESSION_TIMEOUT_POPUP_SKIP_BUTTON[n])))};SH.propTypes={onRetry:Tv.func,onSkip:Tv.func},SH.defaultProps={onRetry:function(){},onSkip:function(){}};var BH,_H,AH,xH,TH,IH,PH=["children","ratio","padding"],RH=Zb.div(BH||(BH=AM(["\n width: 100%;\n padding-bottom: ","%;\n position: relative;\n"])),(function(e){return 1/e.ratio*100})),NH=Zb.div(_H||(_H=AM(["\n position: absolute;\n top: ",";\n left: ",";\n right: ",";\n bottom: ",";\n"])),(function(e){return e.padding}),(function(e){return e.padding}),(function(e){return e.padding}),(function(e){return e.padding})),OH=function(e){var t=e.children,r=e.ratio,n=e.padding,o=_M(e,PH);return ov.createElement(RH,EM({ratio:r},o),ov.createElement(NH,{padding:n},t))};OH.propTypes={children:Tv.node,ratio:Tv.number,padding:Tv.string},OH.defaultProps={children:null,ratio:4/3,padding:"0"};var LH=Zb.div(AH||(AH=AM(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),MH=Zb.div(xH||(xH=AM(["\n background: #e7e6e6;\n width: 100%;\n"]))),DH=Zb.img(TH||(TH=AM(["\n width: 100%;\n height: 100%;\n object-fit: contain;\n border-radius: 5px;\n"]))),UH=Zb.div(IH||(IH=AM(["\n color: ",";\n font-weight: normal;\n font-size: 16px;\n text-align: center;\n line-height: 20px;\n"])),(function(e){return e.theme.tsSecondary})),jH=function(e){var t=e.onClickStart,r=e.onTimeout,n=e.timeout,o=nN.useSDKSettings().lang,i=UN.useAsset("qr_code_banner.png"),a=ov.useRef(n),s=xM(ov.useState((function(){return Pj(sH.QR_INSTRUCTIONS_COUNTDOWN[o])({x:n})})),2),c=s[0],u=s[1];return ov.useEffect((function(){var e=Pj(sH.QR_INSTRUCTIONS_COUNTDOWN[o]),t=setInterval((function(){a.current--,u(e({x:a.current})),a.current<=0&&(clearInterval(t),r&&r())}),1e3);return function(){clearInterval(t)}}),[o,r]),ov.createElement(LH,null,ov.createElement(MH,null,ov.createElement(OH,{ratio:1.6},ov.createElement(DH,{src:i}))),ov.createElement(cH,{mt:"30px"},ov.createElement(UH,null,sH.QR_INSTRUCTIONS_TEXT[o])),ov.createElement(cH,{mt:"30px"},ov.createElement(gH,{onClick:t},sH.QR_INSTRUCTIONS_START_BUTTON[o])),ov.createElement(cH,{my:"20px"},ov.createElement(UH,null,c)))};jH.propTypes={onClickStart:Tv.func,onTimeout:Tv.func,timeout:Tv.number},jH.defaultProps={onClickStart:null,onTimeout:null,timeout:10};var FH=/^\d{12}\|(\d{9})?\|.+\|\d{8}\|((Nam)|(Nữ))\|.+\|\d{8}$/g,VH=function(e){var t=e.match(FH);return{valid:Boolean(t)}},zH=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._onDecodeError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._calculateScanRegion,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"environment";$g(this,t),this.$video=e,this.$canvas=document.createElement("canvas"),this._onDecode=r,this._legacyCanvasSize=t.DEFAULT_CANVAS_SIZE,this._preferredCamera=i,this._active=!1,this._paused=!1,this._flashOn=!1,"number"==typeof n?(this._legacyCanvasSize=n,console.warn("You're using a deprecated version of the QrScanner constructor which will be removed in the future")):this._onDecodeError=n,"number"==typeof o?(this._legacyCanvasSize=o,console.warn("You're using a deprecated version of the QrScanner constructor which will be removed in the future")):this._calculateScanRegion=o,this._scanRegion=this._calculateScanRegion(e),this._onPlay=this._onPlay.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),e.disablePictureInPicture=!0,e.playsInline=!0,e.muted=!0;var a=!1;e.hidden&&(e.hidden=!1,a=!0),document.body.contains(e)||(document.body.appendChild(e),a=!0),requestAnimationFrame((function(){var t=window.getComputedStyle(e);"none"===t.display&&(e.style.setProperty("display","block","important"),a=!0),"visible"!==t.visibility&&(e.style.setProperty("visibility","visible","important"),a=!0),a&&(console.warn("QrScanner has overwritten the video hiding style to avoid Safari stopping the playback."),e.style.opacity=0,e.style.width=0,e.style.height=0)})),e.addEventListener("play",this._onPlay),e.addEventListener("loadedmetadata",this._onLoadedMetaData),document.addEventListener("visibilitychange",this._onVisibilityChange),this._qrEnginePromise=t.createQrEngine()}var r,n,o;return r=t,o=[{key:"hasCamera",value:function(){return t.listCameras(!1).then((function(e){return!!e.length})).catch((function(){return!1}))}},{key:"listCameras",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!navigator.mediaDevices)return Promise.resolve([]);var t=null;return(e?navigator.mediaDevices.getUserMedia({audio:!1,video:!0}).then((function(e){return t=e})).catch((function(){})):Promise.resolve()).then((function(){return navigator.mediaDevices.enumerateDevices()})).then((function(e){return e.filter((function(e){return"videoinput"===e.kind})).map((function(e,t){return{id:e.deviceId,label:e.label||(0===t?"Default Camera":"Camera ".concat(t+1))}}))})).finally((function(){if(t){var e,r=hm(t.getTracks());try{for(r.s();!(e=r.n()).done;){var n=e.value;n.stop(),t.removeTrack(n)}}catch(e){r.e(e)}finally{r.f()}}}))}},{key:"scanImage",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=o instanceof Worker,u=Promise.all([o||t.createQrEngine(),t._loadImage(e)]).then((function(e){var s,u,l=lm(e,2),d=l[0],f=l[1];return o=d,s=lm(r._drawToCanvas(f,n,i,a),2),i=s[0],u=s[1],o instanceof Worker?(c||o.postMessage({type:"inversionMode",data:"both"}),new Promise((function(e,r){var n,a,s;a=function(i){"qrResult"===i.data.type&&(o.removeEventListener("message",a),o.removeEventListener("error",s),clearTimeout(n),null!==i.data.data?e(i.data.data):r(t.NO_QR_CODE_FOUND))},s=function(e){o.removeEventListener("message",a),o.removeEventListener("error",s),clearTimeout(n);var t=e?e.message||e:"Unknown Error";r("Scanner error: "+t)},o.addEventListener("message",a),o.addEventListener("error",s),n=setTimeout((function(){return s("timeout")}),1e4);var c=u.getImageData(0,0,i.width,i.height);o.postMessage({type:"decode",data:c},[c.data.buffer])}))):new Promise((function(e,r){var n=setTimeout((function(){return r("Scanner error: timeout")}),1e4);o.detect(i).then((function(n){n.length?e(n[0].rawValue):r(t.NO_QR_CODE_FOUND)})).catch((function(e){return r("Scanner error: "+(e.message||e))})).finally((function(){return clearTimeout(n)}))}))}));return n&&s&&(u=u.catch((function(){return t.scanImage(e,null,o,i,a)}))),u=u.finally((function(){c||t._postWorkerMessage(o,"close")}))}},{key:"createQrEngine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.WORKER_PATH;return("BarcodeDetector"in window&&BarcodeDetector.getSupportedFormats?BarcodeDetector.getSupportedFormats():Promise.resolve([])).then((function(t){return-1!==t.indexOf("qr_code")?new BarcodeDetector({formats:["qr_code"]}):new Worker(e)}))}},{key:"_drawToCanvas",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];r=r||document.createElement("canvas");var o=t&&t.x?t.x:0,i=t&&t.y?t.y:0,a=t&&t.width?t.width:e.width||e.videoWidth,s=t&&t.height?t.height:e.height||e.videoHeight;if(!n){var c=t&&t.downScaledWidth?t.downScaledWidth:a,u=t&&t.downScaledHeight?t.downScaledHeight:s;r.width!==c&&(r.width=c),r.height!==u&&(r.height=u)}var l=r.getContext("2d",{alpha:!1});return l.imageSmoothingEnabled=!1,l.drawImage(e,o,i,a,s,0,0,r.width,r.height),[r,l]}},{key:"_loadImage",value:function(e){if(e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||window.ImageBitmap&&e instanceof window.ImageBitmap||window.OffscreenCanvas&&e instanceof window.OffscreenCanvas)return Promise.resolve(e);if(e instanceof Image)return t._awaitImageLoad(e).then((function(){return e}));if(e instanceof File||e instanceof Blob||e instanceof URL||"string"==typeof e){var r=new Image;return e instanceof File||e instanceof Blob?r.src=URL.createObjectURL(e):r.src=e,t._awaitImageLoad(r).then((function(){return(e instanceof File||e instanceof Blob)&&URL.revokeObjectURL(r.src),r}))}return Promise.reject("Unsupported image type.")}},{key:"_awaitImageLoad",value:function(e){return new Promise((function(t,r){var n,o;e.complete&&0!==e.naturalWidth?t():(n=function(){e.removeEventListener("load",n),e.removeEventListener("error",o),t()},o=function(){e.removeEventListener("load",n),e.removeEventListener("error",o),r("Image load error")},e.addEventListener("load",n),e.addEventListener("error",o))}))}},{key:"_postWorkerMessage",value:function(e,t,r){return Promise.resolve(e).then((function(e){e instanceof Worker&&e.postMessage({type:t,data:r})}))}}],(n=[{key:"hasFlash",value:function(){var e=null;return(this.$video.srcObject?Promise.resolve(this.$video.srcObject.getVideoTracks()[0]):this._getCameraStream().then((function(t){var r=t.stream;return console.warn("Call hasFlash after successfully starting the scanner to avoid creating a temporary video stream"),e=r,r.getVideoTracks()[0]}))).then((function(e){return"torch"in e.getSettings()})).catch((function(){return!1})).finally((function(){if(e){var t,r=hm(e.getTracks());try{for(r.s();!(t=r.n()).done;){var n=t.value;n.stop(),e.removeTrack(n)}}catch(e){r.e(e)}finally{r.f()}}}))}},{key:"isFlashOn",value:function(){return this._flashOn}},{key:"toggleFlash",value:function(){return this._flashOn?this.turnFlashOff():this.turnFlashOn()}},{key:"turnFlashOn",value:function(){var t=this;return this._flashOn?Promise.resolve():(this._flashOn=!0,!this._active||this._paused?Promise.resolve():this.hasFlash().then((function(e){return e?t.$video.srcObject.getVideoTracks()[0].applyConstraints({advanced:[{torch:!0}]}):Promise.reject("No flash available")})).catch((function(){throw t._flashOn=!1,e})))}},{key:"turnFlashOff",value:function(){if(this._flashOn)return this._flashOn=!1,this._restartVideoStream()}},{key:"destroy",value:function(){this.$video.removeEventListener("loadedmetadata",this._onLoadedMetaData),this.$video.removeEventListener("play",this._onPlay),document.removeEventListener("visibilitychange",this._onVisibilityChange),this.stop(),t._postWorkerMessage(this._qrEnginePromise,"close")}},{key:"start",value:function(){var e=this;return this._active&&!this._paused?Promise.resolve():("https:"!==window.location.protocol&&console.warn("The camera stream is only accessible if the page is transferred via https."),this._active=!0,document.hidden?Promise.resolve():(this._paused=!1,this.$video.srcObject?(this.$video.play(),Promise.resolve()):this._getCameraStream().then((function(t){var r=t.stream,n=t.facingMode;e.$video.srcObject=r,e.$video.play(),e._setVideoMirror(n),e._flashOn&&(e._flashOn=!1,e.turnFlashOn().catch((function(){})))})).catch((function(t){throw e._active=!1,t}))))}},{key:"stop",value:function(){this.pause(),this._active=!1}},{key:"pause",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._paused=!0,!this._active)return Promise.resolve(!0);this.$video.pause();var r=function(){var t,r=hm(e.$video.srcObject?e.$video.srcObject.getTracks():[]);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.stop(),e.$video.srcObject.removeTrack(n)}}catch(e){r.e(e)}finally{r.f()}e.$video.srcObject=null};return t?(r(),Promise.resolve(!0)):new Promise((function(e){return setTimeout(e,300)})).then((function(){return!!e._paused&&(r(),!0)}))}},{key:"setCamera",value:function(e){return e===this._preferredCamera?Promise.resolve():(this._preferredCamera=e,this._restartVideoStream())}},{key:"setGrayscaleWeights",value:function(e,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t._postWorkerMessage(this._qrEnginePromise,"grayscaleWeights",{red:e,green:r,blue:n,useIntegerApproximation:o})}},{key:"setInversionMode",value:function(e){t._postWorkerMessage(this._qrEnginePromise,"inversionMode",e)}},{key:"_onPlay",value:function(){this._scanRegion=this._calculateScanRegion(this.$video),this._scanFrame()}},{key:"_onLoadedMetaData",value:function(){this._scanRegion=this._calculateScanRegion(this.$video)}},{key:"_onVisibilityChange",value:function(){document.hidden?this.pause():this._active&&this.start()}},{key:"_calculateScanRegion",value:function(e){var t=Math.min(e.videoWidth,e.videoHeight),r=Math.round(2/3*t);return{x:Math.round((e.videoWidth-r)/2),y:Math.round((e.videoHeight-r)/2),width:r,height:r,downScaledWidth:this._legacyCanvasSize,downScaledHeight:this._legacyCanvasSize}}},{key:"_scanFrame",value:function(){var e=this;if(!this._active||this.$video.paused||this.$video.ended)return!1;requestAnimationFrame((function(){e.$video.readyState<=1?e._scanFrame():e._qrEnginePromise.then((function(r){return t.scanImage(e.$video,e._scanRegion,r,e.$canvas)})).then(e._onDecode,(function(r){e._active&&(-1!==(r.message||r).indexOf("service unavailable")&&(e._qrEnginePromise=t.createQrEngine()),e._onDecodeError(r))})).then((function(){return e._scanFrame()}))}))}},{key:"_onDecodeError",value:function(e){e!==t.NO_QR_CODE_FOUND&&console.log(e)}},{key:"_getCameraStream",value:function(){var e=this;if(!navigator.mediaDevices)return Promise.reject("Camera not found.");var t="environment"===this._preferredCamera||"user"===this._preferredCamera?"facingMode":"deviceId",r=[{width:{min:1024}},{width:{min:768}},{}];return[].concat(dm(r.map((function(r){return Object.assign({},r,Jg({},t,{exact:e._preferredCamera}))}))),r).reduceRight((function(t,r){return function(){return navigator.mediaDevices.getUserMedia({video:r,audio:!1}).then((function(t){return{stream:t,facingMode:e._getFacingMode(t)||(r.facingMode?e._preferredCamera:"environment"===e._preferredCamera?"user":"environment")}})).catch(t)}}),(function(){return Promise.reject("Camera not found.")}))()}},{key:"_restartVideoStream",value:function(){var e=this,t=this._paused;return this.pause(!0).then((function(r){if(r&&!t&&e._active)return e.start()}))}},{key:"_setVideoMirror",value:function(e){var t="user"===e?-1:1;this.$video.style.transform="scaleX("+t+")"}},{key:"_getFacingMode",value:function(e){var t=e.getVideoTracks()[0];return t?/rear|back|environment/i.test(t.label)?"environment":/front|user|face/i.test(t.label)?"user":null:null}}])&&Zg(r.prototype,n),o&&Zg(r,o),t}();function KH(){return HH.apply(this,arguments)}function HH(){return(HH=CM(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return zH.WORKER_PATH=mM(),e.next=3,zH.createQrEngine(zH.WORKER_PATH);case 3:return t=e.sent,e.abrupt("return",{qrEngine:t});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qH(){return(qH=CM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=t.opencvUrl,e.next=3,Promise.all([KH(),LK({url:r})]);case 3:return n=e.sent,o=xM(n,1),i=o[0].qrEngine,a=window,s=a.cv,e.abrupt("return",{qrScannerResources:{engine:i,canvas:document.createElement("canvas")},blackAndWhiteConverterResources:{kernel:s.matFromArray(3,3,s.CV_32FC1,[-1,-1,-1,-1,11,-1,-1,-1,-1]),canvas:document.createElement("canvas"),dst:new s.Mat}});case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}zH.DEFAULT_CANVAS_SIZE=400,zH.NO_QR_CODE_FOUND="No QR code found",zH.WORKER_PATH="qr-scanner-worker.min.js";var WH=iF((function(){return qH.apply(this,arguments)})),QH=NM(OM((function(e,t){var r;r=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.width=t,this.height=e.length/t,this.data=e}return e.createEmpty=function(t,r){return new e(new Uint8ClampedArray(t*r),t)},e.prototype.get=function(e,t){return!(e<0||e>=this.width||t<0||t>=this.height||!this.data[t*this.width+e])},e.prototype.set=function(e,t,r){this.data[t*this.width+e]=r?1:0},e.prototype.setRegion=function(e,t,r,n,o){for(var i=t;i<t+n;i++)for(var a=e;a<e+r;a++)this.set(a,i,!!o)},e}();t.BitMatrix=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.addOrSubtractGF=function(e,t){return e^t};var o=function(){function e(e,t,r){this.primitive=e,this.size=t,this.generatorBase=r,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var o=1,i=0;i<this.size;i++)this.expTable[i]=o,(o*=2)>=this.size&&(o=(o^this.primitive)&this.size-1);for(i=0;i<this.size-1;i++)this.logTable[this.expTable[i]]=i;this.zero=new n.default(this,Uint8ClampedArray.from([0])),this.one=new n.default(this,Uint8ClampedArray.from([1]))}return e.prototype.multiply=function(e,t){return 0===e||0===t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.size-1)]},e.prototype.inverse=function(e){if(0===e)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[e]-1]},e.prototype.buildMonomial=function(e,t){if(e<0)throw new Error("Invalid monomial degree less than 0");if(0===t)return this.zero;var r=new Uint8ClampedArray(e+1);return r[0]=t,new n.default(this,r)},e.prototype.log=function(e){if(0===e)throw new Error("Can't take log(0)");return this.logTable[e]},e.prototype.exp=function(e){return this.expTable[e]},e}();t.default=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=function(){function e(e,t){if(0===t.length)throw new Error("No coefficients.");this.field=e;var r=t.length;if(r>1&&0===t[0]){for(var n=1;n<r&&0===t[n];)n++;if(n===r)this.coefficients=e.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(r-n);for(var o=0;o<this.coefficients.length;o++)this.coefficients[o]=t[n+o]}}else this.coefficients=t}return e.prototype.degree=function(){return this.coefficients.length-1},e.prototype.isZero=function(){return 0===this.coefficients[0]},e.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},e.prototype.addOrSubtract=function(t){var r;if(this.isZero())return t;if(t.isZero())return this;var o=this.coefficients,i=t.coefficients;o.length>i.length&&(o=(r=[i,o])[0],i=r[1]);for(var a=new Uint8ClampedArray(i.length),s=i.length-o.length,c=0;c<s;c++)a[c]=i[c];for(c=s;c<i.length;c++)a[c]=n.addOrSubtractGF(o[c-s],i[c]);return new e(this.field,a)},e.prototype.multiply=function(t){if(0===t)return this.field.zero;if(1===t)return this;for(var r=this.coefficients.length,n=new Uint8ClampedArray(r),o=0;o<r;o++)n[o]=this.field.multiply(this.coefficients[o],t);return new e(this.field,n)},e.prototype.multiplyPoly=function(t){if(this.isZero()||t.isZero())return this.field.zero;for(var r=this.coefficients,o=r.length,i=t.coefficients,a=i.length,s=new Uint8ClampedArray(o+a-1),c=0;c<o;c++)for(var u=r[c],l=0;l<a;l++)s[c+l]=n.addOrSubtractGF(s[c+l],this.field.multiply(u,i[l]));return new e(this.field,s)},e.prototype.multiplyByMonomial=function(t,r){if(t<0)throw new Error("Invalid degree less than 0");if(0===r)return this.field.zero;for(var n=this.coefficients.length,o=new Uint8ClampedArray(n+t),i=0;i<n;i++)o[i]=this.field.multiply(this.coefficients[i],r);return new e(this.field,o)},e.prototype.evaluateAt=function(e){var t=0;if(0===e)return this.getCoefficient(0);var r=this.coefficients.length;if(1===e)return this.coefficients.forEach((function(e){t=n.addOrSubtractGF(t,e)})),t;t=this.coefficients[0];for(var o=1;o<r;o++)t=n.addOrSubtractGF(this.field.multiply(e,t),this.coefficients[o]);return t},e}();t.default=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),o=r(5),i=r(11),a=r(12);function s(e){var t=a.locate(e);if(!t)return null;for(var r=0,n=t;r<n.length;r++){var s=n[r],c=i.extract(e,s),u=o.decode(c.matrix);if(u)return{binaryData:u.bytes,data:u.text,chunks:u.chunks,version:u.version,location:{topRightCorner:c.mappingFunction(s.dimension,0),topLeftCorner:c.mappingFunction(0,0),bottomRightCorner:c.mappingFunction(s.dimension,s.dimension),bottomLeftCorner:c.mappingFunction(0,s.dimension),topRightFinderPattern:s.topRight,topLeftFinderPattern:s.topLeft,bottomLeftFinderPattern:s.bottomLeft,bottomRightAlignmentPattern:s.alignmentPattern}}}return null}var c={inversionAttempts:"attemptBoth"};function u(e,t,r,o){void 0===o&&(o={});var i=c;Object.keys(i||{}).forEach((function(e){i[e]=o[e]||i[e]}));var a="attemptBoth"===i.inversionAttempts||"invertFirst"===i.inversionAttempts,u="onlyInvert"===i.inversionAttempts||"invertFirst"===i.inversionAttempts,l=n.binarize(e,t,r,a),d=l.binarized,f=l.inverted,p=s(u?f:d);return p||"attemptBoth"!==i.inversionAttempts&&"invertFirst"!==i.inversionAttempts||(p=s(u?d:f)),p}u.default=u,t.default=u},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);function o(e,t,r){return e<t?t:e>r?r:e}var i=function(){function e(e,t){this.width=e,this.data=new Uint8ClampedArray(e*t)}return e.prototype.get=function(e,t){return this.data[t*this.width+e]},e.prototype.set=function(e,t,r){this.data[t*this.width+e]=r},e}();t.binarize=function(e,t,r,a){if(e.length!==t*r*4)throw new Error("Malformed data passed to binarizer.");for(var s=new i(t,r),c=0;c<t;c++)for(var u=0;u<r;u++){var l=e[4*(u*t+c)+0],d=e[4*(u*t+c)+1],f=e[4*(u*t+c)+2];s.set(c,u,.2126*l+.7152*d+.0722*f)}for(var p=Math.ceil(t/8),h=Math.ceil(r/8),g=new i(p,h),m=0;m<h;m++)for(var v=0;v<p;v++){var y=0,b=1/0,w=0;for(u=0;u<8;u++)for(c=0;c<8;c++){var C=s.get(8*v+c,8*m+u);y+=C,b=Math.min(b,C),w=Math.max(w,C)}var k=y/Math.pow(8,2);if(w-b<=24&&(k=b/2,m>0&&v>0)){var E=(g.get(v,m-1)+2*g.get(v-1,m)+g.get(v-1,m-1))/4;b<E&&(k=E)}g.set(v,m,k)}var S=n.BitMatrix.createEmpty(t,r),B=null;for(a&&(B=n.BitMatrix.createEmpty(t,r)),m=0;m<h;m++)for(v=0;v<p;v++){for(var _=o(v,2,p-3),A=o(m,2,h-3),x=(y=0,-2);x<=2;x++)for(var T=-2;T<=2;T++)y+=g.get(_+x,A+T);var I=y/25;for(x=0;x<8;x++)for(T=0;T<8;T++){c=8*v+x,u=8*m+T;var P=s.get(c,u);S.set(c,u,P<=I),a&&B.set(c,u,!(P<=I))}}return a?{binarized:S,inverted:B}:{binarized:S}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(6),i=r(9),a=r(10);function s(e,t){for(var r=e^t,n=0;r;)n++,r&=r-1;return n}function c(e,t){return t<<1|e}var u=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],l=[function(e){return(e.y+e.x)%2==0},function(e){return e.y%2==0},function(e){return e.x%3==0},function(e){return(e.y+e.x)%3==0},function(e){return(Math.floor(e.y/2)+Math.floor(e.x/3))%2==0},function(e){return e.x*e.y%2+e.x*e.y%3==0},function(e){return(e.y*e.x%2+e.y*e.x%3)%2==0},function(e){return((e.y+e.x)%2+e.y*e.x%3)%2==0}];function d(e,t,r){for(var o=l[r.dataMask],i=e.height,a=function(e){var t=17+4*e.versionNumber,r=n.BitMatrix.createEmpty(t,t);r.setRegion(0,0,9,9,!0),r.setRegion(t-8,0,8,9,!0),r.setRegion(0,t-8,9,8,!0);for(var o=0,i=e.alignmentPatternCenters;o<i.length;o++)for(var a=i[o],s=0,c=e.alignmentPatternCenters;s<c.length;s++){var u=c[s];6===a&&6===u||6===a&&u===t-7||a===t-7&&6===u||r.setRegion(a-2,u-2,5,5,!0)}return r.setRegion(6,9,1,t-17,!0),r.setRegion(9,6,t-17,1,!0),e.versionNumber>6&&(r.setRegion(t-11,0,3,6,!0),r.setRegion(0,t-11,6,3,!0)),r}(t),s=[],u=0,d=0,f=!0,p=i-1;p>0;p-=2){6===p&&p--;for(var h=0;h<i;h++)for(var g=f?i-1-h:h,m=0;m<2;m++){var v=p-m;if(!a.get(v,g)){d++;var y=e.get(v,g);o({y:g,x:v})&&(y=!y),u=c(y,u),8===d&&(s.push(u),d=0,u=0)}}f=!f}return s}function f(e){var t=function(e){var t=e.height,r=Math.floor((t-17)/4);if(r<=6)return a.VERSIONS[r-1];for(var n=0,o=5;o>=0;o--)for(var i=t-9;i>=t-11;i--)n=c(e.get(i,o),n);var u=0;for(i=5;i>=0;i--)for(o=t-9;o>=t-11;o--)u=c(e.get(i,o),u);for(var l,d=1/0,f=0,p=a.VERSIONS;f<p.length;f++){var h=p[f];if(h.infoBits===n||h.infoBits===u)return h;var g=s(n,h.infoBits);g<d&&(l=h,d=g),(g=s(u,h.infoBits))<d&&(l=h,d=g)}return d<=3?l:void 0}(e);if(!t)return null;var r=function(e){for(var t=0,r=0;r<=8;r++)6!==r&&(t=c(e.get(r,8),t));for(var n=7;n>=0;n--)6!==n&&(t=c(e.get(8,n),t));var o=e.height,i=0;for(n=o-1;n>=o-7;n--)i=c(e.get(8,n),i);for(r=o-8;r<o;r++)i=c(e.get(r,8),i);for(var a=1/0,l=null,d=0,f=u;d<f.length;d++){var p=f[d],h=p.bits,g=p.formatInfo;if(h===t||h===i)return g;var m=s(t,h);m<a&&(l=g,a=m),t!==i&&(m=s(i,h))<a&&(l=g,a=m)}return a<=3?l:null}(e);if(!r)return null;var n=function(e,t,r){var n=t.errorCorrectionLevels[r],o=[],i=0;if(n.ecBlocks.forEach((function(e){for(var t=0;t<e.numBlocks;t++)o.push({numDataCodewords:e.dataCodewordsPerBlock,codewords:[]}),i+=e.dataCodewordsPerBlock+n.ecCodewordsPerBlock})),e.length<i)return null;e=e.slice(0,i);for(var a=n.ecBlocks[0].dataCodewordsPerBlock,s=0;s<a;s++)for(var c=0,u=o;c<u.length;c++)u[c].codewords.push(e.shift());if(n.ecBlocks.length>1){var l=n.ecBlocks[0].numBlocks,d=n.ecBlocks[1].numBlocks;for(s=0;s<d;s++)o[l+s].codewords.push(e.shift())}for(;e.length>0;)for(var f=0,p=o;f<p.length;f++)p[f].codewords.push(e.shift());return o}(d(e,t,r),t,r.errorCorrectionLevel);if(!n)return null;for(var l=n.reduce((function(e,t){return e+t.numDataCodewords}),0),f=new Uint8ClampedArray(l),p=0,h=0,g=n;h<g.length;h++){var m=g[h],v=i.decode(m.codewords,m.codewords.length-m.numDataCodewords);if(!v)return null;for(var y=0;y<m.numDataCodewords;y++)f[p++]=v[y]}try{return o.decode(f,t.versionNumber)}catch(e){return null}}t.decode=function(e){if(null==e)return null;var t=f(e);if(t)return t;for(var r=0;r<e.width;r++)for(var n=r+1;n<e.height;n++)e.get(r,n)!==e.get(n,r)&&(e.set(r,n,!e.get(r,n)),e.set(n,r,!e.get(n,r)));return f(e)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o,i=r(7),a=r(8);function s(e,t){for(var r=[],n="",o=[10,12,14][t],i=e.readBits(o);i>=3;){if((u=e.readBits(10))>=1e3)throw new Error("Invalid numeric value above 999");var a=Math.floor(u/100),s=Math.floor(u/10)%10,c=u%10;r.push(48+a,48+s,48+c),n+=a.toString()+s.toString()+c.toString(),i-=3}if(2===i){if((u=e.readBits(7))>=100)throw new Error("Invalid numeric value above 99");a=Math.floor(u/10),s=u%10,r.push(48+a,48+s),n+=a.toString()+s.toString()}else if(1===i){var u;if((u=e.readBits(4))>=10)throw new Error("Invalid numeric value above 9");r.push(48+u),n+=u.toString()}return{bytes:r,text:n}}!function(e){e.Numeric="numeric",e.Alphanumeric="alphanumeric",e.Byte="byte",e.Kanji="kanji",e.ECI="eci"}(n=t.Mode||(t.Mode={})),function(e){e[e.Terminator=0]="Terminator",e[e.Numeric=1]="Numeric",e[e.Alphanumeric=2]="Alphanumeric",e[e.Byte=4]="Byte",e[e.Kanji=8]="Kanji",e[e.ECI=7]="ECI"}(o||(o={}));var c=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function u(e,t){for(var r=[],n="",o=[9,11,13][t],i=e.readBits(o);i>=2;){var a=e.readBits(11),s=Math.floor(a/45),u=a%45;r.push(c[s].charCodeAt(0),c[u].charCodeAt(0)),n+=c[s]+c[u],i-=2}return 1===i&&(s=e.readBits(6),r.push(c[s].charCodeAt(0)),n+=c[s]),{bytes:r,text:n}}function l(e,t){for(var r=[],n="",o=[8,16,16][t],i=e.readBits(o),a=0;a<i;a++){var s=e.readBits(8);r.push(s)}try{n+=decodeURIComponent(r.map((function(e){return"%"+("0"+e.toString(16)).substr(-2)})).join(""))}catch(e){}return{bytes:r,text:n}}function d(e,t){for(var r=[],n="",o=[8,10,12][t],i=e.readBits(o),s=0;s<i;s++){var c=e.readBits(13),u=Math.floor(c/192)<<8|c%192;u+=u<7936?33088:49472,r.push(u>>8,255&u),n+=String.fromCharCode(a.shiftJISTable[u])}return{bytes:r,text:n}}t.decode=function(e,t){for(var r,a,c,f,p=new i.BitStream(e),h=t<=9?0:t<=26?1:2,g={text:"",bytes:[],chunks:[],version:t};p.available()>=4;){var m=p.readBits(4);if(m===o.Terminator)return g;if(m===o.ECI)0===p.readBits(1)?g.chunks.push({type:n.ECI,assignmentNumber:p.readBits(7)}):0===p.readBits(1)?g.chunks.push({type:n.ECI,assignmentNumber:p.readBits(14)}):0===p.readBits(1)?g.chunks.push({type:n.ECI,assignmentNumber:p.readBits(21)}):g.chunks.push({type:n.ECI,assignmentNumber:-1});else if(m===o.Numeric){var v=s(p,h);g.text+=v.text,(r=g.bytes).push.apply(r,v.bytes),g.chunks.push({type:n.Numeric,text:v.text})}else if(m===o.Alphanumeric){var y=u(p,h);g.text+=y.text,(a=g.bytes).push.apply(a,y.bytes),g.chunks.push({type:n.Alphanumeric,text:y.text})}else if(m===o.Byte){var b=l(p,h);g.text+=b.text,(c=g.bytes).push.apply(c,b.bytes),g.chunks.push({type:n.Byte,bytes:b.bytes,text:b.text})}else if(m===o.Kanji){var w=d(p,h);g.text+=w.text,(f=g.bytes).push.apply(f,w.bytes),g.chunks.push({type:n.Kanji,bytes:w.bytes,text:w.text})}}if(0===p.available()||0===p.readBits(p.available()))return g}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.byteOffset=0,this.bitOffset=0,this.bytes=e}return e.prototype.readBits=function(e){if(e<1||e>32||e>this.available())throw new Error("Cannot read "+e.toString()+" bits");var t=0;if(this.bitOffset>0){var r=8-this.bitOffset,n=e<r?e:r,o=255>>8-n<<(i=r-n);t=(this.bytes[this.byteOffset]&o)>>i,e-=n,this.bitOffset+=n,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(e>0){for(;e>=8;)t=t<<8|255&this.bytes[this.byteOffset],this.byteOffset++,e-=8;var i;e>0&&(o=255>>(i=8-e)<<i,t=t<<e|(this.bytes[this.byteOffset]&o)>>i,this.bitOffset+=e)}return t},e.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},e}();t.BitStream=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(2);t.decode=function(e,t){var r=new Uint8ClampedArray(e.length);r.set(e);for(var i=new n.default(285,256,0),a=new o.default(i,r),s=new Uint8ClampedArray(t),c=!1,u=0;u<t;u++){var l=a.evaluateAt(i.exp(u+i.generatorBase));s[s.length-1-u]=l,0!==l&&(c=!0)}if(!c)return r;var d=new o.default(i,s),f=function(e,t,r,n){var o;t.degree()<r.degree()&&(t=(o=[r,t])[0],r=o[1]);for(var i=t,a=r,s=e.zero,c=e.one;a.degree()>=n/2;){var u=i,l=s;if(s=c,(i=a).isZero())return null;a=u;for(var d=e.zero,f=i.getCoefficient(i.degree()),p=e.inverse(f);a.degree()>=i.degree()&&!a.isZero();){var h=a.degree()-i.degree(),g=e.multiply(a.getCoefficient(a.degree()),p);d=d.addOrSubtract(e.buildMonomial(h,g)),a=a.addOrSubtract(i.multiplyByMonomial(h,g))}if(c=d.multiplyPoly(s).addOrSubtract(l),a.degree()>=i.degree())return null}var m=c.getCoefficient(0);if(0===m)return null;var v=e.inverse(m);return[c.multiply(v),a.multiply(v)]}(i,i.buildMonomial(t,1),d,t);if(null===f)return null;var p=function(e,t){var r=t.degree();if(1===r)return[t.getCoefficient(1)];for(var n=new Array(r),o=0,i=1;i<e.size&&o<r;i++)0===t.evaluateAt(i)&&(n[o]=e.inverse(i),o++);return o!==r?null:n}(i,f[0]);if(null==p)return null;for(var h=function(e,t,r){for(var o=r.length,i=new Array(o),a=0;a<o;a++){for(var s=e.inverse(r[a]),c=1,u=0;u<o;u++)a!==u&&(c=e.multiply(c,n.addOrSubtractGF(1,e.multiply(r[u],s))));i[a]=e.multiply(t.evaluateAt(s),e.inverse(c)),0!==e.generatorBase&&(i[a]=e.multiply(i[a],s))}return i}(i,f[1],p),g=0;g<p.length;g++){var m=r.length-1-i.log(p[g]);if(m<0)return null;r[m]=n.addOrSubtractGF(r[m],h[g])}return r}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.VERSIONS=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}]},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);function o(e,t,r,n){var o=e.x-t.x+r.x-n.x,i=e.y-t.y+r.y-n.y;if(0===o&&0===i)return{a11:t.x-e.x,a12:t.y-e.y,a13:0,a21:r.x-t.x,a22:r.y-t.y,a23:0,a31:e.x,a32:e.y,a33:1};var a=t.x-r.x,s=n.x-r.x,c=t.y-r.y,u=n.y-r.y,l=a*u-s*c,d=(o*u-s*i)/l,f=(a*i-o*c)/l;return{a11:t.x-e.x+d*t.x,a12:t.y-e.y+d*t.y,a13:d,a21:n.x-e.x+f*n.x,a22:n.y-e.y+f*n.y,a23:f,a31:e.x,a32:e.y,a33:1}}t.extract=function(e,t){for(var r,i,a=(i=function(e,t,r,n){var i=o({x:3.5,y:3.5},t,r,n);return{a11:i.a22*i.a33-i.a23*i.a32,a12:i.a13*i.a32-i.a12*i.a33,a13:i.a12*i.a23-i.a13*i.a22,a21:i.a23*i.a31-i.a21*i.a33,a22:i.a11*i.a33-i.a13*i.a31,a23:i.a13*i.a21-i.a11*i.a23,a31:i.a21*i.a32-i.a22*i.a31,a32:i.a12*i.a31-i.a11*i.a32,a33:i.a11*i.a22-i.a12*i.a21}}(0,{x:t.dimension-3.5,y:3.5},{x:t.dimension-6.5,y:t.dimension-6.5},{x:3.5,y:t.dimension-3.5}),{a11:(r=o(t.topLeft,t.topRight,t.alignmentPattern,t.bottomLeft)).a11*i.a11+r.a21*i.a12+r.a31*i.a13,a12:r.a12*i.a11+r.a22*i.a12+r.a32*i.a13,a13:r.a13*i.a11+r.a23*i.a12+r.a33*i.a13,a21:r.a11*i.a21+r.a21*i.a22+r.a31*i.a23,a22:r.a12*i.a21+r.a22*i.a22+r.a32*i.a23,a23:r.a13*i.a21+r.a23*i.a22+r.a33*i.a23,a31:r.a11*i.a31+r.a21*i.a32+r.a31*i.a33,a32:r.a12*i.a31+r.a22*i.a32+r.a32*i.a33,a33:r.a13*i.a31+r.a23*i.a32+r.a33*i.a33}),s=n.BitMatrix.createEmpty(t.dimension,t.dimension),c=function(e,t){var r=a.a13*e+a.a23*t+a.a33;return{x:(a.a11*e+a.a21*t+a.a31)/r,y:(a.a12*e+a.a22*t+a.a32)/r}},u=0;u<t.dimension;u++)for(var l=0;l<t.dimension;l++){var d=c(l+.5,u+.5);s.set(l,u,e.get(Math.floor(d.x),Math.floor(d.y)))}return{matrix:s,mappingFunction:c}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};function o(e){return e.reduce((function(e,t){return e+t}))}function i(e,t,r,o){var i,a,s,c,u=[{x:Math.floor(e.x),y:Math.floor(e.y)}],l=Math.abs(t.y-e.y)>Math.abs(t.x-e.x);l?(i=Math.floor(e.y),a=Math.floor(e.x),s=Math.floor(t.y),c=Math.floor(t.x)):(i=Math.floor(e.x),a=Math.floor(e.y),s=Math.floor(t.x),c=Math.floor(t.y));for(var d=Math.abs(s-i),f=Math.abs(c-a),p=Math.floor(-d/2),h=i<s?1:-1,g=a<c?1:-1,m=!0,v=i,y=a;v!==s+h;v+=h){var b=l?y:v,w=l?v:y;if(r.get(b,w)!==m&&(m=!m,u.push({x:b,y:w}),u.length===o+1))break;if((p+=f)>0){if(y===c)break;y+=g,p-=d}}for(var C=[],k=0;k<o;k++)u[k]&&u[k+1]?C.push(n(u[k],u[k+1])):C.push(0);return C}function a(e,t,r,n){var o,a=t.y-e.y,s=t.x-e.x,c=i(e,t,r,Math.ceil(n/2)),u=i(e,{x:e.x-s,y:e.y-a},r,Math.ceil(n/2)),l=c.shift()+u.shift()-1;return(o=u.concat(l)).concat.apply(o,c)}function s(e,t){var r=o(e)/o(t),n=0;return t.forEach((function(t,o){n+=Math.pow(e[o]-t*r,2)})),{averageSize:r,error:n}}function c(e,t,r){try{var n=a(e,{x:-1,y:e.y},r,t.length),o=a(e,{x:e.x,y:-1},r,t.length),i=a(e,{x:Math.max(0,e.x-e.y)-1,y:Math.max(0,e.y-e.x)-1},r,t.length),c=a(e,{x:Math.min(r.width,e.x+e.y)+1,y:Math.min(r.height,e.y+e.x)+1},r,t.length),u=s(n,t),l=s(o,t),d=s(i,t),f=s(c,t),p=Math.sqrt(u.error*u.error+l.error*l.error+d.error*d.error+f.error*f.error),h=(u.averageSize+l.averageSize+d.averageSize+f.averageSize)/4;return p+(Math.pow(u.averageSize-h,2)+Math.pow(l.averageSize-h,2)+Math.pow(d.averageSize-h,2)+Math.pow(f.averageSize-h,2))/h}catch(e){return 1/0}}function u(e,t){for(var r=Math.round(t.x);e.get(r,Math.round(t.y));)r--;for(var n=Math.round(t.x);e.get(n,Math.round(t.y));)n++;for(var o=(r+n)/2,i=Math.round(t.y);e.get(Math.round(o),i);)i--;for(var a=Math.round(t.y);e.get(Math.round(o),a);)a++;return{x:o,y:(i+a)/2}}function l(e,t,r,i,s){var u,l,d;try{u=function(e,t,r,i){var s=(o(a(e,r,i,5))/7+o(a(e,t,i,5))/7+o(a(r,e,i,5))/7+o(a(t,e,i,5))/7)/4;if(s<1)throw new Error("Invalid module size");var c=Math.round(n(e,t)/s),u=Math.round(n(e,r)/s),l=Math.floor((c+u)/2)+7;switch(l%4){case 0:l++;break;case 2:l--}return{dimension:l,moduleSize:s}}(i,r,s,e),l=u.dimension,d=u.moduleSize}catch(e){return null}var f=r.x-i.x+s.x,p=r.y-i.y+s.y,h=(n(i,s)+n(i,r))/2/d,g=1-3/h,m={x:i.x+g*(f-i.x),y:i.y+g*(p-i.y)},v=t.map((function(t){var r=(t.top.startX+t.top.endX+t.bottom.startX+t.bottom.endX)/4,i=(t.top.y+t.bottom.y+1)/2;if(e.get(Math.floor(r),Math.floor(i)))return o([t.top.endX-t.top.startX,t.bottom.endX-t.bottom.startX,t.bottom.y-t.top.y+1]),{x:r,y:i,score:c({x:Math.floor(r),y:Math.floor(i)},[1,1,1],e)+n({x:r,y:i},m)}})).filter((function(e){return!!e})).sort((function(e,t){return e.score-t.score}));return{alignmentPattern:h>=15&&v.length?v[0]:m,dimension:l}}t.locate=function(e){for(var t=[],r=[],i=[],a=[],s=function(n){for(var s=0,c=!1,u=[0,0,0,0,0],l=function(t){var i=e.get(t,n);if(i===c)s++;else{u=[u[1],u[2],u[3],u[4],s],s=1,c=i;var l=o(u)/7,d=Math.abs(u[0]-l)<l&&Math.abs(u[1]-l)<l&&Math.abs(u[2]-3*l)<3*l&&Math.abs(u[3]-l)<l&&Math.abs(u[4]-l)<l&&!i,f=o(u.slice(-3))/3,p=Math.abs(u[2]-f)<f&&Math.abs(u[3]-f)<f&&Math.abs(u[4]-f)<f&&i;if(d){var h=t-u[3]-u[4],g=h-u[2],m={startX:g,endX:h,y:n};(v=r.filter((function(e){return g>=e.bottom.startX&&g<=e.bottom.endX||h>=e.bottom.startX&&g<=e.bottom.endX||g<=e.bottom.startX&&h>=e.bottom.endX&&u[2]/(e.bottom.endX-e.bottom.startX)<1.5&&u[2]/(e.bottom.endX-e.bottom.startX)>.5}))).length>0?v[0].bottom=m:r.push({top:m,bottom:m})}if(p){var v,y=t-u[4],b=y-u[3];m={startX:b,y:n,endX:y},(v=a.filter((function(e){return b>=e.bottom.startX&&b<=e.bottom.endX||y>=e.bottom.startX&&b<=e.bottom.endX||b<=e.bottom.startX&&y>=e.bottom.endX&&u[2]/(e.bottom.endX-e.bottom.startX)<1.5&&u[2]/(e.bottom.endX-e.bottom.startX)>.5}))).length>0?v[0].bottom=m:a.push({top:m,bottom:m})}}},d=-1;d<=e.width;d++)l(d);t.push.apply(t,r.filter((function(e){return e.bottom.y!==n&&e.bottom.y-e.top.y>=2}))),r=r.filter((function(e){return e.bottom.y===n})),i.push.apply(i,a.filter((function(e){return e.bottom.y!==n}))),a=a.filter((function(e){return e.bottom.y===n}))},d=0;d<=e.height;d++)s(d);t.push.apply(t,r.filter((function(e){return e.bottom.y-e.top.y>=2}))),i.push.apply(i,a);var f=t.filter((function(e){return e.bottom.y-e.top.y>=2})).map((function(t){var r=(t.top.startX+t.top.endX+t.bottom.startX+t.bottom.endX)/4,n=(t.top.y+t.bottom.y+1)/2;if(e.get(Math.round(r),Math.round(n))){var i=[t.top.endX-t.top.startX,t.bottom.endX-t.bottom.startX,t.bottom.y-t.top.y+1],a=o(i)/i.length;return{score:c({x:Math.round(r),y:Math.round(n)},[1,1,3,1,1],e),x:r,y:n,size:a}}})).filter((function(e){return!!e})).sort((function(e,t){return e.score-t.score})).map((function(e,t,r){if(t>4)return null;var n=r.filter((function(e,r){return t!==r})).map((function(t){return{x:t.x,y:t.y,score:t.score+Math.pow(t.size-e.size,2)/e.size,size:t.size}})).sort((function(e,t){return e.score-t.score}));if(n.length<2)return null;var o=e.score+n[0].score+n[1].score;return{points:[e].concat(n.slice(0,2)),score:o}})).filter((function(e){return!!e})).sort((function(e,t){return e.score-t.score}));if(0===f.length)return null;var p=function(e,t,r){var o,i,a,s,c,u,l,d=n(e,t),f=n(t,r),p=n(e,r);return f>=d&&f>=p?(c=(o=[t,e,r])[0],u=o[1],l=o[2]):p>=f&&p>=d?(c=(i=[e,t,r])[0],u=i[1],l=i[2]):(c=(a=[e,r,t])[0],u=a[1],l=a[2]),(l.x-u.x)*(c.y-u.y)-(l.y-u.y)*(c.x-u.x)<0&&(c=(s=[l,c])[0],l=s[1]),{bottomLeft:c,topLeft:u,topRight:l}}(f[0].points[0],f[0].points[1],f[0].points[2]),h=p.topRight,g=p.topLeft,m=p.bottomLeft,v=l(e,i,h,g,m),y=[];v&&y.push({alignmentPattern:{x:v.alignmentPattern.x,y:v.alignmentPattern.y},bottomLeft:{x:m.x,y:m.y},dimension:v.dimension,topLeft:{x:g.x,y:g.y},topRight:{x:h.x,y:h.y}});var b=u(e,h),w=u(e,g),C=u(e,m),k=l(e,i,b,w,C);return k&&y.push({alignmentPattern:{x:k.alignmentPattern.x,y:k.alignmentPattern.y},bottomLeft:{x:C.x,y:C.y},topLeft:{x:w.x,y:w.y},topRight:{x:b.x,y:b.y},dimension:k.dimension}),0===y.length?null:y}}]).default},e.exports=r()})));function GH(e){return XH.apply(this,arguments)}function XH(){return(XH=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.imageData,n=t.canvas,(o=r)||(i=n.getContext("2d"),o=i.getImageData(0,0,n.width,n.height)),!(a=QH(o.data,o.width,o.height,{inversionAttempts:"dontInvert"}))){e.next=6;break}return e.abrupt("return",a.data);case 6:return e.abrupt("return","");case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function YH(e){return $H.apply(this,arguments)}function $H(){return($H=CM(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.canvas,n=t.qrScannerResources,e.abrupt("return",new Promise((function(e){setTimeout((function(){return e("")}),1e3),zH.scanImage(r,void 0,void 0,n.canvas).then(e).catch((function(){return e("")}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ZH,JH,eq,tq,rq,nq,oq=function(){var e=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.canvas,n=t.blackAndWhiteConverterResources,o=t.qrScannerResources,i=n.kernel,a=n.canvas,s=n.dst,c=window,u=c.cv,l="",d=u.imread(r),u.cvtColor(d,s,u.COLOR_RGBA2GRAY),u.filter2D(s,s,-1,i),u.imshow(a,s),e.next=10,GH({canvas:a});case 10:if(l=e.sent){e.next=15;break}return e.next=14,YH({canvas:a,qrScannerResources:o});case 14:l=e.sent;case 15:return d.delete(),e.abrupt("return",l);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),iq=function(){var e=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.canvas,n=t.blob,o=t.qrScannerResources,i=t.blackAndWhiteConverterResources,a=r,!n){e.next=6;break}return e.next=5,TL.blobToCanvas({blob:n});case 5:a=e.sent;case 6:return s=a.getContext("2d"),e.next=9,GH({imageData:s.getImageData(0,0,a.width,a.height)});case 9:if(c=e.sent){e.next=18;break}return e.next=13,YH({canvas:a,qrScannerResources:o});case 13:if(c=e.sent){e.next=18;break}return e.next=17,oq({canvas:a,blackAndWhiteConverterResources:i,qrScannerResources:o});case 17:c=e.sent;case 18:return e.abrupt("return",c);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),aq=function(){var e=CM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c,u,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:{},r=t.blob,n=t.resultWarmup,o=t.enableValidation,i=void 0===o||o,a=n.qrScannerResources,s=n.blackAndWhiteConverterResources,c={},e.next=5,iq({blob:r,qrScannerResources:a,blackAndWhiteConverterResources:s});case 5:return u=e.sent,i&&u&&(c=VH(u)),e.abrupt("return",{result:u,validateResult:c});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),sq=function(e){var t=e.shouldStart,r=e.refVideo,n=e.cropArea,o=e.settings,i=e.onSessionTimeout,a=e.onCaptureDone,s=e.onAboutToTimeout,c=e.outputEncryptionSettings,u=xM(ov.useState(!1),2),l=u[0],d=u[1],f=ov.useRef((function(){})),p=ov.useRef((function(){})),h=nN.useSDKSettings().lang,g=function(e){var t=e.refVideo,r=e.shouldStart,n=e.cropArea,o=e.settings,i=e.onResult,a=e.outputEncryptionSettings,s=ov.useRef(null);null===s.current&&(s.current=document.createElement("canvas"));var c=ov.useRef(!1),u=ov.useRef(null),l=xM(ov.useState(!1),2),d=l[0],f=l[1],p=ov.useRef({}),h=nN.useSDKSettings().customUrls;ov.useEffect((function(){function e(){return(e=CM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=5;break}return e.next=3,WH(h);case 3:p.current=e.sent,f(!0);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[d,h]);var g=ov.useCallback((function(){!0===c.current&&(c.current=!1)}),[]),m=ov.useCallback(CM(regeneratorRuntime.mark((function e(){var r,n,l,f,h,m,v,y,b,w,C,k,E,S,B,_;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d&&o&&!c.current){e.next=2;break}return e.abrupt("return");case 2:r=p.current,n=r.qrScannerResources,l=r.blackAndWhiteConverterResources,f=u.current,h=t.current,c.current=!0,m=f.cropX,v=f.cropY,y=f.cropWidth,b=f.cropHeight,(w=s.current).width=y,w.height=b,C=w.getContext("2d");case 11:return C.drawImage(h,m,v,y,b,0,0,y,b),e.next=15,iq({canvas:w,qrScannerResources:n,blackAndWhiteConverterResources:l});case 15:if(!(k=e.sent)){e.next=29;break}return g(),E=VH(k),e.next=21,fO.takePicture({canvas:s.current});case 21:if(S=e.sent,B=void 0,!a||!a.key){e.next=28;break}return _=a.key,e.next=27,gM.encrypt({blob:S,key:_});case 27:B=e.sent;case 28:i({result:k,validateResult:E,image:{blob:S,encrypted:B}});case 29:if(c.current){e.next=31;break}return e.abrupt("break",33);case 31:e.next=11;break;case 33:case"end":return e.stop()}}),e)}))),[t,o,d,i,g,a]);ov.useEffect((function(){var e=t.current;function o(){return(o=CM(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u.current=fO.analyzeVideoAndWindowSizes(e,n,0),t.next=3,m();case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}d&&r&&n&&function(){o.apply(this,arguments)}()}),[r,n,t,g,m,d]);var v=ov.useCallback((function(){g()}),[g]);return ov.useEffect((function(){return v}),[v]),{refWorkingCanvas:s,stopCheckFrame:g,checkFrame:m,warmupDone:d}}({refVideo:r,shouldStart:t,cropArea:n,settings:o,onResult:ov.useCallback((function(){f.current.apply(f,arguments)}),[]),outputEncryptionSettings:c}),m=g.stopCheckFrame,v=g.checkFrame,y=g.warmupDone,b=QK({refVideo:r,shouldStart:t&&y,cropArea:n,settings:o}),w=b.stopCheckFrame,C=b.refRecordedVideos,k=b.splitVideos,E=b.resetRecordedVideos,S=b.checkFrame;f.current=ov.useCallback((function(e){d(!0),w(),m(),p.current(),a(BM(BM({},e),{},{recordedVideos:C.current})),d(!1)}),[w,a,C,m]);var B=ov.useCallback((function(){w(),m(),E(),i()}),[E,w,m,i]),_=ov.useCallback((function(){k()}),[k]),A=$K({lang:h,onAboutToTimeout:s,onSessionTimeout:B,onVideoTimeLimitReached:_,settings:o,shouldStartTimers:t&&y,sessionTime:null==o?void 0:o.scanQrLimitTimeSecond}),x=A.stopTimers,T=A.startTimers;return p.current=x,{isProcessing:l,restartSession:ov.useCallback(CM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(),e.next=3,Promise.all([S(),v()]);case 3:case"end":return e.stop()}}),e)}))),[S,v,T]),refRecordedVideos:C,warmupDone:y}};function cq(e){var t=e.windowAndVideoInfo,r=e.onUISpacingChange,n=e.refVideo,o=e.settings,i=e.onCaptureDone,a=e.outputEncryptionSettings,s=xM(ov.useState(null),2),c=s[0],u=s[1],l=UN.useAsset("qr_capture_cursor.png"),d=xM(ov.useState({}),2),f=d[0],p=d[1],h=f.yTooltip,g=f.yMessage,m=nN.useSDKSettings().lang,v=mK(),y=v.showPopup,b=v.popupShown,w=v.popupType,C=xM(ov.useState(!1),2),k=C[0],E=C[1],S=xM(ov.useState(null),2),B=S[0],_=S[1],A=UN.useAsset("ic_loading.png");ov.useEffect((function(){y({popupType:wK})}),[y]),ov.useEffect((function(){if(t){var e=t.videoAreaWidth,n=t.lostX,o=t.lostY,i=GM.isMobile?Math.min(e-6,145):145,a=i,s=o+10,c=s+90,l=c+40,d=l+a+20,f=Math.floor((e-i)/2)+n;u({x:f,y:l,width:i,height:a,surroundStyle:{opacity:.6,background:"#000"}});var h={yTitle:s,yTooltip:d,yMessage:c};p(h),r(h)}}),[t,r]);var x=ov.useCallback((function(){_(""),i()}),[i]),T=ov.useCallback((function(e){var t=e.validateResult.valid;_(""),t?i(e):y({popupType:bK})}),[y,i]),I=ov.useCallback((function(e){var t=e.curTimeLeft;_(Pj(sH.REMAINING_TIME[m])({x:t}))}),[m]),P=sq({shouldStart:k,refVideo:n,cropArea:c,settings:o,onSessionTimeout:x,onCaptureDone:T,onAboutToTimeout:I,outputEncryptionSettings:a}),R=P.isProcessing,N=P.restartSession,O=P.warmupDone,L=ov.useCallback((function(){y({popupType:null})}),[y]),M=ov.useCallback(CM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(),e.next=3,N();case 3:case"end":return e.stop()}}),e)}))),[N,L]),D=ov.useCallback((function(){L(),i()}),[L,i]),U=ov.useCallback((function(){L(),setTimeout((function(){E(!0)}),200)}),[L]);return ov.createElement(ov.Fragment,null,!O&&ov.createElement(yV,{contentStyle:{maxWidth:"300px"}}),c&&ov.createElement(SD,{x:"".concat(c.x,"px"),y:"".concat(c.y,"px"),width:"".concat(c.width,"px"),height:"".concat(c.height,"px"),surroundStyle:c.surroundStyle},ov.createElement("div",null,ov.createElement("img",{src:l,width:c.width,height:c.height,alt:""}))),ov.createElement(iH,{y:"".concat(h,"px")},sH.QR_TOOLTIP[m]),B&&ov.createElement(aH,{key:B,className:"message",y:"".concat(g,"px")},B),R&&ov.createElement(eK,null,ov.createElement("img",{src:A,alt:"",className:"spin"})),ov.createElement(JF,{contentStyle:{maxWidth:"332px"},open:b},w===bK&&ov.createElement(wH,{onRetry:M,onSkip:D}),w===vK&&ov.createElement(SH,{onRetry:M,onSkip:D}),w===wK&&ov.createElement(jH,{onClickStart:U,onTimeout:U})))}cq.propTypes={windowAndVideoInfo:Tv.shape({}),onUISpacingChange:Tv.func,refVideo:Tv.shape({}),settings:Tv.shape({}),onCaptureDone:Tv.func,outputEncryptionSettings:Tv.shape({})},cq.defaultProps={windowAndVideoInfo:{},onUISpacingChange:function(){},refVideo:{},settings:{},onCaptureDone:function(){},outputEncryptionSettings:null};var uq,lq,dq,fq,pq,hq={SUCCESS:"SUCCESS",WARNING:"WARNING"},gq=(kM(ZH={},hq.SUCCESS,"52,206,95"),kM(ZH,hq.WARNING,"255,148,50"),ZH),mq=(kM(JH={},hq.SUCCESS,"✓"),kM(JH,hq.WARNING,"!"),JH),vq=Zb.div(eq||(eq=AM(["\n font-weight: normal;\n"]))),yq=Zb.div(tq||(tq=AM(["\n height: 2px;\n width: 100%;\n background: ",";\n"])),(function(e){return Db(["linear-gradient(to right,rgba(",",0),rgba(",",1),rgba(",",0));"],gq[e.type],gq[e.type],gq[e.type])})),bq=Zb.div(rq||(rq=AM(["\n width: 22px;\n height: 22px;\n border-radius: 50%;\n background: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n color: #fff;\n margin-right: 8px;\n font-weight: bold;\n"])),(function(e){return Db(["rgb(",")"],gq[e.type])})),wq=Zb.div(nq||(nq=AM(["\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 10px 0;\n"]))),Cq=function(e){var t=e.children,r=e.type,n=e.className;return ov.createElement(vq,{className:n},ov.createElement(yq,{type:r}),ov.createElement(wq,null,ov.createElement(bq,{type:r},mq[r]),t),ov.createElement(yq,{type:r}))};Cq.propTypes={children:Tv.node,type:Tv.string,className:Tv.string},Cq.defaultProps={children:null,type:hq.SUCCESS,className:""};var kq=Zb.div(uq||(uq=AM(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),Eq=Zb.div(lq||(lq=AM(["\n text-align: center;\n font-size: 1rem;\n color: #ea3223;\n margin-top: 10px;\n"]))),Sq=Zb.button(dq||(dq=AM(["\n margin-top: 20px;\n width: 100%;\n max-width: 160px;\n height: 50px;\n background-color: ",";\n border: 0;\n outline: none;\n border-radius: 0.25rem;\n color: #fff;\n font-weight: 400;\n cursor: pointer;\n font-size: 1rem;\n"])),(function(e){return e.theme.tsBlue})),Bq=Zb.img(fq||(fq=AM(["\n width: 100%;\n height: 100%;\n object-fit: contain;\n border-radius: 5px;\n"]))),_q=Zb.div(pq||(pq=AM(["\n margin: 20px 0;\n width: 100%;\n display: flex;\n justify-content: space-evenly;\n gap: 10px;\n"]))),Aq=function(e){var t=e.imageTaken,r=e.onConfirm,n=e.onTryAgain,o=e.error,i=e.hasValidQR,a=xM(ov.useState(null),2),s=a[0],c=a[1],u=nN.useSDKSettings().lang;return ov.useEffect((function(){var e;return t&&(e=URL.createObjectURL(t.blob),c(e)),function(){URL.revokeObjectURL(e)}}),[t]),ov.createElement(kq,null,null!==i&&ov.createElement(cH,{mb:"20px"},ov.createElement("div",null,ov.createElement(Cq,{type:i?hq.SUCCESS:hq.WARNING},i?lK.CONFIRM_POPUP_VALID_QR[u]:lK.CONFIRM_POPUP_INVALID_QR[u]))),ov.createElement(OH,{ratio:1.5},ov.createElement(Bq,{src:s})),o&&ov.createElement(Eq,{className:"confirm-popup-error-message"},o.msg[u]),ov.createElement(_q,null,ov.createElement(Sq,{onClick:n},lK.BTN_TRY_AGAIN[u]),ov.createElement(Sq,{onClick:r},lK.BTN_USE_THIS_PICTURE[u])))};Aq.propTypes={imageTaken:Tv.shape({}),error:Tv.shape({msg:Tv.shape({})}),onConfirm:Tv.func,onTryAgain:Tv.func,hasValidQR:Tv.bool},Aq.defaultProps={imageTaken:null,error:null,onConfirm:function(){},onTryAgain:function(){},hasValidQR:null};var xq={tsBlue:"#0276f1",tsSecondary:"rgba(0, 47, 117, 0.6)"};function Tq(e){var t=this.__data__=new zj(e);this.size=t.size}Tq.prototype.clear=function(){this.__data__=new zj,this.size=0},Tq.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Tq.prototype.get=function(e){return this.__data__.get(e)},Tq.prototype.has=function(e){return this.__data__.has(e)},Tq.prototype.set=function(e,t){var r=this.__data__;if(r instanceof zj){var n=r.__data__;if(!Kj||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wj(n)}return r.set(e,t),this.size=r.size,this};var Iq,Pq=Tq,Rq=function(e,t,r){(void 0!==r&&!fU(e[t],r)||void 0===r&&!(t in e))&&dU(e,t,r)},Nq=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[++n];if(!1===t(o[s],s,o))break}return e},Oq=OM((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?ID.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}})),Lq=ID.Uint8Array,Mq=function(e,t){var r=t?function(e){var t=new e.constructor(e.byteLength);return new Lq(t).set(new Lq(e)),t}(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},Dq=Object.create,Uq=function(){function e(){}return function(t){if(!AD(t))return{};if(Dq)return Dq(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),jq=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Fq=function(e,t,r,n,o,i,a){var s=jq(e,r),c=jq(t,r),u=a.get(c);if(u)Rq(e,r,u);else{var l=i?i(s,c,r+"",e,t,a):void 0,d=void 0===l;if(d){var f=LU(c),p=!f&&DU(c),h=!f&&!p&&VU(c);l=c,f||p||h?LU(s)?l=s:function(e){return FD(e)&&BU(e)}(s)?l=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(s):p?(d=!1,l=Oq(c,!0)):h?(d=!1,l=Mq(c,!0)):l=[]:nj(c)||OU(c)?(l=s,OU(s)?l=function(e){return gU(e,GU(e))}(s):AD(s)&&!ZD(s)||(l=function(e){return"function"!=typeof e.constructor||qU(e)?{}:Uq($U(e))}(c))):d=!1}d&&(a.set(c,l),o(l,c,n,i,a),a.delete(c)),Rq(e,r,l)}},Vq=function e(t,r,n,o,i){t!==r&&Nq(r,(function(a,s){if(i||(i=new Pq),AD(a))Fq(t,r,s,n,e,o,i);else{var c=o?o(jq(t,s),a,s+"",t,r,i):void 0;void 0===c&&(c=a),Rq(t,s,c)}}),GU)},zq=TU((function(e,t,r){Vq(e,t,r)})),Kq={data:{settings:{sdk_settings:{id_detection_settings:{auto_capture:{enable:!0,show_capture_button:!0,wait_for_best_image_time_ms_web:1e3},blur_check:{enable:!0,threshold_web:.82},disable_capture_button_if_alert:!1,id_detection:{enable:!0},limit_time_settings:{enable:!0,limit_time_second:30,video_partial_length_seconds:15},save_frame_settings:{enable:!1,frames_interval_ms:190,quality_web:80},scan_qr_settings:{enable:!0,limit_time_second:20}}}}}};function Hq(e){var t=e.clientSettings,r=xM(ov.useState(null),2),n=r[0],o=r[1];return ov.useEffect((function(){var e=zq(Kq,t),r=eF(e,"data.settings.sdk_settings.id_detection_settings.save_frame_settings.enable"),n=eF(e,"data.settings.sdk_settings.id_detection_settings.save_frame_settings.frames_interval_ms"),i=eF(e,"data.settings.sdk_settings.id_detection_settings.save_frame_settings.quality_web"),a=eF(e,"data.settings.sdk_settings.id_detection_settings.limit_time_settings.enable"),s=eF(e,"data.settings.sdk_settings.id_detection_settings.limit_time_settings.limit_time_second"),c=eF(e,"data.settings.sdk_settings.id_detection_settings.limit_time_settings.video_partial_length_seconds"),u=eF(e,"data.settings.sdk_settings.id_detection_settings.auto_capture.enable"),l=eF(e,"data.settings.sdk_settings.id_detection_settings.auto_capture.wait_for_best_image_time_ms_web"),d=eF(e,"data.settings.sdk_settings.id_detection_settings.blur_check.enable"),f=eF(e,"data.settings.sdk_settings.id_detection_settings.blur_check.threshold_web"),p=eF(e,"data.settings.sdk_settings.id_detection_settings.disable_capture_button_if_alert"),h=eF(e,"data.settings.sdk_settings.id_detection_settings.id_detection.enable"),g=eF(e,"data.settings.sdk_settings.id_detection_settings.scan_qr_settings.enable"),m=eF(e,"data.settings.sdk_settings.id_detection_settings.scan_qr_settings.limit_time_second");o({enableRecording:r,frameCaptureIntervalMs:n,idCardSessionTime:s,maxRecordingTimePerVideo:c,saveFrameQuality:i,enableTimers:a,enableAutoCapture:u,waitForBestImageTimeMs:l,enableBlurCheck:d,blurThreshold:f,disableCaptureButtonIfAlert:p,enableIdDetection:h,enableScanQr:g,scanQrLimitTimeSecond:m})}),[t]),{settings:n}}var qq=ew(Iq||(Iq=AM(["\n .text-primary {\n color: ",";\n }\n"])),(function(e){return e.theme.tsBlue})),Wq=ZT.IDCardSide,Qq=ZT.IDCardType,Gq=ZT.Errors,Xq={ID_CARD:"id_card",QR_CODE:"qr_code"},Yq=[{scannerType:Xq.ID_CARD,title:"Mặt trước CMND/CCCD",description:"Vui lòng đặt CMND mặt trước vào trong khung",titleIcon:"id_card_front.svg",cardSide:ZT.IDCardSide.FRONT,cardType:Qq.VN,frontCamera:!1,enableConfirmPopup:!0},{scannerType:Xq.ID_CARD,title:"Mặt sau CMND/CCCD",description:"Vui lòng đặt CMND mặt sau vào trong khung",titleIcon:"id_card_back.svg",cardSide:ZT.IDCardSide.BACK,cardType:Qq.VN,frontCamera:!1,enableConfirmPopup:!0}],$q={scannerType:Xq.QR_CODE,title:"Quét mã QR trên CCCD",frontCamera:!1};function Zq(e){var t=e.onClose,r=e.onError,n=e.clientSettings,o=e.detectIdCard,i=e.onStepDone,a=e.steps,s=e.outputEncryptionSettings,c=e.defaultCameraId,u=xM(ov.useState(0),2),l=u[0],d=u[1],f=xM(ov.useState(a[l]),2),p=f[0],h=f[1],g=ov.useRef(null),m=xM(ov.useState(null),2),v=m[0],y=m[1],b=xM(ov.useState(!1),2),w=b[0],C=b[1],k=xM(ov.useState(0),2),E=k[0],S=k[1],B=ov.useRef(),_=p.scannerType,A=p.frontCamera,x=p.title,T=p.titleIcon,I=p.cardSide,P=p.description,R=p.usePortraitMask,N=p.cardType,O=p.enableConfirmPopup,L=I===Wq.FRONT,M=UN.useAsset(T),D=mK(),U=D.showPopup,j=D.popupShown,F=D.popupType,V=D.props,z=xM(ov.useState(!1),2),K=z[0],H=z[1],q=UN.useAsset("ic_loading.png"),W=ov.useRef({}),Q=ov.useRef(null),G=ov.useRef([]),X=Hq({clientSettings:n}).settings,Y=xM(ov.useState({}),2),$=Y[0],Z=Y[1],J=$.yTitle,ee=ov.useCallback((function(e){y(e),C(!0)}),[]);ov.useEffect((function(){C(!1)}),[A]);var te=ov.useCallback((function(){U({popupType:null})}),[U]),re=ov.useCallback((function(e){e>=a.length||setTimeout((function(){d(e),h(a[e])}),200)}),[a]),ne=ov.useCallback((function(){re(l+1)}),[re,l]),oe=ov.useCallback((function(){setTimeout((function(){h((function(e){return BM(BM({},$q),{},{enableConfirmPopup:e.enableConfirmPopup})}))}),200)}),[]),ie=ov.useCallback(CM(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={stepNumber:l,image:W.current,recordedVideos:null!=X&&X.enableRecording?G.current:[]},_===Xq.QR_CODE&&(t.qrScannedResult=Q.current),H(!0),e.next=5,i(t);case 5:H(!1),ne();case 7:case"end":return e.stop()}}),e)}))),[X,l,i,ne,_]),ae=ov.useCallback((function(){te(),_===Xq.QR_CODE?re(l):_===Xq.ID_CARD&&B.current.restartSession()}),[re,l,te,_]),se=ov.useCallback((function(){te(),ie()}),[ie,te]),ce=ov.useCallback(function(){var e=CM(regeneratorRuntime.mark((function e(t){var n,i,a,s,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.image,i=t.error,a=t.recordedVideos,W.current=n,G.current=a,S((function(e){return e+1})),I!==ZT.IDCardSide.FRONT){e.next=23;break}if(!X.enableScanQr||!GM.isMobile){e.next=23;break}if(c=null==n||null===(s=n.detectedCard)||void 0===s?void 0:s.label){e.next=20;break}return H(!0),e.prev=9,e.next=12,o({image:n,cardType:N,cardSide:I});case 12:u=e.sent,c=u.card_label,e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),r(Gq.detect_id_card_error);case 19:H(!1);case 20:if(!c||!"vn.cccd_new.front".includes(c)){e.next=23;break}return oe(),e.abrupt("return");case 23:O?U({popupType:yK,props:{imageTaken:W.current,error:i}}):ie();case 24:case"end":return e.stop()}}),e,null,[[9,16]])})));return function(t){return e.apply(this,arguments)}}(),[O,U,I,X,N,o,ie,oe,r]),ue=ov.useCallback((function(e){var t;if(Q.current=e,e){var r,n=e.recordedVideos;(r=G.current).push.apply(r,TM(n))}S((function(e){return e+1}));var o=Boolean(null==e||null===(t=e.validateResult)||void 0===t?void 0:t.valid);O?U({popupType:yK,props:{hasValidQR:o,imageTaken:W.current}}):ie()}),[U,O,ie]);return ov.createElement(Xb,{theme:xq},ov.createElement($z,null,ov.createElement(yD,{key:A,frontCamera:A,onVideoPlayed:ee,onClose:t,flipHorizontal:A,ref:g,onError:r,defaultCameraId:c},w&&ov.createElement(ov.Fragment,null,_===Xq.ID_CARD&&ov.createElement(eH,{key:l,ref:B,windowAndVideoInfo:v,refVideo:g,settings:X,onCaptureDone:ce,onUISpacingChange:Z,frontSide:L,description:P,usePortraitMask:R,outputEncryptionSettings:s}),_===Xq.QR_CODE&&ov.createElement(cq,{key:l,refVideo:g,windowAndVideoInfo:v,settings:X,onCaptureDone:ue,onUISpacingChange:Z,outputEncryptionSettings:s})),ov.createElement(Yz,{keyForTransition:E}),ov.createElement(rK,{y:"".concat(J,"px")},ov.createElement(hz,null,ov.createElement(lz,{key:x,timeout:{enter:500,exit:500},classNames:"flipY",unmountOnExit:!0},ov.createElement(nK,null,T&&ov.createElement(Zz,{src:M,alt:""}),ov.createElement(oK,{className:"title"},x))))),K&&ov.createElement(eK,null,ov.createElement("img",{src:q,alt:"",className:"spin"}))),ov.createElement(JF,{open:j},F===yK&&ov.createElement(Aq,EM({},V,{onConfirm:se,onTryAgain:ae})))),ov.createElement(qq,null))}Zq.propTypes={onClose:Tv.func,onError:Tv.func,clientSettings:Tv.shape({}),detectIdCard:Tv.func,onStepDone:Tv.func,steps:Tv.arrayOf(Tv.shape({})),outputEncryptionSettings:Tv.shape({}),defaultCameraId:Tv.string},Zq.defaultProps={onClose:function(){},onError:function(){},clientSettings:{},detectIdCard:function(){return Promise.resolve({card_label:""})},onStepDone:function(){},steps:Yq,outputEncryptionSettings:null,defaultCameraId:void 0};var Jq=["tracking","clientSettings"];function eW(e){var t=e.tracking,r=e.clientSettings,n=_M(e,Jq),o=ov.useMemo((function(){return eF(r,"data.settings.sdk_settings.server_log_settings.enable",null==t?void 0:t.enable)}),[r,t]);return ov.createElement(LN.SDKTrackingProvider,{value:{tracking:BM(BM({},t),{},{enable:o})}},ov.createElement(Zq,EM({},n,{clientSettings:r})))}eW.propTypes={tracking:Tv.shape({}),clientSettings:Tv.shape({})},eW.defaultProps={tracking:void 0,clientSettings:void 0};var tW=ZT.IDCardSide,rW=ZT.Errors;function nW(e){return oW.apply(this,arguments)}function oW(){return(oW=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.image,n=t.cardType,o=t.cardSide,i=t.apiClient,a=t.outputEncryptionSettings,s={label:"id_card.".concat(n,".").concat(o)},!a||!a.key){e.next=4;break}return e.abrupt("return",i.httpClient.post("/v1/images",BM({base64:r.encrypted.hex},s),{"X-TV-Key":a.key}));case 4:return e.abrupt("return",i.uploadImage(BM({file:r.blob},s)));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function iW(e){return aW.apply(this,arguments)}function aW(){return(aW=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.image,n=t.apiClient,o=t.rawString,i=t.outputEncryptionSettings,a={label:"qr_code",metadata:JSON.stringify({raw:o})},!i||!i.key){e.next=4;break}return e.abrupt("return",n.httpClient.post("/v1/images",BM({base64:r.encrypted.hex},a),{"X-TV-Key":i.key}));case 4:return e.abrupt("return",n.uploadImage(BM({file:r.blob},a)));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sW(e){return cW.apply(this,arguments)}function cW(){return(cW=CM(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.imageId,n=t.cardType,o=t.apiClient,e.abrupt("return",o.requestVerifyIDCard({card_type:n,image1:{id:r}}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uW(e){return lW.apply(this,arguments)}function lW(){return(lW=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.apiClient,n=t.cardType,o=t.frontCardId,i=t.isCapturingFrontSide,a=t.backCardId,s=t.recordedVideos,c=t.qrImageId,u=s.filter((function(e){return null!==e.id})),l=s.filter((function(e){return null===e.id&&e.frames.length>0})),e.next=5,Promise.all(l.map((function(e){return r.fileService.request({frames:e.frames})})));case 5:return d=e.sent,f={card_type:n,image:{id:o},image2:i?void 0:{id:a},videos:[].concat(TM(u.map((function(e){return{id:e.id}}))),TM(d.map((function(e){return{id:e.data.file_id}}))))},c&&(f.qr1_images=[{id:c}]),e.abrupt("return",r.detectIDTampering(f));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dW(e){return fW.apply(this,arguments)}function fW(){return(fW=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cardType,n=t.apiClient,o=t.frontCardId,i=t.backCardId,a=t.isCapturingFrontSide,s=t.qrImageId,c={card_type:r,image1:a?{id:o}:{id:i}},s&&(c.qr1_images=[{id:s}]),e.abrupt("return",n.readIDCard(c));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pW(e){return hW.apply(this,arguments)}function hW(){return(hW=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f,p,h,g,m,v,y,b,w,C,k,E,S,B;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.image,o=t.frontCardId,i=t.qrImageId,a=t.onError,s=t.recordedVideos,c=t.apiClient,u=t.cardType,l=t.cardSide,d=t.qrScannedResult,f=t.outputEncryptionSettings,l!==tW.BACK||o){e.next=4;break}return a(rW.missing_front_id_card),e.abrupt("return");case 4:return p=[nW({image:n,cardType:u,cardSide:l,apiClient:c,outputEncryptionSettings:f})],d&&p.push(iW({image:d.image,apiClient:c,rawString:d.result,outputEncryptionSettings:f})),e.next=8,Promise.all(p);case 8:if(h=e.sent,g=xM(h,2),m=g[0],v=g[1],!m.errors){e.next=15;break}return a(BM(BM({},rW.upload_error),{},{details:m.errors})),e.abrupt("return");case 15:return y=m.data.image_id,b=(null==v||null===(r=v.data)||void 0===r?void 0:r.image_id)||i,(k=l===tW.FRONT)?w=y:(w=o,C=y),e.next=21,sW({imageId:y,cardType:u,apiClient:c});case 21:if(!(E=e.sent).errors){e.next=25;break}return a(BM(BM({},rW.sanity_check_error),{},{details:E.errors})),e.abrupt("return");case 25:return e.next=27,dW({cardType:u,apiClient:c,frontCardId:w,backCardId:C,isCapturingFrontSide:k,qrImageId:b});case 27:if(!(S=e.sent).errors){e.next=31;break}return a(BM(BM({},rW.read_id_card_error),{},{details:S.errors})),e.abrupt("return");case 31:return e.next=33,uW({apiClient:c,cardType:u,frontCardId:w,isCapturingFrontSide:k,backCardId:C,recordedVideos:s,qrImageId:b});case 33:if(!(B=e.sent).errors){e.next=37;break}return a(BM(BM({},rW.detect_id_tampering_error),{},{details:B.errors})),e.abrupt("return");case 37:return e.abrupt("return",{sanityResult:E.data,tamperingInfo:B.data,cardInfo:S.data,qrImageId:b});case 38:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var gW=["onClose","onError","detectIdCard","steps","onStepDone","apiCredentials","tracking","outputEncryptionSettings"],mW=ZT.Errors,vW=function(e){var t=e.onClose,r=e.onError,n=e.detectIdCard,o=e.steps,i=e.onStepDone,a=e.apiCredentials,s=e.tracking,c=e.outputEncryptionSettings,u=_M(e,gW),l=xM(ov.useState(null),2),d=l[0],f=l[1],p=KL.useApiClient({apiCredentials:a,tracking:s}).apiClient,h=ov.useRef(""),g=ov.useRef("");ov.useEffect((function(){function e(){return(e=CM(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.clientSettings();case 2:t=e.sent,f(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[p]);var m=ov.useCallback(function(){var e=CM(regeneratorRuntime.mark((function e(t){var n,a,s,u,l,d,f,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.stepNumber,a=t.recordedVideos,s=t.qrScannedResult,u=t.image,l=o[n],d=l.cardType,f=l.cardSide,m=null,e.prev=3,e.next=6,pW({image:u,cardSide:f,frontCardId:h.current,qrImageId:g.current,onError:r,apiClient:p,cardType:d,recordedVideos:a,qrScannedResult:s,outputEncryptionSettings:c});case 6:m=e.sent,f===ZT.IDCardSide.FRONT&&(h.current=m.cardInfo.image1.id),g.current=m.qrImageId,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),r(BM(BM({},mW.api_call_error),{},{details:e.t0}));case 14:m&&i(BM(BM({},t),{},{apiResult:m}));case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t){return e.apply(this,arguments)}}(),[p,r,o,i,c]);return d&&ov.createElement(eW,EM({tracking:s,onClose:t,onError:r,detectIdCard:n,onStepDone:m,steps:o,outputEncryptionSettings:c},u,{clientSettings:d}))};function yW(){return(yW=CM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:{},r=t.opencvUrl,n=t.idCardModelUrl,o=t.blazefaceModelUrl,i=t.tfScriptUrls,"iOS"!==GM.osName||!GM.osVersion.includes("12.")){e.next=5;break}return e.next=4,LK({url:r});case 4:return e.abrupt("return");case 5:return e.next=7,dM.loadTensorFlow(i);case 7:return e.next=9,dM.initTensorFlow({preferredBackends:["wasm","webgl","cpu"]});case 9:return a=new jK,e.next=12,Promise.all([a.loadResource({modelUrl:n}),dM.loadBlazefaceModel({modelUrl:o}),LK({url:r})]);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}vW.propTypes={onClose:Tv.func,onError:Tv.func,detectIdCard:Tv.func,onStepDone:Tv.func,steps:Tv.arrayOf(Tv.shape({})),apiCredentials:Tv.shape({accessKey:Tv.string,secretKey:Tv.string,apiUrl:Tv.string}),tracking:Tv.shape({}),outputEncryptionSettings:Tv.shape({})},vW.defaultProps={onClose:function(){},onError:function(){},detectIdCard:function(){return Promise.resolve({card_label:""})},onStepDone:function(){},steps:Yq,apiCredentials:{accessKey:"5767c20d-87aa-4cad-8dbb-f5429f76c34b",secretKey:"c1446919-e60a-4575-a05d-304318212a1b",apiUrl:"https://tv-testing.trustingsocial.com/api"},outputEncryptionSettings:{key:""},tracking:void 0};var bW=iF((function(){return yW.apply(this,arguments)})),wW=function(){var e=CM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.blob,n=t.resultWarmup,o=n.idCardModel,i=n.ableToUseModel){e.next=4;break}return e.abrupt("return",{ableToUseModel:i});case 4:return e.next=6,TL.blobToCanvas({blob:r});case 6:return a=e.sent,e.abrupt("return",o.predict(a,{detectThreshold:.3}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),CW=function(){return{checkCamera:FV,LivenessDetection:$V,NativeCamera:zV,ReadIDCardUIOnly:eW,ReadIDCardWithApiCall:vW,warmUpReadIdCard:qK,preloadEKYCResources:bW,getListCamera:$M}},kW=BF,EW=_M(jV,["useLivenessDetection"]);function SW(){return(SW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function BW(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function _W(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function AW(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var xW=!1,TW=ov.createContext(null),IW="entering",PW="entered",RW=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o="exited",n.appearStatus=IW):o=PW:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",n.state={status:o},n.nextCallback=null,n}_W(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==IW&&r!==PW&&(t=IW):r!==IW&&r!==PW||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===IW?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[XT.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),c=n?s.appear:s.enter;!e&&!r||xW?this.safeSetState({status:PW},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:IW},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:PW},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:XT.findDOMNode(this);t&&!xW?(this.props.onExit(n),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:XT.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,BW(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return ov.createElement(TW.Provider,{value:null},"function"==typeof r?r(e,n):ov.cloneElement(ov.Children.only(r),n))},t}(ov.Component);function NW(){}RW.contextType=TW,RW.propTypes={},RW.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:NW,onEntering:NW,onEntered:NW,onExit:NW,onExiting:NW,onExited:NW},RW.UNMOUNTED="unmounted",RW.EXITED="exited",RW.ENTERING=IW,RW.ENTERED=PW,RW.EXITING="exiting";var OW,LW,MW=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)));var r,n}))},DW=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.remove(n):"string"==typeof r.className?r.className=AW(r.className,n):r.setAttribute("class",AW(r.className&&r.className.baseVal||"",n)));var r,n}))},UW=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?""+(n&&r?r+"-":"")+e:r[e];return{baseClassName:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}_W(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&e.scrollTop,n&&(this.appliedClasses[t][r]=n,MW(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,i=r.done;this.appliedClasses[t]={},n&&DW(e,n),o&&DW(e,o),i&&DW(e,i)},r.render=function(){var e=this.props,t=(e.classNames,BW(e,["classNames"]));return ov.createElement(RW,SW({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ov.Component);UW.defaultProps={classNames:""},UW.propTypes={};var jW="out-in",FW="in-out",VW=function(e,t,r){return function(){var n;e.props[t]&&(n=e.props)[t].apply(n,arguments),r()}},zW=((OW={})[jW]=function(e){var t=e.current,r=e.changeState;return ov.cloneElement(t,{in:!1,onExited:VW(t,"onExited",(function(){r(IW,null)}))})},OW[FW]=function(e){var t=e.current,r=e.changeState,n=e.children;return[t,ov.cloneElement(n,{in:!0,onEntered:VW(n,"onEntered",(function(){r(IW)}))})]},OW),KW=((LW={})[jW]=function(e){var t=e.children,r=e.changeState;return ov.cloneElement(t,{in:!0,onEntered:VW(t,"onEntered",(function(){r(PW,ov.cloneElement(t,{in:!0}))}))})},LW[FW]=function(e){var t=e.current,r=e.children,n=e.changeState;return[ov.cloneElement(t,{in:!1,onExited:VW(t,"onExited",(function(){n(PW,ov.cloneElement(r,{in:!0}))}))}),ov.cloneElement(r,{in:!0})]},LW),HW=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={status:PW,current:null},t.appeared=!1,t.changeState=function(e,r){void 0===r&&(r=t.state.current),t.setState({status:e,current:r})},t}_W(t,e);var r=t.prototype;return r.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===IW&&e.mode===FW?{status:IW}:!t.current||(r=t.current,n=e.children,r===n||ov.isValidElement(r)&&ov.isValidElement(n)&&null!=r.key&&r.key===n.key)?{current:ov.cloneElement(e.children,{in:!0})}:{status:"exiting"};var r,n},r.render=function(){var e,t=this.props,r=t.children,n=t.mode,o=this.state,i=o.status,a=o.current,s={children:r,current:a,changeState:this.changeState,status:i};switch(i){case IW:e=KW[n](s);break;case"exiting":e=zW[n](s);break;case PW:e=a}return ov.createElement(TW.Provider,{value:{isMounting:!this.appeared}},e)},t}(ov.Component);HW.propTypes={},HW.defaultProps={mode:jW};var qW=r((function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){var n={MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0};e.exports={BROWSER_TYPES:{CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},DEVICE_TYPES:n,OS_TYPES:{IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},defaultData:{isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1}}},function(e,t,r){var n,o=r(2),i=r(0),a=i.BROWSER_TYPES,s=i.OS_TYPES,c=i.DEVICE_TYPES,u=r(4),l=u.checkType,d=u.broPayload,f=u.mobilePayload,p=u.wearPayload,h=u.consolePayload,g=u.stvPayload,m=u.getNavigatorInstance,v=u.isIOS13Check,y=new o,b=y.getBrowser(),w=y.getDevice(),C=y.getEngine(),k=y.getOS(),E=y.getUA(),S=a.CHROME,B=a.CHROMIUM,_=a.IE,A=a.INTERNET_EXPLORER,x=a.OPERA,T=a.FIREFOX,I=a.SAFARI,P=a.EDGE,R=a.YANDEX,N=a.MOBILE_SAFARI,O=c.MOBILE,L=c.TABLET,M=c.SMART_TV,D=c.BROWSER,U=c.WEARABLE,j=c.CONSOLE,F=s.ANDROID,V=s.WINDOWS_PHONE,z=s.IOS,K=s.WINDOWS,H=s.MAC_OS,q=function(){return k.name===s.WINDOWS&&"10"===k.version&&("string"==typeof E&&-1!==E.indexOf("Edg/"))},W=function(){return b.name===P},Q=function(){return v("iPad")},G=w.type===M,X=w.type===j,Y=w.type===U,$=b.name===N||Q(),Z=b.name===B,J=function(){switch(w.type){case O:case L:return!0;default:return!1}}()||Q(),ee=w.type===O,te=w.type===L||Q(),re=w.type===D,ne=k.name===F,oe=k.name===V,ie=k.name===z||Q(),ae=b.name===S,se=b.name===T,ce=b.name===I||b.name===N,ue=b.name===x,le=b.name===A||b.name===_,de=k.version?k.version:"none",fe=k.name?k.name:"none",pe=b.major,he=b.version,ge=b.name,me=w.vendor?w.vendor:"none",ve=w.model?w.model:"none",ye=C.name,be=C.version,we=E,Ce=W()||q(),ke=b.name===R,Ee=w.type,Se=(n=m())&&(/iPad|iPhone|iPod/.test(n.platform)||"MacIntel"===n.platform&&n.maxTouchPoints>1)&&!window.MSStream,Be=Q(),_e=v("iPhone"),Ae=v("iPod"),xe=function(){var e=m(),t=e&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)}(),Te=q(),Ie=W(),Pe=k.name===K,Re=k.name===H,Ne=l(w.type);e.exports={deviceDetect:function(){var e=Ne.isBrowser,t=Ne.isMobile,r=Ne.isTablet,n=Ne.isSmartTV,o=Ne.isConsole,i=Ne.isWearable;return e?d(e,b,C,k,E):n?g(n,C,k,E):o?h(o,C,k,E):t||r?f(Ne,w,k,E):i?p(i,C,k,E):void 0},isSmartTV:G,isConsole:X,isWearable:Y,isMobileSafari:$,isChromium:Z,isMobile:J,isMobileOnly:ee,isTablet:te,isBrowser:re,isAndroid:ne,isWinPhone:oe,isIOS:ie,isChrome:ae,isFirefox:se,isSafari:ce,isOpera:ue,isIE:le,osVersion:de,osName:fe,fullBrowserVersion:pe,browserVersion:he,browserName:ge,mobileVendor:me,mobileModel:ve,engineName:ye,engineVersion:be,getUA:we,isEdge:Ce,isYandex:ke,deviceType:Ee,isIOS13:Se,isIPad13:Be,isIPhone13:_e,isIPod13:Ae,isElectron:xe,isEdgeChromium:Te,isLegacyEdge:Ie,isWindows:Pe,isMacOs:Re}},function(e,t,r){var n;
53
+ */!function(o,i){var a="function",s="undefined",c="object",u="model",l="name",d="type",f="vendor",p="version",h="architecture",g="console",m="mobile",v="tablet",y="smarttv",b="wearable",w={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},C={rgx:function(e,t){for(var r,n,o,s,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(r=n=0;r<f.length&&!u;)if(u=f[r++].exec(e))for(o=0;o<p.length;o++)l=u[++n],Gg(s=p[o])===c&&s.length>0?2==s.length?Gg(s[1])==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?Gg(s[1])!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;d+=2}},str:function(e,t){for(var r in t)if(Gg(t[r])===c&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(w.has(t[r][n],e))return"?"===r?i:r}else if(w.has(t[r],e))return"?"===r?i:r;return e}},k={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},E={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[l,p],[/(opios)[\/\s]+([\w\.]+)/i],[[l,"Opera Mini"],p],[/\s(opr)\/([\w\.]+)/i],[[l,"Opera"],p],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[l,p],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[l,"IE"],p],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[l,"Edge"],p],[/(yabrowser)\/([\w\.]+)/i],[[l,"Yandex"],p],[/(puffin)\/([\w\.]+)/i],[[l,"Puffin"],p],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[l,"UCBrowser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],p],[/(micromessenger)\/([\w\.]+)/i],[[l,"WeChat"],p],[/(qqbrowserlite)\/([\w\.]+)/i],[l,p],[/(QQ)\/([\d\.]+)/i],[l,p],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[l,p],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[l,p],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[l,p],[/(MetaSr)[\/\s]?([\w\.]+)/i],[l],[/(LBBROWSER)/i],[l],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[p,[l,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[l,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[l,/(.+)/,"$1 WebView"],p],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[l,/(.+(?:g|us))(.+)/,"$1 $2"],p],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[p,[l,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[l,p],[/(dolfin)\/([\w\.]+)/i],[[l,"Dolphin"],p],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[l,"Chrome"],p],[/(coast)\/([\w\.]+)/i],[[l,"Opera Coast"],p],[/fxios\/([\w\.-]+)/i],[p,[l,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[p,l],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[l,"GSA"],p],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[l,[p,C.str,k.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[l,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[l,"Netscape"],p],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[l,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,w.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[h,/ower/,"",w.lowerize]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[h,w.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[u,f,[d,v]],[/applecoremedia\/[\w\.]+ \((ipad)/],[u,[f,"Apple"],[d,v]],[/(apple\s{0,1}tv)/i],[[u,"Apple TV"],[f,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[f,u,[d,v]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[u,[f,"Amazon"],[d,v]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[u,C.str,k.device.amazon.model],[f,"Amazon"],[d,m]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[u,f,[d,m]],[/\((ip[honed|\s\w*]+);/i],[u,[f,"Apple"],[d,m]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[f,u,[d,m]],[/\(bb10;\s(\w+)/i],[u,[f,"BlackBerry"],[d,m]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[u,[f,"Asus"],[d,v]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[f,"Sony"],[u,"Xperia Tablet"],[d,v]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[u,[f,"Sony"],[d,m]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[f,u,[d,g]],[/android.+;\s(shield)\sbuild/i],[u,[f,"Nvidia"],[d,g]],[/(playstation\s[34portablevi]+)/i],[u,[f,"Sony"],[d,g]],[/(sprint\s(\w+))/i],[[f,C.str,k.device.sprint.vendor],[u,C.str,k.device.sprint.model],[d,m]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[f,u,[d,v]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[f,[u,/_/g," "],[d,m]],[/(nexus\s9)/i],[u,[f,"HTC"],[d,v]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[u,[f,"Huawei"],[d,m]],[/(microsoft);\s(lumia[\s\w]+)/i],[f,u,[d,m]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[u,[f,"Microsoft"],[d,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,"Microsoft"],[d,m]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[u,[f,"Motorola"],[d,m]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[u,[f,"Motorola"],[d,v]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[f,w.trim],[u,w.trim],[d,y]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,"Samsung"],[d,y]],[/\(dtv[\);].+(aquos)/i],[u,[f,"Sharp"],[d,y]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[f,"Samsung"],u,[d,v]],[/smart-tv.+(samsung)/i],[f,[d,y],u],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[f,"Samsung"],u,[d,m]],[/sie-(\w*)/i],[u,[f,"Siemens"],[d,m]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[f,"Nokia"],u,[d,m]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[u,[f,"Acer"],[d,v]],[/android.+([vl]k\-?\d{3})\s+build/i],[u,[f,"LG"],[d,v]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[f,"LG"],u,[d,v]],[/(lg) netcast\.tv/i],[f,u,[d,y]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[u,[f,"LG"],[d,m]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[u,[f,"Lenovo"],[d,v]],[/linux;.+((jolla));/i],[f,u,[d,m]],[/((pebble))app\/[\d\.]+\s/i],[f,u,[d,b]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[f,u,[d,m]],[/crkey/i],[[u,"Chromecast"],[f,"Google"]],[/android.+;\s(glass)\s\d/i],[u,[f,"Google"],[d,b]],[/android.+;\s(pixel c)\s/i],[u,[f,"Google"],[d,v]],[/android.+;\s(pixel xl|pixel)\s/i],[u,[f,"Google"],[d,m]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[u,/_/g," "],[f,"Xiaomi"],[d,m]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[u,/_/g," "],[f,"Xiaomi"],[d,v]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[u,[f,"Meizu"],[d,v]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[u,[f,"OnePlus"],[d,m]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[u,[f,"RCA"],[d,v]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[u,[f,"Dell"],[d,v]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[u,[f,"Verizon"],[d,v]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[f,"Barnes & Noble"],u,[d,v]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[u,[f,"NuVision"],[d,v]],[/android.+;\s(k88)\sbuild/i],[u,[f,"ZTE"],[d,v]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[u,[f,"Swiss"],[d,m]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[u,[f,"Swiss"],[d,v]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[u,[f,"Zeki"],[d,v]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[f,"Dragon Touch"],u,[d,v]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[u,[f,"Insignia"],[d,v]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[u,[f,"NextBook"],[d,v]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[f,"Voice"],u,[d,m]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[f,"LvTel"],u,[d,m]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[u,[f,"Envizen"],[d,v]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[f,u,[d,v]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[u,[f,"MachSpeed"],[d,v]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[f,u,[d,v]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[u,[f,"Rotor"],[d,v]],[/android.+(KS(.+))\s+build/i],[u,[f,"Amazon"],[d,v]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[f,u,[d,v]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[d,w.lowerize],f,u],[/(android[\w\.\s\-]{0,9});.+build/i],[u,[f,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[l,p],[/rv\:([\w\.]{1,9}).+(gecko)/i],[p,l]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[l,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[l,[p,C.str,k.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[l,"Windows"],[p,C.str,k.os.windows.version]],[/\((bb)(10);/i],[[l,"BlackBerry"],p],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[l,p],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[l,"Symbian"],p],[/\((series40);/i],[l],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[l,"Firefox OS"],p],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[l,p],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[l,"Chromium OS"],p],[/(sunos)\s?([\w\.\d]*)/i],[[l,"Solaris"],p],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[l,p],[/(haiku)\s(\w+)/i],[l,p],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[l,"Mac OS"],[p,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[l,p]]},S=function e(t,r){if("object"==Gg(t)&&(r=t,t=i),!(this instanceof e))return new e(t,r).getResult();var n=t||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),a=r?w.extend(E,r):E;return this.getBrowser=function(){var e={name:i,version:i};return C.rgx.call(e,n,a.browser),e.major=w.major(e.version),e},this.getCPU=function(){var e={architecture:i};return C.rgx.call(e,n,a.cpu),e},this.getDevice=function(){var e={vendor:i,model:i,type:i};return C.rgx.call(e,n,a.device),e},this.getEngine=function(){var e={name:i,version:i};return C.rgx.call(e,n,a.engine),e},this.getOS=function(){var e={name:i,version:i};return C.rgx.call(e,n,a.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};S.VERSION="0.7.18",S.BROWSER={NAME:l,MAJOR:"major",VERSION:p},S.CPU={ARCHITECTURE:h},S.DEVICE={MODEL:u,VENDOR:f,TYPE:d,CONSOLE:g,MOBILE:m,SMARTTV:y,TABLET:v,WEARABLE:b,EMBEDDED:"embedded"},S.ENGINE={NAME:l,VERSION:p},S.OS={NAME:l,VERSION:p},Gg(t)!==s?(Gg(e)!==s&&e.exports&&(t=e.exports=S),t.UAParser=S):r(3)?(n=function(){return S}.call(t,r,t,e))===i||(e.exports=n):o&&(o.UAParser=S);var B=o&&(o.jQuery||o.Zepto);if(Gg(B)!==s){var _=new S;B.ua=_.getResult(),B.ua.get=function(){return _.getUA()},B.ua.set=function(e){_.setUA(e);var t=_.getResult();for(var r in t)B.ua[r]=t[r]}}}("object"==("undefined"==typeof window?"undefined":Gg(window))?window:this)},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(0),i=o.DEVICE_TYPES,a=o.defaultData,s=t.getNavigatorInstance=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},c=t.isIOS13Check=function(e){var t=s();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:function(e){switch(e){case i.MOBILE:return{isMobile:!0};case i.TABLET:return{isTablet:!0};case i.SMART_TV:return{isSmartTV:!0};case i.CONSOLE:return{isConsole:!0};case i.WEARABLE:return{isWearable:!0};case i.BROWSER:return{isBrowser:!0};default:return a}},broPayload:function(e,t,r,n,o){return{isBrowser:e,browserMajorVersion:t.major,browserFullVersion:t.version,browserName:t.name,engineName:r.name||!1,engineVersion:r.version,osName:n.name,osVersion:n.version,userAgent:o}},mobilePayload:function(e,t,r,o){return n({},e,{vendor:t.vendor,model:t.model,os:r.name,osVersion:r.version,ua:o})},stvPayload:function(e,t,r,n){return{isSmartTV:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},consolePayload:function(e,t,r,n){return{isConsole:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},wearPayload:function(e,t,r,n){return{isWearable:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},getNavigatorInstance:s,isIOS13Check:c}}])})),$M=LM(YM),ZM=Object.freeze(Object.assign(Object.create(null),YM,{default:$M}));function JM(){return"function"==typeof navigator.enumerateDevices?navigator.enumerateDevices():"object"===CM(navigator.mediaDevices)&&"function"==typeof navigator.mediaDevices.enumerateDevices?navigator.mediaDevices.enumerateDevices():new Promise((function(e,t){try{if(null==window.MediaStreamTrack||null==window.MediaStreamTrack.getSources)throw new Error;window.MediaStreamTrack.getSources((function(t){e(t.filter((function(e){return"video"===e.kind.toLowerCase()||"videoinput"===e.kind.toLowerCase()})).map((function(e){return{deviceId:null!=e.deviceId?e.deviceId:"",groupId:e.groupId,kind:"videoinput",label:e.label,toJSON:function(){return this}}})))}))}catch(e){return t(e)}}))}var eD=ZT.Errors,tD=Zb.div(DM||(DM=TM(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: #000;\n display: flex;\n justify-content: center;\n z-index: ",";\n ","\n"])),1e3,(function(e){return e.checkCameraMode&&"opacity: 0;"})),rD=Zb.video(UM||(UM=TM(["\n width: 100%;\n ","\n"])),(function(e){return e.flipHorizontal&&"\n transform: scale(".concat(-1*e.scale,", ").concat(1*e.scale,");\n ")})),nD=Zb.div(jM||(jM=TM(["\n cursor: pointer;\n text-align: center;\n width: 50px;\n\n img {\n width: 100%;\n }\n"]))),oD=Zb(nD)(FM||(FM=TM(["\n z-index: ",";\n position: absolute;\n top: 20px;\n right: 20px;\n width: 20px;\n"])),1100),iD=Zb.div(VM||(VM=TM(["\n z-index: ",";\n position: absolute;\n top: 40px;\n color: red;\n"])),1020),aD=Zb.div(zM||(zM=TM(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: ",";\n"])),1030),sD=Zb.section(KM||(KM=TM(["\n width: 280px;\n padding: 0.625rem 0 0 0;\n background: #ffffff;\n border-radius: 0.3125rem;\n box-shadow: 2px 2px 14px rgba(0, 0, 0, 0.15);\n"]))),cD=Zb.header(HM||(HM=TM(["\n text-align: center;\n padding: 0.625rem 1rem;\n"]))),uD=Zb.h2(qM||(qM=TM(["\n margin: 0.25rem auto;\n padding: 0;\n font-weight: 600;\n font-size: 1.2rem;\n"]))),lD=Zb.p(WM||(WM=TM(["\n padding: 0 0 0.3125rem;\n margin: 0.25rem auto;\n font-size: 0.8rem;\n"]))),dD=Zb.ul(QM||(QM=TM(["\n list-style: none;\n padding: 0;\n margin: 0;\n"]))),fD=Zb.li(GM||(GM=TM(["\n margin: 0;\n text-align: left;\n cursor: pointer;\n font-size: 0.82rem;\n transition: all 550ms ease-in-out;\n border-top: 1px solid #dcdcdc;\n padding: 1rem 1rem;\n\n ","\n\n &:hover {\n background-color: rgba(230, 230, 230, 0.5);\n }\n"])),(function(e){return e.disabled&&Db(["pointer-events:none;opacity:0.5;"])})),pD=Zb.div(XM||(XM=TM(["\n position: absolute;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.7);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 9999;\n"]))),hD=ov.createRef(),gD=function(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return navigator.mediaDevices;var e=navigator.mozGetUserMedia||navigator.webkitGetUserMedia;return e?{getUserMedia:function(t){return new Promise((function(r,n){e.call(navigator,t,r,n)}))}}:null}();function mD(e){var t=e.checkCameraMode,r=e.frontCamera,n=e.onClose,o=e.children,i=e.onVideoPlayed,a=e.flipHorizontal,s=e.videoSettings,c=e.refVideo,u=e.onError,l=e.closeButton,d=e.videoClassName,f=e.scale,p=e.defaultCameraId,h=nN.useSDKSettings().lang,g=LN.useSDKTracking().sendEvent,m=UN.useAsset("ic_close.png"),v=IM(ov.useState(""),2),y=v[0],b=v[1],w=IM(ov.useState([]),2),C=w[0],k=w[1],E=IM(ov.useState([]),2),S=E[0],B=E[1],_=IM(ov.useState(!1),2),A=_[0],x=_[1],T=ov.useRef(!1),I=ov.useRef(!1),P=ov.useCallback((function(){try{var e;(null==c||null===(e=c.current)||void 0===e?void 0:e.srcObject)instanceof MediaStream&&(c.current.srcObject.getTracks().forEach((function(e){return e.stop()})),c.current.srcObject=null)}catch(e){}}),[c]),R=ov.useCallback(function(){var e=EM(regeneratorRuntime.mark((function e(t){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return{},n=YM.isMobile?YM.isIOS?{width:{ideal:1460},aspectRatio:{ideal:window.innerHeight/window.innerWidth}}:{width:{ideal:1650},aspectRatio:{ideal:window.innerHeight/window.innerWidth}}:{height:{ideal:9999}},e.prev=2,e.next=5,gD.getUserMedia({audio:!1,video:AM(AM({},t?{deviceId:t}:{facingMode:r?"user":"environment"}),s||n)});case 5:return(o=e.sent)||(b(eD.not_supported.msg[h]),u(eD.not_supported)),e.abrupt("return",o);case 10:e.prev=10,e.t0=e.catch(2),"NotAllowedError"===e.t0.name?(b(eD.no_permission.msg[h]),u(eD.no_permission)):(t&&!S.includes(t)&&B([].concat(PM(S),[t])),x(!0),b(e.t0.message),u({code:e.t0.name||e.t0.code,message:e.t0.message}));case 13:return e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}(),[r,s,h,u,S]),N=ov.useCallback(EM(regeneratorRuntime.mark((function e(){var t,r,n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:p,(r=c.current).oncanplaythrough=function(){r.play(),I.current=!0,b("");var e=window.innerWidth,t=window.innerHeight,n=fO.analyzeVideoAndWindowSizes(r),o=n.lostX,a=void 0===o?0:o,s=n.lostY,c=void 0===s?0:s,u=Math.min(e,Math.floor(e-2*a)),l=Math.min(t,Math.floor(t-2*c));i&&i({clientWidth:e,clientHeight:t,videoAreaWidth:u,videoAreaHeight:l,lostX:a,lostY:c})},e.next=5,R(t);case 5:(n=e.sent)&&(r.srcObject=n);case 7:case"end":return e.stop()}}),e)}))),[c,R,i,p]);ov.useEffect((function(){function e(){return(e=EM(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,JM();case 3:t=e.sent,r=t.filter((function(e){return e.deviceId&&"videoinput"===e.kind})),k(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}A&&!T.current&&(T.current=!0,function(){e.apply(this,arguments)}())}),[A]),ov.useEffect((function(){function e(){return(e=EM(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N();case 2:return e.next=4,JM();case 4:t=e.sent,(r=t.filter((function(e){return"videoinput"===e.kind&&e.label.includes("0")}))).length>0&&(n=r[0].deviceId,P(),N(n));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var t=c.current;return!gD||YM.browserName&&["facebook"].includes(YM.browserName.toLowerCase())||YM.getUA.includes("Zalo iOS")?(b(eD.not_supported.msg[h]),u(eD.not_supported)):t&&(YM.isAndroid&&!1===r?function(){e.apply(this,arguments)}():N()),function(){P()}}),[c,h,r,N,P,u]),ov.useEffect((function(){var e=setTimeout((function(){I.current||(b(eD.camera_timeout.msg[h]),u(eD.camera_timeout))}),3e5);return function(){clearTimeout(e)}}),[h,u]);var O=ov.useCallback((function(){P(),n&&n(),g({tag:"result",event:"user_activity.cancel",log:{}})}),[n,P,g]);return ov.createElement(tD,{checkCameraMode:t},A&&null!=C&&C.length?ov.createElement(pD,null,ov.createElement(aD,null,ov.createElement(sD,null,ov.createElement(cD,null,ov.createElement(uD,null,"Không thể mở camera mặc định"),S.length===C.length?ov.createElement(lD,null,"Camera đang bị sử dụng bởi ứng dụng khác, vui lòng kiểm tra lại"):ov.createElement(lD,null,"Vui lòng thử chọn camera khác trong danh sách dưới đây")),ov.createElement(dD,null,C.map((function(e,t){return ov.createElement(fD,{key:e.deviceId,onClick:function(){b(""),P(),x(!1),N(e.deviceId)},disabled:S.includes(e.deviceId)},e.label?e.label:"Camera ".concat(t+1))})))))):null,function(){if(!y||A)return null;var e=eD.no_permission.msg[h];return y===e&&YM.isIOS?ov.createElement(iD,null,y," ",ov.createElement("button",{onClick:function(){window.location.reload()}},{vi:"Cấp lại quyền truy cập camera",en:"Request camera permission"}[h])):ov.createElement(iD,null,y)}(),ov.createElement(rD,{ref:c,playsInline:!0,muted:!0,flipHorizontal:a,className:d,scale:f}),o,l?ov.cloneElement(l,{onClick:O,"data-testid":"close-camera"}):ov.createElement(oD,{onClick:O,"data-testid":"close-camera"},ov.createElement("img",{src:m,alt:""})))}mD.propTypes={checkCameraMode:Tv.bool,frontCamera:Tv.bool,onClose:Tv.func,onError:Tv.func,onVideoPlayed:Tv.func,children:Tv.node,flipHorizontal:Tv.bool,videoSettings:Tv.object,refVideo:Tv.object,closeButton:Tv.node,videoClassName:Tv.string,scale:Tv.number,defaultCameraId:Tv.string},mD.defaultProps={checkCameraMode:!1,frontCamera:!0,onClose:null,onError:function(){},onVideoPlayed:null,children:null,flipHorizontal:!1,videoSettings:null,refVideo:null,closeButton:null,videoClassName:"",scale:1,defaultCameraId:void 0};var vD,yD,bD,wD=ov.forwardRef((function(e,t){return ov.createElement(mD,BM({},e,{refVideo:t||hD}))})),CD=Zb.table(vD||(vD=TM(["\n width: 100%;\n height: 100%;\n td {\n text-align: center;\n vertical-align: middle;\n padding: 0;\n border: 0;\n }\n border-spacing: 0;\n table-layout: auto;\n border-collapse: collapse;\n"]))),kD=Zb.div(yD||(yD=TM(["\n position: relative;\n"]))),ED=Array.from(Array(3).keys()),SD=Array.from(Array(3).keys());function BD(e){var t=e.children,r=e.x,n=e.y,o=e.width,i=e.height,a=e.className,s=e.surroundStyle;return ov.createElement(CD,{className:a},ov.createElement("tbody",null,ED.map((function(e,a){return ov.createElement("tr",{key:e,style:{height:0===a?n:"auto"},"data-testid":"row"},SD.map((function(e,n){var c=1===a&&1===n,u="auto";return c?u=o:0===n&&(u=r),ov.createElement("td",{"data-testid":c?"centeredCell":"cell",key:e,style:AM({width:u,height:c?i:"auto"},c?{}:s)},c?ov.createElement(kD,{style:{width:u,height:i}},t):null)})))}))))}BD.propTypes={children:Tv.node,x:Tv.string,y:Tv.string,width:Tv.string,height:Tv.string,className:Tv.string,surroundStyle:Tv.object},BD.defaultProps={children:null,x:"auto",y:"auto",width:"auto",height:"auto",className:"",surroundStyle:{}};var _D=Zb(BD)(bD||(bD=TM(["\n background: transparent;\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: ",";\n"])),1010);function AD(e){var t=e.className;return ov.createElement("svg",{className:t,width:"38px",height:"32px",viewBox:"0 0 24 21","data-testid":"camera-icon"},ov.createElement("title",null,"FA45C15C-1E21-4D7B-9585-07FB9F999CB8"),ov.createElement("desc",null,"Created with sketchtool."),ov.createElement("g",{id:"Web-demo",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ov.createElement("g",{id:"step1",transform:"translate(-950.000000, -380.000000)",fill:"currentColor",fillRule:"nonzero"},ov.createElement("g",{id:"Group",transform:"translate(950.000000, 380.000000)"},ov.createElement("g",{id:"Group-2"},ov.createElement("g",{id:"camera"},ov.createElement("path",{d:"M21,3 L17,3 L15,0 L9,0 L7,3 L3,3 C1.34314575,3 0,4.34314575 0,6 L0,18 C0,19.6568542 1.34314575,21 3,21 L21,21 C22.6568542,21 24,19.6568542 24,18 L24,6 C24,4.34314575 22.6568542,3 21,3 Z M12,17 C9.23857625,17 7,14.7614237 7,12 C7,9.23857625 9.23857625,7 12,7 C14.7614237,7 17,9.23857625 17,12 C17,14.7614237 14.7614237,17 12,17 L12,17 Z",id:"Shape"})))))))}AD.propTypes={className:Tv.string},AD.defaultProps={className:""};var xD,TD=function(e){var t=Gg(e);return null!=e&&("object"==t||"function"==t)},ID="object"==Gg(OM)&&OM&&OM.Object===Object&&OM,PD="object"==("undefined"==typeof self?"undefined":Gg(self))&&self&&self.Object===Object&&self,RD=ID||PD||Function("return this")(),ND=function(){return RD.Date.now()},OD=/\s/,LD=/^\s+/,MD=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&OD.test(e.charAt(t)););return t}(e)+1).replace(LD,""):e},DD=RD.Symbol,UD=Object.prototype,jD=UD.hasOwnProperty,FD=UD.toString,VD=DD?DD.toStringTag:void 0,zD=Object.prototype.toString,KD=DD?DD.toStringTag:void 0,HD=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":KD&&KD in Object(e)?function(e){var t=jD.call(e,VD),r=e[VD];try{e[VD]=void 0;var n=!0}catch(e){}var o=FD.call(e);return n&&(t?e[VD]=r:delete e[VD]),o}(e):function(e){return zD.call(e)}(e)},qD=function(e){return null!=e&&"object"==Gg(e)},WD=function(e){return"symbol"==Gg(e)||qD(e)&&"[object Symbol]"==HD(e)},QD=/^[-+]0x[0-9a-f]+$/i,GD=/^0b[01]+$/i,XD=/^0o[0-7]+$/i,YD=parseInt,$D=function(e){if("number"==typeof e)return e;if(WD(e))return NaN;if(TD(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=TD(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=MD(e);var r=GD.test(e);return r||XD.test(e)?YD(e.slice(2),r?2:8):QD.test(e)?NaN:+e},ZD=Math.max,JD=Math.min,eU=function(e,t,r){var n,o,i,a,s,c,u=0,l=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,i=o;return n=o=void 0,u=t,a=e.apply(i,r)}function h(e){return u=e,s=setTimeout(m,t),l?p(e):a}function g(e){var r=e-c;return void 0===c||r>=t||r<0||d&&e-u>=i}function m(){var e=ND();if(g(e))return v(e);s=setTimeout(m,function(e){var r=t-(e-c);return d?JD(r,i-(e-u)):r}(e))}function v(e){return s=void 0,f&&n?p(e):(n=o=void 0,a)}function y(){var e=ND(),r=g(e);if(n=arguments,o=this,c=e,r){if(void 0===s)return h(c);if(d)return clearTimeout(s),s=setTimeout(m,t),p(c)}return void 0===s&&(s=setTimeout(m,t)),a}return t=$D(t)||0,TD(r)&&(l=!!r.leading,i=(d="maxWait"in r)?ZD($D(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=c=o=s=void 0},y.flush=function(){return void 0===s?a:v(ND())},y},tU=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return TD(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),eU(e,t,{leading:n,maxWait:t,trailing:o})},rU=function(e){if(!TD(e))return!1;var t=HD(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},nU=RD["__core-js_shared__"],oU=(xD=/[^.]+$/.exec(nU&&nU.keys&&nU.keys.IE_PROTO||""))?"Symbol(src)_1."+xD:"",iU=Function.prototype.toString,aU=/^\[object .+?Constructor\]$/,sU=Function.prototype,cU=Object.prototype,uU=sU.toString,lU=cU.hasOwnProperty,dU=RegExp("^"+uU.call(lU).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fU=function(e){return!(!TD(e)||function(e){return!!oU&&oU in e}(e))&&(rU(e)?dU:aU).test(function(e){if(null!=e){try{return iU.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))},pU=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return fU(r)?r:void 0},hU=function(){try{var e=pU(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),gU=function(e,t,r){"__proto__"==t&&hU?hU(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},mU=function(e,t){return e===t||e!=e&&t!=t},vU=Object.prototype.hasOwnProperty,yU=function(e,t,r){var n=e[t];vU.call(e,t)&&mU(n,r)&&(void 0!==r||t in e)||gU(e,t,r)},bU=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?gU(r,s,c):yU(r,s,c)}return r},wU=function(e){return e},CU=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},kU=Math.max,EU=function(e){return function(){return e}},SU=hU?function(e,t){return hU(e,"toString",{configurable:!0,enumerable:!1,value:EU(t),writable:!0})}:wU,BU=Date.now,_U=function(e){var t=0,r=0;return function(){var n=BU(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(SU),AU=function(e,t){return _U(function(e,t,r){return t=kU(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=kU(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),CU(e,this,s)}}(e,t,wU),e+"")},xU=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},TU=function(e){return null!=e&&xU(e.length)&&!rU(e)},IU=/^(?:0|[1-9]\d*)$/,PU=function(e,t){var r=Gg(e);return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&IU.test(e))&&e>-1&&e%1==0&&e<t},RU=function(e,t,r){if(!TD(r))return!1;var n=Gg(t);return!!("number"==n?TU(r)&&PU(t,r.length):"string"==n&&t in r)&&mU(r[t],e)},NU=function(e){return AU((function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&RU(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t}))},OU=function(e){return qD(e)&&"[object Arguments]"==HD(e)},LU=Object.prototype,MU=LU.hasOwnProperty,DU=LU.propertyIsEnumerable,UU=OU(function(){return arguments}())?OU:function(e){return qD(e)&&MU.call(e,"callee")&&!DU.call(e,"callee")},jU=Array.isArray,FU=function(){return!1},VU=MM((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?RD.Buffer:void 0,i=(o?o.isBuffer:void 0)||FU;e.exports=i})),zU={};zU["[object Float32Array]"]=zU["[object Float64Array]"]=zU["[object Int8Array]"]=zU["[object Int16Array]"]=zU["[object Int32Array]"]=zU["[object Uint8Array]"]=zU["[object Uint8ClampedArray]"]=zU["[object Uint16Array]"]=zU["[object Uint32Array]"]=!0,zU["[object Arguments]"]=zU["[object Array]"]=zU["[object ArrayBuffer]"]=zU["[object Boolean]"]=zU["[object DataView]"]=zU["[object Date]"]=zU["[object Error]"]=zU["[object Function]"]=zU["[object Map]"]=zU["[object Number]"]=zU["[object Object]"]=zU["[object RegExp]"]=zU["[object Set]"]=zU["[object String]"]=zU["[object WeakMap]"]=!1;var KU=MM((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&ID.process,i=function(){try{return n&&n.require&&n.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i})),HU=KU&&KU.isTypedArray,qU=HU?function(e){return function(t){return e(t)}}(HU):function(e){return qD(e)&&xU(e.length)&&!!zU[HD(e)]},WU=Object.prototype.hasOwnProperty,QU=function(e,t){var r=jU(e),n=!r&&UU(e),o=!r&&!n&&VU(e),i=!r&&!n&&!o&&qU(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!WU.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||PU(u,c))||s.push(u);return s},GU=Object.prototype,XU=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||GU)},YU=Object.prototype.hasOwnProperty,$U=function(e){if(!TD(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=XU(e),r=[];for(var n in e)("constructor"!=n||!t&&YU.call(e,n))&&r.push(n);return r},ZU=function(e){return TU(e)?QU(e,!0):$U(e)},JU=NU((function(e,t,r,n){bU(t,ZU(t),e,n)})),ej=function(e,t){return function(r){return e(t(r))}},tj=ej(Object.getPrototypeOf,Object),rj=Function.prototype,nj=Object.prototype,oj=rj.toString,ij=nj.hasOwnProperty,aj=oj.call(Object),sj=function(e){if(!qD(e)||"[object Object]"!=HD(e))return!1;var t=tj(e);if(null===t)return!0;var r=ij.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&oj.call(r)==aj},cj=function(e){if(!qD(e))return!1;var t=HD(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!sj(e)},uj=AU((function(e,t){try{return CU(e,void 0,t)}catch(e){return cj(e)?e:new Error(e)}})),lj=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},dj=Object.prototype,fj=dj.hasOwnProperty,pj=function(e,t,r,n){return void 0===e||mU(e,dj[r])&&!fj.call(n,r)?t:e},hj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gj=function(e){return"\\"+hj[e]},mj=ej(Object.keys,Object),vj=Object.prototype.hasOwnProperty,yj=function(e){return TU(e)?QU(e):function(e){if(!XU(e))return mj(e);var t=[];for(var r in Object(e))vj.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},bj=/<%=([\s\S]+?)%>/g,wj=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),Cj=DD?DD.prototype:void 0,kj=Cj?Cj.toString:void 0,Ej=function e(t){if("string"==typeof t)return t;if(jU(t))return lj(t,e)+"";if(WD(t))return kj?kj.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},Sj=function(e){return null==e?"":Ej(e)},Bj=/[&<>"']/g,_j=RegExp(Bj.source),Aj={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:bj,variable:"",imports:{_:{escape:function(e){return(e=Sj(e))&&_j.test(e)?e.replace(Bj,wj):e}}}},xj=/\b__p \+= '';/g,Tj=/\b(__p \+=) '' \+/g,Ij=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pj=/[()=,{}\[\]\/\s]/,Rj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nj=/($^)/,Oj=/['\n\r\u2028\u2029\\]/g,Lj=Object.prototype.hasOwnProperty,Mj=function(e,t,r){var n=Aj.imports._.templateSettings||Aj;r&&RU(e,t,r)&&(t=void 0),e=Sj(e),t=JU({},t,n,pj);var o,i,a=JU({},t.imports,n.imports,pj),s=yj(a),c=function(e,t){return lj(t,(function(t){return e[t]}))}(a,s),u=0,l=t.interpolate||Nj,d="__p += '",f=RegExp((t.escape||Nj).source+"|"+l.source+"|"+(l===bj?Rj:Nj).source+"|"+(t.evaluate||Nj).source+"|$","g"),p=Lj.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(f,(function(t,r,n,a,s,c){return n||(n=a),d+=e.slice(u,c).replace(Oj,gj),r&&(o=!0,d+="' +\n__e("+r+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var h=Lj.call(t,"variable")&&t.variable;if(h){if(Pj.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(xj,""):d).replace(Tj,"$1").replace(Ij,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=uj((function(){return Function(s,p+"return "+d).apply(void 0,c)}));if(g.source=d,cj(g))throw g;return g},Dj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uj=/^\w*$/,jj=pU(Object,"create"),Fj=Object.prototype.hasOwnProperty,Vj=Object.prototype.hasOwnProperty;function zj(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}zj.prototype.clear=function(){this.__data__=jj?jj(null):{},this.size=0},zj.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},zj.prototype.get=function(e){var t=this.__data__;if(jj){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Fj.call(t,e)?t[e]:void 0},zj.prototype.has=function(e){var t=this.__data__;return jj?void 0!==t[e]:Vj.call(t,e)},zj.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jj&&void 0===t?"__lodash_hash_undefined__":t,this};var Kj=zj,Hj=function(e,t){for(var r=e.length;r--;)if(mU(e[r][0],t))return r;return-1},qj=Array.prototype.splice;function Wj(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Wj.prototype.clear=function(){this.__data__=[],this.size=0},Wj.prototype.delete=function(e){var t=this.__data__,r=Hj(t,e);return!(r<0||(r==t.length-1?t.pop():qj.call(t,r,1),--this.size,0))},Wj.prototype.get=function(e){var t=this.__data__,r=Hj(t,e);return r<0?void 0:t[r][1]},Wj.prototype.has=function(e){return Hj(this.__data__,e)>-1},Wj.prototype.set=function(e,t){var r=this.__data__,n=Hj(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var Qj=Wj,Gj=pU(RD,"Map"),Xj=function(e,t){var r=e.__data__;return function(e){var t=Gg(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map};function Yj(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yj.prototype.clear=function(){this.size=0,this.__data__={hash:new Kj,map:new(Gj||Qj),string:new Kj}},Yj.prototype.delete=function(e){var t=Xj(this,e).delete(e);return this.size-=t?1:0,t},Yj.prototype.get=function(e){return Xj(this,e).get(e)},Yj.prototype.has=function(e){return Xj(this,e).has(e)},Yj.prototype.set=function(e,t){var r=Xj(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var $j=Yj;function Zj(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Zj.Cache||$j),r}Zj.Cache=$j;var Jj=Zj,eF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tF=/\\(\\)?/g,rF=function(e){var t=Jj((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(eF,(function(e,r,n,o){t.push(n?o.replace(tF,"$1"):r||e)})),t}),(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}(),nF=function(e,t){return jU(e)?e:function(e,t){if(jU(e))return!1;var r=Gg(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!WD(e))||Uj.test(e)||!Dj.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:rF(Sj(e))},oF=function(e){if("string"==typeof e||WD(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},iF=function(e,t,r){var n=null==e?void 0:function(e,t){for(var r=0,n=(t=nF(t,e)).length;null!=e&&r<n;)e=e[oF(t[r++])];return r&&r==n?e:void 0}(e,t);return void 0===n?r:n},aF=ZT.Errors;function sF(e){var t=e.livenessSettings,r=e.apiClient,n=e.apiCheck,o=e.onError,i=IM(ov.useState({face_tracking_setting:{enable:!1,web_terminate_threshold:.0030152991993743408,web_warning_threshold:.0017317430600108828,limit_for:"all_flow",max_warning_time:5},flow_interval_time_ms:3e3,limit_time_liveness_check:{enable:!1,limit_time_second:45},terminate_if_no_face:{enable:!1,max_invalid_frame:5,max_time_ms:1e3}}),2),a=i[0],s=i[1];return ov.useEffect((function(){t?s(AM({},t)):n&&r.clientSettings().then((function(e){if(e&&e.data){var t,r=iF(e,"data.settings.sdk_settings.server_log_settings.enable"),n=iF(e,"data.settings.sdk_settings.active_liveness_settings"),i=iF(n,"save_encoded_frames",{});i.enable&&(t={enable:!0,framesIntervalTime:i.frames_interval_ms,framesBatchLength:i.frames_batch_len}),s(AM(AM({},n),{},{enableTracking:r,captureFrameSettings:t}))}e&&e.errors&&o(aF.server_error)})).catch((function(e){o(e)}))}),[t,r,o,n]),a}var cF=function(e){var t=e.curStep,r=e.faceDirection,n=iF(t,"stepTimeConstraints.delayTime");return!!n&&(null===t.firstFrameSpottedAt?(t.name===r&&(t.firstFrameSpottedAt=(new Date).getTime()),!0):(new Date).getTime()-t.firstFrameSpottedAt<n)},uF=function(e){var t=function(e){return e?1/0===(e=$D(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),r=t%1;return t==t?r?t-r:t:0},lF=function(e){return function(e,t){var r;if("function"!=typeof t)throw new TypeError("Expected a function");return e=uF(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}(2,e)};function dF(){return(dF=EM(regeneratorRuntime.mark((function e(){var t,r,n,o,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=t.blazefaceModelUrl,n=t.tfScriptUrls,e.next=3,pM.loadTensorFlow(n);case 3:return e.next=5,pM.initTensorFlow({preferredBackends:["wasm","webgl","cpu"]});case 5:return e.next=7,pM.loadBlazefaceModel({modelUrl:r});case 7:return o=e.sent,e.abrupt("return",{blazefaceModel:o});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var fF,pF,hF,gF,mF,vF,yF,bF=lF((function(){return dF.apply(this,arguments)})),wF=[],CF=function(){wF=[]},kF=function(e,t,r){r&&CF(),wF.push({id:null});var n=wF.length-1;t.httpClient.post("/v1/files",{frames:e,metadata:JSON.stringify({type:"selfie"})}).then((function(e){e&&e.data&&e.data.file_id?wF[n].id=e.data.file_id:wF[n].id=-1}))},EF=function(){return new Promise((function(e){var t=setInterval((function(){wF.every((function(e){return e.id}))&&(e(),clearInterval(t))}),200)}))},SF=function(e){return e.enable?wF.some((function(e){return-1===e.id}))?null:wF:[]},BF=AO.faceTracker(),_F=ZT.Mode,AF=ZT.FaceDirection,xF=ZT.Errors,TF=ZT.Messages;function IF(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.apiCheck,n=t.mode,o=t.bgCameraMask,i=t.bgCameraMaskRed,a=t.surroundStyle,s=t.cropAreaDimension,c=t.customInstructions,u=t.customIcon,l=t.customDirectionIcon,d=t.customStepTimeConstraints,f=void 0===d?(SM(e={},ZT.FaceDirection.UP,{delayTime:0}),SM(e,ZT.FaceDirection.LEFT,{delayTime:0}),SM(e,ZT.FaceDirection.RIGHT,{delayTime:0}),SM(e,ZT.FaceDirection.FRONTAL,{delayTime:2e3}),e):d,p=t.onLivenessDetectionDone,h=t.onError,g=t.frontalMinSize,m=t.waitingTimeToGetBetterFrames,v=void 0===m?500:m,y=t.captureFrameSettings,b=void 0===y?{enable:!1,framesIntervalTime:180,framesBatchLength:0}:y,w=t.livenessSettings,C=t.setRemainingTime,k=void 0===C?function(){}:C,E=t.onProcessing,S=void 0===E?function(){}:E,B=t.customErrors,_=t.customMessages,A=t.apiCredentials,x=void 0===A?{}:A,T=t.onFramesCaptured,I=void 0===T?function(){}:T,P=t.initFirstGestureTimeout,R=void 0===P?2e3:P,N=t.outputEncryptionSettings,O=t.cameraScale,L=void 0===O?1:O,M=t.passiveModeAuto,D=void 0!==M&&M,U=ov.useState(!1),j=IM(U,2),F=j[0],V=j[1],z=ov.useState(!1),K=IM(z,2),H=K[0],q=K[1],W=ov.useState(!1),Q=IM(W,2),G=Q[0],X=Q[1],Y=ov.useRef(null),$=nN.useSDKSettings(),Z=$.lang,J=$.assetRoot,ee=$.customUrls,te=KL.useApiClient({apiCredentials:x}),re=te.apiClient,ne=n===_F.ACTIVE,oe=ov.useReducer((function(e){return e+1}),0),ie=IM(oe,2),ae=(ie[0],ie[1]),se=ov.useRef(null),ce=ov.useRef(!1),ue=ov.useState(!1),le=IM(ue,2),de=le[0],fe=le[1],pe=ov.useRef({}),he=LN.useSDKTracking(),ge=he.sendEvent,me=ov.useRef(null);null===me.current&&(me.current=AO.initFaceVerificationData({assetRoot:J,customInstructions:c,customIcon:u,customDirectionIcon:l,customStepTimeConstraints:f}));var ve=ov.useState(),ye=IM(ve,2),be=ye[0],we=ye[1],Ce=ov.useMemo((function(){return tU(we,500)}),[we]),ke=ov.useRef([]),Ee=ov.useRef(),Se=ov.useRef(),Be=sF({livenessSettings:w,apiClient:re,apiCheck:r,onError:h}),_e=Be.face_tracking_setting,Ae=Be.flow_interval_time_ms,xe=Be.limit_time_liveness_check,Te=Be.terminate_if_no_face,Ie=Be.captureFrameSettings,Pe=void 0===Ie?b:Ie,Re=Be.enableTracking,Ne=ov.useMemo((function(){return tU((function(e){r&&!Re||ge(e)}),2e3)}),[r,Re,ge]),Oe=ov.useRef(0),Le=ov.useRef();ov.useEffect((function(){Ne({tag:"selfie",event:"user_activity.start",log:{}})}),[Ne]),ov.useEffect((function(){var e=!1;function t(){return(t=EM(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(de){t.next=11;break}return Se.current=performance.now(),t.next=4,bF(ee);case 4:if(pe.current=t.sent,!e){t.next=7;break}return t.abrupt("return");case 7:fe(!0),Ne({tag:"selfie",event:"user_activity.show",log:{}}),Ne({tag:"selfie",event:"sdk.load_model",log:{status:"success",time_in_ms:performance.now()-Se.current}}),Se.current=null;case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){t.apply(this,arguments)}(),function(){e=!0}}),[de,ee,Ne]);var Me=ov.useCallback((function(){k(""),me.current.curStepIndex=me.current.steps.length,q(!1),setTimeout((function(){me.current=AO.initFaceVerificationData({assetRoot:J,customInstructions:c,customIcon:u,customDirectionIcon:l}),Ee.current=Date.now(),Oe.current=0,Le.current=null,ke.current=[],X(!1),CF(),ae()}),Ae)}),[J,c,u,l,Ae,k]),De=ov.useRef(null),Ue=ov.useMemo((function(){return AM(AM({},xF),B)}),[B]),je=ov.useMemo((function(){return AM(AM({},TF),_)}),[_]),Fe=400;ov.useEffect((function(){if(F&&xe.enable&&G){Ee.current=Date.now();var e=xe.limit_time_second+1,t=xe.remain_time_show||10,r=xe.format||"s";De.current=setInterval((function(){var n=Math.round((1e3*e-(Date.now()-Ee.current))/1e3);if(me.current.curStepIndex<me.current.steps.length){if(n<=t&&n>=1){var o=Mj(je.REMAIN_TIME[Z]),i=n;switch(r){case"mm:ss":i=n.toString().padStart(5,"00:00");break;case"ss":i=n.toString().padStart(2,"0")}k(o({x:i}))}if(Math.round((Date.now()-Ee.current)/1e3)===e){var a,s={};Object.keys(null===(a=Ue.liveness_terminated_time_out)||void 0===a?void 0:a.msg).forEach((function(e){var t,r=Mj(null===(t=Ue.liveness_terminated_time_out)||void 0===t?void 0:t.msg[e]);s[e]=r({x:xe.limit_time_second})})),we(AM(AM({},Ue.liveness_terminated_time_out),{},{msg:s,duration:Ae})),Ne({tag:"selfie",event:"sdk_ui.show_alert",log:{alert:"liveness_terminated_time_out,"}}),Me()}}}),1e3)}return function(){clearInterval(De.current)}}),[Me,k,F,Z,Ae,xe.enable,xe.limit_time_second,G,Ue.liveness_terminated_time_out,je.REMAIN_TIME,xe.format,xe.remain_time_show,Ne]);var Ve=ov.useCallback((function(e){var t,r,n=e.clientWidth,i=e.clientHeight,c=e.videoAreaWidth,u=e.videoAreaHeight,l=e.lostX,d=e.lostY;YM.isMobile?r=t=c:t=r=u-200;var f=Math.floor((c-t)/2)+l,p=5+d,h=o;se.current={x:f,y:p,width:t,height:r,image:h,surroundStyle:a},"object"===CM(s)?se.current=AM(AM({},se.current),s):"function"==typeof s&&(se.current=AM(AM({},se.current),s({clientWidth:n,clientHeight:i,videoAreaWidth:c,videoAreaHeight:u,lostX:l,lostY:d,isMobile:YM.isMobile,width:t,height:r}))),ae(),V(!0)}),[o,a,s]),ze=ov.useState(3),Ke=IM(ze,2),He=Ke[0],qe=Ke[1],We=ov.useState(!1),Qe=IM(We,2),Ge=Qe[0],Xe=Qe[1],Ye=ov.useRef(!1),$e=ov.useCallback((function(e){Xe(e),Ye.current=e}),[]),Ze=ov.useRef(null),Je=ov.useRef([]),et=ov.useCallback((function(){qe(3),clearInterval(Ze.current),$e(!0);var e=function(){var e=EM(regeneratorRuntime.mark((function e(t){var n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t-1!=0){e.next=9;break}return clearInterval(Ze.current),n=Je.current,S(),o=n.map((function(e){return TL.resizeBlobImg(e.blob,Fe,Fe)})),e.next=7,Promise.all(o);case 7:i=e.sent,r?(a=PM(ke.current),s=n.map((function(e,t){return re.uploadImage({file:i[t],label:"portrait",metadata:JSON.stringify({gesture_score:e.leftRightScore,gesture:AF.FRONTAL})})})),Promise.all(s).then((function(e){return re.verifyFaceLiveness({images:e.map((function(e){return{id:e.data.image_id}})),videos:[{frames:a}]})})).then((function(e){p({apiCheckPassed:e.data.is_live,verifyFaceLivenessResult:e.data})})).catch((function(e){h({error:e})}))):p({frontalFaces:i,capturedFrames:ke.current});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Ze.current=setInterval((function(){qe((function(t){return e(t),t-1}))}),1e3)}),[$e,r,p,re,h,S]);ov.useEffect((function(){be&&(clearInterval(Ze.current),$e(!1),Je.current=[])}),[be,$e]),ov.useEffect((function(){var e,t=Y.current,n=function(){var e=EM(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=me.current.steps,r=[],t.forEach((function(e){var t=e.name,n=e.image,o=e.frontalFaceImage;if(t!==AF.FRONTAL){var i={label:"portrait",metadata:JSON.stringify({gesture_score:n.leftRightScore,gesture:t})};N&&N.key?r.push(re.httpClient.post("/v1/images",AM({base64:n.encrypted.hex},i),{"X-TV-Key":N.key})):r.push(re.uploadImage(AM({file:n.blob},i)))}else r.push(Promise.resolve({data:{image_id:null}}));if(o.blob){var a={label:"portrait",metadata:JSON.stringify({gesture_score:o.leftRightScore,gesture:AF.FRONTAL})};N&&N.key?r.push(re.httpClient.post("/v1/images",AM({base64:o.encrypted.hex},a),{"X-TV-Key":N.key})):r.push(re.uploadImage(AM({file:o.blob},a)))}else r.push(Promise.resolve({data:{image_id:null}}))})),e.next=5,Promise.all(r);case 5:n=e.sent,t.forEach((function(e,t){e.image.imageId=n[2*t].data.image_id,e.frontalFaceImage.imageId=n[2*t+1].data.image_id}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=EM(regeneratorRuntime.mark((function e(){var t,r,o,i,a,s,c,u,l,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n();case 3:if(t=me.current.steps,0!==(r=t.filter((function(e){return e.frontalFaceImage.imageId}))).length){e.next=9;break}p({error:"wrong_face_movement"}),e.next=26;break;case 9:return e.next=11,EF();case 11:if(o=SF(Pe)){e.next=16;break}p({error:"network_error"}),e.next=26;break;case 16:return i=re.verifyFaceLiveness({images:r.map((function(e){return{id:e.frontalFaceImage.imageId}})),gesture_images:t.filter((function(e){return e.image.imageId&&e.name!==AF.FRONTAL})).map((function(e){return{gesture:e.name,images:[{id:e.image.imageId}]}})),videos:o}),a=re.requestVerifyPortrait({image:{id:r[r.length-1].frontalFaceImage.imageId}}),e.next=20,Promise.all([i,a]);case 20:s=e.sent,c=IM(s,2),u=c[0],l=c[1],d=!0===u.data.is_live,p({apiCheckPassed:d,verifyFaceLivenessResult:u.data,verifyFacePortraitResult:l.data,frontalFaces:r.map((function(e){return{id:e.frontalFaceImage.imageId,blob:e.frontalFaceImage.blob}})),steps:t.filter((function(e){return e.image.imageId&&e.name!==AF.FRONTAL})).map((function(e){var t=e.name,r=e.image;return{name:t,blob:r.blob,id:r.imageId}}))});case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(0),h({error:e.t0});case 31:case"end":return e.stop()}}),e,null,[[0,28]])})));return function(){return e.apply(this,arguments)}}(),s=function(){var e=EM(regeneratorRuntime.mark((function e(){var t,r,n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=me.current.steps,r=[],t.map((function(e){return r.push({name:e.name,blob:e.image.blob}),e.frontalFaceImage.blob&&r.push({name:e.name,blob:e.frontalFaceImage.blob}),0})),n=r.map((function(e){return TL.resizeBlobImg(e.blob,Fe,Fe)})),e.next=6,Promise.all(n);case 6:return o=e.sent,i=r.map((function(e,t){return{name:e.name,blob:o[t]}})),e.next=10,Promise.all(t.map(function(){var e=EM(regeneratorRuntime.mark((function e(r,n){var o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=i.filter((function(e){return e.name===r.name})),t[n].image.blob=o[0].blob,r.frontalFaceImage.blob&&(t[n].frontalFaceImage.blob=o[1].blob),!N||!N.key){e.next=12;break}return a=N.key,e.next=7,vM.encrypt({blob:o[0].blob,key:a});case 7:if(t[n].image.encrypted=e.sent,!r.frontalFaceImage.blob){e.next=12;break}return e.next=11,vM.encrypt({blob:o[1].blob,key:a});case 11:t[n].frontalFaceImage.encrypted=e.sent;case 12:return e.abrupt("return",0);case 13:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=EM(regeneratorRuntime.mark((function e(){var t,n,o,i,c,u,l,d,f,h,m,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=me.current.steps,n=t[me.current.curStepIndex],Ne({tag:"selfie",event:"user_activity.".concat(n.name),log:{time_capture_in_seconds:((performance.now()-Se.current)/1e3).toFixed(1)}}),me.current.curStepIndex++,Se.current=performance.now(),_e.enable&&"each_gesture"===_e.limit_for&&(Oe.current=0),me.current.curStepIndex!==t.length){e.next=36;break}if(xe.enable&&k(""),!p){e.next=36;break}return Pe.enable&&Pe.framesBatchLength>0&&ke.current.length%Pe.framesBatchLength>0&&(I(ke.current.slice(ke.current.length%Pe.framesBatchLength*-1).map((function(e){return{base64:e.base64,label:e.label,index:e.index}}))),r&&kF(ke.current.slice(ke.current.length%Pe.framesBatchLength*-1),re)),Ne({tag:"selfie",event:"user_activity",log:{time_capture_in_seconds:((Date.now()-Ee.current)/1e3).toFixed(1)}}),S(),e.next=14,s();case 14:if(r){e.next=34;break}if(l=t.filter((function(e){return e.name!==AF.FRONTAL})).map((function(e){return{name:e.name,image:{blob:e.image.blob,encrypted:e.image.encrypted}}})),d=t.filter((function(e){return e.name!==AF.FRONTAL})).map((function(e){return e.frontalFaceImage.blob})).filter((function(e){return null!==e})),f=t.filter((function(e){return e.name!==AF.FRONTAL})).map((function(e){return e.frontalFaceImage.encrypted})).filter((function(e){return e&&e.hex})),h=null===(o=t.find((function(e){return e.name===AF.FRONTAL})))||void 0===o||null===(i=o.image)||void 0===i?void 0:i.blob,m=null===(c=t.find((function(e){return e.name===AF.FRONTAL})))||void 0===c||null===(u=c.image)||void 0===u?void 0:u.encrypted,!h||!g){e.next=26;break}return e.next=23,TL.scaleImage(h,{minSize:g});case 23:e.t0=e.sent,e.next=27;break;case 26:e.t0=null;case 27:v=e.t0,h&&d.push(h),m&&f.push(m),Ne({tag:"result",event:"sdk_mode.liveness",log:{result_object:{steps:l,frontalFaces:d,frontalScaledImage:v}}}),p({steps:l,frontalFaces:d,frontalFacesEncrypted:f,frontalScaledImage:v,capturedFrames:ke.current}),e.next=36;break;case 34:return e.next=36,a();case 36:ae();case 37:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=eU((function(){var e=me.current,t=e.curStepIndex,r=e.steps,n=r[t],o=null!==(null==n?void 0:n.image.blob),i=null!==(null==n?void 0:n.frontalFaceImage.blob),a=r.filter((function(e){return e.frontalFaceImage.blob})).length,s=!1;return o&&(i||![1].includes(t)||a>=1)?(ce.current=!1,c(),s=!0):ce.current=!(!o||i),q(!1),s}),v);function l(e,t,r,n){return d.apply(this,arguments)}function d(){return(d=EM(regeneratorRuntime.mark((function e(t,r,n,o){var i,a,s,l,d,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=me.current,a=i.curStepIndex,s=i.steps,!(a<s.length)){e.next=24;break}if(l=s[a],!cF({faceDirection:t,curStep:l})){e.next=5;break}return e.abrupt("return");case 5:if(t!==AF.FRONTAL||null!==l.frontalFaceImage.blurScore&&!lO.hasBetterBlurScore(n,l.frontalFaceImage.blurScore)){e.next=13;break}return l.frontalFaceImage.blurScore=n,e.next=9,fO.takePicture({canvas:r});case 9:d=e.sent,l.frontalFaceImage.blob=d,l.frontalFaceImage.leftRightScore=o,ce.current&&(ce.current=!1,c());case 13:if(l.name!==t||null!==l.image.blurScore&&!lO.hasBetterBlurScore(n,l.image.blurScore)){e.next=24;break}return q(!0),l.image.blurScore=n,e.next=18,fO.takePicture({canvas:r});case 18:f=e.sent,l.image.blob=f,l.image.leftRightScore=o,l.image.objUrl&&URL.revokeObjectURL(l.image.objUrl),l.image.objUrl=URL.createObjectURL(f),u();case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e,t,r){return m.apply(this,arguments)}function m(){return(m=EM(regeneratorRuntime.mark((function e(t,r,n){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!0===Ye.current&&t===AF.FRONTAL&&Je.current.length<3)){e.next=5;break}return e.next=3,fO.takePicture({canvas:r});case 3:o=e.sent,Je.current.push({blob:o,leftRightScore:n});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e,t,n,o){if(ke.current.length&&Date.now()-ke.current[ke.current.length-1].time<Pe.framesIntervalTime)return null;if(Pe.enable&&!o){var i=e.topLeft,a=e.bottomRight,s=[].concat(PM(i),PM(a)),c=[];[i,a].forEach((function(e){c=[].concat(PM(c),[e[0]/PO.SIZE*t.width,e[1]/PO.SIZE*t.height])}));var u=BF(e,0===ke.current.length),l=u.score,d=u.time,f=t.toDataURL("image/jpeg",.8);return ke.current.push({label:"portrait",base64:f.split(",")[1],landmarks:n,original_landmarks:n.map((function(e){return[e[0]/PO.SIZE*t.width,e[1]/PO.SIZE*t.height]})),score:l,time:d,index:ke.current.length,bbox:s,original_bbox:c}),Pe.framesBatchLength>0&&ke.current.length%Pe.framesBatchLength==0&&I&&(I(ke.current.slice(-Pe.framesBatchLength).map((function(e){return{base64:e.base64,label:e.label,index:e.index}}))),r&&kF(ke.current.slice(-Pe.framesBatchLength),re,ke.current.length===Pe.framesBatchLength)),l}return null}function b(e){if(!_e.enable||null===e||!G)return!0;var t=_e.web_warning_threshold,r=_e.web_terminate_threshold,n=_e.max_warning_time;return e<t||(e<r&&Oe.current<n?(Oe.current++,Oe.current===n?(we(AM(AM({},Ue.liveness_terminated_face_tracking),{},{duration:Ae})),Ne({tag:"selfie",event:"sdk_ui.show_alert",log:{alert:"liveness_terminated_face_tracking"}})):we(AM(AM({},Ue.liveness_too_fast),{},{duration:1500})),!0):(we(AM(AM({},Ue.liveness_terminated),{},{duration:Ae})),Ne({tag:"selfie",event:"sdk_ui.show_alert",log:{alert:"liveness_terminated"}}),Me(),!1))}function w(e){if(Te.enable&&G){var t=Te.max_time_ms;Le.current&&e||(Le.current={time:Date.now(),frame:0}),e&&Le.current.frame++;var r=Le.current.time;e&&Date.now()-r>=t&&(we(AM(AM({},Ue.liveness_terminated_no_face),{},{duration:Ae})),Ne({tag:"selfie",event:"sdk_ui.show_alert",log:{alert:"liveness_terminated_no_face"}}),Me())}}function C(e,t){return E.apply(this,arguments)}function E(){return(E=EM(regeneratorRuntime.mark((function r(n,a){var s,c,u,d,p,h,g,m,v,k,E,S,B,_,A,x,T,I,P,R,N;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(0!==(null==a?void 0:a.width)&&0!==(null==a?void 0:a.height)){r.next=2;break}return r.abrupt("return");case 2:return s=n.cropX,c=n.cropY,u=n.cropWidth,d=n.cropHeight,a.getContext("2d").drawImage(t,s,c,u,d,-(u*L-u)/2/L,-(d*L-d)/2/L,u,d),p=pe.current.blazefaceModel,r.next=8,lO.calculateBlurScore(a);case 8:return h=r.sent,r.next=11,PO.getModelPredictions({model:p,sCanvas:a});case 11:return g=r.sent,r.next=14,AO.validatePredictions({predictions:g,width:PO.SIZE,height:PO.SIZE});case 14:if(m=r.sent,v=m.error,k=m.fullFace,se.current.image=o,S=null,B=null,_=null,A=me.current,x=A.curStepIndex,T=A.steps,!k){r.next=29;break}return I=T[x],_=k.landmarks,r.next=27,AO.calculateFaceDirection({landmarks:_,getPerfectFrontal:I&&I.name===AF.FRONTAL});case 27:(P=r.sent)&&(S=P.gesture,B=P.leftRightScore);case 29:if(R="no_face"===(null==v?void 0:v.code)||"partial_face"===(null==v?void 0:v.code),N=x<T.length,w(R&&N),null!=v&&v.code&&Ne({tag:"selfie",event:"sdk_ui.show_alert",log:{alert:v.code}}),v&&("face_too_small"!==v.code||![AF.DOWN,AF.UP,AF.LEFT,AF.RIGHT].includes(S))){r.next=54;break}if(ne||y(g[0],a,_),!ne){r.next=43;break}if(G||(X(!0),Se.current=performance.now(),Ee.current=Date.now()),!b(y(g[0],a,_,x>=T.length))){r.next=41;break}return r.next=41,l(S,a,h,B);case 41:r.next=52;break;case 43:if(![AF.LEFT,AF.RIGHT].includes(S)){r.next=48;break}E=Ue.not_frontal_face,se.current.image=i,r.next=52;break;case 48:if(v){r.next=52;break}return D&&!Ye.current&&0===Je.current.length&&setTimeout((function(){et()}),500),r.next=52,f(S,a,B);case 52:r.next=55;break;case 54:x<T.length&&(E=Ue[v.code],se.current.image=i);case 55:Ce(E),-1!==e&&(e=requestAnimationFrame((function(){return C(n,a)})));case 57:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function B(){return(B=EM(regeneratorRuntime.mark((function e(){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=fO.analyzeVideoAndWindowSizes(t,se.current),n=r.cropWidth,o=r.cropHeight,(i=document.createElement("canvas")).width=n,i.height=o,(a=i.getContext("2d")).translate(n,0),a.scale(-1*L,1*L),C(r,i);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return F&&de&&setTimeout((function(){!function(){B.apply(this,arguments)}()}),R),function(){cancelAnimationFrame(e),e=-1}}),[R,F,Z,ne,re,r,o,i,p,h,g,v,Pe,S,_e,xe.enable,k,Ce,Ae,Me,Te,G,Ue,de,Ne,I,N,L,et,D]);var tt=me.current,rt=tt.curStepIndex,nt=tt.steps,ot=ov.useMemo((function(){return nt.find((function(e){return e.name===ZT.FaceDirection.FRONTAL}))}),[nt]),it=ce.current?ot:nt[rt],at=it&&G?it.instructions[Z]:null,st=it&&G?it.directionIcon:"",ct=it?it.directionIconAnimation:"";return{countdownToTakePicture:He,cropArea:se,curStepIndex:rt,directionIcon:st,directionIconAnimation:ct,faceDetectionError:be,handleTriggerPassiveMode:et,handleVideoPlayed:Ve,instructions:at,isActiveMode:ne,refVideo:Y,showCountdown:Ge,steps:nt,videoPlayed:F,activeCapturing:H,isFirstValidFrameFound:G,warmupDone:de}}var PF=(SM(fF={},ZT.FaceDirection.LEFT,90),SM(fF,ZT.FaceDirection.RIGHT,270),SM(fF,ZT.FaceDirection.UP,180),SM(fF,ZT.FaceDirection.DOWN,0),fF),RF=tw(["0%{opacity:0.15;}50%{opacity:0.3;}100%{opacity:1;}"]),NF=Zb.div(pF||(pF=TM(["\n width: 200px;\n height: 200px;\n position: relative;\n transform: scale(0.48);\n\n .top,\n .right,\n .bottom,\n .left {\n position: absolute;\n }\n\n .top {\n top: 0;\n left: 50%;\n transform: rotate(","deg) translateX(-50%);\n }\n\n .right {\n right: 0;\n top: 50%;\n transform: rotate(","deg) translateX(-50%);\n }\n\n .bottom {\n bottom: 0;\n left: 50%;\n transform: rotate(","deg) translateX(50%);\n }\n\n .left {\n left: 0;\n top: 50%;\n transform: rotate(","deg) translateX(50%);\n }\n"])),PF[ZT.FaceDirection.DOWN],PF[ZT.FaceDirection.LEFT],PF[ZT.FaceDirection.UP],PF[ZT.FaceDirection.RIGHT]),OF=Zb.div(hF||(hF=TM(["\n width: 70px;\n transform: rotate(","deg);\n"])),(function(e){var t,r=e.direction;return null!==(t=PF[r])&&void 0!==t?t:0})),LF=Zb.span(gF||(gF=TM(["\n display: flex;\n margin: 4px 0;\n width: 100%;\n height: 15px;\n animation: "," 1s infinite;\n animation-direction: alternate;\n\n &::before,\n &::after {\n content: '';\n height: 100%;\n width: 50%;\n background: rgba(255, 255, 255, 0.8);\n }\n\n &::before {\n transform: skewY(32deg);\n }\n\n &::after {\n width: 50%;\n transform: skewY(-32deg);\n }\n"])),RF),MF=Zb(LF)(mF||(mF=TM(["\n animation-delay: 0s;\n"]))),DF=Zb(LF)(vF||(vF=TM(["\n animation-delay: 0.5s;\n"]))),UF=Zb(LF)(yF||(yF=TM(["\n animation-delay: 1s;\n"])));function jF(e){var t=e.type;return t!==ZT.FaceDirection.FRONTAL?ov.createElement(OF,{direction:t},ov.createElement(MF,null),ov.createElement(DF,null),ov.createElement(UF,null)):ov.createElement(NF,null,ov.createElement(OF,{className:"top"},ov.createElement(MF,null),ov.createElement(DF,null),ov.createElement(UF,null)),ov.createElement(OF,{className:"right"},ov.createElement(MF,null),ov.createElement(DF,null),ov.createElement(UF,null)),ov.createElement(OF,{className:"bottom"},ov.createElement(MF,null),ov.createElement(DF,null),ov.createElement(UF,null)),ov.createElement(OF,{className:"left"},ov.createElement(MF,null),ov.createElement(DF,null),ov.createElement(UF,null)))}jF.propTypes={type:Tv.oneOf([ZT.FaceDirection.LEFT,ZT.FaceDirection.RIGHT,ZT.FaceDirection.UP,ZT.FaceDirection.FRONTAL])},jF.defaultProps={type:ZT.FaceDirection.LEFT};var FF,VF=ZT.ErrorDuration;function zF(e){var t=e.children,r=e.errorMsg,n=e.className;return ov.isValidElement(t)?r?ov.createElement("div",{className:n},ov.cloneElement(t,{errorMsg:r})):null:r?ov.createElement("div",{className:n},r):null}function KF(e){var t=e.children,r=e.className,n=e.error,o=ov.useRef(0),i=ov.useRef(""),a=nN.useSDKSettings().lang,s=ov.useRef(VF.SHORT),c=n||{},u=c.msg,l=c.duration,d=void 0===l?VF.SHORT:l,f=null==u?void 0:u[a];return Date.now()-o.current>=s.current?(o.current=Date.now(),s.current=d,i.current=f,zF({children:t,errorMsg:f,className:r})):zF({children:t,errorMsg:i.current,className:r})}KF.propTypes={children:Tv.node,className:Tv.string},KF.defaultProps={className:""};var HF=Zb.circle(FF||(FF=TM(["\n transition: stroke-dashoffset 0.4s;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n"])));function qF(e){var t=e.className,r=e.style,n=e.radius,o=e.strokeWidth,i=e.progress,a=e.hasError,s=e.activeColor,c=e.innerPadding,u=e.outsideRingColor,l=e.outsideRingOpacity,d=e.insideRingColor,f=e.insideRingWidth,p=e.insideRingStrokeDash,h=e.errorRingWidth,g=e.errorRingColor,m=e.dashedRingColor,v=e.dashedRingOpacity,y=e.dashedRingWidth,b=e.dashedRingLineThick,w=e.dashedRingLineSpacing,C=e.dashedInsideRingColor,k=e.dashedInsideRingWidth,E=e.showOutsideRing,S=e.showInsideRing,B=e.showDashedRing,_=2*n,A=2*n,x=n-2*o,T=2*Math.PI*x,I=T-i/100*T,P=x-y/2-o/2-c,R=2*Math.PI*P,N=R-i/100*R,O=P-k/2-y/2,L=2*Math.PI*O,M=L-i/100*L,D=O-f/2-k/2,U=O-h/2-k/2;return ov.createElement("svg",{className:t,style:r,width:_,height:A,viewBox:"0 0 ".concat(_," ").concat(A),fill:"none",xmlns:"http://www.w3.org/2000/svg"},E?ov.createElement(ov.Fragment,null,ov.createElement("circle",{"data-testid":"outsideRing",opacity:l,cx:n,cy:n,r:x,stroke:u}),ov.createElement(HF,{"data-testid":"outsideAnimateRing",cx:n,cy:n,r:x,stroke:s,strokeWidth:o,strokeLinecap:"round",strokeDasharray:"".concat(T," ").concat(T),style:{strokeDashoffset:I}})):null,B?ov.createElement(ov.Fragment,null,ov.createElement("circle",{"data-testid":"dashedRing",opacity:v,cx:n,cy:n,r:P,stroke:m,strokeWidth:y,strokeDasharray:"".concat(b," ").concat(w)}),ov.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse"},ov.createElement("circle",{cx:n,cy:n,r:P,stroke:s,strokeWidth:y,strokeDasharray:"".concat(b," ").concat(w)})),ov.createElement("g",{mask:"url(#mask0)"},ov.createElement(HF,{"data-testid":"dashedAnimateRing",cx:n,cy:n,r:P,stroke:s,strokeWidth:y,strokeDasharray:"".concat(R," ").concat(R),style:{strokeDashoffset:N}})),ov.createElement("circle",{"data-testid":"dashedInsideRing",opacity:v,cx:n,cy:n,r:O,stroke:C,strokeWidth:k}),ov.createElement(HF,{"data-testid":"dashedInsideAnimateRing",cx:n,cy:n,r:O,stroke:s,strokeWidth:k,strokeLinecap:"round",strokeDasharray:"".concat(L," ").concat(L),style:{strokeDashoffset:M}})):null,S?ov.createElement("circle",{"data-testid":"insideRing",strokeDasharray:p,cx:n,cy:n,r:D,stroke:d,strokeWidth:f}):null,a?ov.createElement("circle",{"data-testid":"errorRing",strokeDasharray:p,cx:n,cy:n,r:U,stroke:g,strokeWidth:h}):null)}function WF(e){var t=e.className;return ov.createElement("svg",{className:t,width:"320",height:"320",viewBox:"0 0 320 320",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M320 0H0V320H320V0ZM160 296C235.111 296 296 235.111 296 160C296 84.8893 235.111 24 160 24C84.8893 24 24 84.8893 24 160C24 235.111 84.8893 296 160 296Z",fill:"currentColor"}))}function QF(){return(QF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}qF.propTypes={className:Tv.string,style:Tv.shape({}),radius:Tv.number,strokeWidth:Tv.number,progress:Tv.number,hasError:Tv.bool,activeColor:Tv.string,innerPadding:Tv.number,outsideRingColor:Tv.string,outsideRingOpacity:Tv.number,insideRingColor:Tv.string,insideRingWidth:Tv.number,insideRingStrokeDash:Tv.string,errorRingColor:Tv.string,errorRingWidth:Tv.number,dashedRingColor:Tv.string,dashedRingOpacity:Tv.number,dashedRingWidth:Tv.number,dashedRingLineThick:Tv.number,dashedRingLineSpacing:Tv.number,dashedInsideRingColor:Tv.string,dashedInsideRingWidth:Tv.number,showOutsideRing:Tv.bool,showDashedRing:Tv.bool,showInsideRing:Tv.bool},qF.defaultProps={className:"",style:null,radius:160,strokeWidth:3,progress:0,hasError:!1,activeColor:"#0092ff",innerPadding:5,outsideRingColor:"#f2f6f9",outsideRingOpacity:.1,insideRingColor:"#f2f6f9",insideRingWidth:3,insideRingStrokeDash:"0",errorRingColor:"#df0000",errorRingWidth:3,dashedRingColor:"#ffffff",dashedRingOpacity:.3,dashedRingWidth:10,dashedRingLineThick:1,dashedRingLineSpacing:6,dashedInsideRingColor:"#ffffff",dashedInsideRingWidth:0,showOutsideRing:!0,showDashedRing:!0,showInsideRing:!0},WF.propTypes={className:Tv.string},WF.defaultProps={className:""};var GF,XF,YF="undefined"!=typeof window?ov.useLayoutEffect:ov.useEffect,$F={popupContent:{tooltip:{position:"absolute",zIndex:999},modal:{position:"relative",margin:"auto"}},popupArrow:{height:"8px",width:"16px",position:"absolute",background:"transparent",color:"#FFF",zIndex:-1},overlay:{tooltip:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",zIndex:999},modal:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",display:"flex",zIndex:999}}},ZF=["top left","top center","top right","right top","right center","right bottom","bottom left","bottom center","bottom right","left top","left center","left bottom"],JF=function(e,t,r,n,o){var i=o.offsetX,a=o.offsetY,s=n?8:0,c=r.split(" "),u=e.top+e.height/2,l=e.left+e.width/2,d=t.height,f=t.width,p=u-d/2,h=l-f/2,g="",m="0%",v="0%";switch(c[0]){case"top":p-=d/2+e.height/2+s,g="rotate(180deg) translateX(50%)",m="100%",v="50%";break;case"bottom":p+=d/2+e.height/2+s,g="rotate(0deg) translateY(-100%) translateX(-50%)",v="50%";break;case"left":h-=f/2+e.width/2+s,g=" rotate(90deg) translateY(50%) translateX(-25%)",v="100%",m="50%";break;case"right":h+=f/2+e.width/2+s,g="rotate(-90deg) translateY(-150%) translateX(25%)",m="50%"}switch(c[1]){case"top":p=e.top,m=e.height/2+"px";break;case"bottom":p=e.top-d+e.height,m=d-e.height/2+"px";break;case"left":h=e.left,v=e.width/2+"px";break;case"right":h=e.left-f+e.width,v=f-e.width/2+"px"}return{top:p="top"===c[0]?p-a:p+a,left:h="left"===c[0]?h-i:h+i,transform:g,arrowLeft:v,arrowTop:m}},eV=0,tV=ov.forwardRef((function(e,t){var r=e.trigger,n=void 0===r?null:r,o=e.onOpen,i=void 0===o?function(){}:o,a=e.onClose,s=void 0===a?function(){}:a,c=e.defaultOpen,u=void 0!==c&&c,l=e.open,d=void 0===l?void 0:l,f=e.disabled,p=void 0!==f&&f,h=e.nested,g=void 0!==h&&h,m=e.closeOnDocumentClick,v=void 0===m||m,y=e.repositionOnResize,b=void 0===y||y,w=e.closeOnEscape,C=void 0===w||w,k=e.on,E=void 0===k?["click"]:k,S=e.contentStyle,B=void 0===S?{}:S,_=e.arrowStyle,A=void 0===_?{}:_,x=e.overlayStyle,T=void 0===x?{}:x,I=e.className,P=void 0===I?"":I,R=e.position,N=void 0===R?"bottom center":R,O=e.modal,L=void 0!==O&&O,M=e.lockScroll,D=void 0!==M&&M,U=e.arrow,j=void 0===U||U,F=e.offsetX,V=void 0===F?0:F,z=e.offsetY,K=void 0===z?0:z,H=e.mouseEnterDelay,q=void 0===H?100:H,W=e.mouseLeaveDelay,Q=void 0===W?100:W,G=e.keepTooltipInside,X=void 0!==G&&G,Y=e.children,$=ov.useState(d||u),Z=$[0],J=$[1],ee=ov.useRef(null),te=ov.useRef(null),re=ov.useRef(null),ne=ov.useRef(null),oe=ov.useRef("popup-"+ ++eV),ie=!!L||!n,ae=ov.useRef(0);YF((function(){return Z?(ne.current=document.activeElement,ye(),ge(),pe()):he(),function(){clearTimeout(ae.current)}}),[Z]),ov.useEffect((function(){"boolean"==typeof d&&(d?se():ce())}),[d,p]);var se=function(e){Z||p||(J(!0),setTimeout((function(){return i(e)}),0))},ce=function(e){var t;Z&&!p&&(J(!1),ie&&(null===(t=ne.current)||void 0===t||t.focus()),setTimeout((function(){return s(e)}),0))},ue=function(e){null==e||e.stopPropagation(),Z?ce(e):se(e)},le=function(e){clearTimeout(ae.current),ae.current=setTimeout((function(){return se(e)}),q)},de=function(e){null==e||e.preventDefault(),ue()},fe=function(e){clearTimeout(ae.current),ae.current=setTimeout((function(){return ce(e)}),Q)},pe=function(){ie&&D&&(document.getElementsByTagName("body")[0].style.overflow="hidden")},he=function(){ie&&D&&(document.getElementsByTagName("body")[0].style.overflow="auto")},ge=function(){var e,t=null==te||null===(e=te.current)||void 0===e?void 0:e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),r=Array.prototype.slice.call(t)[0];null==r||r.focus()};ov.useImperativeHandle(t,(function(){return{open:function(){se()},close:function(){ce()},toggle:function(){ue()}}}));var me,ve,ye=function(){if(!ie&&Z&&(null==ee?void 0:ee.current)&&(null==ee?void 0:ee.current)&&(null==te?void 0:te.current)){var e,t,r=function(e,t,r,n,o,i){var a=o.offsetX,s=o.offsetY,c={arrowLeft:"0%",arrowTop:"0%",left:0,top:0,transform:"rotate(135deg)"},u=0,l=function(e){var t={top:0,left:0,width:window.innerWidth,height:window.innerHeight};if("string"==typeof e){var r=document.querySelector(e);null!==r&&(t=r.getBoundingClientRect())}return t}(i),d=Array.isArray(r)?r:[r];for((i||Array.isArray(r))&&(d=[].concat(d,ZF));u<d.length;){var f={top:(c=JF(e,t,d[u],n,{offsetX:a,offsetY:s})).top,left:c.left,width:t.width,height:t.height};if(!(f.top<=l.top||f.left<=l.left||f.top+f.height>=l.top+l.height||f.left+f.width>=l.left+l.width))break;u++}return c}(ee.current.getBoundingClientRect(),te.current.getBoundingClientRect(),N,j,{offsetX:V,offsetY:K},X);te.current.style.top=r.top+window.scrollY+"px",te.current.style.left=r.left+window.scrollX+"px",j&&re.current&&(re.current.style.transform=r.transform,re.current.style.setProperty("-ms-transform",r.transform),re.current.style.setProperty("-webkit-transform",r.transform),re.current.style.top=(null===(e=A.top)||void 0===e?void 0:e.toString())||r.arrowTop,re.current.style.left=(null===(t=A.left)||void 0===t?void 0:t.toString())||r.arrowLeft)}};void 0===(ve=C)&&(ve=!0),ov.useEffect((function(){if(ve){var e=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){"Escape"===e.key&&me(e)}));return document.addEventListener("keyup",e),function(){ve&&document.removeEventListener("keyup",e)}}}),[me=ce,ve]),function(e,t){void 0===t&&(t=!0),ov.useEffect((function(){if(t){var r=function(t){if(9===t.keyCode){var r,n=null==e||null===(r=e.current)||void 0===r?void 0:r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),o=Array.prototype.slice.call(n);if(1===o.length)return void t.preventDefault();var i=o[0],a=o[o.length-1];t.shiftKey&&document.activeElement===i?(t.preventDefault(),a.focus()):document.activeElement===a&&(t.preventDefault(),i.focus())}};return document.addEventListener("keydown",r),function(){t&&document.removeEventListener("keydown",r)}}}),[e,t])}(te,Z&&ie),function(e,t){void 0===t&&(t=!0),ov.useEffect((function(){if(t){var r=function(){e()};return window.addEventListener("resize",r),function(){t&&window.removeEventListener("resize",r)}}}),[e,t])}(ye,b),function(e,t,r){void 0===r&&(r=!0),ov.useEffect((function(){if(r){var n=function(r){var n=Array.isArray(e)?e:[e],o=!1;n.forEach((function(e){e.current&&!e.current.contains(r.target)||(o=!0)})),r.stopPropagation(),o||t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),function(){r&&(document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n))}}}),[e,t,r])}(n?[te,ee]:[te],ce,v&&!g);var be,we=function(){return ov.createElement("div",Object.assign({},(e=ie?$F.popupContent.modal:$F.popupContent.tooltip,t={className:"popup-content "+(""!==P?P.split(" ").map((function(e){return e+"-content"})).join(" "):""),style:QF({},e,B,{pointerEvents:"auto"}),ref:te,onClick:function(e){e.stopPropagation()}},!L&&E.indexOf("hover")>=0&&(t.onMouseEnter=le,t.onMouseLeave=fe),t),{key:"C",role:ie?"dialog":"tooltip",id:oe.current}),j&&!ie&&ov.createElement("div",{ref:re,style:$F.popupArrow},ov.createElement("svg",{"data-testid":"arrow",className:"popup-arrow "+(""!==P?P.split(" ").map((function(e){return e+"-arrow"})).join(" "):""),viewBox:"0 0 32 16",style:QF({position:"absolute"},A)},ov.createElement("path",{d:"M16 0l16 16H0z",fill:"currentcolor"}))),Y&&"function"==typeof Y?Y(ce,Z):Y);var e,t},Ce=!(E.indexOf("hover")>=0),ke=ie?$F.overlay.modal:$F.overlay.tooltip,Ee=[Ce&&ov.createElement("div",{key:"O","data-testid":"overlay","data-popup":ie?"modal":"tooltip",className:"popup-overlay "+(""!==P?P.split(" ").map((function(e){return e+"-overlay"})).join(" "):""),style:QF({},ke,T,{pointerEvents:v&&g||ie?"auto":"none"}),onClick:v&&g?ce:void 0,tabIndex:-1},ie&&we()),!ie&&we()];return ov.createElement(ov.Fragment,null,function(){for(var e={key:"T",ref:ee,"aria-describedby":oe.current},t=Array.isArray(E)?E:[E],r=0,o=t.length;r<o;r++)switch(t[r]){case"click":e.onClick=ue;break;case"right-click":e.onContextMenu=de;break;case"hover":e.onMouseEnter=le,e.onMouseLeave=fe;break;case"focus":e.onFocus=le,e.onBlur=fe}if("function"==typeof n){var i=n(Z);return!!n&&ov.cloneElement(i,e)}return!!n&&ov.cloneElement(n,e)}(),Z&&XT.createPortal(Ee,(null===(be=document.getElementById("popup-root"))&&((be=document.createElement("div")).setAttribute("id","popup-root"),document.body.appendChild(be)),be)))})),rV=ew(GF||(GF=TM(["\n .popup-content {\n margin: auto;\n background: #fff;\n width: 100%;\n padding: 5px;\n border: 1px solid #d7d7d7;\n max-width: 568px;\n border-radius: 10px;\n }\n\n [role=tooltip].popup-content {\n width: 200px;\n box-shadow: 0 0 3px rgba(0, 0, 0, .16);\n border-radius: 5px\n }\n\n .popup-overlay {\n background: rgba(0, 0, 0, .5);\n padding: 10px;\n }\n\n [data-popup=tooltip].popup-overlay {\n background: transparent\n }\n\n .popup-arrow {\n -webkit-filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .16));\n filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .16));\n color: #fff;\n stroke-width: 2px;\n stroke: #d7d7d7;\n stroke-dasharray: 30px;\n stroke-dashoffset: -54px;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0\n }\n"]))),nV=["open","children","overlayStyle"],oV=function(e){var t=e.open,r=e.children,n=e.overlayStyle,o=xM(e,nV);return ov.createElement(ov.Fragment,null,ov.createElement(tV,BM({overlayStyle:AM(AM({},n),{},{zIndex:2e3}),closeOnDocumentClick:!1,closeOnEscape:!1,modal:!0,open:t},o),r),ov.createElement(rV,null))};oV.propTypes={open:Tv.bool,children:Tv.node,overlayStyle:Tv.shape({})},oV.defaultProps={open:!1,children:null,overlayStyle:{}};var iV,aV,sV,cV,uV,lV,dV,fV,pV,hV,gV,mV,vV,yV,bV,wV,CV={WARMUP_INTRO:{en:"Warming up... Please wait a moment",vi:"Đang khởi động, vui lòng chờ trong giây lát..."}},kV=Zb.div(XF||(XF=TM(["\n font-size: 18px;\n text-align: center;\n padding: 10px;\n"]))),EV=function(e){var t=e.contentStyle,r=nN.useSDKSettings(),n=r.lang,o=r.warmupMessage,i=o?o[n]:CV.WARMUP_INTRO[n];return ov.createElement(oV,{open:!0,contentStyle:t},ov.createElement(kV,{className:"warmup-message"},i))};EV.propTypes={contentStyle:Tv.shape({})},EV.defaultProps={contentStyle:{}};var SV=Db(["z-index:",";color:#ffffff;"],1020),BV=Zb.div(iV||(iV=TM(["\n ","\n"])),SV),_V=Zb(KF)(aV||(aV=TM(["\n ","\n ","\n ","\n ","\n font-size: 18px;\n background: #ea3223;\n color: #fff;\n padding: 5px 10px;\n border-radius: 3px;\n position: absolute;\n white-space: pre-wrap;\n text-align: center;\n max-width: 80%;\n"])),SV,(function(e){var t=e.top;return t&&Db(["top:","px;"],t)}),(function(e){var t=e.bottom;return t&&Db(["bottom:","px;"],t)}),(function(e){return e.centerY&&Db(["top:50%;transform:translateY(-50%);"])})),AV=Zb(BV)(sV||(sV=TM(["\n ","\n font-size: 18px;\n background: #ea3223;\n color: #fff;\n padding: 5px 10px;\n border-radius: 3px;\n position: absolute;\n left: 50%;\n transform: translate(-50%, 0);\n white-space: nowrap;\n"])),(function(e){var t=e.top;return t&&Db(["top:","px;"],t)})),xV=Zb(BV)(cV||(cV=TM(["\n position: absolute;\n ","\n ","\n font-size: ",";\n text-shadow: 2px 2px 4px #000000;\n"])),(function(e){var t=e.top;return t&&Db(["top:","px;"],t)}),(function(e){var t=e.bottom;return t&&Db(["bottom:","px;"],t)}),(function(){return YM.isMobile?"20px":"22px"})),TV=Zb.div(uV||(uV=TM(["\n height: ",";\n position: absolute;\n ","\n ","\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: ",";\n"])),(function(){return YM.isMobile?"50px":"70px"}),(function(e){var t=e.top;return t&&Db(["top:","px;"],t)}),(function(e){var t=e.bottom;return t&&Db(["bottom:","px;"],t)}),1020),IV=Zb.div(lV||(lV=TM(["\n width: ",";\n height: ",";\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 2px solid #ffffff;\n font-size: 16px;\n color: #fff;\n font-weight: 700;\n\n & + & {\n margin-left: 10px;\n }\n\n ","\n img {\n width: 100%;\n margin: 0;\n border-radius: 50%;\n }\n"])),(function(){return YM.isMobile?"40px":"50px"}),(function(){return YM.isMobile?"40px":"50px"}),(function(e){return!e.active&&Db(["opacity:0.6;"])})),PV=Zb.div(dV||(dV=TM(["\n color: #ffffff;\n height: 70px;\n position: absolute;\n bottom: 0;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: ",";\n"])),1020),RV=Zb.div(fV||(fV=TM(["\n cursor: pointer;\n text-align: center;\n width: 50px;\n\n img {\n width: 100%;\n }\n"]))),NV=Zb.div(pV||(pV=TM(["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n color: #ffffff;\n font-size: 140px;\n opacity: 0.6;\n"]))),OV=Zb.div(hV||(hV=TM(["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))),LV=Zb(qF)(gV||(gV=TM(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"]))),MV=Zb(WF)(mV||(mV=TM(["\n width: 100%;\n height: 100%;\n vertical-align: middle;\n margin: 0;\n color: ",";\n"])),(function(e){var t=e.color;return null!=t?t:"rgba(0, 0, 0, 0.6)"})),DV=Zb.div(vV||(vV=TM(["\n position: absolute;\n z-index: -1;\n background: rgba(223, 0, 0, 0.2);\n border-radius: 50%;\n width: 86%;\n height: 86%;\n top: 7%;\n left: 7%;\n"]))),UV=tw(["from{opacity:1;}to{opacity:0;}"]),jV=Zb.div(yV||(yV=TM(["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n z-index: -1;\n background: rgba(255, 255, 255, 0.3);\n animation: "," 1s infinite;\n border-radius: 50%;\n"])),UV),FV=YM.isMobile?{width:640}:null,VV={background:"#000000",opacity:.6};function zV(e){var t=e.apiCheck,r=e.mode,n=e.onLivenessDetectionDone,o=e.onClose,i=e.onError,a=e.captureFrameSettings,s=e.onFramesCaptured,c=e.frontCamera,u=e.customDirectionIcon,l=e.customStepTimeConstraints,d=e.onProcessing,f=e.customErrors,p=e.livenessSettings,h=e.apiCredentials,g=e.outputEncryptionSettings,m=e.cameraScale,v=e.defaultCameraId,y=e.passiveModeAuto,b=UN.useAsset("bg_camera_mask.png"),w=UN.useAsset("bg_camera_mask_red.png"),C=IM(ov.useState({}),2),k=C[0],E=C[1],S=k.yFaceDetectionError,B=k.yFaceVerificationStepsWrapper,_=IM(ov.useState(""),2),A=_[0],x=_[1],T=ov.useCallback((function(e){var t=e.lostY,r=e.height,n=t+25,o=n+30;return E({yFaceDetectionError:n,yFaceVerificationStepsWrapper:o+r+20}),{y:Math.floor(o)}}),[]),I=IF({apiCheck:t,mode:r,bgCameraMask:b,bgCameraMaskRed:w,surroundStyle:VV,onLivenessDetectionDone:n,onError:i,cropAreaDimension:T,customDirectionIcon:u,captureFrameSettings:a,onFramesCaptured:s,livenessSettings:p,setRemainingTime:x,customStepTimeConstraints:l,onProcessing:d,customErrors:f,apiCredentials:h,outputEncryptionSettings:g,cameraScale:m,passiveModeAuto:y}),P=I.countdownToTakePicture,R=I.cropArea,N=I.curStepIndex,O=I.directionIcon,L=I.faceDetectionError,M=I.handleTriggerPassiveMode,D=I.handleVideoPlayed,U=I.instructions,j=I.isActiveMode,F=I.refVideo,V=I.showCountdown,z=I.steps,K=I.videoPlayed,H=I.activeCapturing,q=I.isFirstValidFrameFound,W=I.warmupDone;return ov.createElement(wD,{frontCamera:c,onVideoPlayed:D,onClose:o,flipHorizontal:c,ref:F,videoSettings:FV,onError:i,scale:m,defaultCameraId:v},!W&&ov.createElement(EV,null),K?ov.createElement(ov.Fragment,null,ov.createElement(_V,{top:S-15,className:"face-detection-error",error:L}),R.current?ov.createElement(_D,{x:"".concat(R.current.x,"px"),y:"".concat(R.current.y,"px"),width:"".concat(R.current.width,"px"),height:"".concat(R.current.height,"px"),surroundStyle:R.current.surroundStyle},ov.createElement(MV,null),ov.createElement(LV,{progress:N/z.length*100,hasError:!!L,showDashedRing:!1,showOutsideRing:!1,insideRingWidth:1,errorRingWidth:1,insideRingStrokeDash:"2"}),V?ov.createElement(NV,null,P):null,j?ov.createElement(ov.Fragment,null,ov.createElement(OV,null,O),H&&ov.createElement(jV,null)):null,L&&ov.createElement(DV,null)):null,j?ov.createElement(ov.Fragment,null,A&&ov.createElement(AV,{top:B-30},A),U?ov.createElement(xV,{top:B+5,className:"instructions"},U):null,q&&ov.createElement(TV,{top:B+35},z.map((function(e,t){var r=e.name,n=e.image.objUrl;return ov.createElement(IV,{key:r,active:N>=t,className:"step-item"},n?ov.createElement("img",{src:n,alt:""}):ov.createElement("span",null,t+1))})))):ov.createElement(ov.Fragment,null,L||y?null:ov.createElement(PV,null,ov.createElement(RV,{onClick:M},ov.createElement(AD,null))))):null)}zV.propTypes={apiCheck:Tv.bool,mode:Tv.string,onLivenessDetectionDone:Tv.func,onClose:Tv.func,onError:Tv.func,captureFrameSettings:Tv.shape({}),onFramesCaptured:Tv.func,frontCamera:Tv.bool,customDirectionIcon:Tv.shape({}),customStepTimeConstraints:Tv.shape({}),onProcessing:Tv.func,customErrors:Tv.shape({}),livenessSettings:Tv.shape({}),apiCredentials:Tv.shape({accessKey:Tv.string,secretKey:Tv.string,apiUrl:Tv.string}),outputEncryptionSettings:Tv.shape({}),cameraScale:Tv.number,defaultCameraId:Tv.string,passiveModeAuto:Tv.bool},zV.defaultProps={apiCheck:!1,mode:null,onLivenessDetectionDone:null,onClose:null,onError:function(){},captureFrameSettings:{enable:!1,framesIntervalTime:180,framesBatchLength:0},onFramesCaptured:function(){},frontCamera:!0,customDirectionIcon:(bV={},SM(bV,ZT.FaceDirection.LEFT,ov.createElement(jF,{type:ZT.FaceDirection.LEFT})),SM(bV,ZT.FaceDirection.RIGHT,ov.createElement(jF,{type:ZT.FaceDirection.RIGHT})),SM(bV,ZT.FaceDirection.UP,ov.createElement(jF,{type:ZT.FaceDirection.UP})),SM(bV,ZT.FaceDirection.FRONTAL,ov.createElement(jF,{type:ZT.FaceDirection.FRONTAL})),bV),customStepTimeConstraints:(wV={},SM(wV,ZT.FaceDirection.UP,{delayTime:0}),SM(wV,ZT.FaceDirection.LEFT,{delayTime:0}),SM(wV,ZT.FaceDirection.RIGHT,{delayTime:0}),SM(wV,ZT.FaceDirection.FRONTAL,{delayTime:2e3}),wV),onProcessing:function(){},customErrors:null,livenessSettings:null,apiCredentials:{accessKey:"5767c20d-87aa-4cad-8dbb-f5429f76c34b",secretKey:"c1446919-e60a-4575-a05d-304318212a1b",apiUrl:"https://tv-testing.trustingsocial.com/api"},outputEncryptionSettings:null,cameraScale:1,defaultCameraId:void 0,passiveModeAuto:!1};var KV,HV=Object.freeze({__proto__:null,Text:BV,FaceDetectionError:_V,CountdownTime:AV,FaceVerificationInstructions:xV,FaceVerificationStepsWrapper:TV,StepItem:IV,BottomButtonsOverlay:PV,Button:RV,CountDownOverlay:NV,InstructionsOverlay:OV,default:zV,useLivenessDetection:IF}),qV=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.frontCamera,r=void 0===t||t,n=document.createElement("div");document.body.appendChild(n);var o=function(){XT.unmountComponentAtNode(n)};return new Promise((function(e){XT.render(ov.createElement(nN.SDKSettingsProvider,{value:{lang:"en"}},ov.createElement(wD,{checkCameraMode:!0,frontCamera:r,onVideoPlayed:function(){o(),e(null)},onClose:o,onError:function(t){o(),e(t)}})),n)}))},WV=Zb.input(KV||(KV=TM(["\n display: none;\n"]))),QV=ov.forwardRef((function(e,t){var r=e.useFileBrowse,n=e.accept,o=e.frontCamera,i=e.onCaptureDone,a=e.outputEncryptionSettings,s=ov.useCallback(function(){var e=EM(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.target.files,!i){e.next=8;break}if(n=r[0],!a||!a.key){e.next=7;break}return e.next=6,vM.encrypt({blob:n,key:a.key});case 6:o=e.sent;case 7:i({file:n,encrypted:o});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[i,a]);return ov.createElement(WV,BM({ref:t,type:"file",accept:n,onChange:s},r?{}:{capture:o?"user":"environment"}))}));QV.propTypes={useFileBrowse:Tv.bool,accept:Tv.string,frontCamera:Tv.bool,onCaptureDone:Tv.func,outputEncryptionSettings:Tv.shape({key:Tv.string})},QV.defaultProps={useFileBrowse:!1,accept:"image/*",frontCamera:!1,onCaptureDone:null,outputEncryptionSettings:{key:""}};var GV,XV=Object.freeze({__proto__:null,Camera:AD}),YV="landscape",$V="portrait",ZV=ZT.Errors,JV=Zb.div(GV||(GV=TM(["\n text-align: center;\n font-size: 20px;\n font-weight: 600;\n"])));function ez(e){var t=e.children,r=nN.useSDKSettings().lang,n=ZV.wrong_orientation.msg[r],o=function(){var e=ov.useRef(screen.width>screen.height?YV:$V),t=IM(ov.useState(e.current),2),r=t[0],n=t[1];return ov.useEffect((function(){function e(){screen.width>screen.heightt?n(YV):n($V)}return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),YM.isMobile?{curOrientation:r,initOrientation:e.current}:{curOrientation:"desktop"}}().curOrientation;return ov.createElement(ov.Fragment,null,o===YV&&ov.createElement(oV,{open:!0},ov.createElement(JV,null,n)),(o===$V||"desktop"===o)&&ov.createElement(ov.Fragment,null,t))}var tz=["tracking","clientSettings","livenessSettings","livenessComponent"];function rz(e){var t=e.tracking,r=void 0===t?{enable:!0}:t,n=e.clientSettings,o=e.livenessSettings,i=e.livenessComponent,a=void 0===i?zV:i,s=xM(e,tz),c=iF(n,"data.settings.sdk_settings.active_liveness_settings",o),u=iF(n,"data.settings.sdk_settings.server_log_settings.enable",r.enable);return ov.createElement(ez,null,ov.createElement(LN.SDKTrackingProvider,{value:{tracking:AM(AM({},r),{},{enable:u})}},ov.createElement(a,BM({},s,{livenessSettings:c}))))}function nz(){return(nz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function oz(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function iz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function az(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var sz=ov.createContext(null),cz="entering",uz="entered",lz=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o="exited",n.appearStatus=cz):o=uz:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",n.state={status:o},n.nextCallback=null,n}iz(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==cz&&r!==uz&&(t=cz):r!==cz&&r!==uz||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===cz?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[XT.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),c=n?s.appear:s.enter;e||r?(this.props.onEnter(i,a),this.safeSetState({status:cz},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:uz},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:uz},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:XT.findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:XT.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,oz(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return ov.createElement(sz.Provider,{value:null},"function"==typeof r?r(e,n):ov.cloneElement(ov.Children.only(r),n))},t}(ov.Component);function dz(){}lz.contextType=sz,lz.propTypes={},lz.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:dz,onEntering:dz,onEntered:dz,onExit:dz,onExiting:dz,onExited:dz},lz.UNMOUNTED="unmounted",lz.EXITED="exited",lz.ENTERING=cz,lz.ENTERED=uz,lz.EXITING="exiting";var fz,pz,hz=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.remove(n):"string"==typeof r.className?r.className=az(r.className,n):r.setAttribute("class",az(r.className&&r.className.baseVal||"",n)));var r,n}))},gz=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?(n&&r?r+"-":"")+e:r[e];return{baseClassName:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}iz(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&e.scrollTop,n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)));var r,n}))}(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,i=r.done;this.appliedClasses[t]={},n&&hz(e,n),o&&hz(e,o),i&&hz(e,i)},r.render=function(){var e=this.props,t=(e.classNames,oz(e,["classNames"]));return ov.createElement(lz,nz({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ov.Component);gz.defaultProps={classNames:""},gz.propTypes={};var mz=function(e,t,r){return function(){var n;e.props[t]&&(n=e.props)[t].apply(n,arguments),r()}},vz=((fz={})["out-in"]=function(e){var t=e.current,r=e.changeState;return ov.cloneElement(t,{in:!1,onExited:mz(t,"onExited",(function(){r(cz,null)}))})},fz["in-out"]=function(e){var t=e.current,r=e.changeState,n=e.children;return[t,ov.cloneElement(n,{in:!0,onEntered:mz(n,"onEntered",(function(){r(cz)}))})]},fz),yz=((pz={})["out-in"]=function(e){var t=e.children,r=e.changeState;return ov.cloneElement(t,{in:!0,onEntered:mz(t,"onEntered",(function(){r(uz,ov.cloneElement(t,{in:!0}))}))})},pz["in-out"]=function(e){var t=e.current,r=e.children,n=e.changeState;return[ov.cloneElement(t,{in:!1,onExited:mz(t,"onExited",(function(){n(uz,ov.cloneElement(r,{in:!0}))}))}),ov.cloneElement(r,{in:!0})]},pz),bz=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={status:uz,current:null},t.appeared=!1,t.changeState=function(e,r){void 0===r&&(r=t.state.current),t.setState({status:e,current:r})},t}iz(t,e);var r=t.prototype;return r.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===cz&&"in-out"===e.mode?{status:cz}:!t.current||((r=t.current)===(n=e.children)||ov.isValidElement(r)&&ov.isValidElement(n)&&null!=r.key&&r.key===n.key)?{current:ov.cloneElement(e.children,{in:!0})}:{status:"exiting"};var r,n},r.render=function(){var e,t=this.props,r=t.children,n=t.mode,o=this.state,i=o.status,a=o.current,s={children:r,current:a,changeState:this.changeState,status:i};switch(i){case cz:e=yz[n](s);break;case"exiting":e=vz[n](s);break;case uz:e=a}return ov.createElement(sz.Provider,{value:{isMounting:!this.appeared}},e)},t}(ov.Component);bz.propTypes={},bz.defaultProps={mode:"out-in"};var wz={DEFAULT:"default",ERROR:"error"};function Cz(e){var t=e.className,r=e.width,n=e.height,o=e.type,i=e.strokeStyles,a=e.strokeWidth,s=e.radius,c=e.paddingStyle,u=ov.useMemo((function(){var e;return AM((SM(e={},wz.DEFAULT,{fill:"none",strokeWidth:a,stroke:"#fff",strokeDasharray:"7, 4",opacity:.6}),SM(e,wz.ERROR,{fill:"rgba(234,50,35, 0.1)",strokeWidth:a,stroke:"#ea3223"}),e),i)}),[a,i]),l=s+.8*a,d=u[o];return ov.createElement("svg",{width:r,height:n,className:t},ov.createElement("rect",{x:a/2,y:a/2,rx:s,ry:s,width:r-a,height:n-a,style:d}),ov.createElement("path",{d:"M0,".concat(l," Q0,0 ").concat(l,",0 L0,0 Z"),style:c}),ov.createElement("path",{d:"M0,".concat(n-l," Q0,").concat(n," ").concat(l,",").concat(n," L0,").concat(n," Z"),style:c}),ov.createElement("path",{d:"M".concat(r-l,",").concat(n," Q").concat(r,",").concat(n," ").concat(r,",").concat(n-l," L").concat(r,",").concat(n," Z"),style:c}),ov.createElement("path",{d:"M".concat(r-l,",0 Q").concat(r,",0 ").concat(r,",").concat(l," L").concat(r,",0 Z"),style:c}))}Cz.propTypes={className:Tv.string,width:Tv.number,height:Tv.number,strokeWidth:Tv.number,strokeStyles:Tv.shape({}),type:Tv.oneOf([wz.DEFAULT,wz.ERROR]),radius:Tv.number,paddingStyle:Tv.shape({})},Cz.defaultProps={className:"",width:600,height:400,strokeWidth:2,strokeStyles:{},type:wz.DEFAULT,radius:10,paddingStyle:{fill:"rgba(0, 0, 0, 0.6)"}};var kz,Ez,Sz,Bz,_z,Az,xz,Tz,Iz,Pz,Rz,Nz,Oz,Lz,Mz,Dz,Uz,jz,Fz,Vz=Db([".flipY-exit{animation-name:",";animation-duration:","ms;animation-timing-function:ease-in;}.flipY-enter{animation-name:",";animation-duration:","ms;animation-timing-function:ease-out;}"],tw(["from{transform:perspective(400px);}to{transform:perspective(400px) rotateY(90deg);}"]),500,tw(["from{transform:perspective(400px) rotateY(-90deg);}to{transform:perspective(400px);}"]),500),zz=Object.freeze({__proto__:null,animationDuration:500,default:Vz}),Kz=Db([".slide-horizontal{animation-name:",";animation-iteration-count:infinite;animation-duration:2000ms;animation-timing-function:linear;}.slide-vertical{animation-name:",";animation-iteration-count:infinite;animation-duration:2000ms;animation-timing-function:linear;}"],tw(["from,to{transform:translate3d(-","px,0,0);}50%{transform:translate3d(","px,0,0);}"],20,20),tw(["from,to{transform:translate3d(0,-","px,0);}50%{transform:translate3d(0,","px,0);}"],20,20)),Hz=Object.freeze({__proto__:null,default:Kz}),qz=Db([".blink{animation-name:",";animation-iteration-count:infinite;animation-duration:2000ms;animation-timing-function:linear;}"],tw(["from,to{opacity:1;}50%{opacity:0;}"])),Wz=Object.freeze({__proto__:null,default:qz}),Qz=Zb.div(kz||(kz=TM(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: ","; // must be higher than BASE_Z_INDEX and lower than other layers\n"])),1001),Gz=Db([".splash-enter{animation-name:",";animation-duration:","ms;animation-timing-function:ease-in;}"],tw(["from{background:#000;}to{}"]),300),Xz=Zb.div(Ez||(Ez=TM(["\n ","\n"])),Gz),Yz=function(e){var t=e.keyForTransition,r=void 0===t?0:t;return ov.createElement(Xz,null,ov.createElement(bz,null,ov.createElement(gz,{key:r,timeout:{enter:300,exit:0},classNames:"splash",unmountOnExit:!1},ov.createElement(Qz,null))))},$z=Object.freeze({__proto__:null,default:Yz}),Zz=Db([".spin{animation-name:",";animation-iteration-count:infinite;animation-duration:1000ms;animation-timing-function:linear;}"],tw(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"])),Jz=Object.freeze({__proto__:null,default:Zz}),eK=Object.freeze({__proto__:null,flipY:zz,slide:Hz,blink:Wz,splash:$z,spin:Jz}),tK=Yz,rK=Zb.div(Sz||(Sz=TM(["\n ","\n ","\n"])),Vz,Zz),nK=Zb.img(Bz||(Bz=TM(["\n border-radius: 5px;\n opacity: 0.7;\n height: 38px;\n"]))),oK=Zb.div(_z||(_z=TM(["\n cursor: pointer;\n text-align: center;\n width: ","px;\n\n img {\n width: 100%;\n }\n\n z-index: ",";\n position: fixed;\n\n ","\n"])),60,1020,YM.isMobile?Db(["top:",";"],(function(e){return e.y})):Db(["bottom:","px;"],10)),iK=Zb.div(Az||(Az=TM(["\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n margin: auto;\n width: ","px;\n height: ","px;\n\n img {\n width: 100%;\n }\n\n z-index: ",";\n"])),100,100,1020),aK=Zb.div(xz||(xz=TM(["\n color: #fff;\n text-align: center;\n"]))),sK=Zb.div(Tz||(Tz=TM(["\n transform: translateZ(1000px); // to fix rotating bug on safari\n transform-style: preserve-3d;\n position: absolute;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),cK=Zb.div(Iz||(Iz=TM(["\n display: flex;\n align-items: center;\n"]))),uK=Zb(aK)(Pz||(Pz=TM(["\n font-size: 20px;\n margin-left: 10px;\n color: #fff;\n"]))),lK=Zb(aK)(Rz||(Rz=TM(["\n font-size: 20px;\n margin-left: 10px;\n color: green;\n position: absolute;\n left: 0;\n top: 10px;\n background: white;\n z-index: ",";\n"])),1030),dK=Zb(aK)(Nz||(Nz=TM(["\n position: absolute;\n font-size: 16px;\n text-align: center;\n color: #fff;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),fK=Zb(dK)(Oz||(Oz=TM(["\n background: #ea3223;\n padding: 5px 10px;\n border-radius: 3px;\n"]))),pK=Zb(aK)(Lz||(Lz=TM(["\n position: absolute;\n font-size: 18px;\n text-align: center;\n border-radius: 3px;\n padding: 5px 10px;\n background: #ea3223;\n color: #fff;\n margin: 0 10px;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),hK=(Zb.div(Mz||(Mz=TM(["\n font-size: 18px;\n text-align: center;\n padding: 10px;\n"]))),Zb(Cz)(Dz||(Dz=TM(["\n position: absolute;\n top: 0;\n left: 0;\n"])))),gK={BTN_OK:{en:"OK",vi:"Tôi đã hiểu"},FRONT:{en:"front",vi:"trước"},BACK:{en:"back",vi:"sau"},BTN_USE_THIS_PICTURE:{en:"Use this picture",vi:"Dùng ảnh này"},BTN_TRY_AGAIN:{en:"Try again",vi:"Thử lại"},CONFIRM_POPUP_VALID_QR:{en:"QR code scanned",vi:"Đã quét được mã QR"},CONFIRM_POPUP_INVALID_QR:{en:"Could not scan QR code",vi:"Không quét được mã QR"}},mK=ZT.IDCardMessage,vK=Zb.div(Uz||(Uz=TM(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),yK=Zb.div(jz||(jz=TM(["\n text-align: center;\n font-size: 1rem;\n"]))),bK=Zb.button(Fz||(Fz=TM(["\n margin-top: 20px;\n width: 100%;\n max-width: 160px;\n height: 50px;\n background-color: ",";\n border: 0;\n outline: none;\n border-radius: 0.25rem;\n color: #fff;\n font-weight: 400;\n cursor: pointer;\n font-size: 1rem;\n"])),(function(e){return e.theme.tsBlue})),wK=function(e){var t=e.onOk,r=e.maxSessionTime,n=nN.useSDKSettings().lang;return ov.createElement(vK,null,ov.createElement(yK,{className:"popup-message"},Mj(mK.TIMEOUT_INSTRUCTION[n])({x:r})),ov.createElement(bK,{className:"popup-button",onClick:t},gK.BTN_OK[n]))};wK.propTypes={onOk:Tv.func,maxSessionTime:Tv.number},wK.defaultProps={onOk:function(){},maxSessionTime:30};var CK=function(){var e=IM(ov.useState(!1),2),t=e[0],r=e[1],n=IM(ov.useState(null),2),o=n[0],i=n[1],a=IM(ov.useState({}),2),s=a[0],c=a[1];return{showPopup:ov.useCallback((function(e){var t=e.popupType,n=e.props;c(void 0===n?{}:n),i(t),r(null!==t)}),[]),popupShown:t,popupType:o,props:s}},kK="SESSION_TIMEOUT",EK="CONFIRM",SK="QR_INVALID",BK="QR_INSTRUCTIONS",_K=ZT.Errors;function AK(e,t){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)}function xK(e,t){return Math.sqrt(AK(e,t))}function TK(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.canvas,r=e.imgMargin,n=void 0===r?.15:r,o=window,i=o.cv,a=t.width,s=t.height,c=n;c<1&&(c=parseInt(.5*(s+a)*c,10));var u=i.imread(t),l=new i.Mat;return i.copyMakeBorder(u,l,c,c,c,c,i.BORDER_CONSTANT,new i.Scalar(0,0,0,255)),u.delete(),{mat:l,margin:c}}function IK(e,t){var r=window.cv,n=IM(t.map((function(e){return e.location})),4),o=n[0],i=n[1],a=n[2],s=n[3],c=xK(a,s),u=xK(i,o),l=Math.max(c,u),d=xK(i,a),f=xK(o,s),p=Math.max(d,f),h=[o.x,o.y,i.x,i.y,a.x,a.y,s.x,s.y],g=[0,0,l-1,0,l-1,p-1,0,p-1],m=r.imread(e),v=new r.Mat,y=new r.Size(l,p),b=r.matFromArray(4,1,r.CV_32FC2,h),w=r.matFromArray(4,1,r.CV_32FC2,g),C=r.getPerspectiveTransform(b,w);r.warpPerspective(m,v,C,y,r.INTER_LINEAR,r.BORDER_CONSTANT,new r.Scalar);var k=new ImageData(new Uint8ClampedArray(v.data),v.cols,v.rows);return m.delete(),v.delete(),b.delete(),w.delete(),k}function PK(e){var t=e.corners,r=e.width,n=e.height,o=Number.MAX_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER;t.forEach((function(e){var t=e.location,r=t.x,n=t.y;o=Math.min(o,r),i=Math.min(i,n),a=Math.max(a,r),s=Math.max(s,n)}));var c=.02;return o/r>=c&&i/n>=c&&(n-s)/n>=c&&(r-a)/r>=c}function RK(){return NK.apply(this,arguments)}function NK(){return(NK=EM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c,u,l,d,f,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.length>0&&void 0!==p[0]?p[0]:{},r=t.canvas,n=t.paddingPercent,o=void 0===n?.04:n,i=r.width,a=r.height,s=Math.floor(i*o),c=Math.floor(a*o),u=i-2*s,l=a-2*c,d=document.createElement("canvas"),f=d.getContext("2d"),d.width=u,d.height=l,f.drawImage(r,s,c,u,l,0,0,u,l),e.abrupt("return",NL.isCardGlare(d));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function OK(e){for(var t,r,n,o,i,a,s,c=e.length,u=0;u<c;u++){var l=(u+c-1)%c,d=(u+1)%c,f=(t=e[u].location,r=e[l].location,n=e[d].location,void 0,void 0,void 0,void 0,o={x:r.x-t.x,y:r.y-t.y},i={x:n.x-t.x,y:n.y-t.y},a=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2)),s=Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2)),180*Math.acos((o.x*i.x+o.y*i.y)/(a*s))/Math.PI);if(f<70||f>110)return!1}return!0}function LK(e){return MK.apply(this,arguments)}function MK(){return(MK=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.blazefaceModel,n=t.predictedIdCardCanvas,o=t.frontSide,i=n.width,a=n.height,s=Math.floor(i/3),c=Math.floor(4*a/5),u=document.createElement("canvas"),l=u.getContext("2d"),u.width=s,u.height=c,l.drawImage(n,0,Math.floor(a/5),s,c,0,0,s,c),e.next=12,PO.getModelPredictions({model:r,sCanvas:u});case 12:if(d=e.sent,f=d.filter((function(e){var t=e.topLeft,r=e.bottomRight,n=IM(e.probability,1)[0],o=e.landmarks;return!(n<.9||o.length<4||bO.rectAreaRatio({small:{coords:[t,r]},big:{coords:[[0,0],[PO.SIZE,PO.SIZE]]}})<.025)})),p=f.length,!o){e.next=22;break}if(0!==p){e.next=18;break}return e.abrupt("return",_K.id_detector_error_front_side_no_faces);case 18:if(!(p>1)){e.next=20;break}return e.abrupt("return",_K.id_detector_error_front_side_multiple_faces);case 20:e.next=24;break;case 22:if(!(p>0)){e.next=24;break}return e.abrupt("return",_K.id_detector_error_back_side_has_faces);case 24:return e.abrupt("return",null);case 25:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var DK=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=$D(r))==r?r:0),void 0!==t&&(t=(t=$D(t))==t?t:0),function(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}($D(e),t,r)},UK="https://unpkg.com/@tsocial/tv_web_sdk_resources@1.0.0/libs/opencv.js";function jK(){return(jK=EM(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.url,n=void 0===r?UK:r,!window.cv){e.next=3;break}return e.abrupt("return",Promise.resolve());case 3:return e.next=5,ZL.loadExternalScript({url:n});case 5:return e.abrupt("return",new Promise((function(e){window.cv.onRuntimeInitialized=e})));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var FK=lF((function(e){return jK.apply(this,arguments)})),VK="https://unpkg.com/@tsocial/tv_web_sdk_resources@1.0.0/models/id-card/tflite/qtf16_model_224x224.tflite",zK={0:"top-left",1:"top-right",2:"bottom-right",3:"bottom-left",4:"cccd.front",5:"passport",6:"cmnd_old.front",7:"cmnd_old.back",8:"cmnd_new.front",9:"cmnd_new.back",10:"cccd_new.front",11:"cccd_new.back"};function KK(e){var t,r,n,o,i,a=e.card,s=e.corners,c=a.box,u={x:(c[1]+c[3])/2,y:(c[0]+c[2])/2},l=c[2]-c[0],d=c[1]-c[3],f=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=RM(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){throw e})),f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){s=!0,i=e})),f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(s);try{for(f.s();!(i=f.n()).done;){var p=i.value;switch(p.label){case"top-left":t||(t=p.location);break;case"top-right":r||(r=p.location);break;case"bottom-right":n||(n=p.location);break;case"bottom-left":o||(o=p.location)}}}catch(e){f.e(e)}finally{f.f()}if(![t,r,n,o].every(Boolean))return console.debug("Not qualified, corners missing"),!1;var h={x:(t.x+n.x)/2,y:(t.y+n.y)/2},g={x:(r.x+o.x)/2,y:(r.y+o.y)/2},m=AK(u,h),v=AK(u,g);return Math.sqrt(m)>(l+d)/8||Math.sqrt(v)>(l+d)/8?(console.debug("Not qualified, not close enough"),!1):(console.debug("Qualified"),!0)}var HK=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n,o,i,a,s,c;return t=e,(r=[{key:"load",value:(c=EM(regeneratorRuntime.mark((function e(){var t,r,n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=t.opencvUrl,n=t.modelUrl,e.next=3,Promise.all([FK({url:r}),this.loadModel({modelUrl:n})]);case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"loadModel",value:(s=EM(regeneratorRuntime.mark((function e(){var t,r,n,o,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=t.modelUrl,n=void 0===r?VK:r,e.next=3,pM.initTensorFlow({preferredBackends:["webgl","wasm","cpu"]});case 3:return e.next=5,pM.loadTFLiteModel({modelUrl:n});case 5:this.model=e.sent,o=this.model.inputs,this.inputSize=[o[0].shape[1],o[0].shape[2]];case 8:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"loadResource",value:(a=EM(regeneratorRuntime.mark((function e(){var t,r,n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=t.modelUrl,n=void 0===r?VK:r,e.next=3,pM.preloadResource({modelUrl:n});case 3:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"dispose",value:(i=EM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.model&&this.model.dispose();case 1:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"predict",value:(o=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f,p,h,g,m,v,y,b,w,C,k,E,S,B,_,A,x,T=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=T.length>1&&void 0!==T[1]?T[1]:{},n=r.imgMargin,o=void 0===n?.5:n,i=r.detectThreshold,a=void 0===i?.3:i,s=r.maxNumReturns,c=void 0===s?100:s,u=window,l=u.cv,d={},f=t.width,p=t.height,d.originalWidth=f,d.originalHeight=p,h=TK({canvas:t,imgMargin:o}),g=h.margin,m=h.mat,v=IM(this.inputSize,2),y=v[0],b=v[1],w=new l.Mat,l.resize(m,w,new l.Size(y,b),0,0,l.INTER_AREA),C=m.cols/y,k=m.rows/b,(E=document.createElement("canvas")).width=y,E.height=b,E.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(w.data),w.cols,w.rows),0,0),m.delete(),w.delete(),d.canvas=E,d.margin=g,e.next=24,this.detect(E,{detectThreshold:a,maxNumReturns:c});case 24:if(S=e.sent,B={inputImage:d,card:null},_=[],A=[],S.forEach((function(e){var t=IM(e.box,4),r=t[0],n=t[1],o=t[2],i=t[3];e.clazz<=3?_.push({clazz:e.clazz,label:e.label,score:e.score,location:{x:DK(Math.floor((i+n)/2*C-g),0,f),y:DK(Math.floor((r+o)/2*k-g),0,p)},scaledLocation:{x:DK(Math.floor((i+n)/2),0,E.width),y:DK(Math.floor((r+o)/2),0,E.height)}}):A.push({label:e.label,score:e.score,box:[DK(Math.floor(r*k-g),0,p),DK(Math.floor(n*C-g),0,f),DK(Math.floor(o*k-g),0,p),DK(Math.floor(i*C-g),0,f)]})})),_.sort((function(e,t){return t.score-e.score})),A.sort((function(e,t){return t.score-e.score})),!(A.length>0)){e.next=40;break}if(KK({card:x=A[0],corners:_})){e.next=36;break}return console.debug("Not qualified.",x,_),e.abrupt("return",B);case 36:return _.sort((function(e,t){return e.clazz-t.clazz})),x.corners=_,B.card=x,e.abrupt("return",B);case 40:return e.abrupt("return",B);case 41:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"detect",value:(n=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f,p,h,g,m,v,y,b,w,C,k,E,S,B=this,_=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=_.length>1&&void 0!==_[1]?_[1]:{},n=r.detectThreshold,o=r.maxNumReturns,i=window,a=i.tf,s=t.width,c=t.height,u=a.tidy((function(){var e=a.expandDims(a.cast(a.image.resizeNearestNeighbor(a.browser.fromPixels(t),B.inputSize),"float32"));return B.model.predict(e)})),e.next=7,Promise.all([u["StatefulPartitionedCall:1"].data(),u["StatefulPartitionedCall:2"].data(),u["StatefulPartitionedCall:3"].array()]);case 7:for(l=e.sent,d=IM(l,3),f=d[0],p=d[1],h=IM(d[2],1),g=h[0],m=[],v=Math.min(f.length,o),y=0;y<v;y++)(b=f[y])>n&&(C=p[y],k=null!==(w=zK[Math.round(C)])&&void 0!==w?w:"NA",E=g[y],S=[E[0]*c,E[3]*s,E[2]*c,E[1]*s],m.push({score:b,clazz:C,box:S,label:k}));return e.abrupt("return",m);case 17:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),e}();function qK(e){return WK.apply(this,arguments)}function WK(){return(WK=EM(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.idCardModel,e.abrupt("return",new Promise((function(e,t){var n=document.createElement("canvas");setTimeout(t,1e3),r.predict(n).then(e)})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function QK(e){return GK.apply(this,arguments)}function GK(){return(GK=EM(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.idCardModel,n=!0,e.prev=2,o=performance.now(),e.next=6,qK({idCardModel:r});case 6:performance.now()-o>1e3&&(n=!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),n=!1;case 13:return e.abrupt("return",{fastEnough:n});case 14:case"end":return e.stop()}}),e,null,[[2,10]])})))).apply(this,arguments)}function XK(){return(XK=EM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c,u,l,d,f,p,h=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=h.length>0&&void 0!==h[0]?h[0]:{},r=t.opencvUrl,n=t.idCardModelUrl,o=t.blazefaceModelUrl,i=t.tfScriptUrls,"iOS"!==YM.osName||!YM.osVersion.includes("12.")){e.next=5;break}return e.next=4,FK({url:r});case 4:return e.abrupt("return",{ableToUseModel:!1});case 5:return e.next=7,pM.loadTensorFlow(i);case 7:return a=new HK,e.next=10,Promise.all([pM.loadBlazefaceModel({modelUrl:o}),a.load({opencvUrl:r,modelUrl:n})]);case 10:return s=e.sent,c=IM(s,1),u=c[0],l=!0,d=document.createElement("canvas"),e.prev=15,e.next=18,a.predict(d);case 18:return e.next=20,QK({idCardModel:a});case 20:f=e.sent,p=f.fastEnough,l=p,e.next=28;break;case 25:e.prev=25,e.t0=e.catch(15),l=!1;case 28:return e.abrupt("return",{ableToUseModel:l,idCardModel:a,blazefaceModel:u});case 29:case"end":return e.stop()}}),e,null,[[15,25]])})))).apply(this,arguments)}var YK=lF((function(){return XK.apply(this,arguments)})),$K=ZT.Errors;function ZK(e){var t=e.refVideo,r=e.shouldStart,n=e.cropArea,o=e.settings,i=ov.useRef(null);null===i.current&&(i.current=document.createElement("canvas"));var a=ov.useRef(!1),s=ov.useRef(TL.createResizer({width:960,height:640})),c=ov.useRef(null),u=ov.useRef([{id:null,frames:[]}]),l=ov.useCallback((function(){!0===a.current&&(a.current=!1)}),[]),d=ov.useCallback((function(){u.current=[{id:null,frames:[]}]}),[]),f=ov.useCallback((function(){var e=u.current;e[e.length-1].frames.length>0&&e.push({id:null,frames:[]})}),[]),p=ov.useCallback(function(){var e=EM(regeneratorRuntime.mark((function e(t){var r,n,i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.workingCanvas,n=s.current,i=u.current,a=n.resize({srcCanvas:r}),c=a.toDataURL("image/jpeg",o.saveFrameQuality/100).split(",")[1],i[i.length-1].frames.push({base64:c});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o]),h=ov.useCallback(EM(regeneratorRuntime.mark((function e(){var r,n,s,u,l,d,f,h,g,m,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o){e.next=2;break}return e.abrupt("return");case 2:if(r=o.frameCaptureIntervalMs,o.enableRecording){e.next=5;break}return e.abrupt("return");case 5:n=c.current,s=t.current,a.current=!0,u=n.cropX,l=n.cropY,d=n.cropWidth,f=n.cropHeight,(h=i.current).width=d,h.height=f,g=h.getContext("2d"),m=null;case 14:if(g.drawImage(s,u,l,d,f,0,0,d,f),!r){e.next=25;break}if(!((v=(new Date).getTime())-m>=r)){e.next=23;break}return e.next=22,p({workingCanvas:h});case 22:m=v;case 23:e.next=27;break;case 25:return e.next=27,p({workingCanvas:h});case 27:if(a.current){e.next=29;break}return e.abrupt("break",33);case 29:return e.next=31,FN.sleep(15);case 31:e.next=14;break;case 33:case"end":return e.stop()}}),e)}))),[t,p,o]);return ov.useEffect((function(){var e=t.current;function o(){return(o=EM(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.current=fO.analyzeVideoAndWindowSizes(e,n),t.next=3,h();case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return r&&n&&function(){o.apply(this,arguments)}(),function(){l()}}),[r,n,t,l,f,h]),{refWorkingCanvas:i,stopCheckFrame:l,splitVideos:f,resetRecordedVideos:d,checkFrame:h,refRecordedVideos:u}}var JK,eH,tH,rH=function(e){var t=e.lang,r=e.onAboutToTimeout,n=e.onSessionTimeout,o=e.onVideoTimeLimitReached,i=e.settings,a=e.shouldStartTimers,s=e.sessionTime,c=ov.useRef(),u=IM(ov.useState(0),2),l=u[0],d=u[1],f=ov.useCallback((function(){clearInterval(c.current)}),[]),p=ov.useCallback((function(){d((function(e){return e+1}))}),[]);return ov.useEffect((function(){if(a){var e=i.maxRecordingTimePerVideo,t=0,u=s/3;c.current=setInterval((function(){var i=s-(t+=1);i<=u&&r&&r({curTimeLeft:i}),t>0&&t%e==0&&o&&o(),0===i&&(f(),n&&n())}),1e3)}return function(){f()}}),[a,t,r,f,n,o,l,i,s]),{stopTimers:f,startTimers:p}},nH=function(e){var t=e.shouldStart,r=e.refVideo,n=e.cropArea,o=e.settings,i=e.onModelErrorChange,a=e.frontSide,s=e.onDebugInfoChange,c=e.onAboutToTimeout,u=e.onSessionTimeout,l=e.onCaptureDone,d=e.outputEncryptionSettings,f=e.quality,p=ov.useRef(!1),h=IM(ov.useState(!1),2),g=h[0],m=h[1],v=ov.useRef((function(){})),y=LN.useSDKTracking().sendEvent,b=ov.useRef(),w=ov.useRef(),C=ov.useRef(),k=nN.useSDKSettings(),E=k.debug,S=k.lang,B=k.enableAntiDebug;ov.useEffect((function(){B&&hM.enableAntiDebug()}),[B]);var _=ov.useCallback(function(){var e=EM(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y({tag:a?"id_front":"id_back",event:"sdk_ui.auto_capture",log:{}}),e.next=3,v.current(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[y,a]),A=ov.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i.apply(void 0,t);var n=iF(t,"0.code");n&&n!==b.current&&y({tag:a?"id_front":"id_back",event:"sdk_ui.show_alert",log:{alert:n}}),b.current=n}),[i,a,y]),x=function(e){var t=e.refVideo,r=e.shouldStart,n=e.cropArea,o=e.settings,i=e.onError,a=e.frontSide,s=e.onAutoCaptureSuccess,c=e.quality,u=ov.useRef(null);null===u.current&&(u.current=document.createElement("canvas"));var l=ov.useRef(!1),d=ov.useRef(null),f=IM(ov.useState(!1),2),p=f[0],h=f[1],g=ov.useRef({imageBlob:null,takenAt:null,blurScore:null,detectedCard:null}),m=ov.useRef({imageBlob:null,blurScore:null,error:null,detectedCard:null}),v=ov.useRef(!1),y=ov.useRef(!1),b=ov.useRef(null),w=ov.useRef(!1),C=ov.useRef({}),k=nN.useSDKSettings().customUrls;ov.useEffect((function(){var e=!1;function t(){return(t=EM(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o||p){t.next=12;break}if(!o.enableIdDetection){t.next=8;break}return t.next=4,YK(k);case 4:C.current=t.sent,b.current=o.enableBlurCheck&&C.current.ableToUseModel,t.next=9;break;case 8:b.current=!1;case 9:if(!e){t.next=11;break}return t.abrupt("return");case 11:h(!0);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){t.apply(this,arguments)}(),function(){e=!0}}),[p,o,k]);var E=ov.useCallback((function(){!0===l.current&&(l.current=!1)}),[]),S=ov.useCallback(function(){var e=EM(regeneratorRuntime.mark((function e(t){var r,n,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.blurScore,n=t.detectedCard,i=o.blurThreshold,a=g.current,s=m.current,!(r<i&&lO.hasBetterCardBlurScore(r,a.blurScore))){e.next=15;break}if(!w.current){e.next=9;break}a.imageBlob=s.imageBlob,e.next=12;break;case 9:return e.next=11,fO.takePicture({canvas:u.current,quality:c});case 11:a.imageBlob=e.sent;case 12:a.takenAt=(new Date).getTime(),a.blurScore=r,a.detectedCard=n;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,c]),B=ov.useCallback(function(){var e=EM(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.blurScore,n=t.detectedCard,y.current=!0,o=m.current,!lO.hasBetterCardBlurScore(r,o.blurScore)){e.next=10;break}return e.next=6,fO.takePicture({canvas:u.current,quality:c});case 6:o.imageBlob=e.sent,o.blurScore=r,o.detectedCard=n,w.current=!0;case 10:y.current=!1;case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c]),_=ov.useCallback(EM(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.waitForBestImageTimeMs,null===(r=g.current).imageBlob){e.next=8;break}if(!((new Date).getTime()-r.takenAt>t)){e.next=8;break}return e.next=7,s(r);case 7:E();case 8:case"end":return e.stop()}}),e)}))),[s,o,E]),A=ov.useCallback((function(){v.current=!0}),[]),x=ov.useCallback((function(){return new Promise((function(e){v.current=!1;var t=setInterval((function(){y.current||(clearInterval(t),e())}),150)}))}),[]),T=ov.useCallback(EM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var t=o.blurThreshold,r=m.current;b.current?(A(),setTimeout((function(){x().then((function(){lO.hasBetterCardBlurScore(r.blurScore,t)||(r.error=$K.id_detector_error_blur),null===r.imageBlob?fO.takePicture({canvas:u.current,quality:c}).then((function(t){r.imageBlob=t,e(r)})):e(r)}))}),2e3)):fO.takePicture({canvas:u.current,quality:c}).then((function(t){r.imageBlob=t,e(r)}))})));case 1:case"end":return e.stop()}}),e)}))),[o,A,x,c]),I=ov.useCallback(EM(regeneratorRuntime.mark((function e(){var r,n,s,c,f,h,y,b,k,E,A,x,T,I,P,R,N,O,L,M,D,U,j,F,V;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o&&p&&!l.current){e.next=2;break}return e.abrupt("return");case 2:g.current={imageBlob:null,takenAt:null,blurScore:null,detectedCard:null},m.current={imageBlob:null,blurScore:null,error:null,detectedCard:null},r=o.enableAutoCapture,n=o.enableBlurCheck,s=o.enableIdDetection,c=C.current,f=c.idCardModel,h=c.blazefaceModel,y=c.ableToUseModel,b=d.current,k=t.current,l.current=!0,E=b.cropX,A=b.cropY,x=b.cropWidth,T=b.cropHeight,I=b.cropWidthWithoutPadding,P=b.cropHeightWithoutPadding,(R=u.current).width=x,R.height=T,N=R.getContext("2d"),O=document.createElement("canvas"),L=O.getContext("2d"),M=s&&y?15:700;case 17:if(N.drawImage(k,E,A,x,T,0,0,x,T),w.current=!1,!s||!y){e.next=74;break}return D=null,e.next=24,f.predict(R,{detectThreshold:.3});case 24:if(!(U=e.sent).card){e.next=70;break}if(!PK({corners:U.card.corners,width:x,height:T})){e.next=67;break}if(!OK(U.card.corners)){e.next=64;break}if(j=IK(R,U.card.corners),!((F=bO.rectAreaRatio({small:{area:j.width*j.height},big:{area:I*P}}))<.5)){e.next=36;break}D=$K.id_detector_card_too_small,e.next=62;break;case 36:if(!(F>.95)){e.next=40;break}D=$K.id_detector_error_incomplete,e.next=62;break;case 40:return O.width=j.width,O.height=j.height,L.putImageData(j,0,0),e.next=45,RK({canvas:O});case 45:if(!e.sent){e.next=50;break}D=$K.glare_detected,e.next=62;break;case 50:return e.next=52,LK({blazefaceModel:h,predictedIdCardCanvas:O,frontSide:a});case 52:if(D=e.sent){e.next=62;break}if(!n){e.next=62;break}if(V=lO.calculateIdCardBlurScore({canvas:O}),!v.current){e.next=59;break}return e.next=59,B({blurScore:V,detectedCard:U.card});case 59:if(!r){e.next=62;break}return e.next=62,S({blurScore:V,detectedCard:U.card});case 62:e.next=65;break;case 64:D=$K.id_detector_validate_angle_error;case 65:e.next=68;break;case 67:D=$K.id_detector_error_incomplete;case 68:e.next=71;break;case 70:D=$K.id_detector_no_cards;case 71:return i(D),e.next=74,_();case 74:if(l.current){e.next=76;break}return e.abrupt("break",80);case 76:return e.next=78,FN.sleep(M);case 78:e.next=17;break;case 80:case"end":return e.stop()}}),e)}))),[t,o,p,a,i,S,B,_]);ov.useEffect((function(){var e=t.current;function o(){return(o=EM(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d.current=fO.analyzeVideoAndWindowSizes(e,n,.05),t.next=3,I();case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}r&&n&&p&&function(){o.apply(this,arguments)}()}),[r,n,t,E,I,p]);var P=ov.useCallback((function(){E()}),[E]);return ov.useEffect((function(){return P}),[P]),{refWorkingCanvas:u,stopCheckFrame:E,checkFrame:I,warmupDone:p,takePictureManually:T,refAbleToRunBurstMode:b}}({refVideo:r,shouldStart:t,cropArea:n,settings:o,onError:A,frontSide:a,onAutoCaptureSuccess:_,quality:f}),T=x.refWorkingCanvas,I=x.stopCheckFrame,P=x.checkFrame,R=x.warmupDone,N=x.takePictureManually,O=x.refAbleToRunBurstMode,L=ZK({refVideo:r,shouldStart:t&&R,cropArea:n,settings:o}),M=L.stopCheckFrame,D=L.splitVideos,U=L.resetRecordedVideos,j=L.checkFrame,F=L.refRecordedVideos;!function(e){var t=e.debug,r=e.refRecordedVideos,n=e.refWorkingCanvas,o=e.refVideo,i=e.onChange;ov.useEffect((function(){var e;return t&&(e=setInterval((function(){var e=o.current,t=r.current,a=n.current,s=t[t.length-1],c={videoWidth:e.videoWidth,videoHeight:e.videoHeight,framesCount:s.frames.length,"window.innerWidth":window.innerWidth,"window.innerHeight":window.innerHeight,"canvas.width":null==a?void 0:a.width,"canvas.height":null==a?void 0:a.height};i&&i(JSON.stringify(c,null,2))}),1e3)),function(){return clearInterval(e)}}),[i,t,r,n,o])}({debug:E,refRecordedVideos:F,refWorkingCanvas:T,refVideo:r,onChange:s});var V=ov.useCallback((function(){M(),I(),U(),u()}),[U,M,I,u]),z=ov.useCallback((function(){D()}),[D]),K=rH({lang:S,onAboutToTimeout:c,onSessionTimeout:V,onVideoTimeLimitReached:z,settings:o,shouldStartTimers:R&&t&&(null==o?void 0:o.enableTimers),sessionTime:null==o?void 0:o.idCardSessionTime}),H=K.stopTimers,q=K.startTimers,W=ov.useCallback((function(){p.current=!1}),[]),Q=ov.useCallback(EM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return W(),q(),e.next=4,Promise.all([j(),P()]);case 4:case"end":return e.stop()}}),e)}))),[j,P,q,W]),G=ov.useCallback(EM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,s,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},r=t.imageBlob,n=t.error,o=t.detectedCard,!p.current){e.next=3;break}return e.abrupt("return");case 3:if(p.current=!0,m(!0),M(),I(),H(),A(null),!d||!d.key){e.next=14;break}return s=d.key,e.next=13,vM.encrypt({blob:r,key:s});case 13:i=e.sent;case 14:l({image:{blob:r,encrypted:i,detectedCard:o},error:n,recordedVideos:F.current}),m(!1),y({tag:a?"id_front":"id_back",event:"user_activity",log:{time_capture_in_seconds:(performance.now()-C.current)/1e3}});case 17:case"end":return e.stop()}}),e)}))),[M,I,H,A,l,F,a,y,d]);v.current=G;var X=ov.useCallback(EM(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),H(),M(),O.current||I(),e.next=6,N();case 6:return t=e.sent,e.next=9,G(t);case 9:m(!1),y({tag:a?"id_front":"id_back",event:"user_activity.capture",log:{}});case 11:case"end":return e.stop()}}),e)}))),[N,G,H,O,M,I,y,a]);return ov.useEffect((function(){t&&(y({tag:a?"id_front":"id_back",event:"user_activity.start",log:{}}),w.current=performance.now())}),[y,a,t]),ov.useEffect((function(){R&&(y({tag:a?"id_front":"id_back",event:"user_activity.show",log:{}}),y({tag:a?"id_front":"id_back",event:"sdk.load_model",log:{status:"success",time_in_ms:performance.now()-w.current}}),C.current=performance.now())}),[y,a,R]),{warmupDone:R,isProcessing:g,takePictureManually:X,restartSession:Q,resetIsProcessingImageBlobTaken:W}},oH=ZT.IDCardMessage,iH=ov.forwardRef((function(e,t){var r=e.description,n=e.usePortraitMask,o=e.windowAndVideoInfo,i=e.refVideo,a=e.frontSide,s=e.settings,c=e.onCaptureDone,u=e.onUISpacingChange,l=e.outputEncryptionSettings,d=IM(ov.useState({}),2),f=d[0],p=d[1],h=f.yDescription,g=f.yMessage,m=f.yCaptureButton,v=UN.useAsset("ic_camera.svg"),y=UN.useAsset("ic_loading.png"),b=IM(ov.useState(""),2),w=b[0],C=b[1],k=nN.useSDKSettings(),E=k.debug,S=k.lang,B=IM(ov.useState(null),2),_=B[0],A=B[1],x=IM(ov.useState(""),2),T=x[0],I=x[1],P=IM(ov.useState(null),2),R=P[0],N=P[1],O=CK(),L=O.showPopup,M=O.popupShown,D=O.popupType,U=ov.useCallback((function(e){I(null===e?"":Mj(e.msg[S])({side:a?gK.FRONT[S]:gK.BACK[S]}))}),[S,a]),j=ov.useCallback((function(){A(""),L({popupType:kK})}),[L]),F=ov.useCallback((function(){A(""),c.apply(void 0,arguments)}),[c]),V=ov.useCallback((function(e){var t=e.curTimeLeft;A(Mj(oH.REMAINING_TIME[S])({x:t}))}),[S]),z=nH({shouldStart:!0,refVideo:i,cropArea:R,settings:s,onModelErrorChange:U,frontSide:a,onDebugInfoChange:C,onSessionTimeout:j,onCaptureDone:F,onAboutToTimeout:V,outputEncryptionSettings:l}),K=z.warmupDone,H=z.isProcessing,q=z.takePictureManually,W=z.restartSession,Q=z.resetIsProcessingImageBlobTaken,G=ov.useCallback((function(){L({popupType:null}),Q()}),[L,Q]),X=ov.useCallback(EM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(),e.next=3,W();case 3:case"end":return e.stop()}}),e)}))),[W,G]);ov.useEffect((function(){if(o){var e,t,r,i,a,s,c,l=o.videoAreaWidth,d=o.videoAreaHeight,f=o.lostX,h=o.lostY,g=o.clientHeight;n?(a=.7*(s=d-165),r=(c=(e=h+10)+45)+20,i=(t=c+s+10)+60):(a=YM.isMobile?l-6:Math.floor(.7*l),r=(c=(e=h+10)+50)+20,i=(t=c+(s=Math.floor(Math.min(a/1.5,g-2*h-80-100)))+10)+60);var m=Math.floor((l-a)/2)+f;N({x:m,y:c,width:a,height:s,surroundStyle:{opacity:.6,background:"#000"}});var v={yTitle:e,yDescription:t,yMessage:r,yCaptureButton:i};p(v),u(v)}}),[o,n,u]);var Y=ov.useCallback(EM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(""),e.next=3,q();case 3:case"end":return e.stop()}}),e)}))),[q]);return ov.useImperativeHandle(t,(function(){return{restartSession:X}}),[X]),ov.createElement(ov.Fragment,null,!K&&ov.createElement(EV,null),E&&ov.createElement(lK,null,w),H&&ov.createElement(iK,null,ov.createElement("img",{src:y,alt:"",className:"spin"})),R&&ov.createElement(_D,{x:"".concat(R.x,"px"),y:"".concat(R.y,"px"),width:"".concat(R.width,"px"),height:"".concat(R.height,"px"),surroundStyle:R.surroundStyle},ov.createElement(hK,{width:R.width,height:R.height,type:T?wz.ERROR:wz.DEFAULT})),!T&&ov.createElement(dK,{y:"".concat(h,"px"),className:"description"},r),T&&ov.createElement(fK,{y:"".concat(h,"px")},T),!H&&(!(null!=s&&s.disableCaptureButtonIfAlert)||!T)&&ov.createElement(oK,{onClick:Y,y:"".concat(m,"px")},ov.createElement("img",{src:v,alt:""})),_&&ov.createElement(pK,{key:_,className:"message",y:"".concat(g,"px")},_),ov.createElement(oV,{open:M},D===kK&&ov.createElement(wK,{onOk:X,maxSessionTime:null==s?void 0:s.idCardSessionTime})))}));iH.propTypes={usePortraitMask:Tv.bool,description:Tv.string,windowAndVideoInfo:Tv.shape({}),refVideo:Tv.shape({}),frontSide:Tv.bool,settings:Tv.shape({}),onCaptureDone:Tv.func,onUISpacingChange:Tv.func,outputEncryptionSettings:Tv.shape({})},iH.defaultProps={usePortraitMask:!1,description:"",windowAndVideoInfo:{},refVideo:{},frontSide:!0,settings:{},onCaptureDone:function(){},onUISpacingChange:function(){},outputEncryptionSettings:null};var aH,sH,cH=Zb.div(JK||(JK=TM(["\n background: ",";\n backdrop-filter: blur(12px);\n border-radius: 8px;\n top: ",";\n position: absolute;\n z-index: ",";\n color: #fff;\n padding: 10px;\n margin: 0 10px;\n max-width: 275px;\n text-align: center;\n"])),(function(e){return e.background}),(function(e){return e.y}),1020),uH=Zb.div(eH||(eH=TM(["\n width: 0;\n height: 0;\n border-left: 20px solid transparent;\n border-right: 20px solid transparent;\n border-bottom: ",";\n position: absolute;\n left: 50%;\n top: ",";\n transform: translateX(-50%);\n"])),(function(e){return"".concat(e.arrowSize,"px solid ").concat(e.color)}),(function(e){return"".concat(e.top,"px")})),lH=function(e){var t=e.children,r=e.y;return ov.createElement(cH,{y:r,background:"#00ce78"},ov.createElement(uH,{arrowSize:10,top:-10,color:"#00ce78"}),t)},dH=Zb.div(tH||(tH=TM(["\n text-align: center;\n position: absolute;\n font-size: 18px;\n border-radius: 3px;\n padding: 5px 10px;\n background: #ea3223;\n color: #fff;\n margin: auto;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),fH={QR_INSTRUCTIONS_TEXT:{en:ov.createElement("span",null,"Please follow the instructions below to scan QR code:",ov.createElement("br",null),ov.createElement("br",null)," Move camera to the position of QR code on ID card. Align QR code to fit into camera frame to scan it"),vi:ov.createElement("span",null,"Vui lòng quét mã QR theo hướng dẫn sau:",ov.createElement("br",null),ov.createElement("br",null)," Đưa camera vào vị trí mã QR trên CCCD. Canh vừa mã QR vào 4 góc khung hình để quét mã")},QR_INSTRUCTIONS_START_BUTTON:{en:"Scan QR code",vi:"Tiến hành quét mã QR"},QR_INSTRUCTIONS_COUNTDOWN:{en:"Start in <%= x %> s",vi:"Bắt đầu trong <%= x %> giây"},QR_INVALID_POPUP_TITLE:{en:"Invalid QR code",vi:"QR không hợp lệ"},QR_INVALID_POPUP_DESCRIPTION:{en:"Please check and make sure scanning QR code on ID card",vi:"Vui lòng kiểm tra và đảm bảo việc thực hiện quét QR trên CCCD thật"},QR_INVALID_POPUP_RETRY_BUTTON:{en:"Scan QR (on ID card)",vi:"Quét lại QR (trên CCCD)"},QR_INVALID_POPUP_SKIP_BUTTON:{en:"Skip",vi:"Bỏ qua"},QR_TOOLTIP:{en:"Fit QR code to 4 corners of camera frame and try to move camera [in or out] to scan QR code",vi:"Canh vừa mã QR vào 4 góc khung hình và thử dịch chuyển camera [xa - gần] để quét được mã QR"},REMAINING_TIME:{en:"Remaining time: <%= x %> seconds",vi:"Thời gian còn lại: <%= x %> giây"},SESSION_TIMEOUT_POPUP_DESCRIPTION:{en:ov.createElement("span",null,"Quá thời gian quét. Vui lòng thực hiện lại.",ov.createElement("br",null),ov.createElement("br",null)," Đưa camera vào vị trí mã QR trên thẻ. Canh vừa vào 4 góc và"," ",ov.createElement("strong",{className:"text-primary"},"thử dịch chuyển camera [xa - gần]")," để camera điện thoại lấy nét chuẩn hơn."),vi:ov.createElement("span",null,"Quá thời gian quét. Vui lòng thực hiện lại.",ov.createElement("br",null),ov.createElement("br",null)," Đưa camera vào vị trí mã QR trên thẻ. Canh vừa vào 4 góc và"," ",ov.createElement("strong",{className:"text-primary"},"thử dịch chuyển camera [xa - gần]")," để camera điện thoại lấy nét chuẩn hơn.")},SESSION_TIMEOUT_POPUP_RETRY_BUTTON:{en:"Retry",vi:"Thực hiện lại"},SESSION_TIMEOUT_POPUP_SKIP_BUTTON:{en:"Skip",vi:"Bỏ qua"}},pH=function(e){var t=e.children,r=e.mt,n=e.mb,o=e.ml,i=e.mr,a=e.mx,s=e.my,c=e.pt,u=e.pb,l=e.pl,d=e.pr,f=e.px,p=e.py,h=t.props.style||{},g={};return null!==a&&(g.marginLeft=a,g.marginRight=a),null!==s&&(g.marginTop=s,g.marginBottom=s),null!==r&&(g.marginTop=r),null!==n&&(g.marginBottom=n),null!==o&&(g.marginLeft=o),null!==i&&(g.marginRight=i),null!==f&&(g.paddingLeft=f,g.paddingRight=f),null!==p&&(g.paddingTop=p,g.paddingBottom=p),null!==c&&(g.paddingTop=c),null!==u&&(g.paddingBottom=u),null!==l&&(g.paddingLeft=l),null!==d&&(g.paddingRight=d),ov.cloneElement(t,{style:AM(AM({},h),g)})};pH.propTypes={mt:Tv.string,ml:Tv.string,mr:Tv.string,mb:Tv.string,mx:Tv.string,my:Tv.string,pt:Tv.string,pl:Tv.string,pr:Tv.string,pb:Tv.string,px:Tv.string,py:Tv.string},pH.defaultProps={mt:null,ml:null,mr:null,mb:null,mx:null,my:null,pt:null,pl:null,pr:null,pb:null,px:null,py:null};var hH,gH,mH,vH,yH,bH,wH=Zb.button(aH||(aH=TM(["\n width: 100%;\n max-width: 294px;\n height: 66px;\n background-color: ",";\n border: 0;\n outline: none;\n border-radius: 3px;\n color: #fff;\n font-weight: normal;\n cursor: pointer;\n font-size: 1rem;\n"])),(function(e){return e.theme.tsBlue})),CH=Zb.a(sH||(sH=TM(["\n color: ",";\n cursor: pointer;\n"])),(function(e){return e.theme.tsBlue})),kH=Zb.div(hH||(hH=TM(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),EH=Zb.div(gH||(gH=TM(["\n color: ",";\n font-weight: bold;\n font-size: 16px;\n"])),(function(e){return e.theme.tsSecondary})),SH=Zb.div(mH||(mH=TM(["\n color: ",";\n font-weight: normal;\n font-size: 16px;\n text-align: center;\n"])),(function(e){return e.theme.tsSecondary})),BH=function(e){var t=e.onRetry,r=e.onSkip,n=nN.useSDKSettings().lang;return ov.createElement(kH,null,ov.createElement(pH,{mt:"25px"},ov.createElement(EH,null,fH.QR_INVALID_POPUP_TITLE[n])),ov.createElement(pH,{mt:"30px"},ov.createElement(SH,null,fH.QR_INVALID_POPUP_DESCRIPTION[n])),ov.createElement(pH,{mt:"30px"},ov.createElement(wH,{onClick:t},fH.QR_INVALID_POPUP_RETRY_BUTTON[n])),ov.createElement(pH,{my:"20px"},ov.createElement(CH,{onClick:r},fH.QR_INVALID_POPUP_SKIP_BUTTON[n])))};BH.propTypes={onRetry:Tv.func,onSkip:Tv.func},BH.defaultProps={onRetry:function(){},onSkip:function(){}};var _H=Zb.div(vH||(vH=TM(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),AH=Zb.div(yH||(yH=TM(["\n background: #e7e6e6;\n width: 100%;\n display: flex;\n justify-content: center;\n"]))),xH=Zb.div(bH||(bH=TM(["\n color: ",";\n font-weight: normal;\n font-size: 16px;\n text-align: center;\n line-height: 20px;\n"])),(function(e){return e.theme.tsSecondary})),TH=function(e){var t=e.onRetry,r=e.onSkip,n=nN.useSDKSettings().lang,o=UN.useAsset("qr_code_banner.svg");return ov.createElement(_H,null,ov.createElement(AH,null,ov.createElement("img",{src:o,alt:""})),ov.createElement(pH,{mt:"30px"},ov.createElement(xH,null,fH.SESSION_TIMEOUT_POPUP_DESCRIPTION[n])),ov.createElement(pH,{mt:"30px"},ov.createElement(wH,{onClick:t},fH.SESSION_TIMEOUT_POPUP_RETRY_BUTTON[n])),ov.createElement(pH,{my:"20px"},ov.createElement(CH,{onClick:r},fH.SESSION_TIMEOUT_POPUP_SKIP_BUTTON[n])))};TH.propTypes={onRetry:Tv.func,onSkip:Tv.func},TH.defaultProps={onRetry:function(){},onSkip:function(){}};var IH,PH,RH,NH,OH,LH,MH=["children","ratio","padding"],DH=Zb.div(IH||(IH=TM(["\n width: 100%;\n padding-bottom: ","%;\n position: relative;\n"])),(function(e){return 1/e.ratio*100})),UH=Zb.div(PH||(PH=TM(["\n position: absolute;\n top: ",";\n left: ",";\n right: ",";\n bottom: ",";\n"])),(function(e){return e.padding}),(function(e){return e.padding}),(function(e){return e.padding}),(function(e){return e.padding})),jH=function(e){var t=e.children,r=e.ratio,n=e.padding,o=xM(e,MH);return ov.createElement(DH,BM({ratio:r},o),ov.createElement(UH,{padding:n},t))};jH.propTypes={children:Tv.node,ratio:Tv.number,padding:Tv.string},jH.defaultProps={children:null,ratio:4/3,padding:"0"};var FH=Zb.div(RH||(RH=TM(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),VH=Zb.div(NH||(NH=TM(["\n background: #e7e6e6;\n width: 100%;\n"]))),zH=Zb.img(OH||(OH=TM(["\n width: 100%;\n height: 100%;\n object-fit: contain;\n border-radius: 5px;\n"]))),KH=Zb.div(LH||(LH=TM(["\n color: ",";\n font-weight: normal;\n font-size: 16px;\n text-align: center;\n line-height: 20px;\n"])),(function(e){return e.theme.tsSecondary})),HH=function(e){var t=e.onClickStart,r=e.onTimeout,n=e.timeout,o=nN.useSDKSettings().lang,i=UN.useAsset("qr_code_banner.png"),a=ov.useRef(n),s=IM(ov.useState((function(){return Mj(fH.QR_INSTRUCTIONS_COUNTDOWN[o])({x:n})})),2),c=s[0],u=s[1];return ov.useEffect((function(){var e=Mj(fH.QR_INSTRUCTIONS_COUNTDOWN[o]),t=setInterval((function(){a.current--,u(e({x:a.current})),a.current<=0&&(clearInterval(t),r&&r())}),1e3);return function(){clearInterval(t)}}),[o,r]),ov.createElement(FH,null,ov.createElement(VH,null,ov.createElement(jH,{ratio:1.6},ov.createElement(zH,{src:i}))),ov.createElement(pH,{mt:"30px"},ov.createElement(KH,null,fH.QR_INSTRUCTIONS_TEXT[o])),ov.createElement(pH,{mt:"30px"},ov.createElement(wH,{onClick:t},fH.QR_INSTRUCTIONS_START_BUTTON[o])),ov.createElement(pH,{my:"20px"},ov.createElement(KH,null,c)))};HH.propTypes={onClickStart:Tv.func,onTimeout:Tv.func,timeout:Tv.number},HH.defaultProps={onClickStart:null,onTimeout:null,timeout:10};var qH=/^\d{12}\|(\d{9})?\|.+\|\d{8}\|((Nam)|(Nữ))\|.+\|\d{8}$/g,WH=function(e){var t=e.match(qH);return{valid:Boolean(t)}},QH=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._onDecodeError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._calculateScanRegion,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"environment";$g(this,t),this.$video=e,this.$canvas=document.createElement("canvas"),this._onDecode=r,this._legacyCanvasSize=t.DEFAULT_CANVAS_SIZE,this._preferredCamera=i,this._active=!1,this._paused=!1,this._flashOn=!1,"number"==typeof n?(this._legacyCanvasSize=n,console.warn("You're using a deprecated version of the QrScanner constructor which will be removed in the future")):this._onDecodeError=n,"number"==typeof o?(this._legacyCanvasSize=o,console.warn("You're using a deprecated version of the QrScanner constructor which will be removed in the future")):this._calculateScanRegion=o,this._scanRegion=this._calculateScanRegion(e),this._onPlay=this._onPlay.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),e.disablePictureInPicture=!0,e.playsInline=!0,e.muted=!0;var a=!1;e.hidden&&(e.hidden=!1,a=!0),document.body.contains(e)||(document.body.appendChild(e),a=!0),requestAnimationFrame((function(){var t=window.getComputedStyle(e);"none"===t.display&&(e.style.setProperty("display","block","important"),a=!0),"visible"!==t.visibility&&(e.style.setProperty("visibility","visible","important"),a=!0),a&&(console.warn("QrScanner has overwritten the video hiding style to avoid Safari stopping the playback."),e.style.opacity=0,e.style.width=0,e.style.height=0)})),e.addEventListener("play",this._onPlay),e.addEventListener("loadedmetadata",this._onLoadedMetaData),document.addEventListener("visibilitychange",this._onVisibilityChange),this._qrEnginePromise=t.createQrEngine()}var r,n,o;return r=t,o=[{key:"hasCamera",value:function(){return t.listCameras(!1).then((function(e){return!!e.length})).catch((function(){return!1}))}},{key:"listCameras",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!navigator.mediaDevices)return Promise.resolve([]);var t=null;return(e?navigator.mediaDevices.getUserMedia({audio:!1,video:!0}).then((function(e){return t=e})).catch((function(){})):Promise.resolve()).then((function(){return navigator.mediaDevices.enumerateDevices()})).then((function(e){return e.filter((function(e){return"videoinput"===e.kind})).map((function(e,t){return{id:e.deviceId,label:e.label||(0===t?"Default Camera":"Camera ".concat(t+1))}}))})).finally((function(){if(t){var e,r=hm(t.getTracks());try{for(r.s();!(e=r.n()).done;){var n=e.value;n.stop(),t.removeTrack(n)}}catch(e){r.e(e)}finally{r.f()}}}))}},{key:"scanImage",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=o instanceof Worker,u=Promise.all([o||t.createQrEngine(),t._loadImage(e)]).then((function(e){var s,u,l=lm(e,2),d=l[0],f=l[1];return o=d,s=lm(r._drawToCanvas(f,n,i,a),2),i=s[0],u=s[1],o instanceof Worker?(c||o.postMessage({type:"inversionMode",data:"both"}),new Promise((function(e,r){var n,a,s;a=function(i){"qrResult"===i.data.type&&(o.removeEventListener("message",a),o.removeEventListener("error",s),clearTimeout(n),null!==i.data.data?e(i.data.data):r(t.NO_QR_CODE_FOUND))},s=function(e){o.removeEventListener("message",a),o.removeEventListener("error",s),clearTimeout(n);var t=e?e.message||e:"Unknown Error";r("Scanner error: "+t)},o.addEventListener("message",a),o.addEventListener("error",s),n=setTimeout((function(){return s("timeout")}),1e4);var c=u.getImageData(0,0,i.width,i.height);o.postMessage({type:"decode",data:c},[c.data.buffer])}))):new Promise((function(e,r){var n=setTimeout((function(){return r("Scanner error: timeout")}),1e4);o.detect(i).then((function(n){n.length?e(n[0].rawValue):r(t.NO_QR_CODE_FOUND)})).catch((function(e){return r("Scanner error: "+(e.message||e))})).finally((function(){return clearTimeout(n)}))}))}));return n&&s&&(u=u.catch((function(){return t.scanImage(e,null,o,i,a)}))),u=u.finally((function(){c||t._postWorkerMessage(o,"close")}))}},{key:"createQrEngine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.WORKER_PATH;return("BarcodeDetector"in window&&BarcodeDetector.getSupportedFormats?BarcodeDetector.getSupportedFormats():Promise.resolve([])).then((function(t){return-1!==t.indexOf("qr_code")?new BarcodeDetector({formats:["qr_code"]}):new Worker(e)}))}},{key:"_drawToCanvas",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];r=r||document.createElement("canvas");var o=t&&t.x?t.x:0,i=t&&t.y?t.y:0,a=t&&t.width?t.width:e.width||e.videoWidth,s=t&&t.height?t.height:e.height||e.videoHeight;if(!n){var c=t&&t.downScaledWidth?t.downScaledWidth:a,u=t&&t.downScaledHeight?t.downScaledHeight:s;r.width!==c&&(r.width=c),r.height!==u&&(r.height=u)}var l=r.getContext("2d",{alpha:!1});return l.imageSmoothingEnabled=!1,l.drawImage(e,o,i,a,s,0,0,r.width,r.height),[r,l]}},{key:"_loadImage",value:function(e){if(e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||window.ImageBitmap&&e instanceof window.ImageBitmap||window.OffscreenCanvas&&e instanceof window.OffscreenCanvas)return Promise.resolve(e);if(e instanceof Image)return t._awaitImageLoad(e).then((function(){return e}));if(e instanceof File||e instanceof Blob||e instanceof URL||"string"==typeof e){var r=new Image;return e instanceof File||e instanceof Blob?r.src=URL.createObjectURL(e):r.src=e,t._awaitImageLoad(r).then((function(){return(e instanceof File||e instanceof Blob)&&URL.revokeObjectURL(r.src),r}))}return Promise.reject("Unsupported image type.")}},{key:"_awaitImageLoad",value:function(e){return new Promise((function(t,r){var n,o;e.complete&&0!==e.naturalWidth?t():(n=function(){e.removeEventListener("load",n),e.removeEventListener("error",o),t()},o=function(){e.removeEventListener("load",n),e.removeEventListener("error",o),r("Image load error")},e.addEventListener("load",n),e.addEventListener("error",o))}))}},{key:"_postWorkerMessage",value:function(e,t,r){return Promise.resolve(e).then((function(e){e instanceof Worker&&e.postMessage({type:t,data:r})}))}}],(n=[{key:"hasFlash",value:function(){var e=null;return(this.$video.srcObject?Promise.resolve(this.$video.srcObject.getVideoTracks()[0]):this._getCameraStream().then((function(t){var r=t.stream;return console.warn("Call hasFlash after successfully starting the scanner to avoid creating a temporary video stream"),e=r,r.getVideoTracks()[0]}))).then((function(e){return"torch"in e.getSettings()})).catch((function(){return!1})).finally((function(){if(e){var t,r=hm(e.getTracks());try{for(r.s();!(t=r.n()).done;){var n=t.value;n.stop(),e.removeTrack(n)}}catch(e){r.e(e)}finally{r.f()}}}))}},{key:"isFlashOn",value:function(){return this._flashOn}},{key:"toggleFlash",value:function(){return this._flashOn?this.turnFlashOff():this.turnFlashOn()}},{key:"turnFlashOn",value:function(){var t=this;return this._flashOn?Promise.resolve():(this._flashOn=!0,!this._active||this._paused?Promise.resolve():this.hasFlash().then((function(e){return e?t.$video.srcObject.getVideoTracks()[0].applyConstraints({advanced:[{torch:!0}]}):Promise.reject("No flash available")})).catch((function(){throw t._flashOn=!1,e})))}},{key:"turnFlashOff",value:function(){if(this._flashOn)return this._flashOn=!1,this._restartVideoStream()}},{key:"destroy",value:function(){this.$video.removeEventListener("loadedmetadata",this._onLoadedMetaData),this.$video.removeEventListener("play",this._onPlay),document.removeEventListener("visibilitychange",this._onVisibilityChange),this.stop(),t._postWorkerMessage(this._qrEnginePromise,"close")}},{key:"start",value:function(){var e=this;return this._active&&!this._paused?Promise.resolve():("https:"!==window.location.protocol&&console.warn("The camera stream is only accessible if the page is transferred via https."),this._active=!0,document.hidden?Promise.resolve():(this._paused=!1,this.$video.srcObject?(this.$video.play(),Promise.resolve()):this._getCameraStream().then((function(t){var r=t.stream,n=t.facingMode;e.$video.srcObject=r,e.$video.play(),e._setVideoMirror(n),e._flashOn&&(e._flashOn=!1,e.turnFlashOn().catch((function(){})))})).catch((function(t){throw e._active=!1,t}))))}},{key:"stop",value:function(){this.pause(),this._active=!1}},{key:"pause",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._paused=!0,!this._active)return Promise.resolve(!0);this.$video.pause();var r=function(){var t,r=hm(e.$video.srcObject?e.$video.srcObject.getTracks():[]);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.stop(),e.$video.srcObject.removeTrack(n)}}catch(e){r.e(e)}finally{r.f()}e.$video.srcObject=null};return t?(r(),Promise.resolve(!0)):new Promise((function(e){return setTimeout(e,300)})).then((function(){return!!e._paused&&(r(),!0)}))}},{key:"setCamera",value:function(e){return e===this._preferredCamera?Promise.resolve():(this._preferredCamera=e,this._restartVideoStream())}},{key:"setGrayscaleWeights",value:function(e,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t._postWorkerMessage(this._qrEnginePromise,"grayscaleWeights",{red:e,green:r,blue:n,useIntegerApproximation:o})}},{key:"setInversionMode",value:function(e){t._postWorkerMessage(this._qrEnginePromise,"inversionMode",e)}},{key:"_onPlay",value:function(){this._scanRegion=this._calculateScanRegion(this.$video),this._scanFrame()}},{key:"_onLoadedMetaData",value:function(){this._scanRegion=this._calculateScanRegion(this.$video)}},{key:"_onVisibilityChange",value:function(){document.hidden?this.pause():this._active&&this.start()}},{key:"_calculateScanRegion",value:function(e){var t=Math.min(e.videoWidth,e.videoHeight),r=Math.round(2/3*t);return{x:Math.round((e.videoWidth-r)/2),y:Math.round((e.videoHeight-r)/2),width:r,height:r,downScaledWidth:this._legacyCanvasSize,downScaledHeight:this._legacyCanvasSize}}},{key:"_scanFrame",value:function(){var e=this;if(!this._active||this.$video.paused||this.$video.ended)return!1;requestAnimationFrame((function(){e.$video.readyState<=1?e._scanFrame():e._qrEnginePromise.then((function(r){return t.scanImage(e.$video,e._scanRegion,r,e.$canvas)})).then(e._onDecode,(function(r){e._active&&(-1!==(r.message||r).indexOf("service unavailable")&&(e._qrEnginePromise=t.createQrEngine()),e._onDecodeError(r))})).then((function(){return e._scanFrame()}))}))}},{key:"_onDecodeError",value:function(e){e!==t.NO_QR_CODE_FOUND&&console.log(e)}},{key:"_getCameraStream",value:function(){var e=this;if(!navigator.mediaDevices)return Promise.reject("Camera not found.");var t="environment"===this._preferredCamera||"user"===this._preferredCamera?"facingMode":"deviceId",r=[{width:{min:1024}},{width:{min:768}},{}];return[].concat(dm(r.map((function(r){return Object.assign({},r,Jg({},t,{exact:e._preferredCamera}))}))),r).reduceRight((function(t,r){return function(){return navigator.mediaDevices.getUserMedia({video:r,audio:!1}).then((function(t){return{stream:t,facingMode:e._getFacingMode(t)||(r.facingMode?e._preferredCamera:"environment"===e._preferredCamera?"user":"environment")}})).catch(t)}}),(function(){return Promise.reject("Camera not found.")}))()}},{key:"_restartVideoStream",value:function(){var e=this,t=this._paused;return this.pause(!0).then((function(r){if(r&&!t&&e._active)return e.start()}))}},{key:"_setVideoMirror",value:function(e){var t="user"===e?-1:1;this.$video.style.transform="scaleX("+t+")"}},{key:"_getFacingMode",value:function(e){var t=e.getVideoTracks()[0];return t?/rear|back|environment/i.test(t.label)?"environment":/front|user|face/i.test(t.label)?"user":null:null}}])&&Zg(r.prototype,n),o&&Zg(r,o),t}();function GH(){return XH.apply(this,arguments)}function XH(){return(XH=EM(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return QH.WORKER_PATH=yM(),e.next=3,QH.createQrEngine(QH.WORKER_PATH);case 3:return t=e.sent,e.abrupt("return",{qrEngine:t});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function YH(){return(YH=EM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=t.opencvUrl,e.next=3,Promise.all([GH(),FK({url:r})]);case 3:return n=e.sent,o=IM(n,1),i=o[0].qrEngine,a=window,s=a.cv,e.abrupt("return",{qrScannerResources:{engine:i,canvas:document.createElement("canvas")},blackAndWhiteConverterResources:{kernel:s.matFromArray(3,3,s.CV_32FC1,[-1,-1,-1,-1,11,-1,-1,-1,-1]),canvas:document.createElement("canvas"),dst:new s.Mat}});case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}QH.DEFAULT_CANVAS_SIZE=400,QH.NO_QR_CODE_FOUND="No QR code found",QH.WORKER_PATH="qr-scanner-worker.min.js";var $H=lF((function(){return YH.apply(this,arguments)})),ZH=LM(MM((function(e,t){var r;r=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.width=t,this.height=e.length/t,this.data=e}return e.createEmpty=function(t,r){return new e(new Uint8ClampedArray(t*r),t)},e.prototype.get=function(e,t){return!(e<0||e>=this.width||t<0||t>=this.height||!this.data[t*this.width+e])},e.prototype.set=function(e,t,r){this.data[t*this.width+e]=r?1:0},e.prototype.setRegion=function(e,t,r,n,o){for(var i=t;i<t+n;i++)for(var a=e;a<e+r;a++)this.set(a,i,!!o)},e}();t.BitMatrix=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.addOrSubtractGF=function(e,t){return e^t};var o=function(){function e(e,t,r){this.primitive=e,this.size=t,this.generatorBase=r,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var o=1,i=0;i<this.size;i++)this.expTable[i]=o,(o*=2)>=this.size&&(o=(o^this.primitive)&this.size-1);for(i=0;i<this.size-1;i++)this.logTable[this.expTable[i]]=i;this.zero=new n.default(this,Uint8ClampedArray.from([0])),this.one=new n.default(this,Uint8ClampedArray.from([1]))}return e.prototype.multiply=function(e,t){return 0===e||0===t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.size-1)]},e.prototype.inverse=function(e){if(0===e)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[e]-1]},e.prototype.buildMonomial=function(e,t){if(e<0)throw new Error("Invalid monomial degree less than 0");if(0===t)return this.zero;var r=new Uint8ClampedArray(e+1);return r[0]=t,new n.default(this,r)},e.prototype.log=function(e){if(0===e)throw new Error("Can't take log(0)");return this.logTable[e]},e.prototype.exp=function(e){return this.expTable[e]},e}();t.default=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=function(){function e(e,t){if(0===t.length)throw new Error("No coefficients.");this.field=e;var r=t.length;if(r>1&&0===t[0]){for(var n=1;n<r&&0===t[n];)n++;if(n===r)this.coefficients=e.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(r-n);for(var o=0;o<this.coefficients.length;o++)this.coefficients[o]=t[n+o]}}else this.coefficients=t}return e.prototype.degree=function(){return this.coefficients.length-1},e.prototype.isZero=function(){return 0===this.coefficients[0]},e.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},e.prototype.addOrSubtract=function(t){var r;if(this.isZero())return t;if(t.isZero())return this;var o=this.coefficients,i=t.coefficients;o.length>i.length&&(o=(r=[i,o])[0],i=r[1]);for(var a=new Uint8ClampedArray(i.length),s=i.length-o.length,c=0;c<s;c++)a[c]=i[c];for(c=s;c<i.length;c++)a[c]=n.addOrSubtractGF(o[c-s],i[c]);return new e(this.field,a)},e.prototype.multiply=function(t){if(0===t)return this.field.zero;if(1===t)return this;for(var r=this.coefficients.length,n=new Uint8ClampedArray(r),o=0;o<r;o++)n[o]=this.field.multiply(this.coefficients[o],t);return new e(this.field,n)},e.prototype.multiplyPoly=function(t){if(this.isZero()||t.isZero())return this.field.zero;for(var r=this.coefficients,o=r.length,i=t.coefficients,a=i.length,s=new Uint8ClampedArray(o+a-1),c=0;c<o;c++)for(var u=r[c],l=0;l<a;l++)s[c+l]=n.addOrSubtractGF(s[c+l],this.field.multiply(u,i[l]));return new e(this.field,s)},e.prototype.multiplyByMonomial=function(t,r){if(t<0)throw new Error("Invalid degree less than 0");if(0===r)return this.field.zero;for(var n=this.coefficients.length,o=new Uint8ClampedArray(n+t),i=0;i<n;i++)o[i]=this.field.multiply(this.coefficients[i],r);return new e(this.field,o)},e.prototype.evaluateAt=function(e){var t=0;if(0===e)return this.getCoefficient(0);var r=this.coefficients.length;if(1===e)return this.coefficients.forEach((function(e){t=n.addOrSubtractGF(t,e)})),t;t=this.coefficients[0];for(var o=1;o<r;o++)t=n.addOrSubtractGF(this.field.multiply(e,t),this.coefficients[o]);return t},e}();t.default=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),o=r(5),i=r(11),a=r(12);function s(e){var t=a.locate(e);if(!t)return null;for(var r=0,n=t;r<n.length;r++){var s=n[r],c=i.extract(e,s),u=o.decode(c.matrix);if(u)return{binaryData:u.bytes,data:u.text,chunks:u.chunks,version:u.version,location:{topRightCorner:c.mappingFunction(s.dimension,0),topLeftCorner:c.mappingFunction(0,0),bottomRightCorner:c.mappingFunction(s.dimension,s.dimension),bottomLeftCorner:c.mappingFunction(0,s.dimension),topRightFinderPattern:s.topRight,topLeftFinderPattern:s.topLeft,bottomLeftFinderPattern:s.bottomLeft,bottomRightAlignmentPattern:s.alignmentPattern}}}return null}var c={inversionAttempts:"attemptBoth"};function u(e,t,r,o){void 0===o&&(o={});var i=c;Object.keys(i||{}).forEach((function(e){i[e]=o[e]||i[e]}));var a="attemptBoth"===i.inversionAttempts||"invertFirst"===i.inversionAttempts,u="onlyInvert"===i.inversionAttempts||"invertFirst"===i.inversionAttempts,l=n.binarize(e,t,r,a),d=l.binarized,f=l.inverted,p=s(u?f:d);return p||"attemptBoth"!==i.inversionAttempts&&"invertFirst"!==i.inversionAttempts||(p=s(u?d:f)),p}u.default=u,t.default=u},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);function o(e,t,r){return e<t?t:e>r?r:e}var i=function(){function e(e,t){this.width=e,this.data=new Uint8ClampedArray(e*t)}return e.prototype.get=function(e,t){return this.data[t*this.width+e]},e.prototype.set=function(e,t,r){this.data[t*this.width+e]=r},e}();t.binarize=function(e,t,r,a){if(e.length!==t*r*4)throw new Error("Malformed data passed to binarizer.");for(var s=new i(t,r),c=0;c<t;c++)for(var u=0;u<r;u++){var l=e[4*(u*t+c)+0],d=e[4*(u*t+c)+1],f=e[4*(u*t+c)+2];s.set(c,u,.2126*l+.7152*d+.0722*f)}for(var p=Math.ceil(t/8),h=Math.ceil(r/8),g=new i(p,h),m=0;m<h;m++)for(var v=0;v<p;v++){var y=0,b=1/0,w=0;for(u=0;u<8;u++)for(c=0;c<8;c++){var C=s.get(8*v+c,8*m+u);y+=C,b=Math.min(b,C),w=Math.max(w,C)}var k=y/Math.pow(8,2);if(w-b<=24&&(k=b/2,m>0&&v>0)){var E=(g.get(v,m-1)+2*g.get(v-1,m)+g.get(v-1,m-1))/4;b<E&&(k=E)}g.set(v,m,k)}var S=n.BitMatrix.createEmpty(t,r),B=null;for(a&&(B=n.BitMatrix.createEmpty(t,r)),m=0;m<h;m++)for(v=0;v<p;v++){for(var _=o(v,2,p-3),A=o(m,2,h-3),x=(y=0,-2);x<=2;x++)for(var T=-2;T<=2;T++)y+=g.get(_+x,A+T);var I=y/25;for(x=0;x<8;x++)for(T=0;T<8;T++){c=8*v+x,u=8*m+T;var P=s.get(c,u);S.set(c,u,P<=I),a&&B.set(c,u,!(P<=I))}}return a?{binarized:S,inverted:B}:{binarized:S}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(6),i=r(9),a=r(10);function s(e,t){for(var r=e^t,n=0;r;)n++,r&=r-1;return n}function c(e,t){return t<<1|e}var u=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],l=[function(e){return(e.y+e.x)%2==0},function(e){return e.y%2==0},function(e){return e.x%3==0},function(e){return(e.y+e.x)%3==0},function(e){return(Math.floor(e.y/2)+Math.floor(e.x/3))%2==0},function(e){return e.x*e.y%2+e.x*e.y%3==0},function(e){return(e.y*e.x%2+e.y*e.x%3)%2==0},function(e){return((e.y+e.x)%2+e.y*e.x%3)%2==0}];function d(e,t,r){for(var o=l[r.dataMask],i=e.height,a=function(e){var t=17+4*e.versionNumber,r=n.BitMatrix.createEmpty(t,t);r.setRegion(0,0,9,9,!0),r.setRegion(t-8,0,8,9,!0),r.setRegion(0,t-8,9,8,!0);for(var o=0,i=e.alignmentPatternCenters;o<i.length;o++)for(var a=i[o],s=0,c=e.alignmentPatternCenters;s<c.length;s++){var u=c[s];6===a&&6===u||6===a&&u===t-7||a===t-7&&6===u||r.setRegion(a-2,u-2,5,5,!0)}return r.setRegion(6,9,1,t-17,!0),r.setRegion(9,6,t-17,1,!0),e.versionNumber>6&&(r.setRegion(t-11,0,3,6,!0),r.setRegion(0,t-11,6,3,!0)),r}(t),s=[],u=0,d=0,f=!0,p=i-1;p>0;p-=2){6===p&&p--;for(var h=0;h<i;h++)for(var g=f?i-1-h:h,m=0;m<2;m++){var v=p-m;if(!a.get(v,g)){d++;var y=e.get(v,g);o({y:g,x:v})&&(y=!y),u=c(y,u),8===d&&(s.push(u),d=0,u=0)}}f=!f}return s}function f(e){var t=function(e){var t=e.height,r=Math.floor((t-17)/4);if(r<=6)return a.VERSIONS[r-1];for(var n=0,o=5;o>=0;o--)for(var i=t-9;i>=t-11;i--)n=c(e.get(i,o),n);var u=0;for(i=5;i>=0;i--)for(o=t-9;o>=t-11;o--)u=c(e.get(i,o),u);for(var l,d=1/0,f=0,p=a.VERSIONS;f<p.length;f++){var h=p[f];if(h.infoBits===n||h.infoBits===u)return h;var g=s(n,h.infoBits);g<d&&(l=h,d=g),(g=s(u,h.infoBits))<d&&(l=h,d=g)}return d<=3?l:void 0}(e);if(!t)return null;var r=function(e){for(var t=0,r=0;r<=8;r++)6!==r&&(t=c(e.get(r,8),t));for(var n=7;n>=0;n--)6!==n&&(t=c(e.get(8,n),t));var o=e.height,i=0;for(n=o-1;n>=o-7;n--)i=c(e.get(8,n),i);for(r=o-8;r<o;r++)i=c(e.get(r,8),i);for(var a=1/0,l=null,d=0,f=u;d<f.length;d++){var p=f[d],h=p.bits,g=p.formatInfo;if(h===t||h===i)return g;var m=s(t,h);m<a&&(l=g,a=m),t!==i&&(m=s(i,h))<a&&(l=g,a=m)}return a<=3?l:null}(e);if(!r)return null;var n=function(e,t,r){var n=t.errorCorrectionLevels[r],o=[],i=0;if(n.ecBlocks.forEach((function(e){for(var t=0;t<e.numBlocks;t++)o.push({numDataCodewords:e.dataCodewordsPerBlock,codewords:[]}),i+=e.dataCodewordsPerBlock+n.ecCodewordsPerBlock})),e.length<i)return null;e=e.slice(0,i);for(var a=n.ecBlocks[0].dataCodewordsPerBlock,s=0;s<a;s++)for(var c=0,u=o;c<u.length;c++)u[c].codewords.push(e.shift());if(n.ecBlocks.length>1){var l=n.ecBlocks[0].numBlocks,d=n.ecBlocks[1].numBlocks;for(s=0;s<d;s++)o[l+s].codewords.push(e.shift())}for(;e.length>0;)for(var f=0,p=o;f<p.length;f++)p[f].codewords.push(e.shift());return o}(d(e,t,r),t,r.errorCorrectionLevel);if(!n)return null;for(var l=n.reduce((function(e,t){return e+t.numDataCodewords}),0),f=new Uint8ClampedArray(l),p=0,h=0,g=n;h<g.length;h++){var m=g[h],v=i.decode(m.codewords,m.codewords.length-m.numDataCodewords);if(!v)return null;for(var y=0;y<m.numDataCodewords;y++)f[p++]=v[y]}try{return o.decode(f,t.versionNumber)}catch(e){return null}}t.decode=function(e){if(null==e)return null;var t=f(e);if(t)return t;for(var r=0;r<e.width;r++)for(var n=r+1;n<e.height;n++)e.get(r,n)!==e.get(n,r)&&(e.set(r,n,!e.get(r,n)),e.set(n,r,!e.get(n,r)));return f(e)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o,i=r(7),a=r(8);function s(e,t){for(var r=[],n="",o=[10,12,14][t],i=e.readBits(o);i>=3;){if((u=e.readBits(10))>=1e3)throw new Error("Invalid numeric value above 999");var a=Math.floor(u/100),s=Math.floor(u/10)%10,c=u%10;r.push(48+a,48+s,48+c),n+=a.toString()+s.toString()+c.toString(),i-=3}if(2===i){if((u=e.readBits(7))>=100)throw new Error("Invalid numeric value above 99");a=Math.floor(u/10),s=u%10,r.push(48+a,48+s),n+=a.toString()+s.toString()}else if(1===i){var u;if((u=e.readBits(4))>=10)throw new Error("Invalid numeric value above 9");r.push(48+u),n+=u.toString()}return{bytes:r,text:n}}!function(e){e.Numeric="numeric",e.Alphanumeric="alphanumeric",e.Byte="byte",e.Kanji="kanji",e.ECI="eci"}(n=t.Mode||(t.Mode={})),function(e){e[e.Terminator=0]="Terminator",e[e.Numeric=1]="Numeric",e[e.Alphanumeric=2]="Alphanumeric",e[e.Byte=4]="Byte",e[e.Kanji=8]="Kanji",e[e.ECI=7]="ECI"}(o||(o={}));var c=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function u(e,t){for(var r=[],n="",o=[9,11,13][t],i=e.readBits(o);i>=2;){var a=e.readBits(11),s=Math.floor(a/45),u=a%45;r.push(c[s].charCodeAt(0),c[u].charCodeAt(0)),n+=c[s]+c[u],i-=2}return 1===i&&(s=e.readBits(6),r.push(c[s].charCodeAt(0)),n+=c[s]),{bytes:r,text:n}}function l(e,t){for(var r=[],n="",o=[8,16,16][t],i=e.readBits(o),a=0;a<i;a++){var s=e.readBits(8);r.push(s)}try{n+=decodeURIComponent(r.map((function(e){return"%"+("0"+e.toString(16)).substr(-2)})).join(""))}catch(e){}return{bytes:r,text:n}}function d(e,t){for(var r=[],n="",o=[8,10,12][t],i=e.readBits(o),s=0;s<i;s++){var c=e.readBits(13),u=Math.floor(c/192)<<8|c%192;u+=u<7936?33088:49472,r.push(u>>8,255&u),n+=String.fromCharCode(a.shiftJISTable[u])}return{bytes:r,text:n}}t.decode=function(e,t){for(var r,a,c,f,p=new i.BitStream(e),h=t<=9?0:t<=26?1:2,g={text:"",bytes:[],chunks:[],version:t};p.available()>=4;){var m=p.readBits(4);if(m===o.Terminator)return g;if(m===o.ECI)0===p.readBits(1)?g.chunks.push({type:n.ECI,assignmentNumber:p.readBits(7)}):0===p.readBits(1)?g.chunks.push({type:n.ECI,assignmentNumber:p.readBits(14)}):0===p.readBits(1)?g.chunks.push({type:n.ECI,assignmentNumber:p.readBits(21)}):g.chunks.push({type:n.ECI,assignmentNumber:-1});else if(m===o.Numeric){var v=s(p,h);g.text+=v.text,(r=g.bytes).push.apply(r,v.bytes),g.chunks.push({type:n.Numeric,text:v.text})}else if(m===o.Alphanumeric){var y=u(p,h);g.text+=y.text,(a=g.bytes).push.apply(a,y.bytes),g.chunks.push({type:n.Alphanumeric,text:y.text})}else if(m===o.Byte){var b=l(p,h);g.text+=b.text,(c=g.bytes).push.apply(c,b.bytes),g.chunks.push({type:n.Byte,bytes:b.bytes,text:b.text})}else if(m===o.Kanji){var w=d(p,h);g.text+=w.text,(f=g.bytes).push.apply(f,w.bytes),g.chunks.push({type:n.Kanji,bytes:w.bytes,text:w.text})}}if(0===p.available()||0===p.readBits(p.available()))return g}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.byteOffset=0,this.bitOffset=0,this.bytes=e}return e.prototype.readBits=function(e){if(e<1||e>32||e>this.available())throw new Error("Cannot read "+e.toString()+" bits");var t=0;if(this.bitOffset>0){var r=8-this.bitOffset,n=e<r?e:r,o=255>>8-n<<(i=r-n);t=(this.bytes[this.byteOffset]&o)>>i,e-=n,this.bitOffset+=n,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(e>0){for(;e>=8;)t=t<<8|255&this.bytes[this.byteOffset],this.byteOffset++,e-=8;var i;e>0&&(o=255>>(i=8-e)<<i,t=t<<e|(this.bytes[this.byteOffset]&o)>>i,this.bitOffset+=e)}return t},e.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},e}();t.BitStream=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(2);t.decode=function(e,t){var r=new Uint8ClampedArray(e.length);r.set(e);for(var i=new n.default(285,256,0),a=new o.default(i,r),s=new Uint8ClampedArray(t),c=!1,u=0;u<t;u++){var l=a.evaluateAt(i.exp(u+i.generatorBase));s[s.length-1-u]=l,0!==l&&(c=!0)}if(!c)return r;var d=new o.default(i,s),f=function(e,t,r,n){var o;t.degree()<r.degree()&&(t=(o=[r,t])[0],r=o[1]);for(var i=t,a=r,s=e.zero,c=e.one;a.degree()>=n/2;){var u=i,l=s;if(s=c,(i=a).isZero())return null;a=u;for(var d=e.zero,f=i.getCoefficient(i.degree()),p=e.inverse(f);a.degree()>=i.degree()&&!a.isZero();){var h=a.degree()-i.degree(),g=e.multiply(a.getCoefficient(a.degree()),p);d=d.addOrSubtract(e.buildMonomial(h,g)),a=a.addOrSubtract(i.multiplyByMonomial(h,g))}if(c=d.multiplyPoly(s).addOrSubtract(l),a.degree()>=i.degree())return null}var m=c.getCoefficient(0);if(0===m)return null;var v=e.inverse(m);return[c.multiply(v),a.multiply(v)]}(i,i.buildMonomial(t,1),d,t);if(null===f)return null;var p=function(e,t){var r=t.degree();if(1===r)return[t.getCoefficient(1)];for(var n=new Array(r),o=0,i=1;i<e.size&&o<r;i++)0===t.evaluateAt(i)&&(n[o]=e.inverse(i),o++);return o!==r?null:n}(i,f[0]);if(null==p)return null;for(var h=function(e,t,r){for(var o=r.length,i=new Array(o),a=0;a<o;a++){for(var s=e.inverse(r[a]),c=1,u=0;u<o;u++)a!==u&&(c=e.multiply(c,n.addOrSubtractGF(1,e.multiply(r[u],s))));i[a]=e.multiply(t.evaluateAt(s),e.inverse(c)),0!==e.generatorBase&&(i[a]=e.multiply(i[a],s))}return i}(i,f[1],p),g=0;g<p.length;g++){var m=r.length-1-i.log(p[g]);if(m<0)return null;r[m]=n.addOrSubtractGF(r[m],h[g])}return r}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.VERSIONS=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}]},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);function o(e,t,r,n){var o=e.x-t.x+r.x-n.x,i=e.y-t.y+r.y-n.y;if(0===o&&0===i)return{a11:t.x-e.x,a12:t.y-e.y,a13:0,a21:r.x-t.x,a22:r.y-t.y,a23:0,a31:e.x,a32:e.y,a33:1};var a=t.x-r.x,s=n.x-r.x,c=t.y-r.y,u=n.y-r.y,l=a*u-s*c,d=(o*u-s*i)/l,f=(a*i-o*c)/l;return{a11:t.x-e.x+d*t.x,a12:t.y-e.y+d*t.y,a13:d,a21:n.x-e.x+f*n.x,a22:n.y-e.y+f*n.y,a23:f,a31:e.x,a32:e.y,a33:1}}t.extract=function(e,t){for(var r,i,a=(i=function(e,t,r,n){var i=o({x:3.5,y:3.5},t,r,n);return{a11:i.a22*i.a33-i.a23*i.a32,a12:i.a13*i.a32-i.a12*i.a33,a13:i.a12*i.a23-i.a13*i.a22,a21:i.a23*i.a31-i.a21*i.a33,a22:i.a11*i.a33-i.a13*i.a31,a23:i.a13*i.a21-i.a11*i.a23,a31:i.a21*i.a32-i.a22*i.a31,a32:i.a12*i.a31-i.a11*i.a32,a33:i.a11*i.a22-i.a12*i.a21}}(0,{x:t.dimension-3.5,y:3.5},{x:t.dimension-6.5,y:t.dimension-6.5},{x:3.5,y:t.dimension-3.5}),{a11:(r=o(t.topLeft,t.topRight,t.alignmentPattern,t.bottomLeft)).a11*i.a11+r.a21*i.a12+r.a31*i.a13,a12:r.a12*i.a11+r.a22*i.a12+r.a32*i.a13,a13:r.a13*i.a11+r.a23*i.a12+r.a33*i.a13,a21:r.a11*i.a21+r.a21*i.a22+r.a31*i.a23,a22:r.a12*i.a21+r.a22*i.a22+r.a32*i.a23,a23:r.a13*i.a21+r.a23*i.a22+r.a33*i.a23,a31:r.a11*i.a31+r.a21*i.a32+r.a31*i.a33,a32:r.a12*i.a31+r.a22*i.a32+r.a32*i.a33,a33:r.a13*i.a31+r.a23*i.a32+r.a33*i.a33}),s=n.BitMatrix.createEmpty(t.dimension,t.dimension),c=function(e,t){var r=a.a13*e+a.a23*t+a.a33;return{x:(a.a11*e+a.a21*t+a.a31)/r,y:(a.a12*e+a.a22*t+a.a32)/r}},u=0;u<t.dimension;u++)for(var l=0;l<t.dimension;l++){var d=c(l+.5,u+.5);s.set(l,u,e.get(Math.floor(d.x),Math.floor(d.y)))}return{matrix:s,mappingFunction:c}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};function o(e){return e.reduce((function(e,t){return e+t}))}function i(e,t,r,o){var i,a,s,c,u=[{x:Math.floor(e.x),y:Math.floor(e.y)}],l=Math.abs(t.y-e.y)>Math.abs(t.x-e.x);l?(i=Math.floor(e.y),a=Math.floor(e.x),s=Math.floor(t.y),c=Math.floor(t.x)):(i=Math.floor(e.x),a=Math.floor(e.y),s=Math.floor(t.x),c=Math.floor(t.y));for(var d=Math.abs(s-i),f=Math.abs(c-a),p=Math.floor(-d/2),h=i<s?1:-1,g=a<c?1:-1,m=!0,v=i,y=a;v!==s+h;v+=h){var b=l?y:v,w=l?v:y;if(r.get(b,w)!==m&&(m=!m,u.push({x:b,y:w}),u.length===o+1))break;if((p+=f)>0){if(y===c)break;y+=g,p-=d}}for(var C=[],k=0;k<o;k++)u[k]&&u[k+1]?C.push(n(u[k],u[k+1])):C.push(0);return C}function a(e,t,r,n){var o,a=t.y-e.y,s=t.x-e.x,c=i(e,t,r,Math.ceil(n/2)),u=i(e,{x:e.x-s,y:e.y-a},r,Math.ceil(n/2)),l=c.shift()+u.shift()-1;return(o=u.concat(l)).concat.apply(o,c)}function s(e,t){var r=o(e)/o(t),n=0;return t.forEach((function(t,o){n+=Math.pow(e[o]-t*r,2)})),{averageSize:r,error:n}}function c(e,t,r){try{var n=a(e,{x:-1,y:e.y},r,t.length),o=a(e,{x:e.x,y:-1},r,t.length),i=a(e,{x:Math.max(0,e.x-e.y)-1,y:Math.max(0,e.y-e.x)-1},r,t.length),c=a(e,{x:Math.min(r.width,e.x+e.y)+1,y:Math.min(r.height,e.y+e.x)+1},r,t.length),u=s(n,t),l=s(o,t),d=s(i,t),f=s(c,t),p=Math.sqrt(u.error*u.error+l.error*l.error+d.error*d.error+f.error*f.error),h=(u.averageSize+l.averageSize+d.averageSize+f.averageSize)/4;return p+(Math.pow(u.averageSize-h,2)+Math.pow(l.averageSize-h,2)+Math.pow(d.averageSize-h,2)+Math.pow(f.averageSize-h,2))/h}catch(e){return 1/0}}function u(e,t){for(var r=Math.round(t.x);e.get(r,Math.round(t.y));)r--;for(var n=Math.round(t.x);e.get(n,Math.round(t.y));)n++;for(var o=(r+n)/2,i=Math.round(t.y);e.get(Math.round(o),i);)i--;for(var a=Math.round(t.y);e.get(Math.round(o),a);)a++;return{x:o,y:(i+a)/2}}function l(e,t,r,i,s){var u,l,d;try{u=function(e,t,r,i){var s=(o(a(e,r,i,5))/7+o(a(e,t,i,5))/7+o(a(r,e,i,5))/7+o(a(t,e,i,5))/7)/4;if(s<1)throw new Error("Invalid module size");var c=Math.round(n(e,t)/s),u=Math.round(n(e,r)/s),l=Math.floor((c+u)/2)+7;switch(l%4){case 0:l++;break;case 2:l--}return{dimension:l,moduleSize:s}}(i,r,s,e),l=u.dimension,d=u.moduleSize}catch(e){return null}var f=r.x-i.x+s.x,p=r.y-i.y+s.y,h=(n(i,s)+n(i,r))/2/d,g=1-3/h,m={x:i.x+g*(f-i.x),y:i.y+g*(p-i.y)},v=t.map((function(t){var r=(t.top.startX+t.top.endX+t.bottom.startX+t.bottom.endX)/4,i=(t.top.y+t.bottom.y+1)/2;if(e.get(Math.floor(r),Math.floor(i)))return o([t.top.endX-t.top.startX,t.bottom.endX-t.bottom.startX,t.bottom.y-t.top.y+1]),{x:r,y:i,score:c({x:Math.floor(r),y:Math.floor(i)},[1,1,1],e)+n({x:r,y:i},m)}})).filter((function(e){return!!e})).sort((function(e,t){return e.score-t.score}));return{alignmentPattern:h>=15&&v.length?v[0]:m,dimension:l}}t.locate=function(e){for(var t=[],r=[],i=[],a=[],s=function(n){for(var s=0,c=!1,u=[0,0,0,0,0],l=function(t){var i=e.get(t,n);if(i===c)s++;else{u=[u[1],u[2],u[3],u[4],s],s=1,c=i;var l=o(u)/7,d=Math.abs(u[0]-l)<l&&Math.abs(u[1]-l)<l&&Math.abs(u[2]-3*l)<3*l&&Math.abs(u[3]-l)<l&&Math.abs(u[4]-l)<l&&!i,f=o(u.slice(-3))/3,p=Math.abs(u[2]-f)<f&&Math.abs(u[3]-f)<f&&Math.abs(u[4]-f)<f&&i;if(d){var h=t-u[3]-u[4],g=h-u[2],m={startX:g,endX:h,y:n};(v=r.filter((function(e){return g>=e.bottom.startX&&g<=e.bottom.endX||h>=e.bottom.startX&&g<=e.bottom.endX||g<=e.bottom.startX&&h>=e.bottom.endX&&u[2]/(e.bottom.endX-e.bottom.startX)<1.5&&u[2]/(e.bottom.endX-e.bottom.startX)>.5}))).length>0?v[0].bottom=m:r.push({top:m,bottom:m})}if(p){var v,y=t-u[4],b=y-u[3];m={startX:b,y:n,endX:y},(v=a.filter((function(e){return b>=e.bottom.startX&&b<=e.bottom.endX||y>=e.bottom.startX&&b<=e.bottom.endX||b<=e.bottom.startX&&y>=e.bottom.endX&&u[2]/(e.bottom.endX-e.bottom.startX)<1.5&&u[2]/(e.bottom.endX-e.bottom.startX)>.5}))).length>0?v[0].bottom=m:a.push({top:m,bottom:m})}}},d=-1;d<=e.width;d++)l(d);t.push.apply(t,r.filter((function(e){return e.bottom.y!==n&&e.bottom.y-e.top.y>=2}))),r=r.filter((function(e){return e.bottom.y===n})),i.push.apply(i,a.filter((function(e){return e.bottom.y!==n}))),a=a.filter((function(e){return e.bottom.y===n}))},d=0;d<=e.height;d++)s(d);t.push.apply(t,r.filter((function(e){return e.bottom.y-e.top.y>=2}))),i.push.apply(i,a);var f=t.filter((function(e){return e.bottom.y-e.top.y>=2})).map((function(t){var r=(t.top.startX+t.top.endX+t.bottom.startX+t.bottom.endX)/4,n=(t.top.y+t.bottom.y+1)/2;if(e.get(Math.round(r),Math.round(n))){var i=[t.top.endX-t.top.startX,t.bottom.endX-t.bottom.startX,t.bottom.y-t.top.y+1],a=o(i)/i.length;return{score:c({x:Math.round(r),y:Math.round(n)},[1,1,3,1,1],e),x:r,y:n,size:a}}})).filter((function(e){return!!e})).sort((function(e,t){return e.score-t.score})).map((function(e,t,r){if(t>4)return null;var n=r.filter((function(e,r){return t!==r})).map((function(t){return{x:t.x,y:t.y,score:t.score+Math.pow(t.size-e.size,2)/e.size,size:t.size}})).sort((function(e,t){return e.score-t.score}));if(n.length<2)return null;var o=e.score+n[0].score+n[1].score;return{points:[e].concat(n.slice(0,2)),score:o}})).filter((function(e){return!!e})).sort((function(e,t){return e.score-t.score}));if(0===f.length)return null;var p=function(e,t,r){var o,i,a,s,c,u,l,d=n(e,t),f=n(t,r),p=n(e,r);return f>=d&&f>=p?(c=(o=[t,e,r])[0],u=o[1],l=o[2]):p>=f&&p>=d?(c=(i=[e,t,r])[0],u=i[1],l=i[2]):(c=(a=[e,r,t])[0],u=a[1],l=a[2]),(l.x-u.x)*(c.y-u.y)-(l.y-u.y)*(c.x-u.x)<0&&(c=(s=[l,c])[0],l=s[1]),{bottomLeft:c,topLeft:u,topRight:l}}(f[0].points[0],f[0].points[1],f[0].points[2]),h=p.topRight,g=p.topLeft,m=p.bottomLeft,v=l(e,i,h,g,m),y=[];v&&y.push({alignmentPattern:{x:v.alignmentPattern.x,y:v.alignmentPattern.y},bottomLeft:{x:m.x,y:m.y},dimension:v.dimension,topLeft:{x:g.x,y:g.y},topRight:{x:h.x,y:h.y}});var b=u(e,h),w=u(e,g),C=u(e,m),k=l(e,i,b,w,C);return k&&y.push({alignmentPattern:{x:k.alignmentPattern.x,y:k.alignmentPattern.y},bottomLeft:{x:C.x,y:C.y},topLeft:{x:w.x,y:w.y},topRight:{x:b.x,y:b.y},dimension:k.dimension}),0===y.length?null:y}}]).default},e.exports=r()})));function JH(e){return eq.apply(this,arguments)}function eq(){return(eq=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.imageData,n=t.canvas,(o=r)||(i=n.getContext("2d"),o=i.getImageData(0,0,n.width,n.height)),!(a=ZH(o.data,o.width,o.height,{inversionAttempts:"dontInvert"}))){e.next=6;break}return e.abrupt("return",a.data);case 6:return e.abrupt("return","");case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tq(e){return rq.apply(this,arguments)}function rq(){return(rq=EM(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.canvas,n=t.qrScannerResources,e.abrupt("return",new Promise((function(e){setTimeout((function(){return e("")}),1e3),QH.scanImage(r,void 0,void 0,n.canvas).then(e).catch((function(){return e("")}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var nq,oq,iq,aq,sq,cq,uq=function(){var e=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.canvas,n=t.blackAndWhiteConverterResources,o=t.qrScannerResources,i=n.kernel,a=n.canvas,s=n.dst,c=window,u=c.cv,l="",d=u.imread(r),u.cvtColor(d,s,u.COLOR_RGBA2GRAY),u.filter2D(s,s,-1,i),u.imshow(a,s),e.next=10,JH({canvas:a});case 10:if(l=e.sent){e.next=15;break}return e.next=14,tq({canvas:a,qrScannerResources:o});case 14:l=e.sent;case 15:return d.delete(),e.abrupt("return",l);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),lq=function(){var e=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.canvas,n=t.blob,o=t.qrScannerResources,i=t.blackAndWhiteConverterResources,a=r,!n){e.next=6;break}return e.next=5,TL.blobToCanvas({blob:n});case 5:a=e.sent;case 6:return s=a.getContext("2d"),e.next=9,JH({imageData:s.getImageData(0,0,a.width,a.height)});case 9:if(c=e.sent){e.next=18;break}return e.next=13,tq({canvas:a,qrScannerResources:o});case 13:if(c=e.sent){e.next=18;break}return e.next=17,uq({canvas:a,blackAndWhiteConverterResources:i,qrScannerResources:o});case 17:c=e.sent;case 18:return e.abrupt("return",c);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),dq=function(){var e=EM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s,c,u,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:{},r=t.blob,n=t.resultWarmup,o=t.enableValidation,i=void 0===o||o,a=n.qrScannerResources,s=n.blackAndWhiteConverterResources,c={},e.next=5,lq({blob:r,qrScannerResources:a,blackAndWhiteConverterResources:s});case 5:return u=e.sent,i&&u&&(c=WH(u)),e.abrupt("return",{result:u,validateResult:c});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),fq=function(e){var t=e.shouldStart,r=e.refVideo,n=e.cropArea,o=e.settings,i=e.onSessionTimeout,a=e.onCaptureDone,s=e.onAboutToTimeout,c=e.outputEncryptionSettings,u=IM(ov.useState(!1),2),l=u[0],d=u[1],f=ov.useRef((function(){})),p=ov.useRef((function(){})),h=nN.useSDKSettings().lang,g=function(e){var t=e.refVideo,r=e.shouldStart,n=e.cropArea,o=e.settings,i=e.onResult,a=e.outputEncryptionSettings,s=ov.useRef(null);null===s.current&&(s.current=document.createElement("canvas"));var c=ov.useRef(!1),u=ov.useRef(null),l=IM(ov.useState(!1),2),d=l[0],f=l[1],p=ov.useRef({}),h=nN.useSDKSettings().customUrls;ov.useEffect((function(){function e(){return(e=EM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=5;break}return e.next=3,$H(h);case 3:p.current=e.sent,f(!0);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[d,h]);var g=ov.useCallback((function(){!0===c.current&&(c.current=!1)}),[]),m=ov.useCallback(EM(regeneratorRuntime.mark((function e(){var r,n,l,f,h,m,v,y,b,w,C,k,E,S,B,_;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d&&o&&!c.current){e.next=2;break}return e.abrupt("return");case 2:r=p.current,n=r.qrScannerResources,l=r.blackAndWhiteConverterResources,f=u.current,h=t.current,c.current=!0,m=f.cropX,v=f.cropY,y=f.cropWidth,b=f.cropHeight,(w=s.current).width=y,w.height=b,C=w.getContext("2d");case 11:return C.drawImage(h,m,v,y,b,0,0,y,b),e.next=15,lq({canvas:w,qrScannerResources:n,blackAndWhiteConverterResources:l});case 15:if(!(k=e.sent)){e.next=29;break}return g(),E=WH(k),e.next=21,fO.takePicture({canvas:s.current});case 21:if(S=e.sent,B=void 0,!a||!a.key){e.next=28;break}return _=a.key,e.next=27,vM.encrypt({blob:S,key:_});case 27:B=e.sent;case 28:i({result:k,validateResult:E,image:{blob:S,encrypted:B}});case 29:if(c.current){e.next=31;break}return e.abrupt("break",33);case 31:e.next=11;break;case 33:case"end":return e.stop()}}),e)}))),[t,o,d,i,g,a]);ov.useEffect((function(){var e=t.current;function o(){return(o=EM(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u.current=fO.analyzeVideoAndWindowSizes(e,n,0),t.next=3,m();case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}d&&r&&n&&function(){o.apply(this,arguments)}()}),[r,n,t,g,m,d]);var v=ov.useCallback((function(){g()}),[g]);return ov.useEffect((function(){return v}),[v]),{refWorkingCanvas:s,stopCheckFrame:g,checkFrame:m,warmupDone:d}}({refVideo:r,shouldStart:t,cropArea:n,settings:o,onResult:ov.useCallback((function(){f.current.apply(f,arguments)}),[]),outputEncryptionSettings:c}),m=g.stopCheckFrame,v=g.checkFrame,y=g.warmupDone,b=ZK({refVideo:r,shouldStart:t&&y,cropArea:n,settings:o}),w=b.stopCheckFrame,C=b.refRecordedVideos,k=b.splitVideos,E=b.resetRecordedVideos,S=b.checkFrame;f.current=ov.useCallback((function(e){d(!0),w(),m(),p.current(),a(AM(AM({},e),{},{recordedVideos:C.current})),d(!1)}),[w,a,C,m]);var B=ov.useCallback((function(){w(),m(),E(),i()}),[E,w,m,i]),_=ov.useCallback((function(){k()}),[k]),A=rH({lang:h,onAboutToTimeout:s,onSessionTimeout:B,onVideoTimeLimitReached:_,settings:o,shouldStartTimers:t&&y,sessionTime:null==o?void 0:o.scanQrLimitTimeSecond}),x=A.stopTimers,T=A.startTimers;return p.current=x,{isProcessing:l,restartSession:ov.useCallback(EM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(),e.next=3,Promise.all([S(),v()]);case 3:case"end":return e.stop()}}),e)}))),[S,v,T]),refRecordedVideos:C,warmupDone:y}};function pq(e){var t=e.windowAndVideoInfo,r=e.onUISpacingChange,n=e.refVideo,o=e.settings,i=e.onCaptureDone,a=e.outputEncryptionSettings,s=IM(ov.useState(null),2),c=s[0],u=s[1],l=UN.useAsset("qr_capture_cursor.png"),d=IM(ov.useState({}),2),f=d[0],p=d[1],h=f.yTooltip,g=f.yMessage,m=nN.useSDKSettings().lang,v=CK(),y=v.showPopup,b=v.popupShown,w=v.popupType,C=IM(ov.useState(!1),2),k=C[0],E=C[1],S=IM(ov.useState(null),2),B=S[0],_=S[1],A=UN.useAsset("ic_loading.png");ov.useEffect((function(){y({popupType:BK})}),[y]),ov.useEffect((function(){if(t){var e=t.videoAreaWidth,n=t.lostX,o=t.lostY,i=YM.isMobile?Math.min(e-6,145):145,a=i,s=o+10,c=s+90,l=c+40,d=l+a+20,f=Math.floor((e-i)/2)+n;u({x:f,y:l,width:i,height:a,surroundStyle:{opacity:.6,background:"#000"}});var h={yTitle:s,yTooltip:d,yMessage:c};p(h),r(h)}}),[t,r]);var x=ov.useCallback((function(){_(""),i()}),[i]),T=ov.useCallback((function(e){var t=e.validateResult.valid;_(""),t?i(e):y({popupType:SK})}),[y,i]),I=ov.useCallback((function(e){var t=e.curTimeLeft;_(Mj(fH.REMAINING_TIME[m])({x:t}))}),[m]),P=fq({shouldStart:k,refVideo:n,cropArea:c,settings:o,onSessionTimeout:x,onCaptureDone:T,onAboutToTimeout:I,outputEncryptionSettings:a}),R=P.isProcessing,N=P.restartSession,O=P.warmupDone,L=ov.useCallback((function(){y({popupType:null})}),[y]),M=ov.useCallback(EM(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(),e.next=3,N();case 3:case"end":return e.stop()}}),e)}))),[N,L]),D=ov.useCallback((function(){L(),i()}),[L,i]),U=ov.useCallback((function(){L(),setTimeout((function(){E(!0)}),200)}),[L]);return ov.createElement(ov.Fragment,null,!O&&ov.createElement(EV,{contentStyle:{maxWidth:"300px"}}),c&&ov.createElement(_D,{x:"".concat(c.x,"px"),y:"".concat(c.y,"px"),width:"".concat(c.width,"px"),height:"".concat(c.height,"px"),surroundStyle:c.surroundStyle},ov.createElement("div",null,ov.createElement("img",{src:l,width:c.width,height:c.height,alt:""}))),ov.createElement(lH,{y:"".concat(h,"px")},fH.QR_TOOLTIP[m]),B&&ov.createElement(dH,{key:B,className:"message",y:"".concat(g,"px")},B),R&&ov.createElement(iK,null,ov.createElement("img",{src:A,alt:"",className:"spin"})),ov.createElement(oV,{contentStyle:{maxWidth:"332px"},open:b},w===SK&&ov.createElement(BH,{onRetry:M,onSkip:D}),w===kK&&ov.createElement(TH,{onRetry:M,onSkip:D}),w===BK&&ov.createElement(HH,{onClickStart:U,onTimeout:U})))}pq.propTypes={windowAndVideoInfo:Tv.shape({}),onUISpacingChange:Tv.func,refVideo:Tv.shape({}),settings:Tv.shape({}),onCaptureDone:Tv.func,outputEncryptionSettings:Tv.shape({})},pq.defaultProps={windowAndVideoInfo:{},onUISpacingChange:function(){},refVideo:{},settings:{},onCaptureDone:function(){},outputEncryptionSettings:null};var hq,gq,mq,vq,yq,bq={SUCCESS:"SUCCESS",WARNING:"WARNING"},wq=(SM(nq={},bq.SUCCESS,"52,206,95"),SM(nq,bq.WARNING,"255,148,50"),nq),Cq=(SM(oq={},bq.SUCCESS,"✓"),SM(oq,bq.WARNING,"!"),oq),kq=Zb.div(iq||(iq=TM(["\n font-weight: normal;\n"]))),Eq=Zb.div(aq||(aq=TM(["\n height: 2px;\n width: 100%;\n background: ",";\n"])),(function(e){return Db(["linear-gradient(to right,rgba(",",0),rgba(",",1),rgba(",",0));"],wq[e.type],wq[e.type],wq[e.type])})),Sq=Zb.div(sq||(sq=TM(["\n width: 22px;\n height: 22px;\n border-radius: 50%;\n background: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n color: #fff;\n margin-right: 8px;\n font-weight: bold;\n"])),(function(e){return Db(["rgb(",")"],wq[e.type])})),Bq=Zb.div(cq||(cq=TM(["\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 10px 0;\n"]))),_q=function(e){var t=e.children,r=e.type,n=e.className;return ov.createElement(kq,{className:n},ov.createElement(Eq,{type:r}),ov.createElement(Bq,null,ov.createElement(Sq,{type:r},Cq[r]),t),ov.createElement(Eq,{type:r}))};_q.propTypes={children:Tv.node,type:Tv.string,className:Tv.string},_q.defaultProps={children:null,type:bq.SUCCESS,className:""};var Aq=Zb.div(hq||(hq=TM(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),xq=Zb.div(gq||(gq=TM(["\n text-align: center;\n font-size: 1rem;\n color: #ea3223;\n margin-top: 10px;\n"]))),Tq=Zb.button(mq||(mq=TM(["\n margin-top: 20px;\n width: 100%;\n max-width: 160px;\n height: 50px;\n background-color: ",";\n border: 0;\n outline: none;\n border-radius: 0.25rem;\n color: #fff;\n font-weight: 400;\n cursor: pointer;\n font-size: 1rem;\n"])),(function(e){return e.theme.tsBlue})),Iq=Zb.img(vq||(vq=TM(["\n width: 100%;\n height: 100%;\n object-fit: contain;\n border-radius: 5px;\n"]))),Pq=Zb.div(yq||(yq=TM(["\n margin: 20px 0;\n width: 100%;\n display: flex;\n justify-content: space-evenly;\n gap: 10px;\n"]))),Rq=function(e){var t=e.imageTaken,r=e.onConfirm,n=e.onTryAgain,o=e.error,i=e.hasValidQR,a=IM(ov.useState(null),2),s=a[0],c=a[1],u=nN.useSDKSettings().lang;return ov.useEffect((function(){var e;return t&&(e=URL.createObjectURL(t.blob),c(e)),function(){URL.revokeObjectURL(e)}}),[t]),ov.createElement(Aq,null,null!==i&&ov.createElement(pH,{mb:"20px"},ov.createElement("div",null,ov.createElement(_q,{type:i?bq.SUCCESS:bq.WARNING},i?gK.CONFIRM_POPUP_VALID_QR[u]:gK.CONFIRM_POPUP_INVALID_QR[u]))),ov.createElement(jH,{ratio:1.5},ov.createElement(Iq,{src:s})),o&&ov.createElement(xq,{className:"confirm-popup-error-message"},o.msg[u]),ov.createElement(Pq,null,ov.createElement(Tq,{onClick:n},gK.BTN_TRY_AGAIN[u]),ov.createElement(Tq,{onClick:r},gK.BTN_USE_THIS_PICTURE[u])))};Rq.propTypes={imageTaken:Tv.shape({}),error:Tv.shape({msg:Tv.shape({})}),onConfirm:Tv.func,onTryAgain:Tv.func,hasValidQR:Tv.bool},Rq.defaultProps={imageTaken:null,error:null,onConfirm:function(){},onTryAgain:function(){},hasValidQR:null};var Nq={tsBlue:"#0276f1",tsSecondary:"rgba(0, 47, 117, 0.6)"};function Oq(e){var t=this.__data__=new Qj(e);this.size=t.size}Oq.prototype.clear=function(){this.__data__=new Qj,this.size=0},Oq.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Oq.prototype.get=function(e){return this.__data__.get(e)},Oq.prototype.has=function(e){return this.__data__.has(e)},Oq.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Qj){var n=r.__data__;if(!Gj||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $j(n)}return r.set(e,t),this.size=r.size,this};var Lq,Mq=Oq,Dq=function(e,t,r){(void 0!==r&&!mU(e[t],r)||void 0===r&&!(t in e))&&gU(e,t,r)},Uq=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[++n];if(!1===t(o[s],s,o))break}return e},jq=MM((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?RD.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}})),Fq=RD.Uint8Array,Vq=function(e,t){var r=t?function(e){var t=new e.constructor(e.byteLength);return new Fq(t).set(new Fq(e)),t}(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},zq=Object.create,Kq=function(){function e(){}return function(t){if(!TD(t))return{};if(zq)return zq(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Hq=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},qq=function(e,t,r,n,o,i,a){var s=Hq(e,r),c=Hq(t,r),u=a.get(c);if(u)Dq(e,r,u);else{var l=i?i(s,c,r+"",e,t,a):void 0,d=void 0===l;if(d){var f=jU(c),p=!f&&VU(c),h=!f&&!p&&qU(c);l=c,f||p||h?jU(s)?l=s:function(e){return qD(e)&&TU(e)}(s)?l=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(s):p?(d=!1,l=jq(c,!0)):h?(d=!1,l=Vq(c,!0)):l=[]:sj(c)||UU(c)?(l=s,UU(s)?l=function(e){return bU(e,ZU(e))}(s):TD(s)&&!rU(s)||(l=function(e){return"function"!=typeof e.constructor||XU(e)?{}:Kq(tj(e))}(c))):d=!1}d&&(a.set(c,l),o(l,c,n,i,a),a.delete(c)),Dq(e,r,l)}},Wq=function e(t,r,n,o,i){t!==r&&Uq(r,(function(a,s){if(i||(i=new Mq),TD(a))qq(t,r,s,n,e,o,i);else{var c=o?o(Hq(t,s),a,s+"",t,r,i):void 0;void 0===c&&(c=a),Dq(t,s,c)}}),ZU)},Qq=NU((function(e,t,r){Wq(e,t,r)})),Gq={data:{settings:{sdk_settings:{id_detection_settings:{auto_capture:{enable:!0,show_capture_button:!0,wait_for_best_image_time_ms_web:1e3},blur_check:{enable:!0,threshold_web:.82},disable_capture_button_if_alert:!1,id_detection:{enable:!0},limit_time_settings:{enable:!0,limit_time_second:30,video_partial_length_seconds:15},save_frame_settings:{enable:!1,frames_interval_ms:190,quality_web:80},scan_qr_settings:{enable:!0,limit_time_second:20}}}}}};function Xq(e){var t=e.clientSettings,r=IM(ov.useState(null),2),n=r[0],o=r[1];return ov.useEffect((function(){var e=Qq(Gq,t),r=iF(e,"data.settings.sdk_settings.id_detection_settings.save_frame_settings.enable"),n=iF(e,"data.settings.sdk_settings.id_detection_settings.save_frame_settings.frames_interval_ms"),i=iF(e,"data.settings.sdk_settings.id_detection_settings.save_frame_settings.quality_web"),a=iF(e,"data.settings.sdk_settings.id_detection_settings.limit_time_settings.enable"),s=iF(e,"data.settings.sdk_settings.id_detection_settings.limit_time_settings.limit_time_second"),c=iF(e,"data.settings.sdk_settings.id_detection_settings.limit_time_settings.video_partial_length_seconds"),u=iF(e,"data.settings.sdk_settings.id_detection_settings.auto_capture.enable"),l=iF(e,"data.settings.sdk_settings.id_detection_settings.auto_capture.wait_for_best_image_time_ms_web"),d=iF(e,"data.settings.sdk_settings.id_detection_settings.blur_check.enable"),f=iF(e,"data.settings.sdk_settings.id_detection_settings.blur_check.threshold_web"),p=iF(e,"data.settings.sdk_settings.id_detection_settings.disable_capture_button_if_alert"),h=iF(e,"data.settings.sdk_settings.id_detection_settings.id_detection.enable"),g=iF(e,"data.settings.sdk_settings.id_detection_settings.scan_qr_settings.enable"),m=iF(e,"data.settings.sdk_settings.id_detection_settings.scan_qr_settings.limit_time_second");o({enableRecording:r,frameCaptureIntervalMs:n,idCardSessionTime:s,maxRecordingTimePerVideo:c,saveFrameQuality:i,enableTimers:a,enableAutoCapture:u,waitForBestImageTimeMs:l,enableBlurCheck:d,blurThreshold:f,disableCaptureButtonIfAlert:p,enableIdDetection:h,enableScanQr:g,scanQrLimitTimeSecond:m})}),[t]),{settings:n}}var Yq=ew(Lq||(Lq=TM(["\n .text-primary {\n color: ",";\n }\n"])),(function(e){return e.theme.tsBlue})),$q=ZT.IDCardSide,Zq=ZT.IDCardType,Jq=ZT.Errors,eW={ID_CARD:"id_card",QR_CODE:"qr_code"},tW=[{scannerType:eW.ID_CARD,title:"Mặt trước CMND/CCCD",description:"Vui lòng đặt CMND mặt trước vào trong khung",titleIcon:"id_card_front.svg",cardSide:ZT.IDCardSide.FRONT,cardType:Zq.VN,frontCamera:!1,enableConfirmPopup:!0},{scannerType:eW.ID_CARD,title:"Mặt sau CMND/CCCD",description:"Vui lòng đặt CMND mặt sau vào trong khung",titleIcon:"id_card_back.svg",cardSide:ZT.IDCardSide.BACK,cardType:Zq.VN,frontCamera:!1,enableConfirmPopup:!0}],rW={scannerType:eW.QR_CODE,title:"Quét mã QR trên CCCD",frontCamera:!1};function nW(e){var t=e.onClose,r=e.onError,n=e.clientSettings,o=e.detectIdCard,i=e.onStepDone,a=e.steps,s=e.outputEncryptionSettings,c=e.defaultCameraId,u=IM(ov.useState(0),2),l=u[0],d=u[1],f=IM(ov.useState(a[l]),2),p=f[0],h=f[1],g=ov.useRef(null),m=IM(ov.useState(null),2),v=m[0],y=m[1],b=IM(ov.useState(!1),2),w=b[0],C=b[1],k=IM(ov.useState(0),2),E=k[0],S=k[1],B=ov.useRef(),_=p.scannerType,A=p.frontCamera,x=p.title,T=p.titleIcon,I=p.cardSide,P=p.description,R=p.usePortraitMask,N=p.cardType,O=p.enableConfirmPopup,L=I===$q.FRONT,M=UN.useAsset(T),D=CK(),U=D.showPopup,j=D.popupShown,F=D.popupType,V=D.props,z=IM(ov.useState(!1),2),K=z[0],H=z[1],q=UN.useAsset("ic_loading.png"),W=ov.useRef({}),Q=ov.useRef(null),G=ov.useRef([]),X=Xq({clientSettings:n}).settings,Y=IM(ov.useState({}),2),$=Y[0],Z=Y[1],J=$.yTitle,ee=ov.useCallback((function(e){y(e),C(!0)}),[]);ov.useEffect((function(){C(!1)}),[A]);var te=ov.useCallback((function(){U({popupType:null})}),[U]),re=ov.useCallback((function(e){e>=a.length||setTimeout((function(){d(e),h(a[e])}),200)}),[a]),ne=ov.useCallback((function(){re(l+1)}),[re,l]),oe=ov.useCallback((function(){setTimeout((function(){h((function(e){return AM(AM({},rW),{},{enableConfirmPopup:e.enableConfirmPopup})}))}),200)}),[]),ie=ov.useCallback(EM(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={stepNumber:l,image:W.current,recordedVideos:null!=X&&X.enableRecording?G.current:[]},_===eW.QR_CODE&&(t.qrScannedResult=Q.current),H(!0),e.next=5,i(t);case 5:H(!1),ne();case 7:case"end":return e.stop()}}),e)}))),[X,l,i,ne,_]),ae=ov.useCallback((function(){te(),_===eW.QR_CODE?re(l):_===eW.ID_CARD&&B.current.restartSession()}),[re,l,te,_]),se=ov.useCallback((function(){te(),ie()}),[ie,te]),ce=ov.useCallback(function(){var e=EM(regeneratorRuntime.mark((function e(t){var n,i,a,s,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.image,i=t.error,a=t.recordedVideos,W.current=n,G.current=a,S((function(e){return e+1})),I!==ZT.IDCardSide.FRONT){e.next=23;break}if(!X.enableScanQr||!YM.isMobile){e.next=23;break}if(c=null==n||null===(s=n.detectedCard)||void 0===s?void 0:s.label){e.next=20;break}return H(!0),e.prev=9,e.next=12,o({image:n,cardType:N,cardSide:I});case 12:u=e.sent,c=u.card_label,e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),r(Jq.detect_id_card_error);case 19:H(!1);case 20:if(!c||!"vn.cccd_new.front".includes(c)){e.next=23;break}return oe(),e.abrupt("return");case 23:O?U({popupType:EK,props:{imageTaken:W.current,error:i}}):ie();case 24:case"end":return e.stop()}}),e,null,[[9,16]])})));return function(t){return e.apply(this,arguments)}}(),[O,U,I,X,N,o,ie,oe,r]),ue=ov.useCallback((function(e){var t;if(Q.current=e,e){var r,n=e.recordedVideos;(r=G.current).push.apply(r,PM(n))}S((function(e){return e+1}));var o=Boolean(null==e||null===(t=e.validateResult)||void 0===t?void 0:t.valid);O?U({popupType:EK,props:{hasValidQR:o,imageTaken:W.current}}):ie()}),[U,O,ie]);return ov.createElement(Xb,{theme:Nq},ov.createElement(rK,null,ov.createElement(wD,{key:A,frontCamera:A,onVideoPlayed:ee,onClose:t,flipHorizontal:A,ref:g,onError:r,defaultCameraId:c},w&&ov.createElement(ov.Fragment,null,_===eW.ID_CARD&&ov.createElement(iH,{key:l,ref:B,windowAndVideoInfo:v,refVideo:g,settings:X,onCaptureDone:ce,onUISpacingChange:Z,frontSide:L,description:P,usePortraitMask:R,outputEncryptionSettings:s}),_===eW.QR_CODE&&ov.createElement(pq,{key:l,refVideo:g,windowAndVideoInfo:v,settings:X,onCaptureDone:ue,onUISpacingChange:Z,outputEncryptionSettings:s})),ov.createElement(tK,{keyForTransition:E}),ov.createElement(sK,{y:"".concat(J,"px")},ov.createElement(bz,null,ov.createElement(gz,{key:x,timeout:{enter:500,exit:500},classNames:"flipY",unmountOnExit:!0},ov.createElement(cK,null,T&&ov.createElement(nK,{src:M,alt:""}),ov.createElement(uK,{className:"title"},x))))),K&&ov.createElement(iK,null,ov.createElement("img",{src:q,alt:"",className:"spin"}))),ov.createElement(oV,{open:j},F===EK&&ov.createElement(Rq,BM({},V,{onConfirm:se,onTryAgain:ae})))),ov.createElement(Yq,null))}nW.propTypes={onClose:Tv.func,onError:Tv.func,clientSettings:Tv.shape({}),detectIdCard:Tv.func,onStepDone:Tv.func,steps:Tv.arrayOf(Tv.shape({})),outputEncryptionSettings:Tv.shape({}),defaultCameraId:Tv.string},nW.defaultProps={onClose:function(){},onError:function(){},clientSettings:{},detectIdCard:function(){return Promise.resolve({card_label:""})},onStepDone:function(){},steps:tW,outputEncryptionSettings:null,defaultCameraId:void 0};var oW=["tracking","clientSettings"];function iW(e){var t=e.tracking,r=e.clientSettings,n=xM(e,oW),o=ov.useMemo((function(){return iF(r,"data.settings.sdk_settings.server_log_settings.enable",null==t?void 0:t.enable)}),[r,t]);return ov.createElement(LN.SDKTrackingProvider,{value:{tracking:AM(AM({},t),{},{enable:o})}},ov.createElement(nW,BM({},n,{clientSettings:r})))}iW.propTypes={tracking:Tv.shape({}),clientSettings:Tv.shape({})},iW.defaultProps={tracking:void 0,clientSettings:void 0};var aW=ZT.IDCardSide,sW=ZT.Errors;function cW(e){return uW.apply(this,arguments)}function uW(){return(uW=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.image,n=t.cardType,o=t.cardSide,i=t.apiClient,a=t.outputEncryptionSettings,s={label:"id_card.".concat(n,".").concat(o)},!a||!a.key){e.next=4;break}return e.abrupt("return",i.httpClient.post("/v1/images",AM({base64:r.encrypted.hex},s),{"X-TV-Key":a.key}));case 4:return e.abrupt("return",i.uploadImage(AM({file:r.blob},s)));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lW(e){return dW.apply(this,arguments)}function dW(){return(dW=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.image,n=t.apiClient,o=t.rawString,i=t.outputEncryptionSettings,a={label:"qr_code",metadata:JSON.stringify({raw:o})},!i||!i.key){e.next=4;break}return e.abrupt("return",n.httpClient.post("/v1/images",AM({base64:r.encrypted.hex},a),{"X-TV-Key":i.key}));case 4:return e.abrupt("return",n.uploadImage(AM({file:r.blob},a)));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fW(e){return pW.apply(this,arguments)}function pW(){return(pW=EM(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.imageId,n=t.cardType,o=t.apiClient,e.abrupt("return",o.requestVerifyIDCard({card_type:n,image1:{id:r}}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hW(e){return gW.apply(this,arguments)}function gW(){return(gW=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.apiClient,n=t.cardType,o=t.frontCardId,i=t.isCapturingFrontSide,a=t.backCardId,s=t.recordedVideos,c=t.qrImageId,u=s.filter((function(e){return null!==e.id})),l=s.filter((function(e){return null===e.id&&e.frames.length>0})),e.next=5,Promise.all(l.map((function(e){return r.fileService.request({frames:e.frames})})));case 5:return d=e.sent,f={card_type:n,image:{id:o},image2:i?void 0:{id:a},videos:[].concat(PM(u.map((function(e){return{id:e.id}}))),PM(d.map((function(e){return{id:e.data.file_id}}))))},c&&(f.qr1_images=[{id:c}]),e.abrupt("return",r.detectIDTampering(f));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mW(e){return vW.apply(this,arguments)}function vW(){return(vW=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cardType,n=t.apiClient,o=t.frontCardId,i=t.backCardId,a=t.isCapturingFrontSide,s=t.qrImageId,c={card_type:r,image1:a?{id:o}:{id:i}},s&&(c.qr1_images=[{id:s}]),e.abrupt("return",n.readIDCard(c));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yW(e){return bW.apply(this,arguments)}function bW(){return(bW=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,d,f,p,h,g,m,v,y,b,w,C,k,E,S,B;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.image,o=t.frontCardId,i=t.qrImageId,a=t.onError,s=t.recordedVideos,c=t.apiClient,u=t.cardType,l=t.cardSide,d=t.qrScannedResult,f=t.outputEncryptionSettings,l!==aW.BACK||o){e.next=4;break}return a(sW.missing_front_id_card),e.abrupt("return");case 4:return p=[cW({image:n,cardType:u,cardSide:l,apiClient:c,outputEncryptionSettings:f})],d&&p.push(lW({image:d.image,apiClient:c,rawString:d.result,outputEncryptionSettings:f})),e.next=8,Promise.all(p);case 8:if(h=e.sent,g=IM(h,2),m=g[0],v=g[1],!m.errors){e.next=15;break}return a(AM(AM({},sW.upload_error),{},{details:m.errors})),e.abrupt("return");case 15:return y=m.data.image_id,b=(null==v||null===(r=v.data)||void 0===r?void 0:r.image_id)||i,(k=l===aW.FRONT)?w=y:(w=o,C=y),e.next=21,fW({imageId:y,cardType:u,apiClient:c});case 21:if(!(E=e.sent).errors){e.next=25;break}return a(AM(AM({},sW.sanity_check_error),{},{details:E.errors})),e.abrupt("return");case 25:return e.next=27,mW({cardType:u,apiClient:c,frontCardId:w,backCardId:C,isCapturingFrontSide:k,qrImageId:b});case 27:if(!(S=e.sent).errors){e.next=31;break}return a(AM(AM({},sW.read_id_card_error),{},{details:S.errors})),e.abrupt("return");case 31:return e.next=33,hW({apiClient:c,cardType:u,frontCardId:w,isCapturingFrontSide:k,backCardId:C,recordedVideos:s,qrImageId:b});case 33:if(!(B=e.sent).errors){e.next=37;break}return a(AM(AM({},sW.detect_id_tampering_error),{},{details:B.errors})),e.abrupt("return");case 37:return e.abrupt("return",{sanityResult:E.data,tamperingInfo:B.data,cardInfo:S.data,qrImageId:b});case 38:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var wW=["onClose","onError","detectIdCard","steps","onStepDone","apiCredentials","tracking","outputEncryptionSettings"],CW=ZT.Errors,kW=function(e){var t=e.onClose,r=e.onError,n=e.detectIdCard,o=e.steps,i=e.onStepDone,a=e.apiCredentials,s=e.tracking,c=e.outputEncryptionSettings,u=xM(e,wW),l=IM(ov.useState(null),2),d=l[0],f=l[1],p=KL.useApiClient({apiCredentials:a,tracking:s}).apiClient,h=ov.useRef(""),g=ov.useRef("");ov.useEffect((function(){function e(){return(e=EM(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.clientSettings();case 2:t=e.sent,f(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[p]);var m=ov.useCallback(function(){var e=EM(regeneratorRuntime.mark((function e(t){var n,a,s,u,l,d,f,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.stepNumber,a=t.recordedVideos,s=t.qrScannedResult,u=t.image,l=o[n],d=l.cardType,f=l.cardSide,m=null,e.prev=3,e.next=6,yW({image:u,cardSide:f,frontCardId:h.current,qrImageId:g.current,onError:r,apiClient:p,cardType:d,recordedVideos:a,qrScannedResult:s,outputEncryptionSettings:c});case 6:m=e.sent,f===ZT.IDCardSide.FRONT&&(h.current=m.cardInfo.image1.id),g.current=m.qrImageId,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),r(AM(AM({},CW.api_call_error),{},{details:e.t0}));case 14:m&&i(AM(AM({},t),{},{apiResult:m}));case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t){return e.apply(this,arguments)}}(),[p,r,o,i,c]);return d&&ov.createElement(iW,BM({tracking:s,onClose:t,onError:r,detectIdCard:n,onStepDone:m,steps:o,outputEncryptionSettings:c},u,{clientSettings:d}))};function EW(){return(EW=EM(regeneratorRuntime.mark((function e(){var t,r,n,o,i,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:{},r=t.opencvUrl,n=t.idCardModelUrl,o=t.blazefaceModelUrl,i=t.tfScriptUrls,"iOS"!==YM.osName||!YM.osVersion.includes("12.")){e.next=5;break}return e.next=4,FK({url:r});case 4:return e.abrupt("return");case 5:return e.next=7,pM.loadTensorFlow(i);case 7:return e.next=9,pM.initTensorFlow({preferredBackends:["wasm","webgl","cpu"]});case 9:return a=new HK,e.next=12,Promise.all([a.loadResource({modelUrl:n}),pM.loadBlazefaceModel({modelUrl:o}),FK({url:r})]);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}kW.propTypes={onClose:Tv.func,onError:Tv.func,detectIdCard:Tv.func,onStepDone:Tv.func,steps:Tv.arrayOf(Tv.shape({})),apiCredentials:Tv.shape({accessKey:Tv.string,secretKey:Tv.string,apiUrl:Tv.string}),tracking:Tv.shape({}),outputEncryptionSettings:Tv.shape({})},kW.defaultProps={onClose:function(){},onError:function(){},detectIdCard:function(){return Promise.resolve({card_label:""})},onStepDone:function(){},steps:tW,apiCredentials:{accessKey:"5767c20d-87aa-4cad-8dbb-f5429f76c34b",secretKey:"c1446919-e60a-4575-a05d-304318212a1b",apiUrl:"https://tv-testing.trustingsocial.com/api"},outputEncryptionSettings:{key:""},tracking:void 0};var SW=lF((function(){return EW.apply(this,arguments)})),BW=function(){var e=EM(regeneratorRuntime.mark((function e(t){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.blob,n=t.resultWarmup,o=n.idCardModel,i=n.ableToUseModel){e.next=4;break}return e.abrupt("return",{ableToUseModel:i});case 4:return e.next=6,TL.blobToCanvas({blob:r});case 6:return a=e.sent,e.abrupt("return",o.predict(a,{detectThreshold:.3}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_W=function(){return{checkCamera:qV,LivenessDetection:rz,NativeCamera:QV,ReadIDCardUIOnly:iW,ReadIDCardWithApiCall:kW,warmUpReadIdCard:YK,preloadEKYCResources:SW,getListCamera:JM}},AW=IF,xW=xM(HV,["useLivenessDetection"]);function TW(){return(TW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function IW(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function PW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function RW(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var NW=!1,OW=ov.createContext(null),LW="entering",MW="entered",DW=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o="exited",n.appearStatus=LW):o=MW:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",n.state={status:o},n.nextCallback=null,n}PW(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==LW&&r!==MW&&(t=LW):r!==LW&&r!==MW||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===LW?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[XT.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),c=n?s.appear:s.enter;!e&&!r||NW?this.safeSetState({status:MW},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:LW},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:MW},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:XT.findDOMNode(this);t&&!NW?(this.props.onExit(n),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:XT.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,IW(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return ov.createElement(OW.Provider,{value:null},"function"==typeof r?r(e,n):ov.cloneElement(ov.Children.only(r),n))},t}(ov.Component);function UW(){}DW.contextType=OW,DW.propTypes={},DW.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:UW,onEntering:UW,onEntered:UW,onExit:UW,onExiting:UW,onExited:UW},DW.UNMOUNTED="unmounted",DW.EXITED="exited",DW.ENTERING=LW,DW.ENTERED=MW,DW.EXITING="exiting";var jW,FW,VW=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)));var r,n}))},zW=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.remove(n):"string"==typeof r.className?r.className=RW(r.className,n):r.setAttribute("class",RW(r.className&&r.className.baseVal||"",n)));var r,n}))},KW=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?""+(n&&r?r+"-":"")+e:r[e];return{baseClassName:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}PW(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&e.scrollTop,n&&(this.appliedClasses[t][r]=n,VW(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,i=r.done;this.appliedClasses[t]={},n&&zW(e,n),o&&zW(e,o),i&&zW(e,i)},r.render=function(){var e=this.props,t=(e.classNames,IW(e,["classNames"]));return ov.createElement(DW,TW({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ov.Component);KW.defaultProps={classNames:""},KW.propTypes={};var HW="out-in",qW="in-out",WW=function(e,t,r){return function(){var n;e.props[t]&&(n=e.props)[t].apply(n,arguments),r()}},QW=((jW={})[HW]=function(e){var t=e.current,r=e.changeState;return ov.cloneElement(t,{in:!1,onExited:WW(t,"onExited",(function(){r(LW,null)}))})},jW[qW]=function(e){var t=e.current,r=e.changeState,n=e.children;return[t,ov.cloneElement(n,{in:!0,onEntered:WW(n,"onEntered",(function(){r(LW)}))})]},jW),GW=((FW={})[HW]=function(e){var t=e.children,r=e.changeState;return ov.cloneElement(t,{in:!0,onEntered:WW(t,"onEntered",(function(){r(MW,ov.cloneElement(t,{in:!0}))}))})},FW[qW]=function(e){var t=e.current,r=e.children,n=e.changeState;return[ov.cloneElement(t,{in:!1,onExited:WW(t,"onExited",(function(){n(MW,ov.cloneElement(r,{in:!0}))}))}),ov.cloneElement(r,{in:!0})]},FW),XW=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={status:MW,current:null},t.appeared=!1,t.changeState=function(e,r){void 0===r&&(r=t.state.current),t.setState({status:e,current:r})},t}PW(t,e);var r=t.prototype;return r.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===LW&&e.mode===qW?{status:LW}:!t.current||(r=t.current,n=e.children,r===n||ov.isValidElement(r)&&ov.isValidElement(n)&&null!=r.key&&r.key===n.key)?{current:ov.cloneElement(e.children,{in:!0})}:{status:"exiting"};var r,n},r.render=function(){var e,t=this.props,r=t.children,n=t.mode,o=this.state,i=o.status,a=o.current,s={children:r,current:a,changeState:this.changeState,status:i};switch(i){case LW:e=GW[n](s);break;case"exiting":e=QW[n](s);break;case MW:e=a}return ov.createElement(OW.Provider,{value:{isMounting:!this.appeared}},e)},t}(ov.Component);XW.propTypes={},XW.defaultProps={mode:HW};var YW=r((function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){var n={MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0};e.exports={BROWSER_TYPES:{CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},DEVICE_TYPES:n,OS_TYPES:{IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},defaultData:{isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1}}},function(e,t,r){var n,o=r(2),i=r(0),a=i.BROWSER_TYPES,s=i.OS_TYPES,c=i.DEVICE_TYPES,u=r(4),l=u.checkType,d=u.broPayload,f=u.mobilePayload,p=u.wearPayload,h=u.consolePayload,g=u.stvPayload,m=u.getNavigatorInstance,v=u.isIOS13Check,y=new o,b=y.getBrowser(),w=y.getDevice(),C=y.getEngine(),k=y.getOS(),E=y.getUA(),S=a.CHROME,B=a.CHROMIUM,_=a.IE,A=a.INTERNET_EXPLORER,x=a.OPERA,T=a.FIREFOX,I=a.SAFARI,P=a.EDGE,R=a.YANDEX,N=a.MOBILE_SAFARI,O=c.MOBILE,L=c.TABLET,M=c.SMART_TV,D=c.BROWSER,U=c.WEARABLE,j=c.CONSOLE,F=s.ANDROID,V=s.WINDOWS_PHONE,z=s.IOS,K=s.WINDOWS,H=s.MAC_OS,q=function(){return k.name===s.WINDOWS&&"10"===k.version&&("string"==typeof E&&-1!==E.indexOf("Edg/"))},W=function(){return b.name===P},Q=function(){return v("iPad")},G=w.type===M,X=w.type===j,Y=w.type===U,$=b.name===N||Q(),Z=b.name===B,J=function(){switch(w.type){case O:case L:return!0;default:return!1}}()||Q(),ee=w.type===O,te=w.type===L||Q(),re=w.type===D,ne=k.name===F,oe=k.name===V,ie=k.name===z||Q(),ae=b.name===S,se=b.name===T,ce=b.name===I||b.name===N,ue=b.name===x,le=b.name===A||b.name===_,de=k.version?k.version:"none",fe=k.name?k.name:"none",pe=b.major,he=b.version,ge=b.name,me=w.vendor?w.vendor:"none",ve=w.model?w.model:"none",ye=C.name,be=C.version,we=E,Ce=W()||q(),ke=b.name===R,Ee=w.type,Se=(n=m())&&(/iPad|iPhone|iPod/.test(n.platform)||"MacIntel"===n.platform&&n.maxTouchPoints>1)&&!window.MSStream,Be=Q(),_e=v("iPhone"),Ae=v("iPod"),xe=function(){var e=m(),t=e&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)}(),Te=q(),Ie=W(),Pe=k.name===K,Re=k.name===H,Ne=l(w.type);e.exports={deviceDetect:function(){var e=Ne.isBrowser,t=Ne.isMobile,r=Ne.isTablet,n=Ne.isSmartTV,o=Ne.isConsole,i=Ne.isWearable;return e?d(e,b,C,k,E):n?g(n,C,k,E):o?h(o,C,k,E):t||r?f(Ne,w,k,E):i?p(i,C,k,E):void 0},isSmartTV:G,isConsole:X,isWearable:Y,isMobileSafari:$,isChromium:Z,isMobile:J,isMobileOnly:ee,isTablet:te,isBrowser:re,isAndroid:ne,isWinPhone:oe,isIOS:ie,isChrome:ae,isFirefox:se,isSafari:ce,isOpera:ue,isIE:le,osVersion:de,osName:fe,fullBrowserVersion:pe,browserVersion:he,browserName:ge,mobileVendor:me,mobileModel:ve,engineName:ye,engineVersion:be,getUA:we,isEdge:Ce,isYandex:ke,deviceType:Ee,isIOS13:Se,isIPad13:Be,isIPhone13:_e,isIPod13:Ae,isElectron:xe,isEdgeChromium:Te,isLegacyEdge:Ie,isWindows:Pe,isMacOs:Re}},function(e,t,r){var n;
54
54
  /*!
55
55
  * UAParser.js v0.7.18
56
56
  * Lightweight JavaScript-based User-Agent string parser
@@ -58,4 +58,4 @@ function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,s=o.create([0,1,2,
58
58
  *
59
59
  * Copyright © 2012-2016 Faisal Salman <fyzlman@gmail.com>
60
60
  * Dual licensed under GPLv2 or MIT
61
- */!function(o,i){var a="function",s="undefined",c="object",u="model",l="name",d="type",f="vendor",p="version",h="architecture",g="console",m="mobile",v="tablet",y="smarttv",b="wearable",w={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},C={rgx:function(e,t){for(var r,n,o,s,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(r=n=0;r<f.length&&!u;)if(u=f[r++].exec(e))for(o=0;o<p.length;o++)l=u[++n],typeof(s=p[o])===c&&s.length>0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;d+=2}},str:function(e,t){for(var r in t)if(typeof t[r]===c&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(w.has(t[r][n],e))return"?"===r?i:r}else if(w.has(t[r],e))return"?"===r?i:r;return e}},k={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},E={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[l,p],[/(opios)[\/\s]+([\w\.]+)/i],[[l,"Opera Mini"],p],[/\s(opr)\/([\w\.]+)/i],[[l,"Opera"],p],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[l,p],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[l,"IE"],p],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[l,"Edge"],p],[/(yabrowser)\/([\w\.]+)/i],[[l,"Yandex"],p],[/(puffin)\/([\w\.]+)/i],[[l,"Puffin"],p],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[l,"UCBrowser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],p],[/(micromessenger)\/([\w\.]+)/i],[[l,"WeChat"],p],[/(qqbrowserlite)\/([\w\.]+)/i],[l,p],[/(QQ)\/([\d\.]+)/i],[l,p],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[l,p],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[l,p],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[l,p],[/(MetaSr)[\/\s]?([\w\.]+)/i],[l],[/(LBBROWSER)/i],[l],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[p,[l,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[l,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[l,/(.+)/,"$1 WebView"],p],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[l,/(.+(?:g|us))(.+)/,"$1 $2"],p],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[p,[l,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[l,p],[/(dolfin)\/([\w\.]+)/i],[[l,"Dolphin"],p],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[l,"Chrome"],p],[/(coast)\/([\w\.]+)/i],[[l,"Opera Coast"],p],[/fxios\/([\w\.-]+)/i],[p,[l,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[p,l],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[l,"GSA"],p],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[l,[p,C.str,k.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[l,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[l,"Netscape"],p],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[l,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,w.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[h,/ower/,"",w.lowerize]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[h,w.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[u,f,[d,v]],[/applecoremedia\/[\w\.]+ \((ipad)/],[u,[f,"Apple"],[d,v]],[/(apple\s{0,1}tv)/i],[[u,"Apple TV"],[f,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[f,u,[d,v]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[u,[f,"Amazon"],[d,v]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[u,C.str,k.device.amazon.model],[f,"Amazon"],[d,m]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[u,f,[d,m]],[/\((ip[honed|\s\w*]+);/i],[u,[f,"Apple"],[d,m]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[f,u,[d,m]],[/\(bb10;\s(\w+)/i],[u,[f,"BlackBerry"],[d,m]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[u,[f,"Asus"],[d,v]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[f,"Sony"],[u,"Xperia Tablet"],[d,v]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[u,[f,"Sony"],[d,m]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[f,u,[d,g]],[/android.+;\s(shield)\sbuild/i],[u,[f,"Nvidia"],[d,g]],[/(playstation\s[34portablevi]+)/i],[u,[f,"Sony"],[d,g]],[/(sprint\s(\w+))/i],[[f,C.str,k.device.sprint.vendor],[u,C.str,k.device.sprint.model],[d,m]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[f,u,[d,v]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[f,[u,/_/g," "],[d,m]],[/(nexus\s9)/i],[u,[f,"HTC"],[d,v]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[u,[f,"Huawei"],[d,m]],[/(microsoft);\s(lumia[\s\w]+)/i],[f,u,[d,m]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[u,[f,"Microsoft"],[d,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,"Microsoft"],[d,m]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[u,[f,"Motorola"],[d,m]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[u,[f,"Motorola"],[d,v]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[f,w.trim],[u,w.trim],[d,y]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,"Samsung"],[d,y]],[/\(dtv[\);].+(aquos)/i],[u,[f,"Sharp"],[d,y]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[f,"Samsung"],u,[d,v]],[/smart-tv.+(samsung)/i],[f,[d,y],u],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[f,"Samsung"],u,[d,m]],[/sie-(\w*)/i],[u,[f,"Siemens"],[d,m]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[f,"Nokia"],u,[d,m]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[u,[f,"Acer"],[d,v]],[/android.+([vl]k\-?\d{3})\s+build/i],[u,[f,"LG"],[d,v]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[f,"LG"],u,[d,v]],[/(lg) netcast\.tv/i],[f,u,[d,y]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[u,[f,"LG"],[d,m]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[u,[f,"Lenovo"],[d,v]],[/linux;.+((jolla));/i],[f,u,[d,m]],[/((pebble))app\/[\d\.]+\s/i],[f,u,[d,b]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[f,u,[d,m]],[/crkey/i],[[u,"Chromecast"],[f,"Google"]],[/android.+;\s(glass)\s\d/i],[u,[f,"Google"],[d,b]],[/android.+;\s(pixel c)\s/i],[u,[f,"Google"],[d,v]],[/android.+;\s(pixel xl|pixel)\s/i],[u,[f,"Google"],[d,m]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[u,/_/g," "],[f,"Xiaomi"],[d,m]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[u,/_/g," "],[f,"Xiaomi"],[d,v]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[u,[f,"Meizu"],[d,v]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[u,[f,"OnePlus"],[d,m]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[u,[f,"RCA"],[d,v]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[u,[f,"Dell"],[d,v]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[u,[f,"Verizon"],[d,v]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[f,"Barnes & Noble"],u,[d,v]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[u,[f,"NuVision"],[d,v]],[/android.+;\s(k88)\sbuild/i],[u,[f,"ZTE"],[d,v]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[u,[f,"Swiss"],[d,m]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[u,[f,"Swiss"],[d,v]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[u,[f,"Zeki"],[d,v]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[f,"Dragon Touch"],u,[d,v]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[u,[f,"Insignia"],[d,v]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[u,[f,"NextBook"],[d,v]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[f,"Voice"],u,[d,m]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[f,"LvTel"],u,[d,m]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[u,[f,"Envizen"],[d,v]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[f,u,[d,v]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[u,[f,"MachSpeed"],[d,v]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[f,u,[d,v]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[u,[f,"Rotor"],[d,v]],[/android.+(KS(.+))\s+build/i],[u,[f,"Amazon"],[d,v]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[f,u,[d,v]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[d,w.lowerize],f,u],[/(android[\w\.\s\-]{0,9});.+build/i],[u,[f,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[l,p],[/rv\:([\w\.]{1,9}).+(gecko)/i],[p,l]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[l,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[l,[p,C.str,k.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[l,"Windows"],[p,C.str,k.os.windows.version]],[/\((bb)(10);/i],[[l,"BlackBerry"],p],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[l,p],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[l,"Symbian"],p],[/\((series40);/i],[l],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[l,"Firefox OS"],p],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[l,p],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[l,"Chromium OS"],p],[/(sunos)\s?([\w\.\d]*)/i],[[l,"Solaris"],p],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[l,p],[/(haiku)\s(\w+)/i],[l,p],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[l,"Mac OS"],[p,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[l,p]]},S=function(e,t){if("object"==typeof e&&(t=e,e=i),!(this instanceof S))return new S(e,t).getResult();var r=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),n=t?w.extend(E,t):E;return this.getBrowser=function(){var e={name:i,version:i};return C.rgx.call(e,r,n.browser),e.major=w.major(e.version),e},this.getCPU=function(){var e={architecture:i};return C.rgx.call(e,r,n.cpu),e},this.getDevice=function(){var e={vendor:i,model:i,type:i};return C.rgx.call(e,r,n.device),e},this.getEngine=function(){var e={name:i,version:i};return C.rgx.call(e,r,n.engine),e},this.getOS=function(){var e={name:i,version:i};return C.rgx.call(e,r,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=e,this},this};S.VERSION="0.7.18",S.BROWSER={NAME:l,MAJOR:"major",VERSION:p},S.CPU={ARCHITECTURE:h},S.DEVICE={MODEL:u,VENDOR:f,TYPE:d,CONSOLE:g,MOBILE:m,SMARTTV:y,TABLET:v,WEARABLE:b,EMBEDDED:"embedded"},S.ENGINE={NAME:l,VERSION:p},S.OS={NAME:l,VERSION:p},typeof t!==s?(typeof e!==s&&e.exports&&(t=e.exports=S),t.UAParser=S):r(3)?(n=function(){return S}.call(t,r,t,e))===i||(e.exports=n):o&&(o.UAParser=S);var B=o&&(o.jQuery||o.Zepto);if(typeof B!==s){var _=new S;B.ua=_.getResult(),B.ua.get=function(){return _.getUA()},B.ua.set=function(e){_.setUA(e);var t=_.getResult();for(var r in t)B.ua[r]=t[r]}}}("object"==typeof window?window:this)},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(0),i=o.DEVICE_TYPES,a=o.defaultData,s=t.getNavigatorInstance=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},c=t.isIOS13Check=function(e){var t=s();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:function(e){switch(e){case i.MOBILE:return{isMobile:!0};case i.TABLET:return{isTablet:!0};case i.SMART_TV:return{isSmartTV:!0};case i.CONSOLE:return{isConsole:!0};case i.WEARABLE:return{isWearable:!0};case i.BROWSER:return{isBrowser:!0};default:return a}},broPayload:function(e,t,r,n,o){return{isBrowser:e,browserMajorVersion:t.major,browserFullVersion:t.version,browserName:t.name,engineName:r.name||!1,engineVersion:r.version,osName:n.name,osVersion:n.version,userAgent:o}},mobilePayload:function(e,t,r,o){return n({},e,{vendor:t.vendor,model:t.model,os:r.name,osVersion:r.version,ua:o})},stvPayload:function(e,t,r,n){return{isSmartTV:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},consolePayload:function(e,t,r,n){return{isConsole:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},wearPayload:function(e,t,r,n){return{isWearable:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},getNavigatorInstance:s,isIOS13Check:c}}])})),WW="object"==typeof t&&t&&t.Object===Object&&t,QW="object"==typeof self&&self&&self.Object===Object&&self,GW=WW||QW||Function("return this")(),XW=GW.Symbol,YW=Object.prototype,$W=YW.hasOwnProperty,ZW=YW.toString,JW=XW?XW.toStringTag:void 0;var eQ=function(e){var t=$W.call(e,JW),r=e[JW];try{e[JW]=void 0;var n=!0}catch(e){}var o=ZW.call(e);return n&&(t?e[JW]=r:delete e[JW]),o},tQ=Object.prototype.toString;var rQ=function(e){return tQ.call(e)},nQ=XW?XW.toStringTag:void 0;var oQ=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":nQ&&nQ in Object(e)?eQ(e):rQ(e)};var iQ=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var aQ=function(e){if(!iQ(e))return!1;var t=oQ(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},sQ=GW["__core-js_shared__"],cQ=function(){var e=/[^.]+$/.exec(sQ&&sQ.keys&&sQ.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var uQ=function(e){return!!cQ&&cQ in e},lQ=Function.prototype.toString;var dQ=function(e){if(null!=e){try{return lQ.call(e)}catch(e){}try{return e+""}catch(e){}}return""},fQ=/^\[object .+?Constructor\]$/,pQ=Function.prototype,hQ=Object.prototype,gQ=pQ.toString,mQ=hQ.hasOwnProperty,vQ=RegExp("^"+gQ.call(mQ).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var yQ=function(e){return!(!iQ(e)||uQ(e))&&(aQ(e)?vQ:fQ).test(dQ(e))};var bQ=function(e,t){return null==e?void 0:e[t]};var wQ=function(e,t){var r=bQ(e,t);return yQ(r)?r:void 0},CQ=function(){try{var e=wQ(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var kQ=function(e,t,r){"__proto__"==t&&CQ?CQ(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var EQ=function(e,t){return e===t||e!=e&&t!=t},SQ=Object.prototype.hasOwnProperty;var BQ=function(e,t,r){var n=e[t];SQ.call(e,t)&&EQ(n,r)&&(void 0!==r||t in e)||kQ(e,t,r)};var _Q=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?kQ(r,s,c):BQ(r,s,c)}return r};var AQ=function(e){return e};var xQ=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},TQ=Math.max;var IQ=function(e,t,r){return t=TQ(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=TQ(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),xQ(e,this,s)}};var PQ=function(e){return function(){return e}},RQ=CQ?function(e,t){return CQ(e,"toString",{configurable:!0,enumerable:!1,value:PQ(t),writable:!0})}:AQ,NQ=Date.now;var OQ=function(e){var t=0,r=0;return function(){var n=NQ(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(RQ);var LQ=function(e,t){return OQ(IQ(e,t,AQ),e+"")};var MQ=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var DQ=function(e){return null!=e&&MQ(e.length)&&!aQ(e)},UQ=/^(?:0|[1-9]\d*)$/;var jQ=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&UQ.test(e))&&e>-1&&e%1==0&&e<t};var FQ=function(e,t,r){if(!iQ(r))return!1;var n=typeof t;return!!("number"==n?DQ(r)&&jQ(t,r.length):"string"==n&&t in r)&&EQ(r[t],e)};var VQ=function(e){return LQ((function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&FQ(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t}))};var zQ=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var KQ=function(e){return null!=e&&"object"==typeof e};var HQ=function(e){return KQ(e)&&"[object Arguments]"==oQ(e)},qQ=Object.prototype,WQ=qQ.hasOwnProperty,QQ=qQ.propertyIsEnumerable,GQ=HQ(function(){return arguments}())?HQ:function(e){return KQ(e)&&WQ.call(e,"callee")&&!QQ.call(e,"callee")},XQ=Array.isArray;var YQ=function(){return!1},$Q=r((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?GW.Buffer:void 0,i=(o?o.isBuffer:void 0)||YQ;e.exports=i})),ZQ={};ZQ["[object Float32Array]"]=ZQ["[object Float64Array]"]=ZQ["[object Int8Array]"]=ZQ["[object Int16Array]"]=ZQ["[object Int32Array]"]=ZQ["[object Uint8Array]"]=ZQ["[object Uint8ClampedArray]"]=ZQ["[object Uint16Array]"]=ZQ["[object Uint32Array]"]=!0,ZQ["[object Arguments]"]=ZQ["[object Array]"]=ZQ["[object ArrayBuffer]"]=ZQ["[object Boolean]"]=ZQ["[object DataView]"]=ZQ["[object Date]"]=ZQ["[object Error]"]=ZQ["[object Function]"]=ZQ["[object Map]"]=ZQ["[object Number]"]=ZQ["[object Object]"]=ZQ["[object RegExp]"]=ZQ["[object Set]"]=ZQ["[object String]"]=ZQ["[object WeakMap]"]=!1;var JQ=function(e){return KQ(e)&&MQ(e.length)&&!!ZQ[oQ(e)]};var eG=function(e){return function(t){return e(t)}},tG=r((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&WW.process,i=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i})),rG=tG&&tG.isTypedArray,nG=rG?eG(rG):JQ,oG=Object.prototype.hasOwnProperty;var iG=function(e,t){var r=XQ(e),n=!r&&GQ(e),o=!r&&!n&&$Q(e),i=!r&&!n&&!o&&nG(e),a=r||n||o||i,s=a?zQ(e.length,String):[],c=s.length;for(var u in e)!t&&!oG.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||jQ(u,c))||s.push(u);return s},aG=Object.prototype;var sG=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||aG)};var cG=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},uG=Object.prototype.hasOwnProperty;var lG=function(e){if(!iQ(e))return cG(e);var t=sG(e),r=[];for(var n in e)("constructor"!=n||!t&&uG.call(e,n))&&r.push(n);return r};var dG=function(e){return DQ(e)?iG(e,!0):lG(e)},fG=VQ((function(e,t,r,n){_Q(t,dG(t),e,n)}));var pG=function(e,t){return function(r){return e(t(r))}},hG=pG(Object.getPrototypeOf,Object),gG=Function.prototype,mG=Object.prototype,vG=gG.toString,yG=mG.hasOwnProperty,bG=vG.call(Object);var wG=function(e){if(!KQ(e)||"[object Object]"!=oQ(e))return!1;var t=hG(e);if(null===t)return!0;var r=yG.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&vG.call(r)==bG};var CG=function(e){if(!KQ(e))return!1;var t=oQ(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!wG(e)},kG=LQ((function(e,t){try{return xQ(e,void 0,t)}catch(e){return CG(e)?e:new Error(e)}}));var EG=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};var SG=function(e,t){return EG(t,(function(t){return e[t]}))},BG=Object.prototype,_G=BG.hasOwnProperty;var AG=function(e,t,r,n){return void 0===e||EQ(e,BG[r])&&!_G.call(n,r)?t:e},xG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var TG=function(e){return"\\"+xG[e]},IG=pG(Object.keys,Object),PG=Object.prototype.hasOwnProperty;var RG=function(e){if(!sG(e))return IG(e);var t=[];for(var r in Object(e))PG.call(e,r)&&"constructor"!=r&&t.push(r);return t};var NG=function(e){return DQ(e)?iG(e):RG(e)},OG=/<%=([\s\S]+?)%>/g;var LG=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var MG=function(e){return"symbol"==typeof e||KQ(e)&&"[object Symbol]"==oQ(e)},DG=XW?XW.prototype:void 0,UG=DG?DG.toString:void 0;var jG=function e(t){if("string"==typeof t)return t;if(XQ(t))return EG(t,e)+"";if(MG(t))return UG?UG.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var FG=function(e){return null==e?"":jG(e)},VG=/[&<>"']/g,zG=RegExp(VG.source);var KG={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:OG,variable:"",imports:{_:{escape:function(e){return(e=FG(e))&&zG.test(e)?e.replace(VG,LG):e}}}},HG=/\b__p \+= '';/g,qG=/\b(__p \+=) '' \+/g,WG=/(__e\(.*?\)|\b__t\)) \+\n'';/g,QG=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,GG=/($^)/,XG=/['\n\r\u2028\u2029\\]/g,YG=Object.prototype.hasOwnProperty;var $G=function(e,t,r){var n=KG.imports._.templateSettings||KG;r&&FQ(e,t,r)&&(t=void 0),e=FG(e),t=fG({},t,n,AG);var o,i,a=fG({},t.imports,n.imports,AG),s=NG(a),c=SG(a,s),u=0,l=t.interpolate||GG,d="__p += '",f=RegExp((t.escape||GG).source+"|"+l.source+"|"+(l===OG?QG:GG).source+"|"+(t.evaluate||GG).source+"|$","g"),p=YG.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(f,(function(t,r,n,a,s,c){return n||(n=a),d+=e.slice(u,c).replace(XG,TG),r&&(o=!0,d+="' +\n__e("+r+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var h=YG.call(t,"variable")&&t.variable;h||(d="with (obj) {\n"+d+"\n}\n"),d=(i?d.replace(HG,""):d).replace(qG,"$1").replace(WG,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=kG((function(){return Function(s,p+"return "+d).apply(void 0,c)}));if(g.source=d,CG(g))throw g;return g},ZG="SESSION_TIMEOUT";function JG(){return(JG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eX,tX,rX,nX,oX,iX,aX,sX,cX,uX,lX,dX,fX,pX="undefined"!=typeof window?ov.useLayoutEffect:ov.useEffect,hX={popupContent:{tooltip:{position:"absolute",zIndex:999},modal:{position:"relative",margin:"auto"}},popupArrow:{height:"8px",width:"16px",position:"absolute",background:"transparent",color:"#FFF",zIndex:-1},overlay:{tooltip:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",zIndex:999},modal:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",display:"flex",zIndex:999}}},gX=["top left","top center","top right","right top","right center","right bottom","bottom left","bottom center","bottom right","left top","left center","left bottom"],mX=function(e,t,r,n,o){var i=o.offsetX,a=o.offsetY,s=n?8:0,c=r.split(" "),u=e.top+e.height/2,l=e.left+e.width/2,d=t.height,f=t.width,p=u-d/2,h=l-f/2,g="",m="0%",v="0%";switch(c[0]){case"top":p-=d/2+e.height/2+s,g="rotate(180deg) translateX(50%)",m="100%",v="50%";break;case"bottom":p+=d/2+e.height/2+s,g="rotate(0deg) translateY(-100%) translateX(-50%)",v="50%";break;case"left":h-=f/2+e.width/2+s,g=" rotate(90deg) translateY(50%) translateX(-25%)",v="100%",m="50%";break;case"right":h+=f/2+e.width/2+s,g="rotate(-90deg) translateY(-150%) translateX(25%)",m="50%"}switch(c[1]){case"top":p=e.top,m=e.height/2+"px";break;case"bottom":p=e.top-d+e.height,m=d-e.height/2+"px";break;case"left":h=e.left,v=e.width/2+"px";break;case"right":h=e.left-f+e.width,v=f-e.width/2+"px"}return{top:p="top"===c[0]?p-a:p+a,left:h="left"===c[0]?h-i:h+i,transform:g,arrowLeft:v,arrowTop:m}},vX=function(e,t,r,n,o,i){var a=o.offsetX,s=o.offsetY,c={arrowLeft:"0%",arrowTop:"0%",left:0,top:0,transform:"rotate(135deg)"},u=0,l=function(e){var t={top:0,left:0,width:window.innerWidth,height:window.innerHeight};if("string"==typeof e){var r=document.querySelector(e);null!==r&&(t=r.getBoundingClientRect())}return t}(i),d=Array.isArray(r)?r:[r];for((i||Array.isArray(r))&&(d=[].concat(d,gX));u<d.length;){var f={top:(c=mX(e,t,d[u],n,{offsetX:a,offsetY:s})).top,left:c.left,width:t.width,height:t.height};if(!(f.top<=l.top||f.left<=l.left||f.top+f.height>=l.top+l.height||f.left+f.width>=l.left+l.width))break;u++}return c},yX=0,bX=ov.forwardRef((function(e,t){var r=e.trigger,n=void 0===r?null:r,o=e.onOpen,i=void 0===o?function(){}:o,a=e.onClose,s=void 0===a?function(){}:a,c=e.defaultOpen,u=void 0!==c&&c,l=e.open,d=void 0===l?void 0:l,f=e.disabled,p=void 0!==f&&f,h=e.nested,g=void 0!==h&&h,m=e.closeOnDocumentClick,v=void 0===m||m,y=e.repositionOnResize,b=void 0===y||y,w=e.closeOnEscape,C=void 0===w||w,k=e.on,E=void 0===k?["click"]:k,S=e.contentStyle,B=void 0===S?{}:S,_=e.arrowStyle,A=void 0===_?{}:_,x=e.overlayStyle,T=void 0===x?{}:x,I=e.className,P=void 0===I?"":I,R=e.position,N=void 0===R?"bottom center":R,O=e.modal,L=void 0!==O&&O,M=e.lockScroll,D=void 0!==M&&M,U=e.arrow,j=void 0===U||U,F=e.offsetX,V=void 0===F?0:F,z=e.offsetY,K=void 0===z?0:z,H=e.mouseEnterDelay,q=void 0===H?100:H,W=e.mouseLeaveDelay,Q=void 0===W?100:W,G=e.keepTooltipInside,X=void 0!==G&&G,Y=e.children,$=ov.useState(d||u),Z=$[0],J=$[1],ee=ov.useRef(null),te=ov.useRef(null),re=ov.useRef(null),ne=ov.useRef(null),oe=ov.useRef("popup-"+ ++yX),ie=!!L||!n,ae=ov.useRef(0);pX((function(){return Z?(ne.current=document.activeElement,ye(),ge(),pe()):he(),function(){clearTimeout(ae.current)}}),[Z]),ov.useEffect((function(){"boolean"==typeof d&&(d?se():ce())}),[d,p]);var se=function(e){Z||p||(J(!0),setTimeout((function(){return i(e)}),0))},ce=function(e){var t;Z&&!p&&(J(!1),ie&&(null===(t=ne.current)||void 0===t||t.focus()),setTimeout((function(){return s(e)}),0))},ue=function(e){null==e||e.stopPropagation(),Z?ce(e):se(e)},le=function(e){clearTimeout(ae.current),ae.current=setTimeout((function(){return se(e)}),q)},de=function(e){null==e||e.preventDefault(),ue()},fe=function(e){clearTimeout(ae.current),ae.current=setTimeout((function(){return ce(e)}),Q)},pe=function(){ie&&D&&(document.getElementsByTagName("body")[0].style.overflow="hidden")},he=function(){ie&&D&&(document.getElementsByTagName("body")[0].style.overflow="auto")},ge=function(){var e,t=null==te||null===(e=te.current)||void 0===e?void 0:e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),r=Array.prototype.slice.call(t)[0];null==r||r.focus()};ov.useImperativeHandle(t,(function(){return{open:function(){se()},close:function(){ce()},toggle:function(){ue()}}}));var me,ve,ye=function(){if(!ie&&Z&&(null==ee?void 0:ee.current)&&(null==ee?void 0:ee.current)&&(null==te?void 0:te.current)){var e,t,r=ee.current.getBoundingClientRect(),n=te.current.getBoundingClientRect(),o=vX(r,n,N,j,{offsetX:V,offsetY:K},X);if(te.current.style.top=o.top+window.scrollY+"px",te.current.style.left=o.left+window.scrollX+"px",j&&re.current)re.current.style.transform=o.transform,re.current.style.setProperty("-ms-transform",o.transform),re.current.style.setProperty("-webkit-transform",o.transform),re.current.style.top=(null===(e=A.top)||void 0===e?void 0:e.toString())||o.arrowTop,re.current.style.left=(null===(t=A.left)||void 0===t?void 0:t.toString())||o.arrowLeft}};me=ce,void 0===(ve=C)&&(ve=!0),ov.useEffect((function(){if(ve){var e=function(e){"Escape"===e.key&&me(e)};return document.addEventListener("keyup",e),function(){ve&&document.removeEventListener("keyup",e)}}}),[me,ve]),function(e,t){void 0===t&&(t=!0),ov.useEffect((function(){if(t){var r=function(t){if(9===t.keyCode){var r,n=null==e||null===(r=e.current)||void 0===r?void 0:r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),o=Array.prototype.slice.call(n);if(1===o.length)return void t.preventDefault();var i=o[0],a=o[o.length-1];t.shiftKey&&document.activeElement===i?(t.preventDefault(),a.focus()):document.activeElement===a&&(t.preventDefault(),i.focus())}};return document.addEventListener("keydown",r),function(){t&&document.removeEventListener("keydown",r)}}}),[e,t])}(te,Z&&ie),function(e,t){void 0===t&&(t=!0),ov.useEffect((function(){if(t){var r=function(){e()};return window.addEventListener("resize",r),function(){t&&window.removeEventListener("resize",r)}}}),[e,t])}(ye,b),function(e,t,r){void 0===r&&(r=!0),ov.useEffect((function(){if(r){var n=function(r){var n=Array.isArray(e)?e:[e],o=!1;n.forEach((function(e){e.current&&!e.current.contains(r.target)||(o=!0)})),r.stopPropagation(),o||t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),function(){r&&(document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n))}}}),[e,t,r])}(n?[te,ee]:[te],ce,v&&!g);var be,we=function(){return ov.createElement("div",Object.assign({},(e=ie?hX.popupContent.modal:hX.popupContent.tooltip,t={className:"popup-content "+(""!==P?P.split(" ").map((function(e){return e+"-content"})).join(" "):""),style:JG({},e,B,{pointerEvents:"auto"}),ref:te,onClick:function(e){e.stopPropagation()}},!L&&E.indexOf("hover")>=0&&(t.onMouseEnter=le,t.onMouseLeave=fe),t),{key:"C",role:ie?"dialog":"tooltip",id:oe.current}),j&&!ie&&ov.createElement("div",{ref:re,style:hX.popupArrow},ov.createElement("svg",{"data-testid":"arrow",className:"popup-arrow "+(""!==P?P.split(" ").map((function(e){return e+"-arrow"})).join(" "):""),viewBox:"0 0 32 16",style:JG({position:"absolute"},A)},ov.createElement("path",{d:"M16 0l16 16H0z",fill:"currentcolor"}))),Y&&"function"==typeof Y?Y(ce,Z):Y);var e,t},Ce=!(E.indexOf("hover")>=0),ke=ie?hX.overlay.modal:hX.overlay.tooltip,Ee=[Ce&&ov.createElement("div",{key:"O","data-testid":"overlay","data-popup":ie?"modal":"tooltip",className:"popup-overlay "+(""!==P?P.split(" ").map((function(e){return e+"-overlay"})).join(" "):""),style:JG({},ke,T,{pointerEvents:v&&g||ie?"auto":"none"}),onClick:v&&g?ce:void 0,tabIndex:-1},ie&&we()),!ie&&we()];return ov.createElement(ov.Fragment,null,function(){for(var e={key:"T",ref:ee,"aria-describedby":oe.current},t=Array.isArray(E)?E:[E],r=0,o=t.length;r<o;r++)switch(t[r]){case"click":e.onClick=ue;break;case"right-click":e.onContextMenu=de;break;case"hover":e.onMouseEnter=le,e.onMouseLeave=fe;break;case"focus":e.onFocus=le,e.onBlur=fe}if("function"==typeof n){var i=n(Z);return!!n&&ov.cloneElement(i,e)}return!!n&&ov.cloneElement(n,e)}(),Z&&XT.createPortal(Ee,(null===(be=document.getElementById("popup-root"))&&((be=document.createElement("div")).setAttribute("id","popup-root"),document.body.appendChild(be)),be)))}));function wX(){return"function"==typeof navigator.enumerateDevices?navigator.enumerateDevices():"object"===Gg(navigator.mediaDevices)&&"function"==typeof navigator.mediaDevices.enumerateDevices?navigator.mediaDevices.enumerateDevices():new Promise((function(e,t){try{if(null==window.MediaStreamTrack||null==window.MediaStreamTrack.getSources)throw new Error;window.MediaStreamTrack.getSources((function(t){e(t.filter((function(e){return"video"===e.kind.toLowerCase()||"videoinput"===e.kind.toLowerCase()})).map((function(e){return{deviceId:null!=e.deviceId?e.deviceId:"",groupId:e.groupId,kind:"videoinput",label:e.label,toJSON:function(){return this}}})))}))}catch(e){return t(e)}}))}var CX,kX=ZT.Errors,EX=Zb.div(eX||(eX=um(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: #000;\n display: flex;\n justify-content: center;\n z-index: ",";\n ","\n"])),1e3,(function(e){return e.checkCameraMode&&"opacity: 0;"})),SX=Zb.video(tX||(tX=um(["\n width: 100%;\n ","\n"])),(function(e){return e.flipHorizontal&&"\n transform: scale(".concat(-1*e.scale,", ").concat(1*e.scale,");\n ")})),BX=Zb.div(rX||(rX=um(["\n cursor: pointer;\n text-align: center;\n width: 50px;\n\n img {\n width: 100%;\n }\n"]))),_X=Zb(BX)(nX||(nX=um(["\n z-index: ",";\n position: absolute;\n top: 20px;\n right: 20px;\n width: 20px;\n"])),1100),AX=Zb.div(oX||(oX=um(["\n z-index: ",";\n position: absolute;\n top: 40px;\n color: red;\n"])),1020),xX=Zb.div(iX||(iX=um(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: ",";\n"])),1030),TX=Zb.section(aX||(aX=um(["\n width: 280px;\n padding: 0.625rem 0 0 0;\n background: #ffffff;\n border-radius: 0.3125rem;\n box-shadow: 2px 2px 14px rgba(0, 0, 0, 0.15);\n"]))),IX=Zb.header(sX||(sX=um(["\n text-align: center;\n padding: 0.625rem 1rem;\n"]))),PX=Zb.h2(cX||(cX=um(["\n margin: 0.25rem auto;\n padding: 0;\n font-weight: 600;\n font-size: 1.2rem;\n"]))),RX=Zb.p(uX||(uX=um(["\n padding: 0 0 0.3125rem;\n margin: 0.25rem auto;\n font-size: 0.8rem;\n"]))),NX=Zb.ul(lX||(lX=um(["\n list-style: none;\n padding: 0;\n margin: 0;\n"]))),OX=Zb.li(dX||(dX=um(["\n margin: 0;\n text-align: left;\n cursor: pointer;\n font-size: 0.82rem;\n transition: all 550ms ease-in-out;\n border-top: 1px solid #dcdcdc;\n padding: 1rem 1rem;\n\n &:hover {\n background-color: rgba(230, 230, 230, 0.5);\n }\n"]))),LX=Zb.div(fX||(fX=um(["\n position: absolute;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.7);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 9999;\n"]))),MX=function(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return navigator.mediaDevices;var e=navigator.mozGetUserMedia||navigator.webkitGetUserMedia;return e?{getUserMedia:function(t){return new Promise((function(r,n){e.call(navigator,t,r,n)}))}}:null}();function DX(e){var t=e.checkCameraMode,r=e.frontCamera,n=e.onClose,o=e.children,i=e.onVideoPlayed,a=e.flipHorizontal,s=e.videoSettings,c=e.refVideo,u=e.onError,l=e.closeButton,d=e.videoClassName,f=e.scale,p=e.defaultCameraId,h=nN.useSDKSettings().lang,g=LN.useSDKTracking().sendEvent,m=UN.useAsset("ic_close.png"),v=lm(ov.useState(""),2),y=v[0],b=v[1],w=lm(ov.useState([]),2),C=w[0],k=w[1],E=lm(ov.useState(!1),2),S=E[0],B=E[1],_=ov.useRef(!1),A=ov.useRef(!1),x=ov.useCallback((function(){try{var e;(null==c||null===(e=c.current)||void 0===e?void 0:e.srcObject)instanceof MediaStream&&(c.current.srcObject.getTracks().forEach((function(e){return e.stop()})),c.current.srcObject=null)}catch(e){}}),[c]),T=ov.useCallback(function(){var e=Yg(regeneratorRuntime.mark((function e(t){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},n=qW.isMobile?qW.isIOS?{width:{ideal:1460},aspectRatio:{ideal:window.innerHeight/window.innerWidth}}:{width:{ideal:1650},aspectRatio:{ideal:window.innerHeight/window.innerWidth}}:{height:{ideal:9999}},e.prev=2,e.next=5,MX.getUserMedia({audio:!1,video:rm(rm({},t?{deviceId:t}:{facingMode:r?"user":"environment"}),s||n)});case 5:return(o=e.sent)||(b(kX.not_supported.msg[h]),u(kX.not_supported)),e.abrupt("return",o);case 10:e.prev=10,e.t0=e.catch(2),"NotAllowedError"===e.t0.name?(b(kX.no_permission.msg[h]),u(kX.no_permission)):(t&&k(dm(C.filter((function(e){return e.deviceId!==t})))),B(!0),b(e.t0.message),u({code:e.t0.name||e.t0.code,message:e.t0.message}));case 13:return e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}(),[r,s,h,u,C]),I=ov.useCallback(Yg(regeneratorRuntime.mark((function e(){var t,r,n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:p,(r=c.current).oncanplaythrough=function(){r.play(),A.current=!0,b("");var e=window.innerWidth,t=window.innerHeight,n=fO.analyzeVideoAndWindowSizes(r),o=n.lostX,a=void 0===o?0:o,s=n.lostY,c=void 0===s?0:s,u=Math.min(e,Math.floor(e-2*a)),l=Math.min(t,Math.floor(t-2*c));i&&i({clientWidth:e,clientHeight:t,videoAreaWidth:u,videoAreaHeight:l,lostX:a,lostY:c})},e.next=5,T(t);case 5:(n=e.sent)&&(r.srcObject=n);case 7:case"end":return e.stop()}}),e)}))),[c,T,i,p]);ov.useEffect((function(){function e(){return(e=Yg(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,wX();case 3:t=e.sent,r=t.filter((function(e){return e.deviceId&&"videoinput"===e.kind})),k(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}S&&!_.current&&(_.current=!0,function(){e.apply(this,arguments)}())}),[S]),ov.useEffect((function(){function e(){return(e=Yg(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:return e.next=4,wX();case 4:t=e.sent,(r=t.filter((function(e){return"videoinput"===e.kind&&e.label.includes("0")}))).length>0&&(n=r[0].deviceId,x(),I(n));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var t=c.current;return!MX||qW.browserName&&["facebook"].includes(qW.browserName.toLowerCase())||qW.getUA.includes("Zalo iOS")?(b(kX.not_supported.msg[h]),u(kX.not_supported)):t&&(qW.isAndroid&&!1===r?function(){e.apply(this,arguments)}():I()),function(){x()}}),[c,h,r,I,x,u]),ov.useEffect((function(){var e=setTimeout((function(){A.current||(b(kX.camera_timeout.msg[h]),u(kX.camera_timeout))}),3e5);return function(){clearTimeout(e)}}),[h,u]);var P=ov.useCallback((function(){x(),n&&n(),g({tag:"result",event:"user_activity.cancel",log:{}})}),[n,x,g]);return ov.createElement(EX,{checkCameraMode:t},S&&null!=C&&C.length?ov.createElement(LX,null,ov.createElement(xX,null,ov.createElement(TX,null,ov.createElement(IX,null,ov.createElement(PX,null,"Không thể mở camera mặc định"),ov.createElement(RX,null,"Vui lòng thử chọn camera khác trong danh sách dưới đây")),ov.createElement(NX,null,C.map((function(e,t){return ov.createElement(OX,{key:e.deviceId,onClick:function(){b(""),x(),B(!1),I(e.deviceId)}},e.label?e.label:"Camera ".concat(t+1))})))))):null,function(){if(!y)return null;var e=kX.no_permission.msg[h];return y===e&&qW.isIOS?ov.createElement(AX,null,y," ",ov.createElement("button",{onClick:function(){window.location.reload()}},{vi:"Cấp lại quyền truy cập camera",en:"Request camera permission"}[h])):ov.createElement(AX,null,y)}(),ov.createElement(SX,{ref:c,playsInline:!0,muted:!0,flipHorizontal:a,className:d,scale:f}),o,l?ov.cloneElement(l,{onClick:P,"data-testid":"close-camera"}):ov.createElement(_X,{onClick:P,"data-testid":"close-camera"},ov.createElement("img",{src:m,alt:""})))}DX.propTypes={checkCameraMode:Tv.bool,frontCamera:Tv.bool,onClose:Tv.func,onError:Tv.func,onVideoPlayed:Tv.func,children:Tv.node,flipHorizontal:Tv.bool,videoSettings:Tv.object,refVideo:Tv.object,closeButton:Tv.node,videoClassName:Tv.string,scale:Tv.number,defaultCameraId:Tv.string},DX.defaultProps={checkCameraMode:!1,frontCamera:!0,onClose:null,onError:function(){},onVideoPlayed:null,children:null,flipHorizontal:!1,videoSettings:null,refVideo:null,closeButton:null,videoClassName:"",scale:1,defaultCameraId:void 0};var UX,jX,FX,VX,zX,KX,HX,qX,WX,QX,GX,XX,YX,$X,ZX,JX=ew(CX||(CX=um(["\n .popup-content {\n margin: auto;\n background: #fff;\n width: 100%;\n padding: 5px;\n border: 1px solid #d7d7d7;\n max-width: 568px;\n border-radius: 10px;\n }\n\n [role=tooltip].popup-content {\n width: 200px;\n box-shadow: 0 0 3px rgba(0, 0, 0, .16);\n border-radius: 5px\n }\n\n .popup-overlay {\n background: rgba(0, 0, 0, .5);\n padding: 10px;\n }\n\n [data-popup=tooltip].popup-overlay {\n background: transparent\n }\n\n .popup-arrow {\n -webkit-filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .16));\n filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .16));\n color: #fff;\n stroke-width: 2px;\n stroke: #d7d7d7;\n stroke-dasharray: 30px;\n stroke-dashoffset: -54px;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0\n }\n"]))),eY=["open","children","overlayStyle"],tY=function(e){var t=e.open,r=e.children,n=e.overlayStyle,o=sm(e,eY);return ov.createElement(ov.Fragment,null,ov.createElement(bX,em({overlayStyle:rm(rm({},n),{},{zIndex:2e3}),closeOnDocumentClick:!1,closeOnEscape:!1,modal:!0,open:t},o),r),ov.createElement(JX,null))};tY.propTypes={open:Tv.bool,children:Tv.node,overlayStyle:Tv.shape({})},tY.defaultProps={open:!1,children:null,overlayStyle:{}};var rY,nY,oY,iY=Xz.flipY,aY=Xz.spin,sY=Xz.splash,cY=iY.animationDuration,uY=sY.default,lY=Zb.div(UX||(UX=um(["\n ","\n ","\n"])),iY.default,aY.default),dY=(Zb.img(jX||(jX=um(["\n border-radius: 5px;\n opacity: 0.7;\n height: 38px;\n"]))),Zb.div(FX||(FX=um(["\n cursor: pointer;\n text-align: center;\n width: ","px;\n\n img {\n width: 100%;\n }\n\n z-index: ",";\n position: fixed;\n\n ","\n"])),60,1020,qW.isMobile?Db(["top:",";"],(function(e){return e.y})):Db(["bottom:","px;"],10))),fY=Zb.div(VX||(VX=um(["\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n margin: auto;\n width: ","px;\n height: ","px;\n\n img {\n width: 100%;\n }\n\n z-index: ",";\n"])),80,80,1020),pY=Zb.div(zX||(zX=um(["\n color: #fff;\n text-align: center;\n"]))),hY=Zb.div(KX||(KX=um(["\n transform: translateZ(1000px); // to fix rotating bug on safari\n transform-style: preserve-3d;\n position: absolute;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),gY=Zb.div(HX||(HX=um(["\n display: flex;\n align-items: center;\n"]))),mY=Zb(pY)(qX||(qX=um(["\n font-size: ","px;\n color: #38383d;\n font-weight: 500;\n"])),qW.isMobile?16:24),vY=Zb.div(WX||(WX=um(["\n margin: 0 auto;\n padding: 0 5px;\n position: absolute;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),yY=Zb(pY)(QX||(QX=um(["\n text-align: center;\n color: ",";\n font-weight: 500;\n padding: 5px 10px;\n font-size: ","px;\n"])),(function(e){return e.theme.dangerColor}),qW.isMobile?14:16),bY=function(e){var t=e.children,r=e.y;return ov.createElement(vY,{y:r},ov.createElement(yY,null,t))},wY=Zb(mz)(GX||(GX=um(["\n position: absolute;\n top: 0;\n left: 0;\n"]))),CY=Zb(pY)(XX||(XX=um(["\n color: ",";\n font-weight: 500;\n padding: 5px 10px;\n font-size: ","px;\n position: absolute;\n text-align: center;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.theme.dangerColor}),qW.isMobile?14:16,(function(e){return e.y}),1020),kY=Zb(pY)(YX||(YX=um(["\n font-weight: normal;\n padding: 5px 10px;\n color: #38383d;\n font-size: ","px;\n position: absolute;\n text-align: center;\n top: ",";\n z-index: ",";\n"])),qW.isMobile?14:16,(function(e){return e.y}),1020),EY=Zb.div($X||($X=um(["\n cursor: pointer;\n text-align: center;\n width: 50px;\n\n img {\n width: 100%;\n }\n"]))),SY=Zb(EY)(ZX||(ZX=um(["\n z-index: ",";\n position: absolute;\n ","\n top: 16px;\n width: 24px;\n"])),1100,qW.isMobile?"left: 16px;":"right: 16px;"),BY=ZT.Errors,_Y={BTN_OK:{en:"OK",vi:"Tôi đã hiểu"},FRONT:{en:"front",vi:"trước"},BACK:{en:"back",vi:"sau"},BTN_USE_THIS_PICTURE:{en:"Use this picture",vi:"Nhìn ổn đấy!"},BTN_TRY_AGAIN:{en:"Try again",vi:"Chụp lại"},CONFIRM_POPUP_VALID_QR:{en:"QR code scanned",vi:"Đã quét được mã QR"},CONFIRM_POPUP_INVALID_QR:{en:"Could not scan QR code",vi:"Không quét được mã QR"}},AY=rm(rm({},BY),{},{id_detector_no_cards:{code:"id_detector_no_cards",msg:{en:"Take a photo of your ID card's <%= side %> side. Make sure the image of the card fits in the frame, (minimum 50% of frame).",vi:"Mặt <%= side %> CMND/CCCD cần nằm gọn trong khung hình, chiếm tối thiểu 50%."}},id_detector_validate_angle_error:{code:"id_detector_validate_angle_error",msg:{en:"Please put your ID card straight, not be oblique",vi:"Vui lòng đặt giấy tờ thẳng góc, không bị xô lệch khi chụp"}},id_detector_card_too_small:{code:"id_detector_card_too_small",msg:{en:"Please hold your ID card closer",vi:"Vui lòng đưa CMND/CCCD lại gần hơn"}},id_detector_error_incomplete:{code:"id_detector_error_incomplete",msg:{en:"Please hold your ID card further",vi:"Vui lòng đưa CMND/CCCD ra xa hơn"}},id_detector_error_front_side_no_faces:{code:"id_detector_error_front_side_no_faces",msg:{en:"Take a photo of your ID card's front side",vi:"Vui lòng chụp ảnh mặt trước của CMND/CCCD"}},id_detector_error_front_side_multiple_faces:{code:"id_detector_error_front_side_multiple_faces",msg:{en:"Please remove other items out of the frame",vi:"Vui lòng không để lẫn vật thể khác trong khung chụp hình"}},glare_detected:{code:"glare_detected",msg:{en:"Your photo ID is glare. Please adjust the shooting angle.",vi:"Ảnh chụp bị lóa sáng. Vui lòng chụp lại"}}}),xY=ZT.IDCardMessage,TY=Zb.div(rY||(rY=um(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),IY=Zb.div(nY||(nY=um(["\n text-align: center;\n font-size: 1rem;\n"]))),PY=Zb.button(oY||(oY=um(["\n margin-top: 20px;\n width: 100%;\n max-width: 160px;\n height: 50px;\n background-color: ",";\n border: 0;\n outline: none;\n border-radius: 0.25rem;\n color: #fff;\n font-weight: 400;\n cursor: pointer;\n font-size: 1rem;\n"])),(function(e){return e.theme.primaryColor})),RY=function(e){var t=e.onOk,r=e.maxSessionTime,n=nN.useSDKSettings().lang;return ov.createElement(TY,null,ov.createElement(IY,null,$G(xY.TIMEOUT_INSTRUCTION[n])({x:r})),ov.createElement(PY,{onClick:t},_Y.BTN_OK[n]))};RY.propTypes={onOk:Tv.func,maxSessionTime:Tv.number},RY.defaultProps={onOk:function(){},maxSessionTime:30};var NY,OY,LY,MY=ZT.IDCardMessage,DY=ov.forwardRef((function(e,t){var r,n=e.usePortraitMask,o=e.windowAndVideoInfo,i=e.refVideo,a=e.frontSide,s=e.settings,c=e.onCaptureDone,u=e.onUISpacingChange,l=e.outputEncryptionSettings,d=lm(ov.useState({}),2),f=d[0],p=d[1],h=f.yErrorMessage,g=f.yDescription,m=f.yCaptureButton,v=f.yMessage,y=UN.useAsset("ic_camera.png"),b=UN.useAsset("ic_camera_disabled.png"),w=UN.useAsset("ic_id_front.png"),C=UN.useAsset("ic_id_back.png"),k=UN.useAsset("ic_loading.png"),E=nN.useSDKSettings().lang,S=lm(ov.useState(""),2),B=S[0],_=S[1],A=lm(ov.useState(null),2),x=A[0],T=A[1],I=pM.useThemeContext(),P=lm(ov.useState(null),2),R=P[0],N=P[1],O=I.primaryColor,L=I.dangerColor,M=function(){var e=lm(ov.useState(!1),2),t=e[0],r=e[1],n=lm(ov.useState(null),2),o=n[0],i=n[1],a=lm(ov.useState({}),2),s=a[0],c=a[1];return{showPopup:ov.useCallback((function(e){var t=e.popupType,n=e.props;c(void 0===n?{}:n),i(t),r(null!==t)}),[]),popupShown:t,popupType:o,props:s}}(),D=M.showPopup,U=M.popupShown,j=M.popupType,F=ov.useRef((function(){})),V=ov.useCallback((function(e){_(null===e?"":$G(AY[e.code].msg[E])({side:a?_Y.FRONT[E]:_Y.BACK[E]}))}),[E,a]),z=ov.useCallback((function(){N(""),D({popupType:ZG})}),[D]),K=ov.useCallback((function(e){var t=e.curTimeLeft;N($G(MY.REMAINING_TIME[E])({x:t}))}),[E]),H=ZK({shouldStart:!0,refVideo:i,cropArea:x,settings:s,onModelErrorChange:V,frontSide:a,onSessionTimeout:z,onCaptureDone:c,onAboutToTimeout:K,outputEncryptionSettings:l}),q=H.warmupDone,W=H.isProcessing,Q=H.takePictureManually,G=H.restartSession,X=H.resetIsProcessingImageBlobTaken,Y=ov.useCallback((function(){D({popupType:null}),X()}),[D,X]),$=ov.useCallback(Yg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y(),e.next=3,G();case 3:case"end":return e.stop()}}),e)}))),[G,Y]);F.current=$,ov.useEffect((function(){if(o){var e,t,r,i,a,s,c,l,d=o.videoAreaWidth,f=o.videoAreaHeight,h=o.lostX,g=o.lostY,m=o.clientHeight;n?(s=.7*(c=f-165),r=(l=(e=g+10)+45)+20,i=l+c+70):(s=qW.isMobile?d-8:Math.floor(.7*d),c=Math.floor(Math.min(s/1.5,m-2*g-80-145)),r=(t=(l=(e=g+16)+(qW.isMobile?40:65))+c+10)+(qW.isMobile?35:25),a=qW.isMobile?t+60:e+30,i=t+158);var v=Math.floor((d-s)/2)+h;T({x:v,y:l,width:s,height:c,surroundStyle:{background:"#fff"}});var y={yTitle:e,yErrorMessage:t,yMessage:r,yDescription:a,yCaptureButton:i};p(y),u(y)}}),[o,n,u]);var Z=ov.useCallback(Yg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(""),e.next=3,Q();case 3:case"end":return e.stop()}}),e)}))),[Q]);ov.useImperativeHandle(t,(function(){return{restartSession:$}}),[$]);var J=!(W||null!=s&&s.disableCaptureButtonIfAlert&&B);return ov.createElement(ov.Fragment,null,!q&&ov.createElement(yV,null),W&&ov.createElement(fY,null,ov.createElement("img",{src:k,alt:"",className:"spin"})),x&&ov.createElement(SD,{x:"".concat(x.x,"px"),y:"".concat(x.y,"px"),width:"".concat(x.width,"px"),height:"".concat(x.height,"px"),surroundStyle:x.surroundStyle},ov.createElement(wY,{strokeStyles:(r={},Jg(r,gz.DEFAULT,{fill:"none",strokeWidth:5,stroke:O}),Jg(r,gz.ERROR,{fill:"none",strokeWidth:5,stroke:O}),r),paddingStyle:{fill:"#fff"},strokeWidth:5,errorColor:L,width:x.width,height:x.height,type:B?gz.ERROR:gz.DEFAULT})),B&&ov.createElement(bY,{y:"".concat(h,"px")},B),ov.createElement(kY,{y:"".concat(g,"px")},qW.isMobile&&ov.createElement("div",null,ov.createElement("img",{src:a?w:C,width:70,height:45,alt:""})),"Đặt CMND/CCCD của bạn vào giữa khung. Hình ảnh rõ ràng, không bị chói, mờ & cắt góc."),ov.createElement(dY,{onClick:J?Z:null,y:"".concat(m,"px")},ov.createElement("img",{src:J?y:b,alt:""})),R&&ov.createElement(CY,{key:R,y:"".concat(v,"px")},R),ov.createElement(tY,{open:U},j===ZG&&ov.createElement(RY,{onOk:$,maxSessionTime:null==s?void 0:s.idCardSessionTime})))}));DY.propTypes={usePortraitMask:Tv.bool,windowAndVideoInfo:Tv.shape({}),refVideo:Tv.shape({}),frontSide:Tv.bool,settings:Tv.shape({}),onCaptureDone:Tv.func,onUISpacingChange:Tv.func,outputEncryptionSettings:Tv.shape({})},DY.defaultProps={usePortraitMask:!1,windowAndVideoInfo:{},refVideo:{},frontSide:!0,settings:{},onCaptureDone:function(){},onUISpacingChange:function(){},outputEncryptionSettings:null};var UY,jY,FY,VY,zY,KY,HY,qY,WY,QY=Zb.button(NY||(NY=um(["\n background: #0b74e5;\n height: 44px;\n border-radius: 4px;\n border: 0;\n padding: 0 20px;\n color: #fff;\n cursor: pointer;\n font-size: 16px;\n font-weight: 500;\n width: 160px;\n"]))),GY=Zb.button(OY||(OY=um(["\n background: #fff;\n height: 44px;\n border-radius: 4px;\n border: 1px solid #0b74e5;\n padding: 0 20px;\n color: #0b74e5;\n cursor: pointer;\n font-size: 16px;\n font-weight: 500;\n width: 160px;\n &:focus {\n outline: none;\n box-shadow: none;\n }\n"]))),XY=(Zb.a(LY||(LY=um(["\n text-decoration: underline;\n font-size: 16px;\n color: #000;\n cursor: pointer;\n"]))),Zb.div(UY||(UY=um(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"])))),YY=Zb.div(jY||(jY=um(["\n text-align: center;\n font-size: 1rem;\n color: ",";\n margin-top: 10px;\n"])),(function(e){return e.theme.dangerColor})),$Y=Zb.div(FY||(FY=um(["\n margin: 20px 0;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),ZY=Zb.div(VY||(VY=um(["\n margin-right: 5px;\n"]))),JY=Zb.div(zY||(zY=um(["\n margin-left: 5px;\n"]))),e$=Zb.img(KY||(KY=um(["\n ",";\n border-radius: 12px;\n border: 5px solid #1aa7ff;\n margin-top: 30px;\n ",";\n"])),!qW.isMobile&&Db(["height:","px;"],(function(e){return e.calHeight-300})),(function(e){return e.calHeight>0&&qW.isMobile&&Db(["width:","px;height:","px;border:none;border-radius:8px;"],window.innerWidth-30,e.calHeight)})),t$=Zb.div(HY||(HY=um(["\n font-size: ","px;\n font-weight: 500;\n color: #38383d;\n"])),qW.isMobile?16:24),r$=Zb.div(qY||(qY=um(["\n margin: 8px 0;\n font-size: ","px;\n font-weight: normal;\n color: #38383d;\n text-align: center;\n"])),qW.isMobile?14:16),n$=Zb.div(WY||(WY=um(["\n margin-top: 20px;\n font-size: ","px;\n font-weight: normal;\n color: #38383d;\n text-align: center;\n"])),qW.isMobile?14:16),o$=function(e){var t=e.title,r=e.imageTaken,n=e.onConfirm,o=e.onTryAgain,i=e.error,a=e.hasValidQR,s=lm(ov.useState(null),2),c=s[0],u=s[1],l=nN.useSDKSettings().lang,d=UN.useAsset("ic_close.png"),f=UN.useAsset("ic_close_desktop.png"),p=lm(ov.useState(qW.isMobile?0:window.innerHeight),2),h=p[0],g=p[1],m=ov.useRef();ov.useEffect((function(){var e;return r&&(e=URL.createObjectURL(r.blob),u(e)),function(){URL.revokeObjectURL(e)}}),[r]);return ov.createElement(XY,null,null!==a&&ov.createElement(cH,{mb:"20px"},ov.createElement("div",null,ov.createElement(Cq,{type:a?hq.SUCCESS:hq.WARNING},a?_Y.CONFIRM_POPUP_VALID_QR[l]:_Y.CONFIRM_POPUP_INVALID_QR[l]))),ov.createElement(t$,null,t),!qW.isMobile&&ov.createElement(r$,null,"Đặt CMND / CCCD của bạn vào giữa khung. Hình ảnh rõ ràng, không bị chói mờ & cắt góc."),ov.createElement(e$,{ref:m,src:c,calHeight:h,onLoad:function(){if(qW.isMobile){var e=m.current,t=e.height/e.width,r=(window.innerWidth-30)*t;g(r)}}}),ov.createElement(n$,null,"Nhìn ổn chứ? Bạn có thể tự chụp lại để có ảnh tốt hơn."),i&&ov.createElement(YY,{className:"confirm-popup-error-message"},i.msg[l]),ov.createElement($Y,null,ov.createElement(ZY,null,ov.createElement(GY,{type:"button",onClick:o},_Y.BTN_TRY_AGAIN[l])),ov.createElement(JY,null,ov.createElement(QY,{onClick:n},_Y.BTN_USE_THIS_PICTURE[l]))),ov.createElement(SY,{onClick:o},ov.createElement("img",{src:qW.isMobile?d:f,alt:""})))};o$.propTypes={imageTaken:Tv.shape({}),error:Tv.shape({msg:Tv.shape({})}),onConfirm:Tv.func,onTryAgain:Tv.func,hasValidQR:Tv.bool,title:Tv.string},o$.defaultProps={imageTaken:null,error:null,onConfirm:function(){},onTryAgain:function(){},hasValidQR:null,title:""};var i$,a$,s$,c$,u$,l$,d$,f$,p$,h$,g$,m$,v$,y$={primaryColor:"#1AA7FF",dangerColor:"#FF424E"},b$="CONFIRM",w$=ew(i$||(i$=um(["\n"]))),C$=ZT.IDCardSide,k$=ZT.IDCardType,E$="id_card",S$="qr_code",B$=[{scannerType:E$,title:"Chụp mặt trước",cardSide:ZT.IDCardSide.FRONT,cardType:k$.VN,frontCamera:!1,enableConfirmPopup:!0},{scannerType:E$,title:"Chụp mặt sau",cardSide:ZT.IDCardSide.BACK,cardType:k$.VN,frontCamera:!1,enableConfirmPopup:!0}];function _$(e){var t=e.onClose,r=e.onError,n=e.clientSettings,o=e.onStepDone,i=e.steps,a=e.outputEncryptionSettings,s=lm(ov.useState(0),2),c=s[0],u=s[1],l=lm(ov.useState(i[c]),2),d=l[0],f=l[1],p=ov.useRef(null),h=lm(ov.useState(null),2),g=h[0],m=h[1],v=lm(ov.useState(!1),2),y=v[0],b=v[1],w=lm(ov.useState(0),2),C=w[0],k=w[1],E=ov.useRef(),S=d.scannerType,B=d.frontCamera,_=d.title,A=d.cardSide,x=d.usePortraitMask,T=d.enableConfirmPopup,I=UN.useAsset("ic_close.png"),P=UN.useAsset("ic_close_desktop.png"),R=UN.useAsset("ic_loading.png"),N=A===C$.FRONT,O=mK(),L=O.showPopup,M=O.popupShown,D=O.popupType,U=O.props,j=lm(ov.useState(!1),2),F=j[0],V=j[1],z=ov.useRef(null),K=ov.useRef(null),H=ov.useRef([]),q=Hq({clientSettings:n}).settings,W=lm(ov.useState({}),2),Q=W[0],G=W[1],X=Q.yTitle,Y=LN.useSDKTracking().sendEvent,$=ov.useCallback((function(e){m(e),b(!0)}),[]);ov.useEffect((function(){b(!1)}),[B]);var Z=ov.useCallback((function(){L({popupType:null})}),[L]),J=ov.useCallback((function(e){e>=i.length||setTimeout((function(){u(e),f(i[e])}),200)}),[i]),ee=ov.useCallback((function(){J(c+1)}),[J,c]),te=ov.useCallback(Yg(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={stepNumber:c,image:z.current,recordedVideos:null!=q&&q.enableRecording?H.current:[]},S===S$&&(t.qrScannedResult=K.current),V(!0),e.next=5,o(t);case 5:Y({tag:"result",event:"sdk_mode.read_id_card_one_side",log:{result_object:t}}),V(!1),ee();case 8:case"end":return e.stop()}}),e)}))),[q,c,o,ee,S,Y]),re=ov.useCallback((function(){Z(),S===S$?J(c):S===E$&&(Y({tag:N?"id_front":"id_back",event:"user_activity.retry",log:{}}),E.current.restartSession())}),[J,c,Z,S,N,Y]),ne=ov.useCallback((function(){Z(),Y({tag:N?"id_front":"id_back",event:"user_activity.submit",log:{}}),te()}),[te,Z,Y,N]),oe=ov.useCallback(function(){var e=Yg(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.image,n=t.error,o=t.recordedVideos,z.current=r,H.current=o,k((function(e){return e+1})),T?L({popupType:b$,props:{title:_,imageTaken:z.current,error:n}}):te();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[T,L,te,_]);return ov.createElement(Xb,{theme:y$},ov.createElement(lY,null,ov.createElement(yD,{key:B,frontCamera:B,onVideoPlayed:$,onClose:t,flipHorizontal:B,ref:p,onError:r,closeButton:ov.createElement(SY,null,ov.createElement("img",{src:qW.isMobile?I:P,alt:""}))},y&&ov.createElement(ov.Fragment,null,S===E$&&ov.createElement(DY,{key:c,ref:E,windowAndVideoInfo:g,refVideo:p,settings:q,onCaptureDone:oe,onUISpacingChange:G,frontSide:N,usePortraitMask:x,outputEncryptionSettings:a})),ov.createElement(uY,{keyForTransition:C}),ov.createElement(hY,{y:"".concat(X,"px")},ov.createElement(HW,null,ov.createElement(UW,{key:_,timeout:{enter:cY,exit:cY},classNames:"flipY",unmountOnExit:!0},ov.createElement(gY,null,ov.createElement(mY,null,_))))),F&&ov.createElement(fY,null,ov.createElement("img",{src:R,alt:"",className:"spin"}))),ov.createElement(JF,{open:M,overlayStyle:{padding:0},contentStyle:{maxWidth:"none",width:"100%",height:"100%",borderRadius:0}},D===b$&&ov.createElement(o$,em({},U,{onConfirm:ne,onTryAgain:re})))),ov.createElement(w$,null))}function A$(e){var t=e.className;return ov.createElement("svg",{className:t,width:"320",height:"320",viewBox:"0 0 320 320",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M320 0H0V320H320V0ZM160 296C235.111 296 296 235.111 296 160C296 84.8893 235.111 24 160 24C84.8893 24 24 84.8893 24 160C24 235.111 84.8893 296 160 296Z",fill:"currentColor"}))}function x$(e){var t=e.isActive;return ov.createElement("svg",{width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("g",{opacity:t?1:.3},ov.createElement("rect",{x:"0.5",width:"44",height:"44",rx:"8",fill:"url(#paint0_linear_1680_23125)"}),ov.createElement("g",{clipPath:"url(#clip0_1680_23125)"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 12C16.9772 12 12.5 16.4772 12.5 22C12.5 27.5228 16.9772 32 22.5 32C28.0228 32 32.5 27.5228 32.5 22C32.5 16.4772 28.0228 12 22.5 12ZM10.5 22C10.5 15.3726 15.8726 10 22.5 10C29.1274 10 34.5 15.3726 34.5 22C34.5 28.6274 29.1274 34 22.5 34C15.8726 34 10.5 28.6274 10.5 22Z",fill:"white"}),ov.createElement("path",{d:"M18.5 19.5C18.5 20.3284 17.8284 21 17 21C16.1716 21 15.5 20.3284 15.5 19.5C15.5 18.6716 16.1716 18 17 18C17.8284 18 18.5 18.6716 18.5 19.5Z",fill:"white"}),ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 27C12.5 26.4477 12.9477 26 13.5 26H19C19.5523 26 20 26.4477 20 27C20 27.5523 19.5523 28 19 28H13.5C12.9477 28 12.5 27.5523 12.5 27Z",fill:"white"}))),ov.createElement("defs",null,ov.createElement("linearGradient",{id:"paint0_linear_1680_23125",x1:"22.5",y1:"0",x2:"22.5",y2:"44",gradientUnits:"userSpaceOnUse"},ov.createElement("stop",{stopColor:"#1797FF"}),ov.createElement("stop",{offset:"1",stopColor:"#7DD8FF"})),ov.createElement("clipPath",{id:"clip0_1680_23125"},ov.createElement("rect",{width:"24",height:"24",fill:"white",transform:"translate(10.5 10)"}))))}function T$(e){var t=e.isActive;return ov.createElement("svg",{width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("g",{opacity:t?1:.3},ov.createElement("rect",{width:"44",height:"44",rx:"8",transform:"matrix(-1 0 0 1 44.5 0)",fill:"url(#paint0_linear_1680_23314)"}),ov.createElement("g",{clipPath:"url(#clip0_1680_23314)"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 12C28.0228 12 32.5 16.4772 32.5 22C32.5 27.5228 28.0228 32 22.5 32C16.9772 32 12.5 27.5228 12.5 22C12.5 16.4772 16.9772 12 22.5 12ZM34.5 22C34.5 15.3726 29.1274 10 22.5 10C15.8726 10 10.5 15.3726 10.5 22C10.5 28.6274 15.8726 34 22.5 34C29.1274 34 34.5 28.6274 34.5 22Z",fill:"white"}),ov.createElement("path",{d:"M26.5 19.5C26.5 20.3284 27.1716 21 28 21C28.8284 21 29.5 20.3284 29.5 19.5C29.5 18.6716 28.8284 18 28 18C27.1716 18 26.5 18.6716 26.5 19.5Z",fill:"white"}),ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5 27C32.5 26.4477 32.0523 26 31.5 26H26C25.4477 26 25 26.4477 25 27C25 27.5523 25.4477 28 26 28H31.5C32.0523 28 32.5 27.5523 32.5 27Z",fill:"white"}))),ov.createElement("defs",null,ov.createElement("linearGradient",{id:"paint0_linear_1680_23314",x1:"22",y1:"0",x2:"22",y2:"44",gradientUnits:"userSpaceOnUse"},ov.createElement("stop",{stopColor:"#1797FF"}),ov.createElement("stop",{offset:"1",stopColor:"#7DD8FF"})),ov.createElement("clipPath",{id:"clip0_1680_23314"},ov.createElement("rect",{width:"24",height:"24",fill:"white",transform:"matrix(-1 0 0 1 34.5 10)"}))))}function I$(e){var t=e.isActive;return ov.createElement("svg",{width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("g",{opacity:t?1:.3},ov.createElement("rect",{x:"0.5",width:"44",height:"44",rx:"8",fill:"url(#paint0_linear_1680_23117)"}),ov.createElement("g",{clipPath:"url(#clip0_1680_23117)"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 12C28.0228 12 32.5 16.4772 32.5 22C32.5 27.5228 28.0228 32 22.5 32C16.9772 32 12.5 27.5228 12.5 22C12.5 16.4772 16.9772 12 22.5 12ZM34.5 22C34.5 15.3726 29.1274 10 22.5 10C15.8726 10 10.5 15.3726 10.5 22C10.5 28.6274 15.8726 34 22.5 34C29.1274 34 34.5 28.6274 34.5 22Z",fill:"white"}),ov.createElement("path",{d:"M25.5 16.5C25.5 17.3284 26.1716 18 27 18C27.8284 18 28.5 17.3284 28.5 16.5C28.5 15.6716 27.8284 15 27 15C26.1716 15 25.5 15.6716 25.5 16.5Z",fill:"white"}),ov.createElement("path",{d:"M16.5 16.5C16.5 17.3284 17.1716 18 18 18C18.8284 18 19.5 17.3284 19.5 16.5C19.5 15.6716 18.8284 15 18 15C17.1716 15 16.5 15.6716 16.5 16.5Z",fill:"white"}),ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.5 22C26.5 21.4477 26.0224 21 25.4333 21H19.5667C18.9776 21 18.5 21.4477 18.5 22C18.5 22.5523 18.9776 23 19.5667 23H25.4333C26.0224 23 26.5 22.5523 26.5 22Z",fill:"white"}))),ov.createElement("defs",null,ov.createElement("linearGradient",{id:"paint0_linear_1680_23117",x1:"22.5",y1:"0",x2:"22.5",y2:"44",gradientUnits:"userSpaceOnUse"},ov.createElement("stop",{stopColor:"#1797FF"}),ov.createElement("stop",{offset:"1",stopColor:"#7DD8FF"})),ov.createElement("clipPath",{id:"clip0_1680_23117"},ov.createElement("rect",{width:"24",height:"24",fill:"white",transform:"matrix(-1 0 0 1 34.5 10)"}))))}function P$(e){var t=e.isActive;return ov.createElement("svg",{width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("g",{opacity:t?1:.3},ov.createElement("rect",{x:"0.5",width:"44",height:"44",rx:"8",fill:"url(#paint0_linear_1680_23140)"}),ov.createElement("g",{clipPath:"url(#clip0_1680_23140)"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 12C28.0228 12 32.5 16.4772 32.5 22C32.5 27.5228 28.0228 32 22.5 32C16.9772 32 12.5 27.5228 12.5 22C12.5 16.4772 16.9772 12 22.5 12ZM34.5 22C34.5 15.3726 29.1274 10 22.5 10C15.8726 10 10.5 15.3726 10.5 22C10.5 28.6274 15.8726 34 22.5 34C29.1274 34 34.5 28.6274 34.5 22Z",fill:"white"}),ov.createElement("path",{d:"M25.5 18.5C25.5 19.3284 26.1716 20 27 20C27.8284 20 28.5 19.3284 28.5 18.5C28.5 17.6716 27.8284 17 27 17C26.1716 17 25.5 17.6716 25.5 18.5Z",fill:"white"}),ov.createElement("path",{d:"M16.5 18.5C16.5 19.3284 17.1716 20 18 20C18.8284 20 19.5 19.3284 19.5 18.5C19.5 17.6716 18.8284 17 18 17C17.1716 17 16.5 17.6716 16.5 18.5Z",fill:"white"}),ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.5 26C26.5 25.4477 26.0224 25 25.4333 25H19.5667C18.9776 25 18.5 25.4477 18.5 26C18.5 26.5523 18.9776 27 19.5667 27H25.4333C26.0224 27 26.5 26.5523 26.5 26Z",fill:"white"}))),ov.createElement("defs",null,ov.createElement("linearGradient",{id:"paint0_linear_1680_23140",x1:"22.5",y1:"0",x2:"22.5",y2:"44",gradientUnits:"userSpaceOnUse"},ov.createElement("stop",{stopColor:"#1797FF"}),ov.createElement("stop",{offset:"1",stopColor:"#7DD8FF"})),ov.createElement("clipPath",{id:"clip0_1680_23140"},ov.createElement("rect",{width:"24",height:"24",fill:"white",transform:"matrix(-1 0 0 1 34.5 10)"}))))}_$.propTypes={onClose:Tv.func,onError:Tv.func,clientSettings:Tv.shape({}),detectIdCard:Tv.func,onStepDone:Tv.func,steps:Tv.arrayOf(Tv.shape({})),outputEncryptionSettings:Tv.shape({})},_$.defaultProps={onClose:function(){},onError:function(){},clientSettings:{},detectIdCard:function(){return Promise.resolve({card_label:""})},onStepDone:function(){},steps:B$,outputEncryptionSettings:null},A$.propTypes={className:Tv.string},A$.defaultProps={className:""},x$.propTypes={isActive:Tv.bool},x$.defaultProps={isActive:!0},T$.propTypes={isActive:Tv.bool},T$.defaultProps={isActive:!0},I$.propTypes={isActive:Tv.bool},I$.defaultProps={isActive:!0},P$.propTypes={isActive:Tv.bool},P$.defaultProps={isActive:!0};var R$=HV.Camera,N$=EW.Text,O$=EW.FaceDetectionError,L$=EW.FaceVerificationInstructions,M$=EW.FaceVerificationStepsWrapper,D$=EW.StepItem,U$=EW.BottomButtonsOverlay,j$=EW.Button,F$=EW.CountDownOverlay,V$=EW.CountdownTime,z$=Zb(FF)(a$||(a$=um(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"]))),K$=Zb(A$)(s$||(s$=um(["\n width: 100%;\n height: 100%;\n vertical-align: middle;\n margin: 0;\n color: ",";\n"])),(function(e){var t=e.color;return null!=t?t:"rgba(0, 0, 0, 0.6)"})),H$=Zb(L$)(c$||(c$=um(["\n font-size: 18px;\n color: #38383d;\n text-shadow: none;\n font-weight: 600;\n"]))),q$=Zb(O$)(u$||(u$=um(["\n color: #ff424e;\n background-color: unset;\n"]))),W$=Zb(V$)(l$||(l$=um(["\n background-color: unset;\n color: #ff424e;\n font-size: 18px;\n"]))),Q$=Zb(D$)(d$||(d$=um(["\n /* border-color: #1aa7ff;\n color: #1aa7ff; */\n width: 44px;\n height: 44px;\n opacity: 1;\n img {\n border-radius: 8px;\n width: 44px;\n }\n"]))),G$=Zb(j$)(f$||(f$=um(["\n z-index: ",";\n position: absolute;\n top: 20px;\n left: 20px;\n width: 12px;\n"])),1100),X$=Zb(N$)(p$||(p$=um(["\n position: absolute;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n text-align: center;\n padding: 0 1.75rem;\n color: #38383d;\n\n ","\n"])),(function(e){var t=e.top;return t&&Db(["top:","px;"],t)})),Y$=Zb.span(h$||(h$=um(["\n position: absolute;\n bottom: 5px;\n color: #38383d;\n font-size: 14px;\n z-index: ",";\n"])),1020),$$=tw(["from{opacity:1;}to{opacity:0;}"]),Z$=Zb.div(g$||(g$=um(["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n z-index: -1;\n background: rgba(255, 255, 255, 0.3);\n animation: "," 1s infinite;\n"])),$$),J$=qW.isMobile?{width:640}:null,eZ={background:"#fff",opacity:1};function tZ(e){var t,r,n=e.apiCheck,o=e.mode,i=e.onLivenessDetectionDone,a=e.onClose,s=e.onError,c=e.captureFrameSettings,u=e.onFramesCaptured,l=e.frontCamera,d=e.customStepTimeConstraints,f=e.onProcessing,p=e.customErrors,h=e.customMessages,g=e.livenessSettings,m=e.customInstructions,v=e.apiCredentials,y=e.title,b=e.subInstructions,w=UN.useAsset("bg_camera_mask.png"),C=UN.useAsset("bg_camera_mask_red.png"),k=UN.useAsset("ic_close_black.png"),E=lm(ov.useState({}),2),S=E[0],B=E[1],_=S.yFaceVerificationStepsWrapper,A=lm(ov.useState(""),2),x=A[0],T=A[1],I=lm(ov.useState(!1),2),P=I[0],R=I[1],N=ov.useCallback((function(e){var t=e.lostY,r=e.height,n=t+25,o=n+30;return B({yFaceDetectionError:n,yFaceVerificationStepsWrapper:o+r-45*r/350/2-8}),{y:Math.floor(o)}}),[]),O=kW({apiCheck:n,mode:o,bgCameraMask:w,bgCameraMaskRed:C,surroundStyle:eZ,onLivenessDetectionDone:i,onError:s,cropAreaDimension:N,captureFrameSettings:c,onFramesCaptured:u,livenessSettings:g,setRemainingTime:T,customStepTimeConstraints:d,onProcessing:f,customErrors:p,customMessages:h,customInstructions:m,apiCredentials:v}),L=O.countdownToTakePicture,M=O.cropArea,D=O.curStepIndex,U=O.faceDetectionError,j=O.handleTriggerPassiveMode,F=O.handleVideoPlayed,V=O.instructions,z=O.isActiveMode,K=O.refVideo,H=O.showCountdown,q=O.steps,W=O.videoPlayed,Q=O.isFirstValidFrameFound,G=O.warmupDone,X=O.activeCapturing,Y=ov.useRef(0);if(window.innerHeight-((null===(t=M.current)||void 0===t?void 0:t.y)+(null===(r=M.current)||void 0===r?void 0:r.height))-110<60){var $,Z=window.innerHeight-(null===($=M.current)||void 0===$?void 0:$.y)-170;Y.current=(M.current.height-Z)/2,M.current.width=Z,M.current.height=Z}ov.useEffect((function(){Promise.all(q.map((function(e){return t=e.directionIcon,new Promise((function(e){var r=new Image;r.onload=e,r.onerror=e,r.src=t}));var t}))).then((function(){return R(!0)}))}),[q]);var J=ov.useRef(!1);ov.useEffect((function(){Q||(J.current=!1)}),[Q]),U&&U.code.includes("terminated")&&(J.current=!0);var ee=ov.useCallback((function(e,t){switch(e){case"left":return ov.createElement(x$,{isActive:t});case"right":return ov.createElement(T$,{isActive:t});case"up":return ov.createElement(I$,{isActive:t});case"frontal":return ov.createElement(P$,{isActive:t});default:return null}}),[]);return ov.createElement(yD,{frontCamera:l,onVideoPlayed:F,flipHorizontal:l,ref:K,videoSettings:J$,onError:s,onClose:a,closeButton:ov.createElement(G$,null,ov.createElement("img",{src:k,alt:""}))},!G&&ov.createElement(yV,null),W&&P?ov.createElement(ov.Fragment,null,ov.createElement(X$,{top:20},"".concat(y)),ov.createElement(q$,{top:_-Y.current,className:"face-detection-error",error:U}),x&&ov.createElement(W$,{top:M.current.y-15},x),M.current?ov.createElement(SD,{x:"".concat(M.current.x+Y.current,"px"),y:"".concat(M.current.y,"px"),width:"".concat(M.current.width,"px"),height:"".concat(M.current.height,"px"),surroundStyle:M.current.surroundStyle},ov.createElement(K$,{color:"#fff"}),ov.createElement(z$,{progress:D/q.length*100,hasError:!!U,showDashedRing:!1,showOutsideRing:!1,insideRingWidth:5,errorRingWidth:0,insideRingStrokeDash:"none",insideRingColor:"#1AA7FF"}),H?ov.createElement(F$,null,L):null,z&&X?ov.createElement(Z$,null):null):null,z?ov.createElement(ov.Fragment,null,Q&&!J.current&&ov.createElement(M$,{bottom:60},q.map((function(e,t){var r=e.name,n=e.image.objUrl;return ov.createElement(Q$,{key:r,className:"step-item"},n?ov.createElement("img",{src:n,alt:""}):ee(e.name,D>=t))}))),V?ov.createElement(ov.Fragment,null,ov.createElement(H$,{bottom:30,className:"instructions"},"".concat(V)),ov.createElement(Y$,null,b)):null):ov.createElement(ov.Fragment,null,U?null:ov.createElement(U$,null,ov.createElement(j$,{onClick:j},ov.createElement(R$,null))))):null)}function rZ(e){return ov.createElement($V,em({},e,{livenessComponent:tZ}))}tZ.propTypes={apiCheck:Tv.bool,mode:Tv.string,onLivenessDetectionDone:Tv.func,onClose:Tv.func,onError:Tv.func,captureFrameSettings:Tv.shape({}),onFramesCaptured:Tv.func,frontCamera:Tv.bool,customStepTimeConstraints:Tv.shape({}),onProcessing:Tv.func,customErrors:Tv.shape({}),customMessages:Tv.shape({}),livenessSettings:Tv.shape({}),customInstructions:Tv.shape({}),apiCredentials:Tv.shape({accessKey:Tv.string,secretKey:Tv.string,apiUrl:Tv.string}),title:Tv.string,subInstructions:Tv.string},tZ.defaultProps={apiCheck:!1,mode:null,onLivenessDetectionDone:null,onClose:null,onError:function(){},captureFrameSettings:{enable:!1,framesIntervalTime:180,framesBatchLength:0},onFramesCaptured:function(){},frontCamera:!0,customStepTimeConstraints:(m$={},Jg(m$,ZT.FaceDirection.UP,{delayTime:0}),Jg(m$,ZT.FaceDirection.LEFT,{delayTime:0}),Jg(m$,ZT.FaceDirection.RIGHT,{delayTime:0}),Jg(m$,ZT.FaceDirection.FRONTAL,{delayTime:2e3}),m$),onProcessing:function(){},customErrors:{no_face:{code:"no_face",msg:{en:"Face is not detected.",vi:"Không nhận diện được khuôn mặt."}},multiple_faces:{code:"multiple_faces",msg:{en:"There are more than one face in the frame",vi:"Nhiều khuôn mặt xuất hiện trong khung hình"}},face_too_small:{code:"face_too_small",msg:{en:"The face is too small",vi:"Khuôn mặt quá nhỏ"}},face_too_large:{code:"face_too_large",msg:{en:"The face is too big",vi:"Khuôn mặt quá lớn"}},face_out_of_box:{code:"face_out_of_box",msg:{en:"Face is out of box",vi:"Khuôn mặt nằm ngoài khung ảnh"}},liveness_terminated_time_out:{code:"liveness_terminated_time_out",msg:{en:"The face verification need to be completed in <%= x %> seconds.\nPlease try again.",vi:"Xác thực khuôn mặt cần thực hiện trong <%= x %> giây.\nVui lòng thử lại."}}},customMessages:{REMAIN_TIME:{en:"Remaining time: <%= x %> seconds",vi:"Thời gian còn lại: <%= x %>"}},customInstructions:(v$={},Jg(v$,ZT.FaceDirection.LEFT,{en:"Please turn to the left",vi:"Xoay trái"}),Jg(v$,ZT.FaceDirection.RIGHT,{en:"Please turn to the right",vi:"Xoay phải"}),Jg(v$,ZT.FaceDirection.UP,{en:"Please look up",vi:"Ngẩng lên"}),Jg(v$,ZT.FaceDirection.FRONTAL,{en:"Please look straight to camera",vi:"Nhìn thẳng"}),v$),livenessSettings:null,apiCredentials:{accessKey:"5767c20d-87aa-4cad-8dbb-f5429f76c34b",secretKey:"c1446919-e60a-4575-a05d-304318212a1b",apiUrl:"https://tv-testing.trustingsocial.com/api"},title:"Chụp khuôn mặt",subInstructions:"Xin giữ khuôn mặt nằm trong khung ảnh"};var nZ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oZ=/^\w*$/;var iZ=function(e,t){if(XQ(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!MG(e))||(oZ.test(e)||!nZ.test(e)||null!=t&&e in Object(t))},aZ=wQ(Object,"create");var sZ=function(){this.__data__=aZ?aZ(null):{},this.size=0};var cZ=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},uZ=Object.prototype.hasOwnProperty;var lZ=function(e){var t=this.__data__;if(aZ){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return uZ.call(t,e)?t[e]:void 0},dZ=Object.prototype.hasOwnProperty;var fZ=function(e){var t=this.__data__;return aZ?void 0!==t[e]:dZ.call(t,e)};var pZ=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=aZ&&void 0===t?"__lodash_hash_undefined__":t,this};function hZ(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}hZ.prototype.clear=sZ,hZ.prototype.delete=cZ,hZ.prototype.get=lZ,hZ.prototype.has=fZ,hZ.prototype.set=pZ;var gZ=hZ;var mZ=function(){this.__data__=[],this.size=0};var vZ=function(e,t){for(var r=e.length;r--;)if(EQ(e[r][0],t))return r;return-1},yZ=Array.prototype.splice;var bZ=function(e){var t=this.__data__,r=vZ(t,e);return!(r<0)&&(r==t.length-1?t.pop():yZ.call(t,r,1),--this.size,!0)};var wZ=function(e){var t=this.__data__,r=vZ(t,e);return r<0?void 0:t[r][1]};var CZ=function(e){return vZ(this.__data__,e)>-1};var kZ=function(e,t){var r=this.__data__,n=vZ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function EZ(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}EZ.prototype.clear=mZ,EZ.prototype.delete=bZ,EZ.prototype.get=wZ,EZ.prototype.has=CZ,EZ.prototype.set=kZ;var SZ=EZ,BZ=wQ(GW,"Map");var _Z=function(){this.size=0,this.__data__={hash:new gZ,map:new(BZ||SZ),string:new gZ}};var AZ=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var xZ=function(e,t){var r=e.__data__;return AZ(t)?r["string"==typeof t?"string":"hash"]:r.map};var TZ=function(e){var t=xZ(this,e).delete(e);return this.size-=t?1:0,t};var IZ=function(e){return xZ(this,e).get(e)};var PZ=function(e){return xZ(this,e).has(e)};var RZ=function(e,t){var r=xZ(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function NZ(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}NZ.prototype.clear=_Z,NZ.prototype.delete=TZ,NZ.prototype.get=IZ,NZ.prototype.has=PZ,NZ.prototype.set=RZ;var OZ=NZ;function LZ(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(LZ.Cache||OZ),r}LZ.Cache=OZ;var MZ=LZ;var DZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UZ=/\\(\\)?/g,jZ=function(e){var t=MZ(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(DZ,(function(e,r,n,o){t.push(n?o.replace(UZ,"$1"):r||e)})),t}));var FZ=function(e,t){return XQ(e)?e:iZ(e,t)?[e]:jZ(FG(e))};var VZ=function(e){if("string"==typeof e||MG(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var zZ=function(e,t){for(var r=0,n=(t=FZ(t,e)).length;null!=e&&r<n;)e=e[VZ(t[r++])];return r&&r==n?e:void 0};var KZ=function(e,t,r){var n=null==e?void 0:zZ(e,t);return void 0===n?r:n},HZ=["tracking","clientSettings"];function qZ(e){var t=e.tracking,r=e.clientSettings,n=sm(e,HZ),o=ov.useMemo((function(){return KZ(r,"data.settings.sdk_settings.server_log_settings.enable",null==t?void 0:t.enable)}),[r,t]);return ov.createElement(LN.SDKTrackingProvider,{value:{tracking:rm(rm({},t),{},{enable:o})}},ov.createElement(_$,em({},n,{clientSettings:r})))}qZ.propTypes={tracking:Tv.shape({}),clientSettings:Tv.shape({})},qZ.defaultProps={tracking:void 0,clientSettings:void 0};var WZ=ZT.Errors,QZ=function(e){var t=e.onClose,r=e.onError,n=e.detectIdCard,o=e.steps,i=e.onStepDone,a=e.apiCredentials,s=e.tracking,c=lm(ov.useState(null),2),u=c[0],l=c[1],d=KL.useApiClient({apiCredentials:a,tracking:s}).apiClient,f=ov.useRef(""),p=ov.useRef("");ov.useEffect((function(){function e(){return(e=Yg(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.clientSettings();case 2:t=e.sent,l(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[d]);var h=ov.useCallback(function(){var e=Yg(regeneratorRuntime.mark((function e(t){var n,a,s,c,u,l,h,g;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.stepNumber,a=t.recordedVideos,s=t.qrScannedResult,c=t.image,u=o[n],l=u.cardType,h=u.cardSide,g=null,e.prev=3,e.next=6,pW({image:c,cardSide:h,frontCardId:f.current,qrImageId:p.current,onError:r,apiClient:d,cardType:l,recordedVideos:a,qrScannedResult:s});case 6:g=e.sent,h===ZT.IDCardSide.FRONT&&(f.current=g.cardInfo.image1.id),p.current=g.qrImageId,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),r(rm(rm({},WZ.api_call_error),{},{details:e.t0}));case 14:g&&i(rm(rm({},t),{},{apiResult:g}));case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t){return e.apply(this,arguments)}}(),[d,r,o,i]);return u&&ov.createElement(qZ,{tracking:s,onClose:t,onError:r,clientSettings:u,detectIdCard:n,onStepDone:h,steps:o})};QZ.propTypes={onClose:Tv.func,onError:Tv.func,detectIdCard:Tv.func,onStepDone:Tv.func,steps:Tv.arrayOf(Tv.shape({})),apiCredentials:Tv.shape({accessKey:Tv.string,secretKey:Tv.string,apiUrl:Tv.string}),tracking:Tv.shape({})},QZ.defaultProps={onClose:function(){},onError:function(){},detectIdCard:function(){return Promise.resolve({card_label:""})},onStepDone:function(){},steps:B$,apiCredentials:{accessKey:"5767c20d-87aa-4cad-8dbb-f5429f76c34b",secretKey:"c1446919-e60a-4575-a05d-304318212a1b",apiUrl:"https://tv-testing.trustingsocial.com/api"},tracking:void 0};var GZ=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&om(e,t)}(o,yM);var t,r,n=(t=o,r=im(),function(){var e,n=nm(t);if(r){var o=nm(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return cm(this,e)});function o(e){return $g(this,o),n.call(this,rm(rm({},e),{},{baseComponent:CW(),component:{LivenessDetection:rZ,ReadIDCardUIOnly:qZ,ReadIDCardWithApiCall:QZ}}))}return o}();exports.APIUtils=KL,exports.Animations=Xz,exports.AntiDebugUtils=fM,exports.AssetUtils=UN,exports.AsyncUtils=FN,exports.BASE_Z_INDEX=1e3,exports.BaseTVWebSDK=yM,exports.BlurUtils=lO,exports.Button=gH,exports.ButtonLink=mH,exports.Camera=yD,exports.CameraUtils=fO,exports.CommonUtils=hO,exports.Constants=ZT,exports.CoordinateUtils=bO,exports.CropAreaOverlayWrapper=SD,exports.CryptoUtils=gM,exports.FaceUtils=AO,exports.GlareUtils=NL,exports.HashUtils=_N,exports.HighlightResult=Cq,exports.HighlightResultType=hq,exports.Icons=HV,exports.ImageUtils=TL,exports.LivenessDetection=$V,exports.LivenessDetectionComponents=EW,exports.LoadResourceUtils=ZL,exports.LocalStorageUtils=kN,exports.MobileDetect=YM,exports.ModelUtils=dM,exports.NativeCamera=zV,exports.PlacementArea=ED,exports.Popup=JF,exports.PredictionUtils=PO,exports.ProgressCircle=FF,exports.RatioWrapper=OH,exports.ReadIDCardUIOnly=eW,exports.ReadIDCardWithApiCall=vW,exports.RectangleMask=mz,exports.RectangleMaskType=gz,exports.SDK=GZ,exports.ScannerType=Xq,exports.SettingsContext=nN,exports.Spacing=cH,exports.ThemeUtils=pM,exports.TimeUtils=bN,exports.TrackingContext=LN,exports.UserAgentUtils=mN,exports.WarmupPopup=yV,exports.checkCamera=FV,exports.defaultClientSettings=Kq,exports.defaultReadIDCardSteps=B$,exports.getBaseSDKComponent=CW,exports.getCustomUrlsBySettings=ZR,exports.getQrScannerWorkerPath=mM,exports.handleApiCheckReadIdCard=pW,exports.preloadEKYCResources=bW,exports.readIdCardFromImage=wW,exports.readQRCodeFromImage=aq,exports.useLivenessDetection=kW,exports.useMainProcessQRCodeScanner=sq,exports.useMainProcessReadIdCard=ZK,exports.useSettingsReadIdCard=Hq,exports.useShowPopup=mK,exports.warmUpQRCodeScanner=WH,exports.warmUpReadIdCard=qK,exports.warmupSelfieActive=hF;
61
+ */!function(o,i){var a="function",s="undefined",c="object",u="model",l="name",d="type",f="vendor",p="version",h="architecture",g="console",m="mobile",v="tablet",y="smarttv",b="wearable",w={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},C={rgx:function(e,t){for(var r,n,o,s,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(r=n=0;r<f.length&&!u;)if(u=f[r++].exec(e))for(o=0;o<p.length;o++)l=u[++n],typeof(s=p[o])===c&&s.length>0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;d+=2}},str:function(e,t){for(var r in t)if(typeof t[r]===c&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(w.has(t[r][n],e))return"?"===r?i:r}else if(w.has(t[r],e))return"?"===r?i:r;return e}},k={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},E={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[l,p],[/(opios)[\/\s]+([\w\.]+)/i],[[l,"Opera Mini"],p],[/\s(opr)\/([\w\.]+)/i],[[l,"Opera"],p],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[l,p],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[l,"IE"],p],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[l,"Edge"],p],[/(yabrowser)\/([\w\.]+)/i],[[l,"Yandex"],p],[/(puffin)\/([\w\.]+)/i],[[l,"Puffin"],p],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[l,"UCBrowser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],p],[/(micromessenger)\/([\w\.]+)/i],[[l,"WeChat"],p],[/(qqbrowserlite)\/([\w\.]+)/i],[l,p],[/(QQ)\/([\d\.]+)/i],[l,p],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[l,p],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[l,p],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[l,p],[/(MetaSr)[\/\s]?([\w\.]+)/i],[l],[/(LBBROWSER)/i],[l],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[p,[l,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[l,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[l,/(.+)/,"$1 WebView"],p],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[l,/(.+(?:g|us))(.+)/,"$1 $2"],p],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[p,[l,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[l,p],[/(dolfin)\/([\w\.]+)/i],[[l,"Dolphin"],p],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[l,"Chrome"],p],[/(coast)\/([\w\.]+)/i],[[l,"Opera Coast"],p],[/fxios\/([\w\.-]+)/i],[p,[l,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[p,l],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[l,"GSA"],p],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[l,[p,C.str,k.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[l,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[l,"Netscape"],p],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[l,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,w.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[h,/ower/,"",w.lowerize]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[h,w.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[u,f,[d,v]],[/applecoremedia\/[\w\.]+ \((ipad)/],[u,[f,"Apple"],[d,v]],[/(apple\s{0,1}tv)/i],[[u,"Apple TV"],[f,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[f,u,[d,v]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[u,[f,"Amazon"],[d,v]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[u,C.str,k.device.amazon.model],[f,"Amazon"],[d,m]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[u,f,[d,m]],[/\((ip[honed|\s\w*]+);/i],[u,[f,"Apple"],[d,m]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[f,u,[d,m]],[/\(bb10;\s(\w+)/i],[u,[f,"BlackBerry"],[d,m]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[u,[f,"Asus"],[d,v]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[f,"Sony"],[u,"Xperia Tablet"],[d,v]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[u,[f,"Sony"],[d,m]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[f,u,[d,g]],[/android.+;\s(shield)\sbuild/i],[u,[f,"Nvidia"],[d,g]],[/(playstation\s[34portablevi]+)/i],[u,[f,"Sony"],[d,g]],[/(sprint\s(\w+))/i],[[f,C.str,k.device.sprint.vendor],[u,C.str,k.device.sprint.model],[d,m]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[f,u,[d,v]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[f,[u,/_/g," "],[d,m]],[/(nexus\s9)/i],[u,[f,"HTC"],[d,v]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[u,[f,"Huawei"],[d,m]],[/(microsoft);\s(lumia[\s\w]+)/i],[f,u,[d,m]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[u,[f,"Microsoft"],[d,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,"Microsoft"],[d,m]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[u,[f,"Motorola"],[d,m]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[u,[f,"Motorola"],[d,v]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[f,w.trim],[u,w.trim],[d,y]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,"Samsung"],[d,y]],[/\(dtv[\);].+(aquos)/i],[u,[f,"Sharp"],[d,y]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[f,"Samsung"],u,[d,v]],[/smart-tv.+(samsung)/i],[f,[d,y],u],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[f,"Samsung"],u,[d,m]],[/sie-(\w*)/i],[u,[f,"Siemens"],[d,m]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[f,"Nokia"],u,[d,m]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[u,[f,"Acer"],[d,v]],[/android.+([vl]k\-?\d{3})\s+build/i],[u,[f,"LG"],[d,v]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[f,"LG"],u,[d,v]],[/(lg) netcast\.tv/i],[f,u,[d,y]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[u,[f,"LG"],[d,m]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[u,[f,"Lenovo"],[d,v]],[/linux;.+((jolla));/i],[f,u,[d,m]],[/((pebble))app\/[\d\.]+\s/i],[f,u,[d,b]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[f,u,[d,m]],[/crkey/i],[[u,"Chromecast"],[f,"Google"]],[/android.+;\s(glass)\s\d/i],[u,[f,"Google"],[d,b]],[/android.+;\s(pixel c)\s/i],[u,[f,"Google"],[d,v]],[/android.+;\s(pixel xl|pixel)\s/i],[u,[f,"Google"],[d,m]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[u,/_/g," "],[f,"Xiaomi"],[d,m]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[u,/_/g," "],[f,"Xiaomi"],[d,v]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[u,[f,"Meizu"],[d,v]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[u,[f,"OnePlus"],[d,m]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[u,[f,"RCA"],[d,v]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[u,[f,"Dell"],[d,v]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[u,[f,"Verizon"],[d,v]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[f,"Barnes & Noble"],u,[d,v]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[u,[f,"NuVision"],[d,v]],[/android.+;\s(k88)\sbuild/i],[u,[f,"ZTE"],[d,v]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[u,[f,"Swiss"],[d,m]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[u,[f,"Swiss"],[d,v]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[u,[f,"Zeki"],[d,v]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[f,"Dragon Touch"],u,[d,v]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[u,[f,"Insignia"],[d,v]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[u,[f,"NextBook"],[d,v]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[f,"Voice"],u,[d,m]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[f,"LvTel"],u,[d,m]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[u,[f,"Envizen"],[d,v]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[f,u,[d,v]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[u,[f,"MachSpeed"],[d,v]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[f,u,[d,v]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[u,[f,"Rotor"],[d,v]],[/android.+(KS(.+))\s+build/i],[u,[f,"Amazon"],[d,v]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[f,u,[d,v]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[d,w.lowerize],f,u],[/(android[\w\.\s\-]{0,9});.+build/i],[u,[f,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[l,p],[/rv\:([\w\.]{1,9}).+(gecko)/i],[p,l]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[l,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[l,[p,C.str,k.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[l,"Windows"],[p,C.str,k.os.windows.version]],[/\((bb)(10);/i],[[l,"BlackBerry"],p],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[l,p],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[l,"Symbian"],p],[/\((series40);/i],[l],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[l,"Firefox OS"],p],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[l,p],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[l,"Chromium OS"],p],[/(sunos)\s?([\w\.\d]*)/i],[[l,"Solaris"],p],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[l,p],[/(haiku)\s(\w+)/i],[l,p],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[l,"Mac OS"],[p,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[l,p]]},S=function(e,t){if("object"==typeof e&&(t=e,e=i),!(this instanceof S))return new S(e,t).getResult();var r=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),n=t?w.extend(E,t):E;return this.getBrowser=function(){var e={name:i,version:i};return C.rgx.call(e,r,n.browser),e.major=w.major(e.version),e},this.getCPU=function(){var e={architecture:i};return C.rgx.call(e,r,n.cpu),e},this.getDevice=function(){var e={vendor:i,model:i,type:i};return C.rgx.call(e,r,n.device),e},this.getEngine=function(){var e={name:i,version:i};return C.rgx.call(e,r,n.engine),e},this.getOS=function(){var e={name:i,version:i};return C.rgx.call(e,r,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=e,this},this};S.VERSION="0.7.18",S.BROWSER={NAME:l,MAJOR:"major",VERSION:p},S.CPU={ARCHITECTURE:h},S.DEVICE={MODEL:u,VENDOR:f,TYPE:d,CONSOLE:g,MOBILE:m,SMARTTV:y,TABLET:v,WEARABLE:b,EMBEDDED:"embedded"},S.ENGINE={NAME:l,VERSION:p},S.OS={NAME:l,VERSION:p},typeof t!==s?(typeof e!==s&&e.exports&&(t=e.exports=S),t.UAParser=S):r(3)?(n=function(){return S}.call(t,r,t,e))===i||(e.exports=n):o&&(o.UAParser=S);var B=o&&(o.jQuery||o.Zepto);if(typeof B!==s){var _=new S;B.ua=_.getResult(),B.ua.get=function(){return _.getUA()},B.ua.set=function(e){_.setUA(e);var t=_.getResult();for(var r in t)B.ua[r]=t[r]}}}("object"==typeof window?window:this)},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(0),i=o.DEVICE_TYPES,a=o.defaultData,s=t.getNavigatorInstance=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},c=t.isIOS13Check=function(e){var t=s();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:function(e){switch(e){case i.MOBILE:return{isMobile:!0};case i.TABLET:return{isTablet:!0};case i.SMART_TV:return{isSmartTV:!0};case i.CONSOLE:return{isConsole:!0};case i.WEARABLE:return{isWearable:!0};case i.BROWSER:return{isBrowser:!0};default:return a}},broPayload:function(e,t,r,n,o){return{isBrowser:e,browserMajorVersion:t.major,browserFullVersion:t.version,browserName:t.name,engineName:r.name||!1,engineVersion:r.version,osName:n.name,osVersion:n.version,userAgent:o}},mobilePayload:function(e,t,r,o){return n({},e,{vendor:t.vendor,model:t.model,os:r.name,osVersion:r.version,ua:o})},stvPayload:function(e,t,r,n){return{isSmartTV:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},consolePayload:function(e,t,r,n){return{isConsole:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},wearPayload:function(e,t,r,n){return{isWearable:e,engineName:t.name,engineVersion:t.version,osName:r.name,osVersion:r.version,userAgent:n}},getNavigatorInstance:s,isIOS13Check:c}}])})),$W="object"==typeof t&&t&&t.Object===Object&&t,ZW="object"==typeof self&&self&&self.Object===Object&&self,JW=$W||ZW||Function("return this")(),eQ=JW.Symbol,tQ=Object.prototype,rQ=tQ.hasOwnProperty,nQ=tQ.toString,oQ=eQ?eQ.toStringTag:void 0;var iQ=function(e){var t=rQ.call(e,oQ),r=e[oQ];try{e[oQ]=void 0;var n=!0}catch(e){}var o=nQ.call(e);return n&&(t?e[oQ]=r:delete e[oQ]),o},aQ=Object.prototype.toString;var sQ=function(e){return aQ.call(e)},cQ=eQ?eQ.toStringTag:void 0;var uQ=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":cQ&&cQ in Object(e)?iQ(e):sQ(e)};var lQ=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var dQ=function(e){if(!lQ(e))return!1;var t=uQ(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},fQ=JW["__core-js_shared__"],pQ=function(){var e=/[^.]+$/.exec(fQ&&fQ.keys&&fQ.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var hQ=function(e){return!!pQ&&pQ in e},gQ=Function.prototype.toString;var mQ=function(e){if(null!=e){try{return gQ.call(e)}catch(e){}try{return e+""}catch(e){}}return""},vQ=/^\[object .+?Constructor\]$/,yQ=Function.prototype,bQ=Object.prototype,wQ=yQ.toString,CQ=bQ.hasOwnProperty,kQ=RegExp("^"+wQ.call(CQ).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var EQ=function(e){return!(!lQ(e)||hQ(e))&&(dQ(e)?kQ:vQ).test(mQ(e))};var SQ=function(e,t){return null==e?void 0:e[t]};var BQ=function(e,t){var r=SQ(e,t);return EQ(r)?r:void 0},_Q=function(){try{var e=BQ(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var AQ=function(e,t,r){"__proto__"==t&&_Q?_Q(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var xQ=function(e,t){return e===t||e!=e&&t!=t},TQ=Object.prototype.hasOwnProperty;var IQ=function(e,t,r){var n=e[t];TQ.call(e,t)&&xQ(n,r)&&(void 0!==r||t in e)||AQ(e,t,r)};var PQ=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?AQ(r,s,c):IQ(r,s,c)}return r};var RQ=function(e){return e};var NQ=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},OQ=Math.max;var LQ=function(e,t,r){return t=OQ(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=OQ(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),NQ(e,this,s)}};var MQ=function(e){return function(){return e}},DQ=_Q?function(e,t){return _Q(e,"toString",{configurable:!0,enumerable:!1,value:MQ(t),writable:!0})}:RQ,UQ=Date.now;var jQ=function(e){var t=0,r=0;return function(){var n=UQ(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(DQ);var FQ=function(e,t){return jQ(LQ(e,t,RQ),e+"")};var VQ=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var zQ=function(e){return null!=e&&VQ(e.length)&&!dQ(e)},KQ=/^(?:0|[1-9]\d*)$/;var HQ=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&KQ.test(e))&&e>-1&&e%1==0&&e<t};var qQ=function(e,t,r){if(!lQ(r))return!1;var n=typeof t;return!!("number"==n?zQ(r)&&HQ(t,r.length):"string"==n&&t in r)&&xQ(r[t],e)};var WQ=function(e){return FQ((function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&qQ(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t}))};var QQ=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var GQ=function(e){return null!=e&&"object"==typeof e};var XQ=function(e){return GQ(e)&&"[object Arguments]"==uQ(e)},YQ=Object.prototype,$Q=YQ.hasOwnProperty,ZQ=YQ.propertyIsEnumerable,JQ=XQ(function(){return arguments}())?XQ:function(e){return GQ(e)&&$Q.call(e,"callee")&&!ZQ.call(e,"callee")},eG=Array.isArray;var tG=function(){return!1},rG=r((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?JW.Buffer:void 0,i=(o?o.isBuffer:void 0)||tG;e.exports=i})),nG={};nG["[object Float32Array]"]=nG["[object Float64Array]"]=nG["[object Int8Array]"]=nG["[object Int16Array]"]=nG["[object Int32Array]"]=nG["[object Uint8Array]"]=nG["[object Uint8ClampedArray]"]=nG["[object Uint16Array]"]=nG["[object Uint32Array]"]=!0,nG["[object Arguments]"]=nG["[object Array]"]=nG["[object ArrayBuffer]"]=nG["[object Boolean]"]=nG["[object DataView]"]=nG["[object Date]"]=nG["[object Error]"]=nG["[object Function]"]=nG["[object Map]"]=nG["[object Number]"]=nG["[object Object]"]=nG["[object RegExp]"]=nG["[object Set]"]=nG["[object String]"]=nG["[object WeakMap]"]=!1;var oG=function(e){return GQ(e)&&VQ(e.length)&&!!nG[uQ(e)]};var iG=function(e){return function(t){return e(t)}},aG=r((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&$W.process,i=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i})),sG=aG&&aG.isTypedArray,cG=sG?iG(sG):oG,uG=Object.prototype.hasOwnProperty;var lG=function(e,t){var r=eG(e),n=!r&&JQ(e),o=!r&&!n&&rG(e),i=!r&&!n&&!o&&cG(e),a=r||n||o||i,s=a?QQ(e.length,String):[],c=s.length;for(var u in e)!t&&!uG.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||HQ(u,c))||s.push(u);return s},dG=Object.prototype;var fG=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||dG)};var pG=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},hG=Object.prototype.hasOwnProperty;var gG=function(e){if(!lQ(e))return pG(e);var t=fG(e),r=[];for(var n in e)("constructor"!=n||!t&&hG.call(e,n))&&r.push(n);return r};var mG=function(e){return zQ(e)?lG(e,!0):gG(e)},vG=WQ((function(e,t,r,n){PQ(t,mG(t),e,n)}));var yG=function(e,t){return function(r){return e(t(r))}},bG=yG(Object.getPrototypeOf,Object),wG=Function.prototype,CG=Object.prototype,kG=wG.toString,EG=CG.hasOwnProperty,SG=kG.call(Object);var BG=function(e){if(!GQ(e)||"[object Object]"!=uQ(e))return!1;var t=bG(e);if(null===t)return!0;var r=EG.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&kG.call(r)==SG};var _G=function(e){if(!GQ(e))return!1;var t=uQ(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!BG(e)},AG=FQ((function(e,t){try{return NQ(e,void 0,t)}catch(e){return _G(e)?e:new Error(e)}}));var xG=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};var TG=function(e,t){return xG(t,(function(t){return e[t]}))},IG=Object.prototype,PG=IG.hasOwnProperty;var RG=function(e,t,r,n){return void 0===e||xQ(e,IG[r])&&!PG.call(n,r)?t:e},NG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var OG=function(e){return"\\"+NG[e]},LG=yG(Object.keys,Object),MG=Object.prototype.hasOwnProperty;var DG=function(e){if(!fG(e))return LG(e);var t=[];for(var r in Object(e))MG.call(e,r)&&"constructor"!=r&&t.push(r);return t};var UG=function(e){return zQ(e)?lG(e):DG(e)},jG=/<%=([\s\S]+?)%>/g;var FG=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var VG=function(e){return"symbol"==typeof e||GQ(e)&&"[object Symbol]"==uQ(e)},zG=eQ?eQ.prototype:void 0,KG=zG?zG.toString:void 0;var HG=function e(t){if("string"==typeof t)return t;if(eG(t))return xG(t,e)+"";if(VG(t))return KG?KG.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var qG=function(e){return null==e?"":HG(e)},WG=/[&<>"']/g,QG=RegExp(WG.source);var GG={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:jG,variable:"",imports:{_:{escape:function(e){return(e=qG(e))&&QG.test(e)?e.replace(WG,FG):e}}}},XG=/\b__p \+= '';/g,YG=/\b(__p \+=) '' \+/g,$G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ZG=/[()=,{}\[\]\/\s]/,JG=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eX=/($^)/,tX=/['\n\r\u2028\u2029\\]/g,rX=Object.prototype.hasOwnProperty;var nX=function(e,t,r){var n=GG.imports._.templateSettings||GG;r&&qQ(e,t,r)&&(t=void 0),e=qG(e),t=vG({},t,n,RG);var o,i,a=vG({},t.imports,n.imports,RG),s=UG(a),c=TG(a,s),u=0,l=t.interpolate||eX,d="__p += '",f=RegExp((t.escape||eX).source+"|"+l.source+"|"+(l===jG?JG:eX).source+"|"+(t.evaluate||eX).source+"|$","g"),p=rX.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(f,(function(t,r,n,a,s,c){return n||(n=a),d+=e.slice(u,c).replace(tX,OG),r&&(o=!0,d+="' +\n__e("+r+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var h=rX.call(t,"variable")&&t.variable;if(h){if(ZG.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(XG,""):d).replace(YG,"$1").replace($G,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=AG((function(){return Function(s,p+"return "+d).apply(void 0,c)}));if(g.source=d,_G(g))throw g;return g},oX="SESSION_TIMEOUT";function iX(){return(iX=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var aX,sX,cX,uX,lX,dX,fX,pX,hX,gX,mX,vX,yX,bX="undefined"!=typeof window?ov.useLayoutEffect:ov.useEffect,wX={popupContent:{tooltip:{position:"absolute",zIndex:999},modal:{position:"relative",margin:"auto"}},popupArrow:{height:"8px",width:"16px",position:"absolute",background:"transparent",color:"#FFF",zIndex:-1},overlay:{tooltip:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",zIndex:999},modal:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",display:"flex",zIndex:999}}},CX=["top left","top center","top right","right top","right center","right bottom","bottom left","bottom center","bottom right","left top","left center","left bottom"],kX=function(e,t,r,n,o){var i=o.offsetX,a=o.offsetY,s=n?8:0,c=r.split(" "),u=e.top+e.height/2,l=e.left+e.width/2,d=t.height,f=t.width,p=u-d/2,h=l-f/2,g="",m="0%",v="0%";switch(c[0]){case"top":p-=d/2+e.height/2+s,g="rotate(180deg) translateX(50%)",m="100%",v="50%";break;case"bottom":p+=d/2+e.height/2+s,g="rotate(0deg) translateY(-100%) translateX(-50%)",v="50%";break;case"left":h-=f/2+e.width/2+s,g=" rotate(90deg) translateY(50%) translateX(-25%)",v="100%",m="50%";break;case"right":h+=f/2+e.width/2+s,g="rotate(-90deg) translateY(-150%) translateX(25%)",m="50%"}switch(c[1]){case"top":p=e.top,m=e.height/2+"px";break;case"bottom":p=e.top-d+e.height,m=d-e.height/2+"px";break;case"left":h=e.left,v=e.width/2+"px";break;case"right":h=e.left-f+e.width,v=f-e.width/2+"px"}return{top:p="top"===c[0]?p-a:p+a,left:h="left"===c[0]?h-i:h+i,transform:g,arrowLeft:v,arrowTop:m}},EX=function(e,t,r,n,o,i){var a=o.offsetX,s=o.offsetY,c={arrowLeft:"0%",arrowTop:"0%",left:0,top:0,transform:"rotate(135deg)"},u=0,l=function(e){var t={top:0,left:0,width:window.innerWidth,height:window.innerHeight};if("string"==typeof e){var r=document.querySelector(e);null!==r&&(t=r.getBoundingClientRect())}return t}(i),d=Array.isArray(r)?r:[r];for((i||Array.isArray(r))&&(d=[].concat(d,CX));u<d.length;){var f={top:(c=kX(e,t,d[u],n,{offsetX:a,offsetY:s})).top,left:c.left,width:t.width,height:t.height};if(!(f.top<=l.top||f.left<=l.left||f.top+f.height>=l.top+l.height||f.left+f.width>=l.left+l.width))break;u++}return c},SX=0,BX=ov.forwardRef((function(e,t){var r=e.trigger,n=void 0===r?null:r,o=e.onOpen,i=void 0===o?function(){}:o,a=e.onClose,s=void 0===a?function(){}:a,c=e.defaultOpen,u=void 0!==c&&c,l=e.open,d=void 0===l?void 0:l,f=e.disabled,p=void 0!==f&&f,h=e.nested,g=void 0!==h&&h,m=e.closeOnDocumentClick,v=void 0===m||m,y=e.repositionOnResize,b=void 0===y||y,w=e.closeOnEscape,C=void 0===w||w,k=e.on,E=void 0===k?["click"]:k,S=e.contentStyle,B=void 0===S?{}:S,_=e.arrowStyle,A=void 0===_?{}:_,x=e.overlayStyle,T=void 0===x?{}:x,I=e.className,P=void 0===I?"":I,R=e.position,N=void 0===R?"bottom center":R,O=e.modal,L=void 0!==O&&O,M=e.lockScroll,D=void 0!==M&&M,U=e.arrow,j=void 0===U||U,F=e.offsetX,V=void 0===F?0:F,z=e.offsetY,K=void 0===z?0:z,H=e.mouseEnterDelay,q=void 0===H?100:H,W=e.mouseLeaveDelay,Q=void 0===W?100:W,G=e.keepTooltipInside,X=void 0!==G&&G,Y=e.children,$=ov.useState(d||u),Z=$[0],J=$[1],ee=ov.useRef(null),te=ov.useRef(null),re=ov.useRef(null),ne=ov.useRef(null),oe=ov.useRef("popup-"+ ++SX),ie=!!L||!n,ae=ov.useRef(0);bX((function(){return Z?(ne.current=document.activeElement,ye(),ge(),pe()):he(),function(){clearTimeout(ae.current)}}),[Z]),ov.useEffect((function(){"boolean"==typeof d&&(d?se():ce())}),[d,p]);var se=function(e){Z||p||(J(!0),setTimeout((function(){return i(e)}),0))},ce=function(e){var t;Z&&!p&&(J(!1),ie&&(null===(t=ne.current)||void 0===t||t.focus()),setTimeout((function(){return s(e)}),0))},ue=function(e){null==e||e.stopPropagation(),Z?ce(e):se(e)},le=function(e){clearTimeout(ae.current),ae.current=setTimeout((function(){return se(e)}),q)},de=function(e){null==e||e.preventDefault(),ue()},fe=function(e){clearTimeout(ae.current),ae.current=setTimeout((function(){return ce(e)}),Q)},pe=function(){ie&&D&&(document.getElementsByTagName("body")[0].style.overflow="hidden")},he=function(){ie&&D&&(document.getElementsByTagName("body")[0].style.overflow="auto")},ge=function(){var e,t=null==te||null===(e=te.current)||void 0===e?void 0:e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),r=Array.prototype.slice.call(t)[0];null==r||r.focus()};ov.useImperativeHandle(t,(function(){return{open:function(){se()},close:function(){ce()},toggle:function(){ue()}}}));var me,ve,ye=function(){if(!ie&&Z&&(null==ee?void 0:ee.current)&&(null==ee?void 0:ee.current)&&(null==te?void 0:te.current)){var e,t,r=ee.current.getBoundingClientRect(),n=te.current.getBoundingClientRect(),o=EX(r,n,N,j,{offsetX:V,offsetY:K},X);if(te.current.style.top=o.top+window.scrollY+"px",te.current.style.left=o.left+window.scrollX+"px",j&&re.current)re.current.style.transform=o.transform,re.current.style.setProperty("-ms-transform",o.transform),re.current.style.setProperty("-webkit-transform",o.transform),re.current.style.top=(null===(e=A.top)||void 0===e?void 0:e.toString())||o.arrowTop,re.current.style.left=(null===(t=A.left)||void 0===t?void 0:t.toString())||o.arrowLeft}};me=ce,void 0===(ve=C)&&(ve=!0),ov.useEffect((function(){if(ve){var e=function(e){"Escape"===e.key&&me(e)};return document.addEventListener("keyup",e),function(){ve&&document.removeEventListener("keyup",e)}}}),[me,ve]),function(e,t){void 0===t&&(t=!0),ov.useEffect((function(){if(t){var r=function(t){if(9===t.keyCode){var r,n=null==e||null===(r=e.current)||void 0===r?void 0:r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),o=Array.prototype.slice.call(n);if(1===o.length)return void t.preventDefault();var i=o[0],a=o[o.length-1];t.shiftKey&&document.activeElement===i?(t.preventDefault(),a.focus()):document.activeElement===a&&(t.preventDefault(),i.focus())}};return document.addEventListener("keydown",r),function(){t&&document.removeEventListener("keydown",r)}}}),[e,t])}(te,Z&&ie),function(e,t){void 0===t&&(t=!0),ov.useEffect((function(){if(t){var r=function(){e()};return window.addEventListener("resize",r),function(){t&&window.removeEventListener("resize",r)}}}),[e,t])}(ye,b),function(e,t,r){void 0===r&&(r=!0),ov.useEffect((function(){if(r){var n=function(r){var n=Array.isArray(e)?e:[e],o=!1;n.forEach((function(e){e.current&&!e.current.contains(r.target)||(o=!0)})),r.stopPropagation(),o||t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),function(){r&&(document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n))}}}),[e,t,r])}(n?[te,ee]:[te],ce,v&&!g);var be,we=function(){return ov.createElement("div",Object.assign({},(e=ie?wX.popupContent.modal:wX.popupContent.tooltip,t={className:"popup-content "+(""!==P?P.split(" ").map((function(e){return e+"-content"})).join(" "):""),style:iX({},e,B,{pointerEvents:"auto"}),ref:te,onClick:function(e){e.stopPropagation()}},!L&&E.indexOf("hover")>=0&&(t.onMouseEnter=le,t.onMouseLeave=fe),t),{key:"C",role:ie?"dialog":"tooltip",id:oe.current}),j&&!ie&&ov.createElement("div",{ref:re,style:wX.popupArrow},ov.createElement("svg",{"data-testid":"arrow",className:"popup-arrow "+(""!==P?P.split(" ").map((function(e){return e+"-arrow"})).join(" "):""),viewBox:"0 0 32 16",style:iX({position:"absolute"},A)},ov.createElement("path",{d:"M16 0l16 16H0z",fill:"currentcolor"}))),Y&&"function"==typeof Y?Y(ce,Z):Y);var e,t},Ce=!(E.indexOf("hover")>=0),ke=ie?wX.overlay.modal:wX.overlay.tooltip,Ee=[Ce&&ov.createElement("div",{key:"O","data-testid":"overlay","data-popup":ie?"modal":"tooltip",className:"popup-overlay "+(""!==P?P.split(" ").map((function(e){return e+"-overlay"})).join(" "):""),style:iX({},ke,T,{pointerEvents:v&&g||ie?"auto":"none"}),onClick:v&&g?ce:void 0,tabIndex:-1},ie&&we()),!ie&&we()];return ov.createElement(ov.Fragment,null,function(){for(var e={key:"T",ref:ee,"aria-describedby":oe.current},t=Array.isArray(E)?E:[E],r=0,o=t.length;r<o;r++)switch(t[r]){case"click":e.onClick=ue;break;case"right-click":e.onContextMenu=de;break;case"hover":e.onMouseEnter=le,e.onMouseLeave=fe;break;case"focus":e.onFocus=le,e.onBlur=fe}if("function"==typeof n){var i=n(Z);return!!n&&ov.cloneElement(i,e)}return!!n&&ov.cloneElement(n,e)}(),Z&&XT.createPortal(Ee,(null===(be=document.getElementById("popup-root"))&&((be=document.createElement("div")).setAttribute("id","popup-root"),document.body.appendChild(be)),be)))}));function _X(){return"function"==typeof navigator.enumerateDevices?navigator.enumerateDevices():"object"===Gg(navigator.mediaDevices)&&"function"==typeof navigator.mediaDevices.enumerateDevices?navigator.mediaDevices.enumerateDevices():new Promise((function(e,t){try{if(null==window.MediaStreamTrack||null==window.MediaStreamTrack.getSources)throw new Error;window.MediaStreamTrack.getSources((function(t){e(t.filter((function(e){return"video"===e.kind.toLowerCase()||"videoinput"===e.kind.toLowerCase()})).map((function(e){return{deviceId:null!=e.deviceId?e.deviceId:"",groupId:e.groupId,kind:"videoinput",label:e.label,toJSON:function(){return this}}})))}))}catch(e){return t(e)}}))}var AX,xX=ZT.Errors,TX=Zb.div(aX||(aX=um(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: #000;\n display: flex;\n justify-content: center;\n z-index: ",";\n ","\n"])),1e3,(function(e){return e.checkCameraMode&&"opacity: 0;"})),IX=Zb.video(sX||(sX=um(["\n width: 100%;\n ","\n"])),(function(e){return e.flipHorizontal&&"\n transform: scale(".concat(-1*e.scale,", ").concat(1*e.scale,");\n ")})),PX=Zb.div(cX||(cX=um(["\n cursor: pointer;\n text-align: center;\n width: 50px;\n\n img {\n width: 100%;\n }\n"]))),RX=Zb(PX)(uX||(uX=um(["\n z-index: ",";\n position: absolute;\n top: 20px;\n right: 20px;\n width: 20px;\n"])),1100),NX=Zb.div(lX||(lX=um(["\n z-index: ",";\n position: absolute;\n top: 40px;\n color: red;\n"])),1020),OX=Zb.div(dX||(dX=um(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: ",";\n"])),1030),LX=Zb.section(fX||(fX=um(["\n width: 280px;\n padding: 0.625rem 0 0 0;\n background: #ffffff;\n border-radius: 0.3125rem;\n box-shadow: 2px 2px 14px rgba(0, 0, 0, 0.15);\n"]))),MX=Zb.header(pX||(pX=um(["\n text-align: center;\n padding: 0.625rem 1rem;\n"]))),DX=Zb.h2(hX||(hX=um(["\n margin: 0.25rem auto;\n padding: 0;\n font-weight: 600;\n font-size: 1.2rem;\n"]))),UX=Zb.p(gX||(gX=um(["\n padding: 0 0 0.3125rem;\n margin: 0.25rem auto;\n font-size: 0.8rem;\n"]))),jX=Zb.ul(mX||(mX=um(["\n list-style: none;\n padding: 0;\n margin: 0;\n"]))),FX=Zb.li(vX||(vX=um(["\n margin: 0;\n text-align: left;\n cursor: pointer;\n font-size: 0.82rem;\n transition: all 550ms ease-in-out;\n border-top: 1px solid #dcdcdc;\n padding: 1rem 1rem;\n\n ","\n\n &:hover {\n background-color: rgba(230, 230, 230, 0.5);\n }\n"])),(function(e){return e.disabled&&Db(["pointer-events:none;opacity:0.5;"])})),VX=Zb.div(yX||(yX=um(["\n position: absolute;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.7);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 9999;\n"]))),zX=function(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return navigator.mediaDevices;var e=navigator.mozGetUserMedia||navigator.webkitGetUserMedia;return e?{getUserMedia:function(t){return new Promise((function(r,n){e.call(navigator,t,r,n)}))}}:null}();function KX(e){var t=e.checkCameraMode,r=e.frontCamera,n=e.onClose,o=e.children,i=e.onVideoPlayed,a=e.flipHorizontal,s=e.videoSettings,c=e.refVideo,u=e.onError,l=e.closeButton,d=e.videoClassName,f=e.scale,p=e.defaultCameraId,h=nN.useSDKSettings().lang,g=LN.useSDKTracking().sendEvent,m=UN.useAsset("ic_close.png"),v=lm(ov.useState(""),2),y=v[0],b=v[1],w=lm(ov.useState([]),2),C=w[0],k=w[1],E=lm(ov.useState([]),2),S=E[0],B=E[1],_=lm(ov.useState(!1),2),A=_[0],x=_[1],T=ov.useRef(!1),I=ov.useRef(!1),P=ov.useCallback((function(){try{var e;(null==c||null===(e=c.current)||void 0===e?void 0:e.srcObject)instanceof MediaStream&&(c.current.srcObject.getTracks().forEach((function(e){return e.stop()})),c.current.srcObject=null)}catch(e){}}),[c]),R=ov.useCallback(function(){var e=Yg(regeneratorRuntime.mark((function e(t){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},n=YW.isMobile?YW.isIOS?{width:{ideal:1460},aspectRatio:{ideal:window.innerHeight/window.innerWidth}}:{width:{ideal:1650},aspectRatio:{ideal:window.innerHeight/window.innerWidth}}:{height:{ideal:9999}},e.prev=2,e.next=5,zX.getUserMedia({audio:!1,video:rm(rm({},t?{deviceId:t}:{facingMode:r?"user":"environment"}),s||n)});case 5:return(o=e.sent)||(b(xX.not_supported.msg[h]),u(xX.not_supported)),e.abrupt("return",o);case 10:e.prev=10,e.t0=e.catch(2),"NotAllowedError"===e.t0.name?(b(xX.no_permission.msg[h]),u(xX.no_permission)):(t&&!S.includes(t)&&B([].concat(dm(S),[t])),x(!0),b(e.t0.message),u({code:e.t0.name||e.t0.code,message:e.t0.message}));case 13:return e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}(),[r,s,h,u,S]),N=ov.useCallback(Yg(regeneratorRuntime.mark((function e(){var t,r,n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:p,(r=c.current).oncanplaythrough=function(){r.play(),I.current=!0,b("");var e=window.innerWidth,t=window.innerHeight,n=fO.analyzeVideoAndWindowSizes(r),o=n.lostX,a=void 0===o?0:o,s=n.lostY,c=void 0===s?0:s,u=Math.min(e,Math.floor(e-2*a)),l=Math.min(t,Math.floor(t-2*c));i&&i({clientWidth:e,clientHeight:t,videoAreaWidth:u,videoAreaHeight:l,lostX:a,lostY:c})},e.next=5,R(t);case 5:(n=e.sent)&&(r.srcObject=n);case 7:case"end":return e.stop()}}),e)}))),[c,R,i,p]);ov.useEffect((function(){function e(){return(e=Yg(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_X();case 3:t=e.sent,r=t.filter((function(e){return e.deviceId&&"videoinput"===e.kind})),k(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}A&&!T.current&&(T.current=!0,function(){e.apply(this,arguments)}())}),[A]),ov.useEffect((function(){function e(){return(e=Yg(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N();case 2:return e.next=4,_X();case 4:t=e.sent,(r=t.filter((function(e){return"videoinput"===e.kind&&e.label.includes("0")}))).length>0&&(n=r[0].deviceId,P(),N(n));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var t=c.current;return!zX||YW.browserName&&["facebook"].includes(YW.browserName.toLowerCase())||YW.getUA.includes("Zalo iOS")?(b(xX.not_supported.msg[h]),u(xX.not_supported)):t&&(YW.isAndroid&&!1===r?function(){e.apply(this,arguments)}():N()),function(){P()}}),[c,h,r,N,P,u]),ov.useEffect((function(){var e=setTimeout((function(){I.current||(b(xX.camera_timeout.msg[h]),u(xX.camera_timeout))}),3e5);return function(){clearTimeout(e)}}),[h,u]);var O=ov.useCallback((function(){P(),n&&n(),g({tag:"result",event:"user_activity.cancel",log:{}})}),[n,P,g]);return ov.createElement(TX,{checkCameraMode:t},A&&null!=C&&C.length?ov.createElement(VX,null,ov.createElement(OX,null,ov.createElement(LX,null,ov.createElement(MX,null,ov.createElement(DX,null,"Không thể mở camera mặc định"),S.length===C.length?ov.createElement(UX,null,"Camera đang bị sử dụng bởi ứng dụng khác, vui lòng kiểm tra lại"):ov.createElement(UX,null,"Vui lòng thử chọn camera khác trong danh sách dưới đây")),ov.createElement(jX,null,C.map((function(e,t){return ov.createElement(FX,{key:e.deviceId,onClick:function(){b(""),P(),x(!1),N(e.deviceId)},disabled:S.includes(e.deviceId)},e.label?e.label:"Camera ".concat(t+1))})))))):null,function(){if(!y||A)return null;var e=xX.no_permission.msg[h];return y===e&&YW.isIOS?ov.createElement(NX,null,y," ",ov.createElement("button",{onClick:function(){window.location.reload()}},{vi:"Cấp lại quyền truy cập camera",en:"Request camera permission"}[h])):ov.createElement(NX,null,y)}(),ov.createElement(IX,{ref:c,playsInline:!0,muted:!0,flipHorizontal:a,className:d,scale:f}),o,l?ov.cloneElement(l,{onClick:O,"data-testid":"close-camera"}):ov.createElement(RX,{onClick:O,"data-testid":"close-camera"},ov.createElement("img",{src:m,alt:""})))}KX.propTypes={checkCameraMode:Tv.bool,frontCamera:Tv.bool,onClose:Tv.func,onError:Tv.func,onVideoPlayed:Tv.func,children:Tv.node,flipHorizontal:Tv.bool,videoSettings:Tv.object,refVideo:Tv.object,closeButton:Tv.node,videoClassName:Tv.string,scale:Tv.number,defaultCameraId:Tv.string},KX.defaultProps={checkCameraMode:!1,frontCamera:!0,onClose:null,onError:function(){},onVideoPlayed:null,children:null,flipHorizontal:!1,videoSettings:null,refVideo:null,closeButton:null,videoClassName:"",scale:1,defaultCameraId:void 0};var HX,qX,WX,QX,GX,XX,YX,$X,ZX,JX,eY,tY,rY,nY,oY,iY=ew(AX||(AX=um(["\n .popup-content {\n margin: auto;\n background: #fff;\n width: 100%;\n padding: 5px;\n border: 1px solid #d7d7d7;\n max-width: 568px;\n border-radius: 10px;\n }\n\n [role=tooltip].popup-content {\n width: 200px;\n box-shadow: 0 0 3px rgba(0, 0, 0, .16);\n border-radius: 5px\n }\n\n .popup-overlay {\n background: rgba(0, 0, 0, .5);\n padding: 10px;\n }\n\n [data-popup=tooltip].popup-overlay {\n background: transparent\n }\n\n .popup-arrow {\n -webkit-filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .16));\n filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .16));\n color: #fff;\n stroke-width: 2px;\n stroke: #d7d7d7;\n stroke-dasharray: 30px;\n stroke-dashoffset: -54px;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0\n }\n"]))),aY=["open","children","overlayStyle"],sY=function(e){var t=e.open,r=e.children,n=e.overlayStyle,o=sm(e,aY);return ov.createElement(ov.Fragment,null,ov.createElement(BX,em({overlayStyle:rm(rm({},n),{},{zIndex:2e3}),closeOnDocumentClick:!1,closeOnEscape:!1,modal:!0,open:t},o),r),ov.createElement(iY,null))};sY.propTypes={open:Tv.bool,children:Tv.node,overlayStyle:Tv.shape({})},sY.defaultProps={open:!1,children:null,overlayStyle:{}};var cY,uY,lY,dY=eK.flipY,fY=eK.spin,pY=eK.splash,hY=dY.animationDuration,gY=pY.default,mY=Zb.div(HX||(HX=um(["\n ","\n ","\n"])),dY.default,fY.default),vY=(Zb.img(qX||(qX=um(["\n border-radius: 5px;\n opacity: 0.7;\n height: 38px;\n"]))),Zb.div(WX||(WX=um(["\n cursor: pointer;\n text-align: center;\n width: ","px;\n\n img {\n width: 100%;\n }\n\n z-index: ",";\n position: fixed;\n\n ","\n"])),60,1020,YW.isMobile?Db(["top:",";"],(function(e){return e.y})):Db(["bottom:","px;"],10))),yY=Zb.div(QX||(QX=um(["\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n margin: auto;\n width: ","px;\n height: ","px;\n\n img {\n width: 100%;\n }\n\n z-index: ",";\n"])),80,80,1020),bY=Zb.div(GX||(GX=um(["\n color: #fff;\n text-align: center;\n"]))),wY=Zb.div(XX||(XX=um(["\n transform: translateZ(1000px); // to fix rotating bug on safari\n transform-style: preserve-3d;\n position: absolute;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),CY=Zb.div(YX||(YX=um(["\n display: flex;\n align-items: center;\n"]))),kY=Zb(bY)($X||($X=um(["\n font-size: ","px;\n color: #38383d;\n font-weight: 500;\n"])),YW.isMobile?16:24),EY=Zb.div(ZX||(ZX=um(["\n margin: 0 auto;\n padding: 0 5px;\n position: absolute;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.y}),1020),SY=Zb(bY)(JX||(JX=um(["\n text-align: center;\n color: ",";\n font-weight: 500;\n padding: 5px 10px;\n font-size: ","px;\n"])),(function(e){return e.theme.dangerColor}),YW.isMobile?14:16),BY=function(e){var t=e.children,r=e.y;return ov.createElement(EY,{y:r},ov.createElement(SY,null,t))},_Y=Zb(Cz)(eY||(eY=um(["\n position: absolute;\n top: 0;\n left: 0;\n"]))),AY=Zb(bY)(tY||(tY=um(["\n color: ",";\n font-weight: 500;\n padding: 5px 10px;\n font-size: ","px;\n position: absolute;\n text-align: center;\n top: ",";\n z-index: ",";\n"])),(function(e){return e.theme.dangerColor}),YW.isMobile?14:16,(function(e){return e.y}),1020),xY=Zb(bY)(rY||(rY=um(["\n font-weight: normal;\n padding: 5px 10px;\n color: #38383d;\n font-size: ","px;\n position: absolute;\n text-align: center;\n top: ",";\n z-index: ",";\n"])),YW.isMobile?14:16,(function(e){return e.y}),1020),TY=Zb.div(nY||(nY=um(["\n cursor: pointer;\n text-align: center;\n width: 50px;\n\n img {\n width: 100%;\n }\n"]))),IY=Zb(TY)(oY||(oY=um(["\n z-index: ",";\n position: absolute;\n ","\n top: 16px;\n width: 24px;\n"])),1100,YW.isMobile?"left: 16px;":"right: 16px;"),PY=ZT.Errors,RY={BTN_OK:{en:"OK",vi:"Tôi đã hiểu"},FRONT:{en:"front",vi:"trước"},BACK:{en:"back",vi:"sau"},BTN_USE_THIS_PICTURE:{en:"Use this picture",vi:"Nhìn ổn đấy!"},BTN_TRY_AGAIN:{en:"Try again",vi:"Chụp lại"},CONFIRM_POPUP_VALID_QR:{en:"QR code scanned",vi:"Đã quét được mã QR"},CONFIRM_POPUP_INVALID_QR:{en:"Could not scan QR code",vi:"Không quét được mã QR"}},NY=rm(rm({},PY),{},{id_detector_no_cards:{code:"id_detector_no_cards",msg:{en:"Take a photo of your ID card's <%= side %> side. Make sure the image of the card fits in the frame, (minimum 50% of frame).",vi:"Mặt <%= side %> CMND/CCCD cần nằm gọn trong khung hình, chiếm tối thiểu 50%."}},id_detector_validate_angle_error:{code:"id_detector_validate_angle_error",msg:{en:"Please put your ID card straight, not be oblique",vi:"Vui lòng đặt giấy tờ thẳng góc, không bị xô lệch khi chụp"}},id_detector_card_too_small:{code:"id_detector_card_too_small",msg:{en:"Please hold your ID card closer",vi:"Vui lòng đưa CMND/CCCD lại gần hơn"}},id_detector_error_incomplete:{code:"id_detector_error_incomplete",msg:{en:"Please hold your ID card further",vi:"Vui lòng đưa CMND/CCCD ra xa hơn"}},id_detector_error_front_side_no_faces:{code:"id_detector_error_front_side_no_faces",msg:{en:"Take a photo of your ID card's front side",vi:"Vui lòng chụp ảnh mặt trước của CMND/CCCD"}},id_detector_error_front_side_multiple_faces:{code:"id_detector_error_front_side_multiple_faces",msg:{en:"Please remove other items out of the frame",vi:"Vui lòng không để lẫn vật thể khác trong khung chụp hình"}},glare_detected:{code:"glare_detected",msg:{en:"Your photo ID is glare. Please adjust the shooting angle.",vi:"Ảnh chụp bị lóa sáng. Vui lòng chụp lại"}}}),OY=ZT.IDCardMessage,LY=Zb.div(cY||(cY=um(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"]))),MY=Zb.div(uY||(uY=um(["\n text-align: center;\n font-size: 1rem;\n"]))),DY=Zb.button(lY||(lY=um(["\n margin-top: 20px;\n width: 100%;\n max-width: 160px;\n height: 50px;\n background-color: ",";\n border: 0;\n outline: none;\n border-radius: 0.25rem;\n color: #fff;\n font-weight: 400;\n cursor: pointer;\n font-size: 1rem;\n"])),(function(e){return e.theme.primaryColor})),UY=function(e){var t=e.onOk,r=e.maxSessionTime,n=nN.useSDKSettings().lang;return ov.createElement(LY,null,ov.createElement(MY,null,nX(OY.TIMEOUT_INSTRUCTION[n])({x:r})),ov.createElement(DY,{onClick:t},RY.BTN_OK[n]))};UY.propTypes={onOk:Tv.func,maxSessionTime:Tv.number},UY.defaultProps={onOk:function(){},maxSessionTime:30};var jY,FY,VY,zY=ZT.IDCardMessage,KY=ov.forwardRef((function(e,t){var r,n=e.usePortraitMask,o=e.windowAndVideoInfo,i=e.refVideo,a=e.frontSide,s=e.settings,c=e.onCaptureDone,u=e.onUISpacingChange,l=e.outputEncryptionSettings,d=lm(ov.useState({}),2),f=d[0],p=d[1],h=f.yErrorMessage,g=f.yDescription,m=f.yCaptureButton,v=f.yMessage,y=UN.useAsset("ic_camera.png"),b=UN.useAsset("ic_camera_disabled.png"),w=UN.useAsset("ic_id_front.png"),C=UN.useAsset("ic_id_back.png"),k=UN.useAsset("ic_loading.png"),E=nN.useSDKSettings().lang,S=lm(ov.useState(""),2),B=S[0],_=S[1],A=lm(ov.useState(null),2),x=A[0],T=A[1],I=gM.useThemeContext(),P=lm(ov.useState(null),2),R=P[0],N=P[1],O=I.primaryColor,L=I.dangerColor,M=function(){var e=lm(ov.useState(!1),2),t=e[0],r=e[1],n=lm(ov.useState(null),2),o=n[0],i=n[1],a=lm(ov.useState({}),2),s=a[0],c=a[1];return{showPopup:ov.useCallback((function(e){var t=e.popupType,n=e.props;c(void 0===n?{}:n),i(t),r(null!==t)}),[]),popupShown:t,popupType:o,props:s}}(),D=M.showPopup,U=M.popupShown,j=M.popupType,F=ov.useRef((function(){})),V=ov.useCallback((function(e){_(null===e?"":nX(NY[e.code].msg[E])({side:a?RY.FRONT[E]:RY.BACK[E]}))}),[E,a]),z=ov.useCallback((function(){N(""),D({popupType:oX})}),[D]),K=ov.useCallback((function(e){var t=e.curTimeLeft;N(nX(zY.REMAINING_TIME[E])({x:t}))}),[E]),H=nH({shouldStart:!0,refVideo:i,cropArea:x,settings:s,onModelErrorChange:V,frontSide:a,onSessionTimeout:z,onCaptureDone:c,onAboutToTimeout:K,outputEncryptionSettings:l}),q=H.warmupDone,W=H.isProcessing,Q=H.takePictureManually,G=H.restartSession,X=H.resetIsProcessingImageBlobTaken,Y=ov.useCallback((function(){D({popupType:null}),X()}),[D,X]),$=ov.useCallback(Yg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y(),e.next=3,G();case 3:case"end":return e.stop()}}),e)}))),[G,Y]);F.current=$,ov.useEffect((function(){if(o){var e,t,r,i,a,s,c,l,d=o.videoAreaWidth,f=o.videoAreaHeight,h=o.lostX,g=o.lostY,m=o.clientHeight;n?(s=.7*(c=f-165),r=(l=(e=g+10)+45)+20,i=l+c+70):(s=YW.isMobile?d-8:Math.floor(.7*d),c=Math.floor(Math.min(s/1.5,m-2*g-80-145)),r=(t=(l=(e=g+16)+(YW.isMobile?40:65))+c+10)+(YW.isMobile?35:25),a=YW.isMobile?t+60:e+30,i=t+158);var v=Math.floor((d-s)/2)+h;T({x:v,y:l,width:s,height:c,surroundStyle:{background:"#fff"}});var y={yTitle:e,yErrorMessage:t,yMessage:r,yDescription:a,yCaptureButton:i};p(y),u(y)}}),[o,n,u]);var Z=ov.useCallback(Yg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(""),e.next=3,Q();case 3:case"end":return e.stop()}}),e)}))),[Q]);ov.useImperativeHandle(t,(function(){return{restartSession:$}}),[$]);var J=!(W||null!=s&&s.disableCaptureButtonIfAlert&&B);return ov.createElement(ov.Fragment,null,!q&&ov.createElement(EV,null),W&&ov.createElement(yY,null,ov.createElement("img",{src:k,alt:"",className:"spin"})),x&&ov.createElement(_D,{x:"".concat(x.x,"px"),y:"".concat(x.y,"px"),width:"".concat(x.width,"px"),height:"".concat(x.height,"px"),surroundStyle:x.surroundStyle},ov.createElement(_Y,{strokeStyles:(r={},Jg(r,wz.DEFAULT,{fill:"none",strokeWidth:5,stroke:O}),Jg(r,wz.ERROR,{fill:"none",strokeWidth:5,stroke:O}),r),paddingStyle:{fill:"#fff"},strokeWidth:5,errorColor:L,width:x.width,height:x.height,type:B?wz.ERROR:wz.DEFAULT})),B&&ov.createElement(BY,{y:"".concat(h,"px")},B),ov.createElement(xY,{y:"".concat(g,"px")},YW.isMobile&&ov.createElement("div",null,ov.createElement("img",{src:a?w:C,width:70,height:45,alt:""})),"Đặt CMND/CCCD của bạn vào giữa khung. Hình ảnh rõ ràng, không bị chói, mờ & cắt góc."),ov.createElement(vY,{onClick:J?Z:null,y:"".concat(m,"px")},ov.createElement("img",{src:J?y:b,alt:""})),R&&ov.createElement(AY,{key:R,y:"".concat(v,"px")},R),ov.createElement(sY,{open:U},j===oX&&ov.createElement(UY,{onOk:$,maxSessionTime:null==s?void 0:s.idCardSessionTime})))}));KY.propTypes={usePortraitMask:Tv.bool,windowAndVideoInfo:Tv.shape({}),refVideo:Tv.shape({}),frontSide:Tv.bool,settings:Tv.shape({}),onCaptureDone:Tv.func,onUISpacingChange:Tv.func,outputEncryptionSettings:Tv.shape({})},KY.defaultProps={usePortraitMask:!1,windowAndVideoInfo:{},refVideo:{},frontSide:!0,settings:{},onCaptureDone:function(){},onUISpacingChange:function(){},outputEncryptionSettings:null};var HY,qY,WY,QY,GY,XY,YY,$Y,ZY,JY=Zb.button(jY||(jY=um(["\n background: #0b74e5;\n height: 44px;\n border-radius: 4px;\n border: 0;\n padding: 0 20px;\n color: #fff;\n cursor: pointer;\n font-size: 16px;\n font-weight: 500;\n width: 160px;\n"]))),e$=Zb.button(FY||(FY=um(["\n background: #fff;\n height: 44px;\n border-radius: 4px;\n border: 1px solid #0b74e5;\n padding: 0 20px;\n color: #0b74e5;\n cursor: pointer;\n font-size: 16px;\n font-weight: 500;\n width: 160px;\n &:focus {\n outline: none;\n box-shadow: none;\n }\n"]))),t$=(Zb.a(VY||(VY=um(["\n text-decoration: underline;\n font-size: 16px;\n color: #000;\n cursor: pointer;\n"]))),Zb.div(HY||(HY=um(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10px;\n"])))),r$=Zb.div(qY||(qY=um(["\n text-align: center;\n font-size: 1rem;\n color: ",";\n margin-top: 10px;\n"])),(function(e){return e.theme.dangerColor})),n$=Zb.div(WY||(WY=um(["\n margin: 20px 0;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),o$=Zb.div(QY||(QY=um(["\n margin-right: 5px;\n"]))),i$=Zb.div(GY||(GY=um(["\n margin-left: 5px;\n"]))),a$=Zb.img(XY||(XY=um(["\n ",";\n border-radius: 12px;\n border: 5px solid #1aa7ff;\n margin-top: 30px;\n ",";\n"])),!YW.isMobile&&Db(["height:","px;"],(function(e){return e.calHeight-300})),(function(e){return e.calHeight>0&&YW.isMobile&&Db(["width:","px;height:","px;border:none;border-radius:8px;"],window.innerWidth-30,e.calHeight)})),s$=Zb.div(YY||(YY=um(["\n font-size: ","px;\n font-weight: 500;\n color: #38383d;\n"])),YW.isMobile?16:24),c$=Zb.div($Y||($Y=um(["\n margin: 8px 0;\n font-size: ","px;\n font-weight: normal;\n color: #38383d;\n text-align: center;\n"])),YW.isMobile?14:16),u$=Zb.div(ZY||(ZY=um(["\n margin-top: 20px;\n font-size: ","px;\n font-weight: normal;\n color: #38383d;\n text-align: center;\n"])),YW.isMobile?14:16),l$=function(e){var t=e.title,r=e.imageTaken,n=e.onConfirm,o=e.onTryAgain,i=e.error,a=e.hasValidQR,s=lm(ov.useState(null),2),c=s[0],u=s[1],l=nN.useSDKSettings().lang,d=UN.useAsset("ic_close.png"),f=UN.useAsset("ic_close_desktop.png"),p=lm(ov.useState(YW.isMobile?0:window.innerHeight),2),h=p[0],g=p[1],m=ov.useRef();ov.useEffect((function(){var e;return r&&(e=URL.createObjectURL(r.blob),u(e)),function(){URL.revokeObjectURL(e)}}),[r]);return ov.createElement(t$,null,null!==a&&ov.createElement(pH,{mb:"20px"},ov.createElement("div",null,ov.createElement(_q,{type:a?bq.SUCCESS:bq.WARNING},a?RY.CONFIRM_POPUP_VALID_QR[l]:RY.CONFIRM_POPUP_INVALID_QR[l]))),ov.createElement(s$,null,t),!YW.isMobile&&ov.createElement(c$,null,"Đặt CMND / CCCD của bạn vào giữa khung. Hình ảnh rõ ràng, không bị chói mờ & cắt góc."),ov.createElement(a$,{ref:m,src:c,calHeight:h,onLoad:function(){if(YW.isMobile){var e=m.current,t=e.height/e.width,r=(window.innerWidth-30)*t;g(r)}}}),ov.createElement(u$,null,"Nhìn ổn chứ? Bạn có thể tự chụp lại để có ảnh tốt hơn."),i&&ov.createElement(r$,{className:"confirm-popup-error-message"},i.msg[l]),ov.createElement(n$,null,ov.createElement(o$,null,ov.createElement(e$,{type:"button",onClick:o},RY.BTN_TRY_AGAIN[l])),ov.createElement(i$,null,ov.createElement(JY,{onClick:n},RY.BTN_USE_THIS_PICTURE[l]))),ov.createElement(IY,{onClick:o},ov.createElement("img",{src:YW.isMobile?d:f,alt:""})))};l$.propTypes={imageTaken:Tv.shape({}),error:Tv.shape({msg:Tv.shape({})}),onConfirm:Tv.func,onTryAgain:Tv.func,hasValidQR:Tv.bool,title:Tv.string},l$.defaultProps={imageTaken:null,error:null,onConfirm:function(){},onTryAgain:function(){},hasValidQR:null,title:""};var d$,f$,p$,h$,g$,m$,v$,y$,b$,w$,C$,k$,E$,S$={primaryColor:"#1AA7FF",dangerColor:"#FF424E"},B$="CONFIRM",_$=ew(d$||(d$=um(["\n"]))),A$=ZT.IDCardSide,x$=ZT.IDCardType,T$="id_card",I$="qr_code",P$=[{scannerType:T$,title:"Chụp mặt trước",cardSide:ZT.IDCardSide.FRONT,cardType:x$.VN,frontCamera:!1,enableConfirmPopup:!0},{scannerType:T$,title:"Chụp mặt sau",cardSide:ZT.IDCardSide.BACK,cardType:x$.VN,frontCamera:!1,enableConfirmPopup:!0}];function R$(e){var t=e.onClose,r=e.onError,n=e.clientSettings,o=e.onStepDone,i=e.steps,a=e.outputEncryptionSettings,s=lm(ov.useState(0),2),c=s[0],u=s[1],l=lm(ov.useState(i[c]),2),d=l[0],f=l[1],p=ov.useRef(null),h=lm(ov.useState(null),2),g=h[0],m=h[1],v=lm(ov.useState(!1),2),y=v[0],b=v[1],w=lm(ov.useState(0),2),C=w[0],k=w[1],E=ov.useRef(),S=d.scannerType,B=d.frontCamera,_=d.title,A=d.cardSide,x=d.usePortraitMask,T=d.enableConfirmPopup,I=UN.useAsset("ic_close.png"),P=UN.useAsset("ic_close_desktop.png"),R=UN.useAsset("ic_loading.png"),N=A===A$.FRONT,O=CK(),L=O.showPopup,M=O.popupShown,D=O.popupType,U=O.props,j=lm(ov.useState(!1),2),F=j[0],V=j[1],z=ov.useRef(null),K=ov.useRef(null),H=ov.useRef([]),q=Xq({clientSettings:n}).settings,W=lm(ov.useState({}),2),Q=W[0],G=W[1],X=Q.yTitle,Y=LN.useSDKTracking().sendEvent,$=ov.useCallback((function(e){m(e),b(!0)}),[]);ov.useEffect((function(){b(!1)}),[B]);var Z=ov.useCallback((function(){L({popupType:null})}),[L]),J=ov.useCallback((function(e){e>=i.length||setTimeout((function(){u(e),f(i[e])}),200)}),[i]),ee=ov.useCallback((function(){J(c+1)}),[J,c]),te=ov.useCallback(Yg(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={stepNumber:c,image:z.current,recordedVideos:null!=q&&q.enableRecording?H.current:[]},S===I$&&(t.qrScannedResult=K.current),V(!0),e.next=5,o(t);case 5:Y({tag:"result",event:"sdk_mode.read_id_card_one_side",log:{result_object:t}}),V(!1),ee();case 8:case"end":return e.stop()}}),e)}))),[q,c,o,ee,S,Y]),re=ov.useCallback((function(){Z(),S===I$?J(c):S===T$&&(Y({tag:N?"id_front":"id_back",event:"user_activity.retry",log:{}}),E.current.restartSession())}),[J,c,Z,S,N,Y]),ne=ov.useCallback((function(){Z(),Y({tag:N?"id_front":"id_back",event:"user_activity.submit",log:{}}),te()}),[te,Z,Y,N]),oe=ov.useCallback(function(){var e=Yg(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.image,n=t.error,o=t.recordedVideos,z.current=r,H.current=o,k((function(e){return e+1})),T?L({popupType:B$,props:{title:_,imageTaken:z.current,error:n}}):te();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[T,L,te,_]);return ov.createElement(Xb,{theme:S$},ov.createElement(mY,null,ov.createElement(wD,{key:B,frontCamera:B,onVideoPlayed:$,onClose:t,flipHorizontal:B,ref:p,onError:r,closeButton:ov.createElement(IY,null,ov.createElement("img",{src:YW.isMobile?I:P,alt:""}))},y&&ov.createElement(ov.Fragment,null,S===T$&&ov.createElement(KY,{key:c,ref:E,windowAndVideoInfo:g,refVideo:p,settings:q,onCaptureDone:oe,onUISpacingChange:G,frontSide:N,usePortraitMask:x,outputEncryptionSettings:a})),ov.createElement(gY,{keyForTransition:C}),ov.createElement(wY,{y:"".concat(X,"px")},ov.createElement(XW,null,ov.createElement(KW,{key:_,timeout:{enter:hY,exit:hY},classNames:"flipY",unmountOnExit:!0},ov.createElement(CY,null,ov.createElement(kY,null,_))))),F&&ov.createElement(yY,null,ov.createElement("img",{src:R,alt:"",className:"spin"}))),ov.createElement(oV,{open:M,overlayStyle:{padding:0},contentStyle:{maxWidth:"none",width:"100%",height:"100%",borderRadius:0}},D===B$&&ov.createElement(l$,em({},U,{onConfirm:ne,onTryAgain:re})))),ov.createElement(_$,null))}function N$(e){var t=e.className;return ov.createElement("svg",{className:t,width:"320",height:"320",viewBox:"0 0 320 320",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M320 0H0V320H320V0ZM160 296C235.111 296 296 235.111 296 160C296 84.8893 235.111 24 160 24C84.8893 24 24 84.8893 24 160C24 235.111 84.8893 296 160 296Z",fill:"currentColor"}))}function O$(e){var t=e.isActive;return ov.createElement("svg",{width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("g",{opacity:t?1:.3},ov.createElement("rect",{x:"0.5",width:"44",height:"44",rx:"8",fill:"url(#paint0_linear_1680_23125)"}),ov.createElement("g",{clipPath:"url(#clip0_1680_23125)"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 12C16.9772 12 12.5 16.4772 12.5 22C12.5 27.5228 16.9772 32 22.5 32C28.0228 32 32.5 27.5228 32.5 22C32.5 16.4772 28.0228 12 22.5 12ZM10.5 22C10.5 15.3726 15.8726 10 22.5 10C29.1274 10 34.5 15.3726 34.5 22C34.5 28.6274 29.1274 34 22.5 34C15.8726 34 10.5 28.6274 10.5 22Z",fill:"white"}),ov.createElement("path",{d:"M18.5 19.5C18.5 20.3284 17.8284 21 17 21C16.1716 21 15.5 20.3284 15.5 19.5C15.5 18.6716 16.1716 18 17 18C17.8284 18 18.5 18.6716 18.5 19.5Z",fill:"white"}),ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 27C12.5 26.4477 12.9477 26 13.5 26H19C19.5523 26 20 26.4477 20 27C20 27.5523 19.5523 28 19 28H13.5C12.9477 28 12.5 27.5523 12.5 27Z",fill:"white"}))),ov.createElement("defs",null,ov.createElement("linearGradient",{id:"paint0_linear_1680_23125",x1:"22.5",y1:"0",x2:"22.5",y2:"44",gradientUnits:"userSpaceOnUse"},ov.createElement("stop",{stopColor:"#1797FF"}),ov.createElement("stop",{offset:"1",stopColor:"#7DD8FF"})),ov.createElement("clipPath",{id:"clip0_1680_23125"},ov.createElement("rect",{width:"24",height:"24",fill:"white",transform:"translate(10.5 10)"}))))}function L$(e){var t=e.isActive;return ov.createElement("svg",{width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("g",{opacity:t?1:.3},ov.createElement("rect",{width:"44",height:"44",rx:"8",transform:"matrix(-1 0 0 1 44.5 0)",fill:"url(#paint0_linear_1680_23314)"}),ov.createElement("g",{clipPath:"url(#clip0_1680_23314)"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 12C28.0228 12 32.5 16.4772 32.5 22C32.5 27.5228 28.0228 32 22.5 32C16.9772 32 12.5 27.5228 12.5 22C12.5 16.4772 16.9772 12 22.5 12ZM34.5 22C34.5 15.3726 29.1274 10 22.5 10C15.8726 10 10.5 15.3726 10.5 22C10.5 28.6274 15.8726 34 22.5 34C29.1274 34 34.5 28.6274 34.5 22Z",fill:"white"}),ov.createElement("path",{d:"M26.5 19.5C26.5 20.3284 27.1716 21 28 21C28.8284 21 29.5 20.3284 29.5 19.5C29.5 18.6716 28.8284 18 28 18C27.1716 18 26.5 18.6716 26.5 19.5Z",fill:"white"}),ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5 27C32.5 26.4477 32.0523 26 31.5 26H26C25.4477 26 25 26.4477 25 27C25 27.5523 25.4477 28 26 28H31.5C32.0523 28 32.5 27.5523 32.5 27Z",fill:"white"}))),ov.createElement("defs",null,ov.createElement("linearGradient",{id:"paint0_linear_1680_23314",x1:"22",y1:"0",x2:"22",y2:"44",gradientUnits:"userSpaceOnUse"},ov.createElement("stop",{stopColor:"#1797FF"}),ov.createElement("stop",{offset:"1",stopColor:"#7DD8FF"})),ov.createElement("clipPath",{id:"clip0_1680_23314"},ov.createElement("rect",{width:"24",height:"24",fill:"white",transform:"matrix(-1 0 0 1 34.5 10)"}))))}function M$(e){var t=e.isActive;return ov.createElement("svg",{width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("g",{opacity:t?1:.3},ov.createElement("rect",{x:"0.5",width:"44",height:"44",rx:"8",fill:"url(#paint0_linear_1680_23117)"}),ov.createElement("g",{clipPath:"url(#clip0_1680_23117)"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 12C28.0228 12 32.5 16.4772 32.5 22C32.5 27.5228 28.0228 32 22.5 32C16.9772 32 12.5 27.5228 12.5 22C12.5 16.4772 16.9772 12 22.5 12ZM34.5 22C34.5 15.3726 29.1274 10 22.5 10C15.8726 10 10.5 15.3726 10.5 22C10.5 28.6274 15.8726 34 22.5 34C29.1274 34 34.5 28.6274 34.5 22Z",fill:"white"}),ov.createElement("path",{d:"M25.5 16.5C25.5 17.3284 26.1716 18 27 18C27.8284 18 28.5 17.3284 28.5 16.5C28.5 15.6716 27.8284 15 27 15C26.1716 15 25.5 15.6716 25.5 16.5Z",fill:"white"}),ov.createElement("path",{d:"M16.5 16.5C16.5 17.3284 17.1716 18 18 18C18.8284 18 19.5 17.3284 19.5 16.5C19.5 15.6716 18.8284 15 18 15C17.1716 15 16.5 15.6716 16.5 16.5Z",fill:"white"}),ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.5 22C26.5 21.4477 26.0224 21 25.4333 21H19.5667C18.9776 21 18.5 21.4477 18.5 22C18.5 22.5523 18.9776 23 19.5667 23H25.4333C26.0224 23 26.5 22.5523 26.5 22Z",fill:"white"}))),ov.createElement("defs",null,ov.createElement("linearGradient",{id:"paint0_linear_1680_23117",x1:"22.5",y1:"0",x2:"22.5",y2:"44",gradientUnits:"userSpaceOnUse"},ov.createElement("stop",{stopColor:"#1797FF"}),ov.createElement("stop",{offset:"1",stopColor:"#7DD8FF"})),ov.createElement("clipPath",{id:"clip0_1680_23117"},ov.createElement("rect",{width:"24",height:"24",fill:"white",transform:"matrix(-1 0 0 1 34.5 10)"}))))}function D$(e){var t=e.isActive;return ov.createElement("svg",{width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ov.createElement("g",{opacity:t?1:.3},ov.createElement("rect",{x:"0.5",width:"44",height:"44",rx:"8",fill:"url(#paint0_linear_1680_23140)"}),ov.createElement("g",{clipPath:"url(#clip0_1680_23140)"},ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 12C28.0228 12 32.5 16.4772 32.5 22C32.5 27.5228 28.0228 32 22.5 32C16.9772 32 12.5 27.5228 12.5 22C12.5 16.4772 16.9772 12 22.5 12ZM34.5 22C34.5 15.3726 29.1274 10 22.5 10C15.8726 10 10.5 15.3726 10.5 22C10.5 28.6274 15.8726 34 22.5 34C29.1274 34 34.5 28.6274 34.5 22Z",fill:"white"}),ov.createElement("path",{d:"M25.5 18.5C25.5 19.3284 26.1716 20 27 20C27.8284 20 28.5 19.3284 28.5 18.5C28.5 17.6716 27.8284 17 27 17C26.1716 17 25.5 17.6716 25.5 18.5Z",fill:"white"}),ov.createElement("path",{d:"M16.5 18.5C16.5 19.3284 17.1716 20 18 20C18.8284 20 19.5 19.3284 19.5 18.5C19.5 17.6716 18.8284 17 18 17C17.1716 17 16.5 17.6716 16.5 18.5Z",fill:"white"}),ov.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.5 26C26.5 25.4477 26.0224 25 25.4333 25H19.5667C18.9776 25 18.5 25.4477 18.5 26C18.5 26.5523 18.9776 27 19.5667 27H25.4333C26.0224 27 26.5 26.5523 26.5 26Z",fill:"white"}))),ov.createElement("defs",null,ov.createElement("linearGradient",{id:"paint0_linear_1680_23140",x1:"22.5",y1:"0",x2:"22.5",y2:"44",gradientUnits:"userSpaceOnUse"},ov.createElement("stop",{stopColor:"#1797FF"}),ov.createElement("stop",{offset:"1",stopColor:"#7DD8FF"})),ov.createElement("clipPath",{id:"clip0_1680_23140"},ov.createElement("rect",{width:"24",height:"24",fill:"white",transform:"matrix(-1 0 0 1 34.5 10)"}))))}R$.propTypes={onClose:Tv.func,onError:Tv.func,clientSettings:Tv.shape({}),detectIdCard:Tv.func,onStepDone:Tv.func,steps:Tv.arrayOf(Tv.shape({})),outputEncryptionSettings:Tv.shape({})},R$.defaultProps={onClose:function(){},onError:function(){},clientSettings:{},detectIdCard:function(){return Promise.resolve({card_label:""})},onStepDone:function(){},steps:P$,outputEncryptionSettings:null},N$.propTypes={className:Tv.string},N$.defaultProps={className:""},O$.propTypes={isActive:Tv.bool},O$.defaultProps={isActive:!0},L$.propTypes={isActive:Tv.bool},L$.defaultProps={isActive:!0},M$.propTypes={isActive:Tv.bool},M$.defaultProps={isActive:!0},D$.propTypes={isActive:Tv.bool},D$.defaultProps={isActive:!0};var U$=XV.Camera,j$=xW.Text,F$=xW.FaceDetectionError,V$=xW.FaceVerificationInstructions,z$=xW.FaceVerificationStepsWrapper,K$=xW.StepItem,H$=xW.BottomButtonsOverlay,q$=xW.Button,W$=xW.CountDownOverlay,Q$=xW.CountdownTime,G$=Zb(qF)(f$||(f$=um(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"]))),X$=Zb(N$)(p$||(p$=um(["\n width: 100%;\n height: 100%;\n vertical-align: middle;\n margin: 0;\n color: ",";\n"])),(function(e){var t=e.color;return null!=t?t:"rgba(0, 0, 0, 0.6)"})),Y$=Zb(V$)(h$||(h$=um(["\n font-size: 18px;\n color: #38383d;\n text-shadow: none;\n font-weight: 600;\n"]))),$$=Zb(F$)(g$||(g$=um(["\n color: #ff424e;\n background-color: unset;\n"]))),Z$=Zb(Q$)(m$||(m$=um(["\n background-color: unset;\n color: #ff424e;\n font-size: 18px;\n"]))),J$=Zb(K$)(v$||(v$=um(["\n /* border-color: #1aa7ff;\n color: #1aa7ff; */\n width: 44px;\n height: 44px;\n opacity: 1;\n img {\n border-radius: 8px;\n width: 44px;\n }\n"]))),eZ=Zb(q$)(y$||(y$=um(["\n z-index: ",";\n position: absolute;\n top: 20px;\n left: 20px;\n width: 12px;\n"])),1100),tZ=Zb(j$)(b$||(b$=um(["\n position: absolute;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n text-align: center;\n padding: 0 1.75rem;\n color: #38383d;\n\n ","\n"])),(function(e){var t=e.top;return t&&Db(["top:","px;"],t)})),rZ=Zb.span(w$||(w$=um(["\n position: absolute;\n bottom: 5px;\n color: #38383d;\n font-size: 14px;\n z-index: ",";\n"])),1020),nZ=tw(["from{opacity:1;}to{opacity:0;}"]),oZ=Zb.div(C$||(C$=um(["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n z-index: -1;\n background: rgba(255, 255, 255, 0.3);\n animation: "," 1s infinite;\n"])),nZ),iZ=YW.isMobile?{width:640}:null,aZ={background:"#fff",opacity:1};function sZ(e){var t,r,n=e.apiCheck,o=e.mode,i=e.onLivenessDetectionDone,a=e.onClose,s=e.onError,c=e.captureFrameSettings,u=e.onFramesCaptured,l=e.frontCamera,d=e.customStepTimeConstraints,f=e.onProcessing,p=e.customErrors,h=e.customMessages,g=e.livenessSettings,m=e.customInstructions,v=e.apiCredentials,y=e.title,b=e.subInstructions,w=UN.useAsset("bg_camera_mask.png"),C=UN.useAsset("bg_camera_mask_red.png"),k=UN.useAsset("ic_close_black.png"),E=lm(ov.useState({}),2),S=E[0],B=E[1],_=S.yFaceVerificationStepsWrapper,A=lm(ov.useState(""),2),x=A[0],T=A[1],I=lm(ov.useState(!1),2),P=I[0],R=I[1],N=ov.useCallback((function(e){var t=e.lostY,r=e.height,n=t+25,o=n+30;return B({yFaceDetectionError:n,yFaceVerificationStepsWrapper:o+r-45*r/350/2-8}),{y:Math.floor(o)}}),[]),O=AW({apiCheck:n,mode:o,bgCameraMask:w,bgCameraMaskRed:C,surroundStyle:aZ,onLivenessDetectionDone:i,onError:s,cropAreaDimension:N,captureFrameSettings:c,onFramesCaptured:u,livenessSettings:g,setRemainingTime:T,customStepTimeConstraints:d,onProcessing:f,customErrors:p,customMessages:h,customInstructions:m,apiCredentials:v}),L=O.countdownToTakePicture,M=O.cropArea,D=O.curStepIndex,U=O.faceDetectionError,j=O.handleTriggerPassiveMode,F=O.handleVideoPlayed,V=O.instructions,z=O.isActiveMode,K=O.refVideo,H=O.showCountdown,q=O.steps,W=O.videoPlayed,Q=O.isFirstValidFrameFound,G=O.warmupDone,X=O.activeCapturing,Y=ov.useRef(0);if(window.innerHeight-((null===(t=M.current)||void 0===t?void 0:t.y)+(null===(r=M.current)||void 0===r?void 0:r.height))-110<60){var $,Z=window.innerHeight-(null===($=M.current)||void 0===$?void 0:$.y)-170;Y.current=(M.current.height-Z)/2,M.current.width=Z,M.current.height=Z}ov.useEffect((function(){Promise.all(q.map((function(e){return t=e.directionIcon,new Promise((function(e){var r=new Image;r.onload=e,r.onerror=e,r.src=t}));var t}))).then((function(){return R(!0)}))}),[q]);var J=ov.useRef(!1);ov.useEffect((function(){Q||(J.current=!1)}),[Q]),U&&U.code.includes("terminated")&&(J.current=!0);var ee=ov.useCallback((function(e,t){switch(e){case"left":return ov.createElement(O$,{isActive:t});case"right":return ov.createElement(L$,{isActive:t});case"up":return ov.createElement(M$,{isActive:t});case"frontal":return ov.createElement(D$,{isActive:t});default:return null}}),[]);return ov.createElement(wD,{frontCamera:l,onVideoPlayed:F,flipHorizontal:l,ref:K,videoSettings:iZ,onError:s,onClose:a,closeButton:ov.createElement(eZ,null,ov.createElement("img",{src:k,alt:""}))},!G&&ov.createElement(EV,null),W&&P?ov.createElement(ov.Fragment,null,ov.createElement(tZ,{top:20},"".concat(y)),ov.createElement($$,{top:_-Y.current,className:"face-detection-error",error:U}),x&&ov.createElement(Z$,{top:M.current.y-15},x),M.current?ov.createElement(_D,{x:"".concat(M.current.x+Y.current,"px"),y:"".concat(M.current.y,"px"),width:"".concat(M.current.width,"px"),height:"".concat(M.current.height,"px"),surroundStyle:M.current.surroundStyle},ov.createElement(X$,{color:"#fff"}),ov.createElement(G$,{progress:D/q.length*100,hasError:!!U,showDashedRing:!1,showOutsideRing:!1,insideRingWidth:5,errorRingWidth:0,insideRingStrokeDash:"none",insideRingColor:"#1AA7FF"}),H?ov.createElement(W$,null,L):null,z&&X?ov.createElement(oZ,null):null):null,z?ov.createElement(ov.Fragment,null,Q&&!J.current&&ov.createElement(z$,{bottom:60},q.map((function(e,t){var r=e.name,n=e.image.objUrl;return ov.createElement(J$,{key:r,className:"step-item"},n?ov.createElement("img",{src:n,alt:""}):ee(e.name,D>=t))}))),V?ov.createElement(ov.Fragment,null,ov.createElement(Y$,{bottom:30,className:"instructions"},"".concat(V)),ov.createElement(rZ,null,b)):null):ov.createElement(ov.Fragment,null,U?null:ov.createElement(H$,null,ov.createElement(q$,{onClick:j},ov.createElement(U$,null))))):null)}function cZ(e){return ov.createElement(rz,em({},e,{livenessComponent:sZ}))}sZ.propTypes={apiCheck:Tv.bool,mode:Tv.string,onLivenessDetectionDone:Tv.func,onClose:Tv.func,onError:Tv.func,captureFrameSettings:Tv.shape({}),onFramesCaptured:Tv.func,frontCamera:Tv.bool,customStepTimeConstraints:Tv.shape({}),onProcessing:Tv.func,customErrors:Tv.shape({}),customMessages:Tv.shape({}),livenessSettings:Tv.shape({}),customInstructions:Tv.shape({}),apiCredentials:Tv.shape({accessKey:Tv.string,secretKey:Tv.string,apiUrl:Tv.string}),title:Tv.string,subInstructions:Tv.string},sZ.defaultProps={apiCheck:!1,mode:null,onLivenessDetectionDone:null,onClose:null,onError:function(){},captureFrameSettings:{enable:!1,framesIntervalTime:180,framesBatchLength:0},onFramesCaptured:function(){},frontCamera:!0,customStepTimeConstraints:(k$={},Jg(k$,ZT.FaceDirection.UP,{delayTime:0}),Jg(k$,ZT.FaceDirection.LEFT,{delayTime:0}),Jg(k$,ZT.FaceDirection.RIGHT,{delayTime:0}),Jg(k$,ZT.FaceDirection.FRONTAL,{delayTime:2e3}),k$),onProcessing:function(){},customErrors:{no_face:{code:"no_face",msg:{en:"Face is not detected.",vi:"Không nhận diện được khuôn mặt."}},multiple_faces:{code:"multiple_faces",msg:{en:"There are more than one face in the frame",vi:"Nhiều khuôn mặt xuất hiện trong khung hình"}},face_too_small:{code:"face_too_small",msg:{en:"The face is too small",vi:"Khuôn mặt quá nhỏ"}},face_too_large:{code:"face_too_large",msg:{en:"The face is too big",vi:"Khuôn mặt quá lớn"}},face_out_of_box:{code:"face_out_of_box",msg:{en:"Face is out of box",vi:"Khuôn mặt nằm ngoài khung ảnh"}},liveness_terminated_time_out:{code:"liveness_terminated_time_out",msg:{en:"The face verification need to be completed in <%= x %> seconds.\nPlease try again.",vi:"Xác thực khuôn mặt cần thực hiện trong <%= x %> giây.\nVui lòng thử lại."}}},customMessages:{REMAIN_TIME:{en:"Remaining time: <%= x %> seconds",vi:"Thời gian còn lại: <%= x %>"}},customInstructions:(E$={},Jg(E$,ZT.FaceDirection.LEFT,{en:"Please turn to the left",vi:"Xoay trái"}),Jg(E$,ZT.FaceDirection.RIGHT,{en:"Please turn to the right",vi:"Xoay phải"}),Jg(E$,ZT.FaceDirection.UP,{en:"Please look up",vi:"Ngẩng lên"}),Jg(E$,ZT.FaceDirection.FRONTAL,{en:"Please look straight to camera",vi:"Nhìn thẳng"}),E$),livenessSettings:null,apiCredentials:{accessKey:"5767c20d-87aa-4cad-8dbb-f5429f76c34b",secretKey:"c1446919-e60a-4575-a05d-304318212a1b",apiUrl:"https://tv-testing.trustingsocial.com/api"},title:"Chụp khuôn mặt",subInstructions:"Xin giữ khuôn mặt nằm trong khung ảnh"};var uZ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lZ=/^\w*$/;var dZ=function(e,t){if(eG(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!VG(e))||(lZ.test(e)||!uZ.test(e)||null!=t&&e in Object(t))},fZ=BQ(Object,"create");var pZ=function(){this.__data__=fZ?fZ(null):{},this.size=0};var hZ=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},gZ=Object.prototype.hasOwnProperty;var mZ=function(e){var t=this.__data__;if(fZ){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return gZ.call(t,e)?t[e]:void 0},vZ=Object.prototype.hasOwnProperty;var yZ=function(e){var t=this.__data__;return fZ?void 0!==t[e]:vZ.call(t,e)};var bZ=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fZ&&void 0===t?"__lodash_hash_undefined__":t,this};function wZ(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wZ.prototype.clear=pZ,wZ.prototype.delete=hZ,wZ.prototype.get=mZ,wZ.prototype.has=yZ,wZ.prototype.set=bZ;var CZ=wZ;var kZ=function(){this.__data__=[],this.size=0};var EZ=function(e,t){for(var r=e.length;r--;)if(xQ(e[r][0],t))return r;return-1},SZ=Array.prototype.splice;var BZ=function(e){var t=this.__data__,r=EZ(t,e);return!(r<0)&&(r==t.length-1?t.pop():SZ.call(t,r,1),--this.size,!0)};var _Z=function(e){var t=this.__data__,r=EZ(t,e);return r<0?void 0:t[r][1]};var AZ=function(e){return EZ(this.__data__,e)>-1};var xZ=function(e,t){var r=this.__data__,n=EZ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function TZ(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}TZ.prototype.clear=kZ,TZ.prototype.delete=BZ,TZ.prototype.get=_Z,TZ.prototype.has=AZ,TZ.prototype.set=xZ;var IZ=TZ,PZ=BQ(JW,"Map");var RZ=function(){this.size=0,this.__data__={hash:new CZ,map:new(PZ||IZ),string:new CZ}};var NZ=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var OZ=function(e,t){var r=e.__data__;return NZ(t)?r["string"==typeof t?"string":"hash"]:r.map};var LZ=function(e){var t=OZ(this,e).delete(e);return this.size-=t?1:0,t};var MZ=function(e){return OZ(this,e).get(e)};var DZ=function(e){return OZ(this,e).has(e)};var UZ=function(e,t){var r=OZ(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function jZ(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}jZ.prototype.clear=RZ,jZ.prototype.delete=LZ,jZ.prototype.get=MZ,jZ.prototype.has=DZ,jZ.prototype.set=UZ;var FZ=jZ;function VZ(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(VZ.Cache||FZ),r}VZ.Cache=FZ;var zZ=VZ;var KZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,HZ=/\\(\\)?/g,qZ=function(e){var t=zZ(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(KZ,(function(e,r,n,o){t.push(n?o.replace(HZ,"$1"):r||e)})),t}));var WZ=function(e,t){return eG(e)?e:dZ(e,t)?[e]:qZ(qG(e))};var QZ=function(e){if("string"==typeof e||VG(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var GZ=function(e,t){for(var r=0,n=(t=WZ(t,e)).length;null!=e&&r<n;)e=e[QZ(t[r++])];return r&&r==n?e:void 0};var XZ=function(e,t,r){var n=null==e?void 0:GZ(e,t);return void 0===n?r:n},YZ=["tracking","clientSettings"];function $Z(e){var t=e.tracking,r=e.clientSettings,n=sm(e,YZ),o=ov.useMemo((function(){return XZ(r,"data.settings.sdk_settings.server_log_settings.enable",null==t?void 0:t.enable)}),[r,t]);return ov.createElement(LN.SDKTrackingProvider,{value:{tracking:rm(rm({},t),{},{enable:o})}},ov.createElement(R$,em({},n,{clientSettings:r})))}$Z.propTypes={tracking:Tv.shape({}),clientSettings:Tv.shape({})},$Z.defaultProps={tracking:void 0,clientSettings:void 0};var ZZ=ZT.Errors,JZ=function(e){var t=e.onClose,r=e.onError,n=e.detectIdCard,o=e.steps,i=e.onStepDone,a=e.apiCredentials,s=e.tracking,c=lm(ov.useState(null),2),u=c[0],l=c[1],d=KL.useApiClient({apiCredentials:a,tracking:s}).apiClient,f=ov.useRef(""),p=ov.useRef("");ov.useEffect((function(){function e(){return(e=Yg(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.clientSettings();case 2:t=e.sent,l(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[d]);var h=ov.useCallback(function(){var e=Yg(regeneratorRuntime.mark((function e(t){var n,a,s,c,u,l,h,g;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.stepNumber,a=t.recordedVideos,s=t.qrScannedResult,c=t.image,u=o[n],l=u.cardType,h=u.cardSide,g=null,e.prev=3,e.next=6,yW({image:c,cardSide:h,frontCardId:f.current,qrImageId:p.current,onError:r,apiClient:d,cardType:l,recordedVideos:a,qrScannedResult:s});case 6:g=e.sent,h===ZT.IDCardSide.FRONT&&(f.current=g.cardInfo.image1.id),p.current=g.qrImageId,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),r(rm(rm({},ZZ.api_call_error),{},{details:e.t0}));case 14:g&&i(rm(rm({},t),{},{apiResult:g}));case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t){return e.apply(this,arguments)}}(),[d,r,o,i]);return u&&ov.createElement($Z,{tracking:s,onClose:t,onError:r,clientSettings:u,detectIdCard:n,onStepDone:h,steps:o})};JZ.propTypes={onClose:Tv.func,onError:Tv.func,detectIdCard:Tv.func,onStepDone:Tv.func,steps:Tv.arrayOf(Tv.shape({})),apiCredentials:Tv.shape({accessKey:Tv.string,secretKey:Tv.string,apiUrl:Tv.string}),tracking:Tv.shape({})},JZ.defaultProps={onClose:function(){},onError:function(){},detectIdCard:function(){return Promise.resolve({card_label:""})},onStepDone:function(){},steps:P$,apiCredentials:{accessKey:"5767c20d-87aa-4cad-8dbb-f5429f76c34b",secretKey:"c1446919-e60a-4575-a05d-304318212a1b",apiUrl:"https://tv-testing.trustingsocial.com/api"},tracking:void 0};var eJ=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&om(e,t)}(o,wM);var t,r,n=(t=o,r=im(),function(){var e,n=nm(t);if(r){var o=nm(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return cm(this,e)});function o(e){return $g(this,o),n.call(this,rm(rm({},e),{},{baseComponent:_W(),component:{LivenessDetection:cZ,ReadIDCardUIOnly:$Z,ReadIDCardWithApiCall:JZ}}))}return o}();exports.APIUtils=KL,exports.Animations=eK,exports.AntiDebugUtils=hM,exports.AssetUtils=UN,exports.AsyncUtils=FN,exports.BASE_Z_INDEX=1e3,exports.BaseTVWebSDK=wM,exports.BlurUtils=lO,exports.Button=wH,exports.ButtonLink=CH,exports.Camera=wD,exports.CameraUtils=fO,exports.CommonUtils=hO,exports.Constants=ZT,exports.CoordinateUtils=bO,exports.CropAreaOverlayWrapper=_D,exports.CryptoUtils=vM,exports.FaceUtils=AO,exports.GlareUtils=NL,exports.HashUtils=_N,exports.HighlightResult=_q,exports.HighlightResultType=bq,exports.Icons=XV,exports.ImageUtils=TL,exports.LivenessDetection=rz,exports.LivenessDetectionComponents=xW,exports.LoadResourceUtils=ZL,exports.LocalStorageUtils=kN,exports.MobileDetect=ZM,exports.ModelUtils=pM,exports.NativeCamera=QV,exports.PlacementArea=BD,exports.Popup=oV,exports.PredictionUtils=PO,exports.ProgressCircle=qF,exports.RatioWrapper=jH,exports.ReadIDCardUIOnly=iW,exports.ReadIDCardWithApiCall=kW,exports.RectangleMask=Cz,exports.RectangleMaskType=wz,exports.SDK=eJ,exports.ScannerType=eW,exports.SettingsContext=nN,exports.Spacing=pH,exports.ThemeUtils=gM,exports.TimeUtils=bN,exports.TrackingContext=LN,exports.UserAgentUtils=mN,exports.WarmupPopup=EV,exports.checkCamera=qV,exports.defaultClientSettings=Gq,exports.defaultReadIDCardSteps=P$,exports.getBaseSDKComponent=_W,exports.getCustomUrlsBySettings=ZR,exports.getQrScannerWorkerPath=yM,exports.handleApiCheckReadIdCard=yW,exports.preloadEKYCResources=SW,exports.readIdCardFromImage=BW,exports.readQRCodeFromImage=dq,exports.useLivenessDetection=AW,exports.useMainProcessQRCodeScanner=fq,exports.useMainProcessReadIdCard=nH,exports.useSettingsReadIdCard=Xq,exports.useShowPopup=CK,exports.warmUpQRCodeScanner=$H,exports.warmUpReadIdCard=YK,exports.warmupSelfieActive=bF;