@documenso/embed-vue 0.0.1

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/dist/index.mjs ADDED
@@ -0,0 +1,1954 @@
1
+ /**
2
+ * @vue/shared v3.4.38
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/
6
+ /*! #__NO_SIDE_EFFECTS__ */
7
+ // @__NO_SIDE_EFFECTS__
8
+ function hn(e, t) {
9
+ const n = new Set(e.split(","));
10
+ return (r) => n.has(r);
11
+ }
12
+ const I = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, _n = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], B = () => {
13
+ }, mn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
14
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), R = Object.assign, gn = Object.prototype.hasOwnProperty, E = (e, t) => gn.call(e, t), _ = Array.isArray, k = (e) => xe(e) === "[object Map]", En = (e) => xe(e) === "[object Set]", w = (e) => typeof e == "function", D = (e) => typeof e == "string", ce = (e) => typeof e == "symbol", O = (e) => e !== null && typeof e == "object", wn = (e) => (O(e) || w(e)) && w(e.then) && w(e.catch), Nn = Object.prototype.toString, xe = (e) => Nn.call(e), wt = (e) => xe(e).slice(8, -1), bn = (e) => xe(e) === "[object Object]", Je = (e) => D(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Nt = (e) => {
15
+ const t = /* @__PURE__ */ Object.create(null);
16
+ return (n) => t[n] || (t[n] = e(n));
17
+ }, bt = Nt((e) => e.charAt(0).toUpperCase() + e.slice(1)), vn = Nt((e) => e ? `on${bt(e)}` : ""), H = (e, t) => !Object.is(e, t), On = (e, t, n, r = !1) => {
18
+ Object.defineProperty(e, t, {
19
+ configurable: !0,
20
+ enumerable: !1,
21
+ writable: r,
22
+ value: n
23
+ });
24
+ };
25
+ let ot;
26
+ const vt = () => ot || (ot = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
27
+ function qe(e) {
28
+ if (_(e)) {
29
+ const t = {};
30
+ for (let n = 0; n < e.length; n++) {
31
+ const r = e[n], s = D(r) ? Vn(r) : qe(r);
32
+ if (s)
33
+ for (const o in s)
34
+ t[o] = s[o];
35
+ }
36
+ return t;
37
+ } else if (D(e) || O(e))
38
+ return e;
39
+ }
40
+ const yn = /;(?![^(]*\))/g, Sn = /:([^]+)/, Rn = /\/\*[^]*?\*\//g;
41
+ function Vn(e) {
42
+ const t = {};
43
+ return e.replace(Rn, "").split(yn).forEach((n) => {
44
+ if (n) {
45
+ const r = n.split(Sn);
46
+ r.length > 1 && (t[r[0].trim()] = r[1].trim());
47
+ }
48
+ }), t;
49
+ }
50
+ function le(e) {
51
+ let t = "";
52
+ if (D(e))
53
+ t = e;
54
+ else if (_(e))
55
+ for (let n = 0; n < e.length; n++) {
56
+ const r = le(e[n]);
57
+ r && (t += r + " ");
58
+ }
59
+ else if (O(e))
60
+ for (const n in e)
61
+ e[n] && (t += n + " ");
62
+ return t.trim();
63
+ }
64
+ /**
65
+ * @vue/reactivity v3.4.38
66
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
67
+ * @license MIT
68
+ **/
69
+ function Q(e, ...t) {
70
+ console.warn(`[Vue warn] ${e}`, ...t);
71
+ }
72
+ let xn;
73
+ function Dn(e, t = xn) {
74
+ t && t.active && t.effects.push(e);
75
+ }
76
+ let J;
77
+ class Ot {
78
+ constructor(t, n, r, s) {
79
+ this.fn = t, this.trigger = n, this.scheduler = r, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, Dn(this, s);
80
+ }
81
+ get dirty() {
82
+ if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
83
+ this._dirtyLevel = 1, ae();
84
+ for (let t = 0; t < this._depsLength; t++) {
85
+ const n = this.deps[t];
86
+ if (n.computed && (Cn(n.computed), this._dirtyLevel >= 4))
87
+ break;
88
+ }
89
+ this._dirtyLevel === 1 && (this._dirtyLevel = 0), ue();
90
+ }
91
+ return this._dirtyLevel >= 4;
92
+ }
93
+ set dirty(t) {
94
+ this._dirtyLevel = t ? 4 : 0;
95
+ }
96
+ run() {
97
+ if (this._dirtyLevel = 0, !this.active)
98
+ return this.fn();
99
+ let t = L, n = J;
100
+ try {
101
+ return L = !0, J = this, this._runnings++, it(this), this.fn();
102
+ } finally {
103
+ ct(this), this._runnings--, J = n, L = t;
104
+ }
105
+ }
106
+ stop() {
107
+ this.active && (it(this), ct(this), this.onStop && this.onStop(), this.active = !1);
108
+ }
109
+ }
110
+ function Cn(e) {
111
+ return e.value;
112
+ }
113
+ function it(e) {
114
+ e._trackId++, e._depsLength = 0;
115
+ }
116
+ function ct(e) {
117
+ if (e.deps.length > e._depsLength) {
118
+ for (let t = e._depsLength; t < e.deps.length; t++)
119
+ yt(e.deps[t], e);
120
+ e.deps.length = e._depsLength;
121
+ }
122
+ }
123
+ function yt(e, t) {
124
+ const n = e.get(t);
125
+ n !== void 0 && t._trackId !== n && (e.delete(t), e.size === 0 && e.cleanup());
126
+ }
127
+ let L = !0, Le = 0;
128
+ const St = [];
129
+ function ae() {
130
+ St.push(L), L = !1;
131
+ }
132
+ function ue() {
133
+ const e = St.pop();
134
+ L = e === void 0 ? !0 : e;
135
+ }
136
+ function Ye() {
137
+ Le++;
138
+ }
139
+ function Ge() {
140
+ for (Le--; !Le && je.length; )
141
+ je.shift()();
142
+ }
143
+ function Rt(e, t, n) {
144
+ var r;
145
+ if (t.get(e) !== e._trackId) {
146
+ t.set(e, e._trackId);
147
+ const s = e.deps[e._depsLength];
148
+ s !== t ? (s && yt(s, e), e.deps[e._depsLength++] = t) : e._depsLength++, process.env.NODE_ENV !== "production" && ((r = e.onTrack) == null || r.call(e, R({ effect: e }, n)));
149
+ }
150
+ }
151
+ const je = [];
152
+ function Vt(e, t, n) {
153
+ var r;
154
+ Ye();
155
+ for (const s of e.keys()) {
156
+ let o;
157
+ s._dirtyLevel < t && (o ?? (o = e.get(s) === s._trackId)) && (s._shouldSchedule || (s._shouldSchedule = s._dirtyLevel === 0), s._dirtyLevel = t), s._shouldSchedule && (o ?? (o = e.get(s) === s._trackId)) && (process.env.NODE_ENV !== "production" && ((r = s.onTrigger) == null || r.call(s, R({ effect: s }, n))), s.trigger(), (!s._runnings || s.allowRecurse) && s._dirtyLevel !== 2 && (s._shouldSchedule = !1, s.scheduler && je.push(s.scheduler)));
158
+ }
159
+ Ge();
160
+ }
161
+ const xt = (e, t) => {
162
+ const n = /* @__PURE__ */ new Map();
163
+ return n.cleanup = e, n.computed = t, n;
164
+ }, He = /* @__PURE__ */ new WeakMap(), q = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), Ue = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
165
+ function b(e, t, n) {
166
+ if (L && J) {
167
+ let r = He.get(e);
168
+ r || He.set(e, r = /* @__PURE__ */ new Map());
169
+ let s = r.get(n);
170
+ s || r.set(n, s = xt(() => r.delete(n))), Rt(
171
+ J,
172
+ s,
173
+ process.env.NODE_ENV !== "production" ? {
174
+ target: e,
175
+ type: t,
176
+ key: n
177
+ } : void 0
178
+ );
179
+ }
180
+ }
181
+ function j(e, t, n, r, s, o) {
182
+ const i = He.get(e);
183
+ if (!i)
184
+ return;
185
+ let c = [];
186
+ if (t === "clear")
187
+ c = [...i.values()];
188
+ else if (n === "length" && _(e)) {
189
+ const a = Number(r);
190
+ i.forEach((u, h) => {
191
+ (h === "length" || !ce(h) && h >= a) && c.push(u);
192
+ });
193
+ } else
194
+ switch (n !== void 0 && c.push(i.get(n)), t) {
195
+ case "add":
196
+ _(e) ? Je(n) && c.push(i.get("length")) : (c.push(i.get(q)), k(e) && c.push(i.get(Ue)));
197
+ break;
198
+ case "delete":
199
+ _(e) || (c.push(i.get(q)), k(e) && c.push(i.get(Ue)));
200
+ break;
201
+ case "set":
202
+ k(e) && c.push(i.get(q));
203
+ break;
204
+ }
205
+ Ye();
206
+ for (const a of c)
207
+ a && Vt(
208
+ a,
209
+ 4,
210
+ process.env.NODE_ENV !== "production" ? {
211
+ target: e,
212
+ type: t,
213
+ key: n,
214
+ newValue: r,
215
+ oldValue: s,
216
+ oldTarget: o
217
+ } : void 0
218
+ );
219
+ Ge();
220
+ }
221
+ const In = /* @__PURE__ */ hn("__proto__,__v_isRef,__isVue"), Dt = new Set(
222
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ce)
223
+ ), lt = /* @__PURE__ */ $n();
224
+ function $n() {
225
+ const e = {};
226
+ return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
227
+ e[t] = function(...n) {
228
+ const r = f(this);
229
+ for (let o = 0, i = this.length; o < i; o++)
230
+ b(r, "get", o + "");
231
+ const s = r[t](...n);
232
+ return s === -1 || s === !1 ? r[t](...n.map(f)) : s;
233
+ };
234
+ }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
235
+ e[t] = function(...n) {
236
+ ae(), Ye();
237
+ const r = f(this)[t].apply(this, n);
238
+ return Ge(), ue(), r;
239
+ };
240
+ }), e;
241
+ }
242
+ function Pn(e) {
243
+ ce(e) || (e = String(e));
244
+ const t = f(this);
245
+ return b(t, "has", e), t.hasOwnProperty(e);
246
+ }
247
+ class Ct {
248
+ constructor(t = !1, n = !1) {
249
+ this._isReadonly = t, this._isShallow = n;
250
+ }
251
+ get(t, n, r) {
252
+ const s = this._isReadonly, o = this._isShallow;
253
+ if (n === "__v_isReactive")
254
+ return !s;
255
+ if (n === "__v_isReadonly")
256
+ return s;
257
+ if (n === "__v_isShallow")
258
+ return o;
259
+ if (n === "__v_raw")
260
+ return r === (s ? o ? Mt : Tt : o ? Jn : Pt).get(t) || // receiver is not the reactive proxy, but has the same prototype
261
+ // this means the receiver is a user proxy of the reactive proxy
262
+ Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
263
+ const i = _(t);
264
+ if (!s) {
265
+ if (i && E(lt, n))
266
+ return Reflect.get(lt, n, r);
267
+ if (n === "hasOwnProperty")
268
+ return Pn;
269
+ }
270
+ const c = Reflect.get(t, n, r);
271
+ return (ce(n) ? Dt.has(n) : In(n)) || (s || b(t, "get", n), o) ? c : S(c) ? i && Je(n) ? c : c.value : O(c) ? s ? At(c) : Ft(c) : c;
272
+ }
273
+ }
274
+ class Tn extends Ct {
275
+ constructor(t = !1) {
276
+ super(!1, t);
277
+ }
278
+ set(t, n, r, s) {
279
+ let o = t[n];
280
+ if (!this._isShallow) {
281
+ const a = T(o);
282
+ if (!P(r) && !T(r) && (o = f(o), r = f(r)), !_(t) && S(o) && !S(r))
283
+ return a ? !1 : (o.value = r, !0);
284
+ }
285
+ const i = _(t) && Je(n) ? Number(n) < t.length : E(t, n), c = Reflect.set(t, n, r, s);
286
+ return t === f(s) && (i ? H(r, o) && j(t, "set", n, r, o) : j(t, "add", n, r)), c;
287
+ }
288
+ deleteProperty(t, n) {
289
+ const r = E(t, n), s = t[n], o = Reflect.deleteProperty(t, n);
290
+ return o && r && j(t, "delete", n, void 0, s), o;
291
+ }
292
+ has(t, n) {
293
+ const r = Reflect.has(t, n);
294
+ return (!ce(n) || !Dt.has(n)) && b(t, "has", n), r;
295
+ }
296
+ ownKeys(t) {
297
+ return b(
298
+ t,
299
+ "iterate",
300
+ _(t) ? "length" : q
301
+ ), Reflect.ownKeys(t);
302
+ }
303
+ }
304
+ class It extends Ct {
305
+ constructor(t = !1) {
306
+ super(!0, t);
307
+ }
308
+ set(t, n) {
309
+ return process.env.NODE_ENV !== "production" && Q(
310
+ `Set operation on key "${String(n)}" failed: target is readonly.`,
311
+ t
312
+ ), !0;
313
+ }
314
+ deleteProperty(t, n) {
315
+ return process.env.NODE_ENV !== "production" && Q(
316
+ `Delete operation on key "${String(n)}" failed: target is readonly.`,
317
+ t
318
+ ), !0;
319
+ }
320
+ }
321
+ const Mn = /* @__PURE__ */ new Tn(), Fn = /* @__PURE__ */ new It(), An = /* @__PURE__ */ new It(!0), Qe = (e) => e, De = (e) => Reflect.getPrototypeOf(e);
322
+ function de(e, t, n = !1, r = !1) {
323
+ e = e.__v_raw;
324
+ const s = f(e), o = f(t);
325
+ n || (H(t, o) && b(s, "get", t), b(s, "get", o));
326
+ const { has: i } = De(s), c = r ? Qe : n ? ke : oe;
327
+ if (i.call(s, t))
328
+ return c(e.get(t));
329
+ if (i.call(s, o))
330
+ return c(e.get(o));
331
+ e !== s && e.get(t);
332
+ }
333
+ function pe(e, t = !1) {
334
+ const n = this.__v_raw, r = f(n), s = f(e);
335
+ return t || (H(e, s) && b(r, "has", e), b(r, "has", s)), e === s ? n.has(e) : n.has(e) || n.has(s);
336
+ }
337
+ function he(e, t = !1) {
338
+ return e = e.__v_raw, !t && b(f(e), "iterate", q), Reflect.get(e, "size", e);
339
+ }
340
+ function at(e, t = !1) {
341
+ !t && !P(e) && !T(e) && (e = f(e));
342
+ const n = f(this);
343
+ return De(n).has.call(n, e) || (n.add(e), j(n, "add", e, e)), this;
344
+ }
345
+ function ut(e, t, n = !1) {
346
+ !n && !P(t) && !T(t) && (t = f(t));
347
+ const r = f(this), { has: s, get: o } = De(r);
348
+ let i = s.call(r, e);
349
+ i ? process.env.NODE_ENV !== "production" && $t(r, s, e) : (e = f(e), i = s.call(r, e));
350
+ const c = o.call(r, e);
351
+ return r.set(e, t), i ? H(t, c) && j(r, "set", e, t, c) : j(r, "add", e, t), this;
352
+ }
353
+ function ft(e) {
354
+ const t = f(this), { has: n, get: r } = De(t);
355
+ let s = n.call(t, e);
356
+ s ? process.env.NODE_ENV !== "production" && $t(t, n, e) : (e = f(e), s = n.call(t, e));
357
+ const o = r ? r.call(t, e) : void 0, i = t.delete(e);
358
+ return s && j(t, "delete", e, void 0, o), i;
359
+ }
360
+ function dt() {
361
+ const e = f(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? k(e) ? new Map(e) : new Set(e) : void 0, r = e.clear();
362
+ return t && j(e, "clear", void 0, void 0, n), r;
363
+ }
364
+ function _e(e, t) {
365
+ return function(r, s) {
366
+ const o = this, i = o.__v_raw, c = f(i), a = t ? Qe : e ? ke : oe;
367
+ return !e && b(c, "iterate", q), i.forEach((u, h) => r.call(s, a(u), a(h), o));
368
+ };
369
+ }
370
+ function me(e, t, n) {
371
+ return function(...r) {
372
+ const s = this.__v_raw, o = f(s), i = k(o), c = e === "entries" || e === Symbol.iterator && i, a = e === "keys" && i, u = s[e](...r), h = n ? Qe : t ? ke : oe;
373
+ return !t && b(
374
+ o,
375
+ "iterate",
376
+ a ? Ue : q
377
+ ), {
378
+ // iterator protocol
379
+ next() {
380
+ const { value: l, done: d } = u.next();
381
+ return d ? { value: l, done: d } : {
382
+ value: c ? [h(l[0]), h(l[1])] : h(l),
383
+ done: d
384
+ };
385
+ },
386
+ // iterable protocol
387
+ [Symbol.iterator]() {
388
+ return this;
389
+ }
390
+ };
391
+ };
392
+ }
393
+ function M(e) {
394
+ return function(...t) {
395
+ if (process.env.NODE_ENV !== "production") {
396
+ const n = t[0] ? `on key "${t[0]}" ` : "";
397
+ Q(
398
+ `${bt(e)} operation ${n}failed: target is readonly.`,
399
+ f(this)
400
+ );
401
+ }
402
+ return e === "delete" ? !1 : e === "clear" ? void 0 : this;
403
+ };
404
+ }
405
+ function Ln() {
406
+ const e = {
407
+ get(o) {
408
+ return de(this, o);
409
+ },
410
+ get size() {
411
+ return he(this);
412
+ },
413
+ has: pe,
414
+ add: at,
415
+ set: ut,
416
+ delete: ft,
417
+ clear: dt,
418
+ forEach: _e(!1, !1)
419
+ }, t = {
420
+ get(o) {
421
+ return de(this, o, !1, !0);
422
+ },
423
+ get size() {
424
+ return he(this);
425
+ },
426
+ has: pe,
427
+ add(o) {
428
+ return at.call(this, o, !0);
429
+ },
430
+ set(o, i) {
431
+ return ut.call(this, o, i, !0);
432
+ },
433
+ delete: ft,
434
+ clear: dt,
435
+ forEach: _e(!1, !0)
436
+ }, n = {
437
+ get(o) {
438
+ return de(this, o, !0);
439
+ },
440
+ get size() {
441
+ return he(this, !0);
442
+ },
443
+ has(o) {
444
+ return pe.call(this, o, !0);
445
+ },
446
+ add: M("add"),
447
+ set: M("set"),
448
+ delete: M("delete"),
449
+ clear: M("clear"),
450
+ forEach: _e(!0, !1)
451
+ }, r = {
452
+ get(o) {
453
+ return de(this, o, !0, !0);
454
+ },
455
+ get size() {
456
+ return he(this, !0);
457
+ },
458
+ has(o) {
459
+ return pe.call(this, o, !0);
460
+ },
461
+ add: M("add"),
462
+ set: M("set"),
463
+ delete: M("delete"),
464
+ clear: M("clear"),
465
+ forEach: _e(!0, !0)
466
+ };
467
+ return [
468
+ "keys",
469
+ "values",
470
+ "entries",
471
+ Symbol.iterator
472
+ ].forEach((o) => {
473
+ e[o] = me(o, !1, !1), n[o] = me(o, !0, !1), t[o] = me(o, !1, !0), r[o] = me(
474
+ o,
475
+ !0,
476
+ !0
477
+ );
478
+ }), [
479
+ e,
480
+ n,
481
+ t,
482
+ r
483
+ ];
484
+ }
485
+ const [
486
+ jn,
487
+ Hn,
488
+ Un,
489
+ Kn
490
+ ] = /* @__PURE__ */ Ln();
491
+ function Xe(e, t) {
492
+ const n = t ? e ? Kn : Un : e ? Hn : jn;
493
+ return (r, s, o) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? r : Reflect.get(
494
+ E(n, s) && s in r ? n : r,
495
+ s,
496
+ o
497
+ );
498
+ }
499
+ const zn = {
500
+ get: /* @__PURE__ */ Xe(!1, !1)
501
+ }, Wn = {
502
+ get: /* @__PURE__ */ Xe(!0, !1)
503
+ }, Bn = {
504
+ get: /* @__PURE__ */ Xe(!0, !0)
505
+ };
506
+ function $t(e, t, n) {
507
+ const r = f(n);
508
+ if (r !== n && t.call(e, r)) {
509
+ const s = wt(e);
510
+ Q(
511
+ `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.`
512
+ );
513
+ }
514
+ }
515
+ const Pt = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap();
516
+ function qn(e) {
517
+ switch (e) {
518
+ case "Object":
519
+ case "Array":
520
+ return 1;
521
+ case "Map":
522
+ case "Set":
523
+ case "WeakMap":
524
+ case "WeakSet":
525
+ return 2;
526
+ default:
527
+ return 0;
528
+ }
529
+ }
530
+ function Yn(e) {
531
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : qn(wt(e));
532
+ }
533
+ function Ft(e) {
534
+ return T(e) ? e : Ze(
535
+ e,
536
+ !1,
537
+ Mn,
538
+ zn,
539
+ Pt
540
+ );
541
+ }
542
+ function At(e) {
543
+ return Ze(
544
+ e,
545
+ !0,
546
+ Fn,
547
+ Wn,
548
+ Tt
549
+ );
550
+ }
551
+ function ge(e) {
552
+ return Ze(
553
+ e,
554
+ !0,
555
+ An,
556
+ Bn,
557
+ Mt
558
+ );
559
+ }
560
+ function Ze(e, t, n, r, s) {
561
+ if (!O(e))
562
+ return process.env.NODE_ENV !== "production" && Q(
563
+ `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
564
+ e
565
+ )}`
566
+ ), e;
567
+ if (e.__v_raw && !(t && e.__v_isReactive))
568
+ return e;
569
+ const o = s.get(e);
570
+ if (o)
571
+ return o;
572
+ const i = Yn(e);
573
+ if (i === 0)
574
+ return e;
575
+ const c = new Proxy(
576
+ e,
577
+ i === 2 ? r : n
578
+ );
579
+ return s.set(e, c), c;
580
+ }
581
+ function ee(e) {
582
+ return T(e) ? ee(e.__v_raw) : !!(e && e.__v_isReactive);
583
+ }
584
+ function T(e) {
585
+ return !!(e && e.__v_isReadonly);
586
+ }
587
+ function P(e) {
588
+ return !!(e && e.__v_isShallow);
589
+ }
590
+ function Ke(e) {
591
+ return e ? !!e.__v_raw : !1;
592
+ }
593
+ function f(e) {
594
+ const t = e && e.__v_raw;
595
+ return t ? f(t) : e;
596
+ }
597
+ function Gn(e) {
598
+ return Object.isExtensible(e) && On(e, "__v_skip", !0), e;
599
+ }
600
+ const oe = (e) => O(e) ? Ft(e) : e, ke = (e) => O(e) ? At(e) : e, Qn = "Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";
601
+ class Lt {
602
+ constructor(t, n, r, s) {
603
+ this.getter = t, this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new Ot(
604
+ () => t(this._value),
605
+ () => Ne(
606
+ this,
607
+ this.effect._dirtyLevel === 2 ? 2 : 3
608
+ )
609
+ ), this.effect.computed = this, this.effect.active = this._cacheable = !s, this.__v_isReadonly = r;
610
+ }
611
+ get value() {
612
+ const t = f(this);
613
+ return (!t._cacheable || t.effect.dirty) && H(t._value, t._value = t.effect.run()) && Ne(t, 4), jt(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && Q(Qn, `
614
+
615
+ getter: `, this.getter), Ne(t, 2)), t._value;
616
+ }
617
+ set value(t) {
618
+ this._setter(t);
619
+ }
620
+ // #region polyfill _dirty for backward compatibility third party code for Vue <= 3.3.x
621
+ get _dirty() {
622
+ return this.effect.dirty;
623
+ }
624
+ set _dirty(t) {
625
+ this.effect.dirty = t;
626
+ }
627
+ // #endregion
628
+ }
629
+ function Xn(e, t, n = !1) {
630
+ let r, s;
631
+ const o = w(e);
632
+ o ? (r = e, s = process.env.NODE_ENV !== "production" ? () => {
633
+ Q("Write operation failed: computed value is readonly");
634
+ } : B) : (r = e.get, s = e.set);
635
+ const i = new Lt(r, s, o || !s, n);
636
+ return process.env.NODE_ENV !== "production" && t && !n && (i.effect.onTrack = t.onTrack, i.effect.onTrigger = t.onTrigger), i;
637
+ }
638
+ function jt(e) {
639
+ var t;
640
+ L && J && (e = f(e), Rt(
641
+ J,
642
+ (t = e.dep) != null ? t : e.dep = xt(
643
+ () => e.dep = void 0,
644
+ e instanceof Lt ? e : void 0
645
+ ),
646
+ process.env.NODE_ENV !== "production" ? {
647
+ target: e,
648
+ type: "get",
649
+ key: "value"
650
+ } : void 0
651
+ ));
652
+ }
653
+ function Ne(e, t = 4, n, r) {
654
+ e = f(e);
655
+ const s = e.dep;
656
+ s && Vt(
657
+ s,
658
+ t,
659
+ process.env.NODE_ENV !== "production" ? {
660
+ target: e,
661
+ type: "set",
662
+ key: "value",
663
+ newValue: n,
664
+ oldValue: r
665
+ } : void 0
666
+ );
667
+ }
668
+ function S(e) {
669
+ return !!(e && e.__v_isRef === !0);
670
+ }
671
+ function Ht(e) {
672
+ return Zn(e, !1);
673
+ }
674
+ function Zn(e, t) {
675
+ return S(e) ? e : new kn(e, t);
676
+ }
677
+ class kn {
678
+ constructor(t, n) {
679
+ this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : f(t), this._value = n ? t : oe(t);
680
+ }
681
+ get value() {
682
+ return jt(this), this._value;
683
+ }
684
+ set value(t) {
685
+ const n = this.__v_isShallow || P(t) || T(t);
686
+ if (t = n ? t : f(t), H(t, this._rawValue)) {
687
+ const r = this._rawValue;
688
+ this._rawValue = t, this._value = n ? t : oe(t), Ne(this, 4, t, r);
689
+ }
690
+ }
691
+ }
692
+ function er(e) {
693
+ return S(e) ? e.value : e;
694
+ }
695
+ const tr = {
696
+ get: (e, t, n) => er(Reflect.get(e, t, n)),
697
+ set: (e, t, n, r) => {
698
+ const s = e[t];
699
+ return S(s) && !S(n) ? (s.value = n, !0) : Reflect.set(e, t, n, r);
700
+ }
701
+ };
702
+ function nr(e) {
703
+ return ee(e) ? e : new Proxy(e, tr);
704
+ }
705
+ /**
706
+ * @vue/runtime-core v3.4.38
707
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
708
+ * @license MIT
709
+ **/
710
+ const Y = [];
711
+ function rr(e) {
712
+ Y.push(e);
713
+ }
714
+ function sr() {
715
+ Y.pop();
716
+ }
717
+ let Te = !1;
718
+ function m(e, ...t) {
719
+ if (Te) return;
720
+ Te = !0, ae();
721
+ const n = Y.length ? Y[Y.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = or();
722
+ if (r)
723
+ G(
724
+ r,
725
+ n,
726
+ 11,
727
+ [
728
+ // eslint-disable-next-line no-restricted-syntax
729
+ e + t.map((o) => {
730
+ var i, c;
731
+ return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
732
+ }).join(""),
733
+ n && n.proxy,
734
+ s.map(
735
+ ({ vnode: o }) => `at <${un(n, o.type)}>`
736
+ ).join(`
737
+ `),
738
+ s
739
+ ]
740
+ );
741
+ else {
742
+ const o = [`[Vue warn]: ${e}`, ...t];
743
+ s.length && o.push(`
744
+ `, ...ir(s)), console.warn(...o);
745
+ }
746
+ ue(), Te = !1;
747
+ }
748
+ function or() {
749
+ let e = Y[Y.length - 1];
750
+ if (!e)
751
+ return [];
752
+ const t = [];
753
+ for (; e; ) {
754
+ const n = t[0];
755
+ n && n.vnode === e ? n.recurseCount++ : t.push({
756
+ vnode: e,
757
+ recurseCount: 0
758
+ });
759
+ const r = e.component && e.component.parent;
760
+ e = r && r.vnode;
761
+ }
762
+ return t;
763
+ }
764
+ function ir(e) {
765
+ const t = [];
766
+ return e.forEach((n, r) => {
767
+ t.push(...r === 0 ? [] : [`
768
+ `], ...cr(n));
769
+ }), t;
770
+ }
771
+ function cr({ vnode: e, recurseCount: t }) {
772
+ const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, s = ` at <${un(
773
+ e.component,
774
+ e.type,
775
+ r
776
+ )}`, o = ">" + n;
777
+ return e.props ? [s, ...lr(e.props), o] : [s + o];
778
+ }
779
+ function lr(e) {
780
+ const t = [], n = Object.keys(e);
781
+ return n.slice(0, 3).forEach((r) => {
782
+ t.push(...Ut(r, e[r]));
783
+ }), n.length > 3 && t.push(" ..."), t;
784
+ }
785
+ function Ut(e, t, n) {
786
+ return D(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : S(t) ? (t = Ut(e, f(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : w(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = f(t), n ? t : [`${e}=`, t]);
787
+ }
788
+ const et = {
789
+ sp: "serverPrefetch hook",
790
+ bc: "beforeCreate hook",
791
+ c: "created hook",
792
+ bm: "beforeMount hook",
793
+ m: "mounted hook",
794
+ bu: "beforeUpdate hook",
795
+ u: "updated",
796
+ bum: "beforeUnmount hook",
797
+ um: "unmounted hook",
798
+ a: "activated hook",
799
+ da: "deactivated hook",
800
+ ec: "errorCaptured hook",
801
+ rtc: "renderTracked hook",
802
+ rtg: "renderTriggered hook",
803
+ 0: "setup function",
804
+ 1: "render function",
805
+ 2: "watcher getter",
806
+ 3: "watcher callback",
807
+ 4: "watcher cleanup function",
808
+ 5: "native event handler",
809
+ 6: "component event handler",
810
+ 7: "vnode hook",
811
+ 8: "directive hook",
812
+ 9: "transition hook",
813
+ 10: "app errorHandler",
814
+ 11: "app warnHandler",
815
+ 12: "ref function",
816
+ 13: "async component loader",
817
+ 14: "scheduler flush",
818
+ 15: "component update"
819
+ };
820
+ function G(e, t, n, r) {
821
+ try {
822
+ return r ? e(...r) : e();
823
+ } catch (s) {
824
+ tt(s, t, n);
825
+ }
826
+ }
827
+ function re(e, t, n, r) {
828
+ if (w(e)) {
829
+ const s = G(e, t, n, r);
830
+ return s && wn(s) && s.catch((o) => {
831
+ tt(o, t, n);
832
+ }), s;
833
+ }
834
+ if (_(e)) {
835
+ const s = [];
836
+ for (let o = 0; o < e.length; o++)
837
+ s.push(re(e[o], t, n, r));
838
+ return s;
839
+ } else process.env.NODE_ENV !== "production" && m(
840
+ `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
841
+ );
842
+ }
843
+ function tt(e, t, n, r = !0) {
844
+ const s = t ? t.vnode : null;
845
+ if (t) {
846
+ let o = t.parent;
847
+ const i = t.proxy, c = process.env.NODE_ENV !== "production" ? et[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
848
+ for (; o; ) {
849
+ const u = o.ec;
850
+ if (u) {
851
+ for (let h = 0; h < u.length; h++)
852
+ if (u[h](e, i, c) === !1)
853
+ return;
854
+ }
855
+ o = o.parent;
856
+ }
857
+ const a = t.appContext.config.errorHandler;
858
+ if (a) {
859
+ ae(), G(
860
+ a,
861
+ null,
862
+ 10,
863
+ [e, i, c]
864
+ ), ue();
865
+ return;
866
+ }
867
+ }
868
+ ar(e, n, s, r);
869
+ }
870
+ function ar(e, t, n, r = !0) {
871
+ if (process.env.NODE_ENV !== "production") {
872
+ const s = et[t];
873
+ if (n && rr(n), m(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && sr(), r)
874
+ throw e;
875
+ console.error(e);
876
+ } else
877
+ console.error(e);
878
+ }
879
+ let Oe = !1, ze = !1;
880
+ const V = [];
881
+ let A = 0;
882
+ const te = [];
883
+ let F = null, z = 0;
884
+ const Kt = /* @__PURE__ */ Promise.resolve();
885
+ let nt = null;
886
+ const ur = 100;
887
+ function fr(e) {
888
+ const t = nt || Kt;
889
+ return e ? t.then(this ? e.bind(this) : e) : t;
890
+ }
891
+ function dr(e) {
892
+ let t = A + 1, n = V.length;
893
+ for (; t < n; ) {
894
+ const r = t + n >>> 1, s = V[r], o = ie(s);
895
+ o < e || o === e && s.pre ? t = r + 1 : n = r;
896
+ }
897
+ return t;
898
+ }
899
+ function rt(e) {
900
+ (!V.length || !V.includes(
901
+ e,
902
+ Oe && e.allowRecurse ? A + 1 : A
903
+ )) && (e.id == null ? V.push(e) : V.splice(dr(e.id), 0, e), zt());
904
+ }
905
+ function zt() {
906
+ !Oe && !ze && (ze = !0, nt = Kt.then(Bt));
907
+ }
908
+ function Wt(e) {
909
+ _(e) ? te.push(...e) : (!F || !F.includes(
910
+ e,
911
+ e.allowRecurse ? z + 1 : z
912
+ )) && te.push(e), zt();
913
+ }
914
+ function pr(e) {
915
+ if (te.length) {
916
+ const t = [...new Set(te)].sort(
917
+ (n, r) => ie(n) - ie(r)
918
+ );
919
+ if (te.length = 0, F) {
920
+ F.push(...t);
921
+ return;
922
+ }
923
+ for (F = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), z = 0; z < F.length; z++) {
924
+ const n = F[z];
925
+ process.env.NODE_ENV !== "production" && Jt(e, n) || n.active !== !1 && n();
926
+ }
927
+ F = null, z = 0;
928
+ }
929
+ }
930
+ const ie = (e) => e.id == null ? 1 / 0 : e.id, hr = (e, t) => {
931
+ const n = ie(e) - ie(t);
932
+ if (n === 0) {
933
+ if (e.pre && !t.pre) return -1;
934
+ if (t.pre && !e.pre) return 1;
935
+ }
936
+ return n;
937
+ };
938
+ function Bt(e) {
939
+ ze = !1, Oe = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), V.sort(hr);
940
+ const t = process.env.NODE_ENV !== "production" ? (n) => Jt(e, n) : B;
941
+ try {
942
+ for (A = 0; A < V.length; A++) {
943
+ const n = V[A];
944
+ if (n && n.active !== !1) {
945
+ if (process.env.NODE_ENV !== "production" && t(n))
946
+ continue;
947
+ G(
948
+ n,
949
+ n.i,
950
+ n.i ? 15 : 14
951
+ );
952
+ }
953
+ }
954
+ } finally {
955
+ A = 0, V.length = 0, pr(e), Oe = !1, nt = null, (V.length || te.length) && Bt(e);
956
+ }
957
+ }
958
+ function Jt(e, t) {
959
+ if (!e.has(t))
960
+ e.set(t, 1);
961
+ else {
962
+ const n = e.get(t);
963
+ if (n > ur) {
964
+ const r = t.i, s = r && an(r.type);
965
+ return tt(
966
+ `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.`,
967
+ null,
968
+ 10
969
+ ), !0;
970
+ } else
971
+ e.set(t, n + 1);
972
+ }
973
+ }
974
+ const Me = /* @__PURE__ */ new Map();
975
+ process.env.NODE_ENV !== "production" && (vt().__VUE_HMR_RUNTIME__ = {
976
+ createRecord: Fe(_r),
977
+ rerender: Fe(mr),
978
+ reload: Fe(gr)
979
+ });
980
+ const ye = /* @__PURE__ */ new Map();
981
+ function _r(e, t) {
982
+ return ye.has(e) ? !1 : (ye.set(e, {
983
+ initialDef: Se(t),
984
+ instances: /* @__PURE__ */ new Set()
985
+ }), !0);
986
+ }
987
+ function Se(e) {
988
+ return fn(e) ? e.__vccOpts : e;
989
+ }
990
+ function mr(e, t) {
991
+ const n = ye.get(e);
992
+ n && (n.initialDef.render = t, [...n.instances].forEach((r) => {
993
+ t && (r.render = t, Se(r.type).render = t), r.renderCache = [], r.effect.dirty = !0, r.update();
994
+ }));
995
+ }
996
+ function gr(e, t) {
997
+ const n = ye.get(e);
998
+ if (!n) return;
999
+ t = Se(t), pt(n.initialDef, t);
1000
+ const r = [...n.instances];
1001
+ for (let s = 0; s < r.length; s++) {
1002
+ const o = r[s], i = Se(o.type);
1003
+ let c = Me.get(i);
1004
+ c || (i !== n.initialDef && pt(i, t), Me.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(t.styles), c.delete(o)) : o.parent ? (o.parent.effect.dirty = !0, rt(() => {
1005
+ o.parent.update(), c.delete(o);
1006
+ })) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1007
+ "[HMR] Root or manually mounted instance modified. Full reload required."
1008
+ );
1009
+ }
1010
+ Wt(() => {
1011
+ Me.clear();
1012
+ });
1013
+ }
1014
+ function pt(e, t) {
1015
+ R(e, t);
1016
+ for (const n in e)
1017
+ n !== "__file" && !(n in t) && delete e[n];
1018
+ }
1019
+ function Fe(e) {
1020
+ return (t, n) => {
1021
+ try {
1022
+ return e(t, n);
1023
+ } catch (r) {
1024
+ console.error(r), console.warn(
1025
+ "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
1026
+ );
1027
+ }
1028
+ };
1029
+ }
1030
+ let Z, Ee = [];
1031
+ function qt(e, t) {
1032
+ var n, r;
1033
+ Z = e, Z ? (Z.enabled = !0, Ee.forEach(({ event: s, args: o }) => Z.emit(s, ...o)), Ee = []) : /* 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
1034
+ window.HTMLElement && // also exclude jsdom
1035
+ // eslint-disable-next-line no-restricted-syntax
1036
+ !((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
1037
+ qt(o, t);
1038
+ }), setTimeout(() => {
1039
+ Z || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Ee = []);
1040
+ }, 3e3)) : Ee = [];
1041
+ }
1042
+ let $ = null, Er = null;
1043
+ function Yt(e, t) {
1044
+ e.shapeFlag & 6 && e.component ? Yt(e.component.subTree, t) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1045
+ }
1046
+ /*! #__NO_SIDE_EFFECTS__ */
1047
+ // @__NO_SIDE_EFFECTS__
1048
+ function Gt(e, t) {
1049
+ return w(e) ? (
1050
+ // #8326: extend call and options.name access are considered side-effects
1051
+ // by Rollup, so we have to wrap it in a pure-annotated IIFE.
1052
+ R({ name: e.name }, t, { setup: e })
1053
+ ) : e;
1054
+ }
1055
+ function wr(e, t, n = X, r = !1) {
1056
+ if (n) {
1057
+ const s = n[e] || (n[e] = []), o = t.__weh || (t.__weh = (...i) => {
1058
+ ae();
1059
+ const c = ln(n), a = re(t, n, e, i);
1060
+ return c(), ue(), a;
1061
+ });
1062
+ return r ? s.unshift(o) : s.push(o), o;
1063
+ } else if (process.env.NODE_ENV !== "production") {
1064
+ const s = vn(et[e].replace(/ hook$/, ""));
1065
+ m(
1066
+ `${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
1067
+ );
1068
+ }
1069
+ }
1070
+ const Qt = (e) => (t, n = X) => {
1071
+ (!Ce || e === "sp") && wr(e, (...r) => t(...r), n);
1072
+ }, Xt = Qt("m"), Zt = Qt("um"), Nr = Symbol.for("v-ndc"), We = (e) => e ? Gr(e) ? Qr(e) : We(e.parent) : null, se = (
1073
+ // Move PURE marker to new line to workaround compiler discarding it
1074
+ // due to type annotation
1075
+ /* @__PURE__ */ R(/* @__PURE__ */ Object.create(null), {
1076
+ $: (e) => e,
1077
+ $el: (e) => e.vnode.el,
1078
+ $data: (e) => e.data,
1079
+ $props: (e) => process.env.NODE_ENV !== "production" ? ge(e.props) : e.props,
1080
+ $attrs: (e) => process.env.NODE_ENV !== "production" ? ge(e.attrs) : e.attrs,
1081
+ $slots: (e) => process.env.NODE_ENV !== "production" ? ge(e.slots) : e.slots,
1082
+ $refs: (e) => process.env.NODE_ENV !== "production" ? ge(e.refs) : e.refs,
1083
+ $parent: (e) => We(e.parent),
1084
+ $root: (e) => We(e.root),
1085
+ $emit: (e) => e.emit,
1086
+ $options: (e) => Or(e),
1087
+ $forceUpdate: (e) => e.f || (e.f = () => {
1088
+ e.effect.dirty = !0, rt(e.update);
1089
+ }),
1090
+ $nextTick: (e) => e.n || (e.n = fr.bind(e.proxy)),
1091
+ $watch: (e) => Tr.bind(e)
1092
+ })
1093
+ ), br = (e) => e === "_" || e === "$", Ae = (e, t) => e !== I && !e.__isScriptSetup && E(e, t), vr = {
1094
+ get({ _: e }, t) {
1095
+ if (t === "__v_skip")
1096
+ return !0;
1097
+ const { ctx: n, setupState: r, data: s, props: o, accessCache: i, type: c, appContext: a } = e;
1098
+ if (process.env.NODE_ENV !== "production" && t === "__isVue")
1099
+ return !0;
1100
+ let u;
1101
+ if (t[0] !== "$") {
1102
+ const g = i[t];
1103
+ if (g !== void 0)
1104
+ switch (g) {
1105
+ case 1:
1106
+ return r[t];
1107
+ case 2:
1108
+ return s[t];
1109
+ case 4:
1110
+ return n[t];
1111
+ case 3:
1112
+ return o[t];
1113
+ }
1114
+ else {
1115
+ if (Ae(r, t))
1116
+ return i[t] = 1, r[t];
1117
+ if (s !== I && E(s, t))
1118
+ return i[t] = 2, s[t];
1119
+ if (
1120
+ // only cache other properties when instance has declared (thus stable)
1121
+ // props
1122
+ (u = e.propsOptions[0]) && E(u, t)
1123
+ )
1124
+ return i[t] = 3, o[t];
1125
+ if (n !== I && E(n, t))
1126
+ return i[t] = 4, n[t];
1127
+ i[t] = 0;
1128
+ }
1129
+ }
1130
+ const h = se[t];
1131
+ let l, d;
1132
+ if (h)
1133
+ return t === "$attrs" ? (b(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && b(e, "get", t), h(e);
1134
+ if (
1135
+ // css module (injected by vue-loader)
1136
+ (l = c.__cssModules) && (l = l[t])
1137
+ )
1138
+ return l;
1139
+ if (n !== I && E(n, t))
1140
+ return i[t] = 4, n[t];
1141
+ if (
1142
+ // global properties
1143
+ d = a.config.globalProperties, E(d, t)
1144
+ )
1145
+ return d[t];
1146
+ process.env.NODE_ENV !== "production" && $ && (!D(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
1147
+ // to infinite warning loop
1148
+ t.indexOf("__v") !== 0) && (s !== I && br(t[0]) && E(s, t) ? m(
1149
+ `Property ${JSON.stringify(
1150
+ t
1151
+ )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
1152
+ ) : e === $ && m(
1153
+ `Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
1154
+ ));
1155
+ },
1156
+ set({ _: e }, t, n) {
1157
+ const { data: r, setupState: s, ctx: o } = e;
1158
+ return Ae(s, t) ? (s[t] = n, !0) : process.env.NODE_ENV !== "production" && s.__isScriptSetup && E(s, t) ? (m(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : r !== I && E(r, t) ? (r[t] = n, !0) : E(e.props, t) ? (process.env.NODE_ENV !== "production" && m(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && m(
1159
+ `Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
1160
+ ), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(o, t, {
1161
+ enumerable: !0,
1162
+ configurable: !0,
1163
+ value: n
1164
+ }) : o[t] = n, !0);
1165
+ },
1166
+ has({
1167
+ _: { data: e, setupState: t, accessCache: n, ctx: r, appContext: s, propsOptions: o }
1168
+ }, i) {
1169
+ let c;
1170
+ return !!n[i] || e !== I && E(e, i) || Ae(t, i) || (c = o[0]) && E(c, i) || E(r, i) || E(se, i) || E(s.config.globalProperties, i);
1171
+ },
1172
+ defineProperty(e, t, n) {
1173
+ return n.get != null ? e._.accessCache[t] = 0 : E(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
1174
+ }
1175
+ };
1176
+ process.env.NODE_ENV !== "production" && (vr.ownKeys = (e) => (m(
1177
+ "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1178
+ ), Reflect.ownKeys(e)));
1179
+ function ht(e) {
1180
+ return _(e) ? e.reduce(
1181
+ (t, n) => (t[n] = null, t),
1182
+ {}
1183
+ ) : e;
1184
+ }
1185
+ function Or(e) {
1186
+ const t = e.type, { mixins: n, extends: r } = t, {
1187
+ mixins: s,
1188
+ optionsCache: o,
1189
+ config: { optionMergeStrategies: i }
1190
+ } = e.appContext, c = o.get(t);
1191
+ let a;
1192
+ return c ? a = c : !s.length && !n && !r ? a = t : (a = {}, s.length && s.forEach(
1193
+ (u) => Re(a, u, i, !0)
1194
+ ), Re(a, t, i)), O(t) && o.set(t, a), a;
1195
+ }
1196
+ function Re(e, t, n, r = !1) {
1197
+ const { mixins: s, extends: o } = t;
1198
+ o && Re(e, o, n, !0), s && s.forEach(
1199
+ (i) => Re(e, i, n, !0)
1200
+ );
1201
+ for (const i in t)
1202
+ if (r && i === "expose")
1203
+ process.env.NODE_ENV !== "production" && m(
1204
+ '"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
1205
+ );
1206
+ else {
1207
+ const c = yr[i] || n && n[i];
1208
+ e[i] = c ? c(e[i], t[i]) : t[i];
1209
+ }
1210
+ return e;
1211
+ }
1212
+ const yr = {
1213
+ data: _t,
1214
+ props: gt,
1215
+ emits: gt,
1216
+ // objects
1217
+ methods: ne,
1218
+ computed: ne,
1219
+ // lifecycle
1220
+ beforeCreate: v,
1221
+ created: v,
1222
+ beforeMount: v,
1223
+ mounted: v,
1224
+ beforeUpdate: v,
1225
+ updated: v,
1226
+ beforeDestroy: v,
1227
+ beforeUnmount: v,
1228
+ destroyed: v,
1229
+ unmounted: v,
1230
+ activated: v,
1231
+ deactivated: v,
1232
+ errorCaptured: v,
1233
+ serverPrefetch: v,
1234
+ // assets
1235
+ components: ne,
1236
+ directives: ne,
1237
+ // watch
1238
+ watch: Rr,
1239
+ // provide / inject
1240
+ provide: _t,
1241
+ inject: Sr
1242
+ };
1243
+ function _t(e, t) {
1244
+ return t ? e ? function() {
1245
+ return R(
1246
+ w(e) ? e.call(this, this) : e,
1247
+ w(t) ? t.call(this, this) : t
1248
+ );
1249
+ } : t : e;
1250
+ }
1251
+ function Sr(e, t) {
1252
+ return ne(mt(e), mt(t));
1253
+ }
1254
+ function mt(e) {
1255
+ if (_(e)) {
1256
+ const t = {};
1257
+ for (let n = 0; n < e.length; n++)
1258
+ t[e[n]] = e[n];
1259
+ return t;
1260
+ }
1261
+ return e;
1262
+ }
1263
+ function v(e, t) {
1264
+ return e ? [...new Set([].concat(e, t))] : t;
1265
+ }
1266
+ function ne(e, t) {
1267
+ return e ? R(/* @__PURE__ */ Object.create(null), e, t) : t;
1268
+ }
1269
+ function gt(e, t) {
1270
+ return e ? _(e) && _(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : R(
1271
+ /* @__PURE__ */ Object.create(null),
1272
+ ht(e),
1273
+ ht(t ?? {})
1274
+ ) : t;
1275
+ }
1276
+ function Rr(e, t) {
1277
+ if (!e) return t;
1278
+ if (!t) return e;
1279
+ const n = R(/* @__PURE__ */ Object.create(null), e);
1280
+ for (const r in t)
1281
+ n[r] = v(e[r], t[r]);
1282
+ return n;
1283
+ }
1284
+ let Vr = null;
1285
+ function xr(e, t, n = !1) {
1286
+ const r = X || $;
1287
+ if (r || Vr) {
1288
+ const s = r ? r.parent == null ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
1289
+ if (s && e in s)
1290
+ return s[e];
1291
+ if (arguments.length > 1)
1292
+ return n && w(t) ? t.call(r && r.proxy) : t;
1293
+ process.env.NODE_ENV !== "production" && m(`injection "${String(e)}" not found.`);
1294
+ } else process.env.NODE_ENV !== "production" && m("inject() can only be used inside setup() or functional components.");
1295
+ }
1296
+ const Dr = {}, kt = (e) => Object.getPrototypeOf(e) === Dr, Cr = (e) => e.__isTeleport, Et = Ar, Ir = Symbol.for("v-scx"), $r = () => {
1297
+ {
1298
+ const e = xr(Ir);
1299
+ return e || process.env.NODE_ENV !== "production" && m(
1300
+ "Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
1301
+ ), e;
1302
+ }
1303
+ }, we = {};
1304
+ function Pr(e, t, {
1305
+ immediate: n,
1306
+ deep: r,
1307
+ flush: s,
1308
+ once: o,
1309
+ onTrack: i,
1310
+ onTrigger: c
1311
+ } = I) {
1312
+ if (t && o) {
1313
+ const p = t;
1314
+ t = (...Pe) => {
1315
+ p(...Pe), $e();
1316
+ };
1317
+ }
1318
+ process.env.NODE_ENV !== "production" && r !== void 0 && typeof r == "number" && m(
1319
+ 'watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'
1320
+ ), process.env.NODE_ENV !== "production" && !t && (n !== void 0 && m(
1321
+ 'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
1322
+ ), r !== void 0 && m(
1323
+ 'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
1324
+ ), o !== void 0 && m(
1325
+ 'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
1326
+ ));
1327
+ const a = (p) => {
1328
+ m(
1329
+ "Invalid watch source: ",
1330
+ p,
1331
+ "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
1332
+ );
1333
+ }, u = X, h = (p) => r === !0 ? p : (
1334
+ // for deep: false, only traverse root-level properties
1335
+ W(p, r === !1 ? 1 : void 0)
1336
+ );
1337
+ let l, d = !1, g = !1;
1338
+ if (S(e) ? (l = () => e.value, d = P(e)) : ee(e) ? (l = () => h(e), d = !0) : _(e) ? (g = !0, d = e.some((p) => ee(p) || P(p)), l = () => e.map((p) => {
1339
+ if (S(p))
1340
+ return p.value;
1341
+ if (ee(p))
1342
+ return h(p);
1343
+ if (w(p))
1344
+ return G(p, u, 2);
1345
+ process.env.NODE_ENV !== "production" && a(p);
1346
+ })) : w(e) ? t ? l = () => G(e, u, 2) : l = () => (N && N(), re(
1347
+ e,
1348
+ u,
1349
+ 3,
1350
+ [C]
1351
+ )) : (l = B, process.env.NODE_ENV !== "production" && a(e)), t && r) {
1352
+ const p = l;
1353
+ l = () => W(p());
1354
+ }
1355
+ let N, C = (p) => {
1356
+ N = y.onStop = () => {
1357
+ G(p, u, 4), N = y.onStop = void 0;
1358
+ };
1359
+ }, Ie;
1360
+ if (Ce)
1361
+ if (C = B, t ? n && re(t, u, 3, [
1362
+ l(),
1363
+ g ? [] : void 0,
1364
+ C
1365
+ ]) : l(), s === "sync") {
1366
+ const p = $r();
1367
+ Ie = p.__watcherHandles || (p.__watcherHandles = []);
1368
+ } else
1369
+ return B;
1370
+ let U = g ? new Array(e.length).fill(we) : we;
1371
+ const K = () => {
1372
+ if (!(!y.active || !y.dirty))
1373
+ if (t) {
1374
+ const p = y.run();
1375
+ (r || d || (g ? p.some((Pe, pn) => H(Pe, U[pn])) : H(p, U))) && (N && N(), re(t, u, 3, [
1376
+ p,
1377
+ // pass undefined as the old value when it's changed for the first time
1378
+ U === we ? void 0 : g && U[0] === we ? [] : U,
1379
+ C
1380
+ ]), U = p);
1381
+ } else
1382
+ y.run();
1383
+ };
1384
+ K.allowRecurse = !!t;
1385
+ let fe;
1386
+ s === "sync" ? fe = K : s === "post" ? fe = () => Et(K, u && u.suspense) : (K.pre = !0, u && (K.id = u.uid), fe = () => rt(K));
1387
+ const y = new Ot(l, B, fe), $e = () => {
1388
+ y.stop();
1389
+ };
1390
+ return process.env.NODE_ENV !== "production" && (y.onTrack = i, y.onTrigger = c), t ? n ? K() : U = y.run() : s === "post" ? Et(
1391
+ y.run.bind(y),
1392
+ u && u.suspense
1393
+ ) : y.run(), Ie && Ie.push($e), $e;
1394
+ }
1395
+ function Tr(e, t, n) {
1396
+ const r = this.proxy, s = D(e) ? e.includes(".") ? Mr(r, e) : () => r[e] : e.bind(r, r);
1397
+ let o;
1398
+ w(t) ? o = t : (o = t.handler, n = t);
1399
+ const i = ln(this), c = Pr(s, o.bind(r), n);
1400
+ return i(), c;
1401
+ }
1402
+ function Mr(e, t) {
1403
+ const n = t.split(".");
1404
+ return () => {
1405
+ let r = e;
1406
+ for (let s = 0; s < n.length && r; s++)
1407
+ r = r[n[s]];
1408
+ return r;
1409
+ };
1410
+ }
1411
+ function W(e, t = 1 / 0, n) {
1412
+ if (t <= 0 || !O(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
1413
+ return e;
1414
+ if (n.add(e), t--, S(e))
1415
+ W(e.value, t, n);
1416
+ else if (_(e))
1417
+ for (let r = 0; r < e.length; r++)
1418
+ W(e[r], t, n);
1419
+ else if (En(e) || k(e))
1420
+ e.forEach((r) => {
1421
+ W(r, t, n);
1422
+ });
1423
+ else if (bn(e)) {
1424
+ for (const r in e)
1425
+ W(e[r], t, n);
1426
+ for (const r of Object.getOwnPropertySymbols(e))
1427
+ Object.prototype.propertyIsEnumerable.call(e, r) && W(e[r], t, n);
1428
+ }
1429
+ return e;
1430
+ }
1431
+ const Fr = (e) => e.__isSuspense;
1432
+ function Ar(e, t) {
1433
+ t && t.pendingBranch ? _(e) ? t.effects.push(...e) : t.effects.push(e) : Wt(e);
1434
+ }
1435
+ const en = Symbol.for("v-fgt"), Lr = Symbol.for("v-txt"), jr = Symbol.for("v-cmt"), be = [];
1436
+ let x = null;
1437
+ function tn(e = !1) {
1438
+ be.push(x = e ? null : []);
1439
+ }
1440
+ function Hr() {
1441
+ be.pop(), x = be[be.length - 1] || null;
1442
+ }
1443
+ function Ur(e) {
1444
+ return e.dynamicChildren = x || _n, Hr(), x && x.push(e), e;
1445
+ }
1446
+ function nn(e, t, n, r, s, o) {
1447
+ return Ur(
1448
+ sn(
1449
+ e,
1450
+ t,
1451
+ n,
1452
+ r,
1453
+ s,
1454
+ o,
1455
+ !0
1456
+ )
1457
+ );
1458
+ }
1459
+ function Kr(e) {
1460
+ return e ? e.__v_isVNode === !0 : !1;
1461
+ }
1462
+ const zr = (...e) => on(
1463
+ ...e
1464
+ ), rn = ({ key: e }) => e ?? null, ve = ({
1465
+ ref: e,
1466
+ ref_key: t,
1467
+ ref_for: n
1468
+ }) => (typeof e == "number" && (e = "" + e), e != null ? D(e) || S(e) || w(e) ? { i: $, r: e, k: t, f: !!n } : e : null);
1469
+ function sn(e, t = null, n = null, r = 0, s = null, o = e === en ? 0 : 1, i = !1, c = !1) {
1470
+ const a = {
1471
+ __v_isVNode: !0,
1472
+ __v_skip: !0,
1473
+ type: e,
1474
+ props: t,
1475
+ key: t && rn(t),
1476
+ ref: t && ve(t),
1477
+ scopeId: Er,
1478
+ slotScopeIds: null,
1479
+ children: n,
1480
+ component: null,
1481
+ suspense: null,
1482
+ ssContent: null,
1483
+ ssFallback: null,
1484
+ dirs: null,
1485
+ transition: null,
1486
+ el: null,
1487
+ anchor: null,
1488
+ target: null,
1489
+ targetStart: null,
1490
+ targetAnchor: null,
1491
+ staticCount: 0,
1492
+ shapeFlag: o,
1493
+ patchFlag: r,
1494
+ dynamicProps: s,
1495
+ dynamicChildren: null,
1496
+ appContext: null,
1497
+ ctx: $
1498
+ };
1499
+ return c ? (st(a, n), o & 128 && e.normalize(a)) : n && (a.shapeFlag |= D(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && m("VNode created with invalid key (NaN). VNode type:", a.type), // avoid a block node from tracking itself
1500
+ !i && // has current parent block
1501
+ x && // presence of a patch flag indicates this node needs patching on updates.
1502
+ // component nodes also should always be patched, because even if the
1503
+ // component doesn't need to update, it needs to persist the instance on to
1504
+ // the next vnode so that it can be properly unmounted later.
1505
+ (a.patchFlag > 0 || o & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
1506
+ // vnode should not be considered dynamic due to handler caching.
1507
+ a.patchFlag !== 32 && x.push(a), a;
1508
+ }
1509
+ const Wr = process.env.NODE_ENV !== "production" ? zr : on;
1510
+ function on(e, t = null, n = null, r = 0, s = null, o = !1) {
1511
+ if ((!e || e === Nr) && (process.env.NODE_ENV !== "production" && !e && m(`Invalid vnode type when creating vnode: ${e}.`), e = jr), Kr(e)) {
1512
+ const c = Ve(
1513
+ e,
1514
+ t,
1515
+ !0
1516
+ /* mergeRef: true */
1517
+ );
1518
+ return n && st(c, n), !o && x && (c.shapeFlag & 6 ? x[x.indexOf(e)] = c : x.push(c)), c.patchFlag = -2, c;
1519
+ }
1520
+ if (fn(e) && (e = e.__vccOpts), t) {
1521
+ t = Br(t);
1522
+ let { class: c, style: a } = t;
1523
+ c && !D(c) && (t.class = le(c)), O(a) && (Ke(a) && !_(a) && (a = R({}, a)), t.style = qe(a));
1524
+ }
1525
+ const i = D(e) ? 1 : Fr(e) ? 128 : Cr(e) ? 64 : O(e) ? 4 : w(e) ? 2 : 0;
1526
+ return process.env.NODE_ENV !== "production" && i & 4 && Ke(e) && (e = f(e), m(
1527
+ "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`.",
1528
+ `
1529
+ Component that was made reactive: `,
1530
+ e
1531
+ )), sn(
1532
+ e,
1533
+ t,
1534
+ n,
1535
+ r,
1536
+ s,
1537
+ i,
1538
+ o,
1539
+ !0
1540
+ );
1541
+ }
1542
+ function Br(e) {
1543
+ return e ? Ke(e) || kt(e) ? R({}, e) : e : null;
1544
+ }
1545
+ function Ve(e, t, n = !1, r = !1) {
1546
+ const { props: s, ref: o, patchFlag: i, children: c, transition: a } = e, u = t ? qr(s || {}, t) : s, h = {
1547
+ __v_isVNode: !0,
1548
+ __v_skip: !0,
1549
+ type: e.type,
1550
+ props: u,
1551
+ key: u && rn(u),
1552
+ ref: t && t.ref ? (
1553
+ // #2078 in the case of <component :is="vnode" ref="extra"/>
1554
+ // if the vnode itself already has a ref, cloneVNode will need to merge
1555
+ // the refs so the single vnode can be set on multiple refs
1556
+ n && o ? _(o) ? o.concat(ve(t)) : [o, ve(t)] : ve(t)
1557
+ ) : o,
1558
+ scopeId: e.scopeId,
1559
+ slotScopeIds: e.slotScopeIds,
1560
+ children: process.env.NODE_ENV !== "production" && i === -1 && _(c) ? c.map(cn) : c,
1561
+ target: e.target,
1562
+ targetStart: e.targetStart,
1563
+ targetAnchor: e.targetAnchor,
1564
+ staticCount: e.staticCount,
1565
+ shapeFlag: e.shapeFlag,
1566
+ // if the vnode is cloned with extra props, we can no longer assume its
1567
+ // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1568
+ // note: preserve flag for fragments since they use the flag for children
1569
+ // fast paths only.
1570
+ patchFlag: t && e.type !== en ? i === -1 ? 16 : i | 16 : i,
1571
+ dynamicProps: e.dynamicProps,
1572
+ dynamicChildren: e.dynamicChildren,
1573
+ appContext: e.appContext,
1574
+ dirs: e.dirs,
1575
+ transition: a,
1576
+ // These should technically only be non-null on mounted VNodes. However,
1577
+ // they *should* be copied for kept-alive vnodes. So we just always copy
1578
+ // them since them being non-null during a mount doesn't affect the logic as
1579
+ // they will simply be overwritten.
1580
+ component: e.component,
1581
+ suspense: e.suspense,
1582
+ ssContent: e.ssContent && Ve(e.ssContent),
1583
+ ssFallback: e.ssFallback && Ve(e.ssFallback),
1584
+ el: e.el,
1585
+ anchor: e.anchor,
1586
+ ctx: e.ctx,
1587
+ ce: e.ce
1588
+ };
1589
+ return a && r && Yt(
1590
+ h,
1591
+ a.clone(h)
1592
+ ), h;
1593
+ }
1594
+ function cn(e) {
1595
+ const t = Ve(e);
1596
+ return _(e.children) && (t.children = e.children.map(cn)), t;
1597
+ }
1598
+ function Jr(e = " ", t = 0) {
1599
+ return Wr(Lr, null, e, t);
1600
+ }
1601
+ function st(e, t) {
1602
+ let n = 0;
1603
+ const { shapeFlag: r } = e;
1604
+ if (t == null)
1605
+ t = null;
1606
+ else if (_(t))
1607
+ n = 16;
1608
+ else if (typeof t == "object")
1609
+ if (r & 65) {
1610
+ const s = t.default;
1611
+ s && (s._c && (s._d = !1), st(e, s()), s._c && (s._d = !0));
1612
+ return;
1613
+ } else {
1614
+ n = 32;
1615
+ const s = t._;
1616
+ !s && !kt(t) ? t._ctx = $ : s === 3 && $ && ($.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1617
+ }
1618
+ else w(t) ? (t = { default: t, _ctx: $ }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [Jr(t)]) : n = 8);
1619
+ e.children = t, e.shapeFlag |= n;
1620
+ }
1621
+ function qr(...e) {
1622
+ const t = {};
1623
+ for (let n = 0; n < e.length; n++) {
1624
+ const r = e[n];
1625
+ for (const s in r)
1626
+ if (s === "class")
1627
+ t.class !== r.class && (t.class = le([t.class, r.class]));
1628
+ else if (s === "style")
1629
+ t.style = qe([t.style, r.style]);
1630
+ else if (mn(s)) {
1631
+ const o = t[s], i = r[s];
1632
+ i && o !== i && !(_(o) && o.includes(i)) && (t[s] = o ? [].concat(o, i) : i);
1633
+ } else s !== "" && (t[s] = r[s]);
1634
+ }
1635
+ return t;
1636
+ }
1637
+ let X = null;
1638
+ const Yr = () => X || $;
1639
+ let Be;
1640
+ {
1641
+ const e = vt(), t = (n, r) => {
1642
+ let s;
1643
+ return (s = e[n]) || (s = e[n] = []), s.push(r), (o) => {
1644
+ s.length > 1 ? s.forEach((i) => i(o)) : s[0](o);
1645
+ };
1646
+ };
1647
+ Be = t(
1648
+ "__VUE_INSTANCE_SETTERS__",
1649
+ (n) => X = n
1650
+ ), t(
1651
+ "__VUE_SSR_SETTERS__",
1652
+ (n) => Ce = n
1653
+ );
1654
+ }
1655
+ const ln = (e) => {
1656
+ const t = X;
1657
+ return Be(e), e.scope.on(), () => {
1658
+ e.scope.off(), Be(t);
1659
+ };
1660
+ };
1661
+ function Gr(e) {
1662
+ return e.vnode.shapeFlag & 4;
1663
+ }
1664
+ let Ce = !1;
1665
+ process.env.NODE_ENV;
1666
+ function Qr(e) {
1667
+ return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(nr(Gn(e.exposed)), {
1668
+ get(t, n) {
1669
+ if (n in t)
1670
+ return t[n];
1671
+ if (n in se)
1672
+ return se[n](e);
1673
+ },
1674
+ has(t, n) {
1675
+ return n in t || n in se;
1676
+ }
1677
+ })) : e.proxy;
1678
+ }
1679
+ const Xr = /(?:^|[-_])(\w)/g, Zr = (e) => e.replace(Xr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1680
+ function an(e, t = !0) {
1681
+ return w(e) ? e.displayName || e.name : e.name || t && e.__name;
1682
+ }
1683
+ function un(e, t, n = !1) {
1684
+ let r = an(t);
1685
+ if (!r && t.__file) {
1686
+ const s = t.__file.match(/([^/\\]+)\.\w+$/);
1687
+ s && (r = s[1]);
1688
+ }
1689
+ if (!r && e && e.parent) {
1690
+ const s = (o) => {
1691
+ for (const i in o)
1692
+ if (o[i] === t)
1693
+ return i;
1694
+ };
1695
+ r = s(
1696
+ e.components || e.parent.type.components
1697
+ ) || s(e.appContext.components);
1698
+ }
1699
+ return r ? Zr(r) : n ? "App" : "Anonymous";
1700
+ }
1701
+ function fn(e) {
1702
+ return w(e) && "__vccOpts" in e;
1703
+ }
1704
+ const dn = (e, t) => {
1705
+ const n = Xn(e, t, Ce);
1706
+ if (process.env.NODE_ENV !== "production") {
1707
+ const r = Yr();
1708
+ r && r.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
1709
+ }
1710
+ return n;
1711
+ };
1712
+ function kr() {
1713
+ if (process.env.NODE_ENV === "production" || typeof window > "u")
1714
+ return;
1715
+ const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
1716
+ __vue_custom_formatter: !0,
1717
+ header(l) {
1718
+ return O(l) ? l.__isVue ? ["div", e, "VueInstance"] : S(l) ? [
1719
+ "div",
1720
+ {},
1721
+ ["span", e, h(l)],
1722
+ "<",
1723
+ c(l.value),
1724
+ ">"
1725
+ ] : ee(l) ? [
1726
+ "div",
1727
+ {},
1728
+ ["span", e, P(l) ? "ShallowReactive" : "Reactive"],
1729
+ "<",
1730
+ c(l),
1731
+ `>${T(l) ? " (readonly)" : ""}`
1732
+ ] : T(l) ? [
1733
+ "div",
1734
+ {},
1735
+ ["span", e, P(l) ? "ShallowReadonly" : "Readonly"],
1736
+ "<",
1737
+ c(l),
1738
+ ">"
1739
+ ] : null : null;
1740
+ },
1741
+ hasBody(l) {
1742
+ return l && l.__isVue;
1743
+ },
1744
+ body(l) {
1745
+ if (l && l.__isVue)
1746
+ return [
1747
+ "div",
1748
+ {},
1749
+ ...o(l.$)
1750
+ ];
1751
+ }
1752
+ };
1753
+ function o(l) {
1754
+ const d = [];
1755
+ l.type.props && l.props && d.push(i("props", f(l.props))), l.setupState !== I && d.push(i("setup", l.setupState)), l.data !== I && d.push(i("data", f(l.data)));
1756
+ const g = a(l, "computed");
1757
+ g && d.push(i("computed", g));
1758
+ const N = a(l, "inject");
1759
+ return N && d.push(i("injected", N)), d.push([
1760
+ "div",
1761
+ {},
1762
+ [
1763
+ "span",
1764
+ {
1765
+ style: r.style + ";opacity:0.66"
1766
+ },
1767
+ "$ (internal): "
1768
+ ],
1769
+ ["object", { object: l }]
1770
+ ]), d;
1771
+ }
1772
+ function i(l, d) {
1773
+ return d = R({}, d), Object.keys(d).length ? [
1774
+ "div",
1775
+ { style: "line-height:1.25em;margin-bottom:0.6em" },
1776
+ [
1777
+ "div",
1778
+ {
1779
+ style: "color:#476582"
1780
+ },
1781
+ l
1782
+ ],
1783
+ [
1784
+ "div",
1785
+ {
1786
+ style: "padding-left:1.25em"
1787
+ },
1788
+ ...Object.keys(d).map((g) => [
1789
+ "div",
1790
+ {},
1791
+ ["span", r, g + ": "],
1792
+ c(d[g], !1)
1793
+ ])
1794
+ ]
1795
+ ] : ["span", {}];
1796
+ }
1797
+ function c(l, d = !0) {
1798
+ return typeof l == "number" ? ["span", t, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] : O(l) ? ["object", { object: d ? f(l) : l }] : ["span", n, String(l)];
1799
+ }
1800
+ function a(l, d) {
1801
+ const g = l.type;
1802
+ if (w(g))
1803
+ return;
1804
+ const N = {};
1805
+ for (const C in l.ctx)
1806
+ u(g, C, d) && (N[C] = l.ctx[C]);
1807
+ return N;
1808
+ }
1809
+ function u(l, d, g) {
1810
+ const N = l[g];
1811
+ if (_(N) && N.includes(d) || O(N) && d in N || l.extends && u(l.extends, d, g) || l.mixins && l.mixins.some((C) => u(C, d, g)))
1812
+ return !0;
1813
+ }
1814
+ function h(l) {
1815
+ return P(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
1816
+ }
1817
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
1818
+ }
1819
+ process.env.NODE_ENV;
1820
+ process.env.NODE_ENV;
1821
+ process.env.NODE_ENV;
1822
+ /**
1823
+ * vue v3.4.38
1824
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
1825
+ * @license MIT
1826
+ **/
1827
+ function es() {
1828
+ kr();
1829
+ }
1830
+ process.env.NODE_ENV !== "production" && es();
1831
+ const ts = ["src"], rs = /* @__PURE__ */ Gt({
1832
+ __name: "direct-template",
1833
+ props: {
1834
+ className: {},
1835
+ host: {},
1836
+ token: {},
1837
+ externalId: {},
1838
+ css: {},
1839
+ cssVars: {},
1840
+ email: {},
1841
+ lockEmail: { type: Boolean },
1842
+ name: {},
1843
+ lockName: { type: Boolean },
1844
+ onDocumentReady: { type: Function },
1845
+ onDocumentCompleted: { type: Function },
1846
+ onDocumentError: { type: Function },
1847
+ onFieldSigned: { type: Function },
1848
+ onFieldUnsigned: { type: Function }
1849
+ },
1850
+ setup(e) {
1851
+ const t = e, n = Ht();
1852
+ Xt(() => {
1853
+ window.addEventListener("message", s);
1854
+ }), Zt(() => {
1855
+ window.removeEventListener("message", s);
1856
+ });
1857
+ const r = dn(() => {
1858
+ const o = t.host || "https://app.documenso.com", i = btoa(
1859
+ JSON.stringify({
1860
+ name: t.name,
1861
+ lockName: t.lockName,
1862
+ email: t.email,
1863
+ lockEmail: t.lockEmail,
1864
+ css: t.css
1865
+ })
1866
+ ), c = new URL(`/embed/direct/${t.token}`, o);
1867
+ return t.externalId && c.searchParams.set("externalId", t.externalId), `${c}#${i}`;
1868
+ });
1869
+ function s(o) {
1870
+ var i, c, a, u, h, l;
1871
+ if (((i = n.value) == null ? void 0 : i.contentWindow) === o.source)
1872
+ switch (o.data.action) {
1873
+ case "document-ready":
1874
+ (c = t.onDocumentReady) == null || c.call(t);
1875
+ break;
1876
+ case "document-completed":
1877
+ (a = t.onDocumentCompleted) == null || a.call(t, o.data.data);
1878
+ break;
1879
+ case "document-error":
1880
+ (u = t.onDocumentError) == null || u.call(t, o.data.data);
1881
+ break;
1882
+ case "field-signed":
1883
+ (h = t.onFieldSigned) == null || h.call(t);
1884
+ break;
1885
+ case "field-unsigned":
1886
+ (l = t.onFieldUnsigned) == null || l.call(t);
1887
+ break;
1888
+ }
1889
+ }
1890
+ return (o, i) => (tn(), nn("iframe", {
1891
+ ref_key: "__iframe",
1892
+ ref: n,
1893
+ class: le(o.className),
1894
+ src: r.value
1895
+ }, null, 10, ts));
1896
+ }
1897
+ }), ns = ["src"], ss = /* @__PURE__ */ Gt({
1898
+ __name: "sign-document",
1899
+ props: {
1900
+ className: {},
1901
+ host: {},
1902
+ token: {},
1903
+ css: {},
1904
+ cssVars: {},
1905
+ name: {},
1906
+ lockName: { type: Boolean },
1907
+ onDocumentReady: { type: Function },
1908
+ onDocumentCompleted: { type: Function },
1909
+ onDocumentError: { type: Function }
1910
+ },
1911
+ setup(e) {
1912
+ const t = e, n = Ht();
1913
+ Xt(() => {
1914
+ window.addEventListener("message", s);
1915
+ }), Zt(() => {
1916
+ window.removeEventListener("message", s);
1917
+ });
1918
+ const r = dn(() => {
1919
+ const o = t.host || "https://app.documenso.com", i = btoa(
1920
+ JSON.stringify({
1921
+ name: t.name,
1922
+ lockName: t.lockName,
1923
+ css: t.css
1924
+ })
1925
+ );
1926
+ return `${new URL(`/embed/sign/${t.token}`, o)}#${i}`;
1927
+ });
1928
+ function s(o) {
1929
+ var i, c, a, u;
1930
+ if (((i = n.value) == null ? void 0 : i.contentWindow) === o.source)
1931
+ switch (o.data.action) {
1932
+ case "document-ready":
1933
+ (c = t.onDocumentReady) == null || c.call(t);
1934
+ break;
1935
+ case "document-completed":
1936
+ (a = t.onDocumentCompleted) == null || a.call(t, o.data.data);
1937
+ break;
1938
+ case "document-error":
1939
+ (u = t.onDocumentError) == null || u.call(t, o.data.data);
1940
+ break;
1941
+ }
1942
+ }
1943
+ return (o, i) => (tn(), nn("iframe", {
1944
+ ref_key: "__iframe",
1945
+ ref: n,
1946
+ class: le(o.className),
1947
+ src: r.value
1948
+ }, null, 10, ns));
1949
+ }
1950
+ });
1951
+ export {
1952
+ rs as EmbedDirectTemplate,
1953
+ ss as EmbedSignDocument
1954
+ };