@vouchfor/embeds 0.0.0-experiment.17b3fc9 → 0.0.0-experiment.18c17da

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/es/embeds.js CHANGED
@@ -1,17 +1,18 @@
1
- import { property as y, customElement as Yt } from "lit/decorators.js";
2
- import { ifDefined as mt } from "lit/directives/if-defined.js";
3
- import { createRef as Lt, ref as kt } from "lit/directives/ref.js";
4
- import { Task as Qt } from "@lit/task";
1
+ import { property as v, state as zt, customElement as he } from "lit/decorators.js";
2
+ import { ifDefined as ft } from "lit/directives/if-defined.js";
3
+ import { createRef as jt, ref as Bt } from "lit/directives/ref.js";
4
+ import { Task as ae } from "@lit/task";
5
+ import { v4 as P } from "uuid";
5
6
  import "@vouchfor/media-player";
6
7
  /**
7
8
  * @license
8
9
  * Copyright 2019 Google LLC
9
10
  * SPDX-License-Identifier: BSD-3-Clause
10
11
  */
11
- const F = window, _t = F.ShadowRoot && (F.ShadyCSS === void 0 || F.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Dt = Symbol(), gt = /* @__PURE__ */ new WeakMap();
12
- let te = class {
13
- constructor(t, e, i) {
14
- if (this._$cssResult$ = !0, i !== Dt)
12
+ const G = globalThis, _t = G.ShadowRoot && (G.ShadyCSS === void 0 || G.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Wt = Symbol(), gt = /* @__PURE__ */ new WeakMap();
13
+ let le = class {
14
+ constructor(t, e, s) {
15
+ if (this._$cssResult$ = !0, s !== Wt)
15
16
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
16
17
  this.cssText = t, this.t = e;
17
18
  }
@@ -19,8 +20,8 @@ let te = class {
19
20
  let t = this.o;
20
21
  const e = this.t;
21
22
  if (_t && t === void 0) {
22
- const i = e !== void 0 && e.length === 1;
23
- i && (t = gt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && gt.set(e, t));
23
+ const s = e !== void 0 && e.length === 1;
24
+ s && (t = gt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && gt.set(e, t));
24
25
  }
25
26
  return t;
26
27
  }
@@ -28,176 +29,201 @@ let te = class {
28
29
  return this.cssText;
29
30
  }
30
31
  };
31
- const ee = (n) => new te(typeof n == "string" ? n : n + "", void 0, Dt), ie = (n, t) => {
32
- _t ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
33
- const i = document.createElement("style"), s = F.litNonce;
34
- s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
35
- });
36
- }, ft = _t ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
32
+ const ce = (r) => new le(typeof r == "string" ? r : r + "", void 0, Wt), de = (r, t) => {
33
+ if (_t)
34
+ r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
35
+ else
36
+ for (const e of t) {
37
+ const s = document.createElement("style"), i = G.litNonce;
38
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
39
+ }
40
+ }, vt = _t ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
37
41
  let e = "";
38
- for (const i of t.cssRules)
39
- e += i.cssText;
40
- return ee(e);
41
- })(n) : n;
42
+ for (const s of t.cssRules)
43
+ e += s.cssText;
44
+ return ce(e);
45
+ })(r) : r;
42
46
  /**
43
47
  * @license
44
48
  * Copyright 2017 Google LLC
45
49
  * SPDX-License-Identifier: BSD-3-Clause
46
50
  */
47
- var et;
48
- const K = window, At = K.trustedTypes, se = At ? At.emptyScript : "", yt = K.reactiveElementPolyfillSupport, dt = { toAttribute(n, t) {
51
+ const { is: pe, defineProperty: ue, getOwnPropertyDescriptor: _e, getOwnPropertyNames: $e, getOwnPropertySymbols: me, getPrototypeOf: fe } = Object, E = globalThis, yt = E.trustedTypes, ge = yt ? yt.emptyScript : "", rt = E.reactiveElementPolyfillSupport, L = (r, t) => r, dt = { toAttribute(r, t) {
49
52
  switch (t) {
50
53
  case Boolean:
51
- n = n ? se : null;
54
+ r = r ? ge : null;
52
55
  break;
53
56
  case Object:
54
57
  case Array:
55
- n = n == null ? n : JSON.stringify(n);
58
+ r = r == null ? r : JSON.stringify(r);
56
59
  }
57
- return n;
58
- }, fromAttribute(n, t) {
59
- let e = n;
60
+ return r;
61
+ }, fromAttribute(r, t) {
62
+ let e = r;
60
63
  switch (t) {
61
64
  case Boolean:
62
- e = n !== null;
65
+ e = r !== null;
63
66
  break;
64
67
  case Number:
65
- e = n === null ? null : Number(n);
68
+ e = r === null ? null : Number(r);
66
69
  break;
67
70
  case Object:
68
71
  case Array:
69
72
  try {
70
- e = JSON.parse(n);
73
+ e = JSON.parse(r);
71
74
  } catch {
72
75
  e = null;
73
76
  }
74
77
  }
75
78
  return e;
76
- } }, jt = (n, t) => t !== n && (t == t || n == n), it = { attribute: !0, type: String, converter: dt, reflect: !1, hasChanged: jt }, ct = "finalized";
77
- let T = class extends HTMLElement {
78
- constructor() {
79
- super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
80
- }
79
+ } }, qt = (r, t) => !pe(r, t), At = { attribute: !0, type: String, converter: dt, reflect: !1, hasChanged: qt };
80
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
81
+ let k = class extends HTMLElement {
81
82
  static addInitializer(t) {
82
- var e;
83
- this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
83
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
84
84
  }
85
85
  static get observedAttributes() {
86
- this.finalize();
87
- const t = [];
88
- return this.elementProperties.forEach((e, i) => {
89
- const s = this._$Ep(i, e);
90
- s !== void 0 && (this._$Ev.set(s, i), t.push(s));
91
- }), t;
92
- }
93
- static createProperty(t, e = it) {
94
- if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
95
- const i = typeof t == "symbol" ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, i, e);
96
- s !== void 0 && Object.defineProperty(this.prototype, t, s);
86
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
87
+ }
88
+ static createProperty(t, e = At) {
89
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
90
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
91
+ i !== void 0 && ue(this.prototype, t, i);
97
92
  }
98
93
  }
99
- static getPropertyDescriptor(t, e, i) {
100
- return { get() {
94
+ static getPropertyDescriptor(t, e, s) {
95
+ const { get: i, set: n } = _e(this.prototype, t) ?? { get() {
101
96
  return this[e];
102
- }, set(s) {
103
- const r = this[t];
104
- this[e] = s, this.requestUpdate(t, r, i);
97
+ }, set(o) {
98
+ this[e] = o;
99
+ } };
100
+ return { get() {
101
+ return i == null ? void 0 : i.call(this);
102
+ }, set(o) {
103
+ const a = i == null ? void 0 : i.call(this);
104
+ n.call(this, o), this.requestUpdate(t, a, s);
105
105
  }, configurable: !0, enumerable: !0 };
106
106
  }
107
107
  static getPropertyOptions(t) {
108
- return this.elementProperties.get(t) || it;
108
+ return this.elementProperties.get(t) ?? At;
109
+ }
110
+ static _$Ei() {
111
+ if (this.hasOwnProperty(L("elementProperties")))
112
+ return;
113
+ const t = fe(this);
114
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
109
115
  }
110
116
  static finalize() {
111
- if (this.hasOwnProperty(ct))
112
- return !1;
113
- this[ct] = !0;
114
- const t = Object.getPrototypeOf(this);
115
- if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
116
- const e = this.properties, i = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
117
- for (const s of i)
118
- this.createProperty(s, e[s]);
117
+ if (this.hasOwnProperty(L("finalized")))
118
+ return;
119
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(L("properties"))) {
120
+ const e = this.properties, s = [...$e(e), ...me(e)];
121
+ for (const i of s)
122
+ this.createProperty(i, e[i]);
123
+ }
124
+ const t = this[Symbol.metadata];
125
+ if (t !== null) {
126
+ const e = litPropertyMetadata.get(t);
127
+ if (e !== void 0)
128
+ for (const [s, i] of e)
129
+ this.elementProperties.set(s, i);
130
+ }
131
+ this._$Eh = /* @__PURE__ */ new Map();
132
+ for (const [e, s] of this.elementProperties) {
133
+ const i = this._$Eu(e, s);
134
+ i !== void 0 && this._$Eh.set(i, e);
119
135
  }
120
- return this.elementStyles = this.finalizeStyles(this.styles), !0;
136
+ this.elementStyles = this.finalizeStyles(this.styles);
121
137
  }
122
138
  static finalizeStyles(t) {
123
139
  const e = [];
124
140
  if (Array.isArray(t)) {
125
- const i = new Set(t.flat(1 / 0).reverse());
126
- for (const s of i)
127
- e.unshift(ft(s));
141
+ const s = new Set(t.flat(1 / 0).reverse());
142
+ for (const i of s)
143
+ e.unshift(vt(i));
128
144
  } else
129
- t !== void 0 && e.push(ft(t));
145
+ t !== void 0 && e.push(vt(t));
130
146
  return e;
131
147
  }
132
- static _$Ep(t, e) {
133
- const i = e.attribute;
134
- return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
148
+ static _$Eu(t, e) {
149
+ const s = e.attribute;
150
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
135
151
  }
136
- u() {
152
+ constructor() {
153
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
154
+ }
155
+ _$Ev() {
137
156
  var t;
138
- this._$E_ = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((e) => e(this));
157
+ this._$Eg = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$ES(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
139
158
  }
140
159
  addController(t) {
141
- var e, i;
142
- ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((i = t.hostConnected) === null || i === void 0 || i.call(t));
160
+ var e;
161
+ (this._$E_ ?? (this._$E_ = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
143
162
  }
144
163
  removeController(t) {
145
164
  var e;
146
- (e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
165
+ (e = this._$E_) == null || e.delete(t);
147
166
  }
148
- _$Eg() {
149
- this.constructor.elementProperties.forEach((t, e) => {
150
- this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
151
- });
167
+ _$ES() {
168
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
169
+ for (const s of e.keys())
170
+ this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
171
+ t.size > 0 && (this._$Ep = t);
152
172
  }
153
173
  createRenderRoot() {
154
- var t;
155
- const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
156
- return ie(e, this.constructor.elementStyles), e;
174
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
175
+ return de(t, this.constructor.elementStyles), t;
157
176
  }
158
177
  connectedCallback() {
159
178
  var t;
160
- this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
161
- var i;
162
- return (i = e.hostConnected) === null || i === void 0 ? void 0 : i.call(e);
179
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$E_) == null || t.forEach((e) => {
180
+ var s;
181
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
163
182
  });
164
183
  }
165
184
  enableUpdating(t) {
166
185
  }
167
186
  disconnectedCallback() {
168
187
  var t;
169
- (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
170
- var i;
171
- return (i = e.hostDisconnected) === null || i === void 0 ? void 0 : i.call(e);
188
+ (t = this._$E_) == null || t.forEach((e) => {
189
+ var s;
190
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
172
191
  });
173
192
  }
174
- attributeChangedCallback(t, e, i) {
175
- this._$AK(t, i);
193
+ attributeChangedCallback(t, e, s) {
194
+ this._$AK(t, s);
176
195
  }
177
- _$EO(t, e, i = it) {
178
- var s;
179
- const r = this.constructor._$Ep(t, i);
180
- if (r !== void 0 && i.reflect === !0) {
181
- const o = (((s = i.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? i.converter : dt).toAttribute(e, i.type);
182
- this._$El = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$El = null;
196
+ _$EO(t, e) {
197
+ var n;
198
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
199
+ if (i !== void 0 && s.reflect === !0) {
200
+ const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : dt).toAttribute(e, s.type);
201
+ this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
183
202
  }
184
203
  }
185
204
  _$AK(t, e) {
186
- var i;
187
- const s = this.constructor, r = s._$Ev.get(t);
188
- if (r !== void 0 && this._$El !== r) {
189
- const o = s.getPropertyOptions(r), d = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? o.converter : dt;
190
- this._$El = r, this[r] = d.fromAttribute(e, o.type), this._$El = null;
205
+ var n;
206
+ const s = this.constructor, i = s._$Eh.get(t);
207
+ if (i !== void 0 && this._$Em !== i) {
208
+ const o = s.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : dt;
209
+ this._$Em = i, this[i] = a.fromAttribute(e, o.type), this._$Em = null;
191
210
  }
192
211
  }
193
- requestUpdate(t, e, i) {
194
- let s = !0;
195
- t !== void 0 && (((i = i || this.constructor.getPropertyOptions(t)).hasChanged || jt)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, i))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
212
+ requestUpdate(t, e, s, i = !1, n) {
213
+ if (t !== void 0) {
214
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? qt)(i ? n : this[t], e))
215
+ return;
216
+ this.C(t, e, s);
217
+ }
218
+ this.isUpdatePending === !1 && (this._$Eg = this._$EP());
219
+ }
220
+ C(t, e, s) {
221
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
196
222
  }
197
- async _$Ej() {
223
+ async _$EP() {
198
224
  this.isUpdatePending = !0;
199
225
  try {
200
- await this._$E_;
226
+ await this._$Eg;
201
227
  } catch (e) {
202
228
  Promise.reject(e);
203
229
  }
@@ -208,139 +234,141 @@ let T = class extends HTMLElement {
208
234
  return this.performUpdate();
209
235
  }
210
236
  performUpdate() {
211
- var t;
237
+ var s;
212
238
  if (!this.isUpdatePending)
213
239
  return;
214
- this.hasUpdated, this._$Ei && (this._$Ei.forEach((s, r) => this[r] = s), this._$Ei = void 0);
215
- let e = !1;
216
- const i = this._$AL;
240
+ if (!this.hasUpdated) {
241
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
242
+ for (const [n, o] of this._$Ep)
243
+ this[n] = o;
244
+ this._$Ep = void 0;
245
+ }
246
+ const i = this.constructor.elementProperties;
247
+ if (i.size > 0)
248
+ for (const [n, o] of i)
249
+ o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
250
+ }
251
+ let t = !1;
252
+ const e = this._$AL;
217
253
  try {
218
- e = this.shouldUpdate(i), e ? (this.willUpdate(i), (t = this._$ES) === null || t === void 0 || t.forEach((s) => {
219
- var r;
220
- return (r = s.hostUpdate) === null || r === void 0 ? void 0 : r.call(s);
221
- }), this.update(i)) : this._$Ek();
222
- } catch (s) {
223
- throw e = !1, this._$Ek(), s;
254
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$E_) == null || s.forEach((i) => {
255
+ var n;
256
+ return (n = i.hostUpdate) == null ? void 0 : n.call(i);
257
+ }), this.update(e)) : this._$ET();
258
+ } catch (i) {
259
+ throw t = !1, this._$ET(), i;
224
260
  }
225
- e && this._$AE(i);
261
+ t && this._$AE(e);
226
262
  }
227
263
  willUpdate(t) {
228
264
  }
229
265
  _$AE(t) {
230
266
  var e;
231
- (e = this._$ES) === null || e === void 0 || e.forEach((i) => {
232
- var s;
233
- return (s = i.hostUpdated) === null || s === void 0 ? void 0 : s.call(i);
267
+ (e = this._$E_) == null || e.forEach((s) => {
268
+ var i;
269
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
234
270
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
235
271
  }
236
- _$Ek() {
272
+ _$ET() {
237
273
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
238
274
  }
239
275
  get updateComplete() {
240
276
  return this.getUpdateComplete();
241
277
  }
242
278
  getUpdateComplete() {
243
- return this._$E_;
279
+ return this._$Eg;
244
280
  }
245
281
  shouldUpdate(t) {
246
282
  return !0;
247
283
  }
248
284
  update(t) {
249
- this._$EC !== void 0 && (this._$EC.forEach((e, i) => this._$EO(i, this[i], e)), this._$EC = void 0), this._$Ek();
285
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EO(e, this[e]))), this._$ET();
250
286
  }
251
287
  updated(t) {
252
288
  }
253
289
  firstUpdated(t) {
254
290
  }
255
291
  };
256
- T[ct] = !0, T.elementProperties = /* @__PURE__ */ new Map(), T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, yt == null || yt({ ReactiveElement: T }), ((et = K.reactiveElementVersions) !== null && et !== void 0 ? et : K.reactiveElementVersions = []).push("1.6.2");
292
+ k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[L("elementProperties")] = /* @__PURE__ */ new Map(), k[L("finalized")] = /* @__PURE__ */ new Map(), rt == null || rt({ ReactiveElement: k }), (E.reactiveElementVersions ?? (E.reactiveElementVersions = [])).push("2.0.2");
257
293
  /**
258
294
  * @license
259
295
  * Copyright 2017 Google LLC
260
296
  * SPDX-License-Identifier: BSD-3-Clause
261
297
  */
262
- var st;
263
- const J = window, x = J.trustedTypes, Et = x ? x.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, ut = "$lit$", E = `lit$${(Math.random() + "").slice(9)}$`, Bt = "?" + E, ne = `<${Bt}>`, C = document, G = () => C.createComment(""), D = (n) => n === null || typeof n != "object" && typeof n != "function", zt = Array.isArray, re = (n) => zt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", nt = `[
264
- \f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, wt = /-->/g, bt = />/g, b = RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
265
- \f\r"'\`<>=]|("|')|))|$)`, "g"), St = /'/g, Pt = /"/g, qt = /^(?:script|style|textarea|title)$/i, j = Symbol.for("lit-noChange"), v = Symbol.for("lit-nothing"), Ut = /* @__PURE__ */ new WeakMap(), P = C.createTreeWalker(C, 129, null, !1);
266
- function Wt(n, t) {
267
- if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
298
+ const V = globalThis, Y = V.trustedTypes, Et = Y ? Y.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Xt = "$lit$", y = `lit$${(Math.random() + "").slice(9)}$`, Kt = "?" + y, ve = `<${Kt}>`, U = document, Q = () => U.createComment(""), B = (r) => r === null || typeof r != "object" && typeof r != "function", Jt = Array.isArray, ye = (r) => Jt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", nt = `[
299
+ \f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, bt = /-->/g, St = />/g, S = RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
300
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), wt = /'/g, Pt = /"/g, Ft = /^(?:script|style|textarea|title)$/i, W = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), Ct = /* @__PURE__ */ new WeakMap(), C = U.createTreeWalker(U, 129);
301
+ function Gt(r, t) {
302
+ if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
268
303
  throw Error("invalid template strings array");
269
304
  return Et !== void 0 ? Et.createHTML(t) : t;
270
305
  }
271
- const oe = (n, t) => {
272
- const e = n.length - 1, i = [];
273
- let s, r = t === 2 ? "<svg>" : "", o = O;
274
- for (let d = 0; d < e; d++) {
275
- const l = n[d];
276
- let h, u, a = -1, c = 0;
277
- for (; c < l.length && (o.lastIndex = c, u = o.exec(l), u !== null); )
278
- c = o.lastIndex, o === O ? u[1] === "!--" ? o = wt : u[1] !== void 0 ? o = bt : u[2] !== void 0 ? (qt.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = b) : u[3] !== void 0 && (o = b) : o === b ? u[0] === ">" ? (o = s ?? O, a = -1) : u[1] === void 0 ? a = -2 : (a = o.lastIndex - u[2].length, h = u[1], o = u[3] === void 0 ? b : u[3] === '"' ? Pt : St) : o === Pt || o === St ? o = b : o === wt || o === bt ? o = O : (o = b, s = void 0);
279
- const p = o === b && n[d + 1].startsWith("/>") ? " " : "";
280
- r += o === O ? l + ne : a >= 0 ? (i.push(h), l.slice(0, a) + ut + l.slice(a) + E + p) : l + E + (a === -2 ? (i.push(void 0), d) : p);
281
- }
282
- return [Wt(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
306
+ const Ae = (r, t) => {
307
+ const e = r.length - 1, s = [];
308
+ let i, n = t === 2 ? "<svg>" : "", o = M;
309
+ for (let a = 0; a < e; a++) {
310
+ const h = r[a];
311
+ let c, d, l = -1, p = 0;
312
+ for (; p < h.length && (o.lastIndex = p, d = o.exec(h), d !== null); )
313
+ p = o.lastIndex, o === M ? d[1] === "!--" ? o = bt : d[1] !== void 0 ? o = St : d[2] !== void 0 ? (Ft.test(d[2]) && (i = RegExp("</" + d[2], "g")), o = S) : d[3] !== void 0 && (o = S) : o === S ? d[0] === ">" ? (o = i ?? M, l = -1) : d[1] === void 0 ? l = -2 : (l = o.lastIndex - d[2].length, c = d[1], o = d[3] === void 0 ? S : d[3] === '"' ? Pt : wt) : o === Pt || o === wt ? o = S : o === bt || o === St ? o = M : (o = S, i = void 0);
314
+ const u = o === S && r[a + 1].startsWith("/>") ? " " : "";
315
+ n += o === M ? h + ve : l >= 0 ? (s.push(c), h.slice(0, l) + Xt + h.slice(l) + y + u) : h + y + (l === -2 ? a : u);
316
+ }
317
+ return [Gt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
283
318
  };
284
319
  let pt = class Zt {
285
- constructor({ strings: t, _$litType$: e }, i) {
286
- let s;
320
+ constructor({ strings: t, _$litType$: e }, s) {
321
+ let i;
287
322
  this.parts = [];
288
- let r = 0, o = 0;
289
- const d = t.length - 1, l = this.parts, [h, u] = oe(t, e);
290
- if (this.el = Zt.createElement(h, i), P.currentNode = this.el.content, e === 2) {
291
- const a = this.el.content, c = a.firstChild;
292
- c.remove(), a.append(...c.childNodes);
323
+ let n = 0, o = 0;
324
+ const a = t.length - 1, h = this.parts, [c, d] = Ae(t, e);
325
+ if (this.el = Zt.createElement(c, s), C.currentNode = this.el.content, e === 2) {
326
+ const l = this.el.content.firstChild;
327
+ l.replaceWith(...l.childNodes);
293
328
  }
294
- for (; (s = P.nextNode()) !== null && l.length < d; ) {
295
- if (s.nodeType === 1) {
296
- if (s.hasAttributes()) {
297
- const a = [];
298
- for (const c of s.getAttributeNames())
299
- if (c.endsWith(ut) || c.startsWith(E)) {
300
- const p = u[o++];
301
- if (a.push(c), p !== void 0) {
302
- const A = s.getAttribute(p.toLowerCase() + ut).split(E), m = /([.?@])?(.*)/.exec(p);
303
- l.push({ type: 1, index: r, name: m[2], strings: A, ctor: m[1] === "." ? he : m[1] === "?" ? de : m[1] === "@" ? ce : Q });
304
- } else
305
- l.push({ type: 6, index: r });
306
- }
307
- for (const c of a)
308
- s.removeAttribute(c);
309
- }
310
- if (qt.test(s.tagName)) {
311
- const a = s.textContent.split(E), c = a.length - 1;
312
- if (c > 0) {
313
- s.textContent = x ? x.emptyScript : "";
314
- for (let p = 0; p < c; p++)
315
- s.append(a[p], G()), P.nextNode(), l.push({ type: 2, index: ++r });
316
- s.append(a[c], G());
329
+ for (; (i = C.nextNode()) !== null && h.length < a; ) {
330
+ if (i.nodeType === 1) {
331
+ if (i.hasAttributes())
332
+ for (const l of i.getAttributeNames())
333
+ if (l.endsWith(Xt)) {
334
+ const p = d[o++], u = i.getAttribute(l).split(y), g = /([.?@])?(.*)/.exec(p);
335
+ h.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? be : g[1] === "?" ? Se : g[1] === "@" ? we : st }), i.removeAttribute(l);
336
+ } else
337
+ l.startsWith(y) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
338
+ if (Ft.test(i.tagName)) {
339
+ const l = i.textContent.split(y), p = l.length - 1;
340
+ if (p > 0) {
341
+ i.textContent = Y ? Y.emptyScript : "";
342
+ for (let u = 0; u < p; u++)
343
+ i.append(l[u], Q()), C.nextNode(), h.push({ type: 2, index: ++n });
344
+ i.append(l[p], Q());
317
345
  }
318
346
  }
319
- } else if (s.nodeType === 8)
320
- if (s.data === Bt)
321
- l.push({ type: 2, index: r });
347
+ } else if (i.nodeType === 8)
348
+ if (i.data === Kt)
349
+ h.push({ type: 2, index: n });
322
350
  else {
323
- let a = -1;
324
- for (; (a = s.data.indexOf(E, a + 1)) !== -1; )
325
- l.push({ type: 7, index: r }), a += E.length - 1;
351
+ let l = -1;
352
+ for (; (l = i.data.indexOf(y, l + 1)) !== -1; )
353
+ h.push({ type: 7, index: n }), l += y.length - 1;
326
354
  }
327
- r++;
355
+ n++;
328
356
  }
329
357
  }
330
358
  static createElement(t, e) {
331
- const i = C.createElement("template");
332
- return i.innerHTML = t, i;
359
+ const s = U.createElement("template");
360
+ return s.innerHTML = t, s;
333
361
  }
334
362
  };
335
- function H(n, t, e = n, i) {
336
- var s, r, o, d;
337
- if (t === j)
363
+ function H(r, t, e = r, s) {
364
+ var o, a;
365
+ if (t === W)
338
366
  return t;
339
- let l = i !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[i] : e._$Cl;
340
- const h = D(t) ? void 0 : t._$litDirective$;
341
- return (l == null ? void 0 : l.constructor) !== h && ((r = l == null ? void 0 : l._$AO) === null || r === void 0 || r.call(l, !1), h === void 0 ? l = void 0 : (l = new h(n), l._$AT(n, e, i)), i !== void 0 ? ((o = (d = e)._$Co) !== null && o !== void 0 ? o : d._$Co = [])[i] = l : e._$Cl = l), l !== void 0 && (t = H(n, l._$AS(n, t.values), l, i)), t;
367
+ let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
368
+ const n = B(t) ? void 0 : t._$litDirective$;
369
+ return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = H(r, i._$AS(r, t.values), i, s)), t;
342
370
  }
343
- let le = class {
371
+ let Ee = class {
344
372
  constructor(t, e) {
345
373
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
346
374
  }
@@ -351,32 +379,30 @@ let le = class {
351
379
  return this._$AM._$AU;
352
380
  }
353
381
  u(t) {
354
- var e;
355
- const { el: { content: i }, parts: s } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : C).importNode(i, !0);
356
- P.currentNode = r;
357
- let o = P.nextNode(), d = 0, l = 0, h = s[0];
382
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? U).importNode(e, !0);
383
+ C.currentNode = i;
384
+ let n = C.nextNode(), o = 0, a = 0, h = s[0];
358
385
  for (; h !== void 0; ) {
359
- if (d === h.index) {
360
- let u;
361
- h.type === 2 ? u = new Ft(o, o.nextSibling, this, t) : h.type === 1 ? u = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (u = new ue(o, this, t)), this._$AV.push(u), h = s[++l];
386
+ if (o === h.index) {
387
+ let c;
388
+ h.type === 2 ? c = new Yt(n, n.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (c = new Pe(n, this, t)), this._$AV.push(c), h = s[++a];
362
389
  }
363
- d !== (h == null ? void 0 : h.index) && (o = P.nextNode(), d++);
390
+ o !== (h == null ? void 0 : h.index) && (n = C.nextNode(), o++);
364
391
  }
365
- return P.currentNode = C, r;
392
+ return C.currentNode = U, i;
366
393
  }
367
- v(t) {
394
+ p(t) {
368
395
  let e = 0;
369
- for (const i of this._$AV)
370
- i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
371
- }
372
- }, Ft = class Kt {
373
- constructor(t, e, i, s) {
374
- var r;
375
- this.type = 2, this._$AH = v, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cp = (r = s == null ? void 0 : s.isConnected) === null || r === void 0 || r;
396
+ for (const s of this._$AV)
397
+ s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
376
398
  }
399
+ }, Yt = class Qt {
377
400
  get _$AU() {
378
- var t, e;
379
- return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;
401
+ var t;
402
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
403
+ }
404
+ constructor(t, e, s, i) {
405
+ this.type = 2, this._$AH = _, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
380
406
  }
381
407
  get parentNode() {
382
408
  let t = this._$AA.parentNode;
@@ -390,7 +416,7 @@ let le = class {
390
416
  return this._$AB;
391
417
  }
392
418
  _$AI(t, e = this) {
393
- t = H(this, t, e), D(t) ? t === v || t == null || t === "" ? (this._$AH !== v && this._$AR(), this._$AH = v) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : re(t) ? this.T(t) : this._(t);
419
+ t = H(this, t, e), B(t) ? t === _ || t == null || t === "" ? (this._$AH !== _ && this._$AR(), this._$AH = _) : t !== this._$AH && t !== W && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : ye(t) ? this.T(t) : this._(t);
394
420
  }
395
421
  k(t) {
396
422
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -399,102 +425,98 @@ let le = class {
399
425
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
400
426
  }
401
427
  _(t) {
402
- this._$AH !== v && D(this._$AH) ? this._$AA.nextSibling.data = t : this.$(C.createTextNode(t)), this._$AH = t;
428
+ this._$AH !== _ && B(this._$AH) ? this._$AA.nextSibling.data = t : this.$(U.createTextNode(t)), this._$AH = t;
403
429
  }
404
430
  g(t) {
405
- var e;
406
- const { values: i, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = pt.createElement(Wt(s.h, s.h[0]), this.options)), s);
407
- if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
408
- this._$AH.v(i);
431
+ var n;
432
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = pt.createElement(Gt(s.h, s.h[0]), this.options)), s);
433
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === i)
434
+ this._$AH.p(e);
409
435
  else {
410
- const o = new le(r, this), d = o.u(this.options);
411
- o.v(i), this.$(d), this._$AH = o;
436
+ const o = new Ee(i, this), a = o.u(this.options);
437
+ o.p(e), this.$(a), this._$AH = o;
412
438
  }
413
439
  }
414
440
  _$AC(t) {
415
- let e = Ut.get(t.strings);
416
- return e === void 0 && Ut.set(t.strings, e = new pt(t)), e;
441
+ let e = Ct.get(t.strings);
442
+ return e === void 0 && Ct.set(t.strings, e = new pt(t)), e;
417
443
  }
418
444
  T(t) {
419
- zt(this._$AH) || (this._$AH = [], this._$AR());
445
+ Jt(this._$AH) || (this._$AH = [], this._$AR());
420
446
  const e = this._$AH;
421
- let i, s = 0;
422
- for (const r of t)
423
- s === e.length ? e.push(i = new Kt(this.k(G()), this.k(G()), this, this.options)) : i = e[s], i._$AI(r), s++;
424
- s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
447
+ let s, i = 0;
448
+ for (const n of t)
449
+ i === e.length ? e.push(s = new Qt(this.k(Q()), this.k(Q()), this, this.options)) : s = e[i], s._$AI(n), i++;
450
+ i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
425
451
  }
426
452
  _$AR(t = this._$AA.nextSibling, e) {
427
- var i;
428
- for ((i = this._$AP) === null || i === void 0 || i.call(this, !1, !0, e); t && t !== this._$AB; ) {
429
- const s = t.nextSibling;
430
- t.remove(), t = s;
453
+ var s;
454
+ for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
455
+ const i = t.nextSibling;
456
+ t.remove(), t = i;
431
457
  }
432
458
  }
433
459
  setConnected(t) {
434
460
  var e;
435
- this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
436
- }
437
- }, Q = class {
438
- constructor(t, e, i, s, r) {
439
- this.type = 1, this._$AH = v, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = v;
461
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
440
462
  }
463
+ }, st = class {
441
464
  get tagName() {
442
465
  return this.element.tagName;
443
466
  }
444
467
  get _$AU() {
445
468
  return this._$AM._$AU;
446
469
  }
447
- _$AI(t, e = this, i, s) {
448
- const r = this.strings;
470
+ constructor(t, e, s, i, n) {
471
+ this.type = 1, this._$AH = _, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = _;
472
+ }
473
+ _$AI(t, e = this, s, i) {
474
+ const n = this.strings;
449
475
  let o = !1;
450
- if (r === void 0)
451
- t = H(this, t, e, 0), o = !D(t) || t !== this._$AH && t !== j, o && (this._$AH = t);
476
+ if (n === void 0)
477
+ t = H(this, t, e, 0), o = !B(t) || t !== this._$AH && t !== W, o && (this._$AH = t);
452
478
  else {
453
- const d = t;
454
- let l, h;
455
- for (t = r[0], l = 0; l < r.length - 1; l++)
456
- h = H(this, d[i + l], e, l), h === j && (h = this._$AH[l]), o || (o = !D(h) || h !== this._$AH[l]), h === v ? t = v : t !== v && (t += (h ?? "") + r[l + 1]), this._$AH[l] = h;
479
+ const a = t;
480
+ let h, c;
481
+ for (t = n[0], h = 0; h < n.length - 1; h++)
482
+ c = H(this, a[s + h], e, h), c === W && (c = this._$AH[h]), o || (o = !B(c) || c !== this._$AH[h]), c === _ ? t = _ : t !== _ && (t += (c ?? "") + n[h + 1]), this._$AH[h] = c;
457
483
  }
458
- o && !s && this.j(t);
484
+ o && !i && this.O(t);
459
485
  }
460
- j(t) {
461
- t === v ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
486
+ O(t) {
487
+ t === _ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
462
488
  }
463
- }, he = class extends Q {
489
+ }, be = class extends st {
464
490
  constructor() {
465
491
  super(...arguments), this.type = 3;
466
492
  }
467
- j(t) {
468
- this.element[this.name] = t === v ? void 0 : t;
493
+ O(t) {
494
+ this.element[this.name] = t === _ ? void 0 : t;
469
495
  }
470
- };
471
- const ae = x ? x.emptyScript : "";
472
- let de = class extends Q {
496
+ }, Se = class extends st {
473
497
  constructor() {
474
498
  super(...arguments), this.type = 4;
475
499
  }
476
- j(t) {
477
- t && t !== v ? this.element.setAttribute(this.name, ae) : this.element.removeAttribute(this.name);
500
+ O(t) {
501
+ this.element.toggleAttribute(this.name, !!t && t !== _);
478
502
  }
479
- }, ce = class extends Q {
480
- constructor(t, e, i, s, r) {
481
- super(t, e, i, s, r), this.type = 5;
503
+ }, we = class extends st {
504
+ constructor(t, e, s, i, n) {
505
+ super(t, e, s, i, n), this.type = 5;
482
506
  }
483
507
  _$AI(t, e = this) {
484
- var i;
485
- if ((t = (i = H(this, t, e, 0)) !== null && i !== void 0 ? i : v) === j)
508
+ if ((t = H(this, t, e, 0) ?? _) === W)
486
509
  return;
487
- const s = this._$AH, r = t === v && s !== v || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== v && (s === v || r);
488
- r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
510
+ const s = this._$AH, i = t === _ && s !== _ || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== _ && (s === _ || i);
511
+ i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
489
512
  }
490
513
  handleEvent(t) {
491
- var e, i;
492
- typeof this._$AH == "function" ? this._$AH.call((i = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && i !== void 0 ? i : this.element, t) : this._$AH.handleEvent(t);
514
+ var e;
515
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
493
516
  }
494
- };
495
- class ue {
496
- constructor(t, e, i) {
497
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
517
+ }, Pe = class {
518
+ constructor(t, e, s) {
519
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
498
520
  }
499
521
  get _$AU() {
500
522
  return this._$AM._$AU;
@@ -502,93 +524,374 @@ class ue {
502
524
  _$AI(t) {
503
525
  H(this, t);
504
526
  }
527
+ };
528
+ const ot = V.litHtmlPolyfillSupport;
529
+ ot == null || ot(pt, Yt), (V.litHtmlVersions ?? (V.litHtmlVersions = [])).push("3.1.0");
530
+ /**
531
+ * @license
532
+ * Copyright 2019 Google LLC
533
+ * SPDX-License-Identifier: BSD-3-Clause
534
+ */
535
+ const Z = globalThis, $t = Z.ShadowRoot && (Z.ShadyCSS === void 0 || Z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, te = Symbol(), Tt = /* @__PURE__ */ new WeakMap();
536
+ let Ce = class {
537
+ constructor(t, e, s) {
538
+ if (this._$cssResult$ = !0, s !== te)
539
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
540
+ this.cssText = t, this.t = e;
541
+ }
542
+ get styleSheet() {
543
+ let t = this.o;
544
+ const e = this.t;
545
+ if ($t && t === void 0) {
546
+ const s = e !== void 0 && e.length === 1;
547
+ s && (t = Tt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Tt.set(e, t));
548
+ }
549
+ return t;
550
+ }
551
+ toString() {
552
+ return this.cssText;
553
+ }
554
+ };
555
+ const Te = (r) => new Ce(typeof r == "string" ? r : r + "", void 0, te), Ue = (r, t) => {
556
+ if ($t)
557
+ r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
558
+ else
559
+ for (const e of t) {
560
+ const s = document.createElement("style"), i = Z.litNonce;
561
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
562
+ }
563
+ }, Ut = $t ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
564
+ let e = "";
565
+ for (const s of t.cssRules)
566
+ e += s.cssText;
567
+ return Te(e);
568
+ })(r) : r;
569
+ /**
570
+ * @license
571
+ * Copyright 2017 Google LLC
572
+ * SPDX-License-Identifier: BSD-3-Clause
573
+ */
574
+ const { is: Re, defineProperty: xe, getOwnPropertyDescriptor: He, getOwnPropertyNames: Oe, getOwnPropertySymbols: Ne, getPrototypeOf: ke } = Object, b = globalThis, Rt = b.trustedTypes, Me = Rt ? Rt.emptyScript : "", ht = b.reactiveElementPolyfillSupport, D = (r, t) => r, ut = { toAttribute(r, t) {
575
+ switch (t) {
576
+ case Boolean:
577
+ r = r ? Me : null;
578
+ break;
579
+ case Object:
580
+ case Array:
581
+ r = r == null ? r : JSON.stringify(r);
582
+ }
583
+ return r;
584
+ }, fromAttribute(r, t) {
585
+ let e = r;
586
+ switch (t) {
587
+ case Boolean:
588
+ e = r !== null;
589
+ break;
590
+ case Number:
591
+ e = r === null ? null : Number(r);
592
+ break;
593
+ case Object:
594
+ case Array:
595
+ try {
596
+ e = JSON.parse(r);
597
+ } catch {
598
+ e = null;
599
+ }
600
+ }
601
+ return e;
602
+ } }, ee = (r, t) => !Re(r, t), xt = { attribute: !0, type: String, converter: ut, reflect: !1, hasChanged: ee };
603
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), b.litPropertyMetadata ?? (b.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
604
+ class x extends HTMLElement {
605
+ static addInitializer(t) {
606
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
607
+ }
608
+ static get observedAttributes() {
609
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
610
+ }
611
+ static createProperty(t, e = xt) {
612
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
613
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
614
+ i !== void 0 && xe(this.prototype, t, i);
615
+ }
616
+ }
617
+ static getPropertyDescriptor(t, e, s) {
618
+ const { get: i, set: n } = He(this.prototype, t) ?? { get() {
619
+ return this[e];
620
+ }, set(o) {
621
+ this[e] = o;
622
+ } };
623
+ return { get() {
624
+ return i == null ? void 0 : i.call(this);
625
+ }, set(o) {
626
+ const a = i == null ? void 0 : i.call(this);
627
+ n.call(this, o), this.requestUpdate(t, a, s);
628
+ }, configurable: !0, enumerable: !0 };
629
+ }
630
+ static getPropertyOptions(t) {
631
+ return this.elementProperties.get(t) ?? xt;
632
+ }
633
+ static _$Ei() {
634
+ if (this.hasOwnProperty(D("elementProperties")))
635
+ return;
636
+ const t = ke(this);
637
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
638
+ }
639
+ static finalize() {
640
+ if (this.hasOwnProperty(D("finalized")))
641
+ return;
642
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(D("properties"))) {
643
+ const e = this.properties, s = [...Oe(e), ...Ne(e)];
644
+ for (const i of s)
645
+ this.createProperty(i, e[i]);
646
+ }
647
+ const t = this[Symbol.metadata];
648
+ if (t !== null) {
649
+ const e = litPropertyMetadata.get(t);
650
+ if (e !== void 0)
651
+ for (const [s, i] of e)
652
+ this.elementProperties.set(s, i);
653
+ }
654
+ this._$Eh = /* @__PURE__ */ new Map();
655
+ for (const [e, s] of this.elementProperties) {
656
+ const i = this._$Eu(e, s);
657
+ i !== void 0 && this._$Eh.set(i, e);
658
+ }
659
+ this.elementStyles = this.finalizeStyles(this.styles);
660
+ }
661
+ static finalizeStyles(t) {
662
+ const e = [];
663
+ if (Array.isArray(t)) {
664
+ const s = new Set(t.flat(1 / 0).reverse());
665
+ for (const i of s)
666
+ e.unshift(Ut(i));
667
+ } else
668
+ t !== void 0 && e.push(Ut(t));
669
+ return e;
670
+ }
671
+ static _$Eu(t, e) {
672
+ const s = e.attribute;
673
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
674
+ }
675
+ constructor() {
676
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
677
+ }
678
+ _$Ev() {
679
+ var t;
680
+ this._$Eg = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$ES(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
681
+ }
682
+ addController(t) {
683
+ var e;
684
+ (this._$E_ ?? (this._$E_ = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
685
+ }
686
+ removeController(t) {
687
+ var e;
688
+ (e = this._$E_) == null || e.delete(t);
689
+ }
690
+ _$ES() {
691
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
692
+ for (const s of e.keys())
693
+ this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
694
+ t.size > 0 && (this._$Ep = t);
695
+ }
696
+ createRenderRoot() {
697
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
698
+ return Ue(t, this.constructor.elementStyles), t;
699
+ }
700
+ connectedCallback() {
701
+ var t;
702
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$E_) == null || t.forEach((e) => {
703
+ var s;
704
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
705
+ });
706
+ }
707
+ enableUpdating(t) {
708
+ }
709
+ disconnectedCallback() {
710
+ var t;
711
+ (t = this._$E_) == null || t.forEach((e) => {
712
+ var s;
713
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
714
+ });
715
+ }
716
+ attributeChangedCallback(t, e, s) {
717
+ this._$AK(t, s);
718
+ }
719
+ _$EO(t, e) {
720
+ var n;
721
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
722
+ if (i !== void 0 && s.reflect === !0) {
723
+ const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : ut).toAttribute(e, s.type);
724
+ this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
725
+ }
726
+ }
727
+ _$AK(t, e) {
728
+ var n;
729
+ const s = this.constructor, i = s._$Eh.get(t);
730
+ if (i !== void 0 && this._$Em !== i) {
731
+ const o = s.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : ut;
732
+ this._$Em = i, this[i] = a.fromAttribute(e, o.type), this._$Em = null;
733
+ }
734
+ }
735
+ requestUpdate(t, e, s, i = !1, n) {
736
+ if (t !== void 0) {
737
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? ee)(i ? n : this[t], e))
738
+ return;
739
+ this.C(t, e, s);
740
+ }
741
+ this.isUpdatePending === !1 && (this._$Eg = this._$EP());
742
+ }
743
+ C(t, e, s) {
744
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
745
+ }
746
+ async _$EP() {
747
+ this.isUpdatePending = !0;
748
+ try {
749
+ await this._$Eg;
750
+ } catch (e) {
751
+ Promise.reject(e);
752
+ }
753
+ const t = this.scheduleUpdate();
754
+ return t != null && await t, !this.isUpdatePending;
755
+ }
756
+ scheduleUpdate() {
757
+ return this.performUpdate();
758
+ }
759
+ performUpdate() {
760
+ var s;
761
+ if (!this.isUpdatePending)
762
+ return;
763
+ if (!this.hasUpdated) {
764
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
765
+ for (const [n, o] of this._$Ep)
766
+ this[n] = o;
767
+ this._$Ep = void 0;
768
+ }
769
+ const i = this.constructor.elementProperties;
770
+ if (i.size > 0)
771
+ for (const [n, o] of i)
772
+ o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
773
+ }
774
+ let t = !1;
775
+ const e = this._$AL;
776
+ try {
777
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$E_) == null || s.forEach((i) => {
778
+ var n;
779
+ return (n = i.hostUpdate) == null ? void 0 : n.call(i);
780
+ }), this.update(e)) : this._$ET();
781
+ } catch (i) {
782
+ throw t = !1, this._$ET(), i;
783
+ }
784
+ t && this._$AE(e);
785
+ }
786
+ willUpdate(t) {
787
+ }
788
+ _$AE(t) {
789
+ var e;
790
+ (e = this._$E_) == null || e.forEach((s) => {
791
+ var i;
792
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
793
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
794
+ }
795
+ _$ET() {
796
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
797
+ }
798
+ get updateComplete() {
799
+ return this.getUpdateComplete();
800
+ }
801
+ getUpdateComplete() {
802
+ return this._$Eg;
803
+ }
804
+ shouldUpdate(t) {
805
+ return !0;
806
+ }
807
+ update(t) {
808
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EO(e, this[e]))), this._$ET();
809
+ }
810
+ updated(t) {
811
+ }
812
+ firstUpdated(t) {
813
+ }
505
814
  }
506
- const Ct = J.litHtmlPolyfillSupport;
507
- Ct == null || Ct(pt, Ft), ((st = J.litHtmlVersions) !== null && st !== void 0 ? st : J.litHtmlVersions = []).push("2.8.0");
815
+ x.elementStyles = [], x.shadowRootOptions = { mode: "open" }, x[D("elementProperties")] = /* @__PURE__ */ new Map(), x[D("finalized")] = /* @__PURE__ */ new Map(), ht == null || ht({ ReactiveElement: x }), (b.reactiveElementVersions ?? (b.reactiveElementVersions = [])).push("2.0.2");
508
816
  /**
509
817
  * @license
510
818
  * Copyright 2017 Google LLC
511
819
  * SPDX-License-Identifier: BSD-3-Clause
512
820
  */
513
- var rt;
514
- const X = window, N = X.trustedTypes, Rt = N ? N.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, vt = "$lit$", w = `lit$${(Math.random() + "").slice(9)}$`, Jt = "?" + w, pe = `<${Jt}>`, R = document, B = () => R.createComment(""), z = (n) => n === null || typeof n != "object" && typeof n != "function", Gt = Array.isArray, ve = (n) => Gt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", ot = `[
515
- \f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Tt = /-->/g, xt = />/g, S = RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
516
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Nt = /"/g, Xt = /^(?:script|style|textarea|title)$/i, _e = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), $e = _e(1), I = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), It = /* @__PURE__ */ new WeakMap(), U = R.createTreeWalker(R, 129, null, !1), me = (n, t) => {
517
- const e = n.length - 1, i = [];
518
- let s, r = t === 2 ? "<svg>" : "", o = M;
519
- for (let l = 0; l < e; l++) {
520
- const h = n[l];
521
- let u, a, c = -1, p = 0;
522
- for (; p < h.length && (o.lastIndex = p, a = o.exec(h), a !== null); )
523
- p = o.lastIndex, o === M ? a[1] === "!--" ? o = Tt : a[1] !== void 0 ? o = xt : a[2] !== void 0 ? (Xt.test(a[2]) && (s = RegExp("</" + a[2], "g")), o = S) : a[3] !== void 0 && (o = S) : o === S ? a[0] === ">" ? (o = s ?? M, c = -1) : a[1] === void 0 ? c = -2 : (c = o.lastIndex - a[2].length, u = a[1], o = a[3] === void 0 ? S : a[3] === '"' ? Nt : Ht) : o === Nt || o === Ht ? o = S : o === Tt || o === xt ? o = M : (o = S, s = void 0);
524
- const A = o === S && n[l + 1].startsWith("/>") ? " " : "";
525
- r += o === M ? h + pe : c >= 0 ? (i.push(u), h.slice(0, c) + vt + h.slice(c) + w + A) : h + w + (c === -2 ? (i.push(void 0), l) : A);
526
- }
527
- const d = r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "");
528
- if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
821
+ const z = globalThis, tt = z.trustedTypes, Ht = tt ? tt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, se = "$lit$", A = `lit$${(Math.random() + "").slice(9)}$`, ie = "?" + A, Ie = `<${ie}>`, R = document, q = () => R.createComment(""), X = (r) => r === null || typeof r != "object" && typeof r != "function", re = Array.isArray, Le = (r) => re(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", at = `[
822
+ \f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ot = /-->/g, Nt = />/g, w = RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
823
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), kt = /'/g, Mt = /"/g, ne = /^(?:script|style|textarea|title)$/i, Ve = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), De = Ve(1), O = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), It = /* @__PURE__ */ new WeakMap(), T = R.createTreeWalker(R, 129);
824
+ function oe(r, t) {
825
+ if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
529
826
  throw Error("invalid template strings array");
530
- return [Rt !== void 0 ? Rt.createHTML(d) : d, i];
827
+ return Ht !== void 0 ? Ht.createHTML(t) : t;
828
+ }
829
+ const ze = (r, t) => {
830
+ const e = r.length - 1, s = [];
831
+ let i, n = t === 2 ? "<svg>" : "", o = I;
832
+ for (let a = 0; a < e; a++) {
833
+ const h = r[a];
834
+ let c, d, l = -1, p = 0;
835
+ for (; p < h.length && (o.lastIndex = p, d = o.exec(h), d !== null); )
836
+ p = o.lastIndex, o === I ? d[1] === "!--" ? o = Ot : d[1] !== void 0 ? o = Nt : d[2] !== void 0 ? (ne.test(d[2]) && (i = RegExp("</" + d[2], "g")), o = w) : d[3] !== void 0 && (o = w) : o === w ? d[0] === ">" ? (o = i ?? I, l = -1) : d[1] === void 0 ? l = -2 : (l = o.lastIndex - d[2].length, c = d[1], o = d[3] === void 0 ? w : d[3] === '"' ? Mt : kt) : o === Mt || o === kt ? o = w : o === Ot || o === Nt ? o = I : (o = w, i = void 0);
837
+ const u = o === w && r[a + 1].startsWith("/>") ? " " : "";
838
+ n += o === I ? h + Ie : l >= 0 ? (s.push(c), h.slice(0, l) + se + h.slice(l) + A + u) : h + A + (l === -2 ? a : u);
839
+ }
840
+ return [oe(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
531
841
  };
532
- class q {
533
- constructor({ strings: t, _$litType$: e }, i) {
534
- let s;
842
+ class K {
843
+ constructor({ strings: t, _$litType$: e }, s) {
844
+ let i;
535
845
  this.parts = [];
536
- let r = 0, o = 0;
537
- const d = t.length - 1, l = this.parts, [h, u] = me(t, e);
538
- if (this.el = q.createElement(h, i), U.currentNode = this.el.content, e === 2) {
539
- const a = this.el.content, c = a.firstChild;
540
- c.remove(), a.append(...c.childNodes);
846
+ let n = 0, o = 0;
847
+ const a = t.length - 1, h = this.parts, [c, d] = ze(t, e);
848
+ if (this.el = K.createElement(c, s), T.currentNode = this.el.content, e === 2) {
849
+ const l = this.el.content.firstChild;
850
+ l.replaceWith(...l.childNodes);
541
851
  }
542
- for (; (s = U.nextNode()) !== null && l.length < d; ) {
543
- if (s.nodeType === 1) {
544
- if (s.hasAttributes()) {
545
- const a = [];
546
- for (const c of s.getAttributeNames())
547
- if (c.endsWith(vt) || c.startsWith(w)) {
548
- const p = u[o++];
549
- if (a.push(c), p !== void 0) {
550
- const A = s.getAttribute(p.toLowerCase() + vt).split(w), m = /([.?@])?(.*)/.exec(p);
551
- l.push({ type: 1, index: r, name: m[2], strings: A, ctor: m[1] === "." ? fe : m[1] === "?" ? ye : m[1] === "@" ? Ee : tt });
552
- } else
553
- l.push({ type: 6, index: r });
554
- }
555
- for (const c of a)
556
- s.removeAttribute(c);
557
- }
558
- if (Xt.test(s.tagName)) {
559
- const a = s.textContent.split(w), c = a.length - 1;
560
- if (c > 0) {
561
- s.textContent = N ? N.emptyScript : "";
562
- for (let p = 0; p < c; p++)
563
- s.append(a[p], B()), U.nextNode(), l.push({ type: 2, index: ++r });
564
- s.append(a[c], B());
852
+ for (; (i = T.nextNode()) !== null && h.length < a; ) {
853
+ if (i.nodeType === 1) {
854
+ if (i.hasAttributes())
855
+ for (const l of i.getAttributeNames())
856
+ if (l.endsWith(se)) {
857
+ const p = d[o++], u = i.getAttribute(l).split(A), g = /([.?@])?(.*)/.exec(p);
858
+ h.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? Be : g[1] === "?" ? We : g[1] === "@" ? qe : it }), i.removeAttribute(l);
859
+ } else
860
+ l.startsWith(A) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
861
+ if (ne.test(i.tagName)) {
862
+ const l = i.textContent.split(A), p = l.length - 1;
863
+ if (p > 0) {
864
+ i.textContent = tt ? tt.emptyScript : "";
865
+ for (let u = 0; u < p; u++)
866
+ i.append(l[u], q()), T.nextNode(), h.push({ type: 2, index: ++n });
867
+ i.append(l[p], q());
565
868
  }
566
869
  }
567
- } else if (s.nodeType === 8)
568
- if (s.data === Jt)
569
- l.push({ type: 2, index: r });
870
+ } else if (i.nodeType === 8)
871
+ if (i.data === ie)
872
+ h.push({ type: 2, index: n });
570
873
  else {
571
- let a = -1;
572
- for (; (a = s.data.indexOf(w, a + 1)) !== -1; )
573
- l.push({ type: 7, index: r }), a += w.length - 1;
874
+ let l = -1;
875
+ for (; (l = i.data.indexOf(A, l + 1)) !== -1; )
876
+ h.push({ type: 7, index: n }), l += A.length - 1;
574
877
  }
575
- r++;
878
+ n++;
576
879
  }
577
880
  }
578
881
  static createElement(t, e) {
579
- const i = R.createElement("template");
580
- return i.innerHTML = t, i;
882
+ const s = R.createElement("template");
883
+ return s.innerHTML = t, s;
581
884
  }
582
885
  }
583
- function V(n, t, e = n, i) {
584
- var s, r, o, d;
585
- if (t === I)
886
+ function N(r, t, e = r, s) {
887
+ var o, a;
888
+ if (t === O)
586
889
  return t;
587
- let l = i !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[i] : e._$Cl;
588
- const h = z(t) ? void 0 : t._$litDirective$;
589
- return (l == null ? void 0 : l.constructor) !== h && ((r = l == null ? void 0 : l._$AO) === null || r === void 0 || r.call(l, !1), h === void 0 ? l = void 0 : (l = new h(n), l._$AT(n, e, i)), i !== void 0 ? ((o = (d = e)._$Co) !== null && o !== void 0 ? o : d._$Co = [])[i] = l : e._$Cl = l), l !== void 0 && (t = V(n, l._$AS(n, t.values), l, i)), t;
890
+ let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
891
+ const n = X(t) ? void 0 : t._$litDirective$;
892
+ return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = N(r, i._$AS(r, t.values), i, s)), t;
590
893
  }
591
- class ge {
894
+ class je {
592
895
  constructor(t, e) {
593
896
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
594
897
  }
@@ -599,33 +902,31 @@ class ge {
599
902
  return this._$AM._$AU;
600
903
  }
601
904
  u(t) {
602
- var e;
603
- const { el: { content: i }, parts: s } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : R).importNode(i, !0);
604
- U.currentNode = r;
605
- let o = U.nextNode(), d = 0, l = 0, h = s[0];
905
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? R).importNode(e, !0);
906
+ T.currentNode = i;
907
+ let n = T.nextNode(), o = 0, a = 0, h = s[0];
606
908
  for (; h !== void 0; ) {
607
- if (d === h.index) {
608
- let u;
609
- h.type === 2 ? u = new W(o, o.nextSibling, this, t) : h.type === 1 ? u = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (u = new we(o, this, t)), this._$AV.push(u), h = s[++l];
909
+ if (o === h.index) {
910
+ let c;
911
+ h.type === 2 ? c = new J(n, n.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (c = new Xe(n, this, t)), this._$AV.push(c), h = s[++a];
610
912
  }
611
- d !== (h == null ? void 0 : h.index) && (o = U.nextNode(), d++);
913
+ o !== (h == null ? void 0 : h.index) && (n = T.nextNode(), o++);
612
914
  }
613
- return U.currentNode = R, r;
915
+ return T.currentNode = R, i;
614
916
  }
615
- v(t) {
917
+ p(t) {
616
918
  let e = 0;
617
- for (const i of this._$AV)
618
- i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
919
+ for (const s of this._$AV)
920
+ s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
619
921
  }
620
922
  }
621
- class W {
622
- constructor(t, e, i, s) {
623
- var r;
624
- this.type = 2, this._$AH = _, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cp = (r = s == null ? void 0 : s.isConnected) === null || r === void 0 || r;
625
- }
923
+ class J {
626
924
  get _$AU() {
627
- var t, e;
628
- return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;
925
+ var t;
926
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
927
+ }
928
+ constructor(t, e, s, i) {
929
+ this.type = 2, this._$AH = $, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
629
930
  }
630
931
  get parentNode() {
631
932
  let t = this._$AA.parentNode;
@@ -639,7 +940,7 @@ class W {
639
940
  return this._$AB;
640
941
  }
641
942
  _$AI(t, e = this) {
642
- t = V(this, t, e), z(t) ? t === _ || t == null || t === "" ? (this._$AH !== _ && this._$AR(), this._$AH = _) : t !== this._$AH && t !== I && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : ve(t) ? this.T(t) : this._(t);
943
+ t = N(this, t, e), X(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Le(t) ? this.T(t) : this._(t);
643
944
  }
644
945
  k(t) {
645
946
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -648,179 +949,176 @@ class W {
648
949
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
649
950
  }
650
951
  _(t) {
651
- this._$AH !== _ && z(this._$AH) ? this._$AA.nextSibling.data = t : this.$(R.createTextNode(t)), this._$AH = t;
952
+ this._$AH !== $ && X(this._$AH) ? this._$AA.nextSibling.data = t : this.$(R.createTextNode(t)), this._$AH = t;
652
953
  }
653
954
  g(t) {
654
- var e;
655
- const { values: i, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = q.createElement(s.h, this.options)), s);
656
- if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
657
- this._$AH.v(i);
955
+ var n;
956
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = K.createElement(oe(s.h, s.h[0]), this.options)), s);
957
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === i)
958
+ this._$AH.p(e);
658
959
  else {
659
- const o = new ge(r, this), d = o.u(this.options);
660
- o.v(i), this.$(d), this._$AH = o;
960
+ const o = new je(i, this), a = o.u(this.options);
961
+ o.p(e), this.$(a), this._$AH = o;
661
962
  }
662
963
  }
663
964
  _$AC(t) {
664
965
  let e = It.get(t.strings);
665
- return e === void 0 && It.set(t.strings, e = new q(t)), e;
966
+ return e === void 0 && It.set(t.strings, e = new K(t)), e;
666
967
  }
667
968
  T(t) {
668
- Gt(this._$AH) || (this._$AH = [], this._$AR());
969
+ re(this._$AH) || (this._$AH = [], this._$AR());
669
970
  const e = this._$AH;
670
- let i, s = 0;
671
- for (const r of t)
672
- s === e.length ? e.push(i = new W(this.k(B()), this.k(B()), this, this.options)) : i = e[s], i._$AI(r), s++;
673
- s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
971
+ let s, i = 0;
972
+ for (const n of t)
973
+ i === e.length ? e.push(s = new J(this.k(q()), this.k(q()), this, this.options)) : s = e[i], s._$AI(n), i++;
974
+ i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
674
975
  }
675
976
  _$AR(t = this._$AA.nextSibling, e) {
676
- var i;
677
- for ((i = this._$AP) === null || i === void 0 || i.call(this, !1, !0, e); t && t !== this._$AB; ) {
678
- const s = t.nextSibling;
679
- t.remove(), t = s;
977
+ var s;
978
+ for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
979
+ const i = t.nextSibling;
980
+ t.remove(), t = i;
680
981
  }
681
982
  }
682
983
  setConnected(t) {
683
984
  var e;
684
- this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
985
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
685
986
  }
686
987
  }
687
- class tt {
688
- constructor(t, e, i, s, r) {
689
- this.type = 1, this._$AH = _, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = _;
690
- }
988
+ class it {
691
989
  get tagName() {
692
990
  return this.element.tagName;
693
991
  }
694
992
  get _$AU() {
695
993
  return this._$AM._$AU;
696
994
  }
697
- _$AI(t, e = this, i, s) {
698
- const r = this.strings;
995
+ constructor(t, e, s, i, n) {
996
+ this.type = 1, this._$AH = $, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = $;
997
+ }
998
+ _$AI(t, e = this, s, i) {
999
+ const n = this.strings;
699
1000
  let o = !1;
700
- if (r === void 0)
701
- t = V(this, t, e, 0), o = !z(t) || t !== this._$AH && t !== I, o && (this._$AH = t);
1001
+ if (n === void 0)
1002
+ t = N(this, t, e, 0), o = !X(t) || t !== this._$AH && t !== O, o && (this._$AH = t);
702
1003
  else {
703
- const d = t;
704
- let l, h;
705
- for (t = r[0], l = 0; l < r.length - 1; l++)
706
- h = V(this, d[i + l], e, l), h === I && (h = this._$AH[l]), o || (o = !z(h) || h !== this._$AH[l]), h === _ ? t = _ : t !== _ && (t += (h ?? "") + r[l + 1]), this._$AH[l] = h;
1004
+ const a = t;
1005
+ let h, c;
1006
+ for (t = n[0], h = 0; h < n.length - 1; h++)
1007
+ c = N(this, a[s + h], e, h), c === O && (c = this._$AH[h]), o || (o = !X(c) || c !== this._$AH[h]), c === $ ? t = $ : t !== $ && (t += (c ?? "") + n[h + 1]), this._$AH[h] = c;
707
1008
  }
708
- o && !s && this.j(t);
1009
+ o && !i && this.O(t);
709
1010
  }
710
- j(t) {
711
- t === _ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1011
+ O(t) {
1012
+ t === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
712
1013
  }
713
1014
  }
714
- class fe extends tt {
1015
+ class Be extends it {
715
1016
  constructor() {
716
1017
  super(...arguments), this.type = 3;
717
1018
  }
718
- j(t) {
719
- this.element[this.name] = t === _ ? void 0 : t;
1019
+ O(t) {
1020
+ this.element[this.name] = t === $ ? void 0 : t;
720
1021
  }
721
1022
  }
722
- const Ae = N ? N.emptyScript : "";
723
- class ye extends tt {
1023
+ class We extends it {
724
1024
  constructor() {
725
1025
  super(...arguments), this.type = 4;
726
1026
  }
727
- j(t) {
728
- t && t !== _ ? this.element.setAttribute(this.name, Ae) : this.element.removeAttribute(this.name);
1027
+ O(t) {
1028
+ this.element.toggleAttribute(this.name, !!t && t !== $);
729
1029
  }
730
1030
  }
731
- class Ee extends tt {
732
- constructor(t, e, i, s, r) {
733
- super(t, e, i, s, r), this.type = 5;
1031
+ class qe extends it {
1032
+ constructor(t, e, s, i, n) {
1033
+ super(t, e, s, i, n), this.type = 5;
734
1034
  }
735
1035
  _$AI(t, e = this) {
736
- var i;
737
- if ((t = (i = V(this, t, e, 0)) !== null && i !== void 0 ? i : _) === I)
1036
+ if ((t = N(this, t, e, 0) ?? $) === O)
738
1037
  return;
739
- const s = this._$AH, r = t === _ && s !== _ || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== _ && (s === _ || r);
740
- r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
1038
+ const s = this._$AH, i = t === $ && s !== $ || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== $ && (s === $ || i);
1039
+ i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
741
1040
  }
742
1041
  handleEvent(t) {
743
- var e, i;
744
- typeof this._$AH == "function" ? this._$AH.call((i = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && i !== void 0 ? i : this.element, t) : this._$AH.handleEvent(t);
1042
+ var e;
1043
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
745
1044
  }
746
1045
  }
747
- class we {
748
- constructor(t, e, i) {
749
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
1046
+ class Xe {
1047
+ constructor(t, e, s) {
1048
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
750
1049
  }
751
1050
  get _$AU() {
752
1051
  return this._$AM._$AU;
753
1052
  }
754
1053
  _$AI(t) {
755
- V(this, t);
1054
+ N(this, t);
756
1055
  }
757
1056
  }
758
- const Vt = X.litHtmlPolyfillSupport;
759
- Vt == null || Vt(q, W), ((rt = X.litHtmlVersions) !== null && rt !== void 0 ? rt : X.litHtmlVersions = []).push("2.7.4");
760
- const be = (n, t, e) => {
761
- var i, s;
762
- const r = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : t;
763
- let o = r._$litPart$;
764
- if (o === void 0) {
765
- const d = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;
766
- r._$litPart$ = o = new W(t.insertBefore(B(), d), d, void 0, e ?? {});
767
- }
768
- return o._$AI(n), o;
1057
+ const lt = z.litHtmlPolyfillSupport;
1058
+ lt == null || lt(K, J), (z.litHtmlVersions ?? (z.litHtmlVersions = [])).push("3.1.0");
1059
+ const Ke = (r, t, e) => {
1060
+ const s = (e == null ? void 0 : e.renderBefore) ?? t;
1061
+ let i = s._$litPart$;
1062
+ if (i === void 0) {
1063
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
1064
+ s._$litPart$ = i = new J(t.insertBefore(q(), n), n, void 0, e ?? {});
1065
+ }
1066
+ return i._$AI(r), i;
769
1067
  };
770
1068
  /**
771
1069
  * @license
772
1070
  * Copyright 2017 Google LLC
773
1071
  * SPDX-License-Identifier: BSD-3-Clause
774
1072
  */
775
- var lt, ht;
776
- class k extends T {
1073
+ class j extends x {
777
1074
  constructor() {
778
1075
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
779
1076
  }
780
1077
  createRenderRoot() {
781
- var t, e;
782
- const i = super.createRenderRoot();
783
- return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = i.firstChild), i;
1078
+ var e;
1079
+ const t = super.createRenderRoot();
1080
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
784
1081
  }
785
1082
  update(t) {
786
1083
  const e = this.render();
787
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = be(e, this.renderRoot, this.renderOptions);
1084
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ke(e, this.renderRoot, this.renderOptions);
788
1085
  }
789
1086
  connectedCallback() {
790
1087
  var t;
791
- super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
1088
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
792
1089
  }
793
1090
  disconnectedCallback() {
794
1091
  var t;
795
- super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
1092
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
796
1093
  }
797
1094
  render() {
798
- return I;
1095
+ return O;
799
1096
  }
800
1097
  }
801
- k.finalized = !0, k._$litElement$ = !0, (lt = globalThis.litElementHydrateSupport) === null || lt === void 0 || lt.call(globalThis, { LitElement: k });
802
- const Ot = globalThis.litElementPolyfillSupport;
803
- Ot == null || Ot({ LitElement: k });
804
- ((ht = globalThis.litElementVersions) !== null && ht !== void 0 ? ht : globalThis.litElementVersions = []).push("3.3.2");
805
- function Se(n, t, e) {
806
- function i(s) {
807
- e.dispatchEvent(new CustomEvent(s.type, s));
808
- }
809
- return t.addEventListener(n, i), () => {
810
- t.removeEventListener(n, i);
1098
+ var Dt;
1099
+ j._$litElement$ = !0, j.finalized = !0, (Dt = globalThis.litElementHydrateSupport) == null || Dt.call(globalThis, { LitElement: j });
1100
+ const ct = globalThis.litElementPolyfillSupport;
1101
+ ct == null || ct({ LitElement: j });
1102
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.2");
1103
+ function Je(r, t, e) {
1104
+ function s(i) {
1105
+ e.dispatchEvent(new CustomEvent(i.type, i));
1106
+ }
1107
+ return t.addEventListener(r, s), () => {
1108
+ t.removeEventListener(r, s);
811
1109
  };
812
1110
  }
813
- class Pe {
1111
+ class Fe {
814
1112
  constructor(t, e) {
815
- this._events = [], this._cleanup = [], this._forwardElementRef = Lt(), this.host = t, this._events = e, t.addController(this);
1113
+ this._events = [], this._cleanup = [], this._forwardElementRef = jt(), this.host = t, this._events = e, t.addController(this);
816
1114
  }
817
1115
  register() {
818
- return kt(this._forwardElementRef);
1116
+ return Bt(this._forwardElementRef);
819
1117
  }
820
1118
  hostConnected() {
821
1119
  requestAnimationFrame(() => {
822
1120
  this._events.forEach((t) => {
823
- this._forwardElementRef.value && this._cleanup.push(Se(t, this._forwardElementRef.value, this.host));
1121
+ this._forwardElementRef.value && this._cleanup.push(Je(t, this._forwardElementRef.value, this.host));
824
1122
  });
825
1123
  });
826
1124
  }
@@ -830,52 +1128,86 @@ class Pe {
830
1128
  }), this._cleanup = [];
831
1129
  }
832
1130
  }
833
- const at = "https://vouchfor.com", Ue = "https://d2rxhdlm2q91uk.cloudfront.net", Ce = "https://d1ix11aj5kfygl.cloudfront.net", Re = "https://d157jlwnudd93d.cloudfront.net", Te = "https://bshyfw4h5a.execute-api.ap-southeast-2.amazonaws.com/dev", xe = "https://gyzw7rpbq3.execute-api.ap-southeast-2.amazonaws.com/staging", He = "https://vfcjuim1l3.execute-api.ap-southeast-2.amazonaws.com/prod", Ne = "http://localhost:6060/v1", Ie = "https://embed-staging.vouchfor.com/v1", Ve = "https://embed.vouchfor.com/v1", Oe = "https://dev.vouchfor.com", Me = "https://staging.vouchfor.com", Le = "https://app.vouchfor.com";
834
- function Y(n) {
835
- if (!["dev", "staging", "prod"].includes(n))
836
- throw new Error(`Unknown environment: ${n}`);
837
- if (n === "dev")
1131
+ const Lt = "https://d2rxhdlm2q91uk.cloudfront.net", Ge = "https://d1ix11aj5kfygl.cloudfront.net", Ze = "https://d157jlwnudd93d.cloudfront.net", Vt = "https://bshyfw4h5a.execute-api.ap-southeast-2.amazonaws.com/dev", Ye = "https://gyzw7rpbq3.execute-api.ap-southeast-2.amazonaws.com/staging", Qe = "https://vfcjuim1l3.execute-api.ap-southeast-2.amazonaws.com/prod", ts = "http://localhost:6060/v2", es = "https://embed-dev.vouchfor.com/v2", ss = "https://embed-staging.vouchfor.com/v2", is = "https://embed.vouchfor.com/v2";
1132
+ function et(r) {
1133
+ if (!["local", "dev", "staging", "prod"].includes(r))
1134
+ throw new Error(`Unknown environment: ${r}`);
1135
+ if (r === "local")
838
1136
  return {
839
- marketingUrl: at,
840
- videoUrl: Ue,
841
- publicApiUrl: Te,
842
- embedApiUrl: Ne,
843
- publicRecorderUrl: Oe
1137
+ videoUrl: Lt,
1138
+ publicApiUrl: Vt,
1139
+ embedApiUrl: ts
844
1140
  };
845
- if (n === "staging")
1141
+ if (r === "dev")
846
1142
  return {
847
- marketingUrl: at,
848
- videoUrl: Ce,
849
- publicApiUrl: xe,
850
- embedApiUrl: Ie,
851
- publicRecorderUrl: Me
1143
+ videoUrl: Lt,
1144
+ publicApiUrl: Vt,
1145
+ embedApiUrl: es
852
1146
  };
853
- if (n === "prod")
1147
+ if (r === "staging")
854
1148
  return {
855
- marketingUrl: at,
856
- videoUrl: Re,
857
- publicApiUrl: He,
858
- embedApiUrl: Ve,
859
- publicRecorderUrl: Le
1149
+ videoUrl: Ge,
1150
+ publicApiUrl: Ye,
1151
+ embedApiUrl: ss
1152
+ };
1153
+ if (r === "prod")
1154
+ return {
1155
+ videoUrl: Ze,
1156
+ publicApiUrl: Qe,
1157
+ embedApiUrl: is
860
1158
  };
861
1159
  }
862
- class ke {
1160
+ class rs {
863
1161
  constructor(t) {
864
- this._fetching = !1, this.host = t, new Qt(
1162
+ this._fetching = !1, this.getVouch = async (e, s, i) => {
1163
+ var d;
1164
+ const { embedApiUrl: n } = et(e), o = P(), a = await fetch(`${n}/vouches/${i}`, {
1165
+ method: "GET",
1166
+ headers: [
1167
+ ["X-Api-Key", s],
1168
+ ["X-Cache-Check", o]
1169
+ ]
1170
+ }), h = await a.json();
1171
+ this.host.dispatchEvent(new CustomEvent("vouch:loaded", { detail: i }));
1172
+ const c = (d = a == null ? void 0 : a.headers) == null ? void 0 : d.get("X-Cache-Check");
1173
+ return c && c !== o && fetch(`${n}/vouches/${i}`, {
1174
+ method: "GET",
1175
+ headers: [
1176
+ ["X-Api-Key", s],
1177
+ ["Cache-Control", "max-age=0"]
1178
+ ]
1179
+ }), h;
1180
+ }, this.getTemplate = async (e, s, i) => {
1181
+ var d;
1182
+ const { embedApiUrl: n } = et(e), o = P(), a = await fetch(`${n}/templates/${i}`, {
1183
+ method: "GET",
1184
+ headers: [
1185
+ ["X-Api-Key", s],
1186
+ ["X-Cache-Check", o]
1187
+ ]
1188
+ }), h = await a.json(), c = (d = a == null ? void 0 : a.headers) == null ? void 0 : d.get("X-Cache-Check");
1189
+ return c && c !== o && fetch(`${n}/templates/${i}`, {
1190
+ method: "GET",
1191
+ headers: [
1192
+ ["X-Api-Key", s],
1193
+ ["Cache-Control", "max-age=0"]
1194
+ ]
1195
+ }), h;
1196
+ }, this.host = t, new ae(
865
1197
  this.host,
866
- async ([e, i, s, r, o]) => {
867
- var d, l, h, u;
1198
+ async ([e, s, i, n, o]) => {
1199
+ var a, h, c, d;
868
1200
  try {
869
- if (this.vouch = void 0, this.template = void 0, s) {
870
- const a = await this.getTemplate(e, i, o);
871
- this.vouch = s, this.template = ((l = (d = s == null ? void 0 : s.settings) == null ? void 0 : d.template) == null ? void 0 : l.instance) ?? a;
872
- } else if (r) {
1201
+ if (t.vouch = void 0, t.template = void 0, i) {
1202
+ let l;
1203
+ o && (this.fetching = !0, l = await this.getTemplate(e, s, o)), t.vouch = i, t.template = l ?? ((h = (a = i == null ? void 0 : i.settings) == null ? void 0 : a.template) == null ? void 0 : h.instance);
1204
+ } else if (n) {
873
1205
  this.fetching = !0;
874
- const [a, c] = await Promise.all([
875
- this.getVouch(e, i, r),
876
- this.getTemplate(e, i, o)
1206
+ const [l, p] = await Promise.all([
1207
+ this.getVouch(e, s, n),
1208
+ o ? this.getTemplate(e, s, o) : null
877
1209
  ]);
878
- this.vouch = a, this.template = ((u = (h = a == null ? void 0 : a.settings) == null ? void 0 : h.template) == null ? void 0 : u.instance) ?? c;
1210
+ t.vouch = l, t.template = p ?? ((d = (c = l == null ? void 0 : l.settings) == null ? void 0 : c.template) == null ? void 0 : d.instance);
879
1211
  }
880
1212
  } finally {
881
1213
  this.fetching = !1;
@@ -890,100 +1222,45 @@ class ke {
890
1222
  get fetching() {
891
1223
  return this._fetching;
892
1224
  }
893
- set vouch(t) {
894
- this._vouch !== t && (this._vouch = t, this.host.requestUpdate());
895
- }
896
- get vouch() {
897
- return this._vouch;
898
- }
899
- set template(t) {
900
- this._template !== t && (this._template = t, this.host.requestUpdate());
901
- }
902
- get template() {
903
- return this._template;
904
- }
905
- async getVouch(t, e, i) {
906
- const { embedApiUrl: s } = Y(t);
907
- return i ? fetch(`${s}/vouches/${i}`, {
908
- method: "GET",
909
- headers: [["X-Api-Key", e]]
910
- }).then((r) => r.json()) : null;
911
- }
912
- async getTemplate(t, e, i) {
913
- const { embedApiUrl: s } = Y(t);
914
- return i ? fetch(`${s}/templates/${i}`, {
915
- method: "GET",
916
- headers: [["X-Api-Key", e]]
917
- }).then((r) => r.json()) : null;
918
- }
919
- }
920
- let Z;
921
- const De = new Uint8Array(16);
922
- function je() {
923
- if (!Z && (Z = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Z))
924
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
925
- return Z(De);
926
1225
  }
927
- const $ = [];
928
- for (let n = 0; n < 256; ++n)
929
- $.push((n + 256).toString(16).slice(1));
930
- function Be(n, t = 0) {
931
- return $[n[t + 0]] + $[n[t + 1]] + $[n[t + 2]] + $[n[t + 3]] + "-" + $[n[t + 4]] + $[n[t + 5]] + "-" + $[n[t + 6]] + $[n[t + 7]] + "-" + $[n[t + 8]] + $[n[t + 9]] + "-" + $[n[t + 10]] + $[n[t + 11]] + $[n[t + 12]] + $[n[t + 13]] + $[n[t + 14]] + $[n[t + 15]];
932
- }
933
- const ze = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Mt = {
934
- randomUUID: ze
935
- };
936
- function L(n, t, e) {
937
- if (Mt.randomUUID && !t && !n)
938
- return Mt.randomUUID();
939
- n = n || {};
940
- const i = n.random || (n.rng || je)();
941
- if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
942
- e = e || 0;
943
- for (let s = 0; s < 16; ++s)
944
- t[e + s] = i[s];
945
- return t;
946
- }
947
- return Be(i);
948
- }
949
- const qe = 2e3;
950
- class We {
1226
+ const ns = 1e4;
1227
+ class os {
951
1228
  constructor(t) {
952
1229
  this._tabId = void 0, this._clientId = void 0, this._visitorId = void 0, this._hasPlayed = !1, this._hasLoaded = {}, this._answersViewed = {}, this._streamedTime = {}, this._streamedPrevTimestamp = {}, this._createVisitor = (e) => {
953
- var s, r;
954
- const { publicApiUrl: i } = Y(this.host.env);
955
- return (r = (s = window.localStorage) == null ? void 0 : s.setItem) == null || r.call(s, "vouch-uid-visitor", e), navigator.sendBeacon(`${i}/api/visitor`, JSON.stringify({ visitorId: e })), e;
1230
+ var i, n;
1231
+ const { publicApiUrl: s } = et(this.host.env);
1232
+ return (n = (i = window.localStorage) == null ? void 0 : i.setItem) == null || n.call(i, "vouch-uid-visitor", e), navigator.sendBeacon(`${s}/api/visitor`, JSON.stringify({ visitorId: e })), e;
956
1233
  }, this._getReportingMetadata = () => {
957
- var r, o;
958
- const [e, i] = ((o = (r = Intl.DateTimeFormat().resolvedOptions().timeZone) == null ? void 0 : r.split) == null ? void 0 : o.call(r, "/")) ?? [], s = {};
959
- return [...new URLSearchParams(location.search).entries()].forEach(([d, l]) => {
960
- if (/utm/.test(d)) {
961
- const h = d.toLowerCase().replace(/[-_][a-z0-9]/g, (u) => u.slice(-1).toUpperCase());
962
- s[h] = l;
1234
+ var n, o;
1235
+ const [e, s] = ((o = (n = Intl.DateTimeFormat().resolvedOptions().timeZone) == null ? void 0 : n.split) == null ? void 0 : o.call(n, "/")) ?? [], i = {};
1236
+ return [...new URLSearchParams(location.search).entries()].forEach(([a, h]) => {
1237
+ if (/utm/.test(a)) {
1238
+ const c = a.toLowerCase().replace(/[-_][a-z0-9]/g, (d) => d.slice(-1).toUpperCase());
1239
+ i[c] = h;
963
1240
  }
964
1241
  }), {
965
- source: "media_player",
1242
+ source: this.host.trackingSource,
966
1243
  time: /* @__PURE__ */ new Date(),
967
- region: i,
1244
+ region: s,
968
1245
  country: e,
969
1246
  screenHeight: window.screen.height,
970
1247
  screenWidth: window.screen.width,
971
1248
  referrer: document.referrer,
972
1249
  currentUrl: location.href,
973
- ...s
1250
+ ...i
974
1251
  };
975
- }, this._sendTrackingEvent = (e, i) => {
976
- const { publicApiUrl: s } = Y(this.host.env), { client: r, tab: o, request: d, visitor: l } = this._getUids();
977
- navigator.sendBeacon(
978
- `${s}/api/events`,
1252
+ }, this._sendTrackingEvent = (e, s) => {
1253
+ const { publicApiUrl: i } = et(this.host.env), { client: n, tab: o, request: a, visitor: h } = this._getUids();
1254
+ this.host.enableTracking && navigator.sendBeacon(
1255
+ `${i}/api/events`,
979
1256
  JSON.stringify({
980
1257
  event: e,
981
- payload: i,
1258
+ payload: s,
982
1259
  context: {
983
- "x-uid-client": r,
1260
+ "x-uid-client": n,
984
1261
  "x-uid-tab": o,
985
- "x-uid-request": d,
986
- "x-uid-visitor": l,
1262
+ "x-uid-request": a,
1263
+ "x-uid-visitor": h,
987
1264
  "x-reporting-metadata": this._getReportingMetadata()
988
1265
  }
989
1266
  })
@@ -998,75 +1275,75 @@ class We {
998
1275
  vouchId: e,
999
1276
  streamStart: this.host.currentTime
1000
1277
  }), this._hasPlayed = !0));
1001
- }, this._handleVideoPlay = ({ detail: { id: e, node: i } }) => {
1002
- const s = this._findVouchId();
1003
- s && (this._answersViewed[e] || (this._sendTrackingEvent("VOUCH_RESPONSE_VIEWED", {
1004
- vouchId: s,
1278
+ }, this._handleVideoPlay = ({ detail: { id: e, node: s } }) => {
1279
+ const i = this._findVouchId();
1280
+ i && (this._answersViewed[e] || (this._sendTrackingEvent("VOUCH_RESPONSE_VIEWED", {
1281
+ vouchId: i,
1005
1282
  answerId: e
1006
- }), this._answersViewed[e] = !0), this._streamedTime[e] = i.currentTime, this._streamedPrevTimestamp[e] = Date.now());
1007
- }, this._handleVideoTimeUpdate = ({ detail: { id: e, node: i } }) => {
1008
- var o, d;
1009
- const s = this._findVouchId();
1010
- if (!s)
1283
+ }), this._answersViewed[e] = !0), this._streamedTime[e] = s.currentTime, this._streamedPrevTimestamp[e] = Date.now());
1284
+ }, this._handleVideoTimeUpdate = ({ detail: { id: e, node: s } }) => {
1285
+ var o, a;
1286
+ const i = this._findVouchId();
1287
+ if (!i)
1011
1288
  return;
1012
- const r = Date.now();
1013
- !this.host.paused && // Only fire the video seeked event when this video is the active one
1014
- e === ((d = (o = this.host.scene) == null ? void 0 : o.video) == null ? void 0 : d.id) && // Throttle the frequency that we send streamed events while playing
1015
- r - this._streamedPrevTimestamp[e] > qe && (this._sendTrackingEvent("VIDEO_STREAMED", {
1016
- vouchId: s,
1289
+ const n = Date.now();
1290
+ s.currentTime && !s.paused && !this.host.paused && // Only fire the video seeked event when this video is the active one
1291
+ e === ((a = (o = this.host.scene) == null ? void 0 : o.video) == null ? void 0 : a.id) && // Throttle the frequency that we send streamed events while playing
1292
+ n - this._streamedPrevTimestamp[e] > ns && (this._sendTrackingEvent("VIDEO_STREAMED", {
1293
+ vouchId: i,
1017
1294
  answerId: e,
1018
1295
  streamStart: this._streamedTime[e],
1019
- streamEnd: i.currentTime
1020
- }), this._streamedTime[e] = i.currentTime, this._streamedPrevTimestamp[e] = r);
1021
- }, this._handleVideoPause = ({ detail: { id: e, node: i } }) => {
1022
- const s = this._findVouchId();
1023
- s && (this._sendTrackingEvent("VIDEO_STREAMED", {
1024
- vouchId: s,
1296
+ streamEnd: s.currentTime
1297
+ }), this._streamedTime[e] = s.currentTime, this._streamedPrevTimestamp[e] = n);
1298
+ }, this._handleVideoPause = ({ detail: { id: e, node: s } }) => {
1299
+ const i = this._findVouchId();
1300
+ i && (s.currentTime > this._streamedTime[e] && this._sendTrackingEvent("VIDEO_STREAMED", {
1301
+ vouchId: i,
1025
1302
  answerId: e,
1026
1303
  streamStart: this._streamedTime[e],
1027
- streamEnd: i.currentTime
1304
+ streamEnd: s.currentTime
1028
1305
  }), delete this._streamedTime[e], delete this._streamedPrevTimestamp[e]);
1029
1306
  }, this.host = t, t.addController(this);
1030
1307
  }
1031
1308
  _findVouchId() {
1032
- if (this.host.data)
1033
- return "uuid" in this.host.data ? this.host.data.uuid : this.host.data.id;
1309
+ if (this.host.vouch)
1310
+ return "uuid" in this.host.vouch ? this.host.vouch.uuid : this.host.vouch.id;
1034
1311
  }
1035
1312
  _getUids() {
1036
- var r, o, d, l, h, u, a, c, p, A, m, $t;
1313
+ var n, o, a, h, c, d, l, p, u, g, F, mt;
1037
1314
  if (typeof window > "u")
1038
1315
  return {
1039
1316
  client: null,
1040
1317
  tab: null,
1041
- request: L()
1318
+ request: P()
1042
1319
  };
1043
- const t = this._visitorId || ((o = (r = window.localStorage) == null ? void 0 : r.getItem) == null ? void 0 : o.call(r, "vouch-uid-visitor")) || this._createVisitor(L()), e = this._clientId || ((l = (d = window.localStorage) == null ? void 0 : d.getItem) == null ? void 0 : l.call(d, "vouch-uid-client")) || L(), i = this._tabId || ((u = (h = window.sessionStorage) == null ? void 0 : h.getItem) == null ? void 0 : u.call(h, "vouch-uid-tab")) || L(), s = L();
1044
- return t !== this._visitorId && (this._visitorId = t, (c = (a = window.localStorage) == null ? void 0 : a.setItem) == null || c.call(a, "vouch-uid-visitor", t)), e !== this._clientId && (this._clientId = e, (A = (p = window.localStorage) == null ? void 0 : p.setItem) == null || A.call(p, "vouch-uid-client", e)), i !== this._tabId && (this._tabId = i, ($t = (m = window.sessionStorage) == null ? void 0 : m.setItem) == null || $t.call(m, "vouch-uid-tab", i)), {
1320
+ const t = this._visitorId || ((o = (n = window.localStorage) == null ? void 0 : n.getItem) == null ? void 0 : o.call(n, "vouch-uid-visitor")) || this._createVisitor(P()), e = this._clientId || ((h = (a = window.localStorage) == null ? void 0 : a.getItem) == null ? void 0 : h.call(a, "vouch-uid-client")) || P(), s = this._tabId || ((d = (c = window.sessionStorage) == null ? void 0 : c.getItem) == null ? void 0 : d.call(c, "vouch-uid-tab")) || P(), i = P();
1321
+ return t !== this._visitorId && (this._visitorId = t, (p = (l = window.localStorage) == null ? void 0 : l.setItem) == null || p.call(l, "vouch-uid-visitor", t)), e !== this._clientId && (this._clientId = e, (g = (u = window.localStorage) == null ? void 0 : u.setItem) == null || g.call(u, "vouch-uid-client", e)), s !== this._tabId && (this._tabId = s, (mt = (F = window.sessionStorage) == null ? void 0 : F.setItem) == null || mt.call(F, "vouch-uid-tab", s)), {
1045
1322
  client: e,
1046
- tab: i,
1047
- request: s,
1323
+ tab: s,
1324
+ request: i,
1048
1325
  visitor: t
1049
1326
  };
1050
1327
  }
1051
1328
  hostConnected() {
1052
1329
  requestAnimationFrame(() => {
1053
- var t, e, i, s;
1054
- this.host.addEventListener("vouch:loaded", this._handleVouchLoaded), (t = this.host.mediaPlayer) == null || t.addEventListener("play", this._handlePlay), (e = this.host.mediaPlayer) == null || e.addEventListener("video:play", this._handleVideoPlay), (i = this.host.mediaPlayer) == null || i.addEventListener("video:pause", this._handleVideoPause), (s = this.host.mediaPlayer) == null || s.addEventListener("video:timeupdate", this._handleVideoTimeUpdate);
1330
+ var t, e, s, i;
1331
+ this.host.addEventListener("vouch:loaded", this._handleVouchLoaded), (t = this.host.mediaPlayer) == null || t.addEventListener("play", this._handlePlay), (e = this.host.mediaPlayer) == null || e.addEventListener("video:play", this._handleVideoPlay), (s = this.host.mediaPlayer) == null || s.addEventListener("video:pause", this._handleVideoPause), (i = this.host.mediaPlayer) == null || i.addEventListener("video:timeupdate", this._handleVideoTimeUpdate);
1055
1332
  });
1056
1333
  }
1057
1334
  hostDisconnected() {
1058
- var t, e, i, s;
1059
- this.host.removeEventListener("vouch:loaded", this._handleVouchLoaded), (t = this.host.mediaPlayer) == null || t.removeEventListener("play", this._handlePlay), (e = this.host.mediaPlayer) == null || e.removeEventListener("video:play", this._handleVideoPlay), (i = this.host.mediaPlayer) == null || i.removeEventListener("video:pause", this._handleVideoPause), (s = this.host.mediaPlayer) == null || s.removeEventListener("video:timeupdate", this._handleVideoTimeUpdate);
1335
+ var t, e, s, i;
1336
+ this.host.removeEventListener("vouch:loaded", this._handleVouchLoaded), (t = this.host.mediaPlayer) == null || t.removeEventListener("play", this._handlePlay), (e = this.host.mediaPlayer) == null || e.removeEventListener("video:play", this._handleVideoPlay), (s = this.host.mediaPlayer) == null || s.removeEventListener("video:pause", this._handleVideoPause), (i = this.host.mediaPlayer) == null || i.removeEventListener("video:timeupdate", this._handleVideoTimeUpdate);
1060
1337
  }
1061
1338
  }
1062
- var Ze = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, f = (n, t, e, i) => {
1063
- for (var s = i > 1 ? void 0 : i ? Fe(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1064
- (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1065
- return i && s && Ze(t, e, s), s;
1339
+ var hs = Object.defineProperty, as = Object.getOwnPropertyDescriptor, f = (r, t, e, s) => {
1340
+ for (var i = s > 1 ? void 0 : s ? as(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1341
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
1342
+ return s && i && hs(t, e, i), i;
1066
1343
  };
1067
- let g = class extends k {
1344
+ let m = class extends j {
1068
1345
  constructor() {
1069
- super(...arguments), this._mediaPlayerRef = Lt(), this.env = "prod", this.apiKey = "", this.preload = "auto", this.autoplay = !1, this.aspectRatio = 0, this.eventController = new Pe(this, [
1346
+ super(...arguments), this._mediaPlayerRef = jt(), this.env = "prod", this.apiKey = "", this.enableTracking = !0, this.trackingSource = "embed", this.preload = "auto", this.autoplay = !1, this.aspectRatio = 0, this.eventController = new Fe(this, [
1070
1347
  "durationchange",
1071
1348
  "ended",
1072
1349
  "error",
@@ -1091,143 +1368,149 @@ let g = class extends k {
1091
1368
  "video:timeupdate",
1092
1369
  "video:ended",
1093
1370
  "video:error"
1094
- ]), this._fetcherController = new ke(this), this._trackingController = new We(this);
1095
- }
1096
- get vouch() {
1097
- return this._fetcherController.vouch;
1098
- }
1099
- get template() {
1100
- return this._fetcherController.template;
1371
+ ]), this._fetcherController = new rs(this), this._trackingController = new os(this);
1101
1372
  }
1102
1373
  get fetching() {
1103
1374
  return this._fetcherController.fetching;
1104
1375
  }
1105
1376
  get waiting() {
1106
- var n;
1107
- return (n = this._mediaPlayerRef.value) == null ? void 0 : n.waiting;
1377
+ var r;
1378
+ return (r = this._mediaPlayerRef.value) == null ? void 0 : r.waiting;
1108
1379
  }
1109
1380
  get seeking() {
1110
- var n;
1111
- return (n = this._mediaPlayerRef.value) == null ? void 0 : n.seeking;
1381
+ var r;
1382
+ return (r = this._mediaPlayerRef.value) == null ? void 0 : r.seeking;
1112
1383
  }
1113
1384
  get paused() {
1114
- var n;
1115
- return (n = this._mediaPlayerRef.value) == null ? void 0 : n.paused;
1385
+ var r;
1386
+ return (r = this._mediaPlayerRef.value) == null ? void 0 : r.paused;
1116
1387
  }
1117
1388
  get captions() {
1118
- var n;
1119
- return (n = this._mediaPlayerRef.value) == null ? void 0 : n.captions;
1389
+ var r;
1390
+ return (r = this._mediaPlayerRef.value) == null ? void 0 : r.captions;
1120
1391
  }
1121
1392
  get fullscreen() {
1122
- var n;
1123
- return (n = this._mediaPlayerRef.value) == null ? void 0 : n.fullscreen;
1393
+ var r;
1394
+ return (r = this._mediaPlayerRef.value) == null ? void 0 : r.fullscreen;
1124
1395
  }
1125
1396
  get duration() {
1126
- var n;
1127
- return (n = this._mediaPlayerRef.value) == null ? void 0 : n.duration;
1397
+ var r;
1398
+ return (r = this._mediaPlayerRef.value) == null ? void 0 : r.duration;
1128
1399
  }
1129
- set currentTime(n) {
1130
- this._mediaPlayerRef.value && (this._mediaPlayerRef.value.currentTime = n);
1400
+ set currentTime(r) {
1401
+ this._mediaPlayerRef.value && (this._mediaPlayerRef.value.currentTime = r);
1131
1402
  }
1132
1403
  get currentTime() {
1133
- var n;
1134
- return ((n = this._mediaPlayerRef.value) == null ? void 0 : n.currentTime) ?? 0;
1404
+ var r;
1405
+ return ((r = this._mediaPlayerRef.value) == null ? void 0 : r.currentTime) ?? 0;
1135
1406
  }
1136
- set playbackRate(n) {
1137
- this._mediaPlayerRef.value && (this._mediaPlayerRef.value.playbackRate = n);
1407
+ set playbackRate(r) {
1408
+ this._mediaPlayerRef.value && (this._mediaPlayerRef.value.playbackRate = r);
1138
1409
  }
1139
1410
  get playbackRate() {
1140
- var n;
1141
- return ((n = this._mediaPlayerRef.value) == null ? void 0 : n.playbackRate) ?? 1;
1411
+ var r;
1412
+ return ((r = this._mediaPlayerRef.value) == null ? void 0 : r.playbackRate) ?? 1;
1142
1413
  }
1143
- set volume(n) {
1144
- this._mediaPlayerRef.value && (this._mediaPlayerRef.value.volume = n);
1414
+ set volume(r) {
1415
+ this._mediaPlayerRef.value && (this._mediaPlayerRef.value.volume = r);
1145
1416
  }
1146
1417
  get volume() {
1147
- var n;
1148
- return ((n = this._mediaPlayerRef.value) == null ? void 0 : n.volume) ?? 1;
1418
+ var r;
1419
+ return ((r = this._mediaPlayerRef.value) == null ? void 0 : r.volume) ?? 1;
1149
1420
  }
1150
- set muted(n) {
1151
- this._mediaPlayerRef.value && (this._mediaPlayerRef.value.muted = n);
1421
+ set muted(r) {
1422
+ this._mediaPlayerRef.value && (this._mediaPlayerRef.value.muted = r);
1152
1423
  }
1153
1424
  get muted() {
1154
- var n;
1155
- return ((n = this._mediaPlayerRef.value) == null ? void 0 : n.muted) ?? !1;
1425
+ var r;
1426
+ return ((r = this._mediaPlayerRef.value) == null ? void 0 : r.muted) ?? !1;
1156
1427
  }
1157
1428
  get scene() {
1158
- var n;
1159
- return ((n = this._mediaPlayerRef.value) == null ? void 0 : n.scene) ?? null;
1429
+ var r;
1430
+ return ((r = this._mediaPlayerRef.value) == null ? void 0 : r.scene) ?? null;
1160
1431
  }
1161
1432
  get scenes() {
1162
- var n;
1163
- return ((n = this._mediaPlayerRef.value) == null ? void 0 : n.scenes) ?? [];
1433
+ var r;
1434
+ return ((r = this._mediaPlayerRef.value) == null ? void 0 : r.scenes) ?? [];
1164
1435
  }
1165
1436
  get videoState() {
1166
- var n;
1167
- return (n = this._mediaPlayerRef.value) == null ? void 0 : n.videoState;
1437
+ var r;
1438
+ return (r = this._mediaPlayerRef.value) == null ? void 0 : r.videoState;
1168
1439
  }
1169
1440
  get mediaPlayer() {
1170
1441
  return this._mediaPlayerRef.value;
1171
1442
  }
1172
1443
  play() {
1173
- var n;
1174
- (n = this._mediaPlayerRef.value) == null || n.play();
1444
+ var r;
1445
+ (r = this._mediaPlayerRef.value) == null || r.play();
1175
1446
  }
1176
1447
  pause() {
1177
- var n;
1178
- (n = this._mediaPlayerRef.value) == null || n.pause();
1448
+ var r;
1449
+ (r = this._mediaPlayerRef.value) == null || r.pause();
1179
1450
  }
1180
- setScene(n) {
1451
+ setScene(r) {
1181
1452
  var t;
1182
- (t = this._mediaPlayerRef.value) == null || t.setScene(n);
1453
+ (t = this._mediaPlayerRef.value) == null || t.setScene(r);
1183
1454
  }
1184
1455
  render() {
1185
- return $e`
1456
+ return De`
1186
1457
  <vmp-new-media-player
1187
- ${kt(this._mediaPlayerRef)}
1458
+ ${Bt(this._mediaPlayerRef)}
1188
1459
  ${this.eventController.register()}
1189
1460
  ?autoplay=${this.autoplay}
1190
1461
  ?loading=${this.fetching}
1191
1462
  .data=${this.vouch}
1192
1463
  .template=${this.template}
1193
- aspectRatio=${mt(this.aspectRatio)}
1194
- preload=${mt(this.preload)}
1464
+ aspectRatio=${ft(this.aspectRatio)}
1465
+ preload=${ft(this.preload)}
1195
1466
  .controls=${this.controls}
1196
1467
  ></vmp-new-media-player>
1197
1468
  `;
1198
1469
  }
1199
1470
  };
1200
1471
  f([
1201
- y({ type: Object, attribute: "data" })
1202
- ], g.prototype, "data", 2);
1472
+ v({ type: Object, attribute: "data" })
1473
+ ], m.prototype, "data", 2);
1474
+ f([
1475
+ v({ type: String })
1476
+ ], m.prototype, "vouchId", 2);
1477
+ f([
1478
+ v({ type: String })
1479
+ ], m.prototype, "templateId", 2);
1480
+ f([
1481
+ v({ type: String })
1482
+ ], m.prototype, "env", 2);
1483
+ f([
1484
+ v({ type: String })
1485
+ ], m.prototype, "apiKey", 2);
1203
1486
  f([
1204
- y({ type: String })
1205
- ], g.prototype, "vouchId", 2);
1487
+ v({ type: Boolean })
1488
+ ], m.prototype, "enableTracking", 2);
1206
1489
  f([
1207
- y({ type: String })
1208
- ], g.prototype, "templateId", 2);
1490
+ v({ type: String })
1491
+ ], m.prototype, "trackingSource", 2);
1209
1492
  f([
1210
- y({ type: String })
1211
- ], g.prototype, "env", 2);
1493
+ v({ type: Array })
1494
+ ], m.prototype, "controls", 2);
1212
1495
  f([
1213
- y({ type: String })
1214
- ], g.prototype, "apiKey", 2);
1496
+ v({ type: String })
1497
+ ], m.prototype, "preload", 2);
1215
1498
  f([
1216
- y({ type: Array })
1217
- ], g.prototype, "controls", 2);
1499
+ v({ type: Boolean })
1500
+ ], m.prototype, "autoplay", 2);
1218
1501
  f([
1219
- y({ type: String })
1220
- ], g.prototype, "preload", 2);
1502
+ v({ type: Number })
1503
+ ], m.prototype, "aspectRatio", 2);
1221
1504
  f([
1222
- y({ type: Boolean })
1223
- ], g.prototype, "autoplay", 2);
1505
+ zt()
1506
+ ], m.prototype, "vouch", 2);
1224
1507
  f([
1225
- y({ type: Number })
1226
- ], g.prototype, "aspectRatio", 2);
1227
- g = f([
1228
- Yt("vouch-embed")
1229
- ], g);
1508
+ zt()
1509
+ ], m.prototype, "template", 2);
1510
+ m = f([
1511
+ he("vouch-embed")
1512
+ ], m);
1230
1513
  export {
1231
- g as Embed
1514
+ m as Embed
1232
1515
  };
1233
1516
  //# sourceMappingURL=embeds.js.map