Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

persona

Package Overview
Dependencies
Maintainers
7
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

persona - npm Package Compare versions

Comparing version 5.0.0-alpha.1 to 5.0.0-alpha.2

6

dist/lib/Client.d.ts

@@ -17,2 +17,8 @@ import { BaseUrl, InquiryOptions } from './interfaces';

private unsubscribeFromEvents;
/**
* Creates an iframe that loads all static assets needed for the Persona
* Inquiry flow, but does not initiate the flow itself. This is intended to
* populate the browser cache to speed up subsequent loads.
*/
static preload(host?: InquiryOptions['host']): Promise<void>;
constructor(options: InquiryOptions);

@@ -19,0 +25,0 @@ render(): void;

2

dist/persona.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Persona=e():t.Persona=e()}(self,(()=>(()=>{var t={913:(t,e,r)=>{"use strict";var n=r(651),o=r(601),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},601:(t,e,r)=>{"use strict";var n=r(49),o=r(651),i=r(255),a=r(785),l=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(u,l),p=o("%Object.defineProperty%",!0),f=o("%Math.max%");if(p)try{p({},"a",{value:1})}catch(t){p=null}t.exports=function(t){if("function"!=typeof t)throw new a("a function is required");var e=c(n,u,arguments);return i(e,1+f(0,t.length-(arguments.length-1)),!0)};var s=function(){return c(n,l,arguments)};p?p(t.exports,"apply",{value:s}):t.exports.apply=s},295:(t,e,r)=>{"use strict";var n=r(890)(),o=r(651),i=n&&o("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(t){i=!1}var a=r(389),l=r(785),u=r(109);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new l("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],f=!!u&&u(t,e);if(i)i(t,e,{configurable:null===c&&f?f.configurable:!c,enumerable:null===n&&f?f.enumerable:!n,value:r,writable:null===o&&f?f.writable:!o});else{if(!p&&(n||o||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},55:t=>{"use strict";t.exports=EvalError},293:t=>{"use strict";t.exports=Error},888:t=>{"use strict";t.exports=RangeError},900:t=>{"use strict";t.exports=ReferenceError},389:t=>{"use strict";t.exports=SyntaxError},785:t=>{"use strict";t.exports=TypeError},436:t=>{"use strict";t.exports=URIError},719:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};t.exports=function(t){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(t,e){for(var r=[],n=1,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r}(arguments),l=r(0,o.length-a.length),u=[],c=0;c<l;c++)u[c]="$"+c;if(i=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=",");return r}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=o.apply(this,n(a,arguments));return Object(e)===e?e:this}return o.apply(t,n(a,arguments))})),o.prototype){var p=function(){};p.prototype=o.prototype,i.prototype=new p,p.prototype=null}return i}},49:(t,e,r)=>{"use strict";var n=r(719);t.exports=Function.prototype.bind||n},651:(t,e,r)=>{"use strict";var n,o=r(293),i=r(55),a=r(888),l=r(900),u=r(389),c=r(785),p=r(436),f=Function,s=function(t){try{return f('"use strict"; return ('+t+").constructor;")()}catch(t){}},y=Object.getOwnPropertyDescriptor;if(y)try{y({},"")}catch(t){y=null}var d=function(){throw new c},h=y?function(){try{return d}catch(t){try{return y(arguments,"callee").get}catch(t){return d}}}():d,m=r(257)(),g=r(726)(),b=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,S={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":m&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&b?b(""[Symbol.iterator]()):n,"%Symbol%":m?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":h,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(t){var x=b(b(t));S["%Error.prototype%"]=x}var j=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&b&&(r=b(o.prototype))}return S[e]=r,r},A={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(49),E=r(215),I=O.call(Function.call,Array.prototype.concat),P=O.call(Function.apply,Array.prototype.splice),k=O.call(Function.call,String.prototype.replace),_=O.call(Function.call,String.prototype.slice),C=O.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,U=function(t,e){var r,n=t;if(E(A,n)&&(n="%"+(r=A[n])[0]+"%"),E(S,n)){var o=S[n];if(o===v&&(o=j(n)),void 0===o&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=_(t,0,1),r=_(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return k(t,R,(function(t,e,r,o){n[n.length]=r?k(o,F,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=U("%"+n+"%",e),i=o.name,a=o.value,l=!1,p=o.alias;p&&(n=p[0],P(r,I([0,1],p)));for(var f=1,s=!0;f<r.length;f+=1){var d=r[f],h=_(d,0,1),m=_(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&s||(l=!0),E(S,i="%"+(n+="."+d)+"%"))a=S[i];else if(null!=a){if(!(d in a)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(y&&f+1>=r.length){var g=y(a,d);a=(s=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else s=E(a,d),a=a[d];s&&!l&&(S[i]=a)}}return a}},109:(t,e,r)=>{"use strict";var n=r(651)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},890:(t,e,r)=>{"use strict";var n=r(651)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},726:t=>{"use strict";var e={foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof r)}},257:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(843);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},843:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},215:(t,e,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(49);t.exports=i.call(n,o)},709:(t,e,r)=>{var n,o=1/0,i="[object Symbol]",a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,l=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\\ud800-\\udfff",c="\\u2700-\\u27bf",p="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",y="["+s+"]",d="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",h="\\d+",m="["+c+"]",g="["+p+"]",b="[^"+u+s+h+c+p+f+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",w="[\\ud800-\\udbff][\\udc00-\\udfff]",S="["+f+"]",x="(?:"+g+"|"+b+")",j="(?:"+S+"|"+b+")",A="(?:['’](?:d|ll|m|re|s|t|ve))?",O="(?:['’](?:D|LL|M|RE|S|T|VE))?",E="(?:"+d+"|\\ud83c[\\udffb-\\udfff])?",I="[\\ufe0e\\ufe0f]?",P=I+E+"(?:\\u200d(?:"+["[^"+u+"]",v,w].join("|")+")"+I+E+")*",k="(?:"+[m,v,w].join("|")+")"+P,_=RegExp("['’]","g"),C=RegExp(d,"g"),R=RegExp([S+"?"+g+"+"+A+"(?="+[y,S,"$"].join("|")+")",j+"+"+O+"(?="+[y,S+x,"$"].join("|")+")",S+"?"+x+"+"+A,S+"+"+O,h,k].join("|"),"g"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,U="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,M="object"==typeof self&&self&&self.Object===Object&&self,T=U||M||Function("return this")(),N=(n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(t){return null==n?void 0:n[t]}),D=Object.prototype.toString,L=T.Symbol,W=L?L.prototype:void 0,B=W?W.toString:void 0;function q(t){return null==t?"":function(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&D.call(t)==i}(t))return B?B.call(t):"";var e=t+"";return"0"==e&&1/t==-o?"-0":e}(t)}var V,z=(V=function(t,e,r){return t+(r?"-":"")+e.toLowerCase()},function(t){return function(t,e,r,n){for(var o=-1,i=t?t.length:0;++o<i;)r=e(r,t[o],o,t);return r}(function(t,e,r){return t=q(t),void 0===e?function(t){return F.test(t)}(t)?function(t){return t.match(R)||[]}(t):function(t){return t.match(a)||[]}(t):t.match(e)||[]}(function(t){return(t=q(t))&&t.replace(l,N).replace(C,"")}(t).replace(_,"")),V,"")});t.exports=z},937:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&u&&"function"==typeof u.get?u.get:null,p=l&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,x=RegExp.prototype.test,j=Array.prototype.concat,A=Array.prototype.join,O=Array.prototype.slice,E=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function U(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||x.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-E(-t):E(t);if(n!==t){var o=String(n),i=b.call(e,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var M=r(634),T=M.custom,N=q(T)?T:null;function D(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function L(t){return v.call(String(t),/"/g,"&quot;")}function W(t){return!("[object Array]"!==G(t)||C&&"object"==typeof t&&C in t)}function B(t){return!("[object RegExp]"!==G(t)||C&&"object"==typeof t&&C in t)}function q(t){if(_)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,o,l){var u=n||{};if(z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!z(u,"customInspect")||u.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return H(e,u);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var x=String(e);return w?U(e,x):x}if("bigint"==typeof e){var E=String(e)+"n";return w?U(e,E):E}var P=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=P&&P>0&&"object"==typeof e)return W(e)?"[Array]":"[Object]";var T,V=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=A.call(Array(t.indent+1)," ")}return{base:r,prev:A.call(Array(e+1),r)}}(u,o);if(void 0===l)l=[];else if($(l,e)>=0)return"[Circular]";function J(e,r,n){if(r&&(l=O.call(l)).push(r),n){var i={depth:u.depth};return z(u,"quoteStyle")&&(i.quoteStyle=u.quoteStyle),t(e,i,o+1,l)}return t(e,u,o+1,l)}if("function"==typeof e&&!B(e)){var tt=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),et=X(e,J);return"[Function"+(tt?": "+tt:" (anonymous)")+"]"+(et.length>0?" { "+A.call(et,", ")+" }":"")}if(q(e)){var rt=_?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return"object"!=typeof e||_?rt:Z(rt)}if((T=e)&&"object"==typeof T&&("undefined"!=typeof HTMLElement&&T instanceof HTMLElement||"string"==typeof T.nodeName&&"function"==typeof T.getAttribute)){for(var nt="<"+S.call(String(e.nodeName)),ot=e.attributes||[],it=0;it<ot.length;it++)nt+=" "+ot[it].name+"="+D(L(ot[it].value),"double",u);return nt+=">",e.childNodes&&e.childNodes.length&&(nt+="..."),nt+"</"+S.call(String(e.nodeName))+">"}if(W(e)){if(0===e.length)return"[]";var at=X(e,J);return V&&!function(t){for(var e=0;e<t.length;e++)if($(t[e],"\n")>=0)return!1;return!0}(at)?"["+K(at,V)+"]":"[ "+A.call(at,", ")+" ]"}if(function(t){return!("[object Error]"!==G(t)||C&&"object"==typeof t&&C in t)}(e)){var lt=X(e,J);return"cause"in Error.prototype||!("cause"in e)||R.call(e,"cause")?0===lt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+A.call(lt,", ")+" }":"{ ["+String(e)+"] "+A.call(j.call("[cause]: "+J(e.cause),lt),", ")+" }"}if("object"==typeof e&&h){if(N&&"function"==typeof e[N]&&M)return M(e,{depth:P-o});if("symbol"!==h&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ut=[];return a&&a.call(e,(function(t,r){ut.push(J(r,e,!0)+" => "+J(t,e))})),Y("Map",i.call(e),ut,V)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ct=[];return p&&p.call(e,(function(t){ct.push(J(t,e))})),Y("Set",c.call(e),ct,V)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{s.call(t,s)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Q("WeakMap");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t,s);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Q("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return Q("WeakRef");if(function(t){return!("[object Number]"!==G(t)||C&&"object"==typeof t&&C in t)}(e))return Z(J(Number(e)));if(function(t){if(!t||"object"!=typeof t||!I)return!1;try{return I.call(t),!0}catch(t){}return!1}(e))return Z(J(I.call(e)));if(function(t){return!("[object Boolean]"!==G(t)||C&&"object"==typeof t&&C in t)}(e))return Z(d.call(e));if(function(t){return!("[object String]"!==G(t)||C&&"object"==typeof t&&C in t)}(e))return Z(J(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===r.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==G(t)||C&&"object"==typeof t&&C in t)}(e)&&!B(e)){var pt=X(e,J),ft=F?F(e)===Object.prototype:e instanceof Object||e.constructor===Object,st=e instanceof Object?"":"null prototype",yt=!ft&&C&&Object(e)===e&&C in e?b.call(G(e),8,-1):st?"Object":"",dt=(ft||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(yt||st?"["+A.call(j.call([],yt||[],st||[]),": ")+"] ":"");return 0===pt.length?dt+"{}":V?dt+"{"+K(pt,V)+"}":dt+"{ "+A.call(pt,", ")+" }"}return String(e)};var V=Object.prototype.hasOwnProperty||function(t){return t in this};function z(t,e){return V.call(t,e)}function G(t){return h.call(t)}function $(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function H(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return H(b.call(t,0,e.maxStringLength),e)+n}return D(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Z(t){return"Object("+t+")"}function Q(t){return t+" { ? }"}function Y(t,e,r,n){return t+" ("+e+") {"+(n?K(r,n):A.call(r,", "))+"}"}function K(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+A.call(t,","+r)+"\n"+e.prev}function X(t,e){var r=W(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=z(t,o)?e(t[o],t):""}var i,a="function"==typeof P?P(t):[];if(_){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var u in t)z(t,u)&&(r&&String(Number(u))===u&&u<t.length||_&&i["$"+u]instanceof Symbol||(x.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof P)for(var c=0;c<a.length;c++)R.call(t,a[c])&&n.push("["+e(a[c])+"]: "+e(t[a[c]],t));return n}},647:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},882:(t,e,r)=>{"use strict";var n=r(402),o=r(662),i=r(647),a=Object.prototype.hasOwnProperty,l={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,p=function(t,e){c.apply(t,u(e)?e:[e])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},d={},h=function t(e,r,i,a,l,c,f,s,h,m,g,b,v,w,S,x){for(var j,A=e,O=x,E=0,I=!1;void 0!==(O=O.get(d))&&!I;){var P=O.get(e);if(E+=1,void 0!==P){if(P===E)throw new RangeError("Cyclic object value");I=!0}void 0===O.get(d)&&(E=0)}if("function"==typeof s?A=s(r,A):A instanceof Date?A=g(A):"comma"===i&&u(A)&&(A=o.maybeMap(A,(function(t){return t instanceof Date?g(t):t}))),null===A){if(l)return f&&!w?f(r,y.encoder,S,"key",b):r;A=""}if("string"==typeof(j=A)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||o.isBuffer(A))return f?[v(w?r:f(r,y.encoder,S,"key",b))+"="+v(f(A,y.encoder,S,"value",b))]:[v(r)+"="+v(String(A))];var k,_=[];if(void 0===A)return _;if("comma"===i&&u(A))w&&f&&(A=o.maybeMap(A,f)),k=[{value:A.length>0?A.join(",")||null:void 0}];else if(u(s))k=s;else{var C=Object.keys(A);k=h?C.sort(h):C}for(var R=a&&u(A)&&1===A.length?r+"[]":r,F=0;F<k.length;++F){var U=k[F],M="object"==typeof U&&void 0!==U.value?U.value:A[U];if(!c||null!==M){var T=u(A)?"function"==typeof i?i(R,U):R:R+(m?"."+U:"["+U+"]");x.set(e,E);var N=n();N.set(d,x),p(_,t(M,T,i,a,l,c,"comma"===i&&w&&u(A)?null:f,s,h,m,g,b,v,w,S,N))}}return _};t.exports=function(t,e){var r,o=t,c=function(t){if(!t)return y;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=i.formatters[r],o=y.filter;return("function"==typeof t.filter||u(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===t.allowDots?y.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof c.filter?o=(0,c.filter)("",o):u(c.filter)&&(r=c.filter);var f,s=[];if("object"!=typeof o||null===o)return"";f=e&&e.arrayFormat in l?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=l[f];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===d&&e&&e.commaRoundTrip;r||(r=Object.keys(o)),c.sort&&r.sort(c.sort);for(var g=n(),b=0;b<r.length;++b){var v=r[b];c.skipNulls&&null===o[v]||p(s,h(o[v],v,d,m,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var w=s.join(c.delimiter),S=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),w.length>0?S+w:""}},662:(t,e,r)=>{"use strict";var n=r(647),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),l=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:l,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],l=Object.keys(a),u=0;u<l.length;++u){var c=l[u],p=a[c];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:a,prop:c}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,o,i){if(0===t.length)return t;var l=t;if("symbol"==typeof t?l=Symbol.prototype.toString.call(t):"string"!=typeof t&&(l=String(t)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<l.length;++c){var p=l.charCodeAt(c);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===n.RFC1738&&(40===p||41===p)?u+=l.charAt(c):p<128?u+=a[p]:p<2048?u+=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?u+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(c+=1,p=65536+((1023&p)<<10|1023&l.charCodeAt(c)),u+=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=l(e,n)),i(e)&&i(r)?(r.forEach((function(r,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,n):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return o.call(e,i)?e[i]=t(e[i],a,n):e[i]=a,e}),a)}}},255:(t,e,r)=>{"use strict";var n=r(651),o=r(295),i=r(890)(),a=r(109),l=r(785),u=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new l("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new l("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in t&&a){var p=a(t,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(c=!1)}return(n||c||!r)&&(i?o(t,"length",e,!0,!0):o(t,"length",e)),t}},402:(t,e,r)=>{"use strict";var n=r(651),o=r(913),i=r(937),a=r(785),l=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),s=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),h=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+i(t))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(t)return c(t,n)}else if(u){if(e)return s(e,n)}else if(r)return function(t,e){var r=h(t,e);return r&&r.value}(r,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(t)return f(t,n)}else if(u){if(e)return d(e,n)}else if(r)return function(t,e){return!!h(t,e)}(r,n);return!1},set:function(n,o){l&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new l),p(t,n,o)):u?(e||(e=new u),y(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=h(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n}},634:()=>{}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};return(()=>{"use strict";r.d(n,{default:()=>O});var t=r(882),e=r.n(t);const o=JSON.parse('{"rE":"5.0.0-alpha.1"}');var i,a,l;function u(t){switch(t){case"development":return l.Development;case"staging":return l.Staging;case"canary":return l.Canary;default:return l.Production}}!function(t){t.Cancel="exit",t.Complete="complete",t.Error="error",t.Fail="fail",t.Load="load",t.Ready="ready",t.Start="start",t.Success="success",t.DocumentCameraSelect="document-camera-select",t.DocumentCameraCapture="document-camera-capture",t.DocumentUpload="document-upload",t.OneTimeLinkSent="one-time-link-sent",t.OneTimeLinkStart="one-time-link-start",t.OneTimeLinkExit="one-time-link-exit",t.SelfieCameraSelect="selfie-camera-select",t.SelfieCameraCapture="selfie-camera-capture",t.SelfieRecordUpload="selfie-record-upload",t.LoadCameraFailed="load-camera-failed",t.PageChange="page-change",t.InquiryLoad="inquiry-load",t.CountrySelect="country-select",t.VerificationChange="verification-change"}(i||(i={})),function(t){t.Open="open",t.Exit="exit",t.Destroy="destroy"}(a||(a={})),function(t){t.Development="http://localhost:3000",t.Staging="https://inquiry.withpersona-staging.com",t.Canary="https://canary.withpersona.com",t.Production="https://inquiry.withpersona.com"}(l||(l={}));var c=r(709),p=r.n(c),f=function(){return f=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},f.apply(this,arguments)};function s(t){return Array.isArray(t)?t.map(s):function(t){return null!=t&&t.constructor===Object}(t)?Object.keys(t).reduce((function(e,r){var n;return f(f({},e),((n={})[p()(r)]=s(t[r]),n))}),{}):t}var y=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function t(t){this.id=t}return t.prototype.isMounted=function(){return null!=document.getElementById(this.id)},t.prototype.mount=function(t){if(document.getElementById(this.id))console.warn("persona: stylesheet ".concat(this.id," already appended. skipping."));else{var e=g("style",{id:this.id},[document.createTextNode(t)]);document.head.appendChild(e)}},t.prototype.unmount=function(){var t,e=document.getElementById(this.id);null!=e?null===(t=e.parentNode)||void 0===t||t.removeChild(e):console.warn("persona: no stylesheet ".concat(this.id," to remove. skipping."))},t}();function m(t,e,r){var n,o,i,a;void 0===r&&(r=[]);var l=document.createElementNS("http://www.w3.org/2000/svg",t);try{for(var u=y(Object.entries(e)),c=u.next();!c.done;c=u.next()){var p=d(c.value,2),f=p[0],s=p[1];"className"===f&&(f="class"),l.setAttribute(f,s)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var h=y(r),m=h.next();!m.done;m=h.next()){var g=m.value;!1!==g&&l.appendChild(g)}}catch(t){i={error:t}}finally{try{m&&!m.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}return l}function g(t,e,r){var n,o,i,a;void 0===r&&(r=[]);var l=document.createElement(t);try{for(var u=y(Object.entries(e)),c=u.next();!c.done;c=u.next()){var p=d(c.value,2),f=p[0],s=p[1];"className"===f&&(f="class"),l.setAttribute(f,s)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var h=y(r),m=h.next();!m.done;m=h.next()){var g=m.value;!1!==g&&("string"==typeof g?l.appendChild(document.createTextNode(g)):l.appendChild(g))}}catch(t){i={error:t}}finally{try{m&&!m.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}return l}function b(t){return"string"==typeof t?t:"number"==typeof t?"".concat(t,"px"):""}var v=["allow-scripts","allow-same-origin","allow-popups"],w=["allow-forms","allow-modals","allow-top-navigation-by-user-activation"];function S(t,r,n,i){var a=i.accountId,l=i.accountTypeId,c=i.environment,p=i.environmentId,f=i.fields,y=i.frameAncestors,d=i.frameHeight,h=i.frameWidth,m=i.host,g=i.iframeTitle,S=i.inquiryId,x=i.language,j=i.lockedAttributes,A=i.messageTargetOrigin,O=i.prefill,E=i.referenceId,I=i.routingCountry,P=i.sandboxAttributes,k=void 0===P?w:P,_=i.sessionToken,C=i.styleVariant,R=i.templateId,F=i.templateVersionId,U=i.themeId,M=i.themeSetId,T=!(!R&&!F),N=null==R?void 0:R.startsWith("itmpl_");if(!T&&!S)throw new Error("Either templateId/templateVersionId or inquiryId must be specified to start a flow");if(T&&S)throw new Error("Only one of templateId/templateVersionId or inquiryId should be specified to start a flow");if(a){if(E)throw new Error("Cannot pass both accountId and referenceId");if(l)throw new Error("Cannot pass both accountId and accountTypeId")}var D=u(m),L=e()({"client-version":o.rE,"container-id":r,"flow-type":n,"routing-country":I,"template-id":(N?null:R)||null,"inquiry-template-id":(N?R:null)||null,"inquiry-template-version-id":F||null,environment:c,"environment-id":p,"iframe-origin":window.location.origin,"frame-ancestors":null!=y?y:null,"message-target-origin":A||null,"inquiry-id":S||null,language:x,"session-token":_,"reference-id":E,"account-id":a,"account-type-id":l,fields:s(null!=f?f:{}),"style-variant":C||null,"theme-set-id":M,"theme-id":U,prefill:s(null!=O?O:{}),"locked-attributes":s(null!=j?j:{})},{addQueryPrefix:!0,skipNulls:!0});return t.style.maxHeight=b(d),t.style.maxWidth=b(h),t.setAttribute("data-testid","persona-widget__iframe"),t.title=null!=g?g:"Verify your identity",t.className="persona-widget__iframe",t.allow="camera;microphone",t.setAttribute("sandbox",v.concat(k).join(" ")),t.frameBorder="0",t.src=D+"/widget"+L,t.onload=function(){},t}const x=function(){function t(){}return t.log=function(t,e){void 0===e&&(e="info")},t}();var j=function(t){return t.split(".").slice(-2).join(".")};function A(t,e){var r=e.onLoad,n=e.onReady,o=e.onComplete,a=e.onEvent,l=e.onCancel,c=e.onError,p=e.templateId,f=e.templateVersionId,s=e.host,y=function(e){var y,d=u(null!=s?s:"production");if((""===e.origin||j(new URL(e.origin).host)===j(new URL(d).host))&&!(p&&p!==e.data.templateId||f&&f!==e.data.templateVersionId||e.data.containerId&&t!==e.data.containerId))switch(null==a||a(e.data.name,e.data.metadata),e.data.name){case i.Load:null==r||r();break;case i.Ready:null==n||n();break;case i.Complete:case i.Fail:null==o||o({inquiryId:e.data.metadata.inquiryId,status:e.data.metadata.status,fields:null!==(y=e.data.metadata.fields)&&void 0!==y?y:e.data.metadata.scopes});break;case i.Cancel:null==l||l({inquiryId:e.data.metadata.inquiryId,sessionToken:e.data.metadata.sessionToken});break;case i.Error:null==c||c(e.data.error)}};return window.addEventListener("message",y),function(){window.removeEventListener("message",y)}}const O={Client:function(){function t(t){var e,r,n,o,i,a,l,u,c,p,f,s=this;this._isLoading=!0,this._isOpen=!1,this.personaCSS=new h("persona-widget-styles"),this.globalCSS=new h("persona-global-styles"),this.onLoad=function(){var t,e;s._isLoading=!1,s.render(),null===(e=(t=s.options).onLoad)||void 0===e||e.call(t)},this.onReady=function(){var t,e;null===(e=(t=s.options).onReady)||void 0===e||e.call(t)},this.onComplete=function(t){var e,r,n=t.inquiryId,o=t.status,i=t.fields;s._isOpen=!1,s.render(),null===(r=(e=s.options).onComplete)||void 0===r||r.call(e,{inquiryId:n,status:o,fields:i})},this.onCancel=function(t){var e,r,n=t.inquiryId,o=t.sessionToken;s._isOpen=!1,s.render(),null===(r=(e=s.options).onCancel)||void 0===r||r.call(e,{inquiryId:n,sessionToken:o})},this.options=t,this.containerParent=null!==(r=null!==(e=t.parent)&&void 0!==e?e:document.body)&&void 0!==r?r:document.children[0],this.containerElement=g("div",{class:"persona-widget__overlay",style:"display: ".concat(this._isOpen?"block":"none")}),this.containerId="persona-widget-"+new Array(16).fill(void 0).map((function(){return Math.floor(35*Math.random()).toString(35)})).join(""),this.containerElement.setAttribute("id",this.containerId),this.loadingElement=g("div",{class:"persona-widget__centered-frame"},[m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"114",height:"114",class:"persona-widget__loading-spinner"},[m("path",{fill:"none",stroke:"#0F2B72",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M25.887 10.432a56.275 56.275 0 0 0-15.455 15.455 55.86 55.86 0 0 0-5.183 9.678A55.576 55.576 0 0 0 2.066 46.07m-.8 5.438A56.678 56.678 0 0 0 1 57m4.249 21.435a55.86 55.86 0 0 0 5.183 9.678 56.275 56.275 0 0 0 6.97 8.485m8.485 6.97a55.86 55.86 0 0 0 9.678 5.183 55.576 55.576 0 0 0 10.506 3.183c3.535.7 7.19 1.066 10.929 1.066 3.74 0 7.394-.367 10.929-1.066a55.576 55.576 0 0 0 10.506-3.183 55.86 55.86 0 0 0 9.678-5.183 56.275 56.275 0 0 0 15.455-15.455 55.86 55.86 0 0 0 5.183-9.678 55.576 55.576 0 0 0 3.183-10.506A56.274 56.274 0 0 0 113 57c0-3.74-.367-7.394-1.066-10.929a55.576 55.576 0 0 0-3.183-10.506M96.598 17.402a56.275 56.275 0 0 0-8.485-6.97 55.86 55.86 0 0 0-9.678-5.183A55.576 55.576 0 0 0 67.93 2.066 56.274 56.274 0 0 0 57 1c-3.74 0-7.394.367-10.929 1.066m-34.94 30.418A51.76 51.76 0 0 0 7.225 41.9a51.633 51.633 0 0 0-1.98 10 52.63 52.63 0 0 0 .744 15.247 51.633 51.633 0 0 0 7.768 18.743 52.188 52.188 0 0 0 10.254 11.308 52.188 52.188 0 0 0 8.472 5.67m9.417 3.905a51.633 51.633 0 0 0 10 1.98 52.63 52.63 0 0 0 10.197 0 51.939 51.939 0 0 0 10-1.98 51.61 51.61 0 0 0 9.418-3.904 51.984 51.984 0 0 0 8.472-5.671m3.782-3.43a52.308 52.308 0 0 0 3.429-3.78m9.575-17.89a51.633 51.633 0 0 0 1.98-10 52.63 52.63 0 0 0-.744-15.247 51.633 51.633 0 0 0-7.768-18.743 52.188 52.188 0 0 0-10.254-11.308m-4.097-3.043a51.984 51.984 0 0 0-4.375-2.628M67.148 5.99a51.939 51.939 0 0 0-5.05-.743 52.63 52.63 0 0 0-15.246.743 51.633 51.633 0 0 0-18.743 7.768M24.012 16.8a52.308 52.308 0 0 0-3.782 3.43"})])]),this.containerElement.append(this.loadingElement),this.isLoading?this.loadingElement.style.display="block":this.loadingElement.style.display="none",this.iframeElement=document.createElement("iframe"),this.unsubscribeFromEvents=A(this.containerId,{onLoad:null!==(n=this.onLoad)&&void 0!==n?n:null,onReady:null!==(o=this.onReady)&&void 0!==o?o:null,onComplete:null!==(i=this.onComplete)&&void 0!==i?i:null,onCancel:null!==(a=this.onCancel)&&void 0!==a?a:null,onEvent:null!==(l=this.options.onEvent)&&void 0!==l?l:null,onError:null!==(u=this.options.onError)&&void 0!==u?u:null,templateId:null!==(c=this.options.templateId)&&void 0!==c?c:null,templateVersionId:null!==(p=this.options.templateVersionId)&&void 0!==p?p:null,host:null!==(f=this.options.host)&&void 0!==f?f:null}),this.containerElement.appendChild(this.iframeElement),this.containerParent.appendChild(this.containerElement),this.personaCSS.mount("@keyframes persona-widget__fadeIn {\n from {\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n }\n to {\n /* persona-widget__overlay opacity = 0.7 */\n background-color: rgba(0, 0, 0, 0.7);\n opacity: 1;\n }\n}\n\n@keyframes persona-widget__genieSlideIn {\n from {\n transform: translate(-50%, -40%) scale(0.8);\n }\n 90% {\n transform: translate(-50%, -51%) scale(1.01);\n }\n to {\n transform: translate(-50%, -50%);\n }\n}\n\n@keyframes persona-widget__slideDown {\n from {\n transform: translate(-50%, -55%);\n }\n to {\n transform: translate(-50%, -50%);\n }\n}\n\n.persona-widget__overlay {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 9999;\n animation: persona-widget__fadeIn 0.3s;\n background-color: rgba(0, 0, 0, 0.7);\n}\n\n.persona-widget__overlay .persona-widget__centered-frame {\n width: 120px;\n height: 120px;\n position: absolute;\n left: calc(50% - 60px);\n top: calc(50% - 60px);\n z-index: 9999;\n}\n\n.persona-widget__overlay .persona-widget__loading-spinner {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.persona-widget__overlay .persona-widget__iframe {\n animation: persona-widget__genieSlideIn 0.3s, persona-widget__slideDown ease-out 0.3s;\n\n width: 100%;\n height: 100%;\n\n margin-left: auto;\n margin-right: auto;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n background-color: #ffffff;\n border: none;\n border-radius: 4px;\n box-shadow: 0px 12px 40px 2px rgba(0, 0, 0, 0.4);\n\n @media only screen and (min-width: 600.02px) and (min-height: 600.02px) {\n max-width: 400px;\n max-height: 650px;\n }\n}\n");try{this.iframeElement=S(this.iframeElement,this.containerId,"embedded",this.options)}catch(t){throw console.error("Persona",t),this.destroy(),t}this.render()}return t.prototype.render=function(){var t;null!=this.containerElement?(this.loadingElement.style.display=this.isLoading?"block":"none",this.containerElement.style.display=this.isOpen?"block":"none",this.isOpen&&!this.globalCSS.isMounted()?this.globalCSS.mount((t=this.containerId,"\n /* Don't allow scrolling when widget is open */\n html body {\n overflow: hidden !important;\n }\n\n /* When the widget takes the full screen, hide everything else to prevent iOS scroll issues. */\n @media ".concat("(max-width: 600px), (max-height: 420px)"," {\n html body > *:not(#").concat(t,") {\n display: none !important;\n }\n }\n"))):!this.isOpen&&this.globalCSS.isMounted()&&this.globalCSS.unmount()):x.log("Cannot render client that has been destroyed","error")},t.prototype.open=function(){var t;null===(t=this.iframeElement.contentWindow)||void 0===t||t.postMessage({action:a.Open,metadata:{}},this.baseUrl),this._isOpen=!0,this.render()},t.prototype.cancel=function(t){var e;null===(e=this.iframeElement.contentWindow)||void 0===e||e.postMessage({action:a.Exit,metadata:{force:t}},this.baseUrl),this.render()},t.prototype.destroy=function(){var t;null===(t=this.iframeElement.contentWindow)||void 0===t||t.postMessage({action:a.Destroy,metadata:{}},this.baseUrl),this.personaCSS.unmount(),this.globalCSS.unmount(),this.containerParent.removeChild(this.containerElement),this.unsubscribeFromEvents()},Object.defineProperty(t.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseUrl",{get:function(){return u(this.options.host)},enumerable:!1,configurable:!0}),t}(),setupIframe:S,setupEvents:A}})(),n.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Persona=t():e.Persona=t()}(self,(()=>(()=>{var e={913:(e,t,r)=>{"use strict";var n=r(651),o=r(601),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},601:(e,t,r)=>{"use strict";var n=r(49),o=r(651),i=r(255),a=r(785),l=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(u,l),p=r(649),s=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(n,u,arguments);return i(t,1+s(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(n,l,arguments)};p?p(e.exports,"apply",{value:f}):e.exports.apply=f},295:(e,t,r)=>{"use strict";var n=r(649),o=r(389),i=r(785),a=r(109);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],s=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&s?s.configurable:!c,enumerable:null===l&&s?s.enumerable:!l,value:r,writable:null===u&&s?s.writable:!u});else{if(!p&&(l||u||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},649:(e,t,r)=>{"use strict";var n=r(651)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},55:e=>{"use strict";e.exports=EvalError},293:e=>{"use strict";e.exports=Error},888:e=>{"use strict";e.exports=RangeError},900:e=>{"use strict";e.exports=ReferenceError},389:e=>{"use strict";e.exports=SyntaxError},785:e=>{"use strict";e.exports=TypeError},436:e=>{"use strict";e.exports=URIError},719:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var r=[],n=1,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments),l=r(0,o.length-a.length),u=[],c=0;c<l;c++)u[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=",");return r}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))})),o.prototype){var p=function(){};p.prototype=o.prototype,i.prototype=new p,p.prototype=null}return i}},49:(e,t,r)=>{"use strict";var n=r(719);e.exports=Function.prototype.bind||n},651:(e,t,r)=>{"use strict";var n,o=r(293),i=r(55),a=r(888),l=r(900),u=r(389),c=r(785),p=r(436),s=Function,f=function(e){try{return s('"use strict"; return ('+e+").constructor;")()}catch(e){}},y=Object.getOwnPropertyDescriptor;if(y)try{y({},"")}catch(e){y=null}var d=function(){throw new c},m=y?function(){try{return d}catch(e){try{return y(arguments,"callee").get}catch(e){return d}}}():d,h=r(257)(),g=r(726)(),b=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,S={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&b?b(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(e){var x=b(b(e));S["%Error.prototype%"]=x}var A=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(r=b(o.prototype))}return S[t]=r,r},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(49),O=r(215),I=E.call(Function.call,Array.prototype.concat),P=E.call(Function.apply,Array.prototype.splice),k=E.call(Function.call,String.prototype.replace),_=E.call(Function.call,String.prototype.slice),C=E.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,U=function(e,t){var r,n=e;if(O(j,n)&&(n="%"+(r=j[n])[0]+"%"),O(S,n)){var o=S[n];if(o===v&&(o=A(n)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=_(e,0,1),r=_(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return k(e,R,(function(e,t,r,o){n[n.length]=r?k(o,F,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=U("%"+n+"%",t),i=o.name,a=o.value,l=!1,p=o.alias;p&&(n=p[0],P(r,I([0,1],p)));for(var s=1,f=!0;s<r.length;s+=1){var d=r[s],m=_(d,0,1),h=_(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===h||"'"===h||"`"===h)&&m!==h)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&f||(l=!0),O(S,i="%"+(n+="."+d)+"%"))a=S[i];else if(null!=a){if(!(d in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&s+1>=r.length){var g=y(a,d);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else f=O(a,d),a=a[d];f&&!l&&(S[i]=a)}}return a}},109:(e,t,r)=>{"use strict";var n=r(651)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},890:(e,t,r)=>{"use strict";var n=r(649),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},726:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},257:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(843);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},843:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},215:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(49);e.exports=i.call(n,o)},709:(e,t,r)=>{var n,o=1/0,i="[object Symbol]",a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,l=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\\ud800-\\udfff",c="\\u2700-\\u27bf",p="a-z\\xdf-\\xf6\\xf8-\\xff",s="A-Z\\xc0-\\xd6\\xd8-\\xde",f="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",y="["+f+"]",d="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",m="\\d+",h="["+c+"]",g="["+p+"]",b="[^"+u+f+m+c+p+s+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",w="[\\ud800-\\udbff][\\udc00-\\udfff]",S="["+s+"]",x="(?:"+g+"|"+b+")",A="(?:"+S+"|"+b+")",j="(?:['’](?:d|ll|m|re|s|t|ve))?",E="(?:['’](?:D|LL|M|RE|S|T|VE))?",O="(?:"+d+"|\\ud83c[\\udffb-\\udfff])?",I="[\\ufe0e\\ufe0f]?",P=I+O+"(?:\\u200d(?:"+["[^"+u+"]",v,w].join("|")+")"+I+O+")*",k="(?:"+[h,v,w].join("|")+")"+P,_=RegExp("['’]","g"),C=RegExp(d,"g"),R=RegExp([S+"?"+g+"+"+j+"(?="+[y,S,"$"].join("|")+")",A+"+"+E+"(?="+[y,S+x,"$"].join("|")+")",S+"?"+x+"+"+j,S+"+"+E,m,k].join("|"),"g"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,U="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,M=U||D||Function("return this")(),T=(n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==n?void 0:n[e]}),N=Object.prototype.toString,L=M.Symbol,W=L?L.prototype:void 0,B=W?W.toString:void 0;function q(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&N.call(e)==i}(e))return B?B.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}(e)}var V,z=(V=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){return function(e,t,r,n){for(var o=-1,i=e?e.length:0;++o<i;)r=t(r,e[o],o,e);return r}(function(e,t,r){return e=q(e),void 0===t?function(e){return F.test(e)}(e)?function(e){return e.match(R)||[]}(e):function(e){return e.match(a)||[]}(e):e.match(t)||[]}(function(e){return(e=q(e))&&e.replace(l,T).replace(C,"")}(e).replace(_,"")),V,"")});e.exports=z},937:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&u&&"function"==typeof u.get?u.get:null,p=l&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,x=RegExp.prototype.test,A=Array.prototype.concat,j=Array.prototype.join,E=Array.prototype.slice,O=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function U(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-O(-e):O(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var D=r(634),M=D.custom,T=q(M)?M:null;function N(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function L(e){return v.call(String(e),/"/g,"&quot;")}function W(e){return!("[object Array]"!==G(e)||C&&"object"==typeof e&&C in e)}function B(e){return!("[object RegExp]"!==G(e)||C&&"object"==typeof e&&C in e)}function q(e){if(_)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,l){var u=n||{};if(z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!z(u,"customInspect")||u.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return H(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?U(t,x):x}if("bigint"==typeof t){var O=String(t)+"n";return w?U(t,O):O}var P=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=P&&P>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var M,V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=j.call(Array(e.indent+1)," ")}return{base:r,prev:j.call(Array(t+1),r)}}(u,o);if(void 0===l)l=[];else if($(l,t)>=0)return"[Circular]";function K(t,r,n){if(r&&(l=E.call(l)).push(r),n){var i={depth:u.depth};return z(u,"quoteStyle")&&(i.quoteStyle=u.quoteStyle),e(t,i,o+1,l)}return e(t,u,o+1,l)}if("function"==typeof t&&!B(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=X(t,K);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+j.call(te,", ")+" }":"")}if(q(t)){var re=_?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||_?re:J(re)}if((M=t)&&"object"==typeof M&&("undefined"!=typeof HTMLElement&&M instanceof HTMLElement||"string"==typeof M.nodeName&&"function"==typeof M.getAttribute)){for(var ne="<"+S.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)ne+=" "+oe[ie].name+"="+N(L(oe[ie].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+S.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var ae=X(t,K);return V&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Y(ae,V)+"]":"[ "+j.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==G(e)||C&&"object"==typeof e&&C in e)}(t)){var le=X(t,K);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(le,", ")+" }":"{ ["+String(t)+"] "+j.call(A.call("[cause]: "+K(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(T&&"function"==typeof t[T]&&D)return D(t,{depth:P-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,r){ue.push(K(r,t,!0)+" => "+K(e,t))})),Q("Map",i.call(t),ue,V)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return p&&p.call(t,(function(e){ce.push(K(e,t))})),Q("Set",c.call(t),ce,V)}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return J(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}(t))return J(K(I.call(t)));if(function(e){return!("[object Boolean]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return J(d.call(t));if(function(e){return!("[object String]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return J(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==G(e)||C&&"object"==typeof e&&C in e)}(t)&&!B(t)){var pe=X(t,K),se=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",ye=!se&&C&&Object(t)===t&&C in t?b.call(G(t),8,-1):fe?"Object":"",de=(se||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ye||fe?"["+j.call(A.call([],ye||[],fe||[]),": ")+"] ":"");return 0===pe.length?de+"{}":V?de+"{"+Y(pe,V)+"}":de+"{ "+j.call(pe,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return V.call(e,t)}function G(e){return m.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function H(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return H(b.call(e,0,t.maxStringLength),t)+n}return N(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function J(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function Q(e,t,r,n){return e+" ("+t+") {"+(n?Y(r,n):j.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+j.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=W(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=z(e,o)?t(e[o],e):""}var i,a="function"==typeof P?P(e):[];if(_){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var u in e)z(e,u)&&(r&&String(Number(u))===u&&u<e.length||_&&i["$"+u]instanceof Symbol||(x.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof P)for(var c=0;c<a.length;c++)R.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}},647:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},882:(e,t,r)=>{"use strict";var n=r(402),o=r(662),i=r(647),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,p=function(e,t){c.apply(e,u(t)?t:[t])},s=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},d={},m=function e(t,r,i,a,l,c,s,f,m,h,g,b,v,w,S,x,A,j){for(var E,O=t,I=j,P=0,k=!1;void 0!==(I=I.get(d))&&!k;){var _=I.get(t);if(P+=1,void 0!==_){if(_===P)throw new RangeError("Cyclic object value");k=!0}void 0===I.get(d)&&(P=0)}if("function"==typeof h?O=h(r,O):O instanceof Date?O=v(O):"comma"===i&&u(O)&&(O=o.maybeMap(O,(function(e){return e instanceof Date?v(e):e}))),null===O){if(c)return m&&!x?m(r,y.encoder,A,"key",w):r;O=""}if("string"==typeof(E=O)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(O))return m?[S(x?r:m(r,y.encoder,A,"key",w))+"="+S(m(O,y.encoder,A,"value",w))]:[S(r)+"="+S(String(O))];var C,R=[];if(void 0===O)return R;if("comma"===i&&u(O))x&&m&&(O=o.maybeMap(O,m)),C=[{value:O.length>0?O.join(",")||null:void 0}];else if(u(h))C=h;else{var F=Object.keys(O);C=g?F.sort(g):F}var U=f?r.replace(/\./g,"%2E"):r,D=a&&u(O)&&1===O.length?U+"[]":U;if(l&&u(O)&&0===O.length)return D+"[]";for(var M=0;M<C.length;++M){var T=C[M],N="object"==typeof T&&void 0!==T.value?T.value:O[T];if(!s||null!==N){var L=b&&f?T.replace(/\./g,"%2E"):T,W=u(O)?"function"==typeof i?i(D,L):D:D+(b?"."+L:"["+L+"]");j.set(t,P);var B=n();B.set(d,j),p(R,e(N,W,i,a,l,c,s,f,"comma"===i&&x&&u(O)?null:m,h,g,b,v,w,S,x,A,B))}}return R};e.exports=function(e,t){var r,o=e,c=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=i.formatters[r],c=y.filter;if(("function"==typeof e.filter||u(e.filter))&&(c=e.filter),n=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:p,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:c,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):u(c.filter)&&(r=c.filter);var s=[];if("object"!=typeof o||null===o)return"";var f=l[c.arrayFormat],d="comma"===f&&c.commaRoundTrip;r||(r=Object.keys(o)),c.sort&&r.sort(c.sort);for(var h=n(),g=0;g<r.length;++g){var b=r[g];c.skipNulls&&null===o[b]||p(s,m(o[b],b,f,d,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,h))}var v=s.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},662:(e,t,r)=>{"use strict";var n=r(647),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},u=1024;e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],l=Object.keys(a),u=0;u<l.length;++u){var c=l[u],p=a[c];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(t.push({obj:a,prop:c}),r.push(p))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",p=0;p<l.length;p+=u){for(var s=l.length>=u?l.slice(p,p+u):l,f=[],y=0;y<s.length;++y){var d=s.charCodeAt(y);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===n.RFC1738&&(40===d||41===d)?f[f.length]=s.charAt(y):d<128?f[f.length]=a[d]:d<2048?f[f.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?f[f.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&s.charCodeAt(y)),f[f.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}c+=f.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=l(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},255:(e,t,r)=>{"use strict";var n=r(651),o=r(295),i=r(890)(),a=r(109),l=r(785),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new l("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var p=a(e,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(c=!1)}return(n||c||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},402:(e,t,r)=>{"use strict";var n=r(651),o=r(913),i=r(937),a=r(785),l=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),s=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(u){if(t)return f(t,n)}else if(r)return function(e,t){var r=m(e,t);return r&&r.value}(r,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return s(e,n)}else if(u){if(t)return d(t,n)}else if(r)return function(e,t){return!!m(e,t)}(r,n);return!1},set:function(n,o){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),p(e,n,o)):u?(t||(t=new u),y(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},634:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{"use strict";r.d(n,{default:()=>E});var e=r(882),t=r.n(e);const o=JSON.parse('{"rE":"5.0.0-alpha.2"}');var i,a,l;function u(e){switch(e){case"development":return l.Development;case"staging":return l.Staging;case"canary":return l.Canary;default:return l.Production}}!function(e){e.Cancel="exit",e.Complete="complete",e.Error="error",e.Fail="fail",e.Load="load",e.Ready="ready",e.Start="start",e.Success="success",e.DocumentCameraSelect="document-camera-select",e.DocumentCameraCapture="document-camera-capture",e.DocumentUpload="document-upload",e.OneTimeLinkSent="one-time-link-sent",e.OneTimeLinkStart="one-time-link-start",e.OneTimeLinkExit="one-time-link-exit",e.SelfieCameraSelect="selfie-camera-select",e.SelfieCameraCapture="selfie-camera-capture",e.SelfieRecordUpload="selfie-record-upload",e.LoadCameraFailed="load-camera-failed",e.PageChange="page-change",e.InquiryLoad="inquiry-load",e.CountrySelect="country-select",e.VerificationChange="verification-change"}(i||(i={})),function(e){e.Open="open",e.Exit="exit",e.Destroy="destroy"}(a||(a={})),function(e){e.Development="http://localhost:3000",e.Staging="https://inquiry.withpersona-staging.com",e.Canary="https://canary.withpersona.com",e.Production="https://inquiry.withpersona.com"}(l||(l={}));var c=r(709),p=r.n(c),s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function f(e){return Array.isArray(e)?e.map(f):function(e){return null!=e&&e.constructor===Object}(e)?Object.keys(e).reduce((function(t,r){var n;return s(s({},t),((n={})[p()(r)]=f(e[r]),n))}),{}):e}var y=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},m=function(){function e(e){this.id=e}return e.prototype.isMounted=function(){return null!=document.getElementById(this.id)},e.prototype.mount=function(e){if(document.getElementById(this.id))console.warn("persona: stylesheet ".concat(this.id," already appended. skipping."));else{var t=g("style",{id:this.id},[document.createTextNode(e)]);document.head.appendChild(t)}},e.prototype.unmount=function(){var e,t=document.getElementById(this.id);null!=t?null===(e=t.parentNode)||void 0===e||e.removeChild(t):console.warn("persona: no stylesheet ".concat(this.id," to remove. skipping."))},e}();function h(e,t,r){var n,o,i,a;void 0===r&&(r=[]);var l=document.createElementNS("http://www.w3.org/2000/svg",e);try{for(var u=y(Object.entries(t)),c=u.next();!c.done;c=u.next()){var p=d(c.value,2),s=p[0],f=p[1];"className"===s&&(s="class"),l.setAttribute(s,f)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var m=y(r),h=m.next();!h.done;h=m.next()){var g=h.value;!1!==g&&l.appendChild(g)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}return l}function g(e,t,r){var n,o,i,a;void 0===r&&(r=[]);var l=document.createElement(e);try{for(var u=y(Object.entries(t)),c=u.next();!c.done;c=u.next()){var p=d(c.value,2),s=p[0],f=p[1];"className"===s&&(s="class"),l.setAttribute(s,f)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var m=y(r),h=m.next();!h.done;h=m.next()){var g=h.value;!1!==g&&("string"==typeof g?l.appendChild(document.createTextNode(g)):l.appendChild(g))}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}return l}function b(e){return"string"==typeof e?e:"number"==typeof e?"".concat(e,"px"):""}var v=["allow-scripts","allow-same-origin","allow-popups"],w=["allow-forms","allow-modals","allow-top-navigation-by-user-activation"];function S(e,r,n,i){var a=i.accountId,l=i.accountTypeId,c=i.environment,p=i.environmentId,s=i.fields,y=i.frameAncestors,d=i.frameHeight,m=i.frameWidth,h=i.host,g=i.iframeTitle,S=i.inquiryId,x=i.language,A=i.lockedAttributes,j=i.messageTargetOrigin,E=i.prefill,O=i.referenceId,I=i.routingCountry,P=i.sandboxAttributes,k=void 0===P?w:P,_=i.sessionToken,C=i.styleVariant,R=i.templateId,F=i.templateVersionId,U=i.themeId,D=i.themeSetId,M=!(!R&&!F),T=null==R?void 0:R.startsWith("itmpl_");if(!M&&!S)throw new Error("Either templateId/templateVersionId or inquiryId must be specified to start a flow");if(M&&S)throw new Error("Only one of templateId/templateVersionId or inquiryId should be specified to start a flow");if(a){if(O)throw new Error("Cannot pass both accountId and referenceId");if(l)throw new Error("Cannot pass both accountId and accountTypeId")}var N=u(h),L=t()({"client-version":o.rE,"container-id":r,"flow-type":n,"routing-country":I,"template-id":(T?null:R)||null,"inquiry-template-id":(T?R:null)||null,"inquiry-template-version-id":F||null,environment:c,"environment-id":p,"iframe-origin":window.location.origin,"frame-ancestors":null!=y?y:null,"message-target-origin":j||null,"inquiry-id":S||null,language:x,"session-token":_,"reference-id":O,"account-id":a,"account-type-id":l,fields:f(null!=s?s:{}),"style-variant":C||null,"theme-set-id":D,"theme-id":U,prefill:f(null!=E?E:{}),"locked-attributes":f(null!=A?A:{})},{addQueryPrefix:!0,skipNulls:!0});return e.style.maxHeight=b(d),e.style.maxWidth=b(m),e.setAttribute("data-testid","persona-widget__iframe"),e.title=null!=g?g:"Verify your identity",e.className="persona-widget__iframe",e.allow="camera;microphone",e.setAttribute("sandbox",v.concat(k).join(" ")),e.frameBorder="0",e.src=N+"/widget"+L,e.onload=function(){},e}const x=function(){function e(){}return e.log=function(e,t){void 0===t&&(t="info")},e}();var A=function(e){return e.split(".").slice(-2).join(".")};function j(e,t){var r=t.onLoad,n=t.onReady,o=t.onComplete,a=t.onEvent,l=t.onCancel,c=t.onError,p=t.templateId,s=t.templateVersionId,f=t.host,y=function(t){var y,d=u(null!=f?f:"production");if((""===t.origin||A(new URL(t.origin).host)===A(new URL(d).host))&&!(p&&p!==t.data.templateId||s&&s!==t.data.templateVersionId||t.data.containerId&&e!==t.data.containerId))switch(null==a||a(t.data.name,t.data.metadata),t.data.name){case i.Load:null==r||r();break;case i.Ready:null==n||n();break;case i.Complete:case i.Fail:null==o||o({inquiryId:t.data.metadata.inquiryId,status:t.data.metadata.status,fields:null!==(y=t.data.metadata.fields)&&void 0!==y?y:t.data.metadata.scopes});break;case i.Cancel:null==l||l({inquiryId:t.data.metadata.inquiryId,sessionToken:t.data.metadata.sessionToken});break;case i.Error:null==c||c(t.data.error)}};return window.addEventListener("message",y),function(){window.removeEventListener("message",y)}}const E={Client:function(){function e(e){var t,r,n,o,i,a,l,u,c,p,s,f=this;this._isLoading=!0,this._isOpen=!1,this.personaCSS=new m("persona-widget-styles"),this.globalCSS=new m("persona-global-styles"),this.onLoad=function(){var e,t;f._isLoading=!1,f.render(),null===(t=(e=f.options).onLoad)||void 0===t||t.call(e)},this.onReady=function(){var e,t;null===(t=(e=f.options).onReady)||void 0===t||t.call(e)},this.onComplete=function(e){var t,r,n=e.inquiryId,o=e.status,i=e.fields;f._isOpen=!1,f.render(),null===(r=(t=f.options).onComplete)||void 0===r||r.call(t,{inquiryId:n,status:o,fields:i})},this.onCancel=function(e){var t,r,n=e.inquiryId,o=e.sessionToken;f._isOpen=!1,f.render(),null===(r=(t=f.options).onCancel)||void 0===r||r.call(t,{inquiryId:n,sessionToken:o})},this.options=e,this.containerParent=null!==(r=null!==(t=e.parent)&&void 0!==t?t:document.body)&&void 0!==r?r:document.children[0],this.containerElement=g("div",{class:"persona-widget__overlay",style:"display: ".concat(this._isOpen?"block":"none")}),this.containerId="persona-widget-"+new Array(16).fill(void 0).map((function(){return Math.floor(35*Math.random()).toString(35)})).join(""),this.containerElement.setAttribute("id",this.containerId),this.loadingElement=g("div",{class:"persona-widget__centered-frame"},[h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"114",height:"114",class:"persona-widget__loading-spinner"},[h("path",{fill:"none",stroke:"#0F2B72",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M25.887 10.432a56.275 56.275 0 0 0-15.455 15.455 55.86 55.86 0 0 0-5.183 9.678A55.576 55.576 0 0 0 2.066 46.07m-.8 5.438A56.678 56.678 0 0 0 1 57m4.249 21.435a55.86 55.86 0 0 0 5.183 9.678 56.275 56.275 0 0 0 6.97 8.485m8.485 6.97a55.86 55.86 0 0 0 9.678 5.183 55.576 55.576 0 0 0 10.506 3.183c3.535.7 7.19 1.066 10.929 1.066 3.74 0 7.394-.367 10.929-1.066a55.576 55.576 0 0 0 10.506-3.183 55.86 55.86 0 0 0 9.678-5.183 56.275 56.275 0 0 0 15.455-15.455 55.86 55.86 0 0 0 5.183-9.678 55.576 55.576 0 0 0 3.183-10.506A56.274 56.274 0 0 0 113 57c0-3.74-.367-7.394-1.066-10.929a55.576 55.576 0 0 0-3.183-10.506M96.598 17.402a56.275 56.275 0 0 0-8.485-6.97 55.86 55.86 0 0 0-9.678-5.183A55.576 55.576 0 0 0 67.93 2.066 56.274 56.274 0 0 0 57 1c-3.74 0-7.394.367-10.929 1.066m-34.94 30.418A51.76 51.76 0 0 0 7.225 41.9a51.633 51.633 0 0 0-1.98 10 52.63 52.63 0 0 0 .744 15.247 51.633 51.633 0 0 0 7.768 18.743 52.188 52.188 0 0 0 10.254 11.308 52.188 52.188 0 0 0 8.472 5.67m9.417 3.905a51.633 51.633 0 0 0 10 1.98 52.63 52.63 0 0 0 10.197 0 51.939 51.939 0 0 0 10-1.98 51.61 51.61 0 0 0 9.418-3.904 51.984 51.984 0 0 0 8.472-5.671m3.782-3.43a52.308 52.308 0 0 0 3.429-3.78m9.575-17.89a51.633 51.633 0 0 0 1.98-10 52.63 52.63 0 0 0-.744-15.247 51.633 51.633 0 0 0-7.768-18.743 52.188 52.188 0 0 0-10.254-11.308m-4.097-3.043a51.984 51.984 0 0 0-4.375-2.628M67.148 5.99a51.939 51.939 0 0 0-5.05-.743 52.63 52.63 0 0 0-15.246.743 51.633 51.633 0 0 0-18.743 7.768M24.012 16.8a52.308 52.308 0 0 0-3.782 3.43"})])]),this.containerElement.append(this.loadingElement),this.isLoading?this.loadingElement.style.display="block":this.loadingElement.style.display="none",this.iframeElement=document.createElement("iframe"),this.unsubscribeFromEvents=j(this.containerId,{onLoad:null!==(n=this.onLoad)&&void 0!==n?n:null,onReady:null!==(o=this.onReady)&&void 0!==o?o:null,onComplete:null!==(i=this.onComplete)&&void 0!==i?i:null,onCancel:null!==(a=this.onCancel)&&void 0!==a?a:null,onEvent:null!==(l=this.options.onEvent)&&void 0!==l?l:null,onError:null!==(u=this.options.onError)&&void 0!==u?u:null,templateId:null!==(c=this.options.templateId)&&void 0!==c?c:null,templateVersionId:null!==(p=this.options.templateVersionId)&&void 0!==p?p:null,host:null!==(s=this.options.host)&&void 0!==s?s:null}),this.containerElement.appendChild(this.iframeElement),this.containerParent.appendChild(this.containerElement),this.personaCSS.mount("@keyframes persona-widget__fadeIn {\n from {\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n }\n to {\n /* persona-widget__overlay opacity = 0.7 */\n background-color: rgba(0, 0, 0, 0.7);\n opacity: 1;\n }\n}\n\n@keyframes persona-widget__genieSlideIn {\n from {\n transform: translate(-50%, -40%) scale(0.8);\n }\n 90% {\n transform: translate(-50%, -51%) scale(1.01);\n }\n to {\n transform: translate(-50%, -50%);\n }\n}\n\n@keyframes persona-widget__slideDown {\n from {\n transform: translate(-50%, -55%);\n }\n to {\n transform: translate(-50%, -50%);\n }\n}\n\n.persona-widget__overlay {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 9999;\n animation: persona-widget__fadeIn 0.3s;\n background-color: rgba(0, 0, 0, 0.7);\n}\n\n.persona-widget__overlay .persona-widget__centered-frame {\n width: 120px;\n height: 120px;\n position: absolute;\n left: calc(50% - 60px);\n top: calc(50% - 60px);\n z-index: 9999;\n}\n\n.persona-widget__overlay .persona-widget__loading-spinner {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.persona-widget__overlay .persona-widget__iframe {\n animation: persona-widget__genieSlideIn 0.3s, persona-widget__slideDown ease-out 0.3s;\n\n width: 100%;\n height: 100%;\n\n margin-left: auto;\n margin-right: auto;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n background-color: #ffffff;\n border: none;\n border-radius: 4px;\n box-shadow: 0px 12px 40px 2px rgba(0, 0, 0, 0.4);\n\n @media only screen and (min-width: 600.02px) and (min-height: 600.02px) {\n max-width: 400px;\n max-height: 650px;\n }\n}\n");try{this.iframeElement=S(this.iframeElement,this.containerId,"embedded",this.options)}catch(e){throw console.error("Persona",e),this.destroy(),e}this.render()}return e.preload=function(e){return void 0===e&&(e="production"),new Promise((function(t){var r=u(e),n=document.createElement("iframe");n.frameBorder="0",n.style.height="0px",n.style.width="0px",n.style.display="none",n.src=r+"/preload",document.body.appendChild(n),n.onload=function(){document.body.removeChild(n),t()}}))},e.prototype.render=function(){var e;null!=this.containerElement?(this.loadingElement.style.display=this.isLoading?"block":"none",this.containerElement.style.display=this.isOpen?"block":"none",this.isOpen&&!this.globalCSS.isMounted()?this.globalCSS.mount((e=this.containerId,"\n /* Don't allow scrolling when widget is open */\n html body {\n overflow: hidden !important;\n }\n\n /* When the widget takes the full screen, hide everything else to prevent iOS scroll issues. */\n @media ".concat("(max-width: 600px), (max-height: 420px)"," {\n html body > *:not(#").concat(e,") {\n display: none !important;\n }\n }\n"))):!this.isOpen&&this.globalCSS.isMounted()&&this.globalCSS.unmount()):x.log("Cannot render client that has been destroyed","error")},e.prototype.open=function(){var e;null===(e=this.iframeElement.contentWindow)||void 0===e||e.postMessage({action:a.Open,metadata:{}},this.baseUrl),this._isOpen=!0,this.render()},e.prototype.cancel=function(e){var t;null===(t=this.iframeElement.contentWindow)||void 0===t||t.postMessage({action:a.Exit,metadata:{force:e}},this.baseUrl),this.render()},e.prototype.destroy=function(){var e;null===(e=this.iframeElement.contentWindow)||void 0===e||e.postMessage({action:a.Destroy,metadata:{}},this.baseUrl),this.personaCSS.unmount(),this.globalCSS.unmount(),this.containerParent.removeChild(this.containerElement),this.unsubscribeFromEvents()},Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return u(this.options.host)},enumerable:!1,configurable:!0}),e}(),setupIframe:S,setupEvents:j}})(),n.default})()));
{
"name": "persona",
"version": "5.0.0-alpha.1",
"version": "5.0.0-alpha.2",
"description": "The official JavaScript SDK for the Persona Inquiry Flow.",

@@ -15,6 +15,6 @@ "main": "./dist/persona.js",

"prepublishOnly": "yarn tsc && yarn webpack --mode=production",
"release": "yarn standard-version -t persona@",
"watch": "webpack --watch",
"cypress:open": "TZ=Etc/UTC cypress open",
"cypress:run": "TZ=Etc/UTC cypress run",
"prepare": "husky"
"cypress:run": "TZ=Etc/UTC cypress run"
},

@@ -26,7 +26,6 @@ "dependencies": {

"devDependencies": {
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.23.9",
"@commitlint/cli": "^19.1.0",
"@commitlint/config-conventional": "^19.1.0",
"@testing-library/jest-dom": "^6.4.2",
"@types/jest": "^27.0.1",
"@types/jest": "^29.0.0",
"@types/lodash.kebabcase": "^4.1.9",

@@ -42,3 +41,2 @@ "@types/qs": "^6.9.11",

"eslint": "^8.56.0",
"husky": "^9.0.11",
"jest": "^29.7.0",

@@ -91,4 +89,3 @@ "jest-environment-jsdom": "^29.7.0",

}
},
"packageManager": "yarn@3.6.4"
}
}

@@ -31,3 +31,3 @@ # Persona Inquiry JavaScript SDK

```javascript
import Client from 'persona';
import { Client } from 'persona';

@@ -34,0 +34,0 @@ const client = new Client({

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc