onfido-sdk-ui
Version:
JavaScript SDK view layer for Onfido identity verification
3 lines • 116 kB
JavaScript
/*! OnfidoAuth SDK 6.16.0 */
/*! License information can be found in demo.LICENSES.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.OnfidoAuth=e():t.OnfidoAuth=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="https://assets.onfido.com/web-sdk-releases/6.16.0/",n(n.s=651)}([function(t,e,n){"use strict";n.r(e),n.d(e,"render",(function(){return I})),n.d(e,"hydrate",(function(){return F})),n.d(e,"createElement",(function(){return v})),n.d(e,"h",(function(){return v})),n.d(e,"Fragment",(function(){return y})),n.d(e,"createRef",(function(){return _})),n.d(e,"isValidElement",(function(){return o})),n.d(e,"Component",(function(){return m})),n.d(e,"cloneElement",(function(){return U})),n.d(e,"createContext",(function(){return H})),n.d(e,"toChildArray",(function(){return j})),n.d(e,"options",(function(){return r}));var r,o,i,c,u,a,s={},l=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var r,o,i,c=arguments,u={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:u[i]=e[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(c[i]);if(null!=n&&(u.children=n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===u[i]&&(u[i]=t.defaultProps[i]);return h(t,u,r,o,null)}function h(t,e,n,o,i){var c={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++r.__v:i};return null!=r.vnode&&r.vnode(c),c}function _(){return{current:null}}function y(t){return t.children}function m(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?b(t):null}function g(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return g(t)}}function O(t){(!t.__d&&(t.__d=!0)&&i.push(t)&&!x.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||c)(x)}function x(){for(var t;x.__r=i.length;)t=i.sort((function(t,e){return t.__v.__b-e.__v.__b})),i=[],t.some((function(t){var e,n,r,o,i,c;t.__d&&(i=(o=(e=t).__v).__e,(c=e.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,T(c,o,r,e.__n,void 0!==c.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),L(n,o),o.__e!=i&&g(o)))}))}function w(t,e,n,r,o,i,c,u,a,f){var p,d,v,_,m,g,O,x=r&&r.__k||l,w=x.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(_=n.__k[p]=null==(_=e[p])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?h(null,_,null,null,_):Array.isArray(_)?h(y,{children:_},null,null,null):_.__b>0?h(_.type,_.props,_.key,null,_.__v):_)){if(_.__=n,_.__b=n.__b+1,null===(v=x[p])||v&&_.key==v.key&&_.type===v.type)x[p]=void 0;else for(d=0;d<w;d++){if((v=x[d])&&_.key==v.key&&_.type===v.type){x[d]=void 0;break}v=null}T(t,_,v=v||s,o,i,c,u,a,f),m=_.__e,(d=_.ref)&&v.ref!=d&&(O||(O=[]),v.ref&&O.push(v.ref,null,_),O.push(d,_.__c||m,_)),null!=m?(null==g&&(g=m),"function"==typeof _.type&&null!=_.__k&&_.__k===v.__k?_.__d=a=S(_,a,t):a=k(t,_,v,x,m,a),f||"option"!==n.type?"function"==typeof n.type&&(n.__d=a):t.value=""):a&&v.__e==a&&a.parentNode!=t&&(a=b(v))}for(n.__e=g,p=w;p--;)null!=x[p]&&("function"==typeof n.type&&null!=x[p].__e&&x[p].__e==n.__d&&(n.__d=b(r,p+1)),R(x[p],x[p]));if(O)for(p=0;p<O.length;p++)D(O[p],O[++p],O[++p])}function S(t,e,n){var r,o;for(r=0;r<t.__k.length;r++)(o=t.__k[r])&&(o.__=t,e="function"==typeof o.type?S(o,e,n):k(n,o,o,t.__k,o.__e,e));return e}function j(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){j(t,e)})):e.push(t)),e}function k(t,e,n,r,o,i){var c,u,a;if(void 0!==e.__d)c=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),c=null;else{for(u=i,a=0;(u=u.nextSibling)&&a<r.length;a+=2)if(u==o)break t;t.insertBefore(o,i),c=i}return void 0!==c?c:o.nextSibling}function P(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||f.test(e)?n:n+"px"}function C(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||P(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||P(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?A:E,i):t.removeEventListener(e,i?A:E,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function E(t){this.l[t.type+!1](r.event?r.event(t):t)}function A(t){this.l[t.type+!0](r.event?r.event(t):t)}function T(t,e,n,o,i,c,u,a,s){var l,f,d,v,h,_,b,g,O,x,S,j=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(s=n.__h,a=e.__e=n.__e,e.__h=null,c=[a]),(l=r.__b)&&l(e);try{t:if("function"==typeof j){if(g=e.props,O=(l=j.contextType)&&o[l.__c],x=l?O?O.props.value:l.__:o,n.__c?b=(f=e.__c=n.__c).__=f.__E:("prototype"in j&&j.prototype.render?e.__c=f=new j(g,x):(e.__c=f=new m(g,x),f.constructor=j,f.render=N),O&&O.sub(f),f.props=g,f.state||(f.state={}),f.context=x,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=j.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,j.getDerivedStateFromProps(g,f.__s))),v=f.props,h=f.state,d)null==j.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==j.getDerivedStateFromProps&&g!==v&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(g,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(g,f.__s,x)||e.__v===n.__v){f.props=g,f.state=f.__s,e.__v!==n.__v&&(f.__d=!1),f.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),f.__h.length&&u.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(g,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(v,h,_)}))}f.context=x,f.props=g,f.state=f.__s,(l=r.__r)&&l(e),f.__d=!1,f.__v=e,f.__P=t,l=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(_=f.getSnapshotBeforeUpdate(v,h)),S=null!=l&&l.type===y&&null==l.key?l.props.children:l,w(t,Array.isArray(S)?S:[S],e,n,o,i,c,u,a,s),f.base=e.__e,e.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==c&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=M(n.__e,e,n,o,i,c,u,s);(l=r.diffed)&&l(e)}catch(t){e.__v=null,(s||null!=c)&&(e.__e=a,e.__h=!!s,c[c.indexOf(a)]=null),r.__e(t,e,n)}}function L(t,e){r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function M(t,e,n,r,o,i,c,u){var a,f,p,v,h=n.props,_=e.props,y=e.type,m=0;if("svg"===y&&(o=!0),null!=i)for(;m<i.length;m++)if((a=i[m])&&(a===t||(y?a.localName==y:3==a.nodeType))){t=a,i[m]=null;break}if(null==t){if(null===y)return document.createTextNode(_);t=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),i=null,u=!1}if(null===y)h===_||u&&t.data===_||(t.data=_);else{if(i=i&&l.slice.call(t.childNodes),f=(h=n.props||s).dangerouslySetInnerHTML,p=_.dangerouslySetInnerHTML,!u){if(null!=i)for(h={},v=0;v<t.attributes.length;v++)h[t.attributes[v].name]=t.attributes[v].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||C(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||C(t,i,e[i],n[i],r)}(t,_,h,o,u),p)e.__k=[];else if(m=e.props.children,w(t,Array.isArray(m)?m:[m],e,n,r,o&&"foreignObject"!==y,i,c,t.firstChild,u),null!=i)for(m=i.length;m--;)null!=i[m]&&d(i[m]);u||("value"in _&&void 0!==(m=_.value)&&(m!==t.value||"progress"===y&&!m)&&C(t,"value",m,h.value,!1),"checked"in _&&void 0!==(m=_.checked)&&m!==t.checked&&C(t,"checked",m,h.checked,!1))}return t}function D(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function R(t,e,n){var o,i,c;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||D(o,null,e)),n||"function"==typeof t.type||(n=null!=(i=t.__e)),t.__e=t.__d=void 0,null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){r.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(c=0;c<o.length;c++)o[c]&&R(o[c],e,n);null!=i&&d(i)}function N(t,e,n){return this.constructor(t,n)}function I(t,e,n){var o,i,c;r.__&&r.__(t,e),i=(o="function"==typeof n)?null:n&&n.__k||e.__k,c=[],T(e,t=(!o&&n||e).__k=v(y,null,[t]),i||s,s,void 0!==e.ownerSVGElement,!o&&n?[n]:i?null:e.firstChild?l.slice.call(e.childNodes):null,c,!o&&n?n:i?i.__e:e.firstChild,o),L(c,t)}function F(t,e){I(t,e,F)}function U(t,e,n){var r,o,i,c=arguments,u=p({},t.props);for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:u[i]=e[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(c[i]);return null!=n&&(u.children=n),h(t.type,u,r||t.key,o||t.ref,null)}function H(t,e){var n={__c:e="__cC"+a++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(O)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t},__v:0},o=function(t){return null!=t&&void 0===t.constructor},m.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},n),this.props)),t&&p(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),O(this))},m.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),O(this))},m.prototype.render=y,i=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,a=0},function(t,e,n){var r=n(193);t.exports=function(t,e,n){return e in t?r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},,,function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return q})),n.d(e,"Children",(function(){return d})),n.d(e,"render",(function(){return P})),n.d(e,"hydrate",(function(){return C})),n.d(e,"unmountComponentAtNode",(function(){return J})),n.d(e,"createPortal",(function(){return w})),n.d(e,"createFactory",(function(){return z})),n.d(e,"cloneElement",(function(){return K})),n.d(e,"isValidElement",(function(){return G})),n.d(e,"findDOMNode",(function(){return Y})),n.d(e,"PureComponent",(function(){return u})),n.d(e,"memo",(function(){return a})),n.d(e,"forwardRef",(function(){return f})),n.d(e,"unstable_batchedUpdates",(function(){return X})),n.d(e,"StrictMode",(function(){return Z})),n.d(e,"Suspense",(function(){return _})),n.d(e,"SuspenseList",(function(){return b})),n.d(e,"lazy",(function(){return m})),n.d(e,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return I})),n.d(e,"unstable_ImmediatePriority",(function(){return F})),n.d(e,"unstable_UserBlockingPriority",(function(){return U})),n.d(e,"unstable_NormalPriority",(function(){return H})),n.d(e,"unstable_LowPriority",(function(){return B})),n.d(e,"unstable_IdlePriority",(function(){return $})),n.d(e,"unstable_runWithPriority",(function(){return W})),n.d(e,"unstable_now",(function(){return V}));var r=n(34);n.d(e,"useState",(function(){return r.k})),n.d(e,"useReducer",(function(){return r.i})),n.d(e,"useEffect",(function(){return r.d})),n.d(e,"useLayoutEffect",(function(){return r.g})),n.d(e,"useRef",(function(){return r.j})),n.d(e,"useImperativeHandle",(function(){return r.f})),n.d(e,"useMemo",(function(){return r.h})),n.d(e,"useCallback",(function(){return r.a})),n.d(e,"useContext",(function(){return r.b})),n.d(e,"useDebugValue",(function(){return r.c})),n.d(e,"useErrorBoundary",(function(){return r.e}));var o=n(0);function i(t,e){for(var n in e)t[n]=e[n];return t}function c(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function u(t){this.props=t}function a(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:c(this.props,t)}function r(e){return this.shouldComponentUpdate=n,Object(o.createElement)(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}n.d(e,"createElement",(function(){return o.createElement})),n.d(e,"createContext",(function(){return o.createContext})),n.d(e,"createRef",(function(){return o.createRef})),n.d(e,"Fragment",(function(){return o.Fragment})),n.d(e,"Component",(function(){return o.Component})),(u.prototype=new o.Component).isPureReactComponent=!0,u.prototype.shouldComponentUpdate=function(t,e){return c(this.props,t)||c(this.state,e)};var s=o.options.__b;o.options.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),s&&s(t)};var l="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function f(t){function e(e,n){var r=i({},e);return delete r.ref,t(r,(n=e.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return e.$$typeof=l,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var p=function(t,e){return null==t?null:Object(o.toChildArray)(Object(o.toChildArray)(t).map(e))},d={map:p,forEach:p,count:function(t){return t?Object(o.toChildArray)(t).length:0},only:function(t){var e=Object(o.toChildArray)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:o.toChildArray},v=o.options.__e;o.options.__e=function(t,e,n){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);v(t,e,n)};var h=o.options.unmount;function _(){this.__u=0,this.t=null,this.__b=null}function y(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function m(t){var e,n,r;function i(i){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){r=t})),r)throw r;if(!n)throw e;return Object(o.createElement)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function b(){this.u=null,this.o=null}o.options.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),h&&h(t)},(_.prototype=new o.Component).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=y(r.__v),i=!1,c=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=c;var u=function(){if(!--r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(e,n,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)})),e.__c&&e.__c.__P===n&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},a=!0===e.__h;r.__u++||a||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(c,c)},_.prototype.componentWillUnmount=function(){this.t=[]},_.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=i({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)}))),e}(this.__b,n,r.__O=r.__P)}this.__b=null}var c=e.__e&&Object(o.createElement)(o.Fragment,null,t.fallback);return c&&(c.__h=null),[Object(o.createElement)(o.Fragment,null,e.__e?null:t.children),c]};var g=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function O(t){return this.getChildContext=function(){return t.context},t.children}function x(t){var e=this,n=t.i;e.componentWillUnmount=function(){Object(o.render)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),Object(o.render)(Object(o.createElement)(O,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function w(t,e){return Object(o.createElement)(x,{__v:t,i:e})}(b.prototype=new o.Component).__e=function(t){var e=this,n=y(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),g(e,t,r)):o()};n?n(i):i()}},b.prototype.render=function(t){this.u=null,this.o=new Map;var e=Object(o.toChildArray)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},b.prototype.componentDidUpdate=b.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){g(t,n,e)}))};var S="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,j=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,k=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};function P(t,e,n){return null==e.__k&&(e.textContent=""),Object(o.render)(t,e),"function"==typeof n&&n(),t?t.__c:null}function C(t,e,n){return Object(o.hydrate)(t,e),"function"==typeof n&&n(),t?t.__c:null}o.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(o.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var E=o.options.event;function A(){}function T(){return this.cancelBubble}function L(){return this.defaultPrevented}o.options.event=function(t){return E&&(t=E(t)),t.persist=A,t.isPropagationStopped=T,t.isDefaultPrevented=L,t.nativeEvent=t};var M,D={configurable:!0,get:function(){return this.class}},R=o.options.vnode;o.options.vnode=function(t){var e=t.type,n=t.props,r=n;if("string"==typeof e){for(var i in r={},n){var c=n[i];"value"===i&&"defaultValue"in n&&null==c||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===c?c="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!k(n.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():j.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===c&&(c=void 0),r[i]=c)}"select"==e&&r.multiple&&Array.isArray(r.value)&&(r.value=Object(o.toChildArray)(n.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==e&&null!=r.defaultValue&&(r.value=Object(o.toChildArray)(n.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r}e&&n.class!=n.className&&(D.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",D)),t.$$typeof=S,R&&R(t)};var N=o.options.__r;o.options.__r=function(t){N&&N(t),M=t.__c};var I={ReactCurrentDispatcher:{current:{readContext:function(t){return M.__n[t.__c].props.value}}}},F=1,U=2,H=3,B=4,$=5;function W(t,e){return e()}var V="object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()},q="16.8.0";function z(t){return o.createElement.bind(null,t)}function G(t){return!!t&&t.$$typeof===S}function K(t){return G(t)?o.cloneElement.apply(null,arguments):t}function J(t){return!!t.__k&&(Object(o.render)(null,t),!0)}function Y(t){return t&&(t.base||1===t.nodeType&&t)||null}var X=function(t,e){return t(e)},Z=o.Fragment;e.default={useState:r.k,useReducer:r.i,useEffect:r.d,useLayoutEffect:r.g,useRef:r.j,useImperativeHandle:r.f,useMemo:r.h,useCallback:r.a,useContext:r.b,useDebugValue:r.c,version:"16.8.0",Children:d,render:P,hydrate:C,unmountComponentAtNode:J,createPortal:w,createElement:o.createElement,createContext:o.createContext,createFactory:z,cloneElement:K,createRef:o.createRef,Fragment:o.Fragment,isValidElement:G,findDOMNode:Y,Component:o.Component,PureComponent:u,memo:a,forwardRef:f,unstable_batchedUpdates:X,StrictMode:o.Fragment,Suspense:_,SuspenseList:b,lazy:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:I}},,,,,,function(t,e,n){t.exports=n(188)},function(t,e,n){t.exports=n(233)},function(t,e,n){t.exports=n(217)},function(t,e,n){t.exports=n(231)},function(t,e,n){t.exports=n(236)},function(t,e,n){t.exports=n(238)},,,function(t,e,n){"use strict";var r=n(31),o=n(71).f,i=n(148),c=n(27),u=n(72),a=n(42),s=n(36),l=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,f,p,d,v,h,_,y,m=t.target,b=t.global,g=t.stat,O=t.proto,x=b?r:g?r[m]:(r[m]||{}).prototype,w=b?c:c[m]||(c[m]={}),S=w.prototype;for(p in e)n=!i(b?p:m+(g?".":"#")+p,t.forced)&&x&&s(x,p),v=w[p],n&&(h=t.noTargetGet?(y=o(x,p))&&y.value:x[p]),d=n&&h?h:e[p],n&&typeof v==typeof d||(_=t.bind&&n?u(d,r):t.wrap&&n?l(d):O&&"function"==typeof d?u(Function.call,d):d,(t.sham||d&&d.sham||v&&v.sham)&&a(_,"sham",!0),w[p]=_,O&&(s(c,f=m+"Prototype")||a(c,f,{}),c[f][p]=d,t.real&&S&&!S[p]&&a(S,p,d)))}},,,,function(t,e,n){var r=n(261),o=n(262),i=n(265);t.exports=function(t,e){return r(t)||o(t,e)||i()}},function(t,e,n){var r=n(339);function o(){return t.exports=o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}t.exports=o},function(t,e,n){t.exports=n(212)},function(t,e,n){t.exports=n(240)},function(t,e,n){t.exports=n(214)},function(t,e){t.exports={}},function(t,e,n){var r=n(31),o=n(116),i=n(36),c=n(106),u=n(117),a=n(156),s=o("wks"),l=r.Symbol,f=a?l:l&&l.withoutSetter||c;t.exports=function(t){return i(s,t)||(u&&i(l,t)?s[t]=l[t]:s[t]=f("Symbol."+t)),s[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(123))},function(t,e,n){var r=n(29);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},,function(t,e,n){"use strict";n.d(e,"k",(function(){return h})),n.d(e,"i",(function(){return _})),n.d(e,"d",(function(){return y})),n.d(e,"g",(function(){return m})),n.d(e,"j",(function(){return b})),n.d(e,"f",(function(){return g})),n.d(e,"h",(function(){return O})),n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return S})),n.d(e,"e",(function(){return j}));var r,o,i,c=n(0),u=0,a=[],s=c.options.__b,l=c.options.__r,f=c.options.diffed,p=c.options.__c,d=c.options.unmount;function v(t,e){c.options.__h&&c.options.__h(o,t,u||e),u=0;var n=o.__H||(o.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function h(t){return u=1,_(T,t)}function _(t,e,n){var i=v(r++,2);return i.t=t,i.__c||(i.__=[n?n(e):T(void 0,e),function(t){var e=i.t(i.__[0],t);i.__[0]!==e&&(i.__=[e,i.__[1]],i.__c.setState({}))}],i.__c=o),i.__}function y(t,e){var n=v(r++,3);!c.options.__s&&A(n.__H,e)&&(n.__=t,n.__H=e,o.__H.__h.push(n))}function m(t,e){var n=v(r++,4);!c.options.__s&&A(n.__H,e)&&(n.__=t,n.__H=e,o.__h.push(n))}function b(t){return u=5,O((function(){return{current:t}}),[])}function g(t,e,n){u=6,m((function(){"function"==typeof t?t(e()):t&&(t.current=e())}),null==n?n:n.concat(t))}function O(t,e){var n=v(r++,7);return A(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function x(t,e){return u=8,O((function(){return t}),e)}function w(t){var e=o.context[t.__c],n=v(r++,9);return n.__c=t,e?(null==n.__&&(n.__=!0,e.sub(o)),e.props.value):t.__}function S(t,e){c.options.useDebugValue&&c.options.useDebugValue(e?e(t):t)}function j(t){var e=v(r++,10),n=h();return e.__=t,o.componentDidCatch||(o.componentDidCatch=function(t){e.__&&e.__(t),n[1](t)}),[n[0],function(){n[1](void 0)}]}function k(){a.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(C),t.__H.__h.forEach(E),t.__H.__h=[]}catch(e){t.__H.__h=[],c.options.__e(e,t.__v)}})),a=[]}c.options.__b=function(t){o=null,s&&s(t)},c.options.__r=function(t){l&&l(t),r=0;var e=(o=t.__c).__H;e&&(e.__h.forEach(C),e.__h.forEach(E),e.__h=[])},c.options.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==a.push(e)&&i===c.options.requestAnimationFrame||((i=c.options.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),P&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);P&&(e=requestAnimationFrame(n))})(k)),o=void 0},c.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(C),t.__h=t.__h.filter((function(t){return!t.__||E(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],c.options.__e(n,t.__v)}})),p&&p(t,e)},c.options.unmount=function(t){d&&d(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(C)}catch(t){c.options.__e(t,e.__v)}};var P="function"==typeof requestAnimationFrame;function C(t){var e=o;"function"==typeof t.__c&&t.__c(),o=e}function E(t){var e=o;t.__c=t.__(),o=e}function A(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function T(t,e){return"function"==typeof e?e(t):e}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(35);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){t.exports=n(249)},function(t,e,n){var r=n(27);t.exports=function(t){return r[t+"Prototype"]}},function(t,e,n){var r=n(96),o=n(97);t.exports=function(t){return r(o(t))}},,function(t,e,n){var r=n(32),o=n(44),i=n(67);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},,function(t,e,n){var r=n(32),o=n(147),i=n(37),c=n(87),u=Object.defineProperty;e.f=r?u:function(t,e,n){if(i(t),e=c(e,!0),i(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(27),o=n(31),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(32),o=n(29),i=n(36),c=Object.defineProperty,u={},a=function(t){throw t};t.exports=function(t,e){if(i(u,t))return u[t];e||(e={});var n=[][t],s=!!i(e,"ACCESSORS")&&e.ACCESSORS,l=i(e,0)?e[0]:a,f=i(e,1)?e[1]:void 0;return u[t]=!!n&&!o((function(){if(s&&!r)return!0;var t={length:-1};s?c(t,1,{enumerable:!0,get:a}):t[1]=1,n.call(t,l,f)}))}},,function(t,e,n){var r=n(97);t.exports=function(t){return Object(r(t))}},,function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},,function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"i",(function(){return V})),n.d(e,"f",(function(){return q})),n.d(e,"c",(function(){return z})),n.d(e,"d",(function(){return G})),n.d(e,"a",(function(){return K})),n.d(e,"b",(function(){return J})),n.d(e,"h",(function(){return Y})),n.d(e,"g",(function(){return Z})),n.d(e,"e",(function(){return Q}));var r,o,i=n(24),c=n.n(i),u=n(26),a=n.n(u),s=n(12),l=n.n(s),f=n(10),p=n.n(f),d=n(13),v=n.n(d),h=n(14),_=n.n(h),y=n(15),m=n.n(y),b=n(66),g=n.n(b),O=n(11),x=n.n(O),w=n(25),S=n.n(w),j=n(38),k=n.n(j),P=n(60),C=n.n(P),E=n(1),A=n.n(E),T=n(22),L=n.n(T),M=n(101),D=n.n(M),R=n(64),N=n.n(R),I=n(184),F=n.p+"images/onfido-logo_3N2AY.svg",U=n.p+"images/onfido-logo-light_3bEB6.svg",H=n.p+"images/sample-logo_2hXI-.svg";function B(t,e){var n=m()(t);if(_.a){var r=_()(t);e&&(r=x()(r).call(r,(function(e){return v()(t,e).enumerable}))),n.push.apply(n,r)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)p()(n=B(Object(r),!0)).call(n,(function(e){A()(t,e,r[e])}));else if(l.a)a()(t,l()(r));else{var o;p()(o=B(Object(r))).call(o,(function(e){c()(t,e,v()(r,e))}))}}return t}var W={locale:"en",phrases:{"welcome.title":"My custom title"},mobilePhrases:{"capture.driving_licence.back.instructions":"Custom instructions"}},V=N()(r=D()(o=window.location.search).call(o,1).split("&")).call(r,(function(t,e){var n=e.split("="),r=L()(n,2),o=r[0],i=r[1];return $($({},t),{},A()({},o,i))}),{}),q=function(){var t=V.link_id;if(t)return{mobileFlow:!0,roomId:t.substring(2)};var e,n="customTranslations"===V.language?W:V.language,r=[];"true"===V.customWelcomeScreenCopy?r.push({type:"welcome",options:{title:"Open your new bank account",descriptions:["To open a bank account, we will need to verify your identity.","It will only take a couple of minutes."],nextButton:"Verify Identity"}}):r.push({type:"welcome"}),"true"===V.showAuth&&r.push({type:"auth",options:{retries:10}}),"true"===V.showUserConsent&&r.push({type:"userConsent"}),"true"===V.poa&&r.push({type:"poa"}),r.push({type:"document",options:{useLiveDocumentCapture:"true"===V.useLiveDocumentCapture,uploadFallback:"false"!==V.uploadFallback,useWebcam:"true"===V.useWebcam,documentTypes:(e=V.oneDoc,e?A()({},e,!0):"true"===V.oneDocWithCountrySelection?{driving_licence:!0}:"true"===V.oneDocWithPresetCountry?{driving_licence:{country:"ESP"}}:"true"===V.multiDocWithPresetCountry?{driving_licence:{country:"ESP"},national_identity_card:{country:"MYS"},residence_permit:{country:null}}:"true"===V.multiDocWithInvalidPresetCountry?{driving_licence:{country:"ES"},national_identity_card:{country:"XYZ"}}:"true"===V.multiDocWithBooleanValues?{driving_licence:!0,national_identity_card:!0}:{}),showCountrySelection:"true"===V.oneDocWithCountrySelection,forceCrossDevice:"true"===V.forceCrossDevice,requestedVariant:"true"===V.docVideo?"video":"standard"}}),r.push({type:"face",options:{useUploader:"true"===V.useUploader,uploadFallback:"false"!==V.uploadFallback,useMultipleSelfieCapture:"false"!==V.useMultipleSelfieCapture,photoCaptureFallback:"false"!==V.photoCaptureFallback,requestedVariant:"true"===V.faceVideo?"video":"standard"}}),"true"!==V.noCompleteStep&&r.push({type:"complete"});var o,i=V.countryCode?{smsNumberCountryCode:V.countryCode}:{},c="true"===V.hideOnfidoLogo,u="true"===V.showCobrand?{text:"[COMPANY/PRODUCT NAME]"}:void 0,a="true"===V.showLogoCobrand?{lightLogoSrc:U,darkLogoSrc:F}:void 0,s="true"===V.useCustomizedApiRequests,l={};if("success"===V.decoupleResponse){var f=C.a.resolve({onfidoSuccessResponse:{id:"123-456-789"}});l={onSubmitDocument:function(){return f},onSubmitSelfie:function(){return f},onSubmitVideo:function(){return f}}}else if("error"===V.decoupleResponse){var p={status:422,response:k()({error:{message:"There was a validation error on this request",type:"validation_error",fields:{detect_glare:["glare found in image"]}}})};l={onSubmitDocument:function(){return C.a.reject(p)},onSubmitSelfie:function(){return C.a.reject(p)},onSubmitVideo:function(){return C.a.reject(p)}}}else if("onfido"===V.decoupleResponse){var d=C.a.resolve({continueWithOnfidoSubmission:!0});l={onSubmitDocument:function(){return d},onSubmitSelfie:function(){return d},onSubmitVideo:function(){return d}}}"true"===V.excludeSmsCrossDeviceOption&&(o=["copy_link","qr_code"]),"true"===V.singleCrossDeviceOption&&(o=["sms"]),"true"===V.invalidCrossDeviceAlternativeMethods&&(o=["copy","qrCode","sms"]);var v="true"===V.customisedUI?I:void 0,h="true"===V.crossDeviceClientIntroCustomProductName?"for a [COMPANY/PRODUCT NAME] loan":void 0,_="true"===V.crossDeviceClientIntroCustomProductLogo?H:void 0,y=!0;return V.autoFocusOnInitialScreenTitle&&(y="true"===V.autoFocusOnInitialScreenTitle),$($({useModal:"true"===V.useModal,shouldCloseOnOverlayClick:"true"!==V.shouldCloseOnOverlayClick,language:n,disableAnalytics:"true"===V.disableAnalytics,useMemoryHistory:"true"===V.useMemoryHistory,steps:r,mobileFlow:!1,userDetails:{smsNumber:V.smsNumber},enterpriseFeatures:$({hideOnfidoLogo:c,cobrand:u,logoCobrand:a,useCustomizedApiRequests:s},l),customUI:v,crossDeviceClientIntroProductName:h,crossDeviceClientIntroProductLogoSrc:_},i),{},{_crossDeviceLinkMethods:o,autoFocusOnInitialScreenTitle:y})},z={standard:[],faceVideo:["welcome","document",{type:"face",options:{requestedVariant:"video"}},"complete"],poa:["welcome","poa","complete"],"no welcome":["document","face","complete"],"no complete":["welcome","document","face"],"upload fallback":["welcome",{type:"document",options:{useWebcam:!1}},{type:"face",options:{uploadFallback:!0}},"complete"],"document autocapture (BETA)":["welcome",{type:"document",options:{useWebcam:!0}},"face","complete"],"document live capture (BETA)":["welcome",{type:"document",options:{useLiveDocumentCapture:!0}},"face","complete"],"force cross device (docs)":["welcome",{type:"document",options:{forceCrossDevice:!0}},"face","complete"],"no upload fallback":["welcome",{type:"document",options:{useWebcam:!1}},{type:"face",options:{uploadFallback:!1}},"complete"],"no snapshot":["welcome","document",{type:"face",options:{useMultipleSelfieCapture:!1}},"complete"]},G={smsOnly:["sms"],copyLinkOnly:["copy_link"],qrCodeOnly:["qr_code"],excludeSms:["copy_link","qr_code"],reorderOptions:["sms","copy_link","qr_code"],invalidOptions:["copy","qrCode","sms"]},K={en:"en",es:"es",de:"de",fr:"fr",nl:"nl",custom:{phrases:{"welcome.title":"My custom title"},mobilePhrases:{"capture.driving_licence.back.instructions":"Custom instructions"}}},J=["EU","US","CA"],Y=function(t){if("US"===t)return"https://token-factory.us.onfido.com/sdk_token";if("CA"===t)return"https://token-factory.ca.onfido.com/sdk_token";if("EU"===t)return"https://token-factory.onfido.com/sdk_token";throw new Error("No JWT_FACTORY env provided")},X=function(t){var e,n;return t?S()(e=x()(n=g()(t)).call(n,(function(t){return L()(t,2)[1]}))).call(e,(function(t){return t.join("=")})).join("&"):""},Z=function(t,e,n,r,o){var i=new XMLHttpRequest;i.open("GET",[e,X(n)].join("?"),!0),i.setRequestHeader("Authorization","BASIC ".concat("NA")),i.onload=function(){if(i.status>=200&&i.status<400){var e=JSON.parse(i.responseText);t&&r&&r.postMessage({type:"UPDATE_CHECK_DATA",payload:{applicantId:e.applicant_id}}),o(e.message,e.applicant_id)}},i.send()},Q=function(t,e,n){var r;if(V.createCheck&&t&&e){var o=V.poa,i=V.docVideo,c=V.faceVideo,u=new XMLHttpRequest;u.open("POST",t.replace("sdk_token","check"),!0),u.setRequestHeader("Content-Type","application/json;charset=UTF-8"),u.setRequestHeader("Authorization","BASIC ".concat("NA")),u.onload=function(){if(u.status>=200&&u.status<400){var t=JSON.parse(u.responseText);console.log("Check created!",t)}};var a={applicant_id:e,report_names:[o?"proof_of_address":i?"document_video_capture":"document",c?"facial_similarity_video":"facial_similarity_photo"],document_ids:i?null==n||null===(r=n.document_video)||void 0===r?void 0:r.media_uuids:void 0};u.send(k()(a))}}},,function(t,e,n){var r=n(98),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports={}},function(t,e,n){var r=n(27),o=n(36),i=n(138),c=n(44).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||c(e,t,{value:i.f(t)})}},,,function(t,e,n){t.exports=n(274)},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},,function(t,e){t.exports=!0},function(t,e,n){t.exports=n(252)},function(t,e,n){var r=n(72),o=n(96),i=n(48),c=n(55),u=n(158),a=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,l=4==t,f=6==t,p=5==t||f;return function(d,v,h,_){for(var y,m,b=i(d),g=o(b),O=r(v,h,3),x=c(g.length),w=0,S=_||u,j=e?S(d,x):n?S(d,0):void 0;x>w;w++)if((p||w in g)&&(m=O(y=g[w],w,b),t))if(e)j[w]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:a.call(j,y)}else if(l)return!1;return f?-1:s||l?l:j}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(t,e,n){t.exports=n(266)},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){n(171);var r=n(226),o=n(31),i=n(69),c=n(42),u=n(56),a=n(28)("toStringTag");for(var s in r){var l=o[s],f=l&&l.prototype;f&&i(f)!==a&&c(f,a,s),u[s]=u.Array}},function(t,e,n){var r=n(118),o=n(61),i=n(28)("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:c?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},,function(t,e,n){var r=n(32),o=n(95),i=n(67),c=n(40),u=n(87),a=n(36),s=n(147),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=u(e,!0),s)try{return l(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(50);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r,o,i,c=n(221),u=n(31),a=n(35),s=n(42),l=n(36),f=n(89),p=n(83),d=u.WeakMap;if(c){var v=new d,h=v.get,_=v.has,y=v.set;r=function(t,e){return y.call(v,t,e),e},o=function(t){return h.call(v,t)||{}},i=function(t){return _.call(v,t)}}else{var m=f("state");p[m]=!0,r=function(t,e){return s(t,m,e),e},o=function(t){return l(t,m)?t[m]:{}},i=function(t){return l(t,m)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(118),o=n(44).f,i=n(42),c=n(36),u=n(224),a=n(28)("toStringTag");t.exports=function(t,e,n,s){if(t){var l=n?t:t.prototype;c(l,a)||o(l,a,{configurable:!0,value:e}),s&&!r&&i(l,"toString",u)}}},function(t,e,n){var r=n(42);t.exports=function(t,e,n,o){o&&o.enumerable?t[e]=n:r(t,e,n)}},,,,function(t,e,n){var r=n(150),o=n(114);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(61);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(258).charAt,o=n(73),i=n(136),c=o.set,u=o.getterFor("String Iterator");i(String,"String",(function(t){c(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";e.__esModule=!0,e.createPath=e.parsePath=e.locationsAreEqual=e.createLocation=e.createMemoryHistory=e.createHashHistory=e.createBrowserHistory=void 0;var r=n(141);Object.defineProperty(e,"createLocation",{enumerable:!0,get:function(){return r.createLocation}}),Object.defineProperty(e,"locationsAreEqual",{enumerable:!0,get:function(){return r.locationsAreEqual}});var o=n(120);Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return o.parsePath}}),Object.defineProperty(e,"createPath",{enumerable:!0,get:function(){return o.createPath}});var i=a(n(349)),c=a(n(350)),u=a(n(351));function a(t){return t&&t.__esModule?t:{default:t}}e.createBrowserHistory=i.default,e.createHashHistory=c.default,e.createMemoryHistory=u.default},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(29);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(35);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(87),o=n(44),i=n(67);t.exports=function(t,e,n){var c=r(e);c in t?o.f(t,c,i(0,n)):t[c]=n}},function(t,e,n){var r=n(116),o=n(106),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r=n(29),o=n(28),i=n(126),c=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[c]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},,,,,function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(29),o=n(61),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(37),o=n(179),i=n(55),c=n(72),u=n(128),a=n(178),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,l,f){var p,d,v,h,_,y,m,b=c(e,n,l?2:1);if(f)p=t;else{if("function"!=typeof(d=u(t)))throw TypeError("Target is not iterable");if(o(d)){for(v=0,h=i(t.length);h>v;v++)if((_=l?b(r(m=t[v])[0],m[1]):b(t[v]))&&_ instanceof s)return _;return new s(!1)}p=d.call(t)}for(y=p.next;!(m=y.call(p)).done;)if("object"==typeof(_=a(p,b,m.value,l))&&_&&_ instanceof s)return _;return new s(!1)}).stop=function(t){return new s(!0,t)}},function(t,e,n){"use strict";var r=n(50),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){t.exports=n(270)},,,function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,"a",(function(){return o}))},,function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r,o=n(37),i=n(149),c=n(114),u=n(83),a=n(157),s=n(113),l=n(89),f=l("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},v=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;v=r?function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=s("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F);for(var n=c.length;n--;)delete v.prototype[c[n]];return v()};u[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[f]=t):n=v(),void 0===e?n:i(n,e)}},,,,,,function(t,e,n){var r=n(31),o=n(35),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(150),o=n(114).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(63),o=n(154);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(29);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){var r={};r[n(28)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){"use strict";t.exports=function(){}},function(t,e,n){"use strict";e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.stripPrefix=function(t,e){return 0===t.indexOf(e)?t.substr(e.length):t},e.parsePath=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},e.createPath=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},,function(t,e,n){t.exports=n(336)()},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(36),o=n(48),i=n(89),c=n(189),u=i("IE_PROTO"),a=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){return t=o(t),r(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r,o,i=n(31),c=n(137),u=i.process,a=u&&u.versions,s=a&&a.v8;s?o=(r=s.split("."))[0]+r[1]:c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},,function(t,e,n){var r=n(69),o=n(56),i=n(28)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},,,,,,function(t,e,n){var r=n(98),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=n(18),o=n(223),i=n(125),c=n(172),u=n(74),a=n(42),s=n(75),l=n(28),f=n(63),p=n(56),d=n(155),v=d.IteratorPrototype,h=d.BUGGY_SAFARI_ITERATORS,_=l("iterator"),y=function(){return this};t.exports=function(t,e,n,l,d,m,b){o(n,e,l);var g,O,x,w=function(t){if(t===d&&C)return C;if(!h&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},S=e+" Iterator",j=!1,k=t.prototype,P=k[_]||k["@@iterator"]||d&&k[d],C=!h&&P||w(d),E="Array"==e&&k.entries||P;if(E&&(g=i(E.call(new t)),v!==Object.prototype&&g.next&&(f||i(g)===v||(c?c(g,v):"function"!=typeof g[_]&&a(g,_,y)),u(g,S,!0,!0),f&&(p[S]=y))),"values"==d&&P&&"values"!==P.name&&(j=!0,C=function(){return P.call(this)}),f&&!b||k[_]===C||a(k,_,C),p[e]=C,d)if(O={values:w("values"),keys:m?C:w("keys"),entries:w("entries")},b)for(x in O)(h||j||!(x in k))&&s(k,x,O[x]);else r({target:e,proto:!0,forced:h||j},O);return O}},function(t,e,n){var r=n(45);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(28);e.f=r},,,function(t,e,n){"use strict";e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=u(n(347)),i=u(n(348)),c=n(120);function u(t){return t&&t.__esModule?t:{default:t}}e.createLocation=function(t,e,n,i){var u=void 0;return"string"==typeof t?(u=(0,c.parsePath)(t)).state=e:(void 0===(u=r({},t)).pathname&&(u.pathname=""),u.search?"?"!==u.search.charAt(0)&&(u.search="?"+u.search):u.search="",u.hash?"#"!==u.hash.charAt(0)&&(u.hash="#"+u.hash):u.hash="",void 0!==e&&void 0===u.state&&(u.state=e)),u.key=n,i&&(u.pathname?"/"!==u.pathname.charAt(0)&&(u.pathname=(0,o.default)(u.pathname,i.pathname)):u.pathname=i.pathname),u},e.locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,i.default)(t.state,e.state)}},,,,,function(t,e,n){n(213);var r=n(27).Object,o=t.exports=function(t,e,n){return r.defineProperty(t,e,n