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

@corbado/webcomponent

Package Overview
Dependencies
Maintainers
2
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@corbado/webcomponent - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "@corbado/webcomponent",
"version": "1.0.4",
"version": "1.0.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "pkg/auth.js",

/*! For license information please see session.js.LICENSE.txt */
var CorbadoSession;(()=>{var e={230:e=>{e.exports="object"==typeof self?self.FormData:window.FormData}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";function e(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.r(r),n.d(r,{default:()=>_n}),Object.assign;const t=Object.prototype.hasOwnProperty,o=(e,n)=>t.call(e,n),s=Array.isArray,i=e=>"[object Map]"===l(e),a=e=>"symbol"==typeof e,c=e=>null!==e&&"object"==typeof e,u=Object.prototype.toString,l=e=>u.call(e),f=e=>l(e).slice(8,-1),h=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,d=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},p=/-(\w)/g,m=(d((e=>e.replace(p,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),g=(d((e=>e.replace(m,"-$1").toLowerCase())),d((e=>e.charAt(0).toUpperCase()+e.slice(1)))),b=(d((e=>e?`on${g(e)}`:"")),(e,t)=>!Object.is(e,t)),y=e=>{const t=new Set(e);return t.w=0,t.n=0,t},w=e=>(e.w&_)>0,E=e=>(e.n&_)>0,v=new WeakMap;let O=0,_=1;const R=30;let S;const j=Symbol(""),T=Symbol("");let x=!0;const A=[];function C(e,t,n){if(x&&S){let t=v.get(e);t||v.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=y()),k(r)}}function k(e,t){let n=!1;O<=R?E(e)||(e.n|=_,n=!w(e)):n=!e.has(S),n&&(e.add(S),S.deps.push(e))}function N(e,t,n,r,o,a){const c=v.get(e);if(!c)return;let u=[];if("clear"===t)u=[...c.values()];else if("length"===n&&s(e))c.forEach(((e,t)=>{("length"===t||t>=r)&&u.push(e)}));else switch(void 0!==n&&u.push(c.get(n)),t){case"add":s(e)?h(n)&&u.push(c.get("length")):(u.push(c.get(j)),i(e)&&u.push(c.get(T)));break;case"delete":s(e)||(u.push(c.get(j)),i(e)&&u.push(c.get(T)));break;case"set":i(e)&&u.push(c.get(j))}if(1===u.length)u[0]&&P(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);P(y(e))}}function P(e,t){const n=s(e)?e:[...e];for(const e of n)e.computed&&U(e);for(const e of n)e.computed||U(e)}function U(e,t){(e!==S||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const B=e("__proto__,__v_isRef,__isVue"),D=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(a)),L=M(),F=M(!0),z=I();function I(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ee(this);for(let e=0,t=this.length;e<t;e++)C(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Ee)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){A.push(x),x=!1;const n=Ee(this)[t].apply(this,e);return function(){const e=A.pop();x=void 0===e||e}(),n}})),e}function M(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?pe:de:t?he:fe).get(n))return n;const u=s(n);if(!e&&u&&o(z,r))return Reflect.get(z,r,i);const l=Reflect.get(n,r,i);return(a(r)?D.has(r):B(r))?l:(e||C(n,0,r),t?l:_e(l)?u&&h(r)?l:l.value:c(l)?e?ge(l):me(l):l)}}function W(e=!1){return function(t,n,r,i){let a=t[n];if(ye(a)&&_e(a)&&!_e(r))return!1;if(!e&&(we(r)||ye(r)||(a=Ee(a),r=Ee(r)),!s(t)&&_e(a)&&!_e(r)))return a.value=r,!0;const c=s(t)&&h(n)?Number(n)<t.length:o(t,n),u=Reflect.set(t,n,r,i);return t===Ee(i)&&(c?b(r,a)&&N(t,"set",n,r):N(t,"add",n,r)),u}}const J={get:L,set:W(),deleteProperty:function(e,t){const n=o(e,t),r=(e[t],Reflect.deleteProperty(e,t));return r&&n&&N(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return a(t)&&D.has(t)||C(e,0,t),n},ownKeys:function(e){return C(e,0,s(e)?"length":j),Reflect.ownKeys(e)}},q={get:F,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},V=e=>e,H=e=>Reflect.getPrototypeOf(e);function K(e,t,n=!1,r=!1){const o=Ee(e=e.__v_raw),s=Ee(t);n||(t!==s&&C(o,0,t),C(o,0,s));const{has:i}=H(o),a=r?V:n?Oe:ve;return i.call(o,t)?a(e.get(t)):i.call(o,s)?a(e.get(s)):void(e!==o&&e.get(t))}function $(e,t=!1){const n=this.__v_raw,r=Ee(n),o=Ee(e);return t||(e!==o&&C(r,0,e),C(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function X(e,t=!1){return e=e.__v_raw,!t&&C(Ee(e),0,j),Reflect.get(e,"size",e)}function Q(e){e=Ee(e);const t=Ee(this);return H(t).has.call(t,e)||(t.add(e),N(t,"add",e,e)),this}function Z(e,t){t=Ee(t);const n=Ee(this),{has:r,get:o}=H(n);let s=r.call(n,e);s||(e=Ee(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?b(t,i)&&N(n,"set",e,t):N(n,"add",e,t),this}function G(e){const t=Ee(this),{has:n,get:r}=H(t);let o=n.call(t,e);o||(e=Ee(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&N(t,"delete",e,void 0),s}function Y(){const e=Ee(this),t=0!==e.size,n=e.clear();return t&&N(e,"clear",void 0,void 0),n}function ee(e,t){return function(n,r){const o=this,s=o.__v_raw,i=Ee(s),a=t?V:e?Oe:ve;return!e&&C(i,0,j),s.forEach(((e,t)=>n.call(r,a(e),a(t),o)))}}function te(e,t,n){return function(...r){const o=this.__v_raw,s=Ee(o),a=i(s),c="entries"===e||e===Symbol.iterator&&a,u="keys"===e&&a,l=o[e](...r),f=n?V:t?Oe:ve;return!t&&C(s,0,u?T:j),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:c?[f(e[0]),f(e[1])]:f(e),done:t}},[Symbol.iterator](){return this}}}}function ne(e){return function(...t){return"delete"!==e&&this}}function re(){const e={get(e){return K(this,e)},get size(){return X(this)},has:$,add:Q,set:Z,delete:G,clear:Y,forEach:ee(!1,!1)},t={get(e){return K(this,e,!1,!0)},get size(){return X(this)},has:$,add:Q,set:Z,delete:G,clear:Y,forEach:ee(!1,!0)},n={get(e){return K(this,e,!0)},get size(){return X(this,!0)},has(e){return $.call(this,e,!0)},add:ne("add"),set:ne("set"),delete:ne("delete"),clear:ne("clear"),forEach:ee(!0,!1)},r={get(e){return K(this,e,!0,!0)},get size(){return X(this,!0)},has(e){return $.call(this,e,!0)},add:ne("add"),set:ne("set"),delete:ne("delete"),clear:ne("clear"),forEach:ee(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=te(o,!1,!1),n[o]=te(o,!0,!1),t[o]=te(o,!1,!0),r[o]=te(o,!0,!0)})),[e,n,t,r]}const[oe,se,ie,ae]=re();function ce(e,t){const n=t?e?ae:ie:e?se:oe;return(t,r,s)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(o(n,r)&&r in t?n:t,r,s)}const ue={get:ce(!1,!1)},le={get:ce(!0,!1)},fe=new WeakMap,he=new WeakMap,de=new WeakMap,pe=new WeakMap;function me(e){return ye(e)?e:be(e,!1,J,ue,fe)}function ge(e){return be(e,!0,q,le,de)}function be(e,t,n,r,o){if(!c(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(f(a));var a;if(0===i)return e;const u=new Proxy(e,2===i?r:n);return o.set(e,u),u}function ye(e){return!(!e||!e.__v_isReadonly)}function we(e){return!(!e||!e.__v_isShallow)}function Ee(e){const t=e&&e.__v_raw;return t?Ee(t):e}const ve=e=>c(e)?me(e):e,Oe=e=>c(e)?ge(e):e;function _e(e){return!(!e||!0!==e.__v_isRef)}class Re{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ee(e),this._value=t?e:ve(e)}get value(){return e=this,x&&S&&k((e=Ee(e)).dep||(e.dep=y())),this._value;var e}set value(e){const t=this.__v_isShallow||we(e)||ye(e);var n;e=t?e:Ee(e),b(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ve(e),(n=Ee(n=this)).dep&&P(n.dep))}}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var je=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=Se({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var i in o)o[i]&&(s+="; "+i,!0!==o[i]&&(s+="="+o[i].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+s}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var s=n[o].split("="),i=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(r[a]=t.read(i,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",Se({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Se({},this.attributes,t))},withConverter:function(t){return e(Se({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Te=je;function xe(e){const t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function Ae(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ce}=Object.prototype,{getPrototypeOf:ke}=Object,Ne=(Pe=Object.create(null),e=>{const t=Ce.call(e);return Pe[t]||(Pe[t]=t.slice(8,-1).toLowerCase())});var Pe;const Ue=e=>(e=e.toLowerCase(),t=>Ne(t)===e),Be=e=>t=>typeof t===e,{isArray:De}=Array,Le=Be("undefined"),Fe=Ue("ArrayBuffer"),ze=Be("string"),Ie=Be("function"),Me=Be("number"),We=e=>null!==e&&"object"==typeof e,Je=e=>{if("object"!==Ne(e))return!1;const t=ke(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},qe=Ue("Date"),Ve=Ue("File"),He=Ue("Blob"),Ke=Ue("FileList"),$e=Ue("URLSearchParams");function Xe(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),De(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}const Qe=(Ze="undefined"!=typeof Uint8Array&&ke(Uint8Array),e=>Ze&&e instanceof Ze);var Ze;const Ge=Ue("HTMLFormElement"),Ye=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),et=Ue("RegExp"),tt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Xe(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},nt={isArray:De,isArrayBuffer:Fe,isBuffer:function(e){return null!==e&&!Le(e)&&null!==e.constructor&&!Le(e.constructor)&&Ie(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Ce.call(e)===t||Ie(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Fe(e.buffer),t},isString:ze,isNumber:Me,isBoolean:e=>!0===e||!1===e,isObject:We,isPlainObject:Je,isUndefined:Le,isDate:qe,isFile:Ve,isBlob:He,isRegExp:et,isFunction:Ie,isStream:e=>We(e)&&Ie(e.pipe),isURLSearchParams:$e,isTypedArray:Qe,isFileList:Ke,forEach:Xe,merge:function e(){const t={},n=(n,r)=>{Je(t[r])&&Je(n)?t[r]=e(t[r],n):Je(n)?t[r]=e({},n):De(n)?t[r]=n.slice():t[r]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Xe(arguments[e],n);return t},extend:(e,t,n,{allOwnKeys:r}={})=>(Xe(t,((t,r)=>{n&&Ie(t)?e[r]=Ae(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&ke(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ne,kindOfTest:Ue,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(De(e))return e;let t=e.length;if(!Me(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Ge,hasOwnProperty:Ye,hasOwnProp:Ye,reduceDescriptors:tt,freezeMethods:e=>{tt(e,((t,n)=>{const r=e[n];Ie(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return De(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t)};function rt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}nt.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ot=rt.prototype,st={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{st[e]={value:e}})),Object.defineProperties(rt,st),Object.defineProperty(ot,"isAxiosError",{value:!0}),rt.from=(e,t,n,r,o,s)=>{const i=Object.create(ot);return nt.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),rt.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const it=rt,at=n(230);function ct(e){return nt.isPlainObject(e)||nt.isArray(e)}function ut(e){return nt.endsWith(e,"[]")?e.slice(0,-2):e}function lt(e,t,n){return e?e.concat(t).map((function(e,t){return e=ut(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ft=nt.toFlatObject(nt,{},null,(function(e){return/^is[A-Z]/.test(e)})),ht=function(e,t,n){if(!nt.isObject(e))throw new TypeError("target must be an object");t=t||new(at||FormData);const r=(n=nt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!nt.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(c=t)&&nt.isFunction(c.append)&&"FormData"===c[Symbol.toStringTag]&&c[Symbol.iterator];var c;if(!nt.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(nt.isDate(e))return e.toISOString();if(!a&&nt.isBlob(e))throw new it("Blob is not supported. Use a Buffer instead.");return nt.isArrayBuffer(e)||nt.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(nt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(nt.isArray(e)&&function(e){return nt.isArray(e)&&!e.some(ct)}(e)||nt.isFileList(e)||nt.endsWith(n,"[]")&&(a=nt.toArray(e)))return n=ut(n),a.forEach((function(e,r){!nt.isUndefined(e)&&null!==e&&t.append(!0===i?lt([n],r,s):null===i?n:n+"[]",u(e))})),!1;return!!ct(e)||(t.append(lt(o,n,s),u(e)),!1)}const f=[],h=Object.assign(ft,{defaultVisitor:l,convertValue:u,isVisitable:ct});if(!nt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!nt.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),nt.forEach(n,(function(n,s){!0===(!(nt.isUndefined(n)||null===n)&&o.call(t,n,nt.isString(s)?s.trim():s,r,h))&&e(n,r?r.concat(s):[s])})),f.pop()}}(e),t};function dt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function pt(e,t){this._pairs=[],e&&ht(e,this,t)}const mt=pt.prototype;mt.append=function(e,t){this._pairs.push([e,t])},mt.toString=function(e){const t=e?function(t){return e.call(this,t,dt)}:dt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const gt=pt;function bt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yt(e,t,n){if(!t)return e;const r=n&&n.encode||bt,o=n&&n.serialize;let s;if(s=o?o(t,n):nt.isURLSearchParams(t)?t.toString():new gt(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const wt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){nt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Et={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vt="undefined"!=typeof URLSearchParams?URLSearchParams:gt,Ot=FormData,_t=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),Rt={isBrowser:!0,classes:{URLSearchParams:vt,FormData:Ot,Blob},isStandardBrowserEnv:_t,protocols:["http","https","file","blob","url","data"]},St=function(e){function t(e,n,r,o){let s=e[o++];const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&nt.isArray(r)?r.length:s,a?(nt.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&nt.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&nt.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(nt.isFormData(e)&&nt.isFunction(e.entries)){const n={};return nt.forEachEntry(e,((e,r)=>{t(function(e){return nt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},jt=Rt.isStandardBrowserEnv?{write:function(e,t,n,r,o,s){const i=[];i.push(e+"="+encodeURIComponent(t)),nt.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),nt.isString(r)&&i.push("path="+r),nt.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Tt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const xt=Rt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=nt.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function At(e,t,n){it.call(this,null==e?"canceled":e,it.ERR_CANCELED,t,n),this.name="CanceledError"}nt.inherits(At,it,{__CANCEL__:!0});const Ct=At,kt=nt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Nt=Symbol("internals"),Pt=Symbol("defaults");function Ut(e){return e&&String(e).trim().toLowerCase()}function Bt(e){return!1===e||null==e?e:nt.isArray(e)?e.map(Bt):String(e)}function Dt(e,t,n,r){return nt.isFunction(r)?r.call(this,t,n):nt.isString(t)?nt.isString(r)?-1!==t.indexOf(r):nt.isRegExp(r)?r.test(t):void 0:void 0}function Lt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}function Ft(e,t){e&&this.set(e),this[Pt]=t||null}Object.assign(Ft.prototype,{set:function(e,t,n){const r=this;function o(e,t,n){const o=Ut(t);if(!o)throw new Error("header name must be a non-empty string");const s=Lt(r,o);(!s||!0===n||!1!==r[s]&&!1!==n)&&(r[s||t]=Bt(e))}return nt.isPlainObject(e)?nt.forEach(e,((e,n)=>{o(e,n,t)})):o(t,e,n),this},get:function(e,t){if(!(e=Ut(e)))return;const n=Lt(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(nt.isFunction(t))return t.call(this,e,n);if(nt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Ut(e)){const n=Lt(this,e);return!(!n||t&&!Dt(0,this[n],n,t))}return!1},delete:function(e,t){const n=this;let r=!1;function o(e){if(e=Ut(e)){const o=Lt(n,e);!o||t&&!Dt(0,n[o],o,t)||(delete n[o],r=!0)}}return nt.isArray(e)?e.forEach(o):o(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return nt.forEach(this,((r,o)=>{const s=Lt(n,o);if(s)return t[s]=Bt(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Bt(r),n[i]=!0})),this},toJSON:function(e){const t=Object.create(null);return nt.forEach(Object.assign({},this[Pt]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&nt.isArray(n)?n.join(", "):n)})),t}}),Object.assign(Ft,{from:function(e){return nt.isString(e)?new this((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&kt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e)):e instanceof this?e:new this(e)},accessor:function(e){const t=(this[Nt]=this[Nt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ut(e);t[r]||(function(e,t){const n=nt.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return nt.isArray(e)?e.forEach(r):r(e),this}}),Ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),nt.freezeMethods(Ft.prototype),nt.freezeMethods(Ft);const zt=Ft,It=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(1e3*f/h):void 0}};function Mt(e,t){let n=0;const r=It(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,c=r(a);n=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0};u[t?"download":"upload"]=!0,e(u)}}function Wt(e){return new Promise((function(t,n){let r=e.data;const o=zt.from(e.headers).normalize(),s=e.responseType;let i;function a(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}nt.isFormData(r)&&Rt.isStandardBrowserEnv&&o.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const u=Tt(e.baseURL,e.url);function l(){if(!c)return;const r=zt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new it("Request failed with status code "+n.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),a()}),(function(e){n(e),a()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),yt(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new it("Request aborted",it.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new it("Network Error",it.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Et;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new it(t,r.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,e,c)),c=null},Rt.isStandardBrowserEnv){const t=(e.withCredentials||xt(u))&&e.xsrfCookieName&&jt.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&nt.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),nt.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",Mt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Mt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{c&&(n(!t||t.type?new Ct(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);f&&-1===Rt.protocols.indexOf(f)?n(new it("Unsupported protocol "+f+":",it.ERR_BAD_REQUEST,e)):c.send(r||null)}))}const Jt={http:Wt,xhr:Wt},qt=e=>{if(nt.isString(e)){const t=Jt[e];if(!e)throw Error(nt.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!nt.isFunction(e))throw new TypeError("adapter is not a function");return e},Vt={"Content-Type":"application/x-www-form-urlencoded"},Ht={transitional:Et,adapter:function(){let e;return"undefined"!=typeof XMLHttpRequest?e=qt("xhr"):"undefined"!=typeof process&&"process"===nt.kindOf(process)&&(e=qt("http")),e}(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=nt.isObject(e);if(o&&nt.isHTMLForm(e)&&(e=new FormData(e)),nt.isFormData(e))return r&&r?JSON.stringify(St(e)):e;if(nt.isArrayBuffer(e)||nt.isBuffer(e)||nt.isStream(e)||nt.isFile(e)||nt.isBlob(e))return e;if(nt.isArrayBufferView(e))return e.buffer;if(nt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ht(e,new Rt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Rt.isNode&&nt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=nt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ht(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(nt.isString(e))try{return(0,JSON.parse)(e),nt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ht.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&nt.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw it.from(e,it.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};nt.forEach(["delete","get","head"],(function(e){Ht.headers[e]={}})),nt.forEach(["post","put","patch"],(function(e){Ht.headers[e]=nt.merge(Vt)}));const Kt=Ht;function $t(e,t){const n=this||Kt,r=t||n,o=zt.from(r.headers);let s=r.data;return nt.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function Xt(e){return!(!e||!e.__CANCEL__)}function Qt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ct}function Zt(e){return Qt(e),e.headers=zt.from(e.headers),e.data=$t.call(e,e.transformRequest),(e.adapter||Kt.adapter)(e).then((function(t){return Qt(e),t.data=$t.call(e,e.transformResponse,t),t.headers=zt.from(t.headers),t}),(function(t){return Xt(t)||(Qt(e),t&&t.response&&(t.response.data=$t.call(e,e.transformResponse,t.response),t.response.headers=zt.from(t.response.headers))),Promise.reject(t)}))}function Gt(e,t){t=t||{};const n={};function r(e,t){return nt.isPlainObject(e)&&nt.isPlainObject(t)?nt.merge(e,t):nt.isPlainObject(t)?nt.merge({},t):nt.isArray(t)?t.slice():t}function o(n){return nt.isUndefined(t[n])?nt.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function s(e){if(!nt.isUndefined(t[e]))return r(void 0,t[e])}function i(n){return nt.isUndefined(t[n])?nt.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function a(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a};return nt.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=c[e]||o,r=t(e);nt.isUndefined(r)&&t!==a||(n[e]=r)})),n}const Yt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Yt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const en={};Yt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.1.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new it(r(o," has been removed"+(t?" in "+t:"")),it.ERR_DEPRECATED);return t&&!en[o]&&(en[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};const tn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new it("option "+s+" must be "+n,it.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new it("Unknown option "+s,it.ERR_BAD_OPTION)}},validators:Yt},nn=tn.validators;class rn{constructor(e){this.defaults=e,this.interceptors={request:new wt,response:new wt}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Gt(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;void 0!==n&&tn.assertOptions(n,{silentJSONParsing:nn.transitional(nn.boolean),forcedJSONParsing:nn.transitional(nn.boolean),clarifyTimeoutError:nn.transitional(nn.boolean)},!1),void 0!==r&&tn.assertOptions(r,{encode:nn.function,serialize:nn.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const o=t.headers&&nt.merge(t.headers.common,t.headers[t.method]);o&&nt.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new zt(t.headers,o);const s=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const a=[];let c;this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)}));let u,l=0;if(!i){const e=[Zt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,a),u=e.length,c=Promise.resolve(t);l<u;)c=c.then(e[l++],e[l++]);return c}u=s.length;let f=t;for(l=0;l<u;){const e=s[l++],t=s[l++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=Zt.call(this,f)}catch(e){return Promise.reject(e)}for(l=0,u=a.length;l<u;)c=c.then(a[l++],a[l++]);return c}getUri(e){return yt(Tt((e=Gt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}nt.forEach(["delete","get","head","options"],(function(e){rn.prototype[e]=function(t,n){return this.request(Gt(n||{},{method:e,url:t,data:(n||{}).data}))}})),nt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Gt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}rn.prototype[e]=t(),rn.prototype[e+"Form"]=t(!0)}));const on=rn;class sn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ct(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new sn((function(t){e=t})),cancel:e}}}const an=sn,cn=function e(t){const n=new on(t),r=Ae(on.prototype.request,n);return nt.extend(r,on.prototype,n,{allOwnKeys:!0}),nt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Gt(t,n))},r}(Kt);cn.Axios=on,cn.CanceledError=Ct,cn.CancelToken=an,cn.isCancel=Xt,cn.VERSION="1.1.3",cn.toFormData=ht,cn.AxiosError=it,cn.Cancel=cn.CanceledError,cn.all=function(e){return Promise.all(e)},cn.spread=function(e){return function(t){return e.apply(null,t)}},cn.isAxiosError=function(e){return nt.isObject(e)&&!0===e.isAxiosError},cn.formToJSON=e=>St(nt.isHTMLForm(e)?new FormData(e):e);const un=cn,{Axios:ln,AxiosError:fn,CanceledError:hn,isCancel:dn,CancelToken:pn,VERSION:mn,all:gn,Cancel:bn,isAxiosError:yn,spread:wn,toFormData:En}=un,vn=un;new function(){let e=vn.create();this.configure=t=>{e=t(e)},this.get=()=>e};class On{#e;#t;#n;constructor(e,t){var n,r;this.#e=e,this.#t=t,this.#n=(r=!1,_e(n=!0)?n:new Re(n,r))}#r=()=>this.#e.put("/v1/sessions/refresh").then((e=>(this.#t.value={initialLoaded:!0,authed:!0,sessionToken:e.data.sessionToken,globalError:""},function(e){var t;e.shortSession&&(t=e.shortSession,Te.set(t.key,t.value,{path:t.path,expires:new Date(t.expires),secure:t.secure,sameSite:t.sameSite,domain:t.domain}))}(e.data),e.data))).catch((e=>{if("AxiosError"!==e.name)throw e;"ERR_NETWORK"!==e.code?e.response&&401===e.response.status&&(this.#t.value={initialLoaded:!0,authed:!1,sessionToken:"",globalError:""}):this.#t.value={initialLoaded:!0,authed:!1,sessionToken:"",globalError:"Network error - please check cors settings"}}));#o=()=>""!==xe("cbo_short_session");#s=()=>""!==xe("cbo_short_session");#i=()=>!1;initialize(){setInterval((()=>{!1===this.#o()&&(!1===this.#n.value?(this.#n.value=!0,console.log("run check expired"),this.#r().then((e=>{this.#o()&&(this.#t.value={initialLoaded:!0,authed:!0,sessionToken:e.sessionToken,globalError:""},this.#n.value=!this.#t.value.authed)})).catch((()=>{this.#n.value=!1}))):this.#t.value={initialLoaded:!0,authed:!1,sessionToken:"",globalError:""})}),1e3),setInterval((()=>{this.#s()&&(this.#o()&&!this.#i()||(this.#n.value=!1,this.#r()))}),5e3),this.#r().then((()=>{this.#t.value.initialLoaded=!0}))}Logout(){this.#e.delete("/v1/sessions/logout").then((()=>{this.#t.value={initialLoaded:!0,authed:!1,sessionToken:"",globalError:""}})).catch((e=>{console.error(e)}))}}class _n extends On{}})(),CorbadoSession=r})();
(()=>{"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}!function t(r,n){function o(t,o,i){if("undefined"!=typeof document){"number"==typeof(i=e({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+r.write(o,t)+c}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},o=0;o<t.length;o++){var i=t[o].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(n[u]=r.read(c,u),e===u)break}catch(e){}}return e?n[e]:n}},remove:function(t,r){o(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})})();
//# sourceMappingURL=session.js.map

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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