UNPKG

@clerk/clerk-js

Version:
1 lines 11.1 kB
(globalThis.rspackChunk_clerk_clerk_js=globalThis.rspackChunk_clerk_clerk_js||[]).push([[545],{4362(t,r,e){"use strict";function n(){for(var t,r,e=0,n="";e<arguments.length;)(t=arguments[e++])&&(r=function t(r){var e,n,i="";if("string"==typeof r||"number"==typeof r)i+=r;else if("object"==typeof r)if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(n=t(r[e]))&&(i&&(i+=" "),i+=n);else for(e in r)r[e]&&(i&&(i+=" "),i+=e);return i}(t))&&(n&&(n+=" "),n+=r);return n}e.d(r,{$:()=>n})},1513(t,r,e){var n;e(2033),e(303),e(9166),e(6106),e(5722),e(2742),e(1949),e(7553),e(2148),e(9055),e(1435),e(4586),e(5850),e(5135),e(5254),e(4104),t.exports=n=n||function(t){if("u">typeof window&&window.crypto&&(r=window.crypto),"u">typeof self&&self.crypto&&(r=self.crypto),"u">typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"u">typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==e.g&&e.g.crypto&&(r=e.g.crypto),!r)try{r=e(8488)}catch(t){}var r,n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(r){var e;return t.prototype=r,e=new t,t.prototype=null,e}}(),o={},s=o.lib={},a=s.Base={extend:function(t){var r=i(this);return t&&r.mixIn(t),r.hasOwnProperty("init")&&this.init!==r.init||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var r in t)t.hasOwnProperty(r)&&(this[r]=t[r]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,r){t=this.words=t||[],void 0!=r?this.sigBytes=r:this.sigBytes=4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var r=this.words,e=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=e[o>>>2]>>>24-o%4*8&255;r[n+o>>>2]|=s<<24-(n+o)%4*8}else for(var a=0;a<i;a+=4)r[n+a>>>2]=e[a>>>2];return this.sigBytes+=i,this},clamp:function(){var r=this.words,e=this.sigBytes;r[e>>>2]&=0xffffffff<<32-e%4*8,r.length=t.ceil(e/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var r=[],e=0;e<t;e+=4)r.push(n());return new c.init(r,t)}}),u=o.enc={},f=u.Hex={stringify:function(t){for(var r=t.words,e=t.sigBytes,n=[],i=0;i<e;i++){var o=r[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var r=t.length,e=[],n=0;n<r;n+=2)e[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(e,r/2)}},h=u.Latin1={stringify:function(t){for(var r=t.words,e=t.sigBytes,n=[],i=0;i<e;i++){var o=r[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var r=t.length,e=[],n=0;n<r;n++)e[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(e,r)}},l=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},d=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(r){var e,n=this._data,i=n.words,o=n.sigBytes,s=this.blockSize,a=o/(4*s),u=(a=r?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,f=t.min(4*u,o);if(u){for(var h=0;h<u;h+=s)this._doProcessBlock(i,h);e=i.splice(0,u),n.sigBytes-=f}return new c.init(e,f)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=d.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(r,e){return new t.init(e).finalize(r)}},_createHmacHelper:function(t){return function(r,e){return new p.HMAC.init(t,e).finalize(r)}}});var p=o.algo={};return o}(Math)},5662(t,r,e){var n,i;e(4104),i=(n=e(1513)).lib.WordArray,n.enc.Base64={stringify:function(t){var r=t.words,e=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<e;o+=3)for(var s=(r[o>>>2]>>>24-o%4*8&255)<<16|(r[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|r[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<e;a++)i.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(t){var r=t.length,e=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<e.length;o++)n[e.charCodeAt(o)]=o}var s=e.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(r=a)}for(var c=t,u=r,f=n,h=[],l=0,d=0;d<u;d++)if(d%4){var p=f[c.charCodeAt(d-1)]<<d%4*2|f[c.charCodeAt(d)]>>>6-d%4*2;h[l>>>2]|=p<<24-l%4*8,l++}return i.create(h,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},t.exports=n.enc.Base64},3515(t,r,e){var n,i,o,s,a,c,u;o=(i=(n=e(1513)).lib).WordArray,s=i.Hasher,a=n.algo,c=[],u=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function(t,r){for(var e=this._hash.words,n=e[0],i=e[1],o=e[2],s=e[3],a=e[4],u=0;u<80;u++){if(u<16)c[u]=0|t[r+u];else{var f=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=f<<1|f>>>31}var h=(n<<5|n>>>27)+a+c[u];u<20?h+=(i&o|~i&s)+0x5a827999:u<40?h+=(i^o^s)+0x6ed9eba1:u<60?h+=(i&o|i&s|o&s)-0x70e44324:h+=(i^o^s)-0x359d3e2a,a=s,s=o,o=i<<30|i>>>2,i=n,n=h}e[0]=e[0]+n|0,e[1]=e[1]+i|0,e[2]=e[2]+o|0,e[3]=e[3]+s|0,e[4]=e[4]+a|0},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[(n+64>>>9<<4)+14]=Math.floor(e/0x100000000),r[(n+64>>>9<<4)+15]=e,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}}),n.SHA1=s._createHelper(u),n.HmacSHA1=s._createHmacHelper(u),t.exports=n.SHA1},8852(t,r,e){"use strict";var n=e(3179),i=e(6177),o=e(9226),s=e(8301);t.exports=function(t,r){r&&"string"==typeof t||i(t);var e=s(t);return o(i(void 0!==e?n(e,t):t))}},6003(t){"use strict";var r=RangeError;t.exports=function(t){if(t==t)return t;throw new r("NaN is not allowed")}},789(t,r,e){"use strict";var n=e(4808),i=e(2095),o=e(2956),s=e(5825),a=e(1643);n({target:"Array",proto:!0},{at:function(t){var r=i(this),e=o(r),n=s(t),a=n>=0?n:e+n;return a<0||a>=e?void 0:r[a]}}),a("at")},6129(t,r,e){"use strict";var n=e(4808),i=e(184).right,o=e(2604),s=e(6153);n({target:"Array",proto:!0,forced:!e(5523)&&s>79&&s<83||!o("reduceRight")},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},119(t,r,e){"use strict";e(1643)("flatMap")},5249(t,r,e){"use strict";var n=e(4808),i=e(3179),o=e(860),s=e(6177),a=e(9226),c=e(8852),u=e(1352),f=e(5053),h=e(1201),l=e(5682),d=e(6655),p=!h&&!l("flatMap",function(){}),g=!h&&!p&&d("flatMap",TypeError),v=h||p||g,y=u(function(){for(var t,r,e=this.iterator,n=this.mapper;;){if(r=this.inner)try{if(!(t=s(i(r.next,r.iterator))).done)return t.value;this.inner=null}catch(t){f(e,"throw",t)}if(t=s(i(this.next,e)),this.done=!!t.done)return;try{this.inner=c(n(t.value,this.counter++),!1)}catch(t){f(e,"throw",t)}}});n({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(t){s(this);try{o(t)}catch(t){f(this,"throw",t)}return g?i(g,this,t):new y(a(this),{mapper:t,inner:null})}})},2434(t,r,e){"use strict";var n=e(4808),i=e(3179),o=e(6177),s=e(9226),a=e(6003),c=e(1280),u=e(1352),f=e(5053),h=e(6655),l=e(1201),d=!l&&h("take",RangeError),p=u(function(){var t=this.iterator;if(!this.remaining--)return this.done=!0,f(t,"normal",void 0);var r=o(i(this.next,t));if(!(this.done=!!r.done))return r.value});n({target:"Iterator",proto:!0,real:!0,forced:l||d},{take:function(t){var r;o(this);try{r=c(a(+t))}catch(t){f(this,"throw",t)}return d?i(d,this,r):new p(s(this),{remaining:r})}})},2085(t,r,e){"use strict";e(4808)({target:"Object",stat:!0},{hasOwn:e(6151)})},1045(t,r,e){"use strict";var n=e(4808),i=e(3179),o=e(860),s=e(3761),a=e(2181),c=e(2150);n({target:"Promise",stat:!0,forced:e(7435)},{allSettled:function(t){var r=this,e=s.f(r),n=e.resolve,u=e.reject,f=a(function(){var e=o(r.resolve),s=[],a=0,u=1;c(t,function(t){var o=a++,c=!1;u++,i(e,r,t).then(function(t){!c&&(c=!0,s[o]={status:"fulfilled",value:t},--u||n(s))},function(t){!c&&(c=!0,s[o]={status:"rejected",reason:t},--u||n(s))})}),--u||n(s)});return f.error&&u(f.value),e.promise}})},2839(t,r,e){"use strict";var n=e(4808),i=e(2782),o=e(5804),s=e(5825),a=e(3641),c=e(9293),u=i("".charAt);n({target:"String",proto:!0,forced:c(function(){return"\uD842"!=="𠮷".at(-2)})},{at:function(t){var r=a(o(this)),e=r.length,n=s(t),i=n>=0?n:e+n;return i<0||i>=e?void 0:u(r,i)}})},260(t,r,e){"use strict";var n=e(4808),i=e(3179),o=e(2782),s=e(5804),a=e(8039),c=e(8188),u=e(7494),f=e(3641),h=e(5112),l=e(1148),d=e(7256),p=e(5869),g=e(1201),v=p("replace"),y=TypeError,w=o("".indexOf),m=o("".replace),_=o("".slice),x=Math.max;n({target:"String",proto:!0},{replaceAll:function(t,r){var e,n,o,p,B,A,b,S,k,H=s(this),C=0,M="";if(c(t)){if((e=u(t))&&!~w(f(s(l(t))),"g"))throw new y("`.replaceAll` does not allow non-global regexes");if(n=h(t,v))return i(n,t,H,r);if(g&&e)return m(f(H),t,r)}for(o=f(H),p=f(t),(B=a(r))||(r=f(r)),b=x(1,A=p.length),S=w(o,p);-1!==S;)k=B?f(r(p,S,o)):d(p,o,S,[],void 0,r),M+=_(o,C,S)+k,C=S+A,S=S+b>o.length?-1:w(o,p,S+b);return C<o.length&&(M+=_(o,C)),M}})},8559(t,r,e){"use strict";var n=e(5087);(0,e(7882).exportTypedArrayStaticMethod)("from",e(6705),n)},7010(t,r,e){"use strict";var n=e(7882),i=e(5087),o=n.aTypedArrayConstructor;(0,n.exportTypedArrayStaticMethod)("of",function(){for(var t=0,r=arguments.length,e=new(o(this))(r);r>t;)e[t]=arguments[t++];return e},i)},5722(t,r,e){"use strict";e(1853)("Uint32",function(t){return function(r,e,n){return t(this,r,e,n)}})},8465(t,r,e){"use strict";let n;function i(t){return new Promise((r,e)=>{t.oncomplete=t.onsuccess=()=>r(t.result),t.onabort=t.onerror=()=>e(t.error)})}function o(t,r){let e=indexedDB.open(t);e.onupgradeneeded=()=>e.result.createObjectStore(r);let n=i(e);return(t,e)=>n.then(n=>e(n.transaction(r,t).objectStore(r)))}function s(){return n||(n=o("keyval-store","keyval")),n}function a(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s();return r("readonly",r=>i(r.get(t)))}function c(t,r){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s();return e("readwrite",e=>(e.put(r,t),i(e.transaction)))}function u(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s();return r("readwrite",r=>(r.delete(t),i(r.transaction)))}e(3560),e(2949),e(4086),e(6395),e(7891),e(4104),e.d(r,{Jt:()=>a,hZ:()=>c,y$:()=>o,yH:()=>u})}}]);