@crossid/vue-wrapper
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).vueCrossid={})}(this,(function(e){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,n)};function n(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function r(e,t,n,o){return new(n||(n=Promise))((function(r,i){function s(e){try{a(o.next(e))}catch(e){i(e)}}function c(e){try{a(o.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,c)}a((o=o.apply(e,t||[])).next())}))}function i(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var s=function(e){function t(n,o){var r=e.call(this,o)||this;return r.error=n,r.error_description=o,Object.setPrototypeOf(r,t.prototype),r}return n(t,e),t.create=function(e){return new t(e.error,e.error_description)},t}(Error);function c(e){var t=e.tokenEndpoint,n=e.timeout,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["tokenEndpoint","timeout"]);return r(this,void 0,void 0,(function(){var e,a,u;return i(this,(function(l){switch(l.label){case 0:return e=new FormData,Object.keys(c).forEach((function(t){return e.append(t,c[t])})),[4,(p=t,d={timeout:n,method:"POST",body:e},void 0===d&&(d={}),r(void 0,void 0,void 0,(function(){var e,t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return e=d.timeout,t=void 0===e?5e3:e,n=new AbortController,r=setTimeout((function(){return n.abort()}),t),[4,fetch(p,o(o({},d),{signal:n.signal}))];case 1:return s=i.sent(),clearTimeout(r),[2,s]}}))})))];case 1:return[4,(a=l.sent()).json()];case 2:if(u=l.sent(),200!==a.status)throw s.create(u);return[2,u]}var p,d}))}))}var a="crossid-spa-js|index",u=function(e){return null!==e&&"Object"===(null==e?void 0:e.constructor.name)},l=function(e){return"number"==typeof e},p=function(e){return"string"==typeof e},d=String.fromCharCode(0),f=function(){function e(e,t){void 0===t&&(t={}),this.gopts=t,this.storage=e,t.purgeOnInit&&this.purge(!0)}return e.prototype.set=function(e,t,n){var o=this._key(e),r=this._ttl(null==n?void 0:n.ttl);try{var i=function(e,t){var n;return t&&t>0?((n={})[d]=e,n.ttl=Date.now()+1e3*t,n):e}(t,r);return this.storage.setItem(o,JSON.stringify(i)),!0}catch(e){return!1}},e.prototype.get=function(e,t){var n,o=this._key(e);try{var r=this.storage.getItem(o);if(null===r)return;var i=JSON.parse(r);return u(n=i)&&d in n?function(e,t){return Date.now()-1e3*t>e.ttl}(i,(null==t?void 0:t.ttl)||0)?void this.storage.removeItem(e):i[d]:i}catch(e){return}},e.prototype.remove=function(e){var t=this._key(e);return!!this.storage.getItem(t)&&(this.storage.removeItem(t),!0)},e.prototype.purge=function(e){var t=this;void 0===e&&(e=!1);var n=0;return Object.keys(this.storage).filter((function(e){return e.startsWith(t.gopts.prefix)})).forEach((function(o){var r=t.storage.getItem(o);if(r){var i;try{i=JSON.parse(r)}catch(e){return}(u(i)&&d in i&&Date.now()>i.ttl||e)&&(n++,t.storage.removeItem(o))}})),n},e.prototype._key=function(e){return this.gopts.prefix?""+this.gopts.prefix+e:e},e.prototype._ttl=function(e){return null===e?null:e||this.gopts.ttl||null},e}(),h=function(e){function t(t){var n=e.call(this,sessionStorage,t)||this;if("undefined"==typeof sessionStorage)throw Error("no support for session storage.");return n}return n(t,e),t}(f),_=function(e){function t(t){var n=e.call(this,localStorage,t)||this;if("undefined"==typeof localStorage)throw Error("no support for local storage.");return n}return n(t,e),t}(f),v=function(){function e(){}return e.prototype.getItem=function(e){return e in this?this[e]:null},e.prototype.setItem=function(e,t){void 0===t?this.removeItem(e):this[e]=""+t},e.prototype.removeItem=function(e){this.hasOwnProperty(e)&&delete this[e]},e}(),y=function(e){function t(t){return e.call(this,new v,t)||this}return n(t,e),t}(f),g=function(e){return Array.from(new Set(e))},m=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(e.join(" ").trim().split(/\s+/))},w=function(){return e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=Math.floor(86*Math.random()+43),Array.from(window.crypto.getRandomValues(new Uint8Array(t))).map((function(t){return e[t%e.length]})).join("");var e,t},b=function(e){return btoa(e)},E=function(e){return atob(e)},N=function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))},k=function(e){var t={"-":"+",_:"/"};return e.replace(/[-_]/g,(function(e){return t[e]}))},O=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]&&null!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},S=function(e){var t=e.split("."),n=t[0],o=t[1],r=t[2];if(3!==t.length||!n||!o||!r)throw new Error("malformed JWT token.");var i,s=JSON.parse(E(k(o)));if(s.aud)if(p(s.aud))s.aud=[s.aud];else if(i=s.aud,!Array.isArray(i)||!i.every((function(e){return p(e)})))throw new Error("Audience (aud) must be a string or an array of strings");return{header:JSON.parse(E(k(n))),payload:s}},x=function(e){function t(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var r=e.apply(this,n)||this;return r.fields_=t,r}return n(t,e),t.prototype.getMissingFields=function(){return this.fields_},t}(Error),j=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=t.map((function(t){return t(e)})).filter((function(e){return null!==e}));if(o&&o.length)throw new x(o,o.join(","));return null},D=function(e,t){var n=[];return function(o){return t&&t.filter((function(e){return!o.payload[e]})).forEach((function(e){return n.push(e)})),e&&e.filter((function(e){return!o.header[e]})).forEach((function(e){return n.push(e)})),n&&n.length?n.join(",")+" missing":null}},V=function(e){return function(t){return A("Issuer (iss)",e,t.payload.iss)}},R=function(e){return function(t){return A("Issuer (iss) claim",e,t.header.alg)}},C=function(e){return void 0===e&&(e=[]),function(t){return t.payload.aud&&t.payload.aud.length?(n=e,t.payload.aud.every((function(e){return n.includes(e)}))?null:"Audience (aud) claim mismatch: audience ("+t.payload.aud+") must contain only ("+e+")"):"Audience (aud) claim must be a present string";var n}},T=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.exp)return null;if(!l(n.payload.exp))return"Expiration Time (exp) claim must be a present number";var o=$(n.payload.exp,t);return new Date(Date.now())>o?"Expiration Time (exp) claim expired ("+o+")":null}},I=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.nbf)return null;if(!l(n.payload.nbf))return"Not Before (nbf) claim must be a present number";var o=$(n.payload.nbf,-1*t),r=new Date(Date.now());return r<o?"Not Before (nbf) claim cannot be used yet, current time ("+r+") is before ("+o+")":null}},A=function(e,t,n){return t!==n?e+' mismatch: expected "'+t+'" but got "'+n+'"':null},$=function(e,t){void 0===t&&(t=0);var n=new Date(0);return n.setUTCSeconds(e+t),n},P=function(){function e(e){this.opts=e,this.loginStateKey="crossid-spa-js|login",this.logoutStateKey="crossid-spa-js|logout",this.scope=e.scope,this.state=this._stateFactory(this.opts.state_type||"session_storage"),this.cache=this._cacheFactory(this.opts.cache_type||"memory"),this._purgeIndex()}return e.prototype.createRedirectURL=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,this._createAuthorizationData(e)];case 1:return t=n.sent(),[4,this._persistAuthorizationData(t)];case 2:return n.sent(),[2,this._authorizeUrl(t.request)]}}))}))},e.prototype.loginWithRedirect=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,this.createRedirectURL(e)];case 1:return t=n.sent(),window.location.replace(t),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=new URL(window.location.href)),r(this,void 0,void 0,(function(){var t,n,o,r,s,a,u;return i(this,(function(i){switch(i.label){case 0:if(t=e.searchParams,n=t.get("code"),o=t.get("error"))throw new Error(o);if(!(null==(r=this.state.get(this.loginStateKey))?void 0:r.code_verifier))throw new Error("invalid state, try sign-in again");return[4,c({tokenEndpoint:this.opts.token_endpoint,client_id:this.opts.client_id,code_verifier:r.code_verifier,grant_type:"authorization_code",redirect_uri:r.redirect_uri,code:n})];case 1:return s=i.sent(),(a=S(s.id_token)).payload.__bearer=s.id_token,u=S(s.access_token),this.state.remove(this.loginStateKey),this._assertAccessToken(u,r.audience),this._assertIDToken(a,r.nonce),u.payload._raw=s.access_token,this._cacheTokens(a,u,s.refresh_token),[2,{state:r.state}]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var t,n,o,r;return i(this,(function(i){return t=e.audience||this.opts.audience,n=m(this.scope,e.scope),o=this._getTokensKeysFromCache("id_token",t,n),[2,null==(r=this._getNarrowedKey(o))?void 0:r.payload]}))}))},e.prototype.getAccessToken=function(e){var t;return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var n,o,r,s;return i(this,(function(i){return n=e.audience||this.opts.audience,o=m(this.scope,e.scope),r=this._getTokensKeysFromCache("access_token",n,o),s=this._getNarrowedKey(r),[2,null===(t=null==s?void 0:s.payload)||void 0===t?void 0:t._raw]}))}))},e.prototype.createLogoutRedirectURL=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,this._createLogoutData(e)];case 1:return(t=n.sent()).request.id_token_hint&&e.post_logout_redirect_uri?[4,this._persistLogoutData(t)]:(this._removeTokens(t.audience,t.scopes),[2,this._logoutUrl()]);case 2:return n.sent(),[2,this._logoutUrl(t.request)]}}))}))},e.prototype.logoutWithRedirect=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,this.createLogoutRedirectURL(e)];case 1:return t=n.sent(),window.location.assign(t),[2]}}))}))},e.prototype.handleLogoutRedirectCallback=function(e){return void 0===e&&(e=new URL(window.location.href)),r(this,void 0,void 0,(function(){var t,n,o,r;return i(this,(function(i){if(t=e.searchParams,n=t.get("state"),o=t.get("error"))throw new Error(o);if(!(null==(r=this.state.get(this.logoutStateKey))?void 0:r.state)||r.state!==n)throw new Error("invalid state, try sign-in again");return this._removeTokens(r.audience,r.scopes),this.state.remove(this.logoutStateKey),[2,{state:r.appState}]}))}))},e.prototype._createAuthorizationData=function(e){return r(this,void 0,void 0,(function(){var t,n,o,s,c,a;return i(this,(function(u){switch(u.label){case 0:return t=N(b(w())),n=N(b(w())),o=w(),[4,(p=o,r(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,window.crypto.subtle.digest({name:"SHA-256"},(new TextEncoder).encode(p))];case 1:return[2,e.sent()]}}))})))];case 1:return s=u.sent(),l=new Uint8Array(s),c=N(b(String.fromCharCode.apply(String,Array.from(l)))),a={audience:e.audience,redirect_uri:e.redirect_uri,response_type:e.response_type,scope:e.scope,state:t,nonce:n,code_challenge:c},[2,{request:this._mergeAuthorizationCodeParams(a),code_verifier:o,appState:e.state}]}var l,p}))}))},e.prototype._persistAuthorizationData=function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(o){return t=e.request,n={audience:t.audience,redirect_uri:t.redirect_uri,scope:t.scope,nonce:t.nonce,state:e.appState,code_verifier:e.code_verifier},this.state.set(this.loginStateKey,n),[2]}))}))},e.prototype._mergeAuthorizationCodeParams=function(e){return{client_id:this.opts.client_id,audience:e.audience||this.opts.audience,response_type:e.response_type||this.opts.response_type||"code",redirect_uri:e.redirect_uri||this.opts.redirect_uri,nonce:e.nonce,state:e.state,scope:e.scope||this.opts.scope,code_challenge:e.code_challenge,code_challenge_method:"S256"}},e.prototype._createLogoutData=function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(o){switch(o.label){case 0:return(t={id_token_hint:e.id_token_hint,post_logout_redirect_uri:e.post_logout_redirect_uri}).id_token_hint||null===t.id_token_hint?[3,2]:[4,this.getUser()];case 1:(n=o.sent())&&n.__bearer&&(t.id_token_hint=n.__bearer),o.label=2;case 2:return t.id_token_hint&&(t.state=N(b(w()))),[2,{request:t,audience:e.audience||this.opts.audience,scopes:(e.scope||this.scope).split(" "),appState:e.state}]}}))}))},e.prototype._persistLogoutData=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){return t={client_id:this.opts.client_id,audience:e.audience,scopes:e.scopes,post_logout_redirect_uri:e.request.post_logout_redirect_uri,state:e.request.state,appState:e.appState},this.state.set(this.logoutStateKey,t),[2]}))}))},e.prototype._assertAccessToken=function(e,t){j(e,D(["alg"],["iss","sub","aud","exp","iat"]),V(this.opts.issuer),R("RS256"),C(t),T(!0),I(!0))},e.prototype._assertIDToken=function(e,t){var n;return j(e,D(["alg"],["iss","sub","aud","nonce","exp","iat"]),V(this.opts.issuer),(n=t,function(e){return A("Nonce (nonce)",n,e.payload.nonce)}),R("RS256"),C([this.opts.client_id]),T(!0),I(!1),(function(e){return l(e.payload.iat)?null:"Issued At (iat) claim must be a present number"})),null},e.prototype._removeTokens=function(e,t){var n=this,o=this._getTokensKeysFromCache("id_token",e,t),r=this._getTokensKeysFromCache("access_token",e,t),i=this._getTokensKeysFromCache("refresh_token",e,t);o.concat(r).concat(i).forEach((function(e){return n.cache.remove(e)})),this._purgeIndex()},e.prototype._authorizeUrl=function(e){return this.opts.authorization_endpoint+"?"+O(e)},e.prototype._logoutUrl=function(e){var t=this.opts.logout_endpoint;return e&&(t=t+"?"+O(e)),t},e.prototype._stateFactory=function(e){var t={ttl:300};switch(e){case"local_storage":return new _(t);case"session_storage":return new h(t);default:throw new Error('Invalid cache type "'+e+'"')}},e.prototype._cacheFactory=function(e){switch(e){case"memory":return new y;case"local_storage":return new _({purgeOnInit:!0});case"session_storage":return new h({purgeOnInit:!0});default:throw new Error('Invalid cache type "'+e+'"')}},e.prototype._cacheTokens=function(e,t,n){var o=this._ttlFromToken(t);this._cacheToken("access_token",t,this.opts.client_id,t.payload.aud,t.payload.scp,o),this._cacheToken("id_token",e,this.opts.client_id,t.payload.aud,t.payload.scp||[],this._ttlFromToken(e)),n&&this._cacheToken("refresh_token",n,this.opts.client_id,t.payload.aud,t.payload.scp,432e3)},e.prototype._cacheToken=function(e,t,n,o,r,i){var s=this._cacheKey({tokType:e,client_id:n,audience:o,scope:r});this.cache.set(s,t,{ttl:i});var c=[o[0]],u=this.cache.get(a);u||(u={}),c.forEach((function(e){u[e]||(u[e]={});var t=u[e];r.forEach((function(e){t[e]||(t[e]=[]),t[e].push(s)}))})),this.cache.set(a,u)},e.prototype._cacheKey=function(e){var t,n=e.tokType,o=e.client_id,r=e.audience,i=e.scope;return i&&i.length&&(i.sort(),t=i.join("__")),["crossid-spa-js",n,o,r.join("__"),t].join("|")},e.prototype._decodeKey=function(e){var t=e.split("|"),n=t[1],o=t[2],r=t[3];return{tokenType:n,audience:o.split("__"),scope:r.split("__")}},e.prototype._getTokensKeysFromCache=function(e,t,n){var o,r=this,i=(this.cache.get(a)||{})[t[0]];if(!i)return[];for(var s=function(t){return i[t]&&i[t].length?o?void(o=o.filter((function(e){return i[t].includes(e)}))):(o=i[t].filter((function(t){return r._decodeKey(t).tokenType===e})),"continue"):{value:[]}},c=0,u=n;c<u.length;c++){var l=s(u[c]);if("object"==typeof l)return l.value}return o},e.prototype._getNarrowedKey=function(e){for(var t in e){var n=this.cache.get(e[t]);if(n)return n}},e.prototype._ttlFromToken=function(e){return(new Date(1e3*e.payload.exp).getTime()-Date.now())/1e3},e.prototype._purgeIndex=function(){var e=this.cache.get(a);if(e){for(var t=0,n=Object.entries(e);t<n.length;t++){for(var o=n[t],r=o[0],i=o[1],s=function(t,n){for(var o=[],i=0;i<n.length;i++)c.cache.get(n[i])||o.push(i);e[r][t]=n.filter((function(e,t){return-1===o.indexOf(t)})),e[r][t].length||delete e[r][t]},c=this,u=0,l=Object.entries(i);u<l.length;u++){var p=l[u];s(p[0],p[1])}Object.keys(e[r]).length||delete e[r]}this.cache.set(a,e)}},e}();function F(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const U=F("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function M(e){if(Y(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=M(te(o)?L(o):o);if(r)for(const e in r)t[e]=r[e]}return t}if(oe(e))return e}const K=/;(?![^(]*\))/g,z=/:(.+)/;function L(e){const t={};return e.split(K).forEach((e=>{if(e){const n=e.split(z);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function W(e){let t="";if(te(e))t=e;else if(Y(e))for(let n=0;n<e.length;n++){const o=W(e[n]);o&&(t+=o+" ")}else if(oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const q="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const J=()=>{},H=/^on[^a-z]/,B=e=>H.test(e),G=Object.assign,Q=Object.prototype.hasOwnProperty,X=(e,t)=>Q.call(e,t),Y=Array.isArray,Z=e=>"[object Map]"===ie(e),ee=e=>"function"==typeof e,te=e=>"string"==typeof e,ne=e=>"symbol"==typeof e,oe=e=>null!==e&&"object"==typeof e,re=Object.prototype.toString,ie=e=>re.call(e),se=e=>ie(e).slice(8,-1),ce=e=>te(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ae=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),ue=(e,t)=>e!==t&&(e==e||t==t),le=new WeakMap,pe=[];let de;const fe=Symbol("production"!==process.env.NODE_ENV?"iterate":""),he=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");function _e(e,t=q){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!pe.includes(n)){ge(n);try{return we.push(me),me=!0,pe.push(n),de=n,e()}finally{pe.pop(),Ee(),de=pe[pe.length-1]}}};return n.id=ye++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n}function ve(e){e.active&&(ge(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let ye=0;function ge(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let me=!0;const we=[];function be(){we.push(me),me=!1}function Ee(){const e=we.pop();me=void 0===e||e}function Ne(e,t,n){if(!me||void 0===de)return;let o=le.get(e);o||le.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Set),r.has(de)||(r.add(de),de.deps.push(r),"production"!==process.env.NODE_ENV&&de.options.onTrack&&de.options.onTrack({effect:de,target:e,type:t,key:n}))}function ke(e,t,n,o,r,i){const s=le.get(e);if(!s)return;const c=new Set,a=e=>{e&&e.forEach((e=>{(e!==de||e.allowRecurse)&&c.add(e)}))};if("clear"===t)s.forEach(a);else if("length"===n&&Y(e))s.forEach(((e,t)=>{("length"===t||t>=o)&&a(e)}));else switch(void 0!==n&&a(s.get(n)),t){case"add":Y(e)?ce(n)&&a(s.get("length")):(a(s.get(fe)),Z(e)&&a(s.get(he)));break;case"delete":Y(e)||(a(s.get(fe)),Z(e)&&a(s.get(he)));break;case"set":Z(e)&&a(s.get(fe))}c.forEach((s=>{"production"!==process.env.NODE_ENV&&s.options.onTrigger&&s.options.onTrigger({effect:s,target:e,key:n,type:t,newValue:o,oldValue:r,oldTarget:i}),s.options.scheduler?s.options.scheduler(s):s()}))}const Oe=F("__proto__,__v_isRef,__isVue"),Se=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(ne)),xe=Ce(),je=Ce(!0),De=Ce(!0,!0),Ve=Re();function Re(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){const t=gt(this);for(let e=0,n=this.length;e<n;e++)Ne(t,"get",e+"");const o=n.apply(t,e);return-1===o||!1===o?n.apply(t,e.map(gt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){be();const t=n.apply(this,e);return Ee(),t}})),e}function Ce(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?lt:ut:t?at:ct).get(n))return n;const i=Y(n);if(!e&&i&&X(Ve,o))return Reflect.get(Ve,o,r);const s=Reflect.get(n,o,r);if(ne(o)?Se.has(o):Oe(o))return s;if(e||Ne(n,"get",o),t)return s;if(wt(s)){return!i||!ce(o)?s.value:s}return oe(s)?e?dt(s):pt(s):s}}function Te(e=!1){return function(t,n,o,r){let i=t[n];if(!e&&(o=gt(o),i=gt(i),!Y(t)&&wt(i)&&!wt(o)))return i.value=o,!0;const s=Y(t)&&ce(n)?Number(n)<t.length:X(t,n),c=Reflect.set(t,n,o,r);return t===gt(r)&&(s?ue(o,i)&&ke(t,"set",n,o,i):ke(t,"add",n,o)),c}}const Ie={get:xe,set:Te(),deleteProperty:function(e,t){const n=X(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&ke(e,"delete",t,void 0,o),r},has:function(e,t){const n=Reflect.has(e,t);return ne(t)&&Se.has(t)||Ne(e,"has",t),n},ownKeys:function(e){return Ne(e,"iterate",Y(e)?"length":fe),Reflect.ownKeys(e)}},Ae={get:je,set:(e,t)=>("production"!==process.env.NODE_ENV&&console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},$e=G({},Ae,{get:De}),Pe=e=>oe(e)?pt(e):e,Fe=e=>oe(e)?dt(e):e,Ue=e=>e,Me=e=>Reflect.getPrototypeOf(e);function Ke(e,t,n=!1,o=!1){const r=gt(e=e.__v_raw),i=gt(t);t!==i&&!n&&Ne(r,"get",t),!n&&Ne(r,"get",i);const{has:s}=Me(r),c=o?Ue:n?Fe:Pe;return s.call(r,t)?c(e.get(t)):s.call(r,i)?c(e.get(i)):void(e!==r&&e.get(t))}function ze(e,t=!1){const n=this.__v_raw,o=gt(n),r=gt(e);return e!==r&&!t&&Ne(o,"has",e),!t&&Ne(o,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function Le(e,t=!1){return e=e.__v_raw,!t&&Ne(gt(e),"iterate",fe),Reflect.get(e,"size",e)}function We(e){e=gt(e);const t=gt(this);return Me(t).has.call(t,e)||(t.add(e),ke(t,"add",e,e)),this}function qe(e,t){t=gt(t);const n=gt(this),{has:o,get:r}=Me(n);let i=o.call(n,e);i?"production"!==process.env.NODE_ENV&&st(n,o,e):(e=gt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?ue(t,s)&&ke(n,"set",e,t,s):ke(n,"add",e,t),this}function Je(e){const t=gt(this),{has:n,get:o}=Me(t);let r=n.call(t,e);r?"production"!==process.env.NODE_ENV&&st(t,n,e):(e=gt(e),r=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return r&&ke(t,"delete",e,void 0,i),s}function He(){const e=gt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?Z(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&ke(e,"clear",void 0,void 0,n),o}function Be(e,t){return function(n,o){const r=this,i=r.__v_raw,s=gt(i),c=t?Ue:e?Fe:Pe;return!e&&Ne(s,"iterate",fe),i.forEach(((e,t)=>n.call(o,c(e),c(t),r)))}}function Ge(e,t,n){return function(...o){const r=this.__v_raw,i=gt(r),s=Z(i),c="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,u=r[e](...o),l=n?Ue:t?Fe:Pe;return!t&&Ne(i,"iterate",a?he:fe),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function Qe(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${ae(e)} operation ${n}failed: target is readonly.`,gt(this))}return"delete"!==e&&this}}function Xe(){const e={get(e){return Ke(this,e)},get size(){return Le(this)},has:ze,add:We,set:qe,delete:Je,clear:He,forEach:Be(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return Le(this)},has:ze,add:We,set:qe,delete:Je,clear:He,forEach:Be(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return Le(this,!0)},has(e){return ze.call(this,e,!0)},add:Qe("add"),set:Qe("set"),delete:Qe("delete"),clear:Qe("clear"),forEach:Be(!0,!1)},o={get(e){return Ke(this,e,!0,!0)},get size(){return Le(this,!0)},has(e){return ze.call(this,e,!0)},add:Qe("add"),set:Qe("set"),delete:Qe("delete"),clear:Qe("clear"),forEach:Be(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Ge(r,!1,!1),n[r]=Ge(r,!0,!1),t[r]=Ge(r,!1,!0),o[r]=Ge(r,!0,!0)})),[e,n,t,o]}const[Ye,Ze,et,tt]=Xe();function nt(e,t){const n=t?e?tt:et:e?Ze:Ye;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(X(n,o)&&o in t?n:t,o,r)}const ot={get:nt(!1,!1)},rt={get:nt(!0,!1)},it={get:nt(!0,!0)};function st(e,t,n){const o=gt(n);if(o!==n&&t.call(e,o)){const t=se(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const ct=new WeakMap,at=new WeakMap,ut=new WeakMap,lt=new WeakMap;function pt(e){return e&&e.__v_isReadonly?e:ht(e,!1,Ie,ot,ct)}function dt(e){return ht(e,!0,Ae,rt,ut)}function ft(e){return ht(e,!0,$e,it,lt)}function ht(e,t,n,o,r){if(!oe(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(se(c));var c;if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function _t(e){return vt(e)?_t(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(e){return!(!e||!e.__v_isReadonly)}function yt(e){return _t(e)||vt(e)}function gt(e){return e&>(e.__v_raw)||e}function mt(e){return((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}function wt(e){return Boolean(e&&!0===e.__v_isRef)}const bt={get:(e,t,n)=>{return wt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return wt(r)&&!wt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};const Et=[];function Nt(e,...t){be();const n=Et.length?Et[Et.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=Et[Et.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)xt(o,n,11,[e+t.join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${An(n,e.type)}>`)).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,r=` at <${An(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...kt(e.props),i]:[r+i]}(e))})),t}(r)),console.warn(...n)}Ee()}function kt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Ot(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Ot(e,t,n){return te(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:wt(t)?(t=Ot(e,gt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ee(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=gt(t),n?t:[`${e}=`,t])}const St={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next"};function xt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Dt(e,t,n)}return r}function jt(e,t,n,o){if(ee(e)){const i=xt(e,t,n,o);return i&&(oe(r=i)&&ee(r.then)&&ee(r.catch))&&i.catch((e=>{Dt(e,t,n)})),i}var r;const i=[];for(let r=0;r<e.length;r++)i.push(jt(e[r],t,n,o));return i}function Dt(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,i="production"!==process.env.NODE_ENV?St[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void xt(s,null,10,[e,r,i])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const i=St[t];if(n&&(r=n,Et.push(r)),Nt("Unhandled error"+(i?` during execution of ${i}`:"")),n&&Et.pop(),o)throw e;console.error(e)}else console.error(e);var r}(e,n,r,o)}let Vt=!1,Rt=!1;const Ct=[];let Tt=0;const It=[];let At=null,$t=0;const Pt=[];let Ft=null,Ut=0;const Mt=Promise.resolve();let Kt=null,zt=null;function Lt(e){const t=Kt||Mt;return e?t.then(this?e.bind(this):e):t}function Wt(e){if(!(Ct.length&&Ct.includes(e,Vt&&e.allowRecurse?Tt+1:Tt)||e===zt)){const t=function(e){let t=Tt+1,n=Ct.length;const o=Gt(e);for(;t<n;){const e=t+n>>>1;Gt(Ct[e])<o?t=e+1:n=e}return t}(e);t>-1?Ct.splice(t,0,e):Ct.push(e),qt()}}function qt(){Vt||Rt||(Rt=!0,Kt=Mt.then(Qt))}function Jt(e,t,n,o){Y(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),qt()}function Ht(e){Jt(e,Ft,Pt,Ut)}function Bt(e,t=null){if(It.length){for(zt=t,At=[...new Set(It)],It.length=0,"production"!==process.env.NODE_ENV&&(e=e||new Map),$t=0;$t<At.length;$t++)"production"!==process.env.NODE_ENV&&Xt(e,At[$t])||At[$t]();At=null,$t=0,zt=null,Bt(e,t)}}const Gt=e=>null==e.id?1/0:e.id;function Qt(e){Rt=!1,Vt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Bt(e),Ct.sort(((e,t)=>Gt(e)-Gt(t)));try{for(Tt=0;Tt<Ct.length;Tt++){const t=Ct[Tt];if(t&&!1!==t.active){if("production"!==process.env.NODE_ENV&&Xt(e,t))continue;xt(t,null,14)}}}finally{Tt=0,Ct.length=0,function(e){if(Pt.length){const t=[...new Set(Pt)];if(Pt.length=0,Ft)return void Ft.push(...t);for(Ft=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ft.sort(((e,t)=>Gt(e)-Gt(t))),Ut=0;Ut<Ft.length;Ut++)"production"!==process.env.NODE_ENV&&Xt(e,Ft[Ut])||Ft[Ut]();Ft=null,Ut=0}}(e),Vt=!1,Kt=null,(Ct.length||It.length||Pt.length)&&Qt(e)}}function Xt(e,t){if(e.has(t)){const n=e.get(t);if(n>100){const e=t.ownerInstance,n=e&&In(e.type);return Nt(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}else e.set(t,1)}const Yt=new Set;if("production"!==process.env.NODE_ENV){("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).__VUE_HMR_RUNTIME__={createRecord:en((function(e,t){t||(Nt("HMR API usage is out of date.\nPlease upgrade vue-loader/vite/rollup-plugin-vue or other relevant dependency that handles Vue SFC compilation."),t={});if(Zt.has(e))return!1;return Zt.set(e,{component:$n(t)?t.__vccOpts:t,instances:new Set}),!0})),rerender:en((function(e,t){const n=Zt.get(e);if(!n)return;t&&(n.component.render=t);Array.from(n.instances).forEach((e=>{t&&(e.render=t),e.renderCache=[],e.update()}))})),reload:en((function(e,t){const n=Zt.get(e);if(!n)return;const{component:o,instances:r}=n;if(!Yt.has(o)){t=$n(t)?t.__vccOpts:t,G(o,t);for(const e in o)"__file"===e||e in t||delete o[e];Yt.add(o),Ht((()=>{Yt.delete(o)}))}Array.from(r).forEach((e=>{e.parent?Wt(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}))}))}}const Zt=new Map;function en(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let tn=null;const nn={};function on(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=q,c=Cn){"production"===process.env.NODE_ENV||t||(void 0!==n&&Nt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Nt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const a=e=>{Nt("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")};let u,l,p=!1,d=!1;if(wt(e)?(u=()=>e.value,p=!!e._shallow):_t(e)?(u=()=>e,o=!0):Y(e)?(d=!0,p=e.some(_t),u=()=>e.map((e=>wt(e)?e.value:_t(e)?sn(e):ee(e)?xt(e,c,2):void("production"!==process.env.NODE_ENV&&a(e))))):ee(e)?u=t?()=>xt(e,c,2):()=>{if(!c||!c.isUnmounted)return l&&l(),jt(e,c,3,[f])}:(u=J,"production"!==process.env.NODE_ENV&&a(e)),t&&o){const e=u;u=()=>sn(e())}let f=e=>{l=y.options.onStop=()=>{xt(e,c,4)}},h=d?[]:nn;const _=()=>{if(y.active)if(t){const e=y();(o||p||(d?e.some(((e,t)=>ue(e,h[t]))):ue(e,h)))&&(l&&l(),jt(t,c,3,[e,h===nn?void 0:h,f]),h=e)}else y()};let v;_.allowRecurse=!!t,v="sync"===r?_:"post"===r?()=>hn(_,c&&c.suspense):()=>{!c||c.isMounted?function(e){Jt(e,At,It,$t)}(_):_()};const y=_e(u,{lazy:!0,onTrack:i,onTrigger:s,scheduler:v});return function(e,t=Cn){t&&(t.effects||(t.effects=[])).push(e)}(y,c),t?n?_():h=y():"post"===r?hn(y,c&&c.suspense):y(),()=>{ve(y),c&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(c.effects,y)}}function rn(e,t,n){const o=this.proxy,r=te(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(o,e):()=>o[e]:e.bind(o,o);let i;return ee(t)?i=t:(i=t.handler,n=t),on(r,i.bind(o),n,this)}function sn(e,t=new Set){if(!oe(e)||t.has(e)||e.__v_skip)return e;if(t.add(e),wt(e))sn(e.value,t);else if(Y(e))for(let n=0;n<e.length;n++)sn(e[n],t);else if("[object Set]"===ie(e)||Z(e))e.forEach((e=>{sn(e,t)}));else if((e=>"[object Object]"===ie(e))(e))for(const n in e)sn(e[n],t);return e}function cn(e){return ee(e)?{setup:e,name:e.name}:e}function an(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&an(e,i,n,!0),r&&r.forEach((t=>an(e,t,n,!0)));for(const r in t)if(o&&"expose"===r)"production"!==process.env.NODE_ENV&&Nt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=un[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const un={data:ln,props:fn,emits:fn,methods:fn,computed:fn,beforeCreate:dn,created:dn,beforeMount:dn,mounted:dn,beforeUpdate:dn,updated:dn,beforeDestroy:dn,destroyed:dn,activated:dn,deactivated:dn,errorCaptured:dn,serverPrefetch:dn,components:fn,directives:fn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=G(Object.create(null),e);for(const o in t)n[o]=dn(e[o],t[o]);return n},provide:ln,inject:function(e,t){return fn(pn(e),pn(t))}};function ln(e,t){return t?e?function(){return G(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function pn(e){if(Y(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function dn(e,t){return e?[...new Set([].concat(e,t))]:t}function fn(e,t){return e?G(G(Object.create(null),e),t):t}const hn=function(e,t){t&&t.pendingBranch?Y(e)?t.effects.push(...e):t.effects.push(e):Ht(e)},_n=Symbol(),vn=Symbol("production"!==process.env.NODE_ENV?"Fragment":void 0),yn=Symbol("production"!==process.env.NODE_ENV?"Text":void 0),gn=Symbol("production"!==process.env.NODE_ENV?"Comment":void 0);Symbol("production"!==process.env.NODE_ENV?"Static":void 0);function mn(e){return!!e&&!0===e.__v_isVNode}const wn="__vInternal",bn=({key:e})=>null!=e?e:null,En=({ref:e})=>null!=e?te(e)||wt(e)||ee(e)?{i:tn,r:e}:e:null,Nn="production"!==process.env.NODE_ENV?(...e)=>kn(...e):kn;function kn(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==_n||("production"===process.env.NODE_ENV||e||Nt(`Invalid vnode type when creating vnode: ${e}.`),e=gn),mn(e)){const o=On(e,t,!0);return n&&jn(o,n),o}if($n(e)&&(e=e.__vccOpts),t){(yt(t)||wn in t)&&(t=G({},t));let{class:e,style:n}=t;e&&!te(e)&&(t.class=W(e)),oe(n)&&(yt(n)&&!Y(n)&&(n=G({},n)),t.style=M(n))}const s=te(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:oe(e)?4:ee(e)?2:0;"production"!==process.env.NODE_ENV&&4&s&&yt(e)&&Nt("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=gt(e));const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bn(t),ref:t&&En(t),scopeId:null,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return"production"!==process.env.NODE_ENV&&c.key!=c.key&&Nt("VNode created with invalid key (NaN). VNode type:",c.type),jn(c,n),128&s&&e.normalize(c),c}function On(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,c=t?function(...e){const t=G({},e[0]);for(let n=1;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=W([t.class,o.class]));else if("style"===e)t.style=M([t.style,o.style]);else if(B(e)){const n=t[e],r=o[e];n!==r&&(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&bn(c),ref:t&&t.ref?n&&r?Y(r)?r.concat(En(t)):[r,En(t)]:En(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&Y(s)?s.map(Sn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,staticCache:e.staticCache,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==vn?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&On(e.ssContent),ssFallback:e.ssFallback&&On(e.ssFallback),el:e.el,anchor:e.anchor}}function Sn(e){const t=On(e);return Y(e.children)&&(t.children=e.children.map(Sn)),t}function xn(e=" ",t=0){return Nn(yn,null,e,t)}function jn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(Y(t))n=16;else if("object"==typeof t){if(1&o||64&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),jn(e,n()),n._c&&(n._d=!0)))}{n=32;const e=t._;e||wn in t||(t._ctx=tn)}}else ee(t)?(t={default:t,_ctx:tn},n=32):(t=String(t),64&o?(n=16,t=[xn(t)]):n=8);e.children=t,e.shapeFlag|=n}const Dn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(_t(t=mt(e.exposed))?t:new Proxy(t,bt),{get:(t,n)=>n in t?t[n]:n in Vn?Vn[n](e):void 0}));var t}(e)||e.proxy:Dn(e.parent):null,Vn=G(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?ft(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?ft(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?ft(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?ft(e.refs):e.refs,$parent:e=>Dn(e.parent),$root:e=>Dn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let a;return c?a=c:r.length||n||o?(a={},r.length&&r.forEach((e=>an(a,e,s,!0))),an(a,t,s)):a=t,i.set(t,a),a}(e):e.type,$forceUpdate:e=>()=>Wt(e.update),$nextTick:e=>Lt.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?rn.bind(e):J}),Rn={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:c,appContext:a}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;if("production"!==process.env.NODE_ENV&&o!==q&&o.__isScriptSetup&&X(o,t))return o[t];let u;if("$"!==t[0]){const c=s[t];if(void 0!==c)switch(c){case 0:return o[t];case 1:return r[t];case 3:return n[t];case 2:return i[t]}else{if(o!==q&&X(o,t))return s[t]=0,o[t];if(r!==q&&X(r,t))return s[t]=1,r[t];if((u=e.propsOptions[0])&&X(u,t))return s[t]=2,i[t];if(n!==q&&X(n,t))return s[t]=3,n[t];__VUE_OPTIONS_API__,s[t]=4}}const l=Vn[t];let p,d;return l?("$attrs"===t&&(Ne(e,"get",t),process.env.NODE_ENV),l(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==q&&X(n,t)?(s[t]=3,n[t]):(d=a.config.globalProperties,X(d,t)?d[t]:void process.env.NODE_ENV)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;if(r!==q&&X(r,t))r[t]=n;else if(o!==q&&X(o,t))o[t]=n;else if(X(e.props,t))return"production"!==process.env.NODE_ENV&&Nt(`Attempting to mutate prop "${t}". Props are readonly.`,e),!1;return"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Nt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`,e),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let c;return void 0!==n[s]||e!==q&&X(e,s)||t!==q&&X(t,s)||(c=i[0])&&X(c,s)||X(o,s)||X(Vn,s)||X(r.config.globalProperties,s)}};"production"!==process.env.NODE_ENV&&(Rn.ownKeys=e=>(Nt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e))),G({},Rn,{get(e,t){if(t!==Symbol.unscopables)return Rn.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!U(t);return"production"!==process.env.NODE_ENV&&!n&&Rn.has(e,t)&&Nt(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});let Cn=null;const Tn=/(?:^|[-_])(\w)/g;function In(e){return ee(e)&&e.displayName||e.name}function An(e,t,n=!1){let o=In(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?o.replace(Tn,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}function $n(e){return ee(e)&&"__vccOpts"in e}function Pn(e,t,n){const o=arguments.length;return 2===o?oe(t)&&!Y(t)?mn(t)?Nn(e,null,[t]):Nn(e,t):Nn(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&mn(n)&&(n=[n]),Nn(e,t,n))}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]),Symbol("production"!==process.env.NODE_ENV?"ssrContext":""),"production"!==process.env.NODE_ENV&&function(){if("production"===process.env.NODE_ENV||"undefined"==typeof window)return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},r={header:t=>oe(t)?t.__isVue?["div",e,"VueInstance"]:wt(t)?["div",{},["span",e,l(t)],"<",c(t.value),">"]:_t(t)?["div",{},["span",e,"Reactive"],"<",c(t),">"+(vt(t)?" (readonly)":"")]:vt(t)?["div",{},["span",e,"Readonly"],"<",c(t),">"]:null:null,hasBody:e=>e&&e.__isVue,body(e){if(e&&e.__isVue)return["div",{},...i(e.$)]}};function i(e){const t=[];e.type.props&&e.props&&t.push(s("props",gt(e.props))),e.setupState!==q&&t.push(s("setup",e.setupState)),e.data!==q&&t.push(s("data",gt(e.data)));const n=a(e,"computed");n&&t.push(s("computed",n));const r=a(e,"inject");return r&&t.push(s("injected",r)),t.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:e}]]),t}function s(e,t){return t=G({},t),Object.keys(t).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},e],["div",{style:"padding-left:1.25em"},...Object.keys(t).map((e=>["div",{},["span",o,e+": "],c(t[e],!1)]))]]:["span",{}]}function c(e,r=!0){return"number"==typeof e?["span",t,e]:"string"==typeof e?["span",n,JSON.stringify(e)]:"boolean"==typeof e?["span",o,e]:oe(e)?["object",{object:r?gt(e):e}]:["span",n,String(e)]}function a(e,t){const n=e.type;if(ee(n))return;const o={};for(const r in e.ctx)u(n,r,t)&&(o[r]=e.ctx[r]);return o}function u(e,t,n){const o=e[n];return!!(Y(o)&&o.includes(t)||oe(o)&&t in o)||!(!e.extends||!u(e.extends,t,n))||!(!e.mixins||!e.mixins.some((e=>u(e,t,n))))||void 0}function l(e){return e._shallow?"ShallowRef":e.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}(),e.create=function(e){const t=new P(e),n={user:null,isAuthenticated:!1},o={internalStore:n,client:t};return[cn({render(){return Pn("slot",null,this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated,loginRedirect:this.loginRedirect,getToken:this.getToken}))},async onMounted(){const e=await t.getUser();e||this.disableAutoLogin?(this.internalStore.isAuthenticated=!!e,this.internalStore.user=e):this.loginRedirect({},window.location.href)},data:()=>o,props:{disableAutoLogin:Boolean},methods:{getToken:async e=>t.getAccessToken(e),loginRedirect(e,t){sessionStorage.setItem("crossid.spa-js@returnTo",t),this.client.loginWithRedirect(e)}}}),cn({render(){return Pn("span",null,this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated}))},async mounted(){this.loginRedirectCallback()},data:()=>o,methods:{async loginRedirectCallback(){await this.client.handleRedirectCallback();const e=sessionStorage.getItem("crossid.spa-js@returnTo"),o=await t.getUser();n.user=o||null,n.isAuthenticated=!!o,window.history.replaceState(null,null,e),this.$emit("navigate")}}})]},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,n)};function n(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function r(e,t,n,o){return new(n||(n=Promise))((function(r,i){function s(e){try{a(o.next(e))}catch(e){i(e)}}function c(e){try{a(o.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,c)}a((o=o.apply(e,t||[])).next())}))}function i(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var s=function(e){function t(n,o){var r=e.call(this,o)||this;return r.error=n,r.error_description=o,Object.setPrototypeOf(r,t.prototype),r}return n(t,e),t.create=function(e){return new t(e.error,e.error_description)},t}(Error);function c(e){var t=e.tokenEndpoint,n=e.timeout,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["tokenEndpoint","timeout"]);return r(this,void 0,void 0,(function(){var e,a,u;return i(this,(function(l){switch(l.label){case 0:return e=new FormData,Object.keys(c).forEach((function(t){return e.append(t,c[t])})),[4,(p=t,d={timeout:n,method:"POST",body:e},void 0===d&&(d={}),r(void 0,void 0,void 0,(function(){var e,t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return e=d.timeout,t=void 0===e?5e3:e,n=new AbortController,r=setTimeout((function(){return n.abort()}),t),[4,fetch(p,o(o({},d),{signal:n.signal}))];case 1:return s=i.sent(),clearTimeout(r),[2,s]}}))})))];case 1:return[4,(a=l.sent()).json()];case 2:if(u=l.sent(),200!==a.status)throw s.create(u);return[2,u]}var p,d}))}))}var a="crossid-spa-js|index",u=function(e){return null!==e&&"Object"===(null==e?void 0:e.constructor.name)},l=function(e){return"number"==typeof e},p=function(e){return"string"==typeof e},d=String.fromCharCode(0),f=function(){function e(e,t){void 0===t&&(t={}),this.gopts=t,this.storage=e,t.purgeOnInit&&this.purge(!0)}return e.prototype.set=function(e,t,n){var o=this._key(e),r=this._ttl(null==n?void 0:n.ttl);try{var i=function(e,t){var n;return t&&t>0?((n={})[d]=e,n.ttl=Date.now()+1e3*t,n):e}(t,r);return this.storage.setItem(o,JSON.stringify(i)),!0}catch(e){return!1}},e.prototype.get=function(e,t){var n,o=this._key(e);try{var r=this.storage.getItem(o);if(null===r)return;var i=JSON.parse(r);return u(n=i)&&d in n?function(e,t){return Date.now()-1e3*t>e.ttl}(i,(null==t?void 0:t.ttl)||0)?void this.storage.removeItem(e):i[d]:i}catch(e){return}},e.prototype.remove=function(e){var t=this._key(e);return!!this.storage.getItem(t)&&(this.storage.removeItem(t),!0)},e.prototype.purge=function(e){var t=this;void 0===e&&(e=!1);var n=0;return Object.keys(this.storage).filter((function(e){return e.startsWith(t.gopts.prefix)})).forEach((function(o){var r=t.storage.getItem(o);if(r){var i;try{i=JSON.parse(r)}catch(e){return}(u(i)&&d in i&&Date.now()>i.ttl||e)&&(n++,t.storage.removeItem(o))}})),n},e.prototype._key=function(e){return this.gopts.prefix?""+this.gopts.prefix+e:e},e.prototype._ttl=function(e){return null===e?null:e||this.gopts.ttl||null},e}(),h=function(e){function t(t){var n=e.call(this,sessionStorage,t)||this;if("undefined"==typeof sessionStorage)throw Error("no support for session storage.");return n}return n(t,e),t}(f),_=function(e){function t(t){var n=e.call(this,localStorage,t)||this;if("undefined"==typeof localStorage)throw Error("no support for local storage.");return n}return n(t,e),t}(f),v=function(){function e(){}return e.prototype.getItem=function(e){return e in this?this[e]:null},e.prototype.setItem=function(e,t){void 0===t?this.removeItem(e):this[e]=""+t},e.prototype.removeItem=function(e){this.hasOwnProperty(e)&&delete this[e]},e}(),g=function(e){function t(t){return e.call(this,new v,t)||this}return n(t,e),t}(f),y=function(e){return Array.from(new Set(e))},m=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return y(e.join(" ").trim().split(/\s+/))},w=function(){return e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=Math.floor(86*Math.random()+43),Array.from(window.crypto.getRandomValues(new Uint8Array(t))).map((function(t){return e[t%e.length]})).join("");var e,t},b=function(e){return btoa(e)},E=function(e){return atob(e)},N=function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))},k=function(e){var t={"-":"+",_:"/"};return e.replace(/[-_]/g,(function(e){return t[e]}))},O=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]&&null!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},S=function(e){var t=e.split("."),n=t[0],o=t[1],r=t[2];if(3!==t.length||!n||!o||!r)throw new Error("malformed JWT token.");var i,s=JSON.parse(E(k(o)));if(s.aud)if(p(s.aud))s.aud=[s.aud];else if(i=s.aud,!Array.isArray(i)||!i.every((function(e){return p(e)})))throw new Error("Audience (aud) must be a string or an array of strings");return{header:JSON.parse(E(k(n))),payload:s}},x=function(e){function t(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var r=e.apply(this,n)||this;return r.fields_=t,r}return n(t,e),t.prototype.getMissingFields=function(){return this.fields_},t}(Error),j=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=t.map((function(t){return t(e)})).filter((function(e){return null!==e}));if(o&&o.length)throw new x(o,o.join(","));return null},D=function(e,t){var n=[];return function(o){return t&&t.filter((function(e){return!o.payload[e]})).forEach((function(e){return n.push(e)})),e&&e.filter((function(e){return!o.header[e]})).forEach((function(e){return n.push(e)})),n&&n.length?n.join(",")+" missing":null}},V=function(e){return function(t){return A("Issuer (iss)",e,t.payload.iss)}},R=function(e){return function(t){return A("Issuer (iss) claim",e,t.header.alg)}},C=function(e){return void 0===e&&(e=[]),function(t){return t.payload.aud&&t.payload.aud.length?(n=e,t.payload.aud.every((function(e){return n.includes(e)}))?null:"Audience (aud) claim mismatch: audience ("+t.payload.aud+") must contain only ("+e+")"):"Audience (aud) claim must be a present string";var n}},T=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.exp)return null;if(!l(n.payload.exp))return"Expiration Time (exp) claim must be a present number";var o=$(n.payload.exp,t);return new Date(Date.now())>o?"Expiration Time (exp) claim expired ("+o+")":null}},I=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.nbf)return null;if(!l(n.payload.nbf))return"Not Before (nbf) claim must be a present number";var o=$(n.payload.nbf,-1*t),r=new Date(Date.now());return r<o?"Not Before (nbf) claim cannot be used yet, current time ("+r+") is before ("+o+")":null}},A=function(e,t,n){return t!==n?e+' mismatch: expected "'+t+'" but got "'+n+'"':null},$=function(e,t){void 0===t&&(t=0);var n=new Date(0);return n.setUTCSeconds(e+t),n},P=function(){function e(e){this.opts=e,this.loginStateKey="crossid-spa-js|login",this.logoutStateKey="crossid-spa-js|logout",this.scope=e.scope,this.state=this._stateFactory(this.opts.state_type||"session_storage"),this.cache=this._cacheFactory(this.opts.cache_type||"memory"),this._purgeIndex()}return e.prototype.createRedirectURL=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,this._createAuthorizationData(e)];case 1:return t=n.sent(),[4,this._persistAuthorizationData(t)];case 2:return n.sent(),[2,this._authorizeUrl(t.request)]}}))}))},e.prototype.loginWithRedirect=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,this.createRedirectURL(e)];case 1:return t=n.sent(),window.location.replace(t),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=new URL(window.location.href)),r(this,void 0,void 0,(function(){var t,n,o,r,s,a,u;return i(this,(function(i){switch(i.label){case 0:if(t=e.searchParams,n=t.get("code"),o=t.get("error"))throw new Error(o);if(!(null==(r=this.state.get(this.loginStateKey))?void 0:r.code_verifier))throw new Error("invalid state, try sign-in again");return[4,c({tokenEndpoint:this.opts.token_endpoint,client_id:this.opts.client_id,code_verifier:r.code_verifier,grant_type:"authorization_code",redirect_uri:r.redirect_uri,code:n})];case 1:return s=i.sent(),(a=S(s.id_token)).payload.__bearer=s.id_token,u=S(s.access_token),this.state.remove(this.loginStateKey),this._assertAccessToken(u,r.audience),this._assertIDToken(a,r.nonce),u.payload._raw=s.access_token,this._cacheTokens(a,u,s.refresh_token),[2,{state:r.state}]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var t,n,o,r;return i(this,(function(i){return t=e.audience||this.opts.audience,n=m(this.scope,e.scope),o=this._getTokensKeysFromCache("id_token",t,n),[2,null==(r=this._getNarrowedKey(o))?void 0:r.payload]}))}))},e.prototype.getAccessToken=function(e){var t;return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var n,o,r,s;return i(this,(function(i){return n=e.audience||this.opts.audience,o=m(this.scope,e.scope),r=this._getTokensKeysFromCache("access_token",n,o),s=this._getNarrowedKey(r),[2,null===(t=null==s?void 0:s.payload)||void 0===t?void 0:t._raw]}))}))},e.prototype.createLogoutRedirectURL=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,this._createLogoutData(e)];case 1:return(t=n.sent()).request.id_token_hint&&e.post_logout_redirect_uri?[4,this._persistLogoutData(t)]:(this._removeTokens(t.audience,t.scopes),[2,this._logoutUrl()]);case 2:return n.sent(),[2,this._logoutUrl(t.request)]}}))}))},e.prototype.logoutWithRedirect=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,this.createLogoutRedirectURL(e)];case 1:return t=n.sent(),window.location.assign(t),[2]}}))}))},e.prototype.handleLogoutRedirectCallback=function(e){return void 0===e&&(e=new URL(window.location.href)),r(this,void 0,void 0,(function(){var t,n,o,r;return i(this,(function(i){if(t=e.searchParams,n=t.get("state"),o=t.get("error"))throw new Error(o);if(!(null==(r=this.state.get(this.logoutStateKey))?void 0:r.state)||r.state!==n)throw new Error("invalid state, try sign-in again");return this._removeTokens(r.audience,r.scopes),this.state.remove(this.logoutStateKey),[2,{state:r.appState}]}))}))},e.prototype._createAuthorizationData=function(e){return r(this,void 0,void 0,(function(){var t,n,o,s,c,a;return i(this,(function(u){switch(u.label){case 0:return t=N(b(w())),n=N(b(w())),o=w(),[4,(p=o,r(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,window.crypto.subtle.digest({name:"SHA-256"},(new TextEncoder).encode(p))];case 1:return[2,e.sent()]}}))})))];case 1:return s=u.sent(),l=new Uint8Array(s),c=N(b(String.fromCharCode.apply(String,Array.from(l)))),a={audience:e.audience,redirect_uri:e.redirect_uri,response_type:e.response_type,scope:e.scope,state:t,nonce:n,code_challenge:c},[2,{request:this._mergeAuthorizationCodeParams(a),code_verifier:o,appState:e.state}]}var l,p}))}))},e.prototype._persistAuthorizationData=function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(o){return t=e.request,n={audience:t.audience,redirect_uri:t.redirect_uri,scope:t.scope,nonce:t.nonce,state:e.appState,code_verifier:e.code_verifier},this.state.set(this.loginStateKey,n),[2]}))}))},e.prototype._mergeAuthorizationCodeParams=function(e){return{client_id:this.opts.client_id,audience:e.audience||this.opts.audience,response_type:e.response_type||this.opts.response_type||"code",redirect_uri:e.redirect_uri||this.opts.redirect_uri,nonce:e.nonce,state:e.state,scope:e.scope||this.opts.scope,code_challenge:e.code_challenge,code_challenge_method:"S256"}},e.prototype._createLogoutData=function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(o){switch(o.label){case 0:return(t={id_token_hint:e.id_token_hint,post_logout_redirect_uri:e.post_logout_redirect_uri}).id_token_hint||null===t.id_token_hint?[3,2]:[4,this.getUser()];case 1:(n=o.sent())&&n.__bearer&&(t.id_token_hint=n.__bearer),o.label=2;case 2:return t.id_token_hint&&(t.state=N(b(w()))),[2,{request:t,audience:e.audience||this.opts.audience,scopes:(e.scope||this.scope).split(" "),appState:e.state}]}}))}))},e.prototype._persistLogoutData=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){return t={client_id:this.opts.client_id,audience:e.audience,scopes:e.scopes,post_logout_redirect_uri:e.request.post_logout_redirect_uri,state:e.request.state,appState:e.appState},this.state.set(this.logoutStateKey,t),[2]}))}))},e.prototype._assertAccessToken=function(e,t){j(e,D(["alg"],["iss","sub","aud","exp","iat"]),V(this.opts.issuer),R("RS256"),C(t),T(!0),I(!0))},e.prototype._assertIDToken=function(e,t){var n;return j(e,D(["alg"],["iss","sub","aud","nonce","exp","iat"]),V(this.opts.issuer),(n=t,function(e){return A("Nonce (nonce)",n,e.payload.nonce)}),R("RS256"),C([this.opts.client_id]),T(!0),I(!1),(function(e){return l(e.payload.iat)?null:"Issued At (iat) claim must be a present number"})),null},e.prototype._removeTokens=function(e,t){var n=this,o=this._getTokensKeysFromCache("id_token",e,t),r=this._getTokensKeysFromCache("access_token",e,t),i=this._getTokensKeysFromCache("refresh_token",e,t);o.concat(r).concat(i).forEach((function(e){return n.cache.remove(e)})),this._purgeIndex()},e.prototype._authorizeUrl=function(e){return this.opts.authorization_endpoint+"?"+O(e)},e.prototype._logoutUrl=function(e){var t=this.opts.logout_endpoint;return e&&(t=t+"?"+O(e)),t},e.prototype._stateFactory=function(e){var t={ttl:300};switch(e){case"local_storage":return new _(t);case"session_storage":return new h(t);default:throw new Error('Invalid cache type "'+e+'"')}},e.prototype._cacheFactory=function(e){switch(e){case"memory":return new g;case"local_storage":return new _({purgeOnInit:!0});case"session_storage":return new h({purgeOnInit:!0});default:throw new Error('Invalid cache type "'+e+'"')}},e.prototype._cacheTokens=function(e,t,n){var o=this._ttlFromToken(t);this._cacheToken("access_token",t,this.opts.client_id,t.payload.aud,t.payload.scp,o),this._cacheToken("id_token",e,this.opts.client_id,t.payload.aud,t.payload.scp||[],this._ttlFromToken(e)),n&&this._cacheToken("refresh_token",n,this.opts.client_id,t.payload.aud,t.payload.scp,432e3)},e.prototype._cacheToken=function(e,t,n,o,r,i){var s=this._cacheKey({tokType:e,client_id:n,audience:o,scope:r});this.cache.set(s,t,{ttl:i});var c=[o[0]],u=this.cache.get(a);u||(u={}),c.forEach((function(e){u[e]||(u[e]={});var t=u[e];r.forEach((function(e){t[e]||(t[e]=[]),t[e].push(s)}))})),this.cache.set(a,u)},e.prototype._cacheKey=function(e){var t,n=e.tokType,o=e.client_id,r=e.audience,i=e.scope;return i&&i.length&&(i.sort(),t=i.join("__")),["crossid-spa-js",n,o,r.join("__"),t].join("|")},e.prototype._decodeKey=function(e){var t=e.split("|"),n=t[1],o=t[2],r=t[3];return{tokenType:n,audience:o.split("__"),scope:r.split("__")}},e.prototype._getTokensKeysFromCache=function(e,t,n){var o,r=this,i=(this.cache.get(a)||{})[t[0]];if(!i)return[];for(var s=function(t){return i[t]&&i[t].length?o?void(o=o.filter((function(e){return i[t].includes(e)}))):(o=i[t].filter((function(t){return r._decodeKey(t).tokenType===e})),"continue"):{value:[]}},c=0,u=n;c<u.length;c++){var l=s(u[c]);if("object"==typeof l)return l.value}return o},e.prototype._getNarrowedKey=function(e){for(var t in e){var n=this.cache.get(e[t]);if(n)return n}},e.prototype._ttlFromToken=function(e){return(new Date(1e3*e.payload.exp).getTime()-Date.now())/1e3},e.prototype._purgeIndex=function(){var e=this.cache.get(a);if(e){for(var t=0,n=Object.entries(e);t<n.length;t++){for(var o=n[t],r=o[0],i=o[1],s=function(t,n){for(var o=[],i=0;i<n.length;i++)c.cache.get(n[i])||o.push(i);e[r][t]=n.filter((function(e,t){return-1===o.indexOf(t)})),e[r][t].length||delete e[r][t]},c=this,u=0,l=Object.entries(i);u<l.length;u++){var p=l[u];s(p[0],p[1])}Object.keys(e[r]).length||delete e[r]}this.cache.set(a,e)}},e}();function M(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const F=M("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function U(e){if(Y(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=U(te(o)?L(o):o);if(r)for(const e in r)t[e]=r[e]}return t}if(oe(e))return e}const K=/;(?![^(]*\))/g,z=/:(.+)/;function L(e){const t={};return e.split(K).forEach((e=>{if(e){const n=e.split(z);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function W(e){let t="";if(te(e))t=e;else if(Y(e))for(let n=0;n<e.length;n++){const o=W(e[n]);o&&(t+=o+" ")}else if(oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const q="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const J=()=>{},H=/^on[^a-z]/,B=e=>H.test(e),G=Object.assign,Q=Object.prototype.hasOwnProperty,X=(e,t)=>Q.call(e,t),Y=Array.isArray,Z=e=>"[object Map]"===ie(e),ee=e=>"function"==typeof e,te=e=>"string"==typeof e,ne=e=>"symbol"==typeof e,oe=e=>null!==e&&"object"==typeof e,re=Object.prototype.toString,ie=e=>re.call(e),se=e=>ie(e).slice(8,-1),ce=e=>te(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ae=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),ue=(e,t)=>e!==t&&(e==e||t==t),le=new WeakMap,pe=[];let de;const fe=Symbol("production"!==process.env.NODE_ENV?"iterate":""),he=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");function _e(e,t=q){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!pe.includes(n)){ye(n);try{return we.push(me),me=!0,pe.push(n),de=n,e()}finally{pe.pop(),Ee(),de=pe[pe.length-1]}}};return n.id=ge++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n}function ve(e){e.active&&(ye(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let ge=0;function ye(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let me=!0;const we=[];function be(){we.push(me),me=!1}function Ee(){const e=we.pop();me=void 0===e||e}function Ne(e,t,n){if(!me||void 0===de)return;let o=le.get(e);o||le.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Set),r.has(de)||(r.add(de),de.deps.push(r),"production"!==process.env.NODE_ENV&&de.options.onTrack&&de.options.onTrack({effect:de,target:e,type:t,key:n}))}function ke(e,t,n,o,r,i){const s=le.get(e);if(!s)return;const c=new Set,a=e=>{e&&e.forEach((e=>{(e!==de||e.allowRecurse)&&c.add(e)}))};if("clear"===t)s.forEach(a);else if("length"===n&&Y(e))s.forEach(((e,t)=>{("length"===t||t>=o)&&a(e)}));else switch(void 0!==n&&a(s.get(n)),t){case"add":Y(e)?ce(n)&&a(s.get("length")):(a(s.get(fe)),Z(e)&&a(s.get(he)));break;case"delete":Y(e)||(a(s.get(fe)),Z(e)&&a(s.get(he)));break;case"set":Z(e)&&a(s.get(fe))}c.forEach((s=>{"production"!==process.env.NODE_ENV&&s.options.onTrigger&&s.options.onTrigger({effect:s,target:e,key:n,type:t,newValue:o,oldValue:r,oldTarget:i}),s.options.scheduler?s.options.scheduler(s):s()}))}const Oe=M("__proto__,__v_isRef,__isVue"),Se=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(ne)),xe=Ce(),je=Ce(!0),De=Ce(!0,!0),Ve=Re();function Re(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){const t=yt(this);for(let e=0,n=this.length;e<n;e++)Ne(t,"get",e+"");const o=n.apply(t,e);return-1===o||!1===o?n.apply(t,e.map(yt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){be();const t=n.apply(this,e);return Ee(),t}})),e}function Ce(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?lt:ut:t?at:ct).get(n))return n;const i=Y(n);if(!e&&i&&X(Ve,o))return Reflect.get(Ve,o,r);const s=Reflect.get(n,o,r);if(ne(o)?Se.has(o):Oe(o))return s;if(e||Ne(n,"get",o),t)return s;if(wt(s)){return!i||!ce(o)?s.value:s}return oe(s)?e?dt(s):pt(s):s}}function Te(e=!1){return function(t,n,o,r){let i=t[n];if(!e&&(o=yt(o),i=yt(i),!Y(t)&&wt(i)&&!wt(o)))return i.value=o,!0;const s=Y(t)&&ce(n)?Number(n)<t.length:X(t,n),c=Reflect.set(t,n,o,r);return t===yt(r)&&(s?ue(o,i)&&ke(t,"set",n,o,i):ke(t,"add",n,o)),c}}const Ie={get:xe,set:Te(),deleteProperty:function(e,t){const n=X(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&ke(e,"delete",t,void 0,o),r},has:function(e,t){const n=Reflect.has(e,t);return ne(t)&&Se.has(t)||Ne(e,"has",t),n},ownKeys:function(e){return Ne(e,"iterate",Y(e)?"length":fe),Reflect.ownKeys(e)}},Ae={get:je,set:(e,t)=>("production"!==process.env.NODE_ENV&&console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},$e=G({},Ae,{get:De}),Pe=e=>oe(e)?pt(e):e,Me=e=>oe(e)?dt(e):e,Fe=e=>e,Ue=e=>Reflect.getPrototypeOf(e);function Ke(e,t,n=!1,o=!1){const r=yt(e=e.__v_raw),i=yt(t);t!==i&&!n&&Ne(r,"get",t),!n&&Ne(r,"get",i);const{has:s}=Ue(r),c=o?Fe:n?Me:Pe;return s.call(r,t)?c(e.get(t)):s.call(r,i)?c(e.get(i)):void(e!==r&&e.get(t))}function ze(e,t=!1){const n=this.__v_raw,o=yt(n),r=yt(e);return e!==r&&!t&&Ne(o,"has",e),!t&&Ne(o,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function Le(e,t=!1){return e=e.__v_raw,!t&&Ne(yt(e),"iterate",fe),Reflect.get(e,"size",e)}function We(e){e=yt(e);const t=yt(this);return Ue(t).has.call(t,e)||(t.add(e),ke(t,"add",e,e)),this}function qe(e,t){t=yt(t);const n=yt(this),{has:o,get:r}=Ue(n);let i=o.call(n,e);i?"production"!==process.env.NODE_ENV&&st(n,o,e):(e=yt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?ue(t,s)&&ke(n,"set",e,t,s):ke(n,"add",e,t),this}function Je(e){const t=yt(this),{has:n,get:o}=Ue(t);let r=n.call(t,e);r?"production"!==process.env.NODE_ENV&&st(t,n,e):(e=yt(e),r=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return r&&ke(t,"delete",e,void 0,i),s}function He(){const e=yt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?Z(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&ke(e,"clear",void 0,void 0,n),o}function Be(e,t){return function(n,o){const r=this,i=r.__v_raw,s=yt(i),c=t?Fe:e?Me:Pe;return!e&&Ne(s,"iterate",fe),i.forEach(((e,t)=>n.call(o,c(e),c(t),r)))}}function Ge(e,t,n){return function(...o){const r=this.__v_raw,i=yt(r),s=Z(i),c="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,u=r[e](...o),l=n?Fe:t?Me:Pe;return!t&&Ne(i,"iterate",a?he:fe),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function Qe(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${ae(e)} operation ${n}failed: target is readonly.`,yt(this))}return"delete"!==e&&this}}function Xe(){const e={get(e){return Ke(this,e)},get size(){return Le(this)},has:ze,add:We,set:qe,delete:Je,clear:He,forEach:Be(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return Le(this)},has:ze,add:We,set:qe,delete:Je,clear:He,forEach:Be(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return Le(this,!0)},has(e){return ze.call(this,e,!0)},add:Qe("add"),set:Qe("set"),delete:Qe("delete"),clear:Qe("clear"),forEach:Be(!0,!1)},o={get(e){return Ke(this,e,!0,!0)},get size(){return Le(this,!0)},has(e){return ze.call(this,e,!0)},add:Qe("add"),set:Qe("set"),delete:Qe("delete"),clear:Qe("clear"),forEach:Be(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Ge(r,!1,!1),n[r]=Ge(r,!0,!1),t[r]=Ge(r,!1,!0),o[r]=Ge(r,!0,!0)})),[e,n,t,o]}const[Ye,Ze,et,tt]=Xe();function nt(e,t){const n=t?e?tt:et:e?Ze:Ye;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(X(n,o)&&o in t?n:t,o,r)}const ot={get:nt(!1,!1)},rt={get:nt(!0,!1)},it={get:nt(!0,!0)};function st(e,t,n){const o=yt(n);if(o!==n&&t.call(e,o)){const t=se(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const ct=new WeakMap,at=new WeakMap,ut=new WeakMap,lt=new WeakMap;function pt(e){return e&&e.__v_isReadonly?e:ht(e,!1,Ie,ot,ct)}function dt(e){return ht(e,!0,Ae,rt,ut)}function ft(e){return ht(e,!0,$e,it,lt)}function ht(e,t,n,o,r){if(!oe(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(se(c));var c;if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function _t(e){return vt(e)?_t(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(e){return!(!e||!e.__v_isReadonly)}function gt(e){return _t(e)||vt(e)}function yt(e){return e&&yt(e.__v_raw)||e}function mt(e){return((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}function wt(e){return Boolean(e&&!0===e.__v_isRef)}const bt={get:(e,t,n)=>{return wt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return wt(r)&&!wt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};const Et=[];function Nt(e,...t){be();const n=Et.length?Et[Et.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=Et[Et.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)xt(o,n,11,[e+t.join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${An(n,e.type)}>`)).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,r=` at <${An(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...kt(e.props),i]:[r+i]}(e))})),t}(r)),console.warn(...n)}Ee()}function kt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Ot(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Ot(e,t,n){return te(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:wt(t)?(t=Ot(e,yt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ee(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=yt(t),n?t:[`${e}=`,t])}const St={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next"};function xt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Dt(e,t,n)}return r}function jt(e,t,n,o){if(ee(e)){const i=xt(e,t,n,o);return i&&(oe(r=i)&&ee(r.then)&&ee(r.catch))&&i.catch((e=>{Dt(e,t,n)})),i}var r;const i=[];for(let r=0;r<e.length;r++)i.push(jt(e[r],t,n,o));return i}function Dt(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,i="production"!==process.env.NODE_ENV?St[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void xt(s,null,10,[e,r,i])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const i=St[t];if(n&&(r=n,Et.push(r)),Nt("Unhandled error"+(i?` during execution of ${i}`:"")),n&&Et.pop(),o)throw e;console.error(e)}else console.error(e);var r}(e,n,r,o)}let Vt=!1,Rt=!1;const Ct=[];let Tt=0;const It=[];let At=null,$t=0;const Pt=[];let Mt=null,Ft=0;const Ut=Promise.resolve();let Kt=null,zt=null;function Lt(e){const t=Kt||Ut;return e?t.then(this?e.bind(this):e):t}function Wt(e){if(!(Ct.length&&Ct.includes(e,Vt&&e.allowRecurse?Tt+1:Tt)||e===zt)){const t=function(e){let t=Tt+1,n=Ct.length;const o=Gt(e);for(;t<n;){const e=t+n>>>1;Gt(Ct[e])<o?t=e+1:n=e}return t}(e);t>-1?Ct.splice(t,0,e):Ct.push(e),qt()}}function qt(){Vt||Rt||(Rt=!0,Kt=Ut.then(Qt))}function Jt(e,t,n,o){Y(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),qt()}function Ht(e){Jt(e,Mt,Pt,Ft)}function Bt(e,t=null){if(It.length){for(zt=t,At=[...new Set(It)],It.length=0,"production"!==process.env.NODE_ENV&&(e=e||new Map),$t=0;$t<At.length;$t++)"production"!==process.env.NODE_ENV&&Xt(e,At[$t])||At[$t]();At=null,$t=0,zt=null,Bt(e,t)}}const Gt=e=>null==e.id?1/0:e.id;function Qt(e){Rt=!1,Vt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Bt(e),Ct.sort(((e,t)=>Gt(e)-Gt(t)));try{for(Tt=0;Tt<Ct.length;Tt++){const t=Ct[Tt];if(t&&!1!==t.active){if("production"!==process.env.NODE_ENV&&Xt(e,t))continue;xt(t,null,14)}}}finally{Tt=0,Ct.length=0,function(e){if(Pt.length){const t=[...new Set(Pt)];if(Pt.length=0,Mt)return void Mt.push(...t);for(Mt=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Mt.sort(((e,t)=>Gt(e)-Gt(t))),Ft=0;Ft<Mt.length;Ft++)"production"!==process.env.NODE_ENV&&Xt(e,Mt[Ft])||Mt[Ft]();Mt=null,Ft=0}}(e),Vt=!1,Kt=null,(Ct.length||It.length||Pt.length)&&Qt(e)}}function Xt(e,t){if(e.has(t)){const n=e.get(t);if(n>100){const e=t.ownerInstance,n=e&&In(e.type);return Nt(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}else e.set(t,1)}const Yt=new Set;if("production"!==process.env.NODE_ENV){("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).__VUE_HMR_RUNTIME__={createRecord:en((function(e,t){t||(Nt("HMR API usage is out of date.\nPlease upgrade vue-loader/vite/rollup-plugin-vue or other relevant dependency that handles Vue SFC compilation."),t={});if(Zt.has(e))return!1;return Zt.set(e,{component:$n(t)?t.__vccOpts:t,instances:new Set}),!0})),rerender:en((function(e,t){const n=Zt.get(e);if(!n)return;t&&(n.component.render=t);Array.from(n.instances).forEach((e=>{t&&(e.render=t),e.renderCache=[],e.update()}))})),reload:en((function(e,t){const n=Zt.get(e);if(!n)return;const{component:o,instances:r}=n;if(!Yt.has(o)){t=$n(t)?t.__vccOpts:t,G(o,t);for(const e in o)"__file"===e||e in t||delete o[e];Yt.add(o),Ht((()=>{Yt.delete(o)}))}Array.from(r).forEach((e=>{e.parent?Wt(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}))}))}}const Zt=new Map;function en(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let tn=null;const nn={};function on(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=q,c=Cn){"production"===process.env.NODE_ENV||t||(void 0!==n&&Nt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Nt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const a=e=>{Nt("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")};let u,l,p=!1,d=!1;if(wt(e)?(u=()=>e.value,p=!!e._shallow):_t(e)?(u=()=>e,o=!0):Y(e)?(d=!0,p=e.some(_t),u=()=>e.map((e=>wt(e)?e.value:_t(e)?sn(e):ee(e)?xt(e,c,2):void("production"!==process.env.NODE_ENV&&a(e))))):ee(e)?u=t?()=>xt(e,c,2):()=>{if(!c||!c.isUnmounted)return l&&l(),jt(e,c,3,[f])}:(u=J,"production"!==process.env.NODE_ENV&&a(e)),t&&o){const e=u;u=()=>sn(e())}let f=e=>{l=g.options.onStop=()=>{xt(e,c,4)}},h=d?[]:nn;const _=()=>{if(g.active)if(t){const e=g();(o||p||(d?e.some(((e,t)=>ue(e,h[t]))):ue(e,h)))&&(l&&l(),jt(t,c,3,[e,h===nn?void 0:h,f]),h=e)}else g()};let v;_.allowRecurse=!!t,v="sync"===r?_:"post"===r?()=>hn(_,c&&c.suspense):()=>{!c||c.isMounted?function(e){Jt(e,At,It,$t)}(_):_()};const g=_e(u,{lazy:!0,onTrack:i,onTrigger:s,scheduler:v});return function(e,t=Cn){t&&(t.effects||(t.effects=[])).push(e)}(g,c),t?n?_():h=g():"post"===r?hn(g,c&&c.suspense):g(),()=>{ve(g),c&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(c.effects,g)}}function rn(e,t,n){const o=this.proxy,r=te(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(o,e):()=>o[e]:e.bind(o,o);let i;return ee(t)?i=t:(i=t.handler,n=t),on(r,i.bind(o),n,this)}function sn(e,t=new Set){if(!oe(e)||t.has(e)||e.__v_skip)return e;if(t.add(e),wt(e))sn(e.value,t);else if(Y(e))for(let n=0;n<e.length;n++)sn(e[n],t);else if("[object Set]"===ie(e)||Z(e))e.forEach((e=>{sn(e,t)}));else if((e=>"[object Object]"===ie(e))(e))for(const n in e)sn(e[n],t);return e}function cn(e){return ee(e)?{setup:e,name:e.name}:e}function an(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&an(e,i,n,!0),r&&r.forEach((t=>an(e,t,n,!0)));for(const r in t)if(o&&"expose"===r)"production"!==process.env.NODE_ENV&&Nt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=un[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const un={data:ln,props:fn,emits:fn,methods:fn,computed:fn,beforeCreate:dn,created:dn,beforeMount:dn,mounted:dn,beforeUpdate:dn,updated:dn,beforeDestroy:dn,destroyed:dn,activated:dn,deactivated:dn,errorCaptured:dn,serverPrefetch:dn,components:fn,directives:fn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=G(Object.create(null),e);for(const o in t)n[o]=dn(e[o],t[o]);return n},provide:ln,inject:function(e,t){return fn(pn(e),pn(t))}};function ln(e,t){return t?e?function(){return G(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function pn(e){if(Y(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function dn(e,t){return e?[...new Set([].concat(e,t))]:t}function fn(e,t){return e?G(G(Object.create(null),e),t):t}const hn=function(e,t){t&&t.pendingBranch?Y(e)?t.effects.push(...e):t.effects.push(e):Ht(e)},_n=Symbol(),vn=Symbol("production"!==process.env.NODE_ENV?"Fragment":void 0),gn=Symbol("production"!==process.env.NODE_ENV?"Text":void 0),yn=Symbol("production"!==process.env.NODE_ENV?"Comment":void 0);Symbol("production"!==process.env.NODE_ENV?"Static":void 0);function mn(e){return!!e&&!0===e.__v_isVNode}const wn="__vInternal",bn=({key:e})=>null!=e?e:null,En=({ref:e})=>null!=e?te(e)||wt(e)||ee(e)?{i:tn,r:e}:e:null,Nn="production"!==process.env.NODE_ENV?(...e)=>kn(...e):kn;function kn(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==_n||("production"===process.env.NODE_ENV||e||Nt(`Invalid vnode type when creating vnode: ${e}.`),e=yn),mn(e)){const o=On(e,t,!0);return n&&jn(o,n),o}if($n(e)&&(e=e.__vccOpts),t){(gt(t)||wn in t)&&(t=G({},t));let{class:e,style:n}=t;e&&!te(e)&&(t.class=W(e)),oe(n)&&(gt(n)&&!Y(n)&&(n=G({},n)),t.style=U(n))}const s=te(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:oe(e)?4:ee(e)?2:0;"production"!==process.env.NODE_ENV&&4&s&>(e)&&Nt("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=yt(e));const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bn(t),ref:t&&En(t),scopeId:null,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return"production"!==process.env.NODE_ENV&&c.key!=c.key&&Nt("VNode created with invalid key (NaN). VNode type:",c.type),jn(c,n),128&s&&e.normalize(c),c}function On(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,c=t?function(...e){const t=G({},e[0]);for(let n=1;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=W([t.class,o.class]));else if("style"===e)t.style=U([t.style,o.style]);else if(B(e)){const n=t[e],r=o[e];n!==r&&(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&bn(c),ref:t&&t.ref?n&&r?Y(r)?r.concat(En(t)):[r,En(t)]:En(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&Y(s)?s.map(Sn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,staticCache:e.staticCache,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==vn?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&On(e.ssContent),ssFallback:e.ssFallback&&On(e.ssFallback),el:e.el,anchor:e.anchor}}function Sn(e){const t=On(e);return Y(e.children)&&(t.children=e.children.map(Sn)),t}function xn(e=" ",t=0){return Nn(gn,null,e,t)}function jn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(Y(t))n=16;else if("object"==typeof t){if(1&o||64&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),jn(e,n()),n._c&&(n._d=!0)))}{n=32;const e=t._;e||wn in t||(t._ctx=tn)}}else ee(t)?(t={default:t,_ctx:tn},n=32):(t=String(t),64&o?(n=16,t=[xn(t)]):n=8);e.children=t,e.shapeFlag|=n}const Dn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(_t(t=mt(e.exposed))?t:new Proxy(t,bt),{get:(t,n)=>n in t?t[n]:n in Vn?Vn[n](e):void 0}));var t}(e)||e.proxy:Dn(e.parent):null,Vn=G(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?ft(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?ft(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?ft(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?ft(e.refs):e.refs,$parent:e=>Dn(e.parent),$root:e=>Dn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let a;return c?a=c:r.length||n||o?(a={},r.length&&r.forEach((e=>an(a,e,s,!0))),an(a,t,s)):a=t,i.set(t,a),a}(e):e.type,$forceUpdate:e=>()=>Wt(e.update),$nextTick:e=>Lt.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?rn.bind(e):J}),Rn={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:c,appContext:a}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;if("production"!==process.env.NODE_ENV&&o!==q&&o.__isScriptSetup&&X(o,t))return o[t];let u;if("$"!==t[0]){const c=s[t];if(void 0!==c)switch(c){case 0:return o[t];case 1:return r[t];case 3:return n[t];case 2:return i[t]}else{if(o!==q&&X(o,t))return s[t]=0,o[t];if(r!==q&&X(r,t))return s[t]=1,r[t];if((u=e.propsOptions[0])&&X(u,t))return s[t]=2,i[t];if(n!==q&&X(n,t))return s[t]=3,n[t];__VUE_OPTIONS_API__,s[t]=4}}const l=Vn[t];let p,d;return l?("$attrs"===t&&(Ne(e,"get",t),process.env.NODE_ENV),l(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==q&&X(n,t)?(s[t]=3,n[t]):(d=a.config.globalProperties,X(d,t)?d[t]:void process.env.NODE_ENV)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;if(r!==q&&X(r,t))r[t]=n;else if(o!==q&&X(o,t))o[t]=n;else if(X(e.props,t))return"production"!==process.env.NODE_ENV&&Nt(`Attempting to mutate prop "${t}". Props are readonly.`,e),!1;return"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Nt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`,e),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let c;return void 0!==n[s]||e!==q&&X(e,s)||t!==q&&X(t,s)||(c=i[0])&&X(c,s)||X(o,s)||X(Vn,s)||X(r.config.globalProperties,s)}};"production"!==process.env.NODE_ENV&&(Rn.ownKeys=e=>(Nt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e))),G({},Rn,{get(e,t){if(t!==Symbol.unscopables)return Rn.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!F(t);return"production"!==process.env.NODE_ENV&&!n&&Rn.has(e,t)&&Nt(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});let Cn=null;const Tn=/(?:^|[-_])(\w)/g;function In(e){return ee(e)&&e.displayName||e.name}function An(e,t,n=!1){let o=In(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?o.replace(Tn,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}function $n(e){return ee(e)&&"__vccOpts"in e}function Pn(e,t,n){const o=arguments.length;return 2===o?oe(t)&&!Y(t)?mn(t)?Nn(e,null,[t]):Nn(e,t):Nn(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&mn(n)&&(n=[n]),Nn(e,t,n))}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]),Symbol("production"!==process.env.NODE_ENV?"ssrContext":""),"production"!==process.env.NODE_ENV&&function(){if("production"===process.env.NODE_ENV||"undefined"==typeof window)return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},r={header:t=>oe(t)?t.__isVue?["div",e,"VueInstance"]:wt(t)?["div",{},["span",e,l(t)],"<",c(t.value),">"]:_t(t)?["div",{},["span",e,"Reactive"],"<",c(t),">"+(vt(t)?" (readonly)":"")]:vt(t)?["div",{},["span",e,"Readonly"],"<",c(t),">"]:null:null,hasBody:e=>e&&e.__isVue,body(e){if(e&&e.__isVue)return["div",{},...i(e.$)]}};function i(e){const t=[];e.type.props&&e.props&&t.push(s("props",yt(e.props))),e.setupState!==q&&t.push(s("setup",e.setupState)),e.data!==q&&t.push(s("data",yt(e.data)));const n=a(e,"computed");n&&t.push(s("computed",n));const r=a(e,"inject");return r&&t.push(s("injected",r)),t.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:e}]]),t}function s(e,t){return t=G({},t),Object.keys(t).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},e],["div",{style:"padding-left:1.25em"},...Object.keys(t).map((e=>["div",{},["span",o,e+": "],c(t[e],!1)]))]]:["span",{}]}function c(e,r=!0){return"number"==typeof e?["span",t,e]:"string"==typeof e?["span",n,JSON.stringify(e)]:"boolean"==typeof e?["span",o,e]:oe(e)?["object",{object:r?yt(e):e}]:["span",n,String(e)]}function a(e,t){const n=e.type;if(ee(n))return;const o={};for(const r in e.ctx)u(n,r,t)&&(o[r]=e.ctx[r]);return o}function u(e,t,n){const o=e[n];return!!(Y(o)&&o.includes(t)||oe(o)&&t in o)||!(!e.extends||!u(e.extends,t,n))||!(!e.mixins||!e.mixins.some((e=>u(e,t,n))))||void 0}function l(e){return e._shallow?"ShallowRef":e.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}(),e.create=function(e){const t=new P(e),n={user:null,isAuthenticated:!1,isError:!1,errorMessage:""},o={internalStore:n,client:t};return[cn({render(){return Pn("slot",null,this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated,loginRedirect:this.loginRedirect,getToken:this.getToken}))},async onMounted(){const e=await t.getUser();e||this.disableAutoLogin?(this.internalStore.isAuthenticated=!!e,this.internalStore.user=e):this.loginRedirect({},window.location.href)},data:()=>o,props:{disableAutoLogin:Boolean},methods:{getToken:async e=>t.getAccessToken(e),loginRedirect(e,t){sessionStorage.setItem("crossid.spa-js@returnTo",t),this.client.loginWithRedirect(e)}}}),cn({render(){return Pn("span",null,this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated,isError:this.internalStore.isError,errorMessage:this.internalStore.errorMessage}))},async mounted(){this.loginRedirectCallback()},data:()=>o,methods:{async loginRedirectCallback(){n.errorMessage="",n.isError=!1;try{await this.client.handleRedirectCallback();const e=sessionStorage.getItem("crossid.spa-js@returnTo"),o=await t.getUser();n.user=o||null,n.isAuthenticated=!!o,window.history.replaceState(null,null,e),this.$emit("navigate")}catch(e){n.isError=!0,n.errorMessage=e.message}}}})]},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=crossid-vue.js.map |
@@ -15,3 +15,3 @@ /*! ***************************************************************************** | ||
***************************************************************************** */ | ||
var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function o(e,t,n,o){return new(n||(n=Promise))((function(r,i){function s(e){try{a(o.next(e))}catch(e){i(e)}}function c(e){try{a(o.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,c)}a((o=o.apply(e,t||[])).next())}))}function r(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var i=function(e){function n(t,o){var r=e.call(this,o)||this;return r.error=t,r.error_description=o,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n.create=function(e){return new n(e.error,e.error_description)},n}(Error);function s(e){var t=e.tokenEndpoint,s=e.timeout,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["tokenEndpoint","timeout"]);return o(this,void 0,void 0,(function(){var e,a,u;return r(this,(function(l){switch(l.label){case 0:return e=new FormData,Object.keys(c).forEach((function(t){return e.append(t,c[t])})),[4,(p=t,d={timeout:s,method:"POST",body:e},void 0===d&&(d={}),o(void 0,void 0,void 0,(function(){var e,t,o,i,s;return r(this,(function(r){switch(r.label){case 0:return e=d.timeout,t=void 0===e?5e3:e,o=new AbortController,i=setTimeout((function(){return o.abort()}),t),[4,fetch(p,n(n({},d),{signal:o.signal}))];case 1:return s=r.sent(),clearTimeout(i),[2,s]}}))})))];case 1:return[4,(a=l.sent()).json()];case 2:if(u=l.sent(),200!==a.status)throw i.create(u);return[2,u]}var p,d}))}))}var c="crossid-spa-js|index",a=function(e){return null!==e&&"Object"===(null==e?void 0:e.constructor.name)},u=function(e){return"number"==typeof e},l=function(e){return"string"==typeof e},p=String.fromCharCode(0),d=function(){function e(e,t){void 0===t&&(t={}),this.gopts=t,this.storage=e,t.purgeOnInit&&this.purge(!0)}return e.prototype.set=function(e,t,n){var o=this._key(e),r=this._ttl(null==n?void 0:n.ttl);try{var i=function(e,t){var n;return t&&t>0?((n={})[p]=e,n.ttl=Date.now()+1e3*t,n):e}(t,r);return this.storage.setItem(o,JSON.stringify(i)),!0}catch(e){return!1}},e.prototype.get=function(e,t){var n,o=this._key(e);try{var r=this.storage.getItem(o);if(null===r)return;var i=JSON.parse(r);return a(n=i)&&p in n?function(e,t){return Date.now()-1e3*t>e.ttl}(i,(null==t?void 0:t.ttl)||0)?void this.storage.removeItem(e):i[p]:i}catch(e){return}},e.prototype.remove=function(e){var t=this._key(e);return!!this.storage.getItem(t)&&(this.storage.removeItem(t),!0)},e.prototype.purge=function(e){var t=this;void 0===e&&(e=!1);var n=0;return Object.keys(this.storage).filter((function(e){return e.startsWith(t.gopts.prefix)})).forEach((function(o){var r=t.storage.getItem(o);if(r){var i;try{i=JSON.parse(r)}catch(e){return}(a(i)&&p in i&&Date.now()>i.ttl||e)&&(n++,t.storage.removeItem(o))}})),n},e.prototype._key=function(e){return this.gopts.prefix?""+this.gopts.prefix+e:e},e.prototype._ttl=function(e){return null===e?null:e||this.gopts.ttl||null},e}(),f=function(e){function n(t){var n=e.call(this,sessionStorage,t)||this;if("undefined"==typeof sessionStorage)throw Error("no support for session storage.");return n}return t(n,e),n}(d),h=function(e){function n(t){var n=e.call(this,localStorage,t)||this;if("undefined"==typeof localStorage)throw Error("no support for local storage.");return n}return t(n,e),n}(d),_=function(){function e(){}return e.prototype.getItem=function(e){return e in this?this[e]:null},e.prototype.setItem=function(e,t){void 0===t?this.removeItem(e):this[e]=""+t},e.prototype.removeItem=function(e){this.hasOwnProperty(e)&&delete this[e]},e}(),v=function(e){function n(t){return e.call(this,new _,t)||this}return t(n,e),n}(d),y=function(e){return Array.from(new Set(e))},g=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return y(e.join(" ").trim().split(/\s+/))},m=function(){return e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=Math.floor(86*Math.random()+43),Array.from(window.crypto.getRandomValues(new Uint8Array(t))).map((function(t){return e[t%e.length]})).join("");var e,t},w=function(e){return btoa(e)},b=function(e){return atob(e)},E=function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))},N=function(e){var t={"-":"+",_:"/"};return e.replace(/[-_]/g,(function(e){return t[e]}))},k=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]&&null!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},O=function(e){var t=e.split("."),n=t[0],o=t[1],r=t[2];if(3!==t.length||!n||!o||!r)throw new Error("malformed JWT token.");var i,s=JSON.parse(b(N(o)));if(s.aud)if(l(s.aud))s.aud=[s.aud];else if(i=s.aud,!Array.isArray(i)||!i.every((function(e){return l(e)})))throw new Error("Audience (aud) must be a string or an array of strings");return{header:JSON.parse(b(N(n))),payload:s}},S=function(e){function n(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var r=e.apply(this,n)||this;return r.fields_=t,r}return t(n,e),n.prototype.getMissingFields=function(){return this.fields_},n}(Error),x=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=t.map((function(t){return t(e)})).filter((function(e){return null!==e}));if(o&&o.length)throw new S(o,o.join(","));return null},D=function(e,t){var n=[];return function(o){return t&&t.filter((function(e){return!o.payload[e]})).forEach((function(e){return n.push(e)})),e&&e.filter((function(e){return!o.header[e]})).forEach((function(e){return n.push(e)})),n&&n.length?n.join(",")+" missing":null}},V=function(e){return function(t){return I("Issuer (iss)",e,t.payload.iss)}},R=function(e){return function(t){return I("Issuer (iss) claim",e,t.header.alg)}},j=function(e){return void 0===e&&(e=[]),function(t){return t.payload.aud&&t.payload.aud.length?(n=e,t.payload.aud.every((function(e){return n.includes(e)}))?null:"Audience (aud) claim mismatch: audience ("+t.payload.aud+") must contain only ("+e+")"):"Audience (aud) claim must be a present string";var n}},C=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.exp)return null;if(!u(n.payload.exp))return"Expiration Time (exp) claim must be a present number";var o=A(n.payload.exp,t);return new Date(Date.now())>o?"Expiration Time (exp) claim expired ("+o+")":null}},T=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.nbf)return null;if(!u(n.payload.nbf))return"Not Before (nbf) claim must be a present number";var o=A(n.payload.nbf,-1*t),r=new Date(Date.now());return r<o?"Not Before (nbf) claim cannot be used yet, current time ("+r+") is before ("+o+")":null}},I=function(e,t,n){return t!==n?e+' mismatch: expected "'+t+'" but got "'+n+'"':null},A=function(e,t){void 0===t&&(t=0);var n=new Date(0);return n.setUTCSeconds(e+t),n},$=function(){function e(e){this.opts=e,this.loginStateKey="crossid-spa-js|login",this.logoutStateKey="crossid-spa-js|logout",this.scope=e.scope,this.state=this._stateFactory(this.opts.state_type||"session_storage"),this.cache=this._cacheFactory(this.opts.cache_type||"memory"),this._purgeIndex()}return e.prototype.createRedirectURL=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return[4,this._createAuthorizationData(e)];case 1:return t=n.sent(),[4,this._persistAuthorizationData(t)];case 2:return n.sent(),[2,this._authorizeUrl(t.request)]}}))}))},e.prototype.loginWithRedirect=function(e){return o(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return[4,this.createRedirectURL(e)];case 1:return t=n.sent(),window.location.replace(t),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=new URL(window.location.href)),o(this,void 0,void 0,(function(){var t,n,o,i,c,a,u;return r(this,(function(r){switch(r.label){case 0:if(t=e.searchParams,n=t.get("code"),o=t.get("error"))throw new Error(o);if(!(null==(i=this.state.get(this.loginStateKey))?void 0:i.code_verifier))throw new Error("invalid state, try sign-in again");return[4,s({tokenEndpoint:this.opts.token_endpoint,client_id:this.opts.client_id,code_verifier:i.code_verifier,grant_type:"authorization_code",redirect_uri:i.redirect_uri,code:n})];case 1:return c=r.sent(),(a=O(c.id_token)).payload.__bearer=c.id_token,u=O(c.access_token),this.state.remove(this.loginStateKey),this._assertAccessToken(u,i.audience),this._assertIDToken(a,i.nonce),u.payload._raw=c.access_token,this._cacheTokens(a,u,c.refresh_token),[2,{state:i.state}]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,o,i;return r(this,(function(r){return t=e.audience||this.opts.audience,n=g(this.scope,e.scope),o=this._getTokensKeysFromCache("id_token",t,n),[2,null==(i=this._getNarrowedKey(o))?void 0:i.payload]}))}))},e.prototype.getAccessToken=function(e){var t;return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var n,o,i,s;return r(this,(function(r){return n=e.audience||this.opts.audience,o=g(this.scope,e.scope),i=this._getTokensKeysFromCache("access_token",n,o),s=this._getNarrowedKey(i),[2,null===(t=null==s?void 0:s.payload)||void 0===t?void 0:t._raw]}))}))},e.prototype.createLogoutRedirectURL=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return[4,this._createLogoutData(e)];case 1:return(t=n.sent()).request.id_token_hint&&e.post_logout_redirect_uri?[4,this._persistLogoutData(t)]:(this._removeTokens(t.audience,t.scopes),[2,this._logoutUrl()]);case 2:return n.sent(),[2,this._logoutUrl(t.request)]}}))}))},e.prototype.logoutWithRedirect=function(e){return o(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return[4,this.createLogoutRedirectURL(e)];case 1:return t=n.sent(),window.location.assign(t),[2]}}))}))},e.prototype.handleLogoutRedirectCallback=function(e){return void 0===e&&(e=new URL(window.location.href)),o(this,void 0,void 0,(function(){var t,n,o,i;return r(this,(function(r){if(t=e.searchParams,n=t.get("state"),o=t.get("error"))throw new Error(o);if(!(null==(i=this.state.get(this.logoutStateKey))?void 0:i.state)||i.state!==n)throw new Error("invalid state, try sign-in again");return this._removeTokens(i.audience,i.scopes),this.state.remove(this.logoutStateKey),[2,{state:i.appState}]}))}))},e.prototype._createAuthorizationData=function(e){return o(this,void 0,void 0,(function(){var t,n,i,s,c,a;return r(this,(function(u){switch(u.label){case 0:return t=E(w(m())),n=E(w(m())),i=m(),[4,(p=i,o(void 0,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,window.crypto.subtle.digest({name:"SHA-256"},(new TextEncoder).encode(p))];case 1:return[2,e.sent()]}}))})))];case 1:return s=u.sent(),l=new Uint8Array(s),c=E(w(String.fromCharCode.apply(String,Array.from(l)))),a={audience:e.audience,redirect_uri:e.redirect_uri,response_type:e.response_type,scope:e.scope,state:t,nonce:n,code_challenge:c},[2,{request:this._mergeAuthorizationCodeParams(a),code_verifier:i,appState:e.state}]}var l,p}))}))},e.prototype._persistAuthorizationData=function(e){return o(this,void 0,void 0,(function(){var t,n;return r(this,(function(o){return t=e.request,n={audience:t.audience,redirect_uri:t.redirect_uri,scope:t.scope,nonce:t.nonce,state:e.appState,code_verifier:e.code_verifier},this.state.set(this.loginStateKey,n),[2]}))}))},e.prototype._mergeAuthorizationCodeParams=function(e){return{client_id:this.opts.client_id,audience:e.audience||this.opts.audience,response_type:e.response_type||this.opts.response_type||"code",redirect_uri:e.redirect_uri||this.opts.redirect_uri,nonce:e.nonce,state:e.state,scope:e.scope||this.opts.scope,code_challenge:e.code_challenge,code_challenge_method:"S256"}},e.prototype._createLogoutData=function(e){return o(this,void 0,void 0,(function(){var t,n;return r(this,(function(o){switch(o.label){case 0:return(t={id_token_hint:e.id_token_hint,post_logout_redirect_uri:e.post_logout_redirect_uri}).id_token_hint||null===t.id_token_hint?[3,2]:[4,this.getUser()];case 1:(n=o.sent())&&n.__bearer&&(t.id_token_hint=n.__bearer),o.label=2;case 2:return t.id_token_hint&&(t.state=E(w(m()))),[2,{request:t,audience:e.audience||this.opts.audience,scopes:(e.scope||this.scope).split(" "),appState:e.state}]}}))}))},e.prototype._persistLogoutData=function(e){return o(this,void 0,void 0,(function(){var t;return r(this,(function(n){return t={client_id:this.opts.client_id,audience:e.audience,scopes:e.scopes,post_logout_redirect_uri:e.request.post_logout_redirect_uri,state:e.request.state,appState:e.appState},this.state.set(this.logoutStateKey,t),[2]}))}))},e.prototype._assertAccessToken=function(e,t){x(e,D(["alg"],["iss","sub","aud","exp","iat"]),V(this.opts.issuer),R("RS256"),j(t),C(!0),T(!0))},e.prototype._assertIDToken=function(e,t){var n;return x(e,D(["alg"],["iss","sub","aud","nonce","exp","iat"]),V(this.opts.issuer),(n=t,function(e){return I("Nonce (nonce)",n,e.payload.nonce)}),R("RS256"),j([this.opts.client_id]),C(!0),T(!1),(function(e){return u(e.payload.iat)?null:"Issued At (iat) claim must be a present number"})),null},e.prototype._removeTokens=function(e,t){var n=this,o=this._getTokensKeysFromCache("id_token",e,t),r=this._getTokensKeysFromCache("access_token",e,t),i=this._getTokensKeysFromCache("refresh_token",e,t);o.concat(r).concat(i).forEach((function(e){return n.cache.remove(e)})),this._purgeIndex()},e.prototype._authorizeUrl=function(e){return this.opts.authorization_endpoint+"?"+k(e)},e.prototype._logoutUrl=function(e){var t=this.opts.logout_endpoint;return e&&(t=t+"?"+k(e)),t},e.prototype._stateFactory=function(e){var t={ttl:300};switch(e){case"local_storage":return new h(t);case"session_storage":return new f(t);default:throw new Error('Invalid cache type "'+e+'"')}},e.prototype._cacheFactory=function(e){switch(e){case"memory":return new v;case"local_storage":return new h({purgeOnInit:!0});case"session_storage":return new f({purgeOnInit:!0});default:throw new Error('Invalid cache type "'+e+'"')}},e.prototype._cacheTokens=function(e,t,n){var o=this._ttlFromToken(t);this._cacheToken("access_token",t,this.opts.client_id,t.payload.aud,t.payload.scp,o),this._cacheToken("id_token",e,this.opts.client_id,t.payload.aud,t.payload.scp||[],this._ttlFromToken(e)),n&&this._cacheToken("refresh_token",n,this.opts.client_id,t.payload.aud,t.payload.scp,432e3)},e.prototype._cacheToken=function(e,t,n,o,r,i){var s=this._cacheKey({tokType:e,client_id:n,audience:o,scope:r});this.cache.set(s,t,{ttl:i});var a=[o[0]],u=this.cache.get(c);u||(u={}),a.forEach((function(e){u[e]||(u[e]={});var t=u[e];r.forEach((function(e){t[e]||(t[e]=[]),t[e].push(s)}))})),this.cache.set(c,u)},e.prototype._cacheKey=function(e){var t,n=e.tokType,o=e.client_id,r=e.audience,i=e.scope;return i&&i.length&&(i.sort(),t=i.join("__")),["crossid-spa-js",n,o,r.join("__"),t].join("|")},e.prototype._decodeKey=function(e){var t=e.split("|"),n=t[1],o=t[2],r=t[3];return{tokenType:n,audience:o.split("__"),scope:r.split("__")}},e.prototype._getTokensKeysFromCache=function(e,t,n){var o,r=this,i=(this.cache.get(c)||{})[t[0]];if(!i)return[];for(var s=function(t){return i[t]&&i[t].length?o?void(o=o.filter((function(e){return i[t].includes(e)}))):(o=i[t].filter((function(t){return r._decodeKey(t).tokenType===e})),"continue"):{value:[]}},a=0,u=n;a<u.length;a++){var l=s(u[a]);if("object"==typeof l)return l.value}return o},e.prototype._getNarrowedKey=function(e){for(var t in e){var n=this.cache.get(e[t]);if(n)return n}},e.prototype._ttlFromToken=function(e){return(new Date(1e3*e.payload.exp).getTime()-Date.now())/1e3},e.prototype._purgeIndex=function(){var e=this.cache.get(c);if(e){for(var t=0,n=Object.entries(e);t<n.length;t++){for(var o=n[t],r=o[0],i=o[1],s=function(t,n){for(var o=[],i=0;i<n.length;i++)a.cache.get(n[i])||o.push(i);e[r][t]=n.filter((function(e,t){return-1===o.indexOf(t)})),e[r][t].length||delete e[r][t]},a=this,u=0,l=Object.entries(i);u<l.length;u++){var p=l[u];s(p[0],p[1])}Object.keys(e[r]).length||delete e[r]}this.cache.set(c,e)}},e}();function P(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const F=P("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function U(e){if(X(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=U(ee(o)?z(o):o);if(r)for(const e in r)t[e]=r[e]}return t}if(ne(e))return e}const M=/;(?![^(]*\))/g,K=/:(.+)/;function z(e){const t={};return e.split(M).forEach((e=>{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function L(e){let t="";if(ee(e))t=e;else if(X(e))for(let n=0;n<e.length;n++){const o=L(e[n]);o&&(t+=o+" ")}else if(ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const W="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const q=()=>{},J=/^on[^a-z]/,H=e=>J.test(e),B=Object.assign,G=Object.prototype.hasOwnProperty,Q=(e,t)=>G.call(e,t),X=Array.isArray,Y=e=>"[object Map]"===re(e),Z=e=>"function"==typeof e,ee=e=>"string"==typeof e,te=e=>"symbol"==typeof e,ne=e=>null!==e&&"object"==typeof e,oe=Object.prototype.toString,re=e=>oe.call(e),ie=e=>re(e).slice(8,-1),se=e=>ee(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ce=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),ae=(e,t)=>e!==t&&(e==e||t==t),ue=new WeakMap,le=[];let pe;const de=Symbol("production"!==process.env.NODE_ENV?"iterate":""),fe=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");function he(e,t=W){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!le.includes(n)){ye(n);try{return me.push(ge),ge=!0,le.push(n),pe=n,e()}finally{le.pop(),be(),pe=le[le.length-1]}}};return n.id=ve++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n}function _e(e){e.active&&(ye(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let ve=0;function ye(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ge=!0;const me=[];function we(){me.push(ge),ge=!1}function be(){const e=me.pop();ge=void 0===e||e}function Ee(e,t,n){if(!ge||void 0===pe)return;let o=ue.get(e);o||ue.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Set),r.has(pe)||(r.add(pe),pe.deps.push(r),"production"!==process.env.NODE_ENV&&pe.options.onTrack&&pe.options.onTrack({effect:pe,target:e,type:t,key:n}))}function Ne(e,t,n,o,r,i){const s=ue.get(e);if(!s)return;const c=new Set,a=e=>{e&&e.forEach((e=>{(e!==pe||e.allowRecurse)&&c.add(e)}))};if("clear"===t)s.forEach(a);else if("length"===n&&X(e))s.forEach(((e,t)=>{("length"===t||t>=o)&&a(e)}));else switch(void 0!==n&&a(s.get(n)),t){case"add":X(e)?se(n)&&a(s.get("length")):(a(s.get(de)),Y(e)&&a(s.get(fe)));break;case"delete":X(e)||(a(s.get(de)),Y(e)&&a(s.get(fe)));break;case"set":Y(e)&&a(s.get(de))}c.forEach((s=>{"production"!==process.env.NODE_ENV&&s.options.onTrigger&&s.options.onTrigger({effect:s,target:e,key:n,type:t,newValue:o,oldValue:r,oldTarget:i}),s.options.scheduler?s.options.scheduler(s):s()}))}const ke=P("__proto__,__v_isRef,__isVue"),Oe=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(te)),Se=je(),xe=je(!0),De=je(!0,!0),Ve=Re();function Re(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){const t=yt(this);for(let e=0,n=this.length;e<n;e++)Ee(t,"get",e+"");const o=n.apply(t,e);return-1===o||!1===o?n.apply(t,e.map(yt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){we();const t=n.apply(this,e);return be(),t}})),e}function je(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?ut:at:t?ct:st).get(n))return n;const i=X(n);if(!e&&i&&Q(Ve,o))return Reflect.get(Ve,o,r);const s=Reflect.get(n,o,r);if(te(o)?Oe.has(o):ke(o))return s;if(e||Ee(n,"get",o),t)return s;if(mt(s)){return!i||!se(o)?s.value:s}return ne(s)?e?pt(s):lt(s):s}}function Ce(e=!1){return function(t,n,o,r){let i=t[n];if(!e&&(o=yt(o),i=yt(i),!X(t)&&mt(i)&&!mt(o)))return i.value=o,!0;const s=X(t)&&se(n)?Number(n)<t.length:Q(t,n),c=Reflect.set(t,n,o,r);return t===yt(r)&&(s?ae(o,i)&&Ne(t,"set",n,o,i):Ne(t,"add",n,o)),c}}const Te={get:Se,set:Ce(),deleteProperty:function(e,t){const n=Q(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&Ne(e,"delete",t,void 0,o),r},has:function(e,t){const n=Reflect.has(e,t);return te(t)&&Oe.has(t)||Ee(e,"has",t),n},ownKeys:function(e){return Ee(e,"iterate",X(e)?"length":de),Reflect.ownKeys(e)}},Ie={get:xe,set:(e,t)=>("production"!==process.env.NODE_ENV&&console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},Ae=B({},Ie,{get:De}),$e=e=>ne(e)?lt(e):e,Pe=e=>ne(e)?pt(e):e,Fe=e=>e,Ue=e=>Reflect.getPrototypeOf(e);function Me(e,t,n=!1,o=!1){const r=yt(e=e.__v_raw),i=yt(t);t!==i&&!n&&Ee(r,"get",t),!n&&Ee(r,"get",i);const{has:s}=Ue(r),c=o?Fe:n?Pe:$e;return s.call(r,t)?c(e.get(t)):s.call(r,i)?c(e.get(i)):void(e!==r&&e.get(t))}function Ke(e,t=!1){const n=this.__v_raw,o=yt(n),r=yt(e);return e!==r&&!t&&Ee(o,"has",e),!t&&Ee(o,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function ze(e,t=!1){return e=e.__v_raw,!t&&Ee(yt(e),"iterate",de),Reflect.get(e,"size",e)}function Le(e){e=yt(e);const t=yt(this);return Ue(t).has.call(t,e)||(t.add(e),Ne(t,"add",e,e)),this}function We(e,t){t=yt(t);const n=yt(this),{has:o,get:r}=Ue(n);let i=o.call(n,e);i?"production"!==process.env.NODE_ENV&&it(n,o,e):(e=yt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?ae(t,s)&&Ne(n,"set",e,t,s):Ne(n,"add",e,t),this}function qe(e){const t=yt(this),{has:n,get:o}=Ue(t);let r=n.call(t,e);r?"production"!==process.env.NODE_ENV&&it(t,n,e):(e=yt(e),r=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return r&&Ne(t,"delete",e,void 0,i),s}function Je(){const e=yt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?Y(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Ne(e,"clear",void 0,void 0,n),o}function He(e,t){return function(n,o){const r=this,i=r.__v_raw,s=yt(i),c=t?Fe:e?Pe:$e;return!e&&Ee(s,"iterate",de),i.forEach(((e,t)=>n.call(o,c(e),c(t),r)))}}function Be(e,t,n){return function(...o){const r=this.__v_raw,i=yt(r),s=Y(i),c="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,u=r[e](...o),l=n?Fe:t?Pe:$e;return!t&&Ee(i,"iterate",a?fe:de),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function Ge(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${ce(e)} operation ${n}failed: target is readonly.`,yt(this))}return"delete"!==e&&this}}function Qe(){const e={get(e){return Me(this,e)},get size(){return ze(this)},has:Ke,add:Le,set:We,delete:qe,clear:Je,forEach:He(!1,!1)},t={get(e){return Me(this,e,!1,!0)},get size(){return ze(this)},has:Ke,add:Le,set:We,delete:qe,clear:Je,forEach:He(!1,!0)},n={get(e){return Me(this,e,!0)},get size(){return ze(this,!0)},has(e){return Ke.call(this,e,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:He(!0,!1)},o={get(e){return Me(this,e,!0,!0)},get size(){return ze(this,!0)},has(e){return Ke.call(this,e,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:He(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Be(r,!1,!1),n[r]=Be(r,!0,!1),t[r]=Be(r,!1,!0),o[r]=Be(r,!0,!0)})),[e,n,t,o]}const[Xe,Ye,Ze,et]=Qe();function tt(e,t){const n=t?e?et:Ze:e?Ye:Xe;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Q(n,o)&&o in t?n:t,o,r)}const nt={get:tt(!1,!1)},ot={get:tt(!0,!1)},rt={get:tt(!0,!0)};function it(e,t,n){const o=yt(n);if(o!==n&&t.call(e,o)){const t=ie(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const st=new WeakMap,ct=new WeakMap,at=new WeakMap,ut=new WeakMap;function lt(e){return e&&e.__v_isReadonly?e:ft(e,!1,Te,nt,st)}function pt(e){return ft(e,!0,Ie,ot,at)}function dt(e){return ft(e,!0,Ae,rt,ut)}function ft(e,t,n,o,r){if(!ne(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(ie(c));var c;if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function ht(e){return _t(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function _t(e){return!(!e||!e.__v_isReadonly)}function vt(e){return ht(e)||_t(e)}function yt(e){return e&&yt(e.__v_raw)||e}function gt(e){return((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}function mt(e){return Boolean(e&&!0===e.__v_isRef)}const wt={get:(e,t,n)=>{return mt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return mt(r)&&!mt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};const bt=[];function Et(e,...t){we();const n=bt.length?bt[bt.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=bt[bt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)St(o,n,11,[e+t.join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${Cn(n,e.type)}>`)).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,r=` at <${Cn(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...Nt(e.props),i]:[r+i]}(e))})),t}(r)),console.warn(...n)}be()}function Nt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...kt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function kt(e,t,n){return ee(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:mt(t)?(t=kt(e,yt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=yt(t),n?t:[`${e}=`,t])}const Ot={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next"};function St(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Dt(e,t,n)}return r}function xt(e,t,n,o){if(Z(e)){const i=St(e,t,n,o);return i&&(ne(r=i)&&Z(r.then)&&Z(r.catch))&&i.catch((e=>{Dt(e,t,n)})),i}var r;const i=[];for(let r=0;r<e.length;r++)i.push(xt(e[r],t,n,o));return i}function Dt(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,i="production"!==process.env.NODE_ENV?Ot[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void St(s,null,10,[e,r,i])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const i=Ot[t];if(n&&(r=n,bt.push(r)),Et("Unhandled error"+(i?` during execution of ${i}`:"")),n&&bt.pop(),o)throw e;console.error(e)}else console.error(e);var r}(e,n,r,o)}let Vt=!1,Rt=!1;const jt=[];let Ct=0;const Tt=[];let It=null,At=0;const $t=[];let Pt=null,Ft=0;const Ut=Promise.resolve();let Mt=null,Kt=null;function zt(e){const t=Mt||Ut;return e?t.then(this?e.bind(this):e):t}function Lt(e){if(!(jt.length&&jt.includes(e,Vt&&e.allowRecurse?Ct+1:Ct)||e===Kt)){const t=function(e){let t=Ct+1,n=jt.length;const o=Bt(e);for(;t<n;){const e=t+n>>>1;Bt(jt[e])<o?t=e+1:n=e}return t}(e);t>-1?jt.splice(t,0,e):jt.push(e),Wt()}}function Wt(){Vt||Rt||(Rt=!0,Mt=Ut.then(Gt))}function qt(e,t,n,o){X(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),Wt()}function Jt(e){qt(e,Pt,$t,Ft)}function Ht(e,t=null){if(Tt.length){for(Kt=t,It=[...new Set(Tt)],Tt.length=0,"production"!==process.env.NODE_ENV&&(e=e||new Map),At=0;At<It.length;At++)"production"!==process.env.NODE_ENV&&Qt(e,It[At])||It[At]();It=null,At=0,Kt=null,Ht(e,t)}}const Bt=e=>null==e.id?1/0:e.id;function Gt(e){Rt=!1,Vt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ht(e),jt.sort(((e,t)=>Bt(e)-Bt(t)));try{for(Ct=0;Ct<jt.length;Ct++){const t=jt[Ct];if(t&&!1!==t.active){if("production"!==process.env.NODE_ENV&&Qt(e,t))continue;St(t,null,14)}}}finally{Ct=0,jt.length=0,function(e){if($t.length){const t=[...new Set($t)];if($t.length=0,Pt)return void Pt.push(...t);for(Pt=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Pt.sort(((e,t)=>Bt(e)-Bt(t))),Ft=0;Ft<Pt.length;Ft++)"production"!==process.env.NODE_ENV&&Qt(e,Pt[Ft])||Pt[Ft]();Pt=null,Ft=0}}(e),Vt=!1,Mt=null,(jt.length||Tt.length||$t.length)&&Gt(e)}}function Qt(e,t){if(e.has(t)){const n=e.get(t);if(n>100){const e=t.ownerInstance,n=e&&jn(e.type);return Et(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}else e.set(t,1)}const Xt=new Set;if("production"!==process.env.NODE_ENV){("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).__VUE_HMR_RUNTIME__={createRecord:Zt((function(e,t){t||(Et("HMR API usage is out of date.\nPlease upgrade vue-loader/vite/rollup-plugin-vue or other relevant dependency that handles Vue SFC compilation."),t={});if(Yt.has(e))return!1;return Yt.set(e,{component:Tn(t)?t.__vccOpts:t,instances:new Set}),!0})),rerender:Zt((function(e,t){const n=Yt.get(e);if(!n)return;t&&(n.component.render=t);Array.from(n.instances).forEach((e=>{t&&(e.render=t),e.renderCache=[],e.update()}))})),reload:Zt((function(e,t){const n=Yt.get(e);if(!n)return;const{component:o,instances:r}=n;if(!Xt.has(o)){t=Tn(t)?t.__vccOpts:t,B(o,t);for(const e in o)"__file"===e||e in t||delete o[e];Xt.add(o),Jt((()=>{Xt.delete(o)}))}Array.from(r).forEach((e=>{e.parent?Lt(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}))}))}}const Yt=new Map;function Zt(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}const en={};function tn(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=W,c=Vn){"production"===process.env.NODE_ENV||t||(void 0!==n&&Et('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Et('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const a=e=>{Et("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")};let u,l,p=!1,d=!1;if(mt(e)?(u=()=>e.value,p=!!e._shallow):ht(e)?(u=()=>e,o=!0):X(e)?(d=!0,p=e.some(ht),u=()=>e.map((e=>mt(e)?e.value:ht(e)?on(e):Z(e)?St(e,c,2):void("production"!==process.env.NODE_ENV&&a(e))))):Z(e)?u=t?()=>St(e,c,2):()=>{if(!c||!c.isUnmounted)return l&&l(),xt(e,c,3,[f])}:(u=q,"production"!==process.env.NODE_ENV&&a(e)),t&&o){const e=u;u=()=>on(e())}let f=e=>{l=y.options.onStop=()=>{St(e,c,4)}},h=d?[]:en;const _=()=>{if(y.active)if(t){const e=y();(o||p||(d?e.some(((e,t)=>ae(e,h[t]))):ae(e,h)))&&(l&&l(),xt(t,c,3,[e,h===en?void 0:h,f]),h=e)}else y()};let v;_.allowRecurse=!!t,v="sync"===r?_:"post"===r?()=>dn(_,c&&c.suspense):()=>{!c||c.isMounted?function(e){qt(e,It,Tt,At)}(_):_()};const y=he(u,{lazy:!0,onTrack:i,onTrigger:s,scheduler:v});return function(e,t=Vn){t&&(t.effects||(t.effects=[])).push(e)}(y,c),t?n?_():h=y():"post"===r?dn(y,c&&c.suspense):y(),()=>{_e(y),c&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(c.effects,y)}}function nn(e,t,n){const o=this.proxy,r=ee(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(o,e):()=>o[e]:e.bind(o,o);let i;return Z(t)?i=t:(i=t.handler,n=t),tn(r,i.bind(o),n,this)}function on(e,t=new Set){if(!ne(e)||t.has(e)||e.__v_skip)return e;if(t.add(e),mt(e))on(e.value,t);else if(X(e))for(let n=0;n<e.length;n++)on(e[n],t);else if("[object Set]"===re(e)||Y(e))e.forEach((e=>{on(e,t)}));else if((e=>"[object Object]"===re(e))(e))for(const n in e)on(e[n],t);return e}function rn(e){return Z(e)?{setup:e,name:e.name}:e}function sn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&sn(e,i,n,!0),r&&r.forEach((t=>sn(e,t,n,!0)));for(const r in t)if(o&&"expose"===r)"production"!==process.env.NODE_ENV&&Et('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=cn[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const cn={data:an,props:pn,emits:pn,methods:pn,computed:pn,beforeCreate:ln,created:ln,beforeMount:ln,mounted:ln,beforeUpdate:ln,updated:ln,beforeDestroy:ln,destroyed:ln,activated:ln,deactivated:ln,errorCaptured:ln,serverPrefetch:ln,components:pn,directives:pn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=B(Object.create(null),e);for(const o in t)n[o]=ln(e[o],t[o]);return n},provide:an,inject:function(e,t){return pn(un(e),un(t))}};function an(e,t){return t?e?function(){return B(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function un(e){if(X(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ln(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?B(B(Object.create(null),e),t):t}const dn=function(e,t){t&&t.pendingBranch?X(e)?t.effects.push(...e):t.effects.push(e):Jt(e)},fn=Symbol(),hn=Symbol("production"!==process.env.NODE_ENV?"Fragment":void 0),_n=Symbol("production"!==process.env.NODE_ENV?"Text":void 0),vn=Symbol("production"!==process.env.NODE_ENV?"Comment":void 0);Symbol("production"!==process.env.NODE_ENV?"Static":void 0);function yn(e){return!!e&&!0===e.__v_isVNode}const gn=({key:e})=>null!=e?e:null,mn=({ref:e})=>null!=e?ee(e)||mt(e)||Z(e)?{i:null,r:e}:e:null,wn="production"!==process.env.NODE_ENV?(...e)=>bn(...e):bn;function bn(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==fn||("production"===process.env.NODE_ENV||e||Et(`Invalid vnode type when creating vnode: ${e}.`),e=vn),yn(e)){const o=En(e,t,!0);return n&&On(o,n),o}if(Tn(e)&&(e=e.__vccOpts),t){(vt(t)||"__vInternal"in t)&&(t=B({},t));let{class:e,style:n}=t;e&&!ee(e)&&(t.class=L(e)),ne(n)&&(vt(n)&&!X(n)&&(n=B({},n)),t.style=U(n))}const s=ee(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ne(e)?4:Z(e)?2:0;"production"!==process.env.NODE_ENV&&4&s&&vt(e)&&Et("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=yt(e));const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gn(t),ref:t&&mn(t),scopeId:null,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return"production"!==process.env.NODE_ENV&&c.key!=c.key&&Et("VNode created with invalid key (NaN). VNode type:",c.type),On(c,n),128&s&&e.normalize(c),c}function En(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,c=t?function(...e){const t=B({},e[0]);for(let n=1;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=L([t.class,o.class]));else if("style"===e)t.style=U([t.style,o.style]);else if(H(e)){const n=t[e],r=o[e];n!==r&&(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&gn(c),ref:t&&t.ref?n&&r?X(r)?r.concat(mn(t)):[r,mn(t)]:mn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&X(s)?s.map(Nn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,staticCache:e.staticCache,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==hn?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&En(e.ssContent),ssFallback:e.ssFallback&&En(e.ssFallback),el:e.el,anchor:e.anchor}}function Nn(e){const t=En(e);return X(e.children)&&(t.children=e.children.map(Nn)),t}function kn(e=" ",t=0){return wn(_n,null,e,t)}function On(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(X(t))n=16;else if("object"==typeof t){if(1&o||64&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),On(e,n()),n._c&&(n._d=!0)))}{n=32;const e=t._;e||"__vInternal"in t||(t._ctx=null)}}else Z(t)?(t={default:t,_ctx:null},n=32):(t=String(t),64&o?(n=16,t=[kn(t)]):n=8);e.children=t,e.shapeFlag|=n}const Sn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ht(t=gt(e.exposed))?t:new Proxy(t,wt),{get:(t,n)=>n in t?t[n]:n in xn?xn[n](e):void 0}));var t}(e)||e.proxy:Sn(e.parent):null,xn=B(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?dt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?dt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?dt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?dt(e.refs):e.refs,$parent:e=>Sn(e.parent),$root:e=>Sn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let a;return c?a=c:r.length||n||o?(a={},r.length&&r.forEach((e=>sn(a,e,s,!0))),sn(a,t,s)):a=t,i.set(t,a),a}(e):e.type,$forceUpdate:e=>()=>Lt(e.update),$nextTick:e=>zt.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?nn.bind(e):q}),Dn={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:c,appContext:a}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;if("production"!==process.env.NODE_ENV&&o!==W&&o.__isScriptSetup&&Q(o,t))return o[t];let u;if("$"!==t[0]){const c=s[t];if(void 0!==c)switch(c){case 0:return o[t];case 1:return r[t];case 3:return n[t];case 2:return i[t]}else{if(o!==W&&Q(o,t))return s[t]=0,o[t];if(r!==W&&Q(r,t))return s[t]=1,r[t];if((u=e.propsOptions[0])&&Q(u,t))return s[t]=2,i[t];if(n!==W&&Q(n,t))return s[t]=3,n[t];__VUE_OPTIONS_API__,s[t]=4}}const l=xn[t];let p,d;return l?("$attrs"===t&&(Ee(e,"get",t),process.env.NODE_ENV),l(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==W&&Q(n,t)?(s[t]=3,n[t]):(d=a.config.globalProperties,Q(d,t)?d[t]:void process.env.NODE_ENV)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;if(r!==W&&Q(r,t))r[t]=n;else if(o!==W&&Q(o,t))o[t]=n;else if(Q(e.props,t))return"production"!==process.env.NODE_ENV&&Et(`Attempting to mutate prop "${t}". Props are readonly.`,e),!1;return"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Et(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`,e),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let c;return void 0!==n[s]||e!==W&&Q(e,s)||t!==W&&Q(t,s)||(c=i[0])&&Q(c,s)||Q(o,s)||Q(xn,s)||Q(r.config.globalProperties,s)}};"production"!==process.env.NODE_ENV&&(Dn.ownKeys=e=>(Et("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e))),B({},Dn,{get(e,t){if(t!==Symbol.unscopables)return Dn.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!F(t);return"production"!==process.env.NODE_ENV&&!n&&Dn.has(e,t)&&Et(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});let Vn=null;const Rn=/(?:^|[-_])(\w)/g;function jn(e){return Z(e)&&e.displayName||e.name}function Cn(e,t,n=!1){let o=jn(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?o.replace(Rn,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}function Tn(e){return Z(e)&&"__vccOpts"in e}function In(e,t,n){const o=arguments.length;return 2===o?ne(t)&&!X(t)?yn(t)?wn(e,null,[t]):wn(e,t):wn(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&yn(n)&&(n=[n]),wn(e,t,n))}function An(e){const t=new $(e),n={user:null,isAuthenticated:!1},o={internalStore:n,client:t};return[rn({render(){return In("slot",null,this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated,loginRedirect:this.loginRedirect,getToken:this.getToken}))},async onMounted(){const e=await t.getUser();e||this.disableAutoLogin?(this.internalStore.isAuthenticated=!!e,this.internalStore.user=e):this.loginRedirect({},window.location.href)},data:()=>o,props:{disableAutoLogin:Boolean},methods:{getToken:async e=>t.getAccessToken(e),loginRedirect(e,t){sessionStorage.setItem("crossid.spa-js@returnTo",t),this.client.loginWithRedirect(e)}}}),rn({render(){return In("span",null,this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated}))},async mounted(){this.loginRedirectCallback()},data:()=>o,methods:{async loginRedirectCallback(){await this.client.handleRedirectCallback();const e=sessionStorage.getItem("crossid.spa-js@returnTo"),o=await t.getUser();n.user=o||null,n.isAuthenticated=!!o,window.history.replaceState(null,null,e),this.$emit("navigate")}}})]}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]),Symbol("production"!==process.env.NODE_ENV?"ssrContext":""),"production"!==process.env.NODE_ENV&&function(){if("production"===process.env.NODE_ENV||"undefined"==typeof window)return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},r={header:t=>ne(t)?t.__isVue?["div",e,"VueInstance"]:mt(t)?["div",{},["span",e,l(t)],"<",c(t.value),">"]:ht(t)?["div",{},["span",e,"Reactive"],"<",c(t),">"+(_t(t)?" (readonly)":"")]:_t(t)?["div",{},["span",e,"Readonly"],"<",c(t),">"]:null:null,hasBody:e=>e&&e.__isVue,body(e){if(e&&e.__isVue)return["div",{},...i(e.$)]}};function i(e){const t=[];e.type.props&&e.props&&t.push(s("props",yt(e.props))),e.setupState!==W&&t.push(s("setup",e.setupState)),e.data!==W&&t.push(s("data",yt(e.data)));const n=a(e,"computed");n&&t.push(s("computed",n));const r=a(e,"inject");return r&&t.push(s("injected",r)),t.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:e}]]),t}function s(e,t){return t=B({},t),Object.keys(t).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},e],["div",{style:"padding-left:1.25em"},...Object.keys(t).map((e=>["div",{},["span",o,e+": "],c(t[e],!1)]))]]:["span",{}]}function c(e,r=!0){return"number"==typeof e?["span",t,e]:"string"==typeof e?["span",n,JSON.stringify(e)]:"boolean"==typeof e?["span",o,e]:ne(e)?["object",{object:r?yt(e):e}]:["span",n,String(e)]}function a(e,t){const n=e.type;if(Z(n))return;const o={};for(const r in e.ctx)u(n,r,t)&&(o[r]=e.ctx[r]);return o}function u(e,t,n){const o=e[n];return!!(X(o)&&o.includes(t)||ne(o)&&t in o)||!(!e.extends||!u(e.extends,t,n))||!(!e.mixins||!e.mixins.some((e=>u(e,t,n))))||void 0}function l(e){return e._shallow?"ShallowRef":e.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}();export{An as create}; | ||
var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function o(e,t,n,o){return new(n||(n=Promise))((function(r,i){function s(e){try{a(o.next(e))}catch(e){i(e)}}function c(e){try{a(o.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,c)}a((o=o.apply(e,t||[])).next())}))}function r(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var i=function(e){function n(t,o){var r=e.call(this,o)||this;return r.error=t,r.error_description=o,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n.create=function(e){return new n(e.error,e.error_description)},n}(Error);function s(e){var t=e.tokenEndpoint,s=e.timeout,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["tokenEndpoint","timeout"]);return o(this,void 0,void 0,(function(){var e,a,u;return r(this,(function(l){switch(l.label){case 0:return e=new FormData,Object.keys(c).forEach((function(t){return e.append(t,c[t])})),[4,(p=t,d={timeout:s,method:"POST",body:e},void 0===d&&(d={}),o(void 0,void 0,void 0,(function(){var e,t,o,i,s;return r(this,(function(r){switch(r.label){case 0:return e=d.timeout,t=void 0===e?5e3:e,o=new AbortController,i=setTimeout((function(){return o.abort()}),t),[4,fetch(p,n(n({},d),{signal:o.signal}))];case 1:return s=r.sent(),clearTimeout(i),[2,s]}}))})))];case 1:return[4,(a=l.sent()).json()];case 2:if(u=l.sent(),200!==a.status)throw i.create(u);return[2,u]}var p,d}))}))}var c="crossid-spa-js|index",a=function(e){return null!==e&&"Object"===(null==e?void 0:e.constructor.name)},u=function(e){return"number"==typeof e},l=function(e){return"string"==typeof e},p=String.fromCharCode(0),d=function(){function e(e,t){void 0===t&&(t={}),this.gopts=t,this.storage=e,t.purgeOnInit&&this.purge(!0)}return e.prototype.set=function(e,t,n){var o=this._key(e),r=this._ttl(null==n?void 0:n.ttl);try{var i=function(e,t){var n;return t&&t>0?((n={})[p]=e,n.ttl=Date.now()+1e3*t,n):e}(t,r);return this.storage.setItem(o,JSON.stringify(i)),!0}catch(e){return!1}},e.prototype.get=function(e,t){var n,o=this._key(e);try{var r=this.storage.getItem(o);if(null===r)return;var i=JSON.parse(r);return a(n=i)&&p in n?function(e,t){return Date.now()-1e3*t>e.ttl}(i,(null==t?void 0:t.ttl)||0)?void this.storage.removeItem(e):i[p]:i}catch(e){return}},e.prototype.remove=function(e){var t=this._key(e);return!!this.storage.getItem(t)&&(this.storage.removeItem(t),!0)},e.prototype.purge=function(e){var t=this;void 0===e&&(e=!1);var n=0;return Object.keys(this.storage).filter((function(e){return e.startsWith(t.gopts.prefix)})).forEach((function(o){var r=t.storage.getItem(o);if(r){var i;try{i=JSON.parse(r)}catch(e){return}(a(i)&&p in i&&Date.now()>i.ttl||e)&&(n++,t.storage.removeItem(o))}})),n},e.prototype._key=function(e){return this.gopts.prefix?""+this.gopts.prefix+e:e},e.prototype._ttl=function(e){return null===e?null:e||this.gopts.ttl||null},e}(),f=function(e){function n(t){var n=e.call(this,sessionStorage,t)||this;if("undefined"==typeof sessionStorage)throw Error("no support for session storage.");return n}return t(n,e),n}(d),h=function(e){function n(t){var n=e.call(this,localStorage,t)||this;if("undefined"==typeof localStorage)throw Error("no support for local storage.");return n}return t(n,e),n}(d),_=function(){function e(){}return e.prototype.getItem=function(e){return e in this?this[e]:null},e.prototype.setItem=function(e,t){void 0===t?this.removeItem(e):this[e]=""+t},e.prototype.removeItem=function(e){this.hasOwnProperty(e)&&delete this[e]},e}(),v=function(e){function n(t){return e.call(this,new _,t)||this}return t(n,e),n}(d),g=function(e){return Array.from(new Set(e))},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(e.join(" ").trim().split(/\s+/))},m=function(){return e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=Math.floor(86*Math.random()+43),Array.from(window.crypto.getRandomValues(new Uint8Array(t))).map((function(t){return e[t%e.length]})).join("");var e,t},w=function(e){return btoa(e)},b=function(e){return atob(e)},E=function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))},N=function(e){var t={"-":"+",_:"/"};return e.replace(/[-_]/g,(function(e){return t[e]}))},k=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]&&null!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},O=function(e){var t=e.split("."),n=t[0],o=t[1],r=t[2];if(3!==t.length||!n||!o||!r)throw new Error("malformed JWT token.");var i,s=JSON.parse(b(N(o)));if(s.aud)if(l(s.aud))s.aud=[s.aud];else if(i=s.aud,!Array.isArray(i)||!i.every((function(e){return l(e)})))throw new Error("Audience (aud) must be a string or an array of strings");return{header:JSON.parse(b(N(n))),payload:s}},S=function(e){function n(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var r=e.apply(this,n)||this;return r.fields_=t,r}return t(n,e),n.prototype.getMissingFields=function(){return this.fields_},n}(Error),x=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=t.map((function(t){return t(e)})).filter((function(e){return null!==e}));if(o&&o.length)throw new S(o,o.join(","));return null},D=function(e,t){var n=[];return function(o){return t&&t.filter((function(e){return!o.payload[e]})).forEach((function(e){return n.push(e)})),e&&e.filter((function(e){return!o.header[e]})).forEach((function(e){return n.push(e)})),n&&n.length?n.join(",")+" missing":null}},V=function(e){return function(t){return I("Issuer (iss)",e,t.payload.iss)}},R=function(e){return function(t){return I("Issuer (iss) claim",e,t.header.alg)}},j=function(e){return void 0===e&&(e=[]),function(t){return t.payload.aud&&t.payload.aud.length?(n=e,t.payload.aud.every((function(e){return n.includes(e)}))?null:"Audience (aud) claim mismatch: audience ("+t.payload.aud+") must contain only ("+e+")"):"Audience (aud) claim must be a present string";var n}},C=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.exp)return null;if(!u(n.payload.exp))return"Expiration Time (exp) claim must be a present number";var o=A(n.payload.exp,t);return new Date(Date.now())>o?"Expiration Time (exp) claim expired ("+o+")":null}},T=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.nbf)return null;if(!u(n.payload.nbf))return"Not Before (nbf) claim must be a present number";var o=A(n.payload.nbf,-1*t),r=new Date(Date.now());return r<o?"Not Before (nbf) claim cannot be used yet, current time ("+r+") is before ("+o+")":null}},I=function(e,t,n){return t!==n?e+' mismatch: expected "'+t+'" but got "'+n+'"':null},A=function(e,t){void 0===t&&(t=0);var n=new Date(0);return n.setUTCSeconds(e+t),n},$=function(){function e(e){this.opts=e,this.loginStateKey="crossid-spa-js|login",this.logoutStateKey="crossid-spa-js|logout",this.scope=e.scope,this.state=this._stateFactory(this.opts.state_type||"session_storage"),this.cache=this._cacheFactory(this.opts.cache_type||"memory"),this._purgeIndex()}return e.prototype.createRedirectURL=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return[4,this._createAuthorizationData(e)];case 1:return t=n.sent(),[4,this._persistAuthorizationData(t)];case 2:return n.sent(),[2,this._authorizeUrl(t.request)]}}))}))},e.prototype.loginWithRedirect=function(e){return o(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return[4,this.createRedirectURL(e)];case 1:return t=n.sent(),window.location.replace(t),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=new URL(window.location.href)),o(this,void 0,void 0,(function(){var t,n,o,i,c,a,u;return r(this,(function(r){switch(r.label){case 0:if(t=e.searchParams,n=t.get("code"),o=t.get("error"))throw new Error(o);if(!(null==(i=this.state.get(this.loginStateKey))?void 0:i.code_verifier))throw new Error("invalid state, try sign-in again");return[4,s({tokenEndpoint:this.opts.token_endpoint,client_id:this.opts.client_id,code_verifier:i.code_verifier,grant_type:"authorization_code",redirect_uri:i.redirect_uri,code:n})];case 1:return c=r.sent(),(a=O(c.id_token)).payload.__bearer=c.id_token,u=O(c.access_token),this.state.remove(this.loginStateKey),this._assertAccessToken(u,i.audience),this._assertIDToken(a,i.nonce),u.payload._raw=c.access_token,this._cacheTokens(a,u,c.refresh_token),[2,{state:i.state}]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,o,i;return r(this,(function(r){return t=e.audience||this.opts.audience,n=y(this.scope,e.scope),o=this._getTokensKeysFromCache("id_token",t,n),[2,null==(i=this._getNarrowedKey(o))?void 0:i.payload]}))}))},e.prototype.getAccessToken=function(e){var t;return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var n,o,i,s;return r(this,(function(r){return n=e.audience||this.opts.audience,o=y(this.scope,e.scope),i=this._getTokensKeysFromCache("access_token",n,o),s=this._getNarrowedKey(i),[2,null===(t=null==s?void 0:s.payload)||void 0===t?void 0:t._raw]}))}))},e.prototype.createLogoutRedirectURL=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return[4,this._createLogoutData(e)];case 1:return(t=n.sent()).request.id_token_hint&&e.post_logout_redirect_uri?[4,this._persistLogoutData(t)]:(this._removeTokens(t.audience,t.scopes),[2,this._logoutUrl()]);case 2:return n.sent(),[2,this._logoutUrl(t.request)]}}))}))},e.prototype.logoutWithRedirect=function(e){return o(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return[4,this.createLogoutRedirectURL(e)];case 1:return t=n.sent(),window.location.assign(t),[2]}}))}))},e.prototype.handleLogoutRedirectCallback=function(e){return void 0===e&&(e=new URL(window.location.href)),o(this,void 0,void 0,(function(){var t,n,o,i;return r(this,(function(r){if(t=e.searchParams,n=t.get("state"),o=t.get("error"))throw new Error(o);if(!(null==(i=this.state.get(this.logoutStateKey))?void 0:i.state)||i.state!==n)throw new Error("invalid state, try sign-in again");return this._removeTokens(i.audience,i.scopes),this.state.remove(this.logoutStateKey),[2,{state:i.appState}]}))}))},e.prototype._createAuthorizationData=function(e){return o(this,void 0,void 0,(function(){var t,n,i,s,c,a;return r(this,(function(u){switch(u.label){case 0:return t=E(w(m())),n=E(w(m())),i=m(),[4,(p=i,o(void 0,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,window.crypto.subtle.digest({name:"SHA-256"},(new TextEncoder).encode(p))];case 1:return[2,e.sent()]}}))})))];case 1:return s=u.sent(),l=new Uint8Array(s),c=E(w(String.fromCharCode.apply(String,Array.from(l)))),a={audience:e.audience,redirect_uri:e.redirect_uri,response_type:e.response_type,scope:e.scope,state:t,nonce:n,code_challenge:c},[2,{request:this._mergeAuthorizationCodeParams(a),code_verifier:i,appState:e.state}]}var l,p}))}))},e.prototype._persistAuthorizationData=function(e){return o(this,void 0,void 0,(function(){var t,n;return r(this,(function(o){return t=e.request,n={audience:t.audience,redirect_uri:t.redirect_uri,scope:t.scope,nonce:t.nonce,state:e.appState,code_verifier:e.code_verifier},this.state.set(this.loginStateKey,n),[2]}))}))},e.prototype._mergeAuthorizationCodeParams=function(e){return{client_id:this.opts.client_id,audience:e.audience||this.opts.audience,response_type:e.response_type||this.opts.response_type||"code",redirect_uri:e.redirect_uri||this.opts.redirect_uri,nonce:e.nonce,state:e.state,scope:e.scope||this.opts.scope,code_challenge:e.code_challenge,code_challenge_method:"S256"}},e.prototype._createLogoutData=function(e){return o(this,void 0,void 0,(function(){var t,n;return r(this,(function(o){switch(o.label){case 0:return(t={id_token_hint:e.id_token_hint,post_logout_redirect_uri:e.post_logout_redirect_uri}).id_token_hint||null===t.id_token_hint?[3,2]:[4,this.getUser()];case 1:(n=o.sent())&&n.__bearer&&(t.id_token_hint=n.__bearer),o.label=2;case 2:return t.id_token_hint&&(t.state=E(w(m()))),[2,{request:t,audience:e.audience||this.opts.audience,scopes:(e.scope||this.scope).split(" "),appState:e.state}]}}))}))},e.prototype._persistLogoutData=function(e){return o(this,void 0,void 0,(function(){var t;return r(this,(function(n){return t={client_id:this.opts.client_id,audience:e.audience,scopes:e.scopes,post_logout_redirect_uri:e.request.post_logout_redirect_uri,state:e.request.state,appState:e.appState},this.state.set(this.logoutStateKey,t),[2]}))}))},e.prototype._assertAccessToken=function(e,t){x(e,D(["alg"],["iss","sub","aud","exp","iat"]),V(this.opts.issuer),R("RS256"),j(t),C(!0),T(!0))},e.prototype._assertIDToken=function(e,t){var n;return x(e,D(["alg"],["iss","sub","aud","nonce","exp","iat"]),V(this.opts.issuer),(n=t,function(e){return I("Nonce (nonce)",n,e.payload.nonce)}),R("RS256"),j([this.opts.client_id]),C(!0),T(!1),(function(e){return u(e.payload.iat)?null:"Issued At (iat) claim must be a present number"})),null},e.prototype._removeTokens=function(e,t){var n=this,o=this._getTokensKeysFromCache("id_token",e,t),r=this._getTokensKeysFromCache("access_token",e,t),i=this._getTokensKeysFromCache("refresh_token",e,t);o.concat(r).concat(i).forEach((function(e){return n.cache.remove(e)})),this._purgeIndex()},e.prototype._authorizeUrl=function(e){return this.opts.authorization_endpoint+"?"+k(e)},e.prototype._logoutUrl=function(e){var t=this.opts.logout_endpoint;return e&&(t=t+"?"+k(e)),t},e.prototype._stateFactory=function(e){var t={ttl:300};switch(e){case"local_storage":return new h(t);case"session_storage":return new f(t);default:throw new Error('Invalid cache type "'+e+'"')}},e.prototype._cacheFactory=function(e){switch(e){case"memory":return new v;case"local_storage":return new h({purgeOnInit:!0});case"session_storage":return new f({purgeOnInit:!0});default:throw new Error('Invalid cache type "'+e+'"')}},e.prototype._cacheTokens=function(e,t,n){var o=this._ttlFromToken(t);this._cacheToken("access_token",t,this.opts.client_id,t.payload.aud,t.payload.scp,o),this._cacheToken("id_token",e,this.opts.client_id,t.payload.aud,t.payload.scp||[],this._ttlFromToken(e)),n&&this._cacheToken("refresh_token",n,this.opts.client_id,t.payload.aud,t.payload.scp,432e3)},e.prototype._cacheToken=function(e,t,n,o,r,i){var s=this._cacheKey({tokType:e,client_id:n,audience:o,scope:r});this.cache.set(s,t,{ttl:i});var a=[o[0]],u=this.cache.get(c);u||(u={}),a.forEach((function(e){u[e]||(u[e]={});var t=u[e];r.forEach((function(e){t[e]||(t[e]=[]),t[e].push(s)}))})),this.cache.set(c,u)},e.prototype._cacheKey=function(e){var t,n=e.tokType,o=e.client_id,r=e.audience,i=e.scope;return i&&i.length&&(i.sort(),t=i.join("__")),["crossid-spa-js",n,o,r.join("__"),t].join("|")},e.prototype._decodeKey=function(e){var t=e.split("|"),n=t[1],o=t[2],r=t[3];return{tokenType:n,audience:o.split("__"),scope:r.split("__")}},e.prototype._getTokensKeysFromCache=function(e,t,n){var o,r=this,i=(this.cache.get(c)||{})[t[0]];if(!i)return[];for(var s=function(t){return i[t]&&i[t].length?o?void(o=o.filter((function(e){return i[t].includes(e)}))):(o=i[t].filter((function(t){return r._decodeKey(t).tokenType===e})),"continue"):{value:[]}},a=0,u=n;a<u.length;a++){var l=s(u[a]);if("object"==typeof l)return l.value}return o},e.prototype._getNarrowedKey=function(e){for(var t in e){var n=this.cache.get(e[t]);if(n)return n}},e.prototype._ttlFromToken=function(e){return(new Date(1e3*e.payload.exp).getTime()-Date.now())/1e3},e.prototype._purgeIndex=function(){var e=this.cache.get(c);if(e){for(var t=0,n=Object.entries(e);t<n.length;t++){for(var o=n[t],r=o[0],i=o[1],s=function(t,n){for(var o=[],i=0;i<n.length;i++)a.cache.get(n[i])||o.push(i);e[r][t]=n.filter((function(e,t){return-1===o.indexOf(t)})),e[r][t].length||delete e[r][t]},a=this,u=0,l=Object.entries(i);u<l.length;u++){var p=l[u];s(p[0],p[1])}Object.keys(e[r]).length||delete e[r]}this.cache.set(c,e)}},e}();function P(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const M=P("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function F(e){if(X(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=F(ee(o)?z(o):o);if(r)for(const e in r)t[e]=r[e]}return t}if(ne(e))return e}const U=/;(?![^(]*\))/g,K=/:(.+)/;function z(e){const t={};return e.split(U).forEach((e=>{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function L(e){let t="";if(ee(e))t=e;else if(X(e))for(let n=0;n<e.length;n++){const o=L(e[n]);o&&(t+=o+" ")}else if(ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const W="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const q=()=>{},J=/^on[^a-z]/,H=e=>J.test(e),B=Object.assign,G=Object.prototype.hasOwnProperty,Q=(e,t)=>G.call(e,t),X=Array.isArray,Y=e=>"[object Map]"===re(e),Z=e=>"function"==typeof e,ee=e=>"string"==typeof e,te=e=>"symbol"==typeof e,ne=e=>null!==e&&"object"==typeof e,oe=Object.prototype.toString,re=e=>oe.call(e),ie=e=>re(e).slice(8,-1),se=e=>ee(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ce=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),ae=(e,t)=>e!==t&&(e==e||t==t),ue=new WeakMap,le=[];let pe;const de=Symbol("production"!==process.env.NODE_ENV?"iterate":""),fe=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");function he(e,t=W){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!le.includes(n)){ge(n);try{return me.push(ye),ye=!0,le.push(n),pe=n,e()}finally{le.pop(),be(),pe=le[le.length-1]}}};return n.id=ve++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n}function _e(e){e.active&&(ge(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let ve=0;function ge(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ye=!0;const me=[];function we(){me.push(ye),ye=!1}function be(){const e=me.pop();ye=void 0===e||e}function Ee(e,t,n){if(!ye||void 0===pe)return;let o=ue.get(e);o||ue.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Set),r.has(pe)||(r.add(pe),pe.deps.push(r),"production"!==process.env.NODE_ENV&&pe.options.onTrack&&pe.options.onTrack({effect:pe,target:e,type:t,key:n}))}function Ne(e,t,n,o,r,i){const s=ue.get(e);if(!s)return;const c=new Set,a=e=>{e&&e.forEach((e=>{(e!==pe||e.allowRecurse)&&c.add(e)}))};if("clear"===t)s.forEach(a);else if("length"===n&&X(e))s.forEach(((e,t)=>{("length"===t||t>=o)&&a(e)}));else switch(void 0!==n&&a(s.get(n)),t){case"add":X(e)?se(n)&&a(s.get("length")):(a(s.get(de)),Y(e)&&a(s.get(fe)));break;case"delete":X(e)||(a(s.get(de)),Y(e)&&a(s.get(fe)));break;case"set":Y(e)&&a(s.get(de))}c.forEach((s=>{"production"!==process.env.NODE_ENV&&s.options.onTrigger&&s.options.onTrigger({effect:s,target:e,key:n,type:t,newValue:o,oldValue:r,oldTarget:i}),s.options.scheduler?s.options.scheduler(s):s()}))}const ke=P("__proto__,__v_isRef,__isVue"),Oe=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(te)),Se=je(),xe=je(!0),De=je(!0,!0),Ve=Re();function Re(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){const t=gt(this);for(let e=0,n=this.length;e<n;e++)Ee(t,"get",e+"");const o=n.apply(t,e);return-1===o||!1===o?n.apply(t,e.map(gt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){we();const t=n.apply(this,e);return be(),t}})),e}function je(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?ut:at:t?ct:st).get(n))return n;const i=X(n);if(!e&&i&&Q(Ve,o))return Reflect.get(Ve,o,r);const s=Reflect.get(n,o,r);if(te(o)?Oe.has(o):ke(o))return s;if(e||Ee(n,"get",o),t)return s;if(mt(s)){return!i||!se(o)?s.value:s}return ne(s)?e?pt(s):lt(s):s}}function Ce(e=!1){return function(t,n,o,r){let i=t[n];if(!e&&(o=gt(o),i=gt(i),!X(t)&&mt(i)&&!mt(o)))return i.value=o,!0;const s=X(t)&&se(n)?Number(n)<t.length:Q(t,n),c=Reflect.set(t,n,o,r);return t===gt(r)&&(s?ae(o,i)&&Ne(t,"set",n,o,i):Ne(t,"add",n,o)),c}}const Te={get:Se,set:Ce(),deleteProperty:function(e,t){const n=Q(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&Ne(e,"delete",t,void 0,o),r},has:function(e,t){const n=Reflect.has(e,t);return te(t)&&Oe.has(t)||Ee(e,"has",t),n},ownKeys:function(e){return Ee(e,"iterate",X(e)?"length":de),Reflect.ownKeys(e)}},Ie={get:xe,set:(e,t)=>("production"!==process.env.NODE_ENV&&console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},Ae=B({},Ie,{get:De}),$e=e=>ne(e)?lt(e):e,Pe=e=>ne(e)?pt(e):e,Me=e=>e,Fe=e=>Reflect.getPrototypeOf(e);function Ue(e,t,n=!1,o=!1){const r=gt(e=e.__v_raw),i=gt(t);t!==i&&!n&&Ee(r,"get",t),!n&&Ee(r,"get",i);const{has:s}=Fe(r),c=o?Me:n?Pe:$e;return s.call(r,t)?c(e.get(t)):s.call(r,i)?c(e.get(i)):void(e!==r&&e.get(t))}function Ke(e,t=!1){const n=this.__v_raw,o=gt(n),r=gt(e);return e!==r&&!t&&Ee(o,"has",e),!t&&Ee(o,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function ze(e,t=!1){return e=e.__v_raw,!t&&Ee(gt(e),"iterate",de),Reflect.get(e,"size",e)}function Le(e){e=gt(e);const t=gt(this);return Fe(t).has.call(t,e)||(t.add(e),Ne(t,"add",e,e)),this}function We(e,t){t=gt(t);const n=gt(this),{has:o,get:r}=Fe(n);let i=o.call(n,e);i?"production"!==process.env.NODE_ENV&&it(n,o,e):(e=gt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?ae(t,s)&&Ne(n,"set",e,t,s):Ne(n,"add",e,t),this}function qe(e){const t=gt(this),{has:n,get:o}=Fe(t);let r=n.call(t,e);r?"production"!==process.env.NODE_ENV&&it(t,n,e):(e=gt(e),r=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return r&&Ne(t,"delete",e,void 0,i),s}function Je(){const e=gt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?Y(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Ne(e,"clear",void 0,void 0,n),o}function He(e,t){return function(n,o){const r=this,i=r.__v_raw,s=gt(i),c=t?Me:e?Pe:$e;return!e&&Ee(s,"iterate",de),i.forEach(((e,t)=>n.call(o,c(e),c(t),r)))}}function Be(e,t,n){return function(...o){const r=this.__v_raw,i=gt(r),s=Y(i),c="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,u=r[e](...o),l=n?Me:t?Pe:$e;return!t&&Ee(i,"iterate",a?fe:de),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function Ge(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${ce(e)} operation ${n}failed: target is readonly.`,gt(this))}return"delete"!==e&&this}}function Qe(){const e={get(e){return Ue(this,e)},get size(){return ze(this)},has:Ke,add:Le,set:We,delete:qe,clear:Je,forEach:He(!1,!1)},t={get(e){return Ue(this,e,!1,!0)},get size(){return ze(this)},has:Ke,add:Le,set:We,delete:qe,clear:Je,forEach:He(!1,!0)},n={get(e){return Ue(this,e,!0)},get size(){return ze(this,!0)},has(e){return Ke.call(this,e,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:He(!0,!1)},o={get(e){return Ue(this,e,!0,!0)},get size(){return ze(this,!0)},has(e){return Ke.call(this,e,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:He(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Be(r,!1,!1),n[r]=Be(r,!0,!1),t[r]=Be(r,!1,!0),o[r]=Be(r,!0,!0)})),[e,n,t,o]}const[Xe,Ye,Ze,et]=Qe();function tt(e,t){const n=t?e?et:Ze:e?Ye:Xe;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Q(n,o)&&o in t?n:t,o,r)}const nt={get:tt(!1,!1)},ot={get:tt(!0,!1)},rt={get:tt(!0,!0)};function it(e,t,n){const o=gt(n);if(o!==n&&t.call(e,o)){const t=ie(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const st=new WeakMap,ct=new WeakMap,at=new WeakMap,ut=new WeakMap;function lt(e){return e&&e.__v_isReadonly?e:ft(e,!1,Te,nt,st)}function pt(e){return ft(e,!0,Ie,ot,at)}function dt(e){return ft(e,!0,Ae,rt,ut)}function ft(e,t,n,o,r){if(!ne(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(ie(c));var c;if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function ht(e){return _t(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function _t(e){return!(!e||!e.__v_isReadonly)}function vt(e){return ht(e)||_t(e)}function gt(e){return e&>(e.__v_raw)||e}function yt(e){return((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}function mt(e){return Boolean(e&&!0===e.__v_isRef)}const wt={get:(e,t,n)=>{return mt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return mt(r)&&!mt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};const bt=[];function Et(e,...t){we();const n=bt.length?bt[bt.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=bt[bt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)St(o,n,11,[e+t.join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${Cn(n,e.type)}>`)).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,r=` at <${Cn(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...Nt(e.props),i]:[r+i]}(e))})),t}(r)),console.warn(...n)}be()}function Nt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...kt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function kt(e,t,n){return ee(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:mt(t)?(t=kt(e,gt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=gt(t),n?t:[`${e}=`,t])}const Ot={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next"};function St(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Dt(e,t,n)}return r}function xt(e,t,n,o){if(Z(e)){const i=St(e,t,n,o);return i&&(ne(r=i)&&Z(r.then)&&Z(r.catch))&&i.catch((e=>{Dt(e,t,n)})),i}var r;const i=[];for(let r=0;r<e.length;r++)i.push(xt(e[r],t,n,o));return i}function Dt(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,i="production"!==process.env.NODE_ENV?Ot[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void St(s,null,10,[e,r,i])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const i=Ot[t];if(n&&(r=n,bt.push(r)),Et("Unhandled error"+(i?` during execution of ${i}`:"")),n&&bt.pop(),o)throw e;console.error(e)}else console.error(e);var r}(e,n,r,o)}let Vt=!1,Rt=!1;const jt=[];let Ct=0;const Tt=[];let It=null,At=0;const $t=[];let Pt=null,Mt=0;const Ft=Promise.resolve();let Ut=null,Kt=null;function zt(e){const t=Ut||Ft;return e?t.then(this?e.bind(this):e):t}function Lt(e){if(!(jt.length&&jt.includes(e,Vt&&e.allowRecurse?Ct+1:Ct)||e===Kt)){const t=function(e){let t=Ct+1,n=jt.length;const o=Bt(e);for(;t<n;){const e=t+n>>>1;Bt(jt[e])<o?t=e+1:n=e}return t}(e);t>-1?jt.splice(t,0,e):jt.push(e),Wt()}}function Wt(){Vt||Rt||(Rt=!0,Ut=Ft.then(Gt))}function qt(e,t,n,o){X(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),Wt()}function Jt(e){qt(e,Pt,$t,Mt)}function Ht(e,t=null){if(Tt.length){for(Kt=t,It=[...new Set(Tt)],Tt.length=0,"production"!==process.env.NODE_ENV&&(e=e||new Map),At=0;At<It.length;At++)"production"!==process.env.NODE_ENV&&Qt(e,It[At])||It[At]();It=null,At=0,Kt=null,Ht(e,t)}}const Bt=e=>null==e.id?1/0:e.id;function Gt(e){Rt=!1,Vt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ht(e),jt.sort(((e,t)=>Bt(e)-Bt(t)));try{for(Ct=0;Ct<jt.length;Ct++){const t=jt[Ct];if(t&&!1!==t.active){if("production"!==process.env.NODE_ENV&&Qt(e,t))continue;St(t,null,14)}}}finally{Ct=0,jt.length=0,function(e){if($t.length){const t=[...new Set($t)];if($t.length=0,Pt)return void Pt.push(...t);for(Pt=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Pt.sort(((e,t)=>Bt(e)-Bt(t))),Mt=0;Mt<Pt.length;Mt++)"production"!==process.env.NODE_ENV&&Qt(e,Pt[Mt])||Pt[Mt]();Pt=null,Mt=0}}(e),Vt=!1,Ut=null,(jt.length||Tt.length||$t.length)&&Gt(e)}}function Qt(e,t){if(e.has(t)){const n=e.get(t);if(n>100){const e=t.ownerInstance,n=e&&jn(e.type);return Et(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}else e.set(t,1)}const Xt=new Set;if("production"!==process.env.NODE_ENV){("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).__VUE_HMR_RUNTIME__={createRecord:Zt((function(e,t){t||(Et("HMR API usage is out of date.\nPlease upgrade vue-loader/vite/rollup-plugin-vue or other relevant dependency that handles Vue SFC compilation."),t={});if(Yt.has(e))return!1;return Yt.set(e,{component:Tn(t)?t.__vccOpts:t,instances:new Set}),!0})),rerender:Zt((function(e,t){const n=Yt.get(e);if(!n)return;t&&(n.component.render=t);Array.from(n.instances).forEach((e=>{t&&(e.render=t),e.renderCache=[],e.update()}))})),reload:Zt((function(e,t){const n=Yt.get(e);if(!n)return;const{component:o,instances:r}=n;if(!Xt.has(o)){t=Tn(t)?t.__vccOpts:t,B(o,t);for(const e in o)"__file"===e||e in t||delete o[e];Xt.add(o),Jt((()=>{Xt.delete(o)}))}Array.from(r).forEach((e=>{e.parent?Lt(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}))}))}}const Yt=new Map;function Zt(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}const en={};function tn(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=W,c=Vn){"production"===process.env.NODE_ENV||t||(void 0!==n&&Et('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Et('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const a=e=>{Et("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")};let u,l,p=!1,d=!1;if(mt(e)?(u=()=>e.value,p=!!e._shallow):ht(e)?(u=()=>e,o=!0):X(e)?(d=!0,p=e.some(ht),u=()=>e.map((e=>mt(e)?e.value:ht(e)?on(e):Z(e)?St(e,c,2):void("production"!==process.env.NODE_ENV&&a(e))))):Z(e)?u=t?()=>St(e,c,2):()=>{if(!c||!c.isUnmounted)return l&&l(),xt(e,c,3,[f])}:(u=q,"production"!==process.env.NODE_ENV&&a(e)),t&&o){const e=u;u=()=>on(e())}let f=e=>{l=g.options.onStop=()=>{St(e,c,4)}},h=d?[]:en;const _=()=>{if(g.active)if(t){const e=g();(o||p||(d?e.some(((e,t)=>ae(e,h[t]))):ae(e,h)))&&(l&&l(),xt(t,c,3,[e,h===en?void 0:h,f]),h=e)}else g()};let v;_.allowRecurse=!!t,v="sync"===r?_:"post"===r?()=>dn(_,c&&c.suspense):()=>{!c||c.isMounted?function(e){qt(e,It,Tt,At)}(_):_()};const g=he(u,{lazy:!0,onTrack:i,onTrigger:s,scheduler:v});return function(e,t=Vn){t&&(t.effects||(t.effects=[])).push(e)}(g,c),t?n?_():h=g():"post"===r?dn(g,c&&c.suspense):g(),()=>{_e(g),c&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(c.effects,g)}}function nn(e,t,n){const o=this.proxy,r=ee(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(o,e):()=>o[e]:e.bind(o,o);let i;return Z(t)?i=t:(i=t.handler,n=t),tn(r,i.bind(o),n,this)}function on(e,t=new Set){if(!ne(e)||t.has(e)||e.__v_skip)return e;if(t.add(e),mt(e))on(e.value,t);else if(X(e))for(let n=0;n<e.length;n++)on(e[n],t);else if("[object Set]"===re(e)||Y(e))e.forEach((e=>{on(e,t)}));else if((e=>"[object Object]"===re(e))(e))for(const n in e)on(e[n],t);return e}function rn(e){return Z(e)?{setup:e,name:e.name}:e}function sn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&sn(e,i,n,!0),r&&r.forEach((t=>sn(e,t,n,!0)));for(const r in t)if(o&&"expose"===r)"production"!==process.env.NODE_ENV&&Et('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=cn[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const cn={data:an,props:pn,emits:pn,methods:pn,computed:pn,beforeCreate:ln,created:ln,beforeMount:ln,mounted:ln,beforeUpdate:ln,updated:ln,beforeDestroy:ln,destroyed:ln,activated:ln,deactivated:ln,errorCaptured:ln,serverPrefetch:ln,components:pn,directives:pn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=B(Object.create(null),e);for(const o in t)n[o]=ln(e[o],t[o]);return n},provide:an,inject:function(e,t){return pn(un(e),un(t))}};function an(e,t){return t?e?function(){return B(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function un(e){if(X(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ln(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?B(B(Object.create(null),e),t):t}const dn=function(e,t){t&&t.pendingBranch?X(e)?t.effects.push(...e):t.effects.push(e):Jt(e)},fn=Symbol(),hn=Symbol("production"!==process.env.NODE_ENV?"Fragment":void 0),_n=Symbol("production"!==process.env.NODE_ENV?"Text":void 0),vn=Symbol("production"!==process.env.NODE_ENV?"Comment":void 0);Symbol("production"!==process.env.NODE_ENV?"Static":void 0);function gn(e){return!!e&&!0===e.__v_isVNode}const yn=({key:e})=>null!=e?e:null,mn=({ref:e})=>null!=e?ee(e)||mt(e)||Z(e)?{i:null,r:e}:e:null,wn="production"!==process.env.NODE_ENV?(...e)=>bn(...e):bn;function bn(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==fn||("production"===process.env.NODE_ENV||e||Et(`Invalid vnode type when creating vnode: ${e}.`),e=vn),gn(e)){const o=En(e,t,!0);return n&&On(o,n),o}if(Tn(e)&&(e=e.__vccOpts),t){(vt(t)||"__vInternal"in t)&&(t=B({},t));let{class:e,style:n}=t;e&&!ee(e)&&(t.class=L(e)),ne(n)&&(vt(n)&&!X(n)&&(n=B({},n)),t.style=F(n))}const s=ee(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ne(e)?4:Z(e)?2:0;"production"!==process.env.NODE_ENV&&4&s&&vt(e)&&Et("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=gt(e));const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yn(t),ref:t&&mn(t),scopeId:null,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return"production"!==process.env.NODE_ENV&&c.key!=c.key&&Et("VNode created with invalid key (NaN). VNode type:",c.type),On(c,n),128&s&&e.normalize(c),c}function En(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,c=t?function(...e){const t=B({},e[0]);for(let n=1;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=L([t.class,o.class]));else if("style"===e)t.style=F([t.style,o.style]);else if(H(e)){const n=t[e],r=o[e];n!==r&&(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&yn(c),ref:t&&t.ref?n&&r?X(r)?r.concat(mn(t)):[r,mn(t)]:mn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&X(s)?s.map(Nn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,staticCache:e.staticCache,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==hn?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&En(e.ssContent),ssFallback:e.ssFallback&&En(e.ssFallback),el:e.el,anchor:e.anchor}}function Nn(e){const t=En(e);return X(e.children)&&(t.children=e.children.map(Nn)),t}function kn(e=" ",t=0){return wn(_n,null,e,t)}function On(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(X(t))n=16;else if("object"==typeof t){if(1&o||64&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),On(e,n()),n._c&&(n._d=!0)))}{n=32;const e=t._;e||"__vInternal"in t||(t._ctx=null)}}else Z(t)?(t={default:t,_ctx:null},n=32):(t=String(t),64&o?(n=16,t=[kn(t)]):n=8);e.children=t,e.shapeFlag|=n}const Sn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ht(t=yt(e.exposed))?t:new Proxy(t,wt),{get:(t,n)=>n in t?t[n]:n in xn?xn[n](e):void 0}));var t}(e)||e.proxy:Sn(e.parent):null,xn=B(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?dt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?dt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?dt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?dt(e.refs):e.refs,$parent:e=>Sn(e.parent),$root:e=>Sn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let a;return c?a=c:r.length||n||o?(a={},r.length&&r.forEach((e=>sn(a,e,s,!0))),sn(a,t,s)):a=t,i.set(t,a),a}(e):e.type,$forceUpdate:e=>()=>Lt(e.update),$nextTick:e=>zt.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?nn.bind(e):q}),Dn={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:c,appContext:a}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;if("production"!==process.env.NODE_ENV&&o!==W&&o.__isScriptSetup&&Q(o,t))return o[t];let u;if("$"!==t[0]){const c=s[t];if(void 0!==c)switch(c){case 0:return o[t];case 1:return r[t];case 3:return n[t];case 2:return i[t]}else{if(o!==W&&Q(o,t))return s[t]=0,o[t];if(r!==W&&Q(r,t))return s[t]=1,r[t];if((u=e.propsOptions[0])&&Q(u,t))return s[t]=2,i[t];if(n!==W&&Q(n,t))return s[t]=3,n[t];__VUE_OPTIONS_API__,s[t]=4}}const l=xn[t];let p,d;return l?("$attrs"===t&&(Ee(e,"get",t),process.env.NODE_ENV),l(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==W&&Q(n,t)?(s[t]=3,n[t]):(d=a.config.globalProperties,Q(d,t)?d[t]:void process.env.NODE_ENV)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;if(r!==W&&Q(r,t))r[t]=n;else if(o!==W&&Q(o,t))o[t]=n;else if(Q(e.props,t))return"production"!==process.env.NODE_ENV&&Et(`Attempting to mutate prop "${t}". Props are readonly.`,e),!1;return"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Et(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`,e),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let c;return void 0!==n[s]||e!==W&&Q(e,s)||t!==W&&Q(t,s)||(c=i[0])&&Q(c,s)||Q(o,s)||Q(xn,s)||Q(r.config.globalProperties,s)}};"production"!==process.env.NODE_ENV&&(Dn.ownKeys=e=>(Et("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e))),B({},Dn,{get(e,t){if(t!==Symbol.unscopables)return Dn.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!M(t);return"production"!==process.env.NODE_ENV&&!n&&Dn.has(e,t)&&Et(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});let Vn=null;const Rn=/(?:^|[-_])(\w)/g;function jn(e){return Z(e)&&e.displayName||e.name}function Cn(e,t,n=!1){let o=jn(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?o.replace(Rn,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}function Tn(e){return Z(e)&&"__vccOpts"in e}function In(e,t,n){const o=arguments.length;return 2===o?ne(t)&&!X(t)?gn(t)?wn(e,null,[t]):wn(e,t):wn(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&gn(n)&&(n=[n]),wn(e,t,n))}function An(e){const t=new $(e),n={user:null,isAuthenticated:!1,isError:!1,errorMessage:""},o={internalStore:n,client:t};return[rn({render(){return In("slot",null,this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated,loginRedirect:this.loginRedirect,getToken:this.getToken}))},async onMounted(){const e=await t.getUser();e||this.disableAutoLogin?(this.internalStore.isAuthenticated=!!e,this.internalStore.user=e):this.loginRedirect({},window.location.href)},data:()=>o,props:{disableAutoLogin:Boolean},methods:{getToken:async e=>t.getAccessToken(e),loginRedirect(e,t){sessionStorage.setItem("crossid.spa-js@returnTo",t),this.client.loginWithRedirect(e)}}}),rn({render(){return In("span",null,this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated,isError:this.internalStore.isError,errorMessage:this.internalStore.errorMessage}))},async mounted(){this.loginRedirectCallback()},data:()=>o,methods:{async loginRedirectCallback(){n.errorMessage="",n.isError=!1;try{await this.client.handleRedirectCallback();const e=sessionStorage.getItem("crossid.spa-js@returnTo"),o=await t.getUser();n.user=o||null,n.isAuthenticated=!!o,window.history.replaceState(null,null,e),this.$emit("navigate")}catch(e){n.isError=!0,n.errorMessage=e.message}}}})]}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]),Symbol("production"!==process.env.NODE_ENV?"ssrContext":""),"production"!==process.env.NODE_ENV&&function(){if("production"===process.env.NODE_ENV||"undefined"==typeof window)return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},r={header:t=>ne(t)?t.__isVue?["div",e,"VueInstance"]:mt(t)?["div",{},["span",e,l(t)],"<",c(t.value),">"]:ht(t)?["div",{},["span",e,"Reactive"],"<",c(t),">"+(_t(t)?" (readonly)":"")]:_t(t)?["div",{},["span",e,"Readonly"],"<",c(t),">"]:null:null,hasBody:e=>e&&e.__isVue,body(e){if(e&&e.__isVue)return["div",{},...i(e.$)]}};function i(e){const t=[];e.type.props&&e.props&&t.push(s("props",gt(e.props))),e.setupState!==W&&t.push(s("setup",e.setupState)),e.data!==W&&t.push(s("data",gt(e.data)));const n=a(e,"computed");n&&t.push(s("computed",n));const r=a(e,"inject");return r&&t.push(s("injected",r)),t.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:e}]]),t}function s(e,t){return t=B({},t),Object.keys(t).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},e],["div",{style:"padding-left:1.25em"},...Object.keys(t).map((e=>["div",{},["span",o,e+": "],c(t[e],!1)]))]]:["span",{}]}function c(e,r=!0){return"number"==typeof e?["span",t,e]:"string"==typeof e?["span",n,JSON.stringify(e)]:"boolean"==typeof e?["span",o,e]:ne(e)?["object",{object:r?gt(e):e}]:["span",n,String(e)]}function a(e,t){const n=e.type;if(Z(n))return;const o={};for(const r in e.ctx)u(n,r,t)&&(o[r]=e.ctx[r]);return o}function u(e,t,n){const o=e[n];return!!(X(o)&&o.includes(t)||ne(o)&&t in o)||!(!e.extends||!u(e.extends,t,n))||!(!e.mixins||!e.mixins.some((e=>u(e,t,n))))||void 0}function l(e){return e._shallow?"ShallowRef":e.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}();export{An as create}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@crossid/vue-wrapper", | ||
"scope": "@crossid", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "A wrapper for the crossid oauth2 client for vue3", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1054308
390