@bielu/scalar-signalr 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # @bielu/scalar-signalr
2
+
3
+ An interactive **SignalR console** plugin for the [Scalar](https://scalar.com) API Reference.
4
+
5
+ It reads the SignalR bindings from your AsyncAPI document(s) and renders a panel where you can
6
+ connect to a hub, invoke client-to-server methods, and watch server-to-client events live. It is
7
+ built as a drop-in replacement for the default `scalar.js` bundle: loading it re-exposes
8
+ `window.Scalar.createApiReference` with the SignalR plugin already registered.
9
+
10
+ This package is produced from, and consumed by, the
11
+ [`Bielu.AspNetCore.AsyncApi.Scalar.SignalR`](https://github.com/bielu/Bielu.AspNetCore.AsyncApi)
12
+ .NET package (which embeds the built bundle), but it is also published standalone to npm so it can
13
+ be loaded from a CDN or bundled by hand.
14
+
15
+ ## Standalone usage (CDN)
16
+
17
+ ```html
18
+ <div id="app"></div>
19
+ <!-- Replaces the default scalar.js bundle -->
20
+ <script src="https://cdn.jsdelivr.net/npm/@bielu/scalar-signalr"></script>
21
+ <script>
22
+ window.__BIELU_SCALAR_SIGNALR__ = {
23
+ documents: [{ name: 'signalr', url: '/asyncapi/signalr.json' }],
24
+ }
25
+ Scalar.createApiReference('#app', {
26
+ sources: [{ url: '/asyncapi/signalr.json' }],
27
+ })
28
+ </script>
29
+ ```
30
+
31
+ The SignalR documents can be provided either via the global `window.__BIELU_SCALAR_SIGNALR__`
32
+ or inline on the Scalar config as `config.signalr`.
33
+
34
+ ## Programmatic usage
35
+
36
+ ```ts
37
+ import { createApiReference, createSignalRPlugin } from '@bielu/scalar-signalr'
38
+
39
+ // Either use the wrapper (auto-registers the plugin) …
40
+ createApiReference('#app', { sources: [{ url: '/asyncapi/signalr.json' }] })
41
+
42
+ // … or register the plugin yourself on the stock Scalar API Reference:
43
+ // plugins: [createSignalRPlugin([{ name: 'signalr', url: '/asyncapi/signalr.json' }])]
44
+ ```
45
+
46
+ ## Auth integration
47
+
48
+ Scalar owns the top-level Authentication UI. When the user selects a security scheme there, the
49
+ SignalR console picks up the credentials automatically at **Connect** time — no separate login step
50
+ is needed.
51
+
52
+ **Requires Scalar ≥ 2.16.12** (the plugin auth-state API, upstreamed in
53
+ [scalar/scalar#9639](https://github.com/scalar/scalar/pull/9639)). On older Scalar versions that
54
+ predate the API, the console connects without credentials (graceful no-op).
55
+
56
+ ### How credentials are mapped to the SignalR client
57
+
58
+ | Scheme | Location | SignalR mapping |
59
+ |---|---|---|
60
+ | `apiKey` | `query` | Key appended to hub URL as `?<name>=<value>` |
61
+ | `apiKey` | `header` | **Warning logged** — browser WS/SSE cannot set headers; falls back to query |
62
+ | `http` bearer | — | `accessTokenFactory: () => token` |
63
+ | `oauth2` / `openIdConnect` | — | `accessTokenFactory: () => token` |
64
+ | `http` basic | — | **Warning logged** — not sendable over WS/SSE; connect proceeds without auth |
65
+
66
+ The scheme definition is read from `components.securitySchemes` in the AsyncAPI document. The
67
+ console matches the Scalar document name to the selected scheme; if no exact match is found it
68
+ falls back to the sole document in Scalar's exported auth state.
69
+
70
+ ## Build
71
+
72
+ ```bash
73
+ npm install
74
+ npm run build # -> dist/plugin.js (IIFE) + dist/standalone.js (Scalar + plugin) + dist/types
75
+ npm run typecheck
76
+ ```
77
+
78
+ `dist/plugin.js` hooks an already-loaded Scalar (`MapScalarSignalRAssets()` serves it next to
79
+ Scalar's own bundle). `dist/standalone.js` prepends Scalar's prebuilt browser bundle for pages
80
+ where nothing else loads Scalar — it is what `ScalarAspireOptions.BundleUrl` is pointed at in the
81
+ Aspire setup, since that option *replaces* Scalar's bundle.
82
+
83
+ ## License
84
+
85
+ MIT © Arkadiusz Biel
package/dist/plugin.js ADDED
@@ -0,0 +1,22 @@
1
+ var BieluScalarSignalR=(function(Kt){"use strict";let Vs;function Ks(t){qs(t)&&(Vs=t)}function ai(){return Vs}function qs(t){return t!=null&&typeof t=="object"&&typeof t.getAuthSecrets=="function"&&typeof t.getAuthSelectedSchemas=="function"&&typeof t.export=="function"}function ui(t){return!t||!Array.isArray(t.selectedSchemes)?[]:t.selectedSchemes.flatMap(e=>e&&typeof e=="object"?Object.keys(e):[])}function fi(t){return Object.entries(t).some(([e,n])=>e.startsWith("x-scalar-secret-")&&typeof n=="string"&&n.length>0)}function hi(t,e){const n=t.export()??{};if(n[e])return e;const s=i=>i.toLowerCase().replace(/[^a-z0-9]/g,""),o=Object.keys(n).find(i=>s(i)===s(e));return o||e}function di(t,e,n){if(!qs(n)||!e)return[];const s=hi(n,t),r=ui(n.getAuthSelectedSchemas({type:"document",documentName:s})),o=r.length>0?r:Object.keys(e),i=[];for(const c of o){const l=e[c];if(!l)continue;const a=n.getAuthSecrets(s,c);!a||!fi(a)||i.push({schemeName:c,type:a.type||l.type||"",scheme:l,secrets:a})}return i}/**
2
+ * @vue/shared v3.5.39
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function es(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Z={},Pt=[],Be=()=>{},zs=()=>!1,mn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),bn=t=>t.startsWith("onUpdate:"),le=Object.assign,ts=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},pi=Object.prototype.hasOwnProperty,q=(t,e)=>pi.call(t,e),O=Array.isArray,At=t=>qt(t)==="[object Map]",yn=t=>qt(t)==="[object Set]",Js=t=>qt(t)==="[object Date]",M=t=>typeof t=="function",re=t=>typeof t=="string",Ve=t=>typeof t=="symbol",X=t=>t!==null&&typeof t=="object",Gs=t=>(X(t)||M(t))&&M(t.then)&&M(t.catch),Xs=Object.prototype.toString,qt=t=>Xs.call(t),gi=t=>qt(t).slice(8,-1),vn=t=>qt(t)==="[object Object]",ns=t=>re(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,zt=es(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wn=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},_i=/-\w/g,xe=wn(t=>t.replace(_i,e=>e.slice(1).toUpperCase())),mi=/\B([A-Z])/g,De=wn(t=>t.replace(mi,"-$1").toLowerCase()),Ys=wn(t=>t.charAt(0).toUpperCase()+t.slice(1)),ss=wn(t=>t?`on${Ys(t)}`:""),Ke=(t,e)=>!Object.is(t,e),Sn=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Qs=(t,e,n,s=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:n})},Cn=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Zs=t=>{const e=re(t)?Number(t):NaN;return isNaN(e)?t:e};let er;const xn=()=>er||(er=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rs(t){if(O(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],r=re(s)?wi(s):rs(s);if(r)for(const o in r)e[o]=r[o]}return e}else if(re(t)||X(t))return t}const bi=/;(?![^(]*\))/g,yi=/:([^]+)/,vi=/\/\*[^]*?\*\//g;function wi(t){const e={};return t.replace(vi,"").split(bi).forEach(n=>{if(n){const s=n.split(yi);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function En(t){let e="";if(re(t))e=t;else if(O(t))for(let n=0;n<t.length;n++){const s=En(t[n]);s&&(e+=s+" ")}else if(X(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Si=es("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function tr(t){return!!t||t===""}function Ci(t,e){if(t.length!==e.length)return!1;let n=!0;for(let s=0;n&&s<t.length;s++)n=Jt(t[s],e[s]);return n}function Jt(t,e){if(t===e)return!0;let n=Js(t),s=Js(e);if(n||s)return n&&s?t.getTime()===e.getTime():!1;if(n=Ve(t),s=Ve(e),n||s)return t===e;if(n=O(t),s=O(e),n||s)return n&&s?Ci(t,e):!1;if(n=X(t),s=X(e),n||s){if(!n||!s)return!1;const r=Object.keys(t).length,o=Object.keys(e).length;if(r!==o)return!1;for(const i in t){const c=t.hasOwnProperty(i),l=e.hasOwnProperty(i);if(c&&!l||!c&&l||!Jt(t[i],e[i]))return!1}}return String(t)===String(e)}function xi(t,e){return t.findIndex(n=>Jt(n,e))}const nr=t=>!!(t&&t.__v_isRef===!0),ae=t=>re(t)?t:t==null?"":O(t)||X(t)&&(t.toString===Xs||!M(t.toString))?nr(t)?ae(t.value):JSON.stringify(t,sr,2):String(t),sr=(t,e)=>nr(e)?sr(t,e.value):At(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,r],o)=>(n[os(s,o)+" =>"]=r,n),{})}:yn(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>os(n))}:Ve(e)?os(e):X(e)&&!O(e)&&!vn(e)?String(e):e,os=(t,e="")=>{var n;return Ve(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
6
+ * @vue/reactivity v3.5.39
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let he;class Ei{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&he&&(he.active?(this.parent=he,this.index=(he.scopes||(he.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=he;try{return he=this,e()}finally{he=n}}}on(){++this._on===1&&(this.prevScope=he,he=this)}off(){if(this._on>0&&--this._on===0){if(he===this)he=this.prevScope;else{let e=he;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Ti(){return he}let ne;const is=new WeakSet;class rr{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,he&&(he.active?he.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,is.has(this)&&(is.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ir(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,fr(this),cr(this);const e=ne,n=je;ne=this,je=!0;try{return this.fn()}finally{lr(this),ne=e,je=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)us(e);this.deps=this.depsTail=void 0,fr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?is.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){as(this)&&this.run()}get dirty(){return as(this)}}let or=0,Gt,Xt;function ir(t,e=!1){if(t.flags|=8,e){t.next=Xt,Xt=t;return}t.next=Gt,Gt=t}function cs(){or++}function ls(){if(--or>0)return;if(Xt){let e=Xt;for(Xt=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Gt;){let e=Gt;for(Gt=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=n}}if(t)throw t}function cr(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function lr(t){let e,n=t.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),us(s),ki(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}t.deps=e,t.depsTail=n}function as(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(ar(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function ar(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Yt)||(t.globalVersion=Yt,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!as(t))))return;t.flags|=2;const e=t.dep,n=ne,s=je;ne=t,je=!0;try{cr(t);const r=t.fn(t._value);(e.version===0||Ke(r,t._value))&&(t.flags|=128,t._value=r,e.version++)}catch(r){throw e.version++,r}finally{ne=n,je=s,lr(t),t.flags&=-3}}function us(t,e=!1){const{dep:n,prevSub:s,nextSub:r}=t;if(s&&(s.nextSub=r,t.prevSub=void 0),r&&(r.prevSub=s,t.nextSub=void 0),n.subs===t&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)us(o,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function ki(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let je=!0;const ur=[];function He(){ur.push(je),je=!1}function Le(){const t=ur.pop();je=t===void 0?!0:t}function fr(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=ne;ne=void 0;try{e()}finally{ne=n}}}let Yt=0;class Ii{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fs{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ne||!je||ne===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ne)n=this.activeLink=new Ii(ne,this),ne.deps?(n.prevDep=ne.depsTail,ne.depsTail.nextDep=n,ne.depsTail=n):ne.deps=ne.depsTail=n,hr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ne.depsTail,n.nextDep=void 0,ne.depsTail.nextDep=n,ne.depsTail=n,ne.deps===n&&(ne.deps=s)}return n}trigger(e){this.version++,Yt++,this.notify(e)}notify(e){cs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ls()}}}function hr(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)hr(s)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const hs=new WeakMap,mt=Symbol(""),ds=Symbol(""),Qt=Symbol("");function be(t,e,n){if(je&&ne){let s=hs.get(t);s||hs.set(t,s=new Map);let r=s.get(n);r||(s.set(n,r=new fs),r.map=s,r.key=n),r.track()}}function et(t,e,n,s,r,o){const i=hs.get(t);if(!i){Yt++;return}const c=l=>{l&&l.trigger()};if(cs(),e==="clear")i.forEach(c);else{const l=O(t),a=l&&ns(n);if(l&&n==="length"){const f=Number(s);i.forEach((d,x)=>{(x==="length"||x===Qt||!Ve(x)&&x>=f)&&c(d)})}else switch((n!==void 0||i.has(void 0))&&c(i.get(n)),a&&c(i.get(Qt)),e){case"add":l?a&&c(i.get("length")):(c(i.get(mt)),At(t)&&c(i.get(ds)));break;case"delete":l||(c(i.get(mt)),At(t)&&c(i.get(ds)));break;case"set":At(t)&&c(i.get(mt));break}}ls()}function Rt(t){const e=V(t);return e===t?e:(be(e,"iterate",Qt),Oe(t)?e:e.map(Fe))}function Tn(t){return be(t=V(t),"iterate",Qt),t}function qe(t,e){return nt(t)?$t(bt(t)?Fe(e):e):Fe(e)}const Pi={__proto__:null,[Symbol.iterator](){return ps(this,Symbol.iterator,t=>qe(this,t))},concat(...t){return Rt(this).concat(...t.map(e=>O(e)?Rt(e):e))},entries(){return ps(this,"entries",t=>(t[1]=qe(this,t[1]),t))},every(t,e){return tt(this,"every",t,e,void 0,arguments)},filter(t,e){return tt(this,"filter",t,e,n=>n.map(s=>qe(this,s)),arguments)},find(t,e){return tt(this,"find",t,e,n=>qe(this,n),arguments)},findIndex(t,e){return tt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return tt(this,"findLast",t,e,n=>qe(this,n),arguments)},findLastIndex(t,e){return tt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return tt(this,"forEach",t,e,void 0,arguments)},includes(...t){return gs(this,"includes",t)},indexOf(...t){return gs(this,"indexOf",t)},join(t){return Rt(this).join(t)},lastIndexOf(...t){return gs(this,"lastIndexOf",t)},map(t,e){return tt(this,"map",t,e,void 0,arguments)},pop(){return Zt(this,"pop")},push(...t){return Zt(this,"push",t)},reduce(t,...e){return dr(this,"reduce",t,e)},reduceRight(t,...e){return dr(this,"reduceRight",t,e)},shift(){return Zt(this,"shift")},some(t,e){return tt(this,"some",t,e,void 0,arguments)},splice(...t){return Zt(this,"splice",t)},toReversed(){return Rt(this).toReversed()},toSorted(t){return Rt(this).toSorted(t)},toSpliced(...t){return Rt(this).toSpliced(...t)},unshift(...t){return Zt(this,"unshift",t)},values(){return ps(this,"values",t=>qe(this,t))}};function ps(t,e,n){const s=Tn(t),r=s[e]();return s!==t&&!Oe(t)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Ai=Array.prototype;function tt(t,e,n,s,r,o){const i=Tn(t),c=i!==t&&!Oe(t),l=i[e];if(l!==Ai[e]){const d=l.apply(t,o);return c?Fe(d):d}let a=n;i!==t&&(c?a=function(d,x){return n.call(this,qe(t,d),x,t)}:n.length>2&&(a=function(d,x){return n.call(this,d,x,t)}));const f=l.call(i,a,s);return c&&r?r(f):f}function dr(t,e,n,s){const r=Tn(t),o=r!==t&&!Oe(t);let i=n,c=!1;r!==t&&(o?(c=s.length===0,i=function(a,f,d){return c&&(c=!1,a=qe(t,a)),n.call(this,a,qe(t,f),d,t)}):n.length>3&&(i=function(a,f,d){return n.call(this,a,f,d,t)}));const l=r[e](i,...s);return c?qe(t,l):l}function gs(t,e,n){const s=V(t);be(s,"iterate",Qt);const r=s[e](...n);return(r===-1||r===!1)&&bs(n[0])?(n[0]=V(n[0]),s[e](...n)):r}function Zt(t,e,n=[]){He(),cs();const s=V(t)[e].apply(t,n);return ls(),Le(),s}const Ri=es("__proto__,__v_isRef,__isVue"),pr=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Ve));function $i(t){Ve(t)||(t=String(t));const e=V(this);return be(e,"has",t),e.hasOwnProperty(t)}class gr{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){if(n==="__v_skip")return e.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?wr:vr:o?yr:br).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const i=O(e);if(!r){let l;if(i&&(l=Pi[n]))return l;if(n==="hasOwnProperty")return $i}const c=Reflect.get(e,n,de(e)?e:s);if((Ve(n)?pr.has(n):Ri(n))||(r||be(e,"get",n),o))return c;if(de(c)){const l=i&&ns(n)?c:c.value;return r&&X(l)?ms(l):l}return X(c)?r?ms(c):ft(c):c}}class _r extends gr{constructor(e=!1){super(!1,e)}set(e,n,s,r){let o=e[n];const i=O(e)&&ns(n);if(!this._isShallow){const a=nt(o);if(!Oe(s)&&!nt(s)&&(o=V(o),s=V(s)),!i&&de(o)&&!de(s))return a||(o.value=s),!0}const c=i?Number(n)<e.length:q(e,n),l=Reflect.set(e,n,s,de(e)?e:r);return e===V(r)&&l&&(c?Ke(s,o)&&et(e,"set",n,s):et(e,"add",n,s)),l}deleteProperty(e,n){const s=q(e,n);e[n];const r=Reflect.deleteProperty(e,n);return r&&s&&et(e,"delete",n,void 0),r}has(e,n){const s=Reflect.has(e,n);return(!Ve(n)||!pr.has(n))&&be(e,"has",n),s}ownKeys(e){return be(e,"iterate",O(e)?"length":mt),Reflect.ownKeys(e)}}class mr extends gr{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const Di=new _r,Oi=new mr,Ni=new _r(!0),Mi=new mr(!0),_s=t=>t,kn=t=>Reflect.getPrototypeOf(t);function ji(t,e,n){return function(...s){const r=this.__v_raw,o=V(r),i=At(o),c=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,a=r[t](...s),f=n?_s:e?$t:Fe;return!e&&be(o,"iterate",l?ds:mt),le(Object.create(a),{next(){const{value:d,done:x}=a.next();return x?{value:d,done:x}:{value:c?[f(d[0]),f(d[1])]:f(d),done:x}}})}}function In(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Hi(t,e){const n={get(r){const o=this.__v_raw,i=V(o),c=V(r);t||(Ke(r,c)&&be(i,"get",r),be(i,"get",c));const{has:l}=kn(i),a=e?_s:t?$t:Fe;if(l.call(i,r))return a(o.get(r));if(l.call(i,c))return a(o.get(c));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!t&&be(V(r),"iterate",mt),r.size},has(r){const o=this.__v_raw,i=V(o),c=V(r);return t||(Ke(r,c)&&be(i,"has",r),be(i,"has",c)),r===c?o.has(r):o.has(r)||o.has(c)},forEach(r,o){const i=this,c=i.__v_raw,l=V(c),a=e?_s:t?$t:Fe;return!t&&be(l,"iterate",mt),c.forEach((f,d)=>r.call(o,a(f),a(d),i))}};return le(n,t?{add:In("add"),set:In("set"),delete:In("delete"),clear:In("clear")}:{add(r){const o=V(this),i=kn(o),c=V(r),l=!e&&!Oe(r)&&!nt(r)?c:r;return i.has.call(o,l)||Ke(r,l)&&i.has.call(o,r)||Ke(c,l)&&i.has.call(o,c)||(o.add(l),et(o,"add",l,l)),this},set(r,o){!e&&!Oe(o)&&!nt(o)&&(o=V(o));const i=V(this),{has:c,get:l}=kn(i);let a=c.call(i,r);a||(r=V(r),a=c.call(i,r));const f=l.call(i,r);return i.set(r,o),a?Ke(o,f)&&et(i,"set",r,o):et(i,"add",r,o),this},delete(r){const o=V(this),{has:i,get:c}=kn(o);let l=i.call(o,r);l||(r=V(r),l=i.call(o,r)),c&&c.call(o,r);const a=o.delete(r);return l&&et(o,"delete",r,void 0),a},clear(){const r=V(this),o=r.size!==0,i=r.clear();return o&&et(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=ji(r,t,e)}),n}function Pn(t,e){const n=Hi(t,e);return(s,r,o)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?s:Reflect.get(q(n,r)&&r in s?n:s,r,o)}const Li={get:Pn(!1,!1)},Fi={get:Pn(!1,!0)},Ui={get:Pn(!0,!1)},Wi={get:Pn(!0,!0)},br=new WeakMap,yr=new WeakMap,vr=new WeakMap,wr=new WeakMap;function Bi(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ft(t){return nt(t)?t:An(t,!1,Di,Li,br)}function Vi(t){return An(t,!1,Ni,Fi,yr)}function ms(t){return An(t,!0,Oi,Ui,vr)}function Uu(t){return An(t,!0,Mi,Wi,wr)}function An(t,e,n,s,r){if(!X(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const o=r.get(t);if(o)return o;const i=Bi(gi(t));if(i===0)return t;const c=new Proxy(t,i===2?s:n);return r.set(t,c),c}function bt(t){return nt(t)?bt(t.__v_raw):!!(t&&t.__v_isReactive)}function nt(t){return!!(t&&t.__v_isReadonly)}function Oe(t){return!!(t&&t.__v_isShallow)}function bs(t){return t?!!t.__v_raw:!1}function V(t){const e=t&&t.__v_raw;return e?V(e):t}function Ki(t){return!q(t,"__v_skip")&&Object.isExtensible(t)&&Qs(t,"__v_skip",!0),t}const Fe=t=>X(t)?ft(t):t,$t=t=>X(t)?ms(t):t;function de(t){return t?t.__v_isRef===!0:!1}function st(t){return qi(t,!1)}function qi(t,e){return de(t)?t:new zi(t,e)}class zi{constructor(e,n){this.dep=new fs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:V(e),this._value=n?e:Fe(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,s=this.__v_isShallow||Oe(e)||nt(e);e=s?e:V(e),Ke(e,n)&&(this._rawValue=e,this._value=s?e:Fe(e),this.dep.trigger())}}function Sr(t){return de(t)?t.value:t}const Ji={get:(t,e,n)=>e==="__v_raw"?t:Sr(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const r=t[e];return de(r)&&!de(n)?(r.value=n,!0):Reflect.set(t,e,n,s)}};function Cr(t){return bt(t)?t:new Proxy(t,Ji)}class Gi{constructor(e,n,s){this.fn=e,this.setter=n,this._value=void 0,this.dep=new fs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Yt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ne!==this)return ir(this,!0),!0}get value(){const e=this.dep.track();return ar(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Xi(t,e,n=!1){let s,r;return M(t)?s=t:(s=t.get,r=t.set),new Gi(s,r,n)}const Rn={},$n=new WeakMap;let yt;function Yi(t,e=!1,n=yt){if(n){let s=$n.get(n);s||$n.set(n,s=[]),s.push(t)}}function Qi(t,e,n=Z){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:c,call:l}=n,a=D=>r?D:Oe(D)||r===!1||r===0?rt(D,1):rt(D);let f,d,x,k,U=!1,P=!1;if(de(t)?(d=()=>t.value,U=Oe(t)):bt(t)?(d=()=>a(t),U=!0):O(t)?(P=!0,U=t.some(D=>bt(D)||Oe(D)),d=()=>t.map(D=>{if(de(D))return D.value;if(bt(D))return a(D);if(M(D))return l?l(D,2):D()})):M(t)?e?d=l?()=>l(t,2):t:d=()=>{if(x){He();try{x()}finally{Le()}}const D=yt;yt=f;try{return l?l(t,3,[k]):t(k)}finally{yt=D}}:d=Be,e&&r){const D=d,oe=r===!0?1/0:r;d=()=>rt(D(),oe)}const L=Ti(),J=()=>{f.stop(),L&&L.active&&ts(L.effects,f)};if(o&&e){const D=e;e=(...oe)=>{const Me=D(...oe);return J(),Me}}let H=P?new Array(t.length).fill(Rn):Rn;const Y=D=>{if(!(!(f.flags&1)||!f.dirty&&!D))if(e){const oe=f.run();if(D||r||U||(P?oe.some((Me,ve)=>Ke(Me,H[ve])):Ke(oe,H))){x&&x();const Me=yt;yt=f;try{const ve=[oe,H===Rn?void 0:P&&H[0]===Rn?[]:H,k];H=oe,l?l(e,3,ve):e(...ve)}finally{yt=Me}}}else f.run()};return c&&c(Y),f=new rr(d),f.scheduler=i?()=>i(Y,!1):Y,k=D=>Yi(D,!1,f),x=f.onStop=()=>{const D=$n.get(f);if(D){if(l)l(D,4);else for(const oe of D)oe();$n.delete(f)}},e?s?Y(!0):H=f.run():i?i(Y.bind(null,!0),!0):f.run(),J.pause=f.pause.bind(f),J.resume=f.resume.bind(f),J.stop=J,J}function rt(t,e=1/0,n){if(e<=0||!X(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,de(t))rt(t.value,e,n);else if(O(t))for(let s=0;s<t.length;s++)rt(t[s],e,n);else if(yn(t)||At(t))t.forEach(s=>{rt(s,e,n)});else if(vn(t)){for(const s in t)rt(t[s],e,n);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&rt(t[s],e,n)}return t}/**
10
+ * @vue/runtime-core v3.5.39
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/const en=[];let ys=!1;function Wu(t,...e){if(ys)return;ys=!0,He();const n=en.length?en[en.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=Zi();if(s)Dt(s,n,11,[t+e.map(o=>{var i,c;return(c=(i=o.toString)==null?void 0:i.call(o))!=null?c:JSON.stringify(o)}).join(""),n&&n.proxy,r.map(({vnode:o})=>`at <${So(n,o.type)}>`).join(`
14
+ `),r]);else{const o=[`[Vue warn]: ${t}`,...e];r.length&&o.push(`
15
+ `,...ec(r)),console.warn(...o)}Le(),ys=!1}function Zi(){let t=en[en.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const s=t.component&&t.component.parent;t=s&&s.vnode}return e}function ec(t){const e=[];return t.forEach((n,s)=>{e.push(...s===0?[]:[`
16
+ `],...tc(n))}),e}function tc({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",s=t.component?t.component.parent==null:!1,r=` at <${So(t.component,t.type,s)}`,o=">"+n;return t.props?[r,...nc(t.props),o]:[r+o]}function nc(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(s=>{e.push(...xr(s,t[s]))}),n.length>3&&e.push(" ..."),e}function xr(t,e,n){return re(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:de(e)?(e=xr(t,V(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):M(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=V(e),n?e:[`${t}=`,e])}function Dt(t,e,n,s){try{return s?t(...s):t()}catch(r){Dn(r,e,n)}}function Ue(t,e,n,s){if(M(t)){const r=Dt(t,e,n,s);return r&&Gs(r)&&r.catch(o=>{Dn(o,e,n)}),r}if(O(t)){const r=[];for(let o=0;o<t.length;o++)r.push(Ue(t[o],e,n,s));return r}}function Dn(t,e,n,s=!0){const r=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=e&&e.appContext.config||Z;if(e){let c=e.parent;const l=e.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const f=c.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](t,l,a)===!1)return}c=c.parent}if(o){He(),Dt(o,null,10,[t,l,a]),Le();return}}sc(t,n,r,s,i)}function sc(t,e,n,s=!0,r=!1){if(r)throw t;console.error(t)}const we=[];let ze=-1;const Ot=[];let ht=null,Nt=0;const Er=Promise.resolve();let On=null;function vs(t){const e=On||Er;return t?e.then(this?t.bind(this):t):e}function rc(t){let e=ze+1,n=we.length;for(;e<n;){const s=e+n>>>1,r=we[s],o=tn(r);o<t||o===t&&r.flags&2?e=s+1:n=s}return e}function ws(t){if(!(t.flags&1)){const e=tn(t),n=we[we.length-1];!n||!(t.flags&2)&&e>=tn(n)?we.push(t):we.splice(rc(e),0,t),t.flags|=1,Tr()}}function Tr(){On||(On=Er.then(Pr))}function oc(t){O(t)?Ot.push(...t):ht&&t.id===-1?ht.splice(Nt+1,0,t):t.flags&1||(Ot.push(t),t.flags|=1),Tr()}function kr(t,e,n=ze+1){for(;n<we.length;n++){const s=we[n];if(s&&s.flags&2){if(t&&s.id!==t.uid)continue;we.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ir(t){if(Ot.length){const e=[...new Set(Ot)].sort((n,s)=>tn(n)-tn(s));if(Ot.length=0,ht){ht.push(...e);return}for(ht=e,Nt=0;Nt<ht.length;Nt++){const n=ht[Nt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ht=null,Nt=0}}const tn=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Pr(t){try{for(ze=0;ze<we.length;ze++){const e=we[ze];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Dt(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ze<we.length;ze++){const e=we[ze];e&&(e.flags&=-2)}ze=-1,we.length=0,Ir(),On=null,(we.length||Ot.length)&&Pr()}}let Ne=null,Ar=null;function Nn(t){const e=Ne;return Ne=t,Ar=t&&t.type.__scopeId||null,e}function ic(t,e=Ne,n){if(!e||t._n)return t;const s=(...r)=>{s._d&&po(-1);const o=Nn(e);let i;try{i=t(...r)}finally{Nn(o),s._d&&po(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Mt(t,e){if(Ne===null)return t;const n=Kn(Ne),s=t.dirs||(t.dirs=[]);for(let r=0;r<e.length;r++){let[o,i,c,l=Z]=e[r];o&&(M(o)&&(o={mounted:o,updated:o}),o.deep&&rt(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:c,modifiers:l}))}return t}function vt(t,e,n,s){const r=t.dirs,o=e&&e.dirs;for(let i=0;i<r.length;i++){const c=r[i];o&&(c.oldValue=o[i].value);let l=c.dir[s];l&&(He(),Ue(l,n,8,[t.el,c,t,e]),Le())}}function cc(t,e){if(Ce){let n=Ce.provides;const s=Ce.parent&&Ce.parent.provides;s===n&&(n=Ce.provides=Object.create(s)),n[t]=e}}function Mn(t,e,n=!1){const s=ol();if(s||Ht){let r=Ht?Ht._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return n&&M(e)?e.call(s&&s.proxy):e}}const lc=Symbol.for("v-scx"),ac=()=>Mn(lc);function dt(t,e,n){return Rr(t,e,n)}function Rr(t,e,n=Z){const{immediate:s,deep:r,flush:o,once:i}=n,c=le({},n),l=e&&s||!e&&o!=="post";let a;if(fn){if(o==="sync"){const k=ac();a=k.__watcherHandles||(k.__watcherHandles=[])}else if(!l){const k=()=>{};return k.stop=Be,k.resume=Be,k.pause=Be,k}}const f=Ce;c.call=(k,U,P)=>Ue(k,f,U,P);let d=!1;o==="post"?c.scheduler=k=>{Ee(k,f&&f.suspense)}:o!=="sync"&&(d=!0,c.scheduler=(k,U)=>{U?k():ws(k)}),c.augmentJob=k=>{e&&(k.flags|=4),d&&(k.flags|=2,f&&(k.id=f.uid,k.i=f))};const x=Qi(t,e,c);return fn&&(a?a.push(x):l&&x()),x}function uc(t,e,n){const s=this.proxy,r=re(t)?t.includes(".")?$r(s,t):()=>s[t]:t.bind(s,s);let o;M(e)?o=e:(o=e.handler,n=e);const i=un(this),c=Rr(r,o.bind(s),n);return i(),c}function $r(t,e){const n=e.split(".");return()=>{let s=t;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const fc=Symbol("_vte"),hc=t=>t.__isTeleport,Ss=Symbol("_leaveCb");function Cs(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Cs(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Dr(t,e){return M(t)?le({name:t.name},e,{setup:t}):t}function Or(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Nr(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const jn=new WeakMap;function nn(t,e,n,s,r=!1){if(O(t)){t.forEach((P,L)=>nn(P,e&&(O(e)?e[L]:e),n,s,r));return}if(sn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&nn(t,e,n,s.component.subTree);return}const o=s.shapeFlag&4?Kn(s.component):s.el,i=r?null:o,{i:c,r:l}=t,a=e&&e.r,f=c.refs===Z?c.refs={}:c.refs,d=c.setupState,x=V(d),k=d===Z?zs:P=>Nr(f,P)?!1:q(x,P),U=(P,L)=>!(L&&Nr(f,L));if(a!=null&&a!==l){if(Mr(e),re(a))f[a]=null,k(a)&&(d[a]=null);else if(de(a)){const P=e;U(a,P.k)&&(a.value=null),P.k&&(f[P.k]=null)}}if(M(l)){He();try{Dt(l,c,12,[i,f])}finally{Le()}}else{const P=re(l),L=de(l);if(P||L){const J=()=>{if(t.f){const H=P?k(l)?d[l]:f[l]:U()||!t.k?l.value:f[t.k];if(r)O(H)&&ts(H,o);else if(O(H))H.includes(o)||H.push(o);else if(P)f[l]=[o],k(l)&&(d[l]=f[l]);else{const Y=[o];U(l,t.k)&&(l.value=Y),t.k&&(f[t.k]=Y)}}else P?(f[l]=i,k(l)&&(d[l]=i)):L&&(U(l,t.k)&&(l.value=i),t.k&&(f[t.k]=i))};if(i){const H=()=>{J(),jn.delete(t)};H.id=-1,jn.set(t,H),Ee(H,n)}else Mr(t),J()}}}function Mr(t){const e=jn.get(t);e&&(e.flags|=8,jn.delete(t))}xn().requestIdleCallback,xn().cancelIdleCallback;const sn=t=>!!t.type.__asyncLoader,jr=t=>t.type.__isKeepAlive;function dc(t,e){Hr(t,"a",e)}function pc(t,e){Hr(t,"da",e)}function Hr(t,e,n=Ce){const s=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(Hn(e,s,n),n){let r=n.parent;for(;r&&r.parent;)jr(r.parent.vnode)&&gc(s,e,n,r),r=r.parent}}function gc(t,e,n,s){const r=Hn(e,t,s,!0);Ur(()=>{ts(s[e],r)},n)}function Hn(t,e,n=Ce,s=!1){if(n){const r=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...i)=>{He();const c=un(n),l=Ue(e,n,t,i);return c(),Le(),l});return s?r.unshift(o):r.push(o),o}}const ot=t=>(e,n=Ce)=>{(!fn||t==="sp")&&Hn(t,(...s)=>e(...s),n)},_c=ot("bm"),Lr=ot("m"),mc=ot("bu"),bc=ot("u"),Fr=ot("bum"),Ur=ot("um"),yc=ot("sp"),vc=ot("rtg"),wc=ot("rtc");function Sc(t,e=Ce){Hn("ec",t,e)}const Cc=Symbol.for("v-ndc");function jt(t,e,n,s){let r;const o=n,i=O(t);if(i||re(t)){const c=i&&bt(t);let l=!1,a=!1;c&&(l=!Oe(t),a=nt(t),t=Tn(t)),r=new Array(t.length);for(let f=0,d=t.length;f<d;f++)r[f]=e(l?a?$t(Fe(t[f])):Fe(t[f]):t[f],f,void 0,o)}else if(typeof t=="number"){r=new Array(t);for(let c=0;c<t;c++)r[c]=e(c+1,c,void 0,o)}else if(X(t))if(t[Symbol.iterator])r=Array.from(t,(c,l)=>e(c,l,void 0,o));else{const c=Object.keys(t);r=new Array(c.length);for(let l=0,a=c.length;l<a;l++){const f=c[l];r[l]=e(t[f],f,l,o)}}else r=[];return r}const xs=t=>t?yo(t)?Kn(t):xs(t.parent):null,rn=le(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>xs(t.parent),$root:t=>xs(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Kr(t),$forceUpdate:t=>t.f||(t.f=()=>{ws(t.update)}),$nextTick:t=>t.n||(t.n=vs.bind(t.proxy)),$watch:t=>uc.bind(t)}),Es=(t,e)=>t!==Z&&!t.__isScriptSetup&&q(t,e),xc={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:l}=t;if(e[0]!=="$"){const x=i[e];if(x!==void 0)switch(x){case 1:return s[e];case 2:return r[e];case 4:return n[e];case 3:return o[e]}else{if(Es(s,e))return i[e]=1,s[e];if(r!==Z&&q(r,e))return i[e]=2,r[e];if(q(o,e))return i[e]=3,o[e];if(n!==Z&&q(n,e))return i[e]=4,n[e];Ts&&(i[e]=0)}}const a=rn[e];let f,d;if(a)return e==="$attrs"&&be(t.attrs,"get",""),a(t);if((f=c.__cssModules)&&(f=f[e]))return f;if(n!==Z&&q(n,e))return i[e]=4,n[e];if(d=l.config.globalProperties,q(d,e))return d[e]},set({_:t},e,n){const{data:s,setupState:r,ctx:o}=t;return Es(r,e)?(r[e]=n,!0):s!==Z&&q(s,e)?(s[e]=n,!0):q(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:r,props:o,type:i}},c){let l;return!!(n[c]||t!==Z&&c[0]!=="$"&&q(t,c)||Es(e,c)||q(o,c)||q(s,c)||q(rn,c)||q(r.config.globalProperties,c)||(l=i.__cssModules)&&l[c])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:q(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Wr(t){return O(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Ts=!0;function Ec(t){const e=Kr(t),n=t.proxy,s=t.ctx;Ts=!1,e.beforeCreate&&Br(e.beforeCreate,t,"bc");const{data:r,computed:o,methods:i,watch:c,provide:l,inject:a,created:f,beforeMount:d,mounted:x,beforeUpdate:k,updated:U,activated:P,deactivated:L,beforeDestroy:J,beforeUnmount:H,destroyed:Y,unmounted:D,render:oe,renderTracked:Me,renderTriggered:ve,errorCaptured:Pe,serverPrefetch:gt,expose:Ae,inheritAttrs:ee,components:_t,directives:Tt,filters:kt}=e;if(a&&Tc(a,s,null),i)for(const se in i){const K=i[se];M(K)&&(s[se]=K.bind(n))}if(r){const se=r.call(n,n);X(se)&&(t.data=ft(se))}if(Ts=!0,o)for(const se in o){const K=o[se],at=M(K)?K.bind(n,n):M(K.get)?K.get.bind(n,n):Be,Bt=!M(K)&&M(K.set)?K.set.bind(n):Be,ut=ke({get:at,set:Bt});Object.defineProperty(s,se,{enumerable:!0,configurable:!0,get:()=>ut.value,set:Re=>ut.value=Re})}if(c)for(const se in c)Vr(c[se],s,n,se);if(l){const se=M(l)?l.call(n):l;Reflect.ownKeys(se).forEach(K=>{cc(K,se[K])})}f&&Br(f,t,"c");function _e(se,K){O(K)?K.forEach(at=>se(at.bind(n))):K&&se(K.bind(n))}if(_e(_c,d),_e(Lr,x),_e(mc,k),_e(bc,U),_e(dc,P),_e(pc,L),_e(Sc,Pe),_e(wc,Me),_e(vc,ve),_e(Fr,H),_e(Ur,D),_e(yc,gt),O(Ae))if(Ae.length){const se=t.exposed||(t.exposed={});Ae.forEach(K=>{Object.defineProperty(se,K,{get:()=>n[K],set:at=>n[K]=at,enumerable:!0})})}else t.exposed||(t.exposed={});oe&&t.render===Be&&(t.render=oe),ee!=null&&(t.inheritAttrs=ee),_t&&(t.components=_t),Tt&&(t.directives=Tt),gt&&Or(t)}function Tc(t,e,n=Be){O(t)&&(t=ks(t));for(const s in t){const r=t[s];let o;X(r)?"default"in r?o=Mn(r.from||s,r.default,!0):o=Mn(r.from||s):o=Mn(r),de(o)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):e[s]=o}}function Br(t,e,n){Ue(O(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function Vr(t,e,n,s){let r=s.includes(".")?$r(n,s):()=>n[s];if(re(t)){const o=e[t];M(o)&&dt(r,o)}else if(M(t))dt(r,t.bind(n));else if(X(t))if(O(t))t.forEach(o=>Vr(o,e,n,s));else{const o=M(t.handler)?t.handler.bind(n):e[t.handler];M(o)&&dt(r,o,t)}}function Kr(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=t.appContext,c=o.get(e);let l;return c?l=c:!r.length&&!n&&!s?l=e:(l={},r.length&&r.forEach(a=>Ln(l,a,i,!0)),Ln(l,e,i)),X(e)&&o.set(e,l),l}function Ln(t,e,n,s=!1){const{mixins:r,extends:o}=e;o&&Ln(t,o,n,!0),r&&r.forEach(i=>Ln(t,i,n,!0));for(const i in e)if(!(s&&i==="expose")){const c=kc[i]||n&&n[i];t[i]=c?c(t[i],e[i]):e[i]}return t}const kc={data:qr,props:zr,emits:zr,methods:on,computed:on,beforeCreate:Se,created:Se,beforeMount:Se,mounted:Se,beforeUpdate:Se,updated:Se,beforeDestroy:Se,beforeUnmount:Se,destroyed:Se,unmounted:Se,activated:Se,deactivated:Se,errorCaptured:Se,serverPrefetch:Se,components:on,directives:on,watch:Pc,provide:qr,inject:Ic};function qr(t,e){return e?t?function(){return le(M(t)?t.call(this,this):t,M(e)?e.call(this,this):e)}:e:t}function Ic(t,e){return on(ks(t),ks(e))}function ks(t){if(O(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Se(t,e){return t?[...new Set([].concat(t,e))]:e}function on(t,e){return t?le(Object.create(null),t,e):e}function zr(t,e){return t?O(t)&&O(e)?[...new Set([...t,...e])]:le(Object.create(null),Wr(t),Wr(e??{})):e}function Pc(t,e){if(!t)return e;if(!e)return t;const n=le(Object.create(null),t);for(const s in e)n[s]=Se(t[s],e[s]);return n}function Jr(){return{app:null,config:{isNativeTag:zs,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ac=0;function Rc(t,e){return function(s,r=null){M(s)||(s=le({},s)),r!=null&&!X(r)&&(r=null);const o=Jr(),i=new WeakSet,c=[];let l=!1;const a=o.app={_uid:Ac++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:pl,get config(){return o.config},set config(f){},use(f,...d){return i.has(f)||(f&&M(f.install)?(i.add(f),f.install(a,...d)):M(f)&&(i.add(f),f(a,...d))),a},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),a},component(f,d){return d?(o.components[f]=d,a):o.components[f]},directive(f,d){return d?(o.directives[f]=d,a):o.directives[f]},mount(f,d,x){if(!l){const k=a._ceVNode||Je(s,r);return k.appContext=o,x===!0?x="svg":x===!1&&(x=void 0),t(k,f,x),l=!0,a._container=f,f.__vue_app__=a,Kn(k.component)}},onUnmount(f){c.push(f)},unmount(){l&&(Ue(c,a._instance,16),t(null,a._container),delete a._container.__vue_app__)},provide(f,d){return o.provides[f]=d,a},runWithContext(f){const d=Ht;Ht=a;try{return f()}finally{Ht=d}}};return a}}let Ht=null;const $c=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${xe(e)}Modifiers`]||t[`${De(e)}Modifiers`];function Dc(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||Z;let r=n;const o=e.startsWith("update:"),i=o&&$c(s,e.slice(7));i&&(i.trim&&(r=n.map(f=>re(f)?f.trim():f)),i.number&&(r=n.map(Cn)));let c,l=s[c=ss(e)]||s[c=ss(xe(e))];!l&&o&&(l=s[c=ss(De(e))]),l&&Ue(l,t,6,r);const a=s[c+"Once"];if(a){if(!t.emitted)t.emitted={};else if(t.emitted[c])return;t.emitted[c]=!0,Ue(a,t,6,r)}}const Oc=new WeakMap;function Gr(t,e,n=!1){const s=n?Oc:e.emitsCache,r=s.get(t);if(r!==void 0)return r;const o=t.emits;let i={},c=!1;if(!M(t)){const l=a=>{const f=Gr(a,e,!0);f&&(c=!0,le(i,f))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!c?(X(t)&&s.set(t,null),null):(O(o)?o.forEach(l=>i[l]=null):le(i,o),X(t)&&s.set(t,i),i)}function Fn(t,e){return!t||!mn(e)?!1:(e=e.slice(2),e=e==="Once"?e:e.replace(/Once$/,""),q(t,e[0].toLowerCase()+e.slice(1))||q(t,De(e))||q(t,e))}function Bu(){}function Xr(t){const{type:e,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:c,emit:l,render:a,renderCache:f,props:d,data:x,setupState:k,ctx:U,inheritAttrs:P}=t,L=Nn(t);let J,H;try{if(n.shapeFlag&4){const D=r||s,oe=D;J=Ge(a.call(oe,D,f,d,k,x,U)),H=c}else{const D=e;J=Ge(D.length>1?D(d,{attrs:c,slots:i,emit:l}):D(d,null)),H=e.props?c:Nc(c)}}catch(D){cn.length=0,Dn(D,t,1),J=Je(pt)}let Y=J;if(H&&P!==!1){const D=Object.keys(H),{shapeFlag:oe}=Y;D.length&&oe&7&&(o&&D.some(bn)&&(H=Mc(H,o)),Y=Lt(Y,H,!1,!0))}return n.dirs&&(Y=Lt(Y,null,!1,!0),Y.dirs=Y.dirs?Y.dirs.concat(n.dirs):n.dirs),n.transition&&Cs(Y,n.transition),J=Y,Nn(L),J}const Nc=t=>{let e;for(const n in t)(n==="class"||n==="style"||mn(n))&&((e||(e={}))[n]=t[n]);return e},Mc=(t,e)=>{const n={};for(const s in t)(!bn(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function jc(t,e,n){const{props:s,children:r,component:o}=t,{props:i,children:c,patchFlag:l}=e,a=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Yr(s,i,a):!!i;if(l&8){const f=e.dynamicProps;for(let d=0;d<f.length;d++){const x=f[d];if(Qr(i,s,x)&&!Fn(a,x))return!0}}}else return(r||c)&&(!c||!c.$stable)?!0:s===i?!1:s?i?Yr(s,i,a):!0:!!i;return!1}function Yr(t,e,n){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(Qr(e,t,o)&&!Fn(n,o))return!0}return!1}function Qr(t,e,n){const s=t[n],r=e[n];return n==="style"&&X(s)&&X(r)?!Jt(s,r):s!==r}function Hc({vnode:t,parent:e,suspense:n},s){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.suspense.vnode.el=r.el=s,t=r),r===t)(t=e.vnode).el=s,e=e.parent;else break}n&&n.activeBranch===t&&(n.vnode.el=s)}const Zr={},eo=()=>Object.create(Zr),to=t=>Object.getPrototypeOf(t)===Zr;function Lc(t,e,n,s=!1){const r={},o=eo();t.propsDefaults=Object.create(null),no(t,e,r,o);for(const i in t.propsOptions[0])i in r||(r[i]=void 0);n?t.props=s?r:Vi(r):t.type.props?t.props=r:t.props=o,t.attrs=o}function Fc(t,e,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=t,c=V(r),[l]=t.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=t.vnode.dynamicProps;for(let d=0;d<f.length;d++){let x=f[d];if(Fn(t.emitsOptions,x))continue;const k=e[x];if(l)if(q(o,x))k!==o[x]&&(o[x]=k,a=!0);else{const U=xe(x);r[U]=Is(l,c,U,k,t,!1)}else k!==o[x]&&(o[x]=k,a=!0)}}}else{no(t,e,r,o)&&(a=!0);let f;for(const d in c)(!e||!q(e,d)&&((f=De(d))===d||!q(e,f)))&&(l?n&&(n[d]!==void 0||n[f]!==void 0)&&(r[d]=Is(l,c,d,void 0,t,!0)):delete r[d]);if(o!==c)for(const d in o)(!e||!q(e,d))&&(delete o[d],a=!0)}a&&et(t.attrs,"set","")}function no(t,e,n,s){const[r,o]=t.propsOptions;let i=!1,c;if(e)for(let l in e){if(zt(l))continue;const a=e[l];let f;r&&q(r,f=xe(l))?!o||!o.includes(f)?n[f]=a:(c||(c={}))[f]=a:Fn(t.emitsOptions,l)||(!(l in s)||a!==s[l])&&(s[l]=a,i=!0)}if(o){const l=V(n),a=c||Z;for(let f=0;f<o.length;f++){const d=o[f];n[d]=Is(r,l,d,a[d],t,!q(a,d))}}return i}function Is(t,e,n,s,r,o){const i=t[n];if(i!=null){const c=q(i,"default");if(c&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&M(l)){const{propsDefaults:a}=r;if(n in a)s=a[n];else{const f=un(r);s=a[n]=l.call(null,e),f()}}else s=l;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!c?s=!1:i[1]&&(s===""||s===De(n))&&(s=!0))}return s}const Uc=new WeakMap;function so(t,e,n=!1){const s=n?Uc:e.propsCache,r=s.get(t);if(r)return r;const o=t.props,i={},c=[];let l=!1;if(!M(t)){const f=d=>{l=!0;const[x,k]=so(d,e,!0);le(i,x),k&&c.push(...k)};!n&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!o&&!l)return X(t)&&s.set(t,Pt),Pt;if(O(o))for(let f=0;f<o.length;f++){const d=xe(o[f]);ro(d)&&(i[d]=Z)}else if(o)for(const f in o){const d=xe(f);if(ro(d)){const x=o[f],k=i[d]=O(x)||M(x)?{type:x}:le({},x),U=k.type;let P=!1,L=!0;if(O(U))for(let J=0;J<U.length;++J){const H=U[J],Y=M(H)&&H.name;if(Y==="Boolean"){P=!0;break}else Y==="String"&&(L=!1)}else P=M(U)&&U.name==="Boolean";k[0]=P,k[1]=L,(P||q(k,"default"))&&c.push(d)}}const a=[i,c];return X(t)&&s.set(t,a),a}function ro(t){return t[0]!=="$"&&!zt(t)}const Ps=t=>t==="_"||t==="_ctx"||t==="$stable",As=t=>O(t)?t.map(Ge):[Ge(t)],Wc=(t,e,n)=>{if(e._n)return e;const s=ic((...r)=>As(e(...r)),n);return s._c=!1,s},oo=(t,e,n)=>{const s=t._ctx;for(const r in t){if(Ps(r))continue;const o=t[r];if(M(o))e[r]=Wc(r,o,s);else if(o!=null){const i=As(o);e[r]=()=>i}}},io=(t,e)=>{const n=As(e);t.slots.default=()=>n},co=(t,e,n)=>{for(const s in e)(n||!Ps(s))&&(t[s]=e[s])},Bc=(t,e,n)=>{const s=t.slots=eo();if(t.vnode.shapeFlag&32){const r=e._;r?(co(s,e,n),n&&Qs(s,"_",r,!0)):oo(e,s)}else e&&io(t,e)},Vc=(t,e,n)=>{const{vnode:s,slots:r}=t;let o=!0,i=Z;if(s.shapeFlag&32){const c=e._;c?n&&c===1?o=!1:co(r,e,n):(o=!e.$stable,oo(e,r)),i=e}else e&&(io(t,e),i={default:1});if(o)for(const c in r)!Ps(c)&&i[c]==null&&delete r[c]},Ee=Gc;function Kc(t){return qc(t)}function qc(t,e){const n=xn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:c,createComment:l,setText:a,setElementText:f,parentNode:d,nextSibling:x,setScopeId:k=Be,insertStaticContent:U}=t,P=(u,h,p,y=null,_=null,m=null,T=void 0,E=null,C=!!h.dynamicChildren)=>{if(u===h)return;u&&!an(u,h)&&(y=Vt(u),Re(u,_,m,!0),u=null),h.patchFlag===-2&&(C=!1,h.dynamicChildren=null);const{type:b,ref:$,shapeFlag:I}=h;switch(b){case Un:L(u,h,p,y);break;case pt:J(u,h,p,y);break;case $s:u==null&&H(h,p,y,T);break;case pe:_t(u,h,p,y,_,m,T,E,C);break;default:I&1?oe(u,h,p,y,_,m,T,E,C):I&6?Tt(u,h,p,y,_,m,T,E,C):(I&64||I&128)&&b.process(u,h,p,y,_,m,T,E,C,w)}$!=null&&_?nn($,u&&u.ref,m,h||u,!h):$==null&&u&&u.ref!=null&&nn(u.ref,null,m,u,!0)},L=(u,h,p,y)=>{if(u==null)s(h.el=c(h.children),p,y);else{const _=h.el=u.el;h.children!==u.children&&a(_,h.children)}},J=(u,h,p,y)=>{u==null?s(h.el=l(h.children||""),p,y):h.el=u.el},H=(u,h,p,y)=>{[u.el,u.anchor]=U(u.children,h,p,y,u.el,u.anchor)},Y=({el:u,anchor:h},p,y)=>{let _;for(;u&&u!==h;)_=x(u),s(u,p,y),u=_;s(h,p,y)},D=({el:u,anchor:h})=>{let p;for(;u&&u!==h;)p=x(u),r(u),u=p;r(h)},oe=(u,h,p,y,_,m,T,E,C)=>{if(h.type==="svg"?T="svg":h.type==="math"&&(T="mathml"),u==null)Me(h,p,y,_,m,T,E,C);else{const b=u.el&&u.el._isVueCE?u.el:null;try{b&&b._beginPatch(),gt(u,h,_,m,T,E,C)}finally{b&&b._endPatch()}}},Me=(u,h,p,y,_,m,T,E)=>{let C,b;const{props:$,shapeFlag:I,transition:R,dirs:N}=u;if(C=u.el=i(u.type,m,$&&$.is,$),I&8?f(C,u.children):I&16&&Pe(u.children,C,null,y,_,Rs(u,m),T,E),N&&vt(u,null,y,"created"),ve(C,u,u.scopeId,T,y),$){for(const te in $)te!=="value"&&!zt(te)&&o(C,te,null,$[te],m,y);"value"in $&&o(C,"value",null,$.value,m),(b=$.onVnodeBeforeMount)&&Xe(b,y,u)}N&&vt(u,null,y,"beforeMount");const B=zc(_,R);B&&R.beforeEnter(C),s(C,h,p),((b=$&&$.onVnodeMounted)||B||N)&&Ee(()=>{try{b&&Xe(b,y,u),B&&R.enter(C),N&&vt(u,null,y,"mounted")}finally{}},_)},ve=(u,h,p,y,_)=>{if(p&&k(u,p),y)for(let m=0;m<y.length;m++)k(u,y[m]);if(_){let m=_.subTree;if(h===m||ho(m.type)&&(m.ssContent===h||m.ssFallback===h)){const T=_.vnode;ve(u,T,T.scopeId,T.slotScopeIds,_.parent)}}},Pe=(u,h,p,y,_,m,T,E,C=0)=>{for(let b=C;b<u.length;b++){const $=u[b]=E?ct(u[b]):Ge(u[b]);P(null,$,h,p,y,_,m,T,E)}},gt=(u,h,p,y,_,m,T)=>{const E=h.el=u.el;let{patchFlag:C,dynamicChildren:b,dirs:$}=h;C|=u.patchFlag&16;const I=u.props||Z,R=h.props||Z;let N;if(p&&wt(p,!1),(N=R.onVnodeBeforeUpdate)&&Xe(N,p,h,u),$&&vt(h,u,p,"beforeUpdate"),p&&wt(p,!0),b&&(!u.dynamicChildren||u.dynamicChildren.length!==b.length)&&(C=0,T=!1,b=null),(I.innerHTML&&R.innerHTML==null||I.textContent&&R.textContent==null)&&f(E,""),b?Ae(u.dynamicChildren,b,E,p,y,Rs(h,_),m):T||K(u,h,E,null,p,y,Rs(h,_),m,!1),C>0){if(C&16)ee(E,I,R,p,_);else if(C&2&&I.class!==R.class&&o(E,"class",null,R.class,_),C&4&&o(E,"style",I.style,R.style,_),C&8){const B=h.dynamicProps;for(let te=0;te<B.length;te++){const Q=B[te],fe=I[Q],me=R[Q];(me!==fe||Q==="value")&&o(E,Q,fe,me,_,p)}}C&1&&u.children!==h.children&&f(E,h.children)}else!T&&b==null&&ee(E,I,R,p,_);((N=R.onVnodeUpdated)||$)&&Ee(()=>{N&&Xe(N,p,h,u),$&&vt(h,u,p,"updated")},y)},Ae=(u,h,p,y,_,m,T)=>{for(let E=0;E<h.length;E++){const C=u[E],b=h[E],$=C.el&&(C.type===pe||!an(C,b)||C.shapeFlag&198)?d(C.el):p;P(C,b,$,null,y,_,m,T,!0)}},ee=(u,h,p,y,_)=>{if(h!==p){if(h!==Z)for(const m in h)!zt(m)&&!(m in p)&&o(u,m,h[m],null,_,y);for(const m in p){if(zt(m))continue;const T=p[m],E=h[m];T!==E&&m!=="value"&&o(u,m,E,T,_,y)}"value"in p&&o(u,"value",h.value,p.value,_)}},_t=(u,h,p,y,_,m,T,E,C)=>{const b=h.el=u?u.el:c(""),$=h.anchor=u?u.anchor:c("");let{patchFlag:I,dynamicChildren:R,slotScopeIds:N}=h;N&&(E=E?E.concat(N):N),u==null?(s(b,p,y),s($,p,y),Pe(h.children||[],p,$,_,m,T,E,C)):I>0&&I&64&&R&&u.dynamicChildren&&u.dynamicChildren.length===R.length?(Ae(u.dynamicChildren,R,p,_,m,T,E),(h.key!=null||_&&h===_.subTree)&&lo(u,h,!0)):K(u,h,p,$,_,m,T,E,C)},Tt=(u,h,p,y,_,m,T,E,C)=>{h.slotScopeIds=E,u==null?h.shapeFlag&512?_.ctx.activate(h,p,y,T,C):kt(h,p,y,_,m,T,C):ge(u,h,C)},kt=(u,h,p,y,_,m,T)=>{const E=u.component=rl(u,y,_);if(jr(u)&&(E.ctx.renderer=w),il(E,!1,T),E.asyncDep){if(_&&_.registerDep(E,_e,T),!u.el){const C=E.subTree=Je(pt);J(null,C,h,p),u.placeholder=C.el}}else _e(E,u,h,p,_,m,T)},ge=(u,h,p)=>{const y=h.component=u.component;if(jc(u,h,p))if(y.asyncDep&&!y.asyncResolved){se(y,h,p);return}else y.next=h,y.update();else h.el=u.el,y.vnode=h},_e=(u,h,p,y,_,m,T)=>{const E=()=>{if(u.isMounted){let{next:I,bu:R,u:N,parent:B,vnode:te}=u;{const Qe=ao(u);if(Qe){I&&(I.el=te.el,se(u,I,T)),Qe.asyncDep.then(()=>{Ee(()=>{u.isUnmounted||b()},_)});return}}let Q=I,fe;wt(u,!1),I?(I.el=te.el,se(u,I,T)):I=te,R&&Sn(R),(fe=I.props&&I.props.onVnodeBeforeUpdate)&&Xe(fe,B,I,te),wt(u,!0);const me=Xr(u),Ye=u.subTree;u.subTree=me,P(Ye,me,d(Ye.el),Vt(Ye),u,_,m),I.el=me.el,Q===null&&Hc(u,me.el),N&&Ee(N,_),(fe=I.props&&I.props.onVnodeUpdated)&&Ee(()=>Xe(fe,B,I,te),_)}else{let I;const{el:R,props:N}=h,{bm:B,m:te,parent:Q,root:fe,type:me}=u,Ye=sn(h);wt(u,!1),B&&Sn(B),!Ye&&(I=N&&N.onVnodeBeforeMount)&&Xe(I,Q,h),wt(u,!0);{fe.ce&&fe.ce._hasShadowRoot()&&fe.ce._injectChildStyle(me,u.parent?u.parent.type:void 0);const Qe=u.subTree=Xr(u);P(null,Qe,p,y,u,_,m),h.el=Qe.el}if(te&&Ee(te,_),!Ye&&(I=N&&N.onVnodeMounted)){const Qe=h;Ee(()=>Xe(I,Q,Qe),_)}(h.shapeFlag&256||Q&&sn(Q.vnode)&&Q.vnode.shapeFlag&256)&&u.a&&Ee(u.a,_),u.isMounted=!0,h=p=y=null}};u.scope.on();const C=u.effect=new rr(E);u.scope.off();const b=u.update=C.run.bind(C),$=u.job=C.runIfDirty.bind(C);$.i=u,$.id=u.uid,C.scheduler=()=>ws($),wt(u,!0),b()},se=(u,h,p)=>{h.component=u;const y=u.vnode.props;u.vnode=h,u.next=null,Fc(u,h.props,y,p),Vc(u,h.children,p),He(),kr(u),Le()},K=(u,h,p,y,_,m,T,E,C=!1)=>{const b=u&&u.children,$=u?u.shapeFlag:0,I=h.children,{patchFlag:R,shapeFlag:N}=h;if(R>0){if(R&128){Bt(b,I,p,y,_,m,T,E,C);return}else if(R&256){at(b,I,p,y,_,m,T,E,C);return}}N&8?($&16&&It(b,_,m),I!==b&&f(p,I)):$&16?N&16?Bt(b,I,p,y,_,m,T,E,C):It(b,_,m,!0):($&8&&f(p,""),N&16&&Pe(I,p,y,_,m,T,E,C))},at=(u,h,p,y,_,m,T,E,C)=>{u=u||Pt,h=h||Pt;const b=u.length,$=h.length,I=Math.min(b,$);let R;for(R=0;R<I;R++){const N=h[R]=C?ct(h[R]):Ge(h[R]);P(u[R],N,p,null,_,m,T,E,C)}b>$?It(u,_,m,!0,!1,I):Pe(h,p,y,_,m,T,E,C,I)},Bt=(u,h,p,y,_,m,T,E,C)=>{let b=0;const $=h.length;let I=u.length-1,R=$-1;for(;b<=I&&b<=R;){const N=u[b],B=h[b]=C?ct(h[b]):Ge(h[b]);if(an(N,B))P(N,B,p,null,_,m,T,E,C);else break;b++}for(;b<=I&&b<=R;){const N=u[I],B=h[R]=C?ct(h[R]):Ge(h[R]);if(an(N,B))P(N,B,p,null,_,m,T,E,C);else break;I--,R--}if(b>I){if(b<=R){const N=R+1,B=N<$?h[N].el:y;for(;b<=R;)P(null,h[b]=C?ct(h[b]):Ge(h[b]),p,B,_,m,T,E,C),b++}}else if(b>R)for(;b<=I;)Re(u[b],_,m,!0),b++;else{const N=b,B=b,te=new Map;for(b=B;b<=R;b++){const $e=h[b]=C?ct(h[b]):Ge(h[b]);$e.key!=null&&te.set($e.key,b)}let Q,fe=0;const me=R-B+1;let Ye=!1,Qe=0;const _n=new Array(me);for(b=0;b<me;b++)_n[b]=0;for(b=N;b<=I;b++){const $e=u[b];if(fe>=me){Re($e,_,m,!0);continue}let Ze;if($e.key!=null)Ze=te.get($e.key);else for(Q=B;Q<=R;Q++)if(_n[Q-B]===0&&an($e,h[Q])){Ze=Q;break}Ze===void 0?Re($e,_,m,!0):(_n[Ze-B]=b+1,Ze>=Qe?Qe=Ze:Ye=!0,P($e,h[Ze],p,null,_,m,T,E,C),fe++)}const ii=Ye?Jc(_n):Pt;for(Q=ii.length-1,b=me-1;b>=0;b--){const $e=B+b,Ze=h[$e],ci=h[$e+1],li=$e+1<$?ci.el||fo(ci):y;_n[b]===0?P(null,Ze,p,li,_,m,T,E,C):Ye&&(Q<0||b!==ii[Q]?ut(Ze,p,li,2):Q--)}}},ut=(u,h,p,y,_=null)=>{const{el:m,type:T,transition:E,children:C,shapeFlag:b}=u;if(b&6){ut(u.component.subTree,h,p,y);return}if(b&128){u.suspense.move(h,p,y);return}if(b&64){T.move(u,h,p,w);return}if(T===pe){s(m,h,p);for(let I=0;I<C.length;I++)ut(C[I],h,p,y);s(u.anchor,h,p);return}if(T===$s){Y(u,h,p);return}if(y!==2&&b&1&&E)if(y===0)E.persisted&&!m[Ss]?s(m,h,p):(E.beforeEnter(m),s(m,h,p),Ee(()=>E.enter(m),_));else{const{leave:I,delayLeave:R,afterLeave:N}=E,B=()=>{u.ctx.isUnmounted?r(m):s(m,h,p)},te=()=>{const Q=m._isLeaving||!!m[Ss];m._isLeaving&&m[Ss](!0),E.persisted&&!Q?B():I(m,()=>{B(),N&&N()})};R?R(m,B,te):te()}else s(m,h,p)},Re=(u,h,p,y=!1,_=!1)=>{const{type:m,props:T,ref:E,children:C,dynamicChildren:b,shapeFlag:$,patchFlag:I,dirs:R,cacheIndex:N,memo:B}=u;if(I===-2&&(_=!1),E!=null&&(He(),nn(E,null,p,u,!0),Le()),N!=null&&(h.renderCache[N]=void 0),$&256){h.ctx.deactivate(u);return}const te=$&1&&R,Q=!sn(u);let fe;if(Q&&(fe=T&&T.onVnodeBeforeUnmount)&&Xe(fe,h,u),$&6)Zn(u.component,p,y);else{if($&128){u.suspense.unmount(p,y);return}te&&vt(u,null,h,"beforeUnmount"),$&64?u.type.remove(u,h,p,w,y):b&&!b.hasOnce&&(m!==pe||I>0&&I&64)?It(b,h,p,!1,!0):(m===pe&&I&384||!_&&$&16)&&It(C,h,p),y&&Qn(u)}const me=B!=null&&N==null;(Q&&(fe=T&&T.onVnodeUnmounted)||te||me)&&Ee(()=>{fe&&Xe(fe,h,u),te&&vt(u,null,h,"unmounted"),me&&(u.el=null)},p)},Qn=u=>{const{type:h,el:p,anchor:y,transition:_}=u;if(h===pe){gn(p,y);return}if(h===$s){D(u);return}const m=()=>{r(p),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(u.shapeFlag&1&&_&&!_.persisted){const{leave:T,delayLeave:E}=_,C=()=>T(p,m);E?E(u.el,m,C):C()}else m()},gn=(u,h)=>{let p;for(;u!==h;)p=x(u),r(u),u=p;r(h)},Zn=(u,h,p)=>{const{bum:y,scope:_,job:m,subTree:T,um:E,m:C,a:b}=u;uo(C),uo(b),y&&Sn(y),_.stop(),m&&(m.flags|=8,Re(T,u,h,p)),E&&Ee(E,h),Ee(()=>{u.isUnmounted=!0},h)},It=(u,h,p,y=!1,_=!1,m=0)=>{for(let T=m;T<u.length;T++)Re(u[T],h,p,y,_)},Vt=u=>{if(u.shapeFlag&6)return Vt(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const h=x(u.anchor||u.el),p=h&&h[fc];return p?x(p):h};let S=!1;const v=(u,h,p)=>{let y;u==null?h._vnode&&(Re(h._vnode,null,null,!0),y=h._vnode.component):P(h._vnode||null,u,h,null,null,null,p),h._vnode=u,S||(S=!0,kr(y),Ir(),S=!1)},w={p:P,um:Re,m:ut,r:Qn,mt:kt,mc:Pe,pc:K,pbc:Ae,n:Vt,o:t};return{render:v,hydrate:void 0,createApp:Rc(v)}}function Rs({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function wt({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function zc(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function lo(t,e,n=!1){const s=t.children,r=e.children;if(O(s)&&O(r))for(let o=0;o<s.length;o++){const i=s[o];let c=r[o];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=r[o]=ct(r[o]),c.el=i.el),!n&&c.patchFlag!==-2&&lo(i,c)),c.type===Un&&(c.patchFlag===-1&&(c=r[o]=ct(c)),c.el=i.el),c.type===pt&&!c.el&&(c.el=i.el)}}function Jc(t){const e=t.slice(),n=[0];let s,r,o,i,c;const l=t.length;for(s=0;s<l;s++){const a=t[s];if(a!==0){if(r=n[n.length-1],t[r]<a){e[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)c=o+i>>1,t[n[c]]<a?o=c+1:i=c;a<t[n[o]]&&(o>0&&(e[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=e[i];return n}function ao(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:ao(e)}function uo(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function fo(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?fo(e.subTree):null}const ho=t=>t.__isSuspense;function Gc(t,e){e&&e.pendingBranch?O(t)?e.effects.push(...t):e.effects.push(t):oc(t)}const pe=Symbol.for("v-fgt"),Un=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),$s=Symbol.for("v-stc"),cn=[];let Te=null;function z(t=!1){cn.push(Te=t?null:[])}function Xc(){cn.pop(),Te=cn[cn.length-1]||null}let ln=1;function po(t,e=!1){ln+=t,t<0&&Te&&e&&(Te.hasOnce=!0)}function go(t){return t.dynamicChildren=ln>0?Te||Pt:null,Xc(),ln>0&&Te&&Te.push(t),t}function G(t,e,n,s,r,o){return go(A(t,e,n,s,r,o,!0))}function Yc(t,e,n,s,r){return go(Je(t,e,n,s,r,!0))}function _o(t){return t?t.__v_isVNode===!0:!1}function an(t,e){return t.type===e.type&&t.key===e.key}const mo=({key:t})=>t??null,Wn=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?re(t)||de(t)||M(t)?{i:Ne,r:t,k:e,f:!!n}:t:null);function A(t,e=null,n=null,s=0,r=null,o=t===pe?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&mo(e),ref:e&&Wn(e),scopeId:Ar,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ne};return c?(Bn(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=re(n)?8:16),ln>0&&!i&&Te&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Te.push(l),l}const Je=Qc;function Qc(t,e=null,n=null,s=0,r=null,o=!1){if((!t||t===Cc)&&(t=pt),_o(t)){const c=Lt(t,e,!0);return n&&Bn(c,n),ln>0&&!o&&Te&&(c.shapeFlag&6?Te[Te.indexOf(t)]=c:Te.push(c)),c.patchFlag=-2,c}if(dl(t)&&(t=t.__vccOpts),e){e=Zc(e);let{class:c,style:l}=e;c&&!re(c)&&(e.class=En(c)),X(l)&&(bs(l)&&!O(l)&&(l=le({},l)),e.style=rs(l))}const i=re(t)?1:ho(t)?128:hc(t)?64:X(t)?4:M(t)?2:0;return A(t,e,n,s,r,i,o,!0)}function Zc(t){return t?bs(t)||to(t)?le({},t):t:null}function Lt(t,e,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:c,transition:l}=t,a=e?tl(r||{},e):r,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&mo(a),ref:e&&e.ref?n&&o?O(o)?o.concat(Wn(e)):[o,Wn(e)]:Wn(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:c,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==pe?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Lt(t.ssContent),ssFallback:t.ssFallback&&Lt(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&s&&Cs(f,l.clone(f)),f}function el(t=" ",e=0){return Je(Un,null,t,e)}function it(t="",e=!1){return e?(z(),Yc(pt,null,t)):Je(pt,null,t)}function Ge(t){return t==null||typeof t=="boolean"?Je(pt):O(t)?Je(pe,null,t.slice()):_o(t)?ct(t):Je(Un,null,String(t))}function ct(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Lt(t)}function Bn(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(O(e))n=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),Bn(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!to(e)?e._ctx=Ne:r===3&&Ne&&(Ne.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(M(e)){if(s&65){Bn(t,{default:e});return}e={default:e,_ctx:Ne},n=32}else e=String(e),s&64?(n=16,e=[el(e)]):n=8;t.children=e,t.shapeFlag|=n}function tl(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const r in s)if(r==="class")e.class!==s.class&&(e.class=En([e.class,s.class]));else if(r==="style")e.style=rs([e.style,s.style]);else if(mn(r)){const o=e[r],i=s[r];i&&o!==i&&!(O(o)&&o.includes(i))?e[r]=o?[].concat(o,i):i:i==null&&o==null&&!bn(r)&&(e[r]=i)}else r!==""&&(e[r]=s[r])}return e}function Xe(t,e,n,s=null){Ue(t,e,7,[n,s])}const nl=Jr();let sl=0;function rl(t,e,n){const s=t.type,r=(e?e.appContext:t.appContext)||nl,o={uid:sl++,vnode:t,type:s,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ei(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:so(s,r),emitsOptions:Gr(s,r),emit:null,emitted:null,propsDefaults:Z,inheritAttrs:s.inheritAttrs,ctx:Z,data:Z,props:Z,attrs:Z,slots:Z,refs:Z,setupState:Z,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=Dc.bind(null,o),t.ce&&t.ce(o),o}let Ce=null;const ol=()=>Ce||Ne;let Vn,Ds;{const t=xn(),e=(n,s)=>{let r;return(r=t[n])||(r=t[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Vn=e("__VUE_INSTANCE_SETTERS__",n=>Ce=n),Ds=e("__VUE_SSR_SETTERS__",n=>fn=n)}const un=t=>{const e=Ce;return Vn(t),t.scope.on(),()=>{t.scope.off(),Vn(e)}},bo=()=>{Ce&&Ce.scope.off(),Vn(null)};function yo(t){return t.vnode.shapeFlag&4}let fn=!1;function il(t,e=!1,n=!1){e&&Ds(e);const{props:s,children:r}=t.vnode,o=yo(t);Lc(t,s,o,e),Bc(t,r,n||e);const i=o?cl(t,e):void 0;return e&&Ds(!1),i}function cl(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,xc);const{setup:s}=n;if(s){He();const r=t.setupContext=s.length>1?al(t):null,o=un(t),i=Dt(s,t,0,[t.props,r]),c=Gs(i);if(Le(),o(),(c||t.sp)&&!sn(t)&&Or(t),c){if(i.then(bo,bo),e)return i.then(l=>{vo(t,l)}).catch(l=>{Dn(l,t,0)});t.asyncDep=i}else vo(t,i)}else wo(t)}function vo(t,e,n){M(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:X(e)&&(t.setupState=Cr(e)),wo(t)}function wo(t,e,n){const s=t.type;t.render||(t.render=s.render||Be);{const r=un(t);He();try{Ec(t)}finally{Le(),r()}}}const ll={get(t,e){return be(t,"get",""),t[e]}};function al(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,ll),slots:t.slots,emit:t.emit,expose:e}}function Kn(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Cr(Ki(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in rn)return rn[n](t)},has(e,n){return n in e||n in rn}})):t.proxy}const ul=/(?:^|[-_])\w/g,fl=t=>t.replace(ul,e=>e.toUpperCase()).replace(/[-_]/g,"");function hl(t,e=!0){return M(t)?t.displayName||t.name:t.name||e&&t.__name}function So(t,e,n=!1){let s=hl(e);if(!s&&e.__file){const r=e.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&t){const r=o=>{for(const i in o)if(o[i]===e)return i};s=r(t.components)||t.parent&&r(t.parent.type.components)||r(t.appContext.components)}return s?fl(s):n?"App":"Anonymous"}function dl(t){return M(t)&&"__vccOpts"in t}const ke=(t,e)=>Xi(t,e,fn),pl="3.5.39";/**
17
+ * @vue/runtime-dom v3.5.39
18
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
+ * @license MIT
20
+ **/let Os;const Co=typeof window<"u"&&window.trustedTypes;if(Co)try{Os=Co.createPolicy("vue",{createHTML:t=>t})}catch{}const xo=Os?t=>Os.createHTML(t):t=>t,gl="http://www.w3.org/2000/svg",_l="http://www.w3.org/1998/Math/MathML",lt=typeof document<"u"?document:null,Eo=lt&&lt.createElement("template"),ml={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const r=e==="svg"?lt.createElementNS(gl,t):e==="mathml"?lt.createElementNS(_l,t):n?lt.createElement(t,{is:n}):lt.createElement(t);return t==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:t=>lt.createTextNode(t),createComment:t=>lt.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>lt.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,r,o){const i=n?n.previousSibling:e.lastChild;if(r&&(r===o||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Eo.innerHTML=xo(s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t);const c=Eo.content;if(s==="svg"||s==="mathml"){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}e.insertBefore(c,n)}return[i?i.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},bl=Symbol("_vtc");function yl(t,e,n){const s=t[bl];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const To=Symbol("_vod"),vl=Symbol("_vsh"),wl=Symbol(""),Sl=/(?:^|;)\s*display\s*:/;function Cl(t,e,n){const s=t.style,r=re(n);let o=!1;if(n&&!r){if(e)if(re(e))for(const i of e.split(";")){const c=i.slice(0,i.indexOf(":")).trim();n[c]==null&&hn(s,c,"")}else for(const i in e)n[i]==null&&hn(s,i,"");for(const i in n){i==="display"&&(o=!0);const c=n[i];c!=null?El(t,i,!re(e)&&e?e[i]:void 0,c)||hn(s,i,c):hn(s,i,"")}}else if(r){if(e!==n){const i=s[wl];i&&(n+=";"+i),s.cssText=n,o=Sl.test(n)}}else e&&t.removeAttribute("style");To in t&&(t[To]=o?s.display:"",t[vl]&&(s.display="none"))}const ko=/\s*!important$/;function hn(t,e,n){if(O(n))n.forEach(s=>hn(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=xl(t,e);ko.test(n)?t.setProperty(De(s),n.replace(ko,""),"important"):t[s]=n}}const Io=["Webkit","Moz","ms"],Ns={};function xl(t,e){const n=Ns[e];if(n)return n;let s=xe(e);if(s!=="filter"&&s in t)return Ns[e]=s;s=Ys(s);for(let r=0;r<Io.length;r++){const o=Io[r]+s;if(o in t)return Ns[e]=o}return e}function El(t,e,n,s){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&re(s)&&n===s}const Po="http://www.w3.org/1999/xlink";function Ao(t,e,n,s,r,o=Si(e)){s&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Po,e.slice(6,e.length)):t.setAttributeNS(Po,e,n):n==null||o&&!tr(n)?t.removeAttribute(e):t.setAttribute(e,o?"":Ve(n)?String(n):n)}function Ro(t,e,n,s,r){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?xo(n):n);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const c=o==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(c!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let i=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=tr(n):n==null&&c==="string"?(n="",i=!0):c==="number"&&(n=0,i=!0)}try{t[e]=n}catch{}i&&t.removeAttribute(r||e)}function St(t,e,n,s){t.addEventListener(e,n,s)}function Tl(t,e,n,s){t.removeEventListener(e,n,s)}const $o=Symbol("_vei");function kl(t,e,n,s,r=null){const o=t[$o]||(t[$o]={}),i=o[e];if(s&&i)i.value=s;else{const[c,l]=Al(e);if(s){const a=o[e]=Dl(s,r);St(t,c,a,l)}else i&&(Tl(t,c,i,l),o[e]=void 0)}}const Il=/(Once|Passive|Capture)$/,Pl=/^on:?(?:Once|Passive|Capture)$/;function Al(t){let e,n;for(;(n=t.match(Il))&&!Pl.test(t);)e||(e={}),t=t.slice(0,t.length-n[1].length),e[n[1].toLowerCase()]=!0;return[t[2]===":"?t.slice(3):De(t.slice(2)),e]}let Ms=0;const Rl=Promise.resolve(),$l=()=>Ms||(Rl.then(()=>Ms=0),Ms=Date.now());function Dl(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(O(r)){const o=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{o.call(s),s._stopped=!0};const i=r.slice(),c=[s];for(let l=0;l<i.length&&!s._stopped;l++){const a=i[l];a&&Ue(a,e,5,c)}}else Ue(r,e,5,[s])};return n.value=t,n.attached=$l(),n}const Do=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Ol=(t,e,n,s,r,o)=>{const i=r==="svg";e==="class"?yl(t,s,i):e==="style"?Cl(t,n,s):mn(e)?bn(e)||kl(t,e,n,s,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Nl(t,e,s,i))?(Ro(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Ao(t,e,s,i,o,e!=="value")):t._isVueCE&&(Ml(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!re(s)))?Ro(t,xe(e),s,o,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),Ao(t,e,s,i))};function Nl(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&Do(e)&&M(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Do(e)&&re(n)?!1:e in t}function Ml(t,e){const n=t._def.props;if(!n)return!1;const s=xe(e);return Array.isArray(n)?n.some(r=>xe(r)===s):Object.keys(n).some(r=>xe(r)===s)}const Oo={};function jl(t,e,n){let s=Dr(t,e);vn(s)&&(s=le({},s,e));class r extends js{constructor(i){super(s,i,n)}}return r.def=s,r}const Hl=typeof HTMLElement<"u"?HTMLElement:class{};class js extends Hl{constructor(e,n={},s=Uo){super(),this._def=e,this._props=n,this._createApp=s,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&s!==Uo?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow(le({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof js){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,vs(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const n of e)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(s,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:i}=s;let c;if(o&&!O(o))for(const l in o){const a=o[l];(a===Number||a&&a.type===Number)&&(l in this._props&&(this._props[l]=Zs(this._props[l])),(c||(c=Object.create(null)))[xe(l)]=!0)}this._numberProps=c,this._resolveProps(s),this.shadowRoot&&this._applyStyles(i),this._mount(s)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(s=>{s.configureApp=this._def.configureApp,e(this._def=s,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const s in n)q(this,s)||Object.defineProperty(this,s,{get:()=>Sr(n[s])})}_resolveProps(e){const{props:n}=e,s=O(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&s.includes(r)&&this._setProp(r,this[r]);for(const r of s.map(xe))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(o){this._setProp(r,o,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const n=this.hasAttribute(e);let s=n?this.getAttribute(e):Oo;const r=xe(e);n&&this._numberProps&&this._numberProps[r]&&(s=Zs(s)),this._setProp(r,s,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,n,s=!0,r=!1){if(n!==this._props[e]&&(this._dirty=!0,n===Oo?delete this._props[e]:(this._props[e]=n,e==="key"&&this._app&&(this._app._ceVNode.key=n)),r&&this._instance&&this._update(),s)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),n===!0?this.setAttribute(De(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(De(e),n+""):n||this.removeAttribute(De(e)),o&&o.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Ul(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const n=Je(this._def,le(e,this._props));return this._instance||(n.ce=s=>{this._instance=s,s.ce=this,s.isCE=!0;const r=(o,i)=>{this.dispatchEvent(new CustomEvent(o,vn(i[0])?le({detail:i},i[0]):{detail:i}))};s.emit=(o,...i)=>{r(o,i),De(o)!==o&&r(De(o),i)},this._setParent()}),n}_applyStyles(e,n,s){if(!e)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce,o=this.shadowRoot,i=s?this._getStyleAnchor(s)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let c=null;for(let l=e.length-1;l>=0;l--){const a=document.createElement("style");r&&a.setAttribute("nonce",r),a.textContent=e[l],o.insertBefore(a,c||i),c=a,l===0&&(s||this._styleAnchors.set(this._def,a),n&&this._styleAnchors.set(n,a))}}_getStyleAnchor(e){if(!e)return null;const n=this._styleAnchors.get(e);return n&&n.parentNode===this.shadowRoot?n:(n&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let n=0;n<e.childNodes.length;n++){const s=e.childNodes[n];if(!(s instanceof HTMLStyleElement))return s}return null}_parseSlots(){const e=this._slots={};let n;for(;n=this.firstChild;){const s=n.nodeType===1&&n.getAttribute("slot")||"default";(e[s]||(e[s]=[])).push(n),this.removeChild(n)}}_renderSlots(){const e=this._getSlots(),n=this._instance.type.__scopeId;for(let s=0;s<e.length;s++){const r=e[s],o=r.getAttribute("name")||"default",i=this._slots[o],c=r.parentNode;if(i)for(const l of i){if(n&&l.nodeType===1){const a=n+"-s",f=document.createTreeWalker(l,1);l.setAttribute(a,"");let d;for(;d=f.nextNode();)d.setAttribute(a,"")}c.insertBefore(l,r)}else for(;r.firstChild;)c.insertBefore(r.firstChild,r);c.removeChild(r)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const n=new Set;for(const s of e){const r=s.querySelectorAll("slot");for(let o=0;o<r.length;o++)n.add(r[o])}return Array.from(n)}_injectChildStyle(e,n){this._applyStyles(e.styles,e,n)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}}const qn=t=>{const e=t.props["onUpdate:modelValue"]||!1;return O(e)?n=>Sn(e,n):e};function Ll(t){t.target.composing=!0}function No(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ft=Symbol("_assign");function Mo(t,e,n){return e&&(t=t.trim()),n&&(t=Cn(t)),t}const jo={created(t,{modifiers:{lazy:e,trim:n,number:s}},r){t[Ft]=qn(r);const o=s||r.props&&r.props.type==="number";St(t,e?"change":"input",i=>{i.target.composing||t[Ft](Mo(t.value,n,o))}),(n||o)&&St(t,"change",()=>{t.value=Mo(t.value,n,o)}),e||(St(t,"compositionstart",Ll),St(t,"compositionend",No),St(t,"change",No))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(t[Ft]=qn(i),t.composing)return;const c=(o||t.type==="number")&&!/^0\d/.test(t.value)?Cn(t.value):t.value,l=e??"";if(c===l)return;const a=t.getRootNode();(a instanceof Document||a instanceof ShadowRoot)&&a.activeElement===t&&t.type!=="range"&&(s&&e===n||r&&t.value.trim()===l)||(t.value=l)}},zn={deep:!0,created(t,{value:e,modifiers:{number:n}},s){const r=yn(e);St(t,"change",()=>{const o=Array.prototype.filter.call(t.options,i=>i.selected).map(i=>n?Cn(Jn(i)):Jn(i));t[Ft](t.multiple?r?new Set(o):o:o[0]),t._assigning=!0,vs(()=>{t._assigning=!1})}),t[Ft]=qn(s)},mounted(t,{value:e}){Ho(t,e)},beforeUpdate(t,e,n){t[Ft]=qn(n)},updated(t,{value:e}){t._assigning||Ho(t,e)}};function Ho(t,e){const n=t.multiple,s=O(e);if(!(n&&!s&&!yn(e))){for(let r=0,o=t.options.length;r<o;r++){const i=t.options[r],c=Jn(i);if(n)if(s){const l=typeof c;l==="string"||l==="number"?i.selected=e.some(a=>String(a)===String(c)):i.selected=xi(e,c)>-1}else i.selected=e.has(c);else if(Jt(Jn(i),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Jn(t){return"_value"in t?t._value:t.value}const Fl=le({patchProp:Ol},ml);let Lo;function Fo(){return Lo||(Lo=Kc(Fl))}const Ul=((...t)=>{Fo().render(...t)}),Uo=((...t)=>{const e=Fo().createApp(...t),{mount:n}=e;return e.mount=s=>{const r=Bl(s);if(!r)return;const o=e._component;!M(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Wl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},e});function Wl(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Bl(t){return re(t)?document.querySelector(t):t}function Vl(t){return t.slice(0,255).trim().normalize("NFC").toLowerCase().replace(/[^\p{L}\p{M}\p{N}\s_-]/gu,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Kl(t){var c,l;if(!t)return[];const e=[],n=new Set,s=(a,f)=>{const d=typeof a=="string"&&a?a:null;return d?Vl(d):f},r=(a,f)=>{typeof a=="string"&&a&&!n.has(a)&&(n.add(a),e.push({name:s(f,a),url:a}))},o=(a,f)=>{a&&typeof a=="object"&&e.push({name:s(f,"document"),doc:a})},i=Array.isArray(t.sources)?t.sources:[];for(const a of i)r((a==null?void 0:a.url)??((c=a==null?void 0:a.spec)==null?void 0:c.url),(a==null?void 0:a.title)??(a==null?void 0:a.slug)),o((a==null?void 0:a.content)??((l=a==null?void 0:a.spec)==null?void 0:l.content),(a==null?void 0:a.title)??(a==null?void 0:a.slug));return r(t.url),o(t.content),e}function Wo(t){return Array.isArray(t)&&t.length>0&&t.every(e=>e!=null&&typeof e=="object"&&typeof e.name=="string"&&(typeof e.url=="string"||e.doc!=null))}function Bo(t,e,n){var o,i;if(n&&n.length>0)return n;const s=(o=t==null?void 0:t[e.configKey])==null?void 0:o.documents;if(Wo(s))return s;const r=(i=globalThis[e.globalName])==null?void 0:i.documents;return Wo(r)?r:Kl(t)}const Vo=(t,e)=>{const n=()=>({name:t.pluginName,extensions:[],hooks:{onInit:({auth:s})=>Ks(s),onConfigChange:({auth:s})=>Ks(s)},views:{"content.end":[{component:t.elementTag,props:e&&e.length>0?{documents:e}:{},sidebar:{show:!0,label:t.sidebarLabel}}]}});return n.pluginName=t.pluginName,n};function ql(t,e){if(typeof document>"u"||document.getElementById(t.stylesId))return;const n=e.styles;if(!n||n.length===0)return;const s=document.createElement("style");s.id=t.stylesId,s.textContent=n.join(`
21
+ `),document.head.appendChild(s)}function zl(t,e){typeof customElements>"u"||customElements.get(t.elementTag)||(ql(t,e),customElements.define(t.elementTag,jl(e,{shadowRoot:!1})))}function Jl(t,e){const n=Array.isArray(e.plugins)?e.plugins.slice():[];if(n.some(r=>(r==null?void 0:r.pluginName)===t.pluginName))return e;const s=Bo(e,t.discovery);return n.push(Vo(t,s)),{...e,plugins:n}}function Hs(t,e){if(e&&typeof e.createApiReference=="function"&&!e[t.wrappedFlag]){const n=e.createApiReference.bind(e);e.createApiReference=(s,r={})=>n(s,Jl(t,r)),e[t.wrappedFlag]=!0}return e}function Gl(t){var s;if(typeof window>"u")return;const e=(s=Object.getOwnPropertyDescriptor(window,"Scalar"))==null?void 0:s.set;let n=window.Scalar;n&&Hs(t,n);try{Object.defineProperty(window,"Scalar",{configurable:!0,enumerable:!0,get:()=>n,set:r=>{e==null||e.call(window,r),n=Hs(t,r)}})}catch{Hs(t,window.Scalar)}}function Xl(t,e){zl(t,e),Gl(t)}const Yl=1e4;function Ql(t,e){if(typeof e!="string"||!e.startsWith("#/"))return;let n=t;for(const s of e.slice(2).split("/")){if(n==null)return;n=n[s.replace(/~1/g,"/").replace(/~0/g,"~")]}return n}function Ko(t,e,n=new Set){let s=e;for(;s&&typeof s.$ref=="string";){if(n.has(s.$ref))return;n.add(s.$ref),s=Ql(t,s.$ref)}return s}function qo(t){if(!t)return;const e=t.split("/");return e[e.length-1]}function zo(){var t;return typeof window<"u"&&((t=window.location)!=null&&t.protocol)?window.location.protocol.replace(":",""):"http"}function Zl(t){if(!t)return typeof window<"u"?window.location.origin:"";const e=t.trim(),n=/^[a-z][a-z0-9+.-]*:\/\//i.test(e)?e:`${zo()}://${e}`;try{const s=new URL(n);return`${s.protocol==="wss:"?"https:":s.protocol==="ws:"?"http:":s.protocol}//${s.host}`}catch{return`${zo()}://${e.replace(/\/+$/,"")}`}}function ea(t,e){var s;const n=t.servers??{};for(const r of Object.keys(n)){const o=n[r]??{};if(o.protocol===e||(s=o.bindings)!=null&&s[e])return o.host??o.url}}function ta(t){var s;const e=((s=t.components)==null?void 0:s.securitySchemes)??{},n={};for(const[r,o]of Object.entries(e))if(o&&typeof o=="object"){const i=o;n[r]={type:typeof i.type=="string"?i.type:"",...typeof i.in=="string"?{in:i.in}:{},...typeof i.name=="string"?{name:i.name}:{},...typeof i.scheme=="string"?{scheme:i.scheme}:{}}}return n}function na(t){var e;if(typeof window>"u"||!((e=window.location)!=null&&e.origin))return t;try{return new URL(t,window.location.origin).href}catch{return t}}async function sa(t){const e=[];for(const n of t)try{let s=n.doc;if(!s&&n.url){const r=new AbortController,o=setTimeout(()=>r.abort(),Yl);try{const i=await fetch(na(n.url),{headers:{accept:"application/json"},signal:r.signal});if(!i.ok)continue;s=await i.json()}finally{clearTimeout(o)}}if(!s||!s.asyncapi)continue;e.push({name:n.name,doc:s})}catch{}return e}const ra=6,oa=new Set(["int32","int64","integer","long","double","float","decimal","number"]);function ia(t){switch(t.format){case"date-time":return new Date().toISOString();case"date":return new Date().toISOString().slice(0,10);case"time":return new Date().toISOString().slice(11,19);case"uuid":case"guid":return"00000000-0000-0000-0000-000000000000";case"email":return"user@example.com";case"uri":case"url":return"https://example.com";default:return"string"}}function Ut(t,e,n=0,s=new Set){const r=Ko(t,e,new Set(s));if(!r||n>ra)return null;if(r.schema&&!r.type&&!r.properties&&!r.enum)return Ut(t,r.schema,n,s);if(Array.isArray(r.examples)&&r.examples.length>0)return r.examples[0];if(r.example!==void 0)return r.example;if(r.default!==void 0)return r.default;if(Array.isArray(r.enum)&&r.enum.length>0)return r.enum[0];if(r.const!==void 0)return r.const;const o=r.allOf??r.oneOf??r.anyOf;if(Array.isArray(o)&&o.length>0){if(r.allOf){const c={};for(const l of o){const a=Ut(t,l,n,s);a&&typeof a=="object"&&!Array.isArray(a)&&Object.assign(c,a)}if(Object.keys(c).length>0)return c}return Ut(t,o[0],n,s)}const i=Array.isArray(r.type)?r.type.find(c=>c!=="null"):r.type;if(typeof r.format=="string"&&oa.has(r.format))return typeof r.minimum=="number"?r.minimum:0;switch(i){case"object":return Jo(t,r,n,s);case"array":{const c=Ut(t,r.items,n+1,s);return c===null?[]:[c]}case"string":return ia(r);case"integer":case"number":return typeof r.minimum=="number"?r.minimum:0;case"boolean":return!1;case"null":return null;default:return r.properties?Jo(t,r,n,s):null}}function Jo(t,e,n,s){const r={},o=e.properties??{};for(const i of Object.keys(o))r[i]=Ut(t,o[i],n+1,s);return r}class Ct extends Error{constructor(e,n){const s=new.target.prototype;super(`${e}: Status code '${n}'`),this.statusCode=n,this.__proto__=s}}class Ls extends Error{constructor(e="A timeout occurred."){const n=new.target.prototype;super(e),this.__proto__=n}}class We extends Error{constructor(e="An abort occurred."){const n=new.target.prototype;super(e),this.__proto__=n}}class ca extends Error{constructor(e,n){const s=new.target.prototype;super(e),this.transport=n,this.errorType="UnsupportedTransportError",this.__proto__=s}}class la extends Error{constructor(e,n){const s=new.target.prototype;super(e),this.transport=n,this.errorType="DisabledTransportError",this.__proto__=s}}class aa extends Error{constructor(e,n){const s=new.target.prototype;super(e),this.transport=n,this.errorType="FailedToStartTransportError",this.__proto__=s}}class Go extends Error{constructor(e){const n=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=n}}class ua extends Error{constructor(e,n){const s=new.target.prototype;super(e),this.innerErrors=n,this.__proto__=s}}class Xo{constructor(e,n,s){this.statusCode=e,this.statusText=n,this.content=s}}class Gn{get(e,n){return this.send({...n,method:"GET",url:e})}post(e,n){return this.send({...n,method:"POST",url:e})}delete(e,n){return this.send({...n,method:"DELETE",url:e})}getCookieString(e){return""}}var g;(function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None"})(g||(g={}));class dn{constructor(){}log(e,n){}}dn.instance=new dn;const fa="8.0.17";class ue{static isRequired(e,n){if(e==null)throw new Error(`The '${n}' argument is required.`)}static isNotEmpty(e,n){if(!e||e.match(/^\s*$/))throw new Error(`The '${n}' argument should not be empty.`)}static isIn(e,n,s){if(!(e in n))throw new Error(`Unknown ${s} value: ${e}.`)}}class ie{static get isBrowser(){return!ie.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!ie.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!ie.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function pn(t,e){let n="";return xt(t)?(n=`Binary data of length ${t.byteLength}`,e&&(n+=`. Content: '${ha(t)}'`)):typeof t=="string"&&(n=`String data of length ${t.length}`,e&&(n+=`. Content: '${t}'`)),n}function ha(t){const e=new Uint8Array(t);let n="";return e.forEach(s=>{const r=s<16?"0":"";n+=`0x${r}${s.toString(16)} `}),n.substr(0,n.length-1)}function xt(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}async function Yo(t,e,n,s,r,o){const i={},[c,l]=Wt();i[c]=l,t.log(g.Trace,`(${e} transport) sending data. ${pn(r,o.logMessageContent)}.`);const a=xt(r)?"arraybuffer":"text",f=await n.post(s,{content:r,headers:{...i,...o.headers},responseType:a,timeout:o.timeout,withCredentials:o.withCredentials});t.log(g.Trace,`(${e} transport) request complete. Response status: ${f.statusCode}.`)}function da(t){return t===void 0?new Xn(g.Information):t===null?dn.instance:t.log!==void 0?t:new Xn(t)}class pa{constructor(e,n){this._subject=e,this._observer=n}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(n=>{})}}class Xn{constructor(e){this._minLevel=e,this.out=console}log(e,n){if(e>=this._minLevel){const s=`[${new Date().toISOString()}] ${g[e]}: ${n}`;switch(e){case g.Critical:case g.Error:this.out.error(s);break;case g.Warning:this.out.warn(s);break;case g.Information:this.out.info(s);break;default:this.out.log(s);break}}}}function Wt(){let t="X-SignalR-User-Agent";return ie.isNode&&(t="User-Agent"),[t,ga(fa,_a(),ba(),ma())]}function ga(t,e,n,s){let r="Microsoft SignalR/";const o=t.split(".");return r+=`${o[0]}.${o[1]}`,r+=` (${t}; `,e&&e!==""?r+=`${e}; `:r+="Unknown OS; ",r+=`${n}`,s?r+=`; ${s}`:r+="; Unknown Runtime Version",r+=")",r}function _a(){if(ie.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function ma(){if(ie.isNode)return process.versions.node}function ba(){return ie.isNode?"NodeJS":"Browser"}function Fs(t){return t.stack?t.stack:t.message?t.message:`${t}`}function ya(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class va extends Gn{constructor(e){if(super(),this._logger=e,typeof fetch>"u"||ie.isNode){const n=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(n("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=n("node-fetch"):this._fetchType=fetch,this._fetchType=n("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(ya());if(typeof AbortController>"u"){const n=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=n("abort-controller")}else this._abortControllerType=AbortController}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new We;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const n=new this._abortControllerType;let s;e.abortSignal&&(e.abortSignal.onabort=()=>{n.abort(),s=new We});let r=null;if(e.timeout){const l=e.timeout;r=setTimeout(()=>{n.abort(),this._logger.log(g.Warning,"Timeout from HTTP request."),s=new Ls},l)}e.content===""&&(e.content=void 0),e.content&&(e.headers=e.headers||{},xt(e.content)?e.headers["Content-Type"]="application/octet-stream":e.headers["Content-Type"]="text/plain;charset=UTF-8");let o;try{o=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:e.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:n.signal})}catch(l){throw s||(this._logger.log(g.Warning,`Error from HTTP request. ${l}.`),l)}finally{r&&clearTimeout(r),e.abortSignal&&(e.abortSignal.onabort=null)}if(!o.ok){const l=await Qo(o,"text");throw new Ct(l||o.statusText,o.status)}const c=await Qo(o,e.responseType);return new Xo(o.status,o.statusText,c)}getCookieString(e){let n="";return ie.isNode&&this._jar&&this._jar.getCookies(e,(s,r)=>n=r.join("; ")),n}}function Qo(t,e){let n;switch(e){case"arraybuffer":n=t.arrayBuffer();break;case"text":n=t.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`);default:n=t.text();break}return n}class wa extends Gn{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new We):e.method?e.url?new Promise((n,s)=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),r.withCredentials=e.withCredentials===void 0?!0:e.withCredentials,r.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.content===""&&(e.content=void 0),e.content&&(xt(e.content)?r.setRequestHeader("Content-Type","application/octet-stream"):r.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const o=e.headers;o&&Object.keys(o).forEach(i=>{r.setRequestHeader(i,o[i])}),e.responseType&&(r.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{r.abort(),s(new We)}),e.timeout&&(r.timeout=e.timeout),r.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),r.status>=200&&r.status<300?n(new Xo(r.status,r.statusText,r.response||r.responseText)):s(new Ct(r.response||r.responseText||r.statusText,r.status))},r.onerror=()=>{this._logger.log(g.Warning,`Error from HTTP request. ${r.status}: ${r.statusText}.`),s(new Ct(r.statusText,r.status))},r.ontimeout=()=>{this._logger.log(g.Warning,"Timeout from HTTP request."),s(new Ls)},r.send(e.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Sa extends Gn{constructor(e){if(super(),typeof fetch<"u"||ie.isNode)this._httpClient=new va(e);else if(typeof XMLHttpRequest<"u")this._httpClient=new wa(e);else throw new Error("No usable HttpClient found.")}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new We):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}class Ie{static write(e){return`${e}${Ie.RecordSeparator}`}static parse(e){if(e[e.length-1]!==Ie.RecordSeparator)throw new Error("Message is incomplete.");const n=e.split(Ie.RecordSeparator);return n.pop(),n}}Ie.RecordSeparatorCode=30,Ie.RecordSeparator=String.fromCharCode(Ie.RecordSeparatorCode);class Ca{writeHandshakeRequest(e){return Ie.write(JSON.stringify(e))}parseHandshakeResponse(e){let n,s;if(xt(e)){const c=new Uint8Array(e),l=c.indexOf(Ie.RecordSeparatorCode);if(l===-1)throw new Error("Message is incomplete.");const a=l+1;n=String.fromCharCode.apply(null,Array.prototype.slice.call(c.slice(0,a))),s=c.byteLength>a?c.slice(a).buffer:null}else{const c=e,l=c.indexOf(Ie.RecordSeparator);if(l===-1)throw new Error("Message is incomplete.");const a=l+1;n=c.substring(0,a),s=c.length>a?c.substring(a):null}const r=Ie.parse(n),o=JSON.parse(r[0]);if(o.type)throw new Error("Expected a handshake response from the server.");return[s,o]}}var j;(function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t[t.Ack=8]="Ack",t[t.Sequence=9]="Sequence"})(j||(j={}));class xa{constructor(){this.observers=[]}next(e){for(const n of this.observers)n.next(e)}error(e){for(const n of this.observers)n.error&&n.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new pa(this,e)}}class Ea{constructor(e,n,s){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=e,this._connection=n,this._bufferSize=s}async _send(e){const n=this._protocol.writeMessage(e);let s=Promise.resolve();if(this._isInvocationMessage(e)){this._totalMessageCount++;let r=()=>{},o=()=>{};xt(n)?this._bufferedByteCount+=n.byteLength:this._bufferedByteCount+=n.length,this._bufferedByteCount>=this._bufferSize&&(s=new Promise((i,c)=>{r=i,o=c})),this._messages.push(new Ta(n,this._totalMessageCount,r,o))}try{this._reconnectInProgress||await this._connection.send(n)}catch{this._disconnected()}await s}_ack(e){let n=-1;for(let s=0;s<this._messages.length;s++){const r=this._messages[s];if(r._id<=e.sequenceId)n=s,xt(r._message)?this._bufferedByteCount-=r._message.byteLength:this._bufferedByteCount-=r._message.length,r._resolver();else if(this._bufferedByteCount<this._bufferSize)r._resolver();else break}n!==-1&&(this._messages=this._messages.slice(n+1))}_shouldProcessMessage(e){if(this._waitForSequenceMessage)return e.type!==j.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(e))return!0;const n=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,n<=this._latestReceivedSequenceId?(n===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=n,this._ackTimer(),!0)}_resetSequence(e){if(e.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=e.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const e=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:j.Sequence,sequenceId:e}));const n=this._messages;for(const s of n)await this._connection.send(s._message);this._reconnectInProgress=!1}_dispose(e){e??(e=new Error("Unable to reconnect to server."));for(const n of this._messages)n._rejector(e)}_isInvocationMessage(e){switch(e.type){case j.Invocation:case j.StreamItem:case j.Completion:case j.StreamInvocation:case j.CancelInvocation:return!0;case j.Close:case j.Sequence:case j.Ping:case j.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:j.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Ta{constructor(e,n,s,r){this._message=e,this._id=n,this._resolver=s,this._rejector=r}}const ka=30*1e3,Ia=15*1e3,Pa=1e5;var W;(function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"})(W||(W={}));class Us{static create(e,n,s,r,o,i,c){return new Us(e,n,s,r,o,i,c)}constructor(e,n,s,r,o,i,c){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(g.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},ue.isRequired(e,"connection"),ue.isRequired(n,"logger"),ue.isRequired(s,"protocol"),this.serverTimeoutInMilliseconds=o??ka,this.keepAliveIntervalInMilliseconds=i??Ia,this._statefulReconnectBufferSize=c??Pa,this._logger=n,this._protocol=s,this.connection=e,this._reconnectPolicy=r,this._handshakeProtocol=new Ca,this.connection.onreceive=l=>this._processIncomingData(l),this.connection.onclose=l=>this._connectionClosed(l),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=W.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:j.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==W.Disconnected&&this._connectionState!==W.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==W.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=W.Connecting,this._logger.log(g.Debug,"Starting HubConnection.");try{await this._startInternal(),ie.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=W.Connected,this._connectionStarted=!0,this._logger.log(g.Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=W.Disconnected,this._logger.log(g.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise((n,s)=>{this._handshakeResolver=n,this._handshakeRejecter=s});await this.connection.start(this._protocol.transferFormat);try{let n=this._protocol.version;this.connection.features.reconnect||(n=1);const s={protocol:this._protocol.name,version:n};if(this._logger.log(g.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(s)),this._logger.log(g.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new Ea(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(n){throw this._logger.log(g.Debug,`Hub handshake failed with error '${n}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(n),n}}async stop(){const e=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch{}}_stopInternal(e){if(this._connectionState===W.Disconnected)return this._logger.log(g.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===W.Disconnecting)return this._logger.log(g.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const n=this._connectionState;return this._connectionState=W.Disconnecting,this._logger.log(g.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(g.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(n===W.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new We("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(e,...n){const[s,r]=this._replaceStreamingParams(n),o=this._createStreamInvocation(e,n,r);let i;const c=new xa;return c.cancelCallback=()=>{const l=this._createCancelInvocation(o.invocationId);return delete this._callbacks[o.invocationId],i.then(()=>this._sendWithProtocol(l))},this._callbacks[o.invocationId]=(l,a)=>{if(a){c.error(a);return}else l&&(l.type===j.Completion?l.error?c.error(new Error(l.error)):c.complete():c.next(l.item))},i=this._sendWithProtocol(o).catch(l=>{c.error(l),delete this._callbacks[o.invocationId]}),this._launchStreams(s,i),c}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...n){const[s,r]=this._replaceStreamingParams(n),o=this._sendWithProtocol(this._createInvocation(e,n,!0,r));return this._launchStreams(s,o),o}invoke(e,...n){const[s,r]=this._replaceStreamingParams(n),o=this._createInvocation(e,n,!1,r);return new Promise((c,l)=>{this._callbacks[o.invocationId]=(f,d)=>{if(d){l(d);return}else f&&(f.type===j.Completion?f.error?l(new Error(f.error)):c(f.result):l(new Error(`Unexpected message type: ${f.type}`)))};const a=this._sendWithProtocol(o).catch(f=>{l(f),delete this._callbacks[o.invocationId]});this._launchStreams(s,a)})}on(e,n){!e||!n||(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),this._methods[e].indexOf(n)===-1&&this._methods[e].push(n))}off(e,n){if(!e)return;e=e.toLowerCase();const s=this._methods[e];if(s)if(n){const r=s.indexOf(n);r!==-1&&(s.splice(r,1),s.length===0&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const n=this._protocol.parseMessages(e,this._logger);for(const s of n)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(s)))switch(s.type){case j.Invocation:this._invokeClientMethod(s).catch(r=>{this._logger.log(g.Error,`Invoke client method threw error: ${Fs(r)}`)});break;case j.StreamItem:case j.Completion:{const r=this._callbacks[s.invocationId];if(r){s.type===j.Completion&&delete this._callbacks[s.invocationId];try{r(s)}catch(o){this._logger.log(g.Error,`Stream callback threw error: ${Fs(o)}`)}}break}case j.Ping:break;case j.Close:{this._logger.log(g.Information,"Close message received from server.");const r=s.error?new Error("Server returned an error on close: "+s.error):void 0;s.allowReconnect===!0?this.connection.stop(r):this._stopPromise=this._stopInternal(r);break}case j.Ack:this._messageBuffer&&this._messageBuffer._ack(s);break;case j.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(s);break;default:this._logger.log(g.Warning,`Invalid message type: ${s.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let n,s;try{[s,n]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(r){const o="Error parsing handshake response: "+r;this._logger.log(g.Error,o);const i=new Error(o);throw this._handshakeRejecter(i),i}if(n.error){const r="Server returned handshake error: "+n.error;this._logger.log(g.Error,r);const o=new Error(r);throw this._handshakeRejecter(o),o}else this._logger.log(g.Debug,"Server handshake complete.");return this._handshakeResolver(),s}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let e=this._nextKeepAlive-new Date().getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===W.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(e){const n=e.target.toLowerCase(),s=this._methods[n];if(!s){this._logger.log(g.Warning,`No client method with the name '${n}' found.`),e.invocationId&&(this._logger.log(g.Warning,`No result given for '${n}' method and invocation ID '${e.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)));return}const r=s.slice(),o=!!e.invocationId;let i,c,l;for(const a of r)try{const f=i;i=await a.apply(this,e.arguments),o&&i&&f&&(this._logger.log(g.Error,`Multiple results provided for '${n}'. Sending error to server.`),l=this._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),c=void 0}catch(f){c=f,this._logger.log(g.Error,`A callback for the method '${n}' threw error '${f}'.`)}l?await this._sendWithProtocol(l):o?(c?l=this._createCompletionMessage(e.invocationId,`${c}`,null):i!==void 0?l=this._createCompletionMessage(e.invocationId,null,i):(this._logger.log(g.Warning,`No result given for '${n}' method and invocation ID '${e.invocationId}'.`),l=this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(l)):i&&this._logger.log(g.Error,`Result given for '${n}' method but server is not expecting a result.`)}_connectionClosed(e){this._logger.log(g.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new We("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===W.Disconnecting?this._completeClose(e):this._connectionState===W.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===W.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=W.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(e??new Error("Connection closed.")),this._messageBuffer=void 0),ie.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(n=>n.apply(this,[e]))}catch(n){this._logger.log(g.Error,`An onclose callback called with error '${e}' threw error '${n}'.`)}}}async _reconnect(e){const n=Date.now();let s=0,r=e!==void 0?e:new Error("Attempting to reconnect due to a unknown error."),o=this._getNextRetryDelay(s++,0,r);if(o===null){this._logger.log(g.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(e);return}if(this._connectionState=W.Reconnecting,e?this._logger.log(g.Information,`Connection reconnecting because of error '${e}'.`):this._logger.log(g.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(i=>i.apply(this,[e]))}catch(i){this._logger.log(g.Error,`An onreconnecting callback called with error '${e}' threw error '${i}'.`)}if(this._connectionState!==W.Reconnecting){this._logger.log(g.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;o!==null;){if(this._logger.log(g.Information,`Reconnect attempt number ${s} will start in ${o} ms.`),await new Promise(i=>{this._reconnectDelayHandle=setTimeout(i,o)}),this._reconnectDelayHandle=void 0,this._connectionState!==W.Reconnecting){this._logger.log(g.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=W.Connected,this._logger.log(g.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(i=>i.apply(this,[this.connection.connectionId]))}catch(i){this._logger.log(g.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${i}'.`)}return}catch(i){if(this._logger.log(g.Information,`Reconnect attempt failed because of error '${i}'.`),this._connectionState!==W.Reconnecting){this._logger.log(g.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===W.Disconnecting&&this._completeClose();return}r=i instanceof Error?i:new Error(i.toString()),o=this._getNextRetryDelay(s++,Date.now()-n,r)}}this._logger.log(g.Information,`Reconnect retries have been exhausted after ${Date.now()-n} ms and ${s} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,n,s){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:e,retryReason:s})}catch(r){return this._logger.log(g.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${n}) threw error '${r}'.`),null}}_cancelCallbacksWithError(e){const n=this._callbacks;this._callbacks={},Object.keys(n).forEach(s=>{const r=n[s];try{r(null,e)}catch(o){this._logger.log(g.Error,`Stream 'error' callback called with '${e}' threw error: ${Fs(o)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,n,s,r){if(s)return r.length!==0?{arguments:n,streamIds:r,target:e,type:j.Invocation}:{arguments:n,target:e,type:j.Invocation};{const o=this._invocationId;return this._invocationId++,r.length!==0?{arguments:n,invocationId:o.toString(),streamIds:r,target:e,type:j.Invocation}:{arguments:n,invocationId:o.toString(),target:e,type:j.Invocation}}}_launchStreams(e,n){if(e.length!==0){n||(n=Promise.resolve());for(const s in e)e[s].subscribe({complete:()=>{n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(s)))},error:r=>{let o;r instanceof Error?o=r.message:r&&r.toString?o=r.toString():o="Unknown error",n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(s,o)))},next:r=>{n=n.then(()=>this._sendWithProtocol(this._createStreamItemMessage(s,r)))}})}}_replaceStreamingParams(e){const n=[],s=[];for(let r=0;r<e.length;r++){const o=e[r];if(this._isObservable(o)){const i=this._invocationId;this._invocationId++,n[i]=o,s.push(i.toString()),e.splice(r,1)}}return[n,s]}_isObservable(e){return e&&e.subscribe&&typeof e.subscribe=="function"}_createStreamInvocation(e,n,s){const r=this._invocationId;return this._invocationId++,s.length!==0?{arguments:n,invocationId:r.toString(),streamIds:s,target:e,type:j.StreamInvocation}:{arguments:n,invocationId:r.toString(),target:e,type:j.StreamInvocation}}_createCancelInvocation(e){return{invocationId:e,type:j.CancelInvocation}}_createStreamItemMessage(e,n){return{invocationId:e,item:n,type:j.StreamItem}}_createCompletionMessage(e,n,s){return n?{error:n,invocationId:e,type:j.Completion}:{invocationId:e,result:s,type:j.Completion}}_createCloseMessage(){return{type:j.Close}}}const Aa=[0,2e3,1e4,3e4,null];class Zo{constructor(e){this._retryDelays=e!==void 0?[...e,null]:Aa}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}}class Et{}Et.Authorization="Authorization",Et.Cookie="Cookie";class Ra extends Gn{constructor(e,n){super(),this._innerClient=e,this._accessTokenFactory=n}async send(e){let n=!0;this._accessTokenFactory&&(!this._accessToken||e.url&&e.url.indexOf("/negotiate?")>0)&&(n=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(e);const s=await this._innerClient.send(e);return n&&s.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(e),await this._innerClient.send(e)):s}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[Et.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[Et.Authorization]&&delete e.headers[Et.Authorization]}getCookieString(e){return this._innerClient.getCookieString(e)}}var ce;(function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"})(ce||(ce={}));var ye;(function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"})(ye||(ye={}));let $a=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class ei{get pollAborted(){return this._pollAbort.aborted}constructor(e,n,s){this._httpClient=e,this._logger=n,this._pollAbort=new $a,this._options=s,this._running=!1,this.onreceive=null,this.onclose=null}async connect(e,n){if(ue.isRequired(e,"url"),ue.isRequired(n,"transferFormat"),ue.isIn(n,ye,"transferFormat"),this._url=e,this._logger.log(g.Trace,"(LongPolling transport) Connecting."),n===ye.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[s,r]=Wt(),o={[s]:r,...this._options.headers},i={abortSignal:this._pollAbort.signal,headers:o,timeout:1e5,withCredentials:this._options.withCredentials};n===ye.Binary&&(i.responseType="arraybuffer");const c=`${e}&_=${Date.now()}`;this._logger.log(g.Trace,`(LongPolling transport) polling: ${c}.`);const l=await this._httpClient.get(c,i);l.statusCode!==200?(this._logger.log(g.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new Ct(l.statusText||"",l.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,i)}async _poll(e,n){try{for(;this._running;)try{const s=`${e}&_=${Date.now()}`;this._logger.log(g.Trace,`(LongPolling transport) polling: ${s}.`);const r=await this._httpClient.get(s,n);r.statusCode===204?(this._logger.log(g.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):r.statusCode!==200?(this._logger.log(g.Error,`(LongPolling transport) Unexpected response code: ${r.statusCode}.`),this._closeError=new Ct(r.statusText||"",r.statusCode),this._running=!1):r.content?(this._logger.log(g.Trace,`(LongPolling transport) data received. ${pn(r.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(r.content)):this._logger.log(g.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(s){this._running?s instanceof Ls?this._logger.log(g.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=s,this._running=!1):this._logger.log(g.Trace,`(LongPolling transport) Poll errored after shutdown: ${s.message}`)}}finally{this._logger.log(g.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?Yo(this._logger,"LongPolling",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(g.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(g.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[n,s]=Wt();e[n]=s;const r={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let o;try{await this._httpClient.delete(this._url,r)}catch(i){o=i}o?o instanceof Ct&&(o.statusCode===404?this._logger.log(g.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(g.Trace,`(LongPolling transport) Error sending a DELETE request: ${o}`)):this._logger.log(g.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(g.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(g.Trace,e),this.onclose(this._closeError)}}}class Da{constructor(e,n,s,r){this._httpClient=e,this._accessToken=n,this._logger=s,this._options=r,this.onreceive=null,this.onclose=null}async connect(e,n){return ue.isRequired(e,"url"),ue.isRequired(n,"transferFormat"),ue.isIn(n,ye,"transferFormat"),this._logger.log(g.Trace,"(SSE transport) Connecting."),this._url=e,this._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((s,r)=>{let o=!1;if(n!==ye.Text){r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let i;if(ie.isBrowser||ie.isWebWorker)i=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const c=this._httpClient.getCookieString(e),l={};l.Cookie=c;const[a,f]=Wt();l[a]=f,i=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...l,...this._options.headers}})}try{i.onmessage=c=>{if(this.onreceive)try{this._logger.log(g.Trace,`(SSE transport) data received. ${pn(c.data,this._options.logMessageContent)}.`),this.onreceive(c.data)}catch(l){this._close(l);return}},i.onerror=c=>{o?this._close():r(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},i.onopen=()=>{this._logger.log(g.Information,`SSE connected to ${this._url}`),this._eventSource=i,o=!0,s()}}catch(c){r(c);return}})}async send(e){return this._eventSource?Yo(this._logger,"SSE",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class Oa{constructor(e,n,s,r,o,i){this._logger=s,this._accessTokenFactory=n,this._logMessageContent=r,this._webSocketConstructor=o,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=i}async connect(e,n){ue.isRequired(e,"url"),ue.isRequired(n,"transferFormat"),ue.isIn(n,ye,"transferFormat"),this._logger.log(g.Trace,"(WebSockets transport) Connecting.");let s;return this._accessTokenFactory&&(s=await this._accessTokenFactory()),new Promise((r,o)=>{e=e.replace(/^http/,"ws");let i;const c=this._httpClient.getCookieString(e);let l=!1;if(ie.isNode||ie.isReactNative){const a={},[f,d]=Wt();a[f]=d,s&&(a[Et.Authorization]=`Bearer ${s}`),c&&(a[Et.Cookie]=c),i=new this._webSocketConstructor(e,void 0,{headers:{...a,...this._headers}})}else s&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(s)}`);i||(i=new this._webSocketConstructor(e)),n===ye.Binary&&(i.binaryType="arraybuffer"),i.onopen=a=>{this._logger.log(g.Information,`WebSocket connected to ${e}.`),this._webSocket=i,l=!0,r()},i.onerror=a=>{let f=null;typeof ErrorEvent<"u"&&a instanceof ErrorEvent?f=a.error:f="There was an error with the transport",this._logger.log(g.Information,`(WebSockets transport) ${f}.`)},i.onmessage=a=>{if(this._logger.log(g.Trace,`(WebSockets transport) data received. ${pn(a.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(a.data)}catch(f){this._close(f);return}},i.onclose=a=>{if(l)this._close(a);else{let f=null;typeof ErrorEvent<"u"&&a instanceof ErrorEvent?f=a.error:f="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",o(new Error(f))}}})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(g.Trace,`(WebSockets transport) sending data. ${pn(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(g.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(e)&&(e.wasClean===!1||e.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)):e instanceof Error?this.onclose(e):this.onclose())}_isCloseEvent(e){return e&&typeof e.wasClean=="boolean"&&typeof e.code=="number"}}const ti=100;class Na{constructor(e,n={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,ue.isRequired(e,"url"),this._logger=da(n.logger),this.baseUrl=this._resolveUrl(e),n=n||{},n.logMessageContent=n.logMessageContent===void 0?!1:n.logMessageContent,typeof n.withCredentials=="boolean"||n.withCredentials===void 0)n.withCredentials=n.withCredentials===void 0?!0:n.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");n.timeout=n.timeout===void 0?1e5:n.timeout;let s=null,r=null;if(ie.isNode&&typeof require<"u"){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;s=o("ws"),r=o("eventsource")}!ie.isNode&&typeof WebSocket<"u"&&!n.WebSocket?n.WebSocket=WebSocket:ie.isNode&&!n.WebSocket&&s&&(n.WebSocket=s),!ie.isNode&&typeof EventSource<"u"&&!n.EventSource?n.EventSource=EventSource:ie.isNode&&!n.EventSource&&typeof r<"u"&&(n.EventSource=r),this._httpClient=new Ra(n.httpClient||new Sa(this._logger),n.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=n,this.onreceive=null,this.onclose=null}async start(e){if(e=e||ye.Binary,ue.isIn(e,ye,"transferFormat"),this._logger.log(g.Debug,`Starting connection with transfer format '${ye[e]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,this._connectionState==="Disconnecting"){const n="Failed to start the HttpConnection before stop() was called.";return this._logger.log(g.Error,n),await this._stopPromise,Promise.reject(new We(n))}else if(this._connectionState!=="Connected"){const n="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(g.Error,n),Promise.reject(new We(n))}this._connectionStarted=!0}send(e){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Ws(this.transport)),this._sendQueue.send(e))}async stop(e){if(this._connectionState==="Disconnected")return this._logger.log(g.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(g.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(n=>{this._stopPromiseResolver=n}),await this._stopInternal(e),await this._stopPromise}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(n){this._logger.log(g.Error,`HttpConnection.transport.stop() threw error '${n}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(g.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let n=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===ce.WebSockets)this.transport=this._constructTransport(ce.WebSockets),await this._startTransport(n,e);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let s=null,r=0;do{if(s=await this._getNegotiationResponse(n),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new We("The connection was stopped during negotiation.");if(s.error)throw new Error(s.error);if(s.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(s.url&&(n=s.url),s.accessToken){const o=s.accessToken;this._accessTokenFactory=()=>o,this._httpClient._accessToken=o,this._httpClient._accessTokenFactory=void 0}r++}while(s.url&&r<ti);if(r===ti&&s.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(n,this._options.transport,s,e)}this.transport instanceof ei&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(g.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(s){return this._logger.log(g.Error,"Failed to start the connection: "+s),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(s)}}async _getNegotiationResponse(e){const n={},[s,r]=Wt();n[s]=r;const o=this._resolveNegotiateUrl(e);this._logger.log(g.Debug,`Sending negotiation request: ${o}.`);try{const i=await this._httpClient.post(o,{content:"",headers:{...n,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(i.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${i.statusCode}'`));const c=JSON.parse(i.content);return(!c.negotiateVersion||c.negotiateVersion<1)&&(c.connectionToken=c.connectionId),c.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new Go("Client didn't negotiate Stateful Reconnect but the server did.")):c}catch(i){let c="Failed to complete negotiation with the server: "+i;return i instanceof Ct&&i.statusCode===404&&(c=c+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(g.Error,c),Promise.reject(new Go(c))}}_createConnectUrl(e,n){return n?e+(e.indexOf("?")===-1?"?":"&")+`id=${n}`:e}async _createTransport(e,n,s,r){let o=this._createConnectUrl(e,s.connectionToken);if(this._isITransport(n)){this._logger.log(g.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=n,await this._startTransport(o,r),this.connectionId=s.connectionId;return}const i=[],c=s.availableTransports||[];let l=s;for(const a of c){const f=this._resolveTransportOrError(a,n,r,(l==null?void 0:l.useStatefulReconnect)===!0);if(f instanceof Error)i.push(`${a.transport} failed:`),i.push(f);else if(this._isITransport(f)){if(this.transport=f,!l){try{l=await this._getNegotiationResponse(e)}catch(d){return Promise.reject(d)}o=this._createConnectUrl(e,l.connectionToken)}try{await this._startTransport(o,r),this.connectionId=l.connectionId;return}catch(d){if(this._logger.log(g.Error,`Failed to start the transport '${a.transport}': ${d}`),l=void 0,i.push(new aa(`${a.transport} failed: ${d}`,ce[a.transport])),this._connectionState!=="Connecting"){const x="Failed to select transport before stop() was called.";return this._logger.log(g.Debug,x),Promise.reject(new We(x))}}}}return i.length>0?Promise.reject(new ua(`Unable to connect to the server with any of the available transports. ${i.join(" ")}`,i)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case ce.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Oa(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case ce.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Da(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case ce.LongPolling:return new ei(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,n){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async s=>{let r=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(e,n),await this.features.resend()}catch{r=!0}else{this._stopConnection(s);return}r&&this._stopConnection(s)}:this.transport.onclose=s=>this._stopConnection(s),this.transport.connect(e,n)}_resolveTransportOrError(e,n,s,r){const o=ce[e.transport];if(o==null)return this._logger.log(g.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(Ma(n,o))if(e.transferFormats.map(c=>ye[c]).indexOf(s)>=0){if(o===ce.WebSockets&&!this._options.WebSocket||o===ce.ServerSentEvents&&!this._options.EventSource)return this._logger.log(g.Debug,`Skipping transport '${ce[o]}' because it is not supported in your environment.'`),new ca(`'${ce[o]}' is not supported in your environment.`,o);this._logger.log(g.Debug,`Selecting transport '${ce[o]}'.`);try{return this.features.reconnect=o===ce.WebSockets?r:void 0,this._constructTransport(o)}catch(c){return c}}else return this._logger.log(g.Debug,`Skipping transport '${ce[o]}' because it does not support the requested transfer format '${ye[s]}'.`),new Error(`'${ce[o]}' does not support ${ye[s]}.`);else return this._logger.log(g.Debug,`Skipping transport '${ce[o]}' because it was disabled by the client.`),new la(`'${ce[o]}' is disabled by the client.`,o)}_isITransport(e){return e&&typeof e=="object"&&"connect"in e}_stopConnection(e){if(this._logger.log(g.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(g.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(g.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),e?this._logger.log(g.Error,`Connection disconnected with error '${e}'.`):this._logger.log(g.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(n=>{this._logger.log(g.Error,`TransportSendQueue.stop() threw error '${n}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(n){this._logger.log(g.Error,`HttpConnection.onclose(${e}) threw error '${n}'.`)}}}_resolveUrl(e){if(e.lastIndexOf("https://",0)===0||e.lastIndexOf("http://",0)===0)return e;if(!ie.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const n=window.document.createElement("a");return n.href=e,this._logger.log(g.Information,`Normalizing '${e}' to '${n.href}'.`),n.href}_resolveNegotiateUrl(e){const n=new URL(e);n.pathname.endsWith("/")?n.pathname+="negotiate":n.pathname+="/negotiate";const s=new URLSearchParams(n.searchParams);return s.has("negotiateVersion")||s.append("negotiateVersion",this._negotiateVersion.toString()),s.has("useStatefulReconnect")?s.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&s.append("useStatefulReconnect","true"),n.search=s.toString(),n.toString()}}function Ma(t,e){return!t||(e&t)!==0}class Ws{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new Yn,this._transportResult=new Yn,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new Yn),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Yn;const e=this._transportResult;this._transportResult=void 0;const n=typeof this._buffer[0]=="string"?this._buffer.join(""):Ws._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(n),e.resolve()}catch(s){e.reject(s)}}}static _concatBuffers(e){const n=e.map(o=>o.byteLength).reduce((o,i)=>o+i),s=new Uint8Array(n);let r=0;for(const o of e)s.set(new Uint8Array(o),r),r+=o.byteLength;return s.buffer}}class Yn{constructor(){this.promise=new Promise((e,n)=>[this._resolver,this._rejecter]=[e,n])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}const ja="json";class Ha{constructor(){this.name=ja,this.version=2,this.transferFormat=ye.Text}parseMessages(e,n){if(typeof e!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];n===null&&(n=dn.instance);const s=Ie.parse(e),r=[];for(const o of s){const i=JSON.parse(o);if(typeof i.type!="number")throw new Error("Invalid payload.");switch(i.type){case j.Invocation:this._isInvocationMessage(i);break;case j.StreamItem:this._isStreamItemMessage(i);break;case j.Completion:this._isCompletionMessage(i);break;case j.Ping:break;case j.Close:break;case j.Ack:this._isAckMessage(i);break;case j.Sequence:this._isSequenceMessage(i);break;default:n.log(g.Information,"Unknown message type '"+i.type+"' ignored.");continue}r.push(i)}return r}writeMessage(e){return Ie.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),e.invocationId!==void 0&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),e.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_isAckMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(e,n){if(typeof e!="string"||e==="")throw new Error(n)}}const La={trace:g.Trace,debug:g.Debug,info:g.Information,information:g.Information,warn:g.Warning,warning:g.Warning,error:g.Error,critical:g.Critical,none:g.None};function Fa(t){const e=La[t.toLowerCase()];if(typeof e<"u")return e;throw new Error(`Unknown log level: ${t}`)}class Ua{configureLogging(e){if(ue.isRequired(e,"logging"),Wa(e))this.logger=e;else if(typeof e=="string"){const n=Fa(e);this.logger=new Xn(n)}else this.logger=new Xn(e);return this}withUrl(e,n){return ue.isRequired(e,"url"),ue.isNotEmpty(e,"url"),this.url=e,typeof n=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...n}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:n},this}withHubProtocol(e){return ue.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new Zo(e):this.reconnectPolicy=e:this.reconnectPolicy=new Zo,this}withServerTimeout(e){return ue.isRequired(e,"milliseconds"),this._serverTimeoutInMilliseconds=e,this}withKeepAliveInterval(e){return ue.isRequired(e,"milliseconds"),this._keepAliveIntervalInMilliseconds=e,this}withStatefulReconnect(e){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=e==null?void 0:e.bufferSize,this}build(){const e=this.httpConnectionOptions||{};if(e.logger===void 0&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const n=new Na(this.url,e);return Us.create(n,this.logger||dn.instance,this.protocol||new Ha,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function Wa(t){return t.log!==void 0}function Ba(){return ai()}function Va(t,e,n){var r;const s={queryParams:{},warnings:[]};for(const{schemeName:o,type:i,scheme:c,secrets:l}of di(t,e,n)){const a=l["x-scalar-secret-token"];switch(i){case"apiKey":case"httpApiKey":{const f=(c.in??"query").toLowerCase(),d=c.name??"api_key";if(f==="cookie"){s.warnings.push(`API key scheme "${o}" targets cookie "${d}", which the browser attaches automatically — not appending it to the URL. Ensure the cookie is set for this origin.`);break}f==="header"&&s.warnings.push(`API key scheme "${o}" targets header "${d}", but browser WebSocket/SSE cannot set arbitrary headers — appending as a query param instead. Ensure the server also accepts "${d}" as a query parameter.`),a&&(s.queryParams[d]=a);break}case"http":{const f=((r=c==null?void 0:c.scheme)==null?void 0:r.toLowerCase())??"";f==="bearer"||f===""?a&&(s.accessToken=a):f==="basic"&&s.warnings.push(`HTTP Basic scheme "${o}" cannot be sent over browser WebSocket/SSE — connect will proceed without credentials.`);break}case"oauth2":case"openIdConnect":a&&(s.accessToken=a);break}}return s}const ni={configKey:"signalr",globalName:"__BIELU_SCALAR_SIGNALR__"};function Ka(t,e){return Bo(t,ni,e)}const Bs="signalr";function qa(t,e){const n=(Array.isArray(e.messages)?e.messages:[]).map(r=>r==null?void 0:r.$ref).filter(r=>typeof r=="string"),s=[];for(const r of n){const o=Ko(t,{$ref:r}),i=(o==null?void 0:o.name)??qo(r)??"message",c=Ut(t,o==null?void 0:o.payload),l=c===null?[]:[c];s.push({name:i,title:o==null?void 0:o.title,example:JSON.stringify(l,null,2)})}return s}function za(t,e){const n=e==null?void 0:e.direction;return n==="clientToServer"||n==="serverToClient"?n:t.action==="receive"?"serverToClient":"clientToServer"}function si(t,e){var l,a,f;if(!e||typeof e!="object")return[];const n=Zl(ea(e,Bs)),s=ta(e),r=Object.keys(s).length>0?s:void 0,o=e.channels??{},i=new Map;for(const d of Object.keys(o)){const x=o[d]??{},k=(l=x.bindings)==null?void 0:l[Bs];k&&i.set(d,{documentName:t,channelName:d,hubPath:k.hub??x.address??`/${d}`,baseUrl:n,transports:k.transports??[],protocols:k.protocols??[],operations:[],securitySchemes:r})}const c=e.operations??{};for(const d of Object.keys(c)){const x=c[d]??{},k=qo((a=x.channel)==null?void 0:a.$ref),U=k?i.get(k):void 0;if(!U)continue;const P=(f=x.bindings)==null?void 0:f[Bs],L={id:d,target:(P==null?void 0:P.target)??d,direction:za(x,P),callType:P==null?void 0:P.callType,summary:x.summary??x.description,messages:qa(e,x)};U.operations.push(L)}return[...i.values()]}async function ri(t){return(await sa(t)).flatMap(({name:n,doc:s})=>si(n,s))}const Ja={class:"bsr__head"},Ga=["data-state"],Xa={key:0,class:"bsr__muted"},Ya={key:1,class:"bsr__muted"},Qa={class:"bsr__card bsr__conn"},Za={class:"bsr__conn-row"},eu={key:0,class:"bsr__field"},tu=["value"],nu={class:"bsr__field"},su=["value"],ru={class:"bsr__field bsr__field--grow"},ou={class:"bsr__field"},iu={class:"bsr__conn-row bsr__conn-row--foot"},cu={class:"bsr__url"},lu={class:"bsr__grid"},au={class:"bsr__col"},uu={key:0,class:"bsr__muted"},fu={key:1,class:"bsr__card bsr__op"},hu={class:"bsr__conn-row"},du={class:"bsr__field bsr__field--grow"},pu=["value"],gu={key:0,class:"bsr__field bsr__field--grow"},_u=["value"],mu=["value"],bu={class:"bsr__op-head bsr__op-head--spaced"},yu=["data-kind"],vu={class:"bsr__op-target"},wu={key:0,class:"bsr__muted bsr__op-summary"},Su={class:"bsr__code-head"},Cu=["disabled"],xu={class:"bsr__op-foot"},Eu={class:"bsr__hint"},Tu=["disabled"],ku=["data-ok"],Iu={class:"bsr__col"},Pu={class:"bsr__log"},Au={class:"bsr__time"},Ru={class:"bsr__badge"},$u={key:0,class:"bsr__muted"},Du={key:0,class:"bsr__muted"},Ou={class:"bsr__op-head"},Nu={class:"bsr__op-target"},Mu={key:0,class:"bsr__muted bsr__op-summary"},ju={key:1,class:"bsr__result bsr__result--sample"},Hu=((t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n})(Dr({__name:"SignalRConsole",props:{options:{type:Object},documents:{type:Array}},setup(t){const e=t,n=st(!0),s=st([]),r=st(null),o=st(null),i=st(null),c=st(null),l=st(""),a=st("auto"),f=st(W.Disconnected),d=ft([]),x=ft({}),k=ft({}),U=ft({}),P=ft({});let L=null;const J=S=>`${S.documentName}:${S.channelName}`,H=S=>`${c.value}:${S.id}`,Y=ke(()=>{const S=new Set,v=[];for(const w of s.value)S.has(w.documentName)||(S.add(w.documentName),v.push(w.documentName));return v}),D=ke(()=>o.value??i.value),oe=ke(()=>D.value?s.value.filter(S=>S.documentName===D.value):s.value),Me=ke(()=>!o.value&&Y.value.length>1),ve=ke(()=>oe.value.find(S=>J(S)===c.value)??null),Pe=ke(()=>{var S;return((S=ve.value)==null?void 0:S.operations.filter(v=>v.direction==="clientToServer"))??[]}),gt=ke(()=>{var S;return((S=ve.value)==null?void 0:S.operations.filter(v=>v.direction==="serverToClient"))??[]}),Ae=ke({get:()=>c.value?U[c.value]??null:null,set:S=>{c.value&&S&&(U[c.value]=S)}}),ee=ke(()=>Pe.value.find(S=>S.id===Ae.value)??null),_t=ke(()=>f.value===W.Connected),Tt=ke(()=>W[f.value]??"Disconnected"),kt=ke(()=>{const S=ve.value;if(!S)return"";const v=(l.value||S.baseUrl||"").replace(/\/+$/,""),w=S.hubPath.startsWith("/")?S.hubPath:`/${S.hubPath}`;return`${v}${w}`});function ge(S,v){d.unshift({time:new Date().toLocaleTimeString(),dir:S,text:v}),d.length>200&&d.pop()}function _e(){switch(a.value){case"webSockets":return ce.WebSockets;case"serverSentEvents":return ce.ServerSentEvents;case"longPolling":return ce.LongPolling;default:return}}function se(S){const v=(S??"").trim();if(!v)return[];const w=JSON.parse(v);return Array.isArray(w)?w:[w]}async function K(){if(L){try{await L.stop()}catch{}L=null}f.value=W.Disconnected}async function at(){const S=ve.value;if(!S)return;await K();const v=Ba(),w=Va(S.documentName,S.securitySchemes,v);for(const _ of w.warnings)ge("sys",`Auth warning: ${_}`);const F=S.securitySchemes&&Object.keys(S.securitySchemes).length>0,u=Object.keys(w.queryParams).length>0||!!w.accessToken;F&&!u&&(v?ge("sys",`Auth: no credentials resolved for document "${S.documentName}" — select a security scheme in the Authentication panel and enter your credentials.`):ge("sys","Auth: no Scalar auth state available — this Scalar version may predate the plugin auth-state API (Scalar ≥ 2.16.12)."));let h=kt.value;if(Object.keys(w.queryParams).length>0){const _=new URLSearchParams(w.queryParams).toString();h+=(h.includes("?")?"&":"?")+_}const p=_e(),y=p!==void 0?{transport:p}:{};if(w.accessToken){const _=w.accessToken;y.accessTokenFactory=()=>_}L=new Ua().withUrl(h,y).configureLogging(g.Warning).withAutomaticReconnect().build();for(const _ of gt.value)L.on(_.target,(...m)=>{ge("in",`${_.target}(${m.map(T=>JSON.stringify(T)).join(", ")})`)});L.onclose(_=>{f.value=W.Disconnected,ge("sys",_?`Disconnected: ${_.message}`:"Disconnected")}),L.onreconnecting(()=>{f.value=W.Reconnecting,ge("sys","Reconnecting…")}),L.onreconnected(()=>{f.value=W.Connected,ge("sys","Reconnected")});try{ge("sys",`Connecting to ${h}…`),await L.start(),f.value=W.Connected,ge("sys","Connected")}catch(_){f.value=W.Disconnected,ge("sys",`Connection failed: ${(_==null?void 0:_.message)??_}`)}}function Bt(S,v){return new Promise((w,F)=>{const u=[];L.stream(S,...v).subscribe({next:h=>{u.push(h),ge("in",`← ${JSON.stringify(h)}`)},error:h=>F(h),complete:()=>w(u)})})}async function ut(S){const v=H(S);if(!L||!_t.value){k[v]={ok:!1,text:"Not connected — press Connect first."};return}let w;try{w=se(x[v])}catch(F){k[v]={ok:!1,text:`Invalid JSON arguments: ${(F==null?void 0:F.message)??F}`};return}ge("out",`${S.target}(${w.map(F=>JSON.stringify(F)).join(", ")})`);try{if(S.callType==="send")await L.send(S.target,...w),k[v]={ok:!0,text:"Sent (fire-and-forget, no response)."};else if(S.callType==="streamInvocation"){const F=await Bt(S.target,w);k[v]={ok:!0,text:`Stream completed: ${F.length} item(s).
22
+ ${JSON.stringify(F,null,2)}`}}else{const F=await L.invoke(S.target,...w),u=F===void 0?"Completed (no return value).":JSON.stringify(F,null,2);k[v]={ok:!0,text:u},F!==void 0&&ge("in",`← ${JSON.stringify(F)}`)}}catch(F){k[v]={ok:!1,text:`Error: ${(F==null?void 0:F.message)??F}`},ge("sys",`Invoke failed: ${(F==null?void 0:F.message)??F}`)}}function Re(S){return(S.callType??"invoke").toUpperCase()}function Qn(S,v){var w,F;return((F=(w=S==null?void 0:S.messages)==null?void 0:w[v])==null?void 0:F.example)??"[]"}function gn(S,v){const w=H(S);P[w]=v,x[w]=Qn(S,v)}function Zn(S){const v=H(S);x[v]===void 0&&gn(S,P[v]??0)}dt(oe,S=>{S.some(v=>J(v)===c.value)||(c.value=S[0]?J(S[0]):null)},{immediate:!0}),dt(ve,S=>{l.value=(S==null?void 0:S.baseUrl)??"",K()}),dt([l,a],()=>{K()}),dt(Pe,S=>{var v;S.some(w=>w.id===Ae.value)||(Ae.value=((v=S[0])==null?void 0:v.id)??null),S.forEach(Zn)},{immediate:!0}),dt(ee,S=>{S&&Zn(S)});function It(){var w;const S=(w=r.value)==null?void 0:w.closest('[id*="/plugin-view/"]');return(S==null?void 0:S.id.split("/plugin-view/")[0])||null}async function Vt(){n.value=!0,s.value=await ri(Ka(e.options,e.documents)),s.value.length>0&&!i.value&&(i.value=s.value[0].documentName),n.value=!1}return Vt(),Lr(()=>{o.value=It()}),Fr(()=>void K()),(S,v)=>(z(),G("section",{ref_key:"rootEl",ref:r,class:"bsr"},[A("header",Ja,[v[9]||(v[9]=A("h2",{class:"bsr__title"},"SignalR",-1)),A("span",{class:"bsr__pill","data-state":Tt.value.toLowerCase()},ae(Tt.value),9,Ga)]),n.value?(z(),G("p",Xa,"Loading SignalR hubs…")):oe.value.length===0?(z(),G("p",Ya," No SignalR hubs found in "+ae(o.value?"this document":"the AsyncAPI document(s)")+". ",1)):(z(),G(pe,{key:2},[A("div",Qa,[A("div",Za,[Me.value?(z(),G("label",eu,[v[10]||(v[10]=A("span",null,"Document",-1)),Mt(A("select",{"onUpdate:modelValue":v[0]||(v[0]=w=>i.value=w)},[(z(!0),G(pe,null,jt(Y.value,w=>(z(),G("option",{key:w,value:w},ae(w),9,tu))),128))],512),[[zn,i.value]])])):it("",!0),A("label",nu,[v[11]||(v[11]=A("span",null,"Hub",-1)),Mt(A("select",{"onUpdate:modelValue":v[1]||(v[1]=w=>c.value=w)},[(z(!0),G(pe,null,jt(oe.value,w=>(z(),G("option",{key:J(w),value:J(w)},ae(w.channelName)+" ("+ae(w.hubPath)+") ",9,su))),128))],512),[[zn,c.value]])]),A("label",ru,[v[12]||(v[12]=A("span",null,"Base URL",-1)),Mt(A("input",{"onUpdate:modelValue":v[2]||(v[2]=w=>l.value=w),type:"text",spellcheck:"false"},null,512),[[jo,l.value]])]),A("label",ou,[v[14]||(v[14]=A("span",null,"Transport",-1)),Mt(A("select",{"onUpdate:modelValue":v[3]||(v[3]=w=>a.value=w)},[...v[13]||(v[13]=[A("option",{value:"auto"},"Auto",-1),A("option",{value:"webSockets"},"WebSockets",-1),A("option",{value:"serverSentEvents"},"Server-Sent Events",-1),A("option",{value:"longPolling"},"Long Polling",-1)])],512),[[zn,a.value]])])]),A("div",iu,[A("code",cu,ae(kt.value),1),_t.value?(z(),G("button",{key:1,type:"button",class:"bsr__btn",onClick:K},"Disconnect")):(z(),G("button",{key:0,type:"button",class:"bsr__btn bsr__btn--primary",onClick:at},"Connect"))])]),A("div",lu,[A("div",au,[v[19]||(v[19]=A("h3",{class:"bsr__section"},"Methods",-1)),Pe.value.length===0?(z(),G("p",uu,"No invocable hub methods.")):(z(),G("article",fu,[A("div",hu,[A("label",du,[v[15]||(v[15]=A("span",null,"Method",-1)),Mt(A("select",{"onUpdate:modelValue":v[4]||(v[4]=w=>Ae.value=w)},[(z(!0),G(pe,null,jt(Pe.value,w=>(z(),G("option",{key:w.id,value:w.id},ae(w.target)+" · "+ae(Re(w)),9,pu))),128))],512),[[zn,Ae.value]])]),ee.value&&ee.value.messages.length>1?(z(),G("label",gu,[v[16]||(v[16]=A("span",null,"Message",-1)),A("select",{value:P[H(ee.value)]??0,onChange:v[5]||(v[5]=w=>gn(ee.value,Number(w.target.value)))},[(z(!0),G(pe,null,jt(ee.value.messages,(w,F)=>(z(),G("option",{key:w.name,value:F},ae(w.title||w.name),9,mu))),128))],40,_u)])):it("",!0)]),ee.value?(z(),G(pe,{key:0},[A("div",bu,[A("span",{class:"bsr__method","data-kind":ee.value.callType??"invoke"},ae(Re(ee.value)),9,yu),A("span",vu,ae(ee.value.target),1),v[17]||(v[17]=A("span",{class:"bsr__hint"},"client → server",-1))]),ee.value.summary?(z(),G("p",wu,ae(ee.value.summary),1)):it("",!0),A("div",Su,[v[18]||(v[18]=A("span",{class:"bsr__hint"},"Arguments (JSON array)",-1)),A("button",{type:"button",class:"bsr__link",disabled:ee.value.messages.length===0,onClick:v[6]||(v[6]=w=>gn(ee.value,P[H(ee.value)]??0))}," ↺ Reset to example ",8,Cu)]),Mt(A("textarea",{"onUpdate:modelValue":v[7]||(v[7]=w=>x[H(ee.value)]=w),class:"bsr__code",rows:"6",spellcheck:"false",placeholder:'Arguments as a JSON array, e.g. ["alice", "hello"]'},null,512),[[jo,x[H(ee.value)]]]),A("div",xu,[A("span",Eu,ae(kt.value),1),A("button",{type:"button",class:"bsr__btn bsr__btn--primary",disabled:!_t.value,onClick:v[8]||(v[8]=w=>ut(ee.value))}," ▶ Test Request ",8,Tu)]),k[H(ee.value)]?(z(),G("pre",{key:1,class:"bsr__result","data-ok":k[H(ee.value)].ok},ae(k[H(ee.value)].text),9,ku)):it("",!0)],64)):it("",!0)]))]),A("div",Iu,[v[22]||(v[22]=A("h3",{class:"bsr__section"},"Messages",-1)),A("ul",Pu,[(z(!0),G(pe,null,jt(d,(w,F)=>(z(),G("li",{key:F,class:En(`bsr__log-${w.dir}`)},[A("span",Au,ae(w.time),1),A("span",Ru,ae(w.dir),1),A("span",null,ae(w.text),1)],2))),128)),d.length===0?(z(),G("li",$u,"No messages yet.")):it("",!0)]),v[23]||(v[23]=A("h3",{class:"bsr__section"},"Events",-1)),gt.value.length===0?(z(),G("p",Du,"No server-to-client events.")):it("",!0),(z(!0),G(pe,null,jt(gt.value,w=>(z(),G("article",{key:w.id,class:"bsr__card bsr__op"},[A("div",Ou,[v[20]||(v[20]=A("span",{class:"bsr__method","data-kind":"event"},"EVENT",-1)),A("span",Nu,ae(w.target),1),v[21]||(v[21]=A("span",{class:"bsr__hint"},"server → client",-1))]),w.summary?(z(),G("p",Mu,ae(w.summary),1)):it("",!0),w.messages.length>0?(z(),G("pre",ju,ae(w.messages[0].example),1)):it("",!0)]))),128))])])],64))],512))}}),[["styles",[".bsr[data-v-5185370c]{font-family:var(--scalar-font, system-ui, sans-serif);color:var(--scalar-color-1, inherit);font-size:var(--scalar-font-size-3, .9rem);padding:2.5rem var(--bsr-content-padding, var(--scalar-content-padding, 24px)) 3rem;margin-top:2rem;border-top:1px solid var(--scalar-border-color, #e3e3e3);max-width:var(--bsr-content-max-width, none)}.bsr__head[data-v-5185370c]{display:flex;align-items:center;gap:.75rem;margin-bottom:1.25rem}.bsr__grid[data-v-5185370c]{display:grid;grid-template-columns:1fr;gap:0 2rem;align-items:start}.bsr__col[data-v-5185370c]{min-width:0}@media(min-width:60rem){.bsr__grid[data-v-5185370c]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}.bsr__title[data-v-5185370c]{margin:0;font-size:1.25rem}.bsr__pill[data-v-5185370c]{font-size:.7rem;text-transform:uppercase;letter-spacing:.03em;padding:.15rem .5rem;border-radius:999px;background:var(--scalar-background-2, #eee);color:var(--scalar-color-2, #555)}.bsr__pill[data-state=connected][data-v-5185370c]{background:color-mix(in srgb,#2e7d32 18%,transparent);color:#2e7d32}.bsr__card[data-v-5185370c]{border:1px solid var(--scalar-border-color, #e3e3e3);border-radius:var(--scalar-radius, 8px);background:var(--scalar-background-1, transparent);padding:.85rem;margin-bottom:.85rem}.bsr__conn-row[data-v-5185370c]{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}.bsr__conn-row--foot[data-v-5185370c]{margin-top:.75rem;align-items:center}.bsr__field[data-v-5185370c]{display:flex;flex-direction:column;gap:.25rem}.bsr__field>span[data-v-5185370c]{font-size:.72rem;text-transform:uppercase;letter-spacing:.03em;color:var(--scalar-color-3, #777)}.bsr__field--grow[data-v-5185370c]{flex:1;min-width:12rem}.bsr__field input[data-v-5185370c],.bsr__field select[data-v-5185370c]{padding:.35rem .5rem;border:1px solid var(--scalar-border-color, #ddd);border-radius:var(--scalar-radius, 6px);background:var(--scalar-background-2, #fff);color:inherit;font:inherit}.bsr__section[data-v-5185370c]{margin:1.25rem 0 .5rem;font-size:.95rem}.bsr__op-head[data-v-5185370c]{display:flex;align-items:center;gap:.6rem}.bsr__op-head--spaced[data-v-5185370c]{margin-top:.85rem}.bsr__code-head[data-v-5185370c]{display:flex;align-items:center;justify-content:space-between;margin-top:.6rem}.bsr__link[data-v-5185370c]{font:inherit;font-size:.72rem;background:none;border:0;padding:0;cursor:pointer;color:var(--scalar-color-blue, #2563eb)}.bsr__link[data-v-5185370c]:disabled{opacity:.5;cursor:not-allowed}.bsr__result--sample[data-v-5185370c]{border-left-color:var(--scalar-color-3, #888);margin-top:.6rem}.bsr__method[data-v-5185370c]{font-family:var(--scalar-font-code, monospace);font-size:.7rem;font-weight:700;letter-spacing:.03em;padding:.15rem .45rem;border-radius:var(--scalar-radius, 5px);background:color-mix(in srgb,var(--scalar-color-blue, #2563eb) 16%,transparent);color:var(--scalar-color-blue, #2563eb)}.bsr__method[data-kind=send][data-v-5185370c]{background:color-mix(in srgb,var(--scalar-color-orange, #d97706) 16%,transparent);color:var(--scalar-color-orange, #d97706)}.bsr__method[data-kind=event][data-v-5185370c]{background:color-mix(in srgb,var(--scalar-color-green, #16a34a) 16%,transparent);color:var(--scalar-color-green, #16a34a)}.bsr__op-target[data-v-5185370c]{font-family:var(--scalar-font-code, monospace);font-weight:600}.bsr__op-summary[data-v-5185370c]{margin:.4rem 0 0}.bsr__code[data-v-5185370c]{width:100%;margin-top:.6rem;padding:.6rem;border:1px solid var(--scalar-border-color, #ddd);border-radius:var(--scalar-radius, 6px);background:var(--scalar-background-2, #1e1e1e);color:inherit;font-family:var(--scalar-font-code, monospace);font-size:.82rem;resize:vertical;box-sizing:border-box}.bsr__op-foot[data-v-5185370c]{display:flex;align-items:center;justify-content:space-between;margin-top:.6rem}.bsr__hint[data-v-5185370c]{font-size:.72rem;color:var(--scalar-color-3, #888)}.bsr__url[data-v-5185370c]{flex:1;min-width:10rem;font-family:var(--scalar-font-code, monospace);font-size:.8rem;color:var(--scalar-color-2, #555);overflow-wrap:anywhere}.bsr__btn[data-v-5185370c]{font:inherit;font-weight:600;padding:.4rem .8rem;border-radius:var(--scalar-radius, 6px);border:1px solid var(--scalar-border-color, #ccc);background:var(--scalar-background-2, #f4f4f4);color:inherit;cursor:pointer}.bsr__btn--primary[data-v-5185370c]{background:var(--scalar-button-1, #111);color:var(--scalar-button-1-color, #fff);border-color:transparent}.bsr__btn[data-v-5185370c]:disabled{opacity:.5;cursor:not-allowed}.bsr__result[data-v-5185370c]{margin:.6rem 0 0;padding:.6rem;border-radius:var(--scalar-radius, 6px);background:var(--scalar-background-2, #f6f6f6);border-left:3px solid var(--scalar-color-green, #16a34a);font-family:var(--scalar-font-code, monospace);font-size:.8rem;white-space:pre-wrap;overflow-wrap:anywhere}.bsr__result[data-ok=false][data-v-5185370c]{border-left-color:var(--scalar-color-red, #dc2626)}.bsr__log[data-v-5185370c]{list-style:none;margin:0;padding:.5rem;max-height:16rem;overflow:auto;border:1px solid var(--scalar-border-color, #e3e3e3);border-radius:var(--scalar-radius, 8px);background:var(--scalar-background-1, transparent);font-family:var(--scalar-font-code, monospace);font-size:.78rem}.bsr__log li[data-v-5185370c]{display:flex;gap:.5rem;padding:.12rem 0}.bsr__time[data-v-5185370c]{opacity:.55}.bsr__badge[data-v-5185370c]{text-transform:uppercase;font-size:.62rem;align-self:center;border-radius:3px;padding:0 .25rem;background:var(--scalar-background-2, #eee)}.bsr__log-in .bsr__badge[data-v-5185370c]{background:color-mix(in srgb,var(--scalar-color-blue, #2563eb) 20%,transparent)}.bsr__log-out .bsr__badge[data-v-5185370c]{background:color-mix(in srgb,var(--scalar-color-orange, #d97706) 20%,transparent)}.bsr__muted[data-v-5185370c]{color:var(--scalar-color-3, #888)}"]],["__scopeId","data-v-5185370c"]]),oi={pluginName:"bielu-signalr",elementTag:"bielu-signalr-console",sidebarLabel:"SignalR"},Lu=t=>Vo(oi,t);return Xl({...oi,discovery:ni,stylesId:"bielu-signalr-styles",wrappedFlag:"__bieluSignalRWrapped"},Hu),Kt.createSignalRPlugin=Lu,Kt.loadSignalRHubs=ri,Kt.parseSignalRHubs=si,Object.defineProperty(Kt,Symbol.toStringTag,{value:"Module"}),Kt})({});
@@ -0,0 +1,21 @@
1
+ import type { SecuritySchemeModel } from './types';
2
+ /** Store Scalar's PluginAuthState (no-op on older Scalar versions that predate the API). */
3
+ export declare function setAuthState(auth: unknown): void;
4
+ /** The captured PluginAuthState, as an opaque handle for `resolveSignalRAuth`. */
5
+ export declare function getAuthState(): unknown;
6
+ export type ResolvedAuth = {
7
+ /** Bearer token to supply via `accessTokenFactory` (http bearer, oauth2, openIdConnect). */
8
+ accessToken?: string;
9
+ /** Key-value pairs to append as query parameters to the hub URL. */
10
+ queryParams: Record<string, string>;
11
+ /** Non-fatal warnings about scheme constraints (e.g. header-only schemes that WS cannot send). */
12
+ warnings: string[];
13
+ };
14
+ /**
15
+ * Resolve Scalar's selected auth for the given document and map the secrets to SignalR connection
16
+ * options. Browser WebSocket/SSE cannot send arbitrary headers, so API keys are mapped onto query
17
+ * parameters (with a warning when the scheme declared a header) and only bearer-shaped schemes can
18
+ * supply an access token. Returns an empty result when auth state is absent (stock Scalar or no
19
+ * scheme selected), so callers need no guard.
20
+ */
21
+ export declare function resolveSignalRAuth(documentName: string, securitySchemes: Record<string, SecuritySchemeModel> | undefined, auth: unknown): ResolvedAuth;
@@ -0,0 +1,7 @@
1
+ import type { SignalRDocumentRef } from '../types';
2
+ type __VLS_Props = {
3
+ options?: Record<string, any>;
4
+ documents?: SignalRDocumentRef[];
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import type { SignalRDocumentRef } from './types';
2
+ /** How the SignalR bundle discovers its AsyncAPI documents (see `resolveDocuments` in @bielu/scalar-core). */
3
+ export declare const SIGNALR_DISCOVERY: {
4
+ readonly configKey: "signalr";
5
+ readonly globalName: "__BIELU_SCALAR_SIGNALR__";
6
+ };
7
+ /**
8
+ * Resolves the documents to scan, in decreasing priority: an explicit override (`documents` prop);
9
+ * a `SignalRPluginConfig` embedded inline on the Scalar config as `config.signalr`; a
10
+ * `window.__BIELU_SCALAR_SIGNALR__` global; otherwise auto-discovery from the Scalar configuration
11
+ * passed as `options`.
12
+ */
13
+ export declare function resolveDocuments(options: Record<string, any> | undefined, override?: SignalRDocumentRef[]): SignalRDocumentRef[];
@@ -0,0 +1,3 @@
1
+ export { createSignalRPlugin } from './plugin';
2
+ export { loadSignalRHubs, parseSignalRHubs } from './signalr-bindings';
3
+ export type { SignalRDirection, SignalRDocumentRef, SignalRHubModel, SignalROperationModel, SignalRPluginConfig, } from './types';
@@ -0,0 +1,32 @@
1
+ import type { SignalRDocumentRef } from './types';
2
+ /** The custom element tag the console is rendered as (registered in `index.ts`). */
3
+ export declare const SIGNALR_CONSOLE_TAG = "bielu-signalr-console";
4
+ /** The Scalar plugin's identifier, used to detect (and de-duplicate) an existing registration. */
5
+ export declare const SIGNALR_PLUGIN_NAME = "bielu-signalr";
6
+ /** How the SignalR console registers with Scalar (plugin name, element tag, sidebar label). */
7
+ export declare const SIGNALR_PLUGIN_SPEC: {
8
+ readonly pluginName: "bielu-signalr";
9
+ readonly elementTag: "bielu-signalr-console";
10
+ readonly sidebarLabel: "SignalR";
11
+ };
12
+ /**
13
+ * The structural shape of a Scalar API Reference plugin. Declared locally (a structural copy of
14
+ * @bielu/scalar-core's type) so the published declaration files never reference the private core
15
+ * package; Scalar validates it at runtime.
16
+ */
17
+ export type ApiReferencePlugin = () => {
18
+ name: string;
19
+ extensions: unknown[];
20
+ views?: Record<string, unknown[]>;
21
+ hooks?: Record<string, unknown>;
22
+ apiClientPlugins?: unknown[];
23
+ };
24
+ /**
25
+ * Creates the SignalR console plugin for the Scalar API Reference.
26
+ *
27
+ * The view's `component` is the custom element tag name (a string), so Scalar's own Vue renders a
28
+ * plain element — our Web Component (with its own Vue + styles) takes over from there. The AsyncAPI
29
+ * documents (discovered from the Scalar configuration at registration time) are passed to the
30
+ * element as the `documents` prop, so the console does not depend on Scalar binding its config.
31
+ */
32
+ export declare const createSignalRPlugin: (documents?: SignalRDocumentRef[]) => ApiReferencePlugin;
@@ -0,0 +1,11 @@
1
+ import type { SignalRDocumentRef, SignalRHubModel } from './types';
2
+ type AnyRecord = Record<string, any>;
3
+ /** Extract every SignalR hub (channel + its operations) from a parsed AsyncAPI document. */
4
+ export declare function parseSignalRHubs(documentName: string, doc: AnyRecord): SignalRHubModel[];
5
+ /**
6
+ * Resolve the configured documents (inline object or URL) and aggregate the SignalR hubs they
7
+ * declare. Only documents that are actually AsyncAPI are considered, so OpenAPI sources in the
8
+ * same Scalar configuration are ignored.
9
+ */
10
+ export declare function loadSignalRHubs(documents: SignalRDocumentRef[]): Promise<SignalRHubModel[]>;
11
+ export {};