pinia-plugin-subscription 0.0.0-beta.9 → 0.0.2

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.
@@ -1,5 +1,5 @@
1
1
  import { defineStore as It } from "pinia";
2
- class Mn {
2
+ class Fn {
3
3
  _console;
4
4
  _createInstance;
5
5
  _name;
@@ -37,14 +37,15 @@ class Mn {
37
37
  set subscriptions(e) {
38
38
  this._subscriptions = e;
39
39
  }
40
- constructor(e, n, s) {
41
- this._name = e, this._createInstance = n, s && (this._console = s);
40
+ constructor(e, n, r) {
41
+ this._name = e, this._createInstance = n, r && (this._console = r);
42
42
  }
43
- invoke({ store: e, options: n }, s) {
44
- this._storeInstance = this._createInstance(e, { ...n, ...this.pluginOptions }, s, this.console), this._storeInstance && (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(e));
43
+ invoke({ store: e, options: n }, r) {
44
+ return this._storeInstance = this._createInstance(e, { ...n, ...this.pluginOptions }, r, this.console), this._storeInstance ? (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(e), !0) : !1;
45
45
  }
46
46
  }
47
- class Vt {
47
+ class $t {
48
+ _className;
48
49
  _console;
49
50
  _debug = !1;
50
51
  get console() {
@@ -60,7 +61,7 @@ class Vt {
60
61
  this._debug = e;
61
62
  }
62
63
  constructor(e, n) {
63
- this._debug = e, n && (this._console = n);
64
+ this._debug = e, this._className = this.constructor.name, n && (this._console = n);
64
65
  }
65
66
  debugLog(...e) {
66
67
  this._debug && (Array.isArray(e) && (e[0] = `${this._className} - ${e[0]}`), this.console.log(...e));
@@ -69,8 +70,8 @@ class Vt {
69
70
  this.console.error(...e);
70
71
  }
71
72
  }
72
- const At = "pinia-plugin-subscription", le = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
73
- function ae(t, e) {
73
+ const Vt = "pinia-plugin-subscription", ce = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
74
+ function le(t, e) {
74
75
  if (!t)
75
76
  throw new Error("Style instructions are required");
76
77
  console.log(
@@ -80,7 +81,7 @@ function ae(t, e) {
80
81
  ...e
81
82
  );
82
83
  }
83
- class ue {
84
+ class ae {
84
85
  _bgColor = "#ffec73";
85
86
  _color = "green";
86
87
  _icon = "🍍⚡";
@@ -92,10 +93,10 @@ class ue {
92
93
  info: { bgColor: this._bgColor, color: this._color, icon: this._icon }
93
94
  };
94
95
  formatMessage(e, n) {
95
- return ` [${n} ${At}] - ${e} `;
96
+ return ` [${n} ${Vt}] - ${e} `;
96
97
  }
97
98
  generateStyle(e) {
98
- return le(e.bgColor, e.color);
99
+ return ce(e.bgColor, e.color);
99
100
  }
100
101
  getStyleDefinition(e) {
101
102
  return this._styles[e ?? "info"];
@@ -119,65 +120,49 @@ class ue {
119
120
  return [this.formatMessage(e.shift(), n), ...e ?? []];
120
121
  }
121
122
  useLog(e, n) {
122
- ae(
123
+ le(
123
124
  this.generateStyle(e),
124
125
  this.rebuildArgs(n, e.icon)
125
126
  );
126
127
  }
127
128
  }
128
- class fe extends ue {
129
- _pluginName = At;
129
+ class ue extends ae {
130
+ _pluginName = Vt;
130
131
  }
131
- const pe = new fe();
132
- function Pn(t, e, n) {
133
- const s = n ? { storeOptions: n } : {};
134
- return typeof e == "function" ? he(
135
- t,
136
- e,
137
- s
138
- ) : de(
139
- t,
140
- e,
141
- s
142
- );
143
- }
144
- function he(t, e, n) {
145
- return It(t, e, n);
146
- }
147
- function de(t, e, n) {
148
- return n && (e = { ...e, ...n ?? {} }), It(t, e);
149
- }
150
- const _e = /* @__PURE__ */ new Set(["_", "$"]);
151
- function xt(t) {
152
- return _e.has(t[0]);
153
- }
154
- function $t(t) {
132
+ const fe = new ue();
133
+ function at(t) {
155
134
  return t ? Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : typeof t == "string" ? t.trim() === "" : !1 : !(typeof t == "boolean" || typeof t == "number");
156
135
  }
157
- class ge extends Vt {
158
- _className = "PluginSubscription";
136
+ const he = "PluginSubscription";
137
+ class pe extends $t {
138
+ _pluginDebug;
159
139
  _resetStoreCallback = [];
160
140
  _subscribers = [];
141
+ _subscribersDelivered = /* @__PURE__ */ new Set();
161
142
  _subscriptions = [];
143
+ _subscriptionsDelivered = /* @__PURE__ */ new Set();
162
144
  set subscribers(e) {
163
145
  this._subscribers = e;
164
146
  }
165
147
  get subscriptions() {
166
- if (!$t(this._subscriptions))
148
+ if (!at(this._subscriptions))
167
149
  return this._subscriptions;
168
150
  }
169
151
  constructor(e, n) {
170
- super(n, pe), this._subscribers = e;
152
+ super(Array.isArray(n) && !!n?.includes(he), fe), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
171
153
  }
172
154
  addResetStoreCallback(e) {
173
155
  this._resetStoreCallback.push(e);
174
156
  }
157
+ definePluginDebug(e) {
158
+ return !!this._pluginDebug?.includes(e.name);
159
+ }
175
160
  executeResetStoreCallbacks(e) {
176
161
  this._resetStoreCallback.forEach((n) => n(e));
177
162
  }
178
163
  plugin({ store: e, options: n }) {
179
164
  if (this._subscribers.length) {
180
- this.debugLog(`plugin() - store: ${e.$id}`, [
165
+ this.debugLog(`plugin() - ${e.$id}`, [
181
166
  "subscriber:",
182
167
  this._subscribers,
183
168
  "store:",
@@ -187,132 +172,156 @@ class ge extends Vt {
187
172
  ]);
188
173
  try {
189
174
  this._subscribers.forEach(
190
- (s) => {
191
- s.invoke({ store: e, options: n }, this.debug), s.subscriptions && this.subscriptionDelivery({ store: e, options: n }, s.subscriptions), s.storeMutationSubscription && this.storeMutationSubscription(s.storeMutationSubscription), s.storeOnActionSubscription && this.storeOnActionSubscription(s.storeOnActionSubscription), s.resetStoreCallback && this.addResetStoreCallback(s.resetStoreCallback);
175
+ (r) => {
176
+ this._subscribersDelivered.has(`${r.name}-${e.$id}`) || r.invoke(
177
+ { store: e, options: n },
178
+ this.definePluginDebug(r)
179
+ ) && (this._subscribersDelivered.add(`${r.name}-${e.$id}`), r.subscriptions && this.subscriptionDelivery({ store: e, options: n }, r.subscriptions), r.storeMutationSubscription && this.storeMutationSubscription(r.storeMutationSubscription), r.storeOnActionSubscription && this.storeOnActionSubscription(r.storeOnActionSubscription), r.resetStoreCallback && this.addResetStoreCallback(r.resetStoreCallback));
192
180
  }
193
- ), this.rewriteResetStore({ store: e }, Object.assign({}, e.$state), Object.assign({}, e));
194
- } catch (s) {
195
- this.logError(s, e, n);
181
+ ), this.rewriteResetStore({ store: e }, JSON.stringify(e.$state), Object.assign({}, e));
182
+ } catch (r) {
183
+ this.logError(r, e, n);
196
184
  }
197
185
  }
198
186
  }
199
- rewriteResetStore({ store: e }, n, s) {
187
+ rewriteResetStore({ store: e }, n, r) {
200
188
  e.$reset = () => {
201
- this.executeResetStoreCallbacks(e), Object.keys(s).forEach((r) => {
202
- xt(r) || (e[r] = n[r] ?? s[r]);
203
- }), e.$patch(JSON.parse(JSON.stringify(n)));
189
+ this.debugLog("rewriteResetStore()", { initState: n, store: e, customStore: r }), this.executeResetStoreCallbacks(e), e.$patch(JSON.parse(n));
204
190
  };
205
191
  }
206
192
  storeOnActionSubscription(e) {
207
- const { store: n, callback: s } = e();
208
- n.$onAction(({ after: r, args: o, name: i }) => {
209
- this.debugLog(`storeOnActionSubscription ${n.$id}`, [r, o, i, n]), s({ after: r, args: o, name: i });
193
+ const { store: n, callback: r } = e();
194
+ n.$onAction(({ after: s, args: o, name: i }) => {
195
+ this.debugLog(`storeOnActionSubscription ${n.$id}`, { after: s, args: o, name: i, store: n }), r({ after: s, args: o, name: i });
210
196
  });
211
197
  }
212
198
  storeMutationSubscription(e) {
213
- const { store: n, callback: s } = e();
214
- n.$subscribe((r) => {
215
- this.debugLog(`$subscribe ${n.$id}`, [r, n]), s(r);
199
+ const { store: n, callback: r } = e();
200
+ n.$subscribe((s) => {
201
+ this.debugLog(`$subscribe ${n.$id}`, { mutation: s, store: n }), r(s);
216
202
  });
217
203
  }
218
- subscriptionDelivery({ store: e, options: n }, s) {
219
- Object.entries(s).forEach(([r, o]) => {
204
+ subscriptionDelivery({ store: e, options: n }, r) {
205
+ Object.entries(r).forEach(([s, o]) => {
220
206
  try {
221
- const { subscription: i, subscriptionOptions: c } = o;
207
+ if (this._subscriptionsDelivered.has(`${s}-${e.$id}`))
208
+ return;
209
+ const { subscription: i, subscriptionOptions: c, stores: a } = o;
222
210
  this.debugLog(`subscriptionDelivery() - store: ${e.$id}`, [
223
211
  "pluginName:",
224
- r,
212
+ s,
225
213
  "subscription:",
226
214
  i,
227
215
  "options:",
228
- c
229
- ]), i.invoke({ store: e, options: { ...n, ...c } }, this.debug);
216
+ o,
217
+ "stores:",
218
+ a
219
+ ]);
220
+ const u = {
221
+ storeOptions: { ...n?.storeOptions ?? {}, ...c }
222
+ };
223
+ i.invoke(
224
+ { store: e, options: { ...n, ...u } },
225
+ this.debug
226
+ ), this._subscriptionsDelivered.add(`${s}-${e.$id}`), at(a) || a?.forEach(
227
+ (f) => i.invoke(
228
+ {
229
+ store: f,
230
+ options: {
231
+ ...n,
232
+ ...u,
233
+ ...f?.storeOptions ?? {}
234
+ }
235
+ },
236
+ this.debug
237
+ )
238
+ );
230
239
  } catch (i) {
231
- this.logError(`subscriptionDelivery() - ${r}`, i, e, n);
240
+ this.logError("subscriptionDelivery()", i, e, n);
232
241
  }
233
242
  });
234
243
  }
235
244
  }
236
245
  // @__NO_SIDE_EFFECTS__
237
- function be(t) {
246
+ function de(t) {
238
247
  const e = /* @__PURE__ */ Object.create(null);
239
248
  for (const n of t.split(",")) e[n] = 1;
240
249
  return (n) => n in e;
241
250
  }
242
- const lt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
251
+ const ut = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
243
252
  process.env.NODE_ENV !== "production" && Object.freeze([]);
244
253
  const Dt = () => {
245
- }, me = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
246
- (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign, ye = Object.prototype.hasOwnProperty, at = (t, e) => ye.call(t, e), d = Array.isArray, K = (t) => Tt(t) === "[object Map]", V = (t) => typeof t == "function", N = (t) => typeof t == "string", W = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", Se = Object.prototype.toString, Tt = (t) => Se.call(t), Mt = (t) => Tt(t).slice(8, -1), Z = (t) => N(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, Ee = (t) => {
254
+ }, _e = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
255
+ (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), ge = (t) => t.startsWith("onUpdate:"), D = Object.assign, be = Object.prototype.hasOwnProperty, ft = (t, e) => be.call(t, e), d = Array.isArray, H = (t) => xt(t) === "[object Map]", I = (t) => typeof t == "function", v = (t) => typeof t == "string", V = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", me = Object.prototype.toString, xt = (t) => me.call(t), Tt = (t) => xt(t).slice(8, -1), tt = (t) => v(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, ye = (t) => {
247
256
  const e = /* @__PURE__ */ Object.create(null);
248
257
  return ((n) => e[n] || (e[n] = t(n)));
249
- }, Oe = Ee((t) => t.charAt(0).toUpperCase() + t.slice(1)), ht = (t, e) => !Object.is(t, e);
250
- let Ot;
251
- const tt = () => Ot || (Ot = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
252
- function dt(t) {
258
+ }, Se = ye((t) => t.charAt(0).toUpperCase() + t.slice(1)), L = (t, e) => !Object.is(t, e);
259
+ let wt;
260
+ const et = () => wt || (wt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
261
+ function _t(t) {
253
262
  if (d(t)) {
254
263
  const e = {};
255
264
  for (let n = 0; n < t.length; n++) {
256
- const s = t[n], r = N(s) ? Re(s) : dt(s);
257
- if (r)
258
- for (const o in r)
259
- e[o] = r[o];
265
+ const r = t[n], s = v(r) ? Ne(r) : _t(r);
266
+ if (s)
267
+ for (const o in s)
268
+ e[o] = s[o];
260
269
  }
261
270
  return e;
262
- } else if (N(t) || _(t))
271
+ } else if (v(t) || _(t))
263
272
  return t;
264
273
  }
265
- const we = /;(?![^(]*\))/g, Ne = /:([^]+)/, ve = /\/\*[^]*?\*\//g;
266
- function Re(t) {
274
+ const Oe = /;(?![^(]*\))/g, Ee = /:([^]+)/, we = /\/\*[^]*?\*\//g;
275
+ function Ne(t) {
267
276
  const e = {};
268
- return t.replace(ve, "").split(we).forEach((n) => {
277
+ return t.replace(we, "").split(Oe).forEach((n) => {
269
278
  if (n) {
270
- const s = n.split(Ne);
271
- s.length > 1 && (e[s[0].trim()] = s[1].trim());
279
+ const r = n.split(Ee);
280
+ r.length > 1 && (e[r[0].trim()] = r[1].trim());
272
281
  }
273
282
  }), e;
274
283
  }
275
- function _t(t) {
284
+ function gt(t) {
276
285
  let e = "";
277
- if (N(t))
286
+ if (v(t))
278
287
  e = t;
279
288
  else if (d(t))
280
289
  for (let n = 0; n < t.length; n++) {
281
- const s = _t(t[n]);
282
- s && (e += s + " ");
290
+ const r = gt(t[n]);
291
+ r && (e += r + " ");
283
292
  }
284
293
  else if (_(t))
285
294
  for (const n in t)
286
295
  t[n] && (e += n + " ");
287
296
  return e.trim();
288
297
  }
289
- function M(t, ...e) {
298
+ function F(t, ...e) {
290
299
  console.warn(`[Vue warn] ${t}`, ...e);
291
300
  }
292
- let Pt = 0, et;
293
- function gt() {
294
- Pt++;
295
- }
301
+ let Mt = 0, nt;
296
302
  function bt() {
297
- if (--Pt > 0)
303
+ Mt++;
304
+ }
305
+ function mt() {
306
+ if (--Mt > 0)
298
307
  return;
299
308
  let t;
300
- for (; et; ) {
301
- let e = et;
302
- for (et = void 0; e; ) {
309
+ for (; nt; ) {
310
+ let e = nt;
311
+ for (nt = void 0; e; ) {
303
312
  const n = e.next;
304
313
  if (e.next = void 0, e.flags &= -9, e.flags & 1)
305
314
  try {
306
315
  e.trigger();
307
- } catch (s) {
308
- t || (t = s);
316
+ } catch (r) {
317
+ t || (t = r);
309
318
  }
310
319
  e = n;
311
320
  }
312
321
  }
313
322
  if (t) throw t;
314
323
  }
315
- class Ce {
324
+ class ve {
316
325
  // TODO isolatedDeclarations "__v_skip"
317
326
  constructor(e) {
318
327
  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, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
@@ -323,12 +332,12 @@ class Ce {
323
332
  this.version++, this.notify(e);
324
333
  }
325
334
  notify(e) {
326
- gt();
335
+ bt();
327
336
  try {
328
337
  if (process.env.NODE_ENV !== "production")
329
338
  for (let n = this.subsHead; n; n = n.nextSub)
330
339
  n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
331
- F(
340
+ D(
332
341
  {
333
342
  effect: n.sub
334
343
  },
@@ -338,19 +347,19 @@ class Ce {
338
347
  for (let n = this.subs; n; n = n.prevSub)
339
348
  n.sub.notify() && n.sub.dep.notify();
340
349
  } finally {
341
- bt();
350
+ mt();
342
351
  }
343
352
  }
344
353
  }
345
- const Ft = /* @__PURE__ */ new WeakMap(), nt = Symbol(
354
+ const Pt = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ Symbol(
346
355
  process.env.NODE_ENV !== "production" ? "Object iterate" : ""
347
- ), wt = Symbol(
356
+ ), Nt = /* @__PURE__ */ Symbol(
348
357
  process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
349
- ), Nt = Symbol(
358
+ ), vt = /* @__PURE__ */ Symbol(
350
359
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
351
360
  );
352
- function I(t, e, n, s, r, o) {
353
- const i = Ft.get(t);
361
+ function A(t, e, n, r, s, o) {
362
+ const i = Pt.get(t);
354
363
  if (!i)
355
364
  return;
356
365
  const c = (a) => {
@@ -358,53 +367,53 @@ function I(t, e, n, s, r, o) {
358
367
  target: t,
359
368
  type: e,
360
369
  key: n,
361
- newValue: s,
362
- oldValue: r,
370
+ newValue: r,
371
+ oldValue: s,
363
372
  oldTarget: o
364
373
  }) : a.trigger());
365
374
  };
366
- if (gt(), e === "clear")
375
+ if (bt(), e === "clear")
367
376
  i.forEach(c);
368
377
  else {
369
- const a = d(t), f = a && Z(n);
378
+ const a = d(t), u = a && tt(n);
370
379
  if (a && n === "length") {
371
- const h = Number(s);
372
- i.forEach((l, p) => {
373
- (p === "length" || p === Nt || !W(p) && p >= h) && c(l);
380
+ const f = Number(r);
381
+ i.forEach((l, h) => {
382
+ (h === "length" || h === vt || !V(h) && h >= f) && c(l);
374
383
  });
375
384
  } else
376
- switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), f && c(i.get(Nt)), e) {
385
+ switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(vt)), e) {
377
386
  case "add":
378
- a ? f && c(i.get("length")) : (c(i.get(nt)), K(t) && c(i.get(wt)));
387
+ a ? u && c(i.get("length")) : (c(i.get(st)), H(t) && c(i.get(Nt)));
379
388
  break;
380
389
  case "delete":
381
- a || (c(i.get(nt)), K(t) && c(i.get(wt)));
390
+ a || (c(i.get(st)), H(t) && c(i.get(Nt)));
382
391
  break;
383
392
  case "set":
384
- K(t) && c(i.get(nt));
393
+ H(t) && c(i.get(st));
385
394
  break;
386
395
  }
387
396
  }
388
- bt();
397
+ mt();
389
398
  }
390
- function Ie(t, e) {
391
- const n = Ft.get(t);
399
+ function Re(t, e) {
400
+ const n = Pt.get(t);
392
401
  return n && n.get(e);
393
402
  }
394
403
  function x(t) {
395
- const e = u(t);
396
- return e === t || y(t) ? e : e.map(v);
404
+ const e = /* @__PURE__ */ p(t);
405
+ return e === t || /* @__PURE__ */ y(t) ? e : e.map(R);
397
406
  }
398
- function mt(t) {
399
- return t = u(t), t;
407
+ function yt(t) {
408
+ return t = /* @__PURE__ */ p(t), t;
400
409
  }
401
- function R(t, e) {
402
- return E(t) ? yt(t) ? L(v(e)) : L(e) : v(e);
410
+ function O(t, e) {
411
+ return /* @__PURE__ */ E(t) ? z(/* @__PURE__ */ St(t) ? R(e) : e) : R(e);
403
412
  }
404
- const Ve = {
413
+ const Ce = {
405
414
  __proto__: null,
406
415
  [Symbol.iterator]() {
407
- return rt(this, Symbol.iterator, (t) => R(this, t));
416
+ return rt(this, Symbol.iterator, (t) => O(this, t));
408
417
  },
409
418
  concat(...t) {
410
419
  return x(this).concat(
@@ -412,88 +421,88 @@ const Ve = {
412
421
  );
413
422
  },
414
423
  entries() {
415
- return rt(this, "entries", (t) => (t[1] = R(this, t[1]), t));
424
+ return rt(this, "entries", (t) => (t[1] = O(this, t[1]), t));
416
425
  },
417
426
  every(t, e) {
418
- return O(this, "every", t, e, void 0, arguments);
427
+ return w(this, "every", t, e, void 0, arguments);
419
428
  },
420
429
  filter(t, e) {
421
- return O(
430
+ return w(
422
431
  this,
423
432
  "filter",
424
433
  t,
425
434
  e,
426
- (n) => n.map((s) => R(this, s)),
435
+ (n) => n.map((r) => O(this, r)),
427
436
  arguments
428
437
  );
429
438
  },
430
439
  find(t, e) {
431
- return O(
440
+ return w(
432
441
  this,
433
442
  "find",
434
443
  t,
435
444
  e,
436
- (n) => R(this, n),
445
+ (n) => O(this, n),
437
446
  arguments
438
447
  );
439
448
  },
440
449
  findIndex(t, e) {
441
- return O(this, "findIndex", t, e, void 0, arguments);
450
+ return w(this, "findIndex", t, e, void 0, arguments);
442
451
  },
443
452
  findLast(t, e) {
444
- return O(
453
+ return w(
445
454
  this,
446
455
  "findLast",
447
456
  t,
448
457
  e,
449
- (n) => R(this, n),
458
+ (n) => O(this, n),
450
459
  arguments
451
460
  );
452
461
  },
453
462
  findLastIndex(t, e) {
454
- return O(this, "findLastIndex", t, e, void 0, arguments);
463
+ return w(this, "findLastIndex", t, e, void 0, arguments);
455
464
  },
456
465
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
457
466
  forEach(t, e) {
458
- return O(this, "forEach", t, e, void 0, arguments);
467
+ return w(this, "forEach", t, e, void 0, arguments);
459
468
  },
460
469
  includes(...t) {
461
- return st(this, "includes", t);
470
+ return ot(this, "includes", t);
462
471
  },
463
472
  indexOf(...t) {
464
- return st(this, "indexOf", t);
473
+ return ot(this, "indexOf", t);
465
474
  },
466
475
  join(t) {
467
476
  return x(this).join(t);
468
477
  },
469
478
  // keys() iterator only reads `length`, no optimization required
470
479
  lastIndexOf(...t) {
471
- return st(this, "lastIndexOf", t);
480
+ return ot(this, "lastIndexOf", t);
472
481
  },
473
482
  map(t, e) {
474
- return O(this, "map", t, e, void 0, arguments);
483
+ return w(this, "map", t, e, void 0, arguments);
475
484
  },
476
485
  pop() {
477
- return k(this, "pop");
486
+ return K(this, "pop");
478
487
  },
479
488
  push(...t) {
480
- return k(this, "push", t);
489
+ return K(this, "push", t);
481
490
  },
482
491
  reduce(t, ...e) {
483
- return vt(this, "reduce", t, e);
492
+ return Rt(this, "reduce", t, e);
484
493
  },
485
494
  reduceRight(t, ...e) {
486
- return vt(this, "reduceRight", t, e);
495
+ return Rt(this, "reduceRight", t, e);
487
496
  },
488
497
  shift() {
489
- return k(this, "shift");
498
+ return K(this, "shift");
490
499
  },
491
500
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
492
501
  some(t, e) {
493
- return O(this, "some", t, e, void 0, arguments);
502
+ return w(this, "some", t, e, void 0, arguments);
494
503
  },
495
504
  splice(...t) {
496
- return k(this, "splice", t);
505
+ return K(this, "splice", t);
497
506
  },
498
507
  toReversed() {
499
508
  return x(this).toReversed();
@@ -505,80 +514,82 @@ const Ve = {
505
514
  return x(this).toSpliced(...t);
506
515
  },
507
516
  unshift(...t) {
508
- return k(this, "unshift", t);
517
+ return K(this, "unshift", t);
509
518
  },
510
519
  values() {
511
- return rt(this, "values", (t) => R(this, t));
520
+ return rt(this, "values", (t) => O(this, t));
512
521
  }
513
522
  };
514
523
  function rt(t, e, n) {
515
- const s = mt(t), r = s[e]();
516
- return s !== t && !y(t) && (r._next = r.next, r.next = () => {
517
- const o = r._next();
524
+ const r = yt(t), s = r[e]();
525
+ return r !== t && !/* @__PURE__ */ y(t) && (s._next = s.next, s.next = () => {
526
+ const o = s._next();
518
527
  return o.done || (o.value = n(o.value)), o;
519
- }), r;
528
+ }), s;
520
529
  }
521
530
  const Ae = Array.prototype;
522
- function O(t, e, n, s, r, o) {
523
- const i = mt(t), c = i !== t && !y(t), a = i[e];
531
+ function w(t, e, n, r, s, o) {
532
+ const i = yt(t), c = i !== t && !/* @__PURE__ */ y(t), a = i[e];
524
533
  if (a !== Ae[e]) {
525
534
  const l = a.apply(t, o);
526
- return c ? v(l) : l;
535
+ return c ? R(l) : l;
527
536
  }
528
- let f = n;
529
- i !== t && (c ? f = function(l, p) {
530
- return n.call(this, R(t, l), p, t);
531
- } : n.length > 2 && (f = function(l, p) {
532
- return n.call(this, l, p, t);
537
+ let u = n;
538
+ i !== t && (c ? u = function(l, h) {
539
+ return n.call(this, O(t, l), h, t);
540
+ } : n.length > 2 && (u = function(l, h) {
541
+ return n.call(this, l, h, t);
533
542
  }));
534
- const h = a.call(i, f, s);
535
- return c && r ? r(h) : h;
536
- }
537
- function vt(t, e, n, s) {
538
- const r = mt(t);
539
- let o = n;
540
- return r !== t && (y(t) ? n.length > 3 && (o = function(i, c, a) {
541
- return n.call(this, i, c, a, t);
542
- }) : o = function(i, c, a) {
543
- return n.call(this, i, R(t, c), a, t);
544
- }), r[e](o, ...s);
545
- }
546
- function st(t, e, n) {
547
- const s = u(t), r = s[e](...n);
548
- return (r === -1 || r === !1) && H(n[0]) ? (n[0] = u(n[0]), s[e](...n)) : r;
549
- }
550
- function k(t, e, n = []) {
551
- gt();
552
- const s = u(t)[e].apply(t, n);
553
- return bt(), s;
554
- }
555
- const xe = /* @__PURE__ */ be("__proto__,__v_isRef,__isVue"), jt = new Set(
556
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(W)
543
+ const f = a.call(i, u, r);
544
+ return c && s ? s(f) : f;
545
+ }
546
+ function Rt(t, e, n, r) {
547
+ const s = yt(t), o = s !== t && !/* @__PURE__ */ y(t);
548
+ let i = n, c = !1;
549
+ s !== t && (o ? (c = r.length === 0, i = function(u, f, l) {
550
+ return c && (c = !1, u = O(t, u)), n.call(this, u, O(t, f), l, t);
551
+ }) : n.length > 3 && (i = function(u, f, l) {
552
+ return n.call(this, u, f, l, t);
553
+ }));
554
+ const a = s[e](i, ...r);
555
+ return c ? O(t, a) : a;
556
+ }
557
+ function ot(t, e, n) {
558
+ const r = /* @__PURE__ */ p(t), s = r[e](...n);
559
+ return (s === -1 || s === !1) && /* @__PURE__ */ W(n[0]) ? (n[0] = /* @__PURE__ */ p(n[0]), r[e](...n)) : s;
560
+ }
561
+ function K(t, e, n = []) {
562
+ bt();
563
+ const r = (/* @__PURE__ */ p(t))[e].apply(t, n);
564
+ return mt(), r;
565
+ }
566
+ const Ie = /* @__PURE__ */ de("__proto__,__v_isRef,__isVue"), Ft = new Set(
567
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(V)
557
568
  );
558
569
  function $e(t) {
559
- return W(t) || (t = String(t)), u(this).hasOwnProperty(t);
570
+ return V(t) || (t = String(t)), (/* @__PURE__ */ p(this)).hasOwnProperty(t);
560
571
  }
561
572
  class kt {
562
573
  constructor(e = !1, n = !1) {
563
574
  this._isReadonly = e, this._isShallow = n;
564
575
  }
565
- get(e, n, s) {
576
+ get(e, n, r) {
566
577
  if (n === "__v_skip") return e.__v_skip;
567
- const r = this._isReadonly, o = this._isShallow;
578
+ const s = this._isReadonly, o = this._isShallow;
568
579
  if (n === "__v_isReactive")
569
- return !r;
580
+ return !s;
570
581
  if (n === "__v_isReadonly")
571
- return r;
582
+ return s;
572
583
  if (n === "__v_isShallow")
573
584
  return o;
574
585
  if (n === "__v_raw")
575
- return s === (r ? o ? Le : Lt : o ? He : Ht).get(e) || // receiver is not the reactive proxy, but has the same prototype
586
+ return r === (s ? o ? Ke : Ht : o ? je : Kt).get(e) || // receiver is not the reactive proxy, but has the same prototype
576
587
  // this means the receiver is a user proxy of the reactive proxy
577
- Object.getPrototypeOf(e) === Object.getPrototypeOf(s) ? e : void 0;
588
+ Object.getPrototypeOf(e) === Object.getPrototypeOf(r) ? e : void 0;
578
589
  const i = d(e);
579
- if (!r) {
590
+ if (!s) {
580
591
  let a;
581
- if (i && (a = Ve[n]))
592
+ if (i && (a = Ce[n]))
582
593
  return a;
583
594
  if (n === "hasOwnProperty")
584
595
  return $e;
@@ -589,160 +600,154 @@ class kt {
589
600
  // if this is a proxy wrapping a ref, return methods using the raw ref
590
601
  // as receiver so that we don't have to call `toRaw` on the ref in all
591
602
  // its class methods
592
- g(e) ? e : s
603
+ /* @__PURE__ */ g(e) ? e : r
593
604
  );
594
- if ((W(n) ? jt.has(n) : xe(n)) || o)
605
+ if ((V(n) ? Ft.has(n) : Ie(n)) || o)
595
606
  return c;
596
- if (g(c)) {
597
- const a = i && Z(n) ? c : c.value;
598
- return r && _(a) ? ft(a) : a;
607
+ if (/* @__PURE__ */ g(c)) {
608
+ const a = i && tt(n) ? c : c.value;
609
+ return s && _(a) ? /* @__PURE__ */ pt(a) : a;
599
610
  }
600
- return _(c) ? r ? ft(c) : zt(c) : c;
611
+ return _(c) ? s ? /* @__PURE__ */ pt(c) : /* @__PURE__ */ Lt(c) : c;
601
612
  }
602
613
  }
603
- class De extends kt {
614
+ class Ve extends kt {
604
615
  constructor(e = !1) {
605
616
  super(!1, e);
606
617
  }
607
- set(e, n, s, r) {
618
+ set(e, n, r, s) {
608
619
  let o = e[n];
609
- const i = d(e) && Z(n);
620
+ const i = d(e) && tt(n);
610
621
  if (!this._isShallow) {
611
- const f = E(o);
612
- if (!y(s) && !E(s) && (o = u(o), s = u(s)), !i && g(o) && !g(s))
613
- return f ? (process.env.NODE_ENV !== "production" && M(
622
+ const u = /* @__PURE__ */ E(o);
623
+ if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */ E(r) && (o = /* @__PURE__ */ p(o), r = /* @__PURE__ */ p(r)), !i && /* @__PURE__ */ g(o) && !/* @__PURE__ */ g(r))
624
+ return u ? (process.env.NODE_ENV !== "production" && F(
614
625
  `Set operation on key "${String(n)}" failed: target is readonly.`,
615
626
  e[n]
616
- ), !0) : (o.value = s, !0);
627
+ ), !0) : (o.value = r, !0);
617
628
  }
618
- const c = i ? Number(n) < e.length : at(e, n), a = Reflect.set(
629
+ const c = i ? Number(n) < e.length : ft(e, n), a = Reflect.set(
619
630
  e,
620
631
  n,
621
- s,
622
- g(e) ? e : r
632
+ r,
633
+ /* @__PURE__ */ g(e) ? e : s
623
634
  );
624
- return e === u(r) && (c ? ht(s, o) && I(e, "set", n, s, o) : I(e, "add", n, s)), a;
635
+ return e === /* @__PURE__ */ p(s) && (c ? L(r, o) && A(e, "set", n, r, o) : A(e, "add", n, r)), a;
625
636
  }
626
637
  deleteProperty(e, n) {
627
- const s = at(e, n), r = e[n], o = Reflect.deleteProperty(e, n);
628
- return o && s && I(e, "delete", n, void 0, r), o;
638
+ const r = ft(e, n), s = e[n], o = Reflect.deleteProperty(e, n);
639
+ return o && r && A(e, "delete", n, void 0, s), o;
629
640
  }
630
641
  has(e, n) {
631
- const s = Reflect.has(e, n);
632
- return !W(n) || jt.has(n), s;
642
+ const r = Reflect.has(e, n);
643
+ return !V(n) || Ft.has(n), r;
633
644
  }
634
645
  ownKeys(e) {
635
646
  return Reflect.ownKeys(e);
636
647
  }
637
648
  }
638
- class Te extends kt {
649
+ class De extends kt {
639
650
  constructor(e = !1) {
640
651
  super(!0, e);
641
652
  }
642
653
  set(e, n) {
643
- return process.env.NODE_ENV !== "production" && M(
654
+ return process.env.NODE_ENV !== "production" && F(
644
655
  `Set operation on key "${String(n)}" failed: target is readonly.`,
645
656
  e
646
657
  ), !0;
647
658
  }
648
659
  deleteProperty(e, n) {
649
- return process.env.NODE_ENV !== "production" && M(
660
+ return process.env.NODE_ENV !== "production" && F(
650
661
  `Delete operation on key "${String(n)}" failed: target is readonly.`,
651
662
  e
652
663
  ), !0;
653
664
  }
654
665
  }
655
- const Me = /* @__PURE__ */ new De(), Pe = /* @__PURE__ */ new Te(), ut = (t) => t, U = (t) => Reflect.getPrototypeOf(t);
656
- function Fe(t, e, n) {
657
- return function(...s) {
658
- const r = this.__v_raw, o = u(r), i = K(o), c = t === "entries" || t === Symbol.iterator && i, a = r[t](...s), f = n ? ut : e ? L : v;
659
- return {
660
- // iterator protocol
661
- next() {
662
- const { value: h, done: l } = a.next();
663
- return l ? { value: h, done: l } : {
664
- value: c ? [f(h[0]), f(h[1])] : f(h),
665
- done: l
666
- };
667
- },
668
- // iterable protocol
669
- [Symbol.iterator]() {
670
- return this;
666
+ const xe = /* @__PURE__ */ new Ve(), Te = /* @__PURE__ */ new De(), ht = (t) => t, q = (t) => Reflect.getPrototypeOf(t);
667
+ function Me(t, e, n) {
668
+ return function(...r) {
669
+ const s = this.__v_raw, i = H(/* @__PURE__ */ p(s)), c = t === "entries" || t === Symbol.iterator && i, a = s[t](...r), u = n ? ht : e ? z : R;
670
+ return D(
671
+ // inheriting all iterator properties
672
+ Object.create(a),
673
+ {
674
+ // iterator protocol
675
+ next() {
676
+ const { value: f, done: l } = a.next();
677
+ return l ? { value: f, done: l } : {
678
+ value: c ? [u(f[0]), u(f[1])] : u(f),
679
+ done: l
680
+ };
681
+ }
671
682
  }
672
- };
683
+ );
673
684
  };
674
685
  }
675
- function q(t) {
686
+ function J(t) {
676
687
  return function(...e) {
677
688
  if (process.env.NODE_ENV !== "production") {
678
689
  const n = e[0] ? `on key "${e[0]}" ` : "";
679
- M(
680
- `${Oe(t)} operation ${n}failed: target is readonly.`,
681
- u(this)
690
+ F(
691
+ `${Se(t)} operation ${n}failed: target is readonly.`,
692
+ /* @__PURE__ */ p(this)
682
693
  );
683
694
  }
684
695
  return t === "delete" ? !1 : t === "clear" ? void 0 : this;
685
696
  };
686
697
  }
687
- function je(t, e) {
698
+ function Pe(t, e) {
688
699
  const n = {
689
- get(r) {
690
- const o = this.__v_raw, i = u(o), c = u(r), { has: a } = U(i), f = e ? ut : t ? L : v;
691
- if (a.call(i, r))
692
- return f(o.get(r));
700
+ get(s) {
701
+ const o = this.__v_raw, i = /* @__PURE__ */ p(o), c = /* @__PURE__ */ p(s), { has: a } = q(i), u = e ? ht : t ? z : R;
702
+ if (a.call(i, s))
703
+ return u(o.get(s));
693
704
  if (a.call(i, c))
694
- return f(o.get(c));
695
- o !== i && o.get(r);
705
+ return u(o.get(c));
706
+ o !== i && o.get(s);
696
707
  },
697
708
  get size() {
698
- const r = this.__v_raw;
699
- return !t && (u(r), void 0), r.size;
709
+ return this.__v_raw.size;
700
710
  },
701
- has(r) {
702
- const o = this.__v_raw;
703
- u(o);
704
- const i = u(r);
705
- return r === i ? o.has(r) : o.has(r) || o.has(i);
711
+ has(s) {
712
+ const o = this.__v_raw, i = /* @__PURE__ */ p(s);
713
+ return s === i ? o.has(s) : o.has(s) || o.has(i);
706
714
  },
707
- forEach(r, o) {
708
- const i = this, c = i.__v_raw;
709
- u(c);
710
- const a = e ? ut : t ? L : v;
711
- return c.forEach((f, h) => r.call(o, a(f), a(h), i));
715
+ forEach(s, o) {
716
+ const i = this, c = i.__v_raw, a = e ? ht : t ? z : R;
717
+ return c.forEach((u, f) => s.call(o, a(u), a(f), i));
712
718
  }
713
719
  };
714
- return F(
720
+ return D(
715
721
  n,
716
722
  t ? {
717
- add: q("add"),
718
- set: q("set"),
719
- delete: q("delete"),
720
- clear: q("clear")
723
+ add: J("add"),
724
+ set: J("set"),
725
+ delete: J("delete"),
726
+ clear: J("clear")
721
727
  } : {
722
- add(r) {
723
- !e && !y(r) && !E(r) && (r = u(r));
724
- const o = u(this);
725
- return U(o).has.call(o, r) || (o.add(r), I(o, "add", r, r)), this;
728
+ add(s) {
729
+ const o = /* @__PURE__ */ p(this), i = q(o), c = /* @__PURE__ */ p(s), a = !e && !/* @__PURE__ */ y(s) && !/* @__PURE__ */ E(s) ? c : s;
730
+ return i.has.call(o, a) || L(s, a) && i.has.call(o, s) || L(c, a) && i.has.call(o, c) || (o.add(a), A(o, "add", a, a)), this;
726
731
  },
727
- set(r, o) {
728
- !e && !y(o) && !E(o) && (o = u(o));
729
- const i = u(this), { has: c, get: a } = U(i);
730
- let f = c.call(i, r);
731
- f ? process.env.NODE_ENV !== "production" && Rt(i, c, r) : (r = u(r), f = c.call(i, r));
732
- const h = a.call(i, r);
733
- return i.set(r, o), f ? ht(o, h) && I(i, "set", r, o, h) : I(i, "add", r, o), this;
732
+ set(s, o) {
733
+ !e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */ E(o) && (o = /* @__PURE__ */ p(o));
734
+ const i = /* @__PURE__ */ p(this), { has: c, get: a } = q(i);
735
+ let u = c.call(i, s);
736
+ u ? process.env.NODE_ENV !== "production" && Ct(i, c, s) : (s = /* @__PURE__ */ p(s), u = c.call(i, s));
737
+ const f = a.call(i, s);
738
+ return i.set(s, o), u ? L(o, f) && A(i, "set", s, o, f) : A(i, "add", s, o), this;
734
739
  },
735
- delete(r) {
736
- const o = u(this), { has: i, get: c } = U(o);
737
- let a = i.call(o, r);
738
- a ? process.env.NODE_ENV !== "production" && Rt(o, i, r) : (r = u(r), a = i.call(o, r));
739
- const f = c ? c.call(o, r) : void 0, h = o.delete(r);
740
- return a && I(o, "delete", r, void 0, f), h;
740
+ delete(s) {
741
+ const o = /* @__PURE__ */ p(this), { has: i, get: c } = q(o);
742
+ let a = i.call(o, s);
743
+ a ? process.env.NODE_ENV !== "production" && Ct(o, i, s) : (s = /* @__PURE__ */ p(s), a = i.call(o, s));
744
+ const u = c ? c.call(o, s) : void 0, f = o.delete(s);
745
+ return a && A(o, "delete", s, void 0, u), f;
741
746
  },
742
747
  clear() {
743
- const r = u(this), o = r.size !== 0, i = process.env.NODE_ENV !== "production" ? K(r) ? new Map(r) : new Set(r) : void 0, c = r.clear();
744
- return o && I(
745
- r,
748
+ const s = /* @__PURE__ */ p(this), o = s.size !== 0, i = process.env.NODE_ENV !== "production" ? H(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
749
+ return o && A(
750
+ s,
746
751
  "clear",
747
752
  void 0,
748
753
  void 0,
@@ -755,34 +760,34 @@ function je(t, e) {
755
760
  "values",
756
761
  "entries",
757
762
  Symbol.iterator
758
- ].forEach((r) => {
759
- n[r] = Fe(r, t, e);
763
+ ].forEach((s) => {
764
+ n[s] = Me(s, t, e);
760
765
  }), n;
761
766
  }
762
- function Kt(t, e) {
763
- const n = je(t, e);
764
- return (s, r, o) => r === "__v_isReactive" ? !t : r === "__v_isReadonly" ? t : r === "__v_raw" ? s : Reflect.get(
765
- at(n, r) && r in s ? n : s,
766
- r,
767
+ function jt(t, e) {
768
+ const n = Pe(t, e);
769
+ return (r, s, o) => s === "__v_isReactive" ? !t : s === "__v_isReadonly" ? t : s === "__v_raw" ? r : Reflect.get(
770
+ ft(n, s) && s in r ? n : r,
771
+ s,
767
772
  o
768
773
  );
769
774
  }
770
- const ke = {
771
- get: /* @__PURE__ */ Kt(!1, !1)
772
- }, Ke = {
773
- get: /* @__PURE__ */ Kt(!0, !1)
775
+ const Fe = {
776
+ get: /* @__PURE__ */ jt(!1, !1)
777
+ }, ke = {
778
+ get: /* @__PURE__ */ jt(!0, !1)
774
779
  };
775
- function Rt(t, e, n) {
776
- const s = u(n);
777
- if (s !== n && e.call(t, s)) {
778
- const r = Mt(t);
779
- M(
780
- `Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
780
+ function Ct(t, e, n) {
781
+ const r = /* @__PURE__ */ p(n);
782
+ if (r !== n && e.call(t, r)) {
783
+ const s = Tt(t);
784
+ F(
785
+ `Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
781
786
  );
782
787
  }
783
788
  }
784
- const Ht = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap();
785
- function ze(t) {
789
+ const Kt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap();
790
+ function He(t) {
786
791
  switch (t) {
787
792
  case "Object":
788
793
  case "Array":
@@ -796,77 +801,86 @@ function ze(t) {
796
801
  return 0;
797
802
  }
798
803
  }
799
- function We(t) {
800
- return t.__v_skip || !Object.isExtensible(t) ? 0 : ze(Mt(t));
804
+ function Le(t) {
805
+ return t.__v_skip || !Object.isExtensible(t) ? 0 : He(Tt(t));
801
806
  }
802
- function zt(t) {
803
- return E(t) ? t : Wt(
807
+ // @__NO_SIDE_EFFECTS__
808
+ function Lt(t) {
809
+ return /* @__PURE__ */ E(t) ? t : Wt(
804
810
  t,
805
811
  !1,
806
- Me,
807
- ke,
808
- Ht
812
+ xe,
813
+ Fe,
814
+ Kt
809
815
  );
810
816
  }
811
- function ft(t) {
817
+ // @__NO_SIDE_EFFECTS__
818
+ function pt(t) {
812
819
  return Wt(
813
820
  t,
814
821
  !0,
815
- Pe,
816
- Ke,
817
- Lt
822
+ Te,
823
+ ke,
824
+ Ht
818
825
  );
819
826
  }
820
- function Wt(t, e, n, s, r) {
827
+ function Wt(t, e, n, r, s) {
821
828
  if (!_(t))
822
- return process.env.NODE_ENV !== "production" && M(
829
+ return process.env.NODE_ENV !== "production" && F(
823
830
  `value cannot be made ${e ? "readonly" : "reactive"}: ${String(
824
831
  t
825
832
  )}`
826
833
  ), t;
827
834
  if (t.__v_raw && !(e && t.__v_isReactive))
828
835
  return t;
829
- const o = We(t);
836
+ const o = Le(t);
830
837
  if (o === 0)
831
838
  return t;
832
- const i = r.get(t);
839
+ const i = s.get(t);
833
840
  if (i)
834
841
  return i;
835
842
  const c = new Proxy(
836
843
  t,
837
- o === 2 ? s : n
844
+ o === 2 ? r : n
838
845
  );
839
- return r.set(t, c), c;
846
+ return s.set(t, c), c;
840
847
  }
841
- function yt(t) {
842
- return E(t) ? yt(t.__v_raw) : !!(t && t.__v_isReactive);
848
+ // @__NO_SIDE_EFFECTS__
849
+ function St(t) {
850
+ return /* @__PURE__ */ E(t) ? /* @__PURE__ */ St(t.__v_raw) : !!(t && t.__v_isReactive);
843
851
  }
852
+ // @__NO_SIDE_EFFECTS__
844
853
  function E(t) {
845
854
  return !!(t && t.__v_isReadonly);
846
855
  }
856
+ // @__NO_SIDE_EFFECTS__
847
857
  function y(t) {
848
858
  return !!(t && t.__v_isShallow);
849
859
  }
850
- function H(t) {
860
+ // @__NO_SIDE_EFFECTS__
861
+ function W(t) {
851
862
  return t ? !!t.__v_raw : !1;
852
863
  }
853
- function u(t) {
864
+ // @__NO_SIDE_EFFECTS__
865
+ function p(t) {
854
866
  const e = t && t.__v_raw;
855
- return e ? u(e) : t;
867
+ return e ? /* @__PURE__ */ p(e) : t;
856
868
  }
857
- const v = (t) => _(t) ? zt(t) : t, L = (t) => _(t) ? ft(t) : t;
869
+ const R = (t) => _(t) ? /* @__PURE__ */ Lt(t) : t, z = (t) => _(t) ? /* @__PURE__ */ pt(t) : t;
870
+ // @__NO_SIDE_EFFECTS__
858
871
  function g(t) {
859
872
  return t ? t.__v_isRef === !0 : !1;
860
873
  }
861
- function Ut(t) {
862
- return Ue(t, !1);
874
+ // @__NO_SIDE_EFFECTS__
875
+ function zt(t) {
876
+ return We(t, !1);
863
877
  }
864
- function Ue(t, e) {
865
- return g(t) ? t : new qe(t, e);
878
+ function We(t, e) {
879
+ return /* @__PURE__ */ g(t) ? t : new ze(t, e);
866
880
  }
867
- class qe {
881
+ class ze {
868
882
  constructor(e, n) {
869
- this.dep = new Ce(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : u(e), this._value = n ? e : v(e), this.__v_isShallow = n;
883
+ this.dep = new ve(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : /* @__PURE__ */ p(e), this._value = n ? e : R(e), this.__v_isShallow = n;
870
884
  }
871
885
  get value() {
872
886
  return process.env.NODE_ENV !== "production" ? this.dep.track({
@@ -876,8 +890,8 @@ class qe {
876
890
  }) : this.dep.track(), this._value;
877
891
  }
878
892
  set value(e) {
879
- const n = this._rawValue, s = this.__v_isShallow || y(e) || E(e);
880
- e = s ? e : u(e), ht(e, n) && (this._rawValue = e, this._value = s ? e : v(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
893
+ const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ y(e) || /* @__PURE__ */ E(e);
894
+ e = r ? e : /* @__PURE__ */ p(e), L(e, n) && (this._rawValue = e, this._value = r ? e : R(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
881
895
  target: this,
882
896
  type: "set",
883
897
  key: "value",
@@ -886,27 +900,27 @@ class qe {
886
900
  }) : this.dep.trigger());
887
901
  }
888
902
  }
889
- function Je(t) {
890
- return g(t) ? t.value : t;
903
+ function Ue(t) {
904
+ return /* @__PURE__ */ g(t) ? t.value : t;
891
905
  }
892
- class Be {
893
- constructor(e, n, s) {
894
- this._object = e, this._key = n, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._raw = u(e);
895
- let r = !0, o = e;
896
- if (!d(e) || !Z(String(n)))
906
+ class qe {
907
+ constructor(e, n, r) {
908
+ this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key = V(n) ? n : String(n), this._raw = /* @__PURE__ */ p(e);
909
+ let s = !0, o = e;
910
+ if (!d(e) || V(this._key) || !tt(this._key))
897
911
  do
898
- r = !H(o) || y(o);
899
- while (r && (o = o.__v_raw));
900
- this._shallow = r;
912
+ s = !/* @__PURE__ */ W(o) || /* @__PURE__ */ y(o);
913
+ while (s && (o = o.__v_raw));
914
+ this._shallow = s;
901
915
  }
902
916
  get value() {
903
917
  let e = this._object[this._key];
904
- return this._shallow && (e = Je(e)), this._value = e === void 0 ? this._defaultValue : e;
918
+ return this._shallow && (e = Ue(e)), this._value = e === void 0 ? this._defaultValue : e;
905
919
  }
906
920
  set value(e) {
907
- if (this._shallow && g(this._raw[this._key])) {
921
+ if (this._shallow && /* @__PURE__ */ g(this._raw[this._key])) {
908
922
  const n = this._object[this._key];
909
- if (g(n)) {
923
+ if (/* @__PURE__ */ g(n)) {
910
924
  n.value = e;
911
925
  return;
912
926
  }
@@ -914,10 +928,10 @@ class Be {
914
928
  this._object[this._key] = e;
915
929
  }
916
930
  get dep() {
917
- return Ie(this._raw, this._key);
931
+ return Re(this._raw, this._key);
918
932
  }
919
933
  }
920
- class Ye {
934
+ class Je {
921
935
  constructor(e) {
922
936
  this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
923
937
  }
@@ -925,27 +939,28 @@ class Ye {
925
939
  return this._value = this._getter();
926
940
  }
927
941
  }
928
- function Ge(t, e, n) {
929
- return g(t) ? t : V(t) ? new Ye(t) : _(t) && arguments.length > 1 ? Qe(t, e, n) : Ut(t);
930
- }
931
- function Qe(t, e, n) {
932
- return new Be(t, e, n);
933
- }
934
- const A = [];
935
- function Xe(t) {
936
- A.push(t);
937
- }
938
- function Ze() {
939
- A.pop();
940
- }
941
- let ot = !1;
942
- function P(t, ...e) {
943
- if (ot) return;
944
- ot = !0;
945
- const n = A.length ? A[A.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = tn();
946
- if (s)
947
- St(
948
- s,
942
+ // @__NO_SIDE_EFFECTS__
943
+ function Be(t, e, n) {
944
+ return /* @__PURE__ */ g(t) ? t : I(t) ? new Je(t) : _(t) && arguments.length > 1 ? Ye(t, e, n) : /* @__PURE__ */ zt(t);
945
+ }
946
+ function Ye(t, e, n) {
947
+ return new qe(t, e, n);
948
+ }
949
+ const $ = [];
950
+ function Ge(t) {
951
+ $.push(t);
952
+ }
953
+ function Qe() {
954
+ $.pop();
955
+ }
956
+ let it = !1;
957
+ function k(t, ...e) {
958
+ if (it) return;
959
+ it = !0;
960
+ const n = $.length ? $[$.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = Xe();
961
+ if (r)
962
+ Ot(
963
+ r,
949
964
  n,
950
965
  11,
951
966
  [
@@ -955,22 +970,22 @@ function P(t, ...e) {
955
970
  return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
956
971
  }).join(""),
957
972
  n && n.proxy,
958
- r.map(
959
- ({ vnode: o }) => `at <${ie(n, o.type)}>`
973
+ s.map(
974
+ ({ vnode: o }) => `at <${oe(n, o.type)}>`
960
975
  ).join(`
961
976
  `),
962
- r
977
+ s
963
978
  ]
964
979
  );
965
980
  else {
966
981
  const o = [`[Vue warn]: ${t}`, ...e];
967
- r.length && o.push(`
968
- `, ...en(r)), console.warn(...o);
982
+ s.length && o.push(`
983
+ `, ...Ze(s)), console.warn(...o);
969
984
  }
970
- ot = !1;
985
+ it = !1;
971
986
  }
972
- function tn() {
973
- let t = A[A.length - 1];
987
+ function Xe() {
988
+ let t = $[$.length - 1];
974
989
  if (!t)
975
990
  return [];
976
991
  const e = [];
@@ -980,36 +995,36 @@ function tn() {
980
995
  vnode: t,
981
996
  recurseCount: 0
982
997
  });
983
- const s = t.component && t.component.parent;
984
- t = s && s.vnode;
998
+ const r = t.component && t.component.parent;
999
+ t = r && r.vnode;
985
1000
  }
986
1001
  return e;
987
1002
  }
988
- function en(t) {
1003
+ function Ze(t) {
989
1004
  const e = [];
990
- return t.forEach((n, s) => {
991
- e.push(...s === 0 ? [] : [`
992
- `], ...nn(n));
1005
+ return t.forEach((n, r) => {
1006
+ e.push(...r === 0 ? [] : [`
1007
+ `], ...tn(n));
993
1008
  }), e;
994
1009
  }
995
- function nn({ vnode: t, recurseCount: e }) {
996
- const n = e > 0 ? `... (${e} recursive calls)` : "", s = t.component ? t.component.parent == null : !1, r = ` at <${ie(
1010
+ function tn({ vnode: t, recurseCount: e }) {
1011
+ const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${oe(
997
1012
  t.component,
998
1013
  t.type,
999
- s
1014
+ r
1000
1015
  )}`, o = ">" + n;
1001
- return t.props ? [r, ...rn(t.props), o] : [r + o];
1016
+ return t.props ? [s, ...en(t.props), o] : [s + o];
1002
1017
  }
1003
- function rn(t) {
1018
+ function en(t) {
1004
1019
  const e = [], n = Object.keys(t);
1005
- return n.slice(0, 3).forEach((s) => {
1006
- e.push(...qt(s, t[s]));
1020
+ return n.slice(0, 3).forEach((r) => {
1021
+ e.push(...Ut(r, t[r]));
1007
1022
  }), n.length > 3 && e.push(" ..."), e;
1008
1023
  }
1009
- function qt(t, e, n) {
1010
- return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e = qt(t, u(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : V(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = u(e), n ? e : [`${t}=`, e]);
1024
+ function Ut(t, e, n) {
1025
+ return v(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ g(e) ? (e = Ut(t, /* @__PURE__ */ p(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : I(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ p(e), n ? e : [`${t}=`, e]);
1011
1026
  }
1012
- const Jt = {
1027
+ const qt = {
1013
1028
  sp: "serverPrefetch hook",
1014
1029
  bc: "beforeCreate hook",
1015
1030
  c: "created hook",
@@ -1042,105 +1057,105 @@ const Jt = {
1042
1057
  15: "component update",
1043
1058
  16: "app unmount cleanup function"
1044
1059
  };
1045
- function St(t, e, n, s) {
1060
+ function Ot(t, e, n, r) {
1046
1061
  try {
1047
- return s ? t(...s) : t();
1048
- } catch (r) {
1049
- Bt(r, e, n);
1062
+ return r ? t(...r) : t();
1063
+ } catch (s) {
1064
+ Jt(s, e, n);
1050
1065
  }
1051
1066
  }
1052
- function Bt(t, e, n, s = !0) {
1053
- const r = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || lt;
1067
+ function Jt(t, e, n, r = !0) {
1068
+ const s = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || ut;
1054
1069
  if (e) {
1055
1070
  let c = e.parent;
1056
- const a = e.proxy, f = process.env.NODE_ENV !== "production" ? Jt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1071
+ const a = e.proxy, u = process.env.NODE_ENV !== "production" ? qt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1057
1072
  for (; c; ) {
1058
- const h = c.ec;
1059
- if (h) {
1060
- for (let l = 0; l < h.length; l++)
1061
- if (h[l](t, a, f) === !1)
1073
+ const f = c.ec;
1074
+ if (f) {
1075
+ for (let l = 0; l < f.length; l++)
1076
+ if (f[l](t, a, u) === !1)
1062
1077
  return;
1063
1078
  }
1064
1079
  c = c.parent;
1065
1080
  }
1066
1081
  if (o) {
1067
- St(o, null, 10, [
1082
+ Ot(o, null, 10, [
1068
1083
  t,
1069
1084
  a,
1070
- f
1085
+ u
1071
1086
  ]);
1072
1087
  return;
1073
1088
  }
1074
1089
  }
1075
- sn(t, n, r, s, i);
1090
+ nn(t, n, s, r, i);
1076
1091
  }
1077
- function sn(t, e, n, s = !0, r = !1) {
1092
+ function nn(t, e, n, r = !0, s = !1) {
1078
1093
  if (process.env.NODE_ENV !== "production") {
1079
- const o = Jt[e];
1080
- if (n && Xe(n), P(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Ze(), s)
1094
+ const o = qt[e];
1095
+ if (n && Ge(n), k(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Qe(), r)
1081
1096
  throw t;
1082
1097
  console.error(t);
1083
1098
  } else {
1084
- if (r)
1099
+ if (s)
1085
1100
  throw t;
1086
1101
  console.error(t);
1087
1102
  }
1088
1103
  }
1089
1104
  const m = [];
1090
- let w = -1;
1091
- const T = [];
1092
- let C = null, $ = 0;
1093
- const on = /* @__PURE__ */ Promise.resolve();
1094
- let pt = null;
1095
- const cn = 100;
1096
- function ln(t) {
1097
- let e = w + 1, n = m.length;
1105
+ let N = -1;
1106
+ const P = [];
1107
+ let C = null, T = 0;
1108
+ const sn = /* @__PURE__ */ Promise.resolve();
1109
+ let dt = null;
1110
+ const rn = 100;
1111
+ function on(t) {
1112
+ let e = N + 1, n = m.length;
1098
1113
  for (; e < n; ) {
1099
- const s = e + n >>> 1, r = m[s], o = z(r);
1100
- o < t || o === t && r.flags & 2 ? e = s + 1 : n = s;
1114
+ const r = e + n >>> 1, s = m[r], o = U(s);
1115
+ o < t || o === t && s.flags & 2 ? e = r + 1 : n = r;
1101
1116
  }
1102
1117
  return e;
1103
1118
  }
1104
- function an(t) {
1119
+ function cn(t) {
1105
1120
  if (!(t.flags & 1)) {
1106
- const e = z(t), n = m[m.length - 1];
1121
+ const e = U(t), n = m[m.length - 1];
1107
1122
  !n || // fast path when the job id is larger than the tail
1108
- !(t.flags & 2) && e >= z(n) ? m.push(t) : m.splice(ln(e), 0, t), t.flags |= 1, Yt();
1123
+ !(t.flags & 2) && e >= U(n) ? m.push(t) : m.splice(on(e), 0, t), t.flags |= 1, Bt();
1109
1124
  }
1110
1125
  }
1111
- function Yt() {
1112
- pt || (pt = on.then(Gt));
1126
+ function Bt() {
1127
+ dt || (dt = sn.then(Yt));
1113
1128
  }
1114
- function un(t) {
1115
- d(t) ? T.push(...t) : C && t.id === -1 ? C.splice($ + 1, 0, t) : t.flags & 1 || (T.push(t), t.flags |= 1), Yt();
1129
+ function ln(t) {
1130
+ d(t) ? P.push(...t) : C && t.id === -1 ? C.splice(T + 1, 0, t) : t.flags & 1 || (P.push(t), t.flags |= 1), Bt();
1116
1131
  }
1117
- function fn(t) {
1118
- if (T.length) {
1119
- const e = [...new Set(T)].sort(
1120
- (n, s) => z(n) - z(s)
1132
+ function an(t) {
1133
+ if (P.length) {
1134
+ const e = [...new Set(P)].sort(
1135
+ (n, r) => U(n) - U(r)
1121
1136
  );
1122
- if (T.length = 0, C) {
1137
+ if (P.length = 0, C) {
1123
1138
  C.push(...e);
1124
1139
  return;
1125
1140
  }
1126
- for (C = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), $ = 0; $ < C.length; $++) {
1127
- const n = C[$];
1128
- process.env.NODE_ENV !== "production" && Qt(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1141
+ for (C = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), T = 0; T < C.length; T++) {
1142
+ const n = C[T];
1143
+ process.env.NODE_ENV !== "production" && Gt(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1129
1144
  }
1130
- C = null, $ = 0;
1145
+ C = null, T = 0;
1131
1146
  }
1132
1147
  }
1133
- const z = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
1134
- function Gt(t) {
1148
+ const U = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
1149
+ function Yt(t) {
1135
1150
  process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
1136
- const e = process.env.NODE_ENV !== "production" ? (n) => Qt(t, n) : Dt;
1151
+ const e = process.env.NODE_ENV !== "production" ? (n) => Gt(t, n) : Dt;
1137
1152
  try {
1138
- for (w = 0; w < m.length; w++) {
1139
- const n = m[w];
1153
+ for (N = 0; N < m.length; N++) {
1154
+ const n = m[N];
1140
1155
  if (n && !(n.flags & 8)) {
1141
1156
  if (process.env.NODE_ENV !== "production" && e(n))
1142
1157
  continue;
1143
- n.flags & 4 && (n.flags &= -2), St(
1158
+ n.flags & 4 && (n.flags &= -2), Ot(
1144
1159
  n,
1145
1160
  n.i,
1146
1161
  n.i ? 15 : 14
@@ -1148,124 +1163,124 @@ function Gt(t) {
1148
1163
  }
1149
1164
  }
1150
1165
  } finally {
1151
- for (; w < m.length; w++) {
1152
- const n = m[w];
1166
+ for (; N < m.length; N++) {
1167
+ const n = m[N];
1153
1168
  n && (n.flags &= -2);
1154
1169
  }
1155
- w = -1, m.length = 0, fn(t), pt = null, (m.length || T.length) && Gt(t);
1170
+ N = -1, m.length = 0, an(t), dt = null, (m.length || P.length) && Yt(t);
1156
1171
  }
1157
1172
  }
1158
- function Qt(t, e) {
1173
+ function Gt(t, e) {
1159
1174
  const n = t.get(e) || 0;
1160
- if (n > cn) {
1161
- const s = e.i, r = s && oe(s.type);
1162
- return Bt(
1163
- `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1175
+ if (n > rn) {
1176
+ const r = e.i, s = r && re(r.type);
1177
+ return Jt(
1178
+ `Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1164
1179
  null,
1165
1180
  10
1166
1181
  ), !0;
1167
1182
  }
1168
1183
  return t.set(e, n + 1), !1;
1169
1184
  }
1170
- const it = /* @__PURE__ */ new Map();
1171
- process.env.NODE_ENV !== "production" && (tt().__VUE_HMR_RUNTIME__ = {
1172
- createRecord: ct(pn),
1173
- rerender: ct(hn),
1174
- reload: ct(dn)
1185
+ const ct = /* @__PURE__ */ new Map();
1186
+ process.env.NODE_ENV !== "production" && (et().__VUE_HMR_RUNTIME__ = {
1187
+ createRecord: lt(un),
1188
+ rerender: lt(fn),
1189
+ reload: lt(hn)
1175
1190
  });
1176
- const Y = /* @__PURE__ */ new Map();
1177
- function pn(t, e) {
1178
- return Y.has(t) ? !1 : (Y.set(t, {
1179
- initialDef: G(e),
1191
+ const G = /* @__PURE__ */ new Map();
1192
+ function un(t, e) {
1193
+ return G.has(t) ? !1 : (G.set(t, {
1194
+ initialDef: Q(e),
1180
1195
  instances: /* @__PURE__ */ new Set()
1181
1196
  }), !0);
1182
1197
  }
1183
- function G(t) {
1184
- return ce(t) ? t.__vccOpts : t;
1198
+ function Q(t) {
1199
+ return ie(t) ? t.__vccOpts : t;
1185
1200
  }
1186
- function hn(t, e) {
1187
- const n = Y.get(t);
1188
- n && (n.initialDef.render = e, [...n.instances].forEach((s) => {
1189
- e && (s.render = e, G(s.type).render = e), s.renderCache = [], s.job.flags & 8 || s.update();
1201
+ function fn(t, e) {
1202
+ const n = G.get(t);
1203
+ n && (n.initialDef.render = e, [...n.instances].forEach((r) => {
1204
+ e && (r.render = e, Q(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
1190
1205
  }));
1191
1206
  }
1192
- function dn(t, e) {
1193
- const n = Y.get(t);
1207
+ function hn(t, e) {
1208
+ const n = G.get(t);
1194
1209
  if (!n) return;
1195
- e = G(e), Ct(n.initialDef, e);
1196
- const s = [...n.instances];
1197
- for (let r = 0; r < s.length; r++) {
1198
- const o = s[r], i = G(o.type);
1199
- let c = it.get(i);
1200
- c || (i !== n.initialDef && Ct(i, e), it.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(e.styles), c.delete(o)) : o.parent ? an(() => {
1210
+ e = Q(e), At(n.initialDef, e);
1211
+ const r = [...n.instances];
1212
+ for (let s = 0; s < r.length; s++) {
1213
+ const o = r[s], i = Q(o.type);
1214
+ let c = ct.get(i);
1215
+ c || (i !== n.initialDef && At(i, e), ct.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(e.styles), c.delete(o)) : o.parent ? cn(() => {
1201
1216
  o.job.flags & 8 || (o.parent.update(), c.delete(o));
1202
1217
  }) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1203
1218
  "[HMR] Root or manually mounted instance modified. Full reload required."
1204
1219
  ), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
1205
1220
  }
1206
- un(() => {
1207
- it.clear();
1221
+ ln(() => {
1222
+ ct.clear();
1208
1223
  });
1209
1224
  }
1210
- function Ct(t, e) {
1211
- F(t, e);
1225
+ function At(t, e) {
1226
+ D(t, e);
1212
1227
  for (const n in t)
1213
1228
  n !== "__file" && !(n in e) && delete t[n];
1214
1229
  }
1215
- function ct(t) {
1230
+ function lt(t) {
1216
1231
  return (e, n) => {
1217
1232
  try {
1218
1233
  return t(e, n);
1219
- } catch (s) {
1220
- console.error(s), console.warn(
1234
+ } catch (r) {
1235
+ console.error(r), console.warn(
1221
1236
  "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
1222
1237
  );
1223
1238
  }
1224
1239
  };
1225
1240
  }
1226
- let D, J = [];
1227
- function Xt(t, e) {
1228
- var n, s;
1229
- D = t, D ? (D.enabled = !0, J.forEach(({ event: r, args: o }) => D.emit(r, ...o)), J = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1241
+ let M, B = [];
1242
+ function Qt(t, e) {
1243
+ var n, r;
1244
+ M = t, M ? (M.enabled = !0, B.forEach(({ event: s, args: o }) => M.emit(s, ...o)), B = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1230
1245
  window.HTMLElement && // also exclude jsdom
1231
1246
  // eslint-disable-next-line no-restricted-syntax
1232
- !((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
1233
- Xt(o, e);
1247
+ !((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
1248
+ Qt(o, e);
1234
1249
  }), setTimeout(() => {
1235
- D || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, J = []);
1236
- }, 3e3)) : J = [];
1237
- }
1238
- let Q = null, _n = null;
1239
- const gn = (t) => t.__isTeleport;
1240
- function Zt(t, e) {
1241
- t.shapeFlag & 6 && t.component ? (t.transition = e, Zt(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
1242
- }
1243
- tt().requestIdleCallback;
1244
- tt().cancelIdleCallback;
1245
- const bn = Symbol.for("v-ndc"), mn = {};
1246
- process.env.NODE_ENV !== "production" && (mn.ownKeys = (t) => (P(
1250
+ M || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, B = []);
1251
+ }, 3e3)) : B = [];
1252
+ }
1253
+ let X = null, pn = null;
1254
+ const dn = (t) => t.__isTeleport;
1255
+ function Xt(t, e) {
1256
+ t.shapeFlag & 6 && t.component ? (t.transition = e, Xt(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
1257
+ }
1258
+ et().requestIdleCallback;
1259
+ et().cancelIdleCallback;
1260
+ const _n = /* @__PURE__ */ Symbol.for("v-ndc"), gn = {};
1261
+ process.env.NODE_ENV !== "production" && (gn.ownKeys = (t) => (k(
1247
1262
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1248
1263
  ), Reflect.ownKeys(t)));
1249
- const yn = {}, te = (t) => Object.getPrototypeOf(t) === yn, Sn = (t) => t.__isSuspense, ee = Symbol.for("v-fgt"), En = Symbol.for("v-txt"), On = Symbol.for("v-cmt");
1250
- function wn(t) {
1264
+ const bn = {}, Zt = (t) => Object.getPrototypeOf(t) === bn, mn = (t) => t.__isSuspense, te = /* @__PURE__ */ Symbol.for("v-fgt"), yn = /* @__PURE__ */ Symbol.for("v-txt"), Sn = /* @__PURE__ */ Symbol.for("v-cmt");
1265
+ function On(t) {
1251
1266
  return t ? t.__v_isVNode === !0 : !1;
1252
1267
  }
1253
- const Nn = (...t) => re(
1268
+ const En = (...t) => ne(
1254
1269
  ...t
1255
- ), ne = ({ key: t }) => t ?? null, B = ({
1270
+ ), ee = ({ key: t }) => t ?? null, Y = ({
1256
1271
  ref: t,
1257
1272
  ref_key: e,
1258
1273
  ref_for: n
1259
- }) => (typeof t == "number" && (t = "" + t), t != null ? N(t) || g(t) || V(t) ? { i: Q, r: t, k: e, f: !!n } : t : null);
1260
- function vn(t, e = null, n = null, s = 0, r = null, o = t === ee ? 0 : 1, i = !1, c = !1) {
1274
+ }) => (typeof t == "number" && (t = "" + t), t != null ? v(t) || /* @__PURE__ */ g(t) || I(t) ? { i: X, r: t, k: e, f: !!n } : t : null);
1275
+ function wn(t, e = null, n = null, r = 0, s = null, o = t === te ? 0 : 1, i = !1, c = !1) {
1261
1276
  const a = {
1262
1277
  __v_isVNode: !0,
1263
1278
  __v_skip: !0,
1264
1279
  type: t,
1265
1280
  props: e,
1266
- key: e && ne(e),
1267
- ref: e && B(e),
1268
- scopeId: _n,
1281
+ key: e && ee(e),
1282
+ ref: e && Y(e),
1283
+ scopeId: pn,
1269
1284
  slotScopeIds: null,
1270
1285
  children: n,
1271
1286
  component: null,
@@ -1281,18 +1296,18 @@ function vn(t, e = null, n = null, s = 0, r = null, o = t === ee ? 0 : 1, i = !1
1281
1296
  targetAnchor: null,
1282
1297
  staticCount: 0,
1283
1298
  shapeFlag: o,
1284
- patchFlag: s,
1285
- dynamicProps: r,
1299
+ patchFlag: r,
1300
+ dynamicProps: s,
1286
1301
  dynamicChildren: null,
1287
1302
  appContext: null,
1288
- ctx: Q
1303
+ ctx: X
1289
1304
  };
1290
- return c ? (Et(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= N(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && P("VNode created with invalid key (NaN). VNode type:", a.type), a;
1305
+ return c ? (Et(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= v(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && k("VNode created with invalid key (NaN). VNode type:", a.type), a;
1291
1306
  }
1292
- const Rn = process.env.NODE_ENV !== "production" ? Nn : re;
1293
- function re(t, e = null, n = null, s = 0, r = null, o = !1) {
1294
- if ((!t || t === bn) && (process.env.NODE_ENV !== "production" && !t && P(`Invalid vnode type when creating vnode: ${t}.`), t = On), wn(t)) {
1295
- const c = X(
1307
+ const Nn = process.env.NODE_ENV !== "production" ? En : ne;
1308
+ function ne(t, e = null, n = null, r = 0, s = null, o = !1) {
1309
+ if ((!t || t === _n) && (process.env.NODE_ENV !== "production" && !t && k(`Invalid vnode type when creating vnode: ${t}.`), t = Sn), On(t)) {
1310
+ const c = Z(
1296
1311
  t,
1297
1312
  e,
1298
1313
  !0
@@ -1300,43 +1315,43 @@ function re(t, e = null, n = null, s = 0, r = null, o = !1) {
1300
1315
  );
1301
1316
  return n && Et(c, n), c.patchFlag = -2, c;
1302
1317
  }
1303
- if (ce(t) && (t = t.__vccOpts), e) {
1304
- e = Cn(e);
1318
+ if (ie(t) && (t = t.__vccOpts), e) {
1319
+ e = vn(e);
1305
1320
  let { class: c, style: a } = e;
1306
- c && !N(c) && (e.class = _t(c)), _(a) && (H(a) && !d(a) && (a = F({}, a)), e.style = dt(a));
1321
+ c && !v(c) && (e.class = gt(c)), _(a) && (/* @__PURE__ */ W(a) && !d(a) && (a = D({}, a)), e.style = _t(a));
1307
1322
  }
1308
- const i = N(t) ? 1 : Sn(t) ? 128 : gn(t) ? 64 : _(t) ? 4 : V(t) ? 2 : 0;
1309
- return process.env.NODE_ENV !== "production" && i & 4 && H(t) && (t = u(t), P(
1323
+ const i = v(t) ? 1 : mn(t) ? 128 : dn(t) ? 64 : _(t) ? 4 : I(t) ? 2 : 0;
1324
+ return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ W(t) && (t = /* @__PURE__ */ p(t), k(
1310
1325
  "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
1311
1326
  `
1312
1327
  Component that was made reactive: `,
1313
1328
  t
1314
- )), vn(
1329
+ )), wn(
1315
1330
  t,
1316
1331
  e,
1317
1332
  n,
1318
- s,
1319
1333
  r,
1334
+ s,
1320
1335
  i,
1321
1336
  o,
1322
1337
  !0
1323
1338
  );
1324
1339
  }
1325
- function Cn(t) {
1326
- return t ? H(t) || te(t) ? F({}, t) : t : null;
1340
+ function vn(t) {
1341
+ return t ? /* @__PURE__ */ W(t) || Zt(t) ? D({}, t) : t : null;
1327
1342
  }
1328
- function X(t, e, n = !1, s = !1) {
1329
- const { props: r, ref: o, patchFlag: i, children: c, transition: a } = t, f = e ? Vn(r || {}, e) : r, h = {
1343
+ function Z(t, e, n = !1, r = !1) {
1344
+ const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Cn(s || {}, e) : s, f = {
1330
1345
  __v_isVNode: !0,
1331
1346
  __v_skip: !0,
1332
1347
  type: t.type,
1333
- props: f,
1334
- key: f && ne(f),
1348
+ props: u,
1349
+ key: u && ee(u),
1335
1350
  ref: e && e.ref ? (
1336
1351
  // #2078 in the case of <component :is="vnode" ref="extra"/>
1337
1352
  // if the vnode itself already has a ref, cloneVNode will need to merge
1338
1353
  // the refs so the single vnode can be set on multiple refs
1339
- n && o ? d(o) ? o.concat(B(e)) : [o, B(e)] : B(e)
1354
+ n && o ? d(o) ? o.concat(Y(e)) : [o, Y(e)] : Y(e)
1340
1355
  ) : o,
1341
1356
  scopeId: t.scopeId,
1342
1357
  slotScopeIds: t.slotScopeIds,
@@ -1350,7 +1365,7 @@ function X(t, e, n = !1, s = !1) {
1350
1365
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1351
1366
  // note: preserve flag for fragments since they use the flag for children
1352
1367
  // fast paths only.
1353
- patchFlag: e && t.type !== ee ? i === -1 ? 16 : i | 16 : i,
1368
+ patchFlag: e && t.type !== te ? i === -1 ? 16 : i | 16 : i,
1354
1369
  dynamicProps: t.dynamicProps,
1355
1370
  dynamicChildren: t.dynamicChildren,
1356
1371
  appContext: t.appContext,
@@ -1362,64 +1377,66 @@ function X(t, e, n = !1, s = !1) {
1362
1377
  // they will simply be overwritten.
1363
1378
  component: t.component,
1364
1379
  suspense: t.suspense,
1365
- ssContent: t.ssContent && X(t.ssContent),
1366
- ssFallback: t.ssFallback && X(t.ssFallback),
1380
+ ssContent: t.ssContent && Z(t.ssContent),
1381
+ ssFallback: t.ssFallback && Z(t.ssFallback),
1367
1382
  placeholder: t.placeholder,
1368
1383
  el: t.el,
1369
1384
  anchor: t.anchor,
1370
1385
  ctx: t.ctx,
1371
1386
  ce: t.ce
1372
1387
  };
1373
- return a && s && Zt(
1374
- h,
1375
- a.clone(h)
1376
- ), h;
1388
+ return a && r && Xt(
1389
+ f,
1390
+ a.clone(f)
1391
+ ), f;
1377
1392
  }
1378
1393
  function se(t) {
1379
- const e = X(t);
1394
+ const e = Z(t);
1380
1395
  return d(t.children) && (e.children = t.children.map(se)), e;
1381
1396
  }
1382
- function In(t = " ", e = 0) {
1383
- return Rn(En, null, t, e);
1397
+ function Rn(t = " ", e = 0) {
1398
+ return Nn(yn, null, t, e);
1384
1399
  }
1385
1400
  function Et(t, e) {
1386
1401
  let n = 0;
1387
- const { shapeFlag: s } = t;
1402
+ const { shapeFlag: r } = t;
1388
1403
  if (e == null)
1389
1404
  e = null;
1390
1405
  else if (d(e))
1391
1406
  n = 16;
1392
1407
  else if (typeof e == "object")
1393
- if (s & 65) {
1394
- const r = e.default;
1395
- r && (r._c && (r._d = !1), Et(t, r()), r._c && (r._d = !0));
1408
+ if (r & 65) {
1409
+ const s = e.default;
1410
+ s && (s._c && (s._d = !1), Et(t, s()), s._c && (s._d = !0));
1396
1411
  return;
1397
1412
  } else
1398
- n = 32, !e._ && !te(e) && (e._ctx = Q);
1399
- else V(e) ? (e = { default: e, _ctx: Q }, n = 32) : (e = String(e), s & 64 ? (n = 16, e = [In(e)]) : n = 8);
1413
+ n = 32, !e._ && !Zt(e) && (e._ctx = X);
1414
+ else I(e) ? (e = { default: e, _ctx: X }, n = 32) : (e = String(e), r & 64 ? (n = 16, e = [Rn(e)]) : n = 8);
1400
1415
  t.children = e, t.shapeFlag |= n;
1401
1416
  }
1402
- function Vn(...t) {
1417
+ function Cn(...t) {
1403
1418
  const e = {};
1404
1419
  for (let n = 0; n < t.length; n++) {
1405
- const s = t[n];
1406
- for (const r in s)
1407
- if (r === "class")
1408
- e.class !== s.class && (e.class = _t([e.class, s.class]));
1409
- else if (r === "style")
1410
- e.style = dt([e.style, s.style]);
1411
- else if (me(r)) {
1412
- const o = e[r], i = s[r];
1413
- i && o !== i && !(d(o) && o.includes(i)) && (e[r] = o ? [].concat(o, i) : i);
1414
- } else r !== "" && (e[r] = s[r]);
1420
+ const r = t[n];
1421
+ for (const s in r)
1422
+ if (s === "class")
1423
+ e.class !== r.class && (e.class = gt([e.class, r.class]));
1424
+ else if (s === "style")
1425
+ e.style = _t([e.style, r.style]);
1426
+ else if (_e(s)) {
1427
+ const o = e[s], i = r[s];
1428
+ i && o !== i && !(d(o) && o.includes(i)) ? e[s] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
1429
+ // the model listener.
1430
+ !ge(s) && (e[s] = i);
1431
+ } else s !== "" && (e[s] = r[s]);
1415
1432
  }
1416
1433
  return e;
1417
1434
  }
1418
1435
  {
1419
- const t = tt(), e = (n, s) => {
1420
- let r;
1421
- return (r = t[n]) || (r = t[n] = []), r.push(s), (o) => {
1422
- r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
1436
+ const t = et(), e = (n, r) => {
1437
+ let s;
1438
+ return (s = t[n]) || (s = t[n] = []), s.push(r), (o) => {
1439
+ s.length > 1 ? s.forEach((i) => i(o)) : s[0](o);
1423
1440
  };
1424
1441
  };
1425
1442
  e(
@@ -1431,66 +1448,66 @@ function Vn(...t) {
1431
1448
  );
1432
1449
  }
1433
1450
  process.env.NODE_ENV;
1434
- const An = /(?:^|[-_])\w/g, xn = (t) => t.replace(An, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1435
- function oe(t, e = !0) {
1436
- return V(t) ? t.displayName || t.name : t.name || e && t.__name;
1437
- }
1438
- function ie(t, e, n = !1) {
1439
- let s = oe(e);
1440
- if (!s && e.__file) {
1441
- const r = e.__file.match(/([^/\\]+)\.\w+$/);
1442
- r && (s = r[1]);
1443
- }
1444
- if (!s && t) {
1445
- const r = (o) => {
1451
+ const An = /(?:^|[-_])\w/g, In = (t) => t.replace(An, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1452
+ function re(t, e = !0) {
1453
+ return I(t) ? t.displayName || t.name : t.name || e && t.__name;
1454
+ }
1455
+ function oe(t, e, n = !1) {
1456
+ let r = re(e);
1457
+ if (!r && e.__file) {
1458
+ const s = e.__file.match(/([^/\\]+)\.\w+$/);
1459
+ s && (r = s[1]);
1460
+ }
1461
+ if (!r && t) {
1462
+ const s = (o) => {
1446
1463
  for (const i in o)
1447
1464
  if (o[i] === e)
1448
1465
  return i;
1449
1466
  };
1450
- s = r(t.components) || t.parent && r(
1467
+ r = s(t.components) || t.parent && s(
1451
1468
  t.parent.type.components
1452
- ) || r(t.appContext.components);
1469
+ ) || s(t.appContext.components);
1453
1470
  }
1454
- return s ? xn(s) : n ? "App" : "Anonymous";
1471
+ return r ? In(r) : n ? "App" : "Anonymous";
1455
1472
  }
1456
- function ce(t) {
1457
- return V(t) && "__vccOpts" in t;
1473
+ function ie(t) {
1474
+ return I(t) && "__vccOpts" in t;
1458
1475
  }
1459
1476
  function $n() {
1460
1477
  if (process.env.NODE_ENV === "production" || typeof window > "u")
1461
1478
  return;
1462
- const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
1479
+ const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
1463
1480
  __vue_custom_formatter: !0,
1464
1481
  header(l) {
1465
1482
  if (!_(l))
1466
1483
  return null;
1467
1484
  if (l.__isVue)
1468
1485
  return ["div", t, "VueInstance"];
1469
- if (g(l)) {
1470
- const p = l.value;
1486
+ if (/* @__PURE__ */ g(l)) {
1487
+ const h = l.value;
1471
1488
  return [
1472
1489
  "div",
1473
1490
  {},
1474
- ["span", t, h(l)],
1491
+ ["span", t, f(l)],
1475
1492
  "<",
1476
- c(p),
1493
+ c(h),
1477
1494
  ">"
1478
1495
  ];
1479
1496
  } else {
1480
- if (yt(l))
1497
+ if (/* @__PURE__ */ St(l))
1481
1498
  return [
1482
1499
  "div",
1483
1500
  {},
1484
- ["span", t, y(l) ? "ShallowReactive" : "Reactive"],
1501
+ ["span", t, /* @__PURE__ */ y(l) ? "ShallowReactive" : "Reactive"],
1485
1502
  "<",
1486
1503
  c(l),
1487
- `>${E(l) ? " (readonly)" : ""}`
1504
+ `>${/* @__PURE__ */ E(l) ? " (readonly)" : ""}`
1488
1505
  ];
1489
- if (E(l))
1506
+ if (/* @__PURE__ */ E(l))
1490
1507
  return [
1491
1508
  "div",
1492
1509
  {},
1493
- ["span", t, y(l) ? "ShallowReadonly" : "Readonly"],
1510
+ ["span", t, /* @__PURE__ */ y(l) ? "ShallowReadonly" : "Readonly"],
1494
1511
  "<",
1495
1512
  c(l),
1496
1513
  ">"
@@ -1511,26 +1528,26 @@ function $n() {
1511
1528
  }
1512
1529
  };
1513
1530
  function o(l) {
1514
- const p = [];
1515
- l.type.props && l.props && p.push(i("props", u(l.props))), l.setupState !== lt && p.push(i("setup", l.setupState)), l.data !== lt && p.push(i("data", u(l.data)));
1531
+ const h = [];
1532
+ l.type.props && l.props && h.push(i("props", /* @__PURE__ */ p(l.props))), l.setupState !== ut && h.push(i("setup", l.setupState)), l.data !== ut && h.push(i("data", /* @__PURE__ */ p(l.data)));
1516
1533
  const b = a(l, "computed");
1517
- b && p.push(i("computed", b));
1534
+ b && h.push(i("computed", b));
1518
1535
  const S = a(l, "inject");
1519
- return S && p.push(i("injected", S)), p.push([
1536
+ return S && h.push(i("injected", S)), h.push([
1520
1537
  "div",
1521
1538
  {},
1522
1539
  [
1523
1540
  "span",
1524
1541
  {
1525
- style: s.style + ";opacity:0.66"
1542
+ style: r.style + ";opacity:0.66"
1526
1543
  },
1527
1544
  "$ (internal): "
1528
1545
  ],
1529
1546
  ["object", { object: l }]
1530
- ]), p;
1547
+ ]), h;
1531
1548
  }
1532
- function i(l, p) {
1533
- return p = F({}, p), Object.keys(p).length ? [
1549
+ function i(l, h) {
1550
+ return h = D({}, h), Object.keys(h).length ? [
1534
1551
  "div",
1535
1552
  { style: "line-height:1.25em;margin-bottom:0.6em" },
1536
1553
  [
@@ -1545,46 +1562,67 @@ function $n() {
1545
1562
  {
1546
1563
  style: "padding-left:1.25em"
1547
1564
  },
1548
- ...Object.keys(p).map((b) => [
1565
+ ...Object.keys(h).map((b) => [
1549
1566
  "div",
1550
1567
  {},
1551
- ["span", s, b + ": "],
1552
- c(p[b], !1)
1568
+ ["span", r, b + ": "],
1569
+ c(h[b], !1)
1553
1570
  ])
1554
1571
  ]
1555
1572
  ] : ["span", {}];
1556
1573
  }
1557
- function c(l, p = !0) {
1558
- return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", s, l] : _(l) ? ["object", { object: p ? u(l) : l }] : ["span", n, String(l)];
1574
+ function c(l, h = !0) {
1575
+ return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] : _(l) ? ["object", { object: h ? /* @__PURE__ */ p(l) : l }] : ["span", n, String(l)];
1559
1576
  }
1560
- function a(l, p) {
1577
+ function a(l, h) {
1561
1578
  const b = l.type;
1562
- if (V(b))
1579
+ if (I(b))
1563
1580
  return;
1564
1581
  const S = {};
1565
1582
  for (const j in l.ctx)
1566
- f(b, j, p) && (S[j] = l.ctx[j]);
1583
+ u(b, j, h) && (S[j] = l.ctx[j]);
1567
1584
  return S;
1568
1585
  }
1569
- function f(l, p, b) {
1586
+ function u(l, h, b) {
1570
1587
  const S = l[b];
1571
- if (d(S) && S.includes(p) || _(S) && p in S || l.extends && f(l.extends, p, b) || l.mixins && l.mixins.some((j) => f(j, p, b)))
1588
+ if (d(S) && S.includes(h) || _(S) && h in S || l.extends && u(l.extends, h, b) || l.mixins && l.mixins.some((j) => u(j, h, b)))
1572
1589
  return !0;
1573
1590
  }
1574
- function h(l) {
1575
- return y(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
1591
+ function f(l) {
1592
+ return /* @__PURE__ */ y(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
1576
1593
  }
1577
- window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
1594
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
1578
1595
  }
1579
1596
  process.env.NODE_ENV;
1580
1597
  process.env.NODE_ENV;
1581
1598
  process.env.NODE_ENV;
1582
- function Dn() {
1599
+ function Vn() {
1583
1600
  $n();
1584
1601
  }
1585
- process.env.NODE_ENV !== "production" && Dn();
1586
- class Fn extends Vt {
1587
- _className = "Store";
1602
+ process.env.NODE_ENV !== "production" && Vn();
1603
+ function kn(t, e, n) {
1604
+ const r = n ? { storeOptions: n } : {};
1605
+ return typeof e == "function" ? Dn(
1606
+ t,
1607
+ e,
1608
+ r
1609
+ ) : xn(
1610
+ t,
1611
+ e,
1612
+ r
1613
+ );
1614
+ }
1615
+ function Dn(t, e, n) {
1616
+ return It(t, e, n);
1617
+ }
1618
+ function xn(t, e, n) {
1619
+ return n && (e = { ...e, ...n ?? {} }), It(t, e);
1620
+ }
1621
+ const Tn = /* @__PURE__ */ new Set(["_", "$"]);
1622
+ function Mn(t) {
1623
+ return Tn.has(t[0]);
1624
+ }
1625
+ class jn extends $t {
1588
1626
  _onAction;
1589
1627
  _options;
1590
1628
  _store;
@@ -1623,8 +1661,8 @@ class Fn extends Vt {
1623
1661
  set storeSubscribe(e) {
1624
1662
  this._storeSubscribe = e;
1625
1663
  }
1626
- constructor(e, n, s = !1, r) {
1627
- super(s, r), this._options = n.storeOptions, this._store = e;
1664
+ constructor(e, n, r = !1, s) {
1665
+ super(r, s), this._options = n.storeOptions, this._store = e;
1628
1666
  }
1629
1667
  /**
1630
1668
  * Add property to state
@@ -1632,10 +1670,10 @@ class Fn extends Vt {
1632
1670
  * @param value
1633
1671
  */
1634
1672
  addToState(e, n) {
1635
- this.isOptionApi() || n?.value || (n = Ut(n)), this.state[e] = n, this.store[e] = Ge(this.state, e);
1673
+ this.isOptionApi() || n?.value || (n = /* @__PURE__ */ zt(n)), this.state[e] = n, this.store[e] = /* @__PURE__ */ Be(this.state, e);
1636
1674
  }
1637
- addSubscription(e, n, s) {
1638
- this._subscriptions[e] = { subscription: n, subscriptionOptions: s };
1675
+ addSubscription(e, n, r) {
1676
+ this._subscriptions[e] = { subscription: n, ...r ?? {} };
1639
1677
  }
1640
1678
  /**
1641
1679
  * Create and return a class instance
@@ -1644,15 +1682,15 @@ class Fn extends Vt {
1644
1682
  * @param debug
1645
1683
  * @returns
1646
1684
  */
1647
- static customizeStore(e, n, s = !1, r) {
1648
- if (s && r && r.log(`Store - customizeStore() - ${e.$id}`, n), n.storeOptions && this.hasRequiredKeys(n.storeOptions))
1649
- return new this(e, n, s, r);
1685
+ static customizeStore(e, n, r = !1, s) {
1686
+ if (n.storeOptions && this.hasRequiredKeys(n.storeOptions))
1687
+ return new this(e, n, r, s);
1650
1688
  }
1651
1689
  hasDeniedFirstChar(e) {
1652
- return xt(e[0]);
1690
+ return Mn(e[0]);
1653
1691
  }
1654
1692
  static hasRequiredKeys(e) {
1655
- return this._requiredKeys === void 0 || this._requiredKeys?.every((n) => !!e[n]);
1693
+ return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!e[n]);
1656
1694
  }
1657
1695
  getOption(e) {
1658
1696
  return this.options && this.options[e];
@@ -1661,7 +1699,7 @@ class Fn extends Vt {
1661
1699
  return this.getValue(this.state[e]);
1662
1700
  }
1663
1701
  getSubscriptions() {
1664
- if (!$t(this._subscriptions))
1702
+ if (!at(this._subscriptions))
1665
1703
  return this._subscriptions;
1666
1704
  }
1667
1705
  getValue(e) {
@@ -1677,17 +1715,17 @@ class Fn extends Vt {
1677
1715
  return this.store.hasOwnProperty(e);
1678
1716
  }
1679
1717
  }
1680
- function jn(t, e = !1) {
1681
- typeof e != "boolean" && (e = !1);
1682
- const n = new ge(t, e);
1718
+ function Kn(t, e) {
1719
+ const n = new pe(t, e);
1683
1720
  return n.plugin.bind(n);
1684
1721
  }
1685
1722
  export {
1686
- ue as CustomConsole,
1687
- Mn as PluginSubscriber,
1688
- ge as PluginSubscription,
1689
- Fn as Store,
1690
- jn as createPlugin,
1691
- Pn as defineAStore,
1692
- $t as isEmpty
1723
+ ae as CustomConsole,
1724
+ Vt as PLUGIN_NAME,
1725
+ Fn as PluginSubscriber,
1726
+ pe as PluginSubscription,
1727
+ jn as Store,
1728
+ Kn as createPlugin,
1729
+ kn as defineAStore,
1730
+ at as isEmpty
1693
1731
  };