@crossid/vue-wrapper
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -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}(),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),R=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},j=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}},D=function(e){return function(t){return A("Issuer (iss)",e,t.payload.iss)}},V=function(e){return function(t){return A("Issuer (iss) claim",e,t.header.alg)}},T=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(!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){R(e,j(["alg"],["iss","sub","aud","exp","iat"]),D(this.opts.issuer),V("RS256"),T(t),C(!0),I(!0))},e.prototype._assertIDToken=function(e,t){var n;return R(e,j(["alg"],["iss","sub","aud","nonce","exp","iat"]),D(this.opts.issuer),(n=t,function(e){return A("Nonce (nonce)",n,e.payload.nonce)}),V("RS256"),T([this.opts.client_id]),C(!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 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)?W(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 W(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 L(e){let t="";if(te(e))t=e;else if(Y(e))for(let n=0;n<e.length;n++){const o=L(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=F("__proto__,__v_isRef,__isVue"),Se=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(ne)),xe=Te(),Re=Te(!0),je=Te(!0,!0),De=Ve();function Ve(){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 Te(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(De,o))return Reflect.get(De,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 Ce(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:Ce(),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:Re,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:je}),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=yt(e=e.__v_raw),i=yt(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=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 We(e,t=!1){return e=e.__v_raw,!t&&Ne(yt(e),"iterate",fe),Reflect.get(e,"size",e)}function Le(e){e=yt(e);const t=yt(this);return Me(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}=Me(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}=Me(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?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=yt(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.`,yt(this))}return"delete"!==e&&this}}function Xe(){const e={get(e){return Ke(this,e)},get size(){return We(this)},has:ze,add:Le,set:qe,delete:Je,clear:He,forEach:Be(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return We(this)},has:ze,add:Le,set:qe,delete:Je,clear:He,forEach:Be(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return We(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 We(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){jt(e,t,n)}return r}function Rt(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=>{jt(e,t,n)})),i}var r;const i=[];for(let r=0;r<e.length;r++)i.push(Rt(e[r],t,n,o));return i}function jt(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 Dt=!1,Vt=!1;const Tt=[];let Ct=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 Wt(e){const t=Kt||Mt;return e?t.then(this?e.bind(this):e):t}function Lt(e){if(!(Tt.length&&Tt.includes(e,Dt&&e.allowRecurse?Ct+1:Ct)||e===zt)){const t=function(e){let t=Ct+1,n=Tt.length;const o=Gt(e);for(;t<n;){const e=t+n>>>1;Gt(Tt[e])<o?t=e+1:n=e}return t}(e);t>-1?Tt.splice(t,0,e):Tt.push(e),qt()}}function qt(){Dt||Vt||(Vt=!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){Vt=!1,Dt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Bt(e),Tt.sort(((e,t)=>Gt(e)-Gt(t)));try{for(Ct=0;Ct<Tt.length;Ct++){const t=Tt[Ct];if(t&&!1!==t.active){if("production"!==process.env.NODE_ENV&&Xt(e,t))continue;xt(t,null,14)}}}finally{Ct=0,Tt.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),Dt=!1,Kt=null,(Tt.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?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 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=Tn){"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(),Rt(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(),Rt(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=Tn){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&&Rn(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=L(e)),oe(n)&&(gt(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&>(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),Rn(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=L([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(gn,null,e,t)}function Rn(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),Rn(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 jn=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 Dn?Dn[n](e):void 0}));var t}(e)||e.proxy:jn(e.parent):null,Dn=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=>jn(e.parent),$root:e=>jn(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=>()=>Lt(e.update),$nextTick:e=>Wt.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?rn.bind(e):J}),Vn={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=Dn[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(Dn,s)||X(r.config.globalProperties,s)}};"production"!==process.env.NODE_ENV&&(Vn.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({},Vn,{get(e,t){if(t!==Symbol.unscopables)return Vn.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!U(t);return"production"!==process.env.NODE_ENV&&!n&&Vn.has(e,t)&&Nt(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});let Tn=null;const Cn=/(?:^|[-_])(\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(Cn,(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},o={internalStore:n,client:t};return[cn({render(){return Pn("slot",null,this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated,loginWithRedirect:this.loginWithRedirect,logoutWithRedirect:this.logoutWithRedirect,getToken:this.getToken}))},async mounted(){const e=await t.getUser();e||this.disable_auto_login?(this.internalStore.isAuthenticated=!!e,this.internalStore.user=e):this.loginWithRedirect({},window.location.href)},data:()=>o,props:{disable_auto_login:Boolean,post_logout_redirect_uri:String},methods:{getToken:async e=>t.getAccessToken(e),loginWithRedirect(e,t){sessionStorage.setItem("crossid.spa-js@returnTo",t),this.client.loginWithRedirect(e)},async logoutWithRedirect(e,t){sessionStorage.setItem("crossid.spa-js@returnTo",t),e.post_logout_redirect_uri||(e.post_logout_redirect_uri=this.post_logout_redirect_uri),await this.client.logoutWithRedirect(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(){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){this.$emit("error",e)}}}})]},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){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}function i(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 s(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 c=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 a(e){var t=e.wellknown_endpoint;return i(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return[4,fetch(t)];case 1:return 200!==(e=n.sent()).status?[3,3]:[4,e.json()];case 2:return[2,n.sent()];case 3:throw Error("failed to discover data from well known discovery endpoint.")}}))}))}function u(e){var t=e.tokenEndpoint,n=e.timeout,a=r(e,["tokenEndpoint","timeout"]);return i(this,void 0,void 0,(function(){var e,r,u;return s(this,(function(l){switch(l.label){case 0:return e=new FormData,Object.keys(a).forEach((function(t){return e.append(t,a[t])})),[4,(p=t,d={timeout:n,method:"POST",body:e},void 0===d&&(d={}),i(void 0,void 0,void 0,(function(){var e,t,n,r,i;return s(this,(function(s){switch(s.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 i=s.sent(),clearTimeout(r),[2,i]}}))})))];case 1:return[4,(r=l.sent()).json()];case 2:if(u=l.sent(),200!==r.status)throw c.create(u);return[2,u]}var p,d}))}))}var l="crossid-spa-js|index",p=function(e){return null!==e&&"Object"===(null==e?void 0:e.constructor.name)},d=function(e){return"number"==typeof e},f=function(e){return"string"==typeof e},h=String.fromCharCode(0),_=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={})[h]=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 p(n=i)&&h 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[h]: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}(p(i)&&h 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}(),v=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}(_),g=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}(_),y=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}(),m=function(e){function t(t){return e.call(this,new y,t)||this}return n(t,e),t}(_),w=function(e){return Array.from(new Set(e))},b=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w(e.join(" ").trim().split(/\s+/))},E=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},k=function(e){return btoa(e)},N=function(e){return atob(e)},O=function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))},S=function(e){var t={"-":"+",_:"/"};return e.replace(/[-_]/g,(function(e){return t[e]}))},x=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("&")},R=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(N(S(o)));if(s.aud)if(f(s.aud))s.aud=[s.aud];else if(i=s.aud,!Array.isArray(i)||!i.every((function(e){return f(e)})))throw new Error("Audience (aud) must be a string or an array of strings");return{header:JSON.parse(N(S(n))),payload:s}},j=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),D=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 j(o,o.join(","));return null},V=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}},C=function(e){return function(t){return P("Issuer (iss)",e,t.payload.iss)}},T=function(e){return function(t){return P("Issuer (iss) claim",e,t.header.alg)}},I=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}},$=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.exp)return null;if(!d(n.payload.exp))return"Expiration Time (exp) claim must be a present number";var o=F(n.payload.exp,t);return new Date(Date.now())>o?"Expiration Time (exp) claim expired ("+o+")":null}},A=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.nbf)return null;if(!d(n.payload.nbf))return"Not Before (nbf) claim must be a present number";var o=F(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}},P=function(e,t,n){return t!==n?e+' mismatch: expected "'+t+'" but got "'+n+'"':null},F=function(e,t){void 0===t&&(t=0);var n=new Date(0);return n.setUTCSeconds(e+t),n},U=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={}),i(this,void 0,void 0,(function(){var t;return s(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 i(this,void 0,void 0,(function(){var t;return s(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)),i(this,void 0,void 0,(function(){var t,n,o,r,i,c,a;return s(this,(function(s){switch(s.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,u({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 i=s.sent(),(c=R(i.id_token)).payload.__bearer=i.id_token,a=R(i.access_token),this.state.remove(this.loginStateKey),this._assertAccessToken(a,r.audience),this._assertIDToken(c,r.nonce),a.payload._raw=i.access_token,this._cacheTokens(c,a,i.refresh_token),[2,{state:r.state}]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),i(this,void 0,void 0,(function(){var t,n,o,r;return s(this,(function(i){return t=e.audience||this.opts.audience,n=b(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={}),i(this,void 0,void 0,(function(){var n,o,r,i;return s(this,(function(s){return n=e.audience||this.opts.audience,o=b(this.scope,e.scope),r=this._getTokensKeysFromCache("access_token",n,o),i=this._getNarrowedKey(r),[2,null===(t=null==i?void 0:i.payload)||void 0===t?void 0:t._raw]}))}))},e.prototype.createLogoutRedirectURL=function(e){return void 0===e&&(e={}),i(this,void 0,void 0,(function(){var t;return s(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 i(this,void 0,void 0,(function(){var t;return s(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)),i(this,void 0,void 0,(function(){var t,n,o,r;return s(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 i(this,void 0,void 0,(function(){var t,n,o,r,c,a;return s(this,(function(u){switch(u.label){case 0:return t=O(k(E())),n=O(k(E())),o=E(),[4,(p=o,i(void 0,void 0,void 0,(function(){return s(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 r=u.sent(),l=new Uint8Array(r),c=O(k(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 i(this,void 0,void 0,(function(){var t,n;return s(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 i(this,void 0,void 0,(function(){var t,n;return s(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=O(k(E()))),[2,{request:t,audience:e.audience||this.opts.audience,scopes:(e.scope||this.scope).split(" "),appState:e.state}]}}))}))},e.prototype._persistLogoutData=function(e){return i(this,void 0,void 0,(function(){var t;return s(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){D(e,V(["alg"],["iss","sub","aud","exp","iat"]),C(this.opts.issuer),T("RS256"),I(t),$(!0),A(!0))},e.prototype._assertIDToken=function(e,t){var n;return D(e,V(["alg"],["iss","sub","aud","nonce","exp","iat"]),C(this.opts.issuer),(n=t,function(e){return P("Nonce (nonce)",n,e.payload.nonce)}),T("RS256"),I([this.opts.client_id]),$(!0),A(!1),(function(e){return d(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+"?"+x(e)},e.prototype._logoutUrl=function(e){var t=this.opts.logout_endpoint;return e&&(t=t+"?"+x(e)),t},e.prototype._stateFactory=function(e){var t={ttl:300};switch(e){case"local_storage":return new g(t);case"session_storage":return new v(t);default:throw new Error('Invalid cache type "'+e+'"')}},e.prototype._cacheFactory=function(e){switch(e){case"memory":return new m;case"local_storage":return new g({purgeOnInit:!0});case"session_storage":return new v({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]],a=this.cache.get(l);a||(a={}),c.forEach((function(e){a[e]||(a[e]={});var t=a[e];r.forEach((function(e){t[e]||(t[e]=[]),t[e].push(s)}))})),this.cache.set(l,a)},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(l)||{})[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,a=n;c<a.length;c++){var u=s(a[c]);if("object"==typeof u)return u.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(l);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,a=0,u=Object.entries(i);a<u.length;a++){var p=u[a];s(p[0],p[1])}Object.keys(e[r]).length||delete e[r]}this.cache.set(l,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 z=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 K(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=K(oe(o)?q(o):o);if(r)for(const e in r)t[e]=r[e]}return t}if(ie(e))return e}const W=/;(?![^(]*\))/g,L=/:(.+)/;function q(e){const t={};return e.split(W).forEach((e=>{if(e){const n=e.split(L);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function J(e){let t="";if(oe(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=J(e[n]);o&&(t+=o+" ")}else if(ie(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const H="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const B=()=>{},G=/^on[^a-z]/,Q=e=>G.test(e),X=Object.assign,Y=Object.prototype.hasOwnProperty,Z=(e,t)=>Y.call(e,t),ee=Array.isArray,te=e=>"[object Map]"===ce(e),ne=e=>"function"==typeof e,oe=e=>"string"==typeof e,re=e=>"symbol"==typeof e,ie=e=>null!==e&&"object"==typeof e,se=Object.prototype.toString,ce=e=>se.call(e),ae=e=>ce(e).slice(8,-1),ue=e=>oe(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,le=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),pe=(e,t)=>e!==t&&(e==e||t==t),de=new WeakMap,fe=[];let he;const _e=Symbol("production"!==process.env.NODE_ENV?"iterate":""),ve=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");function ge(e,t=H){(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(!fe.includes(n)){we(n);try{return Ee.push(be),be=!0,fe.push(n),he=n,e()}finally{fe.pop(),Ne(),he=fe[fe.length-1]}}};return n.id=me++,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 ye(e){e.active&&(we(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let me=0;function we(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let be=!0;const Ee=[];function ke(){Ee.push(be),be=!1}function Ne(){const e=Ee.pop();be=void 0===e||e}function Oe(e,t,n){if(!be||void 0===he)return;let o=de.get(e);o||de.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Set),r.has(he)||(r.add(he),he.deps.push(r),"production"!==process.env.NODE_ENV&&he.options.onTrack&&he.options.onTrack({effect:he,target:e,type:t,key:n}))}function Se(e,t,n,o,r,i){const s=de.get(e);if(!s)return;const c=new Set,a=e=>{e&&e.forEach((e=>{(e!==he||e.allowRecurse)&&c.add(e)}))};if("clear"===t)s.forEach(a);else if("length"===n&&ee(e))s.forEach(((e,t)=>{("length"===t||t>=o)&&a(e)}));else switch(void 0!==n&&a(s.get(n)),t){case"add":ee(e)?ue(n)&&a(s.get("length")):(a(s.get(_e)),te(e)&&a(s.get(ve)));break;case"delete":ee(e)||(a(s.get(_e)),te(e)&&a(s.get(ve)));break;case"set":te(e)&&a(s.get(_e))}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 xe=M("__proto__,__v_isRef,__isVue"),Re=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(re)),je=Ie(),De=Ie(!0),Ve=Ie(!0,!0),Ce=Te();function Te(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){const t=wt(this);for(let e=0,n=this.length;e<n;e++)Oe(t,"get",e+"");const o=n.apply(t,e);return-1===o||!1===o?n.apply(t,e.map(wt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){ke();const t=n.apply(this,e);return Ne(),t}})),e}function Ie(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?dt:pt:t?lt:ut).get(n))return n;const i=ee(n);if(!e&&i&&Z(Ce,o))return Reflect.get(Ce,o,r);const s=Reflect.get(n,o,r);if(re(o)?Re.has(o):xe(o))return s;if(e||Oe(n,"get",o),t)return s;if(Et(s)){return!i||!ue(o)?s.value:s}return ie(s)?e?ht(s):ft(s):s}}function $e(e=!1){return function(t,n,o,r){let i=t[n];if(!e&&(o=wt(o),i=wt(i),!ee(t)&&Et(i)&&!Et(o)))return i.value=o,!0;const s=ee(t)&&ue(n)?Number(n)<t.length:Z(t,n),c=Reflect.set(t,n,o,r);return t===wt(r)&&(s?pe(o,i)&&Se(t,"set",n,o,i):Se(t,"add",n,o)),c}}const Ae={get:je,set:$e(),deleteProperty:function(e,t){const n=Z(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&Se(e,"delete",t,void 0,o),r},has:function(e,t){const n=Reflect.has(e,t);return re(t)&&Re.has(t)||Oe(e,"has",t),n},ownKeys:function(e){return Oe(e,"iterate",ee(e)?"length":_e),Reflect.ownKeys(e)}},Pe={get:De,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)},Fe=X({},Pe,{get:Ve}),Ue=e=>ie(e)?ft(e):e,Me=e=>ie(e)?ht(e):e,ze=e=>e,Ke=e=>Reflect.getPrototypeOf(e);function We(e,t,n=!1,o=!1){const r=wt(e=e.__v_raw),i=wt(t);t!==i&&!n&&Oe(r,"get",t),!n&&Oe(r,"get",i);const{has:s}=Ke(r),c=o?ze:n?Me:Ue;return s.call(r,t)?c(e.get(t)):s.call(r,i)?c(e.get(i)):void(e!==r&&e.get(t))}function Le(e,t=!1){const n=this.__v_raw,o=wt(n),r=wt(e);return e!==r&&!t&&Oe(o,"has",e),!t&&Oe(o,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function qe(e,t=!1){return e=e.__v_raw,!t&&Oe(wt(e),"iterate",_e),Reflect.get(e,"size",e)}function Je(e){e=wt(e);const t=wt(this);return Ke(t).has.call(t,e)||(t.add(e),Se(t,"add",e,e)),this}function He(e,t){t=wt(t);const n=wt(this),{has:o,get:r}=Ke(n);let i=o.call(n,e);i?"production"!==process.env.NODE_ENV&&at(n,o,e):(e=wt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?pe(t,s)&&Se(n,"set",e,t,s):Se(n,"add",e,t),this}function Be(e){const t=wt(this),{has:n,get:o}=Ke(t);let r=n.call(t,e);r?"production"!==process.env.NODE_ENV&&at(t,n,e):(e=wt(e),r=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return r&&Se(t,"delete",e,void 0,i),s}function Ge(){const e=wt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?te(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Se(e,"clear",void 0,void 0,n),o}function Qe(e,t){return function(n,o){const r=this,i=r.__v_raw,s=wt(i),c=t?ze:e?Me:Ue;return!e&&Oe(s,"iterate",_e),i.forEach(((e,t)=>n.call(o,c(e),c(t),r)))}}function Xe(e,t,n){return function(...o){const r=this.__v_raw,i=wt(r),s=te(i),c="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,u=r[e](...o),l=n?ze:t?Me:Ue;return!t&&Oe(i,"iterate",a?ve:_e),{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 Ye(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${le(e)} operation ${n}failed: target is readonly.`,wt(this))}return"delete"!==e&&this}}function Ze(){const e={get(e){return We(this,e)},get size(){return qe(this)},has:Le,add:Je,set:He,delete:Be,clear:Ge,forEach:Qe(!1,!1)},t={get(e){return We(this,e,!1,!0)},get size(){return qe(this)},has:Le,add:Je,set:He,delete:Be,clear:Ge,forEach:Qe(!1,!0)},n={get(e){return We(this,e,!0)},get size(){return qe(this,!0)},has(e){return Le.call(this,e,!0)},add:Ye("add"),set:Ye("set"),delete:Ye("delete"),clear:Ye("clear"),forEach:Qe(!0,!1)},o={get(e){return We(this,e,!0,!0)},get size(){return qe(this,!0)},has(e){return Le.call(this,e,!0)},add:Ye("add"),set:Ye("set"),delete:Ye("delete"),clear:Ye("clear"),forEach:Qe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Xe(r,!1,!1),n[r]=Xe(r,!0,!1),t[r]=Xe(r,!1,!0),o[r]=Xe(r,!0,!0)})),[e,n,t,o]}const[et,tt,nt,ot]=Ze();function rt(e,t){const n=t?e?ot:nt:e?tt:et;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Z(n,o)&&o in t?n:t,o,r)}const it={get:rt(!1,!1)},st={get:rt(!0,!1)},ct={get:rt(!0,!0)};function at(e,t,n){const o=wt(n);if(o!==n&&t.call(e,o)){const t=ae(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 ut=new WeakMap,lt=new WeakMap,pt=new WeakMap,dt=new WeakMap;function ft(e){return e&&e.__v_isReadonly?e:vt(e,!1,Ae,it,ut)}function ht(e){return vt(e,!0,Pe,st,pt)}function _t(e){return vt(e,!0,Fe,ct,dt)}function vt(e,t,n,o,r){if(!ie(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}}(ae(c));var c;if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function gt(e){return yt(e)?gt(e.__v_raw):!(!e||!e.__v_isReactive)}function yt(e){return!(!e||!e.__v_isReadonly)}function mt(e){return gt(e)||yt(e)}function wt(e){return e&&wt(e.__v_raw)||e}function bt(e){return((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}function Et(e){return Boolean(e&&!0===e.__v_isRef)}const kt={get:(e,t,n)=>{return Et(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return Et(r)&&!Et(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};const Nt=[];function Ot(e,...t){ke();const n=Nt.length?Nt[Nt.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=Nt[Nt.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)jt(o,n,11,[e+t.join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${Pn(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 <${Pn(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...St(e.props),i]:[r+i]}(e))})),t}(r)),console.warn(...n)}Ne()}function St(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...xt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function xt(e,t,n){return oe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:Et(t)?(t=xt(e,wt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ne(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=wt(t),n?t:[`${e}=`,t])}const Rt={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 jt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Vt(e,t,n)}return r}function Dt(e,t,n,o){if(ne(e)){const i=jt(e,t,n,o);return i&&(ie(r=i)&&ne(r.then)&&ne(r.catch))&&i.catch((e=>{Vt(e,t,n)})),i}var r;const i=[];for(let r=0;r<e.length;r++)i.push(Dt(e[r],t,n,o));return i}function Vt(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?Rt[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 jt(s,null,10,[e,r,i])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const i=Rt[t];if(n&&(r=n,Nt.push(r)),Ot("Unhandled error"+(i?` during execution of ${i}`:"")),n&&Nt.pop(),o)throw e;console.error(e)}else console.error(e);var r}(e,n,r,o)}let Ct=!1,Tt=!1;const It=[];let $t=0;const At=[];let Pt=null,Ft=0;const Ut=[];let Mt=null,zt=0;const Kt=Promise.resolve();let Wt=null,Lt=null;function qt(e){const t=Wt||Kt;return e?t.then(this?e.bind(this):e):t}function Jt(e){if(!(It.length&&It.includes(e,Ct&&e.allowRecurse?$t+1:$t)||e===Lt)){const t=function(e){let t=$t+1,n=It.length;const o=Xt(e);for(;t<n;){const e=t+n>>>1;Xt(It[e])<o?t=e+1:n=e}return t}(e);t>-1?It.splice(t,0,e):It.push(e),Ht()}}function Ht(){Ct||Tt||(Tt=!0,Wt=Kt.then(Yt))}function Bt(e,t,n,o){ee(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),Ht()}function Gt(e){Bt(e,Mt,Ut,zt)}function Qt(e,t=null){if(At.length){for(Lt=t,Pt=[...new Set(At)],At.length=0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ft=0;Ft<Pt.length;Ft++)"production"!==process.env.NODE_ENV&&Zt(e,Pt[Ft])||Pt[Ft]();Pt=null,Ft=0,Lt=null,Qt(e,t)}}const Xt=e=>null==e.id?1/0:e.id;function Yt(e){Tt=!1,Ct=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Qt(e),It.sort(((e,t)=>Xt(e)-Xt(t)));try{for($t=0;$t<It.length;$t++){const t=It[$t];if(t&&!1!==t.active){if("production"!==process.env.NODE_ENV&&Zt(e,t))continue;jt(t,null,14)}}}finally{$t=0,It.length=0,function(e){if(Ut.length){const t=[...new Set(Ut)];if(Ut.length=0,Mt)return void Mt.push(...t);for(Mt=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Mt.sort(((e,t)=>Xt(e)-Xt(t))),zt=0;zt<Mt.length;zt++)"production"!==process.env.NODE_ENV&&Zt(e,Mt[zt])||Mt[zt]();Mt=null,zt=0}}(e),Ct=!1,Wt=null,(It.length||At.length||Ut.length)&&Yt(e)}}function Zt(e,t){if(e.has(t)){const n=e.get(t);if(n>100){const e=t.ownerInstance,n=e&&An(e.type);return Ot(`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 en=new Set;if("production"!==process.env.NODE_ENV){("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).__VUE_HMR_RUNTIME__={createRecord:nn((function(e,t){t||(Ot("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(tn.has(e))return!1;return tn.set(e,{component:Fn(t)?t.__vccOpts:t,instances:new Set}),!0})),rerender:nn((function(e,t){const n=tn.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:nn((function(e,t){const n=tn.get(e);if(!n)return;const{component:o,instances:r}=n;if(!en.has(o)){t=Fn(t)?t.__vccOpts:t,X(o,t);for(const e in o)"__file"===e||e in t||delete o[e];en.add(o),Gt((()=>{en.delete(o)}))}Array.from(r).forEach((e=>{e.parent?Jt(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 tn=new Map;function nn(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 on=null;const rn={};function sn(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=H,c=In){"production"===process.env.NODE_ENV||t||(void 0!==n&&Ot('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Ot('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const a=e=>{Ot("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(Et(e)?(u=()=>e.value,p=!!e._shallow):gt(e)?(u=()=>e,o=!0):ee(e)?(d=!0,p=e.some(gt),u=()=>e.map((e=>Et(e)?e.value:gt(e)?an(e):ne(e)?jt(e,c,2):void("production"!==process.env.NODE_ENV&&a(e))))):ne(e)?u=t?()=>jt(e,c,2):()=>{if(!c||!c.isUnmounted)return l&&l(),Dt(e,c,3,[f])}:(u=B,"production"!==process.env.NODE_ENV&&a(e)),t&&o){const e=u;u=()=>an(e())}let f=e=>{l=g.options.onStop=()=>{jt(e,c,4)}},h=d?[]:rn;const _=()=>{if(g.active)if(t){const e=g();(o||p||(d?e.some(((e,t)=>pe(e,h[t]))):pe(e,h)))&&(l&&l(),Dt(t,c,3,[e,h===rn?void 0:h,f]),h=e)}else g()};let v;_.allowRecurse=!!t,v="sync"===r?_:"post"===r?()=>vn(_,c&&c.suspense):()=>{!c||c.isMounted?function(e){Bt(e,Pt,At,Ft)}(_):_()};const g=ge(u,{lazy:!0,onTrack:i,onTrigger:s,scheduler:v});return function(e,t=In){t&&(t.effects||(t.effects=[])).push(e)}(g,c),t?n?_():h=g():"post"===r?vn(g,c&&c.suspense):g(),()=>{ye(g),c&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(c.effects,g)}}function cn(e,t,n){const o=this.proxy,r=oe(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 ne(t)?i=t:(i=t.handler,n=t),sn(r,i.bind(o),n,this)}function an(e,t=new Set){if(!ie(e)||t.has(e)||e.__v_skip)return e;if(t.add(e),Et(e))an(e.value,t);else if(ee(e))for(let n=0;n<e.length;n++)an(e[n],t);else if("[object Set]"===ce(e)||te(e))e.forEach((e=>{an(e,t)}));else if((e=>"[object Object]"===ce(e))(e))for(const n in e)an(e[n],t);return e}function un(e){return ne(e)?{setup:e,name:e.name}:e}function ln(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ln(e,i,n,!0),r&&r.forEach((t=>ln(e,t,n,!0)));for(const r in t)if(o&&"expose"===r)"production"!==process.env.NODE_ENV&&Ot('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=pn[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const pn={data:dn,props:_n,emits:_n,methods:_n,computed:_n,beforeCreate:hn,created:hn,beforeMount:hn,mounted:hn,beforeUpdate:hn,updated:hn,beforeDestroy:hn,destroyed:hn,activated:hn,deactivated:hn,errorCaptured:hn,serverPrefetch:hn,components:_n,directives:_n,watch:function(e,t){if(!e)return t;if(!t)return e;const n=X(Object.create(null),e);for(const o in t)n[o]=hn(e[o],t[o]);return n},provide:dn,inject:function(e,t){return _n(fn(e),fn(t))}};function dn(e,t){return t?e?function(){return X(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function fn(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function hn(e,t){return e?[...new Set([].concat(e,t))]:t}function _n(e,t){return e?X(X(Object.create(null),e),t):t}const vn=function(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):Gt(e)},gn=Symbol(),yn=Symbol("production"!==process.env.NODE_ENV?"Fragment":void 0),mn=Symbol("production"!==process.env.NODE_ENV?"Text":void 0),wn=Symbol("production"!==process.env.NODE_ENV?"Comment":void 0);Symbol("production"!==process.env.NODE_ENV?"Static":void 0);function bn(e){return!!e&&!0===e.__v_isVNode}const En="__vInternal",kn=({key:e})=>null!=e?e:null,Nn=({ref:e})=>null!=e?oe(e)||Et(e)||ne(e)?{i:on,r:e}:e:null,On="production"!==process.env.NODE_ENV?(...e)=>Sn(...e):Sn;function Sn(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==gn||("production"===process.env.NODE_ENV||e||Ot(`Invalid vnode type when creating vnode: ${e}.`),e=wn),bn(e)){const o=xn(e,t,!0);return n&&Dn(o,n),o}if(Fn(e)&&(e=e.__vccOpts),t){(mt(t)||En in t)&&(t=X({},t));let{class:e,style:n}=t;e&&!oe(e)&&(t.class=J(e)),ie(n)&&(mt(n)&&!ee(n)&&(n=X({},n)),t.style=K(n))}const s=oe(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ie(e)?4:ne(e)?2:0;"production"!==process.env.NODE_ENV&&4&s&&mt(e)&&Ot("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=wt(e));const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&kn(t),ref:t&&Nn(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&&Ot("VNode created with invalid key (NaN). VNode type:",c.type),Dn(c,n),128&s&&e.normalize(c),c}function xn(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,c=t?function(...e){const t=X({},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=J([t.class,o.class]));else if("style"===e)t.style=K([t.style,o.style]);else if(Q(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&&kn(c),ref:t&&t.ref?n&&r?ee(r)?r.concat(Nn(t)):[r,Nn(t)]:Nn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&ee(s)?s.map(Rn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,staticCache:e.staticCache,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yn?-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&&xn(e.ssContent),ssFallback:e.ssFallback&&xn(e.ssFallback),el:e.el,anchor:e.anchor}}function Rn(e){const t=xn(e);return ee(e.children)&&(t.children=e.children.map(Rn)),t}function jn(e=" ",t=0){return On(mn,null,e,t)}function Dn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(ee(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),Dn(e,n()),n._c&&(n._d=!0)))}{n=32;const e=t._;e||En in t||(t._ctx=on)}}else ne(t)?(t={default:t,_ctx:on},n=32):(t=String(t),64&o?(n=16,t=[jn(t)]):n=8);e.children=t,e.shapeFlag|=n}const Vn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gt(t=bt(e.exposed))?t:new Proxy(t,kt),{get:(t,n)=>n in t?t[n]:n in Cn?Cn[n](e):void 0}));var t}(e)||e.proxy:Vn(e.parent):null,Cn=X(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?_t(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?_t(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?_t(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?_t(e.refs):e.refs,$parent:e=>Vn(e.parent),$root:e=>Vn(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=>ln(a,e,s,!0))),ln(a,t,s)):a=t,i.set(t,a),a}(e):e.type,$forceUpdate:e=>()=>Jt(e.update),$nextTick:e=>qt.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?cn.bind(e):B}),Tn={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!==H&&o.__isScriptSetup&&Z(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!==H&&Z(o,t))return s[t]=0,o[t];if(r!==H&&Z(r,t))return s[t]=1,r[t];if((u=e.propsOptions[0])&&Z(u,t))return s[t]=2,i[t];if(n!==H&&Z(n,t))return s[t]=3,n[t];__VUE_OPTIONS_API__,s[t]=4}}const l=Cn[t];let p,d;return l?("$attrs"===t&&(Oe(e,"get",t),process.env.NODE_ENV),l(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==H&&Z(n,t)?(s[t]=3,n[t]):(d=a.config.globalProperties,Z(d,t)?d[t]:void process.env.NODE_ENV)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;if(r!==H&&Z(r,t))r[t]=n;else if(o!==H&&Z(o,t))o[t]=n;else if(Z(e.props,t))return"production"!==process.env.NODE_ENV&&Ot(`Attempting to mutate prop "${t}". Props are readonly.`,e),!1;return"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Ot(`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!==H&&Z(e,s)||t!==H&&Z(t,s)||(c=i[0])&&Z(c,s)||Z(o,s)||Z(Cn,s)||Z(r.config.globalProperties,s)}};"production"!==process.env.NODE_ENV&&(Tn.ownKeys=e=>(Ot("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))),X({},Tn,{get(e,t){if(t!==Symbol.unscopables)return Tn.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!z(t);return"production"!==process.env.NODE_ENV&&!n&&Tn.has(e,t)&&Ot(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});let In=null;const $n=/(?:^|[-_])(\w)/g;function An(e){return ne(e)&&e.displayName||e.name}function Pn(e,t,n=!1){let o=An(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($n,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}function Fn(e){return ne(e)&&"__vccOpts"in e}function Un(e,t,n){const o=arguments.length;return 2===o?ie(t)&&!ee(t)?bn(t)?On(e,null,[t]):On(e,t):On(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&bn(n)&&(n=[n]),On(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=>ie(t)?t.__isVue?["div",e,"VueInstance"]:Et(t)?["div",{},["span",e,l(t)],"<",c(t.value),">"]:gt(t)?["div",{},["span",e,"Reactive"],"<",c(t),">"+(yt(t)?" (readonly)":"")]:yt(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",wt(e.props))),e.setupState!==H&&t.push(s("setup",e.setupState)),e.data!==H&&t.push(s("data",wt(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=X({},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]:ie(e)?["object",{object:r?wt(e):e}]:["span",n,String(e)]}function a(e,t){const n=e.type;if(ne(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!!(ee(o)&&o.includes(t)||ie(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=async function(e){const t=await function(e){return i(this,void 0,void 0,(function(){var t,n,o,i,c,u;return s(this,(function(s){switch(s.label){case 0:return t=e.tenant_id,n=e.auth_server,o=void 0===n?"default":n,i=r(e,["tenant_id","auth_server"]),c=i,[4,a({wellknown_endpoint:"https://"+t+".crossid.io/oauth2/"+o+"/.well-known/openid-configuration"})];case 1:return u=s.sent(),c.authorization_endpoint=u.authorization_endpoint,c.token_endpoint=u.token_endpoint,c.issuer=u.issuer,c.logout_endpoint=c.issuer+"logout",[2,new U(c)]}}))}))}(e),n={user:null,isAuthenticated:!1},o={internalStore:n,client:t};return[un({render(){return Un("slot",null,this.$slots&&this.$slots.default?this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated,loginWithRedirect:this.loginWithRedirect,logoutWithRedirect:this.logoutWithRedirect,getToken:this.getToken}):null)},async mounted(){const e=await t.getUser();e||this.disable_auto_login?(this.internalStore.isAuthenticated=!!e,this.internalStore.user=e):this.loginWithRedirect({},window.location.href)},data:()=>o,props:{disable_auto_login:Boolean,post_logout_redirect_uri:String},methods:{getToken:async e=>t.getAccessToken(e),loginWithRedirect(e,t){sessionStorage.setItem("crossid.spa-js@returnTo",t),this.client.loginWithRedirect(e)},async logoutWithRedirect(e){e&&!e.post_logout_redirect_uri&&this.post_logout_redirect_uri&&(e.post_logout_redirect_uri=this.post_logout_redirect_uri),await this.client.logoutWithRedirect(e)}}}),un({render(){return Un("span",null,this.$slots&&this.$slots.default?this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated}):null)},async mounted(){this.loginRedirectCallback()},data:()=>o,methods:{async loginRedirectCallback(){try{await this.client.handleRedirectCallback();const e=sessionStorage.getItem("crossid.spa-js@returnTo"),o=await t.getUser();n.user=o||null,n.isAuthenticated=!!o,this.$router?this.$router.replace(e):(window.history.replaceState(null,null,e),this.$emit("navigate"))}catch(e){this.$emit("error",e)}}}})]},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=crossid-vue.js.map |
declare type ClientOpts = any; | ||
import { Component } from "vue"; | ||
export declare function create(options: ClientOpts): Component[]; | ||
export declare function create(options: ClientOpts): Promise<Component[]>; | ||
export {}; |
@@ -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),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},R=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}},D=function(e){return function(t){return I("Issuer (iss)",e,t.payload.iss)}},V=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,R(["alg"],["iss","sub","aud","exp","iat"]),D(this.opts.issuer),V("RS256"),j(t),C(!0),T(!0))},e.prototype._assertIDToken=function(e,t){var n;return x(e,R(["alg"],["iss","sub","aud","nonce","exp","iat"]),D(this.opts.issuer),(n=t,function(e){return I("Nonce (nonce)",n,e.payload.nonce)}),V("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 W(e){let t="";if(ee(e))t=e;else if(X(e))for(let n=0;n<e.length;n++){const o=W(e[n]);o&&(t+=o+" ")}else if(ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const L="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=L){(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),Re=je(!0,!0),De=Ve();function Ve(){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(De,o))return Reflect.get(De,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:Re}),$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=gt(e=e.__v_raw),i=gt(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=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 We(e){e=gt(e);const t=gt(this);return Ue(t).has.call(t,e)||(t.add(e),Ne(t,"add",e,e)),this}function Le(e,t){t=gt(t);const n=gt(this),{has:o,get:r}=Ue(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}=Ue(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?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=gt(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.`,gt(this))}return"delete"!==e&&this}}function Qe(){const e={get(e){return Me(this,e)},get size(){return ze(this)},has:Ke,add:We,set:Le,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:We,set:Le,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=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){Rt(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=>{Rt(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 Rt(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 Dt=!1,Vt=!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 Wt(e){if(!(jt.length&&jt.includes(e,Dt&&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),Lt()}}function Lt(){Dt||Vt||(Vt=!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),Lt()}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){Vt=!1,Dt=!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),Dt=!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?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 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}=L,c=Dn){"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=Dn){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=W(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=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=W([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&&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=>()=>Wt(e.update),$nextTick:e=>zt.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?nn.bind(e):q}),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!==L&&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!==L&&Q(o,t))return s[t]=0,o[t];if(r!==L&&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!==L&&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!==L&&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!==L&&Q(r,t))r[t]=n;else if(o!==L&&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!==L&&Q(e,s)||t!==L&&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&&(Rn.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({},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)&&Et(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});let Dn=null;const Vn=/(?:^|[-_])(\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(Vn,(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},o={internalStore:n,client:t};return[rn({render(){return In("slot",null,this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated,loginWithRedirect:this.loginWithRedirect,logoutWithRedirect:this.logoutWithRedirect,getToken:this.getToken}))},async mounted(){const e=await t.getUser();e||this.disable_auto_login?(this.internalStore.isAuthenticated=!!e,this.internalStore.user=e):this.loginWithRedirect({},window.location.href)},data:()=>o,props:{disable_auto_login:Boolean,post_logout_redirect_uri:String},methods:{getToken:async e=>t.getAccessToken(e),loginWithRedirect(e,t){sessionStorage.setItem("crossid.spa-js@returnTo",t),this.client.loginWithRedirect(e)},async logoutWithRedirect(e,t){sessionStorage.setItem("crossid.spa-js@returnTo",t),e.post_logout_redirect_uri||(e.post_logout_redirect_uri=this.post_logout_redirect_uri),await this.client.logoutWithRedirect(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(){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){this.$emit("error",e)}}}})]}"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!==L&&t.push(s("setup",e.setupState)),e.data!==L&&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}; | ||
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){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}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 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 c(e){var t=e.wellknown_endpoint;return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return[4,fetch(t)];case 1:return 200!==(e=n.sent()).status?[3,3]:[4,e.json()];case 2:return[2,n.sent()];case 3:throw Error("failed to discover data from well known discovery endpoint.")}}))}))}function a(e){var t=e.tokenEndpoint,c=e.timeout,a=o(e,["tokenEndpoint","timeout"]);return r(this,void 0,void 0,(function(){var e,o,u;return i(this,(function(l){switch(l.label){case 0:return e=new FormData,Object.keys(a).forEach((function(t){return e.append(t,a[t])})),[4,(p=t,d={timeout:c,method:"POST",body:e},void 0===d&&(d={}),r(void 0,void 0,void 0,(function(){var e,t,o,r,s;return i(this,(function(i){switch(i.label){case 0:return e=d.timeout,t=void 0===e?5e3:e,o=new AbortController,r=setTimeout((function(){return o.abort()}),t),[4,fetch(p,n(n({},d),{signal:o.signal}))];case 1:return s=i.sent(),clearTimeout(r),[2,s]}}))})))];case 1:return[4,(o=l.sent()).json()];case 2:if(u=l.sent(),200!==o.status)throw s.create(u);return[2,u]}var p,d}))}))}var u="crossid-spa-js|index",l=function(e){return null!==e&&"Object"===(null==e?void 0:e.constructor.name)},p=function(e){return"number"==typeof e},d=function(e){return"string"==typeof e},f=String.fromCharCode(0),h=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={})[f]=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 l(n=i)&&f 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[f]: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}(l(i)&&f 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}(),_=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}(h),v=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}(h),g=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 n(t){return e.call(this,new g,t)||this}return t(n,e),n}(h),m=function(e){return Array.from(new Set(e))},w=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return m(e.join(" ").trim().split(/\s+/))},b=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},E=function(e){return btoa(e)},k=function(e){return atob(e)},N=function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))},O=function(e){var t={"-":"+",_:"/"};return e.replace(/[-_]/g,(function(e){return t[e]}))},S=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("&")},x=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(k(O(o)));if(s.aud)if(d(s.aud))s.aud=[s.aud];else if(i=s.aud,!Array.isArray(i)||!i.every((function(e){return d(e)})))throw new Error("Audience (aud) must be a string or an array of strings");return{header:JSON.parse(k(O(n))),payload:s}},R=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),D=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 R(o,o.join(","));return null},V=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}},j=function(e){return function(t){return A("Issuer (iss)",e,t.payload.iss)}},C=function(e){return function(t){return A("Issuer (iss) claim",e,t.header.alg)}},T=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}},I=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.exp)return null;if(!p(n.payload.exp))return"Expiration Time (exp) claim must be a present number";var o=P(n.payload.exp,t);return new Date(Date.now())>o?"Expiration Time (exp) claim expired ("+o+")":null}},$=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=40),function(n){if(!e&&!n.payload.nbf)return null;if(!p(n.payload.nbf))return"Not Before (nbf) claim must be a present number";var o=P(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},P=function(e,t){void 0===t&&(t=0);var n=new Date(0);return n.setUTCSeconds(e+t),n},F=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,c,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,a({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(),(c=x(s.id_token)).payload.__bearer=s.id_token,u=x(s.access_token),this.state.remove(this.loginStateKey),this._assertAccessToken(u,r.audience),this._assertIDToken(c,r.nonce),u.payload._raw=s.access_token,this._cacheTokens(c,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=w(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=w(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(E(b())),n=N(E(b())),o=b(),[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(E(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(E(b()))),[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){D(e,V(["alg"],["iss","sub","aud","exp","iat"]),j(this.opts.issuer),C("RS256"),T(t),I(!0),$(!0))},e.prototype._assertIDToken=function(e,t){var n;return D(e,V(["alg"],["iss","sub","aud","nonce","exp","iat"]),j(this.opts.issuer),(n=t,function(e){return A("Nonce (nonce)",n,e.payload.nonce)}),C("RS256"),T([this.opts.client_id]),I(!0),$(!1),(function(e){return p(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+"?"+S(e)},e.prototype._logoutUrl=function(e){var t=this.opts.logout_endpoint;return e&&(t=t+"?"+S(e)),t},e.prototype._stateFactory=function(e){var t={ttl:300};switch(e){case"local_storage":return new v(t);case"session_storage":return new _(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 v({purgeOnInit:!0});case"session_storage":return new _({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]],a=this.cache.get(u);a||(a={}),c.forEach((function(e){a[e]||(a[e]={});var t=a[e];r.forEach((function(e){t[e]||(t[e]=[]),t[e].push(s)}))})),this.cache.set(u,a)},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(u)||{})[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,a=n;c<a.length;c++){var l=s(a[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(u);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,a=0,l=Object.entries(i);a<l.length;a++){var p=l[a];s(p[0],p[1])}Object.keys(e[r]).length||delete e[r]}this.cache.set(u,e)}},e}();function U(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=U("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 z(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=z(ne(o)?L(o):o);if(r)for(const e in r)t[e]=r[e]}return t}if(re(e))return e}const K=/;(?![^(]*\))/g,W=/:(.+)/;function L(e){const t={};return e.split(K).forEach((e=>{if(e){const n=e.split(W);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function q(e){let t="";if(ne(e))t=e;else if(Z(e))for(let n=0;n<e.length;n++){const o=q(e[n]);o&&(t+=o+" ")}else if(re(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const J="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const H=()=>{},B=/^on[^a-z]/,G=e=>B.test(e),Q=Object.assign,X=Object.prototype.hasOwnProperty,Y=(e,t)=>X.call(e,t),Z=Array.isArray,ee=e=>"[object Map]"===se(e),te=e=>"function"==typeof e,ne=e=>"string"==typeof e,oe=e=>"symbol"==typeof e,re=e=>null!==e&&"object"==typeof e,ie=Object.prototype.toString,se=e=>ie.call(e),ce=e=>se(e).slice(8,-1),ae=e=>ne(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ue=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),le=(e,t)=>e!==t&&(e==e||t==t),pe=new WeakMap,de=[];let fe;const he=Symbol("production"!==process.env.NODE_ENV?"iterate":""),_e=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");function ve(e,t=J){(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(!de.includes(n)){me(n);try{return be.push(we),we=!0,de.push(n),fe=n,e()}finally{de.pop(),ke(),fe=de[de.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 ge(e){e.active&&(me(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let ye=0;function me(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let we=!0;const be=[];function Ee(){be.push(we),we=!1}function ke(){const e=be.pop();we=void 0===e||e}function Ne(e,t,n){if(!we||void 0===fe)return;let o=pe.get(e);o||pe.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Set),r.has(fe)||(r.add(fe),fe.deps.push(r),"production"!==process.env.NODE_ENV&&fe.options.onTrack&&fe.options.onTrack({effect:fe,target:e,type:t,key:n}))}function Oe(e,t,n,o,r,i){const s=pe.get(e);if(!s)return;const c=new Set,a=e=>{e&&e.forEach((e=>{(e!==fe||e.allowRecurse)&&c.add(e)}))};if("clear"===t)s.forEach(a);else if("length"===n&&Z(e))s.forEach(((e,t)=>{("length"===t||t>=o)&&a(e)}));else switch(void 0!==n&&a(s.get(n)),t){case"add":Z(e)?ae(n)&&a(s.get("length")):(a(s.get(he)),ee(e)&&a(s.get(_e)));break;case"delete":Z(e)||(a(s.get(he)),ee(e)&&a(s.get(_e)));break;case"set":ee(e)&&a(s.get(he))}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 Se=U("__proto__,__v_isRef,__isVue"),xe=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(oe)),Re=Te(),De=Te(!0),Ve=Te(!0,!0),je=Ce();function Ce(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){const t=mt(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(mt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){Ee();const t=n.apply(this,e);return ke(),t}})),e}function Te(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?pt:lt:t?ut:at).get(n))return n;const i=Z(n);if(!e&&i&&Y(je,o))return Reflect.get(je,o,r);const s=Reflect.get(n,o,r);if(oe(o)?xe.has(o):Se(o))return s;if(e||Ne(n,"get",o),t)return s;if(bt(s)){return!i||!ae(o)?s.value:s}return re(s)?e?ft(s):dt(s):s}}function Ie(e=!1){return function(t,n,o,r){let i=t[n];if(!e&&(o=mt(o),i=mt(i),!Z(t)&&bt(i)&&!bt(o)))return i.value=o,!0;const s=Z(t)&&ae(n)?Number(n)<t.length:Y(t,n),c=Reflect.set(t,n,o,r);return t===mt(r)&&(s?le(o,i)&&Oe(t,"set",n,o,i):Oe(t,"add",n,o)),c}}const $e={get:Re,set:Ie(),deleteProperty:function(e,t){const n=Y(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&Oe(e,"delete",t,void 0,o),r},has:function(e,t){const n=Reflect.has(e,t);return oe(t)&&xe.has(t)||Ne(e,"has",t),n},ownKeys:function(e){return Ne(e,"iterate",Z(e)?"length":he),Reflect.ownKeys(e)}},Ae={get:De,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)},Pe=Q({},Ae,{get:Ve}),Fe=e=>re(e)?dt(e):e,Ue=e=>re(e)?ft(e):e,Me=e=>e,ze=e=>Reflect.getPrototypeOf(e);function Ke(e,t,n=!1,o=!1){const r=mt(e=e.__v_raw),i=mt(t);t!==i&&!n&&Ne(r,"get",t),!n&&Ne(r,"get",i);const{has:s}=ze(r),c=o?Me:n?Ue:Fe;return s.call(r,t)?c(e.get(t)):s.call(r,i)?c(e.get(i)):void(e!==r&&e.get(t))}function We(e,t=!1){const n=this.__v_raw,o=mt(n),r=mt(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(mt(e),"iterate",he),Reflect.get(e,"size",e)}function qe(e){e=mt(e);const t=mt(this);return ze(t).has.call(t,e)||(t.add(e),Oe(t,"add",e,e)),this}function Je(e,t){t=mt(t);const n=mt(this),{has:o,get:r}=ze(n);let i=o.call(n,e);i?"production"!==process.env.NODE_ENV&&ct(n,o,e):(e=mt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?le(t,s)&&Oe(n,"set",e,t,s):Oe(n,"add",e,t),this}function He(e){const t=mt(this),{has:n,get:o}=ze(t);let r=n.call(t,e);r?"production"!==process.env.NODE_ENV&&ct(t,n,e):(e=mt(e),r=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return r&&Oe(t,"delete",e,void 0,i),s}function Be(){const e=mt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?ee(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Oe(e,"clear",void 0,void 0,n),o}function Ge(e,t){return function(n,o){const r=this,i=r.__v_raw,s=mt(i),c=t?Me:e?Ue:Fe;return!e&&Ne(s,"iterate",he),i.forEach(((e,t)=>n.call(o,c(e),c(t),r)))}}function Qe(e,t,n){return function(...o){const r=this.__v_raw,i=mt(r),s=ee(i),c="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,u=r[e](...o),l=n?Me:t?Ue:Fe;return!t&&Ne(i,"iterate",a?_e:he),{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 Xe(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${ue(e)} operation ${n}failed: target is readonly.`,mt(this))}return"delete"!==e&&this}}function Ye(){const e={get(e){return Ke(this,e)},get size(){return Le(this)},has:We,add:qe,set:Je,delete:He,clear:Be,forEach:Ge(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return Le(this)},has:We,add:qe,set:Je,delete:He,clear:Be,forEach:Ge(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return Le(this,!0)},has(e){return We.call(this,e,!0)},add:Xe("add"),set:Xe("set"),delete:Xe("delete"),clear:Xe("clear"),forEach:Ge(!0,!1)},o={get(e){return Ke(this,e,!0,!0)},get size(){return Le(this,!0)},has(e){return We.call(this,e,!0)},add:Xe("add"),set:Xe("set"),delete:Xe("delete"),clear:Xe("clear"),forEach:Ge(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Qe(r,!1,!1),n[r]=Qe(r,!0,!1),t[r]=Qe(r,!1,!0),o[r]=Qe(r,!0,!0)})),[e,n,t,o]}const[Ze,et,tt,nt]=Ye();function ot(e,t){const n=t?e?nt:tt:e?et:Ze;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Y(n,o)&&o in t?n:t,o,r)}const rt={get:ot(!1,!1)},it={get:ot(!0,!1)},st={get:ot(!0,!0)};function ct(e,t,n){const o=mt(n);if(o!==n&&t.call(e,o)){const t=ce(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 at=new WeakMap,ut=new WeakMap,lt=new WeakMap,pt=new WeakMap;function dt(e){return e&&e.__v_isReadonly?e:_t(e,!1,$e,rt,at)}function ft(e){return _t(e,!0,Ae,it,lt)}function ht(e){return _t(e,!0,Pe,st,pt)}function _t(e,t,n,o,r){if(!re(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}}(ce(c));var c;if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function vt(e){return gt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function gt(e){return!(!e||!e.__v_isReadonly)}function yt(e){return vt(e)||gt(e)}function mt(e){return e&&mt(e.__v_raw)||e}function wt(e){return((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}function bt(e){return Boolean(e&&!0===e.__v_isRef)}const Et={get:(e,t,n)=>{return bt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return bt(r)&&!bt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};const kt=[];function Nt(e,...t){Ee();const n=kt.length?kt[kt.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=kt[kt.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)Rt(o,n,11,[e+t.join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${In(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 <${In(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...Ot(e.props),i]:[r+i]}(e))})),t}(r)),console.warn(...n)}ke()}function Ot(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...St(n,e[n]))})),n.length>3&&t.push(" ..."),t}function St(e,t,n){return ne(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:bt(t)?(t=St(e,mt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):te(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=mt(t),n?t:[`${e}=`,t])}const xt={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 Rt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Vt(e,t,n)}return r}function Dt(e,t,n,o){if(te(e)){const i=Rt(e,t,n,o);return i&&(re(r=i)&&te(r.then)&&te(r.catch))&&i.catch((e=>{Vt(e,t,n)})),i}var r;const i=[];for(let r=0;r<e.length;r++)i.push(Dt(e[r],t,n,o));return i}function Vt(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?xt[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 Rt(s,null,10,[e,r,i])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const i=xt[t];if(n&&(r=n,kt.push(r)),Nt("Unhandled error"+(i?` during execution of ${i}`:"")),n&&kt.pop(),o)throw e;console.error(e)}else console.error(e);var r}(e,n,r,o)}let jt=!1,Ct=!1;const Tt=[];let It=0;const $t=[];let At=null,Pt=0;const Ft=[];let Ut=null,Mt=0;const zt=Promise.resolve();let Kt=null,Wt=null;function Lt(e){const t=Kt||zt;return e?t.then(this?e.bind(this):e):t}function qt(e){if(!(Tt.length&&Tt.includes(e,jt&&e.allowRecurse?It+1:It)||e===Wt)){const t=function(e){let t=It+1,n=Tt.length;const o=Qt(e);for(;t<n;){const e=t+n>>>1;Qt(Tt[e])<o?t=e+1:n=e}return t}(e);t>-1?Tt.splice(t,0,e):Tt.push(e),Jt()}}function Jt(){jt||Ct||(Ct=!0,Kt=zt.then(Xt))}function Ht(e,t,n,o){Z(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),Jt()}function Bt(e){Ht(e,Ut,Ft,Mt)}function Gt(e,t=null){if($t.length){for(Wt=t,At=[...new Set($t)],$t.length=0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Pt=0;Pt<At.length;Pt++)"production"!==process.env.NODE_ENV&&Yt(e,At[Pt])||At[Pt]();At=null,Pt=0,Wt=null,Gt(e,t)}}const Qt=e=>null==e.id?1/0:e.id;function Xt(e){Ct=!1,jt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Gt(e),Tt.sort(((e,t)=>Qt(e)-Qt(t)));try{for(It=0;It<Tt.length;It++){const t=Tt[It];if(t&&!1!==t.active){if("production"!==process.env.NODE_ENV&&Yt(e,t))continue;Rt(t,null,14)}}}finally{It=0,Tt.length=0,function(e){if(Ft.length){const t=[...new Set(Ft)];if(Ft.length=0,Ut)return void Ut.push(...t);for(Ut=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ut.sort(((e,t)=>Qt(e)-Qt(t))),Mt=0;Mt<Ut.length;Mt++)"production"!==process.env.NODE_ENV&&Yt(e,Ut[Mt])||Ut[Mt]();Ut=null,Mt=0}}(e),jt=!1,Kt=null,(Tt.length||$t.length||Ft.length)&&Xt(e)}}function Yt(e,t){if(e.has(t)){const n=e.get(t);if(n>100){const e=t.ownerInstance,n=e&&Tn(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 Zt=new Set;if("production"!==process.env.NODE_ENV){("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).__VUE_HMR_RUNTIME__={createRecord:tn((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(en.has(e))return!1;return en.set(e,{component:$n(t)?t.__vccOpts:t,instances:new Set}),!0})),rerender:tn((function(e,t){const n=en.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:tn((function(e,t){const n=en.get(e);if(!n)return;const{component:o,instances:r}=n;if(!Zt.has(o)){t=$n(t)?t.__vccOpts:t,Q(o,t);for(const e in o)"__file"===e||e in t||delete o[e];Zt.add(o),Bt((()=>{Zt.delete(o)}))}Array.from(r).forEach((e=>{e.parent?qt(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 en=new Map;function tn(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 nn={};function on(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=J,c=jn){"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(bt(e)?(u=()=>e.value,p=!!e._shallow):vt(e)?(u=()=>e,o=!0):Z(e)?(d=!0,p=e.some(vt),u=()=>e.map((e=>bt(e)?e.value:vt(e)?sn(e):te(e)?Rt(e,c,2):void("production"!==process.env.NODE_ENV&&a(e))))):te(e)?u=t?()=>Rt(e,c,2):()=>{if(!c||!c.isUnmounted)return l&&l(),Dt(e,c,3,[f])}:(u=H,"production"!==process.env.NODE_ENV&&a(e)),t&&o){const e=u;u=()=>sn(e())}let f=e=>{l=g.options.onStop=()=>{Rt(e,c,4)}},h=d?[]:nn;const _=()=>{if(g.active)if(t){const e=g();(o||p||(d?e.some(((e,t)=>le(e,h[t]))):le(e,h)))&&(l&&l(),Dt(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){Ht(e,At,$t,Pt)}(_):_()};const g=ve(u,{lazy:!0,onTrack:i,onTrigger:s,scheduler:v});return function(e,t=jn){t&&(t.effects||(t.effects=[])).push(e)}(g,c),t?n?_():h=g():"post"===r?hn(g,c&&c.suspense):g(),()=>{ge(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=ne(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 te(t)?i=t:(i=t.handler,n=t),on(r,i.bind(o),n,this)}function sn(e,t=new Set){if(!re(e)||t.has(e)||e.__v_skip)return e;if(t.add(e),bt(e))sn(e.value,t);else if(Z(e))for(let n=0;n<e.length;n++)sn(e[n],t);else if("[object Set]"===se(e)||ee(e))e.forEach((e=>{sn(e,t)}));else if((e=>"[object Object]"===se(e))(e))for(const n in e)sn(e[n],t);return e}function cn(e){return te(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=Q(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 Q(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function pn(e){if(Z(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?Q(Q(Object.create(null),e),t):t}const hn=function(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):Bt(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=({key:e})=>null!=e?e:null,bn=({ref:e})=>null!=e?ne(e)||bt(e)||te(e)?{i:null,r:e}:e:null,En="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=Nn(e,t,!0);return n&&xn(o,n),o}if($n(e)&&(e=e.__vccOpts),t){(yt(t)||"__vInternal"in t)&&(t=Q({},t));let{class:e,style:n}=t;e&&!ne(e)&&(t.class=q(e)),re(n)&&(yt(n)&&!Z(n)&&(n=Q({},n)),t.style=z(n))}const s=ne(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:re(e)?4:te(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=mt(e));const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wn(t),ref:t&&bn(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),xn(c,n),128&s&&e.normalize(c),c}function Nn(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,c=t?function(...e){const t=Q({},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=q([t.class,o.class]));else if("style"===e)t.style=z([t.style,o.style]);else if(G(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&&wn(c),ref:t&&t.ref?n&&r?Z(r)?r.concat(bn(t)):[r,bn(t)]:bn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&Z(s)?s.map(On):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&&Nn(e.ssContent),ssFallback:e.ssFallback&&Nn(e.ssFallback),el:e.el,anchor:e.anchor}}function On(e){const t=Nn(e);return Z(e.children)&&(t.children=e.children.map(On)),t}function Sn(e=" ",t=0){return En(gn,null,e,t)}function xn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(Z(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),xn(e,n()),n._c&&(n._d=!0)))}{n=32;const e=t._;e||"__vInternal"in t||(t._ctx=null)}}else te(t)?(t={default:t,_ctx:null},n=32):(t=String(t),64&o?(n=16,t=[Sn(t)]):n=8);e.children=t,e.shapeFlag|=n}const Rn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(vt(t=wt(e.exposed))?t:new Proxy(t,Et),{get:(t,n)=>n in t?t[n]:n in Dn?Dn[n](e):void 0}));var t}(e)||e.proxy:Rn(e.parent):null,Dn=Q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?ht(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?ht(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?ht(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?ht(e.refs):e.refs,$parent:e=>Rn(e.parent),$root:e=>Rn(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=>()=>qt(e.update),$nextTick:e=>Lt.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?rn.bind(e):H}),Vn={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!==J&&o.__isScriptSetup&&Y(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!==J&&Y(o,t))return s[t]=0,o[t];if(r!==J&&Y(r,t))return s[t]=1,r[t];if((u=e.propsOptions[0])&&Y(u,t))return s[t]=2,i[t];if(n!==J&&Y(n,t))return s[t]=3,n[t];__VUE_OPTIONS_API__,s[t]=4}}const l=Dn[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!==J&&Y(n,t)?(s[t]=3,n[t]):(d=a.config.globalProperties,Y(d,t)?d[t]:void process.env.NODE_ENV)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;if(r!==J&&Y(r,t))r[t]=n;else if(o!==J&&Y(o,t))o[t]=n;else if(Y(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!==J&&Y(e,s)||t!==J&&Y(t,s)||(c=i[0])&&Y(c,s)||Y(o,s)||Y(Dn,s)||Y(r.config.globalProperties,s)}};"production"!==process.env.NODE_ENV&&(Vn.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))),Q({},Vn,{get(e,t){if(t!==Symbol.unscopables)return Vn.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!M(t);return"production"!==process.env.NODE_ENV&&!n&&Vn.has(e,t)&&Nt(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});let jn=null;const Cn=/(?:^|[-_])(\w)/g;function Tn(e){return te(e)&&e.displayName||e.name}function In(e,t,n=!1){let o=Tn(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(Cn,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}function $n(e){return te(e)&&"__vccOpts"in e}function An(e,t,n){const o=arguments.length;return 2===o?re(t)&&!Z(t)?mn(t)?En(e,null,[t]):En(e,t):En(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&mn(n)&&(n=[n]),En(e,t,n))}async function Pn(e){const t=await function(e){return r(this,void 0,void 0,(function(){var t,n,r,s,a,u;return i(this,(function(i){switch(i.label){case 0:return t=e.tenant_id,n=e.auth_server,r=void 0===n?"default":n,s=o(e,["tenant_id","auth_server"]),a=s,[4,c({wellknown_endpoint:"https://"+t+".crossid.io/oauth2/"+r+"/.well-known/openid-configuration"})];case 1:return u=i.sent(),a.authorization_endpoint=u.authorization_endpoint,a.token_endpoint=u.token_endpoint,a.issuer=u.issuer,a.logout_endpoint=a.issuer+"logout",[2,new F(a)]}}))}))}(e),n={user:null,isAuthenticated:!1},s={internalStore:n,client:t};return[cn({render(){return An("slot",null,this.$slots&&this.$slots.default?this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated,loginWithRedirect:this.loginWithRedirect,logoutWithRedirect:this.logoutWithRedirect,getToken:this.getToken}):null)},async mounted(){const e=await t.getUser();e||this.disable_auto_login?(this.internalStore.isAuthenticated=!!e,this.internalStore.user=e):this.loginWithRedirect({},window.location.href)},data:()=>s,props:{disable_auto_login:Boolean,post_logout_redirect_uri:String},methods:{getToken:async e=>t.getAccessToken(e),loginWithRedirect(e,t){sessionStorage.setItem("crossid.spa-js@returnTo",t),this.client.loginWithRedirect(e)},async logoutWithRedirect(e){e&&!e.post_logout_redirect_uri&&this.post_logout_redirect_uri&&(e.post_logout_redirect_uri=this.post_logout_redirect_uri),await this.client.logoutWithRedirect(e)}}}),cn({render(){return An("span",null,this.$slots&&this.$slots.default?this.$slots.default({user:this.internalStore.user,isAuthenticated:this.internalStore.isAuthenticated}):null)},async mounted(){this.loginRedirectCallback()},data:()=>s,methods:{async loginRedirectCallback(){try{await this.client.handleRedirectCallback();const e=sessionStorage.getItem("crossid.spa-js@returnTo"),o=await t.getUser();n.user=o||null,n.isAuthenticated=!!o,this.$router?this.$router.replace(e):(window.history.replaceState(null,null,e),this.$emit("navigate"))}catch(e){this.$emit("error",e)}}}})]}"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=>re(t)?t.__isVue?["div",e,"VueInstance"]:bt(t)?["div",{},["span",e,l(t)],"<",c(t.value),">"]:vt(t)?["div",{},["span",e,"Reactive"],"<",c(t),">"+(gt(t)?" (readonly)":"")]:gt(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",mt(e.props))),e.setupState!==J&&t.push(s("setup",e.setupState)),e.data!==J&&t.push(s("data",mt(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=Q({},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]:re(e)?["object",{object:r?mt(e):e}]:["span",n,String(e)]}function a(e,t){const n=e.type;if(te(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!!(Z(o)&&o.includes(t)||re(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{Pn as create}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@crossid/vue-wrapper", | ||
"scope": "@crossid", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"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
1058587
398
5