@regulaforensics/vp-frontend-document-components 2.4.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/main.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see main.js.LICENSE.txt */
2
- var e={"../../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js":function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}(function(){var e;function t(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var o="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var i,a=function(e){e=["object"==("undefined"==typeof globalThis?"undefined":r(globalThis))&&globalThis,e,"object"==("undefined"==typeof window?"undefined":r(window))&&window,"object"==("undefined"==typeof self?"undefined":r(self))&&self,"object"==(void 0===n.g?"undefined":r(n.g))&&n.g];for(var t=0;t<e.length;++t){var o=e[t];if(o&&o.Math==Math)return o}throw Error("Cannot find global object")}(this);function l(e,t){if(t)e:{var n=a;e=e.split(".");for(var r=0;r<e.length-1;r++){var i=e[r];if(!(i in n))break e;n=n[i]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&o(n,e,{configurable:!0,writable:!0,value:t})}}function s(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function u(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:t(e)}}function c(e){if(!(e instanceof Array)){e=u(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}if(l("Symbol",(function(e){function t(e,t){this.g=e,o(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n=0;return function e(r){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t("jscomp_symbol_"+(r||"")+"_"+n++,r)}})),l("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),r=0;r<n.length;r++){var i=a[n[r]];"function"==typeof i&&"function"!=typeof i.prototype[e]&&o(i.prototype,e,{configurable:!0,writable:!0,value:function(){return s(t(this))}})}return e})),"function"==typeof Object.setPrototypeOf)i=Object.setPrototypeOf;else{var f;e:{var d={};try{d.__proto__={a:!0},f=d.a;break e}catch(R){}f=!1}i=f?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var p=i;function h(){this.u=!1,this.h=null,this.Ka=void 0,this.g=1,this.da=0,this.i=null}function m(e){if(e.u)throw new TypeError("Generator is already running");e.u=!0}function v(e,t){e.i={Wa:t,$a:!0},e.g=e.da}function y(e,t){return e.g=3,{value:t}}function g(e){this.g=new h,this.h=e}function b(e,t,n,r){try{var o=t.call(e.g.h,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return e.g.u=!1,o;var i=o.value}catch(a){return e.g.h=null,v(e.g,a),w(e)}return e.g.h=null,r.call(e.g,i),w(e)}function w(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.u=!1,{value:t.value,done:!1}}catch(j){e.g.Ka=void 0,v(e.g,j)}if(e.g.u=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.$a)throw t.Wa;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function _(e){this.next=function(t){return m(e.g),e.g.h?t=b(e,e.g.h.next,t,e.g.O):(e.g.O(t),t=w(e)),t},this.throw=function(t){return m(e.g),e.g.h?t=b(e,e.g.h.throw,t,e.g.O):(v(e.g,t),t=w(e)),t},this.return=function(t){return function(e,t){m(e.g);var n=e.g.h;return n?b(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),w(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function S(e,t){return t=new _(new g(t)),p&&e.prototype&&p(t,e.prototype),t}h.prototype.O=function(e){this.Ka=e},h.prototype.return=function(e){this.i={return:e},this.g=this.da},Array.from||(Array.from=function(e){return[].slice.call(e)}),Object.assign||(Object.assign=function(e){for(var t,n=[].slice.call(arguments,1),r=0;r<n.length;r++)if(t=n[r])for(var o=e,i=Object.keys(t),a=0;a<i.length;a++){var l=i[a];o[l]=t[l]}return e});var E=setTimeout;function C(){}function k(e){if(!(this instanceof k))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this.N=0,this.Ea=!1,this.I=void 0,this.ba=[],P(e,this)}function N(e,t){for(;3===e.N;)e=e.I;0===e.N?e.ba.push(t):(e.Ea=!0,z((function(){var n=1===e.N?t.bb:t.cb;if(null===n)(1===e.N?O:x)(t.promise,e.I);else{try{var r=n(e.I)}catch(F){return void x(t.promise,F)}O(t.promise,r)}})))}function O(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===r(t)||"function"==typeof t)){var n=t.then;if(t instanceof k)return e.N=3,e.I=t,void A(e);if("function"==typeof n)return void P(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e.N=1,e.I=t,A(e)}catch(M){x(e,M)}}function x(e,t){e.N=2,e.I=t,A(e)}function A(e){2===e.N&&0===e.ba.length&&z((function(){e.Ea||"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e.I)}));for(var t=0,n=e.ba.length;t<n;t++)N(e,e.ba[t]);e.ba=null}function I(e,t,n){this.bb="function"==typeof e?e:null,this.cb="function"==typeof t?t:null,this.promise=n}function P(e,t){var n=!1;try{e((function(e){n||(n=!0,O(t,e))}),(function(e){n||(n=!0,x(t,e))}))}catch(M){n||(n=!0,x(t,M))}}function T(e){return e&&"object"===r(e)&&e.constructor===k?e:new k((function(t){t(e)}))}k.prototype.catch=function(e){return this.then(null,e)},k.prototype.then=function(e,t){var n=new this.constructor(C);return N(this,new I(e,t,n)),n},k.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))};var R,L,D,j,M,F,z="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){E(e,0)};if(!window.Promise){window.Promise=k,k.prototype.then=k.prototype.then,k.all=function(e){return new k((function(t,n){function o(e,l){try{if(l&&("object"===r(l)||"function"==typeof l)){var s=l.then;if("function"==typeof s)return void s.call(l,(function(t){o(e,t)}),n)}i[e]=l,0==--a&&t(i)}catch(u){n(u)}}if(!e||void 0===e.length)return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var a=i.length,l=0;l<i.length;l++)o(l,i[l])}))},k.race=function(e){return new k((function(t,n){if(!e||void 0===e.length)return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)T(e[r]).then(t,n)}))},k.resolve=T,k.reject=function(e){return new k((function(t,n){n(e)}))};var U=document.createTextNode(""),B=[];new MutationObserver((function(){for(var e=B.length,t=0;t<e;t++)B[t]();B.splice(0,e)})).observe(U,{characterData:!0}),z=function(e){B.push(e),U.textContent=0<U.textContent.length?"":"a"}}!function(e,t){if(!(t in e)){var o=(void 0===n.g?"undefined":r(n.g))===r(o)?window:n.g,i=0,a=String(Math.random()),l="__symbol@@"+a,s=e.getOwnPropertyNames,u=e.getOwnPropertyDescriptor,c=e.create,f=e.keys,d=e.freeze||e,p=e.defineProperty,h=e.defineProperties,m=u(e,"getOwnPropertyNames"),v=e.prototype,y=v.hasOwnProperty,g=v.propertyIsEnumerable,b=v.toString,w=function(e,t,n){y.call(e,l)||p(e,l,{enumerable:!1,configurable:!1,writable:!1,value:{}}),e[l]["@@"+t]=n},_=function(){},S=function(e){return e!=l&&!y.call(O,e)},E=function(e){return e!=l&&y.call(O,e)},C=function(e){var t=String(e);return E(t)?y.call(this,t)&&!!this[l]&&this[l]["@@"+t]:g.call(this,e)},k=function(t){return p(v,t,{enumerable:!1,configurable:!0,get:_,set:function(e){T(this,t,{enumerable:!1,configurable:!0,writable:!0,value:e}),w(this,t,!0)}}),O[t]=p(e(t),"constructor",x),d(O[t])},N=function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return k("__symbol:".concat(t||"",a,++i))},O=c(null),x={value:N},A=function(e){return O[e]},I=function(e,t,n){var r=String(t);if(E(r)){if(t=T,n.enumerable){var o=c(n);o.enumerable=!1}else o=n;t(e,r,o),w(e,r,!!n.enumerable)}else p(e,t,n);return e},P=function(e){return s(e).filter(E).map(A)};m.value=I,p(e,"defineProperty",m),m.value=P,p(e,t,m),m.value=function(e){return s(e).filter(S)},p(e,"getOwnPropertyNames",m),m.value=function(e,t){var n=P(t);return n.length?f(t).concat(n).forEach((function(n){C.call(t,n)&&I(e,n,t[n])})):h(e,t),e},p(e,"defineProperties",m),m.value=C,p(v,"propertyIsEnumerable",m),m.value=N,p(o,"Symbol",m),m.value=function(e){return(e="__symbol:".concat("__symbol:",e,a))in v?O[e]:k(e)},p(N,"for",m),m.value=function(e){if(S(e))throw new TypeError(e+" is not a symbol");if(y.call(O,e)&&("__symbol:"===(e=e.slice(10)).slice(0,10)&&(e=e.slice(10))!==a))return 0<(e=e.slice(0,e.length-a.length)).length?e:void 0},p(N,"keyFor",m),m.value=function(e,t){var n=u(e,t);return n&&E(t)&&(n.enumerable=C.call(e,t)),n},p(e,"getOwnPropertyDescriptor",m),m.value=function(e,t){return 1===arguments.length||void 0===t?c(e):function(e,t){var n=c(e);return s(t).forEach((function(e){C.call(t,e)&&I(n,e,t[e])})),n}(e,t)},p(e,"create",m),m.value=function(){var e=b.call(this);return"[object String]"===e&&E(this)?"[object Symbol]":e},p(v,"toString",m);try{if(!0!==c(p({},"__symbol:",{get:function(){return p(this,"__symbol:",{value:!0})["__symbol:"]}}))["__symbol:"])throw"IE11";var T=p}catch(R){T=function(e,t,n){var r=u(v,t);delete v[t],p(e,t,n),p(v,t,r)}}}}(Object,"getOwnPropertySymbols"),R=Object,L=Symbol,j=R.defineProperty,M=R.prototype,F=M.toString,"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach((function(e){e in L||(j(L,e,{value:L(e)}),"toStringTag"===e&&((D=R.getOwnPropertyDescriptor(M,"toString")).value=function(){var e=F.call(this),t=null==this?this:this[L.toStringTag];return null==t?e:"[object "+t+"]"},j(M,"toString",D)))})),function(e,t,n){function r(){return this}t[e]||(t[e]=function(){var t=0,n=this,o={next:function(){var e=n.length<=t;return e?{done:e}:{done:e,value:n[t++]}}};return o[e]=r,o}),n[e]||(n[e]=function(){var t=String.fromCodePoint,n=this,o=0,i=n.length,a={next:function(){var e=i<=o,r=e?"":t(n.codePointAt(o));return o+=r.length,e?{done:e}:{done:e,value:r}}};return a[e]=r,a})}(Symbol.iterator,Array.prototype,String.prototype);var H=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":H.call(this)},Object.keys=function(e){return Object.getOwnPropertyNames(e).filter((function(t){return(t=Object.getOwnPropertyDescriptor(e,t))&&t.enumerable}))},String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(String.prototype[Symbol.iterator]=function e(){var t,n=this;return S(e,(function(e){if(1==e.g&&(t=0),3!=e.g)return t<n.length?e=y(e,n[t]):(e.g=0,e=void 0),e;t++,e.g=2}))}),Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function e(){var t,n,r=this;return S(e,(function(e){if(1==e.g&&(t=[],r.forEach((function(e){t.push(e)})),n=0),3!=e.g)return n<t.length?e=y(e,t[n]):(e.g=0,e=void 0),e;n++,e.g=2}))}),Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function e(){var t,n,r=this;return S(e,(function(e){if(1==e.g&&(t=[],r.forEach((function(e,n){t.push([n,e])})),n=0),3!=e.g)return n<t.length?e=y(e,t[n]):(e.g=0,e=void 0),e;n++,e.g=2}))});var G=document.createEvent("Event");if(G.initEvent("foo",!0,!0),G.preventDefault(),!G.defaultPrevented){var V=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(V.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var W=/Trident/.test(navigator.userAgent);if(!window.Event||W&&"function"!=typeof window.Event){var Z=window.Event;if(window.Event=function(e,t){t=t||{};var n=document.createEvent("Event");return n.initEvent(e,!!t.bubbles,!!t.cancelable),n},Z){for(var K in Z)window.Event[K]=Z[K];window.Event.prototype=Z.prototype}}if((!window.CustomEvent||W&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.MouseEvent||W&&"function"!=typeof window.MouseEvent){var Y=window.MouseEvent;if(window.MouseEvent=function(e,t){t=t||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(e,!!t.bubbles,!!t.cancelable,t.view||window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),n},Y)for(var q in Y)window.MouseEvent[q]=Y[q];window.MouseEvent.prototype=Y.prototype}Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var e=(this.ownerDocument||this).querySelector("base[href]");return e&&e.href||window.location.href},configurable:!0,enumerable:!0});var Q,X,$=Element.prototype,J=null!==(Q=Object.getOwnPropertyDescriptor($,"attributes"))&&void 0!==Q?Q:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),ee=null!==(X=null==J?void 0:J.get)&&void 0!==X?X:function(){return this.attributes},te=Array.prototype.map;$.hasOwnProperty("getAttributeNames")||($.getAttributeNames=function(){return te.call(ee.call(this),(function(e){return e.name}))});var ne,re=Element.prototype;re.hasOwnProperty("matches")||(re.matches=null!==(ne=re.webkitMatchesSelector)&&void 0!==ne?ne:re.msMatchesSelector);var oe=Node.prototype.appendChild;function ie(e){(e=e.prototype).hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(n=(t=u(t)).next();!n.done;n=t.next())n=n.value,oe.call(this,"string"==typeof n?document.createTextNode(n):n)}})}ie(Document),ie(DocumentFragment),ie(Element);var ae,le,se=Node.prototype.insertBefore,ue=null!==(le=null===(ae=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===ae?void 0:ae.get)&&void 0!==le?le:function(){return this.firstChild};function ce(e){(e=e.prototype).hasOwnProperty("prepend")||Object.defineProperty(e,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];n=ue.call(this);for(var r=(t=u(t)).next();!r.done;r=t.next())r=r.value,se.call(this,"string"==typeof r?document.createTextNode(r):r,n)}})}ce(Document),ce(DocumentFragment),ce(Element);var fe,de,pe=Node.prototype.appendChild,he=Node.prototype.removeChild,me=null!==(de=null===(fe=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===fe?void 0:fe.get)&&void 0!==de?de:function(){return this.firstChild};function ve(e){(e=e.prototype).hasOwnProperty("replaceChildren")||Object.defineProperty(e,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=me.call(this));)he.call(this,n);for(n=(t=u(t)).next();!n.done;n=t.next())n=n.value,pe.call(this,"string"==typeof n?document.createTextNode(n):n)}})}ve(Document),ve(DocumentFragment),ve(Element);var ye,ge,be,we,_e=Node.prototype.insertBefore,Se=null!==(ge=null===(ye=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===ye?void 0:ye.get)&&void 0!==ge?ge:function(){return this.parentNode},Ee=null!==(we=null===(be=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===be?void 0:be.get)&&void 0!==we?we:function(){return this.nextSibling};function Ce(e){(e=e.prototype).hasOwnProperty("after")||Object.defineProperty(e,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=Se.call(this)))for(var r=Ee.call(this),o=(t=u(t)).next();!o.done;o=t.next())o=o.value,_e.call(n,"string"==typeof o?document.createTextNode(o):o,r)}})}Ce(CharacterData),Ce(Element);var ke,Ne,Oe=Node.prototype.insertBefore,xe=null!==(Ne=null===(ke=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===ke?void 0:ke.get)&&void 0!==Ne?Ne:function(){return this.parentNode};function Ae(e){(e=e.prototype).hasOwnProperty("before")||Object.defineProperty(e,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=xe.call(this)))for(var r=(t=u(t)).next();!r.done;r=t.next())r=r.value,Oe.call(n,"string"==typeof r?document.createTextNode(r):r,this)}})}Ae(CharacterData),Ae(Element);var Ie,Pe,Te=Node.prototype.removeChild,Re=null!==(Pe=null===(Ie=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Ie?void 0:Ie.get)&&void 0!==Pe?Pe:function(){return this.parentNode};function Le(e){(e=e.prototype).hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Re.call(this);e&&Te.call(e,this)}})}Le(CharacterData),Le(Element);var De,je,Me=Node.prototype.insertBefore,Fe=Node.prototype.removeChild,ze=null!==(je=null===(De=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===De?void 0:De.get)&&void 0!==je?je:function(){return this.parentNode};function Ue(e){(e=e.prototype).hasOwnProperty("replaceWith")||Object.defineProperty(e,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=ze.call(this))){for(var r=(t=u(t)).next();!r.done;r=t.next())r=r.value,Me.call(n,"string"==typeof r?document.createTextNode(r):r,this);Fe.call(n,this)}}})}Ue(CharacterData),Ue(Element);var Be=window.Element.prototype,He=window.HTMLElement.prototype,Ge=window.SVGElement.prototype;!He.hasOwnProperty("classList")||Be.hasOwnProperty("classList")||Ge.hasOwnProperty("classList")||Object.defineProperty(Be,"classList",Object.getOwnPropertyDescriptor(He,"classList"));var Ve=document.createElement("style");Ve.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var We=document.querySelector("head");We.insertBefore(Ve,We.firstChild);var Ze=window;Ze.WebComponents=Ze.WebComponents||{flags:{}};var Ke=document.querySelector('script[src*="webcomponents-bundle"]'),Ye=/wc-(.+)/,qe={};if(!qe.noOpts){if(location.search.slice(1).split("&").forEach((function(e){var t;(e=e.split("="))[0]&&(t=e[0].match(Ye))&&(qe[t[1]]=e[1]||!0)})),Ke)for(var Qe=0,Xe=void 0;Xe=Ke.attributes[Qe];Qe++)"src"!==Xe.name&&(qe[Xe.name]=Xe.value||!0);var $e={};qe.log&&qe.log.split&&qe.log.split(",").forEach((function(e){$e[e]=!0})),qe.log=$e}Ze.WebComponents.flags=qe;var Je=qe.shadydom;if(Je){Ze.ShadyDOM=Ze.ShadyDOM||{},Ze.ShadyDOM.force=Je;var et=qe.noPatch;Ze.ShadyDOM.noPatch="true"===et||et}var tt=qe.register||qe.ce;function nt(){}function rt(e){return e.__shady||(e.__shady=new nt),e.__shady}function ot(e){return e&&e.__shady}tt&&window.customElements&&(Ze.customElements.forcePolyfill=tt),function(){function e(){}function t(e,t){if(!e.childNodes.length)return[];switch(e.nodeType){case Node.DOCUMENT_NODE:return m.call(e,t);case Node.DOCUMENT_FRAGMENT_NODE:return v.call(e,t);default:return h.call(e,t)}}var n="undefined"==typeof HTMLTemplateElement,r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),o=!1;/Trident/.test(navigator.userAgent)&&function(){function e(e,t){if(e instanceof DocumentFragment)for(var r;r=e.firstChild;)n.call(this,r,t);else n.call(this,e,t);return e}o=!0;var t=Node.prototype.cloneNode;Node.prototype.cloneNode=function(e){return e=t.call(this,e),this instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var n=Node.prototype.insertBefore;Node.prototype.insertBefore=e;var r=Node.prototype.appendChild;Node.prototype.appendChild=function(t){return t instanceof DocumentFragment?e.call(this,t,null):r.call(this,t),t};var i=Node.prototype.removeChild,a=Node.prototype.replaceChild;Node.prototype.replaceChild=function(t,n){return t instanceof DocumentFragment?(e.call(this,t,n),i.call(this,n)):a.call(this,t,n),n},Document.prototype.createDocumentFragment=function(){var e=this.createElement("df");return e.__proto__=DocumentFragment.prototype,e};var l=Document.prototype.importNode;Document.prototype.importNode=function(e,t){return t=l.call(this,e,t||!1),e instanceof DocumentFragment&&(t.__proto__=DocumentFragment.prototype),t}}();var i=Node.prototype.cloneNode,a=Document.prototype.createElement,l=Document.prototype.importNode,s=Node.prototype.removeChild,u=Node.prototype.appendChild,c=Node.prototype.replaceChild,f=DOMParser.prototype.parseFromString,d=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(e){this.innerHTML=e}},p=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},h=Element.prototype.querySelectorAll,m=Document.prototype.querySelectorAll,v=DocumentFragment.prototype.querySelectorAll,y=function(){if(!n){var e=document.createElement("template"),t=document.createElement("template");return t.content.appendChild(document.createElement("div")),e.content.appendChild(t),0===(e=e.cloneNode(!0)).content.childNodes.length||0===e.content.firstChild.content.childNodes.length||r}}();if(n){var g=document.implementation.createHTMLDocument("template"),b=!0,w=document.createElement("style");w.textContent="template{display:none;}";var _=document.head;_.insertBefore(w,_.firstElementChild),e.prototype=Object.create(HTMLElement.prototype);var S=!document.createElement("div").hasOwnProperty("innerHTML");e.Z=function(t){if(!t.content&&t.namespaceURI===document.documentElement.namespaceURI){t.content=g.createDocumentFragment();for(var n;n=t.firstChild;)u.call(t.content,n);if(S)t.__proto__=e.prototype;else if(t.cloneNode=function(t){return e.sa(this,t)},b)try{C(t),k(t)}catch(r){b=!1}e.bootstrap(t.content)}};var E={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},C=function(t){Object.defineProperty(t,"innerHTML",{get:function(){return P(this)},set:function(t){var n=E[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(t)||["",""])[1].toLowerCase()];if(n)for(var r=0;r<n.length;r++)t="<"+n[r]+">"+t+"</"+n[r]+">";for(g.body.innerHTML=t,e.bootstrap(g);this.content.firstChild;)s.call(this.content,this.content.firstChild);if(t=g.body,n)for(r=0;r<n.length;r++)t=t.lastChild;for(;t.firstChild;)u.call(this.content,t.firstChild)},configurable:!0})},k=function(e){Object.defineProperty(e,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(e){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(g.body.innerHTML=e,e=this.ownerDocument.createDocumentFragment();g.body.firstChild;)u.call(e,g.body.firstChild);c.call(this.parentNode,e,this)},configurable:!0})};C(e.prototype),k(e.prototype),e.bootstrap=function(n){for(var r,o=0,i=(n=t(n,"template")).length;o<i&&(r=n[o]);o++)e.Z(r)},document.addEventListener("DOMContentLoaded",(function(){e.bootstrap(document)})),Document.prototype.createElement=function(){var t=a.apply(this,arguments);return"template"===t.localName&&e.Z(t),t},DOMParser.prototype.parseFromString=function(){var t=f.apply(this,arguments);return e.bootstrap(t),t},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return P(this)},set:function(t){d.set.call(this,t),e.bootstrap(this)},configurable:!0,enumerable:!0});var N=/[&\u00A0"]/g,O=/[&\u00A0<>]/g,x=function(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}},A=(w=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),I=w("style script xmp iframe noembed noframes plaintext noscript".split(" ")),P=function e(t,n){"template"===t.localName&&(t=t.content);for(var r,o="",i=n?n(t):p.get.call(t),a=0,l=i.length;a<l&&(r=i[a]);a++){e:{var s=r,u=t,c=n;switch(s.nodeType){case Node.ELEMENT_NODE:for(var f=s.localName,d="<"+f,h=s.attributes,m=0;u=h[m];m++)d+=" "+u.name+'="'+u.value.replace(N,x)+'"';d+=">",s=A[f]?d:d+e(s,c)+"</"+f+">";break e;case Node.TEXT_NODE:s=s.data,s=u&&I[u.localName]?s:s.replace(O,x);break e;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break e;default:throw window.console.error(s),Error("not implemented")}}o+=s}return o}}if(n||y){e.sa=function(e,t){var n=i.call(e,!1);return this.Z&&this.Z(n),t&&(u.call(n.content,i.call(e.content,!0)),T(n.content,e.content)),n};var T=function(n,r){if(r.querySelectorAll&&0!==(r=t(r,"template")).length)for(var o,i,a=0,l=(n=t(n,"template")).length;a<l;a++)i=r[a],o=n[a],e&&e.Z&&e.Z(i),c.call(o.parentNode,R.call(i,!0),o)},R=Node.prototype.cloneNode=function(t){if(!o&&r&&this instanceof DocumentFragment){if(!t)return this.ownerDocument.createDocumentFragment();var n=L.call(this.ownerDocument,this,!0)}else n=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?e.sa(this,t):i.call(this,t);return t&&T(n,this),n},L=Document.prototype.importNode=function(n,r){if(r=r||!1,"template"===n.localName)return e.sa(n,r);var o=l.call(this,n,r);if(r){T(o,n),n=t(o,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var i,s=0;s<n.length;s++){i=n[s],(r=a.call(document,"script")).textContent=i.textContent;for(var u,f=i.attributes,d=0;d<f.length;d++)u=f[d],r.setAttribute(u.name,u.value);c.call(i.parentNode,r,i)}}return o}}n&&(window.HTMLTemplateElement=e)}(),nt.prototype.toJSON=function(){return{}};var it=window.ShadyDOM||{};it.Ya=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var at=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");function lt(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function st(e){return(e=ot(e))&&void 0!==e.firstChild}function ut(e){return e instanceof ShadowRoot}function ct(e){return(e=(e=ot(e))&&e.root)&&Qr(e)}it.H=!!(at&&at.configurable&&at.get),it.ya=it.force||!it.Ya,it.J=it.noPatch||!1,it.fa=it.preferPerformance,it.Aa="on-demand"===it.J,it.Na=navigator.userAgent.match("Trident");var ft=Element.prototype,dt=ft.matches||ft.matchesSelector||ft.mozMatchesSelector||ft.msMatchesSelector||ft.oMatchesSelector||ft.webkitMatchesSelector,pt=document.createTextNode(""),ht=0,mt=[];function vt(e){mt.push(e),pt.textContent=ht++}new MutationObserver((function(){for(;mt.length;)try{mt.shift()()}catch(R){throw pt.textContent=ht++,R}})).observe(pt,{characterData:!0});var yt=document.contains?function(e,t){return e.__shady_native_contains(t)}:function(e,t){return e===t||e.documentElement&&e.documentElement.__shady_native_contains(t)};function gt(e,t){for(;t;){if(t==e)return!0;t=t.__shady_parentNode}return!1}function bt(e){for(var t=e.length-1;0<=t;t--){var n=e[t],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(e[r]=n)}return e.item=function(t){return e[t]},e.namedItem=function(t){if("length"!==t&&isNaN(t)&&e[t])return e[t];for(var n=u(e),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==t)return r;return null},e}function wt(e){var t=[];for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)t.push(e);return t}function _t(e){var t=[];for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t.push(e);return t}function St(e,t,n){if(n.configurable=!0,n.value)e[t]=n.value;else try{Object.defineProperty(e,t,n)}catch(M){}}function Et(e,t,n,r){for(var o in n=void 0===n?"":n,t)r&&0<=r.indexOf(o)||St(e,n+o,t[o])}function Ct(e,t){for(var n in t)n in e&&St(e,n,t[n])}function kt(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t}function Nt(e,t){for(var n,r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e[n=r[o]]=t[n]}function Ot(e){return e instanceof Node?e:document.createTextNode(""+e)}function xt(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(1===t.length)return Ot(t[0]);n=document.createDocumentFragment();for(var r=(t=u(t)).next();!r.done;r=t.next())n.appendChild(Ot(r.value));return n}var At,It=[];function Pt(e){At||(At=!0,vt(Tt)),It.push(e)}function Tt(){At=!1;for(var e=!!It.length;It.length;)It.shift()();return e}function Rt(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.oa=new Set}Tt.list=It,Rt.prototype.flush=function(){if(this.g){this.g=!1;var e=this.takeRecords();e.length&&this.oa.forEach((function(t){t(e)}))}},Rt.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var Lt=/[&\u00A0"]/g,Dt=/[&\u00A0<>]/g;function jt(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function Mt(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var Ft=Mt("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),zt=Mt("style script xmp iframe noembed noframes plaintext noscript".split(" "));function Ut(e,t){"template"===e.localName&&(e=e.content);for(var n="",r=t?t(e):e.childNodes,o=0,i=r.length,a=void 0;o<i&&(a=r[o]);o++){e:{var l=a,s=e,u=t;switch(l.nodeType){case Node.ELEMENT_NODE:for(var c,f="<"+(s=l.localName),d=l.attributes,p=0;c=d[p];p++)f+=" "+c.name+'="'+c.value.replace(Lt,jt)+'"';f+=">",l=Ft[s]?f:f+Ut(l,u)+"</"+s+">";break e;case Node.TEXT_NODE:l=l.data,l=s&&zt[s.localName]?l:l.replace(Dt,jt);break e;case Node.COMMENT_NODE:l="\x3c!--"+l.data+"--\x3e";break e;default:throw window.console.error(l),Error("not implemented")}}n+=l}return n}var Bt=it.H,Ht={querySelector:function(e){return this.__shady_native_querySelector(e)},querySelectorAll:function(e){return this.__shady_native_querySelectorAll(e)}},Gt={};function Vt(e){Gt[e]=function(t){return t["__shady_native_"+e]}}function Wt(e,t){for(var n in Et(e,t,"__shady_native_"),t)Vt(n)}function Zt(e,t){t=void 0===t?[]:t;for(var n=0;n<t.length;n++){var r=t[n],o=Object.getOwnPropertyDescriptor(e,r);o&&(Object.defineProperty(e,"__shady_native_"+r,o),o.value?Ht[r]||(Ht[r]=o.value):Vt(r))}}var Kt=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Yt=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),qt=document.implementation.createHTMLDocument("inert");function Qt(e){for(var t;t=e.__shady_native_firstChild;)e.__shady_native_removeChild(t)}var Xt=["firstElementChild","lastElementChild","children","childElementCount"],$t=["querySelector","querySelectorAll","append","prepend","replaceChildren"];var Jt=kt({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),en=kt({get textContent(){return this.__shady_textContent},set textContent(e){this.__shady_textContent=e},get innerHTML(){return this.__shady_innerHTML},set innerHTML(e){this.__shady_innerHTML=e}}),tn=kt({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(e){this.__shady_className=e}});function nn(e){for(var t in e){var n=e[t];n&&(n.enumerable=!1)}}nn(Jt),nn(en),nn(tn);var rn=it.H||!0===it.J,on=rn?function(){}:function(e){var t=rt(e);t.Pa||(t.Pa=!0,Ct(e,tn))},an=rn?function(){}:function(e){var t=rt(e);t.Oa||(t.Oa=!0,Ct(e,Jt),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!it.J||Ct(e,en))},ln="__eventWrappers"+Date.now(),sn=function(){var e=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return e?function(t){return e.get.call(t)}:null}(),un=function(){function e(){}var t=!1,n={get capture(){return t=!0,!1}};return window.addEventListener("test",e,n),window.removeEventListener("test",e,n),t}();function cn(e){if(e&&"object"===r(e))var t=!!e.capture,n=!!e.once,o=!!e.passive,i=e.U;else t=!!e,o=n=!1;return{La:i,capture:t,once:n,passive:o,Ja:un?e:t}}var fn={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},dn={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function pn(e){return e instanceof Node?e.__shady_getRootNode():e}function hn(e,t){var n=[],r=e;for(e=pn(e);r;)n.push(r),r=r.__shady_assignedSlot?r.__shady_assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(t||r!==e)?r.host:r.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n}function mn(e,t){if(!ut)return e;e=hn(e,!0);for(var n,r,o=0,i=void 0,a=void 0;o<t.length;o++)if((r=pn(n=t[o]))!==i&&(a=e.indexOf(r),i=r),!ut(r)||-1<a)return n}function vn(e){function t(t,n){return(t=new e(t,n)).__composed=n&&!!n.composed,t}return t.__proto__=e,t.prototype=e.prototype,t}var yn={focus:!0,blur:!0};function gn(e){return e.__target!==e.target||e.__relatedTarget!==e.relatedTarget}function bn(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var r,o=0;(r=n[o])&&(!gn(e)||e.target!==e.relatedTarget)&&(r.call(t,e),!e.__immediatePropagationStopped);o++);}function wn(e){var t=e.composedPath(),n=t.map((function(e){return mn(e,t)})),r=e.bubbles;Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return a}});var o=Event.CAPTURING_PHASE;Object.defineProperty(e,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return o}});for(var i=t.length-1;0<=i;i--){var a=t[i];if(o=a===n[i]?Event.AT_TARGET:Event.CAPTURING_PHASE,bn(e,a,"capture"),e.ra)return}for(i=0;i<t.length;i++){var l=(a=t[i])===n[i];if((l||r)&&(o=l?Event.AT_TARGET:Event.BUBBLING_PHASE,bn(e,a,"bubble"),e.ra))return}o=0,a=null}function _n(e,t,n,r,o,i){for(var a=0;a<e.length;a++){var l=e[a],s=l.type,u=l.capture,c=l.once,f=l.passive;if(t===l.node&&n===s&&r===u&&o===c&&i===f)return a}return-1}function Sn(e){return Tt(),!it.fa&&this instanceof Node&&!yt(document,this)?(e.__target||Nn(e,this),wn(e)):this.__shady_native_dispatchEvent(e)}function En(e,t,n){var o=cn(n),i=o.capture,a=o.once,l=o.passive,s=o.La;if(o=o.Ja,t){var u=r(t);if(("function"===u||"object"===u)&&("object"!==u||t.handleEvent&&"function"==typeof t.handleEvent)){if(dn[e])return this.__shady_native_addEventListener(e,t,o);var c=s||this;if(s=t[ln]){if(-1<_n(s,c,e,i,a,l))return}else t[ln]=[];s=function(r){if(a&&this.__shady_removeEventListener(e,t,n),r.__target||Nn(r),c!==this){var o=Object.getOwnPropertyDescriptor(r,"currentTarget");Object.defineProperty(r,"currentTarget",{get:function(){return c},configurable:!0});var l=Object.getOwnPropertyDescriptor(r,"eventPhase");Object.defineProperty(r,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(r.__previousCurrentTarget=r.currentTarget,(!ut(c)&&"slot"!==c.localName||-1!=r.composedPath().indexOf(c))&&(r.composed||-1<r.composedPath().indexOf(c)))if(gn(r)&&r.target===r.relatedTarget)r.eventPhase===Event.BUBBLING_PHASE&&r.stopImmediatePropagation();else if(r.eventPhase===Event.CAPTURING_PHASE||r.bubbles||r.target===c||c instanceof Window){var s="function"===u?t.call(c,r):t.handleEvent&&t.handleEvent(r);return c!==this&&(o?(Object.defineProperty(r,"currentTarget",o),o=null):delete r.currentTarget,l?(Object.defineProperty(r,"eventPhase",l),l=null):delete r.eventPhase),s}},t[ln].push({node:c,type:e,capture:i,once:a,passive:l,pb:s}),this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][i?"capture":"bubble"].push(s),yn[e]||this.__shady_native_addEventListener(e,s,o)}}}function Cn(e,t,n){if(t){var r=cn(n);n=r.capture;var o=r.once,i=r.passive,a=r.La;if(r=r.Ja,dn[e])return this.__shady_native_removeEventListener(e,t,r);var l=a||this;a=void 0;var s=null;try{s=t[ln]}catch(u){}s&&(-1<(o=_n(s,l,e,n,o,i))&&(a=s.splice(o,1)[0].pb,s.length||(t[ln]=void 0))),this.__shady_native_removeEventListener(e,a||t,r),a&&this.__handlers&&this.__handlers[e]&&(-1<(t=(e=this.__handlers[e][n?"capture":"bubble"]).indexOf(a))&&e.splice(t,1))}}var kn=kt({get composed(){return void 0===this.__composed&&(sn?this.__composed="focusin"===this.type||"focusout"===this.type||sn(this):!1!==this.isTrusted&&(this.__composed=fn[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=hn(this.__target,this.composed)),this.__composedPath},get target(){return mn(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=hn(this.__relatedTarget,!0)),mn(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ra=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ra=this.__immediatePropagationStopped=!0}});function Nn(e,t){if(t=void 0===t?e.target:t,e.__target=t,e.__relatedTarget=e.relatedTarget,it.H){if(!(t=Object.getPrototypeOf(e)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(t);n.__shady_sourceProto=t,Et(n,kn),t.__shady_patchedProto=n}e.__proto__=t.__shady_patchedProto}else Et(e,kn)}var On=vn(Event),xn=vn(CustomEvent),An=vn(MouseEvent);var In=Object.getOwnPropertyNames(Element.prototype).filter((function(e){return"on"===e.substring(0,2)})),Pn=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(e){return"on"===e.substring(0,2)}));function Tn(e){return{set:function(t){var n=rt(this),r=e.substring(2);n.T||(n.T={}),n.T[e]&&this.removeEventListener(r,n.T[e]),this.__shady_addEventListener(r,t),n.T[e]=t},get:function(){var t=ot(this);return t&&t.T&&t.T[e]},configurable:!0}}function Rn(e,t){return{index:e,ga:[],na:t}}function Ln(e,t,n,r){var o=0,i=0,a=0,l=0,s=Math.min(t-o,r-i);if(0==o&&0==i)e:{for(a=0;a<s;a++)if(e[a]!==n[a])break e;a=s}if(t==e.length&&r==n.length){l=e.length;for(var u=n.length,c=0;c<s-a&&Dn(e[--l],n[--u]);)c++;l=c}if(i+=a,r-=l,0==(t-=l)-(o+=a)&&0==r-i)return[];if(o==t){for(t=Rn(o,0);i<r;)t.ga.push(n[i++]);return[t]}if(i==r)return[Rn(o,t-o)];for(r=r-(a=i)+1,l=t-(s=o)+1,t=Array(r),u=0;u<r;u++)t[u]=Array(l),t[u][0]=u;for(u=0;u<l;u++)t[0][u]=u;for(u=1;u<r;u++)for(c=1;c<l;c++)if(e[s+c-1]===n[a+u-1])t[u][c]=t[u-1][c-1];else{var f=t[u-1][c]+1,d=t[u][c-1]+1;t[u][c]=f<d?f:d}for(s=t.length-1,a=t[0].length-1,r=t[s][a],e=[];0<s||0<a;)0==s?(e.push(2),a--):0==a?(e.push(3),s--):(l=t[s-1][a-1],(f=(u=t[s-1][a])<(c=t[s][a-1])?u<l?u:l:c<l?c:l)==l?(l==r?e.push(0):(e.push(1),r=l),s--,a--):f==u?(e.push(3),s--,r=u):(e.push(2),a--,r=c));for(e.reverse(),t=void 0,s=[],a=0;a<e.length;a++)switch(e[a]){case 0:t&&(s.push(t),t=void 0),o++,i++;break;case 1:t||(t=Rn(o,0)),t.na++,o++,t.ga.push(n[i]),i++;break;case 2:t||(t=Rn(o,0)),t.na++,o++;break;case 3:t||(t=Rn(o,0)),t.ga.push(n[i]),i++}return t&&s.push(t),s}function Dn(e,t){return e===t}var jn=kt({dispatchEvent:Sn,addEventListener:En,removeEventListener:Cn}),Mn=null;function Fn(){return Mn||(Mn=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Mn||null}function zn(e,t,n){var r=Fn();return!(!r||"class"!==t)&&(r.setElementClass(e,n),!0)}function Un(e,t){var n=Fn();n&&n.unscopeNode(e,t)}function Bn(e,t){var n=Fn();if(!n)return!0;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(n=!0,e=e.__shady_firstChild;e;e=e.__shady_nextSibling)n=n&&Bn(e,t);return n}return e.nodeType!==Node.ELEMENT_NODE||n.currentScopeForNode(e)===t}function Hn(e){if(e.nodeType!==Node.ELEMENT_NODE)return"";var t=Fn();return t?t.currentScopeForNode(e):""}function Gn(e,t){if(e)for(e.nodeType===Node.ELEMENT_NODE&&t(e),e=e.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType===Node.ELEMENT_NODE&&Gn(e,t)}var Vn=window.document,Wn=it.fa,Zn=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Kn=Zn&&Zn.get;function Yn(e){for(var t;t=e.__shady_firstChild;)e.__shady_removeChild(t)}function qn(e){var t=ot(e);if(t&&void 0!==t.qa)for(t=e.__shady_firstChild;t;t=t.__shady_nextSibling)qn(t);(e=ot(e))&&(e.qa=void 0)}function Qn(e){var t=e;if(e&&"slot"===e.localName){var n=ot(e);(n=n&&n.aa)&&(t=n.length?n[0]:Qn(e.__shady_nextSibling))}return t}function Xn(e,t,n){if(e=(e=ot(e))&&e.ea){if(t)if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0,o=t.childNodes.length;r<o;r++)e.addedNodes.push(t.childNodes[r]);else e.addedNodes.push(t);n&&e.removedNodes.push(n),function(e){e.g||(e.g=!0,vt((function(){e.flush()})))}(e)}}var $n=kt({get parentNode(){var e=ot(this);return void 0!==(e=e&&e.parentNode)?e:this.__shady_native_parentNode},get firstChild(){var e=ot(this);return void 0!==(e=e&&e.firstChild)?e:this.__shady_native_firstChild},get lastChild(){var e=ot(this);return void 0!==(e=e&&e.lastChild)?e:this.__shady_native_lastChild},get nextSibling(){var e=ot(this);return void 0!==(e=e&&e.nextSibling)?e:this.__shady_native_nextSibling},get previousSibling(){var e=ot(this);return void 0!==(e=e&&e.previousSibling)?e:this.__shady_native_previousSibling},get childNodes(){if(st(this)){var e=ot(this);if(!e.childNodes){e.childNodes=[];for(var t=this.__shady_firstChild;t;t=t.__shady_nextSibling)e.childNodes.push(t)}var n=e.childNodes}else n=this.__shady_native_childNodes;return n.item=function(e){return n[e]},n},get parentElement(){var e=ot(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:this.__shady_native_parentElement},get isConnected(){if(Kn&&Kn.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(null===e||yt(e,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.__shady_parentNode||(ut(e)?e.host:void 0);return!!(e&&e instanceof Document)},get textContent(){if(st(this)){for(var e=[],t=this.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.__shady_textContent);return e.join("")}return this.__shady_native_textContent},set textContent(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!st(this)&&it.H){var t=this.__shady_firstChild;(t!=this.__shady_lastChild||t&&t.nodeType!=Node.TEXT_NODE)&&Yn(this),this.__shady_native_textContent=e}else Yn(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(e));break;default:this.nodeValue=e}},insertBefore:function(e,t){if(this.ownerDocument!==Vn&&e.ownerDocument!==Vn)return this.__shady_native_insertBefore(e,t),e;if(e===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(t){var n=ot(t);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&t.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(t===e)return e;Xn(this,e);var r=[],o=(n=eo(this))?n.host.localName:Hn(this),i=e.__shady_parentNode;if(i){var a=Hn(e),l=!!n||!eo(e)||Wn&&void 0!==this.__noInsertionPoint;i.__shady_removeChild(e,l)}i=!0;var s=(!Wn||void 0===e.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!Bn(e,o),u=n&&!e.__noInsertionPoint&&(!Wn||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(u||s)&&(s&&(a=a||Hn(e)),Gn(e,(function(e){if(u&&"slot"===e.localName&&r.push(e),s){var t=a;Fn()&&(t&&Un(e,t),(t=Fn())&&t.scopeNode(e,o))}}))),r.length&&(Zr(n),n.i.push.apply(n.i,c(r)),Br(n)),st(this)&&(function(e,t,n){Ir(t,2);var r=rt(t);if(void 0!==r.firstChild&&(r.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)Pr(e,t,r,n);else Pr(e,t,r,n)}(e,this,t),(l=ot(this)).root?(i=!1,ct(this)&&Br(l.root)):n&&"slot"===this.localName&&(i=!1,Br(n))),i?(n=ut(this)?this.host:this,t?(t=Qn(t),n.__shady_native_insertBefore(e,t)):n.__shady_native_appendChild(e)):e.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(e),e},appendChild:function(e){if(this!=e||!ut(e))return this.__shady_insertBefore(e)},removeChild:function(e,t){if(t=void 0!==t&&t,this.ownerDocument!==Vn)return this.__shady_native_removeChild(e);if(e.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+e);Xn(this,null,e);var n=eo(e),r=n&&function(e,t){if(e.g){Kr(e);var n,r=e.h;for(n in r)for(var o=r[n],i=0;i<o.length;i++){var a=o[i];if(gt(t,a)){o.splice(i,1);var l=e.g.indexOf(a);if(0<=l&&(e.g.splice(l,1),(l=ot(a.__shady_parentNode))&&l.ia&&l.ia--),i--,l=(a=ot(a)).aa)for(var s=0;s<l.length;s++){var u=l[s],c=u.__shady_native_parentNode;c&&c.__shady_native_removeChild(u)}a.aa=[],a.assignedNodes=[],l=!0}}return l}}(n,e),o=ot(this);if(st(this)&&(function(e,t){var n=rt(e);t=rt(t),e===t.firstChild&&(t.firstChild=n.nextSibling),e===t.lastChild&&(t.lastChild=n.previousSibling),e=n.previousSibling;var r=n.nextSibling;e&&(rt(e).nextSibling=r),r&&(rt(r).previousSibling=e),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==t.childNodes&&(t.childNodes=null)}(e,this),ct(this))){Br(o.root);var i=!0}if(Fn()&&!t&&n&&e.nodeType!==Node.TEXT_NODE){var a=Hn(e);Gn(e,(function(e){Un(e,a)}))}return qn(e),n&&((t="slot"===this.localName)&&(i=!0),(r||t)&&Br(n)),i||(i=ut(this)?this.host:this,(!o.root&&"slot"!==e.localName||i===e.__shady_native_parentNode)&&i.__shady_native_removeChild(e)),e},replaceChild:function(e,t){return this.__shady_insertBefore(e,t),this.__shady_removeChild(t),e},cloneNode:function(e){if("template"==this.localName)return this.__shady_native_cloneNode(e);var t=this.__shady_native_cloneNode(!1);if(e&&t.nodeType!==Node.ATTRIBUTE_NODE){e=this.__shady_firstChild;for(var n;e;e=e.__shady_nextSibling)n=e.__shady_cloneNode(!0),t.__shady_appendChild(n)}return t},getRootNode:function(e){if(this&&this.nodeType){var t=rt(this),n=t.qa;return void 0===n&&(ut(this)?(n=this,t.qa=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(e):this,document.documentElement.__shady_native_contains(this)&&(t.qa=n))),n}},contains:function(e){return gt(this,e)}}),Jn=kt({get assignedSlot(){var e=this.__shady_parentNode;return(e=e&&e.__shady_shadowRoot)&&Hr(e),(e=ot(this))&&e.assignedSlot||null}});function er(e,t,n){var r=[];return tr(e,t,n,r),r}function tr(e,t,n,r){for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling){var o;if(o=e.nodeType===Node.ELEMENT_NODE){var i=t,a=n,l=r,s=i(o=e);s&&l.push(o),a&&a(s)?o=s:(tr(o,i,a,l),o=void 0)}if(o)break}}var nr={get firstElementChild(){var e=ot(this);if(e&&void 0!==e.firstChild){for(e=this.__shady_firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_firstElementChild},get lastElementChild(){var e=ot(this);if(e&&void 0!==e.lastChild){for(e=this.__shady_lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_lastElementChild},get children(){return st(this)?bt(Array.prototype.filter.call(_t(this),(function(e){return e.nodeType===Node.ELEMENT_NODE}))):this.__shady_native_children},get childElementCount(){var e=this.__shady_children;return e?e.length:0}},rr=kt((nr.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(xt.apply(null,c(t)),null)},nr.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(xt.apply(null,c(t)),this.__shady_firstChild)},nr.replaceChildren=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=this.__shady_firstChild);)this.__shady_removeChild(n);this.__shady_insertBefore(xt.apply(null,c(t)),null)},nr)),or=kt({querySelector:function(e){return er(this,(function(t){return dt.call(t,e)}),(function(e){return!!e}))[0]||null},querySelectorAll:function(e,t){if(t){t=Array.prototype.slice.call(this.__shady_native_querySelectorAll(e));var n=this.__shady_getRootNode();return bt(t.filter((function(e){return e.__shady_getRootNode()==n})))}return bt(er(this,(function(t){return dt.call(t,e)})))}}),ir=it.fa&&!it.J?Nt({},rr):rr;Nt(rr,or);var ar=kt({after:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_insertBefore(xt.apply(null,c(t)),r)}},before:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];null!==(n=this.__shady_parentNode)&&n.__shady_insertBefore(xt.apply(null,c(t)),this)},remove:function(){var e=this.__shady_parentNode;null!==e&&e.__shady_removeChild(this)},replaceWith:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_removeChild(this),n.__shady_insertBefore(xt.apply(null,c(t)),r)}}}),lr=window.document;function sr(e,t){if("slot"===t)ct(e=e.__shady_parentNode)&&Br(ot(e).root);else if("slot"===e.localName&&"name"===t&&(t=eo(e))){if(t.g){Kr(t);var n=e.Qa,r=Yr(e);if(r!==n){var o=(n=t.h[n]).indexOf(e);0<=o&&n.splice(o,1),(n=t.h[r]||(t.h[r]=[])).push(e),1<n.length&&(t.h[r]=qr(n))}}Br(t)}}var ur=kt({get previousElementSibling(){var e=ot(this);if(e&&void 0!==e.previousSibling){for(e=this.__shady_previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_previousElementSibling},get nextElementSibling(){var e=ot(this);if(e&&void 0!==e.nextSibling){for(e=this.__shady_nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},set slot(e){this.__shady_setAttribute("slot",e)},get className(){return this.getAttribute("class")||""},set className(e){this.__shady_setAttribute("class",e)},setAttribute:function(e,t){this.ownerDocument!==lr?this.__shady_native_setAttribute(e,t):zn(this,e,t)||(this.__shady_native_setAttribute(e,t),sr(this,e))},removeAttribute:function(e){this.ownerDocument!==lr?this.__shady_native_removeAttribute(e):zn(this,e,"")?""===this.getAttribute(e)&&this.__shady_native_removeAttribute(e):(this.__shady_native_removeAttribute(e),sr(this,e))}});it.fa||In.forEach((function(e){ur[e]=Tn(e)}));var cr=kt({attachShadow:function(e){if(!this)throw Error("Must provide a host.");if(!e)throw Error("Not enough arguments.");if(e.shadyUpgradeFragment&&!it.Na){var t=e.shadyUpgradeFragment;if(t.__proto__=ShadowRoot.prototype,Ur(t,this,e),Tr(t,t),e=t.__noInsertionPoint?null:t.querySelectorAll("slot"),t.__noInsertionPoint=void 0,e&&e.length){var n=t;Zr(n),n.i.push.apply(n.i,c(e)),Br(t)}t.host.__shady_native_appendChild(t)}else t=new zr(jr,this,e);return this.__CE_shadowRoot=t},get shadowRoot(){var e=ot(this);return e&&e.gb||null}});Nt(ur,cr);var fr=document.implementation.createHTMLDocument("inert"),dr=kt({get innerHTML(){return st(this)?Ut("template"===this.localName?this.content:this,_t):this.__shady_native_innerHTML},set innerHTML(e){if("template"===this.localName)this.__shady_native_innerHTML=e;else{Yn(this);var t=this.localName||"div";for(t=this.namespaceURI&&this.namespaceURI!==fr.namespaceURI?fr.createElementNS(this.namespaceURI,t):fr.createElement(t),it.H?t.__shady_native_innerHTML=e:t.innerHTML=e;e=t.__shady_firstChild;)this.__shady_insertBefore(e)}}}),pr=kt({blur:function(){var e=ot(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});it.fa||Pn.forEach((function(e){pr[e]=Tn(e)}));var hr=kt({assignedNodes:function(e){if("slot"===this.localName){var t=this.__shady_getRootNode();return t&&ut(t)&&Hr(t),(t=ot(this))&&(e&&e.flatten?t.aa:t.assignedNodes)||[]}},addEventListener:function(e,t,n){if("slot"!==this.localName||"slotchange"===e)En.call(this,e,t,n);else{"object"!==r(n)&&(n={capture:!!n});var o=this.__shady_parentNode;if(!o)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.U=this,o.__shady_addEventListener(e,t,n)}},removeEventListener:function(e,t,n){if("slot"!==this.localName||"slotchange"===e)Cn.call(this,e,t,n);else{"object"!==r(n)&&(n={capture:!!n});var o=this.__shady_parentNode;if(!o)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.U=this,o.__shady_removeEventListener(e,t,n)}}}),mr=kt({getElementById:function(e){return""===e?null:er(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}});function vr(e,t){for(var n;t&&!e.has(n=t.__shady_getRootNode());)t=n.host;return t}var yr="__shady_native_"+lt(),gr=kt({get activeElement(){var e=it.H?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var t=!!ut(this);if(!(this===document||t&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(t=eo(e);t&&t!==this;)t=eo(e=t.host);return this===document?t?null:e:t===this?e:null},elementsFromPoint:function(e,t){e=[].slice.call(document[yr](e,t)),t=function(e){var t=new Set;for(t.add(e);ut(e)&&e.host;)e=e.host.__shady_getRootNode(),t.add(e);return t}(this);for(var n=new Set,r=0;r<e.length;r++)n.add(vr(t,e[r]));var o=[];return n.forEach((function(e){return o.push(e)})),o},elementFromPoint:function(e,t){return this.__shady_elementsFromPoint(e,t)[0]||null}}),br=window.document,wr=kt({importNode:function(e,t){if(e.ownerDocument!==br||"template"===e.localName)return this.__shady_native_importNode(e,t);var n=this.__shady_native_importNode(e,!1);if(t)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t=this.__shady_importNode(e,!0),n.__shady_appendChild(t);return n}}),_r=kt({dispatchEvent:Sn,addEventListener:En.bind(window),removeEventListener:Cn.bind(window)}),Sr={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(Sr.parentElement=$n.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(Sr.contains=$n.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(Sr.children=rr.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(Sr.innerHTML=dr.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(Sr.className=ur.className);var Er={EventTarget:[jn],Node:[$n,window.EventTarget?null:jn],Text:[Jn],Comment:[Jn],CDATASection:[Jn],ProcessingInstruction:[Jn],Element:[ur,rr,ar,Jn,!it.H||"innerHTML"in Element.prototype?dr:null,window.HTMLSlotElement?null:hr],HTMLElement:[pr,Sr],HTMLSlotElement:[hr],DocumentFragment:[ir,mr],Document:[wr,ir,mr,gr],Window:[_r],CharacterData:[ar]},Cr=it.H?null:["innerHTML","textContent"];function kr(e,t,n,r){t.forEach((function(t){return e&&t&&Et(e,t,n,r)}))}function Nr(e){var t,n=e?null:Cr;for(t in Er)kr(window[t]&&window[t].prototype,Er[t],e,n)}function Or(e){return e.__shady_protoIsPatched=!0,kr(e,Er.EventTarget),kr(e,Er.Node),kr(e,Er.Element),kr(e,Er.HTMLElement),kr(e,Er.HTMLSlotElement),e}["Text","Comment","CDATASection","ProcessingInstruction"].forEach((function(e){var t=window[e],n=Object.create(t.prototype);n.__shady_protoIsPatched=!0,kr(n,Er.EventTarget),kr(n,Er.Node),Er[e]&&kr(n,Er[e]),t.prototype.__shady_patchedProto=n}));var xr=it.Aa,Ar=it.H;function Ir(e,t){if(xr&&!e.__shady_protoIsPatched&&!ut(e)){var n=Object.getPrototypeOf(e),r=n.hasOwnProperty("__shady_patchedProto")&&n.__shady_patchedProto;r||(Or(r=Object.create(n)),n.__shady_patchedProto=r),Object.setPrototypeOf(e,r)}Ar||(1===t?on(e):2===t&&an(e))}function Pr(e,t,n,r){Ir(e,1),r=r||null;var o=rt(e),i=r?rt(r):null;o.previousSibling=r?i.previousSibling:t.__shady_lastChild,(i=ot(o.previousSibling))&&(i.nextSibling=e),(i=ot(o.nextSibling=r))&&(i.previousSibling=e),o.parentNode=t,r?r===n.firstChild&&(n.firstChild=e):(n.lastChild=e,n.firstChild||(n.firstChild=e)),n.childNodes=null}function Tr(e,t){var n=rt(e);if(t||void 0===n.firstChild){n.childNodes=null;var r=n.firstChild=e.__shady_native_firstChild;for(n.lastChild=e.__shady_native_lastChild,Ir(e,2),n=r,r=void 0;n;n=n.__shady_native_nextSibling){var o=rt(n);o.parentNode=t||e,o.nextSibling=n.__shady_native_nextSibling,o.previousSibling=r||null,r=n,Ir(n,1)}}}var Rr=kt({addEventListener:function(e,t,n){"object"!==r(n)&&(n={capture:!!n}),n.U=n.U||this,this.host.__shady_addEventListener(e,t,n)},removeEventListener:function(e,t,n){"object"!==r(n)&&(n={capture:!!n}),n.U=n.U||this,this.host.__shady_removeEventListener(e,t,n)}});function Lr(e,t){Et(e,Rr,t),Et(e,gr,t),Et(e,dr,t),Et(e,rr,t),it.J&&!t?(Et(e,$n,t),Et(e,mr,t)):it.H||(Et(e,tn),Et(e,Jt),Et(e,en))}var Dr,jr={},Mr=it.deferConnectionCallbacks&&"loading"===document.readyState;function Fr(e){var t=[];do{t.unshift(e)}while(e=e.__shady_parentNode);return t}function zr(e,t,n){if(e!==jr)throw new TypeError("Illegal constructor");this.g=null,Ur(this,t,n)}function Ur(e,t,n){if(e.host=t,e.mode=n&&n.mode,Tr(e.host),(t=rt(e.host)).root=e,t.gb="closed"!==e.mode?e:null,(t=rt(e)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,it.preferPerformance)for(;t=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(t);else Br(e)}function Br(e){e.Y||(e.Y=!0,Pt((function(){return Hr(e)})))}function Hr(e){var t;if(t=e.Y){for(var n;e;)e.Y&&(n=e),ut(e=(t=e).host.__shady_getRootNode())&&(t=ot(t.host))&&0<t.ia||(e=void 0);t=n}(n=t)&&n._renderSelf()}function Gr(e,t,n){var r=rt(t),o=r.ua;r.ua=null,n||(n=(e=e.h[t.__shady_slot||"__catchall"])&&e[0]),n?(rt(n).assignedNodes.push(t),r.assignedSlot=n):r.assignedSlot=void 0,o!==r.assignedSlot&&r.assignedSlot&&(rt(r.assignedSlot).xa=!0)}function Vr(e,t,n){for(var r=0,o=void 0;r<n.length&&(o=n[r]);r++)if("slot"==o.localName){var i=ot(o).assignedNodes;i&&i.length&&Vr(e,t,i)}else t.push(n[r])}function Wr(e,t){t.__shady_native_dispatchEvent(new Event("slotchange")),(t=ot(t)).assignedSlot&&Wr(e,t.assignedSlot)}function Zr(e){e.i=e.i||[],e.g=e.g||[],e.h=e.h||{}}function Kr(e){if(e.i&&e.i.length){for(var t,n=e.i,r=0;r<n.length;r++){var o=n[r];Tr(o);var i=o.__shady_parentNode;Tr(i),(i=ot(i)).ia=(i.ia||0)+1,i=Yr(o),e.h[i]?((t=t||{})[i]=!0,e.h[i].push(o)):e.h[i]=[o],e.g.push(o)}if(t)for(var a in t)e.h[a]=qr(e.h[a]);e.i=[]}}function Yr(e){var t=e.name||e.getAttribute("name")||"__catchall";return e.Qa=t}function qr(e){return e.sort((function(e,t){e=Fr(e);for(var n=Fr(t),r=0;r<e.length;r++){t=e[r];var o=n[r];if(t!==o)return(e=_t(t.__shady_parentNode)).indexOf(t)-e.indexOf(o)}}))}function Qr(e){return Kr(e),!(!e.g||!e.g.length)}if(zr.prototype._renderSelf=function(){var e=Mr;if(Mr=!0,this.Y=!1,this.g){Kr(this);for(var t,n=0;n<this.g.length;n++){var r=ot(t=this.g[n]),o=r.assignedNodes;if(r.assignedNodes=[],r.aa=[],r.Ga=o)for(r=0;r<o.length;r++){var i=ot(o[r]);i.ua=i.assignedSlot,i.assignedSlot===t&&(i.assignedSlot=null)}}for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)Gr(this,n);for(n=0;n<this.g.length;n++){if(!(o=ot(t=this.g[n])).assignedNodes.length)for(r=t.__shady_firstChild;r;r=r.__shady_nextSibling)Gr(this,r,t);if((r=(r=ot(t.__shady_parentNode))&&r.root)&&(Qr(r)||r.Y)&&r._renderSelf(),Vr(this,o.aa,o.assignedNodes),r=o.Ga){for(i=0;i<r.length;i++)ot(r[i]).ua=null;o.Ga=null,r.length>o.assignedNodes.length&&(o.xa=!0)}o.xa&&(o.xa=!1,Wr(this,t))}for(t=this.g,n=[],o=0;o<t.length;o++)(i=ot(r=t[o].__shady_parentNode))&&i.root||!(0>n.indexOf(r))||n.push(r);for(t=0;t<n.length;t++){for(o=(i=n[t])===this?this.host:i,r=[],i=i.__shady_firstChild;i;i=i.__shady_nextSibling)if("slot"==i.localName)for(var a=ot(i).aa,l=0;l<a.length;l++)r.push(a[l]);else r.push(i);i=wt(o),a=Ln(r,r.length,i,i.length);for(var s=l=0,u=void 0;l<a.length&&(u=a[l]);l++){for(var c=0,f=void 0;c<u.ga.length&&(f=u.ga[c]);c++)f.__shady_native_parentNode===o&&o.__shady_native_removeChild(f),i.splice(u.index+s,1);s-=u.na}for(s=0,u=void 0;s<a.length&&(u=a[s]);s++)for(l=i[u.index],c=u.index;c<u.index+u.na;c++)f=r[c],o.__shady_native_insertBefore(f,l),i.splice(c,0,f)}}if(!it.preferPerformance&&!this.Fa)for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)t=ot(n),n.__shady_native_parentNode!==this.host||"slot"!==n.localName&&t.assignedSlot||this.host.__shady_native_removeChild(n);this.Fa=!0,Mr=e,Dr&&Dr()},function(e){e.__proto__=DocumentFragment.prototype,Lr(e,"__shady_"),Lr(e),Object.defineProperties(e,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach((function(t){Object.defineProperty(e,t,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return this.host[t]},configurable:!0})}))}(zr.prototype),window.customElements&&window.customElements.define&&it.ya&&!it.preferPerformance){var Xr=new Map;Dr=function(){var e=[];Xr.forEach((function(t,n){e.push([n,t])})),Xr.clear();for(var t=0;t<e.length;t++){var n=e[t][0];e[t][1]?n.__shadydom_connectedCallback():n.__shadydom_disconnectedCallback()}},Mr&&document.addEventListener("readystatechange",(function(){Mr=!1,Dr()}),{once:!0});var $r=window.customElements.define,Jr=function(e,t){var n=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;$r.call(window.customElements,e,function(e,t,n){var r=0,o="__isConnected"+r++;return(t||n)&&(e.prototype.connectedCallback=e.prototype.__shadydom_connectedCallback=function(){Mr?Xr.set(this,!0):this[o]||(this[o]=!0,t&&t.call(this))},e.prototype.disconnectedCallback=e.prototype.__shadydom_disconnectedCallback=function(){Mr?this.isConnected||Xr.set(this,!1):this[o]&&(this[o]=!1,n&&n.call(this))}),e}(t,n,r)),t.prototype.connectedCallback=n,t.prototype.disconnectedCallback=r};window.customElements.define=Jr,Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:Jr,configurable:!0})}function eo(e){if(ut(e=e.__shady_getRootNode()))return e}function to(e){this.node=e}function no(e){Object.defineProperty(to.prototype,e,{get:function(){return this.node["__shady_"+e]},set:function(t){this.node["__shady_"+e]=t},configurable:!0})}(e=to.prototype).addEventListener=function(e,t,n){return this.node.__shady_addEventListener(e,t,n)},e.removeEventListener=function(e,t,n){return this.node.__shady_removeEventListener(e,t,n)},e.appendChild=function(e){return this.node.__shady_appendChild(e)},e.insertBefore=function(e,t){return this.node.__shady_insertBefore(e,t)},e.removeChild=function(e){return this.node.__shady_removeChild(e)},e.replaceChild=function(e,t){return this.node.__shady_replaceChild(e,t)},e.cloneNode=function(e){return this.node.__shady_cloneNode(e)},e.getRootNode=function(e){return this.node.__shady_getRootNode(e)},e.contains=function(e){return this.node.__shady_contains(e)},e.dispatchEvent=function(e){return this.node.__shady_dispatchEvent(e)},e.setAttribute=function(e,t){this.node.__shady_setAttribute(e,t)},e.getAttribute=function(e){return this.node.__shady_native_getAttribute(e)},e.hasAttribute=function(e){return this.node.__shady_native_hasAttribute(e)},e.removeAttribute=function(e){this.node.__shady_removeAttribute(e)},e.attachShadow=function(e){return this.node.__shady_attachShadow(e)},e.focus=function(){this.node.__shady_native_focus()},e.blur=function(){this.node.__shady_blur()},e.importNode=function(e,t){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(e,t)},e.getElementById=function(e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(e)},e.elementsFromPoint=function(e,t){return this.node.__shady_elementsFromPoint(e,t)},e.elementFromPoint=function(e,t){return this.node.__shady_elementFromPoint(e,t)},e.querySelector=function(e){return this.node.__shady_querySelector(e)},e.querySelectorAll=function(e,t){return this.node.__shady_querySelectorAll(e,t)},e.assignedNodes=function(e){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(e)},e.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_append.apply(this.node,c(t))},e.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_prepend.apply(this.node,c(t))},e.after=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_after.apply(this.node,c(t))},e.before=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_before.apply(this.node,c(t))},e.remove=function(){return this.node.__shady_remove()},e.replaceWith=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_replaceWith.apply(this.node,c(t))},a.Object.defineProperties(to.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(ut(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(ut(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(e){this.node.__shady_innerHTML=e}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(e){this.node.__shady_textContent=e}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(e){this.node.__shady_slot=e}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(e){this.node.__shady_className=e}}}),In.forEach((function(e){return no(e)})),Pn.forEach((function(e){return no(e)}));var ro=new WeakMap;function oo(e){if(ut(e)||e instanceof to)return e;var t=ro.get(e);return t||(t=new to(e),ro.set(e,t)),t}if(it.ya){var io=it.H?function(e){return e}:function(e){return an(e),on(e),e},ao={inUse:it.ya,patch:io,isShadyRoot:ut,enqueue:Pt,flush:Tt,flushInitial:function(e){!e.Fa&&e.Y&&Hr(e)},settings:it,filterMutations:function(e,t){var n=t.getRootNode();return e.map((function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if(t=[].slice.call(e.addedNodes).filter((function(e){return n===e.getRootNode()})),t.length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:t,configurable:!0}),e}else if(t)return e})).filter((function(e){return e}))},observeChildren:function(e,t){var n=rt(e);n.ea||(n.ea=new Rt),n.ea.oa.add(t);var r=n.ea;return{Ra:t,X:r,Sa:e,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.X;t&&(t.oa.delete(e.Ra),t.oa.size||(rt(e.Sa).ea=null))},deferConnectionCallbacks:it.deferConnectionCallbacks,preferPerformance:it.preferPerformance,handlesDynamicScoping:!0,wrap:it.J?oo:io,wrapIfNeeded:!0===it.J?oo:function(e){return e},Wrapper:to,composedPath:function(e){return e.__composedPath||(e.__composedPath=hn(e.target,!0)),e.__composedPath},noPatch:it.J,patchOnDemand:it.Aa,nativeMethods:Ht,nativeTree:Gt,patchElementProto:Or};window.ShadyDOM=ao,function(){var e=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(Zt(window.EventTarget.prototype,e),void 0===window.__shady_native_addEventListener&&Zt(Window.prototype,e)):(Zt(Node.prototype,e),Zt(Window.prototype,e)),Bt?Zt(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Wt(Node.prototype,{parentNode:{get:function(){return Kt.currentNode=this,Kt.parentNode()}},firstChild:{get:function(){return Kt.currentNode=this,Kt.firstChild()}},lastChild:{get:function(){return Kt.currentNode=this,Kt.lastChild()}},previousSibling:{get:function(){return Kt.currentNode=this,Kt.previousSibling()}},nextSibling:{get:function(){return Kt.currentNode=this,Kt.nextSibling()}},childNodes:{get:function(){var e=[];Kt.currentNode=this;for(var t=Kt.firstChild();t;)e.push(t),t=Kt.nextSibling();return e}},parentElement:{get:function(){return Yt.currentNode=this,Yt.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var e,t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return this.nodeValue}},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Qt(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(e),void 0);break;default:this.nodeValue=e}}}}),Zt(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" ")),Zt(HTMLElement.prototype,["parentElement","contains"]),e={firstElementChild:{get:function(){return Yt.currentNode=this,Yt.firstChild()}},lastElementChild:{get:function(){return Yt.currentNode=this,Yt.lastChild()}},children:{get:function(){var e=[];Yt.currentNode=this;for(var t=Yt.firstChild();t;)e.push(t),t=Yt.nextSibling();return bt(e)}},childElementCount:{get:function(){return this.children?this.children.length:0}}},Bt?(Zt(Element.prototype,Xt),Zt(Element.prototype,["previousElementSibling","nextElementSibling","innerHTML","className"]),Zt(HTMLElement.prototype,["children","innerHTML","className"])):(Wt(Element.prototype,e),Wt(Element.prototype,{previousElementSibling:{get:function(){return Yt.currentNode=this,Yt.previousSibling()}},nextElementSibling:{get:function(){return Yt.currentNode=this,Yt.nextSibling()}},innerHTML:{get:function(){return Ut(this,wt)},set:function(e){var t="template"===this.localName?this.content:this;Qt(t);var n=this.localName||"div";for((n=this.namespaceURI&&this.namespaceURI!==qt.namespaceURI?qt.createElementNS(this.namespaceURI,n):qt.createElement(n)).innerHTML=e,e="template"===this.localName?n.content:n;n=e.__shady_native_firstChild;)t.__shady_native_insertBefore(n,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)}}})),Zt(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" ")),Zt(Element.prototype,$t),Zt(HTMLElement.prototype,["focus","blur"]),window.HTMLTemplateElement&&Zt(window.HTMLTemplateElement.prototype,["innerHTML"]),Bt?Zt(DocumentFragment.prototype,Xt):Wt(DocumentFragment.prototype,e),Zt(DocumentFragment.prototype,$t),Bt?(Zt(Document.prototype,Xt),Zt(Document.prototype,["activeElement"])):Wt(Document.prototype,e),Zt(Document.prototype,["importNode","getElementById","elementFromPoint",lt()]),Zt(Document.prototype,$t)}(),Nr("__shady_"),Object.defineProperty(document,"_activeElement",gr.activeElement),Et(Window.prototype,_r,"__shady_"),it.J?it.Aa&&Et(Element.prototype,cr):(Nr(),function(){if(!sn&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var e=function(){var e=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(e)};Element.prototype.click?Element.prototype.click=e:HTMLElement.prototype.click&&(HTMLElement.prototype.click=e)}}()),function(){for(var e in yn)window.__shady_native_addEventListener(e,(function(e){e.__target||(Nn(e),wn(e))}),!0)}(),window.Event=On,window.CustomEvent=xn,window.MouseEvent=An,window.ShadowRoot=zr}var lo=window.Document.prototype.createElement,so=window.Document.prototype.createElementNS,uo=window.Document.prototype.importNode,co=window.Document.prototype.prepend,fo=window.Document.prototype.append,po=window.DocumentFragment.prototype.prepend,ho=window.DocumentFragment.prototype.append,mo=window.Node.prototype.cloneNode,vo=window.Node.prototype.appendChild,yo=window.Node.prototype.insertBefore,go=window.Node.prototype.removeChild,bo=window.Node.prototype.replaceChild,wo=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),_o=window.Element.prototype.attachShadow,So=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Eo=window.Element.prototype.getAttribute,Co=window.Element.prototype.setAttribute,ko=window.Element.prototype.removeAttribute,No=window.Element.prototype.getAttributeNS,Oo=window.Element.prototype.setAttributeNS,xo=window.Element.prototype.removeAttributeNS,Ao=window.Element.prototype.insertAdjacentElement,Io=window.Element.prototype.insertAdjacentHTML,Po=window.Element.prototype.prepend,To=window.Element.prototype.append,Ro=window.Element.prototype.before,Lo=window.Element.prototype.after,Do=window.Element.prototype.replaceWith,jo=window.Element.prototype.remove,Mo=window.HTMLElement,Fo=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),zo=window.HTMLElement.prototype.insertAdjacentElement,Uo=window.HTMLElement.prototype.insertAdjacentHTML,Bo=new Set;function Ho(e){var t=Bo.has(e);return e=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(e),!t&&e}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach((function(e){return Bo.add(e)}));var Go=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function Vo(e){var t=e.isConnected;if(void 0!==t)return t;if(Go(e))return!0;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function Wo(e){var t=e.children;if(t)return Array.prototype.slice.call(t);for(t=[],e=e.firstChild;e;e=e.nextSibling)e.nodeType===Node.ELEMENT_NODE&&t.push(e);return t}function Zo(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function Ko(e,t,n){for(var r=e;r;){if(r.nodeType===Node.ELEMENT_NODE){var o=r;t(o);var i=o.localName;if("link"===i&&"import"===o.getAttribute("rel")){if(r=o.import,void 0===n&&(n=new Set),r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)Ko(r,t,n);r=Zo(e,o);continue}if("template"===i){r=Zo(e,o);continue}if(o=o.__CE_shadowRoot)for(o=o.firstChild;o;o=o.nextSibling)Ko(o,t,n)}r=r.firstChild?r.firstChild:Zo(e,r)}}function Yo(){var e=!(null==mi||!mi.noDocumentConstructionObserver),t=!(null==mi||!mi.shadyDomFastWalk);this.ca=[],this.g=[],this.W=!1,this.shadyDomFastWalk=t,this.nb=!e}function qo(e,t,n,r){var o=window.ShadyDOM;if(e.shadyDomFastWalk&&o&&o.inUse){if(t.nodeType===Node.ELEMENT_NODE&&n(t),t.querySelectorAll)for(e=o.nativeMethods.querySelectorAll.call(t,"*"),t=0;t<e.length;t++)n(e[t])}else Ko(t,n,r)}function Qo(e,t){e.W&&qo(e,t,(function(t){return Xo(e,t)}))}function Xo(e,t){if(e.W&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.ca.length;n++)e.ca[n](t);for(n=0;n<e.g.length;n++)e.g[n](t)}}function $o(e,t){var n=[];for(qo(e,t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state?e.connectedCallback(r):ti(e,r)}}function Jo(e,t){var n=[];for(qo(e,t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state&&e.disconnectedCallback(r)}}function ei(e,t,n){var r=(n=void 0===n?{}:n).ob,o=n.upgrade||function(t){return ti(e,t)},i=[];for(qo(e,t,(function(t){if(e.W&&Xo(e,t),"link"===t.localName&&"import"===t.getAttribute("rel")){var n=t.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_registry=document.__CE_registry),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:t.addEventListener("load",(function(){var n=t.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set;r&&(r.forEach((function(e){return i.add(e)})),i.delete(n)),ei(e,n,{ob:i,upgrade:o})}}))}else i.push(t)}),r),t=0;t<i.length;t++)o(i[t])}function ti(e,t){try{var n=t.ownerDocument,r=n.__CE_registry,o=r&&(n.defaultView||n.__CE_isImportDocument)?fi(r,t.localName):void 0;if(o&&void 0===t.__CE_state){o.constructionStack.push(t);try{try{if(new o.constructorFunction!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(s){throw t.__CE_state=2,s}if(t.__CE_state=1,t.__CE_definition=o,o.attributeChangedCallback&&t.hasAttributes()){var i=o.observedAttributes;for(o=0;o<i.length;o++){var a=i[o],l=t.getAttribute(a);null!==l&&e.attributeChangedCallback(t,a,null,l,null)}}Vo(t)&&e.connectedCallback(t)}}catch(s){ri(s)}}function ni(e,t,n,r){var o=t.__CE_registry;if(o&&(null===r||"http://www.w3.org/1999/xhtml"===r)&&(o=fi(o,n)))try{var i=new o.constructorFunction;if(void 0===i.__CE_state||void 0===i.__CE_definition)throw Error("Failed to construct '"+n+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==i.namespaceURI)throw Error("Failed to construct '"+n+"': The constructed element's namespace must be the HTML namespace.");if(i.hasAttributes())throw Error("Failed to construct '"+n+"': The constructed element must not have any attributes.");if(null!==i.firstChild)throw Error("Failed to construct '"+n+"': The constructed element must not have any children.");if(null!==i.parentNode)throw Error("Failed to construct '"+n+"': The constructed element must not have a parent node.");if(i.ownerDocument!==t)throw Error("Failed to construct '"+n+"': The constructed element's owner document is incorrect.");if(i.localName!==n)throw Error("Failed to construct '"+n+"': The constructed element's local name is incorrect.");return i}catch(a){return ri(a),t=null===r?lo.call(t,n):so.call(t,r,n),Object.setPrototypeOf(t,HTMLUnknownElement.prototype),t.__CE_state=2,t.__CE_definition=void 0,Xo(e,t),t}return Xo(e,t=null===r?lo.call(t,n):so.call(t,r,n)),t}function ri(e){var t=e.message,n=e.sourceURL||e.fileName||"",r=e.line||e.lineNumber||0,o=e.column||e.columnNumber||0,i=void 0;void 0===ErrorEvent.prototype.initErrorEvent?i=new ErrorEvent("error",{cancelable:!0,message:t,filename:n,lineno:r,colno:o,error:e}):((i=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,t,n,r),i.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===i.error&&Object.defineProperty(i,"error",{configurable:!0,enumerable:!0,get:function(){return e}}),window.dispatchEvent(i),i.defaultPrevented||console.error(e)}function oi(){var e=this;this.I=void 0,this.Ha=new Promise((function(t){e.g=t}))}function ii(e){var t=document;this.X=void 0,this.S=e,this.g=t,ei(this.S,this.g),"loading"===this.g.readyState&&(this.X=new MutationObserver(this.h.bind(this)),this.X.observe(this.g,{childList:!0,subtree:!0}))}function ai(e){e.X&&e.X.disconnect()}function li(e){this.ka=new Map,this.la=new Map,this.Ca=new Map,this.ta=!1,this.wa=new Map,this.ja=function(e){return e()},this.V=!1,this.ma=[],this.S=e,this.Da=e.nb?new ii(e):void 0}function si(e,t){if(!Ho(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(fi(e,t))throw Error("A custom element with name '"+t+"' has already been defined.");if(e.ta)throw Error("A custom element is already being defined.")}function ui(e,t,n){var r;e.ta=!0;try{var o=n.prototype;if(!(o instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=function(e){var t=o[e];if(void 0!==t&&!(t instanceof Function))throw Error("The '"+e+"' callback must be a function.");return t},a=i("connectedCallback"),l=i("disconnectedCallback"),s=i("adoptedCallback"),u=(r=i("attributeChangedCallback"))&&n.observedAttributes||[]}catch(c){throw c}finally{e.ta=!1}return n={localName:t,constructorFunction:n,connectedCallback:a,disconnectedCallback:l,adoptedCallback:s,attributeChangedCallback:r,observedAttributes:u,constructionStack:[]},e.la.set(t,n),e.Ca.set(n.constructorFunction,n),n}function ci(e){if(!1!==e.V){e.V=!1;for(var t=[],n=e.ma,r=new Map,o=0;o<n.length;o++)r.set(n[o],[]);for(ei(e.S,document,{upgrade:function(n){if(void 0===n.__CE_state){var o=n.localName,i=r.get(o);i?i.push(n):e.la.has(o)&&t.push(n)}}}),o=0;o<t.length;o++)ti(e.S,t[o]);for(o=0;o<n.length;o++){for(var i=n[o],a=r.get(i),l=0;l<a.length;l++)ti(e.S,a[l]);(i=e.wa.get(i))&&i.resolve(void 0)}n.length=0}}function fi(e,t){var n=e.la.get(t);if(n)return n;if(n=e.ka.get(t)){e.ka.delete(t);try{return ui(e,t,n())}catch(M){ri(M)}}}function di(e,t,n){function r(t){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],a=0;a<r.length;a++){var l=r[a];if(l instanceof Element&&Vo(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)o.push(l);else o.push(l)}for(t.apply(this,r),r=0;r<i.length;r++)Jo(e,i[r]);if(Vo(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&$o(e,i)}}void 0!==n.prepend&&(t.prepend=r(n.prepend)),void 0!==n.append&&(t.append=r(n.append))}function pi(e){function t(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var r=this,o=void 0;if(Vo(this)&&(o=[],qo(e,this,(function(e){e!==r&&o.push(e)}))),n.set.call(this,t),o)for(var i=0;i<o.length;i++){var a=o[i];1===a.__CE_state&&e.disconnectedCallback(a)}return this.ownerDocument.__CE_registry?ei(e,this):Qo(e,this),t}})}function n(t,n){t.insertAdjacentElement=function(t,r){var o=Vo(r);return t=n.call(this,t,r),o&&Jo(e,r),Vo(t)&&$o(e,r),t}}function r(t,n){function r(t,n){for(var r=[];t!==n;t=t.nextSibling)r.push(t);for(n=0;n<r.length;n++)ei(e,r[n])}t.insertAdjacentHTML=function(e,t){if("beforebegin"===(e=e.toLowerCase())){var o=this.previousSibling;n.call(this,e,t),r(o||this.parentNode.firstChild,this)}else if("afterbegin"===e)o=this.firstChild,n.call(this,e,t),r(this.firstChild,o);else if("beforeend"===e)o=this.lastChild,n.call(this,e,t),r(o||this.firstChild,null);else{if("afterend"!==e)throw new SyntaxError("The value provided ("+String(e)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,n.call(this,e,t),r(this.nextSibling,o)}}}_o&&(Element.prototype.attachShadow=function(t){if(t=_o.call(this,t),e.W&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.ca.length;n++)e.ca[n](t)}return this.__CE_shadowRoot=t}),So&&So.get?t(Element.prototype,So):Fo&&Fo.get?t(HTMLElement.prototype,Fo):function(e,t){e.W=!0,e.g.push(t)}(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return mo.call(this,!0).innerHTML},set:function(e){var t="template"===this.localName,n=t?this.content:this,r=so.call(document,this.namespaceURI,this.localName);for(r.innerHTML=e;0<n.childNodes.length;)go.call(n,n.childNodes[0]);for(e=t?r.content:r;0<e.childNodes.length;)vo.call(n,e.childNodes[0])}})})),Element.prototype.setAttribute=function(t,n){if(1!==this.__CE_state)return Co.call(this,t,n);var r=Eo.call(this,t);Co.call(this,t,n),n=Eo.call(this,t),e.attributeChangedCallback(this,t,r,n,null)},Element.prototype.setAttributeNS=function(t,n,r){if(1!==this.__CE_state)return Oo.call(this,t,n,r);var o=No.call(this,t,n);Oo.call(this,t,n,r),r=No.call(this,t,n),e.attributeChangedCallback(this,n,o,r,t)},Element.prototype.removeAttribute=function(t){if(1!==this.__CE_state)return ko.call(this,t);var n=Eo.call(this,t);ko.call(this,t),null!==n&&e.attributeChangedCallback(this,t,n,null,null)},Element.prototype.removeAttributeNS=function(t,n){if(1!==this.__CE_state)return xo.call(this,t,n);var r=No.call(this,t,n);xo.call(this,t,n);var o=No.call(this,t,n);r!==o&&e.attributeChangedCallback(this,n,r,o,t)},zo?n(HTMLElement.prototype,zo):Ao&&n(Element.prototype,Ao),Uo?r(HTMLElement.prototype,Uo):Io&&r(Element.prototype,Io),di(e,Element.prototype,{prepend:Po,append:To}),function(e){function t(t){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],a=0;a<r.length;a++){var l=r[a];if(l instanceof Element&&Vo(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)o.push(l);else o.push(l)}for(t.apply(this,r),r=0;r<i.length;r++)Jo(e,i[r]);if(Vo(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&$o(e,i)}}var n=Element.prototype;void 0!==Ro&&(n.before=t(Ro)),void 0!==Lo&&(n.after=t(Lo)),void 0!==Do&&(n.replaceWith=function(t){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=[];for(var o=[],i=0;i<n.length;i++){var a=n[i];if(a instanceof Element&&Vo(a)&&o.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(i=Vo(this),Do.apply(this,n),n=0;n<o.length;n++)Jo(e,o[n]);if(i)for(Jo(e,this),n=0;n<r.length;n++)(o=r[n])instanceof Element&&$o(e,o)}),void 0!==jo&&(n.remove=function(){var t=Vo(this);jo.call(this),t&&Jo(e,this)})}(e)}Yo.prototype.connectedCallback=function(e){var t=e.__CE_definition;if(t.connectedCallback)try{t.connectedCallback.call(e)}catch(j){ri(j)}},Yo.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;if(t.disconnectedCallback)try{t.disconnectedCallback.call(e)}catch(j){ri(j)}},Yo.prototype.attributeChangedCallback=function(e,t,n,r,o){var i=e.__CE_definition;if(i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(t))try{i.attributeChangedCallback.call(e,t,n,r,o)}catch(a){ri(a)}},oi.prototype.resolve=function(e){if(this.I)throw Error("Already resolved.");this.I=e,this.g(e)},ii.prototype.h=function(e){var t=this.g.readyState;for("interactive"!==t&&"complete"!==t||ai(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,r=0;r<n.length;r++)ei(this.S,n[r])},(e=li.prototype).eb=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");si(this,e),this.ka.set(e,t),this.ma.push(e),this.V||(this.V=!0,this.ja((function(){return ci(n)})))},e.define=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructors must be functions.");si(this,e),ui(this,e,t),this.ma.push(e),this.V||(this.V=!0,this.ja((function(){return ci(n)})))},e.upgrade=function(e){ei(this.S,e)},e.get=function(e){if(e=fi(this,e))return e.constructorFunction},e.whenDefined=function(e){if(!Ho(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var t=this.wa.get(e);if(t)return t.Ha;t=new oi,this.wa.set(e,t);var n=this.la.has(e)||this.ka.has(e);return e=-1===this.ma.indexOf(e),n&&e&&t.resolve(void 0),t.Ha},e.polyfillWrapFlushCallback=function(e){this.Da&&ai(this.Da);var t=this.ja;this.ja=function(n){return e((function(){return t(n)}))}},window.CustomElementRegistry=li,li.prototype.define=li.prototype.define,li.prototype.upgrade=li.prototype.upgrade,li.prototype.get=li.prototype.get,li.prototype.whenDefined=li.prototype.whenDefined,li.prototype.polyfillDefineLazy=li.prototype.eb,li.prototype.polyfillWrapFlushCallback=li.prototype.polyfillWrapFlushCallback;var hi={};var mi=window.customElements;function vi(){var e=new Yo;!function(e){function t(){var t=this.constructor,n=document.__CE_registry.Ca.get(t);if(!n)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var r=n.constructionStack;if(0===r.length)return r=lo.call(document,n.localName),Object.setPrototypeOf(r,t.prototype),r.__CE_state=1,r.__CE_definition=n,Xo(e,r),r;var o=r.length-1,i=r[o];if(i===hi)throw Error("Failed to construct '"+n.localName+"': This element was already constructed.");return r[o]=hi,Object.setPrototypeOf(i,t.prototype),Xo(e,i),i}t.prototype=Mo.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:t}),window.HTMLElement=t}(e),function(e){Document.prototype.createElement=function(t){return ni(e,this,t,null)},Document.prototype.importNode=function(t,n){return t=uo.call(this,t,!!n),this.__CE_registry?ei(e,t):Qo(e,t),t},Document.prototype.createElementNS=function(t,n){return ni(e,this,n,t)},di(e,Document.prototype,{prepend:co,append:fo})}(e),di(e,DocumentFragment.prototype,{prepend:po,append:ho}),function(e){function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var r=void 0;if(this.firstChild){var o=this.childNodes,i=o.length;if(0<i&&Vo(this)){r=Array(i);for(var a=0;a<i;a++)r[a]=o[a]}}if(n.set.call(this,t),r)for(t=0;t<r.length;t++)Jo(e,r[t])}}})}Node.prototype.insertBefore=function(t,n){if(t instanceof DocumentFragment){var r=Wo(t);if(t=yo.call(this,t,n),Vo(this))for(n=0;n<r.length;n++)$o(e,r[n]);return t}return r=t instanceof Element&&Vo(t),n=yo.call(this,t,n),r&&Jo(e,t),Vo(this)&&$o(e,t),n},Node.prototype.appendChild=function(t){if(t instanceof DocumentFragment){var n=Wo(t);if(t=vo.call(this,t),Vo(this))for(var r=0;r<n.length;r++)$o(e,n[r]);return t}return n=t instanceof Element&&Vo(t),r=vo.call(this,t),n&&Jo(e,t),Vo(this)&&$o(e,t),r},Node.prototype.cloneNode=function(t){return t=mo.call(this,!!t),this.ownerDocument.__CE_registry?ei(e,t):Qo(e,t),t},Node.prototype.removeChild=function(t){var n=t instanceof Element&&Vo(t),r=go.call(this,t);return n&&Jo(e,t),r},Node.prototype.replaceChild=function(t,n){if(t instanceof DocumentFragment){var r=Wo(t);if(t=bo.call(this,t,n),Vo(this))for(Jo(e,n),n=0;n<r.length;n++)$o(e,r[n]);return t}r=t instanceof Element&&Vo(t);var o=bo.call(this,t,n),i=Vo(this);return i&&Jo(e,n),r&&Jo(e,t),i&&$o(e,t),o},wo&&wo.get?t(Node.prototype,wo):function(e,t){e.W=!0,e.ca.push(t)}(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=this.firstChild;t;t=t.nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")},set:function(e){for(;this.firstChild;)go.call(this,this.firstChild);null!=e&&""!==e&&vo.call(this,document.createTextNode(e))}})}))}(e),pi(e),e=new li(e),document.__CE_registry=e,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:e})}function yi(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function gi(e){var t=e=e.replace(Oi,"").replace(xi,""),n=new yi;n.start=0,n.end=t.length;for(var r=n,o=0,i=t.length;o<i;o++)if("{"===t[o]){r.rules||(r.rules=[]);var a=r,l=a.rules[a.rules.length-1]||null;(r=new yi).start=o+1,r.parent=a,r.previous=l,a.rules.push(r)}else"}"===t[o]&&(r.end=o+1,r=r.parent||n);return bi(n,e)}function bi(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent&&(n=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(e,t){for(t=6-(e=t).length;t--;)e="0"+e;return"\\"+e}))}(n=t.substring(e.previous?e.previous.end:e.parent.start,e.start-1)),n=(n=n.replace(Li," ")).substring(n.lastIndexOf(";")+1),n=e.parsedSelector=e.selector=n.trim(),e.atRule=0===n.indexOf("@"),e.atRule?0===n.indexOf("@media")?e.type=ki:n.match(Ri)&&(e.type=Ci,e.keyframesName=e.selector.split(Li).pop()):e.type=0===n.indexOf("--")?Ni:Ei),n=e.rules)for(var r=0,o=n.length,i=void 0;r<o&&(i=n[r]);r++)bi(i,t);return e}function wi(e,t,n){n=void 0===n?"":n;var r="";if(e.cssText||e.rules){var o,i=e.rules;if((o=i)&&(o=!((o=i[0])&&o.selector&&0===o.selector.indexOf("--"))),o){o=0;for(var a=i.length,l=void 0;o<a&&(l=i[o]);o++)r=wi(l,t,r)}else t?t=e.cssText:t=(t=(t=e.cssText).replace(Ai,"").replace(Ii,"")).replace(Pi,"").replace(Ti,""),(r=t.trim())&&(r=" "+r+"\n")}return r&&(e.selector&&(n+=e.selector+" {\n"),n+=r,e.selector&&(n+="}\n\n")),n}mi&&!mi.forcePolyfill&&"function"==typeof mi.define&&"function"==typeof mi.get||vi(),window.__CE_installPolyfill=vi;var _i,Si,Ei=1,Ci=7,ki=4,Ni=1e3,Oi=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,xi=/@import[^;]*;/gim,Ai=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Ii=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Pi=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Ti=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Ri=/^@[^\s]*keyframes/,Li=/\s+/g,Di=!(window.ShadyDOM&&window.ShadyDOM.inUse);function ji(e){_i=(!e||!e.shimcssproperties)&&(Di||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Si=window.ShadyCSS.cssBuild);var Mi=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?_i=window.ShadyCSS.nativeCss:window.ShadyCSS?(ji(window.ShadyCSS),window.ShadyCSS=void 0):ji(window.WebComponents&&window.WebComponents.flags);var Fi=_i,zi=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Ui=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Bi=/(--[\w-]+)\s*([:,;)]|$)/gi,Hi=/(animation\s*:)|(animation-name\s*:)/,Gi=/@media\s(.*)/,Vi=/\{[^}]*\}/g,Wi=new Set;function Zi(e,t){return e?("string"==typeof e&&(e=gi(e)),t&&qi(e,t),wi(e,Fi)):""}function Ki(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=gi(e.textContent)),e.__cssRules||null}function Yi(e){return!!e.parent&&e.parent.type===Ci}function qi(e,t,n,r){if(e){var o=!1,i=e.type;if(r&&i===ki){var a=e.selector.match(Gi);a&&(window.matchMedia(a[1]).matches||(o=!0))}if(i===Ei?t(e):n&&i===Ci?n(e):i===Ni&&(o=!0),(e=e.rules)&&!o)for(o=0,i=e.length,a=void 0;o<i&&(a=e[o]);o++)qi(a,t,n,r)}}function Qi(e,t,n,r){var o=document.createElement("style");return t&&o.setAttribute("scope",t),o.textContent=e,Ji(o,n,r),o}var Xi=null;function $i(e){e=document.createComment(" Shady DOM styles for "+e+" ");var t=document.head;return t.insertBefore(e,(Xi?Xi.nextSibling:null)||t.firstChild),Xi=e}function Ji(e,t,n){(t=t||document.head).insertBefore(e,n&&n.nextSibling||t.firstChild),Xi?e.compareDocumentPosition(Xi)===Node.DOCUMENT_POSITION_PRECEDING&&(Xi=e):Xi=e}function ea(e,t){for(var n=0,r=e.length;t<r;t++)if("("===e[t])n++;else if(")"===e[t]&&0==--n)return t;return-1}function ta(e,t){var n=e.indexOf("var(");if(-1===n)return t(e,"","","");var r=ea(e,n+3),o=e.substring(n+4,r);return n=e.substring(0,n),e=ta(e.substring(r+1),t),-1===(r=o.indexOf(","))?t(n,o.trim(),"",e):t(n,o.substring(0,r).trim(),o.substring(r+1).trim(),e)}function na(e,t){Di?e.setAttribute("class",t):window.ShadyDOM.nativeMethods.setAttribute.call(e,"class",t)}var ra=window.ShadyDOM&&window.ShadyDOM.wrap||function(e){return e};function oa(e){var t=e.localName,n="";return t?-1<t.indexOf("-")||(n=t,t=e.getAttribute&&e.getAttribute("is")||""):(t=e.is,n=e.extends),{is:t,ha:n}}function ia(e){for(var t=[],n="",r=0;0<=r&&r<e.length;r++)if("("===e[r]){var o=ea(e,r);n+=e.slice(r,o+1),r=o}else","===e[r]?(t.push(n),n=""):n+=e[r];return n&&t.push(n),t}function aa(e){if(void 0!==Si)return Si;if(void 0===e.__cssBuild){var t=e.getAttribute("css-build");if(t)e.__cssBuild=t;else{if(""!==(t=(t="template"===e.localName?e.content.firstChild:e.firstChild)instanceof Comment&&"css-build"===(t=t.textContent.trim().split(":"))[0]?t[1]:"")){var n="template"===e.localName?e.content.firstChild:e.firstChild;n.parentNode.removeChild(n)}e.__cssBuild=t}}return e.__cssBuild||""}function la(e){return!(""===(e=void 0===e?"":e)||!Fi)&&(Di?"shadow"===e:"shady"===e)}function sa(){}function ua(e,t,n){var r;if(t.nodeType===Node.ELEMENT_NODE&&n(t),r="template"===t.localName?(t.content||t._content||t).childNodes:t.children||t.childNodes)for(t=0;t<r.length;t++)ua(e,r[t],n)}function ca(e,t,n){if(t)if(e.classList)n?(e.classList.remove("style-scope"),e.classList.remove(t)):(e.classList.add("style-scope"),e.classList.add(t));else if(e.getAttribute){var r=e.getAttribute("class");n?r&&na(e,t=r.replace("style-scope","").replace(t,"")):na(e,(r?r+" ":"")+"style-scope "+t)}}function fa(e,t,n){ua(Oa,e,(function(e){ca(e,t,!0),ca(e,n)}))}function da(e,t){ua(Oa,e,(function(e){ca(e,t||"",!0)}))}function pa(e,t,n,r,o){var i=Oa;return""===(o=void 0===o?"":o)&&(Di||"shady"===(void 0===r?"":r)?o=Zi(t,n):o=function(e,t,n,r,o){var i=ha(n,r);return n=n?"."+n:"",Zi(t,(function(t){t.i||(t.selector=t.F=ma(e,t,e.h,n,i),t.i=!0),o&&o(t,n,i)}))}(i,t,(e=oa(e)).is,e.ha,n)+"\n\n"),o.trim()}function ha(e,t){return t?"[is="+e+"]":e}function ma(e,t,n,r,o){var i=ia(t.selector);if(!Yi(t)){t=0;for(var a=i.length,l=void 0;t<a&&(l=i[t]);t++)i[t]=n.call(e,l,r,o)}return i.filter((function(e){return!!e})).join(",")}function va(e){return e.replace(ba,(function(e,t,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+t+"("+n+")"}))}function ya(e,t){e=e.split(/(\[.+?\])/);for(var n=[],r=0;r<e.length;r++)if(1==r%2)n.push(e[r]);else{var o=e[r];""===o&&r===e.length-1||((o=o.split(":"))[0]+=t,n.push(o.join(":")))}return n.join("")}function ga(e){":root"===e.selector&&(e.selector="html")}sa.prototype.h=function(e,t,n){var r=!1;e=e.trim();var o=ba.test(e);o&&(e=va(e=e.replace(ba,(function(e,t,n){return":"+t+"("+n.replace(/\s/g,"")+")"}))));var i=Na.test(e);if(i){var a=function(e){for(var t,n=[];t=e.match(Na);){var r=t.index,o=ea(e,r);if(-1===o)throw Error(t.input+" selector missing ')'");t=e.slice(r,o+1),e=e.replace(t,""),n.push(t)}return{Ba:e,matches:n}}(e);e=a.Ba,a=a.matches}return e=(e=e.replace(Sa,":host $1")).replace(wa,(function(e,o,i){return r||(e=function(e,t,n,r){var o=e.indexOf("::slotted");if(0<=e.indexOf(":host")?e=function(e,t){var n=e.match(Ea);return(n=n&&n[2].trim()||"")?n[0].match(_a)?e.replace(Ea,(function(e,n,r){return t+r})):n.split(_a)[0]===t?n:"should_not_match":e.replace(":host",t)}(e,r):0!==o&&(e=n?ya(e,n):e),n=!1,0<=o&&(t="",n=!0),n){var i=!0;n&&(e=e.replace(Ca,(function(e,t){return" > "+t})))}return{value:e,Ua:t,stop:i}}(i,o,t,n),r=r||e.stop,o=e.Ua,i=e.value),o+i})),i&&(e=function(e,t){var n=e.split("");return t.reduce((function(e,t,r){return e+t+n[r+1]}),n[0])}(e,a)),o&&(e=va(e)),e.replace(ka,(function(e,t,n,r){return'[dir="'+n+'"] '+t+r+", "+t+'[dir="'+n+'"]'+r}))},sa.prototype.i=function(e){return e.match(":host")?"":e.match("::slotted")?this.h(e,":not(.style-scope)"):ya(e.trim(),":not(.style-scope)")},a.Object.defineProperties(sa.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var ba=/:(nth[-\w]+)\(([^)]+)\)/,wa=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,_a=/[[.:#*]/,Sa=/^(::slotted)/,Ea=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ca=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ka=/(.*):dir\((?:(ltr|rtl))\)(.*)/,Na=/:(?:matches|any|-(?:webkit|moz)-any)/,Oa=new sa;function xa(e,t,n,r,o){this.M=e||null,this.h=t||null,this.za=n||[],this.K=null,this.cssBuild=o||"",this.ha=r||"",this.g=this.L=this.R=null}function Aa(e){return e?e.__styleInfo:null}function Ia(e,t){return e.__styleInfo=t}function Pa(e){var t=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return t&&t.call(this,e)}xa.prototype.i=function(){return this.M},xa.prototype._getStyleRules=xa.prototype.i;var Ta=/:host\s*>\s*/,Ra=navigator.userAgent.match("Trident");function La(){}function Da(e){if(!e.D){var t={},n={};ja(e,n)&&(t.P=n,e.rules=null),t.cssText=e.parsedCssText.replace(Vi,"").replace(zi,""),e.D=t}}function ja(e,t){var n=e.D;if(!n){n=e.parsedCssText;for(var r;e=zi.exec(n);)"inherit"===(r=(e[2]||e[3]).trim())&&"unset"===r||(t[e[1].trim()]=r),r=!0;return r}if(n.P)return Object.assign(t,n.P),!0}function Ma(e,t,n){return t&&(t=0<=t.indexOf(";")?Fa(e,t,n):ta(t,(function(t,r,o,i){return r?((r=Ma(e,n[r],n))&&"initial"!==r?"apply-shim-inherit"===r&&(r="inherit"):r=Ma(e,n[o]||o,n)||o,t+(r||"")+i):t+i}))),t&&t.trim()||""}function Fa(e,t,n){t=t.split(";");for(var r,o,i=0;i<t.length;i++)if(r=t[i]){if(Ui.lastIndex=0,o=Ui.exec(r))r=Ma(e,n[o[1]],n);else if(-1!==(o=r.indexOf(":"))){var a=r.substring(o);a=Ma(e,a=a.trim(),n)||a,r=r.substring(0,o)+a}t[i]=r&&r.lastIndexOf(";")===r.length-1?r.slice(0,-1):r||""}return t.join(";")}function za(e,t,n){var r={},o={};return qi(t,(function(t){!function(e,t,n,r){if(t.D||Da(t),t.D.P){var o=oa(e);e=o.is,o=o.ha,o=e?ha(e,o):"html";var i=t.parsedSelector,a=!!i.match(Ta)||"html"===o&&-1<i.indexOf("html"),l=0===i.indexOf(":host")&&!a;"shady"===n&&(l=!(a=i===o+" > *."+o||-1!==i.indexOf("html"))&&0===i.indexOf(o)),(a||l)&&(n=o,l&&(t.F||(t.F=ma(Oa,t,Oa.h,e?"."+e:"",o)),n=t.F||o),a&&"html"===o&&(n=t.F||t.O),r({Ba:n,ab:l,qb:a}))}}(e,t,n,(function(n){Pa.call(e._element||e,n.Ba)&&(n.ab?ja(t,r):ja(t,o))}))}),null,!0),{hb:o,Za:r}}function Ua(e,t,n,r){var o=oa(t),i=ha(o.is,o.ha),a=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),l=Aa(t);o=l.M,l=l.cssBuild;var s=function(e,t){e=e.h;var n={};if(!Di&&e)for(var r=0,o=e[r];r<e.length;o=e[++r]){var i=o,a=t;i.u=new RegExp("\\b"+i.keyframesName+"(?!\\B|-)","g"),i.g=i.keyframesName+"-"+a,i.F=i.F||i.selector,i.selector=i.F.replace(i.keyframesName,i.g),n[o.keyframesName]=Ba(o)}return n}(o,r);return pa(t,o,(function(t){var o="";if(t.D||Da(t),t.D.cssText&&(o=Fa(e,t.D.cssText,n)),t.cssText=o,!Di&&!Yi(t)&&t.cssText){var l=o=t.cssText;if(null==t.Ia&&(t.Ia=Hi.test(o)),t.Ia)if(null==t.pa)for(var u in t.pa=[],s)o!==(l=(l=s[u])(o))&&(o=l,t.pa.push(u));else{for(u=0;u<t.pa.length;++u)o=(l=s[t.pa[u]])(o);l=o}t.cssText=l,t.F=t.F||t.selector,o="."+r,l=0;for(var c=(u=ia(t.F)).length,f=void 0;l<c&&(f=u[l]);l++)u[l]=f.match(a)?f.replace(i,o):o+" "+f;t.selector=u.join(",")}}),l)}function Ba(e){return function(t){return t.replace(e.u,e.g)}}function Ha(e,t){var n=Ga,r=Ki(e);e.textContent=Zi(r,(function(e){var r=e.cssText=e.parsedCssText;e.D&&e.D.cssText&&(r=r.replace(Ai,"").replace(Ii,""),e.cssText=Fa(n,r,t))}))}a.Object.defineProperties(La.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Ga=new La,Va={},Wa=window.customElements;if(Wa&&!Di&&!Mi){var Za=Wa.define;Wa.define=function(e,t,n){Va[e]||(Va[e]=$i(e)),Za.call(Wa,e,t,n)}}function Ka(){this.cache={}}function Ya(){}Ka.prototype.store=function(e,t,n,r){var o=this.cache[e]||[];o.push({P:t,styleElement:n,L:r}),100<o.length&&o.shift(),this.cache[e]=o};var qa=new RegExp(Oa.g+"\\s*([^\\s]*)");function Qa(e){return(e=(e.classList&&e.classList.value?e.classList.value:e.getAttribute("class")||"").match(qa))?e[1]:""}function Xa(e){var t=ra(e).getRootNode();return t===e||t===e.ownerDocument?"":(e=t.host)?oa(e).is:""}function $a(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var o=n.addedNodes[r];if(o.nodeType===Node.ELEMENT_NODE){var i=o.getRootNode(),a=Qa(o);if(a&&i===o.ownerDocument&&("style"!==o.localName&&"template"!==o.localName||""===aa(o)))da(o,a);else if(i instanceof ShadowRoot)for((i=Xa(o))!==a&&fa(o,a,i),o=window.ShadyDOM.nativeMethods.querySelectorAll.call(o,":not(."+Oa.g+")"),a=0;a<o.length;a++){var l=Xa(i=o[a]);l&&ca(i,l)}}}}}if(!(Di||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Ja=new MutationObserver($a),el=function(e){Ja.observe(e,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)el(document);else{var tl=function(){el(document.body)};window.HTMLImports?window.HTMLImports.whenReady(tl):requestAnimationFrame((function(){if("loading"===document.readyState){document.addEventListener("readystatechange",(function e(){tl(),document.removeEventListener("readystatechange",e)}))}else tl()}))}Ya=function(){$a(Ja.takeRecords())}}var nl={},rl=Promise.resolve();function ol(e){(e=nl[e])&&(e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1)}function il(e){return e._applyShimCurrentVersion===e._applyShimNextVersion}var al={},ll=new Ka;function sl(){this.da={},this.i=document.documentElement;var e=new yi;e.rules=[],this.u=Ia(this.i,new xa(e)),this.O=!1,this.g=this.h=null}function ul(e){var t=oa(e),n=t.is;t=t.ha;var r=Va[n]||null,o=nl[n];if(o)return Ia(e,t=new xa(n=o._styleAst,r,o.g,t,o=aa(o))),t}function cl(e){if(!e.h&&window.ShadyCSS&&window.ShadyCSS.ApplyShim){e.h=window.ShadyCSS.ApplyShim,e.h.invalidCallback=ol;var t=!0}else t=!1;return function(e){!e.g&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(e.g=window.ShadyCSS.CustomStyleInterface,e.g.transformCallback=function(t){e.Ma(t)},e.g.validateCallback=function(){requestAnimationFrame((function(){(e.g.enqueued||e.O)&&e.flushCustomStyles()}))})}(e),t}function fl(e,t,n){var r=oa(t).is;if(n.K){var o,i=n.K;for(o in i)null===o?t.style.removeProperty(o):t.style.setProperty(o,i[o])}!(i=nl[r])&&t!==e.i||i&&""!==aa(i)||!i||!i._style||il(i)||((il(i)||i._applyShimValidatingVersion!==i._applyShimNextVersion)&&(cl(e),e.h&&e.h.transformRules(i._styleAst,r),i._style.textContent=pa(t,n.M),function(e){e._applyShimValidatingVersion=e._applyShimNextVersion,e._validating||(e._validating=!0,rl.then((function(){e._applyShimCurrentVersion=e._applyShimNextVersion,e._validating=!1})))}(i)),Di&&(e=t.shadowRoot)&&(e=e.querySelector("style"))&&(e.textContent=pa(t,n.M)),n.M=i._styleAst)}function dl(e,t){return(t=ra(t).getRootNode().host)?Aa(t)||ul(t)?t:dl(e,t):e.i}function pl(e,t,n){var r=dl(e,t),o=Aa(r),i=o.R;for(var a in r===e.i||i||(pl(e,r,o),i=o.R),e=Object.create(i||null),r=za(t,n.M,n.cssBuild),t=function(e,t){var n={},r=[];return qi(e,(function(e){e.D||Da(e);var o=e.F||e.parsedSelector;t&&e.D.P&&o&&Pa.call(t,o)&&(ja(e,n),e=e.index,o=parseInt(e/32,10),r[o]=(r[o]||0)|1<<e%32)}),null,!0),{P:n,key:r}}(o.M,t).P,Object.assign(e,r.Za,t,r.hb),t=n.K)((o=t[a])||0===o)&&(e[a]=o);for(a=Ga,t=Object.getOwnPropertyNames(e),o=0;o<t.length;o++)e[r=t[o]]=Ma(a,e[r],e);n.R=e}(e=sl.prototype).flush=function(){Ya()},e.Xa=function(e){return Ki(e)},e.lb=function(e){return Zi(e)},e.prepareTemplate=function(e,t,n){this.prepareTemplateDom(e,t),this.prepareTemplateStyles(e,t,n)},e.prepareTemplateStyles=function(e,t,n){if(!e._prepared&&!Mi){Di||Va[t]||(Va[t]=$i(t)),e._prepared=!0,e.name=t,e.extends=n,nl[t]=e;var r=aa(e),o=la(r);n={is:t,extends:n};for(var i=[],a=e.content.querySelectorAll("style"),l=0;l<a.length;l++){var s=a[l];if(s.hasAttribute("shady-unscoped")){if(!Di){var u=s.textContent;if(!Wi.has(u)){Wi.add(u);var c=document.createElement("style");c.setAttribute("shady-unscoped",""),c.textContent=u,document.head.appendChild(c)}s.parentNode.removeChild(s)}}else i.push(s.textContent),s.parentNode.removeChild(s)}i=i.join("").trim()+(al[t]||""),cl(this),o||((a=!r)&&(a=Ui.test(i)||zi.test(i),Ui.lastIndex=0,zi.lastIndex=0),l=gi(i),a&&Fi&&this.h&&this.h.transformRules(l,t),e._styleAst=l),a=[],Fi||(a=function(e){var t={},n=[],r=0;for(var o in qi(e,(function(e){Da(e),e.index=r++,e=e.D.cssText;for(var n;n=Bi.exec(e);){var o=n[1];":"!==n[2]&&(t[o]=!0)}}),(function(e){n.push(e)})),e.h=n,e=[],t)e.push(o);return e}(e._styleAst)),a.length&&!Fi||(l=Di?e.content:null,t=Va[t]||null,r=(r=pa(n,e._styleAst,null,r,o?i:"")).length?Qi(r,n.is,l,t):null,e._style=r),e.g=a}},e.fb=function(e,t){al[t]=e.join(" ")},e.prepareTemplateDom=function(e,t){if(!Mi){var n=aa(e);Di||"shady"===n||e._domPrepared||(e._domPrepared=!0,function(e,t){ua(Oa,e,(function(e){ca(e,t||"")}))}(e.content,t))}},e.flushCustomStyles=function(){if(!Mi){var e=cl(this);if(this.g){var t=this.g.processStyles();if((e||this.g.enqueued)&&!la(this.u.cssBuild)){if(Fi){if(!this.u.cssBuild)for(e=0;e<t.length;e++){var n=this.g.getStyleForCustomStyle(t[e]);if(n&&Fi&&this.h){var r=Ki(n);cl(this),this.h.transformRules(r),n.textContent=Zi(r)}}}else{for(function(e,t){t=t.map((function(t){return e.g.getStyleForCustomStyle(t)})).filter((function(e){return!!e})),t.sort((function(e,t){return(e=t.compareDocumentPosition(e))&Node.DOCUMENT_POSITION_FOLLOWING?1:e&Node.DOCUMENT_POSITION_PRECEDING?-1:0})),e.u.M.rules=t.map((function(e){return Ki(e)}))}(this,t),pl(this,this.i,this.u),e=0;e<t.length;e++)(n=this.g.getStyleForCustomStyle(t[e]))&&Ha(n,this.u.R);this.O&&this.styleDocument()}this.g.enqueued=!1}}}},e.styleElement=function(e,t){if(Mi){if(t){Aa(e)||Ia(e,new xa(null));var n=Aa(e);n.K=n.K||{},Object.assign(n.K,t),fl(this,e,n)}}else if(n=Aa(e)||ul(e))if(e!==this.i&&(this.O=!0),t&&(n.K=n.K||{},Object.assign(n.K,t)),Fi)fl(this,e,n);else if(this.flush(),pl(this,e,n),n.za&&n.za.length){var r;t=oa(e).is;e:{if(r=ll.cache[t])for(var o=r.length-1;0<=o;o--){var i=r[o];t:{for(var a=n.za,l=0;l<a.length;l++){var s=a[l];if(i.P[s]!==n.R[s]){a=!1;break t}}a=!0}if(a){r=i;break e}}r=void 0}a=r?r.styleElement:null,o=n.L,(i=r&&r.L)||(i=t+"-"+(i=this.da[t]=(this.da[t]||0)+1)),n.L=i,i=n.L,l=Ga,l=a?a.textContent||"":Ua(l,e,n.R,i);var u=(s=Aa(e)).g;u&&!Di&&u!==a&&(u._useCount--,0>=u._useCount&&u.parentNode&&u.parentNode.removeChild(u)),Di?s.g?(s.g.textContent=l,a=s.g):l&&(a=Qi(l,i,e.shadowRoot,s.h)):a?a.parentNode||(Ra&&-1<l.indexOf("@media")&&(a.textContent=l),Ji(a,null,s.h)):l&&(a=Qi(l,i,null,s.h)),a&&(a._useCount=a._useCount||0,s.g!=a&&a._useCount++,s.g=a),i=a,Di||(a=n.L,s=l=e.getAttribute("class")||"",o&&(s=l.replace(new RegExp("\\s*x-scope\\s*"+o+"\\s*","g")," ")),l!==(s+=(s?" ":"")+"x-scope "+a)&&na(e,s)),r||ll.store(t,n.R,i,n.L)}},e.styleDocument=function(e){this.styleSubtree(this.i,e)},e.styleSubtree=function(e,t){var n=ra(e),r=n.shadowRoot,o=e===this.i;if((r||o)&&this.styleElement(e,t),e=o?n:r)for(e=Array.from(e.querySelectorAll("*")).filter((function(e){return ra(e).shadowRoot})),t=0;t<e.length;t++)this.styleSubtree(e[t])},e.Ma=function(e){var t=this,n=aa(e);if(n!==this.u.cssBuild&&(this.u.cssBuild=n),!la(n)){var r=Ki(e);qi(r,(function(e){if(Di)ga(e);else{var r=Oa;e.selector=e.parsedSelector,ga(e),e.selector=e.F=ma(r,e,r.i,void 0,void 0)}Fi&&""===n&&(cl(t),t.h&&t.h.transformRule(e))})),Fi?e.textContent=Zi(r):this.u.M.rules.push(r)}},e.getComputedStyleValue=function(e,t){var n;return Fi||(n=(Aa(e)||Aa(dl(this,e))).R[t]),(n=n||window.getComputedStyle(e).getPropertyValue(t))?n.trim():""},e.kb=function(e,t){var n=ra(e).getRootNode();if(t=t?("string"==typeof t?t:String(t)).split(/\s/):[],!(n=n.host&&n.host.localName)){var r=e.getAttribute("class");if(r){r=r.split(/\s/);for(var o=0;o<r.length;o++)if(r[o]===Oa.g){n=r[o+1];break}}}n&&t.push(Oa.g,n),Fi||(n=Aa(e))&&n.L&&t.push(Ga.g,n.L),na(e,t.join(" "))},e.Ta=function(e){return Aa(e)},e.jb=function(e,t){ca(e,t)},e.mb=function(e,t){ca(e,t,!0)},e.ib=function(e){return Xa(e)},e.Va=function(e){return Qa(e)},sl.prototype.flush=sl.prototype.flush,sl.prototype.prepareTemplate=sl.prototype.prepareTemplate,sl.prototype.styleElement=sl.prototype.styleElement,sl.prototype.styleDocument=sl.prototype.styleDocument,sl.prototype.styleSubtree=sl.prototype.styleSubtree,sl.prototype.getComputedStyleValue=sl.prototype.getComputedStyleValue,sl.prototype.setElementClass=sl.prototype.kb,sl.prototype._styleInfoForNode=sl.prototype.Ta,sl.prototype.transformCustomStyleForDocument=sl.prototype.Ma,sl.prototype.getStyleAst=sl.prototype.Xa,sl.prototype.styleAstToString=sl.prototype.lb,sl.prototype.flushCustomStyles=sl.prototype.flushCustomStyles,sl.prototype.scopeNode=sl.prototype.jb,sl.prototype.unscopeNode=sl.prototype.mb,sl.prototype.scopeForNode=sl.prototype.ib,sl.prototype.currentScopeForNode=sl.prototype.Va,sl.prototype.prepareAdoptedCssText=sl.prototype.fb,Object.defineProperties(sl.prototype,{nativeShadow:{get:function(){return Di}},nativeCss:{get:function(){return Fi}}});var hl,ml,vl=new sl;window.ShadyCSS&&(hl=window.ShadyCSS.ApplyShim,ml=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:vl,prepareTemplate:function(e,t,n){vl.flushCustomStyles(),vl.prepareTemplate(e,t,n)},prepareTemplateDom:function(e,t){vl.prepareTemplateDom(e,t)},prepareTemplateStyles:function(e,t,n){vl.flushCustomStyles(),vl.prepareTemplateStyles(e,t,n)},styleSubtree:function(e,t){vl.flushCustomStyles(),vl.styleSubtree(e,t)},styleElement:function(e){vl.flushCustomStyles(),vl.styleElement(e)},styleDocument:function(e){vl.flushCustomStyles(),vl.styleDocument(e)},flushCustomStyles:function(){vl.flushCustomStyles()},getComputedStyleValue:function(e,t){return vl.getComputedStyleValue(e,t)},nativeCss:Fi,nativeShadow:Di,cssBuild:Si,disableRuntime:Mi},hl&&(window.ShadyCSS.ApplyShim=hl),ml&&(window.ShadyCSS.CustomStyleInterface=ml),function(e){function t(e){return""==e&&(i.call(this),this.m=!0),e.toLowerCase()}function n(e){var t=e.charCodeAt(0);return 32<t&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function r(e){var t=e.charCodeAt(0);return 32<t&&127>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function o(e,o,a){function l(e){y.push(e)}var s=o||"scheme start",p=0,h="",m=!1,v=!1,y=[];e:for(;(null!=e[p-1]||0==p)&&!this.m;){var g=e[p];switch(s){case"scheme start":if(!g||!f.test(g)){if(o){l("Invalid scheme.");break e}h="",s="no scheme";continue}h+=g.toLowerCase(),s="scheme";break;case"scheme":if(g&&d.test(g))h+=g.toLowerCase();else{if(":"!=g){if(o){null!=g&&l("Code point not allowed in scheme: "+g);break e}h="",p=0,s="no scheme";continue}if(this.l=h,h="",o)break e;void 0!==u[this.l]&&(this.G=!0),s="file"==this.l?"relative":this.G&&a&&a.l==this.l?"relative or authority":this.G?"authority first slash":"scheme data"}break;case"scheme data":"?"==g?(this.A="?",s="query"):"#"==g?(this.C="#",s="fragment"):null!=g&&"\t"!=g&&"\n"!=g&&"\r"!=g&&(this.va+=n(g));break;case"no scheme":if(a&&void 0!==u[a.l]){s="relative";continue}l("Missing scheme."),i.call(this),this.m=!0;break;case"relative or authority":if("/"!=g||"/"!=e[p+1]){l("Expected /, got: "+g),s="relative";continue}s="authority ignore slashes";break;case"relative":if(this.G=!0,"file"!=this.l&&(this.l=a.l),null==g){this.o=a.o,this.v=a.v,this.s=a.s.slice(),this.A=a.A,this.B=a.B,this.j=a.j;break e}if("/"==g||"\\"==g)"\\"==g&&l("\\ is an invalid code point."),s="relative slash";else if("?"==g)this.o=a.o,this.v=a.v,this.s=a.s.slice(),this.A="?",this.B=a.B,this.j=a.j,s="query";else{if("#"!=g){s=e[p+1];var b=e[p+2];("file"!=this.l||!f.test(g)||":"!=s&&"|"!=s||null!=b&&"/"!=b&&"\\"!=b&&"?"!=b&&"#"!=b)&&(this.o=a.o,this.v=a.v,this.B=a.B,this.j=a.j,this.s=a.s.slice(),this.s.pop()),s="relative path";continue}this.o=a.o,this.v=a.v,this.s=a.s.slice(),this.A=a.A,this.C="#",this.B=a.B,this.j=a.j,s="fragment"}break;case"relative slash":if("/"!=g&&"\\"!=g){"file"!=this.l&&(this.o=a.o,this.v=a.v,this.B=a.B,this.j=a.j),s="relative path";continue}"\\"==g&&l("\\ is an invalid code point."),s="file"==this.l?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=g){l("Expected '/', got: "+g),s="authority ignore slashes";continue}s="authority second slash";break;case"authority second slash":if(s="authority ignore slashes","/"!=g){l("Expected '/', got: "+g);continue}break;case"authority ignore slashes":if("/"!=g&&"\\"!=g){s="authority";continue}l("Expected authority, got: "+g);break;case"authority":if("@"==g){for(m&&(l("@ already seen."),h+="%40"),m=!0,g=0;g<h.length;g++)"\t"==(b=h[g])||"\n"==b||"\r"==b?l("Invalid whitespace in authority."):":"==b&&null===this.j?this.j="":(b=n(b),null!==this.j?this.j+=b:this.B+=b);h=""}else{if(null==g||"/"==g||"\\"==g||"?"==g||"#"==g){p-=h.length,h="",s="host";continue}h+=g}break;case"file host":if(null==g||"/"==g||"\\"==g||"?"==g||"#"==g){2!=h.length||!f.test(h[0])||":"!=h[1]&&"|"!=h[1]?(0!=h.length&&(this.o=t.call(this,h),h=""),s="relative path start"):s="relative path";continue}"\t"==g||"\n"==g||"\r"==g?l("Invalid whitespace in file host."):h+=g;break;case"host":case"hostname":if(":"!=g||v){if(null==g||"/"==g||"\\"==g||"?"==g||"#"==g){if(this.o=t.call(this,h),h="",s="relative path start",o)break e;continue}"\t"!=g&&"\n"!=g&&"\r"!=g?("["==g?v=!0:"]"==g&&(v=!1),h+=g):l("Invalid code point in host/hostname: "+g)}else if(this.o=t.call(this,h),h="",s="port","hostname"==o)break e;break;case"port":if(/[0-9]/.test(g))h+=g;else{if(null==g||"/"==g||"\\"==g||"?"==g||"#"==g||o){if(""!=h&&((h=parseInt(h,10))!=u[this.l]&&(this.v=h+""),h=""),o)break e;s="relative path start";continue}"\t"==g||"\n"==g||"\r"==g?l("Invalid code point in port: "+g):(i.call(this),this.m=!0)}break;case"relative path start":if("\\"==g&&l("'\\' not allowed in path."),s="relative path","/"!=g&&"\\"!=g)continue;break;case"relative path":null!=g&&"/"!=g&&"\\"!=g&&(o||"?"!=g&&"#"!=g)?"\t"!=g&&"\n"!=g&&"\r"!=g&&(h+=n(g)):("\\"==g&&l("\\ not allowed in relative path."),(b=c[h.toLowerCase()])&&(h=b),".."==h?(this.s.pop(),"/"!=g&&"\\"!=g&&this.s.push("")):"."==h&&"/"!=g&&"\\"!=g?this.s.push(""):"."!=h&&("file"==this.l&&0==this.s.length&&2==h.length&&f.test(h[0])&&"|"==h[1]&&(h=h[0]+":"),this.s.push(h)),h="","?"==g?(this.A="?",s="query"):"#"==g&&(this.C="#",s="fragment"));break;case"query":o||"#"!=g?null!=g&&"\t"!=g&&"\n"!=g&&"\r"!=g&&(this.A+=r(g)):(this.C="#",s="fragment");break;case"fragment":null!=g&&"\t"!=g&&"\n"!=g&&"\r"!=g&&(this.C+=g)}p++}}function i(){this.B=this.va=this.l="",this.j=null,this.v=this.o="",this.s=[],this.C=this.A="",this.G=this.m=!1}function a(e,t){void 0===t||t instanceof a||(t=new a(String(t))),this.g=e,i.call(this),o.call(this,this.g.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,""),null,t)}var l=!1;try{var s=new URL("b","http://a");s.pathname="c%20d",l="http://a/c%20d"===s.href}catch(h){}if(!l){var u=Object.create(null);u.ftp=21,u.file=0,u.gopher=70,u.http=80,u.https=443,u.ws=80,u.wss=443;var c=Object.create(null);c["%2e"]=".",c[".%2e"]="..",c["%2e."]="..",c["%2e%2e"]="..";var f=/[a-zA-Z]/,d=/[a-zA-Z0-9+\-.]/;a.prototype={toString:function(){return this.href},get href(){if(this.m)return this.g;var e="";return""==this.B&&null==this.j||(e=this.B+(null!=this.j?":"+this.j:"")+"@"),this.protocol+(this.G?"//"+e+this.host:"")+this.pathname+this.A+this.C},set href(e){i.call(this),o.call(this,e)},get protocol(){return this.l+":"},set protocol(e){this.m||o.call(this,e+":","scheme start")},get host(){return this.m?"":this.v?this.o+":"+this.v:this.o},set host(e){!this.m&&this.G&&o.call(this,e,"host")},get hostname(){return this.o},set hostname(e){!this.m&&this.G&&o.call(this,e,"hostname")},get port(){return this.v},set port(e){!this.m&&this.G&&o.call(this,e,"port")},get pathname(){return this.m?"":this.G?"/"+this.s.join("/"):this.va},set pathname(e){!this.m&&this.G&&(this.s=[],o.call(this,e,"relative path start"))},get search(){return this.m||!this.A||"?"==this.A?"":this.A},set search(e){!this.m&&this.G&&(this.A="?","?"==e[0]&&(e=e.slice(1)),o.call(this,e,"query"))},get hash(){return this.m||!this.C||"#"==this.C?"":this.C},set hash(e){this.m||(e?(this.C="#","#"==e[0]&&(e=e.slice(1)),o.call(this,e,"fragment")):this.C="")},get origin(){var e;if(this.m||!this.l)return"";switch(this.l){case"data":case"file":case"javascript":case"mailto":return"null"}return(e=this.host)?this.l+"://"+e:""}};var p=e.URL;p&&(a.createObjectURL=function(e){return p.createObjectURL.apply(p,arguments)},a.revokeObjectURL=function(e){p.revokeObjectURL(e)}),e.URL=a}}(window);var yl=window.customElements,gl=!1,bl=null;function wl(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document),bl&&bl(),gl=!0,window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}yl.polyfillWrapFlushCallback&&yl.polyfillWrapFlushCallback((function(e){bl=e,gl&&e()})),"complete"!==document.readyState?(window.addEventListener("load",wl),window.addEventListener("DOMContentLoaded",(function(){window.removeEventListener("load",wl),wl()}))):wl()}).call(this)},"../../node_modules/css-loader/dist/runtime/api.js":function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},"../../node_modules/css-loader/dist/runtime/noSourceMaps.js":function(e){e.exports=function(e){return e[1]}},"../../node_modules/localize-react/dist/localize-react.js":function(e,t,n){var r,o,i,a;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}a=function(e,t){var n="default"in t?t.default:t;function r(e){return(r="function"==typeof Symbol&&"symbol"==l(Symbol.iterator)?function(e){return l(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":l(e)})(e)}var o={},i=/{{([^{]+[^}])}}/g;function a(e,t){if(!t)return e;if(0===Object.keys(t).length)return e;var n,r,o,a=e.match(i);return a&&0!==a.length?(n=a,r=t,o=Object.keys(r),n.map((function(e){var t=Array.prototype.slice.call(e,2,-2).join(""),n=o.find((function(e){return e===t}));return n?[e,r[n]]:(console.warn("[LOCALIZE-REACT] Looks like template is being used, but no value passed for ",e),[e,e])}))).reduce((function(e,t){var n=new RegExp(t[0],"gi");return e.replace(n,t[1])}),e):e}var s=n.createContext(),u=s.Consumer;function c(){return t.useContext(s)}e.LocalizationConsumer=u,e.LocalizationContext=s,e.LocalizationProvider=function(e){var i=e.children,l=e.disableCache,u=e.locale,c=e.translations,f=void 0===c?{}:c,d=function(e,t){if(!e)return null;if("object"===r(t[e]))return e;var n=e.toLowerCase().replace(/-/g,"_");if("object"===r(t[n]))return n;var o=n.split("_")[0];return"object"===r(t[o])?o:(console.warn("[LOCALIZE-REACT]: There are no translations for specified locale",e),e)}(u,f),p=d?f[d]:f;function h(e,t,n){if(!p||!e)return n||e;var r="string"==typeof n?n:e,o=p[e];if("string"==typeof o)return t?a(o,t):o;var i=e.split(".");if(1===i.length)return a(r,t);for(var l=p[i[0]],s=1;s<i.length;s++)l=l&&l[i[s]];return a("string"==typeof l?l:r,t)}t.useEffect((function(){o={}}),[u,f]);var m,v=l?h:(m=h,function(e,t,n){var r=2<arguments.length&&void 0!==n?n:"",i=t?JSON.stringify(t,null,"")+e+r:e+r;if(o[i])return o[i];var a=m(e,t,r);return o[i]=a});return n.createElement(s.Provider,{value:{locale:u,translate:v,translations:f}},i)},e.Message=function(e){var t=e.defaultMessage,n=e.descriptor,r=e.values;return(0,c().translate)(n,r,t)},e.useLocalize=c,Object.defineProperty(e,"__esModule",{value:!0})},"object"==l(t)?a(t,n("../../node_modules/react/index.js")):(o=[t,n("../../node_modules/react/index.js")],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i))},"../../node_modules/react-device-detect/dist/lib.js":function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o,i=n("../../node_modules/react/index.js"),a=(o=i)&&"object"===r(o)&&"default"in o?o.default:o,l=n("../../node_modules/ua-parser-js/dist/ua-parser.min.js"),s=new l,u=s.getBrowser(),c=s.getCPU(),f=s.getDevice(),d=s.getEngine(),p=s.getOS(),h=s.getUA(),m=function(e){return s.setUA(e)},v=function(e){if(e){var t=new l(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},y=Object.freeze({ClientUAInstance:s,browser:u,cpu:c,device:f,engine:d,os:p,ua:h,setUa:m,parseUserAgent:v});function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function C(e,t){return C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},C(e,t)}function k(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(s){l=!0,o=s}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(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 x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var A="mobile",I="tablet",P="smarttv",T="console",R="wearable",L="embedded",D=void 0,j={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},M={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},F={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},z=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},U=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},B=function(e){var t=U();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},H=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:z(t.vendor),model:z(t.model),os:z(n.name),osVersion:z(n.version),ua:z(r)})};var G=function(e){return e.type===A},V=function(e){return e.type===I},W=function(e){var t=e.type;return t===A||t===I},Z=function(e){return e.type===P},K=function(e){return e.type===D},Y=function(e){return e.type===R},q=function(e){return e.type===T},Q=function(e){return e.type===L},X=function(e){var t=e.vendor;return z(t)},$=function(e){var t=e.model;return z(t)},J=function(e){var t=e.type;return z(t,"browser")},ee=function(e){return e.name===M.Android},te=function(e){return e.name===M.Windows},ne=function(e){return e.name===M.MAC_OS},re=function(e){return e.name===M.WindowsPhone},oe=function(e){return e.name===M.IOS},ie=function(e){var t=e.version;return z(t)},ae=function(e){var t=e.name;return z(t)},le=function(e){return e.name===j.Chrome},se=function(e){return e.name===j.Firefox},ue=function(e){return e.name===j.Chromium},ce=function(e){return e.name===j.Edge},fe=function(e){return e.name===j.Yandex},de=function(e){var t=e.name;return t===j.Safari||t===j.MobileSafari},pe=function(e){return e.name===j.MobileSafari},he=function(e){return e.name===j.Opera},me=function(e){var t=e.name;return t===j.InternetExplorer||t===j.Ie},ve=function(e){return e.name===j.MIUI},ye=function(e){return e.name===j.SamsungBrowser},ge=function(e){var t=e.version;return z(t)},be=function(e){var t=e.major;return z(t)},we=function(e){var t=e.name;return z(t)},_e=function(e){var t=e.name;return z(t)},Se=function(e){var t=e.version;return z(t)},Ee=function(){var e=U(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},Ce=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},ke=function(){var e=U();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},Ne=function(){return B("iPad")},Oe=function(){return B("iPhone")},xe=function(){return B("iPod")},Ae=function(e){return z(e)};function Ie(e){var t=e||y,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:Z(n),isConsole:q(n),isWearable:Y(n),isEmbedded:Q(n),isMobileSafari:pe(r)||Ne(),isChromium:ue(r),isMobile:W(n)||Ne(),isMobileOnly:G(n),isTablet:V(n)||Ne(),isBrowser:K(n),isDesktop:K(n),isAndroid:ee(o),isWinPhone:re(o),isIOS:oe(o)||Ne(),isChrome:le(r),isFirefox:se(r),isSafari:de(r),isOpera:he(r),isIE:me(r),osVersion:ie(o),osName:ae(o),fullBrowserVersion:ge(r),browserVersion:be(r),browserName:we(r),mobileVendor:X(n),mobileModel:$(n),engineName:_e(i),engineVersion:Se(i),getUA:Ae(a),isEdge:ce(r)||Ce(a),isYandex:fe(r),deviceType:J(n),isIOS13:ke(),isIPad13:Ne(),isIPhone13:Oe(),isIPod13:xe(),isElectron:Ee(),isEdgeChromium:Ce(a),isLegacyEdge:ce(r)&&!Ce(a),isWindows:te(o),isMacOs:ne(o),isMIUI:ve(r),isSamsungBrowser:ye(r)}}var Pe=Z(f),Te=q(f),Re=Y(f),Le=Q(f),De=pe(u)||Ne(),je=ue(u),Me=W(f)||Ne(),Fe=G(f),ze=V(f)||Ne(),Ue=K(f),Be=K(f),He=ee(p),Ge=re(p),Ve=oe(p)||Ne(),We=le(u),Ze=se(u),Ke=de(u),Ye=he(u),qe=me(u),Qe=ie(p),Xe=ae(p),$e=ge(u),Je=be(u),et=we(u),tt=X(f),nt=$(f),rt=_e(d),ot=Se(d),it=Ae(h),at=ce(u)||Ce(h),lt=fe(u),st=J(f),ut=ke(),ct=Ne(),ft=Oe(),dt=xe(),pt=Ee(),ht=Ce(h),mt=ce(u)&&!Ce(h),vt=te(p),yt=ne(p),gt=ve(u),bt=ye(u);function wt(e){var t=e||window.navigator.userAgent;return v(t)}t.KC=et,t.x_=Je,t.nI=Be,t.vU=Ze,t.tq=Me,t.BF=Xe},"../../node_modules/react-dom/cjs/react-dom.production.min.js":function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n("../../node_modules/react/index.js"),i=n("../../node_modules/scheduler/index.js");function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[: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]*$/,h={},m={};function v(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(r(t)){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function y(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function _(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(v(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(b,w);g[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),A=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function M(e){return null===e||"object"!==r(e)?null:"function"==typeof(e=j&&e[j]||e["@@iterator"])?e:null}var F,z=Object.assign;function U(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var B=!1;function H(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var o=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){o=c}e.call(t.prototype)}else{try{throw Error()}catch(c){o=c}e()}}catch(c){if(c&&o&&"string"==typeof c.stack){for(var i=c.stack.split("\n"),a=o.stack.split("\n"),l=i.length-1,s=a.length-1;1<=l&&0<=s&&i[l]!==a[s];)s--;for(;1<=l&&0<=s;l--,s--)if(i[l]!==a[s]){if(1!==l||1!==s)do{if(l--,0>--s||i[l]!==a[s]){var u="\n"+i[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=l&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function G(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 1:return e=H(e.type,!0);default:return""}}function V(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 k:return"Fragment";case C:return"Portal";case O:return"Profiler";case N:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList"}if("object"===r(e))switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case x:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Z(e){switch(r(e)){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(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 X(e,t){var n=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ee(e,t){J(e,t);var n=Z(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ne(e,t.type,n):t.hasOwnProperty("defaultValue")&&ne(e,t.type,Z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ne(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var re=Array.isArray;function oe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Z(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(re(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Z(n)}}function le(e,t){var n=Z(t.value),r=Z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ue(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 ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var fe,de,pe=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((fe=fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return de(e,t)}))}:de);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var me={animationIterationCount:!0,aspectRatio:!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},ve=["Webkit","ms","Moz","O"];function ye(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||me.hasOwnProperty(e)&&me[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ye(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(me).forEach((function(e){ve.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),me[t]=me[e]}))}));var be=z({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 we(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==r(t.dangerouslySetInnerHTML)||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==r(t.style))throw Error(a(62))}}function _e(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 Se=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,ke=null,Ne=null;function Oe(e){if(e=So(e)){if("function"!=typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function xe(e){ke?Ne?Ne.push(e):Ne=[e]:ke=e}function Ae(){if(ke){var e=ke,t=Ne;if(Ne=ke=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Ie(e,t){return e(t)}function Pe(){}var Te=!1;function Re(e,t,n){if(Te)return e(t,n);Te=!0;try{return Ie(e,t,n)}finally{Te=!1,(null!==ke||null!==Ne)&&(Pe(),Ae())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var o=Co(n);if(null===o)return null;n=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,r(n)));return n}var De=!1;if(f)try{var je={};Object.defineProperty(je,"passive",{get:function(){De=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(de){De=!1}function Me(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Fe=!1,ze=null,Ue=!1,Be=null,He={onError:function(e){Fe=!0,ze=e}};function Ge(e,t,n,r,o,i,a,l,s){Fe=!1,ze=null,Me.apply(He,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(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 Ze(e){if(Ve(e)!==e)throw Error(a(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ze(o),e;if(i===r)return Ze(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ye(e):null}function Ye(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ye(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Qe=i.unstable_cancelCallback,Xe=i.unstable_shouldYield,$e=i.unstable_requestPaint,Je=i.unstable_now,et=i.unstable_getCurrentPriorityLevel,tt=i.unstable_ImmediatePriority,nt=i.unstable_UserBlockingPriority,rt=i.unstable_NormalPriority,ot=i.unstable_LowPriority,it=i.unstable_IdlePriority,at=null,lt=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ut(e)/ct|0)|0},ut=Math.log,ct=Math.LN2;var ft=64,dt=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=pt(l):0!==(i&=a)&&(r=pt(i))}else 0!==(a=n&~o)?r=pt(a):0!==i&&(r=pt(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}function mt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function vt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yt(){var e=ft;return 0==(4194240&(ft<<=1))&&(ft=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function wt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var _t=0;function St(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Et,Ct,kt,Nt,Ot,xt=!1,At=[],It=null,Pt=null,Tt=null,Rt=new Map,Lt=new Map,Dt=[],jt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Ft(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=So(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zt(e){var t=_o(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ot(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ut(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=So(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Se=r,n.target.dispatchEvent(r),Se=null,t.shift()}return!0}function Bt(e,t,n){Ut(e)&&n.delete(t)}function Ht(){xt=!1,null!==It&&Ut(It)&&(It=null),null!==Pt&&Ut(Pt)&&(Pt=null),null!==Tt&&Ut(Tt)&&(Tt=null),Rt.forEach(Bt),Lt.forEach(Bt)}function Gt(e,t){e.blockedOn===t&&(e.blockedOn=null,xt||(xt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ht)))}function Vt(e){function t(t){return Gt(t,e)}if(0<At.length){Gt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==It&&Gt(It,e),null!==Pt&&Gt(Pt,e),null!==Tt&&Gt(Tt,e),Rt.forEach(t),Lt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)zt(n),null===n.blockedOn&&Dt.shift()}var Wt=S.ReactCurrentBatchConfig,Zt=!0;function Kt(e,t,n,r){var o=_t,i=Wt.transition;Wt.transition=null;try{_t=1,qt(e,t,n,r)}finally{_t=o,Wt.transition=i}}function Yt(e,t,n,r){var o=_t,i=Wt.transition;Wt.transition=null;try{_t=4,qt(e,t,n,r)}finally{_t=o,Wt.transition=i}}function qt(e,t,n,r){if(Zt){var o=Xt(e,t,n,r);if(null===o)Zr(e,t,r,Qt,n),Mt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return It=Ft(It,e,t,n,r,o),!0;case"dragenter":return Pt=Ft(Pt,e,t,n,r,o),!0;case"mouseover":return Tt=Ft(Tt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,Ft(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lt.set(i,Ft(Lt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<jt.indexOf(e)){for(;null!==o;){var i=So(o);if(null!==i&&Et(i),null===(i=Xt(e,t,n,r))&&Zr(e,t,r,Qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Zr(e,t,r,null,n)}}var Qt=null;function Xt(e,t,n,r){if(Qt=null,null!==(e=_o(e=Ee(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function $t(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(et()){case tt:return 1;case nt:return 4;case rt:case ot:return 16;case it:return 536870912;default:return 16}default:return 16}}var Jt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(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}function on(){return!0}function an(){return!1}function ln(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:an,this.isPropagationStopped=an,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var sn,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=z({},fn,{view:0,detail:0}),hn=ln(pn),mn=z({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(mn),yn=ln(z({},mn,{dataTransfer:0})),gn=ln(z({},pn,{relatedTarget:0})),bn=ln(z({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=z({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_n=ln(wn),Sn=ln(z({},fn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function On(){return Nn}var xn=z({},pn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=ln(xn),In=ln(z({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(z({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Tn=ln(z({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=z({},mn,{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:0,deltaMode:0}),Ln=ln(Rn),Dn=[9,13,27,32],jn=f&&"CompositionEvent"in window,Mn=null;f&&"documentMode"in document&&(Mn=document.documentMode);var Fn=f&&"TextEvent"in window&&!Mn,zn=f&&(!jn||Mn&&8<Mn&&11>=Mn),Un=String.fromCharCode(32),Bn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gn(e){return"object"===r(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Wn={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 Zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Kn(e,t,n,r){xe(r),0<(t=Yr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,qn=null;function Qn(e){Ur(e,0)}function Xn(e){if(q(Eo(e)))return e}function $n(e,t){if("change"===e)return t}var Jn=!1;if(f){var er;if(f){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Jn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Yn&&(Yn.detachEvent("onpropertychange",or),qn=Yn=null)}function or(e){if("value"===e.propertyName&&Xn(qn)){var t=[];Kn(t,qn,e,Ee(e)),Re(Qn,t)}}function ir(e,t,n){"focusin"===e?(rr(),qn=n,(Yn=t).attachEvent("onpropertychange",or)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(qn)}function lr(e,t){if("click"===e)return Xn(t)}function sr(e,t){if("input"===e||"change"===e)return Xn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(ur(e,t))return!0;if("object"!==r(e)||null===e||"object"!==r(t)||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var i=n[o];if(!d.call(t,i)||!ur(e[i],t[i]))return!1}return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function mr(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)}function vr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pr(n.ownerDocument.documentElement,n)){if(null!==r&&mr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=dr(n,i);var a=dr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var yr=f&&"documentMode"in document&&11>=document.documentMode,gr=null,br=null,wr=null,_r=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==gr||gr!==Q(r)||("selectionStart"in(r=gr)&&mr(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},wr&&cr(wr,r)||(wr=r,0<(r=Yr(br,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},kr={},Nr={};function Or(e){if(kr[e])return kr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Nr)return kr[e]=n[t];return e}f&&(Nr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var xr=Or("animationend"),Ar=Or("animationiteration"),Ir=Or("animationstart"),Pr=Or("transitionend"),Tr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){Tr.set(e,t),u(t,[e])}for(var Dr=0;Dr<Rr.length;Dr++){var jr=Rr[Dr];Lr(jr.toLowerCase(),"on"+(jr[0].toUpperCase()+jr.slice(1)))}Lr(xr,"onAnimationEnd"),Lr(Ar,"onAnimationIteration"),Lr(Ir,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Pr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function zr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,u){if(Ge.apply(this,arguments),Fe){if(!Fe)throw Error(a(198));var c=ze;Fe=!1,ze=null,Ue||(Ue=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function Ur(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;zr(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;zr(o,l,u),i=s}}}if(Ue)throw e=Be,Ue=!1,Be=null,e}function Br(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Hr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Gr="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Gr]){e[Gr]=!0,l.forEach((function(t){"selectionchange"!==t&&(Fr.has(t)||Hr(t,!1,e),Hr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Gr]||(t[Gr]=!0,Hr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch($t(t)){case 1:var o=Kt;break;case 4:o=Yt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Zr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=_o(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Re((function(){var r=i,o=Ee(n),a=[];e:{var l=Tr.get(e);if(void 0!==l){var s=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=An;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case xr:case Ar:case Ir:s=bn;break;case Pr:s=Tn;break;case"scroll":s=hn;break;case"wheel":s=Ln;break;case"copy":case"cut":case"paste":s=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=In}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Le(h,d))&&c.push(Kr(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Se||!(u=n.relatedTarget||n.fromElement)||!_o(u)&&!u[yo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?_o(u):null)&&(u!==(f=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=In,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:Eo(s),p=null==u?l:Eo(u),(l=new c(m,h+"leave",s,n,o)).target=f,l.relatedTarget=p,m=null,_o(o)===r&&((c=new c(d,h+"enter",u,n,o)).target=p,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,h=0,p=c=s;p;p=qr(p))h++;for(p=0,m=d;m;m=qr(m))p++;for(;0<h-p;)c=qr(c),h--;for(;0<p-h;)d=qr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=qr(c),d=qr(d)}c=null}else c=null;null!==s&&Qr(a,l,s,c,!1),null!==u&&null!==f&&Qr(a,f,u,c,!0)}if("select"===(s=(l=r?Eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=$n;else if(Zn(l))if(Jn)v=sr;else{v=ar;var y=ir}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=lr);switch(v&&(v=v(e,r))?Kn(a,v,n,o):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ne(l,"number",l.value)),y=r?Eo(r):window,e){case"focusin":(Zn(y)||"true"===y.contentEditable)&&(gr=y,br=r,wr=null);break;case"focusout":wr=br=gr=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,Sr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":Sr(a,n,o)}var g;if(jn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Hn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(g=nn()):(en="value"in(Jt=o)?Jt.value:Jt.textContent,Vn=!0)),0<(y=Yr(r,b)).length&&(b=new Sn(b,e,null,n,o),a.push({event:b,listeners:y}),g?b.data=g:null!==(g=Gn(n))&&(b.data=g))),(g=Fn?function(e,t){switch(e){case"compositionend":return Gn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Un);case"textInput":return(e=t.data)===Un&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!jn&&Hn(e,t)?(e=nn(),tn=en=Jt=null,Vn=!1,e):null;switch(e){case"paste":default: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 zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Yr(r,"onBeforeInput")).length&&(o=new Sn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g))}Ur(a,t)}))}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Le(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Le(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Le(n,i))&&a.unshift(Kr(n,s,l)):o||null!=(s=Le(n,i))&&a.push(Kr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xr=/\r\n?/g,$r=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Xr,"\n").replace($r,"")}function eo(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(a(425))}function to(){}var no=null,ro=null;function oo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"===r(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var io="function"==typeof setTimeout?setTimeout:void 0,ao="function"==typeof clearTimeout?clearTimeout:void 0,lo="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==lo?function(e){return lo.resolve(null).then(e).catch(uo)}:io;function uo(e){setTimeout((function(){throw e}))}function co(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function fo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function po(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ho=Math.random().toString(36).slice(2),mo="__reactFiber$"+ho,vo="__reactProps$"+ho,yo="__reactContainer$"+ho,go="__reactEvents$"+ho,bo="__reactListeners$"+ho,wo="__reactHandles$"+ho;function _o(e){var t=e[mo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yo]||n[mo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=po(e);null!==e;){if(n=e[mo])return n;e=po(e)}return t}n=(e=n).parentNode}return null}function So(e){return!(e=e[mo]||e[yo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Co(e){return e[vo]||null}var ko=[],No=-1;function Oo(e){return{current:e}}function xo(e){0>No||(e.current=ko[No],ko[No]=null,No--)}function Ao(e,t){No++,ko[No]=e.current,e.current=t}var Io={},Po=Oo(Io),To=Oo(!1),Ro=Io;function Lo(e,t){var n=e.type.contextTypes;if(!n)return Io;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!=(e=e.childContextTypes)}function jo(){xo(To),xo(Po)}function Mo(e,t,n){if(Po.current!==Io)throw Error(a(168));Ao(Po,t),Ao(To,n)}function Fo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,W(e)||"Unknown",o));return z({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Io,Ro=Po.current,Ao(Po,e),Ao(To,To.current),!0}function Uo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Fo(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,xo(To),xo(Po),Ao(Po,e)):xo(To),Ao(To,n)}var Bo=null,Ho=!1,Go=!1;function Vo(e){null===Bo?Bo=[e]:Bo.push(e)}function Wo(){if(!Go&&null!==Bo){Go=!0;var e=0,t=_t;try{var n=Bo;for(_t=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Ho=!1}catch(o){throw null!==Bo&&(Bo=Bo.slice(e+1)),qe(tt,Wo),o}finally{_t=t,Go=!1}}return null}var Zo=[],Ko=0,Yo=null,qo=0,Qo=[],Xo=0,$o=null,Jo=1,ei="";function ti(e,t){Zo[Ko++]=qo,Zo[Ko++]=Yo,Yo=e,qo=t}function ni(e,t,n){Qo[Xo++]=Jo,Qo[Xo++]=ei,Qo[Xo++]=$o,$o=e;var r=Jo;e=ei;var o=32-st(r)-1;r&=~(1<<o),n+=1;var i=32-st(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Jo=1<<32-st(t)+o|n<<o|r,ei=i+e}else Jo=1<<i|n<<o|r,ei=e}function ri(e){null!==e.return&&(ti(e,1),ni(e,1,0))}function oi(e){for(;e===Yo;)Yo=Zo[--Ko],Zo[Ko]=null,qo=Zo[--Ko],Zo[Ko]=null;for(;e===$o;)$o=Qo[--Xo],Qo[Xo]=null,ei=Qo[--Xo],Qo[Xo]=null,Jo=Qo[--Xo],Qo[Xo]=null}var ii=null,ai=null,li=!1,si=null;function ui(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ii=e,ai=fo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ii=e,ai=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==$o?{id:Jo,overflow:ei}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ii=e,ai=null,!0);default:return!1}}function fi(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function di(e){if(li){var t=ai;if(t){var n=t;if(!ci(e,t)){if(fi(e))throw Error(a(418));t=fo(n.nextSibling);var r=ii;t&&ci(e,t)?ui(r,n):(e.flags=-4097&e.flags|2,li=!1,ii=e)}}else{if(fi(e))throw Error(a(418));e.flags=-4097&e.flags|2,li=!1,ii=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ii=e}function hi(e){if(e!==ii)return!1;if(!li)return pi(e),li=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!oo(e.type,e.memoizedProps)),t&&(t=ai)){if(fi(e))throw mi(),Error(a(418));for(;t;)ui(e,t),t=fo(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ai=fo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ai=null}}else ai=ii?fo(e.stateNode.nextSibling):null;return!0}function mi(){for(var e=ai;e;)e=fo(e.nextSibling)}function vi(){ai=ii=null,li=!1}function yi(e){null===si?si=[e]:si.push(e)}var gi=S.ReactCurrentBatchConfig;function bi(e,t){if(e&&e.defaultProps){for(var n in t=z({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var wi=Oo(null),_i=null,Si=null,Ei=null;function Ci(){Ei=Si=_i=null}function ki(e){var t=wi.current;xo(wi),e._currentValue=t}function Ni(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){_i=e,Ei=Si=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Sl=!0),e.firstContext=null)}function xi(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Si){if(null===_i)throw Error(a(308));Si=e,_i.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var Ai=null;function Ii(e){null===Ai?Ai=[e]:Ai.push(e)}function Pi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ii(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ti(e,r)}function Ti(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ri=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Di(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ps)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ti(e,n)}return null===(o=r.interleaved)?(t.next=t,Ii(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ti(e,n)}function Fi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,wt(e,n)}}function zi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ui(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var f=o.baseState;for(a=0,c=u=s=null,l=i;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=z({},f,d);break e;case 2:Ri=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=f):c=c.next=p,a|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(s=f),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);zs|=a,e.lanes=a,e.memoizedState=f}}function Bi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Hi=(new o.Component).refs;function Gi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:z({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Vi={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ru(),o=ou(e),i=ji(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Mi(e,i,o))&&(iu(t,e,o,r),Fi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ru(),o=ou(e),i=ji(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Mi(e,i,o))&&(iu(t,e,o,r),Fi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ru(),r=ou(e),o=ji(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Mi(e,o,r))&&(iu(t,e,r,n),Fi(t,e,r))}};function Wi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(o,i))}function Zi(e,t,n){var o=!1,i=Io,a=t.contextType;return"object"===r(a)&&null!==a?a=xi(a):(i=Do(t)?Ro:Po.current,a=(o=null!=(o=t.contextTypes))?Lo(e,i):Io),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Vi,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ki(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vi.enqueueReplaceState(t,t.state,null)}function Yi(e,t,n,o){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Hi,Li(e);var a=t.contextType;"object"===r(a)&&null!==a?i.context=xi(a):(a=Do(t)?Ro:Po.current,i.context=Lo(e,a)),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Gi(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Vi.enqueueReplaceState(i,i.state,null),Ui(e,n,i,o),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function qi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!==r(e)){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var o=n.stateNode}if(!o)throw Error(a(147,e));var i=o,l=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===l?t.ref:(t=function(e){var t=i.refs;t===Hi&&(t=i.refs={}),null===e?delete t[l]:t[l]=e},t._stringRef=l,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Qi(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xi(e){return(0,e._init)(e._payload)}function $i(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(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 i(e,t){return(e=ju(e,t)).index=0,e.sibling=null,e}function l(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Uu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,o){var a=n.type;return a===k?d(e,t,n.props.children,o,n.key):null!==t&&(t.elementType===a||"object"===r(a)&&null!==a&&a.$$typeof===L&&Xi(a)===t.type)?((o=i(t,n.props)).ref=qi(e,t,n),o.return=e,o):((o=Mu(n.type,n.key,n.props,null,e.mode,o)).ref=qi(e,t,n),o.return=e,o)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Fu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Uu(""+t,e.mode,n)).return=e,t;if("object"===r(t)&&null!==t){switch(t.$$typeof){case E:return(n=Mu(t.type,t.key,t.props,null,e.mode,n)).ref=qi(e,null,t),n.return=e,n;case C:return(t=Bu(t,e.mode,n)).return=e,t;case L:return p(e,(0,t._init)(t._payload),n)}if(re(t)||M(t))return(t=Fu(t,e.mode,n,null)).return=e,t;Qi(e,t)}return null}function h(e,t,n,o){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:u(e,t,""+n,o);if("object"===r(n)&&null!==n){switch(n.$$typeof){case E:return n.key===i?c(e,t,n,o):null;case C:return n.key===i?f(e,t,n,o):null;case L:return h(e,t,(i=n._init)(n._payload),o)}if(re(n)||M(n))return null!==i?null:d(e,t,n,o,null);Qi(e,n)}return null}function m(e,t,n,o,i){if("string"==typeof o&&""!==o||"number"==typeof o)return u(t,e=e.get(n)||null,""+o,i);if("object"===r(o)&&null!==o){switch(o.$$typeof){case E:return c(t,e=e.get(null===o.key?n:o.key)||null,o,i);case C:return f(t,e=e.get(null===o.key?n:o.key)||null,o,i);case L:return m(e,t,n,(0,o._init)(o._payload),i)}if(re(o)||M(o))return d(t,e=e.get(n)||null,o,i,null);Qi(t,o)}return null}function v(r,i,a,s){for(var u=null,c=null,f=i,d=i=0,v=null;null!==f&&d<a.length;d++){f.index>d?(v=f,f=null):v=f.sibling;var y=h(r,f,a[d],s);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(r,f),i=l(y,i,d),null===c?u=y:c.sibling=y,c=y,f=v}if(d===a.length)return n(r,f),li&&ti(r,d),u;if(null===f){for(;d<a.length;d++)null!==(f=p(r,a[d],s))&&(i=l(f,i,d),null===c?u=f:c.sibling=f,c=f);return li&&ti(r,d),u}for(f=o(r,f);d<a.length;d++)null!==(v=m(f,r,d,a[d],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?d:v.key),i=l(v,i,d),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(r,e)})),li&&ti(r,d),u}function y(r,i,s,u){var c=M(s);if("function"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,d=i,v=i=0,y=null,g=s.next();null!==d&&!g.done;v++,g=s.next()){d.index>v?(y=d,d=null):y=d.sibling;var b=h(r,d,g.value,u);if(null===b){null===d&&(d=y);break}e&&d&&null===b.alternate&&t(r,d),i=l(b,i,v),null===f?c=b:f.sibling=b,f=b,d=y}if(g.done)return n(r,d),li&&ti(r,v),c;if(null===d){for(;!g.done;v++,g=s.next())null!==(g=p(r,g.value,u))&&(i=l(g,i,v),null===f?c=g:f.sibling=g,f=g);return li&&ti(r,v),c}for(d=o(r,d);!g.done;v++,g=s.next())null!==(g=m(d,r,v,g.value,u))&&(e&&null!==g.alternate&&d.delete(null===g.key?v:g.key),i=l(g,i,v),null===f?c=g:f.sibling=g,f=g);return e&&d.forEach((function(e){return t(r,e)})),li&&ti(r,v),c}return function e(o,a,l,u){if("object"===r(l)&&null!==l&&l.type===k&&null===l.key&&(l=l.props.children),"object"===r(l)&&null!==l){switch(l.$$typeof){case E:e:{for(var c=l.key,f=a;null!==f;){if(f.key===c){if((c=l.type)===k){if(7===f.tag){n(o,f.sibling),(a=i(f,l.props.children)).return=o,o=a;break e}}else if(f.elementType===c||"object"===r(c)&&null!==c&&c.$$typeof===L&&Xi(c)===f.type){n(o,f.sibling),(a=i(f,l.props)).ref=qi(o,f,l),a.return=o,o=a;break e}n(o,f);break}t(o,f),f=f.sibling}l.type===k?((a=Fu(l.props.children,o.mode,u,l.key)).return=o,o=a):((u=Mu(l.type,l.key,l.props,null,o.mode,u)).ref=qi(o,a,l),u.return=o,o=u)}return s(o);case C:e:{for(f=l.key;null!==a;){if(a.key===f){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(o,a.sibling),(a=i(a,l.children||[])).return=o,o=a;break e}n(o,a);break}t(o,a),a=a.sibling}(a=Bu(l,o.mode,u)).return=o,o=a}return s(o);case L:return e(o,a,(f=l._init)(l._payload),u)}if(re(l))return v(o,a,l,u);if(M(l))return y(o,a,l,u);Qi(o,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(o,a.sibling),(a=i(a,l)).return=o,o=a):(n(o,a),(a=Uu(l,o.mode,u)).return=o,o=a),s(o)):n(o,a)}}var Ji=$i(!0),ea=$i(!1),ta={},na=Oo(ta),ra=Oo(ta),oa=Oo(ta);function ia(e){if(e===ta)throw Error(a(174));return e}function aa(e,t){switch(Ao(oa,t),Ao(ra,e),Ao(na,ta),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xo(na),Ao(na,t)}function la(){xo(na),xo(ra),xo(oa)}function sa(e){ia(oa.current);var t=ia(na.current),n=ce(t,e.type);t!==n&&(Ao(ra,e),Ao(na,n))}function ua(e){ra.current===e&&(xo(na),xo(ra))}var ca=Oo(0);function fa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))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}var da=[];function pa(){for(var e=0;e<da.length;e++)da[e]._workInProgressVersionPrimary=null;da.length=0}var ha=S.ReactCurrentDispatcher,ma=S.ReactCurrentBatchConfig,va=0,ya=null,ga=null,ba=null,wa=!1,_a=!1,Sa=0,Ea=0;function Ca(){throw Error(a(321))}function ka(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function Na(e,t,n,r,o,i){if(va=i,ya=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ha.current=null===e||null===e.memoizedState?ul:cl,e=n(r,o),_a){i=0;do{if(_a=!1,Sa=0,25<=i)throw Error(a(301));i+=1,ba=ga=null,t.updateQueue=null,ha.current=fl,e=n(r,o)}while(_a)}if(ha.current=sl,t=null!==ga&&null!==ga.next,va=0,ba=ga=ya=null,wa=!1,t)throw Error(a(300));return e}function Oa(){var e=0!==Sa;return Sa=0,e}function xa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ba?ya.memoizedState=ba=e:ba=ba.next=e,ba}function Aa(){if(null===ga){var e=ya.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ba?ya.memoizedState:ba.next;if(null!==t)ba=t,ga=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ba?ya.memoizedState=ba=e:ba=ba.next=e}return ba}function Ia(e,t){return"function"==typeof t?t(e):t}function Pa(e){var t=Aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ga,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,u=null,c=i;do{var f=c.lane;if((va&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=d,l=r):u=u.next=d,ya.lanes|=f,zs|=f}c=c.next}while(null!==c&&c!==i);null===u?l=r:u.next=s,ur(r,t.memoizedState)||(Sl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,ya.lanes|=i,zs|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ta(e){var t=Aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);ur(i,t.memoizedState)||(Sl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ra(){}function La(e,t){var n=ya,r=Aa(),o=t(),i=!ur(r.memoizedState,o);if(i&&(r.memoizedState=o,Sl=!0),r=r.queue,Za(Ma.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ba&&1&ba.memoizedState.tag){if(n.flags|=2048,Ba(9,ja.bind(null,n,r,o,t),void 0,null),null===Ts)throw Error(a(349));0!=(30&va)||Da(n,t,o)}return o}function Da(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ya.updateQueue)?(t={lastEffect:null,stores:null},ya.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ja(e,t,n,r){t.value=n,t.getSnapshot=r,Fa(t)&&za(e)}function Ma(e,t,n){return n((function(){Fa(t)&&za(e)}))}function Fa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch(r){return!0}}function za(e){var t=Ti(e,1);null!==t&&iu(t,e,1,-1)}function Ua(e){var t=xa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:e},t.queue=e,e=e.dispatch=ol.bind(null,ya,e),[t.memoizedState,e]}function Ba(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ya.updateQueue)?(t={lastEffect:null,stores:null},ya.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ha(){return Aa().memoizedState}function Ga(e,t,n,r){var o=xa();ya.flags|=e,o.memoizedState=Ba(1|t,n,void 0,void 0===r?null:r)}function Va(e,t,n,r){var o=Aa();r=void 0===r?null:r;var i=void 0;if(null!==ga){var a=ga.memoizedState;if(i=a.destroy,null!==r&&ka(r,a.deps))return void(o.memoizedState=Ba(t,n,i,r))}ya.flags|=e,o.memoizedState=Ba(1|t,n,i,r)}function Wa(e,t){return Ga(8390656,8,e,t)}function Za(e,t){return Va(2048,8,e,t)}function Ka(e,t){return Va(4,2,e,t)}function Ya(e,t){return Va(4,4,e,t)}function qa(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 Qa(e,t,n){return n=null!=n?n.concat([e]):null,Va(4,4,qa.bind(null,t,e),n)}function Xa(){}function $a(e,t){var n=Aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ja(e,t){var n=Aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function el(e,t,n){return 0==(21&va)?(e.baseState&&(e.baseState=!1,Sl=!0),e.memoizedState=n):(ur(n,t)||(n=yt(),ya.lanes|=n,zs|=n,e.baseState=!0),t)}function tl(e,t){var n=_t;_t=0!==n&&4>n?n:4,e(!0);var r=ma.transition;ma.transition={};try{e(!1),t()}finally{_t=n,ma.transition=r}}function nl(){return Aa().memoizedState}function rl(e,t,n){var r=ou(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},il(e))al(t,n);else if(null!==(n=Pi(e,t,n,r))){iu(n,e,r,ru()),ll(n,t,r)}}function ol(e,t,n){var r=ou(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(il(e))al(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,ur(l,a)){var s=t.interleaved;return null===s?(o.next=o,Ii(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(u){}null!==(n=Pi(e,t,o,r))&&(iu(n,e,r,o=ru()),ll(n,t,r))}}function il(e){var t=e.alternate;return e===ya||null!==t&&t===ya}function al(e,t){_a=wa=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ll(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,wt(e,n)}}var sl={readContext:xi,useCallback:Ca,useContext:Ca,useEffect:Ca,useImperativeHandle:Ca,useInsertionEffect:Ca,useLayoutEffect:Ca,useMemo:Ca,useReducer:Ca,useRef:Ca,useState:Ca,useDebugValue:Ca,useDeferredValue:Ca,useTransition:Ca,useMutableSource:Ca,useSyncExternalStore:Ca,useId:Ca,unstable_isNewReconciler:!1},ul={readContext:xi,useCallback:function(e,t){return xa().memoizedState=[e,void 0===t?null:t],e},useContext:xi,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ga(4194308,4,qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ga(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ga(4,2,e,t)},useMemo:function(e,t){var n=xa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rl.bind(null,ya,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xa().memoizedState=e},useState:Ua,useDebugValue:Xa,useDeferredValue:function(e){return xa().memoizedState=e},useTransition:function(){var e=Ua(!1),t=e[0];return e=tl.bind(null,e[1]),xa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ya,o=xa();if(li){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Ts)throw Error(a(349));0!=(30&va)||Da(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Wa(Ma.bind(null,r,i,e),[e]),r.flags|=2048,Ba(9,ja.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=xa(),t=Ts.identifierPrefix;if(li){var n=ei;t=":"+t+"R"+(n=(Jo&~(1<<32-st(Jo)-1)).toString(32)+n),0<(n=Sa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ea++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cl={readContext:xi,useCallback:$a,useContext:xi,useEffect:Za,useImperativeHandle:Qa,useInsertionEffect:Ka,useLayoutEffect:Ya,useMemo:Ja,useReducer:Pa,useRef:Ha,useState:function(){return Pa(Ia)},useDebugValue:Xa,useDeferredValue:function(e){return el(Aa(),ga.memoizedState,e)},useTransition:function(){return[Pa(Ia)[0],Aa().memoizedState]},useMutableSource:Ra,useSyncExternalStore:La,useId:nl,unstable_isNewReconciler:!1},fl={readContext:xi,useCallback:$a,useContext:xi,useEffect:Za,useImperativeHandle:Qa,useInsertionEffect:Ka,useLayoutEffect:Ya,useMemo:Ja,useReducer:Ta,useRef:Ha,useState:function(){return Ta(Ia)},useDebugValue:Xa,useDeferredValue:function(e){var t=Aa();return null===ga?t.memoizedState=e:el(t,ga.memoizedState,e)},useTransition:function(){return[Ta(Ia)[0],Aa().memoizedState]},useMutableSource:Ra,useSyncExternalStore:La,useId:nl,unstable_isNewReconciler:!1};function dl(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function pl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ml="function"==typeof WeakMap?WeakMap:Map;function vl(e,t,n){(n=ji(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,Ys=r),hl(0,t)},n}function yl(e,t,n){(n=ji(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){hl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){hl(0,t),"function"!=typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ml;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=xu.bind(null,e,t,n),t.then(e,e))}function bl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function wl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ji(-1,1)).tag=2,Mi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var _l=S.ReactCurrentOwner,Sl=!1;function El(e,t,n,r){t.child=null===e?ea(t,null,n,r):Ji(t,e.child,n,r)}function Cl(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=Na(e,t,n,r,i,o),n=Oa(),null===e||Sl?(li&&n&&ri(t),t.flags|=1,El(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Kl(e,t,o))}function kl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Du(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Nl(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(a,r)&&e.ref===t.ref)return Kl(e,t,o)}return t.flags|=1,(e=ju(i,r)).ref=t.ref,e.return=t,t.child=e}function Nl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref){if(Sl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Kl(e,t,o);0!=(131072&e.flags)&&(Sl=!0)}}return Al(e,t,n,r,o)}function Ol(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(js,Ds),Ds|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ao(js,Ds),Ds|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ao(js,Ds),Ds|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ao(js,Ds),Ds|=r;return El(e,t,o,n),t.child}function xl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Al(e,t,n,r,o){var i=Do(n)?Ro:Po.current;return i=Lo(t,i),Oi(t,o),n=Na(e,t,n,r,i,o),r=Oa(),null===e||Sl?(li&&r&&ri(t),t.flags|=1,El(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Kl(e,t,o))}function Il(e,t,n,o,i){if(Do(n)){var a=!0;zo(t)}else a=!1;if(Oi(t,i),null===t.stateNode)Zl(e,t),Zi(t,n,o),Yi(t,n,o,i),o=!0;else if(null===e){var l=t.stateNode,s=t.memoizedProps;l.props=s;var u=l.context,c=n.contextType;"object"===r(c)&&null!==c?c=xi(c):c=Lo(t,c=Do(n)?Ro:Po.current);var f=n.getDerivedStateFromProps,d="function"==typeof f||"function"==typeof l.getSnapshotBeforeUpdate;d||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(s!==o||u!==c)&&Ki(t,l,o,c),Ri=!1;var p=t.memoizedState;l.state=p,Ui(t,o,l,i),u=t.memoizedState,s!==o||p!==u||To.current||Ri?("function"==typeof f&&(Gi(t,n,f,o),u=t.memoizedState),(s=Ri||Wi(t,n,s,o,p,u,c))?(d||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.flags|=4194308)):("function"==typeof l.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),l.props=o,l.state=u,l.context=c,o=s):("function"==typeof l.componentDidMount&&(t.flags|=4194308),o=!1)}else{l=t.stateNode,Di(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:bi(t.type,s),l.props=c,d=t.pendingProps,p=l.context,"object"===r(u=n.contextType)&&null!==u?u=xi(u):u=Lo(t,u=Do(n)?Ro:Po.current);var h=n.getDerivedStateFromProps;(f="function"==typeof h||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(s!==d||p!==u)&&Ki(t,l,o,u),Ri=!1,p=t.memoizedState,l.state=p,Ui(t,o,l,i);var m=t.memoizedState;s!==d||p!==m||To.current||Ri?("function"==typeof h&&(Gi(t,n,h,o),m=t.memoizedState),(c=Ri||Wi(t,n,c,o,p,m,u)||!1)?(f||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(o,m,u),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(o,m,u)),"function"==typeof l.componentDidUpdate&&(t.flags|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof l.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=m),l.props=o,l.state=m,l.context=u,o=c):("function"!=typeof l.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}return Pl(e,t,n,o,a,i)}function Pl(e,t,n,r,o,i){xl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Uo(t,n,!1),Kl(e,t,i);r=t.stateNode,_l.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ji(t,e.child,null,i),t.child=Ji(t,null,l,i)):El(e,t,l,i),t.memoizedState=r.state,o&&Uo(t,n,!0),t.child}function Tl(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),aa(e,t.containerInfo)}function Rl(e,t,n,r,o){return vi(),yi(o),t.flags|=256,El(e,t,n,r),t.child}var Ll,Dl,jl,Ml,Fl={dehydrated:null,treeContext:null,retryLane:0};function zl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ul(e,t,n){var r,o=t.pendingProps,i=ca.current,l=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ao(ca,1&i),null===e)return di(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=zu(s,o,0,null),e=Fu(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=zl(n),t.memoizedState=Fl,e):Bl(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,Hl(e,t,l,r=pl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=zu({mode:"visible",children:r.children},o,0,null),(i=Fu(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Ji(t,e.child,null,l),t.child.memoizedState=zl(l),t.memoizedState=Fl,i);if(0==(1&t.mode))return Hl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Hl(e,t,l,r=pl(i=Error(a(419)),r,void 0))}if(s=0!=(l&e.childLanes),Sl||s){if(null!==(r=Ts)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ti(e,o),iu(r,e,o,-1))}return gu(),Hl(e,t,l,r=pl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Iu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ai=fo(o.nextSibling),ii=t,li=!0,si=null,null!==e&&(Qo[Xo++]=Jo,Qo[Xo++]=ei,Qo[Xo++]=$o,Jo=e.id,ei=e.overflow,$o=t),t=Bl(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=ju(i,u)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=ju(r,l):(l=Fu(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?zl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Fl,o}return e=(l=e.child).sibling,o=ju(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Bl(e,t){return(t=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Hl(e,t,n,r){return null!==r&&yi(r),Ji(t,e.child,null,n),(e=Bl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ni(e.return,t,n)}function Vl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Wl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(El(e,t,r.children,n),0!=(2&(r=ca.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gl(e,n,t);else if(19===e.tag)Gl(e,n,t);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}r&=1}if(Ao(ca,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===fa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===fa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vl(t,!0,n,null,i);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Kl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ju(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ju(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Yl(e,t){if(!li)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,n){var r=t.pendingProps;switch(oi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return Do(t.type)&&jo(),ql(t),null;case 3:return r=t.stateNode,la(),xo(To),xo(Po),pa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(hi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==si&&(uu(si),si=null))),Dl(e,t),ql(t),null;case 5:ua(t);var o=ia(oa.current);if(n=t.type,null!==e&&null!=t.stateNode)jl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return ql(t),null}if(e=ia(na.current),hi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[mo]=t,r[vo]=i,e=0!=(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Mr.length;o++)Br(Mr[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":$(r,i),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Br("invalid",r);break;case"textarea":ae(r,i),Br("invalid",r)}for(var l in we(n,i),o=null,i)if(i.hasOwnProperty(l)){var u=i[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==i.suppressHydrationWarning&&eo(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==i.suppressHydrationWarning&&eo(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":Y(r),te(r,i,!0);break;case"textarea":Y(r),se(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=to)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ue(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[mo]=t,e[vo]=r,Ll(e,t,!1,!1),t.stateNode=e;e:{switch(l=_e(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mr.length;o++)Br(Mr[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":$(e,r),o=X(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=z({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ae(e,r),o=ie(e,r),Br("invalid",e)}for(i in we(n,o),u=o)if(u.hasOwnProperty(i)){var c=u[i];"style"===i?ge(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===i?"string"==typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"==typeof c&&he(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Br("scroll",e):null!=c&&_(e,i,c,l))}switch(n){case"input":Y(e),te(e,r,!1);break;case"textarea":Y(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Z(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?oe(e,!!r.multiple,i,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=to)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Ml(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=ia(oa.current),ia(na.current),hi(t)){if(r=t.stateNode,n=t.memoizedProps,r[mo]=t,(i=r.nodeValue!==n)&&null!==(e=ii))switch(e.tag){case 3:eo(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&eo(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[mo]=t,t.stateNode=r}return ql(t),null;case 13:if(xo(ca),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(li&&null!==ai&&0!=(1&t.mode)&&0==(128&t.flags))mi(),vi(),t.flags|=98560,i=!1;else if(i=hi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[mo]=t}else vi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),i=!1}else null!==si&&(uu(si),si=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ca.current)?0===Ms&&(Ms=3):gu())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return la(),Dl(e,t),null===e&&Vr(t.stateNode.containerInfo),ql(t),null;case 10:return ki(t.type._context),ql(t),null;case 19:if(xo(ca),null===(i=t.memoizedState))return ql(t),null;if(r=0!=(128&t.flags),null===(l=i.rendering))if(r)Yl(i,!1);else{if(0!==Ms||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=fa(e))){for(t.flags|=128,Yl(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ao(ca,1&ca.current|2),t.child}e=e.sibling}null!==i.tail&&Je()>Ws&&(t.flags|=128,r=!0,Yl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=fa(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Yl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!li)return ql(t),null}else 2*Je()-i.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=128,r=!0,Yl(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Je(),t.sibling=null,n=ca.current,Ao(ca,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return hu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ds)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Xl(e,t){switch(oi(t),t.tag){case 1:return Do(t.type)&&jo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return la(),xo(To),xo(Po),pa(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ua(t),null;case 13:if(xo(ca),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));vi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xo(ca),null;case 4:return la(),null;case 10:return ki(t.type._context),null;case 22:case 23:return hu(),null;default:return null}}Ll=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Dl=function(){},jl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ia(na.current);var i,a=null;switch(n){case"input":o=X(e,o),r=X(e,r),a=[];break;case"select":o=z({},o,{value:void 0}),r=z({},r,{value:void 0}),a=[];break;case"textarea":o=ie(e,o),r=ie(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=to)}for(c in we(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Br("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ml=function(e,t,n,r){n!==r&&(t.flags|=4)};var $l=!1,Jl=!1,es="function"==typeof WeakSet?WeakSet:Set,ts=null;function ns(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Ou(e,t,r)}else n.current=null}function rs(e,t,n){try{n()}catch(r){Ou(e,t,r)}}var os=!1;function is(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&rs(t,n,i)}o=o.next}while(o!==r)}}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ls(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ss(e){var t=e.alternate;null!==t&&(e.alternate=null,ss(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[mo],delete t[vo],delete t[go],delete t[bo],delete t[wo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function us(e){return 5===e.tag||3===e.tag||4===e.tag}function cs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||us(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function fs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=to));else if(4!==r&&null!==(e=e.child))for(fs(e,t,n),e=e.sibling;null!==e;)fs(e,t,n),e=e.sibling}function ds(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ds(e,t,n),e=e.sibling;null!==e;)ds(e,t,n),e=e.sibling}var ps=null,hs=!1;function ms(e,t,n){for(n=n.child;null!==n;)vs(e,t,n),n=n.sibling}function vs(e,t,n){if(lt&&"function"==typeof lt.onCommitFiberUnmount)try{lt.onCommitFiberUnmount(at,n)}catch(l){}switch(n.tag){case 5:Jl||ns(n,t);case 6:var r=ps,o=hs;ps=null,ms(e,t,n),hs=o,null!==(ps=r)&&(hs?(e=ps,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ps.removeChild(n.stateNode));break;case 18:null!==ps&&(hs?(e=ps,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Vt(e)):co(ps,n.stateNode));break;case 4:r=ps,o=hs,ps=n.stateNode.containerInfo,hs=!0,ms(e,t,n),ps=r,hs=o;break;case 0:case 11:case 14:case 15:if(!Jl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&rs(n,t,a),o=o.next}while(o!==r)}ms(e,t,n);break;case 1:if(!Jl&&(ns(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ou(n,t,l)}ms(e,t,n);break;case 21:ms(e,t,n);break;case 22:1&n.mode?(Jl=(r=Jl)||null!==n.memoizedState,ms(e,t,n),Jl=r):ms(e,t,n);break;default:ms(e,t,n)}}function ys(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new es),t.forEach((function(t){var r=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ps=s.stateNode,hs=!1;break e;case 3:case 4:ps=s.stateNode.containerInfo,hs=!0;break e}s=s.return}if(null===ps)throw Error(a(160));vs(i,l,o),ps=null,hs=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(c){Ou(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bs(t,e),t=t.sibling}function bs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),ws(e),4&r){try{is(3,e,e.return),as(3,e)}catch(v){Ou(e,e.return,v)}try{is(5,e,e.return)}catch(v){Ou(e,e.return,v)}}break;case 1:gs(t,e),ws(e),512&r&&null!==n&&ns(n,n.return);break;case 5:if(gs(t,e),ws(e),512&r&&null!==n&&ns(n,n.return),32&e.flags){var o=e.stateNode;try{he(o,"")}catch(v){Ou(e,e.return,v)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===i.type&&null!=i.name&&J(o,i),_e(s,l);var c=_e(s,i);for(l=0;l<u.length;l+=2){var f=u[l],d=u[l+1];"style"===f?ge(o,d):"dangerouslySetInnerHTML"===f?pe(o,d):"children"===f?he(o,d):_(o,f,d,c)}switch(s){case"input":ee(o,i);break;case"textarea":le(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?oe(o,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?oe(o,!!i.multiple,i.defaultValue,!0):oe(o,!!i.multiple,i.multiple?[]:"",!1))}o[vo]=i}catch(v){Ou(e,e.return,v)}}break;case 6:if(gs(t,e),ws(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){Ou(e,e.return,v)}}break;case 3:if(gs(t,e),ws(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(v){Ou(e,e.return,v)}break;case 4:default:gs(t,e),ws(e);break;case 13:gs(t,e),ws(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Vs=Je())),4&r&&ys(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Jl=(c=Jl)||f,gs(t,e),Jl=c):gs(t,e),ws(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!=(1&e.mode))for(ts=e,f=e.child;null!==f;){for(d=ts=f;null!==ts;){switch(h=(p=ts).child,p.tag){case 0:case 11:case 14:case 15:is(4,p,p.return);break;case 1:ns(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Ou(r,n,v)}}break;case 5:ns(p,p.return);break;case 22:if(null!==p.memoizedState){Cs(d);continue}}null!==h?(h.return=p,ts=h):Cs(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,l=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=ye("display",l))}catch(v){Ou(e,e.return,v)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){Ou(e,e.return,v)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gs(t,e),ws(e),4&r&&ys(e);case 21:}}function ws(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(us(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(he(o,""),r.flags&=-33),ds(e,cs(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;fs(e,cs(e),i);break;default:throw Error(a(161))}}catch(l){Ou(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function _s(e,t,n){ts=e,Ss(e,t,n)}function Ss(e,t,n){for(var r=0!=(1&e.mode);null!==ts;){var o=ts,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||$l;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Jl;l=$l;var u=Jl;if($l=a,(Jl=s)&&!u)for(ts=o;null!==ts;)s=(a=ts).child,22===a.tag&&null!==a.memoizedState?ks(o):null!==s?(s.return=a,ts=s):ks(o);for(;null!==i;)ts=i,Ss(i,t,n),i=i.sibling;ts=o,$l=l,Jl=u}Es(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,ts=i):Es(e)}}function Es(e){for(;null!==ts;){var t=ts;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Jl||as(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Jl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:bi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Bi(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bi(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Vt(d)}}}break;default:throw Error(a(163))}Jl||512&t.flags&&ls(t)}catch(p){Ou(t,t.return,p)}}if(t===e){ts=null;break}if(null!==(n=t.sibling)){n.return=t.return,ts=n;break}ts=t.return}}function Cs(e){for(;null!==ts;){var t=ts;if(t===e){ts=null;break}var n=t.sibling;if(null!==n){n.return=t.return,ts=n;break}ts=t.return}}function ks(e){for(;null!==ts;){var t=ts;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{as(4,t)}catch(s){Ou(t,n,s)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(s){Ou(t,o,s)}}var i=t.return;try{ls(t)}catch(s){Ou(t,i,s)}break;case 5:var a=t.return;try{ls(t)}catch(s){Ou(t,a,s)}}}catch(s){Ou(t,t.return,s)}if(t===e){ts=null;break}var l=t.sibling;if(null!==l){l.return=t.return,ts=l;break}ts=t.return}}var Ns,Os=Math.ceil,xs=S.ReactCurrentDispatcher,As=S.ReactCurrentOwner,Is=S.ReactCurrentBatchConfig,Ps=0,Ts=null,Rs=null,Ls=0,Ds=0,js=Oo(0),Ms=0,Fs=null,zs=0,Us=0,Bs=0,Hs=null,Gs=null,Vs=0,Ws=1/0,Zs=null,Ks=!1,Ys=null,qs=null,Qs=!1,Xs=null,$s=0,Js=0,eu=null,tu=-1,nu=0;function ru(){return 0!=(6&Ps)?Je():-1!==tu?tu:tu=Je()}function ou(e){return 0==(1&e.mode)?1:0!=(2&Ps)&&0!==Ls?Ls&-Ls:null!==gi.transition?(0===nu&&(nu=yt()),nu):0!==(e=_t)?e:e=void 0===(e=window.event)?16:$t(e.type)}function iu(e,t,n,r){if(50<Js)throw Js=0,eu=null,Error(a(185));bt(e,n,r),0!=(2&Ps)&&e===Ts||(e===Ts&&(0==(2&Ps)&&(Us|=n),4===Ms&&cu(e,Ls)),au(e,r),1===n&&0===Ps&&0==(1&t.mode)&&(Ws=Je()+500,Ho&&Wo()))}function au(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-st(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=mt(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ht(e,e===Ts?Ls:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Ho=!0,Vo(e)}(fu.bind(null,e)):Vo(fu.bind(null,e)),so((function(){0==(6&Ps)&&Wo()})),n=null;else{switch(St(r)){case 1:n=tt;break;case 4:n=nt;break;case 16:default:n=rt;break;case 536870912:n=it}n=Tu(n,lu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function lu(e,t){if(tu=-1,nu=0,0!=(6&Ps))throw Error(a(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ht(e,e===Ts?Ls:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=bu(e,r);else{t=r;var o=Ps;Ps|=2;var i=yu();for(Ts===e&&Ls===t||(Zs=null,Ws=Je()+500,mu(e,t));;)try{_u();break}catch(s){vu(e,s)}Ci(),xs.current=i,Ps=o,null!==Rs?t=0:(Ts=null,Ls=0,t=Ms)}if(0!==t){if(2===t&&(0!==(o=vt(e))&&(r=o,t=su(e,o))),1===t)throw n=Fs,mu(e,0),cu(e,r),au(e,Je()),n;if(6===t)cu(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ur(i(),o))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=bu(e,r))&&(0!==(i=vt(e))&&(r=i,t=su(e,i))),1===t))throw n=Fs,mu(e,0),cu(e,r),au(e,Je()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Cu(e,Gs,Zs);break;case 3:if(cu(e,r),(130023424&r)===r&&10<(t=Vs+500-Je())){if(0!==ht(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ru(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=io(Cu.bind(null,e,Gs,Zs),t);break}Cu(e,Gs,Zs);break;case 4:if(cu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-st(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Os(r/1960))-r)){e.timeoutHandle=io(Cu.bind(null,e,Gs,Zs),r);break}Cu(e,Gs,Zs);break;default:throw Error(a(329))}}}return au(e,Je()),e.callbackNode===n?lu.bind(null,e):null}function su(e,t){var n=Hs;return e.current.memoizedState.isDehydrated&&(mu(e,t).flags|=256),2!==(e=bu(e,t))&&(t=Gs,Gs=n,null!==t&&uu(t)),e}function uu(e){null===Gs?Gs=e:Gs.push.apply(Gs,e)}function cu(e,t){for(t&=~Bs,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function fu(e){if(0!=(6&Ps))throw Error(a(327));ku();var t=ht(e,0);if(0==(1&t))return au(e,Je()),null;var n=bu(e,t);if(0!==e.tag&&2===n){var r=vt(e);0!==r&&(t=r,n=su(e,r))}if(1===n)throw n=Fs,mu(e,0),cu(e,t),au(e,Je()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cu(e,Gs,Zs),au(e,Je()),null}function du(e,t){var n=Ps;Ps|=1;try{return e(t)}finally{0===(Ps=n)&&(Ws=Je()+500,Ho&&Wo())}}function pu(e){null!==Xs&&0===Xs.tag&&0==(6&Ps)&&ku();var t=Ps;Ps|=1;var n=Is.transition,r=_t;try{if(Is.transition=null,_t=1,e)return e()}finally{_t=r,Is.transition=n,0==(6&(Ps=t))&&Wo()}}function hu(){Ds=js.current,xo(js)}function mu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ao(n)),null!==Rs)for(n=Rs.return;null!==n;){var r=n;switch(oi(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&jo();break;case 3:la(),xo(To),xo(Po),pa();break;case 5:ua(r);break;case 4:la();break;case 13:case 19:xo(ca);break;case 10:ki(r.type._context);break;case 22:case 23:hu()}n=n.return}if(Ts=e,Rs=e=ju(e.current,null),Ls=Ds=t,Ms=0,Fs=null,Bs=Us=zs=0,Gs=Hs=null,null!==Ai){for(t=0;t<Ai.length;t++)if(null!==(r=(n=Ai[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ai=null}return e}function vu(e,t){for(;;){var n=Rs;try{if(Ci(),ha.current=sl,wa){for(var o=ya.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}wa=!1}if(va=0,ba=ga=ya=null,_a=!1,Sa=0,As.current=null,null===n||null===n.return){Ms=1,Fs=t,Rs=null;break}e:{var l=e,s=n.return,u=n,c=t;if(t=Ls,u.flags|=32768,null!==c&&"object"===r(c)&&"function"==typeof c.then){var f=c,d=u,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=bl(s);if(null!==m){m.flags&=-257,wl(m,s,u,0,t),1&m.mode&&gl(l,f,t),c=f;var v=(t=m).updateQueue;if(null===v){var y=new Set;y.add(c),t.updateQueue=y}else v.add(c);break e}if(0==(1&t)){gl(l,f,t),gu();break e}c=Error(a(426))}else if(li&&1&u.mode){var g=bl(s);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),wl(g,s,u,0,t),yi(dl(c,u));break e}}l=c=dl(c,u),4!==Ms&&(Ms=2),null===Hs?Hs=[l]:Hs.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t,zi(l,vl(0,c,t));break e;case 1:u=c;var b=l.type,w=l.stateNode;if(0==(128&l.flags)&&("function"==typeof b.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===qs||!qs.has(w)))){l.flags|=65536,t&=-t,l.lanes|=t,zi(l,yl(l,u,t));break e}}l=l.return}while(null!==l)}Eu(n)}catch(_){t=_,Rs===n&&null!==n&&(Rs=n=n.return);continue}break}}function yu(){var e=xs.current;return xs.current=sl,null===e?sl:e}function gu(){0!==Ms&&3!==Ms&&2!==Ms||(Ms=4),null===Ts||0==(268435455&zs)&&0==(268435455&Us)||cu(Ts,Ls)}function bu(e,t){var n=Ps;Ps|=2;var r=yu();for(Ts===e&&Ls===t||(Zs=null,mu(e,t));;)try{wu();break}catch(o){vu(e,o)}if(Ci(),Ps=n,xs.current=r,null!==Rs)throw Error(a(261));return Ts=null,Ls=0,Ms}function wu(){for(;null!==Rs;)Su(Rs)}function _u(){for(;null!==Rs&&!Xe();)Su(Rs)}function Su(e){var t=Ns(e.alternate,e,Ds);e.memoizedProps=e.pendingProps,null===t?Eu(e):Rs=t,As.current=null}function Eu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ql(n,t,Ds)))return void(Rs=n)}else{if(null!==(n=Xl(n,t)))return n.flags&=32767,void(Rs=n);if(null===e)return Ms=6,void(Rs=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Rs=t);Rs=t=e}while(null!==t);0===Ms&&(Ms=5)}function Cu(e,t,n){var r=_t,o=Is.transition;try{Is.transition=null,_t=1,function(e,t,n,r){do{ku()}while(null!==Xs);if(0!=(6&Ps))throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Ts&&(Rs=Ts=null,Ls=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Qs||(Qs=!0,Tu(rt,(function(){return ku(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Is.transition,Is.transition=null;var l=_t;_t=1;var s=Ps;Ps|=4,As.current=null,function(e,t){if(no=Zt,mr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(_){n=null;break e}var l=0,s=-1,u=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(s=l+o),d!==i||0!==r&&3!==d.nodeType||(u=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===o&&(s=l),p===i&&++f===r&&(u=l),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ro={focusedElem:e,selectionRange:n},Zt=!1,ts=t;null!==ts;)if(e=(t=ts).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ts=e;else for(;null!==ts;){t=ts;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,y=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:bi(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(_){Ou(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,ts=e;break}ts=t.return}m=os,os=!1}(e,n),bs(n,e),vr(ro),Zt=!!no,ro=no=null,e.current=n,_s(n,e,o),$e(),Ps=s,_t=l,Is.transition=i}else e.current=n;if(Qs&&(Qs=!1,Xs=e,$s=o),i=e.pendingLanes,0===i&&(qs=null),function(e){if(lt&&"function"==typeof lt.onCommitFiberRoot)try{lt.onCommitFiberRoot(at,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),au(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ks)throw Ks=!1,e=Ys,Ys=null,e;0!=(1&$s)&&0!==e.tag&&ku(),i=e.pendingLanes,0!=(1&i)?e===eu?Js++:(Js=0,eu=e):Js=0,Wo()}(e,t,n,r)}finally{Is.transition=o,_t=r}return null}function ku(){if(null!==Xs){var e=St($s),t=Is.transition,n=_t;try{if(Is.transition=null,_t=16>e?16:e,null===Xs)var r=!1;else{if(e=Xs,Xs=null,$s=0,0!=(6&Ps))throw Error(a(331));var o=Ps;for(Ps|=4,ts=e.current;null!==ts;){var i=ts,l=i.child;if(0!=(16&ts.flags)){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(ts=c;null!==ts;){var f=ts;switch(f.tag){case 0:case 11:case 15:is(8,f,i)}var d=f.child;if(null!==d)d.return=f,ts=d;else for(;null!==ts;){var p=(f=ts).sibling,h=f.return;if(ss(f),f===c){ts=null;break}if(null!==p){p.return=h,ts=p;break}ts=h}}}var m=i.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(null!==v)}}ts=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,ts=l;else e:for(;null!==ts;){if(0!=(2048&(i=ts).flags))switch(i.tag){case 0:case 11:case 15:is(9,i,i.return)}var g=i.sibling;if(null!==g){g.return=i.return,ts=g;break e}ts=i.return}}var b=e.current;for(ts=b;null!==ts;){var w=(l=ts).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,ts=w;else e:for(l=b;null!==ts;){if(0!=(2048&(s=ts).flags))try{switch(s.tag){case 0:case 11:case 15:as(9,s)}}catch(S){Ou(s,s.return,S)}if(s===l){ts=null;break e}var _=s.sibling;if(null!==_){_.return=s.return,ts=_;break e}ts=s.return}}if(Ps=o,Wo(),lt&&"function"==typeof lt.onPostCommitFiberRoot)try{lt.onPostCommitFiberRoot(at,e)}catch(S){}r=!0}return r}finally{_t=n,Is.transition=t}}return!1}function Nu(e,t,n){e=Mi(e,t=vl(0,t=dl(n,t),1),1),t=ru(),null!==e&&(bt(e,1,t),au(e,t))}function Ou(e,t,n){if(3===e.tag)Nu(e,e,n);else for(;null!==t;){if(3===t.tag){Nu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qs||!qs.has(r))){t=Mi(t,e=yl(t,e=dl(n,e),1),1),e=ru(),null!==t&&(bt(t,1,e),au(t,e));break}}t=t.return}}function xu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ru(),e.pingedLanes|=e.suspendedLanes&n,Ts===e&&(Ls&n)===n&&(4===Ms||3===Ms&&(130023424&Ls)===Ls&&500>Je()-Vs?mu(e,0):Bs|=n),au(e,t)}function Au(e,t){0===t&&(0==(1&e.mode)?t=1:(t=dt,0==(130023424&(dt<<=1))&&(dt=4194304)));var n=ru();null!==(e=Ti(e,t))&&(bt(e,t,n),au(e,n))}function Iu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Au(e,n)}function Pu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Au(e,n)}function Tu(e,t){return qe(e,t)}function Ru(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lu(e,t,n,r){return new Ru(e,t,n,r)}function Du(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ju(e,t){var n=e.alternate;return null===n?((n=Lu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mu(e,t,n,o,i,l){var s=2;if(o=e,"function"==typeof e)Du(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case k:return Fu(n.children,i,l,t);case N:s=8,i|=8;break;case O:return(e=Lu(12,n,t,2|i)).elementType=O,e.lanes=l,e;case P:return(e=Lu(13,n,t,i)).elementType=P,e.lanes=l,e;case T:return(e=Lu(19,n,t,i)).elementType=T,e.lanes=l,e;case D:return zu(n,i,l,t);default:if("object"===r(e)&&null!==e)switch(e.$$typeof){case x:s=10;break e;case A:s=9;break e;case I:s=11;break e;case R:s=14;break e;case L:s=16,o=null;break e}throw Error(a(130,null==e?e:r(e),""))}return(t=Lu(s,n,t,i)).elementType=e,t.type=o,t.lanes=l,t}function Fu(e,t,n,r){return(e=Lu(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Lu(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Uu(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function Bu(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gu(e,t,n,r,o,i,a,l,s){return e=new Hu(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Lu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Vu(e){if(!e)return Io;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Do(n))return Fo(e,n,t)}return t}function Wu(e,t,n,r,o,i,a,l,s){return(e=Gu(n,r,!0,e,0,i,0,l,s)).context=Vu(null),n=e.current,(i=ji(r=ru(),o=ou(n))).callback=null!=t?t:null,Mi(n,i,o),e.current.lanes=o,bt(e,o,r),au(e,r),e}function Zu(e,t,n,r){var o=t.current,i=ru(),a=ou(o);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=ji(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Mi(o,t,a))&&(iu(e,o,a,i),Fi(e,o,a)),a}function Ku(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}Ns=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)Sl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Sl=!1,function(e,t,n){switch(t.tag){case 3:Tl(t),vi();break;case 5:sa(t);break;case 1:Do(t.type)&&zo(t);break;case 4:aa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ao(wi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ao(ca,1&ca.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ul(e,t,n):(Ao(ca,1&ca.current),null!==(e=Kl(e,t,n))?e.sibling:null);Ao(ca,1&ca.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Wl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ao(ca,ca.current),r)break;return null;case 22:case 23:return t.lanes=0,Ol(e,t,n)}return Kl(e,t,n)}(e,t,n);Sl=0!=(131072&e.flags)}else Sl=!1,li&&0!=(1048576&t.flags)&&ni(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Zl(e,t),e=t.pendingProps;var i=Lo(t,Po.current);Oi(t,n),i=Na(null,t,o,e,i,n);var l=Oa();return t.flags|=1,"object"===r(i)&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(o)?(l=!0,zo(t)):l=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Li(t),i.updater=Vi,t.stateNode=i,i._reactInternals=t,Yi(t,o,e,n),t=Pl(null,t,o,!0,l,n)):(t.tag=0,li&&l&&ri(t),El(null,t,i,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Zl(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Du(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===R)return 14}return 2}(o),e=bi(o,e),i){case 0:t=Al(null,t,o,e,n);break e;case 1:t=Il(null,t,o,e,n);break e;case 11:t=Cl(null,t,o,e,n);break e;case 14:t=kl(null,t,o,bi(o.type,e),n);break e}throw Error(a(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Al(e,t,o,i=t.elementType===o?i:bi(o,i),n);case 1:return o=t.type,i=t.pendingProps,Il(e,t,o,i=t.elementType===o?i:bi(o,i),n);case 3:e:{if(Tl(t),null===e)throw Error(a(387));o=t.pendingProps,i=(l=t.memoizedState).element,Di(e,t),Ui(t,o,null,n);var s=t.memoizedState;if(o=s.element,l.isDehydrated){if(l={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,256&t.flags){t=Rl(e,t,o,n,i=dl(Error(a(423)),t));break e}if(o!==i){t=Rl(e,t,o,n,i=dl(Error(a(424)),t));break e}for(ai=fo(t.stateNode.containerInfo.firstChild),ii=t,li=!0,si=null,n=ea(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(vi(),o===i){t=Kl(e,t,n);break e}El(e,t,o,n)}t=t.child}return t;case 5:return sa(t),null===e&&di(t),o=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,s=i.children,oo(o,i)?s=null:null!==l&&oo(o,l)&&(t.flags|=32),xl(e,t),El(e,t,s,n),t.child;case 6:return null===e&&di(t),null;case 13:return Ul(e,t,n);case 4:return aa(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ji(t,null,o,n):El(e,t,o,n),t.child;case 11:return o=t.type,i=t.pendingProps,Cl(e,t,o,i=t.elementType===o?i:bi(o,i),n);case 7:return El(e,t,t.pendingProps,n),t.child;case 8:case 12:return El(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,Ao(wi,o._currentValue),o._currentValue=s,null!==l)if(ur(l.value,s)){if(l.children===i.children&&!To.current){t=Kl(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===o){if(1===l.tag){(c=ji(-1,n&-n)).tag=2;var f=l.updateQueue;if(null!==f){var d=(f=f.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),f.pending=c}}l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),Ni(l.return,n,t),u.lanes|=n;break}c=c.next}}else if(10===l.tag)s=l.type===t.type?null:l.child;else if(18===l.tag){if(null===(s=l.return))throw Error(a(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Ni(s,n,t),s=l.sibling}else s=l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}El(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Oi(t,n),o=o(i=xi(i)),t.flags|=1,El(e,t,o,n),t.child;case 14:return i=bi(o=t.type,t.pendingProps),kl(e,t,o,i=bi(o.type,i),n);case 15:return Nl(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:bi(o,i),Zl(e,t),t.tag=1,Do(o)?(e=!0,zo(t)):e=!1,Oi(t,n),Zi(t,o,i),Yi(t,o,i,n),Pl(null,t,o,!0,e,n);case 19:return Wl(e,t,n);case 22:return Ol(e,t,n)}throw Error(a(156,t.tag))};var Qu="function"==typeof reportError?reportError:function(e){console.error(e)};function Xu(e){this._internalRoot=e}function $u(e){this._internalRoot=e}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ec(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function tc(){}function nc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Ku(a);l.call(e)}}Zu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Ku(a);i.call(e)}}var a=Wu(t,r,e,0,null,!1,0,"",tc);return e._reactRootContainer=a,e[yo]=a.current,Vr(8===e.nodeType?e.parentNode:e),pu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Ku(s);l.call(e)}}var s=Gu(e,0,!1,null,0,!1,0,"",tc);return e._reactRootContainer=s,e[yo]=s.current,Vr(8===e.nodeType?e.parentNode:e),pu((function(){Zu(t,s,n,r)})),s}(n,t,e,o,r);return Ku(a)}$u.prototype.render=Xu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Zu(e,t,null,null)},$u.prototype.unmount=Xu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pu((function(){Zu(null,e,null,null)})),t[yo]=null}},$u.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&zt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(wt(t,1|n),au(t,Je()),0==(6&Ps)&&(Ws=Je()+500,Wo()))}break;case 13:pu((function(){var t=Ti(e,1);if(null!==t){var n=ru();iu(t,e,1,n)}})),qu(e,1)}},Ct=function(e){if(13===e.tag){var t=Ti(e,134217728);if(null!==t)iu(t,e,134217728,ru());qu(e,134217728)}},kt=function(e){if(13===e.tag){var t=ou(e),n=Ti(e,t);if(null!==n)iu(n,e,t,ru());qu(e,t)}},Nt=function(){return _t},Ot=function(e,t){var n=_t;try{return _t=e,t()}finally{_t=n}},Ce=function(e,t,n){switch(t){case"input":if(ee(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(a(90));q(r),ee(r,o)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Ie=du,Pe=pu;var rc={usingClientEntryPoint:!1,Events:[So,Eo,Co,xe,Ae,du]},oc={findFiberByHostInstance:_o,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ic={bundleType:oc.bundleType,version:oc.version,rendererPackageName:oc.rendererPackageName,rendererConfig:oc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:oc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{at=ac.inject(ic),lt=ac}catch(de){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Ju(e))throw Error(a(299));var n=!1,r="",o=Qu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Gu(e,1,!1,null,0,n,0,r,o),e[yo]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Xu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return pu(e)},t.hydrate=function(e,t,n){if(!ec(t))throw Error(a(200));return nc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ju(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=Qu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Wu(t,null,e,1,null!=n?n:null,o,0,i,l),e[yo]=t.current,Vr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new $u(t)},t.render=function(e,t,n){if(!ec(t))throw Error(a(200));return nc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ec(e))throw Error(a(40));return!!e._reactRootContainer&&(pu((function(){nc(null,null,e,!1,(function(){e._reactRootContainer=null,e[yo]=null}))})),!0)},t.unstable_batchedUpdates=du,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ec(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return nc(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},"../../node_modules/react-dom/client.js":function(e,t,n){var r=n("../../node_modules/react-dom/index.js");t.s=r.createRoot,r.hydrateRoot},"../../node_modules/react-dom/index.js":function(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n("../../node_modules/react-dom/cjs/react-dom.production.min.js")},"../../node_modules/react/cjs/react-jsx-runtime.production.min.js":function(e,t,n){var r=n("../../node_modules/react/index.js"),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},"../../node_modules/react/cjs/react.production.min.js":function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,y={};function g(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function b(){}function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==n(e)&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var _=w.prototype=new b;_.constructor=w,v(_,g.prototype),_.isPureReactComponent=!0;var S=Array.isArray,E=Object.prototype.hasOwnProperty,C={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:r,type:e,key:a,ref:l,props:i,_owner:C.current}}function O(e){return"object"===n(e)&&null!==e&&e.$$typeof===r}var x=/\/+/g;function A(e,t){return"object"===n(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 I(e,t,i,a,l){var s=n(e);"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case r:case o:u=!0}}if(u)return l=l(u=e),e=""===a?"."+A(u,0):a,S(l)?(i="",null!=e&&(i=e.replace(x,"$&/")+"/"),I(l,t,i,"",(function(e){return e}))):null!=l&&(O(l)&&(l=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(l,i+(!l.key||u&&u.key===l.key?"":(""+l.key).replace(x,"$&/")+"/")+e)),t.push(l)),1;if(u=0,a=""===a?".":a+":",S(e))for(var c=0;c<e.length;c++){var f=a+A(s=e[c],c);u+=I(s,t,i,f,l)}else if(f=function(e){return null===e||"object"!==n(e)?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof f)for(e=f.call(e),c=0;!(s=e.next()).done;)u+=I(s=s.value,t,i,f=a+A(s,c++),l);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},L={transition:null},D={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:L,ReactCurrentOwner:C};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=l,t.PureComponent=w,t.StrictMode=a,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)E.call(t,u)&&!k.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:r,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=N,t.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},"../../node_modules/react/index.js":function(e,t,n){e.exports=n("../../node_modules/react/cjs/react.production.min.js")},"../../node_modules/react/jsx-runtime.js":function(e,t,n){e.exports=n("../../node_modules/react/cjs/react-jsx-runtime.production.min.js")},"../../node_modules/scheduler/cjs/scheduler.production.min.js":function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function o(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>a(s,n))u<o&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===("undefined"==typeof performance?"undefined":n(performance))&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],f=[],d=1,p=null,h=3,m=!1,v=!1,y=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=o(f);null!==t;){if(null===t.callback)i(f);else{if(!(t.startTime<=e))break;i(f),t.sortIndex=t.expirationTime,r(c,t)}t=o(f)}}function S(e){if(y=!1,_(e),!v)if(null!==o(c))v=!0,L(E);else{var t=o(f);null!==t&&D(S,t.startTime-e)}}function E(e,n){v=!1,y&&(y=!1,b(O),O=-1),m=!0;var r=h;try{for(_(n),p=o(c);null!==p&&(!(p.expirationTime>n)||e&&!I());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var l=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?p.callback=l:p===o(c)&&i(c),_(n)}else i(c);p=o(c)}if(null!==p)var s=!0;else{var u=o(f);null!==u&&D(S,u.startTime-n),s=!1}return s}finally{p=null,h=r,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,k=!1,N=null,O=-1,x=5,A=-1;function I(){return!(t.unstable_now()-A<x)}function P(){if(null!==N){var e=t.unstable_now();A=e;var n=!0;try{n=N(!0,e)}finally{n?C():(k=!1,N=null)}}else k=!1}if("function"==typeof w)C=function(){w(P)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,R=T.port2;T.port1.onmessage=P,C=function(){R.postMessage(null)}}else C=function(){g(P,0)};function L(e){N=e,k||(k=!0,C())}function D(e,n){O=g((function(){e(t.unstable_now())}),n)}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(){v||m||(v=!0,L(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return o(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();switch("object"===n(a)&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,r(f,e),null===o(c)&&e===o(f)&&(y?(b(O),O=-1):y=!0,D(S,a-l))):(e.sortIndex=s,r(c,e),v||m||(v=!0,L(E))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},"../../node_modules/scheduler/index.js":function(e,t,n){e.exports=n("../../node_modules/scheduler/cjs/scheduler.production.min.js")},"../../node_modules/ua-parser-js/dist/ua-parser.min.js":function(e,t,n){var r;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}e=n.nmd(e),function(i,a){var l="function",s="undefined",u="object",c="string",f="major",d="model",p="name",h="type",m="vendor",v="version",y="architecture",g="console",b="mobile",w="tablet",_="smarttv",S="wearable",E="embedded",C="Amazon",k="Apple",N="ASUS",O="BlackBerry",x="Browser",A="Chrome",I="Firefox",P="Google",T="Huawei",R="LG",L="Microsoft",D="Motorola",j="Opera",M="Samsung",F="Sharp",z="Sony",U="Xiaomi",B="Zebra",H="Facebook",G="Chromium OS",V="Mac OS",W=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Z=function(e,t){return o(e)===c&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},Y=function(e,t){if(o(e)===c)return e=e.replace(/^\s\s*/,""),o(t)===s?e:e.substring(0,350)},q=function(e,t){for(var n,r,i,s,c,f,d=0;d<t.length&&!c;){var p=t[d],h=t[d+1];for(n=r=0;n<p.length&&!c&&p[n];)if(c=p[n++].exec(e))for(i=0;i<h.length;i++)f=c[++r],o(s=h[i])===u&&s.length>0?2===s.length?o(s[1])==l?this[s[0]]=s[1].call(this,f):this[s[0]]=s[1]:3===s.length?o(s[1])!==l||s[1].exec&&s[1].test?this[s[0]]=f?f.replace(s[1],s[2]):a:this[s[0]]=f?s[1].call(this,f,s[2]):a:4===s.length&&(this[s[0]]=f?s[3].call(this,f.replace(s[1],s[2])):a):this[s]=f||a;d+=2}},Q=function(e,t){for(var n in t)if(o(t[n])===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Z(t[n][r],e))return"?"===n?a:n}else if(Z(t[n],e))return"?"===n?a:n;return e},X={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"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,v],[/opios[\/ ]+([\w\.]+)/i],[v,[p,j+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[p,j]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[p,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[p,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[p,"IE"]],[/yabrowser\/([\w\.]+)/i],[v,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+x],v],[/\bfocus\/([\w\.]+)/i],[v,[p,I+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[p,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[p,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[p,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[v,[p,I]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+x],v],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,H],v],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[p,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[p,A+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,A+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[p,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[v,Q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[p,I+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,v],[/(cobalt)\/([\w\.]+)/i],[p,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,K]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[m,M],[h,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[m,M],[h,b]],[/\((ip(?:hone|od)[\w ]*);/i],[d,[m,k],[h,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[m,k],[h,w]],[/(macintosh);/i],[d,[m,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[m,F],[h,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[m,T],[h,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[m,T],[h,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[m,U],[h,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[m,U],[h,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[m,"OPPO"],[h,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[m,"Vivo"],[h,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[m,"Realme"],[h,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[m,D],[h,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[m,D],[h,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[m,R],[h,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[m,R],[h,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[m,"Lenovo"],[h,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[m,"Nokia"],[h,b]],[/(pixel c)\b/i],[d,[m,P],[h,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[m,P],[h,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[m,z],[h,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[m,z],[h,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[m,"OnePlus"],[h,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[m,C],[h,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[m,C],[h,b]],[/(playbook);[-\w\),; ]+(rim)/i],[d,m,[h,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[m,O],[h,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[m,N],[h,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[m,N],[h,b]],[/(nexus 9)/i],[d,[m,"HTC"],[h,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[d,/_/g," "],[h,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[m,"Acer"],[h,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[m,"Meizu"],[h,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,d,[h,b]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,d,[h,w]],[/(surface duo)/i],[d,[m,L],[h,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[m,"Fairphone"],[h,b]],[/(u304aa)/i],[d,[m,"AT&T"],[h,b]],[/\bsie-(\w*)/i],[d,[m,"Siemens"],[h,b]],[/\b(rct\w+) b/i],[d,[m,"RCA"],[h,w]],[/\b(venue[\d ]{2,7}) b/i],[d,[m,"Dell"],[h,w]],[/\b(q(?:mv|ta)\w+) b/i],[d,[m,"Verizon"],[h,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[m,"Barnes & Noble"],[h,w]],[/\b(tm\d{3}\w+) b/i],[d,[m,"NuVision"],[h,w]],[/\b(k88) b/i],[d,[m,"ZTE"],[h,w]],[/\b(nx\d{3}j) b/i],[d,[m,"ZTE"],[h,b]],[/\b(gen\d{3}) b.+49h/i],[d,[m,"Swiss"],[h,b]],[/\b(zur\d{3}) b/i],[d,[m,"Swiss"],[h,w]],[/\b((zeki)?tb.*\b) b/i],[d,[m,"Zeki"],[h,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],d,[h,w]],[/\b(ns-?\w{0,9}) b/i],[d,[m,"Insignia"],[h,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[m,"NextBook"],[h,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],d,[h,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],d,[h,b]],[/\b(ph-1) /i],[d,[m,"Essential"],[h,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[m,"Envizen"],[h,w]],[/\b(trio[-\w\. ]+) b/i],[d,[m,"MachSpeed"],[h,w]],[/\btu_(1491) b/i],[d,[m,"Rotor"],[h,w]],[/(shield[\w ]+) b/i],[d,[m,"Nvidia"],[h,w]],[/(sprint) (\w+)/i],[m,d,[h,b]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[m,L],[h,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[m,B],[h,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[m,B],[h,b]],[/smart-tv.+(samsung)/i],[m,[h,_]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[m,M],[h,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,R],[h,_]],[/(apple) ?tv/i],[m,[d,k+" TV"],[h,_]],[/crkey/i],[[d,A+"cast"],[m,P],[h,_]],[/droid.+aft(\w)( bui|\))/i],[d,[m,C],[h,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[m,F],[h,_]],[/(bravia[\w ]+)( bui|\))/i],[d,[m,z],[h,_]],[/(mitv-\w{5}) bui/i],[d,[m,U],[h,_]],[/Hbbtv.*(technisat) (.*);/i],[m,d,[h,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,Y],[d,Y],[h,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,d,[h,g]],[/droid.+; (shield) bui/i],[d,[m,"Nvidia"],[h,g]],[/(playstation [345portablevi]+)/i],[d,[m,z],[h,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[m,L],[h,g]],[/((pebble))app/i],[m,d,[h,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[m,k],[h,S]],[/droid.+; (glass) \d/i],[d,[m,P],[h,S]],[/droid.+; (wt63?0{2,3})\)/i],[d,[m,B],[h,S]],[/(quest( 2| pro)?)/i],[d,[m,H],[h,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[h,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[h,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,b]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[p,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[v,Q,X]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[v,Q,X]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,V],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,v],[/\(bb(10);/i],[v,[p,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[p,I+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[p,A+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,G],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,v],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[p,v]]},J=function e(t,n){if(o(t)===u&&(n=t,t=a),!(this instanceof e))return new e(t,n).getResult();var r=o(i)!==s&&i.navigator?i.navigator:a,g=t||(r&&r.userAgent?r.userAgent:""),_=r&&r.userAgentData?r.userAgentData:a,S=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}($,n):$;return this.getBrowser=function(){var e,t={};return t[p]=a,t[v]=a,q.call(t,g,S.browser),t[f]=o(e=t[v])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:a,r&&r.brave&&o(r.brave.isBrave)==l&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[y]=a,q.call(e,g,S.cpu),e},this.getDevice=function(){var e={};return e[m]=a,e[d]=a,e[h]=a,q.call(e,g,S.device),!e[h]&&_&&_.mobile&&(e[h]=b),"Macintosh"==e[d]&&r&&o(r.standalone)!==s&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[d]="iPad",e[h]=w),e},this.getEngine=function(){var e={};return e[p]=a,e[v]=a,q.call(e,g,S.engine),e},this.getOS=function(){var e={};return e[p]=a,e[v]=a,q.call(e,g,S.os),!e[p]&&_&&"Unknown"!=_.platform&&(e[p]=_.platform.replace(/chrome os/i,G).replace(/macos/i,V)),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 g},this.setUA=function(e){return g=o(e)===c&&e.length>350?Y(e,350):e,this},this.setUA(g),this};J.VERSION="1.0.34",J.BROWSER=W([p,v,f]),J.CPU=W([y]),J.DEVICE=W([d,m,h,g,b,_,w,S,E]),J.ENGINE=J.OS=W([p,v]),o(t)!==s?(o(e)!==s&&e.exports&&(t=e.exports=J),t.UAParser=J):o(n.amdD)===l&&n.amdO?(r=function(){return J}.call(t,n,t,e))===a||(e.exports=r):o(i)!==s&&(i.UAParser=J);var ee=o(i)!==s&&(i.jQuery||i.Zepto);if(ee&&!ee.ua){var te=new J;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"===("undefined"==typeof window?"undefined":o(window))?window:this)},"../../common/components/webcamera/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("../../node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,".xl44rW4kuSyU533NCnrj {\n flex: 1;\n}\n\nvideo {\n background-color: white;\n width: 100%;\n height: 100%;\n object-fit: contain;\n transform: scaleX(-1);\n}\n\n.NRBs5Nn9pHvgApyzPFB3 {\n transform: scaleX(1);\n}\n",""]),a.locals={container:"xl44rW4kuSyU533NCnrj",mirroring:"NRBs5Nn9pHvgApyzPFB3"},t.Z=a},"../../common/icons/Button.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("../../node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,".HFqamWEvachioPpbBBsB {\n border: none;\n margin: 0;\n background: var(--main-color);\n cursor: pointer;\n text-align: center;\n text-decoration: none;\n font-family: var(--font-family);\n font-size: 1em;\n font-weight: normal;\n line-height: 1.5em;\n color: white;\n appearance: none;\n padding: 0.5em 2.15em;\n border-radius: 2px;\n transition: background 250ms ease-in-out, transform 150ms ease;\n}\n\n.HFqamWEvachioPpbBBsB:hover {\n background: var(--hover-color);\n}\n\n.HFqamWEvachioPpbBBsB:active {\n background: var(--active-color);\n}\n",""]),a.locals={button:"HFqamWEvachioPpbBBsB"},t.Z=a},"../../common/icons/Spinner.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("../../node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,'.DoeKWt2U4EtFGGXNAWz5 {\n height: 50px;\n width: 50px;\n}\n\n@keyframes MqbdhTIHKfhcoRig_P79 {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.vdpmGfEuokyPSe9kUIWx {\n position: relative;\n width: 50px;\n height: 50px;\n clip: rect(22px, 44px, 44px, 0);\n animation: MqbdhTIHKfhcoRig_P79 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;\n}\n\n.vdpmGfEuokyPSe9kUIWx::before, .vdpmGfEuokyPSe9kUIWx::after {\n content: "";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n margin: auto;\n height: 44px;\n width: 44px;\n border-radius: 50%;\n}\n\n.vdpmGfEuokyPSe9kUIWx::before {\n border: 3px solid transparent;\n border-top: 3px solid var(--main-color);\n animation: MqbdhTIHKfhcoRig_P79 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;\n}\n\n.vdpmGfEuokyPSe9kUIWx::after {\n border: 3px solid rgba(49, 49, 49, 0.1);\n}\n',""]),a.locals={container:"DoeKWt2U4EtFGGXNAWz5",spinner:"vdpmGfEuokyPSe9kUIWx",spin:"MqbdhTIHKfhcoRig_P79"},t.Z=a},"./src/components/container/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("../../node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,"*, *::before, *::after {\n box-sizing: border-box;\n}\n\n:host {\n display: block;\n --font-family: Noto Sans, sans-serif;\n --font-size: 16px;\n --main-color: #bd7dff;\n --hover-color: #bd00ff;\n --active-color: #bd7dff;\n width: 100%;\n height: 100%;\n}\n\ndocument-reader {\n display: block;\n --font-family: Noto Sans, sans-serif;\n --font-size: 16px;\n --main-color: #bd7dff;\n --hover-color: #bd00ff;\n --active-color: #bd7dff;\n width: 100%;\n height: 100%;\n}\n\ncamera-snapshot {\n display: block;\n --font-family: Noto Sans, sans-serif;\n --font-size: 16px;\n --main-color: #bd7dff;\n --hover-color: #bd00ff;\n --active-color: #bd7dff;\n width: 100%;\n height: 100%;\n}\n\n.Id5wCbNRwOQKecr226wA {\n width: 640px;\n height: 360px;\n position: relative;\n background: white;\n overflow: hidden;\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);\n color: white;\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n -webkit-transform: translate3d(0, 0, 0);\n -moz-transform: translate3d(0, 0, 0);\n font-family: var(--font-family);\n font-size: var(--font-size);\n margin: 0 auto;\n}\n\n.Id5wCbNRwOQKecr226wA[data-direction='rtl'] {\n direction: rtl;\n}\n\n.Id5wCbNRwOQKecr226wA[data-direction='ltr'] {\n direction: ltr;\n}\n\n.Id5wCbNRwOQKecr226wA.kR0wEqAZohlqDkMuUOR3 {\n width: 100%;\n height: 100%;\n border-radius: 0;\n box-shadow: none;\n}\n\n.ddOP01Ag5Ei5sMnIPsPw {\n position: absolute;\n top: 0;\n display: flex;\n justify-content: flex-end;\n padding: 16px;\n}\n\ndiv[data-direction='rtl'] .ddOP01Ag5Ei5sMnIPsPw {\n left: 0;\n}\n\ndiv[data-direction='ltr'] .ddOP01Ag5Ei5sMnIPsPw {\n right: 0;\n}\n\n.ddOP01Ag5Ei5sMnIPsPw button, .jLC5XiJgjYEyi_zPJWyA button {\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n background: none;\n cursor: pointer;\n text-align: center;\n transition: background 250ms ease-in-out, transform 150ms ease;\n appearance: none;\n}\n\n.jLC5XiJgjYEyi_zPJWyA {\n position: absolute;\n bottom: 0;\n padding: 0 16px 10px;\n display: flex;\n align-items: center;\n}\n\ndiv[data-direction='rtl'] .jLC5XiJgjYEyi_zPJWyA {\n right: 0;\n}\n\ndiv[data-direction='ltr'] .jLC5XiJgjYEyi_zPJWyA {\n left: 0;\n}\n\n.NdiYGZWxA0wWOe0DzfPD {\n display: flex;\n align-items: center;\n}\n\n.NdiYGZWxA0wWOe0DzfPD span {\n font-size: 10px;\n line-height: 24px;\n color: #8C8C8C;\n}\n\n.NdiYGZWxA0wWOe0DzfPD .WNwdRWoMESCAg7DGVscm {\n margin: 0 6px;\n opacity: 0.3;\n height: 18px;\n width: 1px;\n background-color: #8C8C8C;\n}\n\n.NdiYGZWxA0wWOe0DzfPD._PjdNMvQStJxRzq9dyk2 span, .NdiYGZWxA0wWOe0DzfPD._PjdNMvQStJxRzq9dyk2 .WNwdRWoMESCAg7DGVscm {\n color: rgba(255, 255, 255, 0.9);\n}\n\n@media (max-width: 640px) {\n .Id5wCbNRwOQKecr226wA {\n width: 100%;\n height: 100%;\n border-radius: 0;\n }\n\n .jLC5XiJgjYEyi_zPJWyA {\n width: 100%;\n justify-content: center;\n }\n}\n",""]),a.locals={window:"Id5wCbNRwOQKecr226wA",full:"kR0wEqAZohlqDkMuUOR3",header:"ddOP01Ag5Ei5sMnIPsPw",footer:"jLC5XiJgjYEyi_zPJWyA",ads:"NdiYGZWxA0wWOe0DzfPD",pipe:"WNwdRWoMESCAg7DGVscm",processing:"_PjdNMvQStJxRzq9dyk2"},t.Z=a},"./src/components/info-screen/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("../../node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,".cfLyzmVLR0omr_N7Wgsn {\n display: flex;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 0 1.5em;\n}\n\n.rIV0RuQs4THTh3iKcCMy {\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 350px;\n word-break: break-word;\n}\n\n.rIV0RuQs4THTh3iKcCMy > svg {\n margin-bottom: 1.12em;\n}\n\n.cfLyzmVLR0omr_N7Wgsn .esPd7UI8Kn7VZgTJnONk {\n margin: 0 0 0.4em;\n font-size: 1.25em;\n font-weight: bold;\n line-height: 1.4em;\n color: #262626;\n text-align: center;\n}\n\n.cfLyzmVLR0omr_N7Wgsn .LFOirrN3wPKBINkOxfSf {\n margin: 0 0 1em;\n font-style: normal;\n font-size: 1em;\n font-weight: normal;\n line-height: 1.375em;\n color: #8C8C8C;\n text-align: center;\n}\n",""]),a.locals={"info-message":"cfLyzmVLR0omr_N7Wgsn","text-container":"rIV0RuQs4THTh3iKcCMy",title:"esPd7UI8Kn7VZgTJnONk",subtitle:"LFOirrN3wPKBINkOxfSf"},t.Z=a},"./src/components/layout/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("../../node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,".pPENnQwkQ3hnNDe95CXQ {\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.dYHBzaM5Fln11rgWFpP0 {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n}\n\n.i1xlxNxzn2eTQx9bFweO {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n}\n\n.i1xlxNxzn2eTQx9bFweO rect {\n transition: .25s stroke;\n}\n\n.YHW1xu9C9ARQ6xFd1TYB {\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 370px;\n position: relative;\n align-self: center;\n align-items: center;\n margin: 0 1em;\n}\n\n.kQaUIQUyBSCDMkTs52CQ {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 80px;\n height: 80px;\n border-radius: 50%;\n}\n\n.VvFm8MTonTb3dV_lvMTz {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n margin-top: 90px;\n display: flex;\n justify-content: center;\n}\n\n.jDHKSd7gERsEtLWDY_3a {\n text-align: center;\n padding: 0.75em 1.5em;\n background-color: rgba(27, 16, 31, 0.5);\n border-radius: 6px;\n}\n\n.AuvYTJ5SOkVPoZnunL2s {\n font-weight: bold;\n color: white;\n margin: 0;\n font-size: 1.25em;\n line-height: 1.25em;\n}\n\n.ZRfiVP_OTAZsPqen70dm {\n font-weight: normal;\n color: white;\n opacity: .65;\n margin: 0.5em 0 0;\n font-size: 1em;\n line-height: 1.125em;\n}\n\n.wjqxlaI2iA_EUpcHpjs8 {\n font-weight: normal;\n color: white;\n margin: 0;\n font-size: 1.125em;\n line-height: 1.3em;\n}\n\n.BrHXMqTh5KohQ6fi8CJO, .OPdCRqaLdpw6prNLGMjg {\n position: absolute;\n left: 0;\n right: 0;\n padding: 15px;\n display: flex;\n justify-content: space-between;\n}\n\n.OPdCRqaLdpw6prNLGMjg {\n top: 0;\n align-items: flex-start;\n}\n\n.BrHXMqTh5KohQ6fi8CJO {\n bottom: 0;\n align-items: flex-end;\n}\n\n.UphcvDWKyrYEuch_Hxin, .JBBmvqkLFyLu5GM9T8YJ {\n display: flex;\n}\n\n.UphcvDWKyrYEuch_Hxin {\n justify-content: flex-start;\n}\n\n.JBBmvqkLFyLu5GM9T8YJ {\n justify-content: flex-end;\n}\n\ndiv[data-direction='rtl'] .BrHXMqTh5KohQ6fi8CJO button + button,\ndiv[data-direction='rtl'] .OPdCRqaLdpw6prNLGMjg button + button {\n margin-left: 0;\n margin-right: 15px;\n}\n\ndiv[data-direction='ltr'] .BrHXMqTh5KohQ6fi8CJO button + button,\ndiv[data-direction='ltr'] .OPdCRqaLdpw6prNLGMjg button + button {\n margin-left: 15px;\n margin-right: 0;\n}\n\n.BrHXMqTh5KohQ6fi8CJO button:not(.ENDLBRGuR1abICc4Wl6w):hover, .OPdCRqaLdpw6prNLGMjg button:hover {\n transform: scale(1.1);\n}\n\n.BrHXMqTh5KohQ6fi8CJO button, .OPdCRqaLdpw6prNLGMjg button, .ENDLBRGuR1abICc4Wl6w {\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n background: none;\n cursor: pointer;\n text-align: center;\n transition: background 250ms ease-in-out, transform 150ms ease;\n}\n\n.ENDLBRGuR1abICc4Wl6w {\n position: absolute;\n bottom: 20px;\n left: 50%;\n transform: translate(-50%, 0);\n}\n\n.ENDLBRGuR1abICc4Wl6w:hover {\n transform: translate(-50%, 0) scale(1.1);\n}\n\n@media (max-width: 640px) {\n .ENDLBRGuR1abICc4Wl6w {\n padding-bottom: 27px;\n }\n}\n\n.PFIQUKRmG7Xc5g_dcwaG {\n width: 60%;\n height: 70%;\n position: absolute;\n justify-self: center;\n align-self: center;\n perspective: 1000px;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG svg {\n width: 100%;\n height: 100%;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .mxgKd4LMhe4WHzxy9cuf,\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7 {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n backface-visibility: hidden;\n transition: transform 0.6s ease-out;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .mxgKd4LMhe4WHzxy9cuf {\n z-index: 2;\n animation: UcBiEd1fPzsnNvNSAIfZ 1.5s;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7 {\n transform: rotateY(180deg);\n animation: GLnSmW1uNvNidvEbua6U 1.5s;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .mxgKd4LMhe4WHzxy9cuf path,\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7 path {\n animation: vFcnqtw9_fKeJwp6MtUc 1.5s;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7 path {\n animation-direction: reverse;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .mxgKd4LMhe4WHzxy9cuf,\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7,\n.PFIQUKRmG7Xc5g_dcwaG .mxgKd4LMhe4WHzxy9cuf path,\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7 path {\n animation-delay: 1s;\n animation-fill-mode: forwards;\n}\n\n@keyframes UcBiEd1fPzsnNvNSAIfZ {\n from {\n transform: rotateY(0deg);\n }\n to {\n transform: rotateY(-180deg);\n }\n}\n\n@keyframes GLnSmW1uNvNidvEbua6U {\n from {\n transform: rotateY(180deg);\n }\n to {\n transform: rotateY(0deg);\n }\n}\n\n@keyframes vFcnqtw9_fKeJwp6MtUc {\n from {\n fill: white;\n }\n to {\n fill: black;\n }\n}\n\n.VvRKtPXXC8mVWLuc8Pq0 {\n opacity: 0;\n}\n\n.BuSIHMMADfwc4AH9s8y5 {\n opacity: 1;\n}\n\n.UU4MN28IkJ78AzTNTTK7 {\n opacity: 1;\n}\n\n.Qu4RkeRcdcPvYbL1SZUp {\n opacity: 0;\n}\n\n.UU4MN28IkJ78AzTNTTK7,\n.Qu4RkeRcdcPvYbL1SZUp {\n transition: opacity 300ms;\n}\n",""]),a.locals={container:"pPENnQwkQ3hnNDe95CXQ",layout:"dYHBzaM5Fln11rgWFpP0",svg:"i1xlxNxzn2eTQx9bFweO","message-container":"YHW1xu9C9ARQ6xFd1TYB",icon:"kQaUIQUyBSCDMkTs52CQ",message:"VvFm8MTonTb3dV_lvMTz","message-background":"jDHKSd7gERsEtLWDY_3a",title:"AuvYTJ5SOkVPoZnunL2s",subtitle:"ZRfiVP_OTAZsPqen70dm","message-text":"wjqxlaI2iA_EUpcHpjs8","bottom-functional-buttons":"BrHXMqTh5KohQ6fi8CJO","top-functional-buttons":"OPdCRqaLdpw6prNLGMjg","buttons-left":"UphcvDWKyrYEuch_Hxin","buttons-right":"JBBmvqkLFyLu5GM9T8YJ","snapshot-button":"ENDLBRGuR1abICc4Wl6w",flip:"PFIQUKRmG7Xc5g_dcwaG",front:"mxgKd4LMhe4WHzxy9cuf",back:"S4Pzz2GvHhjMB8XHBWl7","flip-front":"UcBiEd1fPzsnNvNSAIfZ","flip-back":"GLnSmW1uNvNidvEbua6U","flip-shadow":"vFcnqtw9_fKeJwp6MtUc","fade-enter":"VvRKtPXXC8mVWLuc8Pq0","fade-exit":"BuSIHMMADfwc4AH9s8y5","fade-enter-active":"UU4MN28IkJ78AzTNTTK7","fade-exit-active":"Qu4RkeRcdcPvYbL1SZUp"},t.Z=a},"./src/components/process-screen/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("../../node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,".VROx88CAGymXPPMYbuHB {\n display: flex;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.WLgSigxr0ZviVeGTZmvV {\n display: block;\n padding-top: 0.875em;\n font-size: 0.875em;\n font-weight: normal;\n line-height: 1.43em;\n color: #444444;\n}\n",""]),a.locals={"process-message":"VROx88CAGymXPPMYbuHB",message:"WLgSigxr0ZviVeGTZmvV"},t.Z=a},"./src/components/start-screen/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("../../node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,".Q8OlTtZlwqxIDRZ30J3R {\n display: flex;\n height: 100%;\n align-items: center;\n flex-direction: column;\n padding: 2em 1.5em 2.5em;\n}\n\n.wlyDEvBUrTqTx0Aoz_sg {\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n}\n\n.wlyDEvBUrTqTx0Aoz_sg .aFtontnfWGLSGi8Of4s8 {\n margin: 0 0 0.4em;\n max-width: 500px;\n color: #262626;\n font-size: 1.25em;\n font-weight: bold;\n line-height: 1.4em;\n}\n\n.wlyDEvBUrTqTx0Aoz_sg .pQVCAFTaDOFYpoKJ6zdw {\n display: block;\n max-width: 465px;\n color: #8C8C8C;\n margin: 0 0 0.5em;\n font-size: 1em;\n line-height: 1.375em;\n}\n\n.nCT2vQ397FZv7bp7nRFY {\n display: flex;\n width: 100%;\n flex: 1;\n align-items: center;\n justify-content: center;\n}\n\n.nCT2vQ397FZv7bp7nRFY button {\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 290px;\n max-height: 140px;\n padding: 1em 0;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background: white;\n border: 1px solid rgba(0, 0, 0, 0.05);\n border-radius: 3px;\n cursor: pointer;\n font-size: 1em;\n}\n\n.nCT2vQ397FZv7bp7nRFY button:hover {\n border: 1px solid var(--main-color);\n}\n\n.nCT2vQ397FZv7bp7nRFY button:hover p {\n color: var(--main-color);\n}\n\n.nCT2vQ397FZv7bp7nRFY button svg {\n margin-bottom: 0.9em;\n align-self: center;\n}\n\n.nCT2vQ397FZv7bp7nRFY p {\n font-family: var(--font-family);\n font-style: normal;\n line-height: 1.25em;\n font-size: 1em;\n color: #444444;\n margin: 0;\n}\n\n.nCT2vQ397FZv7bp7nRFY button + button {\n margin-left: 1em;\n}\n\ndiv[data-direction='rtl'] .nCT2vQ397FZv7bp7nRFY button + button {\n margin-left: 0;\n margin-right: 1em;\n}\n\n@media (max-width: 660px) {\n .Q8OlTtZlwqxIDRZ30J3R {\n padding: 5em 1em 2.5em;\n }\n\n .wlyDEvBUrTqTx0Aoz_sg .aFtontnfWGLSGi8Of4s8 {\n font-size: 1.5em;\n line-height: 1.25em;\n }\n\n .nCT2vQ397FZv7bp7nRFY p {\n font-size: 0.875em;\n color: #262626;\n }\n}\n",""]),a.locals={"start-window":"Q8OlTtZlwqxIDRZ30J3R",text:"wlyDEvBUrTqTx0Aoz_sg",title:"aFtontnfWGLSGi8Of4s8",subtitle:"pQVCAFTaDOFYpoKJ6zdw",buttons:"nCT2vQ397FZv7bp7nRFY"},t.Z=a}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r={};!function(){n.d(r,{Wo:function(){return ca},ly:function(){return ta},fl:function(){return ha}});var e={};n.r(e),n.d(e,{ar:function(){return yr},bn:function(){return Ir},cs:function(){return Or},da:function(){return Lr},de:function(){return lr},el:function(){return Cr},en:function(){return ar},es:function(){return mr},fi:function(){return Tr},fr:function(){return hr},he:function(){return Pr},hi:function(){return Ar},hr:function(){return Dr},hu:function(){return cr},id:function(){return br},it:function(){return ur},ja:function(){return Nr},ko:function(){return _r},ms:function(){return Sr},nl:function(){return gr},no:function(){return jr},pl:function(){return sr},pt:function(){return vr},ro:function(){return Er},ru:function(){return ir},sk:function(){return dr},sv:function(){return Rr},th:function(){return xr},tr:function(){return kr},uk:function(){return pr},vi:function(){return wr},zh:function(){return fr}});n("../../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js");var t,o=n("../../node_modules/react-dom/client.js");function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l,s,u=function(e){return e.UINT="UINT",e.BASE64="BASE64",e.UINT_AND_BASE64="UINT_AND_BASE64",e}({}),c=function(e){return e[e.EMPTY=-1]="EMPTY",e[e.ERROR=0]="ERROR",e[e.OK=1]="OK",e[e.TIMEOUT=2]="TIMEOUT",e}({}),f=function(e){return e.PREPARING="StreamStatus.PREPARING",e.REQUESTING="StreamStatus.REQUESTING",e.READY="StreamStatus.READY",e.PLAY="StreamStatus.PLAY",e.UNKNOWN_ERROR="StreamStatus.UNKNOWN_ERROR",e.PERMISSION_DENIED="StreamStatus.PERMISSION_DENIED",e.NO_CAMERA="StreamStatus.NO_CAMERA",e.INCORRECT_CAMERA_ID="StreamStatus.INCORRECT_CAMERA_ID",e}({}),d=function(e){return e.user="user",e.environment="environment",e}({}),p=function(e){return e.contain="contain",e.cover="cover",e}({}),h=function(e){return e.WASM_ERROR="WASM_ERROR",e.WASM_LICENSE="WASM_LICENSE",e.FILE_SIZE="FILE_SIZE",e.INCORRECT_FILE="INCORRECT_FILE",e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_SUPPORTED="NOT_SUPPORTED",e.CAMERA_UNKNOWN_ERROR="CAMERA_UNKNOWN_ERROR",e.CAMERA_PERMISSION_DENIED="CAMERA_PERMISSION_DENIED",e.NO_CAMERA="NO_CAMERA",e.INCORRECT_CAMERA_ID="INCORRECT_CAMERA_ID",e.CONNECTION_ERROR="CONNECTION_ERROR",e.LANDSCAPE_MODE_RESTRICTED="LANDSCAPE_MODE_RESTRICTED",e.NOT_PREPARED="NOT_PREPARED",e.NOT_INITIALIZED="NOT_INITIALIZED",e.IN_PROCESS="IN_PROCESS",e.ALREADY_PREPARED="ALREADY_PREPARED",e.ALREADY_INITIALIZED="ALREADY_INITIALIZED",e.TIMEOUT_ERROR="TIMEOUT_ERROR",e.DEVICE_ROTATE="DEVICE_ROTATE",e.CHANGE_CAMERA="CHANGE_CAMERA",e.APP_INACTIVE="APP_INACTIVE",e}({}),m=function(e){return e[e.HAVE_NOTHING=0]="HAVE_NOTHING",e[e.HAVE_METADATA=1]="HAVE_METADATA",e[e.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",e[e.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",e[e.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA",e}({}),v=function(e){return e.stdout="stdout",e.stderr="stderr",e.custom="custom",e.gl="gl",e.init="worker-init",e}({}),y=function(e){return e.Rtl="rtl",e.Ltr="ltr",e}({}),g="NotAllowedError",b=["ar","he"],w=500,_={VGA:{width:640,height:480},HD:{width:1280,height:720},FULL_HD:{width:1920,height:1080},SQUARE:{width:720,height:720}},S=["rear","back","rück","arrière","trasera","trás","traseira","posteriore","posterior","后面","後面","背面","后置","後置","背置","задней","الخلفية","خلفية","후","arka","achterzijde","หลัง","baksidan","bagside","sau","bak","tylny","takakamera","belakang","אחורית","πίσω","spate","hátsó","zadní","darrere","zadná","задня","задна","birou","артқы","stražnja","belakang","बैक","desk","桌上视角相机","桌上視角相機","デスクビューカメラ","cenital","escritorio","bureau","secretária","scrivania","masa","bureauweergave","الرأسي","กล้องดูด้านหน้าโต๊ะ","skrivebord","bordvisning","blatu","työpöytänäkymän","meja","תצוגת שולחן","προβολής","íróasztal","stolní","l’escriptori","stolná","стіл","стола","डेस्क","үстел","настолна","데스크뷰","bordsvisningskamera"],E=(a(t={},f.UNKNOWN_ERROR,h.CAMERA_UNKNOWN_ERROR),a(t,f.PERMISSION_DENIED,h.CAMERA_PERMISSION_DENIED),a(t,f.NO_CAMERA,h.NO_CAMERA),a(t,f.INCORRECT_CAMERA_ID,h.INCORRECT_CAMERA_ID),t);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function k(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===C(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}for(var N=function(e){return e.ELEMENT_VISIBLE="ELEMENT_VISIBLE",e.PRESS_CAMERA_BUTTON="PRESS_CAMERA_BUTTON",e.PRESS_FILE_BUTTON="PRESS_FILE_BUTTON",e.PRESS_RETRY_BUTTON="PRESS_RETRY_BUTTON",e.PRESS_SKIP_BUTTON="PRESS_SKIP_BUTTON",e.CLOSE="CLOSE",e.CAMERA_PROCESS_CLOSED="CAMERA_PROCESS_CLOSED",e.CAMERA_PROCESS_STARTED="CAMERA_PROCESS_STARTED",e.FILE_PROCESS_STARTED="FILE_PROCESS_STARTED",e.PROCESS_FINISHED="PROCESS_FINISHED",e.SERVICE_INITIALIZED="SERVICE_INITIALIZED",e}({}),O=function(e){return e.FINDING="DocumentCaptureStatus.FINDING",e.PROCESSING="DocumentCaptureStatus.PROCESSING",e.SUCCESS="DocumentCaptureStatus.SUCCESS",e.FAILED="DocumentCaptureStatus.FAILED",e.RESOLUTION="DocumentCaptureStatus.RESOLUTION",e.GLARE="DocumentCaptureStatus.GLARE",e.FOCUS="DocumentCaptureStatus.FOCUS",e.HOLD="DocumentCaptureStatus.HOLD",e.START_DETECTION="DocumentCaptureStatus.START_DETECTION",e.START_NEXT_PAGE="DocumentCaptureStatus.START_NEXT_PAGE",e.SNAPSHOT="DocumentCaptureStatus.SNAPSHOT",e.TIMEOUT="DocumentCaptureStatus.TIMEOUT",e}({}),x=function(e){return e[e.IMAGE_GLARES=0]="IMAGE_GLARES",e[e.IMAGE_FOCUS=1]="IMAGE_FOCUS",e[e.IMAGE_RESOLUTION=2]="IMAGE_RESOLUTION",e[e.IMAGE_COLORNESS=3]="IMAGE_COLORNESS",e[e.PERSPECTIVE=4]="PERSPECTIVE",e[e.BOUNDS=5]="BOUNDS",e[e.SCREEN_CAPTURE=6]="SCREEN_CAPTURE",e[e.PORTRAIT=7]="PORTRAIT",e[e.HANDWRITTEN=8]="HANDWRITTEN",e}({}),A=function(e){return e[e.ERROR=0]="ERROR",e[e.OK=1]="OK",e[e.WAS_NOT_DONE=2]="WAS_NOT_DONE",e}({}),I=function(e){return e.CHOOSE_INPUT_SOURCE="DocumentCompletionStatus.CHOOSE_INPUT_SOURCE",e.CAMERA_PROCESSING="DocumentCompletionStatus.CAMERA_PROCESSING",e.FILE_PROCESSING="DocumentCompletionStatus.FILE_PROCESSING",e.API_PROCESSING="DocumentCompletionStatus.API_PROCESSING",e.SUCCESS="DocumentCompletionStatus.SUCCESS",e.FAILED="DocumentCompletionStatus.FAILED",e.FILE_SIZE_ERROR="DocumentCompletionStatus.FILE_SIZE_ERROR",e.WASM_DEFAULT_ERROR="DocumentCompletionStatus.WASM_DEFAULT_ERROR",e.NOT_SUPPORTED_ERROR="DocumentCompletionStatus.NOT_SUPPORTED_ERROR",e.WASM_LICENSE_ERROR="DocumentCompletionStatus.WASM_LICENSE_ERROR",e.INCORRECT_FILE_ERROR="DocumentCompletionStatus.INCORRECT_FILE_ERROR",e.UNKNOWN_ERROR="DocumentCompletionStatus.UNKNOWN_ERROR",e.TIMEOUT="DocumentCompletionStatus.TIMEOUT",e}({}),P=function(e){return e.locale="locale",e.multiple="multiple",e.license="license",e.copyright="copyright",e.startScreen="start-screen",e.internalScenario="internal-scenario",e.multipageProcessing="multipage-processing",e.cameraId="camera-id",e.changeCamera="change-camera",e.closeButton="close-button",e.captureButton="capture-button",e}({}),T=function(e){return e.locale="locale",e.multiple="multiple",e.copyright="copyright",e.startScreen="start-screen",e.cameraId="camera-id",e.changeCamera="change-camera",e.closeButton="close-button",e}({}),R=function(e){return e[e.NOT_FINISHED=0]="NOT_FINISHED",e[e.FINISHED=1]="FINISHED",e[e.TIMEOUT=2]="TIMEOUT",e}({}),L=function(e){return e.MrzAndLocate="MrzAndLocate",e.MrzOrLocate="MrzOrLocate",e.Mrz="Mrz",e.Locate="Locate",e.Barcode="Barcode",e.MrzOrBarcode="MrzOrBarcode",e.BarcodeAndLocate="BarcodeAndLocate",e}({}),D=function(e){return e[e.prepare=12e3]="prepare",e[e.initialize=12100]="initialize",e[e.process=12101]="process",e[e.processImage=12104]="processImage",e[e.startNewPage=12106]="startNewPage",e[e.startNewDocument=12105]="startNewDocument",e}({}),j=25e6,M=1920,F=536870912,z=(k(l={},h.FILE_SIZE,I.FILE_SIZE_ERROR),k(l,h.WASM_ERROR,I.WASM_DEFAULT_ERROR),k(l,h.NOT_SUPPORTED,I.NOT_SUPPORTED_ERROR),k(l,h.WASM_LICENSE,I.WASM_LICENSE_ERROR),k(l,h.INCORRECT_FILE,I.INCORRECT_FILE_ERROR),l),U=(k(s={},O.SUCCESS,I.SUCCESS),k(s,O.TIMEOUT,I.TIMEOUT),k(s,O.FAILED,I.FAILED),s),B={iOS:{Chrome:99,Firefox:99,Opera:44,Safari:11,Edge:16,Chromium:57,IE:16,"Internet Explorer":16,"Mobile Safari":11,"Samsung Browser":7},Android:{Chrome:66,Firefox:61,Opera:44,Safari:11,Edge:16,Chromium:57,IE:16,"Internet Explorer":16,"Mobile Safari":11,"Samsung Browser":7},desktop:{Chrome:61,Firefox:60,Opera:44,Safari:11,Edge:16,Chromium:57,IE:16,"Internet Explorer":16,"Mobile Safari":11,"Samsung Browser":7}},H={processParam:{scenario:L.MrzAndLocate,returnUncroppedImage:!0,multipageProcessing:!1,timeoutFromFirstDetect:0,timeoutFromFirstDocType:0,imageQa:{expectedPass:["dpiThreshold","glaresCheck","focusCheck"],dpiThreshold:130,glaresCheck:!0,glaresCheckParams:{imgMarginPart:.05,maxGlaringPart:.01}}}},G={processParam:{scenario:L.MrzAndLocate,returnUncroppedImage:!0}},V={processParam:{scenario:L.MrzAndLocate,returnUncroppedImage:!0,timeoutFromFirstDetect:0,timeoutFromFirstDocType:0}},W={processParam:{scenario:L.MrzAndLocate,returnUncroppedImage:!0}},Z=["image/jpeg","image/jpg","image/png","image/gif","image/bmp"],K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y="undefined"==typeof Uint8Array?[]:new Uint8Array(256),q=0;q<K.length;q++)Y[K.charCodeAt(q)]=q;function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Q(i)?i:String(i)),r)}var o,i}function $(e,t,n){return t&&X(e.prototype,t),n&&X(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var J=$((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.deviceId=t.deviceId,this.facing=n,this.groupId=t.groupId,this.label=t.label}));function ee(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ie(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function te(){te=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new k(o||[]);return r(a,"_invoke",{value:_(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(x){return{type:"throw",arg:x}}}e.wrap=u;var f={};function d(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(N([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var s=c(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==re(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,l,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function ne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==re(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===re(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function oe(e){return function(e){if(Array.isArray(e))return ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ie(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 ie(e,t){if(e){if("string"==typeof e)return ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ae(e,t):void 0}}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function le(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function se(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){le(i,r,o,a,l,"next",e)}function l(e){le(i,r,o,a,l,"throw",e)}a(void 0)}))}}var ue=function(e){switch(e){case"":case"true":return!0;case"false":return!1;default:return}};function ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t);return 0===r.length?function(e){return e}:1===r.length?r[0]:r.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function fe(e,t,n,r,o,i,a,l,s){var u=e/t,c=n/r,f=(s===p.contain?c<u:c>u)?e/n:t/r;return{width:o/f,height:i/f,left:a/f-(e/f-n)/2,top:l/f-(t/f-r)/2}}function de(e,t){return new CustomEvent(e,{bubbles:!0,composed:!0,detail:t})}function pe(){return he.apply(this,arguments)}function he(){return(he=se(te().mark((function e(){var t,n,r;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.mediaDevices.enumerateDevices();case 2:return t=e.sent,n=t.filter((function(e){return"videoinput"===e.kind})),r=n.every((function(e){return""!==e.label})),e.abrupt("return",{videoDevices:n,isCameraAllowed:r});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(e,t){var n=e.toLowerCase();return t.some((function(e){return n.includes(e)}))}function ve(e){return ye.apply(this,arguments)}function ye(){return(ye=se(te().mark((function e(t){var n,r,o,i,a,l,s;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={frontCameras:[],backCameras:[]},r=t.videoDevices,t.isCameraAllowed){e.next=11;break}return e.next=5,navigator.mediaDevices.getUserMedia({video:!0,audio:!1});case 5:return o=e.sent,e.next=8,navigator.mediaDevices.enumerateDevices();case 8:i=e.sent,r=i.filter((function(e){return"videoinput"===e.kind})),o.getTracks().forEach((function(e){return e.stop()}));case 11:a=ee(r);try{for(a.s();!(l=a.n()).done;)me((s=l.value).label,S)?n.backCameras.push(new J(s,d.environment)):n.frontCameras.push(new J(s,d.user))}catch(u){a.e(u)}finally{a.f()}return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(e,t,n){var r=[].concat(oe(t.frontCameras),oe(t.backCameras));if(!r.length)return{deviceId:"",facing:void 0,groupId:"",label:""};if(n)return r.find((function(e){return e.deviceId===n}))||{deviceId:"",facing:void 0,groupId:"",label:""};var o=e===d.environment&&t.backCameras.length,i=o?t.backCameras:t.frontCameras,a=i.map((function(e){var t=RegExp(/\b([0-9]+)MP?\b/,"i").exec(e.label);return null!==t?parseInt(t[1],10):NaN}));return a.some((function(e){return isNaN(e)}))?{deviceId:"",facing:o?d.environment:d.user,groupId:"",label:""}:i[a.lastIndexOf(Math.max.apply(Math,oe(a)))]}var be=function(e){e.getTracks().forEach((function(e){return e.stop()}))};function we(e,t,n){return _e.apply(this,arguments)}function _e(){return(_e=se(te().mark((function e(t,n,r){var o,i,a,l,s,u,c,d,p;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o={status:f.PREPARING,stream:null,camera:{deviceId:"",facing:void 0,groupId:"",label:""}},!navigator.mediaDevices){e.next=24;break}if(n.deviceId||n.facing){e.next=8;break}if(!r){e.next=6;break}return o.status=f.INCORRECT_CAMERA_ID,e.abrupt("return",o);case 6:return o.status=f.NO_CAMERA,e.abrupt("return",o);case 8:return i={height:{ideal:t.height},width:{ideal:t.width},frameRate:{ideal:30}},n.deviceId?i.deviceId={exact:n.deviceId}:i.facingMode={ideal:n.facing},e.next=12,navigator.mediaDevices.getUserMedia({video:i,audio:!1});case 12:if(!(a=e.sent)){e.next=20;break}return l=a.getVideoTracks()[0],s=l.getSettings(),u=s.deviceId,c=s.groupId,d=s.facingMode,p={deviceId:u||n.deviceId,label:l.label||n.label,groupId:c||n.groupId,facing:d||n.facing},e.abrupt("return",{status:f.READY,stream:a,camera:p});case 20:case 24:return o.status=f.UNKNOWN_ERROR,e.abrupt("return",o);case 22:e.next=26;break;case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(e,t){var n={imageData:[],raw:"",mimeType:""},r=e.videoHeight,o=e.videoWidth,i=e.readyState;if(r&&o&&i===m.HAVE_ENOUGH_DATA){var a=document.createElement("canvas");a.width=o,a.height=r;var l=a.getContext("2d",{willReadFrequently:!0});if(null==l||l.drawImage(e,0,0),t!==u.UINT){var s="image/jpeg";n.raw=a.toDataURL(s,.8).replace("data:".concat(s,";base64,"),""),n.mimeType=s}if(t!==u.BASE64){var c=null==l?void 0:l.getImageData(0,0,o,r);c&&(n.imageData=[c])}}return n}function Ee(e,t){var n=[].concat(oe(e.frontCameras),oe(e.backCameras)),r=n.findIndex((function(e){return e.deviceId===t}));return n[(r+1)%n.length].deviceId}function Ce(e,t){var n=function(e){return e&&"object"===re(e)&&!Array.isArray(e)},r=Object.assign({},e);return n(e)&&n(t)&&Object.keys(t).forEach((function(o){n(t[o])&&o in e?r[o]=Ce(e[o],t[o]):Object.assign(r,ne({},o,t[o]))})),r}function ke(e){return Ne.apply(this,arguments)}function Ne(){return(Ne=se(te().mark((function e(t){return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Oe=n("../../node_modules/react-device-detect/dist/lib.js"),xe=n("../../node_modules/react/index.js");function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function Ie(){Ie=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new k(o||[]);return r(a,"_invoke",{value:_(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(x){return{type:"throw",arg:x}}}e.wrap=u;var f={};function d(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(N([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var s=c(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Ae(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,l,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Pe(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ae(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ae(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return je(e,t)}(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 je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.environment,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.VGA,n=arguments.length>2?arguments[2]:void 0,r=De((0,xe.useState)({status:f.PREPARING,stream:null,camera:{deviceId:"",facing:void 0,groupId:"",label:""}}),2),o=r[0],i=o.status,a=o.stream,l=o.camera,s=r[1],u=De((0,xe.useState)(null),2),c=u[0],p=u[1],h=De((0,xe.useState)(null),2),m=h[0],v=h[1],y=(0,xe.useRef)(""),b=(0,xe.useCallback)((function(){s((function(e){return Re(Re({},e),{},{status:f.PLAY})}))}),[]);return(0,xe.useEffect)((function(){var e=!0;return pe().then((function(t){e&&(s((function(e){return Re(Re({},e),{},{status:t.isCameraAllowed?f.PREPARING:f.REQUESTING})})),p(t))})).catch((function(){e&&s((function(e){return Re(Re({},e),{},{status:f.UNKNOWN_ERROR})}))})),function(){e=!1}}),[]),(0,xe.useEffect)((function(){var e=!0;if(c&&!m)return ve(c).then((function(t){e&&(v(t),c.isCameraAllowed||p((function(e){return{videoDevices:(null==e?void 0:e.videoDevices)||[],isCameraAllowed:!0}})))})).catch((function(t){if(e)return t instanceof Error&&t.name===g?s((function(e){return Re(Re({},e),{},{status:f.PERMISSION_DENIED})})):void s((function(e){return Re(Re({},e),{},{status:f.UNKNOWN_ERROR})}))})),function(){e=!1}}),[c,m]),(0,xe.useEffect)((function(){var r=!0,o=i===f.PREPARING||i===f.REQUESTING;if(m&&c&&null===a&&o){var l=ge(e,m,n),u=new Promise(function(){var e,r=(e=Ie().mark((function e(r,o){var i,a;return Ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Oe.vU?w:0,e.next=3,ke(i);case 3:return e.prev=3,e.next=6,we(t,l,n);case 6:a=e.sent,r(a),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),o(e.t0);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Pe(i,r,o,a,l,"next",e)}function l(e){Pe(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e,t){return r.apply(this,arguments)}}());return u.then((function(e){if(r)y.current=e.camera.deviceId,s(e);else{if(!e.stream)return;be(e.stream)}})).catch((function(){s((function(e){return Re(Re({},e),{},{status:f.UNKNOWN_ERROR})}))})),function(){r=!1}}}),[m,c,a,e,n,i,t]),(0,xe.useEffect)((function(){return function(){a&&be(a)}}),[a]),(0,xe.useEffect)((function(){if(n&&y.current){var e=n!==y.current;i===f.PLAY&&e&&s({status:f.PREPARING,stream:null,camera:{deviceId:"",facing:void 0,groupId:"",label:""}})}}),[n,i]),{status:i,stream:a,camera:l,sortedDevices:m,onPlay:b}},Fe=n("../../common/components/webcamera/style.css"),ze=n("../../node_modules/react/jsx-runtime.js");function Ue(e){var t=e.onVideoStatusChange,n=e.onVideoSizeChange,r=e.mode,o=e.resolution,i=e.mirroring,a=e.onFailStatus,l=e.cameraId,s=e.videoRecordingService,u=Me(r,o,l),c=u.status,p=u.stream,h=u.camera,m=u.sortedDevices,v=u.onPlay,y=(0,xe.useRef)(null),g=(0,xe.useRef)(null),b=i||(null==h?void 0:h.facing)===d.environment?Fe.Z.locals.mirroring:"";return(0,xe.useEffect)((function(){var e=y.current,t=g.current,r=function(){e&&t&&n&&n({videoElement:e,videoParams:{width:e.videoWidth,height:e.videoHeight},videoContainerParams:{width:t.clientWidth,height:t.clientHeight}})};return e&&(window.addEventListener("resize",r),e.addEventListener("resize",r)),function(){s&&s.stopRecord(),e&&(window.removeEventListener("resize",r),e.removeEventListener("resize",r))}}),[]),(0,xe.useEffect)((function(){var e=y.current;c===f.READY&&e&&(e.srcObject=p),s&&c===f.PLAY&&p&&s.init(p),a&&E[c]&&a(E[c]),t({videoStatus:c,camera:h,sortedDevices:m})}),[c,h,a,p]),(0,ze.jsx)("div",{ref:g,className:Fe.Z.locals.container,children:(0,ze.jsx)("video",{onPlay:v,className:b,ref:y,autoPlay:!0,playsInline:!0})})}var Be=(0,xe.memo)(Ue);var He={fullscreen:function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||24,height:t||24,viewBox:"0 0 24 24",fill:n||"white",children:(0,ze.jsx)("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})})},verified:function(e){var t=e.size,n=e.color;return(0,ze.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 86 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("ellipse",{cx:"43",cy:"42",rx:"40",ry:"40",transform:"rotate(90 43 42)",stroke:n||"#5DA600",strokeWidth:"3"}),(0,ze.jsx)("path",{d:"M66 30L40.5069 54L28 42.2256",stroke:n||"#5DA600",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})},check:function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{width:t||64,height:t||64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 32C-1.52588e-05 49.6731 14.3269 64 32 64C49.6731 64 64 49.6731 64 32C64 14.3269 49.6731 0 32 0C14.3269 0 0 14.3269 0 32ZM50.9142 22.5811C51.6953 21.7999 51.6953 20.5337 50.9142 19.7526C50.1331 18.9716 48.8668 18.9716 48.0858 19.7526L30.5002 37.3381L22.7477 29.5857C21.9666 28.8047 20.7003 28.8047 19.9193 29.5857C19.1382 30.3669 19.1382 31.6331 19.9193 32.4143L29.0859 41.5808C29.461 41.9561 29.9697 42.1667 30.5002 42.1667C31.0306 42.1667 31.5393 41.9561 31.9144 41.5808L50.9142 22.5811Z",fill:n||"#7E53B9"})})},error:function(e){var t=e.size,n=e.color;return(0,ze.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 86 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("ellipse",{cx:"43",cy:"42",rx:"40",ry:"40",transform:"rotate(90 43 42)",stroke:n||"#FF0000",strokeWidth:"3"}),(0,ze.jsx)("path",{d:"M57 28L29 56M29 28L57 56",stroke:n||"#FF0000",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})},cross:function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,fill:n||"rgba(0,0,0,0.6)",children:(0,ze.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})},snapshot:function(e){var t=e.size,n=e.color;return(0,ze.jsxs)("svg",{width:t||60,height:t||60,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("g",{opacity:"0.6",children:(0,ze.jsx)("circle",{cx:"30",cy:"30",r:"29.5",stroke:n||"white"})}),(0,ze.jsx)("circle",{cx:"30",cy:"30",r:"21",fill:n||"white"})]})},square:function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{width:t||46,height:t||46,viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsx)("path",{d:"M45 34V41C45 43.2091 43.2091 45 41 45H34M45 12V5C45 2.79086 43.2091 1 41 1H34M12 1H5C2.79086 1 1 2.79086 1 5V12M1 34V41C1 43.2091 2.79086 45 5 45H12",stroke:n||"white",strokeWidth:"1.5"})})},stop:function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{width:t||48,height:t||48,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsxs)("g",{opacity:"0.9",children:[(0,ze.jsx)("path",{d:"M556.1 909.5H192.2c-14.1 0-25.5-10.6-25.5-23.7V170.3c0-13.1 11.5-23.7 25.5-23.7H832c14.1 0 25.5 10.6 25.5 23.7v381.8c0 13.3 10.7 24 24 24s24-10.7 24-24V170.3c0-39.5-33-71.7-73.5-71.7H192.2c-40.5 0-73.5 32.2-73.5 71.7v715.5c0 39.5 33 71.7 73.5 71.7h363.9c13.3 0 24-10.7 24-24s-10.8-24-24-24z",fill:n||"white"}),(0,ze.jsx)("path",{d:"M761.6 232.6H260.7c-13.3 0-24 10.7-24 24s10.7 24 24 24h500.9c13.3 0 24-10.7 24-24s-10.8-24-24-24zM785.6 426.6c0-13.3-10.7-24-24-24H260.7c-13.3 0-24 10.7-24 24s10.7 24 24 24h500.9c13.2 0 24-10.7 24-24zM680.1 596.6c0-13.3-10.7-24-24-24H260.7c-13.3 0-24 10.7-24 24s10.7 24 24 24h395.4c13.2 0 24-10.7 24-24zM260.7 744.3c-13.3 0-24 10.7-24 24s10.7 24 24 24h284.4c13.3 0 24-10.7 24-24s-10.7-24-24-24H260.7zM770.7 622.7zM939.1 786.2c-2.7-91.3-77.6-163.5-168.3-163.5v36c34.6 0 67.3 13.3 92.1 37.4 24.9 24.1 39.2 56.5 40.2 91.2 1.1 35.4-11.7 69.1-36 94.8-24.3 25.8-57.1 40.5-92.5 41.6-1.3 0-2.7 0.1-4 0.1-34.6 0-67.3-13.3-92.2-37.4-24.9-24.1-39.2-56.5-40.2-91.2-1.1-35.4 11.7-69.1 36-94.8 24.3-25.8 57.1-40.5 92.5-41.6 1.3 0 2.7-0.1 4-0.1v-36c-1.7 0-3.4 0-5.1 0.1-93 2.8-166.2 80.4-163.5 173.5 2.7 91.3 77.6 163.5 168.4 163.5 1.7 0 3.4 0 5.1-0.1 93.1-2.8 166.2-80.5 163.5-173.5z",fill:n||"white"}),(0,ze.jsx)("path",{d:"M686.1 795.6c-7.2-6.8-18.6-6.6-25.4 0.6-6.8 7.2-6.6 18.6 0.6 25.4l54.3 51.6c6.3 5.9 14.4 9 22.7 9 6.4 0 12.9-1.9 18.5-5.7l1.1-0.8L883.6 759c7.3-6.8 7.7-18.2 0.9-25.4-6.8-7.3-18.2-7.7-25.4-0.9L738.2 845l-52.1-49.4z",fill:n||"white"})]})})},"regula-logo":function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{width:t||24,height:t||26,viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsx)("path",{d:"M10.6389 10.8071C12.1153 9.90582 13.159 8.12119 13.159 6.15818C13.159 2.43323 10.2172 0 6.51964 0C2.82207 0 0 2.43401 0 6.63935V9.79394H2.70628V6.63857C2.70628 4.11536 4.41893 2.70315 6.52199 2.70315C8.62505 2.70315 10.1265 4.14509 10.1265 6.15818C10.1265 8.17127 8.50456 9.79316 6.4015 9.79316H2.70628V16.643H5.41022V12.1967H6.46175C9.10544 12.1967 10.8478 14.2395 10.9081 16.643H13.7317C13.6816 14.2645 12.5433 11.8641 10.6413 10.8071",fill:n||"#663399"})})},"regula-logo-liveness-detection":function(e){var t=e.color;return(0,ze.jsxs)("svg",{width:"91",height:"16",viewBox:"0 0 91 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("path",{d:"M0.793307 12V4.72727H3.52058C4.07929 4.72727 4.54804 4.83144 4.92683 5.03977C5.30799 5.24811 5.59563 5.53456 5.78976 5.89915C5.98625 6.26136 6.0845 6.6733 6.0845 7.13494C6.0845 7.60133 5.98625 8.01562 5.78976 8.37784C5.59326 8.74006 5.30325 9.02533 4.91973 9.23366C4.5362 9.43963 4.0639 9.54261 3.50282 9.54261H1.6953V8.45952H3.32527C3.65197 8.45952 3.91949 8.4027 4.12782 8.28906C4.33616 8.17543 4.49004 8.01918 4.58947 7.82031C4.69127 7.62145 4.74217 7.39299 4.74217 7.13494C4.74217 6.87689 4.69127 6.64962 4.58947 6.45312C4.49004 6.25663 4.33497 6.10393 4.12427 5.99503C3.91594 5.88376 3.64724 5.82812 3.31816 5.82812H2.11078V12H0.793307ZM9.37317 12.1065C8.8405 12.1065 8.37885 11.9893 7.98823 11.755C7.5976 11.5206 7.29457 11.1927 7.07914 10.7713C6.86607 10.3499 6.75954 9.85748 6.75954 9.29403C6.75954 8.73059 6.86607 8.23698 7.07914 7.81321C7.29457 7.38944 7.5976 7.06037 7.98823 6.82599C8.37885 6.59162 8.8405 6.47443 9.37317 6.47443C9.90584 6.47443 10.3675 6.59162 10.7581 6.82599C11.1487 7.06037 11.4506 7.38944 11.6637 7.81321C11.8791 8.23698 11.9868 8.73059 11.9868 9.29403C11.9868 9.85748 11.8791 10.3499 11.6637 10.7713C11.4506 11.1927 11.1487 11.5206 10.7581 11.755C10.3675 11.9893 9.90584 12.1065 9.37317 12.1065ZM9.38027 11.0767C9.6691 11.0767 9.91058 10.9974 10.1047 10.8388C10.2988 10.6778 10.4432 10.4624 10.5379 10.1925C10.635 9.92259 10.6835 9.62192 10.6835 9.29048C10.6835 8.95668 10.635 8.65483 10.5379 8.38494C10.4432 8.11269 10.2988 7.89607 10.1047 7.73509C9.91058 7.5741 9.6691 7.49361 9.38027 7.49361C9.08435 7.49361 8.83813 7.5741 8.64164 7.73509C8.44751 7.89607 8.30191 8.11269 8.20485 8.38494C8.11015 8.65483 8.0628 8.95668 8.0628 9.29048C8.0628 9.62192 8.11015 9.92259 8.20485 10.1925C8.30191 10.4624 8.44751 10.6778 8.64164 10.8388C8.83813 10.9974 9.08435 11.0767 9.38027 11.0767ZM13.9474 12L12.4062 6.54545H13.7165L14.6753 10.3807H14.7251L15.7052 6.54545H17.0013L17.9814 10.3594H18.0347L18.9793 6.54545H20.2932L18.7485 12H17.4097L16.387 8.31392H16.3124L15.2897 12H13.9474ZM23.3493 12.1065C22.8024 12.1065 22.3301 11.9929 21.9324 11.7656C21.537 11.536 21.2328 11.2116 21.0198 10.7926C20.8067 10.3712 20.7002 9.87524 20.7002 9.30469C20.7002 8.74361 20.8067 8.25118 21.0198 7.82741C21.2352 7.40128 21.5359 7.06984 21.9218 6.8331C22.3076 6.59399 22.761 6.47443 23.2818 6.47443C23.618 6.47443 23.9352 6.52888 24.2335 6.63778C24.5342 6.74432 24.7994 6.91004 25.029 7.13494C25.261 7.35985 25.4433 7.64631 25.5759 7.99432C25.7084 8.33996 25.7747 8.75189 25.7747 9.23011V9.62429H21.3039V8.75781H24.5425C24.5401 8.5116 24.4869 8.29261 24.3827 8.10085C24.2785 7.90672 24.1329 7.75402 23.9459 7.64276C23.7612 7.53149 23.5458 7.47585 23.2996 7.47585C23.0368 7.47585 22.806 7.53977 22.6071 7.66761C22.4083 7.79309 22.2532 7.95881 22.1419 8.16477C22.033 8.36837 21.9774 8.59209 21.975 8.83594V9.59233C21.975 9.90956 22.033 10.1818 22.149 10.4091C22.265 10.634 22.4272 10.8068 22.6355 10.9276C22.8439 11.0459 23.0877 11.1051 23.3671 11.1051C23.5541 11.1051 23.7234 11.0791 23.8749 11.027C24.0264 10.9725 24.1578 10.8932 24.2691 10.7891C24.3803 10.6849 24.4644 10.5559 24.5212 10.402L25.7215 10.5369C25.6457 10.8542 25.5013 11.1312 25.2882 11.3679C25.0775 11.6023 24.8076 11.7846 24.4786 11.9148C24.1495 12.0426 23.7731 12.1065 23.3493 12.1065ZM26.7623 12V6.54545H28.0087V7.45455H28.0655C28.165 7.13968 28.3354 6.89702 28.5769 6.72656C28.8207 6.55374 29.0989 6.46733 29.4114 6.46733C29.4824 6.46733 29.5617 6.47088 29.6493 6.47798C29.7393 6.48272 29.8139 6.491 29.8731 6.50284V7.68537C29.8186 7.66643 29.7322 7.64986 29.6138 7.63565C29.4978 7.61908 29.3854 7.6108 29.2765 7.6108C29.0421 7.6108 28.8314 7.66169 28.6444 7.76349C28.4597 7.86293 28.3141 8.00142 28.2076 8.17898C28.101 8.35653 28.0478 8.56132 28.0478 8.79332V12H26.7623ZM32.8173 12.1065C32.2704 12.1065 31.7981 11.9929 31.4004 11.7656C31.005 11.536 30.7008 11.2116 30.4877 10.7926C30.2747 10.3712 30.1681 9.87524 30.1681 9.30469C30.1681 8.74361 30.2747 8.25118 30.4877 7.82741C30.7032 7.40128 31.0038 7.06984 31.3897 6.8331C31.7756 6.59399 32.229 6.47443 32.7498 6.47443C33.086 6.47443 33.4032 6.52888 33.7015 6.63778C34.0022 6.74432 34.2673 6.91004 34.497 7.13494C34.729 7.35985 34.9113 7.64631 35.0438 7.99432C35.1764 8.33996 35.2427 8.75189 35.2427 9.23011V9.62429H30.7718V8.75781H34.0105C34.0081 8.5116 33.9548 8.29261 33.8507 8.10085C33.7465 7.90672 33.6009 7.75402 33.4139 7.64276C33.2292 7.53149 33.0138 7.47585 32.7676 7.47585C32.5048 7.47585 32.274 7.53977 32.0751 7.66761C31.8762 7.79309 31.7212 7.95881 31.6099 8.16477C31.501 8.36837 31.4454 8.59209 31.443 8.83594V9.59233C31.443 9.90956 31.501 10.1818 31.617 10.4091C31.733 10.634 31.8952 10.8068 32.1035 10.9276C32.3118 11.0459 32.5557 11.1051 32.835 11.1051C33.0221 11.1051 33.1913 11.0791 33.3428 11.027C33.4944 10.9725 33.6258 10.8932 33.737 10.7891C33.8483 10.6849 33.9323 10.5559 33.9892 10.402L35.1894 10.5369C35.1137 10.8542 34.9693 11.1312 34.7562 11.3679C34.5455 11.6023 34.2756 11.7846 33.9465 11.9148C33.6175 12.0426 33.241 12.1065 32.8173 12.1065ZM38.2544 12.0959C37.8259 12.0959 37.4424 11.9858 37.1038 11.7656C36.7653 11.5455 36.4978 11.2259 36.3013 10.8068C36.1048 10.3878 36.0065 9.87879 36.0065 9.27983C36.0065 8.67377 36.106 8.16241 36.3048 7.74574C36.506 7.3267 36.7771 7.01065 37.118 6.79759C37.4589 6.58215 37.8389 6.47443 38.2579 6.47443C38.5775 6.47443 38.8403 6.52888 39.0463 6.63778C39.2523 6.74432 39.4156 6.87334 39.5363 7.02486C39.6571 7.17401 39.7506 7.31487 39.8169 7.44744H39.8702V4.72727H41.1592V12H39.895V11.1406H39.8169C39.7506 11.2732 39.6547 11.4141 39.5292 11.5632C39.4038 11.71 39.2381 11.8355 39.0321 11.9396C38.8261 12.0438 38.5669 12.0959 38.2544 12.0959ZM38.6131 11.0412C38.8853 11.0412 39.1173 10.9678 39.3091 10.821C39.5008 10.6719 39.6464 10.4647 39.7459 10.1996C39.8453 9.93442 39.895 9.62547 39.895 9.27273C39.895 8.91998 39.8453 8.6134 39.7459 8.35298C39.6488 8.09257 39.5044 7.89015 39.3126 7.74574C39.1232 7.60133 38.89 7.52912 38.6131 7.52912C38.3266 7.52912 38.0875 7.60369 37.8957 7.75284C37.704 7.90199 37.5595 8.10795 37.4625 8.37074C37.3654 8.63352 37.3169 8.93419 37.3169 9.27273C37.3169 9.61364 37.3654 9.91785 37.4625 10.1854C37.5619 10.4505 37.7075 10.66 37.8993 10.8139C38.0934 10.9654 38.3313 11.0412 38.6131 11.0412ZM44.8664 12V4.72727H46.1519V7.44744H46.2051C46.2714 7.31487 46.3649 7.17401 46.4857 7.02486C46.6064 6.87334 46.7698 6.74432 46.9757 6.63778C47.1817 6.52888 47.4445 6.47443 47.7641 6.47443C48.1855 6.47443 48.5655 6.58215 48.904 6.79759C49.2449 7.01065 49.5148 7.3267 49.7137 7.74574C49.9149 8.16241 50.0155 8.67377 50.0155 9.27983C50.0155 9.87879 49.9173 10.3878 49.7208 10.8068C49.5243 11.2259 49.2567 11.5455 48.9182 11.7656C48.5797 11.9858 48.1961 12.0959 47.7676 12.0959C47.4551 12.0959 47.1959 12.0438 46.9899 11.9396C46.784 11.8355 46.6182 11.71 46.4928 11.5632C46.3697 11.4141 46.2738 11.2732 46.2051 11.1406H46.1306V12H44.8664ZM46.127 9.27273C46.127 9.62547 46.1767 9.93442 46.2762 10.1996C46.378 10.4647 46.5236 10.6719 46.7129 10.821C46.9047 10.9678 47.1367 11.0412 47.409 11.0412C47.6931 11.0412 47.931 10.9654 48.1227 10.8139C48.3145 10.66 48.4589 10.4505 48.556 10.1854C48.6554 9.91785 48.7051 9.61364 48.7051 9.27273C48.7051 8.93419 48.6566 8.63352 48.5595 8.37074C48.4625 8.10795 48.3181 7.90199 48.1263 7.75284C47.9345 7.60369 47.6954 7.52912 47.409 7.52912C47.1343 7.52912 46.9012 7.60133 46.7094 7.74574C46.5176 7.89015 46.372 8.09257 46.2726 8.35298C46.1755 8.6134 46.127 8.91998 46.127 9.27273ZM51.6218 14.0455C51.4466 14.0455 51.2845 14.0313 51.1353 14.0028C50.9885 13.9768 50.8713 13.946 50.7838 13.9105L51.082 12.9091C51.2691 12.9635 51.436 12.9896 51.5828 12.9872C51.7295 12.9848 51.8586 12.9387 51.9698 12.8487C52.0835 12.7611 52.1793 12.6143 52.2575 12.4084L52.3676 12.1136L50.3896 6.54545H51.7532L53.0103 10.6648H53.0671L54.3278 6.54545H55.695L53.511 12.6605C53.4092 12.9493 53.2743 13.1967 53.1062 13.4027C52.9381 13.611 52.7321 13.7696 52.4883 13.8786C52.2468 13.9898 51.958 14.0455 51.6218 14.0455Z",fill:t}),(0,ze.jsx)("path",{d:"M62.9834 9.36204C63.675 8.93985 64.1639 8.1039 64.1639 7.18439C64.1639 5.43957 62.7859 4.2998 61.0539 4.2998C59.3219 4.2998 58 5.43993 58 7.40978V8.88744H59.2677V7.40942C59.2677 6.22751 60.0699 5.566 61.055 5.566C62.0401 5.566 62.7434 6.24143 62.7434 7.18439C62.7434 8.12736 61.9837 8.88708 60.9986 8.88708H59.2677V12.0956H60.5342V10.0129H61.0268C62.2651 10.0129 63.0813 10.9698 63.1095 12.0956H64.4321C64.4087 10.9815 63.8755 9.85716 62.9845 9.36204",fill:t}),(0,ze.jsx)("path",{d:"M89.8037 6.5231V7.32533C89.4658 6.81885 88.8747 6.48242 88.0307 6.48242C86.4827 6.48242 85.3286 7.72077 85.3286 9.31094C85.3286 10.8868 86.4827 12.1395 88.0307 12.1395C88.8326 12.1395 89.4098 11.8159 89.8037 11.3233V12.0973H90.9999V6.5231H89.8037ZM88.1714 10.9279C87.2706 10.9279 86.6234 10.2242 86.6234 9.30947C86.6234 8.39473 87.2706 7.69108 88.1714 7.69108C89.0722 7.69108 89.7334 8.39473 89.7334 9.30947C89.7334 10.2242 89.0737 10.9279 88.1714 10.9279Z",fill:t}),(0,ze.jsx)("path",{d:"M81.2758 9.40791C81.2758 10.5055 80.7129 10.9138 79.9953 10.9138C79.2777 10.9138 78.7148 10.5055 78.7148 9.40791V6.52295H77.4482V9.35147C77.4482 11.2092 78.4051 12.1367 79.9953 12.1367C81.5855 12.1367 82.5424 11.2081 82.5424 9.35147V6.52295H81.2758V9.40791Z",fill:t}),(0,ze.jsx)("path",{d:"M67.5552 6.48096C65.9928 6.48096 64.7827 7.76145 64.7827 9.32377C64.7827 10.8861 65.9921 12.138 67.5973 12.138C68.5681 12.138 69.2718 11.8005 69.849 11.1954L69.1593 10.3792C68.7792 10.7168 68.301 10.9561 67.6255 10.9561C66.9501 10.9561 66.3168 10.6182 66.1207 9.88632H70.2851C70.3355 9.66481 70.3591 9.43804 70.3555 9.21089C70.3555 7.63501 69.1171 6.48096 67.5552 6.48096ZM66.0493 8.88729C66.2182 8.15432 66.8372 7.66323 67.6252 7.66323C68.4131 7.66323 68.9478 8.14149 69.1028 8.88729H66.0493Z",fill:t}),(0,ze.jsx)("path",{d:"M84.6533 4.35596H83.3867V12.0957H84.6533V4.35596Z",fill:"#8C8C8C"}),(0,ze.jsx)("path",{d:"M75.4077 7.32533C75.1263 6.84671 74.4791 6.48242 73.6347 6.48242C72.157 6.48242 70.9326 7.72077 70.9326 9.31094C70.9326 10.8868 72.157 12.0962 73.6347 12.0962C74.4369 12.0962 74.9434 11.8569 75.3374 11.3632V11.8701C75.3374 12.9677 74.5634 13.3617 73.8176 13.3617C73.0718 13.3617 72.4806 12.9952 72.3681 12.1937H71.1298C71.1862 13.601 72.3117 14.5025 73.8176 14.5025C75.3235 14.5025 76.6028 13.6442 76.6028 11.7865V6.5231H75.4077V7.32533ZM73.7754 10.8857C72.8746 10.8857 72.2274 10.2242 72.2274 9.30984C72.2274 8.39547 72.8746 7.69145 73.7754 7.69145C74.6762 7.69145 75.3374 8.3951 75.3374 9.30984C75.3374 10.2246 74.6759 10.8857 73.7754 10.8857Z",fill:t})]})},"back-camera":function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{width:t||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsxs)("g",{opacity:"0.9",children:[(0,ze.jsx)("rect",{x:"14",y:"4",width:"2",height:"22",rx:"1",fill:n||"white"}),(0,ze.jsx)("path",{d:"M8.698 15 L1 5.762 1 24.238 Z",stroke:n||"white",strokeWidth:"2"}),(0,ze.jsx)("path",{d:"M21.302 15 L29 5.762 29 24.238 Z",fill:n||"white",stroke:n||"white",strokeWidth:"2"})]})})},"front-camera":function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{width:t||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsxs)("g",{opacity:"0.9",children:[(0,ze.jsx)("rect",{x:"14",y:"4",width:"2",height:"22",rx:"1",fill:n||"white"}),(0,ze.jsx)("path",{d:"M21.302 15 L29 5.762 29 24.238 Z",stroke:n||"white",strokeWidth:"2"}),(0,ze.jsx)("path",{d:"M8.698 15 L1 5.762 1 24.238 Z",fill:n||"white",stroke:n||"white",strokeWidth:"2"})]})})},"camera-logo":function(e){var t=e.size,n=e.color;return(0,ze.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 86 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("ellipse",{cx:"43",cy:"42",rx:"40",ry:"40",transform:"rotate(90 43 42)",stroke:n||"#E93C3C",strokeWidth:"3"}),(0,ze.jsx)("path",{d:"M41.213 32.6666H45.6663C46.3736 32.6666 47.0519 32.9476 47.552 33.4477C48.0521 33.9478 48.333 34.626 48.333 35.3333V39.7866L49.6663 41.12L57.6663 35.3333V48.6666M48.333 47.3333V48.6666C48.333 49.3739 48.0521 50.0521 47.552 50.5522C47.0519 51.0523 46.3736 51.3333 45.6663 51.3333H30.9997C30.2924 51.3333 29.6142 51.0523 29.1141 50.5522C28.614 50.0521 28.333 49.3739 28.333 48.6666V35.3333C28.333 34.626 28.614 33.9478 29.1141 33.4477C29.6142 32.9476 30.2924 32.6666 30.9997 32.6666H33.6663L48.333 47.3333Z",stroke:n||"#E93C3C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ze.jsx)("path",{d:"M28.333 27.3334L57.6663 56.6667",stroke:n||"#E93C3C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},"fullscreen-exit":function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||24,height:t||24,viewBox:"0 0 24 24",fill:n||"white",children:(0,ze.jsx)("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})})},"from-camera":function(e){var t=e.size;return(0,ze.jsxs)("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("path",{d:"M46 38C46 39.0609 45.5786 40.0783 44.8284 40.8284C44.0783 41.5786 43.0609 42 42 42H6C4.93913 42 3.92172 41.5786 3.17157 40.8284C2.42143 40.0783 2 39.0609 2 38V16C2 14.9391 2.42143 13.9217 3.17157 13.1716C3.92172 12.4214 4.93913 12 6 12H14L18 7.20001H30L34 12H42C43.0609 12 44.0783 12.4214 44.8284 13.1716C45.5786 13.9217 46 14.9391 46 16V38Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ze.jsx)("path",{d:"M24.0001 34.8C28.6393 34.8 32.4001 31.0392 32.4001 26.4C32.4001 21.7608 28.6393 18 24.0001 18C19.3609 18 15.6001 21.7608 15.6001 26.4C15.6001 31.0392 19.3609 34.8 24.0001 34.8Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ze.jsx)("rect",{x:"37",y:"17",width:"4",height:"4",rx:"1",fill:"var(--main-color)"})]})},"from-gallery":function(e){var t=e.size;return(0,ze.jsxs)("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,ze.jsx)("path",{d:"M43.875 34.125C45.6699 34.125 47.125 32.6699 47.125 30.875V8.125C47.125 6.33007 45.6699 4.875 43.875 4.875H21.125C19.3301 4.875 17.875 6.33007 17.875 8.125",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ze.jsx)("path",{d:"M35.875 11.875H5.125C3.33007 11.875 1.875 13.3301 1.875 15.125V37.875C1.875 39.6699 3.33007 41.125 5.125 41.125H35.875C37.6699 41.125 39.125 39.6699 39.125 37.875V15.125C39.125 13.3301 37.6699 11.875 35.875 11.875Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ze.jsx)("path",{d:"M10.8125 23.25C12.1587 23.25 13.25 22.1587 13.25 20.8125C13.25 19.4663 12.1587 18.375 10.8125 18.375C9.46631 18.375 8.375 19.4663 8.375 20.8125C8.375 22.1587 9.46631 23.25 10.8125 23.25Z",fill:"var(--main-color)"}),(0,ze.jsx)("path",{d:"M31.125 31.375L23 23.25L5.125 41.125",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,ze.jsx)("defs",{children:(0,ze.jsx)("clipPath",{id:"clip0",children:(0,ze.jsx)("rect",{width:"48",height:"48",fill:"white"})})})]})},"docreader-search":function(e){var t=e.size;return(0,ze.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("g",{children:(0,ze.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#1B101F",fillOpacity:"0.5"})}),(0,ze.jsxs)("g",{opacity:"0.8",children:[(0,ze.jsx)("circle",{cx:"40",cy:"40",r:"23.5",stroke:"white"}),(0,ze.jsx)("circle",{cx:"40",cy:"40",r:"1",fill:"white"})]})]})},"docreader-processing-finished":function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40 80C17.9086 80 0 62.0914 0 40C0 17.9086 17.9086 0 40 0C62.0914 0 80 17.9086 80 40C80 62.0914 62.0914 80 40 80ZM64.0282 29.0922C64.6314 28.5243 64.66 27.575 64.0922 26.9718C63.5243 26.3686 62.575 26.34 61.9718 26.9078L37.5069 49.9399L26.0282 39.1334C25.425 38.5656 24.4757 38.5942 23.9079 39.1974C23.34 39.8006 23.3686 40.7499 23.9718 41.3177L36.4787 53.0922C37.0563 53.6359 37.9575 53.6359 38.5351 53.0922L64.0282 29.0922Z",fill:n||"white"})})},"docreader-processing-error":function(e){var t=e.size;return(0,ze.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("g",{children:(0,ze.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#E95454",fillOpacity:"0.45"})}),(0,ze.jsx)("g",{children:(0,ze.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40 67C54.9117 67 67 54.9117 67 40C67 25.0883 54.9117 13 40 13C25.0883 13 13 25.0883 13 40C13 54.9117 25.0883 67 40 67ZM40 64C53.2548 64 64 53.2548 64 40C64 26.7452 53.2548 16 40 16C26.7452 16 16 26.7452 16 40C16 53.2548 26.7452 64 40 64Z",fill:"white"})})]})},"docreader-processing":function(e){var t=e.size;return(0,ze.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("g",{children:(0,ze.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#1B101F",fillOpacity:"0.5"})}),(0,ze.jsx)("g",{opacity:"0.8",children:(0,ze.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40 67C54.9117 67 67 54.9117 67 40C67 25.0883 54.9117 13 40 13C25.0883 13 13 25.0883 13 40C13 54.9117 25.0883 67 40 67ZM40 64C53.2548 64 64 53.2548 64 40C64 26.7452 53.2548 16 40 16C26.7452 16 16 26.7452 16 40C16 53.2548 26.7452 64 40 64Z",fill:"white"})})]})},"docreader-flip":function(e){var t=e.size;return(0,ze.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("g",{children:(0,ze.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#1B101F",fillOpacity:"0.5"})}),(0,ze.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 25.2308C16 24.551 16.5373 24 17.2 24H62.8C63.4627 24 64 24.551 64 25.2308V54.7692C64 55.449 63.4627 56 62.8 56H17.2C16.5373 56 16 55.449 16 54.7692V25.2308ZM21.4 30.1538C21.4 29.814 21.6686 29.5385 22 29.5385H32.8C33.1314 29.5385 33.4 29.814 33.4 30.1538V43.6923C33.4 44.0322 33.1314 44.3077 32.8 44.3077H22C21.6686 44.3077 21.4 44.0322 21.4 43.6923V30.1538ZM39.4 29.5385C39.0686 29.5385 38.8 29.814 38.8 30.1538V30.7692C38.8 31.1091 39.0686 31.3846 39.4 31.3846H58C58.3314 31.3846 58.6 31.1091 58.6 30.7692V30.1538C58.6 29.814 58.3314 29.5385 58 29.5385H39.4ZM39.4 35.0769C39.0686 35.0769 38.8 35.3524 38.8 35.6923V36.3077C38.8 36.6476 39.0686 36.9231 39.4 36.9231H49.6C49.9314 36.9231 50.2 36.6476 50.2 36.3077V35.6923C50.2 35.3524 49.9314 35.0769 49.6 35.0769H39.4ZM38.8 41.2308C38.8 40.8909 39.0686 40.6154 39.4 40.6154H53.8C54.1314 40.6154 54.4 40.8909 54.4 41.2308V41.8462C54.4 42.186 54.1314 42.4615 53.8 42.4615H39.4C39.0686 42.4615 38.8 42.186 38.8 41.8462V41.2308ZM22 49.8462C21.6686 49.8462 21.4 50.1217 21.4 50.4615V51.0769C21.4 51.4168 21.6686 51.6923 22 51.6923H32.2C32.5314 51.6923 32.8 51.4168 32.8 51.0769V50.4615C32.8 50.1217 32.5314 49.8462 32.2 49.8462H22Z",fill:"white"})]})},"docreader-camera-disabled":function(e){var t=e.size;return(0,ze.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("g",{children:(0,ze.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#1B101F",fillOpacity:"0.5"})}),(0,ze.jsx)("path",{d:"M40.213 30.6667H44.6663C45.3736 30.6667 46.0519 30.9476 46.552 31.4477C47.0521 31.9478 47.333 32.6261 47.333 33.3334V37.7867L48.6663 38.12L56.6663 33.3334V46.6667M47.333 45.3334V46.6667C47.333 47.3739 47.0521 48.0522 46.552 48.5523C46.0519 49.0524 45.3736 49.3334 44.6663 49.3334H29.9997C29.2924 49.3334 28.6142 49.0524 28.1141 48.5523C27.614 48.0522 27.333 47.3739 27.333 46.6667V33.3334C27.333 32.6261 27.614 31.9478 28.1141 31.4477C28.6142 30.9476 29.2924 30.6667 29.9997 30.6667H32.6663L47.333 45.3334Z",stroke:"#FF5E5E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ze.jsx)("path",{d:"M27.333 25.3333L56.6663 54.6666",stroke:"#FF5E5E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},"docreader-camera-preparing":function(e){var t=e.size;return(0,ze.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("g",{children:(0,ze.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#1B101F",fillOpacity:"0.5"})}),(0,ze.jsx)("path",{d:"M47.333 43L56.6663 46.6666V33.3333L47.333 37",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ze.jsx)("path",{d:"M47.333 43V46.6667C47.333 48.1394 46.1391 49.3334 44.6663 49.3334H29.9997C28.5269 49.3334 27.333 48.1394 27.333 46.6667V33.3334C27.333 31.8606 28.5269 30.6667 29.9997 30.6667H44.6663C46.1391 30.6667 47.333 31.8606 47.333 33.3334V43.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},"camera-change":function(e){var t=e.size,n=e.color;return(0,ze.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||24,height:t||24,viewBox:"0 0 24 24",fill:n||"rgba(0,0,0,0.6)",children:(0,ze.jsx)("path",{d:"M12.29,5.21l1.5,1.5a1,1,0,0,0,1.42,0,1,1,0,0,0,.13-1.21H19a1,1,0,0,0,0-2H15.34a1,1,0,0,0-.13-1.21,1,1,0,0,0-1.42,0l-1.5,1.5a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76A1,1,0,0,0,12.29,5.21ZM22.92,9.12a1,1,0,0,0-.21-.33l-1.5-1.5a1,1,0,0,0-1.42,0,1,1,0,0,0-.13,1.21H16a1,1,0,0,0,0,2h3.66a1,1,0,0,0,.13,1.21,1,1,0,0,0,1.42,0l1.5-1.5a1,1,0,0,0,.21-.33A1,1,0,0,0,22.92,9.12ZM11,10a4,4,0,1,0,4,4A4,4,0,0,0,11,10Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,11,16Zm9-3a1,1,0,0,0-1,1v5a1,1,0,0,1-1,1H4a1,1,0,0,1-1-1V11a1,1,0,0,1,1-1H6a1,1,0,0,0,1-.69l.54-1.62A1,1,0,0,1,8.44,7H10a1,1,0,0,0,0-2H8.44A3,3,0,0,0,5.59,7.06L5.28,8H4a3,3,0,0,0-3,3v8a3,3,0,0,0,3,3H18a3,3,0,0,0,3-3V14A1,1,0,0,0,20,13Z"})})},"portrait-orientation-only":function(e){var t=e.size,n=e.color;return(0,ze.jsxs)("svg",{width:t||86,height:t||86,viewBox:"0 0 86 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("path",{d:"M33.8254 7.18383L32.7648 6.12317C33.3506 5.53738 34.3003 5.53738 34.8861 6.12317L33.8254 7.18383ZM80.0417 51.9C80.0417 52.7285 79.3701 53.4 78.5417 53.4L65.0417 53.4C64.2132 53.4 63.5417 52.7285 63.5417 51.9C63.5417 51.0716 64.2132 50.4 65.0417 50.4L77.0417 50.4V38.4C77.0417 37.5716 77.7132 36.9 78.5417 36.9C79.3701 36.9 80.0417 37.5716 80.0417 38.4L80.0417 51.9ZM14.8058 28.3248C14.22 28.9106 13.2702 28.9106 12.6845 28.3248C12.0987 27.739 12.0987 26.7893 12.6845 26.2035L14.8058 28.3248ZM34.8861 6.12317L79.6023 50.8394L77.481 52.9607L32.7648 8.24449L34.8861 6.12317ZM34.8861 8.24449L14.8058 28.3248L12.6845 26.2035L32.7648 6.12317L34.8861 8.24449Z",fill:n||"#DC4343"}),(0,ze.jsx)("path",{d:"M52.0974 78.344L53.1581 79.4047C52.5723 79.9904 51.6225 79.9904 51.0367 79.4047L52.0974 78.344ZM5.88119 33.6278C5.88119 32.7994 6.55276 32.1278 7.38119 32.1278L20.8812 32.1278C21.7096 32.1278 22.3812 32.7994 22.3812 33.6278C22.3812 34.4562 21.7096 35.1278 20.8812 35.1278L8.88119 35.1278V47.1278C8.88119 47.9562 8.20961 48.6278 7.38119 48.6278C6.55276 48.6278 5.88119 47.9562 5.88119 47.1278L5.88119 33.6278ZM71.1171 57.203C71.7029 56.6172 72.6526 56.6172 73.2384 57.203C73.8242 57.7888 73.8242 58.7385 73.2384 59.3243L71.1171 57.203ZM51.0367 79.4047L6.32053 34.6884L8.44185 32.5671L53.1581 77.2833L51.0367 79.4047ZM51.0367 77.2833L71.1171 57.203L73.2384 59.3243L53.1581 79.4047L51.0367 77.2833Z",fill:n||"#DC4343"})]})},"document-front":function(e){var t=e.size,n=e.color;return(0,ze.jsxs)("svg",{width:t?1.4*t:920,height:t||640,viewBox:"0 0 920 640",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("path",{d:"M520 200H800V240H520V200Z",fill:n||"white"}),(0,ze.jsx)("path",{d:"M800 300H520V340H800V300Z",fill:n||"white"}),(0,ze.jsx)("path",{d:"M520 400H800V440H520V400Z",fill:n||"white"}),(0,ze.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M274.943 123.429L274.933 123.432C266.551 126.295 258.863 130.466 251.927 135.343C243.39 140.807 235.349 147.484 228.244 155.117C216.999 166.723 206.985 181.73 202.638 200.462C201.732 203.954 201.031 207.508 200.554 211.114C198.857 223.937 199.991 237.409 204.799 251.055C201.906 250.776 199.719 251.697 198.089 253.419C191.062 260.842 194.356 283.152 195.842 288.454C202.652 312.775 208.999 319.597 213.796 319.988C216.486 337.575 230.545 358.063 243.587 375.139C243.587 405.888 203.816 413.339 170.442 419.591C162.723 421.037 155.346 422.419 148.883 424.01C114.629 432.436 110.268 472.281 110.168 504.349C110.141 513.052 117.321 520 126.023 520H473.977C482.679 520 489.859 513.052 489.839 504.349C489.769 472.142 485.483 432.464 451.117 424.01C445.211 422.556 438.486 421.191 431.39 419.752L431.388 419.751C396.76 412.725 353.321 403.912 353.321 374.203C353.664 373.739 354.01 373.272 354.358 372.804C357.463 368.617 360.701 364.25 363.825 359.791C372.128 347.938 379.624 335.429 381.652 323.912C382.709 324.634 383.91 325.123 385.24 325.123C385.796 325.123 386.374 325.037 386.972 324.849C391.593 323.394 397.418 315.772 403.633 293.568C410.9 267.609 406.477 258.905 400.199 256.714C420.616 157.928 373.971 154.617 373.971 154.617C373.971 154.617 366.934 140.939 348.397 130.606C337.66 124.183 323.287 119 304.851 119C301.953 119 298.964 119.122 295.865 119.395C288.479 119.744 281.5 121.188 274.943 123.429ZM321.183 350.388C316.077 357.278 313.321 365.627 313.321 374.203C313.321 396.791 323.959 414.183 337.296 425.916C349.473 436.63 364.134 443.009 376.199 447.154C388.689 451.445 401.819 454.454 412.943 456.796C417.197 457.692 421.006 458.464 424.494 459.171L424.495 459.171C431.031 460.495 436.443 461.592 441.555 462.85L441.562 462.852C442.371 463.051 442.688 463.234 442.718 463.251L442.719 463.252L442.723 463.254C442.746 463.267 442.79 463.292 442.907 463.412C443.207 463.723 444.371 465.103 445.684 468.766C446.817 471.928 447.691 475.687 448.338 480H151.711C152.363 475.717 153.239 471.971 154.372 468.81C155.699 465.109 156.878 463.698 157.192 463.372L157.194 463.369C157.207 463.34 157.301 463.132 158.438 462.852L158.445 462.85C163.729 461.549 169.527 460.462 176.817 459.096L176.821 459.095C179.572 458.579 182.535 458.024 185.763 457.402C196.469 455.34 209.407 452.649 221.731 448.562C233.686 444.597 248.469 438.255 260.709 426.995C274.269 414.522 283.587 396.915 283.587 375.139C283.587 366.365 280.702 357.834 275.376 350.86C269.197 342.77 263.625 334.956 259.415 327.693C254.949 319.99 253.579 315.526 253.336 313.941C251.698 303.233 245.887 294.002 237.651 287.879C236.767 285.573 235.697 282.397 234.493 278.142C234.495 278.139 234.486 278.086 234.467 277.984L234.452 277.901C235.091 277.195 235.707 276.464 236.298 275.708C244.717 264.952 247.065 250.644 242.526 237.762C239.17 228.237 239.103 219.19 241.356 210.506C241.443 210.173 241.525 209.839 241.603 209.503C243.904 199.588 249.376 190.79 256.971 182.951C257.156 182.76 257.34 182.567 257.521 182.372C262.328 177.208 267.774 172.691 273.489 169.034C273.978 168.721 274.46 168.397 274.936 168.063C279.286 165.004 283.597 162.748 287.809 161.303L287.883 161.278C291.162 160.157 294.424 159.508 297.75 159.351C298.292 159.325 298.833 159.288 299.374 159.241C301.267 159.074 303.083 159 304.851 159C315.374 159 322.72 161.857 327.864 164.933C328.213 165.142 328.565 165.345 328.92 165.543C333.473 168.081 336.341 170.874 337.886 172.659C338.515 173.386 338.906 173.925 339.077 174.173C344.22 183.353 352.722 190.05 362.636 192.979C364.507 197.532 368.476 212.578 361.027 248.618C358.865 259.075 361.005 269.523 366.336 278.005C366.023 279.378 365.623 280.965 365.114 282.784L365.113 282.786C364.533 284.861 363.983 286.685 363.469 288.283C352.34 293.961 344.445 304.559 342.258 316.974C342.258 316.974 342.208 317.246 342.023 317.818C341.833 318.406 341.53 319.218 341.065 320.269C340.111 322.423 338.685 325.105 336.678 328.368C332.654 334.911 327.684 341.617 321.853 349.483L321.183 350.388Z",fill:n||"white"}),(0,ze.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80 0C35.8172 0 0 35.8172 0 80V560C0 604.183 35.8172 640 80 640H840C884.183 640 920 604.183 920 560V80C920 35.8172 884.183 0 840 0H80ZM840 40H80C57.9086 40 40 57.9086 40 80V560C40 582.091 57.9086 600 80 600H840C862.091 600 880 582.091 880 560V80C880 57.9086 862.091 40 840 40Z",fill:n||"white"})]})},"document-back":function(e){var t=e.size,n=e.color;return(0,ze.jsxs)("svg",{width:t?1.4*t:920,height:t||640,viewBox:"0 0 920 640",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ze.jsx)("path",{d:"M460 300H140V340H460V300Z",fill:n||"white"}),(0,ze.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100 0C44.7715 0 0 44.7715 0 100V540C0 595.228 44.7715 640 100 640H820C875.228 640 920 595.228 920 540V100C920 44.7715 875.229 0 820 0H100ZM820 40H100C66.8629 40 40 66.8629 40 100V140H880V100C880 66.8629 853.137 40 820 40ZM40 540V240H880V540C880 573.137 853.137 600 820 600H100C66.8629 600 40 573.137 40 540Z",fill:n||"white"})]})}};var Ge=function(e){var t=e.type,n=e.size,r=e.color,o=He[t];return(0,ze.jsx)(o,{size:n,color:r})},Ve=n("./src/components/layout/style.css"),We=n("../../node_modules/localize-react/dist/localize-react.js");function Ze(e,t){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ze(e,t)}function Ke(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ze(e,t)}function Ye(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var qe=n("../../node_modules/react-dom/index.js"),Qe=!1,Xe=xe.createContext(null),$e=function(e){return e.scrollTop},Je="unmounted",et="exited",tt="entering",nt="entered",rt="exiting",ot=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=et,r.appearStatus=tt):o=nt:o=t.unmountOnExit||t.mountOnEnter?Je:et,r.state={status:o},r.nextCallback=null,r}Ke(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Je?{status:et}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==tt&&n!==nt&&(t=tt):n!==tt&&n!==nt||(t=rt)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===tt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:qe.findDOMNode(this);n&&$e(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===et&&this.setState({status:Je})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[qe.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Qe?this.safeSetState({status:nt},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:tt},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:nt},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:qe.findDOMNode(this);t&&!Qe?(this.props.onExit(r),this.safeSetState({status:rt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:et},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:et},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:qe.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Je)return null;var t=this.props,n=t.children,r=(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,Ye(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return xe.createElement(Xe.Provider,{value:null},"function"==typeof n?n(e,r):xe.cloneElement(xe.Children.only(n),r))},t}(xe.Component);function it(){}ot.contextType=Xe,ot.propTypes={},ot.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:it,onEntering:it,onEntered:it,onExit:it,onExiting:it,onExited:it},ot.UNMOUNTED=Je,ot.EXITED=et,ot.ENTERING=tt,ot.ENTERED=nt,ot.EXITING=rt;var at,lt,st=ot;var ut="out-in",ct="in-out",ft=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},dt=((at={})[ut]=function(e){var t=e.current,n=e.changeState;return xe.cloneElement(t,{in:!1,onExited:ft(t,"onExited",(function(){n(tt,null)}))})},at[ct]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,xe.cloneElement(r,{in:!0,onEntered:ft(r,"onEntered",(function(){n(tt)}))})]},at),pt=((lt={})[ut]=function(e){var t=e.children,n=e.changeState;return xe.cloneElement(t,{in:!0,onEntered:ft(t,"onEntered",(function(){n(nt,xe.cloneElement(t,{in:!0}))}))})},lt[ct]=function(e){var t=e.current,n=e.children,r=e.changeState;return[xe.cloneElement(t,{in:!1,onExited:ft(t,"onExited",(function(){r(nt,xe.cloneElement(n,{in:!0}))}))}),xe.cloneElement(n,{in:!0})]},lt),ht=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:nt,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Ke(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===tt&&e.mode===ct?{status:tt}:!t.current||(n=t.current,r=e.children,n===r||xe.isValidElement(n)&&xe.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:xe.cloneElement(e.children,{in:!0})}:{status:rt};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,l={children:n,current:a,changeState:this.changeState,status:i};switch(i){case tt:e=pt[r](l);break;case rt:e=dt[r](l);break;case nt:e=a}return xe.createElement(Xe.Provider,{value:{isMounting:!this.appeared}},e)},t}(xe.Component);ht.propTypes={},ht.defaultProps={mode:ut};var mt=ht;function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vt.apply(this,arguments)}function yt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var gt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=yt(n.className,r):n.setAttribute("class",yt(n.className&&n.className.baseVal||"",r)));var n,r}))},bt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Ke(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&$e(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&gt(e,r),o&&gt(e,o),i&&gt(e,i)},n.render=function(){var e=this.props,t=(e.classNames,Ye(e,["classNames"]));return xe.createElement(st,vt({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(xe.Component);bt.defaultProps={classNames:""},bt.propTypes={};var wt=bt;function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return St(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return St(e,t)}(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 St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Et=function(e){var t=e.status,n=e.isServiceInitialized,r=e.children,o=e.mirroring,i=e.onChangeMirroring,a=e.onChangeCamera,l=e.videoStatusParams,s=e.videoElementParams,u=e.onClose,c=e.onSnapshotProcess,h=e.onCameraSnapshot,m=e.onSkip,v=e.frameParams,y=e.showChangeCameraButton,g=e.closeButton,b=void 0===g||g,w=e.captureButton,_=void 0===w||w,S=(0,xe.useRef)(null),E=(0,xe.useRef)(null),C=(0,xe.useRef)(null),k=_t((0,xe.useState)(!1),2),N=k[0],x=k[1],A=_t((0,xe.useState)(null),2),I=A[0],P=A[1],T=_t((0,xe.useState)(null),2),R=T[0],L=T[1],D=(0,We.useLocalize)().translate,j=l.sortedDevices&&l.sortedDevices.frontCameras.length+l.sortedDevices.backCameras.length>1,M=t===O.HOLD||t===O.FOCUS||t===O.RESOLUTION||t===O.PROCESSING||t===O.GLARE?"rgba(30, 130, 76, 0.9)":"rgba(255, 255, 255, 0.9)",F=l.videoStatus===f.PLAY,z=function(e,t,n){if(t===f.PLAY){if(!n)return{icon:"docreader-processing-error",title:"preparingService"};switch(e){case O.PROCESSING:case O.SUCCESS:return{icon:"docreader-processing",title:"documentProcessing"};case O.START_DETECTION:return{icon:"docreader-processing-error",title:"detectingDocument"};case O.FINDING:return{icon:"docreader-search",title:"placeDocumentIntoFrame"};case O.SNAPSHOT:return{icon:"square",title:"positionDocumentCenter"};case O.FOCUS:return{icon:"docreader-processing-error",title:"noFocus"};case O.RESOLUTION:return{icon:"docreader-processing-error",title:"moveCloser"};case O.GLARE:return{icon:"docreader-processing-error",title:"glaresOnDocument"};case O.HOLD:return{icon:"docreader-processing-error",title:"holdDocumentStraight"};case O.START_NEXT_PAGE:return{icon:"docreader-flip",title:"flipDocument"};default:return{icon:"docreader-processing-error",title:"somethingWentWrong"}}}else switch(t){case f.PREPARING:case f.READY:case f.REQUESTING:return{icon:"docreader-camera-preparing",title:"preparingCamera"};case f.PERMISSION_DENIED:return{icon:"docreader-camera-disabled",title:"cameraUnavailable",subtitle:"allowAccessToCamera"};case f.UNKNOWN_ERROR:return{icon:"error",title:"somethingWentWrong"};case f.NO_CAMERA:return{icon:"docreader-camera-disabled",title:"noCameraAvailable",subtitle:"cameraConnection"};case f.INCORRECT_CAMERA_ID:return{icon:"docreader-camera-disabled",title:"incorrectCameraId",subtitle:"checkCameraId"};default:return{icon:"docreader-processing-error",title:"somethingWentWrong"}}}(t,l.videoStatus,n),U=z.icon,B=z.title,H=z.subtitle,G="".concat(Ve.Z.locals.title," ").concat(H?"":Ve.Z.locals["message-text"]),V=t===O.START_NEXT_PAGE;return(0,xe.useEffect)((function(){t===O.START_NEXT_PAGE&&x(!0)}),[t]),(0,xe.useEffect)((function(){var e=S.current;if(e&&l.videoStatus===f.PLAY){var t=fe(s.videoParams.width,s.videoParams.height,s.videoContainerParams.width,s.videoContainerParams.height,s.videoParams.width,s.videoParams.height,0,0,p.contain),n=t.width,r=t.height,o=t.top,i=t.left;e.style.width="".concat(n,"px"),e.style.height="".concat(r,"px"),e.style.top="".concat(o,"px"),e.style.left="".concat(i,"px"),L({width:n,height:r,top:o,left:i})}}),[s,l.videoStatus]),(0,xe.useEffect)((function(){if(v&&R){var e=v.frameRight-v.frameLeft,t=v.frameBottom-v.frameTop;if(R.width&&R.height&&(e&&t)){var n=fe(s.videoParams.width,s.videoParams.height,R.width,R.height,e,t,v.frameLeft,v.frameTop,p.contain),r=n.width,o=n.height,i=n.left,a=n.top;P({width:r-5,height:o-5,top:a+2.5,left:i+2.5,stroke:5})}}}),[R,v,s.videoParams]),(0,ze.jsxs)("div",{className:Ve.Z.locals.container,children:[r,(0,ze.jsxs)("div",{ref:S,className:Ve.Z.locals.layout,children:[I&&R&&(0,ze.jsxs)("svg",{className:Ve.Z.locals.svg,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",viewBox:"0 0 ".concat(R.width," ").concat(R.height),children:[(0,ze.jsx)("defs",{children:(0,ze.jsxs)("mask",{id:"bgClip",children:[(0,ze.jsx)("rect",{x:"0",y:"0",width:R.width,height:R.height,fill:"#fff",opacity:"0.5"}),(0,ze.jsx)("rect",{x:I.left,y:I.top,rx:"15",ry:"15",width:I.width,height:I.height})]})}),(0,ze.jsx)("rect",{mask:"url(#bgClip)",x:"0",y:"0",width:R.width,height:R.height,fill:"black"}),(0,ze.jsx)("rect",{x:I.left,y:I.top,rx:"15",ry:"15",width:I.width,height:I.height,fill:"none",stroke:M,strokeWidth:I.stroke})]}),(0,ze.jsx)(mt,{children:(0,ze.jsx)(wt,{nodeRef:V?E:C,classNames:{enter:Ve.Z.locals["fade-enter"],enterActive:Ve.Z.locals["fade-enter-active"],exit:Ve.Z.locals["fade-exit"],exitActive:Ve.Z.locals["fade-exit-active"]},timeout:300,children:V?(0,ze.jsxs)("div",{ref:E,className:Ve.Z.locals.flip,children:[(0,ze.jsx)("div",{className:Ve.Z.locals.front,children:(0,ze.jsx)(Ge,{type:"document-front"})}),(0,ze.jsx)("div",{className:Ve.Z.locals.back,children:(0,ze.jsx)(Ge,{type:"document-back"})})]}):(0,ze.jsxs)("div",{ref:C,className:Ve.Z.locals["message-container"],children:[(0,ze.jsx)("div",{className:Ve.Z.locals.icon,children:(0,ze.jsx)(Ge,{type:U})}),(0,ze.jsx)("div",{className:Ve.Z.locals.message,children:(0,ze.jsxs)("div",{className:Ve.Z.locals["message-background"],children:[(0,ze.jsx)("p",{className:G,children:D(B)}),H&&(0,ze.jsx)("p",{className:Ve.Z.locals.subtitle,children:D(H)})]})})]})},V?"flip-icon":"message-container")}),(0,ze.jsxs)("div",{className:Ve.Z.locals["top-functional-buttons"],children:[(0,ze.jsx)("div",{className:Ve.Z.locals["buttons-left"],children:l.camera.facing!==d.environment&&F&&(0,ze.jsx)("button",{onClick:i,children:(0,ze.jsx)(Ge,{size:30,type:o?"back-camera":"front-camera"})})}),(0,ze.jsx)("div",{className:Ve.Z.locals["buttons-right"],children:b&&(0,ze.jsx)("button",{onClick:u,children:(0,ze.jsx)(Ge,{color:F?"white":"#8C8C8C",type:"cross"})})})]}),F&&(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsxs)("div",{className:Ve.Z.locals["bottom-functional-buttons"],children:[(0,ze.jsx)("div",{className:Ve.Z.locals["buttons-left"],children:t!==O.SNAPSHOT&&c&&_&&(0,ze.jsx)("button",{onClick:c,children:(0,ze.jsx)(Ge,{size:30,type:"snapshot"})})}),(0,ze.jsxs)("div",{className:Ve.Z.locals["buttons-right"],children:[N&&(0,ze.jsx)("button",{onClick:m,children:(0,ze.jsx)(Ge,{size:30,type:"stop"})}),j&&y&&(0,ze.jsx)("button",{disabled:!F,onClick:a,children:(0,ze.jsx)(Ge,{color:"white",size:30,type:"camera-change"})})]})]}),t===O.SNAPSHOT&&h&&(0,ze.jsx)("button",{className:Ve.Z.locals["snapshot-button"],onClick:h,children:(0,ze.jsx)(Ge,{size:50,type:"snapshot"})})]})]})]})};function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Ct(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Ct(i)?i:String(i)),r)}var o,i}function Nt(e,t,n){return t&&kt(e.prototype,t),n&&kt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ot=Nt((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.details=n})),xt=Ot;function At(e){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},At(e)}function It(){It=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new k(o||[]);return r(a,"_invoke",{value:_(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(x){return{type:"throw",arg:x}}}e.wrap=u;var f={};function d(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(N([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var s=c(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==At(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,l,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Pt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function Tt(e,t,n){return Rt.apply(this,arguments)}function Rt(){var e;return e=It().mark((function e(t,n,r){var o,i,a;return It().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=[],i=It().mark((function e(i){var a;return It().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=new Promise((function(e,o){var a=Array.from(t)[i];if(a){if(!a.size)return o(new xt(h.INCORRECT_FILE));var l=document.createElement("canvas"),s=l.getContext("2d",{willReadFrequently:!0}),u=URL.createObjectURL(a),c=new Image;c.onload=function(){var t=c.width,i=c.height;if(c.width*c.height>r)return o(new xt(h.INCORRECT_FILE));if(c.width>n||c.height>n){var a=c.width/c.height;c.width>c.height?(t=n,i=n/a):(i=n,t=n*a)}if(l.width=t,l.height=i,s){s.drawImage(c,0,0,t,i);var f=null==s?void 0:s.getImageData(0,0,t,i);f&&(e(f),URL.revokeObjectURL(u))}},c.src=u,c.onerror=function(){return o(new xt(h.INCORRECT_FILE))}}else o(new xt(h.INCORRECT_FILE))})),o.push(a);case 2:case"end":return e.stop()}}),e)})),a=0;case 3:if(!(a<t.length)){e.next=8;break}return e.delegateYield(i(a),"t0",5);case 5:a++,e.next=3;break;case 8:return e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})),Rt=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Pt(i,r,o,a,l,"next",e)}function l(e){Pt(i,r,o,a,l,"throw",e)}a(void 0)}))},Rt.apply(this,arguments)}function Lt(e,t,n,r){var o,i,a,l;return t?(i=(o=e.height-2*r)*n,a=(e.width-i)/2,l=r):(o=(i=e.width-2*r)/n,a=r,l=(e.height-o)/2),{height:o,width:i,left:a,top:l}}function Dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(e,t){var n,r,o={glareCheck:A.WAS_NOT_DONE,resolutionCheck:A.WAS_NOT_DONE,focusCheck:A.WAS_NOT_DONE,isDocumentAvailable:!1};return null===(n=e.rawResponse.ContainerList)||void 0===n||null===(r=n.List)||void 0===r||r.forEach((function(e){e.ImageQualityCheckList&&e.page_idx===t&&e.ImageQualityCheckList.List.forEach((function(e){e.type===x.IMAGE_FOCUS&&(o.focusCheck=e.result),e.type===x.IMAGE_GLARES&&(o.glareCheck=e.result),e.type===x.IMAGE_RESOLUTION&&(o.resolutionCheck=e.result)})),e.DocumentPosition&&e.page_idx===t&&(o.isDocumentAvailable=!0)})),o}(e,t),o=r.glareCheck,i=r.resolutionCheck,a=r.focusCheck,l=r.isDocumentAvailable,s=!n||n&&0===e.rawResponse.morePagesAvailable;return e.rawResponse.ProcessingFinished===R.FINISHED?s?O.SUCCESS:O.START_NEXT_PAGE:e.rawResponse.ProcessingFinished===R.TIMEOUT?O.TIMEOUT:l?a===A.ERROR?O.FOCUS:o===A.ERROR?O.GLARE:i===A.ERROR?O.RESOLUTION:O.HOLD:O.FINDING}function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mt(e,t)}(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 Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ft=function(e){var t=e.videoSize,n=e.scenario,r=e.scenarioParams,o=jt((0,xe.useState)(null),2),i=o[0],a=o[1];return(0,xe.useEffect)((function(){var e=!!t.width,o=!!t.height;if(e&&o&&r.length){var i=r.find((function(e){return e.name===n}));if(i&&i.frameKWHLandscape&&i.frameKWHPortrait){var l=t.width>t.height,s=l?+i.frameKWHLandscape:+i.frameKWHPortrait,u=l?t.height/100*10:0,c=Lt(t,!0,s,u),f=Lt(t,!1,s,u),d=l?c:f;a({frameBottom:Math.floor(d.top+d.height),frameLeft:Math.floor(d.left),frameRight:Math.floor(d.left+d.width),frameTop:Math.floor(d.top),light:0,resolutionType:0})}}}),[n,t,r]),i};function zt(e){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(e)}function Ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bt(e,t)}(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 Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vt(r.key),r)}}function Gt(e,t,n){return(t=Vt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e){var t=function(e,t){if("object"!==zt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zt(t)?t:String(t)}var Wt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Gt(this,"_levels",[]),Gt(this,"_transports",[]),Gt(this,"_logs",[]),Gt(this,"_prevTime",0);var t=localStorage.getItem("logger");if(t){var n=Ut(t.split(">"),2),r=n[0],o=n[1];this._levels=r.split(","),o&&(this._transports=o.split(","))}}var t,n,r;return t=e,n=[{key:"create",value:function(e,t){var n=this;return function(r){if(n._levels.includes(e)||n._levels.includes("all")){var o=Date.now(),i=0;if(n._prevTime&&(i=o-n._prevTime),n._prevTime=o,n._transports.includes("console")){var a=(null==t?void 0:t.color)||"blue";console.log("%c".concat(e,": %c").concat(r," %c+").concat(i,"ms"),"color: ".concat(a,";"),"","color: ".concat(a,";"))}n._transports.includes("file")&&n._logs.push("".concat(e,": ").concat(r," +").concat(i,"ms"))}}}},{key:"saveLogs",value:function(){if(this._logs.length){var e=this._logs.join("\n"),t=new Blob([e],{type:"text/plain"}),n=window.URL.createObjectURL(t),r=document.createElement("a");r.download="log.txt",r.href=n,r.click(),window.URL.revokeObjectURL(n),this._logs=[]}}}],n&&Ht(t.prototype,n),r&&Ht(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Zt=new Wt;function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function Yt(){Yt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new k(o||[]);return r(a,"_invoke",{value:_(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(x){return{type:"throw",arg:x}}}e.wrap=u;var f={};function d(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(N([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var s=c(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Kt(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,l,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function qt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function Qt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){qt(i,r,o,a,l,"next",e)}function l(e){qt(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Kt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function en(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tn(e,t)}(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 tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nn=Zt.create("main");var rn=function(e,t,n){var r=window.RegulaDocumentSDK,o=en((0,xe.useState)(!1),2),i=o[0],a=o[1],l=en((0,xe.useState)(!1),2),s=l[0],c=l[1],d=en((0,xe.useState)(0),2),p=d[0],m=d[1],v=en((0,xe.useState)([]),2),y=v[0],g=v[1],b=en((0,xe.useState)({status:O.START_DETECTION,initialized:(null==r?void 0:r.isInitialized)||!1,error:null,response:null}),2),w=b[0],_=b[1],S=Ft({videoSize:e.videoParams,scenario:n.scenario||L.MrzAndLocate,scenarioParams:y});return(0,xe.useEffect)((function(){r&&(r.prepareListener=function(e){e.isPrepared&&r.initialize({license:n.license}).then((function(e){0===e.license.errorCode&&e.license.status?(_((function(e){return $t($t({},e),{},{initialized:!0})})),g(e.scenario),nn("Service initialized")):(_((function(t){return $t($t({},t),{},{status:O.FAILED,error:new xt(h.WASM_LICENSE,e.license.message)})})),nn("Problems with initialization: ".concat(JSON.stringify(e.license))))})).catch((function(e){_((function(t){return $t($t({},t),{},{status:O.FAILED,error:e})}))}))})}),[n.license]),(0,xe.useEffect)((function(){if(r){r.recognizerProcessParam=Ce(H,r.recognizerProcessParam);var e=S?{imageInputParam:S}:{};if(r.recognizerProcessParam=Ce(r.recognizerProcessParam,e),void 0!==n.multipageProcessing){var t={processParam:{multipageProcessing:n.multipageProcessing}};r.recognizerProcessParam=Ce(r.recognizerProcessParam,t)}if(void 0!==n.scenario){var o={processParam:{scenario:n.scenario}};r.recognizerProcessParam=Ce(r.recognizerProcessParam,o)}}}),[r,n.scenario,n.multipageProcessing,S]),(0,xe.useEffect)((function(){return r&&w.initialized&&!i&&r.startNewDocument().then((function(){a(!0),nn("New document started")})).catch((function(e){_((function(t){return $t($t({},t),{},{status:O.FAILED,error:e})}))})),function(){i&&a(!1)}}),[w.initialized,i]),(0,xe.useEffect)((function(){var n=t===f.PLAY,o=!!U[w.status];if(r&&w.initialized&&n&&!s&&e.videoElement&&i&&!o){var a=Se(e.videoElement,u.UINT).imageData;c(!0),nn("Image processing started"),r.process(a).then((function(e){var t=Dt(e,p,r.recognizerProcessParam.processParam.multipageProcessing);_((function(n){return $t($t({},n),{},{status:t,response:e})})),nn("Image processing is finished"),t!==O.START_NEXT_PAGE&&c(!1)})).catch((function(e){_((function(t){return $t($t({},t),{},{status:O.FAILED,error:e})})),c(!1)}))}}),[s,w.initialized,e.videoElement,t,w.status,i,p]),(0,xe.useEffect)((function(){var e=w.status===O.START_NEXT_PAGE;if(r&&e){nn("More pages available");var t=setTimeout(Qt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.startNewPage();case 3:c(!1),m((function(e){return e+1})),nn("New page started"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),_((function(t){return $t($t({},t),{},{status:O.FAILED,error:new xt(h.UNKNOWN_ERROR,e.t0)})}));case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),3e3);return function(){clearTimeout(t)}}}),[w.status]),$t($t({},w),{},{frameParams:S})},on=Zt.create("main"),an=(0,xe.createContext)({onEvent:function(){return on('Function "onEvent" not defined.')}}),ln=function(){return(0,xe.useContext)(an)};function sn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return un(e,t)}(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 un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cn=function(e){var t=e.onResponse,n=e.onStatusChange,r=e.onFileImageSet,o=e.onError,i=(0,xe.useRef)(!1),a=ln(),l=a.onEvent,s=a.internalScenario,p=a.multipageProcessing,h=a.license,m=a.cameraId,v=a.changeCamera,y=a.startScreen,g=a.closeButton,b=a.captureButton,w=sn((0,xe.useState)(!1),2),S=w[0],E=w[1],C=sn((0,xe.useState)({videoElement:null,videoParams:{width:0,height:0},videoContainerParams:{width:0,height:0}}),2),k=C[0],x=C[1],A=sn((0,xe.useState)({videoStatus:f.PREPARING,camera:{deviceId:"",facing:void 0,groupId:"",label:""},sortedDevices:null}),2),P=A[0],T=A[1],R=sn((0,xe.useState)(m),2),L=R[0],D=R[1],j=(0,xe.useCallback)((function(){return E(!S)}),[S]),M=(0,xe.useCallback)((function(){l({action:N.CAMERA_PROCESS_CLOSED,data:null}),y&&n(I.CHOOSE_INPUT_SOURCE)}),[y]),F=(0,xe.useCallback)((function(){l({action:N.PRESS_SKIP_BUTTON,data:null}),n(I.SUCCESS)}),[]),z=(0,xe.useCallback)((function(){if(P.sortedDevices){var e=Ee(P.sortedDevices,P.camera.deviceId);e&&D(e)}}),[P.camera.deviceId,P.sortedDevices]),B=(0,xe.useCallback)((function(){if(k.videoElement){var e=Se(k.videoElement,u.UINT).imageData;r(e)}}),[k.videoElement]),H=(0,xe.useCallback)((function(e){l({action:N.PROCESS_FINISHED,data:{status:c.ERROR,reason:e}})}),[]),G=rn(k,P.videoStatus,{scenario:s,multipageProcessing:p,license:h}),V=G.status,W=G.response,Z=G.initialized,K=G.error,Y=G.frameParams;return(0,xe.useEffect)((function(){W&&(V===O.START_NEXT_PAGE&&t(W),U[V]&&(n(U[V]),t(W)))}),[V,W]),(0,xe.useEffect)((function(){Z&&!i.current&&(l({action:N.SERVICE_INITIALIZED,data:null}),i.current=!0)}),[Z]),(0,xe.useEffect)((function(){K&&o(K)}),[K]),(0,xe.useMemo)((function(){return(0,ze.jsx)(Et,{mirroring:S,onChangeMirroring:j,status:V,isServiceInitialized:Z,videoStatusParams:P,frameParams:Y,videoElementParams:k,onClose:M,onSnapshotProcess:B,onSkip:F,onChangeCamera:z,showChangeCameraButton:v,closeButton:g,captureButton:b,children:(0,ze.jsx)(Be,{onVideoSizeChange:x,onVideoStatusChange:T,resolution:_.FULL_HD,mirroring:S,onFailStatus:H,mode:d.environment,cameraId:L})})}),[L,S,j,B,V,Z,P,Y,M,z,k,v,g,b])},fn=n("./src/components/container/style.css");var dn=function(e){var t=e.onClose,n=e.children,r=e.completionStatus,o=e.copyright,i=void 0===o||o,a=e.closeButton,l=void 0===a||a,s=e.direction,u=r===I.CAMERA_PROCESSING,c=u?fn.Z.locals.full:"";return(0,ze.jsxs)("div",{className:"".concat(fn.Z.locals.window," ").concat(c),"data-direction":s,children:[n,!u&&(0,ze.jsx)("header",{className:fn.Z.locals.header,children:l&&(0,ze.jsx)("button",{"data-e2e":"cross",onClick:t,children:(0,ze.jsx)(Ge,{type:"cross",color:"#8C8C8C"})})}),i&&!u&&(0,ze.jsx)("footer",{className:fn.Z.locals.footer,children:(0,ze.jsxs)("div",{className:fn.Z.locals.ads,children:[(0,ze.jsx)(Ge,{color:"#bd7dff",type:"regula-logo",size:18}),(0,ze.jsx)("div",{className:fn.Z.locals.pipe}),(0,ze.jsx)("span",{"data-e2e":"powered-by",children:"Powered by Regula"})]})})]})},pn=n("./src/components/info-screen/style.css"),hn=n("../../common/icons/Button.css"),mn=["children","onClick"];function vn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yn=function(e){var t=e.children,n=e.onClick,r=vn(e,mn);return(0,ze.jsx)("button",{"data-e2e":r["data-e2e"],className:hn.Z.locals.button,onClick:n,children:t})};var gn=function(e){var t=e.title,n=e.type,r=e.subtitle,o=e.onReset,i=e.size,a=(0,We.useLocalize)().translate;return(0,ze.jsx)("div",{className:pn.Z.locals["info-message"],children:(0,ze.jsxs)("div",{className:pn.Z.locals["text-container"],children:[(0,ze.jsx)(Ge,{type:n,size:i}),(0,ze.jsx)("p",{"data-e2e":"info-msg-title",className:pn.Z.locals.title,children:t}),(0,ze.jsx)("p",{className:pn.Z.locals.subtitle,children:r}),o&&(0,ze.jsx)(yn,{onClick:o,children:a("tryAgain")})]})})},bn=n("./src/components/start-screen/style.css");var wn=function(e){var t=e.onStart,n=e.onFileImageSet,r=e.title,o=e.subtitle,i=e.multiple,a=void 0===i||i,l=ln().onEvent,s=(0,xe.useRef)(null),u=(0,We.useLocalize)().translate,c=(0,xe.useCallback)((function(){var e=s.current;e&&(l({action:N.PRESS_FILE_BUTTON,data:null}),e.click())}),[]);return(0,ze.jsxs)("div",{className:bn.Z.locals["start-window"],children:[(0,ze.jsxs)("div",{className:bn.Z.locals.text,children:[(0,ze.jsx)("p",{className:bn.Z.locals.title,children:r}),(0,ze.jsx)("p",{className:bn.Z.locals.subtitle,children:o})]}),(0,ze.jsxs)("div",{className:bn.Z.locals.buttons,children:[(0,ze.jsxs)("button",{"data-e2e":"from-camera",onClick:t,children:[(0,ze.jsx)(Ge,{type:"from-camera"}),(0,ze.jsx)("p",{children:u("fromCamera")})]}),(0,ze.jsxs)("button",{"data-e2e":"from-gallery",onClick:c,children:[(0,ze.jsx)(Ge,{type:"from-gallery"}),(0,ze.jsx)("p",{children:u("fromGallery")})]})]}),(0,ze.jsx)("input",{ref:s,style:{display:"none"},type:"file",multiple:a,accept:Z.join(","),onChange:function(e){var t;null!==(t=e.target.files)&&void 0!==t&&t.length&&n(e.target.files)}})]})};function _n(e){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n(e)}function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_n(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nn(e,t)}(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 Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var On=Zt.create("main");var xn=function(e,t){var n=window.RegulaDocumentSDK,r=kn((0,xe.useState)(!1),2),o=r[0],i=r[1],a=kn((0,xe.useState)({status:O.START_DETECTION,error:null,response:null,initialized:(null==n?void 0:n.isInitialized)||!1,prepared:(null==n?void 0:n.isPrepared)||!1}),2),l=a[0],s=a[1];return(0,xe.useEffect)((function(){n&&!l.initialized&&(n.prepareListener=function(e){e.isPrepared&&n.initialize({license:t.license}).then((function(e){0===e.license.errorCode&&e.license.status?(s((function(e){return En(En({},e),{},{initialized:!0})})),On("Service initialized")):(s((function(t){return En(En({},t),{},{status:O.FAILED,error:new xt(h.WASM_LICENSE,e.license.message)})})),On("Problems with initialization: ".concat(JSON.stringify(e.license))))})).catch((function(e){s((function(t){return En(En({},t),{},{status:O.FAILED,error:e})}))}))})}),[l.initialized,t.license]),(0,xe.useEffect)((function(){if(n&&(n.imageProcessParam=Ce(G,n.imageProcessParam),void 0!==t.scenario)){var e={processParam:{scenario:t.scenario}};n.imageProcessParam=Ce(n.imageProcessParam,e)}}),[n,t.scenario]),(0,xe.useEffect)((function(){var t=!!U[l.status];n&&l.initialized&&!o&&e.length&&!t&&(i(!0),On("Image processing started"),n.processImage(e).then((function(e){s((function(t){return En(En({},t),{},{status:O.SUCCESS,response:e})})),i(!1),On("Image processing is finished")})).catch((function(e){s((function(t){return En(En({},t),{},{status:O.FAILED,error:e})})),i(!1)})))}),[l.initialized,l.status,e,o]),l},An=n("./src/components/process-screen/style.css"),In=n("../../common/icons/Spinner.css");var Pn=function(){return(0,ze.jsx)("div",{className:In.Z.locals.container,children:(0,ze.jsx)("div",{className:In.Z.locals.spinner})})};var Tn=function(e){var t=e.title;return(0,ze.jsxs)("div",{className:An.Z.locals["process-message"],children:[(0,ze.jsx)(Pn,{}),(0,ze.jsx)("span",{className:An.Z.locals.message,children:t})]})};function Rn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ln(e,t)}(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 Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Dn=function(e){var t=e.onStatusChange,n=e.onResponse,r=e.images,o=e.scenario,i=e.license,a=e.onError,l=(0,xe.useRef)(!1),s=(0,xe.useRef)(!1),u=ln().onEvent,c=Rn((0,xe.useState)([]),2),f=c[0],d=c[1],p=xn(f,{scenario:o,license:i}),m=p.status,v=p.response,y=p.error,g=p.initialized,b=(0,We.useLocalize)().translate;return(0,xe.useEffect)((function(){r&&!l.current&&(l.current=!0,r instanceof Array?d(r):Tt(r,M,F).then((function(e){return Promise.all(e)})).then((function(e){e.reduce((function(e,t){return e+t.data.byteLength}),0)>j?a(new xt(h.FILE_SIZE)):d(e)})).catch((function(e){a(e)})).then((function(){l.current=!1})))}),[r]),(0,xe.useEffect)((function(){m===O.SUCCESS&&v&&(n(v),t(I.SUCCESS)),m!==O.FAILED||y||a(new xt(h.INCORRECT_FILE))}),[m,v,y]),(0,xe.useEffect)((function(){g&&!s.current&&(u({action:N.SERVICE_INITIALIZED,data:null}),s.current=!0)}),[g]),(0,xe.useEffect)((function(){y&&a(y)}),[y]),(0,ze.jsx)(Tn,{title:b("processing")})};function jn(e){return jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jn(e)}function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Un=function(e){return function(t){var n=t.locale,r=t.translations,o=t.dictionaries,i=o;if(r)for(var a in r)if(o.hasOwnProperty(a))i=Ce(i,zn({},a,r[a]));else{var l=Ce(o.en,r[a]);i=Ce(i,zn({},a,l))}var s=(window.navigator?window.navigator.language:"en").substring(0,2).toLowerCase(),u=i.hasOwnProperty(s)?s:"en",c=n&&i.hasOwnProperty(n)?n:u,f=b.includes(c)?y.Rtl:y.Ltr,d=Fn(Fn({},t),{},{direction:f});return(0,ze.jsx)(We.LocalizationProvider,{disableCache:!0,locale:c,translations:i,children:(0,ze.jsx)(e,Fn({},d))})}};function Bn(e){return Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bn(e)}function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){Vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Bn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Bn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Bn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wn=function(e){return function(t){return(0,ze.jsx)(an.Provider,{value:t,children:(0,ze.jsx)(e,Gn({},t))})}};function Zn(e){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(e)}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Zn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Zn(i)?i:String(i)),r)}var o,i}function Yn(e,t){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yn(e,t)}function qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qn(e);if(t){var o=Qn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Zn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Qn(e){return Qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qn(e)}var Xn=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yn(e,t)}(i,e);var t,n,r,o=qn(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).supportedBrowserVersions=e.supportedBrowserVersions,t.onError=e.onError,t}return t=i,(n=[{key:"componentDidCatch",value:function(e){this.onError(new xt(h.UNKNOWN_ERROR,e))}},{key:"componentDidMount",value:function(){if(this.supportedBrowserVersions){var e=null;Oe.tq&&this.supportedBrowserVersions[Oe.BF]&&(e=this.supportedBrowserVersions[Oe.BF]),Oe.nI&&(e=this.supportedBrowserVersions.desktop),e&&e[Oe.KC]&&Oe.x_<e[Oe.KC]&&this.onError(new xt(h.NOT_SUPPORTED))}}},{key:"render",value:function(){return this.props.children}}])&&Kn(t.prototype,n),r&&Kn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(xe.Component);function $n(e){return $n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$n(e)}function Jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return er(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return er(e,t)}(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 er(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tr=function(e){return e.portrait="portrait",e.landscape="landscape",e}(tr||{});function nr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rr(e,t)}(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 rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var or=ce(Wn,Un)((function(e){var t=e.direction,n=ln(),r=n.onEvent,o=n.internalScenario,i=n.startScreen,a=n.multiple,l=n.license,s=n.copyright,u=n.closeButton,f=(0,We.useLocalize)().translate,d=function(){var e=Jn((0,xe.useState)((function(){var e=window.matchMedia("(orientation: landscape)").matches?tr.landscape:tr.portrait;return{isPortrait:e===tr.portrait,isLandscape:e===tr.landscape,orientation:e}})),2),t=e[0],n=e[1],r=(0,xe.useCallback)((function(){var e=window.matchMedia("(orientation: landscape)").matches?tr.landscape:tr.portrait,r={isPortrait:e===tr.portrait,isLandscape:e===tr.landscape,orientation:e};t.orientation!==r.orientation&&n(r)}),[t.orientation]);return(0,xe.useEffect)((function(){return void 0!==("undefined"==typeof window?"undefined":$n(window))&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("load",r,!1),window.removeEventListener("resize",r,!1)}}),[r]),t}().orientation,p=nr((0,xe.useState)(null),2),h=p[0],m=p[1],v=nr((0,xe.useState)(null),2),y=v[0],g=v[1],b=nr((0,xe.useState)(i?I.CHOOSE_INPUT_SOURCE:I.CAMERA_PROCESSING),2),w=b[0],_=b[1],S=(0,xe.useCallback)((function(){r({action:N.PRESS_CAMERA_BUTTON,data:null}),r({action:N.CAMERA_PROCESS_STARTED,data:null}),_(I.CAMERA_PROCESSING)}),[]),E=(0,xe.useCallback)((function(){r({action:N.CLOSE,data:null})}),[]),C=(0,xe.useCallback)((function(e){g(e),r({action:N.FILE_PROCESS_STARTED,data:null}),_(I.FILE_PROCESSING)}),[]),k=(0,xe.useCallback)((function(e){var t=z[e.type]||I.UNKNOWN_ERROR;_(t),r({action:N.PROCESS_FINISHED,data:{status:c.ERROR,reason:e.type}})}),[]),O=(0,xe.useCallback)((function(){m(null),g(null),_(i?I.CHOOSE_INPUT_SOURCE:I.CAMERA_PROCESSING)}),[i]),x=(0,xe.useCallback)((function(){r({action:N.PRESS_RETRY_BUTTON,data:null}),O()}),[]);return(0,xe.useEffect)((function(){Oe.tq&&w===I.CAMERA_PROCESSING&&O()}),[d]),(0,xe.useEffect)((function(){if(h&&(w===I.SUCCESS||w===I.TIMEOUT)){var e=w===I.SUCCESS?c.OK:c.TIMEOUT;r({action:N.PROCESS_FINISHED,data:{status:e,response:h}})}}),[w,h]),(0,ze.jsx)(xe.StrictMode,{children:(0,ze.jsx)(Xn,{onError:k,supportedBrowserVersions:B,children:(0,ze.jsx)(dn,{completionStatus:w,onClose:E,copyright:s,direction:t,closeButton:u,children:w===I.CHOOSE_INPUT_SOURCE?(0,ze.jsx)(wn,{onStart:S,onFileImageSet:C,title:f("scanIDInBrowser"),subtitle:f("useYourDeviceCamera"),multiple:a}):w===I.CAMERA_PROCESSING?(0,ze.jsx)(cn,{onResponse:m,onStatusChange:_,onFileImageSet:C,onError:k}):w===I.FILE_PROCESSING?(0,ze.jsx)(Dn,{onStatusChange:_,onResponse:m,images:y,scenario:o,license:l,onError:k}):w===I.SUCCESS?(0,ze.jsx)(gn,{type:"verified",title:f("success"),subtitle:f("processingFinished")}):w===I.FILE_SIZE_ERROR?(0,ze.jsx)(gn,{onReset:x,type:"error",title:f("largeFile"),subtitle:f("selectSmallerFile")}):w===I.WASM_DEFAULT_ERROR||w===I.NOT_SUPPORTED_ERROR?(0,ze.jsx)(gn,{type:"error",title:f("versionNotSupported"),subtitle:f("updateBrowser")}):w===I.WASM_LICENSE_ERROR?(0,ze.jsx)(gn,{type:"error",title:f("licenseError"),subtitle:f("licenseExpired")}):w===I.INCORRECT_FILE_ERROR?(0,ze.jsx)(gn,{onReset:x,type:"error",title:f("fileCorrupt"),subtitle:f("selectAnotherFile")}):w===I.TIMEOUT?(0,ze.jsx)(gn,{onReset:x,type:"error",title:f("timeout"),subtitle:f("processingFinished")}):(0,ze.jsx)(gn,{onReset:x,type:"error",title:f("error"),subtitle:f("somethingWentWrong")})})})})})),ir=JSON.parse('{"placeDocumentIntoFrame":"Поместите документ в рамку","holdDocumentStraight":"Держите документ прямо","glaresOnDocument":"Избегайте бликов на документе","preparingCamera":"Подготовка камеры...","processing":"Обработка...","moveCloser":"Подвиньтесь ближе","timeout":"Тайм-аут","somethingWentWrong":"Что-то пошло не так","preparingService":"Подготовка сервиса...","success":"Готово!","cameraUnavailable":"Камера недоступна!","allowAccessToCamera":"Разрешите доступ к камере и перезагрузите эту страницу для продолжения.","error":"Ошибка!","tryAgain":"Повторите попытку","noCameraAvailable":"Отсутствует камера","photoCapturedSuccessfully":"Снимок успешно получен.","scanIDInBrowser":"Отсканируйте ID-документ в вашем браузере","useYourDeviceCamera":"Используйте камеру вашего устройства для сканирования документа или выберите фотографию документа из галереи","fromCamera":"С камеры","fromGallery":"Из галереи","cameraConnection":"Убедитесь, что камера подключена правильно.","documentProcessing":"Обработка документа...","positionDocumentCenter":"Расположите документ в центре","flipDocument":"Переверните документ","processingFinished":"Обработка документа завершена.","uploadPhoto":"Загрузите фото","useCameraOrGallery":"Используйте камеру вашего устройства или выберите фотографию из галереи","detectingDocument":"Поиск документа...","versionNotSupported":"Версия вашего браузера не поддерживается","updateBrowser":"Обновите версию вашего браузера","largeFile":"Размер загружаемого файла слишком велик","selectSmallerFile":"Выберите файл меньшего размера","licenseError":"Ошибка лицензии","licenseExpired":"Лицензия не найдена или недействительна","fileCorrupt":"Файл поврежден или не поддерживается","selectAnotherFile":"Выберите другой файл","noFocus":"Нет фокусировки камеры","incorrectCameraId":"Камера с заданным ID не найдена.","checkCameraId":"Проверьте корректность заданного ID камеры."}'),ar=JSON.parse('{"placeDocumentIntoFrame":"Fit the document into the frame","holdDocumentStraight":"Hold the document straight","glaresOnDocument":"Avoid glare on the document","preparingCamera":"Preparing the camera...","processing":"Processing...","moveCloser":"Move closer","timeout":"Timeout","somethingWentWrong":"Something went wrong","preparingService":"Preparing the service...","success":"Success!","cameraUnavailable":"Camera unavailable!","allowAccessToCamera":"Allow access to the camera and reload this page to continue.","error":"Error!","tryAgain":"Try again","noCameraAvailable":"No camera available","photoCapturedSuccessfully":"The photo is captured successfully.","scanIDInBrowser":"Scan an ID in your browser","useYourDeviceCamera":"Use your device camera to scan a document or select a photo of the document from the gallery","fromCamera":"From сamera","fromGallery":"From gallery","cameraConnection":"Make sure the camera is connected correctly.","documentProcessing":"Document processing...","positionDocumentCenter":"Position the document in the center","flipDocument":"Flip the document","processingFinished":"Processing finished.","uploadPhoto":"Upload a photo","useCameraOrGallery":"Use your device camera or select a photo from the gallery","detectingDocument":"Detecting a document...","versionNotSupported":"Your browser version is not supported","updateBrowser":"Update your browser version","largeFile":"This file is too large to be uploaded","selectSmallerFile":"Please select a smaller file","licenseError":"A license error has occurred","licenseExpired":"The license cannot be found or has expired","fileCorrupt":"This file is corrupt or not supported","selectAnotherFile":"Please select another file","noFocus":"No camera focus","incorrectCameraId":"No camera with the specified ID found.","checkCameraId":"Check if the specified camera ID is correct."}'),lr=JSON.parse('{"placeDocumentIntoFrame":"Passen Sie das Dokument in den Rahmen ein","holdDocumentStraight":"Halten Sie das Dokument gerade","glaresOnDocument":"Vermeiden Sie Blendungen auf dem Dokument","preparingCamera":"Kamera wird vorbereitet...","processing":"Bearbeitung...","moveCloser":"Näher an die Kamera","timeout":"Timeout","somethingWentWrong":"Etwas ist schief gelaufen","preparingService":"Service wird vorbereitet...","success":"Erfolgreich!","cameraUnavailable":"Kamera nicht verfügbar!","allowAccessToCamera":"Erlauben Sie den Zugriff auf die Kamera und laden Sie diese Seite neu, um fortzufahren.","error":"Fehler!","tryAgain":"Erneut versuchen","noCameraAvailable":"Keine Kamera vorhanden","photoCapturedSuccessfully":"Das Foto wurde erfolgreich aufgenommen.","scanIDInBrowser":"Scannen Sie eine ID in Ihrem Browser","useYourDeviceCamera":"Verwenden Sie die Kamera Ihres Geräts, um ein Dokument zu scannen, oder wählen Sie ein Foto des Dokuments in der Galerie aus.","fromCamera":"Von Kamera","fromGallery":"Von Gallerie","cameraConnection":"Stellen Sie sicher, dass die Kamera richtig angeschlossen ist.","documentProcessing":"Dokument in Bearbeitung...","positionDocumentCenter":"Positionieren Sie das Dokument in der Mitte","flipDocument":"Dokument drehen","processingFinished":"Bearbeitung abgeschlossen.","uploadPhoto":"Foto hochladen","useCameraOrGallery":"Verwenden Sie die Kamera Ihres Geräts oder wählen Sie ein Foto aus der Galerie aus","detectingDocument":"Suche nach Dokument...","versionNotSupported":"Ihre Browserversion wird nicht unterstützt","updateBrowser":"Aktualisieren Sie Ihre Browserversion","largeFile":"Diese Datei ist zu groß, um hochgeladen zu werden","selectSmallerFile":"Bitte wählen Sie eine kleinere Datei","licenseError":"Es ist ein Lizenzfehler aufgetreten","licenseExpired":"Die Lizenz kann nicht gefunden werden oder ist abgelaufen","fileCorrupt":"Diese Datei ist beschädigt oder wird nicht unterstützt","selectAnotherFile":"Bitte wählen Sie eine andere Datei","noFocus":"Kein Kamerafokus","incorrectCameraId":"Keine Kamera mit angegebener ID gefunden","checkCameraId":"Prüfen Sie, ob die angegebene Kamera-ID korrekt ist"}'),sr=JSON.parse('{"placeDocumentIntoFrame":"Dopasuj dokument do ramki","holdDocumentStraight":"Trzymaj urządzenie prosto","glaresOnDocument":"Unikaj oślepiania dokumentu","preparingCamera":"Przygotowywanie kamery...","processing":"Przetwarzanie...","moveCloser":"Przysuń się bliżej","timeout":"Limit czasu","somethingWentWrong":"Coś poszło nie tak","preparingService":"Przygotowanie serwisu...","success":"Gotowe!","cameraUnavailable":"Aparat jest niedostępny!","allowAccessToCamera":"Zezwól na dostęp do aparatu i odśwież tę stronę, aby kontynuować.","error":"Błąd!","tryAgain":"Powtórz próbę","noCameraAvailable":"Brak aparatu","photoCapturedSuccessfully":"Zdjęcie wykonano pomyślnie.","scanIDInBrowser":"Zeskanuj dokument ID w swojej wyszukiwarce","useYourDeviceCamera":"Użyj aparatu w swoim urządzeniu do skanowania dokumentu albo wybierz zdjęcie dokumentu z galerii","fromCamera":"Z aparatu","fromGallery":"Z galerii","cameraConnection":"Upewnij się, że aparat jest podłączony prawidłowo.","documentProcessing":"Przetwarzanie dokumentu...","positionDocumentCenter":"Umieść dokument pośrodku","flipDocument":"Odwróć dokument","processingFinished":"Przetwarzanie dokumentu zakończone.","uploadPhoto":"Załaduj zdjęcie","useCameraOrGallery":"Użyj aparatu w swoim urządzeniu albo wybierz zdjęcie z galerii","detectingDocument":"Wyszukiwanie dokumentu...","versionNotSupported":"Twoja wersja przeglądarki nie jest obsługiwana","updateBrowser":"Zaktualizuj wersję przeglądarki","largeFile":"Rozmiar ładowanego pliku jest zbyt duży","selectSmallerFile":"Wybierz plik o mniejszym rozmiarze","licenseError":"Błąd licencji","licenseExpired":"Licencja nie została znaleziona lub jest nieważna","fileCorrupt":"Plik jest uszkodzony albo nie jest obsługiwany","selectAnotherFile":"Wybierz inny plik","noFocus":"Brak ostrości","incorrectCameraId":"Nie znaleziono kamery o podanym ID","checkCameraId":"Sprawdź, czy podane ID kamery jest prawidłowe"}'),ur=JSON.parse('{"placeDocumentIntoFrame":"Adatta il documento alla cornice","holdDocumentStraight":"Tieni il documento dritto","glaresOnDocument":"Evita il riflesso sul documento","preparingCamera":"Preparazione della fotocamera in corso...","processing":"Elaborazione...","moveCloser":"Avvicinati","timeout":"Timeout","somethingWentWrong":"Qualcosa è andato storto","preparingService":"Preparazione del servizio...","success":"L\'operazione è andata a buon fine!","cameraUnavailable":"Fotocamera non disponibile!","allowAccessToCamera":"Consenti l\'accesso alla fotocamera e ricarica questa pagina per continuare.","error":"Errore!","tryAgain":"Prova di nuovo","noCameraAvailable":"Non c\'è la fotocamera","photoCapturedSuccessfully":"La foto è stata scattata con successo.","scanIDInBrowser":"Scansiona un ID nel browser","useYourDeviceCamera":"Usa la fotocamera del tuo dispositivo per scansionare un documento o seleziona una foto del documento dalla galleria","fromCamera":"Dalla fotocamera","fromGallery":"Dalla galleria","cameraConnection":"Assicurati che la fotocamera sia collegata correttamente.","documentProcessing":"Elaborazione dei documenti in corso...","positionDocumentCenter":"Posiziona il documento al centro","flipDocument":"Capovolgi il documento","processingFinished":"Elaborazione finita.","uploadPhoto":"Carica una foto","useCameraOrGallery":"Usa la fotocamera del tuo dispositivo o seleziona una foto dalla galleria","detectingDocument":"Rilevamento di un documento...","versionNotSupported":"La versione del tuo browser non è supportata","updateBrowser":"Aggiorna la versione del browser","largeFile":"Questo file è troppo grande per essere caricato","selectSmallerFile":"Seleziona un file più piccolo","licenseError":"Si è verificato un errore di licenza","licenseExpired":"La licenza non è stata trovata o è scaduta","fileCorrupt":"Questo file è danneggiato o non supportato","selectAnotherFile":"Seleziona un altro file","noFocus":"Nessuna messa a fuoco della fotocamera","incorrectCameraId":"Nessuna telecamera trovata con l\'ID specificato","checkCameraId":"Verifica se l\'ID specificato della telecamera è corretto"}'),cr=JSON.parse('{"placeDocumentIntoFrame":"Igazítsa a dokumentumot a keretbe","holdDocumentStraight":"A készüléket tartsa mozdulatlanul","glaresOnDocument":"Kerülje a fény megcsillanását a dokumentumon","preparingCamera":"A kamera előkészítése...","processing":"Feldolgozás...","moveCloser":"Vigye közelebb","timeout":"Időkorlát","somethingWentWrong":"Valami félresikerült","preparingService":"Szolgáltatás előkészítése…","success":"Siker!","cameraUnavailable":"Nem érhető el kamera!","allowAccessToCamera":"Hozzáférés engedélyezése a kamerához és az oldal újratöltése a folytatáshoz.","error":"Hiba!","tryAgain":"Próbálja újra","noCameraAvailable":"Nincs kamera","photoCapturedSuccessfully":"Sikeresen elkészült a fénykép.","scanIDInBrowser":"Olvasson be személyazonosító okiratot böngészőjében","useYourDeviceCamera":"Készüléke kamerája segítségével olvassa be az okiratot vagy válassza ki az okirat képét a galériából","fromCamera":"A kameráról","fromGallery":"A galériából","cameraConnection":"Bizonyosodjon meg arról, hogy megfelelően csatlakozik a kamera.","documentProcessing":"Okirat feldolgozása...","positionDocumentCenter":"Helyezze az okiratot középre","flipDocument":"Fordítsa meg az okiratot","processingFinished":"A feldolgozás befejeződött.","uploadPhoto":"Fénykép feltöltése","useCameraOrGallery":"Használja készüléke kameráját vagy válasszon egy fényképet a galériából","detectingDocument":"Okirat észlelése...","versionNotSupported":"Nem támogatott a böngésző verziója","updateBrowser":"A böngésző frissítse szükséges","largeFile":"A feltöltendő fájl túl nagy","selectSmallerFile":"Kérjük, válasszon kisebb fájlt","licenseError":"Engedélyezési hiba merült fel","licenseExpired":"Nem található vagy lejárt az engedély","fileCorrupt":"Ez a fájl sérült vagy nem támogatott","selectAnotherFile":"Kérjük, válasszon másik fájlt","noFocus":"Nem fókuszál a kamera","incorrectCameraId":"Nem található ilyen azonosítójú kamera","checkCameraId":"Ellenőrizze, hogy helyes-e a kamera azonosítója"}'),fr=JSON.parse('{"placeDocumentIntoFrame":"对准证件使其在框中","holdDocumentStraight":"保持证件直接","glaresOnDocument":"避免证件的反射过强的光","preparingCamera":"正在准备相机","processing":"处理中...","moveCloser":"靠近点","timeout":"超时","somethingWentWrong":"出了问题","preparingService":"正在准备服务...","success":"成功!","cameraUnavailable":"相机不可用!","allowAccessToCamera":"允许访问相机并重新加载此页面以继续。","error":"错误!","tryAgain":"再试一次","noCameraAvailable":"没有相机","photoCapturedSuccessfully":"照片拍摄成功。","scanIDInBrowser":"在浏览器中扫描身份证件","useYourDeviceCamera":"使用您的设备相机扫描证件或从图库中选择证件的照片","fromCamera":"从相机","fromGallery":"来自手机图库","cameraConnection":"确保相机连接正确。","documentProcessing":"证件处理...","positionDocumentCenter":"将证件置于中心","flipDocument":"翻转证件","processingFinished":"处理完毕。","uploadPhoto":"上传一张照片","useCameraOrGallery":"使用您的设备相机或从图库中选择一张照片","detectingDocument":"检测证件...","versionNotSupported":"不支持您的浏览器版本","updateBrowser":"更新您的浏览器版本","largeFile":"该文件太大,无法上传","selectSmallerFile":"请选择较小的文件","licenseError":"发生许可证错误","licenseExpired":"无法找到许可证或已过期","fileCorrupt":"该文件已损坏或不被支持","selectAnotherFile":"请选择另一个文件","noFocus":"没有摄像头对焦","incorrectCameraId":"未找到具有指定 ID 的像机","checkCameraId":"检查指定的相机ID是否正确"}'),dr=JSON.parse('{"placeDocumentIntoFrame":"Vložte dokument do rámu","holdDocumentStraight":"Držte dokument rovno","glaresOnDocument":"Vyhnite sa odleskom na dokumente","preparingCamera":"Príprava fotoaparátu...","processing":"Spracováva sa...","moveCloser":"Posuňte bližšie","timeout":"Čas vypršal","somethingWentWrong":"Niečo sa pokazilo","preparingService":"Pripravuje sa služba...","success":"Úspech!","cameraUnavailable":"Fotoaparát je nedostupný!","allowAccessToCamera":"Ak chcete pokračovať, povoľte prístup k fotoaparátu a znova načítajte túto stránku.","error":"Chyba!","tryAgain":"Skúste to znova","noCameraAvailable":"Žiadny fotoaparát","photoCapturedSuccessfully":"Fotografia je úspešne nasnímaná.","scanIDInBrowser":"Naskenujte ID v prehliadači","useYourDeviceCamera":"Pomocou fotoaparátu zariadenia naskenujte dokument alebo vyberte fotografiu dokumentu z galérie","fromCamera":"Z fotoaparátu","fromGallery":"Z galérie","cameraConnection":"Uistite sa, že je fotoaparát správne pripojený.","documentProcessing":"Spracovanie dokumentu...","positionDocumentCenter":"Umiestnite dokument do stredu","flipDocument":"Prevrátiť dokument","processingFinished":"Spracovanie dokončené.","uploadPhoto":"Odovzdať fotografiu","useCameraOrGallery":"Použite fotoaparát zariadenia alebo vyberte fotografiu z galérie","detectingDocument":"Zisťuje sa dokument...","versionNotSupported":"Verzia vášho prehliadača nie je podporovaná","updateBrowser":"Aktualizujte verziu prehliadača","largeFile":"Súbor je príliš veľký na odovzdávanie","selectSmallerFile":"Vyberte menší súbor","licenseError":"Vyskytla sa chyba licencie","licenseExpired":"Licenciu nie je možné nájsť, prípadne už nie je platná","fileCorrupt":"Súbor je poškodený, prípadne nie je podporovaný","selectAnotherFile":"Vyberte iný súbor","noFocus":"Žiadne zaostrenie fotoaparátu","incorrectCameraId":"Nenašiel sa žiadny fotoaparát s určeným ID","checkCameraId":"Skontrolujte, či je určené ID fotoaparátu správne"}'),pr=JSON.parse('{"placeDocumentIntoFrame":"Помістіть документ в рамку","holdDocumentStraight":"Тримайте документ прямо","glaresOnDocument":"Уникайте відблисків на документі","preparingCamera":"Підготовка камери...","processing":"Обробка...","moveCloser":"Підсуньтеся ближче","timeout":"Тайм-аут","somethingWentWrong":"Щось пішло не так","preparingService":"Підготовка сервісу...","success":"Готово!","cameraUnavailable":"Камера недоступна!","allowAccessToCamera":"Дозвольте доступ до камери і перезавантажте цю сторінку, щоб продовжити.","error":"Помилка!","tryAgain":"Спробуйте ще раз","noCameraAvailable":"Камера відсутня","photoCapturedSuccessfully":"Знімок успішно отримано.","scanIDInBrowser":"Відскануйте ID-документ у вашому браузері","useYourDeviceCamera":"Використайте камеру вашого пристрою для сканування документа або виберіть фотографію документа з галереї","fromCamera":"З камери","fromGallery":"З галереї","cameraConnection":"Переконайтеся, що камера підключена правильно.","documentProcessing":"Обробка документа...","positionDocumentCenter":"Розташуйте документ у центрі","flipDocument":"Переверніть документ","processingFinished":"Обробку документа завершено.","uploadPhoto":"Завантажте фото","useCameraOrGallery":"Використайте камеру вашого пристрою або виберіть фотографію з галереї","detectingDocument":"Пошук документа...","versionNotSupported":"Версія вашого браузера не підтримується","updateBrowser":"Оновіть версію вашого браузера","largeFile":"Розмір файлу, що завантажується, занадто великий","selectSmallerFile":"Виберіть файл менший за розміром","licenseError":"Помилка ліцензії","licenseExpired":"Ліцензію не знайдено або вона не є дійсною","fileCorrupt":"Файл пошкоджено або він не підтримується","selectAnotherFile":"Виберіть інший файл","noFocus":"Немає фокусування камери","incorrectCameraId":"Камеру з заданим ID не знайдено","checkCameraId":"Перевірте правильність заданого ID камери"}'),hr=JSON.parse('{"placeDocumentIntoFrame":"Ajuster le document dans le cadre","holdDocumentStraight":"Garder le document droit","glaresOnDocument":"Eviter les reflets sur le document","preparingCamera":"Caméra en préparation...","processing":"Analyse...","moveCloser":"Rapprochez","timeout":"Délai d\'expiration","somethingWentWrong":"Anomalie","preparingService":"Préparation...","success":"Réussi!","cameraUnavailable":"Caméra indisponible!","allowAccessToCamera":"Autoriser l\'accès à la caméra, et recharger cette page pour continuer.","error":"Erreur!","tryAgain":"Réessayer","noCameraAvailable":"Caméra introuvable","photoCapturedSuccessfully":"Photo correcte.","scanIDInBrowser":"Scannez une pièce d\'identité","useYourDeviceCamera":"Utilisez la caméra de votre mobile pour scanner un document, ou sélectionnez une photo du document dans la galerie","fromCamera":"Depuis la сaméra","fromGallery":"Depuis la galerie","cameraConnection":"Assurez-vous que la caméra est correctement connectée.","documentProcessing":"Analyse du document...","positionDocumentCenter":"Positionner le document au centre","flipDocument":"Inverser le document","processingFinished":"Terminé.","uploadPhoto":"Envoyez une photo","useCameraOrGallery":"Utilisez la caméra de votre appareil, ou sélectionnez une photo dans la galerie","detectingDocument":"Détection d\'un document...","versionNotSupported":"Version de navigateur non compatible","updateBrowser":"Veuillez mettre à jour votre navigateur","largeFile":"Fichier trop volumineux pour être transféré","selectSmallerFile":"Veuillez sélectionner un fichier moins volumineux","licenseError":"Erreur de licence","licenseExpired":"License introuvable ou expirée","fileCorrupt":"Fichier corrompu ou non supporté","selectAnotherFile":"Veuillez sélectionner un autre fichier","noFocus":"Caméra non focalisée","incorrectCameraId":"Aucune caméra ayant l\'ID spécifié","checkCameraId":"Vérifier que l\'ID de caméra spécifié est correct"}'),mr=JSON.parse('{"placeDocumentIntoFrame":"Encaje el documento en el marco","holdDocumentStraight":"Sostenga el documento recto","glaresOnDocument":"Evite el brillo en el documento","preparingCamera":"Preparando la cámara...","processing":"Procesamiento...","moveCloser":"Acérquese","timeout":"Tiempo de espera","somethingWentWrong":"Algo salió mal","preparingService":"Preparando el servicio...","success":"¡Listo!","cameraUnavailable":"¡Cámara no disponible!","allowAccessToCamera":"Permita el acceso a la cámara y recargue esta página para continuar.","error":"¡Error!","tryAgain":"Inténtelo de nuevo","noCameraAvailable":"No hay cámara disponible","photoCapturedSuccessfully":"La foto se ha capturado con éxito.","scanIDInBrowser":"Escanee un documento de identidad en su navegador","useYourDeviceCamera":"Utilice la cámara de su dispositivo para escanear un documento o seleccione una foto del documento de la galería","fromCamera":"Desde la cámara","fromGallery":"Desde la galería","cameraConnection":"Asegúrese de que la cámara está conectada correctamente.","documentProcessing":"Procesando el documento...","positionDocumentCenter":"Coloque el documento en el centro","flipDocument":"Déle la vuelta al documento","processingFinished":"Procesamiento del documento finalizado.","uploadPhoto":"Suba una foto","useCameraOrGallery":"Utilice la cámara de su dispositivo o seleccione una foto de la galería","detectingDocument":"Detectando un documento...","versionNotSupported":"La versión de su navegador no es compatible","updateBrowser":"Actualice la versión de su navegador","largeFile":"Este archivo es demasiado grande para cargarlo","selectSmallerFile":"Seleccione un archivo de menor tamaño","licenseError":"Se ha producido un error de licencia","licenseExpired":"La licencia no se encuentra o ha expirado","fileCorrupt":"Este archivo está dañado o no es compatible","selectAnotherFile":"Por favor, seleccione otro archivo","noFocus":"No hay enfoque de la cámara","incorrectCameraId":"La cámara con el identificador especificado no encontrada","checkCameraId":"Compruebe si el identificador especificado de la cámara es correcto"}'),vr=JSON.parse('{"placeDocumentIntoFrame":"Encaixe o documento no quadro","holdDocumentStraight":"Mantenha o dispositio reto","glaresOnDocument":"Evite luz sobre o documento","preparingCamera":"Preparando o documento....","processing":"A processar...","moveCloser":"Aproxime-se","timeout":"Tempo esgotado","somethingWentWrong":"Algo correu mal","preparingService":"Preparando o serviço...","success":"Sucesso!","cameraUnavailable":"Câmara indisponível!","allowAccessToCamera":"Permita o acesso à câmara e volte a carregar esta página para continuar.","error":"Erro!","tryAgain":"Tente outra vez","noCameraAvailable":"Não há câmara","photoCapturedSuccessfully":"A fotografia é capturada com sucesso.","scanIDInBrowser":"Digitalize um ID no seu navegador","useYourDeviceCamera":"Utilize a câmara do seu dispositivo para digitalizar um documento ou selecionar uma fotografia do documento na galeria","fromCamera":"Da câmara","fromGallery":"Da galeria","cameraConnection":"Certifique-se de que a câmara está ligada corretamente.","documentProcessing":"Procesar o documento...","positionDocumentCenter":"Posicione o documento no centro","flipDocument":"Vire o documento","processingFinished":"Processamento terminado.","uploadPhoto":"Carregue uma foto","useCameraOrGallery":"Utilize a sua máquina fotográfica ou selecione uma fotografia da galeria","detectingDocument":"Detectando um documento...","versionNotSupported":"A versão do seu navegador não é compatível","updateBrowser":"Atualize a versão do seu navegador","largeFile":"Este arquivo é muito grande para ser carregado","selectSmallerFile":"Selecione um arquivo menor","licenseError":"Ocorreu um erro de licença","licenseExpired":"A licença não pode ser encontrada ou expirou","fileCorrupt":"Este arquivo está corrompido ou não é compatível","selectAnotherFile":"Selecione outro arquivo","noFocus":"Sem foco da câmara","incorrectCameraId":"Não foi encontrada nenhuma câmara com o ID especificado","checkCameraId":"Verifique se a ID da câmara especificada está correta"}'),yr=JSON.parse('{"placeDocumentIntoFrame":"تأطير الوثيقة","holdDocumentStraight":"حافظ على المستند مستقيماً","glaresOnDocument":"تجنب الوهج على الوثيقة","preparingCamera":"تهيئة الكاميرا...","processing":"جاري المعالجة...","moveCloser":"اقترب أكثر","timeout":"مدة الانتظار","somethingWentWrong":"حدث خطأ ما","preparingService":"جاري تحضير الخدمة...","success":"تم!","cameraUnavailable":"الكاميرا غير متاحة!","allowAccessToCamera":"اسمح بالوصول إلى الكاميرا وأعد تحميل هذه الصفحة للمتابعة.","error":"خطأ!","tryAgain":"حاول مرة أخرى","noCameraAvailable":"تعذّر العثور على الكاميرا","photoCapturedSuccessfully":"تم التقاط الصورة بنجاح.","scanIDInBrowser":"امسح المعرف الشخصي (ID) في متصفحك","useYourDeviceCamera":"استخدم كاميرا جهازك لمسح مستند ضوئيًا أو اختر صورةً لمستند من معرض الصور لديك","fromCamera":"من الكاميرا","fromGallery":"من معرض الصور","cameraConnection":"تأكد من أن الكاميرا متصلة بشكل صحيح.","documentProcessing":"جاري معالجة المستند...","positionDocumentCenter":"ضع المستند في الوسط","flipDocument":"اقلب المستند","processingFinished":"انتهت عملية المعالجة.","uploadPhoto":"حمّل الصورة","useCameraOrGallery":"استخدم كاميرا جهازك أو اختر صورة من معرض الصور","detectingDocument":"جاري التعّرف على الوثيقة...","versionNotSupported":"إصدار المتصفح الخاص بك غير مدعوم","updateBrowser":"يرجى تحديث إصدار متصفحك","largeFile":"هذا الملف كبير جدًا بحيث لا يمكن تحميله","selectSmallerFile":"يرجى اختيار ملف أصغر حجمًا","licenseError":"حدث خطأ في الرخصة","licenseExpired":"تعذّر العثور على الرخصة أو أن صلاحيتها منتهية","fileCorrupt":"هذا الملف تالف أو غير مدعوم","selectAnotherFile":"يرجى اختيار ملف آخر","noFocus":"لا يوجد تركيز للكاميرا","incorrectCameraId":"تعذّر العثور على الكاميرا ذات المعرّف المحدد","checkCameraId":"تحقق مما إذا كان معرّف الكاميرا المحدد صحيحًا"}'),gr=JSON.parse('{"placeDocumentIntoFrame":"Pas het document in het kader","holdDocumentStraight":"Houd het document recht","glaresOnDocument":"Vermijd glans op het document","preparingCamera":"De camera aan het voorbereiden...","processing":"Bezig met verwerken...","moveCloser":"Kom dichter","timeout":"Time-out","somethingWentWrong":"Er ging iets fout","preparingService":"Voorbereiding van de dienst...","success":"Succes!","cameraUnavailable":"Camera onbeschikbaar!","allowAccessToCamera":"Sta toegang to de camera toe en laad de pagina opnieuw om door te gaan.","error":"Fout!","tryAgain":"Probeer opnieuw","noCameraAvailable":"Er is geen camera","photoCapturedSuccessfully":"De foto is succesvol gemaakt.","scanIDInBrowser":"Scan een ID in uw browser","useYourDeviceCamera":"Gebruik de camera van uw toestel om een document te scannen of selecteer een foto van het document van de galerij","fromCamera":"Van camera","fromGallery":"Van galerij","cameraConnection":"Zorg ervoor dat de camera correct is aangesloten.","documentProcessing":"Documentenverwerking...","positionDocumentCenter":"Plaats het document in het midden","flipDocument":"Draai het document om","processingFinished":"Verwerking klaar.","uploadPhoto":"Upload een foto","useCameraOrGallery":"Gebruik de camera van uw toestel of selecteer een foto uit de galerij","detectingDocument":"Bezig met het zoeken naar een document...","versionNotSupported":"Uw browserversie wordt niet ondersteund","updateBrowser":"Update uw browserversie","largeFile":"Dit bestand is te groot om geüpload te worden","selectSmallerFile":"Kies een kleiner bestand","licenseError":"Er is een licentiefout opgetreden","licenseExpired":"De licentie kan niet gevonden worden of is verlopen","fileCorrupt":"Dit bestand is corrupt of wordt niet ondersteund","selectAnotherFile":"Kies een ander bestand","noFocus":"Geen camera-focus","incorrectCameraId":"Geen camera met de opgegeven ID gevonden","checkCameraId":"Controleren of de opgegeven camera-ID juist is"}'),br=JSON.parse('{"placeDocumentIntoFrame":"Sesuaikan dokumen dengan bingkainya","holdDocumentStraight":"Tahan dokumen tatap lurus","glaresOnDocument":"Hindari pantulan cahaya pada dokumen","preparingCamera":"Menyiapkan kamera...","processing":"Memproses...","moveCloser":"Geser mendekat","timeout":"Batas waktu","somethingWentWrong":"Terjadi kesalahan","preparingService":"Menyiapkan layanan","success":"Berhasil!","cameraUnavailable":"Kamera tidak tersedia!","allowAccessToCamera":"Izinkan akses ke kamera dan muat ulang halaman ini untuk melanjutkan.","error":"Kesalahan!","tryAgain":"Coba lagi","noCameraAvailable":"Tidak ada kamera","photoCapturedSuccessfully":"Foto berhasil ditangkap.","scanIDInBrowser":"Pindai ID di peramban Anda","useYourDeviceCamera":"Gunakan kamera Anda untuk memindai dokumen atau memilih foto dokumen dari galeri","fromCamera":"Dari kamera","fromGallery":"Dari galeri","cameraConnection":"Pastikan kamera terhubung dengan benra.","documentProcessing":"Pemrosesan dokumen...","positionDocumentCenter":"Posisikan dokumen di tengah","flipDocument":"Putar balik dokumen","processingFinished":"Pemrosesan selesai.","uploadPhoto":"Unggah foto","useCameraOrGallery":"Gunakan kamera Anda atau pilih foto dari galeri","detectingDocument":"Mendeteksi dokumen...","versionNotSupported":"Versi browser Anda tidak didukung","updateBrowser":"Perbarui versi browser Anda","largeFile":"File ini terlalu besar untuk diunggah","selectSmallerFile":"Silakan pilih file yang lebih kecil","licenseError":"Terjadi kesalahan lisensi","licenseExpired":"Lisensi tidak dapat ditemukan atau telah habis masa berlakunya","fileCorrupt":"File ini rusak atau tidak didukung","selectAnotherFile":"Silakan pilih file yang lain","noFocus":"Tidak ada fokus kamera","incorrectCameraId":"Tidak ditemukan kamera dengan ID yang disebutkan","checkCameraId":"Periksa apakah ID kamera yang disebutkan benar"}'),wr=JSON.parse('{"placeDocumentIntoFrame":"Chỉnh giấy tờ nằm gọn trong khung","holdDocumentStraight":"Giữ cho giấy tờ được thẳng","glaresOnDocument":"Tránh cho giấy tờ bị lóe sáng","preparingCamera":"Đang chuẩn bị camera...","processing":"Đang xử lý...","moveCloser":"Di chuyển tới gần hơn","timeout":"Thời gian chờ","somethingWentWrong":"Có lỗi xảy ra","preparingService":"Đang chuẩn bị dịch vụ...","success":"Thành công!","cameraUnavailable":"Camera không có sẵn!","allowAccessToCamera":"Cho phép truy cập camera và tải lại trang này để tiếp tục.","error":"Có lỗi!","tryAgain":"Thử lại","noCameraAvailable":"Không có camera","photoCapturedSuccessfully":"Ảnh được chụp thành công.","scanIDInBrowser":"Quét giấy tờ tùy thân trong trình duyệt của bạn","useYourDeviceCamera":"Sử dụng camera trong thiết bị để quét giấy tờ hoặc chọn ảnh chụp giấy tờ từ thư viện ảnh.","fromCamera":"Từ camera","fromGallery":"Từ thư viện ảnh","cameraConnection":"Hãy đảm bảo camera được kết nối đúng cách.","documentProcessing":"Đang xử lý giấy tờ...","positionDocumentCenter":"Đưa giấy tờ vào chính giữa","flipDocument":"Lật giấy tờ","processingFinished":"Đã xử lý xong.","uploadPhoto":"Tải ảnh lên","useCameraOrGallery":"Sử dụng camera trong thiết bị hoặc chọn ảnh từ thư viện ảnh","detectingDocument":"Đang dò tìm một giấy tờ...","versionNotSupported":"Phiên bản trình duyệt của bạn không được hỗ trợ","updateBrowser":"Cập nhật phiên bản trình duyệt của bạn","largeFile":"Tệp này quá lớn để tải lên","selectSmallerFile":"Vui lòng chọn một tệp nhỏ hơn","licenseError":"Đã xảy ra lỗi giấy phép","licenseExpired":"Không tìm thấy giấy phép hoặc giấy phép đã hết hạn","fileCorrupt":"Tệp này bị hỏng hoặc không được hỗ trợ","selectAnotherFile":"Vui lòng chọn tệp khác","noFocus":"Không có tiêu điểm camera","incorrectCameraId":"Không tìm thấy camera nào có ID đã nêu","checkCameraId":"Kiểm tra xem ID camera đã nêu có đúng không"}'),_r=JSON.parse('{"placeDocumentIntoFrame":"문서를 프레임에 맞춤","holdDocumentStraight":"문서를 똑바로 놓으십시오","glaresOnDocument":"문서에서 눈부심을 피하십시오","preparingCamera":"카메라 준비 중...","processing":"처리 중...","moveCloser":"더 가까이 이동","timeout":"시간 제한","somethingWentWrong":"오류가 발생했습니다","preparingService":"서비스 준비 중...","success":"성공!","cameraUnavailable":"카메라를 사용할 수 없습니다!","allowAccessToCamera":"카메라에 대한 액세스를 허용하고 이 페이지를 재로드하여 계속하십시오.","error":"오류!","tryAgain":"다시 시도","noCameraAvailable":"카메라가 없습니다","photoCapturedSuccessfully":"사진이 성공적으로 캡처되었습니다.","scanIDInBrowser":"브라워저에서 ID를 스캔하세요","useYourDeviceCamera":"장치 카메라를 사용하여 문서를 스캔하거나 갤러리에서 문서의 사진을 선택하십시오","fromCamera":"카메라에서","fromGallery":"갤러리에서","cameraConnection":"카메라가 올바르게 연결되었는지 확인하십시오.","documentProcessing":"문서 처리 중...","positionDocumentCenter":"문서를 가운데에 위치시키십시오","flipDocument":"문서를 뒤집으십시오","processingFinished":"처리가 완료되었습니다.","uploadPhoto":"사진 업로드","useCameraOrGallery":"장치 카메라를 사용하거나 갤러리에서 사진을 선택하세요","detectingDocument":"문서 감지 중...","versionNotSupported":"사용 중인 브라우저는 지원되지 않습니다","updateBrowser":"브라우저 버전을 업데이트하십시오","largeFile":"이 파일은 대용량이어서 업로드할 수 없습니다","selectSmallerFile":"용량이 작은 파일을 선택하십시오","licenseError":"라이선스 오류가 발생했습니다","licenseExpired":"라이선스를 찾을 수 없거나 만료되었습니다","fileCorrupt":"이 파일은 손상되었거나 지원되지 않습니다","selectAnotherFile":"다른 파일을 선택하십시오","noFocus":"카메라 초점","incorrectCameraId":"지정된 ID가 있는 카메라를 찾을 수 없음","checkCameraId":"지정된 카메라 ID가 정확한지 확인하십시오"}'),Sr=JSON.parse('{"placeDocumentIntoFrame":"Muatkan dokumen dalam bingkai","holdDocumentStraight":"Pengang dokumen secara tegak","glaresOnDocument":"Elakan silau pada dokumen","preparingCamera":"Menyediakan kamera...","processing":"Sedang diproses...","moveCloser":"Dekatkan","timeout":"Ralat masa","somethingWentWrong":"Ada masalah","preparingService":"Menyediakan perkhidmatan...","success":"Berjaya!","cameraUnavailable":"Kamera tidak tersedia!","allowAccessToCamera":"Benarkan akses ke kamera dan muat semula halaman ini untuk bermula.","error":"Ralat!","tryAgain":"Sila cuba lagi","noCameraAvailable":"Tiada kamera","photoCapturedSuccessfully":"Gambar diambil dengan berjaya.","scanIDInBrowser":"Imbas ID di pelayar anda","useYourDeviceCamera":"Gunakan kamera peranti anda untuk mengimbas dokumen atau pilih sekeping gambar dari galeri","fromCamera":"Dari kamera","fromGallery":"Dari galeri","cameraConnection":"Pastikan kamera disambung dengan betul.","documentProcessing":"Memproses dokumen...","positionDocumentCenter":"Letakkan dokumen di tengah","flipDocument":"Terbalikkan dokumen","processingFinished":"Pemprosesan selesai.","uploadPhoto":"Muat naik gambar","useCameraOrGallery":"Gunakan kamera peranti anda atau pilih sekeping gambar dari galeri","detectingDocument":"Mengesan dokumen...","versionNotSupported":"Versi pelayar web anda tidak disokong","updateBrowser":"Sila kemas kini versi pelayar web anda","largeFile":"Fail ini terlalu besar untuk dimuat naik","selectSmallerFile":"Sila pilih fail yang lebih kecil","licenseError":"Lalat lesen belaku","licenseExpired":"Lesen tidak dapat dicari atau telah tamat tempoh","fileCorrupt":"Fail ini rosak atau tidak disokong","selectAnotherFile":"Sila pilih fail yang lain","noFocus":"Tiada fokus kamera","incorrectCameraId":"Tiada kamera dengan ID yang ditentukan ditemui","checkCameraId":"Sila semak sama ada ID kamera yang dinyatakan adalah betul"}'),Er=JSON.parse('{"placeDocumentIntoFrame":"Încadrați documentul în cadru","holdDocumentStraight":"Țineți documentul drept","glaresOnDocument":"Evitați strălucirea de pe document","preparingCamera":"Se pregătește camera...","processing":"Se procesează...","moveCloser":"Apropiați-vă","timeout":"Pauză","somethingWentWrong":"Ceva n-a mers bine","preparingService":"Pregătirea serviciului...","success":"Succes!","cameraUnavailable":"Camera foto indisponibilă!","allowAccessToCamera":"Permiteți accesul la cameră și reîncărcați această pagină pentru a continua.","error":"Eroare!","tryAgain":"Încercați încă o dată","noCameraAvailable":"Nu există cameră","photoCapturedSuccessfully":"Fotografia a fost făcută cu succes.","scanIDInBrowser":"Scanați un document de identificare în browser","useYourDeviceCamera":"Folosiți camera dispozitivului dvs. pentru a scana un document sau selectați o fotografie a documentului din galerie","fromCamera":"De la camera foto","fromGallery":"Din galerie","cameraConnection":"Asigurați-vă că este conectată corect camera foto.","documentProcessing":"Se procesează documentul...","positionDocumentCenter":"Poziționați documentul în centru","flipDocument":"Întoarceți documentul","processingFinished":"Procesare încheiată.","uploadPhoto":"Încărcați o fotografie","useCameraOrGallery":"Folosiți camera foto a dispozitivului sau selectați o imagine din galerie","detectingDocument":"Detectarea documentului...","versionNotSupported":"Versiunea browserului dvs. nu este acceptată","updateBrowser":"Actualizați versiunea browserului","largeFile":"Fișierul este prea mare pentru a fi încărcat","selectSmallerFile":"Vă rugăm selectați un fișier mai mic","licenseError":"Am întâmpinat o eroare de licențiere","licenseExpired":"Licența nu poate fi găsită sau a expirat","fileCorrupt":"Acest fișier este corupt sau nu este acceptat","selectAnotherFile":"Vă rugăm alegeți un alt fișier","noFocus":"Cameră nefocalizată","incorrectCameraId":"Nu a fost găsită nicio cameră cu ID-ul specificat","checkCameraId":"Verificați dacă este corect ID-ul specificat pentru cameră"}'),Cr=JSON.parse('{"placeDocumentIntoFrame":"Προσαρμόστε το έγγραφο, ώστε να βρίσκεται μέσα στο πλαίσιο","holdDocumentStraight":"Κρατήστε το έγγραφο ίσιο","glaresOnDocument":"Προσέχετε το έγγραφο να μην έχει αντανάκλαση","preparingCamera":"Προετοιμασία της κάμερας...","processing":"Επεξεργασία...","moveCloser":"Πλησιάστε","timeout":"Εξωχρονισμός","somethingWentWrong":"Κάτι πήγε στραβά","preparingService":"Προετοιμασία της υπηρεσίας ...","success":"Επιτυχής!","cameraUnavailable":"Η κάμερα δεν είναι διαθέσιμη!","allowAccessToCamera":"Επιτρέψτε την πρόσβαση στην κάμερα και φορτώστε ξανά αυτήν τη σελίδα για να συνεχίσετε.","error":"Σφάλμα!","tryAgain":"Προσπαθήστε ξανά","noCameraAvailable":"Δεν υπάρχει κάμερα","photoCapturedSuccessfully":"Η φωτογραφία τραβήχτηκε με επιτυχία.","scanIDInBrowser":"Σαρώστε ένα αναγνωριστικό στο πρόγραμμα περιήγησής σας","useYourDeviceCamera":"Χρησιμοποιήστε την κάμερα της συσκευής σας για να σαρώσετε ένα έγγραφο ή να επιλέξετε μια φωτογραφία του εγγράφου από τη συλλογή","fromCamera":"Από την κάμερα","fromGallery":"Από την συλλογή","cameraConnection":"Βεβαιωθείτε ότι η κάμερα είναι σωστά συνδεδεμένη.","documentProcessing":"Επεξεργασία εγγράφου...","positionDocumentCenter":"Τοποθετήστε το έγγραφο στο κέντρο","flipDocument":"Γυρίστε το έγγραφο","processingFinished":"Η επεξεργασία ολοκληρώθηκε.","uploadPhoto":"Ανέβασε μια φωτογραφία","useCameraOrGallery":"Χρησιμοποιήστε την κάμερα της συσκευής σας ή επιλέξτε μια φωτογραφία από τη συλλογή","detectingDocument":"Εντοπισμός εγγράφου...","versionNotSupported":"Η έκδοση του προγράμματος περιήγησής σας δεν υποστηρίζεται","updateBrowser":"Ανανεώστε την έκδοση του προγράμματος περιήγησής σας","largeFile":"Αυτό το αρχείο δεν δύναται να μεταφορτωθεί λόγω υπερβολικού μεγέθους","selectSmallerFile":"Παρακαλούμε όπως επιλέξετε ένα αρχείο μικρότερου μεγέθους","licenseError":"Παρουσιάστηκε σφάλμα άδειας χρήσης","licenseExpired":"Η άδεια χρήσης δεν μπορεί να βρεθεί ή έχει λήξει","fileCorrupt":"Αυτό το αρχείο είναι κατεστραμμένο ή δεν υποστηρίζεται","selectAnotherFile":"Παρακαλούμε όπως επιλέξετε ένα άλλο αρχείο","noFocus":"Δεν υπάρχει εστίαση κάμερας","incorrectCameraId":"Δεν βρέθηκε κάμερα με το καθορισμένο ID","checkCameraId":"Ελέγξτε εάν το καθορισμένο ID της κάμερας είναι ορθό"}'),kr=JSON.parse('{"placeDocumentIntoFrame":"Belgeyi çerçeve içine yerleştir","holdDocumentStraight":"Dokümanı düz bir zemine yerleştirin","glaresOnDocument":"Belge üzerinde parlama olmamasına özen gösterin","preparingCamera":"Kamera hazırlanıyor...","processing":"İşleniyor...","moveCloser":"Yakına gelin","timeout":"Zaman aşımı","somethingWentWrong":"Bir hata oluştu","preparingService":"Hizmet hazırlanıyor...","success":"Başarılı!","cameraUnavailable":"Kamera kullanılamıyor!","allowAccessToCamera":"Devam etmek için kameraya erişim izni vererek bu sayfayı yeniden yükleyin.","error":"Hata!","tryAgain":"Tekrar deneyin","noCameraAvailable":"Kamera yok","photoCapturedSuccessfully":"Fotoğraf başarıyla alındı.","scanIDInBrowser":"Tarayıcınızda bir kimlik taratın","useYourDeviceCamera":"Belge taratmak için cihazınızın kamerasını kullanın veya galeriden bir belgenin fotoğrafını seçin","fromCamera":"Kameradan","fromGallery":"Galeriden","cameraConnection":"Kameranın düzgün bağlandığından emin olun.","documentProcessing":"Belge işleniyor...","positionDocumentCenter":"Belgeyi ortaya konumlandırın","flipDocument":"Belgeyi ters çevirin","processingFinished":"İşleme tamamlandı.","uploadPhoto":"Fotoğraf yükleyin","useCameraOrGallery":"Cihazınızın kamerasını kullanın veya galeriden bir fotoğraf seçin","detectingDocument":"Belge algılanıyor...","versionNotSupported":"Tarayıcı sürümünüz desteklenmiyor","updateBrowser":"Tarayıcı sürümünüzü güncelleyin","largeFile":"Dosya boyutu yüklenemeyecek kadar büyük","selectSmallerFile":"Lütfen daha küçük bir dosya seçin","licenseError":"Bir lisans hatası oluştu","licenseExpired":"Lisans bulunamadı veya lisansın süresi dolmuş","fileCorrupt":"Dosya bozuk veya desteklenmiyor","selectAnotherFile":"Lütfen başka bir dosya seçin","noFocus":"Kamera odağı yok","incorrectCameraId":"Belirtilen kimliğe sahip kamera bulunamadı","checkCameraId":"Belirtilen kamera kimliğini doğruluğunu kontrol edin"}'),Nr=JSON.parse('{"placeDocumentIntoFrame":"フレームに文書をフィットさせます","holdDocumentStraight":"文書をまっすぐに持ってください","glaresOnDocument":"文書にテカリが発生しないようにしてください","preparingCamera":"カメラ準備中...","processing":"処理しています...","moveCloser":"近寄ってください","timeout":"タイムアウト","somethingWentWrong":"何らかの問題が発生しました","preparingService":"サービスを準備しています...","success":"成功!","cameraUnavailable":"カメラが利用できません!","allowAccessToCamera":"継続するにはカメラへのアクセスを許可し、ページを再読み込みしてください。","error":"エラー!","tryAgain":"もう一度お試しください","noCameraAvailable":"カメラがありません","photoCapturedSuccessfully":"写真のキャプチャーが完了しました。","scanIDInBrowser":"ブラウザでIDをスキャンしてください","useYourDeviceCamera":"ご利用のデバイスのカメラでスキャンするか、ギャラリーから書類の写真を選択してください","fromCamera":"カメラから","fromGallery":"ギャラリーから","cameraConnection":"カメラが適切に接続されていることをご確認ください。","documentProcessing":"文書を処理しています...","positionDocumentCenter":"書類を中心に配置してください","flipDocument":"書類を裏返す","processingFinished":"処理が完了しました。","uploadPhoto":"写真をアップロード","useCameraOrGallery":"ご利用のデバイスのカメラを使用するか、ギャラリーから写真を選択してください","detectingDocument":"文書を削除しています...","versionNotSupported":"ご利用のブラウザのバージョンはサポートされていません","updateBrowser":"ブラウザのバージョンを更新してください","largeFile":"このファイルはアップロードするには大きすぎます","selectSmallerFile":"より小さいファイルを選択してください","licenseError":"ライセンスエラーが発生しました","licenseExpired":"ライセンスがみつからないか有効期限が切れています","fileCorrupt":"このファイルは破損しているかサポートされていません","selectAnotherFile":"別のファイルを選択してください","noFocus":"カメラの焦点が合っていません","incorrectCameraId":"指定されたIDを持つカメラがみつかりませんでした","checkCameraId":"指定されたカメラIDが正しいかどうかをご確認ください"}'),Or=JSON.parse('{"placeDocumentIntoFrame":"Umístěte dokument do rámečku","holdDocumentStraight":"Držte dokument rovně","glaresOnDocument":"Vyvarujte se ostrému osvětlení dokumentu","preparingCamera":"Příprava fotoaparátu...","processing":"Zpracovává se...","moveCloser":"Přibližte se","timeout":"Časový limit","somethingWentWrong":"Něco se pokazilo","preparingService":"Služba se připravuje...","success":"Úspěch!","cameraUnavailable":"Fotoaparát není k dispozici!","allowAccessToCamera":"Pro pokračování povolte přístup k fotoaparátu a znovu načtěte tuto stránku.","error":"Chyba!","tryAgain":"Zkusit to znovu","noCameraAvailable":"Chybí fotoaparát","photoCapturedSuccessfully":"Fotografie byla úspěšně pořízena.","scanIDInBrowser":"Skenování průkazu totožnosti v prohlížeči","useYourDeviceCamera":"Naskenujte dokument pomocí fotoaparátu v zařízení nebo vyberte fotografii z galerie","fromCamera":"Z fotoaparátu","fromGallery":"Z galerie","cameraConnection":"Zkontrolujte, zda je fotoaparát správně připojen.","documentProcessing":"Zpracování dokumentu...","positionDocumentCenter":"Umístěte dokumentu do středu","flipDocument":"Obraťte dokument","processingFinished":"Zpracování dokončeno.","uploadPhoto":"Nahrát fotografii","useCameraOrGallery":"Použijte fotoaparát v zařízení nebo nahrajte fotografii z galerie","detectingDocument":"Detekce dokumentu...","versionNotSupported":"Vaše verze prohlížeče není podporována","updateBrowser":"Aktualizujte verzi prohlížeče","largeFile":"Tento soubor je příliš velký na to, aby mohl být nahrán","selectSmallerFile":"Vyberte prosím menší soubor","licenseError":"Došlo k chybě licence","licenseExpired":"Licenci nelze nalézt nebo vypršela její platnost","fileCorrupt":"Tento soubor je poškozený nebo není podporován","selectAnotherFile":"Vyberte prosím jiný soubor","noFocus":"Fotoaparát není zaostřen","incorrectCameraId":"Nebyl nalezen žádný fotoaparát se zadaným ID","checkCameraId":"Zkontrolujte, zda je zadané ID fotoaparátu správné"}'),xr=JSON.parse('{"placeDocumentIntoFrame":"จัดเอกสารให้พอดีกับกรอบ","holdDocumentStraight":"ถือเอกสารให้ตรง","glaresOnDocument":"โปรดหลีกเลี่ยงไม่ให้แสงส่องจ้าบนเอกสาร","preparingCamera":"กำลังเตรียมกล้องถ่ายรูป...","processing":"กำลังประมวลผล","moveCloser":"เข้ามาใกล้กว่านี้","timeout":"หมดเวลา","somethingWentWrong":"มีบางอย่างผิดพลาด","preparingService":"กำลังเตรียมบริการ...","success":"สำเร็จ!","cameraUnavailable":"กล้องถ่ายรูปไม่พร้อมใช้งาน!","allowAccessToCamera":"โปรดอนุญาตการเข้าถึงกล้องถ่ายรูป และโหลดหน้านี้ใหม่อีกครั้ง จากนั้นจึงดำเนินการต่อ","error":"ผิดพลาด!","tryAgain":"ลองอีกครั้ง","noCameraAvailable":"ไม่มีกล้องถ่ายรูป","photoCapturedSuccessfully":"ถ่ายภาพสำเร็จแล้ว","scanIDInBrowser":"สแกนบัตรประชาชนของคุณในเบราว์เซอร์","useYourDeviceCamera":"ใช้อุปกรณ์กล้องถ่ายรูปในการสแกนเอกสาร หรือเลือกภาพเอกสารจากคลังภาพ","fromCamera":"จากกล้องถ่ายรูป","fromGallery":"จากคลังภาพ","cameraConnection":"โปรดตรวจสอบให้แน่ใจว่ากล้องถ่ายรูปเชื่อมต่ออยู่อย่างถูกต้อง","documentProcessing":"กำลังดำเนินการเอกสาร...","positionDocumentCenter":"จัดวางเอกสารไว้ตรงกลาง","flipDocument":"พลิกเอกสาร","processingFinished":"การดำเนินการเสร็จสิ้น","uploadPhoto":"อัปโหลดรูปภาพ","useCameraOrGallery":"ใช้กล้องถ่ายรูปในอุปกรณ์ของคุณ หรือเลือกรูปภาพจากคลังภาพ","detectingDocument":"กำลังตรวจจับเอกสาร...","versionNotSupported":"ไม่รองรับเบราว์เซอร์รุ่นที่คุณใช้งาน","updateBrowser":"โปรดอัปเดตรุ่นเบราว์เซอร์ของคุณ","largeFile":"ไฟล์นี้ใหญ่เกินกว่าจะอัปโหลดได้","selectSmallerFile":"โปรดเลือกไฟล์ที่เล็กกว่า","licenseError":"มีข้อผิดพลาดเกี่ยวกับใบอนุญาต","licenseExpired":"ไม่พบใบอนุญาติ หรือใบอนุญาตหมดอายุ","fileCorrupt":"ไฟล์นี้เสียหายหรือระบบไม่รองรับไฟล์นี้","selectAnotherFile":"โปรดเลือกไฟล์อื่น","noFocus":"ไม่มีโฟกัสกล้อง","incorrectCameraId":"ไม่พบกล้องที่มี ID ที่ระบุ","checkCameraId":"ตรวจสอบความถูกต้องของ ID กล้องที่ระบุ"}'),Ar=JSON.parse('{"placeDocumentIntoFrame":"दस्तावेज़ को फ्रेम में फिट करें","holdDocumentStraight":"दस्तावेज़ को सीधे रखें","glaresOnDocument":"दस्तावेज़ को चमक से बचाएं","preparingCamera":"कैमरा तैयार करना...","processing":"प्रोसेसिंग...","moveCloser":"नजदीक आएं","timeout":"समय समाप्त","somethingWentWrong":"कुछ त्रुटि हुई","preparingService":"सेवा तैयार करना...","success":"सफल!","cameraUnavailable":"कैमरा उपलब्ध नहीं है!","allowAccessToCamera":"कैमरा को ऐक्सेस करने की अनुमति दें और जारी रखने के लिए इस पृष्ठ को पुनः लोड करें।","error":"त्रुटि!","tryAgain":"पुनः प्रयास करें","noCameraAvailable":"कोई कैमरा नहीं है","photoCapturedSuccessfully":"फ़ोटो सफलतापूर्वक ले ली गई है।","scanIDInBrowser":"अपने ब्राउज़र में कोई आईडी स्कैन करें","useYourDeviceCamera":"किसी दस्तावेज़ को स्कैन करने या गैलरी से दस्तावेज़ की एक छवि का चयन करने के लिए अपने डिवाइस के कैमरे का उपयोग करें","fromCamera":"कैमरा से","fromGallery":"गैलरी से","cameraConnection":"सुनिश्चित करें कि कैमरा सही से कनेक्टेड है।","documentProcessing":"दस्तावेज़ प्रोसेसिंग...","positionDocumentCenter":"दस्तावेज़ को बीच में रखें","flipDocument":"दस्तावेज़ पलटें","processingFinished":"प्रसंस्करण समाप्त हुआ।","uploadPhoto":"एक फ़ोटो अपलोड करें","useCameraOrGallery":"अपने डिवाइस के कैमरे का उपयोग करें या गैलरी से एक छवि का चयन करें","detectingDocument":"दस्तावेज़ पहचान रहा है...","versionNotSupported":"आपका ब्राउज़र संस्करण समर्थित नहीं है","updateBrowser":"अपना ब्राउज़र संस्करण अपडेट करें","largeFile":"यह फ़ाइल अपलोड करने के लिए बहुत बड़ी है","selectSmallerFile":"कृपया एक छोटी फ़ाइल चुनें","licenseError":"एक लाइसेंस त्रुटि हुई है","licenseExpired":"लाइसेंस नहीं मिला या समाप्त हो गया है","fileCorrupt":"यह फ़ाइल करप्ट है या समर्थित नहीं है","selectAnotherFile":"कृपया कोई अन्य फ़ाइल चुनें","noFocus":"कैमरा फ़ोकस नहीं","incorrectCameraId":"निर्दिष्ट ID वाला कोई कैमरा नहीं मिला","checkCameraId":"जांचें कि निर्दिष्ट कैमरा ID सही है या नहीं"}'),Ir=JSON.parse('{"placeDocumentIntoFrame":"ডকুমেন্টটি ফ্রেমের মাঝে রাখুন","holdDocumentStraight":"ডকুমেন্টটি সোজাভাবে ধরে রাখুন","glaresOnDocument":"ডকুমেন্টে আলোর ঝলকানি এড়িয়ে চলুন","preparingCamera":"ক্যামেরা প্রস্তুত করা হচ্ছে...","processing":"প্রক্রিয়া করা হচ্ছে...","moveCloser":"কাছে যান","timeout":"টাইম আউট","somethingWentWrong":"কিছু একটা ভুল হয়েছে","preparingService":"পরিষেবা প্রস্তুত করা হচ্ছে...","success":"সফল!","cameraUnavailable":"ক্যামেরা বিদ্যমান নেই!","allowAccessToCamera":"ক্যামেরা অ্যাক্সেস প্রদান করুন এবং চালিয়ে যেতে এই পেজটি পুনরায় লোড করুন।","error":"ত্রুটি!","tryAgain":"আবার চেষ্টা করুন","noCameraAvailable":"কোনো ক্যামেরা নেই","photoCapturedSuccessfully":"সফলভাবে ছবিটি তোলা হয়েছে।","scanIDInBrowser":"আপনার ব্রাউজারে একটি আইডি স্ক্যান করুন","useYourDeviceCamera":"একটি ডকুমেন্ট স্ক্যান করতে বা গ্যালারি থেকে ডকুমেন্টের একটি ছবি নির্বাচন করতে আপনার ডিভাইসের ক্যামেরা ব্যবহার করুন","fromCamera":"ক্যামেরা থেকে","fromGallery":"গ্যালারি থেকে","cameraConnection":"ক্যামেরাটি সঠিকভাবে সংযুক্ত আছে তা নিশ্চিত করুন।","documentProcessing":"ডকুমেন্ট প্রক্রিয়া করা হচ্ছে...","positionDocumentCenter":"ডকুমেন্টটি কেন্দ্রে রাখুন","flipDocument":"ডকুমেন্টটি উল্টান","processingFinished":"প্রক্রিয়া সম্পন্ন হয়েছে।","uploadPhoto":"একটি ছবি আপলোড করুন","useCameraOrGallery":"আপনার ডিভাইসের ক্যামেরা ব্যবহার করুন অথবা গ্যালারী থেকে একটি ছবি নির্বাচন করুন","detectingDocument":"একটি ডকুমেন্ট শনাক্ত করা হচ্ছে...","versionNotSupported":"আপনার ব্রাউজারের সংস্করণটি সমর্থিত নয়","updateBrowser":"আপনার ব্রাউজারের সংস্করণ আপডেট করুন","largeFile":"এই ফাইলটি আপলোড করার জন্য খুবই বড়","selectSmallerFile":"একটি ছোট ফাইল নির্বাচন করুন","licenseError":"লাইসেন্স সংক্রান্ত একটি ত্রুটি ঘটেছে","licenseExpired":"লাইসেন্স পাওয়া যায়নি বা মেয়াদ শেষ হয়ে গেছে","fileCorrupt":"এই ফাইলটি অকার্যকর বা সমর্থিত নয়","selectAnotherFile":"অনুগ্রহ করে অন্য একটি ফাইল নির্বাচন করুন","noFocus":"ক্যামেরার ফোকাস হয়নি","incorrectCameraId":"নির্দিষ্ট আইডি সহ কোনো ক্যামেরা পাওয়া যায়নি","checkCameraId":"নির্দিষ্ট ক্যামেরা আইডি সঠিক কিনা তা পরীক্ষা করুন"}'),Pr=JSON.parse('{"placeDocumentIntoFrame":"התאמת המסמך בתוך המסגרת","holdDocumentStraight":"יש ליישר את המסמך","glaresOnDocument":"יש לוודא שאין ברק בזמן צילום המסמך","preparingCamera":"המצלמה בהכנה...","processing":"בעיבוד...","moveCloser":"להתקרב","timeout":"זמן קצוב לתפוגה","somethingWentWrong":"משהו השתבש","preparingService":"מכין את השירות...","success":"יופי!","cameraUnavailable":"המצלמה לא זמינה","allowAccessToCamera":"כדי להמשיך, עליך לאפשר גישה למצלמה ולאחר מכן לטעון מחדש את הדף.","error":"שגיאה","tryAgain":"כדאי לנסות שוב","noCameraAvailable":"אין מצלמה","photoCapturedSuccessfully":"יופי, התמונה צולמה.","scanIDInBrowser":"סריקת תעודה מזהה בדפדפן","useYourDeviceCamera":"צילום מסמך באמצעות מצלמת המכשיר או בחירת תמונה של המסמך מהגלריה","fromCamera":"מהמצלמה","fromGallery":"מהגלריה","cameraConnection":"יש לוודא שהמצלמה מחוברת כמו שצריך.","documentProcessing":"המסמך בעיבוד...","positionDocumentCenter":"יש למקם את המסמך במרכז","flipDocument":"יש להפוך את המסמך לצידו השני","processingFinished":"העיבוד הסתיים.","uploadPhoto":"העלאת תמונה","useCameraOrGallery":"שימוש במצלמת המכשיר או בחירת תמונה מהגלריה","detectingDocument":"מזהה מסמך...","versionNotSupported":"אין תמיכה בגרסה הנוכחית של הדפדפן","updateBrowser":"יש לעדכן את גרסת הדפדפן","largeFile":"הקובץ גדול מדי ולא ניתן להעלות אותו","selectSmallerFile":"יש לבחור קובץ קטן יותר","licenseError":"שגיאת רישיון","licenseExpired":"הרישיון לא נמצא או לא בתוקף","fileCorrupt":"הקובץ פגום או בפורמט שלא נתמך","selectAnotherFile":"יש לבחור קובץ אחר","noFocus":"המצלמה לא בפוקוס","incorrectCameraId":"לא נמצאה מצלמה עם המזהה שצוין","checkCameraId":"יש לבדוק אם נבחר מזהה המצלמה הנכון"}'),Tr=JSON.parse('{"placeDocumentIntoFrame":"Kohdista asiakirja kehykseen","holdDocumentStraight":"Pidä asiakirjaa suorassa","glaresOnDocument":"Vältä heijastuksia asiakirjassa","preparingCamera":"Valmistellaan kameraa...","processing":"Käsitellään...","moveCloser":"Siirry lähemmäs","timeout":"Aikakatkaisu","somethingWentWrong":"Jokin epäonnistui","preparingService":"Valmistellaan palvelua...","success":"Onnistui!","cameraUnavailable":"Kamera ei ole käytettävissä!","allowAccessToCamera":"Jatka sallimalla kameran käyttö ja lataamalla tämä sivu uudelleen.","error":"Virhe!","tryAgain":"Yritä uudelleen!","noCameraAvailable":"Kameraa ei ole","photoCapturedSuccessfully":"Valokuvan ottaminen onnistui.","scanIDInBrowser":"Skannaa henkilökortti selaimeesi","useYourDeviceCamera":"Skannaa asiakirja laitteesi kameralla tai valitse asiakirjan valokuva galleriasta.","fromCamera":"Kamerasta","fromGallery":"Galleriasta","cameraConnection":"Varmista, että kamera on kytketty oikein.","documentProcessing":"Käsitellään asiakirjaa...","positionDocumentCenter":"Sijoita asiakirja keskelle","flipDocument":"Käännä asiakirja","processingFinished":"Käsittely päättynyt.","uploadPhoto":"Lataa valokuva","useCameraOrGallery":"Käytä laitteesi kameraa tai valitse kuva galleriasta","detectingDocument":"Tunnistetaan asiakirjaa...","versionNotSupported":"Selaimesi versiota ei tueta","updateBrowser":"Päivitä selaimesi versio","largeFile":"Tiedosto on liian suuri ladattavaksi","selectSmallerFile":"Valitse pienempi tiedosto","licenseError":"Järjestelmässä on havaittu lisenssivirhe","licenseExpired":"Lisenssiä ei löydy tai se on vanhentunut","fileCorrupt":"Tämä tiedosto on vioittunut tai sitä ei tueta","selectAnotherFile":"Valitse toinen tiedosto","noFocus":"Kamera ei tarkennettu","incorrectCameraId":"Kameraa, jonka tunniste on määritetty, ei löydy.","checkCameraId":"Tarkista, että määritetty kameran tunniste on oikea"}'),Rr=JSON.parse('{"placeDocumentIntoFrame":"Placera dokumentet i ramen","holdDocumentStraight":"Håll dokumentet rakt","glaresOnDocument":"Undvik reflexer på dokumentet","preparingCamera":"Förbereder kameran...","processing":"Bearbetar...","moveCloser":"Flytta närmare","timeout":"Paus","somethingWentWrong":"Ett fel inträffade","preparingService":"Förbereder tjänsten...","success":"Utfört!","cameraUnavailable":"Kameran är inte tillgänglig!","allowAccessToCamera":"Ge appen åtkomstbehörighet till kameran och ladda om denna sida för att fortsätta,","error":"Fel!","tryAgain":"Försök igen","noCameraAvailable":"Det finns ingen kamera","photoCapturedSuccessfully":"Fotot tas.","scanIDInBrowser":"Skanna in ett ID-kort i din webbläsare","useYourDeviceCamera":"Använd din enhetskamera för att skanna dokument eller foton från galleriet","fromCamera":"Från kameran","fromGallery":"Från galleriet","cameraConnection":"Kontrollera att kameran är korrekt ansluten.","documentProcessing":"Dokumentet bearbetas....","positionDocumentCenter":"Placera dokumentet i mitten","flipDocument":"Vänd på dokumentet","processingFinished":"Bearbetning klar.","uploadPhoto":"Ladda upp foto","useCameraOrGallery":"Använd kameran eller välj ett foto från galleriet","detectingDocument":"Identifierar dokument...","versionNotSupported":"Din webbläsarversion stöds inte","updateBrowser":"Uppdatera din webbläsarversion","largeFile":"Filen är för stor för att kunna laddas upp","selectSmallerFile":"Välj en mindre fil","licenseError":"Ett licensfel har inträffat","licenseExpired":"Licensen går antingen inte att hitta eller så har den utgått","fileCorrupt":"Filen är antingen korrupt eller stöds inte","selectAnotherFile":"Välj en annan fil","noFocus":"Ingen kamerafokus","incorrectCameraId":"Ingen kamera med specificerat ID hittat","checkCameraId":"Kontrollera om det angivna kamera-ID:t är korrekt"}'),Lr=JSON.parse('{"placeDocumentIntoFrame":"Tilpas dokumentet til rammen","holdDocumentStraight":"Hold dokumentet lige","glaresOnDocument":"Undgå genskin på dokumentet","preparingCamera":"Gør kameraet klar...","processing":"Behandler...","moveCloser":"Flyt tættere på","timeout":"Timeout","somethingWentWrong":"Noget gik galt","preparingService":"Forbereder tjeneste...","success":"Succes!","cameraUnavailable":"Kamera utilgængelig!","allowAccessToCamera":"Tillad adgang til kameraet og opdater denne side for at fortsætte.","error":"Fejl!","tryAgain":"Prøv igen","noCameraAvailable":"Der er intet kamera","photoCapturedSuccessfully":"Fotoet blev vellykket","scanIDInBrowser":"Scan en ID i din browser","useYourDeviceCamera":"Anvend din enheds kamera til at scanne et dokument eller vælge et foto af dokumentet fra galleriet","fromCamera":"Fra kamera","fromGallery":"Fra galleri","cameraConnection":"Sørg for, at kameraet er forbundet korrekt.","documentProcessing":"Dokumentbehandling...","positionDocumentCenter":"Placer dokumentet i midten","flipDocument":"Vend dokumentet","processingFinished":"Behandlingen er afsluttet.","uploadPhoto":"Upload et foto","useCameraOrGallery":"Anvend kameraet på din enhed eller vælg et billede fra galleriet","detectingDocument":"Registrering af et dokument...","versionNotSupported":"Din browserversion er ikke understøttet","updateBrowser":"Opdater din browserversion","largeFile":"Denne fil er for stor til at blive overført","selectSmallerFile":"Vælg venligst en mindre fil","licenseError":"Der er opstået en fejl med licensen","licenseExpired":"Licensen kan ikke findes eller er udløbet","fileCorrupt":"Filen er ødelagt eller understøttes ikke","selectAnotherFile":"Vælg venligst en anden fil","noFocus":"Ingen kamerafokus","incorrectCameraId":"Intet kamera med det specificeret ID fundet","checkCameraId":"Tjek om det specificerede kamera-ID er korrekt"}'),Dr=JSON.parse('{"placeDocumentIntoFrame":"Prilagodite dokument okviru","holdDocumentStraight":"Držite dokument ravno","glaresOnDocument":"Izbjegavajte odsjaj na dokumentu","preparingCamera":"Priprema kamere...","processing":"Obrada...","moveCloser":"Priđite bliže","timeout":"Pauza","somethingWentWrong":"Nešto je pošlo po zlu","preparingService":"Priprema usluge...","success":"Uspjeh!","cameraUnavailable":"Kamera nije dostupna!","allowAccessToCamera":"Dopustite pristup kameri i ponovno učitajte ovu stranicu za nastavak.","error":"Greška!","tryAgain":"Pokušajte ponovno","noCameraAvailable":"Nema kamere","photoCapturedSuccessfully":"Fotografija je uspješno snimljena.","scanIDInBrowser":"Skenirajte iskaznicu u svom pregledniku","useYourDeviceCamera":"Upotrijebite kameru svog uređaja za skeniranje dokumenta ili odaberite fotografiju dokumenta iz galerije","fromCamera":"Sa kamere","fromGallery":"Iz galerije","cameraConnection":"Provjerite je li kamera ispravno spojena.","documentProcessing":"Obrada dokumenta...","positionDocumentCenter":"Postavite dokument u sredinu","flipDocument":"Okrenite dokument","processingFinished":"Obrada je završena.","uploadPhoto":"Uploadujte sliku","useCameraOrGallery":"Upotrijebite kameru svog uređaja ili odaberite fotografiju iz galerije","detectingDocument":"Prepoznavanje dokumenta...","versionNotSupported":"Vaša verzija preglednika nije podržana","updateBrowser":"Ažurirajte verziju preglednika","largeFile":"Ova je datoteka prevelika za prijenos","selectSmallerFile":"Odaberite manju datoteku","licenseError":"Došlo je do pogreške u licenci","licenseExpired":"Licenca se ne može pronaći ili je istekla","fileCorrupt":"Ova datoteka je oštećena ili nije podržana","selectAnotherFile":"Odaberite drugu datoteku","noFocus":"Nema fokusa kamere","incorrectCameraId":"Nije pronađena kamera s navedenim ID-om","checkCameraId":"Provjerite točnost navedenog ID-a kamere"}'),jr=JSON.parse('{"placeDocumentIntoFrame":"Plasser dokumentet i rammen","holdDocumentStraight":"Hold dokumentet rett","glaresOnDocument":"Unngå gjenskinn på dokumentet","preparingCamera":"Forbereder kameraet...","processing":"Behandler...","moveCloser":"Kom nærmere","timeout":"Pause","somethingWentWrong":"Noe gikk galt","preparingService":"Forbereder tjenesten...","success":"Suksess!","cameraUnavailable":"Kameraet er ikke tilgjengelig!","allowAccessToCamera":"Gi tilgang til kameraet og last inn denne siden på nytt for å fortsette.","error":"Feil!","tryAgain":"Prøv igjen","noCameraAvailable":"Ingen kamera tilgjengelig","photoCapturedSuccessfully":"Bildet er tatt.","scanIDInBrowser":"Skann en ID i nettleseren din","useYourDeviceCamera":"Bruk enhetskameraet til å skanne et dokument eller velg et bilde av dokumentet fra galleriet","fromCamera":"Fra kamera","fromGallery":"Fra galleri","cameraConnection":"Kontroller at kameraet er riktig tilkoblet.","documentProcessing":"Dokumentet behandles...","positionDocumentCenter":"Plasser dokumentet i midten","flipDocument":"Vend dokumentet","processingFinished":"Behandlingen er ferdig.","uploadPhoto":"Last opp et bilde","useCameraOrGallery":"Bruk enhetens kamera eller velg et bilde fra galleriet","detectingDocument":"Finner et dokument ...","versionNotSupported":"Din nettleserversjon støttes ikke","updateBrowser":"Oppdater nettleserversjonen din","largeFile":"Denne filen er for stor til å lastes opp","selectSmallerFile":"Velg en mindre fil","licenseError":"Det har oppstått en lisensfeil","licenseExpired":"Lisensen finnes ikke eller har utløpt","fileCorrupt":"Denne filen er skadet eller støttes ikke","selectAnotherFile":"Velg en annen fil","noFocus":"Ingen kamerafokus","incorrectCameraId":"Kamera med den spesifikke ID-en ble ikke funnet","checkCameraId":"Sjekk om den spesifikke kamera-ID-en er korrekt"}');function Mr(e){return Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mr(e)}function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kr(r.key),r)}}function zr(e){var t=Gr();return function(){var n,r=Wr(e);if(t){var o=Wr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Mr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ur(e)}(this,n)}}function Ur(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Br(e){var t="function"==typeof Map?new Map:void 0;return Br=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Hr(e,arguments,Wr(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Vr(r,e)},Br(e)}function Hr(e,t,n){return Hr=Gr()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Vr(o,n.prototype),o},Hr.apply(null,arguments)}function Gr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Vr(e,t){return Vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vr(e,t)}function Wr(e){return Wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wr(e)}function Zr(e,t,n){return(t=Kr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kr(e){var t=function(e,t){if("object"!==Mr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Mr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Mr(t)?t:String(t)}var Yr=Zt.create("main"),qr=[fn.Z,bn.Z,pn.Z,Ve.Z,An.Z,Fe.Z,hn.Z,In.Z].reduce((function(e,t){return e+t.toString()}),""),Qr=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vr(e,t)}(l,t);var n,r,i,a=zr(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),Zr(Ur(e=a.call(this)),"_root",(0,o.s)(e.attachShadow({mode:"open"}))),Zr(Ur(e),"_mounted",!1),Zr(Ur(e),"_translations",null),Zr(Ur(e),"_settings",{}),e}return n=l,i=[{key:"observedAttributes",get:function(){return Object.values(P)}}],(r=[{key:"onEvent",value:function(e){var t=de("document-reader",e);this.dispatchEvent(t),Yr("Component event: ".concat(JSON.stringify(t.detail)))}},{key:"attributeChangedCallback",value:function(e){var t,n=this,r=this.getAttribute(e),o=ue(r),i=(Zr(t={},P.locale,(function(){r&&(n._settings.locale=r)})),Zr(t,P.multiple,(function(){n._settings.multipleFileInput=o})),Zr(t,P.license,(function(){r&&(n._settings.devLicense=r)})),Zr(t,P.copyright,(function(){n._settings.regulaLogo=o})),Zr(t,P.startScreen,(function(){n._settings.startScreen=o})),Zr(t,P.internalScenario,(function(){r&&(n._settings.internalScenario=r)})),Zr(t,P.multipageProcessing,(function(){n._settings.multipageProcessing=o})),Zr(t,P.cameraId,(function(){r&&(n._settings.cameraId=r)})),Zr(t,P.changeCamera,(function(){n._settings.changeCameraButton=o})),Zr(t,P.closeButton,(function(){n._settings.closeButton=o})),Zr(t,P.captureButton,(function(){n._settings.captureButton=o})),t);i[e]&&i[e](),this._mounted&&this.render()}},{key:"connectedCallback",value:function(){var e=this;setTimeout((function(){e.render(),e._mounted=!0,e.onEvent({action:N.ELEMENT_VISIBLE,data:null})}))}},{key:"translations",get:function(){return this._translations},set:function(e){this._translations=e,this._mounted&&this.render()}},{key:"settings",get:function(){return this._settings},set:function(e){this._settings=Ce(this._settings,e),this._mounted&&this.render()}},{key:"render",value:function(){this._root.render((0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)("style",{children:qr}),(0,ze.jsx)(or,{dictionaries:e,onEvent:this.onEvent.bind(this),copyright:this._settings.regulaLogo,locale:this._settings.locale,internalScenario:this._settings.internalScenario,multipageProcessing:this._settings.multipageProcessing,startScreen:this._settings.startScreen,multiple:this._settings.multipleFileInput,license:this._settings.devLicense,cameraId:this._settings.cameraId,changeCamera:this._settings.changeCameraButton,closeButton:this._settings.closeButton,captureButton:this._settings.captureButton,translations:this._translations})]}))}},{key:"disconnectedCallback",value:function(){var e=this;setTimeout((function(){return e._root.unmount()})),Zt.saveLogs()}}])&&Fr(n.prototype,r),i&&Fr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),l}(Br(HTMLElement));function Xr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $r(e,t)}(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 $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Jr=function(e){var t=e.onStatusChange,n=e.onCapture,r=ln(),o=r.onEvent,i=r.cameraId,a=r.changeCamera,l=r.startScreen,s=Xr((0,xe.useState)(!1),2),p=s[0],h=s[1],m=Xr((0,xe.useState)({videoElement:null,videoParams:{width:0,height:0},videoContainerParams:{width:0,height:0}}),2),v=m[0],y=m[1],g=Xr((0,xe.useState)({videoStatus:f.PREPARING,camera:{deviceId:"",facing:void 0,groupId:"",label:""},sortedDevices:null}),2),b=g[0],w=g[1],S=Xr((0,xe.useState)(i),2),E=S[0],C=S[1],k=(0,xe.useCallback)((function(){return h(!p)}),[p]),x=(0,xe.useCallback)((function(){o({action:N.CAMERA_PROCESS_CLOSED,data:null}),l&&t(I.CHOOSE_INPUT_SOURCE)}),[l]),A=(0,xe.useCallback)((function(){if(v.videoElement){var e=Se(v.videoElement,u.BASE64),r=e.raw,o=e.mimeType;n([{raw:r,mimeType:o}]),t(I.SUCCESS)}}),[v]),P=(0,xe.useCallback)((function(){if(b.sortedDevices){var e=Ee(b.sortedDevices,b.camera.deviceId);e&&C(e)}}),[b.camera]),T=(0,xe.useCallback)((function(e){o({action:N.PROCESS_FINISHED,data:{status:c.ERROR,reason:e}})}),[]);return(0,ze.jsx)(Et,{mirroring:p,onChangeMirroring:k,status:O.SNAPSHOT,videoStatusParams:b,onCameraSnapshot:A,isServiceInitialized:!0,onClose:x,onChangeCamera:P,showChangeCameraButton:a,videoElementParams:v,children:(0,ze.jsx)(Be,{onVideoSizeChange:y,onVideoStatusChange:w,resolution:_.FULL_HD,mirroring:p,onFailStatus:T,mode:d.environment,cameraId:E})})};function eo(e){return eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eo(e)}function to(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==eo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===eo(i)?i:String(i)),r)}var o,i}function no(e,t,n){return t&&to(e.prototype,t),n&&to(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ro=no((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mimeType=t.split(";")[0].replace("data:",""),this.extension=this.mimeType.split("/")[1],this.raw=t.substring(t.indexOf(",")+1)}));function oo(e){return oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oo(e)}function io(){io=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new k(o||[]);return r(a,"_invoke",{value:_(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(x){return{type:"throw",arg:x}}}e.wrap=u;var f={};function d(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(N([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var s=c(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==oo(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,l,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function ao(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function lo(){var e;return e=io().mark((function e(t){var n,r,o;return io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=io().mark((function e(r){var o;return io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=new Promise((function(e,n){var o=t.item(r);if(o){var i=URL.createObjectURL(o),a=new Image;a.onload=function(){var t=new FileReader;t.readAsDataURL(o),t.onload=function(){if("string"==typeof t.result){var r=new ro(t.result),o=r.raw,a=r.mimeType;e({raw:o,mimeType:a})}else n(new xt(h.INCORRECT_FILE));URL.revokeObjectURL(i)},t.onerror=function(){return n(new xt(h.INCORRECT_FILE))}},a.src=i,a.onerror=function(){return n(new xt(h.INCORRECT_FILE))}}})),n.push(o);case 2:case"end":return e.stop()}}),e)})),o=0;case 3:if(!(o<t.length)){e.next=8;break}return e.delegateYield(r(o),"t0",5);case 5:o++,e.next=3;break;case 8:return e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)})),lo=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ao(i,r,o,a,l,"next",e)}function l(e){ao(i,r,o,a,l,"throw",e)}a(void 0)}))},lo.apply(this,arguments)}function so(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uo(e,t)}(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 uo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var co=function(e){var t=e.onStatusChange,n=e.onCapture,r=e.images,o=e.onError,i=so((0,xe.useState)([]),2),a=i[0],l=i[1],s=(0,We.useLocalize)().translate;return(0,xe.useEffect)((function(){null==r||!r.length||null!=a&&a.length||function(e){return lo.apply(this,arguments)}(r).then((function(e){Promise.all(e).then((function(e){l(e)})).catch((function(e){o(e)}))})),a.length&&(n(a),t(I.SUCCESS))}),[r,a]),(0,ze.jsx)(Tn,{title:s("processing")})};function fo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return po(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return po(e,t)}(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 po(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ho=ce(Wn,Un)((function(e){var t=e.direction,n=ln(),r=n.onEvent,o=n.startScreen,i=n.multiple,a=n.copyright,l=n.closeButton,s=(0,We.useLocalize)().translate,u=fo((0,xe.useState)(o?I.CHOOSE_INPUT_SOURCE:I.CAMERA_PROCESSING),2),f=u[0],d=u[1],p=fo((0,xe.useState)(null),2),h=p[0],m=p[1],v=fo((0,xe.useState)([{raw:"",mimeType:""}]),2),y=v[0],g=v[1],b=(0,xe.useCallback)((function(e){m(e),r({action:N.FILE_PROCESS_STARTED,data:null}),d(I.FILE_PROCESSING)}),[]),w=(0,xe.useCallback)((function(){r({action:N.PRESS_CAMERA_BUTTON,data:null}),r({action:N.CAMERA_PROCESS_STARTED,data:null}),d(I.CAMERA_PROCESSING)}),[]),_=(0,xe.useCallback)((function(e){var t=z[e.type]||I.UNKNOWN_ERROR;d(t),r({action:N.PROCESS_FINISHED,data:{status:c.ERROR,reason:e.type}})}),[]),S=(0,xe.useCallback)((function(){m(null),g([{raw:"",mimeType:""}]),d(o?I.CHOOSE_INPUT_SOURCE:I.CAMERA_PROCESSING),r({action:N.PRESS_RETRY_BUTTON,data:null})}),[o]),E=(0,xe.useCallback)((function(){r({action:N.CLOSE,data:null})}),[]);return(0,xe.useEffect)((function(){f===I.SUCCESS&&r({action:N.PROCESS_FINISHED,data:{status:c.OK,response:y}})}),[f,y]),(0,ze.jsx)(Xn,{onError:_,supportedBrowserVersions:B,children:(0,ze.jsx)(dn,{completionStatus:f,onClose:E,copyright:a,direction:t,closeButton:l,children:f===I.CHOOSE_INPUT_SOURCE?(0,ze.jsx)(wn,{onStart:w,onFileImageSet:b,title:s("uploadPhoto"),subtitle:s("useCameraOrGallery"),multiple:i}):f===I.CAMERA_PROCESSING?(0,ze.jsx)(Jr,{onStatusChange:d,onCapture:g}):f===I.FILE_PROCESSING?(0,ze.jsx)(co,{onStatusChange:d,onCapture:g,images:h,onError:_}):f===I.SUCCESS?(0,ze.jsx)(gn,{type:"verified",title:s("success"),subtitle:s("photoCapturedSuccessfully")}):f===I.NOT_SUPPORTED_ERROR?(0,ze.jsx)(gn,{type:"error",title:s("versionNotSupported"),subtitle:s("updateBrowser")}):f===I.INCORRECT_FILE_ERROR?(0,ze.jsx)(gn,{onReset:S,type:"error",title:s("fileCorrupt"),subtitle:s("selectAnotherFile")}):(0,ze.jsx)(gn,{onReset:S,type:"error",title:s("error"),subtitle:s("somethingWentWrong")})})})}));function mo(e){return mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mo(e)}function vo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ko(r.key),r)}}function yo(e){var t=_o();return function(){var n,r=Eo(e);if(t){var o=Eo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===mo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return go(e)}(this,n)}}function go(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bo(e){var t="function"==typeof Map?new Map:void 0;return bo=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return wo(e,arguments,Eo(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),So(r,e)},bo(e)}function wo(e,t,n){return wo=_o()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&So(o,n.prototype),o},wo.apply(null,arguments)}function _o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function So(e,t){return So=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},So(e,t)}function Eo(e){return Eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Eo(e)}function Co(e,t,n){return(t=ko(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ko(e){var t=function(e,t){if("object"!==mo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mo(t)?t:String(t)}var No=Zt.create("main"),Oo=[fn.Z,bn.Z,pn.Z,Ve.Z,An.Z,Fe.Z,hn.Z,In.Z].reduce((function(e,t){return e+t.toString()}),""),xo=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&So(e,t)}(l,t);var n,r,i,a=yo(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),Co(go(e=a.call(this)),"_root",(0,o.s)(e.attachShadow({mode:"open"}))),Co(go(e),"_mounted",!1),Co(go(e),"_translations",null),Co(go(e),"_settings",{}),e}return n=l,i=[{key:"observedAttributes",get:function(){return Object.values(T)}}],(r=[{key:"onEvent",value:function(e){var t=de("camera-snapshot",e);this.dispatchEvent(t),No("Component event: ".concat(JSON.stringify(t.detail)))}},{key:"attributeChangedCallback",value:function(e){var t,n=this,r=this.getAttribute(e),o=ue(r),i=(Co(t={},T.locale,(function(){r&&(n._settings.locale=r)})),Co(t,T.multiple,(function(){n._settings.multipleFileInput=o})),Co(t,T.copyright,(function(){n._settings.regulaLogo=o})),Co(t,T.startScreen,(function(){n._settings.startScreen=o})),Co(t,T.cameraId,(function(){r&&(n._settings.cameraId=r)})),Co(t,T.changeCamera,(function(){n._settings.changeCameraButton=o})),Co(t,T.closeButton,(function(){n._settings.closeButton=o})),t);i[e]&&i[e](),this._mounted&&this.render()}},{key:"connectedCallback",value:function(){var e=this;setTimeout((function(){e.render(),e._mounted=!0,e.onEvent({action:N.ELEMENT_VISIBLE,data:null})}))}},{key:"translations",get:function(){return this._translations},set:function(e){this._translations=e,this._mounted&&this.render()}},{key:"settings",get:function(){return this._settings},set:function(e){this._settings=Ce(this._settings,e),this._mounted&&this.render()}},{key:"render",value:function(){this._root.render((0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)("style",{children:Oo}),(0,ze.jsx)(ho,{dictionaries:e,onEvent:this.onEvent.bind(this),copyright:this._settings.regulaLogo,locale:this._settings.locale,startScreen:this._settings.startScreen,multiple:this._settings.multipleFileInput,cameraId:this._settings.cameraId,changeCamera:this._settings.changeCameraButton,closeButton:this._settings.closeButton,translations:this._translations})]}))}},{key:"disconnectedCallback",value:function(){var e=this;setTimeout((function(){return e._root.unmount()})),Zt.saveLogs()}}])&&vo(n.prototype,r),i&&vo(n,i),Object.defineProperty(n,"prototype",{writable:!1}),l}(bo(HTMLElement));function Ao(e){return Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ao(e)}function Io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Ao(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Ao(i)?i:String(i)),r)}var o,i}function Po(e){var t=Lo();return function(){var n,r=jo(e);if(t){var o=jo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ao(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function To(e){var t="function"==typeof Map?new Map:void 0;return To=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Ro(e,arguments,jo(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Do(r,e)},To(e)}function Ro(e,t,n){return Ro=Lo()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Do(o,n.prototype),o},Ro.apply(null,arguments)}function Lo(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Do(e,t){return Do=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Do(e,t)}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jo(e)}var Mo=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Do(e,t)}(i,e);var t,n,r,o=Po(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this))._root=e.attachShadow({mode:"open"});var t="\n display: block;\n position: fixed;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n overflow: auto;\n z-index: 100;\n ";return e._root.innerHTML="\n <style>\n *, *::before, *::after {\n box-sizing: border-box;\n }\n :host {\n ".concat(t,";\n }\n fullscreen-container {\n ").concat(t,";\n }\n </style>\n <slot />\n "),e}return t=i,n&&Io(t.prototype,n),r&&Io(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(To(HTMLElement)),Fo=function(e){return e[e.UV_LUMINESCENCE=1]="UV_LUMINESCENCE",e[e.IR_B900=2]="IR_B900",e[e.IMAGE_PATTERN=4]="IMAGE_PATTERN",e[e.AXIAL_PROTECTION=8]="AXIAL_PROTECTION",e[e.UV_FIBERS=16]="UV_FIBERS",e[e.IR_VISIBILITY=32]="IR_VISIBILITY",e[e.OCR_SECURITY_TEXT=64]="OCR_SECURITY_TEXT",e[e.IPI=128]="IPI",e[e.PHOTO_EMBED_TYPE=512]="PHOTO_EMBED_TYPE",e[e.HOLOGRAMS=4096]="HOLOGRAMS",e[e.PHOTO_AREA=8192]="PHOTO_AREA",e[e.PORTRAIT_COMPARISON=32768]="PORTRAIT_COMPARISON",e[e.BARCODE_FORMAT_CHECK=65536]="BARCODE_FORMAT_CHECK",e[e.KINEGRAM=131072]="KINEGRAM",e[e.LETTER_SCREEN=262144]="LETTER_SCREEN",e}({}),zo=function(e){return e[e.ERROR=0]="ERROR",e[e.OK=1]="OK",e[e.WAS_NOT_DONE=2]="WAS_NOT_DONE",e}({}),Uo=function(e){return e[e.LATIN=0]="LATIN",e[e.AFRIKAANS=1078]="AFRIKAANS",e[e.ALBANIAN=1052]="ALBANIAN",e[e.ARABIC_ALGERIA=5121]="ARABIC_ALGERIA",e[e.ARABIC_BAHRAIN=15361]="ARABIC_BAHRAIN",e[e.ARABIC_EGYPT=3073]="ARABIC_EGYPT",e[e.ARABIC_IRAQ=2049]="ARABIC_IRAQ",e[e.ARABIC_JORDAN=11265]="ARABIC_JORDAN",e[e.ARABIC_KUWAIT=13313]="ARABIC_KUWAIT",e[e.ARABIC_LEBANON=12289]="ARABIC_LEBANON",e[e.ARABIC_LIBYA=4097]="ARABIC_LIBYA",e[e.ARABIC_MOROCCO=6145]="ARABIC_MOROCCO",e[e.ARABIC_OMAN=8193]="ARABIC_OMAN",e[e.ARABIC_QATAR=16385]="ARABIC_QATAR",e[e.ARABIC_SAUDI_ARABIA=1025]="ARABIC_SAUDI_ARABIA",e[e.ARABIC_SYRIA=10241]="ARABIC_SYRIA",e[e.ARABIC_TUNISIA=7169]="ARABIC_TUNISIA",e[e.ARABIC_UAE=4337]="ARABIC_UAE",e[e.ARABIC_YEMEN=9217]="ARABIC_YEMEN",e[e.ARABIC_ARMENIAN=1067]="ARABIC_ARMENIAN",e[e.AZERI_CYRILIC=2092]="AZERI_CYRILIC",e[e.AZERI_LATIN=1068]="AZERI_LATIN",e[e.BASQUE=1069]="BASQUE",e[e.BELARUSIAN=1059]="BELARUSIAN",e[e.BULGARIAN=1026]="BULGARIAN",e[e.CATALAN=1027]="CATALAN",e[e.CHINESE_HONGKONG_SAR=3076]="CHINESE_HONGKONG_SAR",e[e.CHINESE_MACAO_SAR=5124]="CHINESE_MACAO_SAR",e[e.CHINESE=2052]="CHINESE",e[e.CHINESE_SINGAPORE=4100]="CHINESE_SINGAPORE",e[e.CHINESE_TAIWAN=1028]="CHINESE_TAIWAN",e[e.CROATIAN=1050]="CROATIAN",e[e.CZECH=1029]="CZECH",e[e.DANISH=1030]="DANISH",e[e.DIVEHI=1125]="DIVEHI",e[e.DUTCH_BELGIUM=2067]="DUTCH_BELGIUM",e[e.DUTCH_NETHERLANDS=1043]="DUTCH_NETHERLANDS",e[e.ENGLISH_AUSTRALIA=3081]="ENGLISH_AUSTRALIA",e[e.ENGLISH_BELIZE=10249]="ENGLISH_BELIZE",e[e.ENGLISH_CANADA=4105]="ENGLISH_CANADA",e[e.ENGLISH_CARRIBEAN=9225]="ENGLISH_CARRIBEAN",e[e.ENGLISH_IRELAND=6153]="ENGLISH_IRELAND",e[e.ENGLISH_JAMAICA=8201]="ENGLISH_JAMAICA",e[e.ENGLISH_NEW_ZEALAND=5129]="ENGLISH_NEW_ZEALAND",e[e.ENGLISH_PHILIPPINES=13321]="ENGLISH_PHILIPPINES",e[e.ENGLISH_SOUTH_AFRICA=7177]="ENGLISH_SOUTH_AFRICA",e[e.ENGLISH_TRINIDAD=11273]="ENGLISH_TRINIDAD",e[e.ENGLISH_UK=2057]="ENGLISH_UK",e[e.ENGLISH_US=1033]="ENGLISH_US",e[e.ENGLISH_ZIMBABWE=12297]="ENGLISH_ZIMBABWE",e[e.ESTONIAN=1061]="ESTONIAN",e[e.FAEROESE=1080]="FAEROESE",e[e.FARSI=1065]="FARSI",e[e.FINNISH=1035]="FINNISH",e[e.FRENCH_BELGIUM=2060]="FRENCH_BELGIUM",e[e.FRENCH_CANADA=3084]="FRENCH_CANADA",e[e.FRENCH_FRANCE=1036]="FRENCH_FRANCE",e[e.FRENCH_LUXEMBOURG=5132]="FRENCH_LUXEMBOURG",e[e.FRENCH_MONACO=6156]="FRENCH_MONACO",e[e.FRENCH_SWITZERLAND=4108]="FRENCH_SWITZERLAND",e[e.FYRO_MACEDONIAN=1071]="FYRO_MACEDONIAN",e[e.GALICIAN=1110]="GALICIAN",e[e.GEORGIAN=1079]="GEORGIAN",e[e.GERMAN_AUSTRIA=3079]="GERMAN_AUSTRIA",e[e.GERMAN_GERMANY=1031]="GERMAN_GERMANY",e[e.GERMAN_LIECHTENSTEIN=5127]="GERMAN_LIECHTENSTEIN",e[e.GERMAN_LUXEMBOURG=4103]="GERMAN_LUXEMBOURG",e[e.GERMAN_SWITZERLAND=2055]="GERMAN_SWITZERLAND",e[e.GREEK=1032]="GREEK",e[e.GUJARATI=1095]="GUJARATI",e[e.HEBREW=1037]="HEBREW",e[e.HINDI_INDIA=1081]="HINDI_INDIA",e[e.HUNGARIAN=1038]="HUNGARIAN",e[e.ICELANDIC=1039]="ICELANDIC",e[e.INDONESIAN=1057]="INDONESIAN",e[e.ITALIAN_ITALY=1040]="ITALIAN_ITALY",e[e.ITALIAN_SWITZERLAND=2064]="ITALIAN_SWITZERLAND",e[e.JAPANESE=1041]="JAPANESE",e[e.KANNADA=1099]="KANNADA",e[e.KAZAKH=1087]="KAZAKH",e[e.KONKANI=1111]="KONKANI",e[e.KOREAN=1042]="KOREAN",e[e.KYRGYZ_CYRILICK=1088]="KYRGYZ_CYRILICK",e[e.LATVIAN=1062]="LATVIAN",e[e.LITHUANIAN=1063]="LITHUANIAN",e[e.MALAY_MALAYSIA=1086]="MALAY_MALAYSIA",e[e.MALAY_BRUNEI_DARUSSALAM=2110]="MALAY_BRUNEI_DARUSSALAM",e[e.MARATHI=1102]="MARATHI",e[e.MONGOLIAN_CYRILIC=1104]="MONGOLIAN_CYRILIC",e[e.NORWEGIAN_BOKMAL=1044]="NORWEGIAN_BOKMAL",e[e.NORWEGIAN_NYORSK=2068]="NORWEGIAN_NYORSK",e[e.POLISH=1045]="POLISH",e[e.PORTUGUESE_BRAZIL=1046]="PORTUGUESE_BRAZIL",e[e.PORTUGUESE_PORTUGAL=2070]="PORTUGUESE_PORTUGAL",e[e.PUNJABI=1094]="PUNJABI",e[e.RHAETO_ROMANIC=1047]="RHAETO_ROMANIC",e[e.ROMANIAN=1048]="ROMANIAN",e[e.RUSSIAN=1049]="RUSSIAN",e[e.SANSKRIT=1103]="SANSKRIT",e[e.SERBIAN_CYRILIC=3098]="SERBIAN_CYRILIC",e[e.SERBIAN_LATIN=2074]="SERBIAN_LATIN",e[e.SLOVAK=1051]="SLOVAK",e[e.SLOVENIAN=1060]="SLOVENIAN",e[e.SPANISH_ARGENTINA=11274]="SPANISH_ARGENTINA",e[e.SPANISH_BOLIVIA=16394]="SPANISH_BOLIVIA",e[e.SPANISH_CHILE=13322]="SPANISH_CHILE",e[e.SPANICH_COLOMBIA=9226]="SPANICH_COLOMBIA",e[e.SPANISH_COSTA_RICA=5130]="SPANISH_COSTA_RICA",e[e.SPANISH_DOMINICAN_REPUBLIC=7178]="SPANISH_DOMINICAN_REPUBLIC",e[e.SPANISH_ECUADOR=12298]="SPANISH_ECUADOR",e[e.SPANISH_EL_SALVADOR=17418]="SPANISH_EL_SALVADOR",e[e.SPANISH_GUATEMALA=4106]="SPANISH_GUATEMALA",e[e.SPANISH_HONDURAS=18442]="SPANISH_HONDURAS",e[e.SPANISH_MEXICO=2058]="SPANISH_MEXICO",e[e.SPANISH_NICARAGUA=19466]="SPANISH_NICARAGUA",e[e.SPANISH_PANAMA=6154]="SPANISH_PANAMA",e[e.SPANISH_PARAGUAY=15370]="SPANISH_PARAGUAY",e[e.SPANISH_PERU=10250]="SPANISH_PERU",e[e.SPANISH_PUERTO_RICO=20490]="SPANISH_PUERTO_RICO",e[e.SPANISH_TRADITIONAL_SORT=1034]="SPANISH_TRADITIONAL_SORT",e[e.SPANISH_INTERNATIONAL_SORT=3082]="SPANISH_INTERNATIONAL_SORT",e[e.SPANISH_URUGUAY=14346]="SPANISH_URUGUAY",e[e.SPANISH_VENEZUELA=8202]="SPANISH_VENEZUELA",e[e.SWAHILI=1089]="SWAHILI",e[e.SWEDISH=1053]="SWEDISH",e[e.SWEDISH_FINLAND=2077]="SWEDISH_FINLAND",e[e.SYRIAC=1114]="SYRIAC",e[e.TAMIL=1097]="TAMIL",e[e.TATAR=1092]="TATAR",e[e.TELUGU=1098]="TELUGU",e[e.THAI_THAILAND=1054]="THAI_THAILAND",e[e.TURKISH=1055]="TURKISH",e[e.TAJIK_CYRILLIC=1064]="TAJIK_CYRILLIC",e[e.TURKMEN=1090]="TURKMEN",e[e.UKRAINIAN=1058]="UKRAINIAN",e[e.URDU=1056]="URDU",e[e.UZBEK_CYRILIC=2115]="UZBEK_CYRILIC",e[e.UZBEK_LATIN=1091]="UZBEK_LATIN",e[e.VIETNAMESE=1066]="VIETNAMESE",e[e.CTC_SIMPLIFIED=50001]="CTC_SIMPLIFIED",e[e.CTC_TRADITIONAL=50002]="CTC_TRADITIONAL",e}({}),Bo=function(e){return e[e.DOCUMENT_IMAGE=1]="DOCUMENT_IMAGE",e[e.IMAGE_QUALITY=30]="IMAGE_QUALITY",e[e.STATUS=33]="STATUS",e[e.TEXT=36]="TEXT",e[e.IMAGES=37]="IMAGES",e[e.MRZ_TEXT=3]="MRZ_TEXT",e[e.VISUAL_TEXT=17]="VISUAL_TEXT",e[e.BARCODE_TEXT=18]="BARCODE_TEXT",e[e.RFID_TEXT=102]="RFID_TEXT",e[e.LEXICAL_ANALYSIS=15]="LEXICAL_ANALYSIS",e[e.VISUAL_GRAPHICS=6]="VISUAL_GRAPHICS",e[e.BARCODE_GRAPHICS=19]="BARCODE_GRAPHICS",e[e.RFID_GRAPHICS=103]="RFID_GRAPHICS",e[e.DOCUMENT_TYPE_CANDIDATES=8]="DOCUMENT_TYPE_CANDIDATES",e[e.DOCUMENT_TYPE=9]="DOCUMENT_TYPE",e[e.AUTHENTICITY=20]="AUTHENTICITY",e[e.DOCUMENT_POSITION=85]="DOCUMENT_POSITION",e[e.BARCODES=5]="BARCODES",e[e.LICENSE=50]="LICENSE",e[e.ENCRYPTED_RCL=49]="ENCRYPTED_RCL",e}({}),Ho=function(e){return e.MRZ="MRZ",e.VISUAL="VISUAL",e.BARCODE="BARCODE",e.RFID="RFID",e.MAGNETIC="MAGNETIC",e}({});function Go(e){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Go(e)}function Vo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Wo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Go(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Go(i)?i:String(i)),r)}var o,i}var Ko={0:"Latin",1078:"Afrikaans",1052:"Albanian",5121:"Arabic (Algeria)",15361:"Arabic (Bahrain)",3073:"Arabic (Egypt)",2049:"Arabic (Iraq)",11265:"Arabic (Jordan)",13313:"Arabic (Kuwait)",12289:"Arabic (Lebanon)",4097:"Arabic (Libya)",6145:"Arabic (Morocco)",8193:"Arabic (Oman)",16385:"Arabic (Qatar)",1025:"Arabic (Saudi Arabia)",10241:"Arabic (Syria)",7169:"Arabic (Tunisia)",14337:"Arabic (U.A.E.)",9217:"Arabic (Yemen)",1067:"Arabic Armenian",2092:"Azeri (Cyrillic)",1068:"Azeri (Latin)",1069:"Basque",1059:"Belarusian",1026:"Bulgarian",1027:"Catalan",3076:"Chinese (HongKong S.A.R.)",5124:"Chinese (Macao S.A.R.)",2052:"Chinese",4100:"Chinese (Singapore)",1028:"Chinese (Taiwan)",1050:"Croatian",1029:"Czech",1030:"Danish",1125:"Divehi",2067:"Dutch (Belgium)",1043:"Dutch (Netherlands)",3081:"English (Australia)",10249:"English (Belize)",4105:"English (Canada)",9225:"English (Caribbean)",6153:"English (Ireland)",8201:"English (Jamaica)",5129:"English (New Zealand)",13321:"English (Philippines)",7177:"English (South Africa)",11273:"English (Trinidad)",2057:"English (United Kingdom)",1033:"English (United States)",12297:"English (Zimbabwe)",1061:"Estonian",1080:"Faroese",1065:"Farsi",1035:"Finnish",2060:"French (Belgium)",3084:"French (Canada)",1036:"French (France)",5132:"French (Luxembourg)",6156:"French (Monaco)",4108:"French (Switzerland)",1071:"FYRO Macedonian",1110:"Galician",1079:"Georgian",3079:"German (Austria)",1031:"German (Germany)",5127:"German (Liechtenstein)",4103:"German (Luxembourg)",2055:"German (Switzerland)",1032:"Greek",1095:"Gujarati",1037:"Hebrew",1081:"Hindi (India)",1038:"Hungarian",1039:"Icelandic",1057:"Indonesian",1040:"Italian (Italy)",2064:"Italian (Switzerland)",1041:"Japanese",1099:"Kannada",1087:"Kazakh",1111:"Konkani",1042:"Korean",1088:"Kyrgyz (Cyrillic)",1062:"Latvian",1063:"Lithuanian",2110:"Malay (Brunei Darussalam)",1102:"Marathi",1086:"Malay (Malaysia)",1104:"Mongolian (Cyrillic)",1044:"Norwegian (Bokmal)",2068:"Norwegian (Nynorsk)",1045:"Polish",1046:"Portuguese (Brazil)",2070:"Portuguese (Portugal)",1094:"Punjabi",1047:"Rhaeto-Romanic",1048:"Romanian",1049:"Russian",1103:"Sanskrit",3098:"Serbian (Cyrillic)",2074:"Serbian (Latin)",1051:"Slovak",1060:"Slovenian",11274:"Spanish (Argentina)",16394:"Spanish (Bolivia)",13322:"Spanish (Chile)",9226:"Spanish (Colombia)",5130:"Spanish (Costa Rica)",7178:"Spanish (Dominican Republic)",12298:"Spanish (Ecuador)",17418:"Spanish (El Salvador)",4106:"Spanish (Guatemala)",18442:"Spanish (Honduras)",3082:"Spanish (International Sort)",2058:"Spanish (Mexico)",19466:"Spanish (Nicaragua)",6154:"Spanish (Panama)",15370:"Spanish (Paraguay)",10250:"Spanish (Peru)",20490:"Spanish (Puerto Rico)",1034:"Spanish (Traditional Sort)",14346:"Spanish (Uruguay)",8202:"Spanish (Venezuela)",1089:"Swahili",1053:"Swedish",2077:"Swedish (Finland)",1114:"Syriac",1097:"Tamil",1092:"Tatar",1098:"Telugu",1054:"Thai (Thailand)",1055:"Turkish",1058:"Ukrainian",1056:"Urdu",2115:"Uzbek (Cyrillic)",1091:"Uzbek (Latin)",1066:"Vietnamese",1064:"Tajik (Cyrillic)",1090:"Turkmen",50001:"CTC Simplified",50002:"CTC Traditional",9999:"Custom"},Yo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fieldType=t.fieldType,this.fieldName=t.fieldName,this.lcid=t.lcid,this.status=t.status,this.validityStatus=t.validityStatus,this.comparisonStatus=t.comparisonStatus,this.value=t.value,this.valueList=t.valueList,this.validityList=t.validityList,this.comparisonList=t.comparisonList}var t,n,r;return t=e,n=[{key:"getValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return this.value;var n=this.getValueBySource(e);return t?null==n?void 0:n.originalValue:null==n?void 0:n.value}},{key:"sourceValidity",value:function(e){var t,n=Vo(this.validityList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.source===e)return r.status}}catch(o){n.e(o)}finally{n.f()}return zo.WAS_NOT_DONE}},{key:"crossSourceComparison",value:function(e,t){var n,r=Vo(this.comparisonList);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.sourceLeft===e&&o.sourceRight===t||o.sourceLeft===t&&o.sourceRight===e)return o.status}}catch(i){r.e(i)}finally{r.f()}return zo.WAS_NOT_DONE}},{key:"getLCIDName",value:function(){if(this.lcid)return Ko[this.lcid]||String(this.lcid)}},{key:"getValueBySource",value:function(e){var t,n=Vo(this.valueList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.source==e)return r}}catch(o){n.e(o)}finally{n.f()}}}],n&&Zo(t.prototype,n),r&&Zo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qo(e){return qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qo(e)}function Qo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Xo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==qo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===qo(i)?i:String(i)),r)}var o,i}var Jo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.validityStatus=t.validityStatus,this.comparisonStatus=t.comparisonStatus,this.availableSourceList=t.availableSourceList,this.fieldList=t.fieldList.map((function(e){return new Yo(e)}))}var t,n,r;return t=e,(n=[{key:"getField",value:function(e,t){var n,r=void 0,o=Qo(this.fieldList);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.fieldType==e){if(null!=t&&i.lcid==t)return i;if(null==t&&i.lcid==Uo.LATIN)return i;null==t&&null==r&&(r=i)}}}catch(a){o.e(a)}finally{o.f()}return r}},{key:"getFieldByName",value:function(e,t){var n,r=void 0,o=Qo(this.fieldList);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.fieldName==e){if(null!=t&&i.lcid==t)return i;if(null==t&&i.lcid==Uo.LATIN)return i;null==t&&null==r&&(r=i)}}}catch(a){o.e(a)}finally{o.f()}return r}},{key:"getFieldValue",value:function(e,t){var n;return null===(n=this.getField(e,t))||void 0===n?void 0:n.getValue()}},{key:"getFieldValueByName",value:function(e,t){var n;return null===(n=this.getFieldByName(e,t))||void 0===n?void 0:n.getValue()}}])&&$o(t.prototype,n),r&&$o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ei(e){return ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ei(e)}function ti(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ni(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ni(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ri(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==ei(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ei(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===ei(i)?i:String(i)),r)}var o,i}function ii(e,t,n){return t&&oi(e.prototype,t),n&&oi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ai=function(){function e(t){ri(this,e),this.availableSourceList=t.availableSourceList,this.fieldList=t.fieldList.map((function(e){return new li(e)}))}return ii(e,[{key:"getField",value:function(e){var t,n=ti(this.fieldList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.fieldType==e)return r}}catch(o){n.e(o)}finally{n.f()}}},{key:"getFields",value:function(e){return this.fieldList.filter((function(t){return t.fieldType==e}))}}]),e}(),li=function(){function e(t){ri(this,e),this.fieldName=t.fieldName,this.fieldType=t.fieldType,this.valueList=t.valueList}return ii(e,[{key:"getValue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t=e?this.getValueBySource(e):this.getValueBySource(Ho.RFID)||this.getValueBySource(Ho.VISUAL)||this.getValueBySource(Ho.BARCODE))return n&&t.originalValue?si(t.originalValue):si(t.value)}},{key:"getValueBySource",value:function(e){var t,n=ti(this.valueList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.source==e)return r}}catch(o){n.e(o)}finally{n.f()}}}]),e}();function si(e){return function(e){var t,n,r,o,i,a=.75*e.length,l=e.length,s=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<l;t+=4)n=Y[e.charCodeAt(t)],r=Y[e.charCodeAt(t+1)],o=Y[e.charCodeAt(t+2)],i=Y[e.charCodeAt(t+3)],c[s++]=n<<2|r>>4,c[s++]=(15&r)<<4|o>>2,c[s++]=(3&o)<<6|63&i;return u}(e)}function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function ci(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==ui(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ui(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===ui(i)?i:String(i)),r)}var o,i}function fi(e,t,n){return t&&ci(e.prototype,t),n&&ci(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var di=fi((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}));function pi(e){return pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pi(e)}function hi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return mi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mi(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function mi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==pi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===pi(i)?i:String(i)),r)}var o,i}var yi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}var t,n,r;return t=e,(n=[{key:"checksByElement",value:function(e){var t,n=[],r=hi(this.List);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.ElementType===e&&n.push(o)}}catch(i){r.e(i)}finally{r.f()}return n}}])&&vi(t.prototype,n),r&&vi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gi(e){return gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gi(e)}function bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==gi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===gi(i)?i:String(i)),r)}var o,i}function wi(e,t,n){return t&&bi(e.prototype,t),n&&bi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var _i=wi((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}));function Si(e){return Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Si(e)}function Ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Si(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Si(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Si(i)?i:String(i)),r)}var o,i}function Ci(e,t,n){return t&&Ei(e.prototype,t),n&&Ei(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ki=Ci((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}));function Ni(e){return Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ni(e)}function Oi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xi(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Ni(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ni(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Ni(i)?i:String(i)),r)}var o,i}var Ii=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}var t,n,r;return t=e,(n=[{key:"checksByElement",value:function(e){var t,n=[],r=Oi(this.List);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.ElementType===e&&n.push(o)}}catch(i){r.e(i)}finally{r.f()}return n}}])&&Ai(t.prototype,n),r&&Ai(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pi(e){return Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(e)}function Ti(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ri(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ri(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Pi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Pi(i)?i:String(i)),r)}var o,i}var Di=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.page_idx=n}var t,n,r;return t=e,(n=[{key:"uvLuminescenceChecks",value:function(){return this.securityFeatureOrUndefined(Fo.UV_LUMINESCENCE)}},{key:"irB900Checks",value:function(){return this.securityFeatureOrUndefined(Fo.IR_B900)}},{key:"imagePatternChecks",value:function(){return this.identOrUndefined(Fo.IMAGE_PATTERN)}},{key:"axialProtectionChecks",value:function(){return this.securityFeatureOrUndefined(Fo.AXIAL_PROTECTION)}},{key:"uvFiberChecks",value:function(){return this.fiberOrUndefined(Fo.UV_FIBERS)}},{key:"irVisibilityChecks",value:function(){return this.identOrUndefined(Fo.IR_VISIBILITY)}},{key:"ocrSecurityTextChecks",value:function(){return this.ocrSecurityTextOrUndefined(Fo.OCR_SECURITY_TEXT)}},{key:"ipiChecks",value:function(){return this.imageIdentOrUndefined(Fo.IPI)}},{key:"embedImageChecks",value:function(){return this.securityFeatureOrUndefined(Fo.PHOTO_EMBED_TYPE)}},{key:"hologramsChecks",value:function(){return this.securityFeatureOrUndefined(Fo.HOLOGRAMS)}},{key:"imageAreaChecks",value:function(){return this.securityFeatureOrUndefined(Fo.PHOTO_AREA)}},{key:"portraitComparisonChecks",value:function(){return this.identOrUndefined(Fo.PORTRAIT_COMPARISON)}},{key:"barcodeFormatCheckChecks",value:function(){return this.securityFeatureOrUndefined(Fo.BARCODE_FORMAT_CHECK)}},{key:"kinegramChecks",value:function(){return this.identOrUndefined(Fo.KINEGRAM)}},{key:"letterScreenChecks",value:function(){return this.identOrUndefined(Fo.LETTER_SCREEN)}},{key:"resultByType",value:function(e){var t,n=Ti(this.List);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.Type==e)return r}}catch(o){n.e(o)}finally{n.f()}}},{key:"fiberOrUndefined",value:function(e){var t=this.resultByType(e);if(t)return new di(t)}},{key:"identOrUndefined",value:function(e){var t=this.resultByType(e);if(t)return new yi(t)}},{key:"imageIdentOrUndefined",value:function(e){var t=this.resultByType(e);if(t)return new _i(t)}},{key:"ocrSecurityTextOrUndefined",value:function(e){var t=this.resultByType(e);if(t)return new ki(t)}},{key:"securityFeatureOrUndefined",value:function(e){var t=this.resultByType(e);if(t)return new Ii(t)}}])&&Li(t.prototype,n),r&&Li(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ji(e){return ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ji(e)}function Mi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Fi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fi(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==ji(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ji(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===ji(i)?i:String(i)),r)}var o,i}function Bi(e,t,n){return t&&Ui(e.prototype,t),n&&Ui(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Hi=function(){function e(t){var n;zi(this,e);var r=new Gi(t);this.lowLvlResponse=r,this.rawResponse=t,this.status=null===(n=r.statusResult())||void 0===n?void 0:n.Status;var o=r.textResult();o&&(this.text=new Jo(o.Text));var i=r.imagesResult();i&&(this.images=new ai(i.Images))}return Bi(e,[{key:"authenticity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.lowLvlResponse.resultByTypeAndPage(Bo.AUTHENTICITY,e);if(t)return new Di(t.AuthenticityCheckList,e)}},{key:"authenticityPerPage",value:function(){return this.lowLvlResponse.resultsByType(Bo.AUTHENTICITY).map((function(e){return new Di(e.AuthenticityCheckList,e.page_idx||0)})).sort((function(e,t){return e.page_idx-t.page_idx}))}},{key:"imageQualityChecks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.lowLvlResponse.resultByTypeAndPage(Bo.IMAGE_QUALITY,e);if(t)return t.ImageQualityCheckList}},{key:"imageQualityChecksPerPage",value:function(){return this.lowLvlResponse.resultsByType(Bo.IMAGE_QUALITY)}}]),e}(),Gi=function(){function e(t){zi(this,e),this.ContainerList=t.ContainerList,this.ProcessingFinished=t.ProcessingFinished,this.TransactionInfo=t.TransactionInfo,this.ChipPage=t.ChipPage,this.log=t.log,this.passBackObject=t.passBackObject,this.morePagesAvailable=t.morePagesAvailable}return Bi(e,[{key:"statusResult",value:function(){return this.resultByType(Bo.STATUS)}},{key:"textResult",value:function(){return this.resultByType(Bo.TEXT)}},{key:"imagesResult",value:function(){return this.resultByType(Bo.IMAGES)}},{key:"barcodeResult",value:function(){return this.resultByType(Bo.BARCODES)}},{key:"documentTypeResults",value:function(){return this.resultsByType(Bo.DOCUMENT_TYPE)}},{key:"resultByType",value:function(e){var t,n=Mi(this.ContainerList.List);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.result_type===e)return r}}catch(o){n.e(o)}finally{n.f()}}},{key:"resultByTypeAndPage",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=Mi(this.ContainerList.List);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.result_type===e&&o.page_idx==n)return o}}catch(i){r.e(i)}finally{r.f()}}},{key:"resultsByType",value:function(e){return this.ContainerList.List.filter((function(t){return t.result_type===e}))}}]),e}();function Vi(e){return Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vi(e)}function Wi(){Wi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new k(o||[]);return r(a,"_invoke",{value:_(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(x){return{type:"throw",arg:x}}}e.wrap=u;var f={};function d(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(N([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var s=c(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Vi(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,l,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Zi(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ki(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Zi(i,r,o,a,l,"next",e)}function l(e){Zi(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(n),!0).forEach((function(t){Xi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$i(r.key),r)}}function Xi(e,t,n){return(t=$i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $i(e){var t=function(e,t){if("object"!==Vi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Vi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vi(t)?t:String(t)}var Ji=Zt.create("wasm"),ea=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Xi(this,"_worker",null),Xi(this,"_tasks",[]),Xi(this,"_prepareListener",null),Xi(this,"isPrepared",!1),Xi(this,"isInitialized",!1),Xi(this,"isProcessing",!1),Xi(this,"recognizerProcessParam",{processParam:{}}),Xi(this,"imageProcessParam",{processParam:{}}),Xi(this,"version",{component:"2.4.0".trim()})}var t,n,r,o,i,a,l,s,u,c;return t=e,n=[{key:"prepareListener",get:function(){return this._prepareListener},set:function(e){this._prepareListener=e,e&&e({isPrepared:this.isPrepared})}},{key:"createPromise",value:function(e){var t=this,n={method:e.method,promise:null,resolve:null,reject:null},r=new Promise((function(e,t){n.resolve=e,n.reject=t}));n.promise=r;var o=this._tasks.map((function(e){return e.promise}));return Promise.all(o).then((function(){var o;return null===(o=t._worker)||void 0===o||o.postMessage(qi({target:v.custom,preMain:!0},e)),t._tasks.push(n),r}))}},{key:"createProcessImageRequest",value:function(e,t){var n=e.map((function(e,t){return{data:e,light:6,pageIdx:t}}));return qi(qi({},t),{},{imagesList:n})}},{key:"onWorkerMessage",value:function(e){var t=e.data.target;if(t!==v.stdout){var n=this._tasks.shift();if(null==n||!n.resolve||!n.reject)return;if(t===v.custom){var r=e.data.data.method,o=e.data.data.response;n.method===r?n.resolve(o):n.reject()}if(t===v.stderr){var i=e.data.content;Ji(JSON.stringify(i)),n.reject(new xt(h.WASM_ERROR,i))}}else Ji(JSON.stringify(e.data.content))}},{key:"prepare",value:(c=Ki(Wi().mark((function e(){var t,n,r,o=this;return Wi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=1,e.next=4,fetch("https://wasm.regulaforensics.com/document/release/6.8/f444cd9-bd0e042c/ProcMgr.worker.js");case 4:return t=e.sent,e.next=7,t.blob();case 7:n=e.sent,r=URL.createObjectURL(n),this._worker=new Worker(r),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),Ji("Creating worker error: ".concat(JSON.stringify(e.t0)));case 15:e.next=18;break;case 17:this._worker=new Worker("./ProcMgr.worker.js");case 18:return this._worker&&(this._worker.onmessage=function(e){return o.onWorkerMessage(e)},this._worker.postMessage({target:v.gl,op:"setPrefetched",preMain:!0}),this._worker.postMessage({target:v.init,URL:document.URL,currentScriptUrl:"https://wasm.regulaforensics.com/document/release/6.8/f444cd9-bd0e042c/ProcMgr.worker.js",preMain:!0})),e.next=21,this.createPromise({method:D.prepare});case 21:this.isPrepared=!0,this._prepareListener&&this._prepareListener({isPrepared:this.isPrepared});case 23:case"end":return e.stop()}}),e,this,[[1,12]])}))),function(){return c.apply(this,arguments)})},{key:"initialize",value:(u=Ki(Wi().mark((function e(t){var n,r;return Wi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createPromise({method:D.initialize,request:{systemInfo:{hostName:null===(n=document.location)||void 0===n?void 0:n.origin,license:null==t?void 0:t.license}}});case 2:return r=e.sent,this.isInitialized=0===r.license.errorCode&&r.license.status,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"processImageBase64",value:(s=Ki(Wi().mark((function e(t,n){var r,o,i;return Wi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.createProcessImageRequest(t,n),this.isProcessing=!0,e.next=4,this.createPromise({method:D.processImage,request:r});case 4:return o=e.sent,i=new Hi(o),this.isProcessing=!1,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"process",value:(l=Ki(Wi().mark((function e(t){var n,r;return Wi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isProcessing=!0,e.next=3,this.createPromise({method:D.process,request:this.recognizerProcessParam,imageDataArray:t});case 3:return n=e.sent,r=new Hi(n),this.isProcessing=!1,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"processImage",value:(a=Ki(Wi().mark((function e(t){var n,r;return Wi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isProcessing=!0,e.next=3,this.createPromise({method:D.processImage,request:this.imageProcessParam,imageDataArray:t});case 3:return n=e.sent,r=new Hi(n),this.isProcessing=!1,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"startNewPage",value:(i=Ki(Wi().mark((function e(){return Wi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createPromise({method:D.startNewPage});case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"startNewDocument",value:(o=Ki(Wi().mark((function e(){return Wi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createPromise({method:D.startNewDocument});case 2:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"shutdown",value:function(){this._worker&&this._worker.terminate(),this.isPrepared=!1,this.isInitialized=!1,this.isProcessing=!1,this._worker=null,this._tasks=[]}}],n&&Qi(t.prototype,n),r&&Qi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ta=ea;function na(e){return na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},na(e)}function ra(){ra=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new k(o||[]);return r(a,"_invoke",{value:_(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(x){return{type:"throw",arg:x}}}e.wrap=u;var f={};function d(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(N([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var s=c(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==na(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,l,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function oa(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function ia(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){oa(i,r,o,a,l,"next",e)}function l(e){oa(i,r,o,a,l,"throw",e)}a(void 0)}))}}function aa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sa(r.key),r)}}function la(e,t,n){return(t=sa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sa(e){var t=function(e,t){if("object"!==na(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==na(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===na(t)?t:String(t)}var ua=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),la(this,"_streamData",null),la(this,"_documentReaderService",new ta),la(this,"_canvas",document.createElement("canvas")),la(this,"_cameraInfo",null),la(this,"_sortedDevices",null),la(this,"_devices",null),la(this,"_videoEventListener",null),la(this,"_frameListener",null),la(this,"_pageIdx",0),la(this,"_streamParam",{cameraMode:d.environment,preferredCameraId:"",resolution:_.HD}),la(this,"isPrepared",!1),la(this,"isProcessing",!1),la(this,"isInitialized",!1),la(this,"videoElement",null),la(this,"recognizeListener",null),this.videoElement=t||null,this._documentReaderService.recognizerProcessParam=V,this._documentReaderService.imageProcessParam=W}var t,n,r,o,i,a,l,s,c,f,p;return t=e,n=[{key:"streamParam",get:function(){return this._streamParam},set:function(e){this._streamParam=Ce(this._streamParam,e)}},{key:"recognizerProcessParam",get:function(){return this._documentReaderService.recognizerProcessParam},set:function(e){this._documentReaderService.recognizerProcessParam=Ce(this._documentReaderService.recognizerProcessParam,e)}},{key:"imageProcessParam",get:function(){return this._documentReaderService.imageProcessParam},set:function(e){this._documentReaderService.imageProcessParam=Ce(this._documentReaderService.imageProcessParam,e)}},{key:"startStream",value:function(){var e=this;return new Promise(function(){var t=ia(ra().mark((function t(n,r){var o;return ra().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e._devices){t.next=5;break}return t.next=4,pe();case 4:e._devices=t.sent;case 5:if(e._sortedDevices){t.next=10;break}return t.next=8,ve(e._devices);case 8:e._sortedDevices=t.sent,e._devices.isCameraAllowed=!0;case 10:return e._cameraInfo=ge(e._streamParam.cameraMode,e._sortedDevices,e._streamParam.preferredCameraId),t.next=13,new Promise(function(){var t=ia(ra().mark((function t(n,r){var o,i;return ra().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=Oe.vU?w:0,t.next=3,ke(o);case 3:if(t.prev=3,e._cameraInfo){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,we(e._streamParam.resolution,e._cameraInfo,e._streamParam.preferredCameraId);case 8:i=t.sent,n(i),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(3),r(t.t0);case 15:case"end":return t.stop()}}),t,null,[[3,12]])})));return function(e,n){return t.apply(this,arguments)}}());case 13:e._streamData=t.sent,e._cameraInfo=e._streamData.camera,e._streamData.stream&&e.videoElement?(e.videoElement.srcObject=e._streamData.stream,e._videoEventListener=function(){e.videoElement&&(e._canvas.width=e.videoElement.videoWidth,e._canvas.height=e.videoElement.videoHeight,n())},e.videoElement.addEventListener("play",e._videoEventListener)):(o=E[e._streamData.status]||h.CAMERA_UNKNOWN_ERROR,r(new xt(o))),t.next=23;break;case 18:if(t.prev=18,t.t0=t.catch(0),!(t.t0 instanceof Error&&t.t0.name===g)){t.next=22;break}return t.abrupt("return",r(new xt(h.CAMERA_PERMISSION_DENIED,t.t0)));case 22:r(new xt(h.CAMERA_UNKNOWN_ERROR,t.t0));case 23:case"end":return t.stop()}}),t,null,[[0,18]])})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"stopStream",value:function(){var e;this._videoEventListener&&this.videoElement&&(this.videoElement.removeEventListener("play",this._videoEventListener),this._videoEventListener=null),null!==(e=this._streamData)&&void 0!==e&&e.stream&&(be(this._streamData.stream),this._streamData=null)}},{key:"startRecognizeProcess",value:(p=ia(ra().mark((function e(){var t,n,r;return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.isProcessing=!0;case 1:if(!this.isProcessing){e.next=12;break}if(this.videoElement){e.next=4;break}return e.abrupt("return");case 4:return t=Se(this.videoElement,u.UINT),n=t.imageData,e.next=7,this._documentReaderService.process(n);case 7:r=e.sent,this._frameListener?this._frameListener(r):this.stopRecognizeProcess(),this.recognizeListener&&this.recognizeListener(r),e.next=1;break;case 12:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"stopRecognizeProcess",value:function(){this.isProcessing=!1}},{key:"startNewPage",value:(f=ia(ra().mark((function e(){return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._pageIdx++,e.next=3,this._documentReaderService.startNewPage();case 3:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"startNewDocument",value:(c=ia(ra().mark((function e(){return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._documentReaderService.startNewDocument();case 2:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"switchCamera",value:(s=ia(ra().mark((function e(){return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._cameraInfo){e.next=2;break}return e.abrupt("return");case 2:if(this.stopRecognizeProcess(),this.stopStream(),this._sortedDevices){e.next=6;break}return e.abrupt("return");case 6:return this._streamParam.preferredCameraId=Ee(this._sortedDevices,this._cameraInfo.deviceId),e.next=9,this.startStream();case 9:return e.next=11,this.startRecognizeProcess();case 11:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"startRecognition",value:(l=ia(ra().mark((function e(t){var n=this;return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.startNewDocument();case 2:if(this._streamData){e.next=5;break}return e.next=5,this.startStream();case 5:return e.abrupt("return",new Promise(function(){var e=ia(ra().mark((function e(r){return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n._frameListener=function(e){var o=Dt(e,n._pageIdx,n._documentReaderService.recognizerProcessParam.processParam.multipageProcessing),i=function(){n.stopRecognition(),r(e)},a=function(){var e=ia(ra().mark((function e(){return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.startNewPage();case 2:return e.next=4,n.startRecognizeProcess();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return o===O.START_NEXT_PAGE&&t?(n.stopRecognizeProcess(),t({data:e,startNextPage:a,finishRecognition:i})):U[o]?i():n.isProcessing||n._devices||n._cameraInfo?void 0:r(null)},e.next=3,n.startRecognizeProcess();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"processImage",value:(a=ia(ra().mark((function e(t){var n,r;return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Tt(t,M,F);case 3:return n=e.sent,e.next=6,Promise.all(n);case 6:if(!((r=e.sent).reduce((function(e,t){return e+t.data.byteLength}),0)>j)){e.next=12;break}return e.abrupt("return",Promise.reject(new xt(h.FILE_SIZE)));case 12:return e.next=14,this._documentReaderService.processImage(r);case 14:return e.abrupt("return",e.sent);case 15:e.next=20;break;case 17:return e.prev=17,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 20:case"end":return e.stop()}}),e,this,[[0,17]])}))),function(e){return a.apply(this,arguments)})},{key:"stopRecognition",value:function(){this._pageIdx=0,this._cameraInfo=null,this._devices=null,this._sortedDevices=null,this.stopRecognizeProcess(),this.stopStream()}},{key:"prepare",value:(i=ia(ra().mark((function e(){return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._documentReaderService.prepare();case 2:this.isPrepared=this._documentReaderService.isPrepared;case 3:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"initialize",value:(o=ia(ra().mark((function e(t){var n;return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._documentReaderService.initialize({license:null==t?void 0:t.license});case 2:return n=e.sent,this.isInitialized=this._documentReaderService.isInitialized,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"shutdown",value:function(){this.isProcessing=!1,this.isInitialized=!1,this.isPrepared=!1,this._documentReaderService.shutdown()}}],n&&aa(t.prototype,n),r&&aa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ca=ua;function fa(e){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(e)}function da(){da=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new k(o||[]);return r(a,"_invoke",{value:_(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(x){return{type:"throw",arg:x}}}e.wrap=u;var f={};function d(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(N([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var s=c(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==fa(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,l,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function pa(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function ha(){return ma.apply(this,arguments)}function ma(){var e;return e=da().mark((function e(){var t,n,r,o,i,a;return da().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.customElements.get("document-reader"),n=window.customElements.get("camera-snapshot"),r=window.customElements.get("fullscreen-container"),t||window.customElements.define("document-reader",Qr),n||window.customElements.define("camera-snapshot",xo),r||window.customElements.define("fullscreen-container",Mo),o=window.customElements.whenDefined("document-reader"),i=window.customElements.whenDefined("camera-snapshot"),a=window.customElements.whenDefined("fullscreen-container"),e.next=11,Promise.all([o,i,a]);case 11:case"end":return e.stop()}}),e)})),ma=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){pa(i,r,o,a,l,"next",e)}function l(e){pa(i,r,o,a,l,"throw",e)}a(void 0)}))},ma.apply(this,arguments)}}();var o=r.Wo,i=r.ly,a=r.fl;export{o as DocumentReaderProcessor,i as DocumentReaderService,a as defineComponents};
2
+ var e={"../../node_modules/css-loader/dist/runtime/api.js":function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var l=0;l<this.length;l++){var u=this[l][0];null!=u&&(i[u]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},"../../node_modules/css-loader/dist/runtime/noSourceMaps.js":function(e){e.exports=function(e){return e[1]}},"../../node_modules/localize-react/dist/localize-react.js":function(e,t,n){!function(e,t){var n="default"in t?t.default:t;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a={},o="[LOCALIZE-REACT]: There are no translations for specified locale",i="[LOCALIZE-REACT] Looks like template is being used, but no value passed for ",l=/{{([^{]+[^}])}}/g;function u(e,t){if(!t)return e;if(0===Object.keys(t).length)return e;var n,r,a,o=e.match(l);return o&&0!==o.length?(n=o,r=t,a=Object.keys(r),n.map((function(e){var t=Array.prototype.slice.call(e,2,-2).join(""),n=a.find((function(e){return e===t}));return n?[e,r[n]]:(console.warn(i,e),[e,e])}))).reduce((function(e,t){var n=new RegExp(t[0],"gi");return e.replace(n,t[1])}),e):e}var s=n.createContext(),c=s.Consumer;function f(){return t.useContext(s)}e.LocalizationConsumer=c,e.LocalizationContext=s,e.LocalizationProvider=function(e){var i=e.children,l=e.disableCache,c=e.locale,f=e.translations,d=void 0===f?{}:f,p=function(e,t){if(!e)return null;if("object"===r(t[e]))return e;var n=e.toLowerCase().replace(/-/g,"_");if("object"===r(t[n]))return n;var a=n.split("_")[0];return"object"===r(t[a])?a:(console.warn(o,e),e)}(c,d),m=p?d[p]:d;function h(e,t,n){if(!m||!e)return n||e;var r="string"==typeof n?n:e,a=m[e];if("string"==typeof a)return t?u(a,t):a;var o=e.split(".");if(1===o.length)return u(r,t);for(var i=m[o[0]],l=1;l<o.length;l++)i=i&&i[o[l]];return u("string"==typeof i?i:r,t)}t.useEffect((function(){a={}}),[c,d]);var v,g=l?h:(v=h,function(e,t,n){var r=2<arguments.length&&void 0!==n?n:"",o=t?JSON.stringify(t,null,"")+e+r:e+r;if(a[o])return a[o];var i=v(e,t,r);return a[o]=i});return n.createElement(s.Provider,{value:{locale:c,translate:g,translations:d}},i)},e.Message=function(e){var t=e.defaultMessage,n=e.descriptor,r=e.values;return(0,f().translate)(n,r,t)},e.useLocalize=f,Object.defineProperty(e,"__esModule",{value:!0})}(t,n("../../node_modules/react/index.js"))},"../../node_modules/react-device-detect/dist/lib.js":function(e,t,n){var r,a=n("../../node_modules/react/index.js"),o=(r=a)&&"object"==typeof r&&"default"in r?r.default:r,i=n("../../node_modules/ua-parser-js/dist/ua-parser.min.js"),l=new i,u=l.getBrowser(),s=l.getCPU(),c=l.getDevice(),f=l.getEngine(),d=l.getOS(),p=l.getUA(),m=function(e){return l.setUA(e)},h=function(e){if(e){var t=new i(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},v=Object.freeze({ClientUAInstance:l,browser:u,cpu:s,device:c,engine:f,os:d,ua:p,setUa:m,parseUserAgent:h});function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function E(e,t){return E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},E(e,t)}function k(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(u){l=!0,a=u}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(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 x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _="mobile",O="tablet",P="smarttv",N="console",R="wearable",T="embedded",L=void 0,j={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},D={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},F={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},M=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},z=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},U=function(e){var t=z();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},B=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:M(t.vendor),model:M(t.model),os:M(n.name),osVersion:M(n.version),ua:M(r)})};var H=function(e){return e.type===_},G=function(e){return e.type===O},V=function(e){var t=e.type;return t===_||t===O},W=function(e){return e.type===P},Z=function(e){return e.type===L},K=function(e){return e.type===R},Y=function(e){return e.type===N},Q=function(e){return e.type===T},q=function(e){var t=e.vendor;return M(t)},J=function(e){var t=e.model;return M(t)},$=function(e){var t=e.type;return M(t,"browser")},X=function(e){return e.name===D.Android},ee=function(e){return e.name===D.Windows},te=function(e){return e.name===D.MAC_OS},ne=function(e){return e.name===D.WindowsPhone},re=function(e){return e.name===D.IOS},ae=function(e){var t=e.version;return M(t)},oe=function(e){var t=e.name;return M(t)},ie=function(e){return e.name===j.Chrome},le=function(e){return e.name===j.Firefox},ue=function(e){return e.name===j.Chromium},se=function(e){return e.name===j.Edge},ce=function(e){return e.name===j.Yandex},fe=function(e){var t=e.name;return t===j.Safari||t===j.MobileSafari},de=function(e){return e.name===j.MobileSafari},pe=function(e){return e.name===j.Opera},me=function(e){var t=e.name;return t===j.InternetExplorer||t===j.Ie},he=function(e){return e.name===j.MIUI},ve=function(e){return e.name===j.SamsungBrowser},ge=function(e){var t=e.version;return M(t)},ye=function(e){var t=e.major;return M(t)},be=function(e){var t=e.name;return M(t)},we=function(e){var t=e.name;return M(t)},Ce=function(e){var t=e.version;return M(t)},Se=function(){var e=z(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},Ee=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},ke=function(){var e=z();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},Ie=function(){return U("iPad")},Ae=function(){return U("iPhone")},xe=function(){return U("iPod")},_e=function(e){return M(e)};function Oe(e){var t=e||v,n=t.device,r=t.browser,a=t.os,o=t.engine,i=t.ua;return{isSmartTV:W(n),isConsole:Y(n),isWearable:K(n),isEmbedded:Q(n),isMobileSafari:de(r)||Ie(),isChromium:ue(r),isMobile:V(n)||Ie(),isMobileOnly:H(n),isTablet:G(n)||Ie(),isBrowser:Z(n),isDesktop:Z(n),isAndroid:X(a),isWinPhone:ne(a),isIOS:re(a)||Ie(),isChrome:ie(r),isFirefox:le(r),isSafari:fe(r),isOpera:pe(r),isIE:me(r),osVersion:ae(a),osName:oe(a),fullBrowserVersion:ge(r),browserVersion:ye(r),browserName:be(r),mobileVendor:q(n),mobileModel:J(n),engineName:we(o),engineVersion:Ce(o),getUA:_e(i),isEdge:se(r)||Ee(i),isYandex:ce(r),deviceType:$(n),isIOS13:ke(),isIPad13:Ie(),isIPhone13:Ae(),isIPod13:xe(),isElectron:Se(),isEdgeChromium:Ee(i),isLegacyEdge:se(r)&&!Ee(i),isWindows:ee(a),isMacOs:te(a),isMIUI:he(r),isSamsungBrowser:ve(r)}}var Pe=W(c),Ne=Y(c),Re=K(c),Te=Q(c),Le=de(u)||Ie(),je=ue(u),De=V(c)||Ie(),Fe=H(c),Me=G(c)||Ie(),ze=Z(c),Ue=Z(c),Be=X(d),He=ne(d),Ge=re(d)||Ie(),Ve=ie(u),We=le(u),Ze=fe(u),Ke=pe(u),Ye=me(u),Qe=ae(d),qe=oe(d),Je=ge(u),$e=ye(u),Xe=be(u),et=q(c),tt=J(c),nt=we(f),rt=Ce(f),at=_e(p),ot=se(u)||Ee(p),it=ce(u),lt=$(c),ut=ke(),st=Ie(),ct=Ae(),ft=xe(),dt=Se(),pt=Ee(p),mt=se(u)&&!Ee(p),ht=ee(d),vt=te(d),gt=he(u),yt=ve(u);function bt(e){var t=e||window.navigator.userAgent;return h(t)}t.KC=Xe,t.x_=$e,t.nI=Ue,t.vU=We,t.gn=Ge,t.tq=De,t.BF=qe},"../../node_modules/react-dom/cjs/react-dom.production.min.js":function(e,t,n){var r=n("../../node_modules/react/index.js"),a=n("../../node_modules/scheduler/index.js");function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 i=new Set,l={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},m={};function h(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var a=v.hasOwnProperty(t)?v[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.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,n,a,r)&&(n=null),r||null===a?function(e){return!!f.call(m,e)||!f.call(p,e)&&(d.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(g,y);v[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),x=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function j(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var D,F=Object.assign;function M(e){if(void 0===D)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var z=!1;function U(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"==typeof s.stack){for(var a=s.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,l=o.length-1;1<=i&&0<=l&&a[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(a[i]!==o[l]){if(1!==i||1!==l)do{if(i--,0>--l||a[i]!==o[l]){var u="\n"+a[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=i&&0<=l);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function B(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function H(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 E:return"Fragment";case S:return"Portal";case I:return"Profiler";case k:return"StrictMode";case O:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case x:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(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 Q(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function $(e,t){J(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function oe(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!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},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(pe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=F({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 ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(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 we=null;function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ee=null,ke=null;function Ie(e){if(e=ba(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=Ca(t),Se(e.stateNode,e.type,t))}}function Ae(e){Ee?ke?ke.push(e):ke=[e]:Ee=e}function xe(){if(Ee){var e=Ee,t=ke;if(ke=Ee=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function _e(e,t){return e(t)}function Oe(){}var Pe=!1;function Ne(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return _e(e,t,n)}finally{Pe=!1,(null!==Ee||null!==ke)&&(Oe(),xe())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=Ca(n);if(null===r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Te=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Te=!1}function je(e,t,n,r,a,o,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var De=!1,Fe=null,Me=!1,ze=null,Ue={onError:function(e){De=!0,Fe=e}};function Be(e,t,n,r,a,o,i,l,u){De=!1,Fe=null,je.apply(Ue,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(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 Ve(e){if(He(e)!==e)throw Error(o(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Ve(a),e;if(i===r)return Ve(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var l=!1,u=a.child;u;){if(u===n){l=!0,n=a,r=i;break}if(u===r){l=!0,r=a,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=a;break}if(u===r){l=!0,r=i,n=a;break}u=u.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ke=a.unstable_scheduleCallback,Ye=a.unstable_cancelCallback,Qe=a.unstable_shouldYield,qe=a.unstable_requestPaint,Je=a.unstable_now,$e=a.unstable_getCurrentPriorityLevel,Xe=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2;var st=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~a;0!==l?r=ft(l):0!==(o&=i)&&(r=ft(o))}else 0!==(i=n&~a)?r=ft(i):0!==o&&(r=ft(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=st;return 0==(4194240&(st<<=1))&&(st=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Ct,St,Et,kt,It,At=!1,xt=[],_t=null,Ot=null,Pt=null,Nt=new Map,Rt=new Map,Tt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Dt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=ba(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ft(e){var t=ya(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void It(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ba(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function zt(e,t,n){Mt(e)&&n.delete(t)}function Ut(){At=!1,null!==_t&&Mt(_t)&&(_t=null),null!==Ot&&Mt(Ot)&&(Ot=null),null!==Pt&&Mt(Pt)&&(Pt=null),Nt.forEach(zt),Rt.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ut)))}function Ht(e){function t(t){return Bt(t,e)}if(0<xt.length){Bt(xt[0],e);for(var n=1;n<xt.length;n++){var r=xt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&Bt(_t,e),null!==Ot&&Bt(Ot,e),null!==Pt&&Bt(Pt,e),Nt.forEach(t),Rt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Tt.shift()}var Gt=w.ReactCurrentBatchConfig,Vt=!0;function Wt(e,t,n,r){var a=bt,o=Gt.transition;Gt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=a,Gt.transition=o}}function Zt(e,t,n,r){var a=bt,o=Gt.transition;Gt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=a,Gt.transition=o}}function Kt(e,t,n,r){if(Vt){var a=Qt(e,t,n,r);if(null===a)Vr(e,t,r,Yt,n),jt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return _t=Dt(_t,e,t,n,r,a),!0;case"dragenter":return Ot=Dt(Ot,e,t,n,r,a),!0;case"mouseover":return Pt=Dt(Pt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Nt.set(o,Dt(Nt.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Rt.set(o,Dt(Rt.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==a;){var o=ba(a);if(null!==o&&Ct(o),null===(o=Qt(e,t,n,r))&&Vr(e,t,r,Yt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Yt=null;function Qt(e,t,n,r){if(Yt=null,null!==(e=ya(e=Ce(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($e()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,$t=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=$t,r=n.length,a="value"in Jt?Jt.value:Jt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Xt=a.slice(e,1<t?1-t:void 0)}function tn(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}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,ln,un,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(sn),fn=F({},sn,{view:0,detail:0}),dn=an(fn),pn=F({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:In,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(on=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=on=0,un=e),on)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=an(pn),hn=an(F({},pn,{dataTransfer:0})),vn=an(F({},fn,{relatedTarget:0})),gn=an(F({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(yn),wn=an(F({},sn,{data:0})),Cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function In(){return kn}var An=F({},fn,{key:function(e){if(e.key){var t=Cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:In,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),xn=an(An),_n=an(F({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=an(F({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:In})),Pn=an(F({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=F({},pn,{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:0,deltaMode:0}),Rn=an(Nn),Tn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,jn=null;c&&"documentMode"in document&&(jn=document.documentMode);var Dn=c&&"TextEvent"in window&&!jn,Fn=c&&(!Ln||jn&&8<jn&&11>=jn),Mn=String.fromCharCode(32),zn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Gn={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 Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function Wn(e,t,n,r){Ae(r),0<(t=Zr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Kn=null;function Yn(e){Mr(e,0)}function Qn(e){if(K(wa(e)))return e}function qn(e,t){if("change"===e)return t}var Jn=!1;if(c){var $n;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}$n=Xn}else $n=!1;Jn=$n&&(!document.documentMode||9<document.documentMode)}function tr(){Zn&&(Zn.detachEvent("onpropertychange",nr),Kn=Zn=null)}function nr(e){if("value"===e.propertyName&&Qn(Kn)){var t=[];Wn(t,Kn,e,Ce(e)),Ne(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Zn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Kn)}function or(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!f.call(t,a)||!lr(e[a],t[a]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(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)}function mr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=cr(n,o);var i=cr(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Y(r)||("selectionStart"in(r=vr)&&pr(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},yr&&ur(yr,r)||(yr=r,0<(r=Zr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:Cr("Animation","AnimationEnd"),animationiteration:Cr("Animation","AnimationIteration"),animationstart:Cr("Animation","AnimationStart"),transitionend:Cr("Transition","TransitionEnd")},Er={},kr={};function Ir(e){if(Er[e])return Er[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Er[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Ar=Ir("animationend"),xr=Ir("animationiteration"),_r=Ir("animationstart"),Or=Ir("transitionend"),Pr=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Pr.set(e,t),u(t,[e])}for(var Tr=0;Tr<Nr.length;Tr++){var Lr=Nr[Tr];Rr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Rr(Ar,"onAnimationEnd"),Rr(xr,"onAnimationIteration"),Rr(_r,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Or,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,l,u,s){if(Be.apply(this,arguments),De){if(!De)throw Error(o(198));var c=Fe;De=!1,Fe=null,Me||(Me=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==o&&a.isPropagationStopped())break e;Fr(a,l,s),o=u}else for(i=0;i<r.length;i++){if(u=(l=r[i]).instance,s=l.currentTarget,l=l.listener,u!==o&&a.isPropagationStopped())break e;Fr(a,l,s),o=u}}}if(Me)throw e=ze,Me=!1,ze=null,e}function zr(e,t){var n=t[ha];void 0===n&&(n=t[ha]=new Set);var r=e+"__bubble";n.has(r)||(Gr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Gr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,i.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Ur("selectionchange",!1,t))}}function Gr(e,t,n,r){switch(qt(t)){case 1:var a=Wt;break;case 4:a=Zt;break;default:a=Kt}n=a.bind(null,t,n,e),a=void 0,!Te||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===a||8===l.nodeType&&l.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var u=i.tag;if((3===u||4===u)&&((u=i.stateNode.containerInfo)===a||8===u.nodeType&&u.parentNode===a))return;i=i.return}for(;null!==l;){if(null===(i=ya(l)))return;if(5===(u=i.tag)||6===u){r=o=i;continue e}l=l.parentNode}}r=r.return}Ne((function(){var r=o,a=Ce(n),i=[];e:{var l=Pr.get(e);if(void 0!==l){var u=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=xn;break;case"focusin":s="focus",u=vn;break;case"focusout":s="blur",u=vn;break;case"beforeblur":case"afterblur":u=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=On;break;case Ar:case xr:case _r:u=gn;break;case Or:u=Pn;break;case"scroll":u=dn;break;case"wheel":u=Rn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=_n}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&(null!=(h=Re(m,d))&&c.push(Wr(m,h,p)))),f)break;m=m.return}0<c.length&&(l=new u(l,s,null,n,a),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!ya(s)&&!s[ma])&&(u||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?ya(s):null)&&(s!==(f=He(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=mn,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=_n,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?l:wa(u),p=null==s?l:wa(s),(l=new c(h,m+"leave",u,n,a)).target=f,l.relatedTarget=p,h=null,ya(a)===r&&((c=new c(d,m+"enter",s,n,a)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)e:{for(d=s,m=0,p=c=u;p;p=Kr(p))m++;for(p=0,h=d;h;h=Kr(h))p++;for(;0<m-p;)c=Kr(c),m--;for(;0<p-m;)d=Kr(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=Kr(c),d=Kr(d)}c=null}else c=null;null!==u&&Yr(i,l,u,c,!1),null!==s&&null!==f&&Yr(i,f,s,c,!0)}if("select"===(u=(l=r?wa(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=qn;else if(Vn(l))if(Jn)v=ir;else{v=ar;var g=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=or);switch(v&&(v=v(e,r))?Wn(i,v,n,a):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=r?wa(r):window,e){case"focusin":(Vn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(i,n,a);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":wr(i,n,a)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):($t="value"in(Jt=a)?Jt.value:Jt.textContent,Hn=!0)),0<(g=Zr(r,b)).length&&(b=new wn(b,e,null,n,a),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Bn(n))&&(b.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(zn=!0,Mn);case"textInput":return(e=t.data)===Mn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&Un(e,t)?(e=en(),Xt=$t=Jt=null,Hn=!1,e):null;switch(e){case"paste":default: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 Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Zr(r,"onBeforeInput")).length&&(a=new wn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=y))}Mr(i,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Re(e,n))&&r.unshift(Wr(e,o,a)),null!=(o=Re(e,t))&&r.push(Wr(e,o,a))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,a?null!=(u=Re(n,o))&&i.unshift(Wr(n,u,l)):a||null!=(u=Re(n,o))&&i.push(Wr(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,qr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(qr,"")}function $r(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,oa="function"==typeof Promise?Promise:void 0,ia="function"==typeof queueMicrotask?queueMicrotask:void 0!==oa?function(e){return oa.resolve(null).then(e).catch(la)}:ra;function la(e){setTimeout((function(){throw e}))}function ua(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Ht(t)}function sa(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ca(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fa=Math.random().toString(36).slice(2),da="__reactFiber$"+fa,pa="__reactProps$"+fa,ma="__reactContainer$"+fa,ha="__reactEvents$"+fa,va="__reactListeners$"+fa,ga="__reactHandles$"+fa;function ya(e){var t=e[da];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ma]||n[da]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ca(e);null!==e;){if(n=e[da])return n;e=ca(e)}return t}n=(e=n).parentNode}return null}function ba(e){return!(e=e[da]||e[ma])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Ca(e){return e[pa]||null}var Sa=[],Ea=-1;function ka(e){return{current:e}}function Ia(e){0>Ea||(e.current=Sa[Ea],Sa[Ea]=null,Ea--)}function Aa(e,t){Ea++,Sa[Ea]=e.current,e.current=t}var xa={},_a=ka(xa),Oa=ka(!1),Pa=xa;function Na(e,t){var n=e.type.contextTypes;if(!n)return xa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ra(e){return null!=(e=e.childContextTypes)}function Ta(){Ia(Oa),Ia(_a)}function La(e,t,n){if(_a.current!==xa)throw Error(o(168));Aa(_a,t),Aa(Oa,n)}function ja(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,G(e)||"Unknown",a));return F({},n,r)}function Da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xa,Pa=_a.current,Aa(_a,e),Aa(Oa,Oa.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ja(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,Ia(Oa),Ia(_a),Aa(_a,e)):Ia(Oa),Aa(Oa,n)}var Ma=null,za=!1,Ua=!1;function Ba(e){null===Ma?Ma=[e]:Ma.push(e)}function Ha(){if(!Ua&&null!==Ma){Ua=!0;var e=0,t=bt;try{var n=Ma;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ma=null,za=!1}catch(a){throw null!==Ma&&(Ma=Ma.slice(e+1)),Ke(Xe,Ha),a}finally{bt=t,Ua=!1}}return null}var Ga=[],Va=0,Wa=null,Za=0,Ka=[],Ya=0,Qa=null,qa=1,Ja="";function $a(e,t){Ga[Va++]=Za,Ga[Va++]=Wa,Wa=e,Za=t}function Xa(e,t,n){Ka[Ya++]=qa,Ka[Ya++]=Ja,Ka[Ya++]=Qa,Qa=e;var r=qa;e=Ja;var a=32-it(r)-1;r&=~(1<<a),n+=1;var o=32-it(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,qa=1<<32-it(t)+a|n<<a|r,Ja=o+e}else qa=1<<o|n<<a|r,Ja=e}function eo(e){null!==e.return&&($a(e,1),Xa(e,1,0))}function to(e){for(;e===Wa;)Wa=Ga[--Va],Ga[Va]=null,Za=Ga[--Va],Ga[Va]=null;for(;e===Qa;)Qa=Ka[--Ya],Ka[Ya]=null,Ja=Ka[--Ya],Ka[Ya]=null,qa=Ka[--Ya],Ka[Ya]=null}var no=null,ro=null,ao=!1,oo=null;function io(e,t){var n=Rs(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function lo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=sa(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qa?{id:qa,overflow:Ja}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rs(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function uo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function so(e){if(ao){var t=ro;if(t){var n=t;if(!lo(e,t)){if(uo(e))throw Error(o(418));t=sa(n.nextSibling);var r=no;t&&lo(e,t)?io(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(uo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!ao)return co(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(uo(e))throw po(),Error(o(418));for(;t;)io(e,t),t=sa(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=sa(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?sa(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=sa(e.nextSibling)}function mo(){ro=no=null,ao=!1}function ho(e){null===oo?oo=[e]:oo.push(e)}var vo=w.ReactCurrentBatchConfig;function go(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=ka(null),bo=null,wo=null,Co=null;function So(){Co=wo=bo=null}function Eo(e){var t=yo.current;Ia(yo),e._currentValue=t}function ko(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Io(e,t){bo=e,Co=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Ao(e){var t=e._currentValue;if(Co!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===bo)throw Error(o(308));wo=e,bo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var xo=null;function _o(e){null===xo?xo=[e]:xo.push(e)}function Oo(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,_o(t)):(n.next=a.next,a.next=n),t.interleaved=n,Po(e,r)}function Po(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var No=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function To(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ou)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Po(e,n)}return null===(a=r.interleaved)?(t.next=t,_o(r)):(t.next=a.next,a.next=t),r.interleaved=t,Po(e,n)}function Do(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Mo(e,t,n,r){var a=e.updateQueue;No=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var u=l,s=u.next;u.next=null,null===i?o=s:i.next=s,i=u;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u))}if(null!==o){var f=a.baseState;for(i=0,c=s=u=null,l=o;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(d=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=F({},f,d);break e;case 2:No=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=f):c=c.next=p,i|=d;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(d=l).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===c&&(u=f),a.baseState=u,a.firstBaseUpdate=s,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Fu|=i,e.lanes=i,e.memoizedState=f}}function zo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var Uo=(new r.Component).refs;function Bo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ho={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ts(),a=ns(e),o=Lo(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=jo(e,o,a))&&(rs(t,e,a,r),Do(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ts(),a=ns(e),o=Lo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=jo(e,o,a))&&(rs(t,e,a,r),Do(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ts(),r=ns(e),a=Lo(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=jo(e,a,r))&&(rs(t,e,r,n),Do(t,e,r))}};function Go(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(a,o))}function Vo(e,t,n){var r=!1,a=xa,o=t.contextType;return"object"==typeof o&&null!==o?o=Ao(o):(a=Ra(t)?Pa:_a.current,o=(r=null!=(r=t.contextTypes))?Na(e,a):xa),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ho,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Wo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ho.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Uo,Ro(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=Ao(o):(o=Ra(t)?Pa:_a.current,a.context=Na(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Bo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Ho.enqueueReplaceState(a,a.state,null),Mo(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Ko(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===Uo&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qo(e){return(0,e._init)(e._payload)}function qo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(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 a(e,t){return(e=Ls(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ms(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function s(e,t,n,r){var o=n.type;return o===E?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===R&&Qo(o)===t.type)?((r=a(t,n.props)).ref=Ko(e,t,n),r.return=e,r):((r=js(n.type,n.key,n.props,null,e.mode,r)).ref=Ko(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zs(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Ds(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ms(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case C:return(n=js(t.type,t.key,t.props,null,e.mode,n)).ref=Ko(e,null,t),n.return=e,n;case S:return(t=zs(t,e.mode,n)).return=e,t;case R:return d(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=Ds(t,e.mode,n,null)).return=e,t;Yo(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===a?s(e,t,n,r):null;case S:return n.key===a?c(e,t,n,r):null;case R:return p(e,t,(a=n._init)(n._payload),r)}if(te(n)||j(n))return null!==a?null:f(e,t,n,r,null);Yo(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case C:return s(t,e=e.get(null===r.key?n:r.key)||null,r,a);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case R:return m(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||j(r))return f(t,e=e.get(n)||null,r,a,null);Yo(t,r)}return null}function h(a,o,l,u){for(var s=null,c=null,f=o,h=o=0,v=null;null!==f&&h<l.length;h++){f.index>h?(v=f,f=null):v=f.sibling;var g=p(a,f,l[h],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(a,f),o=i(g,o,h),null===c?s=g:c.sibling=g,c=g,f=v}if(h===l.length)return n(a,f),ao&&$a(a,h),s;if(null===f){for(;h<l.length;h++)null!==(f=d(a,l[h],u))&&(o=i(f,o,h),null===c?s=f:c.sibling=f,c=f);return ao&&$a(a,h),s}for(f=r(a,f);h<l.length;h++)null!==(v=m(f,a,h,l[h],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?h:v.key),o=i(v,o,h),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(a,e)})),ao&&$a(a,h),s}function v(a,l,u,s){var c=j(u);if("function"!=typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var f=c=null,h=l,v=l=0,g=null,y=u.next();null!==h&&!y.done;v++,y=u.next()){h.index>v?(g=h,h=null):g=h.sibling;var b=p(a,h,y.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(a,h),l=i(b,l,v),null===f?c=b:f.sibling=b,f=b,h=g}if(y.done)return n(a,h),ao&&$a(a,v),c;if(null===h){for(;!y.done;v++,y=u.next())null!==(y=d(a,y.value,s))&&(l=i(y,l,v),null===f?c=y:f.sibling=y,f=y);return ao&&$a(a,v),c}for(h=r(a,h);!y.done;v++,y=u.next())null!==(y=m(h,a,v,y.value,s))&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),l=i(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return t(a,e)})),ao&&$a(a,v),c}return function e(r,o,i,u){if("object"==typeof i&&null!==i&&i.type===E&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case C:e:{for(var s=i.key,c=o;null!==c;){if(c.key===s){if((s=i.type)===E){if(7===c.tag){n(r,c.sibling),(o=a(c,i.props.children)).return=r,r=o;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===R&&Qo(s)===c.type){n(r,c.sibling),(o=a(c,i.props)).ref=Ko(r,c,i),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===E?((o=Ds(i.props.children,r.mode,u,i.key)).return=r,r=o):((u=js(i.type,i.key,i.props,null,r.mode,u)).ref=Ko(r,o,i),u.return=r,r=u)}return l(r);case S:e:{for(c=i.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(r,o.sibling),(o=a(o,i.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zs(i,r.mode,u)).return=r,r=o}return l(r);case R:return e(r,o,(c=i._init)(i._payload),u)}if(te(i))return h(r,o,i,u);if(j(i))return v(r,o,i,u);Yo(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,i)).return=r,r=o):(n(r,o),(o=Ms(i,r.mode,u)).return=r,r=o),l(r)):n(r,o)}}var Jo=qo(!0),$o=qo(!1),Xo={},ei=ka(Xo),ti=ka(Xo),ni=ka(Xo);function ri(e){if(e===Xo)throw Error(o(174));return e}function ai(e,t){switch(Aa(ni,t),Aa(ti,e),Aa(ei,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ia(ei),Aa(ei,t)}function oi(){Ia(ei),Ia(ti),Ia(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=ue(t,e.type);t!==n&&(Aa(ti,e),Aa(ei,n))}function li(e){ti.current===e&&(Ia(ei),Ia(ti))}var ui=ka(0);function si(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))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}var ci=[];function fi(){for(var e=0;e<ci.length;e++)ci[e]._workInProgressVersionPrimary=null;ci.length=0}var di=w.ReactCurrentDispatcher,pi=w.ReactCurrentBatchConfig,mi=0,hi=null,vi=null,gi=null,yi=!1,bi=!1,wi=0,Ci=0;function Si(){throw Error(o(321))}function Ei(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ki(e,t,n,r,a,i){if(mi=i,hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,di.current=null===e||null===e.memoizedState?ll:ul,e=n(r,a),bi){i=0;do{if(bi=!1,wi=0,25<=i)throw Error(o(301));i+=1,gi=vi=null,t.updateQueue=null,di.current=sl,e=n(r,a)}while(bi)}if(di.current=il,t=null!==vi&&null!==vi.next,mi=0,gi=vi=hi=null,yi=!1,t)throw Error(o(300));return e}function Ii(){var e=0!==wi;return wi=0,e}function Ai(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gi?hi.memoizedState=gi=e:gi=gi.next=e,gi}function xi(){if(null===vi){var e=hi.alternate;e=null!==e?e.memoizedState:null}else e=vi.next;var t=null===gi?hi.memoizedState:gi.next;if(null!==t)gi=t,vi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(vi=e).memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},null===gi?hi.memoizedState=gi=e:gi=gi.next=e}return gi}function _i(e,t){return"function"==typeof t?t(e):t}function Oi(e){var t=xi(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=vi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}r.baseQueue=a=i,n.pending=null}if(null!==a){i=a.next,r=r.baseState;var u=l=null,s=null,c=i;do{var f=c.lane;if((mi&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=d,l=r):s=s.next=d,hi.lanes|=f,Fu|=f}c=c.next}while(null!==c&&c!==i);null===s?l=r:s.next=u,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{i=a.lane,hi.lanes|=i,Fu|=i,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pi(e){var t=xi(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);lr(i,t.memoizedState)||(wl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ni(){}function Ri(e,t){var n=hi,r=xi(),a=t(),i=!lr(r.memoizedState,a);if(i&&(r.memoizedState=a,wl=!0),r=r.queue,Vi(ji.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==gi&&1&gi.memoizedState.tag){if(n.flags|=2048,zi(9,Li.bind(null,n,r,a,t),void 0,null),null===Pu)throw Error(o(349));0!=(30&mi)||Ti(n,t,a)}return a}function Ti(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Li(e,t,n,r){t.value=n,t.getSnapshot=r,Di(t)&&Fi(e)}function ji(e,t,n){return n((function(){Di(t)&&Fi(e)}))}function Di(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Fi(e){var t=Po(e,1);null!==t&&rs(t,e,1,-1)}function Mi(e){var t=Ai();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,hi,e),[t.memoizedState,e]}function zi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ui(){return xi().memoizedState}function Bi(e,t,n,r){var a=Ai();hi.flags|=e,a.memoizedState=zi(1|t,n,void 0,void 0===r?null:r)}function Hi(e,t,n,r){var a=xi();r=void 0===r?null:r;var o=void 0;if(null!==vi){var i=vi.memoizedState;if(o=i.destroy,null!==r&&Ei(r,i.deps))return void(a.memoizedState=zi(t,n,o,r))}hi.flags|=e,a.memoizedState=zi(1|t,n,o,r)}function Gi(e,t){return Bi(8390656,8,e,t)}function Vi(e,t){return Hi(2048,8,e,t)}function Wi(e,t){return Hi(4,2,e,t)}function Zi(e,t){return Hi(4,4,e,t)}function Ki(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 Yi(e,t,n){return n=null!=n?n.concat([e]):null,Hi(4,4,Ki.bind(null,t,e),n)}function Qi(){}function qi(e,t){var n=xi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ei(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ji(e,t){var n=xi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ei(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $i(e,t,n){return 0==(21&mi)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=ht(),hi.lanes|=n,Fu|=n,e.baseState=!0),t)}function Xi(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{bt=n,pi.transition=r}}function el(){return xi().memoizedState}function tl(e,t,n){var r=ns(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))al(t,n);else if(null!==(n=Oo(e,t,n,r))){rs(n,e,r,ts()),ol(n,t,r)}}function nl(e,t,n){var r=ns(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))al(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=o(i,n);if(a.hasEagerState=!0,a.eagerState=l,lr(l,i)){var u=t.interleaved;return null===u?(a.next=a,_o(t)):(a.next=u.next,u.next=a),void(t.interleaved=a)}}catch(s){}null!==(n=Oo(e,t,a,r))&&(rs(n,e,r,a=ts()),ol(n,t,r))}}function rl(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function al(e,t){bi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ol(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var il={readContext:Ao,useCallback:Si,useContext:Si,useEffect:Si,useImperativeHandle:Si,useInsertionEffect:Si,useLayoutEffect:Si,useMemo:Si,useReducer:Si,useRef:Si,useState:Si,useDebugValue:Si,useDeferredValue:Si,useTransition:Si,useMutableSource:Si,useSyncExternalStore:Si,useId:Si,unstable_isNewReconciler:!1},ll={readContext:Ao,useCallback:function(e,t){return Ai().memoizedState=[e,void 0===t?null:t],e},useContext:Ao,useEffect:Gi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Bi(4194308,4,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bi(4,2,e,t)},useMemo:function(e,t){var n=Ai();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ai();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ai().memoizedState=e},useState:Mi,useDebugValue:Qi,useDeferredValue:function(e){return Ai().memoizedState=e},useTransition:function(){var e=Mi(!1),t=e[0];return e=Xi.bind(null,e[1]),Ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hi,a=Ai();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Pu)throw Error(o(349));0!=(30&mi)||Ti(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Gi(ji.bind(null,r,i,e),[e]),r.flags|=2048,zi(9,Li.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ai(),t=Pu.identifierPrefix;if(ao){var n=Ja;t=":"+t+"R"+(n=(qa&~(1<<32-it(qa)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ci++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ul={readContext:Ao,useCallback:qi,useContext:Ao,useEffect:Vi,useImperativeHandle:Yi,useInsertionEffect:Wi,useLayoutEffect:Zi,useMemo:Ji,useReducer:Oi,useRef:Ui,useState:function(){return Oi(_i)},useDebugValue:Qi,useDeferredValue:function(e){return $i(xi(),vi.memoizedState,e)},useTransition:function(){return[Oi(_i)[0],xi().memoizedState]},useMutableSource:Ni,useSyncExternalStore:Ri,useId:el,unstable_isNewReconciler:!1},sl={readContext:Ao,useCallback:qi,useContext:Ao,useEffect:Vi,useImperativeHandle:Yi,useInsertionEffect:Wi,useLayoutEffect:Zi,useMemo:Ji,useReducer:Pi,useRef:Ui,useState:function(){return Pi(_i)},useDebugValue:Qi,useDeferredValue:function(e){var t=xi();return null===vi?t.memoizedState=e:$i(t,vi.memoizedState,e)},useTransition:function(){return[Pi(_i)[0],xi().memoizedState]},useMutableSource:Ni,useSyncExternalStore:Ri,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function fl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function ml(e,t,n){(n=Lo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wu||(Wu=!0,Zu=r),dl(0,t)},n}function hl(e,t,n){(n=Lo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){dl(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Ku?Ku=new Set([this]):Ku.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=As.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Lo(-1,1)).tag=2,jo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var bl=w.ReactCurrentOwner,wl=!1;function Cl(e,t,n,r){t.child=null===e?$o(t,null,n,r):Jo(t,e.child,n,r)}function Sl(e,t,n,r,a){n=n.render;var o=t.ref;return Io(t,a),r=ki(e,t,n,r,o,a),n=Ii(),null===e||wl?(ao&&n&&eo(t),t.flags|=1,Cl(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Wl(e,t,a))}function El(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Ts(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=js(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,kl(e,t,o,r,a))}if(o=e.child,0==(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(i,r)&&e.ref===t.ref)return Wl(e,t,a)}return t.flags|=1,(e=Ls(o,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,Wl(e,t,a);0!=(131072&e.flags)&&(wl=!0)}}return xl(e,t,n,r,a)}function Il(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Aa(Lu,Tu),Tu|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Aa(Lu,Tu),Tu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Aa(Lu,Tu),Tu|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Aa(Lu,Tu),Tu|=r;return Cl(e,t,a,n),t.child}function Al(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xl(e,t,n,r,a){var o=Ra(n)?Pa:_a.current;return o=Na(t,o),Io(t,a),n=ki(e,t,n,r,o,a),r=Ii(),null===e||wl?(ao&&r&&eo(t),t.flags|=1,Cl(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Wl(e,t,a))}function _l(e,t,n,r,a){if(Ra(n)){var o=!0;Da(t)}else o=!1;if(Io(t,a),null===t.stateNode)Vl(e,t),Vo(t,n,r),Zo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;"object"==typeof s&&null!==s?s=Ao(s):s=Na(t,s=Ra(n)?Pa:_a.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==s)&&Wo(t,i,r,s),No=!1;var d=t.memoizedState;i.state=d,Mo(t,r,i,a),u=t.memoizedState,l!==r||d!==u||Oa.current||No?("function"==typeof c&&(Bo(t,n,c,r),u=t.memoizedState),(l=No||Go(t,n,l,r,d,u,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,To(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:go(t.type,l),i.props=s,f=t.pendingProps,d=i.context,"object"==typeof(u=n.contextType)&&null!==u?u=Ao(u):u=Na(t,u=Ra(n)?Pa:_a.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==f||d!==u)&&Wo(t,i,r,u),No=!1,d=t.memoizedState,i.state=d,Mo(t,r,i,a);var m=t.memoizedState;l!==f||d!==m||Oa.current||No?("function"==typeof p&&(Bo(t,n,p,r),m=t.memoizedState),(s=No||Go(t,n,s,r,d,m,u)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ol(e,t,n,r,o,a)}function Ol(e,t,n,r,a,o){Al(e,t);var i=0!=(128&t.flags);if(!r&&!i)return a&&Fa(t,n,!1),Wl(e,t,o);r=t.stateNode,bl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Jo(t,e.child,null,o),t.child=Jo(t,null,l,o)):Cl(e,t,l,o),t.memoizedState=r.state,a&&Fa(t,n,!0),t.child}function Pl(e){var t=e.stateNode;t.pendingContext?La(0,t.pendingContext,t.pendingContext!==t.context):t.context&&La(0,t.context,!1),ai(e,t.containerInfo)}function Nl(e,t,n,r,a){return mo(),ho(a),t.flags|=256,Cl(e,t,n,r),t.child}var Rl,Tl,Ll,jl,Dl={dehydrated:null,treeContext:null,retryLane:0};function Fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ml(e,t,n){var r,a=t.pendingProps,i=ui.current,l=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Aa(ui,1&i),null===e)return so(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=a.children,e=a.fallback,l?(a=t.mode,l=t.child,u={mode:"hidden",children:u},0==(1&a)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Fs(u,a,0,null),e=Ds(e,a,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Fl(n),t.memoizedState=Dl,e):zl(t,u));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,a,i,l){if(n)return 256&t.flags?(t.flags&=-257,Ul(e,t,l,r=fl(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Fs({mode:"visible",children:r.children},a,0,null),(i=Ds(i,a,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Jo(t,e.child,null,l),t.child.memoizedState=Fl(l),t.memoizedState=Dl,i);if(0==(1&t.mode))return Ul(e,t,l,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var u=r.dgst;return r=u,Ul(e,t,l,r=fl(i=Error(o(419)),r,void 0))}if(u=0!=(l&e.childLanes),wl||u){if(null!==(r=Pu)){switch(l&-l){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(r.suspendedLanes|l))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Po(e,a),rs(r,e,a,-1))}return vs(),Ul(e,t,l,r=fl(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=_s.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ro=sa(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(Ka[Ya++]=qa,Ka[Ya++]=Ja,Ka[Ya++]=Qa,qa=e.id,Ja=e.overflow,Qa=t),t=zl(t,r.children),t.flags|=4096,t)}(e,t,u,a,r,i,n);if(l){l=a.fallback,u=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:a.children};return 0==(1&u)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=s,t.deletions=null):(a=Ls(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=Ls(r,l):(l=Ds(l,u,n,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,u=null===(u=e.child.memoizedState)?Fl(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Dl,a}return e=(l=e.child).sibling,a=Ls(l,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function zl(e,t){return(t=Fs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ul(e,t,n,r){return null!==r&&ho(r),Jo(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ko(e.return,t,n)}function Hl(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Gl(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Cl(e,t,r.children,n),0!=(2&(r=ui.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);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}r&=1}if(Aa(ui,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===si(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Hl(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===si(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Hl(t,!0,n,null,o);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ls(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ls(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zl(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yl(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return Ra(t.type)&&Ta(),Kl(t),null;case 3:return r=t.stateNode,oi(),Ia(Oa),Ia(_a),fi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(ls(oo),oo=null))),Tl(e,t),Kl(t),null;case 5:li(t);var a=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Ll(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Kl(t),null}if(e=ri(ei.current),fo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[da]=t,r[pa]=i,e=0!=(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(a=0;a<jr.length;a++)zr(jr[a],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":q(r,i),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},zr("invalid",r);break;case"textarea":ae(r,i),zr("invalid",r)}for(var u in ye(n,i),a=null,i)if(i.hasOwnProperty(u)){var s=i[u];"children"===u?"string"==typeof s?r.textContent!==s&&(!0!==i.suppressHydrationWarning&&$r(r.textContent,s,e),a=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&$r(r.textContent,s,e),a=["children",""+s]):l.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&zr("scroll",r)}switch(n){case"input":Z(r),X(r,i,!0);break;case"textarea":Z(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Xr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[da]=t,e[pa]=r,Rl(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),a=r;break;case"iframe":case"object":case"embed":zr("load",e),a=r;break;case"video":case"audio":for(a=0;a<jr.length;a++)zr(jr[a],e);a=r;break;case"source":zr("error",e),a=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),a=r;break;case"details":zr("toggle",e),a=r;break;case"input":q(e,r),a=Q(e,r),zr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=F({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),zr("invalid",e)}for(i in ye(n,a),s=a)if(s.hasOwnProperty(i)){var c=s[i];"style"===i?ve(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===i?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=c&&"onScroll"===i&&zr("scroll",e):null!=c&&b(e,i,c,u))}switch(n){case"input":Z(e),X(e,r,!1);break;case"textarea":Z(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Kl(t),null;case 6:if(e&&null!=t.stateNode)jl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ri(ni.current),ri(ei.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[da]=t,(i=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:$r(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$r(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[da]=t,t.stateNode=r}return Kl(t),null;case 13:if(Ia(ui),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))po(),mo(),t.flags|=98560,i=!1;else if(i=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[da]=t}else mo(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),i=!1}else null!==oo&&(ls(oo),oo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ui.current)?0===ju&&(ju=3):vs())),null!==t.updateQueue&&(t.flags|=4),Kl(t),null);case 4:return oi(),Tl(e,t),null===e&&Hr(t.stateNode.containerInfo),Kl(t),null;case 10:return Eo(t.type._context),Kl(t),null;case 19:if(Ia(ui),null===(i=t.memoizedState))return Kl(t),null;if(r=0!=(128&t.flags),null===(u=i.rendering))if(r)Zl(i,!1);else{if(0!==ju||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=si(e))){for(t.flags|=128,Zl(i,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(u=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,e=u.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Aa(ui,1&ui.current|2),t.child}e=e.sibling}null!==i.tail&&Je()>Gu&&(t.flags|=128,r=!0,Zl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=si(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!u.alternate&&!ao)return Kl(t),null}else 2*Je()-i.renderingStartTime>Gu&&1073741824!==n&&(t.flags|=128,r=!0,Zl(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=i.last)?n.sibling=u:t.child=u,i.last=u)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Je(),t.sibling=null,n=ui.current,Aa(ui,r?1&n|2:1&n),t):(Kl(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Tu)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ql(e,t){switch(to(t),t.tag){case 1:return Ra(t.type)&&Ta(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oi(),Ia(Oa),Ia(_a),fi(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return li(t),null;case 13:if(Ia(ui),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));mo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ia(ui),null;case 4:return oi(),null;case 10:return Eo(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Rl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Tl=function(){},Ll=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ri(ei.current);var o,i=null;switch(n){case"input":a=Q(e,a),r=Q(e,r),i=[];break;case"select":a=F({},a,{value:void 0}),r=F({},r,{value:void 0}),i=[];break;case"textarea":a=re(e,a),r=re(e,r),i=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var u=a[c];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(o in u)!u.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&u[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&zr("scroll",e),i||u===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},jl=function(e,t,n,r){n!==r&&(t.flags|=4)};var ql=!1,Jl=!1,$l="function"==typeof WeakSet?WeakSet:Set,Xl=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Is(e,t,r)}else n.current=null}function tu(e,t,n){try{n()}catch(r){Is(e,t,r)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&tu(t,n,o)}a=a.next}while(a!==r)}}function au(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function iu(e){var t=e.alternate;null!==t&&(e.alternate=null,iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[da],delete t[pa],delete t[ha],delete t[va],delete t[ga])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lu(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||lu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var fu=null,du=!1;function pu(e,t,n){for(n=n.child;null!==n;)mu(e,t,n),n=n.sibling}function mu(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(l){}switch(n.tag){case 5:Jl||eu(n,t);case 6:var r=fu,a=du;fu=null,pu(e,t,n),du=a,null!==(fu=r)&&(du?(e=fu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fu.removeChild(n.stateNode));break;case 18:null!==fu&&(du?(e=fu,n=n.stateNode,8===e.nodeType?ua(e.parentNode,n):1===e.nodeType&&ua(e,n),Ht(e)):ua(fu,n.stateNode));break;case 4:r=fu,a=du,fu=n.stateNode.containerInfo,du=!0,pu(e,t,n),fu=r,du=a;break;case 0:case 11:case 14:case 15:if(!Jl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!=(2&o)||0!=(4&o))&&tu(n,t,i),a=a.next}while(a!==r)}pu(e,t,n);break;case 1:if(!Jl&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Is(n,t,l)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Jl=(r=Jl)||null!==n.memoizedState,pu(e,t,n),Jl=r):pu(e,t,n);break;default:pu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new $l),t.forEach((function(t){var r=Os.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:fu=u.stateNode,du=!1;break e;case 3:case 4:fu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===fu)throw Error(o(160));mu(i,l,a),fu=null,du=!1;var s=a.alternate;null!==s&&(s.return=null),a.return=null}catch(c){Is(a,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gu(t,e),t=t.sibling}function gu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),yu(e),4&r){try{ru(3,e,e.return),au(3,e)}catch(v){Is(e,e.return,v)}try{ru(5,e,e.return)}catch(v){Is(e,e.return,v)}}break;case 1:vu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(vu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var a=e.stateNode;try{de(a,"")}catch(v){Is(e,e.return,v)}}if(4&r&&null!=(a=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===i.type&&null!=i.name&&J(a,i),be(u,l);var c=be(u,i);for(l=0;l<s.length;l+=2){var f=s[l],d=s[l+1];"style"===f?ve(a,d):"dangerouslySetInnerHTML"===f?fe(a,d):"children"===f?de(a,d):b(a,f,d,c)}switch(u){case"input":$(a,i);break;case"textarea":oe(a,i);break;case"select":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(a,!!i.multiple,m,!1):p!==!!i.multiple&&(null!=i.defaultValue?ne(a,!!i.multiple,i.defaultValue,!0):ne(a,!!i.multiple,i.multiple?[]:"",!1))}a[pa]=i}catch(v){Is(e,e.return,v)}}break;case 6:if(vu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(v){Is(e,e.return,v)}}break;case 3:if(vu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(v){Is(e,e.return,v)}break;case 4:default:vu(t,e),yu(e);break;case 13:vu(t,e),yu(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(Hu=Je())),4&r&&hu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Jl=(c=Jl)||f,vu(t,e),Jl=c):vu(t,e),yu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!=(1&e.mode))for(Xl=e,f=e.child;null!==f;){for(d=Xl=f;null!==Xl;){switch(m=(p=Xl).child,p.tag){case 0:case 11:case 14:case 15:ru(4,p,p.return);break;case 1:eu(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(v){Is(r,n,v)}}break;case 5:eu(p,p.return);break;case 22:if(null!==p.memoizedState){Su(d);continue}}null!==m?(m.return=p,Xl=m):Su(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{a=d.stateNode,c?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(u=d.stateNode,l=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=he("display",l))}catch(v){Is(e,e.return,v)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){Is(e,e.return,v)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vu(t,e),yu(e),4&r&&hu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(lu(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(de(a,""),r.flags&=-33),cu(e,uu(e),a);break;case 3:case 4:var i=r.stateNode.containerInfo;su(e,uu(e),i);break;default:throw Error(o(161))}}catch(l){Is(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Xl=e,wu(e,t,n)}function wu(e,t,n){for(var r=0!=(1&e.mode);null!==Xl;){var a=Xl,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||ql;if(!i){var l=a.alternate,u=null!==l&&null!==l.memoizedState||Jl;l=ql;var s=Jl;if(ql=i,(Jl=u)&&!s)for(Xl=a;null!==Xl;)u=(i=Xl).child,22===i.tag&&null!==i.memoizedState?Eu(a):null!==u?(u.return=i,Xl=u):Eu(a);for(;null!==o;)Xl=o,wu(o,t,n),o=o.sibling;Xl=a,ql=l,Jl=s}Cu(e)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,Xl=o):Cu(e)}}function Cu(e){for(;null!==Xl;){var t=Xl;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Jl||au(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Jl)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:go(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&zo(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zo(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(o(163))}Jl||512&t.flags&&ou(t)}catch(p){Is(t,t.return,p)}}if(t===e){Xl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xl=n;break}Xl=t.return}}function Su(e){for(;null!==Xl;){var t=Xl;if(t===e){Xl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xl=n;break}Xl=t.return}}function Eu(e){for(;null!==Xl;){var t=Xl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{au(4,t)}catch(u){Is(t,n,u)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(u){Is(t,a,u)}}var o=t.return;try{ou(t)}catch(u){Is(t,o,u)}break;case 5:var i=t.return;try{ou(t)}catch(u){Is(t,i,u)}}}catch(u){Is(t,t.return,u)}if(t===e){Xl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Xl=l;break}Xl=t.return}}var ku,Iu=Math.ceil,Au=w.ReactCurrentDispatcher,xu=w.ReactCurrentOwner,_u=w.ReactCurrentBatchConfig,Ou=0,Pu=null,Nu=null,Ru=0,Tu=0,Lu=ka(0),ju=0,Du=null,Fu=0,Mu=0,zu=0,Uu=null,Bu=null,Hu=0,Gu=1/0,Vu=null,Wu=!1,Zu=null,Ku=null,Yu=!1,Qu=null,qu=0,Ju=0,$u=null,Xu=-1,es=0;function ts(){return 0!=(6&Ou)?Je():-1!==Xu?Xu:Xu=Je()}function ns(e){return 0==(1&e.mode)?1:0!=(2&Ou)&&0!==Ru?Ru&-Ru:null!==vo.transition?(0===es&&(es=ht()),es):0!==(e=bt)?e:e=void 0===(e=window.event)?16:qt(e.type)}function rs(e,t,n,r){if(50<Ju)throw Ju=0,$u=null,Error(o(185));gt(e,n,r),0!=(2&Ou)&&e===Pu||(e===Pu&&(0==(2&Ou)&&(Mu|=n),4===ju&&us(e,Ru)),as(e,r),1===n&&0===Ou&&0==(1&t.mode)&&(Gu=Je()+500,za&&Ha()))}function as(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-it(o),l=1<<i,u=a[i];-1===u?0!=(l&n)&&0==(l&r)||(a[i]=pt(l,t)):u<=t&&(e.expiredLanes|=l),o&=~l}}(e,t);var r=dt(e,e===Pu?Ru:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){za=!0,Ba(e)}(ss.bind(null,e)):Ba(ss.bind(null,e)),ia((function(){0==(6&Ou)&&Ha()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ps(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Xu=-1,es=0,0!=(6&Ou))throw Error(o(327));var n=e.callbackNode;if(Es()&&e.callbackNode!==n)return null;var r=dt(e,e===Pu?Ru:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=gs(e,r);else{t=r;var a=Ou;Ou|=2;var i=hs();for(Pu===e&&Ru===t||(Vu=null,Gu=Je()+500,ps(e,t));;)try{bs();break}catch(u){ms(e,u)}So(),Au.current=i,Ou=a,null!==Nu?t=0:(Pu=null,Ru=0,t=ju)}if(0!==t){if(2===t&&(0!==(a=mt(e))&&(r=a,t=is(e,a))),1===t)throw n=Du,ps(e,0),us(e,r),as(e,Je()),n;if(6===t)us(e,r);else{if(a=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!lr(o(),a))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=gs(e,r))&&(0!==(i=mt(e))&&(r=i,t=is(e,i))),1===t))throw n=Du,ps(e,0),us(e,r),as(e,Je()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:Ss(e,Bu,Vu);break;case 3:if(us(e,r),(130023424&r)===r&&10<(t=Hu+500-Je())){if(0!==dt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){ts(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(Ss.bind(null,e,Bu,Vu),t);break}Ss(e,Bu,Vu);break;case 4:if(us(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>a&&(a=l),r&=~i}if(r=a,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Iu(r/1960))-r)){e.timeoutHandle=ra(Ss.bind(null,e,Bu,Vu),r);break}Ss(e,Bu,Vu);break;default:throw Error(o(329))}}}return as(e,Je()),e.callbackNode===n?os.bind(null,e):null}function is(e,t){var n=Uu;return e.current.memoizedState.isDehydrated&&(ps(e,t).flags|=256),2!==(e=gs(e,t))&&(t=Bu,Bu=n,null!==t&&ls(t)),e}function ls(e){null===Bu?Bu=e:Bu.push.apply(Bu,e)}function us(e,t){for(t&=~zu,t&=~Mu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function ss(e){if(0!=(6&Ou))throw Error(o(327));Es();var t=dt(e,0);if(0==(1&t))return as(e,Je()),null;var n=gs(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=Du,ps(e,0),us(e,t),as(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ss(e,Bu,Vu),as(e,Je()),null}function cs(e,t){var n=Ou;Ou|=1;try{return e(t)}finally{0===(Ou=n)&&(Gu=Je()+500,za&&Ha())}}function fs(e){null!==Qu&&0===Qu.tag&&0==(6&Ou)&&Es();var t=Ou;Ou|=1;var n=_u.transition,r=bt;try{if(_u.transition=null,bt=1,e)return e()}finally{bt=r,_u.transition=n,0==(6&(Ou=t))&&Ha()}}function ds(){Tu=Lu.current,Ia(Lu)}function ps(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Nu)for(n=Nu.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ta();break;case 3:oi(),Ia(Oa),Ia(_a),fi();break;case 5:li(r);break;case 4:oi();break;case 13:case 19:Ia(ui);break;case 10:Eo(r.type._context);break;case 22:case 23:ds()}n=n.return}if(Pu=e,Nu=e=Ls(e.current,null),Ru=Tu=t,ju=0,Du=null,zu=Mu=Fu=0,Bu=Uu=null,null!==xo){for(t=0;t<xo.length;t++)if(null!==(r=(n=xo[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}xo=null}return e}function ms(e,t){for(;;){var n=Nu;try{if(So(),di.current=il,yi){for(var r=hi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}yi=!1}if(mi=0,gi=vi=hi=null,bi=!1,wi=0,xu.current=null,null===n||null===n.return){ju=1,Du=t,Nu=null;break}e:{var i=e,l=n.return,u=n,s=t;if(t=Ru,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=u,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=gl(l);if(null!==m){m.flags&=-257,yl(m,l,u,0,t),1&m.mode&&vl(i,c,t),s=c;var h=(t=m).updateQueue;if(null===h){var v=new Set;v.add(s),t.updateQueue=v}else h.add(s);break e}if(0==(1&t)){vl(i,c,t),vs();break e}s=Error(o(426))}else if(ao&&1&u.mode){var g=gl(l);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),yl(g,l,u,0,t),ho(cl(s,u));break e}}i=s=cl(s,u),4!==ju&&(ju=2),null===Uu?Uu=[i]:Uu.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Fo(i,ml(0,s,t));break e;case 1:u=s;var y=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Ku||!Ku.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Fo(i,hl(i,u,t));break e}}i=i.return}while(null!==i)}Cs(n)}catch(w){t=w,Nu===n&&null!==n&&(Nu=n=n.return);continue}break}}function hs(){var e=Au.current;return Au.current=il,null===e?il:e}function vs(){0!==ju&&3!==ju&&2!==ju||(ju=4),null===Pu||0==(268435455&Fu)&&0==(268435455&Mu)||us(Pu,Ru)}function gs(e,t){var n=Ou;Ou|=2;var r=hs();for(Pu===e&&Ru===t||(Vu=null,ps(e,t));;)try{ys();break}catch(a){ms(e,a)}if(So(),Ou=n,Au.current=r,null!==Nu)throw Error(o(261));return Pu=null,Ru=0,ju}function ys(){for(;null!==Nu;)ws(Nu)}function bs(){for(;null!==Nu&&!Qe();)ws(Nu)}function ws(e){var t=ku(e.alternate,e,Tu);e.memoizedProps=e.pendingProps,null===t?Cs(e):Nu=t,xu.current=null}function Cs(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Yl(n,t,Tu)))return void(Nu=n)}else{if(null!==(n=Ql(n,t)))return n.flags&=32767,void(Nu=n);if(null===e)return ju=6,void(Nu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Nu=t);Nu=t=e}while(null!==t);0===ju&&(ju=5)}function Ss(e,t,n){var r=bt,a=_u.transition;try{_u.transition=null,bt=1,function(e,t,n,r){do{Es()}while(null!==Qu);if(0!=(6&Ou))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Pu&&(Nu=Pu=null,Ru=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Yu||(Yu=!0,Ps(tt,(function(){return Es(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=_u.transition,_u.transition=null;var l=bt;bt=1;var u=Ou;Ou|=4,xu.current=null,function(e,t){if(ea=Vt,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(C){n=null;break e}var l=0,u=-1,s=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var m;d!==n||0!==a&&3!==d.nodeType||(u=l+a),d!==i||0!==r&&3!==d.nodeType||(s=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(m=d.firstChild);)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++c===a&&(u=l),p===i&&++f===r&&(s=l),null!==(m=d.nextSibling))break;p=(d=p).parentNode}d=m}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Vt=!1,Xl=t;null!==Xl;)if(e=(t=Xl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Xl=e;else for(;null!==Xl;){t=Xl;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var v=h.memoizedProps,g=h.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:go(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(C){Is(t,t.return,C)}if(null!==(e=t.sibling)){e.return=t.return,Xl=e;break}Xl=t.return}h=nu,nu=!1}(e,n),gu(n,e),mr(ta),Vt=!!ea,ta=ea=null,e.current=n,bu(n,e,a),qe(),Ou=u,bt=l,_u.transition=i}else e.current=n;if(Yu&&(Yu=!1,Qu=e,qu=a),i=e.pendingLanes,0===i&&(Ku=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),as(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Wu)throw Wu=!1,e=Zu,Zu=null,e;0!=(1&qu)&&0!==e.tag&&Es(),i=e.pendingLanes,0!=(1&i)?e===$u?Ju++:(Ju=0,$u=e):Ju=0,Ha()}(e,t,n,r)}finally{_u.transition=a,bt=r}return null}function Es(){if(null!==Qu){var e=wt(qu),t=_u.transition,n=bt;try{if(_u.transition=null,bt=16>e?16:e,null===Qu)var r=!1;else{if(e=Qu,Qu=null,qu=0,0!=(6&Ou))throw Error(o(331));var a=Ou;for(Ou|=4,Xl=e.current;null!==Xl;){var i=Xl,l=i.child;if(0!=(16&Xl.flags)){var u=i.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Xl=c;null!==Xl;){var f=Xl;switch(f.tag){case 0:case 11:case 15:ru(8,f,i)}var d=f.child;if(null!==d)d.return=f,Xl=d;else for(;null!==Xl;){var p=(f=Xl).sibling,m=f.return;if(iu(f),f===c){Xl=null;break}if(null!==p){p.return=m,Xl=p;break}Xl=m}}}var h=i.alternate;if(null!==h){var v=h.child;if(null!==v){h.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Xl=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Xl=l;else e:for(;null!==Xl;){if(0!=(2048&(i=Xl).flags))switch(i.tag){case 0:case 11:case 15:ru(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Xl=y;break e}Xl=i.return}}var b=e.current;for(Xl=b;null!==Xl;){var w=(l=Xl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Xl=w;else e:for(l=b;null!==Xl;){if(0!=(2048&(u=Xl).flags))try{switch(u.tag){case 0:case 11:case 15:au(9,u)}}catch(S){Is(u,u.return,S)}if(u===l){Xl=null;break e}var C=u.sibling;if(null!==C){C.return=u.return,Xl=C;break e}Xl=u.return}}if(Ou=a,Ha(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(S){}r=!0}return r}finally{bt=n,_u.transition=t}}return!1}function ks(e,t,n){e=jo(e,t=ml(0,t=cl(n,t),1),1),t=ts(),null!==e&&(gt(e,1,t),as(e,t))}function Is(e,t,n){if(3===e.tag)ks(e,e,n);else for(;null!==t;){if(3===t.tag){ks(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ku||!Ku.has(r))){t=jo(t,e=hl(t,e=cl(n,e),1),1),e=ts(),null!==t&&(gt(t,1,e),as(t,e));break}}t=t.return}}function As(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ts(),e.pingedLanes|=e.suspendedLanes&n,Pu===e&&(Ru&n)===n&&(4===ju||3===ju&&(130023424&Ru)===Ru&&500>Je()-Hu?ps(e,0):zu|=n),as(e,t)}function xs(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=ts();null!==(e=Po(e,t))&&(gt(e,t,n),as(e,n))}function _s(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xs(e,n)}function Os(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),xs(e,n)}function Ps(e,t){return Ke(e,t)}function Ns(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rs(e,t,n,r){return new Ns(e,t,n,r)}function Ts(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ls(e,t){var n=e.alternate;return null===n?((n=Rs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function js(e,t,n,r,a,i){var l=2;if(r=e,"function"==typeof e)Ts(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case E:return Ds(n.children,a,i,t);case k:l=8,a|=8;break;case I:return(e=Rs(12,n,t,2|a)).elementType=I,e.lanes=i,e;case O:return(e=Rs(13,n,t,a)).elementType=O,e.lanes=i,e;case P:return(e=Rs(19,n,t,a)).elementType=P,e.lanes=i,e;case T:return Fs(n,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:l=10;break e;case x:l=9;break e;case _:l=11;break e;case N:l=14;break e;case R:l=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Rs(l,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Ds(e,t,n,r){return(e=Rs(7,e,r,t)).lanes=n,e}function Fs(e,t,n,r){return(e=Rs(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Ms(e,t,n){return(e=Rs(6,e,null,t)).lanes=n,e}function zs(e,t,n){return(t=Rs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Us(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Bs(e,t,n,r,a,o,i,l,u){return e=new Us(e,t,n,l,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Rs(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function Hs(e){if(!e)return xa;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ra(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ra(n))return ja(e,n,t)}return t}function Gs(e,t,n,r,a,o,i,l,u){return(e=Bs(n,r,!0,e,0,o,0,l,u)).context=Hs(null),n=e.current,(o=Lo(r=ts(),a=ns(n))).callback=null!=t?t:null,jo(n,o,a),e.current.lanes=a,gt(e,a,r),as(e,r),e}function Vs(e,t,n,r){var a=t.current,o=ts(),i=ns(a);return n=Hs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Lo(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=jo(a,t,i))&&(rs(e,a,i,o),Do(e,a,i)),i}function Ws(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Zs(e,t),(e=e.alternate)&&Zs(e,t)}ku=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oa.current)wl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Pl(t),mo();break;case 5:ii(t);break;case 1:Ra(t.type)&&Da(t);break;case 4:ai(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Aa(yo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Aa(ui,1&ui.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ml(e,t,n):(Aa(ui,1&ui.current),null!==(e=Wl(e,t,n))?e.sibling:null);Aa(ui,1&ui.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Gl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Aa(ui,ui.current),r)break;return null;case 22:case 23:return t.lanes=0,Il(e,t,n)}return Wl(e,t,n)}(e,t,n);wl=0!=(131072&e.flags)}else wl=!1,ao&&0!=(1048576&t.flags)&&Xa(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vl(e,t),e=t.pendingProps;var a=Na(t,_a.current);Io(t,n),a=ki(null,t,r,e,a,n);var i=Ii();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ra(r)?(i=!0,Da(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ro(t),a.updater=Ho,t.stateNode=a,a._reactInternals=t,Zo(t,r,e,n),t=Ol(null,t,r,!0,i,n)):(t.tag=0,ao&&i&&eo(t),Cl(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vl(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return Ts(e)?1:0;if(null!=e){if((e=e.$$typeof)===_)return 11;if(e===N)return 14}return 2}(r),e=go(r,e),a){case 0:t=xl(null,t,r,e,n);break e;case 1:t=_l(null,t,r,e,n);break e;case 11:t=Sl(null,t,r,e,n);break e;case 14:t=El(null,t,r,go(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,xl(e,t,r,a=t.elementType===r?a:go(r,a),n);case 1:return r=t.type,a=t.pendingProps,_l(e,t,r,a=t.elementType===r?a:go(r,a),n);case 3:e:{if(Pl(t),null===e)throw Error(o(387));r=t.pendingProps,a=(i=t.memoizedState).element,To(e,t),Mo(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Nl(e,t,r,n,a=cl(Error(o(423)),t));break e}if(r!==a){t=Nl(e,t,r,n,a=cl(Error(o(424)),t));break e}for(ro=sa(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=$o(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mo(),r===a){t=Wl(e,t,n);break e}Cl(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&so(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,na(r,a)?l=null:null!==i&&na(r,i)&&(t.flags|=32),Al(e,t),Cl(e,t,l,n),t.child;case 6:return null===e&&so(t),null;case 13:return Ml(e,t,n);case 4:return ai(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Jo(t,null,r,n):Cl(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Sl(e,t,r,a=t.elementType===r?a:go(r,a),n);case 7:return Cl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Cl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value,Aa(yo,r._currentValue),r._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===a.children&&!Oa.current){t=Wl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var u=i.dependencies;if(null!==u){l=i.child;for(var s=u.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Lo(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),ko(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(o(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ko(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}Cl(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Io(t,n),r=r(a=Ao(a)),t.flags|=1,Cl(e,t,r,n),t.child;case 14:return a=go(r=t.type,t.pendingProps),El(e,t,r,a=go(r.type,a),n);case 15:return kl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:go(r,a),Vl(e,t),t.tag=1,Ra(r)?(e=!0,Da(t)):e=!1,Io(t,n),Vo(t,r,a),Zo(t,r,a,n),Ol(null,t,r,!0,e,n);case 19:return Gl(e,t,n);case 22:return Il(e,t,n)}throw Error(o(156,t.tag))};var Ys="function"==typeof reportError?reportError:function(e){console.error(e)};function Qs(e){this._internalRoot=e}function qs(e){this._internalRoot=e}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function $s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xs(){}function ec(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"==typeof a){var l=a;a=function(){var e=Ws(i);l.call(e)}}Vs(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Ws(i);o.call(e)}}var i=Gs(t,r,e,0,null,!1,0,"",Xs);return e._reactRootContainer=i,e[ma]=i.current,Hr(8===e.nodeType?e.parentNode:e),fs(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var l=r;r=function(){var e=Ws(u);l.call(e)}}var u=Bs(e,0,!1,null,0,!1,0,"",Xs);return e._reactRootContainer=u,e[ma]=u.current,Hr(8===e.nodeType?e.parentNode:e),fs((function(){Vs(t,u,n,r)})),u}(n,t,e,a,r);return Ws(i)}qs.prototype.render=Qs.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vs(e,t,null,null)},qs.prototype.unmount=Qs.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fs((function(){Vs(null,e,null,null)})),t[ma]=null}},qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&Ft(e)}},Ct=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(yt(t,1|n),as(t,Je()),0==(6&Ou)&&(Gu=Je()+500,Ha()))}break;case 13:fs((function(){var t=Po(e,1);if(null!==t){var n=ts();rs(t,e,1,n)}})),Ks(e,1)}},St=function(e){if(13===e.tag){var t=Po(e,134217728);if(null!==t)rs(t,e,134217728,ts());Ks(e,134217728)}},Et=function(e){if(13===e.tag){var t=ns(e),n=Po(e,t);if(null!==n)rs(n,e,t,ts());Ks(e,t)}},kt=function(){return bt},It=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if($(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Ca(r);if(!a)throw Error(o(90));K(r),$(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},_e=cs,Oe=fs;var tc={usingClientEntryPoint:!1,Events:[ba,wa,Ca,Ae,xe,cs]},nc={findFiberByHostInstance:ya,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{at=ac.inject(rc),ot=ac}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Js(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Js(e))throw Error(o(299));var n=!1,r="",a=Ys;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Bs(e,1,!1,null,0,n,0,r,a),e[ma]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Qs(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return fs(e)},t.hydrate=function(e,t,n){if(!$s(t))throw Error(o(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Js(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,i="",l=Ys;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Gs(t,null,e,1,null!=n?n:null,a,0,i,l),e[ma]=t.current,Hr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new qs(t)},t.render=function(e,t,n){if(!$s(t))throw Error(o(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!$s(e))throw Error(o(40));return!!e._reactRootContainer&&(fs((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[ma]=null}))})),!0)},t.unstable_batchedUpdates=cs,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!$s(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},"../../node_modules/react-dom/client.js":function(e,t,n){var r=n("../../node_modules/react-dom/index.js");t.s=r.createRoot,r.hydrateRoot},"../../node_modules/react-dom/index.js":function(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n("../../node_modules/react-dom/cjs/react-dom.production.min.js")},"../../node_modules/react/cjs/react-jsx-runtime.production.min.js":function(e,t,n){var r=n("../../node_modules/react/index.js"),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,o={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:s,ref:c,props:o,_owner:l.current}}t.Fragment=o,t.jsx=s,t.jsxs=s},"../../node_modules/react/cjs/react.production.min.js":function(e,t){var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,h(w,g.prototype),w.isPureReactComponent=!0;var C=Array.isArray,S=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var a,o={},i=null,l=null;if(null!=t)for(a in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,a)&&!k.hasOwnProperty(a)&&(o[a]=t[a]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(a in u=e.defaultProps)void 0===o[a]&&(o[a]=u[a]);return{$$typeof:n,type:e,key:i,ref:l,props:o,_owner:E.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var x=/\/+/g;function _(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 O(e,t,a,o,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return i=i(u=e),e=""===o?"."+_(u,0):o,C(i)?(a="",null!=e&&(a=e.replace(x,"$&/")+"/"),O(i,t,a,"",(function(e){return e}))):null!=i&&(A(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||u&&u.key===i.key?"":(""+i.key).replace(x,"$&/")+"/")+e)),t.push(i)),1;if(u=0,o=""===o?".":o+":",C(e))for(var s=0;s<e.length;s++){var c=o+_(l=e[s],s);u+=O(l,t,a,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=O(l=l.value,t,a,c=o+_(l,s++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function P(e,t,n){if(null==e)return e;var r=[],a=0;return O(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},T={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:T,ReactCurrentOwner:E};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=a,t.Profiler=i,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=h({},e.props),o=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)S.call(t,s)&&!k.hasOwnProperty(s)&&(a[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=I,t.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},"../../node_modules/react/index.js":function(e,t,n){e.exports=n("../../node_modules/react/cjs/react.production.min.js")},"../../node_modules/react/jsx-runtime.js":function(e,t,n){e.exports=n("../../node_modules/react/cjs/react-jsx-runtime.production.min.js")},"../../node_modules/scheduler/cjs/scheduler.production.min.js":function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>o(u,n))s<a&&0>o(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<a&&0>o(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],f=1,d=null,p=3,m=!1,h=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function C(e){if(v=!1,w(e),!h)if(null!==r(s))h=!0,T(S);else{var t=r(c);null!==t&&L(C,t.startTime-e)}}function S(e,n){h=!1,v&&(v=!1,y(A),A=-1),m=!0;var o=p;try{for(w(n),d=r(s);null!==d&&(!(d.expirationTime>n)||e&&!O());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(s)&&a(s),w(n)}else a(s);d=r(s)}if(null!==d)var u=!0;else{var f=r(c);null!==f&&L(C,f.startTime-n),u=!1}return u}finally{d=null,p=o,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,k=!1,I=null,A=-1,x=5,_=-1;function O(){return!(t.unstable_now()-_<x)}function P(){if(null!==I){var e=t.unstable_now();_=e;var n=!0;try{n=I(!0,e)}finally{n?E():(k=!1,I=null)}}else k=!1}if("function"==typeof b)E=function(){b(P)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,R=N.port2;N.port1.onmessage=P,E=function(){R.postMessage(null)}}else E=function(){g(P,0)};function T(e){I=e,k||(k=!0,E())}function L(e,n){A=g((function(){e(t.unstable_now())}),n)}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(){h||m||(h=!0,T(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,a,o){var i=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:a,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>i?(e.sortIndex=o,n(c,e),null===r(s)&&e===r(c)&&(v?(y(A),A=-1):v=!0,L(C,o-i))):(e.sortIndex=l,n(s,e),h||m||(h=!0,T(S))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},"../../node_modules/scheduler/index.js":function(e,t,n){e.exports=n("../../node_modules/scheduler/cjs/scheduler.production.min.js")},"../../node_modules/ua-parser-js/dist/ua-parser.min.js":function(e,t,n){var r;!function(a,o){var i="function",l="undefined",u="object",s="string",c="major",f="model",d="name",p="type",m="vendor",h="version",v="architecture",g="console",y="mobile",b="tablet",w="smarttv",C="wearable",S="embedded",E="Amazon",k="Apple",I="ASUS",A="BlackBerry",x="Browser",_="Chrome",O="Firefox",P="Google",N="Huawei",R="LG",T="Microsoft",L="Motorola",j="Opera",D="Samsung",F="Sharp",M="Sony",z="Xiaomi",U="Zebra",B="Facebook",H="Chromium OS",G="Mac OS",V=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},W=function(e,t){return typeof e===s&&-1!==Z(t).indexOf(Z(e))},Z=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===l?e:e.substring(0,350)},Y=function(e,t){for(var n,r,a,l,s,c,f=0;f<t.length&&!s;){var d=t[f],p=t[f+1];for(n=r=0;n<d.length&&!s&&d[n];)if(s=d[n++].exec(e))for(a=0;a<p.length;a++)c=s[++r],typeof(l=p[a])===u&&l.length>0?2===l.length?typeof l[1]==i?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3===l.length?typeof l[1]!==i||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):o:this[l[0]]=c?l[1].call(this,c,l[2]):o:4===l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):o):this[l]=c||o;f+=2}},Q=function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(W(t[n][r],e))return"?"===n?o:n}else if(W(t[n],e))return"?"===n?o:n;return e},q={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"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,h],[/opios[\/ ]+([\w\.]+)/i],[h,[d,j+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[d,j]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[d,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[h,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+x],h],[/\bfocus\/([\w\.]+)/i],[h,[d,O+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[h,[d,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+x],h],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,B],h],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[d,_+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,_+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[h,Q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[d,O+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[d,h],[/(cobalt)\/([\w\.]+)/i],[d,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,Z]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,"",Z]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[m,D],[p,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[m,D],[p,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[m,k],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[m,k],[p,b]],[/(macintosh);/i],[f,[m,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[m,F],[p,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[m,N],[p,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[m,N],[p,y]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[m,z],[p,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[m,z],[p,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[m,"OPPO"],[p,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[m,"Vivo"],[p,y]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[m,"Realme"],[p,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[m,L],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[m,L],[p,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[m,R],[p,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[m,R],[p,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[m,"Lenovo"],[p,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[m,"Nokia"],[p,y]],[/(pixel c)\b/i],[f,[m,P],[p,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[m,P],[p,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[m,M],[p,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[m,M],[p,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[m,"OnePlus"],[p,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[m,E],[p,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[m,E],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[f,m,[p,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[m,A],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[m,I],[p,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[m,I],[p,y]],[/(nexus 9)/i],[f,[m,"HTC"],[p,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[f,/_/g," "],[p,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[m,"Acer"],[p,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[m,"Meizu"],[p,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,f,[p,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,f,[p,b]],[/(surface duo)/i],[f,[m,T],[p,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[m,"Fairphone"],[p,y]],[/(u304aa)/i],[f,[m,"AT&T"],[p,y]],[/\bsie-(\w*)/i],[f,[m,"Siemens"],[p,y]],[/\b(rct\w+) b/i],[f,[m,"RCA"],[p,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[m,"Dell"],[p,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[m,"Verizon"],[p,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[m,"Barnes & Noble"],[p,b]],[/\b(tm\d{3}\w+) b/i],[f,[m,"NuVision"],[p,b]],[/\b(k88) b/i],[f,[m,"ZTE"],[p,b]],[/\b(nx\d{3}j) b/i],[f,[m,"ZTE"],[p,y]],[/\b(gen\d{3}) b.+49h/i],[f,[m,"Swiss"],[p,y]],[/\b(zur\d{3}) b/i],[f,[m,"Swiss"],[p,b]],[/\b((zeki)?tb.*\b) b/i],[f,[m,"Zeki"],[p,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],f,[p,b]],[/\b(ns-?\w{0,9}) b/i],[f,[m,"Insignia"],[p,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[m,"NextBook"],[p,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],f,[p,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],f,[p,y]],[/\b(ph-1) /i],[f,[m,"Essential"],[p,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[m,"Envizen"],[p,b]],[/\b(trio[-\w\. ]+) b/i],[f,[m,"MachSpeed"],[p,b]],[/\btu_(1491) b/i],[f,[m,"Rotor"],[p,b]],[/(shield[\w ]+) b/i],[f,[m,"Nvidia"],[p,b]],[/(sprint) (\w+)/i],[m,f,[p,y]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[m,T],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[m,U],[p,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[m,U],[p,y]],[/smart-tv.+(samsung)/i],[m,[p,w]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[m,D],[p,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,R],[p,w]],[/(apple) ?tv/i],[m,[f,k+" TV"],[p,w]],[/crkey/i],[[f,_+"cast"],[m,P],[p,w]],[/droid.+aft(\w)( bui|\))/i],[f,[m,E],[p,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[m,F],[p,w]],[/(bravia[\w ]+)( bui|\))/i],[f,[m,M],[p,w]],[/(mitv-\w{5}) bui/i],[f,[m,z],[p,w]],[/Hbbtv.*(technisat) (.*);/i],[m,f,[p,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,K],[f,K],[p,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,f,[p,g]],[/droid.+; (shield) bui/i],[f,[m,"Nvidia"],[p,g]],[/(playstation [345portablevi]+)/i],[f,[m,M],[p,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[m,T],[p,g]],[/((pebble))app/i],[m,f,[p,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[m,k],[p,C]],[/droid.+; (glass) \d/i],[f,[m,P],[p,C]],[/droid.+; (wt63?0{2,3})\)/i],[f,[m,U],[p,C]],[/(quest( 2| pro)?)/i],[f,[m,B],[p,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[p,S]],[/(aeobc)\b/i],[f,[m,E],[p,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[p,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,y]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[h,Q,q]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[h,Q,q]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,G],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,h],[/\(bb(10);/i],[h,[d,A]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[d,O+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[d,_+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,H],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,h],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,h]]},$=function e(t,n){if(typeof t===u&&(n=t,t=o),!(this instanceof e))return new e(t,n).getResult();var r=typeof a!==l&&a.navigator?a.navigator:o,g=t||(r&&r.userAgent?r.userAgent:""),w=r&&r.userAgentData?r.userAgentData:o,C=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,n):J,S=r&&r.userAgent==g;return this.getBrowser=function(){var e,t={};return t[d]=o,t[h]=o,Y.call(t,g,C.browser),t[c]=typeof(e=t[h])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:o,S&&r&&r.brave&&typeof r.brave.isBrave==i&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[v]=o,Y.call(e,g,C.cpu),e},this.getDevice=function(){var e={};return e[m]=o,e[f]=o,e[p]=o,Y.call(e,g,C.device),S&&!e[p]&&w&&w.mobile&&(e[p]=y),S&&"Macintosh"==e[f]&&r&&typeof r.standalone!==l&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[f]="iPad",e[p]=b),e},this.getEngine=function(){var e={};return e[d]=o,e[h]=o,Y.call(e,g,C.engine),e},this.getOS=function(){var e={};return e[d]=o,e[h]=o,Y.call(e,g,C.os),S&&!e[d]&&w&&"Unknown"!=w.platform&&(e[d]=w.platform.replace(/chrome os/i,H).replace(/macos/i,G)),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 g},this.setUA=function(e){return g=typeof e===s&&e.length>350?K(e,350):e,this},this.setUA(g),this};$.VERSION="1.0.35",$.BROWSER=V([d,h,c]),$.CPU=V([v]),$.DEVICE=V([f,m,p,g,y,w,b,C,S]),$.ENGINE=$.OS=V([d,h]),typeof t!==l?(e.exports&&(t=e.exports=$),t.UAParser=$):n.amdO?(r=function(){return $}.call(t,n,t,e))===o||(e.exports=r):typeof a!==l&&(a.UAParser=$);var X=typeof a!==l&&(a.jQuery||a.Zepto);if(X&&!X.ua){var ee=new $;X.ua=ee.getResult(),X.ua.get=function(){return ee.getUA()},X.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:this)},"../../common/components/webcamera/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),a=n.n(r),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o)()(a());i.push([e.id,".xl44rW4kuSyU533NCnrj {\n flex: 1;\n}\n\nvideo {\n background-color: white;\n width: 100%;\n height: 100%;\n object-fit: contain;\n transform: scaleX(-1);\n}\n\n.NRBs5Nn9pHvgApyzPFB3 {\n transform: scaleX(1);\n}\n",""]),i.locals={container:"xl44rW4kuSyU533NCnrj",mirroring:"NRBs5Nn9pHvgApyzPFB3"},t.Z=i},"../../common/icons/Button.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),a=n.n(r),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o)()(a());i.push([e.id,".HFqamWEvachioPpbBBsB {\n border: none;\n margin: 0;\n background: var(--main-color);\n cursor: pointer;\n text-align: center;\n text-decoration: none;\n font-family: var(--font-family);\n font-size: 1em;\n font-weight: normal;\n line-height: 1.5em;\n color: white;\n appearance: none;\n padding: 0.5em 2.15em;\n border-radius: 2px;\n transition: background 250ms ease-in-out, transform 150ms ease;\n}\n\n.HFqamWEvachioPpbBBsB:hover {\n background: var(--hover-color);\n}\n\n.HFqamWEvachioPpbBBsB:active {\n background: var(--active-color);\n}\n",""]),i.locals={button:"HFqamWEvachioPpbBBsB"},t.Z=i},"../../common/icons/Spinner.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),a=n.n(r),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o)()(a());i.push([e.id,'.DoeKWt2U4EtFGGXNAWz5 {\n height: 50px;\n width: 50px;\n}\n\n@keyframes MqbdhTIHKfhcoRig_P79 {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.vdpmGfEuokyPSe9kUIWx {\n position: relative;\n width: 50px;\n height: 50px;\n clip: rect(22px, 44px, 44px, 0);\n animation: MqbdhTIHKfhcoRig_P79 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;\n}\n\n.vdpmGfEuokyPSe9kUIWx::before, .vdpmGfEuokyPSe9kUIWx::after {\n content: "";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n margin: auto;\n height: 44px;\n width: 44px;\n border-radius: 50%;\n}\n\n.vdpmGfEuokyPSe9kUIWx::before {\n border: 3px solid transparent;\n border-top: 3px solid var(--main-color);\n animation: MqbdhTIHKfhcoRig_P79 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;\n}\n\n.vdpmGfEuokyPSe9kUIWx::after {\n border: 3px solid rgba(49, 49, 49, 0.1);\n}\n',""]),i.locals={container:"DoeKWt2U4EtFGGXNAWz5",spinner:"vdpmGfEuokyPSe9kUIWx",spin:"MqbdhTIHKfhcoRig_P79"},t.Z=i},"./src/components/container/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),a=n.n(r),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o)()(a());i.push([e.id,"*, *::before, *::after {\n box-sizing: border-box;\n}\n\n:host {\n display: block;\n --font-family: Noto Sans, sans-serif;\n --font-size: 16px;\n --main-color: #bd7dff;\n --hover-color: #bd00ff;\n --active-color: #bd7dff;\n width: 100%;\n height: 100%;\n}\n\ndocument-reader {\n display: block;\n --font-family: Noto Sans, sans-serif;\n --font-size: 16px;\n --main-color: #bd7dff;\n --hover-color: #bd00ff;\n --active-color: #bd7dff;\n width: 100%;\n height: 100%;\n}\n\ncamera-snapshot {\n display: block;\n --font-family: Noto Sans, sans-serif;\n --font-size: 16px;\n --main-color: #bd7dff;\n --hover-color: #bd00ff;\n --active-color: #bd7dff;\n width: 100%;\n height: 100%;\n}\n\n.Id5wCbNRwOQKecr226wA {\n width: 640px;\n height: 360px;\n position: relative;\n background: white;\n overflow: hidden;\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);\n color: white;\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n -webkit-transform: translate3d(0, 0, 0);\n -moz-transform: translate3d(0, 0, 0);\n font-family: var(--font-family);\n font-size: var(--font-size);\n margin: 0 auto;\n}\n\n.Id5wCbNRwOQKecr226wA[data-direction='rtl'] {\n direction: rtl;\n}\n\n.Id5wCbNRwOQKecr226wA[data-direction='ltr'] {\n direction: ltr;\n}\n\n.Id5wCbNRwOQKecr226wA.kR0wEqAZohlqDkMuUOR3 {\n width: 100%;\n height: 100%;\n border-radius: 0;\n box-shadow: none;\n}\n\n.ddOP01Ag5Ei5sMnIPsPw {\n position: absolute;\n top: 0;\n display: flex;\n justify-content: flex-end;\n padding: 16px;\n}\n\ndiv[data-direction='rtl'] .ddOP01Ag5Ei5sMnIPsPw {\n left: 0;\n}\n\ndiv[data-direction='ltr'] .ddOP01Ag5Ei5sMnIPsPw {\n right: 0;\n}\n\n.ddOP01Ag5Ei5sMnIPsPw button, .jLC5XiJgjYEyi_zPJWyA button {\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n background: none;\n cursor: pointer;\n text-align: center;\n transition: background 250ms ease-in-out, transform 150ms ease;\n appearance: none;\n}\n\n.jLC5XiJgjYEyi_zPJWyA {\n position: absolute;\n bottom: 0;\n padding: 0 16px 10px;\n display: flex;\n align-items: center;\n}\n\ndiv[data-direction='rtl'] .jLC5XiJgjYEyi_zPJWyA {\n right: 0;\n}\n\ndiv[data-direction='ltr'] .jLC5XiJgjYEyi_zPJWyA {\n left: 0;\n}\n\n.NdiYGZWxA0wWOe0DzfPD {\n display: flex;\n align-items: center;\n}\n\n.NdiYGZWxA0wWOe0DzfPD span {\n font-size: 10px;\n line-height: 24px;\n color: #8C8C8C;\n}\n\n.NdiYGZWxA0wWOe0DzfPD .WNwdRWoMESCAg7DGVscm {\n margin: 0 6px;\n opacity: 0.3;\n height: 18px;\n width: 1px;\n background-color: #8C8C8C;\n}\n\n.NdiYGZWxA0wWOe0DzfPD._PjdNMvQStJxRzq9dyk2 span, .NdiYGZWxA0wWOe0DzfPD._PjdNMvQStJxRzq9dyk2 .WNwdRWoMESCAg7DGVscm {\n color: rgba(255, 255, 255, 0.9);\n}\n\n@media (max-width: 640px) {\n .Id5wCbNRwOQKecr226wA {\n width: 100%;\n height: 100%;\n border-radius: 0;\n }\n\n .jLC5XiJgjYEyi_zPJWyA {\n width: 100%;\n justify-content: center;\n }\n}\n",""]),i.locals={window:"Id5wCbNRwOQKecr226wA",full:"kR0wEqAZohlqDkMuUOR3",header:"ddOP01Ag5Ei5sMnIPsPw",footer:"jLC5XiJgjYEyi_zPJWyA",ads:"NdiYGZWxA0wWOe0DzfPD",pipe:"WNwdRWoMESCAg7DGVscm",processing:"_PjdNMvQStJxRzq9dyk2"},t.Z=i},"./src/components/info-screen/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),a=n.n(r),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o)()(a());i.push([e.id,".cfLyzmVLR0omr_N7Wgsn {\n display: flex;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 0 1.5em;\n}\n\n.rIV0RuQs4THTh3iKcCMy {\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 350px;\n word-break: break-word;\n}\n\n.rIV0RuQs4THTh3iKcCMy > svg {\n margin-bottom: 1.12em;\n}\n\n.cfLyzmVLR0omr_N7Wgsn .esPd7UI8Kn7VZgTJnONk {\n margin: 0 0 0.4em;\n font-size: 1.25em;\n font-weight: bold;\n line-height: 1.4em;\n color: #262626;\n text-align: center;\n}\n\n.cfLyzmVLR0omr_N7Wgsn .LFOirrN3wPKBINkOxfSf {\n margin: 0 0 1em;\n font-style: normal;\n font-size: 1em;\n font-weight: normal;\n line-height: 1.375em;\n color: #8C8C8C;\n text-align: center;\n}\n",""]),i.locals={"info-message":"cfLyzmVLR0omr_N7Wgsn","text-container":"rIV0RuQs4THTh3iKcCMy",title:"esPd7UI8Kn7VZgTJnONk",subtitle:"LFOirrN3wPKBINkOxfSf"},t.Z=i},"./src/components/layout/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),a=n.n(r),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o)()(a());i.push([e.id,".pPENnQwkQ3hnNDe95CXQ {\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.dYHBzaM5Fln11rgWFpP0, .mp6H2heYlvKqpVsy13tM {\n display: flex;\n justify-content: center;\n}\n\n.i1xlxNxzn2eTQx9bFweO, .mp6H2heYlvKqpVsy13tM, .dYHBzaM5Fln11rgWFpP0 {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n}\n\n.i1xlxNxzn2eTQx9bFweO rect, .i1xlxNxzn2eTQx9bFweO path {\n transition: .25s stroke;\n}\n\n.YHW1xu9C9ARQ6xFd1TYB {\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 370px;\n position: relative;\n align-self: center;\n align-items: center;\n margin: 0 1em;\n}\n\n.kQaUIQUyBSCDMkTs52CQ {\n position: absolute;\n top: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 80px;\n height: 80px;\n transform: translate(0, -50%);\n border-radius: 50%;\n}\n\n.VvFm8MTonTb3dV_lvMTz {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n margin-top: 50px;\n}\n\n.jDHKSd7gERsEtLWDY_3a {\n text-align: center;\n padding: 0.75em 1.5em;\n background-color: rgba(27, 16, 31, 0.5);\n border-radius: 6px;\n}\n\n.AuvYTJ5SOkVPoZnunL2s {\n font-weight: bold;\n color: white;\n margin: 0;\n font-size: 1.25em;\n line-height: 1.25em;\n}\n\n.ZRfiVP_OTAZsPqen70dm {\n font-weight: normal;\n color: white;\n opacity: .65;\n margin: 0.5em 0 0;\n font-size: 1em;\n line-height: 1.125em;\n}\n\n.wjqxlaI2iA_EUpcHpjs8 {\n font-weight: normal;\n color: white;\n margin: 0;\n font-size: 1.125em;\n line-height: 1.3em;\n}\n\n.BrHXMqTh5KohQ6fi8CJO, .OPdCRqaLdpw6prNLGMjg {\n position: absolute;\n padding: 15px;\n display: flex;\n}\n\n.UphcvDWKyrYEuch_Hxin, .JBBmvqkLFyLu5GM9T8YJ, .Tr96aSqnUhrFnuBO8fyz {\n display: flex;\n}\n\ndiv[data-orientation='landscape'] .BrHXMqTh5KohQ6fi8CJO,\ndiv[data-orientation='landscape'] .UphcvDWKyrYEuch_Hxin,\ndiv[data-orientation='landscape'] .JBBmvqkLFyLu5GM9T8YJ {\n flex-direction: column;\n}\n\ndiv[data-orientation='landscape'] .UphcvDWKyrYEuch_Hxin button + button,\ndiv[data-orientation='landscape'] .JBBmvqkLFyLu5GM9T8YJ button + button,\ndiv[data-orientation='landscape'] .BrHXMqTh5KohQ6fi8CJO div + div {\n margin-top: 15px;\n}\n\ndiv[data-orientation='portrait'] .Tr96aSqnUhrFnuBO8fyz button + button {\n margin-bottom: 15px;\n}\n\ndiv[data-orientation='landscape'] .OPdCRqaLdpw6prNLGMjg,\ndiv[data-orientation='landscape'] .Tr96aSqnUhrFnuBO8fyz,\ndiv[data-direction='rtl'] div[data-orientation='portrait'] .OPdCRqaLdpw6prNLGMjg,\n.BrHXMqTh5KohQ6fi8CJO {\n left: 0;\n}\n\ndiv[data-orientation='portrait'] .BrHXMqTh5KohQ6fi8CJO,\ndiv[data-direction='ltr'] div[data-orientation='portrait'] .OPdCRqaLdpw6prNLGMjg {\n right: 0;\n}\n\ndiv[data-orientation='portrait'] .BrHXMqTh5KohQ6fi8CJO {\n justify-content: space-between;\n}\n\ndiv[data-direction='ltr'] div[data-orientation='portrait'] .UphcvDWKyrYEuch_Hxin button + button,\ndiv[data-direction='ltr'] div[data-orientation='portrait'] .JBBmvqkLFyLu5GM9T8YJ button + button,\ndiv[data-orientation='landscape'] .Tr96aSqnUhrFnuBO8fyz button + button {\n margin-left: 15px;\n}\n\ndiv[data-direction='rtl'] div[data-orientation='portrait'] .UphcvDWKyrYEuch_Hxin button + button,\ndiv[data-direction='rtl'] div[data-orientation='portrait'] .JBBmvqkLFyLu5GM9T8YJ button + button {\n margin-right: 15px;\n}\n\n.Tr96aSqnUhrFnuBO8fyz {\n position: absolute;\n bottom: 50%;\n transform: translate(0, 50%);\n padding: 15px;\n}\n\ndiv[data-orientation='portrait'] .Tr96aSqnUhrFnuBO8fyz {\n bottom: 0;\n right: 50%;\n transform: translate(50%, 0);\n flex-direction: column-reverse;\n z-index: 1;\n}\n\n.OPdCRqaLdpw6prNLGMjg {\n top: 0;\n}\n\n.BrHXMqTh5KohQ6fi8CJO {\n bottom: 0;\n}\n\n.BrHXMqTh5KohQ6fi8CJO button:not(.ENDLBRGuR1abICc4Wl6w):hover,\n.OPdCRqaLdpw6prNLGMjg button:hover,\n.Tr96aSqnUhrFnuBO8fyz button:hover {\n transform: scale(1.1);\n}\n\n.BrHXMqTh5KohQ6fi8CJO button,\n.OPdCRqaLdpw6prNLGMjg button,\n.Tr96aSqnUhrFnuBO8fyz button,\n.ENDLBRGuR1abICc4Wl6w {\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n background: none;\n cursor: pointer;\n text-align: center;\n transition: background 250ms ease-in-out, transform 150ms ease;\n}\n\n.ENDLBRGuR1abICc4Wl6w {\n position: absolute;\n bottom: 20px;\n left: 50%;\n transform: translate(-50%, 0);\n}\n\n.Tr96aSqnUhrFnuBO8fyz .sJSR_9l2FlfDmkgIsd6N {\n padding: 0 10px;\n border-radius: 6px;\n background-color: rgba(27, 16, 31, 0.5);\n}\n\n.ENDLBRGuR1abICc4Wl6w:hover {\n transform: translate(-50%, 0) scale(1.1);\n}\n\n@media (max-width: 640px) {\n .ENDLBRGuR1abICc4Wl6w {\n padding-bottom: 27px;\n }\n}\n\n.PFIQUKRmG7Xc5g_dcwaG {\n width: 70%;\n height: 80%;\n position: relative;\n align-self: center;\n perspective: 1000px;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG svg, .PFIQUKRmG7Xc5g_dcwaG img {\n width: 100%;\n height: auto;\n object-fit: cover;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .mxgKd4LMhe4WHzxy9cuf,\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7 {\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n backface-visibility: hidden;\n -webkit-backface-visibility: hidden;\n transition: transform 0.6s ease-out;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .mxgKd4LMhe4WHzxy9cuf {\n z-index: 2;\n animation: UcBiEd1fPzsnNvNSAIfZ 1.5s;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7 {\n transform: rotateY(180deg);\n animation: GLnSmW1uNvNidvEbua6U 1.5s;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .mxgKd4LMhe4WHzxy9cuf path,\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7 path {\n animation: vFcnqtw9_fKeJwp6MtUc 1.5s;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7 path {\n animation-direction: reverse;\n}\n\n.PFIQUKRmG7Xc5g_dcwaG .mxgKd4LMhe4WHzxy9cuf,\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7,\n.PFIQUKRmG7Xc5g_dcwaG .mxgKd4LMhe4WHzxy9cuf path,\n.PFIQUKRmG7Xc5g_dcwaG .S4Pzz2GvHhjMB8XHBWl7 path {\n animation-delay: 1s;\n animation-fill-mode: forwards;\n}\n\n@keyframes UcBiEd1fPzsnNvNSAIfZ {\n from {\n transform: rotateY(0deg);\n }\n to {\n transform: rotateY(-180deg);\n }\n}\n\n@keyframes GLnSmW1uNvNidvEbua6U {\n from {\n transform: rotateY(180deg);\n }\n to {\n transform: rotateY(0deg);\n }\n}\n\n@keyframes vFcnqtw9_fKeJwp6MtUc {\n from {\n fill: white;\n }\n to {\n fill: black;\n }\n}\n\n.VvRKtPXXC8mVWLuc8Pq0 {\n opacity: 0;\n}\n\n.BuSIHMMADfwc4AH9s8y5 {\n opacity: 1;\n}\n\n.UU4MN28IkJ78AzTNTTK7 {\n opacity: 1;\n}\n\n.Qu4RkeRcdcPvYbL1SZUp {\n opacity: 0;\n}\n\n.UU4MN28IkJ78AzTNTTK7,\n.Qu4RkeRcdcPvYbL1SZUp {\n transition: opacity 300ms;\n}\n",""]),i.locals={container:"pPENnQwkQ3hnNDe95CXQ",layout:"dYHBzaM5Fln11rgWFpP0","tips-container":"mp6H2heYlvKqpVsy13tM",svg:"i1xlxNxzn2eTQx9bFweO","message-container":"YHW1xu9C9ARQ6xFd1TYB",icon:"kQaUIQUyBSCDMkTs52CQ",message:"VvFm8MTonTb3dV_lvMTz","message-background":"jDHKSd7gERsEtLWDY_3a",title:"AuvYTJ5SOkVPoZnunL2s",subtitle:"ZRfiVP_OTAZsPqen70dm","message-text":"wjqxlaI2iA_EUpcHpjs8","bottom-functional-buttons":"BrHXMqTh5KohQ6fi8CJO","top-functional-buttons":"OPdCRqaLdpw6prNLGMjg","buttons-left":"UphcvDWKyrYEuch_Hxin","buttons-right":"JBBmvqkLFyLu5GM9T8YJ","left-functional-buttons":"Tr96aSqnUhrFnuBO8fyz","snapshot-button":"ENDLBRGuR1abICc4Wl6w","skip-button":"sJSR_9l2FlfDmkgIsd6N",flip:"PFIQUKRmG7Xc5g_dcwaG",front:"mxgKd4LMhe4WHzxy9cuf",back:"S4Pzz2GvHhjMB8XHBWl7","flip-front":"UcBiEd1fPzsnNvNSAIfZ","flip-back":"GLnSmW1uNvNidvEbua6U","flip-shadow":"vFcnqtw9_fKeJwp6MtUc","fade-enter":"VvRKtPXXC8mVWLuc8Pq0","fade-exit":"BuSIHMMADfwc4AH9s8y5","fade-enter-active":"UU4MN28IkJ78AzTNTTK7","fade-exit-active":"Qu4RkeRcdcPvYbL1SZUp"},t.Z=i},"./src/components/process-screen/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),a=n.n(r),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o)()(a());i.push([e.id,".VROx88CAGymXPPMYbuHB {\n display: flex;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.WLgSigxr0ZviVeGTZmvV {\n display: block;\n padding-top: 0.875em;\n font-size: 0.875em;\n font-weight: normal;\n line-height: 1.43em;\n color: #444444;\n}\n",""]),i.locals={"process-message":"VROx88CAGymXPPMYbuHB",message:"WLgSigxr0ZviVeGTZmvV"},t.Z=i},"./src/components/start-screen/style.css":function(e,t,n){var r=n("../../node_modules/css-loader/dist/runtime/noSourceMaps.js"),a=n.n(r),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o)()(a());i.push([e.id,".Q8OlTtZlwqxIDRZ30J3R {\n display: flex;\n height: 100%;\n align-items: center;\n flex-direction: column;\n padding: 2em 1.5em 2.5em;\n}\n\n.wlyDEvBUrTqTx0Aoz_sg {\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n}\n\n.wlyDEvBUrTqTx0Aoz_sg .aFtontnfWGLSGi8Of4s8 {\n margin: 0 0 0.4em;\n max-width: 500px;\n color: #262626;\n font-size: 1.25em;\n font-weight: bold;\n line-height: 1.4em;\n}\n\n.wlyDEvBUrTqTx0Aoz_sg .pQVCAFTaDOFYpoKJ6zdw {\n display: block;\n max-width: 465px;\n color: #8C8C8C;\n margin: 0 0 0.5em;\n font-size: 1em;\n line-height: 1.375em;\n}\n\n.nCT2vQ397FZv7bp7nRFY {\n display: flex;\n width: 100%;\n flex: 1;\n align-items: center;\n justify-content: center;\n}\n\n.nCT2vQ397FZv7bp7nRFY button {\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 290px;\n max-height: 140px;\n padding: 1em 0;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background: white;\n border: 1px solid rgba(0, 0, 0, 0.05);\n border-radius: 3px;\n cursor: pointer;\n font-size: 1em;\n}\n\n.nCT2vQ397FZv7bp7nRFY button:hover {\n border: 1px solid var(--main-color);\n}\n\n.nCT2vQ397FZv7bp7nRFY button:hover p {\n color: var(--main-color);\n}\n\n.nCT2vQ397FZv7bp7nRFY button svg {\n margin-bottom: 0.9em;\n align-self: center;\n}\n\n.nCT2vQ397FZv7bp7nRFY p {\n font-family: var(--font-family);\n font-style: normal;\n line-height: 1.25em;\n font-size: 1em;\n color: #444444;\n margin: 0;\n}\n\n.nCT2vQ397FZv7bp7nRFY button + button {\n margin-left: 1em;\n}\n\ndiv[data-direction='rtl'] .nCT2vQ397FZv7bp7nRFY button + button {\n margin-left: 0;\n margin-right: 1em;\n}\n\n@media (max-width: 660px) {\n .Q8OlTtZlwqxIDRZ30J3R {\n padding: 5em 1em 2.5em;\n }\n\n .wlyDEvBUrTqTx0Aoz_sg .aFtontnfWGLSGi8Of4s8 {\n font-size: 1.5em;\n line-height: 1.25em;\n }\n\n .nCT2vQ397FZv7bp7nRFY p {\n font-size: 0.875em;\n color: #262626;\n }\n}\n",""]),i.locals={"start-window":"Q8OlTtZlwqxIDRZ30J3R",text:"wlyDEvBUrTqTx0Aoz_sg",title:"aFtontnfWGLSGi8Of4s8",subtitle:"pQVCAFTaDOFYpoKJ6zdw",buttons:"nCT2vQ397FZv7bp7nRFY"},t.Z=i}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){n.d(r,{Wo:function(){return Uo},ly:function(){return Ro},fl:function(){return Go}});var e={};n.r(e),n.d(e,{ar:function(){return hr},bn:function(){return _r},cs:function(){return Ir},da:function(){return Rr},de:function(){return or},el:function(){return Sr},en:function(){return ar},es:function(){return pr},fi:function(){return Pr},fr:function(){return dr},he:function(){return Or},hi:function(){return xr},hr:function(){return Tr},hu:function(){return ur},id:function(){return gr},it:function(){return lr},ja:function(){return kr},ko:function(){return br},ms:function(){return wr},nl:function(){return vr},no:function(){return Lr},pl:function(){return ir},pt:function(){return mr},ro:function(){return Cr},ru:function(){return rr},sk:function(){return cr},sv:function(){return Nr},th:function(){return Ar},tr:function(){return Er},uk:function(){return fr},vi:function(){return yr},zh:function(){return sr}});for(var t=n("../../node_modules/react-dom/client.js"),a=function(e){return e.UINT="UINT",e.BASE64="BASE64",e.UINT_AND_BASE64="UINT_AND_BASE64",e}({}),o=function(e){return e[e.EMPTY=-1]="EMPTY",e[e.ERROR=0]="ERROR",e[e.OK=1]="OK",e[e.TIMEOUT=2]="TIMEOUT",e}({}),i=function(e){return e.PREPARING="StreamStatus.PREPARING",e.REQUESTING="StreamStatus.REQUESTING",e.READY="StreamStatus.READY",e.PLAY="StreamStatus.PLAY",e.UNKNOWN_ERROR="StreamStatus.UNKNOWN_ERROR",e.PERMISSION_DENIED="StreamStatus.PERMISSION_DENIED",e.NO_CAMERA="StreamStatus.NO_CAMERA",e.INCORRECT_CAMERA_ID="StreamStatus.INCORRECT_CAMERA_ID",e}({}),l=function(e){return e.user="user",e.environment="environment",e}({}),u=function(e){return e.contain="contain",e.cover="cover",e}({}),s=function(e){return e.WASM_ERROR="WASM_ERROR",e.WASM_LICENSE="WASM_LICENSE",e.FILE_SIZE="FILE_SIZE",e.INCORRECT_FILE="INCORRECT_FILE",e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_SUPPORTED="NOT_SUPPORTED",e.CAMERA_UNKNOWN_ERROR="CAMERA_UNKNOWN_ERROR",e.CAMERA_PERMISSION_DENIED="CAMERA_PERMISSION_DENIED",e.NO_CAMERA="NO_CAMERA",e.INCORRECT_CAMERA_ID="INCORRECT_CAMERA_ID",e.CONNECTION_ERROR="CONNECTION_ERROR",e.LANDSCAPE_MODE_RESTRICTED="LANDSCAPE_MODE_RESTRICTED",e.NOT_PREPARED="NOT_PREPARED",e.NOT_INITIALIZED="NOT_INITIALIZED",e.IN_PROCESS="IN_PROCESS",e.ALREADY_PREPARED="ALREADY_PREPARED",e.ALREADY_INITIALIZED="ALREADY_INITIALIZED",e.TIMEOUT_ERROR="TIMEOUT_ERROR",e.DEVICE_ROTATE="DEVICE_ROTATE",e.CHANGE_CAMERA="CHANGE_CAMERA",e.APP_INACTIVE="APP_INACTIVE",e.INCORRECT_SCENARIO="INCORRECT_SCENARIO",e}({}),c=function(e){return e[e.HAVE_NOTHING=0]="HAVE_NOTHING",e[e.HAVE_METADATA=1]="HAVE_METADATA",e[e.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",e[e.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",e[e.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA",e}({}),f=function(e){return e.stdout="stdout",e.stderr="stderr",e.custom="custom",e.gl="gl",e.init="worker-init",e}({}),d=function(e){return e.Rtl="rtl",e.Ltr="ltr",e}({}),p="NotAllowedError",m=["ar","he"],h={VGA:{width:640,height:480},HD:{width:1280,height:720},FULL_HD:{width:1920,height:1080},SQUARE:{width:720,height:720}},v=["rear","back","rück","arrière","trasera","trás","traseira","posteriore","posterior","后面","後面","背面","后置","後置","背置","задней","الخلفية","خلفية","후","arka","achterzijde","หลัง","baksidan","bagside","sau","bak","tylny","takakamera","belakang","אחורית","πίσω","spate","hátsó","zadní","darrere","zadná","задня","задна","birou","артқы","stražnja","belakang","बैक","desk","桌上视角相机","桌上視角相機","デスクビューカメラ","cenital","escritorio","bureau","secretária","scrivania","masa","bureauweergave","الرأسي","กล้องดูด้านหน้าโต๊ะ","skrivebord","bordvisning","blatu","työpöytänäkymän","meja","תצוגת שולחן","προβολής","íróasztal","stolní","l’escriptori","stolná","стіл","стола","डेस्क","үстел","настолна","데스크뷰","bordsvisningskamera"],g={[i.UNKNOWN_ERROR]:s.CAMERA_UNKNOWN_ERROR,[i.PERMISSION_DENIED]:s.CAMERA_PERMISSION_DENIED,[i.NO_CAMERA]:s.NO_CAMERA,[i.INCORRECT_CAMERA_ID]:s.INCORRECT_CAMERA_ID},y=function(e){return e.DOCUMENT="DOCUMENT",e.FACE="FACE",e}({}),b=function(e){return e.ELEMENT_VISIBLE="ELEMENT_VISIBLE",e.PRESS_CAMERA_BUTTON="PRESS_CAMERA_BUTTON",e.PRESS_FILE_BUTTON="PRESS_FILE_BUTTON",e.PRESS_RETRY_BUTTON="PRESS_RETRY_BUTTON",e.PRESS_SKIP_BUTTON="PRESS_SKIP_BUTTON",e.PRESS_CAPTURE_BUTTON="PRESS_CAPTURE_BUTTON",e.PRESS_CHANGE_CAMERA_BUTTON="PRESS_CHANGE_CAMERA_BUTTON",e.PRESS_MIRRORING_BUTTON="PRESS_MIRRORING_BUTTON",e.NEW_PAGE_AVAILABLE="NEW_PAGE_AVAILABLE",e.NEW_PAGE_STARTED="NEW_PAGE_STARTED",e.CLOSE="CLOSE",e.CAMERA_PROCESS_CLOSED="CAMERA_PROCESS_CLOSED",e.CAMERA_PROCESS_STARTED="CAMERA_PROCESS_STARTED",e.VIDEO_STARTED="VIDEO_STARTED",e.VIDEO_STOPPED="VIDEO_STOPPED",e.FILE_PROCESS_STARTED="FILE_PROCESS_STARTED",e.PROCESS_FINISHED="PROCESS_FINISHED",e.SERVICE_INITIALIZED="SERVICE_INITIALIZED",e}({}),w=function(e){return e.FINDING="DocumentCaptureStatus.FINDING",e.PROCESSING="DocumentCaptureStatus.PROCESSING",e.SUCCESS="DocumentCaptureStatus.SUCCESS",e.FAILED="DocumentCaptureStatus.FAILED",e.RESOLUTION="DocumentCaptureStatus.RESOLUTION",e.GLARE="DocumentCaptureStatus.GLARE",e.FOCUS="DocumentCaptureStatus.FOCUS",e.HOLD="DocumentCaptureStatus.HOLD",e.START_DETECTION="DocumentCaptureStatus.START_DETECTION",e.START_NEXT_PAGE="DocumentCaptureStatus.START_NEXT_PAGE",e.SNAPSHOT="DocumentCaptureStatus.SNAPSHOT",e.TIMEOUT="DocumentCaptureStatus.TIMEOUT",e}({}),C=function(e){return e.auto="auto",e.captureVideo="captureVideo",e.captureFrame="captureFrame",e}({}),S=function(e){return e.CHOOSE_INPUT_SOURCE="DocumentCompletionStatus.CHOOSE_INPUT_SOURCE",e.CAMERA_PROCESSING="DocumentCompletionStatus.CAMERA_PROCESSING",e.FILE_PROCESSING="DocumentCompletionStatus.FILE_PROCESSING",e.API_PROCESSING="DocumentCompletionStatus.API_PROCESSING",e.SUCCESS="DocumentCompletionStatus.SUCCESS",e.FAILED="DocumentCompletionStatus.FAILED",e.FILE_SIZE_ERROR="DocumentCompletionStatus.FILE_SIZE_ERROR",e.WASM_DEFAULT_ERROR="DocumentCompletionStatus.WASM_DEFAULT_ERROR",e.NOT_SUPPORTED_ERROR="DocumentCompletionStatus.NOT_SUPPORTED_ERROR",e.WASM_LICENSE_ERROR="DocumentCompletionStatus.WASM_LICENSE_ERROR",e.INCORRECT_FILE_ERROR="DocumentCompletionStatus.INCORRECT_FILE_ERROR",e.UNKNOWN_ERROR="DocumentCompletionStatus.UNKNOWN_ERROR",e.TIMEOUT="DocumentCompletionStatus.TIMEOUT",e}({}),E=function(e){return e.locale="locale",e.multiple="multiple",e.license="license",e.copyright="copyright",e.startScreen="start-screen",e.internalScenario="internal-scenario",e.multipageProcessing="multipage-processing",e.cameraId="camera-id",e.changeCamera="change-camera",e.closeButton="close-button",e.captureButton="capture-button",e}({}),k=function(e){return e.locale="locale",e.multiple="multiple",e.copyright="copyright",e.startScreen="start-screen",e.cameraId="camera-id",e.changeCamera="change-camera",e.closeButton="close-button",e}({}),I=function(e){return e.MrzAndLocate="MrzAndLocate",e.MrzOrLocate="MrzOrLocate",e.Mrz="Mrz",e.Locate="Locate",e.Barcode="Barcode",e.MrzOrBarcode="MrzOrBarcode",e.BarcodeAndLocate="BarcodeAndLocate",e}({}),A=function(e){return e[e.prepare=12e3]="prepare",e[e.initialize=12100]="initialize",e[e.process=12101]="process",e[e.processImage=12104]="processImage",e[e.startNewPage=12106]="startNewPage",e[e.startNewDocument=12105]="startNewDocument",e}({}),x=function(e){return e.line="line",e.corners="corners",e}({}),_=function(e){return e.butt="butt",e.round="round",e.square="square",e}({}),O=25e6,P=536870912,N="#8C8C8C",R={[s.FILE_SIZE]:S.FILE_SIZE_ERROR,[s.WASM_ERROR]:S.WASM_DEFAULT_ERROR,[s.NOT_SUPPORTED]:S.NOT_SUPPORTED_ERROR,[s.WASM_LICENSE]:S.WASM_LICENSE_ERROR,[s.INCORRECT_FILE]:S.INCORRECT_FILE_ERROR},T={[w.SUCCESS]:S.SUCCESS,[w.TIMEOUT]:S.TIMEOUT,[w.FAILED]:S.FAILED},L={iOS:{Chrome:99,Firefox:99,Opera:44,Safari:11,Edge:16,Chromium:57,IE:16,"Internet Explorer":16,"Mobile Safari":11,"Samsung Browser":7},Android:{Chrome:66,Firefox:61,Opera:44,Safari:11,Edge:16,Chromium:57,IE:16,"Internet Explorer":16,"Mobile Safari":11,"Samsung Browser":7},desktop:{Chrome:61,Firefox:60,Opera:44,Safari:11,Edge:16,Chromium:57,IE:16,"Internet Explorer":16,"Mobile Safari":11,"Samsung Browser":7}},j={processParam:{scenario:I.MrzAndLocate,returnUncroppedImage:!0,multipageProcessing:!1,timeoutFromFirstDetect:0,timeoutFromFirstDocType:0,imageQa:{expectedPass:["dpiThreshold","glaresCheck","focusCheck"],dpiThreshold:130,glaresCheck:!0,glaresCheckParams:{imgMarginPart:.05,maxGlaringPart:.01}}}},D={processParam:{scenario:I.MrzAndLocate,returnUncroppedImage:!0}},F={processParam:{scenario:I.MrzAndLocate,returnUncroppedImage:!0,timeoutFromFirstDetect:0,timeoutFromFirstDocType:0}},M={processParam:{scenario:I.MrzAndLocate,returnUncroppedImage:!0}},z=["image/jpeg","image/jpg","image/png","image/gif","image/bmp"],U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B="undefined"==typeof Uint8Array?[]:new Uint8Array(256),H=0;H<64;H++)B[U.charCodeAt(H)]=H;function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}function V(e,t,n){return t&&G(e.prototype,t),n&&G(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var W=V((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.deviceId=t.deviceId,this.facing=n,this.groupId=t.groupId,this.label=t.label})),Z=n("../../node_modules/react-device-detect/dist/lib.js");function K(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=q(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function Y(){Y=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new P(r||[]);return a(i,"_invoke",{value:A(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function b(){}var w={};s(w,i,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(N([])));S&&S!==n&&r.call(S,i)&&(w=S);var E=b.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(a,o,i,l){var u=f(e[a],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function A(t,n,r){var a=d;return function(o,i){if(a===m)throw new Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var l=r.delegate;if(l){var u=x(l,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?h:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function x(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},k(I.prototype),s(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new I(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Q(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||q(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 q(e,t){if(e){if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,a)}function X(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){$(o,r,a,i,l,"next",e)}function l(e){$(o,r,a,i,l,"throw",e)}i(void 0)}))}}var ee=function(e){switch(e){case"":case"true":return!0;case"false":return!1;default:return}};function te(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t);return 0===r.length?function(e){return e}:1===r.length?r[0]:r.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function ne(e,t,n,r,a,o,i,l,s){var c=e/t,f=n/r,d=(s===u.contain?f<c:f>c)?e/n:t/r;return{width:a/d,height:o/d,left:i/d-(e/d-n)/2,top:l/d-(t/d-r)/2}}function re(e,t){return new CustomEvent(e,{bubbles:!0,composed:!0,detail:t})}function ae(){return oe.apply(this,arguments)}function oe(){return(oe=X(Y().mark((function e(){var t,n,r;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.mediaDevices.enumerateDevices();case 2:return t=e.sent,n=t.filter((function(e){return"videoinput"===e.kind})),r=n.every((function(e){return""!==e.label})),e.abrupt("return",{videoDevices:n,isCameraAllowed:r});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ie(e,t){var n=e.toLowerCase();return t.some((function(e){return n.includes(e)}))}function le(e){return ue.apply(this,arguments)}function ue(){return(ue=X(Y().mark((function e(t){var n,r,a,o,i,u,s;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={frontCameras:[],backCameras:[]},r=t.videoDevices,t.isCameraAllowed){e.next=11;break}return e.next=5,navigator.mediaDevices.getUserMedia({video:!0,audio:!1});case 5:return a=e.sent,e.next=8,navigator.mediaDevices.enumerateDevices();case 8:o=e.sent,r=o.filter((function(e){return"videoinput"===e.kind})),a.getTracks().forEach((function(e){return e.stop()}));case 11:i=K(r);try{for(i.s();!(u=i.n()).done;)ie((s=u.value).label,v)?n.backCameras.push(new W(s,l.environment)):n.frontCameras.push(new W(s,l.user))}catch(c){i.e(c)}finally{i.f()}return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e,t,n){var r=[].concat(Q(t.frontCameras),Q(t.backCameras));if(!r.length)return{deviceId:"",facing:void 0,groupId:"",label:""};if(n)return r.find((function(e){return e.deviceId===n}))||{deviceId:"",facing:void 0,groupId:"",label:""};if(e===l.environment&&t.backCameras.length){var a=t.backCameras.map((function(e){var t=e.label.match(/\b([0-9]+)MP?\b/i);return null!==t?parseInt(t[1],10):NaN}));if(a.every((function(e){return!isNaN(e)}))){var o=a.lastIndexOf(Math.max.apply(Math,Q(a)));return t.backCameras[o]}return Z.gn?{deviceId:"",facing:l.environment,groupId:"",label:""}:t.backCameras.sort((function(e,t){return e.label.localeCompare(t.label)}))[0]}return{deviceId:"",facing:l.user,groupId:"",label:""}}var ce=function(e){e.getTracks().forEach((function(e){return e.stop()}))};function fe(e,t,n){return de.apply(this,arguments)}function de(){return(de=X(Y().mark((function e(t,n,r){var a,o,l,u,s,c,f,d,p;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a={status:i.PREPARING,stream:null,camera:{deviceId:"",facing:void 0,groupId:"",label:""}},!navigator.mediaDevices){e.next=24;break}if(n.deviceId||n.facing){e.next=8;break}if(!r){e.next=6;break}return a.status=i.INCORRECT_CAMERA_ID,e.abrupt("return",a);case 6:return a.status=i.NO_CAMERA,e.abrupt("return",a);case 8:return o={height:{ideal:t.height},width:{ideal:t.width},frameRate:{ideal:30}},n.deviceId?o.deviceId={exact:n.deviceId}:o.facingMode={ideal:n.facing},e.next=12,navigator.mediaDevices.getUserMedia({video:o,audio:!1});case 12:if(!(l=e.sent)){e.next=20;break}return u=l.getVideoTracks()[0],s=u.getSettings(),c=s.deviceId,f=s.groupId,d=s.facingMode,p={deviceId:c||n.deviceId,label:u.label||n.label,groupId:f||n.groupId,facing:d||n.facing},e.abrupt("return",{status:i.READY,stream:l,camera:p});case 20:case 24:return a.status=i.UNKNOWN_ERROR,e.abrupt("return",a);case 22:e.next=26;break;case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pe(e,t){var n={imageData:[],raw:"",mimeType:""},r=e.videoHeight,o=e.videoWidth,i=e.readyState;if(r&&o&&i===c.HAVE_ENOUGH_DATA){var l=document.createElement("canvas");l.width=o,l.height=r;var u=l.getContext("2d",{willReadFrequently:!0});if(null==u||u.drawImage(e,0,0),t!==a.UINT){var s="image/jpeg";n.raw=l.toDataURL(s,.8).replace("data:".concat(s,";base64,"),""),n.mimeType=s}if(t!==a.BASE64){var f=null==u?void 0:u.getImageData(0,0,o,r);f&&(n.imageData=[f])}}return n}function me(e,t){var n=[].concat(Q(e.frontCameras),Q(e.backCameras)),r=n.findIndex((function(e){return e.deviceId===t}));return n[(r+1)%n.length].deviceId}function he(e,t){var n=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},r=Object.assign({},e);return n(e)&&n(t)&&Object.keys(t).forEach((function(a){n(t[a])?a in e?r[a]=he(e[a],t[a]):Object.assign(r,{[a]:t[a]}):Object.assign(r,{[a]:t[a]})})),r}function ve(e){return ge.apply(this,arguments)}function ge(){return(ge=X(Y().mark((function e(t){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ye=n("../../node_modules/react/index.js");function be(){be=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new P(r||[]);return a(i,"_invoke",{value:A(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function b(){}var w={};s(w,i,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(N([])));S&&S!==n&&r.call(S,i)&&(w=S);var E=b.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(a,o,i,l){var u=f(e[a],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function A(t,n,r){var a=d;return function(o,i){if(a===m)throw new Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var l=r.delegate;if(l){var u=x(l,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?h:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function x(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},k(I.prototype),s(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new I(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function we(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,a)}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ie(e,t)}(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 Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.environment,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.VGA,n=arguments.length>2?arguments[2]:void 0,r=ke((0,ye.useState)({status:i.PREPARING,stream:null,camera:{deviceId:"",facing:void 0,groupId:"",label:""}}),2),a=r[0],o=a.status,u=a.stream,s=a.camera,c=r[1],f=ke((0,ye.useState)(null),2),d=f[0],m=f[1],v=ke((0,ye.useState)(null),2),g=v[0],y=v[1],b=(0,ye.useRef)(""),w=(0,ye.useCallback)((function(){c((function(e){return Se(Se({},e),{},{status:i.PLAY})}))}),[]);return(0,ye.useEffect)((function(){var e=!0;return ae().then((function(t){e&&(c((function(e){return Se(Se({},e),{},{status:t.isCameraAllowed?i.PREPARING:i.REQUESTING})})),m(t))})).catch((function(){e&&c((function(e){return Se(Se({},e),{},{status:i.UNKNOWN_ERROR})}))})),function(){e=!1}}),[]),(0,ye.useEffect)((function(){var e=!0;if(d&&!g)return le(d).then((function(t){e&&(y(t),d.isCameraAllowed||m((function(e){return{videoDevices:(null==e?void 0:e.videoDevices)||[],isCameraAllowed:!0}})))})).catch((function(t){if(e)return t instanceof Error&&t.name===p?c((function(e){return Se(Se({},e),{},{status:i.PERMISSION_DENIED})})):void c((function(e){return Se(Se({},e),{},{status:i.UNKNOWN_ERROR})}))})),function(){e=!1}}),[d,g]),(0,ye.useEffect)((function(){var r=!0,a=o===i.PREPARING||o===i.REQUESTING;if(g&&d&&null===u&&a){var l=se(e,g,n),s=new Promise(function(){var e,r=(e=be().mark((function e(r,a){var o,i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Z.vU?500:0,e.next=3,ve(o);case 3:return e.prev=3,e.next=6,fe(t,l,n);case 6:i=e.sent,r(i),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),a(e.t0);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){we(o,r,a,i,l,"next",e)}function l(e){we(o,r,a,i,l,"throw",e)}i(void 0)}))});return function(e,t){return r.apply(this,arguments)}}());return s.then((function(e){if(r)b.current=e.camera.deviceId,c(e);else{if(!e.stream)return;ce(e.stream)}})).catch((function(){c((function(e){return Se(Se({},e),{},{status:i.UNKNOWN_ERROR})}))})),function(){r=!1}}}),[g,d,u,e,n,o,t]),(0,ye.useEffect)((function(){return function(){u&&ce(u)}}),[u]),(0,ye.useEffect)((function(){if(n&&b.current){var e=n!==b.current;o===i.PLAY&&e&&c({status:i.PREPARING,stream:null,camera:{deviceId:"",facing:void 0,groupId:"",label:""}})}}),[n,o]),{status:o,stream:u,camera:s,sortedDevices:g,onPlay:w}},xe=n("../../common/components/webcamera/style.css"),_e=n("../../node_modules/react/jsx-runtime.js");function Oe(e){var t=e.onVideoStatusChange,n=e.onVideoSizeChange,r=e.mode,a=e.resolution,o=e.mirroring,u=e.onFailStatus,s=e.cameraId,c=e.videoRecordingService,f=e.eventData,d=Ae(r,a,s),p=d.status,m=d.stream,h=d.camera,v=d.sortedDevices,w=d.onPlay,C=(0,ye.useRef)(null),S=(0,ye.useRef)(null),E=o||(null==h?void 0:h.facing)===l.environment?xe.Z.locals.mirroring:"";return(0,ye.useEffect)((function(){var e=C.current,t=S.current,r=function(){e&&t&&n&&n({videoElement:e,videoParams:{width:e.videoWidth,height:e.videoHeight},videoContainerParams:{width:t.clientWidth,height:t.clientHeight}})};return e&&(window.addEventListener("resize",r),e.addEventListener("resize",r)),function(){c&&c.stopRecord(),e&&(window.removeEventListener("resize",r),e.removeEventListener("resize",r))}}),[]),(0,ye.useEffect)((function(){var e=C.current;p===i.READY&&e&&(e.srcObject=m),c&&p===i.PLAY&&m&&c.init(m),u&&g[p]&&u(g[p]),t({videoStatus:p,camera:h,sortedDevices:v})}),[p,h,u,m]),(0,_e.jsx)("div",{ref:S,className:xe.Z.locals.container,children:(0,_e.jsx)("video",{onAbort:function(){(null==f?void 0:f.type)===y.DOCUMENT&&f.onEvent({action:b.VIDEO_STOPPED,data:null})},onPlay:function(){w(),(null==f?void 0:f.type)===y.DOCUMENT&&f.onEvent({action:b.VIDEO_STARTED,data:null})},className:E,ref:C,autoPlay:!0,playsInline:!0})})}var Pe=(0,ye.memo)(Oe),Ne=n("./src/components/layout/style.css");function Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Te(e,t)}(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 Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,De(r.key),r)}}function je(e,t,n){return(t=De(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Fe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),je(this,"_levels",[]),je(this,"_transports",[]),je(this,"_logs",[]),je(this,"_prevTime",0);var t=localStorage.getItem("logger");if(t){var n=Re(t.split(">"),2),r=n[0],a=n[1];this._levels=r.split(","),a&&(this._transports=a.split(","))}}var t,n,r;return t=e,n=[{key:"create",value:function(e,t){var n=this;return function(r){if(n._levels.includes(e)||n._levels.includes("all")){var a=Date.now(),o=0;if(n._prevTime&&(o=a-n._prevTime),n._prevTime=a,n._transports.includes("console")){var i=(null==t?void 0:t.color)||"blue";console.log("%c".concat(e,": %c").concat(r," %c+").concat(o,"ms"),"color: ".concat(i,";"),"","color: ".concat(i,";"))}n._transports.includes("file")&&n._logs.push("".concat(e,": ").concat(r," +").concat(o,"ms"))}}}},{key:"saveLogs",value:function(){if(this._logs.length){var e=this._logs.join("\n"),t=new Blob([e],{type:"text/plain"}),n=window.URL.createObjectURL(t),r=document.createElement("a");r.download="log.txt",r.href=n,r.click(),window.URL.revokeObjectURL(n),this._logs=[]}}}],n&&Le(t.prototype,n),r&&Le(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Me=new Fe,ze=Me.create("main"),Ue=(0,ye.createContext)({onEvent:function(){return ze('Function "onEvent" not defined.')}}),Be=function(){return(0,ye.useContext)(Ue)};function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ge(e,t)}(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 Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ve=function(e){var t=e.layoutParams,n=e.maskParams,r=e.borderColor,a=Be(),o=a.backgroundMaskAlpha,i=void 0===o?.5:o,l=a.cameraFrameShapeType,u=void 0===l?x.line:l,s=a.cameraFrameLineCap,c=void 0===s?_.butt:s,f=a.cameraFrameLineLength,d=void 0===f?5:f,p=a.cameraFrameCornerRadius,m=void 0===p?15:p,h=He((0,ye.useState)(null),2),v=h[0],g=h[1];return(0,ye.useEffect)((function(){if(u===x.corners){var e=n.width/100*d,t=n.left+n.width-e-m,r=n.left+n.width,a=n.top+n.height-e-m,o=n.left+e+m,i=n.top+n.height,l=n.top+e+m;g({topRight:{x:t,y:n.top},bottomRight:{x:r,y:a},bottomLeft:{x:o,y:i},topLeft:{x:n.left,y:l},pathWidth:e})}}),[u,n,d,m]),(0,_e.jsxs)("svg",{className:Ne.Z.locals.svg,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",viewBox:"0 0 ".concat(t.width," ").concat(t.height),children:[(0,_e.jsx)("defs",{children:(0,_e.jsxs)("mask",{id:"bgClip",children:[(0,_e.jsx)("rect",{x:"0",y:"0",width:t.width,height:t.height,fill:"#fff",opacity:i}),(0,_e.jsx)("rect",{x:n.left,y:n.top,rx:m,ry:m,width:n.width,height:n.height,stroke:"black",strokeWidth:n.stroke})]})}),(0,_e.jsx)("rect",{mask:"url(#bgClip)",x:"0",y:"0",width:t.width,height:t.height,fill:"black"}),u===x.corners&&v&&(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)("path",{d:"M".concat(v.topRight.x,",").concat(v.topRight.y," h").concat(v.pathWidth," a").concat(m,",").concat(m," 0 0 1 ").concat(m,",").concat(m," v").concat(v.pathWidth),fill:"none",stroke:r,strokeWidth:n.stroke,strokeLinecap:c}),(0,_e.jsx)("path",{d:"M".concat(v.bottomRight.x,",").concat(v.bottomRight.y," v").concat(v.pathWidth," a").concat(m,",").concat(m," 0 0 1 ").concat(-m,",").concat(m," h-").concat(v.pathWidth),fill:"none",stroke:r,strokeWidth:n.stroke,strokeLinecap:c}),(0,_e.jsx)("path",{d:"M".concat(v.bottomLeft.x,",").concat(v.bottomLeft.y," h-").concat(v.pathWidth," a").concat(m,",").concat(m," 0 0 1 ").concat(-m,",").concat(-m," v-").concat(v.pathWidth),fill:"none",stroke:r,strokeWidth:n.stroke,strokeLinecap:c}),(0,_e.jsx)("path",{d:"M".concat(v.topLeft.x,",").concat(v.topLeft.y," v-").concat(v.pathWidth," a").concat(m,",").concat(-m," 0 0 1 ").concat(m,",").concat(-m," h").concat(v.pathWidth),fill:"none",stroke:r,strokeWidth:n.stroke,strokeLinecap:c})]}),u===x.line&&(0,_e.jsx)("rect",{x:n.left,y:n.top,rx:m,ry:m,width:n.width,height:n.height,fill:"none",stroke:r,strokeWidth:n.stroke})]})};function We(e,t){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},We(e,t)}function Ze(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,We(e,t)}function Ke(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var Ye=n("../../node_modules/react-dom/index.js"),Qe=!1,qe=ye.createContext(null),Je=function(e){return e.scrollTop},$e="unmounted",Xe="exited",et="entering",tt="entered",nt="exiting",rt=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var a,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(a=Xe,r.appearStatus=et):a=tt:a=t.unmountOnExit||t.mountOnEnter?$e:Xe,r.state={status:a},r.nextCallback=null,r}Ze(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===$e?{status:Xe}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==et&&n!==tt&&(t=et):n!==et&&n!==tt||(t=nt)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===et){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ye.findDOMNode(this);n&&Je(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xe&&this.setState({status:$e})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[Ye.findDOMNode(this),r],o=a[0],i=a[1],l=this.getTimeouts(),u=r?l.appear:l.enter;!e&&!n||Qe?this.safeSetState({status:tt},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,i),this.safeSetState({status:et},(function(){t.props.onEntering(o,i),t.onTransitionEnd(u,(function(){t.safeSetState({status:tt},(function(){t.props.onEntered(o,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ye.findDOMNode(this);t&&!Qe?(this.props.onExit(r),this.safeSetState({status:nt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Xe},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Xe},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ye.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=a[0],i=a[1];this.props.addEndListener(o,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===$e)return null;var t=this.props,n=t.children,r=(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,Ke(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return ye.createElement(qe.Provider,{value:null},"function"==typeof n?n(e,r):ye.cloneElement(ye.Children.only(n),r))},t}(ye.Component);function at(){}rt.contextType=qe,rt.propTypes={},rt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:at,onEntering:at,onEntered:at,onExit:at,onExiting:at,onExited:at},rt.UNMOUNTED=$e,rt.EXITED=Xe,rt.ENTERING=et,rt.ENTERED=tt,rt.EXITING=nt;var ot,it,lt=rt;var ut="out-in",st="in-out",ct=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},ft=((ot={})[ut]=function(e){var t=e.current,n=e.changeState;return ye.cloneElement(t,{in:!1,onExited:ct(t,"onExited",(function(){n(et,null)}))})},ot[st]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,ye.cloneElement(r,{in:!0,onEntered:ct(r,"onEntered",(function(){n(et)}))})]},ot),dt=((it={})[ut]=function(e){var t=e.children,n=e.changeState;return ye.cloneElement(t,{in:!0,onEntered:ct(t,"onEntered",(function(){n(tt,ye.cloneElement(t,{in:!0}))}))})},it[st]=function(e){var t=e.current,n=e.children,r=e.changeState;return[ye.cloneElement(t,{in:!1,onExited:ct(t,"onExited",(function(){r(tt,ye.cloneElement(n,{in:!0}))}))}),ye.cloneElement(n,{in:!0})]},it),pt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={status:tt,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Ze(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===et&&e.mode===st?{status:et}:!t.current||(n=t.current,r=e.children,n===r||ye.isValidElement(n)&&ye.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:ye.cloneElement(e.children,{in:!0})}:{status:nt};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,a=this.state,o=a.status,i=a.current,l={children:n,current:i,changeState:this.changeState,status:o};switch(o){case et:e=dt[r](l);break;case nt:e=ft[r](l);break;case tt:e=i}return ye.createElement(qe.Provider,{value:{isMounting:!this.appeared}},e)},t}(ye.Component);pt.propTypes={},pt.defaultProps={mode:ut};var mt=pt;function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ht.apply(this,arguments)}function vt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var gt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=vt(n.className,r):n.setAttribute("class",vt(n.className&&n.className.baseVal||"",r)));var n,r}))},yt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),a=r[0],o=r[1];t.removeClasses(a,"exit"),t.addClass(a,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),a=r[0],o=r[1]?"appear":"enter";t.addClass(a,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),a=r[0],o=r[1]?"appear":"enter";t.removeClasses(a,o),t.addClass(a,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,a=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:a,activeClassName:r?a+"-active":n[e+"Active"],doneClassName:r?a+"-done":n[e+"Done"]}},t}Ze(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&a&&(r+=" "+a),"active"===n&&e&&Je(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,a=n.active,o=n.done;this.appliedClasses[t]={},r&&gt(e,r),a&&gt(e,a),o&&gt(e,o)},n.render=function(){var e=this.props,t=(e.classNames,Ke(e,["classNames"]));return ye.createElement(lt,ht({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ye.Component);yt.defaultProps={classNames:""},yt.propTypes={};var bt=yt;var wt={fullscreen:function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||24,height:t||24,viewBox:"0 0 24 24",fill:n||"white",children:(0,_e.jsx)("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})})},verified:function(e){var t=e.size,n=e.color;return(0,_e.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 86 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("ellipse",{cx:"43",cy:"42",rx:"40",ry:"40",transform:"rotate(90 43 42)",stroke:n||"#5DA600",strokeWidth:"3"}),(0,_e.jsx)("path",{d:"M66 30L40.5069 54L28 42.2256",stroke:n||"#5DA600",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})},check:function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{width:t||64,height:t||64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 32C-1.52588e-05 49.6731 14.3269 64 32 64C49.6731 64 64 49.6731 64 32C64 14.3269 49.6731 0 32 0C14.3269 0 0 14.3269 0 32ZM50.9142 22.5811C51.6953 21.7999 51.6953 20.5337 50.9142 19.7526C50.1331 18.9716 48.8668 18.9716 48.0858 19.7526L30.5002 37.3381L22.7477 29.5857C21.9666 28.8047 20.7003 28.8047 19.9193 29.5857C19.1382 30.3669 19.1382 31.6331 19.9193 32.4143L29.0859 41.5808C29.461 41.9561 29.9697 42.1667 30.5002 42.1667C31.0306 42.1667 31.5393 41.9561 31.9144 41.5808L50.9142 22.5811Z",fill:n||"#7E53B9"})})},error:function(e){var t=e.size,n=e.color;return(0,_e.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 86 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("ellipse",{cx:"43",cy:"42",rx:"40",ry:"40",transform:"rotate(90 43 42)",stroke:n||"#FF0000",strokeWidth:"3"}),(0,_e.jsx)("path",{d:"M57 28L29 56M29 28L57 56",stroke:n||"#FF0000",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})},cross:function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,fill:n||"rgba(0,0,0,0.6)",children:(0,_e.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})},snapshot:function(e){var t=e.size,n=e.color;return(0,_e.jsxs)("svg",{width:t||60,height:t||60,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("g",{opacity:"0.6",children:(0,_e.jsx)("circle",{cx:"30",cy:"30",r:"29.5",stroke:n||"white"})}),(0,_e.jsx)("circle",{cx:"30",cy:"30",r:"21",fill:n||"white"})]})},square:function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{width:t||46,height:t||46,viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsx)("path",{d:"M45 34V41C45 43.2091 43.2091 45 41 45H34M45 12V5C45 2.79086 43.2091 1 41 1H34M12 1H5C2.79086 1 1 2.79086 1 5V12M1 34V41C1 43.2091 2.79086 45 5 45H12",stroke:n||"white",strokeWidth:"1.5"})})},stop:function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{width:t||48,height:t||48,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsxs)("g",{opacity:"0.9",children:[(0,_e.jsx)("path",{d:"M556.1 909.5H192.2c-14.1 0-25.5-10.6-25.5-23.7V170.3c0-13.1 11.5-23.7 25.5-23.7H832c14.1 0 25.5 10.6 25.5 23.7v381.8c0 13.3 10.7 24 24 24s24-10.7 24-24V170.3c0-39.5-33-71.7-73.5-71.7H192.2c-40.5 0-73.5 32.2-73.5 71.7v715.5c0 39.5 33 71.7 73.5 71.7h363.9c13.3 0 24-10.7 24-24s-10.8-24-24-24z",fill:n||"white"}),(0,_e.jsx)("path",{d:"M761.6 232.6H260.7c-13.3 0-24 10.7-24 24s10.7 24 24 24h500.9c13.3 0 24-10.7 24-24s-10.8-24-24-24zM785.6 426.6c0-13.3-10.7-24-24-24H260.7c-13.3 0-24 10.7-24 24s10.7 24 24 24h500.9c13.2 0 24-10.7 24-24zM680.1 596.6c0-13.3-10.7-24-24-24H260.7c-13.3 0-24 10.7-24 24s10.7 24 24 24h395.4c13.2 0 24-10.7 24-24zM260.7 744.3c-13.3 0-24 10.7-24 24s10.7 24 24 24h284.4c13.3 0 24-10.7 24-24s-10.7-24-24-24H260.7zM770.7 622.7zM939.1 786.2c-2.7-91.3-77.6-163.5-168.3-163.5v36c34.6 0 67.3 13.3 92.1 37.4 24.9 24.1 39.2 56.5 40.2 91.2 1.1 35.4-11.7 69.1-36 94.8-24.3 25.8-57.1 40.5-92.5 41.6-1.3 0-2.7 0.1-4 0.1-34.6 0-67.3-13.3-92.2-37.4-24.9-24.1-39.2-56.5-40.2-91.2-1.1-35.4 11.7-69.1 36-94.8 24.3-25.8 57.1-40.5 92.5-41.6 1.3 0 2.7-0.1 4-0.1v-36c-1.7 0-3.4 0-5.1 0.1-93 2.8-166.2 80.4-163.5 173.5 2.7 91.3 77.6 163.5 168.4 163.5 1.7 0 3.4 0 5.1-0.1 93.1-2.8 166.2-80.5 163.5-173.5z",fill:n||"white"}),(0,_e.jsx)("path",{d:"M686.1 795.6c-7.2-6.8-18.6-6.6-25.4 0.6-6.8 7.2-6.6 18.6 0.6 25.4l54.3 51.6c6.3 5.9 14.4 9 22.7 9 6.4 0 12.9-1.9 18.5-5.7l1.1-0.8L883.6 759c7.3-6.8 7.7-18.2 0.9-25.4-6.8-7.3-18.2-7.7-25.4-0.9L738.2 845l-52.1-49.4z",fill:n||"white"})]})})},arrow:function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{width:t||32,height:t||32,viewBox:"0 0 32 32",fill:n||"white",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsx)("path",{d:"M22,9a1,1,0,0,0,0,1.42l4.6,4.6H3.06a1,1,0,1,0,0,2H26.58L22,21.59A1,1,0,0,0,22,23a1,1,0,0,0,1.41,0l6.36-6.36a.88.88,0,0,0,0-1.27L23.42,9A1,1,0,0,0,22,9Z"})})},"regula-logo":function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{width:t||24,height:t||26,viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsx)("path",{d:"M10.6389 10.8071C12.1153 9.90582 13.159 8.12119 13.159 6.15818C13.159 2.43323 10.2172 0 6.51964 0C2.82207 0 0 2.43401 0 6.63935V9.79394H2.70628V6.63857C2.70628 4.11536 4.41893 2.70315 6.52199 2.70315C8.62505 2.70315 10.1265 4.14509 10.1265 6.15818C10.1265 8.17127 8.50456 9.79316 6.4015 9.79316H2.70628V16.643H5.41022V12.1967H6.46175C9.10544 12.1967 10.8478 14.2395 10.9081 16.643H13.7317C13.6816 14.2645 12.5433 11.8641 10.6413 10.8071",fill:n||"#663399"})})},"regula-logo-liveness-detection":function(e){var t=e.color;return(0,_e.jsxs)("svg",{width:"91",height:"16",viewBox:"0 0 91 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("path",{d:"M0.793307 12V4.72727H3.52058C4.07929 4.72727 4.54804 4.83144 4.92683 5.03977C5.30799 5.24811 5.59563 5.53456 5.78976 5.89915C5.98625 6.26136 6.0845 6.6733 6.0845 7.13494C6.0845 7.60133 5.98625 8.01562 5.78976 8.37784C5.59326 8.74006 5.30325 9.02533 4.91973 9.23366C4.5362 9.43963 4.0639 9.54261 3.50282 9.54261H1.6953V8.45952H3.32527C3.65197 8.45952 3.91949 8.4027 4.12782 8.28906C4.33616 8.17543 4.49004 8.01918 4.58947 7.82031C4.69127 7.62145 4.74217 7.39299 4.74217 7.13494C4.74217 6.87689 4.69127 6.64962 4.58947 6.45312C4.49004 6.25663 4.33497 6.10393 4.12427 5.99503C3.91594 5.88376 3.64724 5.82812 3.31816 5.82812H2.11078V12H0.793307ZM9.37317 12.1065C8.8405 12.1065 8.37885 11.9893 7.98823 11.755C7.5976 11.5206 7.29457 11.1927 7.07914 10.7713C6.86607 10.3499 6.75954 9.85748 6.75954 9.29403C6.75954 8.73059 6.86607 8.23698 7.07914 7.81321C7.29457 7.38944 7.5976 7.06037 7.98823 6.82599C8.37885 6.59162 8.8405 6.47443 9.37317 6.47443C9.90584 6.47443 10.3675 6.59162 10.7581 6.82599C11.1487 7.06037 11.4506 7.38944 11.6637 7.81321C11.8791 8.23698 11.9868 8.73059 11.9868 9.29403C11.9868 9.85748 11.8791 10.3499 11.6637 10.7713C11.4506 11.1927 11.1487 11.5206 10.7581 11.755C10.3675 11.9893 9.90584 12.1065 9.37317 12.1065ZM9.38027 11.0767C9.6691 11.0767 9.91058 10.9974 10.1047 10.8388C10.2988 10.6778 10.4432 10.4624 10.5379 10.1925C10.635 9.92259 10.6835 9.62192 10.6835 9.29048C10.6835 8.95668 10.635 8.65483 10.5379 8.38494C10.4432 8.11269 10.2988 7.89607 10.1047 7.73509C9.91058 7.5741 9.6691 7.49361 9.38027 7.49361C9.08435 7.49361 8.83813 7.5741 8.64164 7.73509C8.44751 7.89607 8.30191 8.11269 8.20485 8.38494C8.11015 8.65483 8.0628 8.95668 8.0628 9.29048C8.0628 9.62192 8.11015 9.92259 8.20485 10.1925C8.30191 10.4624 8.44751 10.6778 8.64164 10.8388C8.83813 10.9974 9.08435 11.0767 9.38027 11.0767ZM13.9474 12L12.4062 6.54545H13.7165L14.6753 10.3807H14.7251L15.7052 6.54545H17.0013L17.9814 10.3594H18.0347L18.9793 6.54545H20.2932L18.7485 12H17.4097L16.387 8.31392H16.3124L15.2897 12H13.9474ZM23.3493 12.1065C22.8024 12.1065 22.3301 11.9929 21.9324 11.7656C21.537 11.536 21.2328 11.2116 21.0198 10.7926C20.8067 10.3712 20.7002 9.87524 20.7002 9.30469C20.7002 8.74361 20.8067 8.25118 21.0198 7.82741C21.2352 7.40128 21.5359 7.06984 21.9218 6.8331C22.3076 6.59399 22.761 6.47443 23.2818 6.47443C23.618 6.47443 23.9352 6.52888 24.2335 6.63778C24.5342 6.74432 24.7994 6.91004 25.029 7.13494C25.261 7.35985 25.4433 7.64631 25.5759 7.99432C25.7084 8.33996 25.7747 8.75189 25.7747 9.23011V9.62429H21.3039V8.75781H24.5425C24.5401 8.5116 24.4869 8.29261 24.3827 8.10085C24.2785 7.90672 24.1329 7.75402 23.9459 7.64276C23.7612 7.53149 23.5458 7.47585 23.2996 7.47585C23.0368 7.47585 22.806 7.53977 22.6071 7.66761C22.4083 7.79309 22.2532 7.95881 22.1419 8.16477C22.033 8.36837 21.9774 8.59209 21.975 8.83594V9.59233C21.975 9.90956 22.033 10.1818 22.149 10.4091C22.265 10.634 22.4272 10.8068 22.6355 10.9276C22.8439 11.0459 23.0877 11.1051 23.3671 11.1051C23.5541 11.1051 23.7234 11.0791 23.8749 11.027C24.0264 10.9725 24.1578 10.8932 24.2691 10.7891C24.3803 10.6849 24.4644 10.5559 24.5212 10.402L25.7215 10.5369C25.6457 10.8542 25.5013 11.1312 25.2882 11.3679C25.0775 11.6023 24.8076 11.7846 24.4786 11.9148C24.1495 12.0426 23.7731 12.1065 23.3493 12.1065ZM26.7623 12V6.54545H28.0087V7.45455H28.0655C28.165 7.13968 28.3354 6.89702 28.5769 6.72656C28.8207 6.55374 29.0989 6.46733 29.4114 6.46733C29.4824 6.46733 29.5617 6.47088 29.6493 6.47798C29.7393 6.48272 29.8139 6.491 29.8731 6.50284V7.68537C29.8186 7.66643 29.7322 7.64986 29.6138 7.63565C29.4978 7.61908 29.3854 7.6108 29.2765 7.6108C29.0421 7.6108 28.8314 7.66169 28.6444 7.76349C28.4597 7.86293 28.3141 8.00142 28.2076 8.17898C28.101 8.35653 28.0478 8.56132 28.0478 8.79332V12H26.7623ZM32.8173 12.1065C32.2704 12.1065 31.7981 11.9929 31.4004 11.7656C31.005 11.536 30.7008 11.2116 30.4877 10.7926C30.2747 10.3712 30.1681 9.87524 30.1681 9.30469C30.1681 8.74361 30.2747 8.25118 30.4877 7.82741C30.7032 7.40128 31.0038 7.06984 31.3897 6.8331C31.7756 6.59399 32.229 6.47443 32.7498 6.47443C33.086 6.47443 33.4032 6.52888 33.7015 6.63778C34.0022 6.74432 34.2673 6.91004 34.497 7.13494C34.729 7.35985 34.9113 7.64631 35.0438 7.99432C35.1764 8.33996 35.2427 8.75189 35.2427 9.23011V9.62429H30.7718V8.75781H34.0105C34.0081 8.5116 33.9548 8.29261 33.8507 8.10085C33.7465 7.90672 33.6009 7.75402 33.4139 7.64276C33.2292 7.53149 33.0138 7.47585 32.7676 7.47585C32.5048 7.47585 32.274 7.53977 32.0751 7.66761C31.8762 7.79309 31.7212 7.95881 31.6099 8.16477C31.501 8.36837 31.4454 8.59209 31.443 8.83594V9.59233C31.443 9.90956 31.501 10.1818 31.617 10.4091C31.733 10.634 31.8952 10.8068 32.1035 10.9276C32.3118 11.0459 32.5557 11.1051 32.835 11.1051C33.0221 11.1051 33.1913 11.0791 33.3428 11.027C33.4944 10.9725 33.6258 10.8932 33.737 10.7891C33.8483 10.6849 33.9323 10.5559 33.9892 10.402L35.1894 10.5369C35.1137 10.8542 34.9693 11.1312 34.7562 11.3679C34.5455 11.6023 34.2756 11.7846 33.9465 11.9148C33.6175 12.0426 33.241 12.1065 32.8173 12.1065ZM38.2544 12.0959C37.8259 12.0959 37.4424 11.9858 37.1038 11.7656C36.7653 11.5455 36.4978 11.2259 36.3013 10.8068C36.1048 10.3878 36.0065 9.87879 36.0065 9.27983C36.0065 8.67377 36.106 8.16241 36.3048 7.74574C36.506 7.3267 36.7771 7.01065 37.118 6.79759C37.4589 6.58215 37.8389 6.47443 38.2579 6.47443C38.5775 6.47443 38.8403 6.52888 39.0463 6.63778C39.2523 6.74432 39.4156 6.87334 39.5363 7.02486C39.6571 7.17401 39.7506 7.31487 39.8169 7.44744H39.8702V4.72727H41.1592V12H39.895V11.1406H39.8169C39.7506 11.2732 39.6547 11.4141 39.5292 11.5632C39.4038 11.71 39.2381 11.8355 39.0321 11.9396C38.8261 12.0438 38.5669 12.0959 38.2544 12.0959ZM38.6131 11.0412C38.8853 11.0412 39.1173 10.9678 39.3091 10.821C39.5008 10.6719 39.6464 10.4647 39.7459 10.1996C39.8453 9.93442 39.895 9.62547 39.895 9.27273C39.895 8.91998 39.8453 8.6134 39.7459 8.35298C39.6488 8.09257 39.5044 7.89015 39.3126 7.74574C39.1232 7.60133 38.89 7.52912 38.6131 7.52912C38.3266 7.52912 38.0875 7.60369 37.8957 7.75284C37.704 7.90199 37.5595 8.10795 37.4625 8.37074C37.3654 8.63352 37.3169 8.93419 37.3169 9.27273C37.3169 9.61364 37.3654 9.91785 37.4625 10.1854C37.5619 10.4505 37.7075 10.66 37.8993 10.8139C38.0934 10.9654 38.3313 11.0412 38.6131 11.0412ZM44.8664 12V4.72727H46.1519V7.44744H46.2051C46.2714 7.31487 46.3649 7.17401 46.4857 7.02486C46.6064 6.87334 46.7698 6.74432 46.9757 6.63778C47.1817 6.52888 47.4445 6.47443 47.7641 6.47443C48.1855 6.47443 48.5655 6.58215 48.904 6.79759C49.2449 7.01065 49.5148 7.3267 49.7137 7.74574C49.9149 8.16241 50.0155 8.67377 50.0155 9.27983C50.0155 9.87879 49.9173 10.3878 49.7208 10.8068C49.5243 11.2259 49.2567 11.5455 48.9182 11.7656C48.5797 11.9858 48.1961 12.0959 47.7676 12.0959C47.4551 12.0959 47.1959 12.0438 46.9899 11.9396C46.784 11.8355 46.6182 11.71 46.4928 11.5632C46.3697 11.4141 46.2738 11.2732 46.2051 11.1406H46.1306V12H44.8664ZM46.127 9.27273C46.127 9.62547 46.1767 9.93442 46.2762 10.1996C46.378 10.4647 46.5236 10.6719 46.7129 10.821C46.9047 10.9678 47.1367 11.0412 47.409 11.0412C47.6931 11.0412 47.931 10.9654 48.1227 10.8139C48.3145 10.66 48.4589 10.4505 48.556 10.1854C48.6554 9.91785 48.7051 9.61364 48.7051 9.27273C48.7051 8.93419 48.6566 8.63352 48.5595 8.37074C48.4625 8.10795 48.3181 7.90199 48.1263 7.75284C47.9345 7.60369 47.6954 7.52912 47.409 7.52912C47.1343 7.52912 46.9012 7.60133 46.7094 7.74574C46.5176 7.89015 46.372 8.09257 46.2726 8.35298C46.1755 8.6134 46.127 8.91998 46.127 9.27273ZM51.6218 14.0455C51.4466 14.0455 51.2845 14.0313 51.1353 14.0028C50.9885 13.9768 50.8713 13.946 50.7838 13.9105L51.082 12.9091C51.2691 12.9635 51.436 12.9896 51.5828 12.9872C51.7295 12.9848 51.8586 12.9387 51.9698 12.8487C52.0835 12.7611 52.1793 12.6143 52.2575 12.4084L52.3676 12.1136L50.3896 6.54545H51.7532L53.0103 10.6648H53.0671L54.3278 6.54545H55.695L53.511 12.6605C53.4092 12.9493 53.2743 13.1967 53.1062 13.4027C52.9381 13.611 52.7321 13.7696 52.4883 13.8786C52.2468 13.9898 51.958 14.0455 51.6218 14.0455Z",fill:t}),(0,_e.jsx)("path",{d:"M62.9834 9.36204C63.675 8.93985 64.1639 8.1039 64.1639 7.18439C64.1639 5.43957 62.7859 4.2998 61.0539 4.2998C59.3219 4.2998 58 5.43993 58 7.40978V8.88744H59.2677V7.40942C59.2677 6.22751 60.0699 5.566 61.055 5.566C62.0401 5.566 62.7434 6.24143 62.7434 7.18439C62.7434 8.12736 61.9837 8.88708 60.9986 8.88708H59.2677V12.0956H60.5342V10.0129H61.0268C62.2651 10.0129 63.0813 10.9698 63.1095 12.0956H64.4321C64.4087 10.9815 63.8755 9.85716 62.9845 9.36204",fill:t}),(0,_e.jsx)("path",{d:"M89.8037 6.5231V7.32533C89.4658 6.81885 88.8747 6.48242 88.0307 6.48242C86.4827 6.48242 85.3286 7.72077 85.3286 9.31094C85.3286 10.8868 86.4827 12.1395 88.0307 12.1395C88.8326 12.1395 89.4098 11.8159 89.8037 11.3233V12.0973H90.9999V6.5231H89.8037ZM88.1714 10.9279C87.2706 10.9279 86.6234 10.2242 86.6234 9.30947C86.6234 8.39473 87.2706 7.69108 88.1714 7.69108C89.0722 7.69108 89.7334 8.39473 89.7334 9.30947C89.7334 10.2242 89.0737 10.9279 88.1714 10.9279Z",fill:t}),(0,_e.jsx)("path",{d:"M81.2758 9.40791C81.2758 10.5055 80.7129 10.9138 79.9953 10.9138C79.2777 10.9138 78.7148 10.5055 78.7148 9.40791V6.52295H77.4482V9.35147C77.4482 11.2092 78.4051 12.1367 79.9953 12.1367C81.5855 12.1367 82.5424 11.2081 82.5424 9.35147V6.52295H81.2758V9.40791Z",fill:t}),(0,_e.jsx)("path",{d:"M67.5552 6.48096C65.9928 6.48096 64.7827 7.76145 64.7827 9.32377C64.7827 10.8861 65.9921 12.138 67.5973 12.138C68.5681 12.138 69.2718 11.8005 69.849 11.1954L69.1593 10.3792C68.7792 10.7168 68.301 10.9561 67.6255 10.9561C66.9501 10.9561 66.3168 10.6182 66.1207 9.88632H70.2851C70.3355 9.66481 70.3591 9.43804 70.3555 9.21089C70.3555 7.63501 69.1171 6.48096 67.5552 6.48096ZM66.0493 8.88729C66.2182 8.15432 66.8372 7.66323 67.6252 7.66323C68.4131 7.66323 68.9478 8.14149 69.1028 8.88729H66.0493Z",fill:t}),(0,_e.jsx)("path",{d:"M84.6533 4.35596H83.3867V12.0957H84.6533V4.35596Z",fill:"#8C8C8C"}),(0,_e.jsx)("path",{d:"M75.4077 7.32533C75.1263 6.84671 74.4791 6.48242 73.6347 6.48242C72.157 6.48242 70.9326 7.72077 70.9326 9.31094C70.9326 10.8868 72.157 12.0962 73.6347 12.0962C74.4369 12.0962 74.9434 11.8569 75.3374 11.3632V11.8701C75.3374 12.9677 74.5634 13.3617 73.8176 13.3617C73.0718 13.3617 72.4806 12.9952 72.3681 12.1937H71.1298C71.1862 13.601 72.3117 14.5025 73.8176 14.5025C75.3235 14.5025 76.6028 13.6442 76.6028 11.7865V6.5231H75.4077V7.32533ZM73.7754 10.8857C72.8746 10.8857 72.2274 10.2242 72.2274 9.30984C72.2274 8.39547 72.8746 7.69145 73.7754 7.69145C74.6762 7.69145 75.3374 8.3951 75.3374 9.30984C75.3374 10.2246 74.6759 10.8857 73.7754 10.8857Z",fill:t})]})},"back-camera":function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{width:t||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsxs)("g",{opacity:"0.9",children:[(0,_e.jsx)("rect",{x:"14",y:"4",width:"2",height:"22",rx:"1",fill:n||"white"}),(0,_e.jsx)("path",{d:"M8.698 15 L1 5.762 1 24.238 Z",stroke:n||"white",strokeWidth:"2"}),(0,_e.jsx)("path",{d:"M21.302 15 L29 5.762 29 24.238 Z",fill:n||"white",stroke:n||"white",strokeWidth:"2"})]})})},"front-camera":function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{width:t||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsxs)("g",{opacity:"0.9",children:[(0,_e.jsx)("rect",{x:"14",y:"4",width:"2",height:"22",rx:"1",fill:n||"white"}),(0,_e.jsx)("path",{d:"M21.302 15 L29 5.762 29 24.238 Z",stroke:n||"white",strokeWidth:"2"}),(0,_e.jsx)("path",{d:"M8.698 15 L1 5.762 1 24.238 Z",fill:n||"white",stroke:n||"white",strokeWidth:"2"})]})})},"camera-logo":function(e){var t=e.size,n=e.color;return(0,_e.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 86 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("ellipse",{cx:"43",cy:"42",rx:"40",ry:"40",transform:"rotate(90 43 42)",stroke:n||"#E93C3C",strokeWidth:"3"}),(0,_e.jsx)("path",{d:"M41.213 32.6666H45.6663C46.3736 32.6666 47.0519 32.9476 47.552 33.4477C48.0521 33.9478 48.333 34.626 48.333 35.3333V39.7866L49.6663 41.12L57.6663 35.3333V48.6666M48.333 47.3333V48.6666C48.333 49.3739 48.0521 50.0521 47.552 50.5522C47.0519 51.0523 46.3736 51.3333 45.6663 51.3333H30.9997C30.2924 51.3333 29.6142 51.0523 29.1141 50.5522C28.614 50.0521 28.333 49.3739 28.333 48.6666V35.3333C28.333 34.626 28.614 33.9478 29.1141 33.4477C29.6142 32.9476 30.2924 32.6666 30.9997 32.6666H33.6663L48.333 47.3333Z",stroke:n||"#E93C3C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,_e.jsx)("path",{d:"M28.333 27.3334L57.6663 56.6667",stroke:n||"#E93C3C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},"fullscreen-exit":function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||24,height:t||24,viewBox:"0 0 24 24",fill:n||"white",children:(0,_e.jsx)("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})})},"from-camera":function(e){var t=e.size;return(0,_e.jsxs)("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("path",{d:"M46 38C46 39.0609 45.5786 40.0783 44.8284 40.8284C44.0783 41.5786 43.0609 42 42 42H6C4.93913 42 3.92172 41.5786 3.17157 40.8284C2.42143 40.0783 2 39.0609 2 38V16C2 14.9391 2.42143 13.9217 3.17157 13.1716C3.92172 12.4214 4.93913 12 6 12H14L18 7.20001H30L34 12H42C43.0609 12 44.0783 12.4214 44.8284 13.1716C45.5786 13.9217 46 14.9391 46 16V38Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,_e.jsx)("path",{d:"M24.0001 34.8C28.6393 34.8 32.4001 31.0392 32.4001 26.4C32.4001 21.7608 28.6393 18 24.0001 18C19.3609 18 15.6001 21.7608 15.6001 26.4C15.6001 31.0392 19.3609 34.8 24.0001 34.8Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,_e.jsx)("rect",{x:"37",y:"17",width:"4",height:"4",rx:"1",fill:"var(--main-color)"})]})},"from-gallery":function(e){var t=e.size;return(0,_e.jsxs)("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,_e.jsx)("path",{d:"M43.875 34.125C45.6699 34.125 47.125 32.6699 47.125 30.875V8.125C47.125 6.33007 45.6699 4.875 43.875 4.875H21.125C19.3301 4.875 17.875 6.33007 17.875 8.125",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,_e.jsx)("path",{d:"M35.875 11.875H5.125C3.33007 11.875 1.875 13.3301 1.875 15.125V37.875C1.875 39.6699 3.33007 41.125 5.125 41.125H35.875C37.6699 41.125 39.125 39.6699 39.125 37.875V15.125C39.125 13.3301 37.6699 11.875 35.875 11.875Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,_e.jsx)("path",{d:"M10.8125 23.25C12.1587 23.25 13.25 22.1587 13.25 20.8125C13.25 19.4663 12.1587 18.375 10.8125 18.375C9.46631 18.375 8.375 19.4663 8.375 20.8125C8.375 22.1587 9.46631 23.25 10.8125 23.25Z",fill:"var(--main-color)"}),(0,_e.jsx)("path",{d:"M31.125 31.375L23 23.25L5.125 41.125",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,_e.jsx)("defs",{children:(0,_e.jsx)("clipPath",{id:"clip0",children:(0,_e.jsx)("rect",{width:"48",height:"48",fill:"white"})})})]})},"docreader-search":function(e){var t=e.size;return(0,_e.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("g",{children:(0,_e.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#1B101F",fillOpacity:"0.5"})}),(0,_e.jsxs)("g",{opacity:"0.8",children:[(0,_e.jsx)("circle",{cx:"40",cy:"40",r:"23.5",stroke:"white"}),(0,_e.jsx)("circle",{cx:"40",cy:"40",r:"1",fill:"white"})]})]})},"docreader-processing-finished":function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40 80C17.9086 80 0 62.0914 0 40C0 17.9086 17.9086 0 40 0C62.0914 0 80 17.9086 80 40C80 62.0914 62.0914 80 40 80ZM64.0282 29.0922C64.6314 28.5243 64.66 27.575 64.0922 26.9718C63.5243 26.3686 62.575 26.34 61.9718 26.9078L37.5069 49.9399L26.0282 39.1334C25.425 38.5656 24.4757 38.5942 23.9079 39.1974C23.34 39.8006 23.3686 40.7499 23.9718 41.3177L36.4787 53.0922C37.0563 53.6359 37.9575 53.6359 38.5351 53.0922L64.0282 29.0922Z",fill:n||"white"})})},"docreader-processing-error":function(e){var t=e.size;return(0,_e.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("g",{children:(0,_e.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#E95454",fillOpacity:"0.45"})}),(0,_e.jsx)("g",{children:(0,_e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40 67C54.9117 67 67 54.9117 67 40C67 25.0883 54.9117 13 40 13C25.0883 13 13 25.0883 13 40C13 54.9117 25.0883 67 40 67ZM40 64C53.2548 64 64 53.2548 64 40C64 26.7452 53.2548 16 40 16C26.7452 16 16 26.7452 16 40C16 53.2548 26.7452 64 40 64Z",fill:"white"})})]})},"docreader-processing":function(e){var t=e.size;return(0,_e.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("g",{children:(0,_e.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#1B101F",fillOpacity:"0.5"})}),(0,_e.jsx)("g",{opacity:"0.8",children:(0,_e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40 67C54.9117 67 67 54.9117 67 40C67 25.0883 54.9117 13 40 13C25.0883 13 13 25.0883 13 40C13 54.9117 25.0883 67 40 67ZM40 64C53.2548 64 64 53.2548 64 40C64 26.7452 53.2548 16 40 16C26.7452 16 16 26.7452 16 40C16 53.2548 26.7452 64 40 64Z",fill:"white"})})]})},"docreader-flip":function(e){var t=e.size;return(0,_e.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("g",{children:(0,_e.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#1B101F",fillOpacity:"0.5"})}),(0,_e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 25.2308C16 24.551 16.5373 24 17.2 24H62.8C63.4627 24 64 24.551 64 25.2308V54.7692C64 55.449 63.4627 56 62.8 56H17.2C16.5373 56 16 55.449 16 54.7692V25.2308ZM21.4 30.1538C21.4 29.814 21.6686 29.5385 22 29.5385H32.8C33.1314 29.5385 33.4 29.814 33.4 30.1538V43.6923C33.4 44.0322 33.1314 44.3077 32.8 44.3077H22C21.6686 44.3077 21.4 44.0322 21.4 43.6923V30.1538ZM39.4 29.5385C39.0686 29.5385 38.8 29.814 38.8 30.1538V30.7692C38.8 31.1091 39.0686 31.3846 39.4 31.3846H58C58.3314 31.3846 58.6 31.1091 58.6 30.7692V30.1538C58.6 29.814 58.3314 29.5385 58 29.5385H39.4ZM39.4 35.0769C39.0686 35.0769 38.8 35.3524 38.8 35.6923V36.3077C38.8 36.6476 39.0686 36.9231 39.4 36.9231H49.6C49.9314 36.9231 50.2 36.6476 50.2 36.3077V35.6923C50.2 35.3524 49.9314 35.0769 49.6 35.0769H39.4ZM38.8 41.2308C38.8 40.8909 39.0686 40.6154 39.4 40.6154H53.8C54.1314 40.6154 54.4 40.8909 54.4 41.2308V41.8462C54.4 42.186 54.1314 42.4615 53.8 42.4615H39.4C39.0686 42.4615 38.8 42.186 38.8 41.8462V41.2308ZM22 49.8462C21.6686 49.8462 21.4 50.1217 21.4 50.4615V51.0769C21.4 51.4168 21.6686 51.6923 22 51.6923H32.2C32.5314 51.6923 32.8 51.4168 32.8 51.0769V50.4615C32.8 50.1217 32.5314 49.8462 32.2 49.8462H22Z",fill:"white"})]})},"docreader-camera-disabled":function(e){var t=e.size;return(0,_e.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("g",{children:(0,_e.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#1B101F",fillOpacity:"0.5"})}),(0,_e.jsx)("path",{d:"M40.213 30.6667H44.6663C45.3736 30.6667 46.0519 30.9476 46.552 31.4477C47.0521 31.9478 47.333 32.6261 47.333 33.3334V37.7867L48.6663 38.12L56.6663 33.3334V46.6667M47.333 45.3334V46.6667C47.333 47.3739 47.0521 48.0522 46.552 48.5523C46.0519 49.0524 45.3736 49.3334 44.6663 49.3334H29.9997C29.2924 49.3334 28.6142 49.0524 28.1141 48.5523C27.614 48.0522 27.333 47.3739 27.333 46.6667V33.3334C27.333 32.6261 27.614 31.9478 28.1141 31.4477C28.6142 30.9476 29.2924 30.6667 29.9997 30.6667H32.6663L47.333 45.3334Z",stroke:"#FF5E5E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,_e.jsx)("path",{d:"M27.333 25.3333L56.6663 54.6666",stroke:"#FF5E5E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},"docreader-camera-preparing":function(e){var t=e.size;return(0,_e.jsxs)("svg",{width:t||80,height:t||80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("g",{children:(0,_e.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#1B101F",fillOpacity:"0.5"})}),(0,_e.jsx)("path",{d:"M47.333 43L56.6663 46.6666V33.3333L47.333 37",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,_e.jsx)("path",{d:"M47.333 43V46.6667C47.333 48.1394 46.1391 49.3334 44.6663 49.3334H29.9997C28.5269 49.3334 27.333 48.1394 27.333 46.6667V33.3334C27.333 31.8606 28.5269 30.6667 29.9997 30.6667H44.6663C46.1391 30.6667 47.333 31.8606 47.333 33.3334V43.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},"camera-change":function(e){var t=e.size,n=e.color;return(0,_e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||24,height:t||24,viewBox:"0 0 24 24",fill:n||"rgba(0,0,0,0.6)",children:(0,_e.jsx)("path",{d:"M12.29,5.21l1.5,1.5a1,1,0,0,0,1.42,0,1,1,0,0,0,.13-1.21H19a1,1,0,0,0,0-2H15.34a1,1,0,0,0-.13-1.21,1,1,0,0,0-1.42,0l-1.5,1.5a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76A1,1,0,0,0,12.29,5.21ZM22.92,9.12a1,1,0,0,0-.21-.33l-1.5-1.5a1,1,0,0,0-1.42,0,1,1,0,0,0-.13,1.21H16a1,1,0,0,0,0,2h3.66a1,1,0,0,0,.13,1.21,1,1,0,0,0,1.42,0l1.5-1.5a1,1,0,0,0,.21-.33A1,1,0,0,0,22.92,9.12ZM11,10a4,4,0,1,0,4,4A4,4,0,0,0,11,10Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,11,16Zm9-3a1,1,0,0,0-1,1v5a1,1,0,0,1-1,1H4a1,1,0,0,1-1-1V11a1,1,0,0,1,1-1H6a1,1,0,0,0,1-.69l.54-1.62A1,1,0,0,1,8.44,7H10a1,1,0,0,0,0-2H8.44A3,3,0,0,0,5.59,7.06L5.28,8H4a3,3,0,0,0-3,3v8a3,3,0,0,0,3,3H18a3,3,0,0,0,3-3V14A1,1,0,0,0,20,13Z"})})},"portrait-orientation-only":function(e){var t=e.size,n=e.color;return(0,_e.jsxs)("svg",{width:t||86,height:t||86,viewBox:"0 0 86 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("path",{d:"M33.8254 7.18383L32.7648 6.12317C33.3506 5.53738 34.3003 5.53738 34.8861 6.12317L33.8254 7.18383ZM80.0417 51.9C80.0417 52.7285 79.3701 53.4 78.5417 53.4L65.0417 53.4C64.2132 53.4 63.5417 52.7285 63.5417 51.9C63.5417 51.0716 64.2132 50.4 65.0417 50.4L77.0417 50.4V38.4C77.0417 37.5716 77.7132 36.9 78.5417 36.9C79.3701 36.9 80.0417 37.5716 80.0417 38.4L80.0417 51.9ZM14.8058 28.3248C14.22 28.9106 13.2702 28.9106 12.6845 28.3248C12.0987 27.739 12.0987 26.7893 12.6845 26.2035L14.8058 28.3248ZM34.8861 6.12317L79.6023 50.8394L77.481 52.9607L32.7648 8.24449L34.8861 6.12317ZM34.8861 8.24449L14.8058 28.3248L12.6845 26.2035L32.7648 6.12317L34.8861 8.24449Z",fill:n||"#DC4343"}),(0,_e.jsx)("path",{d:"M52.0974 78.344L53.1581 79.4047C52.5723 79.9904 51.6225 79.9904 51.0367 79.4047L52.0974 78.344ZM5.88119 33.6278C5.88119 32.7994 6.55276 32.1278 7.38119 32.1278L20.8812 32.1278C21.7096 32.1278 22.3812 32.7994 22.3812 33.6278C22.3812 34.4562 21.7096 35.1278 20.8812 35.1278L8.88119 35.1278V47.1278C8.88119 47.9562 8.20961 48.6278 7.38119 48.6278C6.55276 48.6278 5.88119 47.9562 5.88119 47.1278L5.88119 33.6278ZM71.1171 57.203C71.7029 56.6172 72.6526 56.6172 73.2384 57.203C73.8242 57.7888 73.8242 58.7385 73.2384 59.3243L71.1171 57.203ZM51.0367 79.4047L6.32053 34.6884L8.44185 32.5671L53.1581 77.2833L51.0367 79.4047ZM51.0367 77.2833L71.1171 57.203L73.2384 59.3243L53.1581 79.4047L51.0367 77.2833Z",fill:n||"#DC4343"})]})},"document-front":function(e){var t=e.size,n=e.color;return(0,_e.jsxs)("svg",{width:t?1.4*t:920,height:t||640,viewBox:"0 0 920 640",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("path",{d:"M520 200H800V240H520V200Z",fill:n||"white"}),(0,_e.jsx)("path",{d:"M800 300H520V340H800V300Z",fill:n||"white"}),(0,_e.jsx)("path",{d:"M520 400H800V440H520V400Z",fill:n||"white"}),(0,_e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M274.943 123.429L274.933 123.432C266.551 126.295 258.863 130.466 251.927 135.343C243.39 140.807 235.349 147.484 228.244 155.117C216.999 166.723 206.985 181.73 202.638 200.462C201.732 203.954 201.031 207.508 200.554 211.114C198.857 223.937 199.991 237.409 204.799 251.055C201.906 250.776 199.719 251.697 198.089 253.419C191.062 260.842 194.356 283.152 195.842 288.454C202.652 312.775 208.999 319.597 213.796 319.988C216.486 337.575 230.545 358.063 243.587 375.139C243.587 405.888 203.816 413.339 170.442 419.591C162.723 421.037 155.346 422.419 148.883 424.01C114.629 432.436 110.268 472.281 110.168 504.349C110.141 513.052 117.321 520 126.023 520H473.977C482.679 520 489.859 513.052 489.839 504.349C489.769 472.142 485.483 432.464 451.117 424.01C445.211 422.556 438.486 421.191 431.39 419.752L431.388 419.751C396.76 412.725 353.321 403.912 353.321 374.203C353.664 373.739 354.01 373.272 354.358 372.804C357.463 368.617 360.701 364.25 363.825 359.791C372.128 347.938 379.624 335.429 381.652 323.912C382.709 324.634 383.91 325.123 385.24 325.123C385.796 325.123 386.374 325.037 386.972 324.849C391.593 323.394 397.418 315.772 403.633 293.568C410.9 267.609 406.477 258.905 400.199 256.714C420.616 157.928 373.971 154.617 373.971 154.617C373.971 154.617 366.934 140.939 348.397 130.606C337.66 124.183 323.287 119 304.851 119C301.953 119 298.964 119.122 295.865 119.395C288.479 119.744 281.5 121.188 274.943 123.429ZM321.183 350.388C316.077 357.278 313.321 365.627 313.321 374.203C313.321 396.791 323.959 414.183 337.296 425.916C349.473 436.63 364.134 443.009 376.199 447.154C388.689 451.445 401.819 454.454 412.943 456.796C417.197 457.692 421.006 458.464 424.494 459.171L424.495 459.171C431.031 460.495 436.443 461.592 441.555 462.85L441.562 462.852C442.371 463.051 442.688 463.234 442.718 463.251L442.719 463.252L442.723 463.254C442.746 463.267 442.79 463.292 442.907 463.412C443.207 463.723 444.371 465.103 445.684 468.766C446.817 471.928 447.691 475.687 448.338 480H151.711C152.363 475.717 153.239 471.971 154.372 468.81C155.699 465.109 156.878 463.698 157.192 463.372L157.194 463.369C157.207 463.34 157.301 463.132 158.438 462.852L158.445 462.85C163.729 461.549 169.527 460.462 176.817 459.096L176.821 459.095C179.572 458.579 182.535 458.024 185.763 457.402C196.469 455.34 209.407 452.649 221.731 448.562C233.686 444.597 248.469 438.255 260.709 426.995C274.269 414.522 283.587 396.915 283.587 375.139C283.587 366.365 280.702 357.834 275.376 350.86C269.197 342.77 263.625 334.956 259.415 327.693C254.949 319.99 253.579 315.526 253.336 313.941C251.698 303.233 245.887 294.002 237.651 287.879C236.767 285.573 235.697 282.397 234.493 278.142C234.495 278.139 234.486 278.086 234.467 277.984L234.452 277.901C235.091 277.195 235.707 276.464 236.298 275.708C244.717 264.952 247.065 250.644 242.526 237.762C239.17 228.237 239.103 219.19 241.356 210.506C241.443 210.173 241.525 209.839 241.603 209.503C243.904 199.588 249.376 190.79 256.971 182.951C257.156 182.76 257.34 182.567 257.521 182.372C262.328 177.208 267.774 172.691 273.489 169.034C273.978 168.721 274.46 168.397 274.936 168.063C279.286 165.004 283.597 162.748 287.809 161.303L287.883 161.278C291.162 160.157 294.424 159.508 297.75 159.351C298.292 159.325 298.833 159.288 299.374 159.241C301.267 159.074 303.083 159 304.851 159C315.374 159 322.72 161.857 327.864 164.933C328.213 165.142 328.565 165.345 328.92 165.543C333.473 168.081 336.341 170.874 337.886 172.659C338.515 173.386 338.906 173.925 339.077 174.173C344.22 183.353 352.722 190.05 362.636 192.979C364.507 197.532 368.476 212.578 361.027 248.618C358.865 259.075 361.005 269.523 366.336 278.005C366.023 279.378 365.623 280.965 365.114 282.784L365.113 282.786C364.533 284.861 363.983 286.685 363.469 288.283C352.34 293.961 344.445 304.559 342.258 316.974C342.258 316.974 342.208 317.246 342.023 317.818C341.833 318.406 341.53 319.218 341.065 320.269C340.111 322.423 338.685 325.105 336.678 328.368C332.654 334.911 327.684 341.617 321.853 349.483L321.183 350.388Z",fill:n||"white"}),(0,_e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80 0C35.8172 0 0 35.8172 0 80V560C0 604.183 35.8172 640 80 640H840C884.183 640 920 604.183 920 560V80C920 35.8172 884.183 0 840 0H80ZM840 40H80C57.9086 40 40 57.9086 40 80V560C40 582.091 57.9086 600 80 600H840C862.091 600 880 582.091 880 560V80C880 57.9086 862.091 40 840 40Z",fill:n||"white"})]})},"document-back":function(e){var t=e.size,n=e.color;return(0,_e.jsxs)("svg",{width:t?1.4*t:920,height:t||640,viewBox:"0 0 920 640",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)("path",{d:"M460 300H140V340H460V300Z",fill:n||"white"}),(0,_e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100 0C44.7715 0 0 44.7715 0 100V540C0 595.228 44.7715 640 100 640H820C875.228 640 920 595.228 920 540V100C920 44.7715 875.229 0 820 0H100ZM820 40H100C66.8629 40 40 66.8629 40 100V140H880V100C880 66.8629 853.137 40 820 40ZM40 540V240H880V540C880 573.137 853.137 600 820 600H100C66.8629 600 40 573.137 40 540Z",fill:n||"white"})]})}};var Ct=function(e){var t=e.type,n=e.size,r=e.color,a=wt[t];return(0,_e.jsx)(a,{size:n,color:r})},St=n("../../node_modules/localize-react/dist/localize-react.js");var Et=function(e){var t=e.isNextPage,n=e.icon,r=e.title,a=e.subtitle,o=e.maskParams,i=Be(),l=i.flipFrontIcon,u=i.flipBackIcon,s=i.statusIcon,c=void 0===s||s,f=i.statusPositionMultiplier,d=(0,ye.useRef)(null),p=(0,ye.useRef)(null),m=(0,ye.useRef)(null),h=(0,ye.useRef)(null),v=(0,St.useLocalize)().translate,g="".concat(Ne.Z.locals.title," ").concat(a?"":Ne.Z.locals["message-text"]);return(0,ye.useEffect)((function(){var e=p.current;o&&e&&(e.style.width="".concat(o.width,"px"),e.style.height="".concat(o.height,"px"),e.style.top="".concat(o.top,"px"),e.style.left="".concat(o.left,"px"))}),[o]),(0,ye.useEffect)((function(){var e=m.current,t=h.current;if(t&&e&&void 0!==f){var n=t.clientHeight,r=e.clientHeight;e.style.height="100%",t.style.marginTop="0px",t.style.top="".concat((r-n)/2*f,"px")}}),[f,o]),(0,_e.jsx)("div",{ref:p,className:Ne.Z.locals["tips-container"],children:(0,_e.jsx)(mt,{children:(0,_e.jsx)(bt,{nodeRef:t?d:m,classNames:{enter:Ne.Z.locals["fade-enter"],enterActive:Ne.Z.locals["fade-enter-active"],exit:Ne.Z.locals["fade-exit"],exitActive:Ne.Z.locals["fade-exit-active"]},timeout:300,children:t?(0,_e.jsxs)("div",{ref:d,className:Ne.Z.locals.flip,children:[(0,_e.jsx)("div",{className:Ne.Z.locals.front,children:l?(0,_e.jsx)("img",{src:l,alt:"Flip icon"}):(0,_e.jsx)(Ct,{type:"document-front"})}),(0,_e.jsx)("div",{className:Ne.Z.locals.back,children:u?(0,_e.jsx)("img",{src:u,alt:"Flip icon"}):(0,_e.jsx)(Ct,{type:"document-back"})})]}):(0,_e.jsxs)("div",{ref:m,className:Ne.Z.locals["message-container"],children:[c&&(0,_e.jsx)("div",{className:Ne.Z.locals.icon,children:(0,_e.jsx)(Ct,{type:n})}),(0,_e.jsx)("div",{ref:h,className:Ne.Z.locals.message,children:(0,_e.jsxs)("div",{className:Ne.Z.locals["message-background"],children:[(0,_e.jsx)("p",{className:g,children:v(r)}),a&&(0,_e.jsx)("p",{className:Ne.Z.locals.subtitle,children:v(a)})]})})]})},t?"flip-icon":"message-container")})})};var kt=function(e){var t=e.mirroring,n=e.isVideoPlay,r=e.isSkipButtonVisible,a=e.isChangeCameraAvailable,o=e.isLandscape,i=e.onClose,u=e.onChangeCamera,s=e.onChangeMirroring,c=e.captureButton,f=void 0===c||c,d=e.facing,p=e.onSnapshotProcess,m=e.onCameraSnapshot,h=e.onSkip,v=Be(),g=v.closeButton,y=void 0===g||g,b=v.skipButton,w=void 0===b||b,C=v.changeCamera;return(0,_e.jsxs)("div",{"data-orientation":o?"landscape":"portrait",children:[(0,_e.jsx)("div",{className:Ne.Z.locals["top-functional-buttons"],children:y&&(0,_e.jsx)("button",{onClick:i,children:(0,_e.jsx)(Ct,{color:n?"white":N,type:"cross"})})}),n&&(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)("div",{className:Ne.Z.locals["bottom-functional-buttons"],children:(0,_e.jsxs)("div",{className:Ne.Z.locals["buttons-right"],children:[d!==l.environment&&n&&(0,_e.jsx)("button",{onClick:s,children:(0,_e.jsx)(Ct,{size:30,type:t?"back-camera":"front-camera"})}),a&&C&&(0,_e.jsx)("button",{disabled:!n,onClick:u,children:(0,_e.jsx)(Ct,{color:"white",size:33,type:"camera-change"})})]})}),(0,_e.jsxs)("div",{className:Ne.Z.locals["left-functional-buttons"],children:[p&&f&&(0,_e.jsx)("button",{onClick:p,children:(0,_e.jsx)(Ct,{size:40,type:"snapshot"})}),r&&w&&(0,_e.jsx)("button",{className:Ne.Z.locals["skip-button"],onClick:h,children:(0,_e.jsx)(Ct,{size:40,type:"arrow"})})]}),m&&(0,_e.jsx)("button",{className:Ne.Z.locals["snapshot-button"],onClick:m,children:(0,_e.jsx)(Ct,{size:50,type:"snapshot"})})]})]})};function It(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return At(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return At(e,t)}(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 At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xt=function(e){var t=e.status,n=e.isServiceInitialized,r=e.children,a=e.mirroring,o=e.onChangeMirroring,l=e.onChangeCamera,s=e.videoStatusParams,c=e.videoElementParams,f=e.onClose,d=e.onSnapshotProcess,p=e.onCameraSnapshot,m=e.onSkip,h=e.frameParams,v=e.captureButton,g=Be(),y=g.cameraFrameBorderWidth,b=void 0===y?5:y,C=g.cameraFrame,S=void 0===C||C,E=(0,ye.useRef)(null),k=It((0,ye.useState)(!1),2),I=k[0],A=k[1],x=It((0,ye.useState)(null),2),_=x[0],O=x[1],P=It((0,ye.useState)(null),2),N=P[0],R=P[1],T=!!(s.sortedDevices&&s.sortedDevices.frontCameras.length+s.sortedDevices.backCameras.length>1),L=t===w.HOLD||t===w.FOCUS||t===w.RESOLUTION||t===w.PROCESSING||t===w.GLARE?"rgba(30, 130, 76, 0.9)":"rgba(255, 255, 255, 0.9)",j=s.videoStatus===i.PLAY,D=function(e,t,n){if(t===i.PLAY){if(!n)return{icon:"docreader-processing-error",title:"preparingService"};switch(e){case w.PROCESSING:case w.SUCCESS:return{icon:"docreader-processing",title:"documentProcessing"};case w.START_DETECTION:return{icon:"docreader-processing-error",title:"detectingDocument"};case w.FINDING:return{icon:"docreader-search",title:"placeDocumentIntoFrame"};case w.SNAPSHOT:return{icon:"square",title:"positionDocumentCenter"};case w.FOCUS:return{icon:"docreader-processing-error",title:"noFocus"};case w.RESOLUTION:return{icon:"docreader-processing-error",title:"moveCloser"};case w.GLARE:return{icon:"docreader-processing-error",title:"glaresOnDocument"};case w.HOLD:return{icon:"docreader-processing-error",title:"holdDocumentStraight"};case w.START_NEXT_PAGE:return{icon:"docreader-flip",title:"flipDocument"};default:return{icon:"docreader-processing-error",title:"somethingWentWrong"}}}else switch(t){case i.PREPARING:case i.READY:case i.REQUESTING:return{icon:"docreader-camera-preparing",title:"preparingCamera"};case i.PERMISSION_DENIED:return{icon:"docreader-camera-disabled",title:"cameraUnavailable",subtitle:"allowAccessToCamera"};case i.UNKNOWN_ERROR:return{icon:"error",title:"somethingWentWrong"};case i.NO_CAMERA:return{icon:"docreader-camera-disabled",title:"noCameraAvailable",subtitle:"cameraConnection"};case i.INCORRECT_CAMERA_ID:return{icon:"docreader-camera-disabled",title:"incorrectCameraId",subtitle:"checkCameraId"};default:return{icon:"docreader-processing-error",title:"somethingWentWrong"}}}(t,s.videoStatus,n),F=D.icon,M=D.title,z=D.subtitle,U=t===w.START_NEXT_PAGE,B=c.videoParams.width>c.videoParams.height;return(0,ye.useEffect)((function(){t===w.START_NEXT_PAGE&&A(!0)}),[t]),(0,ye.useEffect)((function(){var e=E.current;if(s.videoStatus===i.PLAY&&e){var t=ne(c.videoParams.width,c.videoParams.height,c.videoContainerParams.width,c.videoContainerParams.height,c.videoParams.width,c.videoParams.height,0,0,u.contain),n=t.width,r=t.height,a=t.top,o=t.left;e.style.width="".concat(n,"px"),e.style.height="".concat(r,"px"),e.style.top="".concat(a,"px"),e.style.left="".concat(o,"px"),R({width:n,height:r,top:a,left:o})}}),[c,s.videoStatus]),(0,ye.useEffect)((function(){if(h&&N){var e=h.frameRight-h.frameLeft,t=h.frameBottom-h.frameTop;if(N.width&&N.height&&(e&&t)){var n=ne(c.videoParams.width,c.videoParams.height,N.width,N.height,e,t,h.frameLeft,h.frameTop,u.contain),r=n.width,o=n.height,i=n.left,l=n.top;O({width:r,height:o,top:l,left:a?i:N.width-(i+r),stroke:b})}}}),[N,h,c.videoParams,a,b]),(0,_e.jsxs)("div",{className:Ne.Z.locals.container,children:[r,(0,_e.jsxs)("div",{ref:E,className:Ne.Z.locals.layout,children:[S&&_&&N&&j&&(0,_e.jsx)(Ve,{layoutParams:N,maskParams:_,borderColor:L}),(0,_e.jsx)(Et,{isNextPage:U,title:M,subtitle:z,icon:F,maskParams:_}),(0,_e.jsx)(kt,{mirroring:a,captureButton:v,facing:s.camera.facing,isVideoPlay:j,isLandscape:B,isSkipButtonVisible:I,isChangeCameraAvailable:T,onClose:f,onChangeCamera:l,onChangeMirroring:o,onSnapshotProcess:d,onCameraSnapshot:p,onSkip:m})]})]})};function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ot(e,t)}(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 Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pt=function(e){var t=e.videoSize,n=e.mirroring,r=e.scenario,a=e.scenarioParams,o=Be(),i=o.cameraFramePortraitAspectRatio,l=o.cameraFrameLandscapeAspectRatio,u=o.cameraFrameOffsetWidth,s=void 0===u?1:u,c=o.cameraFrameVerticalPositionMultiplier,f=_t((0,ye.useState)(null),2),d=f[0],p=f[1];return(0,ye.useEffect)((function(){var e=!!t.width,o=!!t.height;if(e&&o&&(null==a?void 0:a.length)&&r){var u=a.find((function(e){return e.name===r}));if(null!=u&&u.frameKWHLandscape&&u.frameKWHPortrait){var f,d,m,h;if(t.width>t.height)d=(f=t.height-t.height/100*2.5*2)*Number(void 0===l?u.frameKWHLandscape:l),m=n?t.width-(t.width/100*1.5+d):t.width/100*1.5,h=t.height/100*2.5;else{var v=t.width/100*s,g=void 0===i?u.frameKWHPortrait:i;f=(d=t.width-2*v)/Number(g),m=v,h=void 0===c?(t.height-f)/2:(t.height-f)/2*c}p({frameBottom:Math.floor(h+f),frameLeft:Math.floor(m),frameRight:Math.floor(m+d),frameTop:Math.floor(h),light:0,resolutionType:0})}}}),[r,t,a,n,i,l,s,c]),d};function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}function Rt(e,t,n){return t&&Nt(e.prototype,t),n&&Nt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Tt=Rt((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.details=n})),Lt=Tt,jt=function(e){return e[e.UV_LUMINESCENCE=1]="UV_LUMINESCENCE",e[e.IR_B900=2]="IR_B900",e[e.IMAGE_PATTERN=4]="IMAGE_PATTERN",e[e.AXIAL_PROTECTION=8]="AXIAL_PROTECTION",e[e.UV_FIBERS=16]="UV_FIBERS",e[e.IR_VISIBILITY=32]="IR_VISIBILITY",e[e.OCR_SECURITY_TEXT=64]="OCR_SECURITY_TEXT",e[e.IPI=128]="IPI",e[e.PHOTO_EMBED_TYPE=512]="PHOTO_EMBED_TYPE",e[e.HOLOGRAMS=4096]="HOLOGRAMS",e[e.PHOTO_AREA=8192]="PHOTO_AREA",e[e.PORTRAIT_COMPARISON=32768]="PORTRAIT_COMPARISON",e[e.BARCODE_FORMAT_CHECK=65536]="BARCODE_FORMAT_CHECK",e[e.KINEGRAM=131072]="KINEGRAM",e[e.LETTER_SCREEN=262144]="LETTER_SCREEN",e}({}),Dt=function(e){return e[e.ERROR=0]="ERROR",e[e.OK=1]="OK",e[e.WAS_NOT_DONE=2]="WAS_NOT_DONE",e}({}),Ft=function(e){return e[e.ImageGlares=0]="ImageGlares",e[e.ImageFocus=1]="ImageFocus",e[e.ImageResolution=2]="ImageResolution",e[e.ImageColorness=3]="ImageColorness",e[e.Perspective=4]="Perspective",e[e.Bounds=5]="Bounds",e[e.ScreenCapture=6]="ScreenCapture",e[e.Portrait=7]="Portrait",e}({}),Mt=function(e){return e[e.LATIN=0]="LATIN",e[e.AFRIKAANS=1078]="AFRIKAANS",e[e.ALBANIAN=1052]="ALBANIAN",e[e.ARABIC_ALGERIA=5121]="ARABIC_ALGERIA",e[e.ARABIC_BAHRAIN=15361]="ARABIC_BAHRAIN",e[e.ARABIC_EGYPT=3073]="ARABIC_EGYPT",e[e.ARABIC_IRAQ=2049]="ARABIC_IRAQ",e[e.ARABIC_JORDAN=11265]="ARABIC_JORDAN",e[e.ARABIC_KUWAIT=13313]="ARABIC_KUWAIT",e[e.ARABIC_LEBANON=12289]="ARABIC_LEBANON",e[e.ARABIC_LIBYA=4097]="ARABIC_LIBYA",e[e.ARABIC_MOROCCO=6145]="ARABIC_MOROCCO",e[e.ARABIC_OMAN=8193]="ARABIC_OMAN",e[e.ARABIC_QATAR=16385]="ARABIC_QATAR",e[e.ARABIC_SAUDI_ARABIA=1025]="ARABIC_SAUDI_ARABIA",e[e.ARABIC_SYRIA=10241]="ARABIC_SYRIA",e[e.ARABIC_TUNISIA=7169]="ARABIC_TUNISIA",e[e.ARABIC_UAE=4337]="ARABIC_UAE",e[e.ARABIC_YEMEN=9217]="ARABIC_YEMEN",e[e.ARABIC_ARMENIAN=1067]="ARABIC_ARMENIAN",e[e.AZERI_CYRILIC=2092]="AZERI_CYRILIC",e[e.AZERI_LATIN=1068]="AZERI_LATIN",e[e.BASQUE=1069]="BASQUE",e[e.BELARUSIAN=1059]="BELARUSIAN",e[e.BULGARIAN=1026]="BULGARIAN",e[e.CATALAN=1027]="CATALAN",e[e.CHINESE_HONGKONG_SAR=3076]="CHINESE_HONGKONG_SAR",e[e.CHINESE_MACAO_SAR=5124]="CHINESE_MACAO_SAR",e[e.CHINESE=2052]="CHINESE",e[e.CHINESE_SINGAPORE=4100]="CHINESE_SINGAPORE",e[e.CHINESE_TAIWAN=1028]="CHINESE_TAIWAN",e[e.CROATIAN=1050]="CROATIAN",e[e.CZECH=1029]="CZECH",e[e.DANISH=1030]="DANISH",e[e.DIVEHI=1125]="DIVEHI",e[e.DUTCH_BELGIUM=2067]="DUTCH_BELGIUM",e[e.DUTCH_NETHERLANDS=1043]="DUTCH_NETHERLANDS",e[e.ENGLISH_AUSTRALIA=3081]="ENGLISH_AUSTRALIA",e[e.ENGLISH_BELIZE=10249]="ENGLISH_BELIZE",e[e.ENGLISH_CANADA=4105]="ENGLISH_CANADA",e[e.ENGLISH_CARRIBEAN=9225]="ENGLISH_CARRIBEAN",e[e.ENGLISH_IRELAND=6153]="ENGLISH_IRELAND",e[e.ENGLISH_JAMAICA=8201]="ENGLISH_JAMAICA",e[e.ENGLISH_NEW_ZEALAND=5129]="ENGLISH_NEW_ZEALAND",e[e.ENGLISH_PHILIPPINES=13321]="ENGLISH_PHILIPPINES",e[e.ENGLISH_SOUTH_AFRICA=7177]="ENGLISH_SOUTH_AFRICA",e[e.ENGLISH_TRINIDAD=11273]="ENGLISH_TRINIDAD",e[e.ENGLISH_UK=2057]="ENGLISH_UK",e[e.ENGLISH_US=1033]="ENGLISH_US",e[e.ENGLISH_ZIMBABWE=12297]="ENGLISH_ZIMBABWE",e[e.ESTONIAN=1061]="ESTONIAN",e[e.FAEROESE=1080]="FAEROESE",e[e.FARSI=1065]="FARSI",e[e.FINNISH=1035]="FINNISH",e[e.FRENCH_BELGIUM=2060]="FRENCH_BELGIUM",e[e.FRENCH_CANADA=3084]="FRENCH_CANADA",e[e.FRENCH_FRANCE=1036]="FRENCH_FRANCE",e[e.FRENCH_LUXEMBOURG=5132]="FRENCH_LUXEMBOURG",e[e.FRENCH_MONACO=6156]="FRENCH_MONACO",e[e.FRENCH_SWITZERLAND=4108]="FRENCH_SWITZERLAND",e[e.FYRO_MACEDONIAN=1071]="FYRO_MACEDONIAN",e[e.GALICIAN=1110]="GALICIAN",e[e.GEORGIAN=1079]="GEORGIAN",e[e.GERMAN_AUSTRIA=3079]="GERMAN_AUSTRIA",e[e.GERMAN_GERMANY=1031]="GERMAN_GERMANY",e[e.GERMAN_LIECHTENSTEIN=5127]="GERMAN_LIECHTENSTEIN",e[e.GERMAN_LUXEMBOURG=4103]="GERMAN_LUXEMBOURG",e[e.GERMAN_SWITZERLAND=2055]="GERMAN_SWITZERLAND",e[e.GREEK=1032]="GREEK",e[e.GUJARATI=1095]="GUJARATI",e[e.HEBREW=1037]="HEBREW",e[e.HINDI_INDIA=1081]="HINDI_INDIA",e[e.HUNGARIAN=1038]="HUNGARIAN",e[e.ICELANDIC=1039]="ICELANDIC",e[e.INDONESIAN=1057]="INDONESIAN",e[e.ITALIAN_ITALY=1040]="ITALIAN_ITALY",e[e.ITALIAN_SWITZERLAND=2064]="ITALIAN_SWITZERLAND",e[e.JAPANESE=1041]="JAPANESE",e[e.KANNADA=1099]="KANNADA",e[e.KAZAKH=1087]="KAZAKH",e[e.KONKANI=1111]="KONKANI",e[e.KOREAN=1042]="KOREAN",e[e.KYRGYZ_CYRILICK=1088]="KYRGYZ_CYRILICK",e[e.LATVIAN=1062]="LATVIAN",e[e.LITHUANIAN=1063]="LITHUANIAN",e[e.MALAY_MALAYSIA=1086]="MALAY_MALAYSIA",e[e.MALAY_BRUNEI_DARUSSALAM=2110]="MALAY_BRUNEI_DARUSSALAM",e[e.MARATHI=1102]="MARATHI",e[e.MONGOLIAN_CYRILIC=1104]="MONGOLIAN_CYRILIC",e[e.NORWEGIAN_BOKMAL=1044]="NORWEGIAN_BOKMAL",e[e.NORWEGIAN_NYORSK=2068]="NORWEGIAN_NYORSK",e[e.POLISH=1045]="POLISH",e[e.PORTUGUESE_BRAZIL=1046]="PORTUGUESE_BRAZIL",e[e.PORTUGUESE_PORTUGAL=2070]="PORTUGUESE_PORTUGAL",e[e.PUNJABI=1094]="PUNJABI",e[e.RHAETO_ROMANIC=1047]="RHAETO_ROMANIC",e[e.ROMANIAN=1048]="ROMANIAN",e[e.RUSSIAN=1049]="RUSSIAN",e[e.SANSKRIT=1103]="SANSKRIT",e[e.SERBIAN_CYRILIC=3098]="SERBIAN_CYRILIC",e[e.SERBIAN_LATIN=2074]="SERBIAN_LATIN",e[e.SLOVAK=1051]="SLOVAK",e[e.SLOVENIAN=1060]="SLOVENIAN",e[e.SPANISH_ARGENTINA=11274]="SPANISH_ARGENTINA",e[e.SPANISH_BOLIVIA=16394]="SPANISH_BOLIVIA",e[e.SPANISH_CHILE=13322]="SPANISH_CHILE",e[e.SPANICH_COLOMBIA=9226]="SPANICH_COLOMBIA",e[e.SPANISH_COSTA_RICA=5130]="SPANISH_COSTA_RICA",e[e.SPANISH_DOMINICAN_REPUBLIC=7178]="SPANISH_DOMINICAN_REPUBLIC",e[e.SPANISH_ECUADOR=12298]="SPANISH_ECUADOR",e[e.SPANISH_EL_SALVADOR=17418]="SPANISH_EL_SALVADOR",e[e.SPANISH_GUATEMALA=4106]="SPANISH_GUATEMALA",e[e.SPANISH_HONDURAS=18442]="SPANISH_HONDURAS",e[e.SPANISH_MEXICO=2058]="SPANISH_MEXICO",e[e.SPANISH_NICARAGUA=19466]="SPANISH_NICARAGUA",e[e.SPANISH_PANAMA=6154]="SPANISH_PANAMA",e[e.SPANISH_PARAGUAY=15370]="SPANISH_PARAGUAY",e[e.SPANISH_PERU=10250]="SPANISH_PERU",e[e.SPANISH_PUERTO_RICO=20490]="SPANISH_PUERTO_RICO",e[e.SPANISH_TRADITIONAL_SORT=1034]="SPANISH_TRADITIONAL_SORT",e[e.SPANISH_INTERNATIONAL_SORT=3082]="SPANISH_INTERNATIONAL_SORT",e[e.SPANISH_URUGUAY=14346]="SPANISH_URUGUAY",e[e.SPANISH_VENEZUELA=8202]="SPANISH_VENEZUELA",e[e.SWAHILI=1089]="SWAHILI",e[e.SWEDISH=1053]="SWEDISH",e[e.SWEDISH_FINLAND=2077]="SWEDISH_FINLAND",e[e.SYRIAC=1114]="SYRIAC",e[e.TAMIL=1097]="TAMIL",e[e.TATAR=1092]="TATAR",e[e.TELUGU=1098]="TELUGU",e[e.THAI_THAILAND=1054]="THAI_THAILAND",e[e.TURKISH=1055]="TURKISH",e[e.TAJIK_CYRILLIC=1064]="TAJIK_CYRILLIC",e[e.TURKMEN=1090]="TURKMEN",e[e.UKRAINIAN=1058]="UKRAINIAN",e[e.URDU=1056]="URDU",e[e.UZBEK_CYRILIC=2115]="UZBEK_CYRILIC",e[e.UZBEK_LATIN=1091]="UZBEK_LATIN",e[e.VIETNAMESE=1066]="VIETNAMESE",e[e.CTC_SIMPLIFIED=50001]="CTC_SIMPLIFIED",e[e.CTC_TRADITIONAL=50002]="CTC_TRADITIONAL",e}({}),zt=function(e){return e[e.NOT_FINISHED=0]="NOT_FINISHED",e[e.FINISHED=1]="FINISHED",e[e.TIMEOUT=2]="TIMEOUT",e}({}),Ut=function(e){return e[e.DOCUMENT_IMAGE=1]="DOCUMENT_IMAGE",e[e.IMAGE_QUALITY=30]="IMAGE_QUALITY",e[e.STATUS=33]="STATUS",e[e.TEXT=36]="TEXT",e[e.IMAGES=37]="IMAGES",e[e.MRZ_TEXT=3]="MRZ_TEXT",e[e.VISUAL_TEXT=17]="VISUAL_TEXT",e[e.BARCODE_TEXT=18]="BARCODE_TEXT",e[e.RFID_TEXT=102]="RFID_TEXT",e[e.LEXICAL_ANALYSIS=15]="LEXICAL_ANALYSIS",e[e.VISUAL_GRAPHICS=6]="VISUAL_GRAPHICS",e[e.BARCODE_GRAPHICS=19]="BARCODE_GRAPHICS",e[e.RFID_GRAPHICS=103]="RFID_GRAPHICS",e[e.DOCUMENT_TYPE_CANDIDATES=8]="DOCUMENT_TYPE_CANDIDATES",e[e.DOCUMENT_TYPE=9]="DOCUMENT_TYPE",e[e.AUTHENTICITY=20]="AUTHENTICITY",e[e.DOCUMENT_POSITION=85]="DOCUMENT_POSITION",e[e.BARCODES=5]="BARCODES",e[e.LICENSE=50]="LICENSE",e[e.ENCRYPTED_RCL=49]="ENCRYPTED_RCL",e}({}),Bt=function(e){return e.MRZ="MRZ",e.VISUAL="VISUAL",e.BARCODE="BARCODE",e.RFID="RFID",e.MAGNETIC="MAGNETIC",e}({});function Ht(){Ht=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new P(r||[]);return a(i,"_invoke",{value:A(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function b(){}var w={};s(w,i,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(N([])));S&&S!==n&&r.call(S,i)&&(w=S);var E=b.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(a,o,i,l){var u=f(e[a],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function A(t,n,r){var a=d;return function(o,i){if(a===m)throw new Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var l=r.delegate;if(l){var u=x(l,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?h:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function x(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},k(I.prototype),s(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new I(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Gt(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,a)}function Vt(e,t,n){return Wt.apply(this,arguments)}function Wt(){var e;return e=Ht().mark((function e(t,n,r){var a,o,i;return Ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],o=Ht().mark((function e(o){var i;return Ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=new Promise((function(e,a){var i=Array.from(t)[o];if(i){if(!i.size)return a(new Lt(s.INCORRECT_FILE));var l=document.createElement("canvas"),u=l.getContext("2d",{willReadFrequently:!0}),c=URL.createObjectURL(i),f=new Image;f.onload=function(){var t=f.width,o=f.height;if(f.width*f.height>r)return a(new Lt(s.INCORRECT_FILE));if(f.width>n||f.height>n){var i=f.width/f.height;f.width>f.height?(t=n,o=n/i):(o=n,t=n*i)}if(l.width=t,l.height=o,u){u.drawImage(f,0,0,t,o);var d=null==u?void 0:u.getImageData(0,0,t,o);d&&(e(d),URL.revokeObjectURL(c))}},f.src=c,f.onerror=function(){return a(new Lt(s.INCORRECT_FILE))}}else a(new Lt(s.INCORRECT_FILE))})),a.push(i);case 2:case"end":return e.stop()}}),e)})),i=0;case 3:if(!(i<t.length)){e.next=8;break}return e.delegateYield(o(i),"t0",5);case 5:i++,e.next=3;break;case 8:return e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)})),Wt=function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Gt(o,r,a,i,l,"next",e)}function l(e){Gt(o,r,a,i,l,"throw",e)}i(void 0)}))},Wt.apply(this,arguments)}function Zt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(e,t){var n={glareCheck:Dt.WAS_NOT_DONE,resolutionCheck:Dt.WAS_NOT_DONE,focusCheck:Dt.WAS_NOT_DONE,isDocumentAvailable:!1};return e.rawResponse.ContainerList.List.forEach((function(e){e.page_idx===t&&("ImageQualityCheckList"in e&&e.ImageQualityCheckList.List.forEach((function(e){void 0!==e.result&&(e.type===Ft.ImageFocus&&(n.focusCheck=e.result),e.type===Ft.ImageGlares&&(n.glareCheck=e.result),e.type===Ft.ImageResolution&&(n.resolutionCheck=e.result))})),"DocumentPosition"in e&&(n.isDocumentAvailable=!0))})),n}(e,t),a=r.glareCheck,o=r.resolutionCheck,i=r.focusCheck,l=r.isDocumentAvailable,u=!n||n&&0===e.rawResponse.morePagesAvailable;return e.rawResponse.ProcessingFinished===zt.FINISHED?u?w.SUCCESS:w.START_NEXT_PAGE:e.rawResponse.ProcessingFinished===zt.TIMEOUT?w.TIMEOUT:l?i===Dt.ERROR?w.FOCUS:a===Dt.ERROR?w.GLARE:o===Dt.ERROR?w.RESOLUTION:w.HOLD:w.FINDING}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){Qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jt(e,t)}(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 Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $t=Me.create("main");var Xt=function(e){var t=e.scenario,n=e.onError,r=Be(),a=r.license,o=r.onEvent,i=window.RegulaDocumentSDK,l=qt((0,ye.useState)({initialized:!1,initData:i.initData}),2),u=l[0],c=l[1];return(0,ye.useEffect)((function(){if(u.initData&&!u.initialized&&t)if(0===u.initData.license.errorCode&&u.initData.license.status){var e=u.initData.scenario.filter((function(e){return"Capture"!==e.name})),r=e.some((function(e){return e.name===t}));r?(c({initialized:!0,initData:{scenario:e,license:u.initData.license}}),o({action:b.SERVICE_INITIALIZED,data:null}),$t("Service initialized")):n(new Lt(s.INCORRECT_SCENARIO))}else n(new Lt(s.WASM_LICENSE,u.initData.license.message)),$t("Problems with initialization: ".concat(JSON.stringify(a)))}),[u,t]),(0,ye.useEffect)((function(){!i||i.isInitialized||i.initData||(i.isAutoPrepare?i.initializeListener=function(e){e.isInitialized&&i.initData&&c((function(e){return Yt(Yt({},e),{},{initData:i.initData})}))}:i.prepareListener=function(e){e.isPrepared&&i.initialize({license:a}).then((function(e){c((function(t){return Yt(Yt({},t),{},{initData:e})}))})).catch((function(e){n(new Lt(s.WASM_ERROR,e))}))})}),[a,i]),u};function en(){en=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new P(r||[]);return a(i,"_invoke",{value:A(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function b(){}var w={};s(w,i,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(N([])));S&&S!==n&&r.call(S,i)&&(w=S);var E=b.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(a,o,i,l){var u=f(e[a],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function A(t,n,r){var a=d;return function(o,i){if(a===m)throw new Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var l=r.delegate;if(l){var u=x(l,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?h:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function x(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},k(I.prototype),s(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new I(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function tn(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,a)}function nn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){tn(o,r,a,i,l,"next",e)}function l(e){tn(o,r,a,i,l,"throw",e)}i(void 0)}))}}function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){on(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function on(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return un(e,t)}(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 un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sn=Me.create("main");var cn=function(e,t,n,r,o){var l=window.RegulaDocumentSDK,u=Be(),c=u.onEvent,f=u.multipageProcessing,d=u.internalScenario,p=u.cameraFrame,m=void 0===p||p,h=(0,ye.useRef)(!1),v=ln((0,ye.useState)(!1),2),g=v[0],y=v[1],S=ln((0,ye.useState)(!1),2),E=S[0],k=S[1],I=ln((0,ye.useState)(!1),2),A=I[0],x=I[1],_=ln((0,ye.useState)(0),2),O=_[0],P=_[1],N=ln((0,ye.useState)(void 0),2),R=N[0],L=N[1],D=ln((0,ye.useState)({status:w.START_DETECTION,response:null}),2),F=D[0],M=D[1],z=Xt({scenario:R,onError:r}),U=z.initData,B=z.initialized,H=Pt({videoSize:e.videoParams,mirroring:n,scenario:R,scenarioParams:null==U?void 0:U.scenario}),G=o.captureMode===C.captureFrame,V=F.status===w.START_NEXT_PAGE,W=(0,ye.useCallback)((function(){y(!0)}),[]);return(0,ye.useEffect)((function(){if(l){if(l.recognizerProcessParam=he(j,l.recognizerProcessParam),void 0!==f){var e={processParam:{multipageProcessing:f}};l.recognizerProcessParam=he(l.recognizerProcessParam,e)}if(void 0!==d){var t={processParam:{scenario:d}};l.recognizerProcessParam=he(l.recognizerProcessParam,t)}L(l.recognizerProcessParam.processParam.scenario)}}),[l,d,f]),(0,ye.useEffect)((function(){H&&(m?l.recognizerProcessParam=he(l.recognizerProcessParam,{imageInputParam:H}):delete l.recognizerProcessParam.imageInputParam)}),[H,m]),(0,ye.useEffect)((function(){l&&B&&!E&&!G&&l.startNewDocument().then((function(){k(!0),sn("New document started")})).catch((function(e){M((function(e){return an(an({},e),{},{status:w.FAILED})})),r(new Lt(s.WASM_ERROR,e))}))}),[B,E,o.captureMode]),(0,ye.useEffect)((function(){var e=E&&(!o.captureMode||o.captureMode===C.auto),t=E&&o.captureMode===C.captureVideo,n=B&&o.captureMode===C.captureFrame;e&&W(),(n||t)&&M((function(e){return an(an({},e),{},{status:w.FINDING})}))}),[E,o.captureMode,B]),(0,ye.useEffect)((function(){var n=t===i.PLAY;if(l&&n&&!A&&g&&e.videoElement){h.current||(c({action:b.CAMERA_PROCESS_STARTED,data:null}),h.current=!0),x(!0);var o=pe(e.videoElement,a.UINT).imageData;sn("Image processing started"),l.process(o).then((function(e){var t=Zt(e,O,l.recognizerProcessParam.processParam.multipageProcessing);M((function(n){return an(an({},n),{},{status:t,response:e})})),x(!1),sn("Image processing is finished");var n=!!T[t];(t===w.START_NEXT_PAGE||n)&&y(!1)})).catch((function(e){M((function(e){return an(an({},e),{},{status:w.FAILED})})),r(new Lt(s.WASM_ERROR,e)),y(!1)}))}}),[A,e.videoElement,t,O,g]),(0,ye.useEffect)((function(){if(l&&V){sn("More pages available"),c({action:b.NEW_PAGE_AVAILABLE,data:null});var e=setTimeout(nn(en().mark((function e(){return en().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l.startNewPage();case 3:c({action:b.NEW_PAGE_STARTED,data:null}),y(!0),P((function(e){return e+1})),sn("New page started"),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),M((function(e){return an(an({},e),{},{status:w.FAILED})})),r(new Lt(s.WASM_ERROR,e.t0));case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),3e3);return function(){clearTimeout(e)}}}),[V]),an(an({},F),{},{initialized:B,frameParams:H,startRecognition:W})};function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dn(e,t)}(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 dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pn=function(e){var t=e.onResponse,n=e.onStatusChange,r=e.onFileImageSet,u=e.onError,s=Be(),c=s.onEvent,f=s.cameraId,d=s.startScreen,p=s.captureButton,m=s.captureMode,v=(0,ye.useRef)(!0),g=fn((0,ye.useState)(!1),2),E=g[0],k=g[1],I=fn((0,ye.useState)({videoElement:null,videoParams:{width:0,height:0},videoContainerParams:{width:0,height:0}}),2),A=I[0],x=I[1],_=fn((0,ye.useState)({videoStatus:i.PREPARING,camera:{deviceId:"",facing:void 0,groupId:"",label:""},sortedDevices:null}),2),O=_[0],P=_[1],N=fn((0,ye.useState)(f),2),R=N[0],L=N[1],j=cn(A,O.videoStatus,E,u,{captureMode:m}),D=j.status,F=j.response,M=j.initialized,z=j.frameParams,U=j.startRecognition,B=(0,ye.useCallback)((function(){c({action:b.PRESS_MIRRORING_BUTTON,data:null}),k((function(e){return!e}))}),[E]),H=(0,ye.useCallback)((function(){c({action:b.CAMERA_PROCESS_CLOSED,data:null}),d&&n(S.CHOOSE_INPUT_SOURCE)}),[d]),G=(0,ye.useCallback)((function(){c({action:b.PRESS_SKIP_BUTTON,data:null}),n(S.SUCCESS)}),[]),V=(0,ye.useCallback)((function(){if(c({action:b.PRESS_CHANGE_CAMERA_BUTTON,data:null}),O.sortedDevices){var e=me(O.sortedDevices,O.camera.deviceId);e&&L(e)}}),[O.camera.deviceId,O.sortedDevices]),W=(0,ye.useCallback)((function(){if(c({action:b.PRESS_CAPTURE_BUTTON,data:null}),m===C.captureVideo&&v.current)v.current=!1,U();else{if(!A.videoElement)return;var e=pe(A.videoElement,a.UINT).imageData;r(e)}}),[A.videoElement,m]),Z=(0,ye.useCallback)((function(e){c({action:b.PROCESS_FINISHED,data:{status:o.ERROR,reason:e}})}),[]),K=p||void 0===p||m===C.captureFrame||m===C.captureVideo;return(0,ye.useEffect)((function(){F&&(D===w.START_NEXT_PAGE&&t(F),T[D]&&(n(T[D]),t(F)))}),[D,F]),(0,ye.useMemo)((function(){return(0,_e.jsx)(xt,{mirroring:E,onChangeMirroring:B,status:D,isServiceInitialized:M,videoStatusParams:O,frameParams:z,videoElementParams:A,onClose:H,onSnapshotProcess:W,onSkip:G,onChangeCamera:V,captureButton:K,children:(0,_e.jsx)(Pe,{onVideoSizeChange:x,onVideoStatusChange:P,resolution:h.FULL_HD,mirroring:E,onFailStatus:Z,mode:l.environment,cameraId:R,eventData:{type:y.DOCUMENT,onEvent:c}})})}),[R,E,B,W,D,M,O,z,H,V,A,K])},mn=n("./src/components/container/style.css");var hn=function(e){var t=e.onClose,n=e.children,r=e.completionStatus,a=e.direction,o=Be(),i=o.copyright,l=void 0===i||i,u=o.closeButton,s=void 0===u||u,c=r===S.CAMERA_PROCESSING,f=c?mn.Z.locals.full:"";return(0,_e.jsxs)("div",{className:"".concat(mn.Z.locals.window," ").concat(f),"data-direction":a,children:[n,!c&&(0,_e.jsx)("header",{className:mn.Z.locals.header,children:s&&(0,_e.jsx)("button",{"data-e2e":"cross",onClick:t,children:(0,_e.jsx)(Ct,{type:"cross",color:N})})}),l&&!c&&(0,_e.jsx)("footer",{className:mn.Z.locals.footer,children:(0,_e.jsxs)("div",{className:mn.Z.locals.ads,children:[(0,_e.jsx)(Ct,{color:"#bd7dff",type:"regula-logo",size:18}),(0,_e.jsx)("div",{className:mn.Z.locals.pipe}),(0,_e.jsx)("span",{"data-e2e":"powered-by",children:"Powered by Regula"})]})})]})},vn=n("./src/components/info-screen/style.css"),gn=n("../../common/icons/Button.css"),yn=["children","onClick"];function bn(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var wn=function(e){var t=e.children,n=e.onClick,r=bn(e,yn);return(0,_e.jsx)("button",{"data-e2e":r["data-e2e"],className:gn.Z.locals.button,onClick:n,children:t})};var Cn=function(e){var t=e.title,n=e.type,r=e.subtitle,a=e.onReset,o=e.size,i=(0,St.useLocalize)().translate;return(0,_e.jsx)("div",{className:vn.Z.locals["info-message"],children:(0,_e.jsxs)("div",{className:vn.Z.locals["text-container"],children:[(0,_e.jsx)(Ct,{type:n,size:o}),(0,_e.jsx)("p",{"data-e2e":"info-msg-title",className:vn.Z.locals.title,children:t}),(0,_e.jsx)("p",{className:vn.Z.locals.subtitle,children:r}),a&&(0,_e.jsx)(wn,{onClick:a,children:i("tryAgain")})]})})},Sn=n("./src/components/start-screen/style.css");var En=function(e){var t=e.onStart,n=e.onFileImageSet,r=e.title,a=e.subtitle,o=Be(),i=o.onEvent,l=o.multiple,u=void 0===l||l,s=(0,ye.useRef)(null),c=(0,St.useLocalize)().translate,f=(0,ye.useCallback)((function(){var e=s.current;e&&(i({action:b.PRESS_FILE_BUTTON,data:null}),e.click())}),[]);return(0,_e.jsxs)("div",{className:Sn.Z.locals["start-window"],children:[(0,_e.jsxs)("div",{className:Sn.Z.locals.text,children:[(0,_e.jsx)("p",{className:Sn.Z.locals.title,children:r}),(0,_e.jsx)("p",{className:Sn.Z.locals.subtitle,children:a})]}),(0,_e.jsxs)("div",{className:Sn.Z.locals.buttons,children:[(0,_e.jsxs)("button",{"data-e2e":"from-camera",onClick:t,children:[(0,_e.jsx)(Ct,{type:"from-camera"}),(0,_e.jsx)("p",{children:c("fromCamera")})]}),(0,_e.jsxs)("button",{"data-e2e":"from-gallery",onClick:f,children:[(0,_e.jsx)(Ct,{type:"from-gallery"}),(0,_e.jsx)("p",{children:c("fromGallery")})]})]}),(0,_e.jsx)("input",{ref:s,style:{display:"none"},type:"file",multiple:u,accept:z.join(","),onChange:function(e){var t;null!==(t=e.target.files)&&void 0!==t&&t.length&&n(e.target.files)}})]})};function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){An(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function An(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _n(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _n(e,t)}(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 _n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var On=Me.create("main");var Pn=function(e,t,n,r){var a=window.RegulaDocumentSDK,o=Be().internalScenario,i=xn((0,ye.useState)(void 0),2),l=i[0],u=i[1],c=xn((0,ye.useState)(!1),2),f=c[0],d=c[1],p=xn((0,ye.useState)({status:w.START_DETECTION,response:null}),2),m=p[0],h=p[1],v=Xt({scenario:l,onError:n}).initialized;return(0,ye.useEffect)((function(){if(a){if(a.imageProcessParam=he(D,a.imageProcessParam),void 0!==o){var e={processParam:{scenario:o}};a.imageProcessParam=he(a.imageProcessParam,e)}r.isRecognizerProcessParam?u(a.recognizerProcessParam.processParam.scenario):u(a.imageProcessParam.processParam.scenario)}}),[a,o,r.isRecognizerProcessParam]),(0,ye.useEffect)((function(){var o=!!T[m.status];if(a&&v&&!f&&e.length&&!o){t({action:b.FILE_PROCESS_STARTED,data:null});var i=r.isRecognizerProcessParam?a.recognizerProcessParam:a.imageProcessParam;d(!0),On("Image processing started"),a.processImage(e,i).then((function(e){h((function(t){return In(In({},t),{},{status:w.SUCCESS,response:e})})),d(!1),On("Image processing is finished")})).catch((function(e){h((function(e){return In(In({},e),{},{status:w.FAILED})})),n(new Lt(s.WASM_ERROR,e)),d(!1)}))}}),[v,m.status,e,f,r.isRecognizerProcessParam]),m},Nn=n("./src/components/process-screen/style.css"),Rn=n("../../common/icons/Spinner.css");var Tn=function(){return(0,_e.jsx)("div",{className:Rn.Z.locals.container,children:(0,_e.jsx)("div",{className:Rn.Z.locals.spinner})})};var Ln=function(e){var t=e.title;return(0,_e.jsxs)("div",{className:Nn.Z.locals["process-message"],children:[(0,_e.jsx)(Tn,{}),(0,_e.jsx)("span",{className:Nn.Z.locals.message,children:t})]})};function jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dn(e,t)}(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 Dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Fn=function(e){var t=e.onStatusChange,n=e.onResponse,r=e.images,a=e.onError,o=(0,ye.useRef)(!1),i=Be().onEvent,l=jn((0,ye.useState)(!1),2),u=l[0],c=l[1],f=jn((0,ye.useState)([]),2),d=f[0],p=f[1],m=Pn(d,i,a,{isRecognizerProcessParam:u}),h=m.status,v=m.response,g=(0,St.useLocalize)().translate;return(0,ye.useEffect)((function(){if(r&&!o.current){if(o.current=!0,r instanceof Array)return c(!0),p(r);Vt(r,1920,P).then((function(e){return Promise.all(e)})).then((function(e){e.reduce((function(e,t){return e+t.data.byteLength}),0)>O?a(new Lt(s.FILE_SIZE)):p(e)})).catch((function(e){a(e)})).then((function(){o.current=!1}))}}),[r]),(0,ye.useEffect)((function(){h===w.SUCCESS&&v&&(n(v),t(S.SUCCESS))}),[h,v]),(0,_e.jsx)(Ln,{title:g("processing")})};function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){Un(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Un(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn=function(e){return function(t){var n=t.locale,r=t.translations,a=t.dictionaries,o=a;if(r)for(var i in r)if(a.hasOwnProperty(i))o=he(o,{[i]:r[i]});else{var l=he(a.en,r[i]);o=he(o,{[i]:l})}var u=(window.navigator?window.navigator.language:"en").substring(0,2).toLowerCase(),s=o.hasOwnProperty(u)?u:"en",c=n&&o.hasOwnProperty(n)?n:s,f=m.includes(c)?d.Rtl:d.Ltr,p=zn(zn({},t),{},{direction:f});return(0,_e.jsx)(St.LocalizationProvider,{disableCache:!0,locale:c,translations:o,children:(0,_e.jsx)(e,zn({},p))})}};function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){Vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wn=function(e){return function(t){return(0,_e.jsx)(Ue.Provider,{value:t,children:(0,_e.jsx)(e,Gn({},t))})}};function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}function Kn(e,t){return Kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kn(e,t)}function Yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qn(e);if(t){var a=Qn(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Qn(e){return Qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qn(e)}var qn=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kn(e,t)}(o,e);var t,n,r,a=Yn(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).supportedBrowserVersions=e.supportedBrowserVersions,t.onError=e.onError,t}return t=o,(n=[{key:"componentDidCatch",value:function(e){this.onError(new Lt(s.UNKNOWN_ERROR,e))}},{key:"componentDidMount",value:function(){if(this.supportedBrowserVersions){var e=null;Z.tq&&this.supportedBrowserVersions[Z.BF]&&(e=this.supportedBrowserVersions[Z.BF]),Z.nI&&(e=this.supportedBrowserVersions.desktop),e&&e[Z.KC]&&Z.x_<e[Z.KC]&&this.onError(new Lt(s.NOT_SUPPORTED))}}},{key:"render",value:function(){return this.props.children}}])&&Zn(t.prototype,n),r&&Zn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(ye.Component);function Jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $n(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $n(e,t)}(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 $n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xn=function(e){return e.portrait="portrait",e.landscape="landscape",e}(Xn||{});function er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(e,t)}(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 tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nr=te(Wn,Bn)((function(e){var t=e.direction,n=Be(),r=n.onEvent,a=n.startScreen,i=(0,St.useLocalize)().translate,l=function(){var e=Jn((0,ye.useState)((function(){var e=window.matchMedia("(orientation: landscape)").matches?Xn.landscape:Xn.portrait;return{isPortrait:e===Xn.portrait,isLandscape:e===Xn.landscape,orientation:e}})),2),t=e[0],n=e[1],r=(0,ye.useCallback)((function(){var e=window.matchMedia("(orientation: landscape)").matches?Xn.landscape:Xn.portrait,r={isPortrait:e===Xn.portrait,isLandscape:e===Xn.landscape,orientation:e};t.orientation!==r.orientation&&n(r)}),[t.orientation]);return(0,ye.useEffect)((function(){return void 0!==typeof window&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("load",r,!1),window.removeEventListener("resize",r,!1)}}),[r]),t}().orientation,u=er((0,ye.useState)(null),2),s=u[0],c=u[1],f=er((0,ye.useState)(null),2),d=f[0],p=f[1],m=er((0,ye.useState)(a?S.CHOOSE_INPUT_SOURCE:S.CAMERA_PROCESSING),2),h=m[0],v=m[1],g=(0,ye.useCallback)((function(){r({action:b.PRESS_CAMERA_BUTTON,data:null}),v(S.CAMERA_PROCESSING)}),[]),y=(0,ye.useCallback)((function(){r({action:b.CLOSE,data:null})}),[]),w=(0,ye.useCallback)((function(e){p(e),v(S.FILE_PROCESSING)}),[]),C=(0,ye.useCallback)((function(e){var t=R[e.type]||S.UNKNOWN_ERROR;v(t),r({action:b.PROCESS_FINISHED,data:{status:o.ERROR,reason:e.type}})}),[]),E=(0,ye.useCallback)((function(){c(null),p(null),v(a?S.CHOOSE_INPUT_SOURCE:S.CAMERA_PROCESSING)}),[a]),k=(0,ye.useCallback)((function(){r({action:b.PRESS_RETRY_BUTTON,data:null}),E()}),[]);return(0,ye.useEffect)((function(){Z.tq&&h===S.CAMERA_PROCESSING&&E()}),[l]),(0,ye.useEffect)((function(){if(s&&(h===S.SUCCESS||h===S.TIMEOUT)){var e=h===S.SUCCESS?o.OK:o.TIMEOUT;r({action:b.PROCESS_FINISHED,data:{status:e,response:s}})}}),[h,s]),(0,_e.jsx)(ye.StrictMode,{children:(0,_e.jsx)(qn,{onError:C,supportedBrowserVersions:L,children:(0,_e.jsx)(hn,{completionStatus:h,onClose:y,direction:t,children:h===S.CHOOSE_INPUT_SOURCE?(0,_e.jsx)(En,{onStart:g,onFileImageSet:w,title:i("scanIDInBrowser"),subtitle:i("useYourDeviceCamera")}):h===S.CAMERA_PROCESSING?(0,_e.jsx)(pn,{onResponse:c,onStatusChange:v,onFileImageSet:w,onError:C}):h===S.FILE_PROCESSING?(0,_e.jsx)(Fn,{onStatusChange:v,onResponse:c,images:d,onError:C}):h===S.SUCCESS?(0,_e.jsx)(Cn,{type:"verified",title:i("success"),subtitle:i("processingFinished")}):h===S.FILE_SIZE_ERROR?(0,_e.jsx)(Cn,{onReset:k,type:"error",title:i("largeFile"),subtitle:i("selectSmallerFile")}):h===S.WASM_DEFAULT_ERROR||h===S.NOT_SUPPORTED_ERROR?(0,_e.jsx)(Cn,{type:"error",title:i("versionNotSupported"),subtitle:i("updateBrowser")}):h===S.WASM_LICENSE_ERROR?(0,_e.jsx)(Cn,{type:"error",title:i("licenseError"),subtitle:i("licenseExpired")}):h===S.INCORRECT_FILE_ERROR?(0,_e.jsx)(Cn,{onReset:k,type:"error",title:i("fileCorrupt"),subtitle:i("selectAnotherFile")}):h===S.TIMEOUT?(0,_e.jsx)(Cn,{onReset:k,type:"error",title:i("timeout"),subtitle:i("processingFinished")}):(0,_e.jsx)(Cn,{onReset:k,type:"error",title:i("error"),subtitle:i("somethingWentWrong")})})})})})),rr=JSON.parse('{"placeDocumentIntoFrame":"Поместите документ в рамку","holdDocumentStraight":"Держите документ прямо","glaresOnDocument":"Избегайте бликов на документе","preparingCamera":"Подготовка камеры...","processing":"Обработка...","moveCloser":"Подвиньтесь ближе","timeout":"Тайм-аут","somethingWentWrong":"Что-то пошло не так","preparingService":"Подготовка сервиса...","success":"Готово!","cameraUnavailable":"Камера недоступна!","allowAccessToCamera":"Разрешите доступ к камере и перезагрузите эту страницу для продолжения.","error":"Ошибка!","tryAgain":"Повторите попытку","noCameraAvailable":"Отсутствует камера","photoCapturedSuccessfully":"Снимок успешно получен.","scanIDInBrowser":"Отсканируйте ID-документ в вашем браузере","useYourDeviceCamera":"Используйте камеру вашего устройства для сканирования документа или выберите фотографию документа из галереи","fromCamera":"С камеры","fromGallery":"Из галереи","cameraConnection":"Убедитесь, что камера подключена правильно.","documentProcessing":"Обработка документа...","positionDocumentCenter":"Расположите документ в центре","flipDocument":"Переверните документ","processingFinished":"Обработка документа завершена.","uploadPhoto":"Загрузите фото","useCameraOrGallery":"Используйте камеру вашего устройства или выберите фотографию из галереи","detectingDocument":"Поиск документа...","versionNotSupported":"Версия вашего браузера не поддерживается","updateBrowser":"Обновите версию вашего браузера","largeFile":"Размер загружаемого файла слишком велик","selectSmallerFile":"Выберите файл меньшего размера","licenseError":"Ошибка лицензии","licenseExpired":"Лицензия не найдена или недействительна","fileCorrupt":"Файл поврежден или не поддерживается","selectAnotherFile":"Выберите другой файл","noFocus":"Нет фокусировки камеры","incorrectCameraId":"Камера с заданным ID не найдена.","checkCameraId":"Проверьте корректность заданного ID камеры."}'),ar=JSON.parse('{"placeDocumentIntoFrame":"Fit the document into the frame","holdDocumentStraight":"Hold the document straight","glaresOnDocument":"Avoid glare on the document","preparingCamera":"Preparing the camera...","processing":"Processing...","moveCloser":"Move closer","timeout":"Timeout","somethingWentWrong":"Something went wrong","preparingService":"Preparing the service...","success":"Success!","cameraUnavailable":"Camera unavailable!","allowAccessToCamera":"Allow access to the camera and reload this page to continue.","error":"Error!","tryAgain":"Try again","noCameraAvailable":"No camera available","photoCapturedSuccessfully":"The photo is captured successfully.","scanIDInBrowser":"Scan an ID in your browser","useYourDeviceCamera":"Use your device camera to scan a document or select a photo of the document from the gallery","fromCamera":"From сamera","fromGallery":"From gallery","cameraConnection":"Make sure the camera is connected correctly.","documentProcessing":"Document processing...","positionDocumentCenter":"Position the document in the center","flipDocument":"Flip the document","processingFinished":"Processing finished.","uploadPhoto":"Upload a photo","useCameraOrGallery":"Use your device camera or select a photo from the gallery","detectingDocument":"Detecting a document...","versionNotSupported":"Your browser version is not supported","updateBrowser":"Update your browser version","largeFile":"This file is too large to be uploaded","selectSmallerFile":"Please select a smaller file","licenseError":"A license error has occurred","licenseExpired":"The license cannot be found or has expired","fileCorrupt":"This file is corrupt or not supported","selectAnotherFile":"Please select another file","noFocus":"No camera focus","incorrectCameraId":"No camera with the specified ID found.","checkCameraId":"Check if the specified camera ID is correct."}'),or=JSON.parse('{"placeDocumentIntoFrame":"Passen Sie das Dokument in den Rahmen ein","holdDocumentStraight":"Halten Sie das Dokument gerade","glaresOnDocument":"Vermeiden Sie Blendungen auf dem Dokument","preparingCamera":"Kamera wird vorbereitet...","processing":"Bearbeitung...","moveCloser":"Näher an die Kamera","timeout":"Timeout","somethingWentWrong":"Etwas ist schief gelaufen","preparingService":"Service wird vorbereitet...","success":"Erfolgreich!","cameraUnavailable":"Kamera nicht verfügbar!","allowAccessToCamera":"Erlauben Sie den Zugriff auf die Kamera und laden Sie diese Seite neu, um fortzufahren.","error":"Fehler!","tryAgain":"Erneut versuchen","noCameraAvailable":"Keine Kamera vorhanden","photoCapturedSuccessfully":"Das Foto wurde erfolgreich aufgenommen.","scanIDInBrowser":"Scannen Sie eine ID in Ihrem Browser","useYourDeviceCamera":"Verwenden Sie die Kamera Ihres Geräts, um ein Dokument zu scannen, oder wählen Sie ein Foto des Dokuments in der Galerie aus.","fromCamera":"Von Kamera","fromGallery":"Von Gallerie","cameraConnection":"Stellen Sie sicher, dass die Kamera richtig angeschlossen ist.","documentProcessing":"Dokument in Bearbeitung...","positionDocumentCenter":"Positionieren Sie das Dokument in der Mitte","flipDocument":"Dokument drehen","processingFinished":"Bearbeitung abgeschlossen.","uploadPhoto":"Foto hochladen","useCameraOrGallery":"Verwenden Sie die Kamera Ihres Geräts oder wählen Sie ein Foto aus der Galerie aus","detectingDocument":"Suche nach Dokument...","versionNotSupported":"Ihre Browserversion wird nicht unterstützt","updateBrowser":"Aktualisieren Sie Ihre Browserversion","largeFile":"Diese Datei ist zu groß, um hochgeladen zu werden","selectSmallerFile":"Bitte wählen Sie eine kleinere Datei","licenseError":"Es ist ein Lizenzfehler aufgetreten","licenseExpired":"Die Lizenz kann nicht gefunden werden oder ist abgelaufen","fileCorrupt":"Diese Datei ist beschädigt oder wird nicht unterstützt","selectAnotherFile":"Bitte wählen Sie eine andere Datei","noFocus":"Kein Kamerafokus","incorrectCameraId":"Keine Kamera mit angegebener ID gefunden","checkCameraId":"Prüfen Sie, ob die angegebene Kamera-ID korrekt ist"}'),ir=JSON.parse('{"placeDocumentIntoFrame":"Dopasuj dokument do ramki","holdDocumentStraight":"Trzymaj urządzenie prosto","glaresOnDocument":"Unikaj oślepiania dokumentu","preparingCamera":"Przygotowywanie kamery...","processing":"Przetwarzanie...","moveCloser":"Przysuń się bliżej","timeout":"Limit czasu","somethingWentWrong":"Coś poszło nie tak","preparingService":"Przygotowanie serwisu...","success":"Gotowe!","cameraUnavailable":"Aparat jest niedostępny!","allowAccessToCamera":"Zezwól na dostęp do aparatu i odśwież tę stronę, aby kontynuować.","error":"Błąd!","tryAgain":"Powtórz próbę","noCameraAvailable":"Brak aparatu","photoCapturedSuccessfully":"Zdjęcie wykonano pomyślnie.","scanIDInBrowser":"Zeskanuj dokument ID w swojej wyszukiwarce","useYourDeviceCamera":"Użyj aparatu w swoim urządzeniu do skanowania dokumentu albo wybierz zdjęcie dokumentu z galerii","fromCamera":"Z aparatu","fromGallery":"Z galerii","cameraConnection":"Upewnij się, że aparat jest podłączony prawidłowo.","documentProcessing":"Przetwarzanie dokumentu...","positionDocumentCenter":"Umieść dokument pośrodku","flipDocument":"Odwróć dokument","processingFinished":"Przetwarzanie dokumentu zakończone.","uploadPhoto":"Załaduj zdjęcie","useCameraOrGallery":"Użyj aparatu w swoim urządzeniu albo wybierz zdjęcie z galerii","detectingDocument":"Wyszukiwanie dokumentu...","versionNotSupported":"Twoja wersja przeglądarki nie jest obsługiwana","updateBrowser":"Zaktualizuj wersję przeglądarki","largeFile":"Rozmiar ładowanego pliku jest zbyt duży","selectSmallerFile":"Wybierz plik o mniejszym rozmiarze","licenseError":"Błąd licencji","licenseExpired":"Licencja nie została znaleziona lub jest nieważna","fileCorrupt":"Plik jest uszkodzony albo nie jest obsługiwany","selectAnotherFile":"Wybierz inny plik","noFocus":"Brak ostrości","incorrectCameraId":"Nie znaleziono kamery o podanym ID","checkCameraId":"Sprawdź, czy podane ID kamery jest prawidłowe"}'),lr=JSON.parse('{"placeDocumentIntoFrame":"Adatta il documento alla cornice","holdDocumentStraight":"Tieni il documento dritto","glaresOnDocument":"Evita il riflesso sul documento","preparingCamera":"Preparazione della fotocamera in corso...","processing":"Elaborazione...","moveCloser":"Avvicinati","timeout":"Timeout","somethingWentWrong":"Qualcosa è andato storto","preparingService":"Preparazione del servizio...","success":"L\'operazione è andata a buon fine!","cameraUnavailable":"Fotocamera non disponibile!","allowAccessToCamera":"Consenti l\'accesso alla fotocamera e ricarica questa pagina per continuare.","error":"Errore!","tryAgain":"Prova di nuovo","noCameraAvailable":"Non c\'è la fotocamera","photoCapturedSuccessfully":"La foto è stata scattata con successo.","scanIDInBrowser":"Scansiona un ID nel browser","useYourDeviceCamera":"Usa la fotocamera del tuo dispositivo per scansionare un documento o seleziona una foto del documento dalla galleria","fromCamera":"Dalla fotocamera","fromGallery":"Dalla galleria","cameraConnection":"Assicurati che la fotocamera sia collegata correttamente.","documentProcessing":"Elaborazione dei documenti in corso...","positionDocumentCenter":"Posiziona il documento al centro","flipDocument":"Capovolgi il documento","processingFinished":"Elaborazione finita.","uploadPhoto":"Carica una foto","useCameraOrGallery":"Usa la fotocamera del tuo dispositivo o seleziona una foto dalla galleria","detectingDocument":"Rilevamento di un documento...","versionNotSupported":"La versione del tuo browser non è supportata","updateBrowser":"Aggiorna la versione del browser","largeFile":"Questo file è troppo grande per essere caricato","selectSmallerFile":"Seleziona un file più piccolo","licenseError":"Si è verificato un errore di licenza","licenseExpired":"La licenza non è stata trovata o è scaduta","fileCorrupt":"Questo file è danneggiato o non supportato","selectAnotherFile":"Seleziona un altro file","noFocus":"Nessuna messa a fuoco della fotocamera","incorrectCameraId":"Nessuna telecamera trovata con l\'ID specificato","checkCameraId":"Verifica se l\'ID specificato della telecamera è corretto"}'),ur=JSON.parse('{"placeDocumentIntoFrame":"Igazítsa a dokumentumot a keretbe","holdDocumentStraight":"A készüléket tartsa mozdulatlanul","glaresOnDocument":"Kerülje a fény megcsillanását a dokumentumon","preparingCamera":"A kamera előkészítése...","processing":"Feldolgozás...","moveCloser":"Vigye közelebb","timeout":"Időkorlát","somethingWentWrong":"Valami félresikerült","preparingService":"Szolgáltatás előkészítése…","success":"Siker!","cameraUnavailable":"Nem érhető el kamera!","allowAccessToCamera":"Hozzáférés engedélyezése a kamerához és az oldal újratöltése a folytatáshoz.","error":"Hiba!","tryAgain":"Próbálja újra","noCameraAvailable":"Nincs kamera","photoCapturedSuccessfully":"Sikeresen elkészült a fénykép.","scanIDInBrowser":"Olvasson be személyazonosító okiratot böngészőjében","useYourDeviceCamera":"Készüléke kamerája segítségével olvassa be az okiratot vagy válassza ki az okirat képét a galériából","fromCamera":"A kameráról","fromGallery":"A galériából","cameraConnection":"Bizonyosodjon meg arról, hogy megfelelően csatlakozik a kamera.","documentProcessing":"Okirat feldolgozása...","positionDocumentCenter":"Helyezze az okiratot középre","flipDocument":"Fordítsa meg az okiratot","processingFinished":"A feldolgozás befejeződött.","uploadPhoto":"Fénykép feltöltése","useCameraOrGallery":"Használja készüléke kameráját vagy válasszon egy fényképet a galériából","detectingDocument":"Okirat észlelése...","versionNotSupported":"Nem támogatott a böngésző verziója","updateBrowser":"A böngésző frissítse szükséges","largeFile":"A feltöltendő fájl túl nagy","selectSmallerFile":"Kérjük, válasszon kisebb fájlt","licenseError":"Engedélyezési hiba merült fel","licenseExpired":"Nem található vagy lejárt az engedély","fileCorrupt":"Ez a fájl sérült vagy nem támogatott","selectAnotherFile":"Kérjük, válasszon másik fájlt","noFocus":"Nem fókuszál a kamera","incorrectCameraId":"Nem található ilyen azonosítójú kamera","checkCameraId":"Ellenőrizze, hogy helyes-e a kamera azonosítója"}'),sr=JSON.parse('{"placeDocumentIntoFrame":"对准证件使其在框中","holdDocumentStraight":"保持证件直接","glaresOnDocument":"避免证件的反射过强的光","preparingCamera":"正在准备相机","processing":"处理中...","moveCloser":"靠近点","timeout":"超时","somethingWentWrong":"出了问题","preparingService":"正在准备服务...","success":"成功!","cameraUnavailable":"相机不可用!","allowAccessToCamera":"允许访问相机并重新加载此页面以继续。","error":"错误!","tryAgain":"再试一次","noCameraAvailable":"没有相机","photoCapturedSuccessfully":"照片拍摄成功。","scanIDInBrowser":"在浏览器中扫描身份证件","useYourDeviceCamera":"使用您的设备相机扫描证件或从图库中选择证件的照片","fromCamera":"从相机","fromGallery":"来自手机图库","cameraConnection":"确保相机连接正确。","documentProcessing":"证件处理...","positionDocumentCenter":"将证件置于中心","flipDocument":"翻转证件","processingFinished":"处理完毕。","uploadPhoto":"上传一张照片","useCameraOrGallery":"使用您的设备相机或从图库中选择一张照片","detectingDocument":"检测证件...","versionNotSupported":"不支持您的浏览器版本","updateBrowser":"更新您的浏览器版本","largeFile":"该文件太大,无法上传","selectSmallerFile":"请选择较小的文件","licenseError":"发生许可证错误","licenseExpired":"无法找到许可证或已过期","fileCorrupt":"该文件已损坏或不被支持","selectAnotherFile":"请选择另一个文件","noFocus":"没有摄像头对焦","incorrectCameraId":"未找到具有指定 ID 的像机","checkCameraId":"检查指定的相机ID是否正确"}'),cr=JSON.parse('{"placeDocumentIntoFrame":"Vložte dokument do rámu","holdDocumentStraight":"Držte dokument rovno","glaresOnDocument":"Vyhnite sa odleskom na dokumente","preparingCamera":"Príprava fotoaparátu...","processing":"Spracováva sa...","moveCloser":"Posuňte bližšie","timeout":"Čas vypršal","somethingWentWrong":"Niečo sa pokazilo","preparingService":"Pripravuje sa služba...","success":"Úspech!","cameraUnavailable":"Fotoaparát je nedostupný!","allowAccessToCamera":"Ak chcete pokračovať, povoľte prístup k fotoaparátu a znova načítajte túto stránku.","error":"Chyba!","tryAgain":"Skúste to znova","noCameraAvailable":"Žiadny fotoaparát","photoCapturedSuccessfully":"Fotografia je úspešne nasnímaná.","scanIDInBrowser":"Naskenujte ID v prehliadači","useYourDeviceCamera":"Pomocou fotoaparátu zariadenia naskenujte dokument alebo vyberte fotografiu dokumentu z galérie","fromCamera":"Z fotoaparátu","fromGallery":"Z galérie","cameraConnection":"Uistite sa, že je fotoaparát správne pripojený.","documentProcessing":"Spracovanie dokumentu...","positionDocumentCenter":"Umiestnite dokument do stredu","flipDocument":"Prevrátiť dokument","processingFinished":"Spracovanie dokončené.","uploadPhoto":"Odovzdať fotografiu","useCameraOrGallery":"Použite fotoaparát zariadenia alebo vyberte fotografiu z galérie","detectingDocument":"Zisťuje sa dokument...","versionNotSupported":"Verzia vášho prehliadača nie je podporovaná","updateBrowser":"Aktualizujte verziu prehliadača","largeFile":"Súbor je príliš veľký na odovzdávanie","selectSmallerFile":"Vyberte menší súbor","licenseError":"Vyskytla sa chyba licencie","licenseExpired":"Licenciu nie je možné nájsť, prípadne už nie je platná","fileCorrupt":"Súbor je poškodený, prípadne nie je podporovaný","selectAnotherFile":"Vyberte iný súbor","noFocus":"Žiadne zaostrenie fotoaparátu","incorrectCameraId":"Nenašiel sa žiadny fotoaparát s určeným ID","checkCameraId":"Skontrolujte, či je určené ID fotoaparátu správne"}'),fr=JSON.parse('{"placeDocumentIntoFrame":"Помістіть документ в рамку","holdDocumentStraight":"Тримайте документ прямо","glaresOnDocument":"Уникайте відблисків на документі","preparingCamera":"Підготовка камери...","processing":"Обробка...","moveCloser":"Підсуньтеся ближче","timeout":"Тайм-аут","somethingWentWrong":"Щось пішло не так","preparingService":"Підготовка сервісу...","success":"Готово!","cameraUnavailable":"Камера недоступна!","allowAccessToCamera":"Дозвольте доступ до камери і перезавантажте цю сторінку, щоб продовжити.","error":"Помилка!","tryAgain":"Спробуйте ще раз","noCameraAvailable":"Камера відсутня","photoCapturedSuccessfully":"Знімок успішно отримано.","scanIDInBrowser":"Відскануйте ID-документ у вашому браузері","useYourDeviceCamera":"Використайте камеру вашого пристрою для сканування документа або виберіть фотографію документа з галереї","fromCamera":"З камери","fromGallery":"З галереї","cameraConnection":"Переконайтеся, що камера підключена правильно.","documentProcessing":"Обробка документа...","positionDocumentCenter":"Розташуйте документ у центрі","flipDocument":"Переверніть документ","processingFinished":"Обробку документа завершено.","uploadPhoto":"Завантажте фото","useCameraOrGallery":"Використайте камеру вашого пристрою або виберіть фотографію з галереї","detectingDocument":"Пошук документа...","versionNotSupported":"Версія вашого браузера не підтримується","updateBrowser":"Оновіть версію вашого браузера","largeFile":"Розмір файлу, що завантажується, занадто великий","selectSmallerFile":"Виберіть файл менший за розміром","licenseError":"Помилка ліцензії","licenseExpired":"Ліцензію не знайдено або вона не є дійсною","fileCorrupt":"Файл пошкоджено або він не підтримується","selectAnotherFile":"Виберіть інший файл","noFocus":"Немає фокусування камери","incorrectCameraId":"Камеру з заданим ID не знайдено","checkCameraId":"Перевірте правильність заданого ID камери"}'),dr=JSON.parse('{"placeDocumentIntoFrame":"Ajuster le document dans le cadre","holdDocumentStraight":"Garder le document droit","glaresOnDocument":"Eviter les reflets sur le document","preparingCamera":"Caméra en préparation...","processing":"Analyse...","moveCloser":"Rapprochez","timeout":"Délai d\'expiration","somethingWentWrong":"Anomalie","preparingService":"Préparation...","success":"Réussi!","cameraUnavailable":"Caméra indisponible!","allowAccessToCamera":"Autoriser l\'accès à la caméra, et recharger cette page pour continuer.","error":"Erreur!","tryAgain":"Réessayer","noCameraAvailable":"Caméra introuvable","photoCapturedSuccessfully":"Photo correcte.","scanIDInBrowser":"Scannez une pièce d\'identité","useYourDeviceCamera":"Utilisez la caméra de votre mobile pour scanner un document, ou sélectionnez une photo du document dans la galerie","fromCamera":"Depuis la сaméra","fromGallery":"Depuis la galerie","cameraConnection":"Assurez-vous que la caméra est correctement connectée.","documentProcessing":"Analyse du document...","positionDocumentCenter":"Positionner le document au centre","flipDocument":"Inverser le document","processingFinished":"Terminé.","uploadPhoto":"Envoyez une photo","useCameraOrGallery":"Utilisez la caméra de votre appareil, ou sélectionnez une photo dans la galerie","detectingDocument":"Détection d\'un document...","versionNotSupported":"Version de navigateur non compatible","updateBrowser":"Veuillez mettre à jour votre navigateur","largeFile":"Fichier trop volumineux pour être transféré","selectSmallerFile":"Veuillez sélectionner un fichier moins volumineux","licenseError":"Erreur de licence","licenseExpired":"License introuvable ou expirée","fileCorrupt":"Fichier corrompu ou non supporté","selectAnotherFile":"Veuillez sélectionner un autre fichier","noFocus":"Caméra non focalisée","incorrectCameraId":"Aucune caméra ayant l\'ID spécifié","checkCameraId":"Vérifier que l\'ID de caméra spécifié est correct"}'),pr=JSON.parse('{"placeDocumentIntoFrame":"Encaje el documento en el marco","holdDocumentStraight":"Sostenga el documento recto","glaresOnDocument":"Evite el brillo en el documento","preparingCamera":"Preparando la cámara...","processing":"Procesamiento...","moveCloser":"Acérquese","timeout":"Tiempo de espera","somethingWentWrong":"Algo salió mal","preparingService":"Preparando el servicio...","success":"¡Listo!","cameraUnavailable":"¡Cámara no disponible!","allowAccessToCamera":"Permita el acceso a la cámara y recargue esta página para continuar.","error":"¡Error!","tryAgain":"Inténtelo de nuevo","noCameraAvailable":"No hay cámara disponible","photoCapturedSuccessfully":"La foto se ha capturado con éxito.","scanIDInBrowser":"Escanee un documento de identidad en su navegador","useYourDeviceCamera":"Utilice la cámara de su dispositivo para escanear un documento o seleccione una foto del documento de la galería","fromCamera":"Desde la cámara","fromGallery":"Desde la galería","cameraConnection":"Asegúrese de que la cámara está conectada correctamente.","documentProcessing":"Procesando el documento...","positionDocumentCenter":"Coloque el documento en el centro","flipDocument":"Déle la vuelta al documento","processingFinished":"Procesamiento del documento finalizado.","uploadPhoto":"Suba una foto","useCameraOrGallery":"Utilice la cámara de su dispositivo o seleccione una foto de la galería","detectingDocument":"Detectando un documento...","versionNotSupported":"La versión de su navegador no es compatible","updateBrowser":"Actualice la versión de su navegador","largeFile":"Este archivo es demasiado grande para cargarlo","selectSmallerFile":"Seleccione un archivo de menor tamaño","licenseError":"Se ha producido un error de licencia","licenseExpired":"La licencia no se encuentra o ha expirado","fileCorrupt":"Este archivo está dañado o no es compatible","selectAnotherFile":"Por favor, seleccione otro archivo","noFocus":"No hay enfoque de la cámara","incorrectCameraId":"La cámara con el identificador especificado no encontrada","checkCameraId":"Compruebe si el identificador especificado de la cámara es correcto"}'),mr=JSON.parse('{"placeDocumentIntoFrame":"Encaixe o documento no quadro","holdDocumentStraight":"Mantenha o dispositio reto","glaresOnDocument":"Evite luz sobre o documento","preparingCamera":"Preparando a câmara...","processing":"A processar...","moveCloser":"Aproxime-se","timeout":"Tempo esgotado","somethingWentWrong":"Algo correu mal","preparingService":"Preparando o serviço...","success":"Sucesso!","cameraUnavailable":"Câmara indisponível!","allowAccessToCamera":"Permita o acesso à câmara e volte a carregar esta página para continuar.","error":"Erro!","tryAgain":"Tente outra vez","noCameraAvailable":"Não há câmara","photoCapturedSuccessfully":"A fotografia é capturada com sucesso.","scanIDInBrowser":"Digitalize um ID no seu navegador","useYourDeviceCamera":"Utilize a câmara do seu dispositivo para digitalizar um documento ou selecionar uma fotografia do documento na galeria","fromCamera":"Da câmara","fromGallery":"Da galeria","cameraConnection":"Certifique-se de que a câmara está ligada corretamente.","documentProcessing":"Procesar o documento...","positionDocumentCenter":"Posicione o documento no centro","flipDocument":"Vire o documento","processingFinished":"Processamento terminado.","uploadPhoto":"Carregue uma foto","useCameraOrGallery":"Utilize a sua máquina fotográfica ou selecione uma fotografia da galeria","detectingDocument":"Detectando um documento...","versionNotSupported":"A versão do seu navegador não é compatível","updateBrowser":"Atualize a versão do seu navegador","largeFile":"Este arquivo é muito grande para ser carregado","selectSmallerFile":"Selecione um arquivo menor","licenseError":"Ocorreu um erro de licença","licenseExpired":"A licença não pode ser encontrada ou expirou","fileCorrupt":"Este arquivo está corrompido ou não é compatível","selectAnotherFile":"Selecione outro arquivo","noFocus":"Sem foco da câmara","incorrectCameraId":"Não foi encontrada nenhuma câmara com o ID especificado","checkCameraId":"Verifique se a ID da câmara especificada está correta"}'),hr=JSON.parse('{"placeDocumentIntoFrame":"تأطير الوثيقة","holdDocumentStraight":"حافظ على المستند مستقيماً","glaresOnDocument":"تجنب الوهج على الوثيقة","preparingCamera":"تهيئة الكاميرا...","processing":"جاري المعالجة...","moveCloser":"اقترب أكثر","timeout":"مدة الانتظار","somethingWentWrong":"حدث خطأ ما","preparingService":"جاري تحضير الخدمة...","success":"تم!","cameraUnavailable":"الكاميرا غير متاحة!","allowAccessToCamera":"اسمح بالوصول إلى الكاميرا وأعد تحميل هذه الصفحة للمتابعة.","error":"خطأ!","tryAgain":"حاول مرة أخرى","noCameraAvailable":"تعذّر العثور على الكاميرا","photoCapturedSuccessfully":"تم التقاط الصورة بنجاح.","scanIDInBrowser":"امسح المعرف الشخصي (ID) في متصفحك","useYourDeviceCamera":"استخدم كاميرا جهازك لمسح مستند ضوئيًا أو اختر صورةً لمستند من معرض الصور لديك","fromCamera":"من الكاميرا","fromGallery":"من معرض الصور","cameraConnection":"تأكد من أن الكاميرا متصلة بشكل صحيح.","documentProcessing":"جاري معالجة المستند...","positionDocumentCenter":"ضع المستند في الوسط","flipDocument":"اقلب المستند","processingFinished":"انتهت عملية المعالجة.","uploadPhoto":"حمّل الصورة","useCameraOrGallery":"استخدم كاميرا جهازك أو اختر صورة من معرض الصور","detectingDocument":"جاري التعّرف على الوثيقة...","versionNotSupported":"إصدار المتصفح الخاص بك غير مدعوم","updateBrowser":"يرجى تحديث إصدار متصفحك","largeFile":"هذا الملف كبير جدًا بحيث لا يمكن تحميله","selectSmallerFile":"يرجى اختيار ملف أصغر حجمًا","licenseError":"حدث خطأ في الرخصة","licenseExpired":"تعذّر العثور على الرخصة أو أن صلاحيتها منتهية","fileCorrupt":"هذا الملف تالف أو غير مدعوم","selectAnotherFile":"يرجى اختيار ملف آخر","noFocus":"لا يوجد تركيز للكاميرا","incorrectCameraId":"تعذّر العثور على الكاميرا ذات المعرّف المحدد","checkCameraId":"تحقق مما إذا كان معرّف الكاميرا المحدد صحيحًا"}'),vr=JSON.parse('{"placeDocumentIntoFrame":"Pas het document in het kader","holdDocumentStraight":"Houd het document recht","glaresOnDocument":"Vermijd glans op het document","preparingCamera":"De camera aan het voorbereiden...","processing":"Bezig met verwerken...","moveCloser":"Kom dichter","timeout":"Time-out","somethingWentWrong":"Er ging iets fout","preparingService":"Voorbereiding van de dienst...","success":"Succes!","cameraUnavailable":"Camera onbeschikbaar!","allowAccessToCamera":"Sta toegang to de camera toe en laad de pagina opnieuw om door te gaan.","error":"Fout!","tryAgain":"Probeer opnieuw","noCameraAvailable":"Er is geen camera","photoCapturedSuccessfully":"De foto is succesvol gemaakt.","scanIDInBrowser":"Scan een ID in uw browser","useYourDeviceCamera":"Gebruik de camera van uw toestel om een document te scannen of selecteer een foto van het document van de galerij","fromCamera":"Van camera","fromGallery":"Van galerij","cameraConnection":"Zorg ervoor dat de camera correct is aangesloten.","documentProcessing":"Documentenverwerking...","positionDocumentCenter":"Plaats het document in het midden","flipDocument":"Draai het document om","processingFinished":"Verwerking klaar.","uploadPhoto":"Upload een foto","useCameraOrGallery":"Gebruik de camera van uw toestel of selecteer een foto uit de galerij","detectingDocument":"Bezig met het zoeken naar een document...","versionNotSupported":"Uw browserversie wordt niet ondersteund","updateBrowser":"Update uw browserversie","largeFile":"Dit bestand is te groot om geüpload te worden","selectSmallerFile":"Kies een kleiner bestand","licenseError":"Er is een licentiefout opgetreden","licenseExpired":"De licentie kan niet gevonden worden of is verlopen","fileCorrupt":"Dit bestand is corrupt of wordt niet ondersteund","selectAnotherFile":"Kies een ander bestand","noFocus":"Geen camera-focus","incorrectCameraId":"Geen camera met de opgegeven ID gevonden","checkCameraId":"Controleren of de opgegeven camera-ID juist is"}'),gr=JSON.parse('{"placeDocumentIntoFrame":"Sesuaikan dokumen dengan bingkainya","holdDocumentStraight":"Tahan dokumen tatap lurus","glaresOnDocument":"Hindari pantulan cahaya pada dokumen","preparingCamera":"Menyiapkan kamera...","processing":"Memproses...","moveCloser":"Geser mendekat","timeout":"Batas waktu","somethingWentWrong":"Terjadi kesalahan","preparingService":"Menyiapkan layanan","success":"Berhasil!","cameraUnavailable":"Kamera tidak tersedia!","allowAccessToCamera":"Izinkan akses ke kamera dan muat ulang halaman ini untuk melanjutkan.","error":"Kesalahan!","tryAgain":"Coba lagi","noCameraAvailable":"Tidak ada kamera","photoCapturedSuccessfully":"Foto berhasil ditangkap.","scanIDInBrowser":"Pindai ID di peramban Anda","useYourDeviceCamera":"Gunakan kamera Anda untuk memindai dokumen atau memilih foto dokumen dari galeri","fromCamera":"Dari kamera","fromGallery":"Dari galeri","cameraConnection":"Pastikan kamera terhubung dengan benra.","documentProcessing":"Pemrosesan dokumen...","positionDocumentCenter":"Posisikan dokumen di tengah","flipDocument":"Putar balik dokumen","processingFinished":"Pemrosesan selesai.","uploadPhoto":"Unggah foto","useCameraOrGallery":"Gunakan kamera Anda atau pilih foto dari galeri","detectingDocument":"Mendeteksi dokumen...","versionNotSupported":"Versi browser Anda tidak didukung","updateBrowser":"Perbarui versi browser Anda","largeFile":"File ini terlalu besar untuk diunggah","selectSmallerFile":"Silakan pilih file yang lebih kecil","licenseError":"Terjadi kesalahan lisensi","licenseExpired":"Lisensi tidak dapat ditemukan atau telah habis masa berlakunya","fileCorrupt":"File ini rusak atau tidak didukung","selectAnotherFile":"Silakan pilih file yang lain","noFocus":"Tidak ada fokus kamera","incorrectCameraId":"Tidak ditemukan kamera dengan ID yang disebutkan","checkCameraId":"Periksa apakah ID kamera yang disebutkan benar"}'),yr=JSON.parse('{"placeDocumentIntoFrame":"Chỉnh giấy tờ nằm gọn trong khung","holdDocumentStraight":"Giữ cho giấy tờ được thẳng","glaresOnDocument":"Tránh cho giấy tờ bị lóe sáng","preparingCamera":"Đang chuẩn bị camera...","processing":"Đang xử lý...","moveCloser":"Di chuyển tới gần hơn","timeout":"Thời gian chờ","somethingWentWrong":"Có lỗi xảy ra","preparingService":"Đang chuẩn bị dịch vụ...","success":"Thành công!","cameraUnavailable":"Camera không có sẵn!","allowAccessToCamera":"Cho phép truy cập camera và tải lại trang này để tiếp tục.","error":"Có lỗi!","tryAgain":"Thử lại","noCameraAvailable":"Không có camera","photoCapturedSuccessfully":"Ảnh được chụp thành công.","scanIDInBrowser":"Quét giấy tờ tùy thân trong trình duyệt của bạn","useYourDeviceCamera":"Sử dụng camera trong thiết bị để quét giấy tờ hoặc chọn ảnh chụp giấy tờ từ thư viện ảnh.","fromCamera":"Từ camera","fromGallery":"Từ thư viện ảnh","cameraConnection":"Hãy đảm bảo camera được kết nối đúng cách.","documentProcessing":"Đang xử lý giấy tờ...","positionDocumentCenter":"Đưa giấy tờ vào chính giữa","flipDocument":"Lật giấy tờ","processingFinished":"Đã xử lý xong.","uploadPhoto":"Tải ảnh lên","useCameraOrGallery":"Sử dụng camera trong thiết bị hoặc chọn ảnh từ thư viện ảnh","detectingDocument":"Đang dò tìm một giấy tờ...","versionNotSupported":"Phiên bản trình duyệt của bạn không được hỗ trợ","updateBrowser":"Cập nhật phiên bản trình duyệt của bạn","largeFile":"Tệp này quá lớn để tải lên","selectSmallerFile":"Vui lòng chọn một tệp nhỏ hơn","licenseError":"Đã xảy ra lỗi giấy phép","licenseExpired":"Không tìm thấy giấy phép hoặc giấy phép đã hết hạn","fileCorrupt":"Tệp này bị hỏng hoặc không được hỗ trợ","selectAnotherFile":"Vui lòng chọn tệp khác","noFocus":"Không có tiêu điểm camera","incorrectCameraId":"Không tìm thấy camera nào có ID đã nêu","checkCameraId":"Kiểm tra xem ID camera đã nêu có đúng không"}'),br=JSON.parse('{"placeDocumentIntoFrame":"문서를 프레임에 맞춤","holdDocumentStraight":"문서를 똑바로 놓으십시오","glaresOnDocument":"문서에서 눈부심을 피하십시오","preparingCamera":"카메라 준비 중...","processing":"처리 중...","moveCloser":"더 가까이 이동","timeout":"시간 제한","somethingWentWrong":"오류가 발생했습니다","preparingService":"서비스 준비 중...","success":"성공!","cameraUnavailable":"카메라를 사용할 수 없습니다!","allowAccessToCamera":"카메라에 대한 액세스를 허용하고 이 페이지를 재로드하여 계속하십시오.","error":"오류!","tryAgain":"다시 시도","noCameraAvailable":"카메라가 없습니다","photoCapturedSuccessfully":"사진이 성공적으로 캡처되었습니다.","scanIDInBrowser":"브라워저에서 ID를 스캔하세요","useYourDeviceCamera":"장치 카메라를 사용하여 문서를 스캔하거나 갤러리에서 문서의 사진을 선택하십시오","fromCamera":"카메라에서","fromGallery":"갤러리에서","cameraConnection":"카메라가 올바르게 연결되었는지 확인하십시오.","documentProcessing":"문서 처리 중...","positionDocumentCenter":"문서를 가운데에 위치시키십시오","flipDocument":"문서를 뒤집으십시오","processingFinished":"처리가 완료되었습니다.","uploadPhoto":"사진 업로드","useCameraOrGallery":"장치 카메라를 사용하거나 갤러리에서 사진을 선택하세요","detectingDocument":"문서 감지 중...","versionNotSupported":"사용 중인 브라우저는 지원되지 않습니다","updateBrowser":"브라우저 버전을 업데이트하십시오","largeFile":"이 파일은 대용량이어서 업로드할 수 없습니다","selectSmallerFile":"용량이 작은 파일을 선택하십시오","licenseError":"라이선스 오류가 발생했습니다","licenseExpired":"라이선스를 찾을 수 없거나 만료되었습니다","fileCorrupt":"이 파일은 손상되었거나 지원되지 않습니다","selectAnotherFile":"다른 파일을 선택하십시오","noFocus":"카메라 초점","incorrectCameraId":"지정된 ID가 있는 카메라를 찾을 수 없음","checkCameraId":"지정된 카메라 ID가 정확한지 확인하십시오"}'),wr=JSON.parse('{"placeDocumentIntoFrame":"Muatkan dokumen dalam bingkai","holdDocumentStraight":"Pengang dokumen secara tegak","glaresOnDocument":"Elakan silau pada dokumen","preparingCamera":"Menyediakan kamera...","processing":"Sedang diproses...","moveCloser":"Dekatkan","timeout":"Ralat masa","somethingWentWrong":"Ada masalah","preparingService":"Menyediakan perkhidmatan...","success":"Berjaya!","cameraUnavailable":"Kamera tidak tersedia!","allowAccessToCamera":"Benarkan akses ke kamera dan muat semula halaman ini untuk bermula.","error":"Ralat!","tryAgain":"Sila cuba lagi","noCameraAvailable":"Tiada kamera","photoCapturedSuccessfully":"Gambar diambil dengan berjaya.","scanIDInBrowser":"Imbas ID di pelayar anda","useYourDeviceCamera":"Gunakan kamera peranti anda untuk mengimbas dokumen atau pilih sekeping gambar dari galeri","fromCamera":"Dari kamera","fromGallery":"Dari galeri","cameraConnection":"Pastikan kamera disambung dengan betul.","documentProcessing":"Memproses dokumen...","positionDocumentCenter":"Letakkan dokumen di tengah","flipDocument":"Terbalikkan dokumen","processingFinished":"Pemprosesan selesai.","uploadPhoto":"Muat naik gambar","useCameraOrGallery":"Gunakan kamera peranti anda atau pilih sekeping gambar dari galeri","detectingDocument":"Mengesan dokumen...","versionNotSupported":"Versi pelayar web anda tidak disokong","updateBrowser":"Sila kemas kini versi pelayar web anda","largeFile":"Fail ini terlalu besar untuk dimuat naik","selectSmallerFile":"Sila pilih fail yang lebih kecil","licenseError":"Lalat lesen belaku","licenseExpired":"Lesen tidak dapat dicari atau telah tamat tempoh","fileCorrupt":"Fail ini rosak atau tidak disokong","selectAnotherFile":"Sila pilih fail yang lain","noFocus":"Tiada fokus kamera","incorrectCameraId":"Tiada kamera dengan ID yang ditentukan ditemui","checkCameraId":"Sila semak sama ada ID kamera yang dinyatakan adalah betul"}'),Cr=JSON.parse('{"placeDocumentIntoFrame":"Încadrați documentul în cadru","holdDocumentStraight":"Țineți documentul drept","glaresOnDocument":"Evitați strălucirea de pe document","preparingCamera":"Se pregătește camera...","processing":"Se procesează...","moveCloser":"Apropiați-vă","timeout":"Pauză","somethingWentWrong":"Ceva n-a mers bine","preparingService":"Pregătirea serviciului...","success":"Succes!","cameraUnavailable":"Camera foto indisponibilă!","allowAccessToCamera":"Permiteți accesul la cameră și reîncărcați această pagină pentru a continua.","error":"Eroare!","tryAgain":"Încercați încă o dată","noCameraAvailable":"Nu există cameră","photoCapturedSuccessfully":"Fotografia a fost făcută cu succes.","scanIDInBrowser":"Scanați un document de identificare în browser","useYourDeviceCamera":"Folosiți camera dispozitivului dvs. pentru a scana un document sau selectați o fotografie a documentului din galerie","fromCamera":"De la camera foto","fromGallery":"Din galerie","cameraConnection":"Asigurați-vă că este conectată corect camera foto.","documentProcessing":"Se procesează documentul...","positionDocumentCenter":"Poziționați documentul în centru","flipDocument":"Întoarceți documentul","processingFinished":"Procesare încheiată.","uploadPhoto":"Încărcați o fotografie","useCameraOrGallery":"Folosiți camera foto a dispozitivului sau selectați o imagine din galerie","detectingDocument":"Detectarea documentului...","versionNotSupported":"Versiunea browserului dvs. nu este acceptată","updateBrowser":"Actualizați versiunea browserului","largeFile":"Fișierul este prea mare pentru a fi încărcat","selectSmallerFile":"Vă rugăm selectați un fișier mai mic","licenseError":"Am întâmpinat o eroare de licențiere","licenseExpired":"Licența nu poate fi găsită sau a expirat","fileCorrupt":"Acest fișier este corupt sau nu este acceptat","selectAnotherFile":"Vă rugăm alegeți un alt fișier","noFocus":"Cameră nefocalizată","incorrectCameraId":"Nu a fost găsită nicio cameră cu ID-ul specificat","checkCameraId":"Verificați dacă este corect ID-ul specificat pentru cameră"}'),Sr=JSON.parse('{"placeDocumentIntoFrame":"Προσαρμόστε το έγγραφο, ώστε να βρίσκεται μέσα στο πλαίσιο","holdDocumentStraight":"Κρατήστε το έγγραφο ίσιο","glaresOnDocument":"Προσέχετε το έγγραφο να μην έχει αντανάκλαση","preparingCamera":"Προετοιμασία της κάμερας...","processing":"Επεξεργασία...","moveCloser":"Πλησιάστε","timeout":"Εξωχρονισμός","somethingWentWrong":"Κάτι πήγε στραβά","preparingService":"Προετοιμασία της υπηρεσίας ...","success":"Επιτυχής!","cameraUnavailable":"Η κάμερα δεν είναι διαθέσιμη!","allowAccessToCamera":"Επιτρέψτε την πρόσβαση στην κάμερα και φορτώστε ξανά αυτήν τη σελίδα για να συνεχίσετε.","error":"Σφάλμα!","tryAgain":"Προσπαθήστε ξανά","noCameraAvailable":"Δεν υπάρχει κάμερα","photoCapturedSuccessfully":"Η φωτογραφία τραβήχτηκε με επιτυχία.","scanIDInBrowser":"Σαρώστε ένα αναγνωριστικό στο πρόγραμμα περιήγησής σας","useYourDeviceCamera":"Χρησιμοποιήστε την κάμερα της συσκευής σας για να σαρώσετε ένα έγγραφο ή να επιλέξετε μια φωτογραφία του εγγράφου από τη συλλογή","fromCamera":"Από την κάμερα","fromGallery":"Από την συλλογή","cameraConnection":"Βεβαιωθείτε ότι η κάμερα είναι σωστά συνδεδεμένη.","documentProcessing":"Επεξεργασία εγγράφου...","positionDocumentCenter":"Τοποθετήστε το έγγραφο στο κέντρο","flipDocument":"Γυρίστε το έγγραφο","processingFinished":"Η επεξεργασία ολοκληρώθηκε.","uploadPhoto":"Ανέβασε μια φωτογραφία","useCameraOrGallery":"Χρησιμοποιήστε την κάμερα της συσκευής σας ή επιλέξτε μια φωτογραφία από τη συλλογή","detectingDocument":"Εντοπισμός εγγράφου...","versionNotSupported":"Η έκδοση του προγράμματος περιήγησής σας δεν υποστηρίζεται","updateBrowser":"Ανανεώστε την έκδοση του προγράμματος περιήγησής σας","largeFile":"Αυτό το αρχείο δεν δύναται να μεταφορτωθεί λόγω υπερβολικού μεγέθους","selectSmallerFile":"Παρακαλούμε όπως επιλέξετε ένα αρχείο μικρότερου μεγέθους","licenseError":"Παρουσιάστηκε σφάλμα άδειας χρήσης","licenseExpired":"Η άδεια χρήσης δεν μπορεί να βρεθεί ή έχει λήξει","fileCorrupt":"Αυτό το αρχείο είναι κατεστραμμένο ή δεν υποστηρίζεται","selectAnotherFile":"Παρακαλούμε όπως επιλέξετε ένα άλλο αρχείο","noFocus":"Δεν υπάρχει εστίαση κάμερας","incorrectCameraId":"Δεν βρέθηκε κάμερα με το καθορισμένο ID","checkCameraId":"Ελέγξτε εάν το καθορισμένο ID της κάμερας είναι ορθό"}'),Er=JSON.parse('{"placeDocumentIntoFrame":"Belgeyi çerçeve içine yerleştir","holdDocumentStraight":"Dokümanı düz bir zemine yerleştirin","glaresOnDocument":"Belge üzerinde parlama olmamasına özen gösterin","preparingCamera":"Kamera hazırlanıyor...","processing":"İşleniyor...","moveCloser":"Yakına gelin","timeout":"Zaman aşımı","somethingWentWrong":"Bir hata oluştu","preparingService":"Hizmet hazırlanıyor...","success":"Başarılı!","cameraUnavailable":"Kamera kullanılamıyor!","allowAccessToCamera":"Devam etmek için kameraya erişim izni vererek bu sayfayı yeniden yükleyin.","error":"Hata!","tryAgain":"Tekrar deneyin","noCameraAvailable":"Kamera yok","photoCapturedSuccessfully":"Fotoğraf başarıyla alındı.","scanIDInBrowser":"Tarayıcınızda bir kimlik taratın","useYourDeviceCamera":"Belge taratmak için cihazınızın kamerasını kullanın veya galeriden bir belgenin fotoğrafını seçin","fromCamera":"Kameradan","fromGallery":"Galeriden","cameraConnection":"Kameranın düzgün bağlandığından emin olun.","documentProcessing":"Belge işleniyor...","positionDocumentCenter":"Belgeyi ortaya konumlandırın","flipDocument":"Belgeyi ters çevirin","processingFinished":"İşleme tamamlandı.","uploadPhoto":"Fotoğraf yükleyin","useCameraOrGallery":"Cihazınızın kamerasını kullanın veya galeriden bir fotoğraf seçin","detectingDocument":"Belge algılanıyor...","versionNotSupported":"Tarayıcı sürümünüz desteklenmiyor","updateBrowser":"Tarayıcı sürümünüzü güncelleyin","largeFile":"Dosya boyutu yüklenemeyecek kadar büyük","selectSmallerFile":"Lütfen daha küçük bir dosya seçin","licenseError":"Bir lisans hatası oluştu","licenseExpired":"Lisans bulunamadı veya lisansın süresi dolmuş","fileCorrupt":"Dosya bozuk veya desteklenmiyor","selectAnotherFile":"Lütfen başka bir dosya seçin","noFocus":"Kamera odağı yok","incorrectCameraId":"Belirtilen kimliğe sahip kamera bulunamadı","checkCameraId":"Belirtilen kamera kimliğini doğruluğunu kontrol edin"}'),kr=JSON.parse('{"placeDocumentIntoFrame":"フレームに文書をフィットさせます","holdDocumentStraight":"文書をまっすぐに持ってください","glaresOnDocument":"文書にテカリが発生しないようにしてください","preparingCamera":"カメラ準備中...","processing":"処理しています...","moveCloser":"近寄ってください","timeout":"タイムアウト","somethingWentWrong":"何らかの問題が発生しました","preparingService":"サービスを準備しています...","success":"成功!","cameraUnavailable":"カメラが利用できません!","allowAccessToCamera":"継続するにはカメラへのアクセスを許可し、ページを再読み込みしてください。","error":"エラー!","tryAgain":"もう一度お試しください","noCameraAvailable":"カメラがありません","photoCapturedSuccessfully":"写真のキャプチャーが完了しました。","scanIDInBrowser":"ブラウザでIDをスキャンしてください","useYourDeviceCamera":"ご利用のデバイスのカメラでスキャンするか、ギャラリーから書類の写真を選択してください","fromCamera":"カメラから","fromGallery":"ギャラリーから","cameraConnection":"カメラが適切に接続されていることをご確認ください。","documentProcessing":"文書を処理しています...","positionDocumentCenter":"書類を中心に配置してください","flipDocument":"書類を裏返す","processingFinished":"処理が完了しました。","uploadPhoto":"写真をアップロード","useCameraOrGallery":"ご利用のデバイスのカメラを使用するか、ギャラリーから写真を選択してください","detectingDocument":"文書を削除しています...","versionNotSupported":"ご利用のブラウザのバージョンはサポートされていません","updateBrowser":"ブラウザのバージョンを更新してください","largeFile":"このファイルはアップロードするには大きすぎます","selectSmallerFile":"より小さいファイルを選択してください","licenseError":"ライセンスエラーが発生しました","licenseExpired":"ライセンスがみつからないか有効期限が切れています","fileCorrupt":"このファイルは破損しているかサポートされていません","selectAnotherFile":"別のファイルを選択してください","noFocus":"カメラの焦点が合っていません","incorrectCameraId":"指定されたIDを持つカメラがみつかりませんでした","checkCameraId":"指定されたカメラIDが正しいかどうかをご確認ください"}'),Ir=JSON.parse('{"placeDocumentIntoFrame":"Umístěte dokument do rámečku","holdDocumentStraight":"Držte dokument rovně","glaresOnDocument":"Vyvarujte se ostrému osvětlení dokumentu","preparingCamera":"Příprava fotoaparátu...","processing":"Zpracovává se...","moveCloser":"Přibližte se","timeout":"Časový limit","somethingWentWrong":"Něco se pokazilo","preparingService":"Služba se připravuje...","success":"Úspěch!","cameraUnavailable":"Fotoaparát není k dispozici!","allowAccessToCamera":"Pro pokračování povolte přístup k fotoaparátu a znovu načtěte tuto stránku.","error":"Chyba!","tryAgain":"Zkusit to znovu","noCameraAvailable":"Chybí fotoaparát","photoCapturedSuccessfully":"Fotografie byla úspěšně pořízena.","scanIDInBrowser":"Skenování průkazu totožnosti v prohlížeči","useYourDeviceCamera":"Naskenujte dokument pomocí fotoaparátu v zařízení nebo vyberte fotografii z galerie","fromCamera":"Z fotoaparátu","fromGallery":"Z galerie","cameraConnection":"Zkontrolujte, zda je fotoaparát správně připojen.","documentProcessing":"Zpracování dokumentu...","positionDocumentCenter":"Umístěte dokumentu do středu","flipDocument":"Obraťte dokument","processingFinished":"Zpracování dokončeno.","uploadPhoto":"Nahrát fotografii","useCameraOrGallery":"Použijte fotoaparát v zařízení nebo nahrajte fotografii z galerie","detectingDocument":"Detekce dokumentu...","versionNotSupported":"Vaše verze prohlížeče není podporována","updateBrowser":"Aktualizujte verzi prohlížeče","largeFile":"Tento soubor je příliš velký na to, aby mohl být nahrán","selectSmallerFile":"Vyberte prosím menší soubor","licenseError":"Došlo k chybě licence","licenseExpired":"Licenci nelze nalézt nebo vypršela její platnost","fileCorrupt":"Tento soubor je poškozený nebo není podporován","selectAnotherFile":"Vyberte prosím jiný soubor","noFocus":"Fotoaparát není zaostřen","incorrectCameraId":"Nebyl nalezen žádný fotoaparát se zadaným ID","checkCameraId":"Zkontrolujte, zda je zadané ID fotoaparátu správné"}'),Ar=JSON.parse('{"placeDocumentIntoFrame":"จัดเอกสารให้พอดีกับกรอบ","holdDocumentStraight":"ถือเอกสารให้ตรง","glaresOnDocument":"โปรดหลีกเลี่ยงไม่ให้แสงส่องจ้าบนเอกสาร","preparingCamera":"กำลังเตรียมกล้องถ่ายรูป...","processing":"กำลังประมวลผล","moveCloser":"เข้ามาใกล้กว่านี้","timeout":"หมดเวลา","somethingWentWrong":"มีบางอย่างผิดพลาด","preparingService":"กำลังเตรียมบริการ...","success":"สำเร็จ!","cameraUnavailable":"กล้องถ่ายรูปไม่พร้อมใช้งาน!","allowAccessToCamera":"โปรดอนุญาตการเข้าถึงกล้องถ่ายรูป และโหลดหน้านี้ใหม่อีกครั้ง จากนั้นจึงดำเนินการต่อ","error":"ผิดพลาด!","tryAgain":"ลองอีกครั้ง","noCameraAvailable":"ไม่มีกล้องถ่ายรูป","photoCapturedSuccessfully":"ถ่ายภาพสำเร็จแล้ว","scanIDInBrowser":"สแกนบัตรประชาชนของคุณในเบราว์เซอร์","useYourDeviceCamera":"ใช้อุปกรณ์กล้องถ่ายรูปในการสแกนเอกสาร หรือเลือกภาพเอกสารจากคลังภาพ","fromCamera":"จากกล้องถ่ายรูป","fromGallery":"จากคลังภาพ","cameraConnection":"โปรดตรวจสอบให้แน่ใจว่ากล้องถ่ายรูปเชื่อมต่ออยู่อย่างถูกต้อง","documentProcessing":"กำลังดำเนินการเอกสาร...","positionDocumentCenter":"จัดวางเอกสารไว้ตรงกลาง","flipDocument":"พลิกเอกสาร","processingFinished":"การดำเนินการเสร็จสิ้น","uploadPhoto":"อัปโหลดรูปภาพ","useCameraOrGallery":"ใช้กล้องถ่ายรูปในอุปกรณ์ของคุณ หรือเลือกรูปภาพจากคลังภาพ","detectingDocument":"กำลังตรวจจับเอกสาร...","versionNotSupported":"ไม่รองรับเบราว์เซอร์รุ่นที่คุณใช้งาน","updateBrowser":"โปรดอัปเดตรุ่นเบราว์เซอร์ของคุณ","largeFile":"ไฟล์นี้ใหญ่เกินกว่าจะอัปโหลดได้","selectSmallerFile":"โปรดเลือกไฟล์ที่เล็กกว่า","licenseError":"มีข้อผิดพลาดเกี่ยวกับใบอนุญาต","licenseExpired":"ไม่พบใบอนุญาติ หรือใบอนุญาตหมดอายุ","fileCorrupt":"ไฟล์นี้เสียหายหรือระบบไม่รองรับไฟล์นี้","selectAnotherFile":"โปรดเลือกไฟล์อื่น","noFocus":"ไม่มีโฟกัสกล้อง","incorrectCameraId":"ไม่พบกล้องที่มี ID ที่ระบุ","checkCameraId":"ตรวจสอบความถูกต้องของ ID กล้องที่ระบุ"}'),xr=JSON.parse('{"placeDocumentIntoFrame":"दस्तावेज़ को फ्रेम में फिट करें","holdDocumentStraight":"दस्तावेज़ को सीधे रखें","glaresOnDocument":"दस्तावेज़ को चमक से बचाएं","preparingCamera":"कैमरा तैयार करना...","processing":"प्रोसेसिंग...","moveCloser":"नजदीक आएं","timeout":"समय समाप्त","somethingWentWrong":"कुछ त्रुटि हुई","preparingService":"सेवा तैयार करना...","success":"सफल!","cameraUnavailable":"कैमरा उपलब्ध नहीं है!","allowAccessToCamera":"कैमरा को ऐक्सेस करने की अनुमति दें और जारी रखने के लिए इस पृष्ठ को पुनः लोड करें।","error":"त्रुटि!","tryAgain":"पुनः प्रयास करें","noCameraAvailable":"कोई कैमरा नहीं है","photoCapturedSuccessfully":"फ़ोटो सफलतापूर्वक ले ली गई है।","scanIDInBrowser":"अपने ब्राउज़र में कोई आईडी स्कैन करें","useYourDeviceCamera":"किसी दस्तावेज़ को स्कैन करने या गैलरी से दस्तावेज़ की एक छवि का चयन करने के लिए अपने डिवाइस के कैमरे का उपयोग करें","fromCamera":"कैमरा से","fromGallery":"गैलरी से","cameraConnection":"सुनिश्चित करें कि कैमरा सही से कनेक्टेड है।","documentProcessing":"दस्तावेज़ प्रोसेसिंग...","positionDocumentCenter":"दस्तावेज़ को बीच में रखें","flipDocument":"दस्तावेज़ पलटें","processingFinished":"प्रसंस्करण समाप्त हुआ।","uploadPhoto":"एक फ़ोटो अपलोड करें","useCameraOrGallery":"अपने डिवाइस के कैमरे का उपयोग करें या गैलरी से एक छवि का चयन करें","detectingDocument":"दस्तावेज़ पहचान रहा है...","versionNotSupported":"आपका ब्राउज़र संस्करण समर्थित नहीं है","updateBrowser":"अपना ब्राउज़र संस्करण अपडेट करें","largeFile":"यह फ़ाइल अपलोड करने के लिए बहुत बड़ी है","selectSmallerFile":"कृपया एक छोटी फ़ाइल चुनें","licenseError":"एक लाइसेंस त्रुटि हुई है","licenseExpired":"लाइसेंस नहीं मिला या समाप्त हो गया है","fileCorrupt":"यह फ़ाइल करप्ट है या समर्थित नहीं है","selectAnotherFile":"कृपया कोई अन्य फ़ाइल चुनें","noFocus":"कैमरा फ़ोकस नहीं","incorrectCameraId":"निर्दिष्ट ID वाला कोई कैमरा नहीं मिला","checkCameraId":"जांचें कि निर्दिष्ट कैमरा ID सही है या नहीं"}'),_r=JSON.parse('{"placeDocumentIntoFrame":"ডকুমেন্টটি ফ্রেমের মাঝে রাখুন","holdDocumentStraight":"ডকুমেন্টটি সোজাভাবে ধরে রাখুন","glaresOnDocument":"ডকুমেন্টে আলোর ঝলকানি এড়িয়ে চলুন","preparingCamera":"ক্যামেরা প্রস্তুত করা হচ্ছে...","processing":"প্রক্রিয়া করা হচ্ছে...","moveCloser":"কাছে যান","timeout":"টাইম আউট","somethingWentWrong":"কিছু একটা ভুল হয়েছে","preparingService":"পরিষেবা প্রস্তুত করা হচ্ছে...","success":"সফল!","cameraUnavailable":"ক্যামেরা বিদ্যমান নেই!","allowAccessToCamera":"ক্যামেরা অ্যাক্সেস প্রদান করুন এবং চালিয়ে যেতে এই পেজটি পুনরায় লোড করুন।","error":"ত্রুটি!","tryAgain":"আবার চেষ্টা করুন","noCameraAvailable":"কোনো ক্যামেরা নেই","photoCapturedSuccessfully":"সফলভাবে ছবিটি তোলা হয়েছে।","scanIDInBrowser":"আপনার ব্রাউজারে একটি আইডি স্ক্যান করুন","useYourDeviceCamera":"একটি ডকুমেন্ট স্ক্যান করতে বা গ্যালারি থেকে ডকুমেন্টের একটি ছবি নির্বাচন করতে আপনার ডিভাইসের ক্যামেরা ব্যবহার করুন","fromCamera":"ক্যামেরা থেকে","fromGallery":"গ্যালারি থেকে","cameraConnection":"ক্যামেরাটি সঠিকভাবে সংযুক্ত আছে তা নিশ্চিত করুন।","documentProcessing":"ডকুমেন্ট প্রক্রিয়া করা হচ্ছে...","positionDocumentCenter":"ডকুমেন্টটি কেন্দ্রে রাখুন","flipDocument":"ডকুমেন্টটি উল্টান","processingFinished":"প্রক্রিয়া সম্পন্ন হয়েছে।","uploadPhoto":"একটি ছবি আপলোড করুন","useCameraOrGallery":"আপনার ডিভাইসের ক্যামেরা ব্যবহার করুন অথবা গ্যালারী থেকে একটি ছবি নির্বাচন করুন","detectingDocument":"একটি ডকুমেন্ট শনাক্ত করা হচ্ছে...","versionNotSupported":"আপনার ব্রাউজারের সংস্করণটি সমর্থিত নয়","updateBrowser":"আপনার ব্রাউজারের সংস্করণ আপডেট করুন","largeFile":"এই ফাইলটি আপলোড করার জন্য খুবই বড়","selectSmallerFile":"একটি ছোট ফাইল নির্বাচন করুন","licenseError":"লাইসেন্স সংক্রান্ত একটি ত্রুটি ঘটেছে","licenseExpired":"লাইসেন্স পাওয়া যায়নি বা মেয়াদ শেষ হয়ে গেছে","fileCorrupt":"এই ফাইলটি অকার্যকর বা সমর্থিত নয়","selectAnotherFile":"অনুগ্রহ করে অন্য একটি ফাইল নির্বাচন করুন","noFocus":"ক্যামেরার ফোকাস হয়নি","incorrectCameraId":"নির্দিষ্ট আইডি সহ কোনো ক্যামেরা পাওয়া যায়নি","checkCameraId":"নির্দিষ্ট ক্যামেরা আইডি সঠিক কিনা তা পরীক্ষা করুন"}'),Or=JSON.parse('{"placeDocumentIntoFrame":"התאמת המסמך בתוך המסגרת","holdDocumentStraight":"יש ליישר את המסמך","glaresOnDocument":"יש לוודא שאין ברק בזמן צילום המסמך","preparingCamera":"המצלמה בהכנה...","processing":"בעיבוד...","moveCloser":"להתקרב","timeout":"זמן קצוב לתפוגה","somethingWentWrong":"משהו השתבש","preparingService":"מכין את השירות...","success":"יופי!","cameraUnavailable":"המצלמה לא זמינה","allowAccessToCamera":"כדי להמשיך, עליך לאפשר גישה למצלמה ולאחר מכן לטעון מחדש את הדף.","error":"שגיאה","tryAgain":"כדאי לנסות שוב","noCameraAvailable":"אין מצלמה","photoCapturedSuccessfully":"יופי, התמונה צולמה.","scanIDInBrowser":"סריקת תעודה מזהה בדפדפן","useYourDeviceCamera":"צילום מסמך באמצעות מצלמת המכשיר או בחירת תמונה של המסמך מהגלריה","fromCamera":"מהמצלמה","fromGallery":"מהגלריה","cameraConnection":"יש לוודא שהמצלמה מחוברת כמו שצריך.","documentProcessing":"המסמך בעיבוד...","positionDocumentCenter":"יש למקם את המסמך במרכז","flipDocument":"יש להפוך את המסמך לצידו השני","processingFinished":"העיבוד הסתיים.","uploadPhoto":"העלאת תמונה","useCameraOrGallery":"שימוש במצלמת המכשיר או בחירת תמונה מהגלריה","detectingDocument":"מזהה מסמך...","versionNotSupported":"אין תמיכה בגרסה הנוכחית של הדפדפן","updateBrowser":"יש לעדכן את גרסת הדפדפן","largeFile":"הקובץ גדול מדי ולא ניתן להעלות אותו","selectSmallerFile":"יש לבחור קובץ קטן יותר","licenseError":"שגיאת רישיון","licenseExpired":"הרישיון לא נמצא או לא בתוקף","fileCorrupt":"הקובץ פגום או בפורמט שלא נתמך","selectAnotherFile":"יש לבחור קובץ אחר","noFocus":"המצלמה לא בפוקוס","incorrectCameraId":"לא נמצאה מצלמה עם המזהה שצוין","checkCameraId":"יש לבדוק אם נבחר מזהה המצלמה הנכון"}'),Pr=JSON.parse('{"placeDocumentIntoFrame":"Kohdista asiakirja kehykseen","holdDocumentStraight":"Pidä asiakirjaa suorassa","glaresOnDocument":"Vältä heijastuksia asiakirjassa","preparingCamera":"Valmistellaan kameraa...","processing":"Käsitellään...","moveCloser":"Siirry lähemmäs","timeout":"Aikakatkaisu","somethingWentWrong":"Jokin epäonnistui","preparingService":"Valmistellaan palvelua...","success":"Onnistui!","cameraUnavailable":"Kamera ei ole käytettävissä!","allowAccessToCamera":"Jatka sallimalla kameran käyttö ja lataamalla tämä sivu uudelleen.","error":"Virhe!","tryAgain":"Yritä uudelleen!","noCameraAvailable":"Kameraa ei ole","photoCapturedSuccessfully":"Valokuvan ottaminen onnistui.","scanIDInBrowser":"Skannaa henkilökortti selaimeesi","useYourDeviceCamera":"Skannaa asiakirja laitteesi kameralla tai valitse asiakirjan valokuva galleriasta.","fromCamera":"Kamerasta","fromGallery":"Galleriasta","cameraConnection":"Varmista, että kamera on kytketty oikein.","documentProcessing":"Käsitellään asiakirjaa...","positionDocumentCenter":"Sijoita asiakirja keskelle","flipDocument":"Käännä asiakirja","processingFinished":"Käsittely päättynyt.","uploadPhoto":"Lataa valokuva","useCameraOrGallery":"Käytä laitteesi kameraa tai valitse kuva galleriasta","detectingDocument":"Tunnistetaan asiakirjaa...","versionNotSupported":"Selaimesi versiota ei tueta","updateBrowser":"Päivitä selaimesi versio","largeFile":"Tiedosto on liian suuri ladattavaksi","selectSmallerFile":"Valitse pienempi tiedosto","licenseError":"Järjestelmässä on havaittu lisenssivirhe","licenseExpired":"Lisenssiä ei löydy tai se on vanhentunut","fileCorrupt":"Tämä tiedosto on vioittunut tai sitä ei tueta","selectAnotherFile":"Valitse toinen tiedosto","noFocus":"Kamera ei tarkennettu","incorrectCameraId":"Kameraa, jonka tunniste on määritetty, ei löydy.","checkCameraId":"Tarkista, että määritetty kameran tunniste on oikea"}'),Nr=JSON.parse('{"placeDocumentIntoFrame":"Placera dokumentet i ramen","holdDocumentStraight":"Håll dokumentet rakt","glaresOnDocument":"Undvik reflexer på dokumentet","preparingCamera":"Förbereder kameran...","processing":"Bearbetar...","moveCloser":"Flytta närmare","timeout":"Paus","somethingWentWrong":"Ett fel inträffade","preparingService":"Förbereder tjänsten...","success":"Utfört!","cameraUnavailable":"Kameran är inte tillgänglig!","allowAccessToCamera":"Ge appen åtkomstbehörighet till kameran och ladda om denna sida för att fortsätta,","error":"Fel!","tryAgain":"Försök igen","noCameraAvailable":"Det finns ingen kamera","photoCapturedSuccessfully":"Fotot tas.","scanIDInBrowser":"Skanna in ett ID-kort i din webbläsare","useYourDeviceCamera":"Använd din enhetskamera för att skanna dokument eller foton från galleriet","fromCamera":"Från kameran","fromGallery":"Från galleriet","cameraConnection":"Kontrollera att kameran är korrekt ansluten.","documentProcessing":"Dokumentet bearbetas....","positionDocumentCenter":"Placera dokumentet i mitten","flipDocument":"Vänd på dokumentet","processingFinished":"Bearbetning klar.","uploadPhoto":"Ladda upp foto","useCameraOrGallery":"Använd kameran eller välj ett foto från galleriet","detectingDocument":"Identifierar dokument...","versionNotSupported":"Din webbläsarversion stöds inte","updateBrowser":"Uppdatera din webbläsarversion","largeFile":"Filen är för stor för att kunna laddas upp","selectSmallerFile":"Välj en mindre fil","licenseError":"Ett licensfel har inträffat","licenseExpired":"Licensen går antingen inte att hitta eller så har den utgått","fileCorrupt":"Filen är antingen korrupt eller stöds inte","selectAnotherFile":"Välj en annan fil","noFocus":"Ingen kamerafokus","incorrectCameraId":"Ingen kamera med specificerat ID hittat","checkCameraId":"Kontrollera om det angivna kamera-ID:t är korrekt"}'),Rr=JSON.parse('{"placeDocumentIntoFrame":"Tilpas dokumentet til rammen","holdDocumentStraight":"Hold dokumentet lige","glaresOnDocument":"Undgå genskin på dokumentet","preparingCamera":"Gør kameraet klar...","processing":"Behandler...","moveCloser":"Flyt tættere på","timeout":"Timeout","somethingWentWrong":"Noget gik galt","preparingService":"Forbereder tjeneste...","success":"Succes!","cameraUnavailable":"Kamera utilgængelig!","allowAccessToCamera":"Tillad adgang til kameraet og opdater denne side for at fortsætte.","error":"Fejl!","tryAgain":"Prøv igen","noCameraAvailable":"Der er intet kamera","photoCapturedSuccessfully":"Fotoet blev vellykket","scanIDInBrowser":"Scan en ID i din browser","useYourDeviceCamera":"Anvend din enheds kamera til at scanne et dokument eller vælge et foto af dokumentet fra galleriet","fromCamera":"Fra kamera","fromGallery":"Fra galleri","cameraConnection":"Sørg for, at kameraet er forbundet korrekt.","documentProcessing":"Dokumentbehandling...","positionDocumentCenter":"Placer dokumentet i midten","flipDocument":"Vend dokumentet","processingFinished":"Behandlingen er afsluttet.","uploadPhoto":"Upload et foto","useCameraOrGallery":"Anvend kameraet på din enhed eller vælg et billede fra galleriet","detectingDocument":"Registrering af et dokument...","versionNotSupported":"Din browserversion er ikke understøttet","updateBrowser":"Opdater din browserversion","largeFile":"Denne fil er for stor til at blive overført","selectSmallerFile":"Vælg venligst en mindre fil","licenseError":"Der er opstået en fejl med licensen","licenseExpired":"Licensen kan ikke findes eller er udløbet","fileCorrupt":"Filen er ødelagt eller understøttes ikke","selectAnotherFile":"Vælg venligst en anden fil","noFocus":"Ingen kamerafokus","incorrectCameraId":"Intet kamera med det specificeret ID fundet","checkCameraId":"Tjek om det specificerede kamera-ID er korrekt"}'),Tr=JSON.parse('{"placeDocumentIntoFrame":"Prilagodite dokument okviru","holdDocumentStraight":"Držite dokument ravno","glaresOnDocument":"Izbjegavajte odsjaj na dokumentu","preparingCamera":"Priprema kamere...","processing":"Obrada...","moveCloser":"Priđite bliže","timeout":"Pauza","somethingWentWrong":"Nešto je pošlo po zlu","preparingService":"Priprema usluge...","success":"Uspjeh!","cameraUnavailable":"Kamera nije dostupna!","allowAccessToCamera":"Dopustite pristup kameri i ponovno učitajte ovu stranicu za nastavak.","error":"Greška!","tryAgain":"Pokušajte ponovno","noCameraAvailable":"Nema kamere","photoCapturedSuccessfully":"Fotografija je uspješno snimljena.","scanIDInBrowser":"Skenirajte iskaznicu u svom pregledniku","useYourDeviceCamera":"Upotrijebite kameru svog uređaja za skeniranje dokumenta ili odaberite fotografiju dokumenta iz galerije","fromCamera":"Sa kamere","fromGallery":"Iz galerije","cameraConnection":"Provjerite je li kamera ispravno spojena.","documentProcessing":"Obrada dokumenta...","positionDocumentCenter":"Postavite dokument u sredinu","flipDocument":"Okrenite dokument","processingFinished":"Obrada je završena.","uploadPhoto":"Uploadujte sliku","useCameraOrGallery":"Upotrijebite kameru svog uređaja ili odaberite fotografiju iz galerije","detectingDocument":"Prepoznavanje dokumenta...","versionNotSupported":"Vaša verzija preglednika nije podržana","updateBrowser":"Ažurirajte verziju preglednika","largeFile":"Ova je datoteka prevelika za prijenos","selectSmallerFile":"Odaberite manju datoteku","licenseError":"Došlo je do pogreške u licenci","licenseExpired":"Licenca se ne može pronaći ili je istekla","fileCorrupt":"Ova datoteka je oštećena ili nije podržana","selectAnotherFile":"Odaberite drugu datoteku","noFocus":"Nema fokusa kamere","incorrectCameraId":"Nije pronađena kamera s navedenim ID-om","checkCameraId":"Provjerite točnost navedenog ID-a kamere"}'),Lr=JSON.parse('{"placeDocumentIntoFrame":"Plasser dokumentet i rammen","holdDocumentStraight":"Hold dokumentet rett","glaresOnDocument":"Unngå gjenskinn på dokumentet","preparingCamera":"Forbereder kameraet...","processing":"Behandler...","moveCloser":"Kom nærmere","timeout":"Pause","somethingWentWrong":"Noe gikk galt","preparingService":"Forbereder tjenesten...","success":"Suksess!","cameraUnavailable":"Kameraet er ikke tilgjengelig!","allowAccessToCamera":"Gi tilgang til kameraet og last inn denne siden på nytt for å fortsette.","error":"Feil!","tryAgain":"Prøv igjen","noCameraAvailable":"Ingen kamera tilgjengelig","photoCapturedSuccessfully":"Bildet er tatt.","scanIDInBrowser":"Skann en ID i nettleseren din","useYourDeviceCamera":"Bruk enhetskameraet til å skanne et dokument eller velg et bilde av dokumentet fra galleriet","fromCamera":"Fra kamera","fromGallery":"Fra galleri","cameraConnection":"Kontroller at kameraet er riktig tilkoblet.","documentProcessing":"Dokumentet behandles...","positionDocumentCenter":"Plasser dokumentet i midten","flipDocument":"Vend dokumentet","processingFinished":"Behandlingen er ferdig.","uploadPhoto":"Last opp et bilde","useCameraOrGallery":"Bruk enhetens kamera eller velg et bilde fra galleriet","detectingDocument":"Finner et dokument ...","versionNotSupported":"Din nettleserversjon støttes ikke","updateBrowser":"Oppdater nettleserversjonen din","largeFile":"Denne filen er for stor til å lastes opp","selectSmallerFile":"Velg en mindre fil","licenseError":"Det har oppstått en lisensfeil","licenseExpired":"Lisensen finnes ikke eller har utløpt","fileCorrupt":"Denne filen er skadet eller støttes ikke","selectAnotherFile":"Velg en annen fil","noFocus":"Ingen kamerafokus","incorrectCameraId":"Kamera med den spesifikke ID-en ble ikke funnet","checkCameraId":"Sjekk om den spesifikke kamera-ID-en er korrekt"}');function jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vr(r.key),r)}}function Dr(e){var t=Ur();return function(){var n,r=Hr(e);if(t){var a=Hr(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fr(e)}(this,n)}}function Fr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mr(e){var t="function"==typeof Map?new Map:void 0;return Mr=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return zr(e,arguments,Hr(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Br(r,e)},Mr(e)}function zr(e,t,n){return zr=Ur()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&Br(a,n.prototype),a},zr.apply(null,arguments)}function Ur(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Br(e,t){return Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Br(e,t)}function Hr(e){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hr(e)}function Gr(e,t,n){return(t=Vr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Wr=Me.create("main"),Zr=[mn.Z,Sn.Z,vn.Z,Ne.Z,Nn.Z,xe.Z,gn.Z,Rn.Z].reduce((function(e,t){return e+t.toString()}),""),Kr=function(n){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Br(e,t)}(l,n);var r,a,o,i=Dr(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),Gr(Fr(e=i.call(this)),"_root",(0,t.s)(e.attachShadow({mode:"open"}))),Gr(Fr(e),"_mounted",!1),Gr(Fr(e),"_translations",null),Gr(Fr(e),"_settings",{}),e}return r=l,o=[{key:"observedAttributes",get:function(){return Object.values(E)}}],(a=[{key:"onEvent",value:function(e){var t=re("document-reader",e);this.dispatchEvent(t),Wr("Component event: ".concat(JSON.stringify(t.detail)))}},{key:"attributeChangedCallback",value:function(e){var t=this,n=this.getAttribute(e),r=ee(n),a={[E.locale]:function(){n&&(t._settings.locale=n)},[E.multiple]:function(){t._settings.multipleFileInput=r},[E.license]:function(){n&&(t._settings.devLicense=n)},[E.copyright]:function(){t._settings.regulaLogo=r},[E.startScreen]:function(){t._settings.startScreen=r},[E.internalScenario]:function(){n&&(t._settings.internalScenario=n)},[E.multipageProcessing]:function(){t._settings.multipageProcessing=r},[E.cameraId]:function(){n&&(t._settings.cameraId=n)},[E.changeCamera]:function(){t._settings.changeCameraButton=r},[E.closeButton]:function(){t._settings.closeButton=r},[E.captureButton]:function(){t._settings.captureButton=r}};a[e]&&a[e](),this._mounted&&this.render()}},{key:"connectedCallback",value:function(){var e=this;setTimeout((function(){e.render(),e._mounted=!0,e.onEvent({action:b.ELEMENT_VISIBLE,data:null})}))}},{key:"translations",get:function(){return this._translations},set:function(e){this._translations=e,this._mounted&&this.render()}},{key:"settings",get:function(){return this._settings},set:function(e){this._settings=he(this._settings,e),this._mounted&&this.render()}},{key:"render",value:function(){this._root.render((0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)("style",{nonce:this._settings.nonce,children:Zr}),(0,_e.jsx)(nr,{dictionaries:e,onEvent:this.onEvent.bind(this),copyright:this._settings.regulaLogo,locale:this._settings.locale,internalScenario:this._settings.internalScenario,multipageProcessing:this._settings.multipageProcessing,startScreen:this._settings.startScreen,multiple:this._settings.multipleFileInput,license:this._settings.devLicense,cameraId:this._settings.cameraId,changeCamera:this._settings.changeCameraButton,closeButton:this._settings.closeButton,captureButton:this._settings.captureButton,captureMode:this._settings.captureMode,flipFrontIcon:this._settings.flipFrontIcon,flipBackIcon:this._settings.flipBackIcon,skipButton:this._settings.skipButton,cameraFrameBorderWidth:this._settings.cameraFrameBorderWidth,backgroundMaskAlpha:this._settings.backgroundMaskAlpha,cameraFramePortraitAspectRatio:this._settings.cameraFramePortraitAspectRatio,cameraFrameLandscapeAspectRatio:this._settings.cameraFrameLandscapeAspectRatio,statusPositionMultiplier:this._settings.statusPositionMultiplier,statusIcon:this._settings.statusIcon,cameraFrameOffsetWidth:this._settings.cameraFrameOffsetWidth,cameraFrameVerticalPositionMultiplier:this._settings.cameraFrameVerticalPositionMultiplier,cameraFrameShapeType:this._settings.cameraFrameShapeType,cameraFrameLineCap:this._settings.cameraFrameLineCap,cameraFrameLineLength:this._settings.cameraFrameLineLength,cameraFrameCornerRadius:this._settings.cameraFrameCornerRadius,cameraFrame:this._settings.cameraFrame,translations:this._translations})]}))}},{key:"disconnectedCallback",value:function(){var e=this;setTimeout((function(){return e._root.unmount()})),Me.saveLogs()}}])&&jr(r.prototype,a),o&&jr(r,o),Object.defineProperty(r,"prototype",{writable:!1}),l}(Mr(HTMLElement));function Yr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qr(e,t)}(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 Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qr=function(e){var t=e.onStatusChange,n=e.onCapture,r=Be(),u=r.onEvent,s=r.cameraId,c=r.startScreen,f=Yr((0,ye.useState)(!1),2),d=f[0],p=f[1],m=Yr((0,ye.useState)({videoElement:null,videoParams:{width:0,height:0},videoContainerParams:{width:0,height:0}}),2),v=m[0],g=m[1],C=Yr((0,ye.useState)({videoStatus:i.PREPARING,camera:{deviceId:"",facing:void 0,groupId:"",label:""},sortedDevices:null}),2),E=C[0],k=C[1],I=Yr((0,ye.useState)(s),2),A=I[0],x=I[1],_=(0,ye.useCallback)((function(){u({action:b.PRESS_MIRRORING_BUTTON,data:null}),p((function(e){return!e}))}),[d]),O=(0,ye.useCallback)((function(){u({action:b.CAMERA_PROCESS_CLOSED,data:null}),c&&t(S.CHOOSE_INPUT_SOURCE)}),[c]),P=(0,ye.useCallback)((function(){if(u({action:b.PRESS_CAPTURE_BUTTON,data:null}),v.videoElement){var e=pe(v.videoElement,a.BASE64),r=e.raw,o=e.mimeType;n([{raw:r,mimeType:o}]),t(S.SUCCESS)}}),[v]),N=(0,ye.useCallback)((function(){if(E.sortedDevices){u({action:b.PRESS_CHANGE_CAMERA_BUTTON,data:null});var e=me(E.sortedDevices,E.camera.deviceId);e&&x(e)}}),[E.camera.deviceId,E.sortedDevices]),R=(0,ye.useCallback)((function(e){u({action:b.PROCESS_FINISHED,data:{status:o.ERROR,reason:e}})}),[]);return(0,_e.jsx)(xt,{mirroring:d,onChangeMirroring:_,status:w.SNAPSHOT,videoStatusParams:E,onCameraSnapshot:P,isServiceInitialized:!0,onClose:O,onChangeCamera:N,videoElementParams:v,children:(0,_e.jsx)(Pe,{onVideoSizeChange:g,onVideoStatusChange:k,resolution:h.FULL_HD,mirroring:d,onFailStatus:R,mode:l.environment,cameraId:A,eventData:{type:y.DOCUMENT,onEvent:u}})})};function Jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}function $r(e,t,n){return t&&Jr(e.prototype,t),n&&Jr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Xr=$r((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mimeType=t.split(";")[0].replace("data:",""),this.extension=this.mimeType.split("/")[1],this.raw=t.substring(t.indexOf(",")+1)}));function ea(){ea=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new P(r||[]);return a(i,"_invoke",{value:A(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function b(){}var w={};s(w,i,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(N([])));S&&S!==n&&r.call(S,i)&&(w=S);var E=b.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(a,o,i,l){var u=f(e[a],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function A(t,n,r){var a=d;return function(o,i){if(a===m)throw new Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var l=r.delegate;if(l){var u=x(l,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?h:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function x(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},k(I.prototype),s(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new I(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function ta(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,a)}function na(){var e;return e=ea().mark((function e(t){var n,r,a;return ea().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=ea().mark((function e(r){var a;return ea().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=new Promise((function(e,n){var a=t.item(r);if(a){var o=URL.createObjectURL(a),i=new Image;i.onload=function(){var t=new FileReader;t.readAsDataURL(a),t.onload=function(){if("string"==typeof t.result){var r=new Xr(t.result),a=r.raw,i=r.mimeType;e({raw:a,mimeType:i})}else n(new Lt(s.INCORRECT_FILE));URL.revokeObjectURL(o)},t.onerror=function(){return n(new Lt(s.INCORRECT_FILE))}},i.src=o,i.onerror=function(){return n(new Lt(s.INCORRECT_FILE))}}})),n.push(a);case 2:case"end":return e.stop()}}),e)})),a=0;case 3:if(!(a<t.length)){e.next=8;break}return e.delegateYield(r(a),"t0",5);case 5:a++,e.next=3;break;case 8:return e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)})),na=function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){ta(o,r,a,i,l,"next",e)}function l(e){ta(o,r,a,i,l,"throw",e)}i(void 0)}))},na.apply(this,arguments)}function ra(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aa(e,t)}(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 aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var oa=function(e){var t=e.onStatusChange,n=e.onCapture,r=e.images,a=e.onError,o=Be().onEvent,i=ra((0,ye.useState)([]),2),l=i[0],u=i[1],s=(0,St.useLocalize)().translate;return(0,ye.useEffect)((function(){null==r||!r.length||null!=l&&l.length||(o({action:b.FILE_PROCESS_STARTED,data:null}),function(e){return na.apply(this,arguments)}(r).then((function(e){Promise.all(e).then((function(e){u(e)})).catch((function(e){a(e)}))}))),l.length&&(n(l),t(S.SUCCESS))}),[r,l]),(0,_e.jsx)(Ln,{title:s("processing")})};function ia(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return la(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return la(e,t)}(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 la(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ua=te(Wn,Bn)((function(e){var t=e.direction,n=Be(),r=n.onEvent,a=n.startScreen,i=(0,St.useLocalize)().translate,l=ia((0,ye.useState)(a?S.CHOOSE_INPUT_SOURCE:S.CAMERA_PROCESSING),2),u=l[0],s=l[1],c=ia((0,ye.useState)(null),2),f=c[0],d=c[1],p=ia((0,ye.useState)([{raw:"",mimeType:""}]),2),m=p[0],h=p[1],v=(0,ye.useCallback)((function(e){d(e),s(S.FILE_PROCESSING)}),[]),g=(0,ye.useCallback)((function(){r({action:b.PRESS_CAMERA_BUTTON,data:null}),s(S.CAMERA_PROCESSING)}),[]),y=(0,ye.useCallback)((function(e){var t=R[e.type]||S.UNKNOWN_ERROR;s(t),r({action:b.PROCESS_FINISHED,data:{status:o.ERROR,reason:e.type}})}),[]),w=(0,ye.useCallback)((function(){d(null),h([{raw:"",mimeType:""}]),s(a?S.CHOOSE_INPUT_SOURCE:S.CAMERA_PROCESSING),r({action:b.PRESS_RETRY_BUTTON,data:null})}),[a]),C=(0,ye.useCallback)((function(){r({action:b.CLOSE,data:null})}),[]);return(0,ye.useEffect)((function(){u===S.SUCCESS&&r({action:b.PROCESS_FINISHED,data:{status:o.OK,response:m}})}),[u,m]),(0,_e.jsx)(qn,{onError:y,supportedBrowserVersions:L,children:(0,_e.jsx)(hn,{completionStatus:u,onClose:C,direction:t,children:u===S.CHOOSE_INPUT_SOURCE?(0,_e.jsx)(En,{onStart:g,onFileImageSet:v,title:i("uploadPhoto"),subtitle:i("useCameraOrGallery")}):u===S.CAMERA_PROCESSING?(0,_e.jsx)(qr,{onStatusChange:s,onCapture:h}):u===S.FILE_PROCESSING?(0,_e.jsx)(oa,{onStatusChange:s,onCapture:h,images:f,onError:y}):u===S.SUCCESS?(0,_e.jsx)(Cn,{type:"verified",title:i("success"),subtitle:i("photoCapturedSuccessfully")}):u===S.NOT_SUPPORTED_ERROR?(0,_e.jsx)(Cn,{type:"error",title:i("versionNotSupported"),subtitle:i("updateBrowser")}):u===S.INCORRECT_FILE_ERROR?(0,_e.jsx)(Cn,{onReset:w,type:"error",title:i("fileCorrupt"),subtitle:i("selectAnotherFile")}):(0,_e.jsx)(Cn,{onReset:w,type:"error",title:i("error"),subtitle:i("somethingWentWrong")})})})}));function sa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ya(r.key),r)}}function ca(e){var t=ma();return function(){var n,r=va(e);if(t){var a=va(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fa(e)}(this,n)}}function fa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function da(e){var t="function"==typeof Map?new Map:void 0;return da=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return pa(e,arguments,va(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ha(r,e)},da(e)}function pa(e,t,n){return pa=ma()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&ha(a,n.prototype),a},pa.apply(null,arguments)}function ma(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ha(e,t){return ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ha(e,t)}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},va(e)}function ga(e,t,n){return(t=ya(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ya(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var ba=Me.create("main"),wa=[mn.Z,Sn.Z,vn.Z,Ne.Z,Nn.Z,xe.Z,gn.Z,Rn.Z].reduce((function(e,t){return e+t.toString()}),""),Ca=function(n){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ha(e,t)}(l,n);var r,a,o,i=ca(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),ga(fa(e=i.call(this)),"_root",(0,t.s)(e.attachShadow({mode:"open"}))),ga(fa(e),"_mounted",!1),ga(fa(e),"_translations",null),ga(fa(e),"_settings",{}),e}return r=l,o=[{key:"observedAttributes",get:function(){return Object.values(k)}}],(a=[{key:"onEvent",value:function(e){var t=re("camera-snapshot",e);this.dispatchEvent(t),ba("Component event: ".concat(JSON.stringify(t.detail)))}},{key:"attributeChangedCallback",value:function(e){var t=this,n=this.getAttribute(e),r=ee(n),a={[k.locale]:function(){n&&(t._settings.locale=n)},[k.multiple]:function(){t._settings.multipleFileInput=r},[k.copyright]:function(){t._settings.regulaLogo=r},[k.startScreen]:function(){t._settings.startScreen=r},[k.cameraId]:function(){n&&(t._settings.cameraId=n)},[k.changeCamera]:function(){t._settings.changeCameraButton=r},[k.closeButton]:function(){t._settings.closeButton=r}};a[e]&&a[e](),this._mounted&&this.render()}},{key:"connectedCallback",value:function(){var e=this;setTimeout((function(){e.render(),e._mounted=!0,e.onEvent({action:b.ELEMENT_VISIBLE,data:null})}))}},{key:"translations",get:function(){return this._translations},set:function(e){this._translations=e,this._mounted&&this.render()}},{key:"settings",get:function(){return this._settings},set:function(e){this._settings=he(this._settings,e),this._mounted&&this.render()}},{key:"render",value:function(){this._root.render((0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)("style",{nonce:this._settings.nonce,children:wa}),(0,_e.jsx)(ua,{dictionaries:e,onEvent:this.onEvent.bind(this),copyright:this._settings.regulaLogo,locale:this._settings.locale,startScreen:this._settings.startScreen,multiple:this._settings.multipleFileInput,cameraId:this._settings.cameraId,changeCamera:this._settings.changeCameraButton,closeButton:this._settings.closeButton,translations:this._translations})]}))}},{key:"disconnectedCallback",value:function(){var e=this;setTimeout((function(){return e._root.unmount()})),Me.saveLogs()}}])&&sa(r.prototype,a),o&&sa(r,o),Object.defineProperty(r,"prototype",{writable:!1}),l}(da(HTMLElement));function Sa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}function Ea(e){var t=Aa();return function(){var n,r=_a(e);if(t){var a=_a(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ka(e){var t="function"==typeof Map?new Map:void 0;return ka=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Ia(e,arguments,_a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),xa(r,e)},ka(e)}function Ia(e,t,n){return Ia=Aa()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&xa(a,n.prototype),a},Ia.apply(null,arguments)}function Aa(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function xa(e,t){return xa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xa(e,t)}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_a(e)}var Oa=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xa(e,t)}(o,e);var t,n,r,a=Ea(o);function o(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=a.call(this))._root=e.attachShadow({mode:"open"});var t="\n display: block;\n position: fixed;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n overflow: auto;\n z-index: 100;\n ";return e._root.innerHTML="\n <style>\n *, *::before, *::after {\n box-sizing: border-box;\n }\n :host {\n ".concat(t,";\n }\n fullscreen-container {\n ").concat(t,";\n }\n </style>\n <slot />\n "),e}return t=o,n&&Sa(t.prototype,n),r&&Sa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(ka(HTMLElement));function Pa(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Na(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Na(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}var Ta={0:"Latin",1078:"Afrikaans",1052:"Albanian",5121:"Arabic (Algeria)",15361:"Arabic (Bahrain)",3073:"Arabic (Egypt)",2049:"Arabic (Iraq)",11265:"Arabic (Jordan)",13313:"Arabic (Kuwait)",12289:"Arabic (Lebanon)",4097:"Arabic (Libya)",6145:"Arabic (Morocco)",8193:"Arabic (Oman)",16385:"Arabic (Qatar)",1025:"Arabic (Saudi Arabia)",10241:"Arabic (Syria)",7169:"Arabic (Tunisia)",14337:"Arabic (U.A.E.)",9217:"Arabic (Yemen)",1067:"Arabic Armenian",2092:"Azeri (Cyrillic)",1068:"Azeri (Latin)",1069:"Basque",1059:"Belarusian",1026:"Bulgarian",1027:"Catalan",3076:"Chinese (HongKong S.A.R.)",5124:"Chinese (Macao S.A.R.)",2052:"Chinese",4100:"Chinese (Singapore)",1028:"Chinese (Taiwan)",1050:"Croatian",1029:"Czech",1030:"Danish",1125:"Divehi",2067:"Dutch (Belgium)",1043:"Dutch (Netherlands)",3081:"English (Australia)",10249:"English (Belize)",4105:"English (Canada)",9225:"English (Caribbean)",6153:"English (Ireland)",8201:"English (Jamaica)",5129:"English (New Zealand)",13321:"English (Philippines)",7177:"English (South Africa)",11273:"English (Trinidad)",2057:"English (United Kingdom)",1033:"English (United States)",12297:"English (Zimbabwe)",1061:"Estonian",1080:"Faroese",1065:"Farsi",1035:"Finnish",2060:"French (Belgium)",3084:"French (Canada)",1036:"French (France)",5132:"French (Luxembourg)",6156:"French (Monaco)",4108:"French (Switzerland)",1071:"FYRO Macedonian",1110:"Galician",1079:"Georgian",3079:"German (Austria)",1031:"German (Germany)",5127:"German (Liechtenstein)",4103:"German (Luxembourg)",2055:"German (Switzerland)",1032:"Greek",1095:"Gujarati",1037:"Hebrew",1081:"Hindi (India)",1038:"Hungarian",1039:"Icelandic",1057:"Indonesian",1040:"Italian (Italy)",2064:"Italian (Switzerland)",1041:"Japanese",1099:"Kannada",1087:"Kazakh",1111:"Konkani",1042:"Korean",1088:"Kyrgyz (Cyrillic)",1062:"Latvian",1063:"Lithuanian",2110:"Malay (Brunei Darussalam)",1102:"Marathi",1086:"Malay (Malaysia)",1104:"Mongolian (Cyrillic)",1044:"Norwegian (Bokmal)",2068:"Norwegian (Nynorsk)",1045:"Polish",1046:"Portuguese (Brazil)",2070:"Portuguese (Portugal)",1094:"Punjabi",1047:"Rhaeto-Romanic",1048:"Romanian",1049:"Russian",1103:"Sanskrit",3098:"Serbian (Cyrillic)",2074:"Serbian (Latin)",1051:"Slovak",1060:"Slovenian",11274:"Spanish (Argentina)",16394:"Spanish (Bolivia)",13322:"Spanish (Chile)",9226:"Spanish (Colombia)",5130:"Spanish (Costa Rica)",7178:"Spanish (Dominican Republic)",12298:"Spanish (Ecuador)",17418:"Spanish (El Salvador)",4106:"Spanish (Guatemala)",18442:"Spanish (Honduras)",3082:"Spanish (International Sort)",2058:"Spanish (Mexico)",19466:"Spanish (Nicaragua)",6154:"Spanish (Panama)",15370:"Spanish (Paraguay)",10250:"Spanish (Peru)",20490:"Spanish (Puerto Rico)",1034:"Spanish (Traditional Sort)",14346:"Spanish (Uruguay)",8202:"Spanish (Venezuela)",1089:"Swahili",1053:"Swedish",2077:"Swedish (Finland)",1114:"Syriac",1097:"Tamil",1092:"Tatar",1098:"Telugu",1054:"Thai (Thailand)",1055:"Turkish",1058:"Ukrainian",1056:"Urdu",2115:"Uzbek (Cyrillic)",1091:"Uzbek (Latin)",1066:"Vietnamese",1064:"Tajik (Cyrillic)",1090:"Turkmen",50001:"CTC Simplified",50002:"CTC Traditional",9999:"Custom"},La=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fieldType=t.fieldType,this.fieldName=t.fieldName,this.lcid=t.lcid,this.status=t.status,this.validityStatus=t.validityStatus,this.comparisonStatus=t.comparisonStatus,this.value=t.value,this.valueList=t.valueList,this.validityList=t.validityList,this.comparisonList=t.comparisonList}var t,n,r;return t=e,n=[{key:"getValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return this.value;var n=this.getValueBySource(e);return t?null==n?void 0:n.originalValue:null==n?void 0:n.value}},{key:"sourceValidity",value:function(e){var t,n=Pa(this.validityList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.source===e)return r.status}}catch(a){n.e(a)}finally{n.f()}return Dt.WAS_NOT_DONE}},{key:"crossSourceComparison",value:function(e,t){var n,r=Pa(this.comparisonList);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.sourceLeft===e&&a.sourceRight===t||a.sourceLeft===t&&a.sourceRight===e)return a.status}}catch(o){r.e(o)}finally{r.f()}return Dt.WAS_NOT_DONE}},{key:"getLCIDName",value:function(){if(this.lcid)return Ta[this.lcid]||String(this.lcid)}},{key:"getValueBySource",value:function(e){var t,n=Pa(this.valueList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.source==e)return r}}catch(a){n.e(a)}finally{n.f()}}}],n&&Ra(t.prototype,n),r&&Ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ja(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Da(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function Da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}var Ma=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.validityStatus=t.validityStatus,this.comparisonStatus=t.comparisonStatus,this.availableSourceList=t.availableSourceList,this.fieldList=t.fieldList.map((function(e){return new La(e)}))}var t,n,r;return t=e,(n=[{key:"getField",value:function(e,t){var n,r=void 0,a=ja(this.fieldList);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.fieldType==e){if(null!=t&&o.lcid==t)return o;if(null==t&&o.lcid==Mt.LATIN)return o;null==t&&null==r&&(r=o)}}}catch(i){a.e(i)}finally{a.f()}return r}},{key:"getFieldByName",value:function(e,t){var n,r=void 0,a=ja(this.fieldList);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.fieldName==e){if(null!=t&&o.lcid==t)return o;if(null==t&&o.lcid==Mt.LATIN)return o;null==t&&null==r&&(r=o)}}}catch(i){a.e(i)}finally{a.f()}return r}},{key:"getFieldValue",value:function(e,t){var n;return null===(n=this.getField(e,t))||void 0===n?void 0:n.getValue()}},{key:"getFieldValueByName",value:function(e,t){var n;return null===(n=this.getFieldByName(e,t))||void 0===n?void 0:n.getValue()}}])&&Fa(t.prototype,n),r&&Fa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function za(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ua(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function Ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ba(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ha(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}function Ga(e,t,n){return t&&Ha(e.prototype,t),n&&Ha(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Va=function(){function e(t){Ba(this,e),this.availableSourceList=t.availableSourceList,this.fieldList=t.fieldList.map((function(e){return new Wa(e)}))}return Ga(e,[{key:"getField",value:function(e){var t,n=za(this.fieldList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.fieldType==e)return r}}catch(a){n.e(a)}finally{n.f()}}},{key:"getFields",value:function(e){return this.fieldList.filter((function(t){return t.fieldType==e}))}}]),e}(),Wa=function(){function e(t){Ba(this,e),this.fieldName=t.fieldName,this.fieldType=t.fieldType,this.valueList=t.valueList}return Ga(e,[{key:"getValue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t=e?this.getValueBySource(e):this.getValueBySource(Bt.RFID)||this.getValueBySource(Bt.VISUAL)||this.getValueBySource(Bt.BARCODE))return n&&t.originalValue?Za(t.originalValue):Za(t.value)}},{key:"getValueBySource",value:function(e){var t,n=za(this.valueList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.source==e)return r}}catch(a){n.e(a)}finally{n.f()}}}]),e}();function Za(e){return function(e){var t,n,r,a,o,i=.75*e.length,l=e.length,u=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var s=new ArrayBuffer(i),c=new Uint8Array(s);for(t=0;t<l;t+=4)n=B[e.charCodeAt(t)],r=B[e.charCodeAt(t+1)],a=B[e.charCodeAt(t+2)],o=B[e.charCodeAt(t+3)],c[u++]=n<<2|r>>4,c[u++]=(15&r)<<4|a>>2,c[u++]=(3&a)<<6|63&o;return s}(e)}function Ka(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}function Ya(e,t,n){return t&&Ka(e.prototype,t),n&&Ka(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Qa=Ya((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}));function qa(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ja(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function Ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}var Xa=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}var t,n,r;return t=e,(n=[{key:"checksByElement",value:function(e){var t,n=[],r=qa(this.List);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.ElementType===e&&n.push(a)}}catch(o){r.e(o)}finally{r.f()}return n}}])&&$a(t.prototype,n),r&&$a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function eo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}function to(e,t,n){return t&&eo(e.prototype,t),n&&eo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var no=to((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}));function ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}function ao(e,t,n){return t&&ro(e.prototype,t),n&&ro(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var oo=ao((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}));function io(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return lo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}var so=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}var t,n,r;return t=e,(n=[{key:"checksByElement",value:function(e){var t,n=[],r=io(this.List);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.ElementType===e&&n.push(a)}}catch(o){r.e(o)}finally{r.f()}return n}}])&&uo(t.prototype,n),r&&uo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function co(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function po(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}var mo=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.List=t.List,this.page_idx=n}var t,n,r;return t=e,(n=[{key:"uvLuminescenceChecks",value:function(){return this.securityFeatureOrUndefined(jt.UV_LUMINESCENCE)}},{key:"irB900Checks",value:function(){return this.securityFeatureOrUndefined(jt.IR_B900)}},{key:"imagePatternChecks",value:function(){return this.identOrUndefined(jt.IMAGE_PATTERN)}},{key:"axialProtectionChecks",value:function(){return this.securityFeatureOrUndefined(jt.AXIAL_PROTECTION)}},{key:"uvFiberChecks",value:function(){return this.fiberOrUndefined(jt.UV_FIBERS)}},{key:"irVisibilityChecks",value:function(){return this.identOrUndefined(jt.IR_VISIBILITY)}},{key:"ocrSecurityTextChecks",value:function(){return this.ocrSecurityTextOrUndefined(jt.OCR_SECURITY_TEXT)}},{key:"ipiChecks",value:function(){return this.imageIdentOrUndefined(jt.IPI)}},{key:"embedImageChecks",value:function(){return this.securityFeatureOrUndefined(jt.PHOTO_EMBED_TYPE)}},{key:"hologramsChecks",value:function(){return this.securityFeatureOrUndefined(jt.HOLOGRAMS)}},{key:"imageAreaChecks",value:function(){return this.securityFeatureOrUndefined(jt.PHOTO_AREA)}},{key:"portraitComparisonChecks",value:function(){return this.identOrUndefined(jt.PORTRAIT_COMPARISON)}},{key:"barcodeFormatCheckChecks",value:function(){return this.securityFeatureOrUndefined(jt.BARCODE_FORMAT_CHECK)}},{key:"kinegramChecks",value:function(){return this.identOrUndefined(jt.KINEGRAM)}},{key:"letterScreenChecks",value:function(){return this.identOrUndefined(jt.LETTER_SCREEN)}},{key:"resultByType",value:function(e){var t,n=co(this.List);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.Type==e)return r}}catch(a){n.e(a)}finally{n.f()}}},{key:"fiberOrUndefined",value:function(e){var t=this.resultByType(e);if(t)return new Qa(t)}},{key:"identOrUndefined",value:function(e){var t=this.resultByType(e);if(t)return new Xa(t)}},{key:"imageIdentOrUndefined",value:function(e){var t=this.resultByType(e);if(t)return new no(t)}},{key:"ocrSecurityTextOrUndefined",value:function(e){var t=this.resultByType(e);if(t)return new oo(t)}},{key:"securityFeatureOrUndefined",value:function(e){var t=this.resultByType(e);if(t)return new so(t)}}])&&po(t.prototype,n),r&&po(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ho(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return vo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function go(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"))?o:String(o)),r)}var a,o}function bo(e,t,n){return t&&yo(e.prototype,t),n&&yo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var wo=function(){function e(t){var n;go(this,e);var r=new Co(t);this.lowLvlResponse=r,this.rawResponse=t,this.status=null===(n=r.statusResult())||void 0===n?void 0:n.Status;var a=r.textResult();a&&(this.text=new Ma(a.Text));var o=r.imagesResult();o&&(this.images=new Va(o.Images))}return bo(e,[{key:"authenticity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.lowLvlResponse.resultByTypeAndPage(Ut.AUTHENTICITY,e);if(t)return new mo(t.AuthenticityCheckList,e)}},{key:"authenticityPerPage",value:function(){return this.lowLvlResponse.resultsByType(Ut.AUTHENTICITY).map((function(e){return new mo(e.AuthenticityCheckList,e.page_idx||0)})).sort((function(e,t){return e.page_idx-t.page_idx}))}},{key:"imageQualityChecks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.lowLvlResponse.resultByTypeAndPage(Ut.IMAGE_QUALITY,e);if(t)return t.ImageQualityCheckList}},{key:"imageQualityChecksPerPage",value:function(){return this.lowLvlResponse.resultsByType(Ut.IMAGE_QUALITY)}}]),e}(),Co=function(){function e(t){go(this,e),this.ContainerList=t.ContainerList,this.ProcessingFinished=t.ProcessingFinished,this.TransactionInfo=t.TransactionInfo,this.ChipPage=t.ChipPage,this.log=t.log,this.passBackObject=t.passBackObject,this.morePagesAvailable=t.morePagesAvailable}return bo(e,[{key:"statusResult",value:function(){return this.resultByType(Ut.STATUS)}},{key:"textResult",value:function(){return this.resultByType(Ut.TEXT)}},{key:"imagesResult",value:function(){return this.resultByType(Ut.IMAGES)}},{key:"barcodeResult",value:function(){return this.resultByType(Ut.BARCODES)}},{key:"documentTypeResults",value:function(){return this.resultsByType(Ut.DOCUMENT_TYPE)}},{key:"resultByType",value:function(e){var t,n=ho(this.ContainerList.List);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.result_type===e)return r}}catch(a){n.e(a)}finally{n.f()}}},{key:"resultByTypeAndPage",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=ho(this.ContainerList.List);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a.result_type===e&&a.page_idx==n)return a}}catch(o){r.e(o)}finally{r.f()}}},{key:"resultsByType",value:function(e){return this.ContainerList.List.filter((function(t){return t.result_type===e}))}}]),e}();function So(){So=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new P(r||[]);return a(i,"_invoke",{value:A(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function b(){}var w={};s(w,i,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(N([])));S&&S!==n&&r.call(S,i)&&(w=S);var E=b.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(a,o,i,l){var u=f(e[a],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function A(t,n,r){var a=d;return function(o,i){if(a===m)throw new Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var l=r.delegate;if(l){var u=x(l,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?h:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function x(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},k(I.prototype),s(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new I(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Eo(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,a)}function ko(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Eo(o,r,a,i,l,"next",e)}function l(e){Eo(o,r,a,i,l,"throw",e)}i(void 0)}))}}function Io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach((function(t){_o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oo(r.key),r)}}function _o(e,t,n){return(t=Oo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Po=Me.create("wasm"),No=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_o(this,"_worker",null),_o(this,"_prepareListener",null),_o(this,"_initializeListener",null),_o(this,"isAutoPrepare",!1),_o(this,"isPrepared",!1),_o(this,"isInitialized",!1),_o(this,"isProcessing",!1),_o(this,"initData",null),_o(this,"recognizerProcessParam",{processParam:{}}),_o(this,"imageProcessParam",{processParam:{}}),_o(this,"recognizeListener",null),_o(this,"workerPath","https://wasm.regulaforensics.com/document/release/6.9/90f9db1a-b7319abc5"),_o(this,"version",{component:"2.5.1".trim()})}var t,n,r,a,o,i,l,u,c,d;return t=e,n=[{key:"prepareListener",get:function(){return this._prepareListener},set:function(e){this._prepareListener=e,e&&e({isPrepared:this.isPrepared})}},{key:"initializeListener",get:function(){return this._initializeListener},set:function(e){this._initializeListener=e,e&&e({isInitialized:this.isInitialized})}},{key:"createProcessImageRequest",value:function(e,t){var n=e.map((function(e,t){return{data:e,light:6,pageIdx:t}}));return Ao(Ao({},t),{},{imagesList:n})}},{key:"sendMessage",value:function(e){var t=this;return new Promise((function(n,r){if(!t._worker)return r();t._worker.onmessage=function(t){var a=e.method,o=t.data.target;if(o!==f.stdout){if(o===f.custom){var i=t.data.data,l=i.method,u=i.response;a===l&&n(u)}if(o===f.stderr){var c=t.data.content;Po(JSON.stringify(c)),r(new Lt(s.WASM_ERROR,c))}}else Po(JSON.stringify(t.data.content))},t._worker.postMessage(e)}))}},{key:"prepare",value:(d=ko(So().mark((function e(){var t,n,r,a;return So().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=1,e.next=4,fetch("".concat(this.workerPath,"/ProcMgr.worker.js"));case 4:return n=e.sent,e.next=7,n.blob();case 7:r=e.sent,a=URL.createObjectURL(r),this._worker=new Worker(a),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),Po("Creating worker error: ".concat(JSON.stringify(e.t0)));case 15:e.next=18;break;case 17:this._worker=new Worker("./ProcMgr.worker.js");case 18:return null===(t=this._worker)||void 0===t||t.postMessage({target:f.gl,method:A.prepare,preMain:!0,op:"setPrefetched"}),e.next=21,this.sendMessage({target:f.init,method:A.prepare,preMain:!0,URL:document.URL});case 21:this.isPrepared=!0,this._prepareListener&&this._prepareListener({isPrepared:this.isPrepared});case 23:case"end":return e.stop()}}),e,this,[[1,12]])}))),function(){return d.apply(this,arguments)})},{key:"initialize",value:(c=ko(So().mark((function e(t){var n,r,a,o;return So().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isPrepared){e.next=4;break}return this.isAutoPrepare=!0,e.next=4,this.prepare();case 4:return e.next=6,this.sendMessage({target:f.custom,method:A.initialize,preMain:!0,request:{systemInfo:{hostName:null===(n=document.location)||void 0===n?void 0:n.origin,license:null==t?void 0:t.license}}});case 6:return r=e.sent,a=r.scenario,o=r.license,this.initData={scenario:a,license:o},this.isInitialized=!0,this._initializeListener&&this._initializeListener({isInitialized:this.isInitialized}),e.abrupt("return",this.initData);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"processImageBase64",value:(u=ko(So().mark((function e(t,n){var r,a,o;return So().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.createProcessImageRequest(t,n),this.isProcessing=!0,e.next=4,this.sendMessage({target:f.custom,method:A.processImage,preMain:!0,request:r});case 4:return a=e.sent,o=new wo(a),this.isProcessing=!1,e.abrupt("return",o);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"process",value:(l=ko(So().mark((function e(t,n){var r,a;return So().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isProcessing=!0,e.next=3,this.sendMessage({target:f.custom,method:A.process,preMain:!0,request:n||this.recognizerProcessParam,imageDataArray:t});case 3:return r=e.sent,a=new wo(r),this.recognizeListener&&this.recognizeListener(a),this.isProcessing=!1,e.abrupt("return",a);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"processImage",value:(i=ko(So().mark((function e(t,n){var r,a;return So().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isProcessing=!0,e.next=3,this.sendMessage({target:f.custom,method:A.processImage,preMain:!0,request:n||this.imageProcessParam,imageDataArray:t});case 3:return r=e.sent,a=new wo(r),this.isProcessing=!1,e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"startNewPage",value:(o=ko(So().mark((function e(){return So().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendMessage({target:f.custom,method:A.startNewPage,preMain:!0});case 2:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"startNewDocument",value:(a=ko(So().mark((function e(){return So().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendMessage({target:f.custom,method:A.startNewDocument,preMain:!0});case 2:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"shutdown",value:function(){this._worker&&this._worker.terminate(),this.isPrepared=!1,this.isInitialized=!1,this.isProcessing=!1}}],n&&xo(t.prototype,n),r&&xo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ro=No;function To(){To=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new P(r||[]);return a(i,"_invoke",{value:A(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function b(){}var w={};s(w,i,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(N([])));S&&S!==n&&r.call(S,i)&&(w=S);var E=b.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(a,o,i,l){var u=f(e[a],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function A(t,n,r){var a=d;return function(o,i){if(a===m)throw new Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var l=r.delegate;if(l){var u=x(l,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?h:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function x(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},k(I.prototype),s(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new I(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Lo(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,a)}function jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Lo(o,r,a,i,l,"next",e)}function l(e){Lo(o,r,a,i,l,"throw",e)}i(void 0)}))}}function Do(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mo(r.key),r)}}function Fo(e,t,n){return(t=Mo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mo(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var zo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Fo(this,"_streamData",null),Fo(this,"_documentReaderService",new Ro),Fo(this,"_canvas",document.createElement("canvas")),Fo(this,"_cameraInfo",null),Fo(this,"_sortedDevices",null),Fo(this,"_devices",null),Fo(this,"_videoEventListener",null),Fo(this,"_frameListener",null),Fo(this,"_pageIdx",0),Fo(this,"_streamParam",{cameraMode:l.environment,preferredCameraId:"",resolution:h.HD}),Fo(this,"isProcessing",!1),Fo(this,"isInitialized",!1),Fo(this,"videoElement",null),this.videoElement=t||null,this._documentReaderService.recognizerProcessParam=F,this._documentReaderService.imageProcessParam=M}var t,n,r,o,i,u,c,f,d,m;return t=e,n=[{key:"recognizeListener",get:function(){return this._documentReaderService.recognizeListener},set:function(e){this._documentReaderService.recognizeListener=e}},{key:"streamParam",get:function(){return this._streamParam},set:function(e){this._streamParam=he(this._streamParam,e)}},{key:"recognizerProcessParam",get:function(){return this._documentReaderService.recognizerProcessParam},set:function(e){this._documentReaderService.recognizerProcessParam=he(this._documentReaderService.recognizerProcessParam,e)}},{key:"imageProcessParam",get:function(){return this._documentReaderService.imageProcessParam},set:function(e){this._documentReaderService.imageProcessParam=he(this._documentReaderService.imageProcessParam,e)}},{key:"workerPath",get:function(){return this._documentReaderService.workerPath},set:function(e){this._documentReaderService.workerPath=e}},{key:"startStream",value:function(){var e=this;return new Promise(function(){var t=jo(To().mark((function t(n,r){var a;return To().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e._devices){t.next=5;break}return t.next=4,ae();case 4:e._devices=t.sent;case 5:if(e._sortedDevices){t.next=10;break}return t.next=8,le(e._devices);case 8:e._sortedDevices=t.sent,e._devices.isCameraAllowed=!0;case 10:return e._cameraInfo=se(e._streamParam.cameraMode,e._sortedDevices,e._streamParam.preferredCameraId),t.next=13,new Promise(function(){var t=jo(To().mark((function t(n,r){var a,o;return To().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Z.vU?500:0,t.next=3,ve(a);case 3:if(t.prev=3,e._cameraInfo){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,fe(e._streamParam.resolution,e._cameraInfo,e._streamParam.preferredCameraId);case 8:o=t.sent,n(o),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(3),r(t.t0);case 15:case"end":return t.stop()}}),t,null,[[3,12]])})));return function(e,n){return t.apply(this,arguments)}}());case 13:e._streamData=t.sent,e._cameraInfo=e._streamData.camera,e._streamData.stream&&e.videoElement?(e.videoElement.srcObject=e._streamData.stream,e._videoEventListener=function(){e.videoElement&&(e._canvas.width=e.videoElement.videoWidth,e._canvas.height=e.videoElement.videoHeight,n())},e.videoElement.addEventListener("play",e._videoEventListener)):(a=g[e._streamData.status]||s.CAMERA_UNKNOWN_ERROR,r(new Lt(a))),t.next=23;break;case 18:if(t.prev=18,t.t0=t.catch(0),!(t.t0 instanceof Error&&t.t0.name===p)){t.next=22;break}return t.abrupt("return",r(new Lt(s.CAMERA_PERMISSION_DENIED,t.t0)));case 22:r(new Lt(s.CAMERA_UNKNOWN_ERROR,t.t0));case 23:case"end":return t.stop()}}),t,null,[[0,18]])})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"stopStream",value:function(){var e;this._videoEventListener&&this.videoElement&&(this.videoElement.removeEventListener("play",this._videoEventListener),this._videoEventListener=null),null!==(e=this._streamData)&&void 0!==e&&e.stream&&(ce(this._streamData.stream),this._streamData=null)}},{key:"startRecognizeProcess",value:(m=jo(To().mark((function e(){var t,n,r;return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.isProcessing=!0;case 1:if(!this.isProcessing){e.next=11;break}if(this.videoElement){e.next=4;break}return e.abrupt("return");case 4:return t=pe(this.videoElement,a.UINT),n=t.imageData,e.next=7,this._documentReaderService.process(n);case 7:r=e.sent,this._frameListener?this._frameListener(r):this.stopRecognizeProcess(),e.next=1;break;case 11:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"stopRecognizeProcess",value:function(){this.isProcessing=!1}},{key:"startNewPage",value:(d=jo(To().mark((function e(){return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._pageIdx++,e.next=3,this._documentReaderService.startNewPage();case 3:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"startNewDocument",value:(f=jo(To().mark((function e(){return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._documentReaderService.startNewDocument();case 2:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"switchCamera",value:(c=jo(To().mark((function e(){return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._cameraInfo){e.next=2;break}return e.abrupt("return");case 2:if(this.stopRecognizeProcess(),this.stopStream(),this._sortedDevices){e.next=6;break}return e.abrupt("return");case 6:return this._streamParam.preferredCameraId=me(this._sortedDevices,this._cameraInfo.deviceId),e.next=9,this.startStream();case 9:return e.next=11,this.startRecognizeProcess();case 11:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"startRecognition",value:(u=jo(To().mark((function e(t){var n=this;return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.startNewDocument();case 2:if(this._streamData){e.next=5;break}return e.next=5,this.startStream();case 5:return e.abrupt("return",new Promise(function(){var e=jo(To().mark((function e(r){return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n._frameListener=function(e){var a=Zt(e,n._pageIdx,n._documentReaderService.recognizerProcessParam.processParam.multipageProcessing),o=function(){n.stopRecognition(),r(e)},i=function(){var e=jo(To().mark((function e(){return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.startNewPage();case 2:return e.next=4,n.startRecognizeProcess();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a===w.START_NEXT_PAGE&&t?(n.stopRecognizeProcess(),t({data:e,startNextPage:i,finishRecognition:o})):T[a]?o():n.isProcessing||n._devices||n._cameraInfo?void 0:r(null)},e.next=3,n.startRecognizeProcess();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"processImage",value:(i=jo(To().mark((function e(t){var n,r;return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Vt(t,1920,P);case 3:return n=e.sent,e.next=6,Promise.all(n);case 6:if(!((r=e.sent).reduce((function(e,t){return e+t.data.byteLength}),0)>O)){e.next=12;break}return e.abrupt("return",Promise.reject(new Lt(s.FILE_SIZE)));case 12:return e.next=14,this._documentReaderService.processImage(r);case 14:return e.abrupt("return",e.sent);case 15:e.next=20;break;case 17:return e.prev=17,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 20:case"end":return e.stop()}}),e,this,[[0,17]])}))),function(e){return i.apply(this,arguments)})},{key:"stopRecognition",value:function(){this._pageIdx=0,this._cameraInfo=null,this._devices=null,this._sortedDevices=null,this.stopRecognizeProcess(),this.stopStream()}},{key:"initialize",value:(o=jo(To().mark((function e(t){var n;return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._documentReaderService.initialize({license:null==t?void 0:t.license});case 2:return n=e.sent,this.isInitialized=this._documentReaderService.isInitialized,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"shutdown",value:function(){this.isProcessing=!1,this.isInitialized=!1,this._documentReaderService.shutdown()}}],n&&Do(t.prototype,n),r&&Do(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Uo=zo;function Bo(){Bo=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new P(r||[]);return a(i,"_invoke",{value:A(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function b(){}var w={};s(w,i,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(N([])));S&&S!==n&&r.call(S,i)&&(w=S);var E=b.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(a,o,i,l){var u=f(e[a],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function A(t,n,r){var a=d;return function(o,i){if(a===m)throw new Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var l=r.delegate;if(l){var u=x(l,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?h:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function x(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},k(I.prototype),s(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new I(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Ho(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,a)}function Go(){return Vo.apply(this,arguments)}function Vo(){var e;return e=Bo().mark((function e(){var t,n,r,a,o,i;return Bo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.customElements.get("document-reader"),n=window.customElements.get("camera-snapshot"),r=window.customElements.get("fullscreen-container"),t||window.customElements.define("document-reader",Kr),n||window.customElements.define("camera-snapshot",Ca),r||window.customElements.define("fullscreen-container",Oa),a=window.customElements.whenDefined("document-reader"),o=window.customElements.whenDefined("camera-snapshot"),i=window.customElements.whenDefined("fullscreen-container"),e.next=11,Promise.all([a,o,i]);case 11:case"end":return e.stop()}}),e)})),Vo=function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Ho(o,r,a,i,l,"next",e)}function l(e){Ho(o,r,a,i,l,"throw",e)}i(void 0)}))},Vo.apply(this,arguments)}}();var a=r.Wo,o=r.ly,i=r.fl;export{a as DocumentReaderProcessor,o as DocumentReaderService,i as defineComponents};