onfido-sdk-ui
Version:
JavaScript SDK view layer for Onfido identity verification
1 lines • 1.44 MB
JavaScript
module.exports=function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.e=function(){return Promise.resolve()},t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(n){return e[n]}.bind(null,r));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t.oe=function(e){process.nextTick((function(){throw e}))},t(t.s=436)}([function(e,n){e.exports=require("preact")},function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/defineProperty")},function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/assertThisInitialized")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/reflect/construct")},function(e,n,t){var o=t(27),r=t(325);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n){e.exports=require("classnames")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/concat")},function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/getPrototypeOf")},function(e,n,t){"use strict";t.d(n,"a",(function(){return J})),t.d(n,"c",(function(){return X})),t.d(n,"b",(function(){return Q}));var o=t(20),r=t.n(o),a=t(117),i=t.n(a),u=t(0),c=t(38),s=t(14),l=t(22),d=t.n(l),m=t(23),p=t.n(m),f=t(16),_=t.n(f),y=t(13),h=t.n(y),v=t(17),b=t.n(v),g=t(18),D=t.n(g),k=t(15),C=t.n(k),S=t(37),A=t.n(S),$=t(19),w=t.n($),E=t(73),x=t.n(E),U=t(1),N=t.n(U),I=t(179),O=t.n(I),M=t(180),L=t(181),P=t(182),F=t(183),q=t(184),T=t(185),R=t(33);function j(e,n){var t=C()(e);if(D.a){var o=D()(e);n&&(o=w()(o).call(o,(function(n){return b()(e,n).enumerable}))),t.push.apply(t,o)}return t}function B(e){for(var n=1;n<arguments.length;n++){var t,o=null!=arguments[n]?arguments[n]:{};if(n%2)h()(t=j(Object(o),!0)).call(t,(function(n){N()(e,n,o[n])}));else if(_.a)p()(e,_()(o));else{var r;h()(r=j(Object(o))).call(r,(function(n){d()(e,n,b()(o,n))}))}}return e}var z=B(B({},{en:M,es:L,de:P,fr:F,it:q,pt:T}),{},{en_US:M,es_ES:L,de_DE:P,fr_FR:F,it_IT:q,pt_PT:T}),G=function(){var e={};for(var n in z)({}).hasOwnProperty.call(z,n)&&(e[n]=z[n].mobilePhrases);return e}(),V=function(e,n,t,o){return n.locale(e),n.extend(t),s.k||n.extend(o),n},H=function(e,n){var t=e.phrases,o=e.mobilePhrases,r=C()(n.phrases),a=B(B({},t.mobilePhrases),o);!function(e,n,t){var o,r=new x.a(n),a=w()(e).call(e,(function(e){return!r.has(e)})),i=A()(o=C()(z)).call(o,(function(e){return e===t}));a.length&&!i&&console.warn("Missing keys:",a)}(r,function(e){return C()(new O.a({phrases:e}).phrases)}(B(B({},t),{},{mobilePhrases:a})),null==e?void 0:e.locale)},W=function(e,n){if(z[e])return V(e,n,z[e],G[e]);console.warn("Locale not supported")},K=function(e,n){return"string"==typeof e?W(e,n):function(e,n){var t=e.locale,o=e.phrases,r=e.mobilePhrases;H(e,n);var a=W(t,n)||n;return V(t,a,o,r)}(e,n)},Z=Object(R.c)((function(e){var n=function(){var e=new O.a({onMissingKey:function(){return null}});return V("en_US",e,z.en_US,G.en_US)}();return e&&K(e,n)||n})),Y=Object(u.createContext)(void 0),J=function(e){var n,t=e.language,o=e.children,r=Z(t),a=i()(n=r.t).call(n,r);return Object(u.h)(Y.Provider,{value:{language:r.currentLocale,translate:a,parseTranslatedTags:function(e,n){return Object(s.n)(a(e),n)}}},o)},X=function(){var e=Object(c.useContext)(Y);if(!e)throw new Error("LocaleContext hasn't been initialized!");return e},Q=function(e){return function(n){return Object(u.h)(Y.Consumer,null,(function(t){if(null==t)throw new Error("LocaleContext hasn't been initialized!");return Object(u.h)(e,r()({},n,t))}))}}},function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/classCallCheck")},function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/inherits")},function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn")},function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/createClass")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/for-each")},function(e,n,t){"use strict";t.d(n,"i",(function(){return Q})),t.d(n,"p",(function(){return ee})),t.d(n,"o",(function(){return ne})),t.d(n,"m",(function(){return oe})),t.d(n,"j",(function(){return re})),t.d(n,"k",(function(){return ae})),t.d(n,"l",(function(){return se})),t.d(n,"d",(function(){return fe})),t.d(n,"e",(function(){return _e})),t.d(n,"n",(function(){return ye})),t.d(n,"h",(function(){return he})),t.d(n,"g",(function(){return ve})),t.d(n,"f",(function(){return be})),t.d(n,"a",(function(){return ge})),t.d(n,"c",(function(){return De})),t.d(n,"b",(function(){return ke}));var o,r=t(22),a=t.n(r),i=t(23),u=t.n(i),c=t(16),s=t.n(c),l=t(13),d=t.n(l),m=t(17),p=t.n(m),f=t(18),_=t.n(f),y=t(15),h=t.n(y),v=t(122),b=t.n(v),g=t(1),D=t.n(g),k=t(252),C=t.n(k),S=t(24),A=t.n(S),$=t(253),w=t.n($),E=t(19),x=t.n(E),U=t(37),N=t.n(U),I=t(136),O=t.n(I),M=t(30),L=t.n(M),P=t(95),F=t.n(P),q=t(96),T=t.n(q),R=t(6),j=t.n(R),B=t(31),z=t.n(B),G=t(0),V=t(254),H=t.n(V),W=t(44),K={os:[{name:"Windows Phone",codeName:"Windows Phone",versionPrefix:"Windows Phone"},{name:"Windows",codeName:"Win",versionPrefix:"NT"},{name:"iPhone",codeName:"iPhone",versionPrefix:"OS"},{name:"iPad",codeName:"iPad",versionPrefix:"OS"},{name:"Kindle",codeName:"Silk",versionPrefix:"Silk"},{name:"Android",codeName:"Android",versionPrefix:"Android"},{name:"PlayBook",codeName:"PlayBook",versionPrefix:"OS"},{name:"BlackBerry",codeName:"BlackBerry",versionPrefix:"/"},{name:"Macintosh",codeName:"Mac",versionPrefix:"OS X"},{name:"Linux",codeName:"Linux",versionPrefix:"rv"},{name:"Palm",codeName:"Palm",versionPrefix:"PalmOS"}],browser:[{name:"BlackBerry",codeName:"CLDC",versionPrefix:"CLDC"},{name:"Edge",codeName:"Edg",versionPrefix:"Edg"},{name:"Opera",codeName:"OPR",versionPrefix:"OPR"},{name:"Opera Touch",codeName:"OPT",versionPrefix:"OPT"},{name:"Samsung Browser",codeName:"SamsungBrowser",versionPrefix:"SamsungBrowser"},{name:"UC Browser",codeName:"UCBrowser",versionPrefix:"UCBrowser"},{name:"Yandex",codeName:"YaBrowser",versionPrefix:"YaBrowser"},{name:"Firefox",codeName:"Firefox",versionPrefix:"Firefox"},{name:"Firefox iOS",codeName:"FxiOS",versionPrefix:"FxiOS"},{name:"Internet Explorer Mobile",codeName:"IEMobile",versionPrefix:"IEMobile"},{name:"Internet Explorer",codeName:"MSIE",versionPrefix:"MSIE"},{name:"Internet Explorer",codeName:"rv",versionPrefix:"rv"},{name:"Chrome",codeName:"Chrome",versionPrefix:"Chrome"},{name:"Chrome iOS",codeName:"CriOS",versionPrefix:"CriOS"},{name:"Safari",codeName:"Safari",versionPrefix:"Version"},{name:"Mozilla",codeName:"Mozilla",versionPrefix:"Mozilla"}]},Z=function(e){var n,t=[window.navigator.platform,window.navigator.userAgent,window.navigator.appVersion,window.navigator.vendor].join(" "),o=A()(n=K[e]).call(n,(function(e){var n=e.codeName,o=e.name,r=e.versionPrefix;if(!new RegExp(n,"gi").test(t))return null;var a=new RegExp("".concat(r,"[-\\s\\/:;]([\\d\\._]+)"),"i"),i=t.match(a);return{name:o,version:i&&i[1]?i[1].split(/[^\d]+/).join("."):"0"}}));return x()(o).call(o,W.c)[0]};function Y(e,n){var t=h()(e);if(_.a){var o=_()(e);n&&(o=x()(o).call(o,(function(n){return p()(e,n).enumerable}))),t.push.apply(t,o)}return t}function J(e){for(var n=1;n<arguments.length;n++){var t,o=null!=arguments[n]?arguments[n]:{};if(n%2)d()(t=Y(Object(o),!0)).call(t,(function(n){D()(e,n,o[n])}));else if(s.a)u()(e,s()(o));else{var r;d()(r=Y(Object(o))).call(r,(function(n){a()(e,n,p()(o,n))}))}}return e}var X=t(314),Q=function(e){return function(e,n){var t,o,r=X(n),a=z()(r,2),i=a[0],u=a[1];u!==e&&console.warn(j()(t=j()(o="The css @value: ".concat(n," unit is ")).call(o,u," but it should be ")).call(t,e));return i}("ms",e)},ee=function(e,n){return Object(G.h)("div",{className:e},n)},ne=function(e){return function(n){n.preventDefault(),e()}},te=(/iPad|iPhone|iPod/.test(navigator.platform||"")||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream,oe=function(){var e,n=navigator.userAgent,t=/Safari/.test(n)&&/Apple Computer/.test(navigator.vendor),o=T()(e=n.substring(F()(n).call(n,"Version/"),F()(n).call(n,"Safari/"))).call(e);return t&&L()(o).call(o,"13.1")},re=function(){console.warn("getMobileOSName - use of navigator.userAgent is highly discouraged unless absolutely necessary and only for simple use cases");var e=navigator.userAgent;return/android/i.test(e)?"UNSUPPORTED_ANDROID_BROWSER":te?"UNSUPPORTED_IOS_BROWSER":(console.error("Unable to determine mobile OS"),"INTERRUPTED_FLOW_ERROR")},ae=!/Android|webOS|BB10|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i.test(navigator.userAgent||"")&&!te,ie=L()(o=navigator.userAgent||"").call(o,"Windows"),ue=navigator.maxTouchPoints||navigator.msMaxTouchPoints,ce="ontouchstart"in window||ue>0||"function"==typeof window.matchMedia&&matchMedia("(any-pointer: coarse)").matches,se=ie&&ce,le=function(e){return function(n){return function(e,n){try{H()().then(e).catch(n)}catch(e){n(e)}}((function(t){return n(e(t))}),(function(){return n(!1)}))}},de=function(e){var n=e.kind,t=void 0===n?"":n;return L()(t).call(t,"input")},me=function(e){var n=e.kind,t=void 0===n?"":n;return L()(t).call(t,"video")},pe=function(e){return!!e.label},fe=le((function(e){return oe()?O()(e).call(e,de):N()(e).call(e,me)})),_e=le((function(e){var n;return N()(n=x()(e).call(e,de)).call(n,pe)})),ye=function(e,n){var t,o=(new DOMParser).parseFromString("<l>".concat(e,"</l>"),"application/xml"),r=w()((null===(t=o.firstChild)||void 0===t?void 0:t.childNodes)||[]);return A()(r).call(r,(function(e){var t=e.textContent||"";return e.nodeType===document.TEXT_NODE?t:n({type:e.tagName,text:t})}))},he=function(){return Math.floor(C()()/1e3)},ve=function(){return(new Date).getTime()},be=function(e,n){var t=document.createElement("input");document.body.appendChild(t),t.setAttribute("value",e),t.select(),document.execCommand("copy"),document.body.removeChild(t),n()},ge=function(e,n){var t=Z("os"),o=Z("browser"),r=J(J({},t&&{os:t.name,os_version:t.version}),o&&{browser:o.name,browser_version:o.version});return J(J({},e),{},{isCrossDeviceFlow:n,deviceType:ae?"desktop":"mobile",system:r})},De=function(e){return e?e.charAt(0).toUpperCase()+b()(e).call(e,1):e},ke=function(e){return btoa(unescape(encodeURIComponent(e)))}},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/object/keys")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/filter")},function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/extends")},function(e,n,t){"use strict";t.r(n),t.d(n,"version",(function(){return H})),t.d(n,"Children",(function(){return f})),t.d(n,"render",(function(){return E})),t.d(n,"hydrate",(function(){return x})),t.d(n,"unmountComponentAtNode",(function(){return Y})),t.d(n,"createPortal",(function(){return S})),t.d(n,"createFactory",(function(){return W})),t.d(n,"cloneElement",(function(){return Z})),t.d(n,"isValidElement",(function(){return K})),t.d(n,"findDOMNode",(function(){return J})),t.d(n,"PureComponent",(function(){return c})),t.d(n,"memo",(function(){return s})),t.d(n,"forwardRef",(function(){return m})),t.d(n,"unstable_batchedUpdates",(function(){return X})),t.d(n,"StrictMode",(function(){return Q})),t.d(n,"Suspense",(function(){return h})),t.d(n,"SuspenseList",(function(){return g})),t.d(n,"lazy",(function(){return b})),t.d(n,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return q})),t.d(n,"unstable_ImmediatePriority",(function(){return T})),t.d(n,"unstable_UserBlockingPriority",(function(){return R})),t.d(n,"unstable_NormalPriority",(function(){return j})),t.d(n,"unstable_LowPriority",(function(){return B})),t.d(n,"unstable_IdlePriority",(function(){return z})),t.d(n,"unstable_runWithPriority",(function(){return G})),t.d(n,"unstable_now",(function(){return V}));var o=t(42);for(var r in o)["createElement","createContext","createRef","Fragment","Component","version","Children","render","hydrate","unmountComponentAtNode","createPortal","createFactory","cloneElement","isValidElement","findDOMNode","PureComponent","memo","forwardRef","unstable_batchedUpdates","StrictMode","Suspense","SuspenseList","lazy","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","unstable_ImmediatePriority","unstable_UserBlockingPriority","unstable_NormalPriority","unstable_LowPriority","unstable_IdlePriority","unstable_runWithPriority","unstable_now","default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);var a=t(0);function i(e,n){for(var t in n)e[t]=n[t];return e}function u(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var o in n)if("__source"!==o&&e[o]!==n[o])return!0;return!1}function c(e){this.props=e}function s(e,n){function t(e){var t=this.props.ref,o=t==e.ref;return!o&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!o:u(this.props,e)}function o(n){return this.shouldComponentUpdate=t,Object(a.createElement)(e,n)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}t.d(n,"createElement",(function(){return a.createElement})),t.d(n,"createContext",(function(){return a.createContext})),t.d(n,"createRef",(function(){return a.createRef})),t.d(n,"Fragment",(function(){return a.Fragment})),t.d(n,"Component",(function(){return a.Component})),(c.prototype=new a.Component).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(e,n){return u(this.props,e)||u(this.state,n)};var l=a.options.__b;a.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l&&l(e)};var d="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function m(e){function n(n,t){var o=i({},n);return delete o.ref,e(o,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=d,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var p=function(e,n){return null==e?null:Object(a.toChildArray)(Object(a.toChildArray)(e).map(n))},f={map:p,forEach:p,count:function(e){return e?Object(a.toChildArray)(e).length:0},only:function(e){var n=Object(a.toChildArray)(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:a.toChildArray},_=a.options.__e;a.options.__e=function(e,n,t){if(e.then)for(var o,r=n;r=r.__;)if((o=r.__c)&&o.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),o.__c(e,n);_(e,n,t)};var y=a.options.unmount;function h(){this.__u=0,this.t=null,this.__b=null}function v(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function b(e){var n,t,o;function r(r){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){o=e})),o)throw o;if(!t)throw n;return Object(a.createElement)(t,r)}return r.displayName="Lazy",r.__f=!0,r}function g(){this.u=null,this.o=null}a.options.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),y&&y(e)},(h.prototype=new a.Component).__c=function(e,n){var t=n.__c,o=this;null==o.t&&(o.t=[]),o.t.push(t);var r=v(o.__v),a=!1,i=function(){a||(a=!0,t.__R=null,r?r(u):u())};t.__R=i;var u=function(){if(!--o.__u){if(o.state.__e){var e=o.state.__e;o.__v.__k[0]=function e(n,t,o){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return e(n,t,o)})),n.__c&&n.__c.__P===t&&(n.__e&&o.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=o)),n}(e,e.__c.__P,e.__c.__O)}var n;for(o.setState({__e:o.__b=null});n=o.t.pop();)n.forceUpdate()}},c=!0===n.__h;o.__u++||c||o.setState({__e:o.__b=o.__v.__k[0]}),e.then(i,i)},h.prototype.componentWillUnmount=function(){this.t=[]},h.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=function e(n,t,o){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),n.__c.__H=null),null!=(n=i({},n)).__c&&(n.__c.__P===o&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return e(n,t,o)}))),n}(this.__b,t,o.__O=o.__P)}this.__b=null}var r=n.__e&&Object(a.createElement)(a.Fragment,null,e.fallback);return r&&(r.__h=null),[Object(a.createElement)(a.Fragment,null,n.__e?null:e.children),r]};var D=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function k(e){return this.getChildContext=function(){return e.context},e.children}function C(e){var n=this,t=e.i;n.componentWillUnmount=function(){Object(a.render)(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),Object(a.render)(Object(a.createElement)(k,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}function S(e,n){return Object(a.createElement)(C,{__v:e,i:n})}(g.prototype=new a.Component).__e=function(e){var n=this,t=v(n.__v),o=n.o.get(e);return o[0]++,function(r){var a=function(){n.props.revealOrder?(o.push(r),D(n,e,o)):r()};t?t(a):a()}},g.prototype.render=function(e){this.u=null,this.o=new Map;var n=Object(a.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},g.prototype.componentDidUpdate=g.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){D(e,t,n)}))};var A="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,$=/^(?: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]/,w=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function E(e,n,t){return null==n.__k&&(n.textContent=""),Object(a.render)(e,n),"function"==typeof t&&t(),e?e.__c:null}function x(e,n,t){return Object(a.hydrate)(e,n),"function"==typeof t&&t(),e?e.__c:null}a.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(a.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var U=a.options.event;function N(){}function I(){return this.cancelBubble}function O(){return this.defaultPrevented}a.options.event=function(e){return U&&(e=U(e)),e.persist=N,e.isPropagationStopped=I,e.isDefaultPrevented=O,e.nativeEvent=e};var M,L={configurable:!0,get:function(){return this.class}},P=a.options.vnode;a.options.vnode=function(e){var n=e.type,t=e.props,o=t;if("string"==typeof n){for(var r in o={},t){var i=t[r];"value"===r&&"defaultValue"in t&&null==i||("defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===i?i="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+n)&&!w(t.type)?r="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(r)?r=r.toLowerCase():$.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),o[r]=i)}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=Object(a.toChildArray)(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=Object(a.toChildArray)(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),e.props=o}n&&t.class!=t.className&&(L.enumerable="className"in t,null!=t.className&&(o.class=t.className),Object.defineProperty(o,"className",L)),e.$$typeof=A,P&&P(e)};var F=a.options.__r;a.options.__r=function(e){F&&F(e),M=e.__c};var q={ReactCurrentDispatcher:{current:{readContext:function(e){return M.__n[e.__c].props.value}}}},T=1,R=2,j=3,B=4,z=5;function G(e,n){return n()}var V="object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()},H="16.8.0";function W(e){return a.createElement.bind(null,e)}function K(e){return!!e&&e.$$typeof===A}function Z(e){return K(e)?a.cloneElement.apply(null,arguments):e}function Y(e){return!!e.__k&&(Object(a.render)(null,e),!0)}function J(e){return e&&(e.base||1===e.nodeType&&e)||null}var X=function(e,n){return e(n)},Q=a.Fragment;n.default={useState:o.useState,useReducer:o.useReducer,useEffect:o.useEffect,useLayoutEffect:o.useLayoutEffect,useRef:o.useRef,useImperativeHandle:o.useImperativeHandle,useMemo:o.useMemo,useCallback:o.useCallback,useContext:o.useContext,useDebugValue:o.useDebugValue,version:"16.8.0",Children:f,render:E,hydrate:x,unmountComponentAtNode:Y,createPortal:S,createElement:a.createElement,createContext:a.createContext,createFactory:W,cloneElement:Z,createRef:a.createRef,Fragment:a.Fragment,isValidElement:K,findDOMNode:J,Component:a.Component,PureComponent:c,memo:s,forwardRef:m,unstable_batchedUpdates:X,StrictMode:a.Fragment,Suspense:h,SuspenseList:g,lazy:b,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:q}},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/object/define-property")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/object/define-properties")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/map")},function(e,n,t){var o=t(27),r=t(341);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n,t){"use strict";t.d(n,"c",(function(){return o})),t.d(n,"b",(function(){return r})),t.d(n,"a",(function(){return a})),t.d(n,"e",(function(){return i})),t.d(n,"f",(function(){return u})),t.d(n,"d",(function(){return c}));var o=2,r=17,a=3,i="0-90-9٠-٩۰-۹",u="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~"),c="++"},function(e,n,t){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function u(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function c(e,n){for(var t={},o=[],r=0;r<e.length;r++){var a=e[r],c=n.base?a[0]+n.base:a[0],s=t[c]||0,l="".concat(c," ").concat(s);t[c]=s+1;var d=u(l),m={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(i[d].references++,i[d].updater(m)):i.push({identifier:l,updater:y(m,n),references:1}),o.push(l)}return o}function s(e){var n=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=t.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){n.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(n);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}var l,d=(l=[],function(e,n){return l[e]=n,l.filter(Boolean).join("\n")});function m(e,n,t,o){var r=t?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=d(n,r);else{var a=document.createTextNode(r),i=e.childNodes;i[n]&&e.removeChild(i[n]),i.length?e.insertBefore(a,i[n]):e.appendChild(a)}}function p(e,n,t){var o=t.css,r=t.media,a=t.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),a&&btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var f=null,_=0;function y(e,n){var t,o,r;if(n.singleton){var a=_++;t=f||(f=s(n)),o=m.bind(null,t,a,!1),r=m.bind(null,t,a,!0)}else t=s(n),o=p.bind(null,t,n),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return o(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;o(e=n)}else r()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=r());var t=c(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<t.length;o++){var r=u(t[o]);i[r].references--}for(var a=c(e,n),s=0;s<t.length;s++){var l=u(t[s]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}t=a}}}},function(e,n,t){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=function(e,n){var t=e[1]||"",o=e[3];if(!o)return t;if(n&&"function"==typeof btoa){var r=(i=o,u=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(c," */")),a=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([r]).join("\n")}var i,u,c;return[t].join("\n")}(n,e);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(r[i]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);o&&r[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),n.push(c))}},n}},function(e,n,t){"use strict";t.d(n,"a",(function(){return s})),t.d(n,"c",(function(){return h})),t.d(n,"b",(function(){return v})),t.d(n,"d",(function(){return b}));var o=function(e,n){e=e.split("-"),n=n.split("-");for(var t=e[0].split("."),o=n[0].split("."),r=0;r<3;r++){var a=Number(t[r]),i=Number(o[r]);if(a>i)return 1;if(i>a)return-1;if(!isNaN(a)&&isNaN(i))return 1;if(isNaN(a)&&!isNaN(i))return-1}return e[1]&&n[1]?e[1]>n[1]?1:e[1]<n[1]?-1:0:!e[1]&&n[1]?1:e[1]&&!n[1]?-1:0};function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function i(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,n,t){return n&&i(e.prototype,n),t&&i(e,t),e}var c=/^\d+$/,s=function(){function e(n){a(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!_(e)||!_(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(_(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+y(e)+": "+e,"."))}(n),this.metadata=n,g.call(this,n)}return u(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var n=this.countryCallingCodes()[e];if(n&&1===n.length&&"001"===n[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,n){if(e&&c.test(e)&&(n=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new l(this.getCountryMetadata(e),this)}else if(n){if(!this.hasCallingCode(n))throw new Error("Unknown calling code: ".concat(n));this.numberingPlan=new l(this.getNumberingPlanMetadata(n),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var n=this.countryCallingCodes()[e];if(n){if(1===n.length&&3===n[0].length)return;return n}}},{key:"getCountryCodeForCallingCode",value:function(e){var n=this.getCountryCodesForCallingCode(e);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(e){var n=this.getCountryCodeForCallingCode(e);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var t=this.nonGeographic()[e];if(t)return t}else{var o=this.countryCallingCodes()[e];if(o&&1===o.length&&"001"===o[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),l=function(){function e(n,t){a(this,e),this.globalMetadataObject=t,this.metadata=n,g.call(this,t.metadata)}return u(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,n=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return n.map((function(n){return new d(n,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&f(this.types(),e))return new p(f(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?" ext. ":this.metadata[13]||" ext. "}}]),e}(),d=function(){function e(n,t){a(this,e),this._format=n,this.metadata=t}return u(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||m.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),m=/^\(?\$1\)?$/,p=function(){function e(n,t){a(this,e),this.type=n,this.metadata=t}return u(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function f(e,n){switch(n){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var _=function(e){return"object"===r(e)},y=function(e){return r(e)};function h(e,n){return(n=new s(n)).hasCountry(e)?n.country(e).ext():" ext. "}function v(e,n){if((n=new s(n)).hasCountry(e))return n.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function b(e,n){return void 0!==n.countries[e]}function g(e){var n=e.version;"number"==typeof n?(this.v1=1===n,this.v2=2===n,this.v3=3===n,this.v4=4===n):n?-1===o(n,"1.2.0")?this.v2=!0:-1===o(n,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/includes")},function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/slicedToArray")},function(e,n,t){var o=t(27),r=t(367);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n,t){"use strict";t.d(n,"b",(function(){return u})),t.d(n,"a",(function(){return c})),t.d(n,"c",(function(){return s})),t.d(n,"d",(function(){return l}));var o=t(34),r=t.n(o),a=t(247),i=t.n(a),u=function(e){return e},c=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return i()(n).call(n,(function(e,n){return function(){return n(e.apply(void 0,arguments))}}),u)},s=function(e){var n={};return function(){for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];var i=r()(o);return n[i]||(n[i]=e.apply(void 0,o))}},l=function(){}},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/json/stringify")},function(e,n,t){var o=t(27),r=t(358);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/objectWithoutProperties")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/some")},function(e,n){e.exports=require("preact/compat")},function(e,n,t){var o=t(27),r=t(332);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},,function(e,n){e.exports=require("@babel/runtime-corejs3/helpers/toConsumableArray")},function(e,n){e.exports=require("preact/hooks")},function(e,n){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||Function("return this")()},function(e,n,t){"use strict";t.d(n,"a",(function(){return p})),t.d(n,"d",(function(){return f})),t.d(n,"b",(function(){return _})),t.d(n,"c",(function(){return y}));var o=t(41),r=t.n(o),a=t(6),i=t.n(a),u=t(59),c=t.n(u),s=t(248),l=t.n(s),d=t(19),m=t.n(d),p=function(e){return m()(e).call(e,(function(e){return e}))},f=function(e){return l()(e)?e:[e]},_=function(e){return c()(e).call(e,(function(e,n){var t,o;return(t=i()(e)).call.apply(t,i()(o=[e]).call(o,r()(f(n))))}),[])},y=function(e){return null!=e}},function(e,n,t){"use strict";function o(e,n){return e=e||"",new RegExp("^(?:"+n+")$").test(e)}t.d(n,"a",(function(){return o}))},function(e,n,t){var o=t(27),r=t(416);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n,t){"use strict";t.d(n,"a",(function(){return u})),t.d(n,"b",(function(){return c}));var o=t(141);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=[],o=!0,r=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(o=(i=u.next()).done)&&(t.push(i.value),!n||t.length!==n);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(r)throw a}}return t}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(){var e=c(arguments),n=e.text,t=e.options,r=e.metadata;return Object(o.a)(n,t,r)}function c(e){var n,t,o,r=i(Array.prototype.slice.call(e),4),u=r[0],c=r[1],l=r[2],d=r[3];if("string"!=typeof u)throw new TypeError("A text for parsing must be a string.");if(n=u,c&&"string"!=typeof c){if(!s(c))throw new Error("Invalid second argument: ".concat(c));l?(t=c,o=l):o=c}else d?(t=l,o=d):(t=void 0,o=l),c&&(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){a(e,n,t[n])}))}return e}({defaultCountry:c},t));return{text:n,options:t,metadata:o}}var s=function(e){return"object"===r(e)}},function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"a",(function(){return a}));var o={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function r(e){return o[e]}function a(e){var n="",t=e.split(""),o=Array.isArray(t),a=0;for(t=o?t:t[Symbol.iterator]();;){var i;if(o){if(a>=t.length)break;i=t[a++]}else{if((a=t.next()).done)break;i=a.value}var u=r(i);u&&(n+=u)}return n}},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/find")},function(e,n,t){var o=t(27),r=t(359);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n,t){e.exports=t(311)()},function(e,n,t){var o=t(43),r=t(219),a=t(71),i=t(220),u=t(225),c=t(379),s=r("wks"),l=o.Symbol,d=c?l:l&&l.withoutSetter||i;e.exports=function(e){return a(s,e)||(u&&a(l,e)?s[e]=l[e]:s[e]=d("Symbol."+e)),s[e]}},function(e,n,t){var o=t(27),r=t(362);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n,t){var o=t(27),r=t(336);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n,t){var o=t(27),r=t(353);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/set-timeout")},function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));var o=function e(n){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=this.constructor.name,this.message=n,this.stack=new Error(n).stack};o.prototype=Object.create(Error.prototype),o.prototype.constructor=o},function(e,n){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||Function("return this")()},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/reduce")},function(e,n,t){var o=t(27),r=t(340);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n,t){var o=t(27),r=t(355);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n,t){var o=t(27),r=t(365);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n,t){var o=t(27),r=t(415);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,n,t){var o=t(79),r=t(112),a=t(130);e.exports=o?function(e,n,t){return r.f(e,n,a(1,t))}:function(e,n,t){return e[n]=t,e}},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/object/entries")},function(e,n,t){var o=t(27),r=t(345);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},function(e,n,t){var o=t(58),r=t(200),a=t(64),i=t(201),u=t(207),c=t(292),s=r("wks"),l=o.Symbol,d=c?l:l&&l.withoutSetter||i;e.exports=function(e){return a(s,e)||(u&&a(l,e)?s[e]=l[e]:s[e]=d("Symbol."+e)),s[e]}},function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,n,t){var o=t(80);e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},function(e,n){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,n){e.exports=require("redux")},function(e,n){e.exports=require("@babel/runtime-corejs3/core-js-stable/set")},function(e,n,t){"use strict";t.d(n,"a",(function(){return v}));var o=t(29),r=t(142),a=t(104),i=t(97),u=t(45),c=t(99),s=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var l=t(82);function d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var m={formatExtension:function(e,n,t){return"".concat(e).concat(t.ext()).concat(n)}};function p(e,n,t,r){if(t=t?function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){d(e,n,t[n])}))}return e}({},m,t):m,r=new o.a(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var a,i=r.countryCallingCode(),u=t.v2?e.nationalNumber:e.phone;switch(n){case"NATIONAL":return u?_(a=f(u,e.carrierCode,"NATIONAL",r,t),e.ext,r,t.formatExtension):"";case"INTERNATIONAL":return u?(a=f(u,null,"INTERNATIONAL",r,t),_(a="+".concat(i," ").concat(a),e.ext,r,t.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(u);case"RFC3966":return Object(l.a)({number:"+".concat(i).concat(u),ext:e.ext});case"IDD":if(!t.fromCountry)return;return _(function(e,n,t,r,a){if(Object(o.b)(r,a.metadata)===t){var i=f(e,n,"NATIONAL",a);return"1"===t?t+" "+i:i}var u=function(e,n,t){var r=new o.a(t);return r.selectNumberingPlan(e,n),s.test(r.IDDPrefix())?r.IDDPrefix():r.defaultIDDPrefix()}(r,void 0,a.metadata);if(u)return"".concat(u," ").concat(t," ").concat(f(e,null,"INTERNATIONAL",a))}(u,e.carrierCode,i,t.fromCountry,r),e.ext,r,t.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(n,'"'))}}function f(e,n,t,o,r){var a=function(e,n){var t=e,o=Array.isArray(t),r=0;for(t=o?t:t[Symbol.iterator]();;){var a;if(o){if(r>=t.length)break;a=t[r++]}else{if((r=t.next()).done)break;a=r.value}var i=a;if(i.leadingDigitsPatterns().length>0){var c=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(0!==n.search(c))continue}if(Object(u.a)(n,i.pattern()))return i}}(o.formats(),e);return a?Object(c.b)(e,a,{useInternationalFormat:"INTERNATIONAL"===t,withNationalPrefix:!a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r||!1!==r.nationalPrefix,carrierCode:n,metadata:o}):e}function _(e,n,t,o){return n?o(e,n,t):e}function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function h(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var v=function(){function e(n,t,r){if(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw new TypeError("`country` or `countryCallingCode` not passed");if(!t)throw new TypeError("`nationalNumber` not passed");var a=new o.a(r);b(n)&&(this.country=n,a.country(n),n=a.countryCallingCode()),this.countryCallingCode=n,this.nationalNumber=t,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=r}var n,t,u;return n=e,(t=[{key:"isPossible",value:function(){return Object(r.a)(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return Object(a.a)(this,{v2:!0},this.metadata)}},{key:"isNonGeographic",value:function(){return new o.a(this.metadata).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Object(i.a)(this,{v2:!0},this.metadata)}},{key:"format",value:function(e,n){return p(this,e,n?function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){y(e,n,t[n])}))}return e}({},n,{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])&&h(n.prototype,t),u&&h(n,u),e}(),b=function(e){return/^[A-Z]{2}$/.test(e)}},function(e,n,t){"use strict";function o(e,n){return function e(n,t,o){var r=o.type(t),a=r&&r.possibleLengths()||o.possibleLengths();if(!a)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!o.type("FIXED_LINE"))return e(n,"MOBILE",o);var i=o.type("MOBILE");i&&(a=function(e,n){var t=e.slice(),o=n,r=Array.isArray(o),a=0;for(o=r?o:o[Symbol.iterator]();;){var i;if(r){if(a>=o.length)break;i=o[a++]}else{if((a=o.next()).done)break;i=a.value}var u=i;e.indexOf(u)<0&&t.push(u)}return t.sort((function(e,n){return e-n}))}(a,i.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var u=n.length,c=a[0];if(c===u)return"IS_POSSIBLE";if(c>u)return"TOO_SHORT";if(a[a.length-1]<u)return"TOO_LONG";return a.indexOf(u,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,void 0,n)}t.d(n,"a",(function(){return o}))},function(e,n,t){var o=t(27),r=t(326);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1},i=(o(r,a),r.locals?r.locals:{});e.exports=i},func