/* Onfido SDK 5.9.1 */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Onfido=e():t.Onfido=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/5.9.1/",n(n.s=567)}([function(t,e,n){"use strict";n.r(e),n.d(e,"h",(function(){return u})),n.d(e,"createElement",(function(){return u})),n.d(e,"cloneElement",(function(){return p})),n.d(e,"createRef",(function(){return U})),n.d(e,"Component",(function(){return R})),n.d(e,"render",(function(){return F})),n.d(e,"rerender",(function(){return y})),n.d(e,"options",(function(){return o}));var r=function(){},o={},i=[],c=[];function u(t,e){var n,u,a,s,f=c;for(s=arguments.length;s-- >2;)i.push(arguments[s]);for(e&&null!=e.children&&(i.length||i.push(e.children),delete e.children);i.length;)if((u=i.pop())&&void 0!==u.pop)for(s=u.length;s--;)i.push(u[s]);else"boolean"==typeof u&&(u=null),(a="function"!=typeof t)&&(null==u?u="":"number"==typeof u?u=String(u):"string"!=typeof u&&(a=!1)),a&&n?f[f.length-1]+=u:f===c?f=[u]:f.push(u),n=a;var p=new r;return p.nodeName=t,p.children=f,p.attributes=null==e?void 0:e,p.key=null==e?void 0:e.key,void 0!==o.vnode&&o.vnode(p),p}function a(t,e){for(var n in e)t[n]=e[n];return t}function s(t,e){t&&("function"==typeof t?t(e):t.current=e)}var f="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function p(t,e){return u(t.nodeName,a(a({},t.attributes),e),arguments.length>2?[].slice.call(arguments,2):t.children)}var l=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,v=[];function d(t){!t._dirty&&(t._dirty=!0)&&1==v.push(t)&&(o.debounceRendering||f)(y)}function y(){for(var t;t=v.pop();)t._dirty&&D(t)}function h(t,e,n){return"string"==typeof e||"number"==typeof e?void 0!==t.splitText:"string"==typeof e.nodeName?!t._componentConstructor&&m(t,e.nodeName):n||t._componentConstructor===e.nodeName}function m(t,e){return t.normalizedNodeName===e||t.nodeName.toLowerCase()===e.toLowerCase()}function b(t){var e=a({},t.attributes);e.children=t.children;var n=t.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===e[r]&&(e[r]=n[r]);return e}function g(t){var e=t.parentNode;e&&e.removeChild(t)}function x(t,e,n,r,o){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)s(n,null),s(r,t);else if("class"!==e||o)if("style"===e){if(r&&"string"!=typeof r&&"string"!=typeof n||(t.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(t.style[i]="");for(var i in r)t.style[i]="number"==typeof r[i]&&!1===l.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===e)r&&(t.innerHTML=r.__html||"");else if("o"==e[0]&&"n"==e[1]){var c=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),r?n||t.addEventListener(e,w,c):t.removeEventListener(e,w,c),(t._listeners||(t._listeners={}))[e]=r}else if("list"!==e&&"type"!==e&&!o&&e in t){try{t[e]=null==r?"":r}catch(t){}null!=r&&!1!==r||"spellcheck"==e||t.removeAttribute(e)}else{var u=o&&e!==(e=e.replace(/^xlink:?/,""));null==r||!1===r?u?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof r&&(u?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),r):t.setAttribute(e,r))}else t.className=r||""}function w(t){return this._listeners[t.type](o.event&&o.event(t)||t)}var O=[],S=0,_=!1,j=!1;function C(){for(var t;t=O.shift();)o.afterMount&&o.afterMount(t),t.componentDidMount&&t.componentDidMount()}function k(t,e,n,r,o,i){S++||(_=null!=o&&void 0!==o.ownerSVGElement,j=null!=t&&!("__preactattr_"in t));var c=P(t,e,n,r,i);return o&&c.parentNode!==o&&o.appendChild(c),--S||(j=!1,i||C()),c}function P(t,e,n,r,o){var i=t,c=_;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||o)?t.nodeValue!=e&&(t.nodeValue=e):(i=document.createTextNode(e),t&&(t.parentNode&&t.parentNode.replaceChild(i,t),A(t,!0))),i.__preactattr_=!0,i;var u,a,s=e.nodeName;if("function"==typeof s)return function(t,e,n,r){var o=t&&t._component,i=o,c=t,u=o&&t._componentConstructor===e.nodeName,a=u,s=b(e);for(;o&&!a&&(o=o._parentComponent);)a=o.constructor===e.nodeName;o&&a&&(!r||o._component)?(L(o,s,3,n,r),t=o.base):(i&&!u&&(I(i),t=c=null),o=M(e.nodeName,s,n),t&&!o.nextBase&&(o.nextBase=t,c=null),L(o,s,1,n,r),t=o.base,c&&t!==c&&(c._component=null,A(c,!1)));return t}(t,e,n,r);if(_="svg"===s||"foreignObject"!==s&&_,s=String(s),(!t||!m(t,s))&&(u=s,(a=_?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u)).normalizedNodeName=u,i=a,t)){for(;t.firstChild;)i.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(i,t),A(t,!0)}var f=i.firstChild,p=i.__preactattr_,l=e.children;if(null==p){p=i.__preactattr_={};for(var v=i.attributes,d=v.length;d--;)p[v[d].name]=v[d].value}return!j&&l&&1===l.length&&"string"==typeof l[0]&&null!=f&&void 0!==f.splitText&&null==f.nextSibling?f.nodeValue!=l[0]&&(f.nodeValue=l[0]):(l&&l.length||null!=f)&&function(t,e,n,r,o){var i,c,u,a,s,f=t.childNodes,p=[],l={},v=0,d=0,y=f.length,m=0,b=e?e.length:0;if(0!==y)for(var x=0;x<y;x++){var w=f[x],O=w.__preactattr_;null!=(S=b&&O?w._component?w._component.__key:O.key:null)?(v++,l[S]=w):(O||(void 0!==w.splitText?!o||w.nodeValue.trim():o))&&(p[m++]=w)}if(0!==b)for(x=0;x<b;x++){var S;if(a=e[x],s=null,null!=(S=a.key))v&&void 0!==l[S]&&(s=l[S],l[S]=void 0,v--);else if(d<m)for(i=d;i<m;i++)if(void 0!==p[i]&&h(c=p[i],a,o)){s=c,p[i]=void 0,i===m-1&&m--,i===d&&d++;break}s=P(s,a,n,r),u=f[x],s&&s!==t&&s!==u&&(null==u?t.appendChild(s):s===u.nextSibling?g(u):t.insertBefore(s,u))}if(v)for(var x in l)void 0!==l[x]&&A(l[x],!1);for(;d<=m;)void 0!==(s=p[m--])&&A(s,!1)}(i,l,n,r,j||null!=p.dangerouslySetInnerHTML),function(t,e,n){var r;for(r in n)e&&null!=e[r]||null==n[r]||x(t,r,n[r],n[r]=void 0,_);for(r in e)"children"===r||"innerHTML"===r||r in n&&e[r]===("value"===r||"checked"===r?t[r]:n[r])||x(t,r,n[r],n[r]=e[r],_)}(i,e.attributes,p),_=c,i}function A(t,e){var n=t._component;n?I(n):(null!=t.__preactattr_&&s(t.__preactattr_.ref,null),!1!==e&&null!=t.__preactattr_||g(t),E(t))}function E(t){for(t=t.lastChild;t;){var e=t.previousSibling;A(t,!0),t=e}}var T=[];function M(t,e,n){var r,o=T.length;for(t.prototype&&t.prototype.render?(r=new t(e,n),R.call(r,e,n)):((r=new R(e,n)).constructor=t,r.render=N);o--;)if(T[o].constructor===t)return r.nextBase=T[o].nextBase,T.splice(o,1),r;return r}function N(t,e,n){return this.constructor(t,n)}function L(t,e,n,r,i){t._disable||(t._disable=!0,t.__ref=e.ref,t.__key=e.key,delete e.ref,delete e.key,void 0===t.constructor.getDerivedStateFromProps&&(!t.base||i?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(e,r)),r&&r!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=r),t.prevProps||(t.prevProps=t.props),t.props=e,t._disable=!1,0!==n&&(1!==n&&!1===o.syncComponentUpdates&&t.base?d(t):D(t,1,i)),s(t.__ref,t))}function D(t,e,n,r){if(!t._disable){var i,c,u,s=t.props,f=t.state,p=t.context,l=t.prevProps||s,v=t.prevState||f,d=t.prevContext||p,y=t.base,h=t.nextBase,m=y||h,g=t._component,x=!1,w=d;if(t.constructor.getDerivedStateFromProps&&(f=a(a({},f),t.constructor.getDerivedStateFromProps(s,f)),t.state=f),y&&(t.props=l,t.state=v,t.context=d,2!==e&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(s,f,p)?x=!0:t.componentWillUpdate&&t.componentWillUpdate(s,f,p),t.props=s,t.state=f,t.context=p),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!x){i=t.render(s,f,p),t.getChildContext&&(p=a(a({},p),t.getChildContext())),y&&t.getSnapshotBeforeUpdate&&(w=t.getSnapshotBeforeUpdate(l,v));var _,j,P=i&&i.nodeName;if("function"==typeof P){var E=b(i);(c=g)&&c.constructor===P&&E.key==c.__key?L(c,E,1,p,!1):(_=c,t._component=c=M(P,E,p),c.nextBase=c.nextBase||h,c._parentComponent=t,L(c,E,0,p,!1),D(c,1,n,!0)),j=c.base}else u=m,(_=g)&&(u=t._component=null),(m||1===e)&&(u&&(u._component=null),j=k(u,i,p,n||!y,m&&m.parentNode,!0));if(m&&j!==m&&c!==g){var T=m.parentNode;T&&j!==T&&(T.replaceChild(j,m),_||(m._component=null,A(m,!1)))}if(_&&I(_),t.base=j,j&&!r){for(var N=t,R=t;R=R._parentComponent;)(N=R).base=j;j._component=N,j._componentConstructor=N.constructor}}for(!y||n?O.push(t):x||(t.componentDidUpdate&&t.componentDidUpdate(l,v,w),o.afterUpdate&&o.afterUpdate(t));t._renderCallbacks.length;)t._renderCallbacks.pop().call(t);S||r||C()}}function I(t){o.beforeUnmount&&o.beforeUnmount(t);var e=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var n=t._component;n?I(n):e&&(null!=e.__preactattr_&&s(e.__preactattr_.ref,null),t.nextBase=e,g(e),T.push(t),E(e)),s(t.__ref,null)}function R(t,e){this._dirty=!0,this.context=e,this.props=t,this.state=this.state||{},this._renderCallbacks=[]}function F(t,e,n){return k(n,t,{},!1,e,!1)}function U(){return{}}a(R.prototype,{setState:function(t,e){this.prevState||(this.prevState=this.state),this.state=a(a({},this.state),"function"==typeof t?t(this.state,this.props):t),e&&this._renderCallbacks.push(e),d(this)},forceUpdate:function(t){t&&this._renderCallbacks.push(t),D(this,2)},render:function(){}});var B={h:u,createElement:u,cloneElement:p,createRef:U,Component:R,render:F,rerender:y,options:o};e.default=B},function(t,e,n){var r=n(136);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){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){t.exports=n(248)},function(t,e,n){var r=n(93),o=n(2);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){var r=n(233),o=n(139);function i(e){return t.exports=i=o?r:function(t){return t.__proto__||r(t)},i(e)}t.exports=i},function(t,e,n){var r=n(240),o=n(244);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=r(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},function(t,e,n){var r=n(136);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(t,o.key,o)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}},function(t,e,n){"use strict";var r=n(29),o=n(63).f,i=n(154),c=n(20),u=n(69),a=n(35),s=n(32),f=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,p,l,v,d,y,h,m,b=t.target,g=t.global,x=t.stat,w=t.proto,O=g?r:x?r[b]:(r[b]||{}).prototype,S=g?c:c[b]||(c[b]={}),_=S.prototype;for(l in e)n=!i(g?l:b+(x?".":"#")+l,t.forced)&&O&&s(O,l),d=S[l],n&&(y=t.noTargetGet?(m=o(O,l))&&m.value:O[l]),v=n&&y?y:e[l],n&&typeof d==typeof v||(h=t.bind&&n?u(v,r):t.wrap&&n?f(v):w&&"function"==typeof v?u(Function.call,v):v,(t.sham||v&&v.sham||d&&d.sham)&&a(h,"sham",!0),S[l]=h,w&&(s(c,p=b+"Prototype")||a(c,p,{}),c[p][l]=v,t.real&&_&&!_[l]&&a(_,l,v)))}},,,function(t,e,n){t.exports=n(179)},function(t,e,n){t.exports=n(200)},,function(t,e,n){var r=n(317);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(175)},function(t,e,n){t.exports=n(191)},function(t,e,n){t.exports=n(198)},function(t,e,n){t.exports=n(194)},function(t,e){t.exports={}},function(t,e,n){var r=n(20),o=n(32),i=n(102),c=n(36).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||c(e,t,{value:i.f(t)})}},,function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,function(t,e,n){var r=n(29),o=n(99),i=n(32),c=n(87),u=n(100),a=n(134),s=o("wks"),f=r.Symbol,p=a?f:f&&f.withoutSetter||c;t.exports=function(t){return i(s,t)||(u&&i(f,t)?s[t]=f[t]:s[t]=p("Symbol."+t)),s[t]}},function(t,e,n){t.exports=n(170)},function(t,e,n){var r=n(23);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){t.exports=n(172)},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(95))},,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(20);t.exports=function(t){return r[t+"Prototype"]}},,function(t,e,n){var r=n(27),o=n(36),i=n(55);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(27),o=n(128),i=n(40),c=n(76),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(75),o=n(58);t.exports=function(t){return r(o(t))}},,function(t,e,n){var r=n(58);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(31);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(27),o=n(23),i=n(32),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,f=i(e,0)?e[0]:a,p=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,f,p)}))}},,,,,,function(t,e,n){var r=n(90),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(20),o=n(29),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){t.exports={}},function(t,e,n){var r=n(101),o=n(36).f,i=n(35),c=n(32),u=n(184),a=n(25)("toStringTag");t.exports=function(t,e,n,s){if(t){var f=n?t:t.prototype;c(f,a)||o(f,a,{configurable:!0,value:e}),s&&!r&&i(f,"toString",u)}}},function(t,e,n){var r=n(69),o=n(75),i=n(39),c=n(47),u=n(116),a=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,f=4==t,p=6==t,l=5==t||p;return function(v,d,y,h){for(var m,b,g=i(v),x=o(g),w=r(d,y,3),O=c(x.length),S=0,_=h||u,j=e?_(v,O):n?_(v,0):void 0;O>S;S++)if((l||S in x)&&(b=w(m=x[S],S,g),t))if(e)j[S]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:a.call(j,m)}else if(f)return!1;return p?-1:s||f?f: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){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},,,function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r,o,i,c=n(181),u=n(29),a=n(31),s=n(35),f=n(32),p=n(79),l=n(66),v=u.WeakMap;if(c){var d=new v,y=d.get,h=d.has,m=d.set;r=function(t,e){return m.call(d,t,e),e},o=function(t){return y.call(d,t)||{}},i=function(t){return h.call(d,t)}}else{var b=p("state");l[b]=!0,r=function(t,e){return s(t,b,e),e},o=function(t){return f(t,b)?t[b]:{}},i=function(t){return f(t,b)}}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){t.exports=!0},function(t,e,n){t.exports=n(254)},,function(t,e,n){var r=n(27),o=n(86),i=n(55),c=n(37),u=n(76),a=n(32),s=n(128),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=c(t),e=u(e,!0),s)try{return f(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(130),o=n(96);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports={}},function(t,e,n){n(180);var r=n(186),o=n(29),i=n(70),c=n(35),u=n(51),a=n(25)("toStringTag");for(var s in r){var f=o[s],p=f&&f.prototype;p&&i(p)!==a&&c(p,a,s),u[s]=u.Array}},function(t,e,n){var r=n(64);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(77);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=n(101),o=n(64),i=n(25)("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){"use strict";var r=n(207).charAt,o=n(59),i=n(107),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";n.d(e,"e",(function(){return A})),n.d(e,"d",(function(){return E})),n.d(e,"c",(function(){return T})),n.d(e,"a",(function(){return M})),n.d(e,"b",(function(){return N}));var r,o,i=n(26),c=n.n(i),u=n(28),a=n.n(u),s=n(16),f=n.n(s),p=n(12),l=n.n(p),v=n(17),d=n.n(v),y=n(18),h=n.n(y),m=n(13),b=n.n(m),g=n(1),x=n.n(g),w=n(146),O=n.n(w),S=n(19),_=n.n(S),j=n(123),C=n.n(j),k=n(61);function P(t,e){var n=b()(t);if(h.a){var r=h()(t);e&&(r=_()(r).call(r,(function(e){return d()(t,e).enumerable}))),n.push.apply(n,r)}return n}var A=n.n(k)()(r=C()(o=window.location.search).call(o,1).split("&")).call(r,(function(t,e){return t[(e=e.split("="))[0]]=decodeURIComponent(e[1]),t}),{}),E=function(){var t;if(A.link_id)return{mobileFlow:!0,roomId:A.link_id.substring(2)};var e="customTranslations"===A.language?{locale:"fr",phrases:{"welcome.title":"Ouvrez votre nouveau compte bancaire"}}:A.language,n=_()(t=["welcome","true"===A.poa&&{type:"poa"},{type:"document",options:{useLiveDocumentCapture:"true"===A.useLiveDocumentCapture,uploadFallback:"false"!==A.uploadFallback,useWebcam:"true"===A.useWebcam,documentTypes:"true"===A.oneDoc?{passport:!0}:{},forceCrossDevice:"true"===A.forceCrossDevice}},{type:"face",options:{requestedVariant:"true"===A.liveness?"video":"standard",useUploader:"true"===A.useUploader,uploadFallback:"false"!==A.uploadFallback,useMultipleSelfieCapture:"true"===A.useMultipleSelfieCapture,snapshotInterval:A.snapshotInterval?O()(A.snapshotInterval,10):1e3}},"true"!==A.noCompleteStep&&"complete"]).call(t,Boolean),r=A.countryCode?{smsNumberCountryCode:A.countryCode}:{};return function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)l()(n=P(Object(r),!0)).call(n,(function(e){x()(t,e,r[e])}));else if(f.a)a()(t,f()(r));else{var o;l()(o=P(Object(r))).call(o,(function(e){c()(t,e,d()(r,e))}))}}return t}({useModal:"true"===A.useModal,shouldCloseOnOverlayClick:"true"!==A.shouldCloseOnOverlayClick,language:e,disableAnalytics:"true"===A.disableAnalytics,steps:n,mobileFlow:!1,userDetails:{smsNumber:A.smsNumber}},r)},T={standard:null,liveness:["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"],"multiple selfie":["welcome","document",{type:"face",options:{useMultipleSelfieCapture:!0}},"complete"]},M={en:"en",es:"es","custom (fr)":{locale:"fr",phrases:{"welcome.title":"Ouvrez votre nouveau compte bancaire"}}},N=["EU","US","CA"]},,function(t,e,n){var r=n(23),o=n(64),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,n){var r=n(31);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){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){"use strict";var r=n(76),o=n(36),i=n(55);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(99),o=n(87),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r,o=n(40),i=n(129),c=n(96),u=n(66),a=n(156),s=n(112),f=n(79),p=f("IE_PROTO"),l=function(){},v=function(t){return"<script>"+t+"<\/script>"},d=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;d=r?function(t){t.write(v("")),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(v("document.F=Object")),t.close(),t.F);for(var n=c.length;n--;)delete d.prototype[c[n]];return d()};u[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=o(t),n=new l,l.prototype=null,n[p]=t):n=d(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(23),o=n(25),i=n(117),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){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){"use strict";var r=n(23);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},,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(32),o=n(39),i=n(79),c=n(133),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=n(35);t.exports=function(t,e,n,o){o&&o.enumerable?t[e]=n:r(t,e,n)}},function(t,e,n){var r=n(204),o=n(208);function i(e){return t.exports=i="function"==typeof o&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t},i(e)}t.exports=i},,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){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(130),o=n(96).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(60),o=n(131);(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(23);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){var r={};r[n(25)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(25);e.f=r},,,,function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r=n(9),o=n(183),i=n(91),c=n(115),u=n(52),a=n(35),s=n(92),f=n(25),p=n(60),l=n(51),v=n(132),d=v.IteratorPrototype,y=v.BUGGY_SAFARI_ITERATORS,h=f("iterator"),m=function(){return this};t.exports=function(t,e,n,f,v,b,g){o(n,e,f);var x,w,O,S=function(t){if(t===v&&P)return P;if(!y&&t in C)return C[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",j=!1,C=t.prototype,k=C[h]||C["@@iterator"]||v&&C[v],P=!y&&k||S(v),A="Array"==e&&C.entries||k;if(A&&(x=i(A.call(new t)),d!==Object.prototype&&x.next&&(p||i(x)===d||(c?c(x,d):"function"!=typeof x[h]&&a(x,h,m)),u(x,_,!0,!0),p&&(l[_]=m))),"values"==v&&k&&"values"!==k.name&&(j=!0,P=function(){return k.call(this)}),p&&!g||C[h]===P||a(C,h,P),l[e]=P,v)if(w={values:S("values"),keys:b?P:S("keys"),entries:S("entries")},g)for(O in w)(y||j||!(O in C))&&s(C,O,w[O]);else r({target:e,proto:!0,forced:y||j},w);return w}},,,,,function(t,e,n){var r=n(29),o=n(31),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,e,n){var r=n(37),o=n(47),i=n(114),c=function(t){return function(e,n,c){var u,a=r(e),s=o(a.length),f=i(c,s);if(t&&n!=n){for(;s>f;)if((u=a[f++])!=u)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},function(t,e,n){var r=n(90),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){var r=n(40),o=n(185);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var r=n(31),o=n(68),i=n(25)("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){var r,o,i=n(29),c=n(142),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){},,function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},,,function(t,e,n){t.exports=n(258)},,,,function(t,e,n){n(171);var r=n(20).Object,o=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(o.sham=!0)},function(t,e,n){var r=n(27),o=n(23),i=n(112);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(27),o=n(36),i=n(40),c=n(65);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=c(e),u=r.length,a=0;u>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e,n){var r=n(32),o=n(37),i=n(113).indexOf,c=n(66);t.exports=function(t,e){var n,u=o(t),a=0,s=[];for(n in u)!r(c,n)&&r(u,n)&&s.push(n);for(;e.length>a;)r(u,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(29),o=n(182),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){"use strict";var r,o,i,c=n(91),u=n(35),a=n(32),s=n(25),f=n(60),p=s("iterator"),l=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):l=!0),null==r&&(r={}),f||a(r,p)||u(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:l}},function(t,e,n){var r=n(23);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(100);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){"use strict";var r=n(9),o=n(29),i=n(48),c=n(60),u=n(27),a=n(100),s=n(134),f=n(23),p=n(32),l=n(68),v=n(31),d=n(40),y=n(39),h=n(37),m=n(76),b=n(55),g=n(80),x=n(65),w=n(97),O=n(199),S=n(98),_=n(63),j=n(36),C=n(86),k=n(35),P=n(92),A=n(99),E=n(79),T=n(66),M=n(87),N=n(25),L=n(102),D=n(21),I=n(52),R=n(59),F=n(53).forEach,U=E("hidden"),B=N("toPrimitive"),W=R.set,V=R.getterFor("Symbol"),G=Object.prototype,H=o.Symbol,z=i("JSON","stringify"),q=_.f,K=j.f,J=O.f,Y=C.f,X=A("symbols"),$=A("op-symbols"),Q=A("string-to-symbol-registry"),Z=A("symbol-to-string-registry"),tt=A("wks"),et=o.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=u&&f((function(){return 7!=g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(G,e);r&&delete G[e],K(t,e,n),r&&t!==G&&K(G,e,r)}:K,ot=function(t,e){var n=X[t]=g(H.prototype);return W(n,{type:"Symbol",tag:t,description:e}),u||(n.description=e),n},it=s?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof H},ct=function(t,e,n){t===G&&ct($,e,n),d(t);var r=m(e,!0);return d(n),p(X,r)?(n.enumerable?(p(t,U)&&t[U][r]&&(t[U][r]=!1),n=g(n,{enumerable:b(0,!1)})):(p(t,U)||K(t,U,b(1,{})),t[U][r]=!0),rt(t,r,n)):K(t,r,n)},ut=function(t,e){d(t);var n=h(e),r=x(n).concat(pt(n));return F(r,(function(e){u&&!at.call(n,e)||ct(t,e,n[e])})),t},at=function(t){var e=m(t,!0),n=Y.call(this,e);return!(this===G&&p(X,e)&&!p($,e))&&(!(n||!p(this,e)||!p(X,e)||p(this,U)&&this[U][e])||n)},st=function(t,e){var n=h(t),r=m(e,!0);if(n!==G||!p(X,r)||p($,r)){var o=q(n,r);return!o||!p(X,r)||p(n,U)&&n[U][r]||(o.enumerable=!0),o}},ft=function(t){var e=J(h(t)),n=[];return F(e,(function(t){p(X,t)||p(T,t)||n.push(t)})),n},pt=function(t){var e=t===G,n=J(e?$:h(t)),r=[];return F(n,(function(t){!p(X,t)||e&&!p(G,t)||r.push(X[t])})),r};(a||(P((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=M(t),n=function(t){this===G&&n.call($,t),p(this,U)&&p(this[U],e)&&(this[U][e]=!1),rt(this,e,b(1,t))};return u&&nt&&rt(G,e,{configurable:!0,set:n}),ot(e,t)}).prototype,"toString",(function(){return V(this).tag})),P(H,"withoutSetter",(function(t){return ot(M(t),t)})),C.f=at,j.f=ct,_.f=st,w.f=O.f=ft,S.f=pt,L.f=function(t){return ot(N(t),t)},u&&(K(H.prototype,"description",{configurable:!0,get:function(){return V(this).description}}),c||P(G,"propertyIsEnumerable",at,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:H}),F(x(tt),(function(t){D(t)})),r({target:"Symbol",stat:!0,forced:!a},{for:function(t){var e=String(t);if(p(Q,e))return Q[e];var n=H(e);return Q[e]=n,Z[n]=e,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(p(Z,t))return Z[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!u},{create:function(t,e){return void 0===e?g(t):ut(g(t),e)},defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:st}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:ft,getOwnPropertySymbols:pt}),r({target:"Object",stat:!0,forced:f((function(){S.f(1)}))},{getOwnPropertySymbols:function(t){return S.f(y(t))}}),z)&&r({target:"JSON",stat:!0,forced:!a||f((function(){var t=H();return"[null]"!=z([t])||"{}"!=z({a:t})||"{}"!=z(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(v(e)||void 0!==t)&&!it(t))return l(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!it(e))return e}),o[1]=e,z.apply(null,o)}});H.prototype[B]||k(H.prototype,B,H.prototype.valueOf),I(H,"Symbol"),T[U]=!0},function(t,e,n){t.exports=n(202)},function(t,e,n){n(21)("iterator")},function(t,e,n){"use strict";var r=n(9),o=n(23),i=n(68),c=n(31),u=n(39),a=n(47),s=n(78),f=n(116),p=n(81),l=n(25),v=n(117),d=l("isConcatSpreadable"),y=v>=51||!o((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),h=p("concat"),m=function(t){if(!c(t))return!1;var e=t[d];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!y||!h},{concat:function(t){var e,n,r,o,i,c=u(this),p=f(c,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?c:arguments[e],m(i)){if(l+(o=a(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&s(p,l,i[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(p,l++,i)}return p.length=l,p}})},function(t,e,n){t.exports=n(237)},,,function(t,e,n){var r=n(48);t.exports=r("navigator","userAgent")||""},function(t,e,n){n(135);var r=n(20);t.exports=r.Object.getOwnPropertySymbols},function(t,e,n){n(201);var r=n(20);t.exports=r.Object.keys},,function(t,e,n){t.exports=n(262)},,,,,,,,function(t,e,n){var r=n(23),o=/#|\.prototype\./,i=function(t,e){var n=u[c(t)];return n==s||n!=a&&("function"==typeof e?r(e):!!e)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(131),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(48);t.exports=r("document","documentElement")},function(t,e,n){n(231);var r=n(20);t.exports=r.Object.assign},,function(t,e,n){var r=n(58),o="["+n(120)+"]",i=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),u=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},function(t,e,n){var r=n(77),o=n(39),i=n(75),c=n(47),u=function(t){return function(e,n,u,a){r(n);var s=o(e),f=i(s),p=c(s.length),l=t?p-1:0,v=t?-1:1;if(u<2)for(;;){if(l in f){a=f[l],l+=v;break}if(l+=v,t?l<0:p<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:p>l;l+=v)l in f&&(a=n(a,f[l],l,s));return a}};t.exports={left:u(!1),right:u(!0)}},,,,,,,,,,function(t,e,n){var r=n(127);t.exports=r},function(t,e,n){var r=n(9),o=n(27);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(36).f})},function(t,e,n){var r=n(173);t.exports=r},function(t,e,n){n(174);var r=n(20).Object,o=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(o.sham=!0)},function(t,e,n){var r=n(9),o=n(27);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(129)})},function(t,e,n){var r=n(176);t.exports=r},function(t,e,n){n(177);var r=n(20);t.exports=r.Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(9),o=n(27),i=n(178),c=n(37),u=n(63),a=n(78);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=c(t),o=u.f,s=i(r),f={},p=0;s.length>p;)void 0!==(n=o(r,e=s[p++]))&&a(f,e,n);return f}})},function(t,e,n){var r=n(48),o=n(97),i=n(98),c=n(40);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){n(67);var r=n(187),o=n(70),i=Array.prototype,c={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===i||t instanceof Array&&e===i.forEach||c.hasOwnProperty(o(t))?r:e}},function(t,e,n){"use strict";var r=n(37),o=n(106),i=n(51),c=n(59),u=n(107),a=c.set,s=c.getterFor("Array Iterator");t.exports=u(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(29),o=n(155),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(29),o=n(35);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){"use strict";var r=n(132).IteratorPrototype,o=n(80),i=n(55),c=n(52),u=n(51),a=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),c(t,s,!1,!0),u[s]=a,t}},function(t,e,n){"use strict";var r=n(101),o=n(70);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(31);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(188);t.exports=r},function(t,e,n){n(189);var r=n(33);t.exports=r("Array").forEach},function(t,e,n){"use strict";var r=n(9),o=n(190);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){"use strict";var r=n(53).forEach,o=n(88),i=n(41),c=o("forEach"),u=i("forEach");t.exports=c&&u?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(192);t.exports=r},function(t,e,n){n(193);var r=n(20).Object,o=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(o.sham=!0)},function(t,e,n){var r=n(9),o=n(23),i=n(37),c=n(63).f,u=n(27),a=o((function(){c(1)}));r({target:"Object",stat:!0,forced:!u||a,sham:!u},{getOwnPropertyDescriptor:function(t,e){return c(i(t),e)}})},function(t,e,n){var r=n(195);t.exports=r},function(t,e,n){var r=n(196),o=Array.prototype;t.exports=function(t){var e=t.filter;return t===o||t instanceof Array&&e===o.filter?r:e}},function(t,e,n){n(197);var r=n(33);t.exports=r("Array").filter},function(t,e,n){"use strict";var r=n(9),o=n(53).filter,i=n(81),c=n(41),u=i("filter"),a=c("filter");r({target:"Array",proto:!0,forced:!u||!a},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(143);t.exports=r},function(t,e,n){var r=n(37),o=n(97).f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return c.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(144);t.exports=r},function(t,e,n){var r=n(9),o=n(39),i=n(65);r({target:"Object",stat:!0,forced:n(23)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,n){var r=n(127);t.exports=r},,function(t,e,n){t.exports=n(205)},function(t,e,n){var r=n(206);t.exports=r},function(t,e,n){n(137),n(71),n(67);var r=n(102);t.exports=r.f("iterator")},function(t,e,n){var r=n(90),o=n(58),i=function(t){return function(e,n){var i,c,u=String(o(e)),a=r(n),s=u.length;return a<0||a>=s?t?"":void 0:(i=u.charCodeAt(a))<55296||i>56319||a+1===s||(c=u.charCodeAt(a+1))<56320||c>57343?t?u.charAt(a):i:t?u.slice(a,a+2):c-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){t.exports=n(209)},function(t,e,n){var r=n(210);n(226),n(227),n(228),n(229),n(230),t.exports=r},function(t,e,n){n(138),n(118),n(135),n(211),n(212),n(213),n(214),n(137),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225);var r=n(20);t.exports=r.Symbol},function(t,e,n){n(21)("asyncIterator")},function(t,e){},function(t,e,n){n(21)("hasInstance")},function(t,e,n){n(21)("isConcatSpreadable")},function(t,e,n){n(21)("match")},function(t,e,n){n(21)("matchAll")},function(t,e,n){n(21)("replace")},function(t,e,n){n(21)("search")},function(t,e,n){n(21)("species")},function(t,e,n){n(21)("split")},function(t,e,n){n(21)("toPrimitive")},function(t,e,n){n(21)("toStringTag")},function(t,e,n){n(21)("unscopables")},function(t,e,n){n(52)(Math,"Math",!0)},function(t,e,n){var r=n(29);n(52)(r.JSON,"JSON",!0)},function(t,e,n){n(21)("asyncDispose")},function(t,e,n){n(21)("dispose")},function(t,e,n){n(21)("observable")},function(t,e,n){n(21)("patternMatch")},function(t,e,n){n(21)("replaceAll")},function(t,e,n){var r=n(9),o=n(232);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(27),o=n(23),i=n(65),c=n(98),u=n(86),a=n(39),s=n(75),f=Object.assign,p=Object.defineProperty;t.exports=!f||o((function(){if(r&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=a(t),o=arguments.length,f=1,p=c.f,l=u.f;o>f;)for(var v,d=s(arguments[f++]),y=p?i(d).concat(p(d)):i(d),h=y.length,m=0;h>m;)v=y[m++],r&&!l.call(d,v)||(n[v]=d[v]);return n}:f},function(t,e,n){t.exports=n(234)},function(t,e,n){var r=n(235);t.exports=r},function(t,e,n){n(236);var r=n(20);t.exports=r.Object.getPrototypeOf},function(t,e,n){var r=n(9),o=n(23),i=n(39),c=n(91),u=n(133);r({target:"Object",stat:!0,forced:o((function(){c(1)})),sham:!u},{getPrototypeOf:function(t){return c(i(t))}})},function(t,e,n){var r=n(238);t.exports=r},function(t,e,n){n(239);var r=n(20);t.exports=r.Object.setPrototypeOf},function(t,e,n){n(9)({target:"Object",stat:!0},{setPrototypeOf:n(115)})},function(t,e,n){t.exports=n(241)},function(t,e,n){var r=n(242);t.exports=r},function(t,e,n){n(243);var r=n(20).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(9)({target:"Object",stat:!0,sham:!n(27)},{create:n(80)})},function(t,e,n){var r=n(139);function o(e,n){return t.exports=o=r||function(t,e){return t.__proto__=e,t},o(e,n)}t.exports=o},,,,function(t,e,n){var r=n(249);t.exports=r},function(t,e,n){var r=n(250),o=Array.prototype;t.exports=function(t){var e=t.concat;return t===o||t instanceof Array&&e===o.concat?r:e}},function(t,e,n){n(138);var r=n(33);t.exports=r("Array").concat},,,,function(t,e,n){var r=n(255);t.exports=r},function(t,e,n){var r=n(256),o=Array.prototype;t.exports=function(t){var e=t.reduce;return t===o||t instanceof Array&&e===o.reduce?r:e}},function(t,e,n){n(257);var r=n(33);t.exports=r("Array").reduce},function(t,e,n){"use strict";var r=n(9),o=n(160).left,i=n(88),c=n(41),u=i("reduce"),a=c("reduce",{1:0});r({target:"Array",proto:!0,forced:!u||!a},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(259);t.exports=r},function(t,e,n){var r=n(260),o=Array.prototype;t.exports=function(t){var e=t.slice;return t===o||t instanceof Array&&e===o.slice?r:e}},function(t,e,n){n(261);var r=n(33);t.exports=r("Array").slice},function(t,e,n){"use strict";var r=n(9),o=n(31),i=n(68),c=n(114),u=n(47),a=n(37),s=n(78),f=n(25),p=n(81),l=n(41),v=p("slice"),d=l("slice",{ACCESSORS:!0,0:0,1:2}),y=f("species"),h=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!v||!d},{slice:function(t,e){var n,r,f,p=a(this),l=u(p.length),v=c(t,l),d=c(void 0===e?l:e,l);if(i(p)&&("function"!=typeof(n=p.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[y])&&(n=void 0):n=void 0,n===Array||void 0===n))return h.call(p,v,d);for(r=new(void 0===n?Array:n)(m(d-v,0)),f=0;v<d;v++,f++)v in p&&s(r,f,p[v]);return r.length=f,r}})},function(t,e,n){var r=n(263);t.exports=r},function(t,e,n){n(264);var r=n(20);t.exports=r.parseInt},function(t,e,n){var r=n(9),o=n(265);r({global:!0,forced:parseInt!=o},{parseInt:o})},function(t,e,n){var r=n(29),o=n(159).trim,i=n(120),c=r.parseInt,u=/^[+-]?0[Xx]/,a=8!==c(i+"08")||22!==c(i+"0x16");t.exports=a?function(t,e){var n=o(String(t));return c(n,e>>>0||(u.test(n)?16:10))}:c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=n(318)},function(t,e,n){var r=n(157);t.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(26),o=n.n(r),i=n(28),c=n.n(i),u=n(16),a=n.n(u),s=n(12),f=n.n(s),p=n(17),l=n.n(p),v=n(19),d=n.n(v),y=n(18),h=n.n(y),m=n(13),b=n.n(m),g=n(15),x=n.n(g),w=n(3),O=n.n(w),S=n(5),_=n.n(S),j=n(8),C=n.n(j),k=n(4),P=n.n(k),A=n(6),E=n.n(A),T=n(2),M=n.n(T),N=n(7),L=n.n(N),D=n(1),I=n.n(D),R=n(0),F=n(73);function U(t,e){var n=b()(t);if(h.a){var r=h()(t);e&&(r=d()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var B=window.Onfido,W=null,V=null,G=null;var H,z=function(t){switch(t){case"US":return"https://token-factory.us.onfido.com/sdk_token";case"CA":return"https://token-factory.ca.onfido.com/sdk_token";default:return"https://token-factory.onfido.com/sdk_token"}},q=function(t){function e(){var t,n,r;_()(this,e);for(var o=arguments.length,i=new Array(o),c=0;c<o;c++)i[c]=arguments[c];return r=P()(this,(t=E()(e)).call.apply(t,O()(n=[this]).call(n,i))),I()(M()(r),"initSDK",(function(t){t.mobileFlow||console.log("* JWT Factory URL:",G,"for",V,"in","production"),console.log("Calling `Onfido.init` with the following options:",t);var e=B.init(t);r.setState({onfidoSdk:e}),window.onfidoSdkHandle=e})),I()(M()(r),"render",(function(){return Object(R.h)("div",{id:"onfido-mount"})})),r}return L()(e,t),C()(e,[{key:"componentDidMount",value:function(){this.initSDK(this.props.options)}},{key:"componentWillReceiveProps",value:function(t){var e=t.options;this.state.onfidoSdk&&(this.state.onfidoSdk.setOptions(e),e.tearDown&&this.state.onfidoSdk.tearDown())}},{key:"componentWillUnmount",value:function(){this.state.onfidoSdk&&this.state.onfidoSdk.tearDown()}},{key:"shouldComponentUpdate",value:function(){return!1}}]),e}(R.Component),K=function(t){function e(t){var n;return _()(this,e),n=P()(this,E()(e).call(this,t)),I()(M()(n),"callTokenFactory",(function(){var t=(n.props.sdkOptions||{}).region;!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;V=(F.e.region||e||"EU").toUpperCase(),G=z(V);var r=new XMLHttpRequest;r.open("GET",G,!0),r.setRequestHeader("Authorization","BASIC NA"),r.onload=function(){if(r.status>=200&&r.status<400){var e=JSON.parse(r.responseText);t&&W.postMessage({type:"UPDATE_CHECK_DATA",payload:{applicantId:e.applicant_id}}),n(e.message)}},r.send()}(n.props.hasPreview,t,(function(t){n.setState({token:t})}))})),n.state={token:!1,isModalOpen:!1},n.callTokenFactory(),n}return L()(e,t),C()(e,[{key:"componentDidUpdate",value:function(t){var e=(this.props.sdkOptions||{}).region;(t.sdkOptions||{}).region!==e&&this.callTokenFactory()}},{key:"render",value:function(){var t=this;if((this.props.viewOptions||{}).tearDown)return"SDK has been torn down";var e=function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)f()(n=U(Object(r),!0)).call(n,(function(e){I()(t,e,r[e])}));else if(a.a)c()(t,a()(r));else{var i;f()(i=U(Object(r))).call(i,(function(e){o()(t,e,l()(r,e))}))}}return t}({},Object(F.d)(),{},this.state,{onComplete:function(e){return t.props.hasPreview?W.postMessage({type:"SDK_COMPLETE",data:e}):console.log(e)},onError:function(t){return console.error("onError callback:",t)},onModalRequestClose:function(){return t.setState({isModalOpen:!1})}},this.props.sdkOptions||{});return Object(R.h)("div",{class:"container"},e.useModal&&Object(R.h)("button",{id:"button",type:"button",onClick:function(){return t.setState({isModalOpen:!0})}},"Verify identity"),"false"===F.e.async&&null===this.state.token?null:Object(R.h)(q,{options:e}))}}]),e}(R.Component),J=document.getElementById("demo-app");window.addEventListener("message",(function(t){"init"!==t.data||W||((W=t.ports[0]).onmessage=Y)}));var Y=function(){"RENDER"===event.data.type?H=Object(R.render)(Object(R.h)(K,x()({},event.data.options,{hasPreview:!0})),J,H):"SDK_COMPLETE"===event.data.type&&console.log("everything is complete",event.data.data)};"/"===window.location.pathname?H=Object(R.render)(Object(R.h)(K,null),J,H):window.parent.postMessage("RENDER_DEMO_READY","*")}])}));
//# sourceMappingURL=demo.min.js.map