@everymatrix/player-consents 1.44.0 → 1.53.10

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.
@@ -0,0 +1,629 @@
1
+ function d() {
2
+ }
3
+ function S(t) {
4
+ return t();
5
+ }
6
+ function j() {
7
+ return /* @__PURE__ */ Object.create(null);
8
+ }
9
+ function b(t) {
10
+ t.forEach(S);
11
+ }
12
+ function M(t) {
13
+ return typeof t == "function";
14
+ }
15
+ function z(t, e) {
16
+ return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
17
+ }
18
+ function G(t) {
19
+ return Object.keys(t).length === 0;
20
+ }
21
+ function I(t, ...e) {
22
+ if (t == null) {
23
+ for (const i of e)
24
+ i(void 0);
25
+ return d;
26
+ }
27
+ const n = t.subscribe(...e);
28
+ return n.unsubscribe ? () => n.unsubscribe() : n;
29
+ }
30
+ function at(t, e, n) {
31
+ t.$$.on_destroy.push(I(e, n));
32
+ }
33
+ function ht(t) {
34
+ return t ?? "";
35
+ }
36
+ function U(t, e) {
37
+ t.appendChild(e);
38
+ }
39
+ function D(t, e, n) {
40
+ const i = F(t);
41
+ if (!i.getElementById(e)) {
42
+ const s = x("style");
43
+ s.id = e, s.textContent = n, J(i, s);
44
+ }
45
+ }
46
+ function F(t) {
47
+ if (!t) return document;
48
+ const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
49
+ return e && /** @type {ShadowRoot} */
50
+ e.host ? (
51
+ /** @type {ShadowRoot} */
52
+ e
53
+ ) : t.ownerDocument;
54
+ }
55
+ function J(t, e) {
56
+ return U(
57
+ /** @type {Document} */
58
+ t.head || t,
59
+ e
60
+ ), e.sheet;
61
+ }
62
+ function C(t, e, n) {
63
+ t.insertBefore(e, n || null);
64
+ }
65
+ function w(t) {
66
+ t.parentNode && t.parentNode.removeChild(t);
67
+ }
68
+ function $t(t, e) {
69
+ for (let n = 0; n < t.length; n += 1)
70
+ t[n] && t[n].d(e);
71
+ }
72
+ function x(t) {
73
+ return document.createElement(t);
74
+ }
75
+ function V(t) {
76
+ return document.createElementNS("http://www.w3.org/2000/svg", t);
77
+ }
78
+ function P(t) {
79
+ return document.createTextNode(t);
80
+ }
81
+ function _t() {
82
+ return P(" ");
83
+ }
84
+ function mt() {
85
+ return P("");
86
+ }
87
+ function pt(t, e, n, i) {
88
+ return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
89
+ }
90
+ function H(t, e, n) {
91
+ n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
92
+ }
93
+ function gt(t, e, n) {
94
+ const i = e.toLowerCase();
95
+ i in t ? t[i] = typeof t[i] == "boolean" && n === "" ? !0 : n : e in t ? t[e] = typeof t[e] == "boolean" && n === "" ? !0 : n : H(t, e, n);
96
+ }
97
+ function q(t) {
98
+ return Array.from(t.childNodes);
99
+ }
100
+ function yt(t, e) {
101
+ e = "" + e, t.data !== e && (t.data = /** @type {string} */
102
+ e);
103
+ }
104
+ class bt {
105
+ /**
106
+ * @private
107
+ * @default false
108
+ */
109
+ is_svg = !1;
110
+ /** parent for creating node */
111
+ e = void 0;
112
+ /** html tag nodes */
113
+ n = void 0;
114
+ /** target */
115
+ t = void 0;
116
+ /** anchor */
117
+ a = void 0;
118
+ constructor(e = !1) {
119
+ this.is_svg = e, this.e = this.n = null;
120
+ }
121
+ /**
122
+ * @param {string} html
123
+ * @returns {void}
124
+ */
125
+ c(e) {
126
+ this.h(e);
127
+ }
128
+ /**
129
+ * @param {string} html
130
+ * @param {HTMLElement | SVGElement} target
131
+ * @param {HTMLElement | SVGElement} anchor
132
+ * @returns {void}
133
+ */
134
+ m(e, n, i = null) {
135
+ this.e || (this.is_svg ? this.e = V(
136
+ /** @type {keyof SVGElementTagNameMap} */
137
+ n.nodeName
138
+ ) : this.e = x(
139
+ /** @type {keyof HTMLElementTagNameMap} */
140
+ n.nodeType === 11 ? "TEMPLATE" : n.nodeName
141
+ ), this.t = n.tagName !== "TEMPLATE" ? n : (
142
+ /** @type {HTMLTemplateElement} */
143
+ n.content
144
+ ), this.c(e)), this.i(i);
145
+ }
146
+ /**
147
+ * @param {string} html
148
+ * @returns {void}
149
+ */
150
+ h(e) {
151
+ this.e.innerHTML = e, this.n = Array.from(
152
+ this.e.nodeName === "TEMPLATE" ? this.e.content.childNodes : this.e.childNodes
153
+ );
154
+ }
155
+ /**
156
+ * @returns {void} */
157
+ i(e) {
158
+ for (let n = 0; n < this.n.length; n += 1)
159
+ C(this.t, this.n[n], e);
160
+ }
161
+ /**
162
+ * @param {string} html
163
+ * @returns {void}
164
+ */
165
+ p(e) {
166
+ this.d(), this.h(e), this.i(this.a);
167
+ }
168
+ /**
169
+ * @returns {void} */
170
+ d() {
171
+ this.n.forEach(w);
172
+ }
173
+ }
174
+ function K(t) {
175
+ const e = {};
176
+ return t.childNodes.forEach(
177
+ /** @param {Element} node */
178
+ (n) => {
179
+ e[n.slot || "default"] = !0;
180
+ }
181
+ ), e;
182
+ }
183
+ let p;
184
+ function m(t) {
185
+ p = t;
186
+ }
187
+ function Q() {
188
+ if (!p) throw new Error("Function called outside component initialization");
189
+ return p;
190
+ }
191
+ function wt(t) {
192
+ Q().$$.on_mount.push(t);
193
+ }
194
+ const h = [], L = [];
195
+ let $ = [];
196
+ const O = [], W = /* @__PURE__ */ Promise.resolve();
197
+ let v = !1;
198
+ function X() {
199
+ v || (v = !0, W.then(y));
200
+ }
201
+ function k(t) {
202
+ $.push(t);
203
+ }
204
+ const E = /* @__PURE__ */ new Set();
205
+ let a = 0;
206
+ function y() {
207
+ if (a !== 0)
208
+ return;
209
+ const t = p;
210
+ do {
211
+ try {
212
+ for (; a < h.length; ) {
213
+ const e = h[a];
214
+ a++, m(e), Y(e.$$);
215
+ }
216
+ } catch (e) {
217
+ throw h.length = 0, a = 0, e;
218
+ }
219
+ for (m(null), h.length = 0, a = 0; L.length; ) L.pop()();
220
+ for (let e = 0; e < $.length; e += 1) {
221
+ const n = $[e];
222
+ E.has(n) || (E.add(n), n());
223
+ }
224
+ $.length = 0;
225
+ } while (h.length);
226
+ for (; O.length; )
227
+ O.pop()();
228
+ v = !1, E.clear(), m(t);
229
+ }
230
+ function Y(t) {
231
+ if (t.fragment !== null) {
232
+ t.update(), b(t.before_update);
233
+ const e = t.dirty;
234
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
235
+ }
236
+ }
237
+ function Z(t) {
238
+ const e = [], n = [];
239
+ $.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), $ = e;
240
+ }
241
+ const tt = /* @__PURE__ */ new Set();
242
+ function et(t, e) {
243
+ t && t.i && (tt.delete(t), t.i(e));
244
+ }
245
+ function xt(t) {
246
+ return t?.length !== void 0 ? t : Array.from(t);
247
+ }
248
+ function nt(t, e, n) {
249
+ const { fragment: i, after_update: s } = t.$$;
250
+ i && i.m(e, n), k(() => {
251
+ const o = t.$$.on_mount.map(S).filter(M);
252
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : b(o), t.$$.on_mount = [];
253
+ }), s.forEach(k);
254
+ }
255
+ function st(t, e) {
256
+ const n = t.$$;
257
+ n.fragment !== null && (Z(n.after_update), b(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
258
+ }
259
+ function it(t, e) {
260
+ t.$$.dirty[0] === -1 && (h.push(t), X(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
261
+ }
262
+ function rt(t, e, n, i, s, o, u = null, c = [-1]) {
263
+ const l = p;
264
+ m(t);
265
+ const r = t.$$ = {
266
+ fragment: null,
267
+ ctx: [],
268
+ // state
269
+ props: o,
270
+ update: d,
271
+ not_equal: s,
272
+ bound: j(),
273
+ // lifecycle
274
+ on_mount: [],
275
+ on_destroy: [],
276
+ on_disconnect: [],
277
+ before_update: [],
278
+ after_update: [],
279
+ context: new Map(e.context || (l ? l.$$.context : [])),
280
+ // everything else
281
+ callbacks: j(),
282
+ dirty: c,
283
+ skip_bound: !1,
284
+ root: e.target || l.$$.root
285
+ };
286
+ u && u(r.root);
287
+ let _ = !1;
288
+ if (r.ctx = n ? n(t, e.props || {}, (f, A, ...N) => {
289
+ const T = N.length ? N[0] : A;
290
+ return r.ctx && s(r.ctx[f], r.ctx[f] = T) && (!r.skip_bound && r.bound[f] && r.bound[f](T), _ && it(t, f)), A;
291
+ }) : [], r.update(), _ = !0, b(r.before_update), r.fragment = i ? i(r.ctx) : !1, e.target) {
292
+ if (e.hydrate) {
293
+ const f = q(e.target);
294
+ r.fragment && r.fragment.l(f), f.forEach(w);
295
+ } else
296
+ r.fragment && r.fragment.c();
297
+ e.intro && et(t.$$.fragment), nt(t, e.target, e.anchor), y();
298
+ }
299
+ m(l);
300
+ }
301
+ let B;
302
+ typeof HTMLElement == "function" && (B = class extends HTMLElement {
303
+ /** The Svelte component constructor */
304
+ $$ctor;
305
+ /** Slots */
306
+ $$s;
307
+ /** The Svelte component instance */
308
+ $$c;
309
+ /** Whether or not the custom element is connected */
310
+ $$cn = !1;
311
+ /** Component props data */
312
+ $$d = {};
313
+ /** `true` if currently in the process of reflecting component props back to attributes */
314
+ $$r = !1;
315
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
316
+ $$p_d = {};
317
+ /** @type {Record<string, Function[]>} Event listeners */
318
+ $$l = {};
319
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
320
+ $$l_u = /* @__PURE__ */ new Map();
321
+ constructor(t, e, n) {
322
+ super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
323
+ }
324
+ addEventListener(t, e, n) {
325
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
326
+ const i = this.$$c.$on(t, e);
327
+ this.$$l_u.set(e, i);
328
+ }
329
+ super.addEventListener(t, e, n);
330
+ }
331
+ removeEventListener(t, e, n) {
332
+ if (super.removeEventListener(t, e, n), this.$$c) {
333
+ const i = this.$$l_u.get(e);
334
+ i && (i(), this.$$l_u.delete(e));
335
+ }
336
+ }
337
+ async connectedCallback() {
338
+ if (this.$$cn = !0, !this.$$c) {
339
+ let t = function(s) {
340
+ return () => {
341
+ let o;
342
+ return {
343
+ c: function() {
344
+ o = x("slot"), s !== "default" && H(o, "name", s);
345
+ },
346
+ /**
347
+ * @param {HTMLElement} target
348
+ * @param {HTMLElement} [anchor]
349
+ */
350
+ m: function(l, r) {
351
+ C(l, o, r);
352
+ },
353
+ d: function(l) {
354
+ l && w(o);
355
+ }
356
+ };
357
+ };
358
+ };
359
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
360
+ return;
361
+ const e = {}, n = K(this);
362
+ for (const s of this.$$s)
363
+ s in n && (e[s] = [t(s)]);
364
+ for (const s of this.attributes) {
365
+ const o = this.$$g_p(s.name);
366
+ o in this.$$d || (this.$$d[o] = g(o, s.value, this.$$p_d, "toProp"));
367
+ }
368
+ for (const s in this.$$p_d)
369
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
370
+ this.$$c = new this.$$ctor({
371
+ target: this.shadowRoot || this,
372
+ props: {
373
+ ...this.$$d,
374
+ $$slots: e,
375
+ $$scope: {
376
+ ctx: []
377
+ }
378
+ }
379
+ });
380
+ const i = () => {
381
+ this.$$r = !0;
382
+ for (const s in this.$$p_d)
383
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
384
+ const o = g(
385
+ s,
386
+ this.$$d[s],
387
+ this.$$p_d,
388
+ "toAttribute"
389
+ );
390
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
391
+ }
392
+ this.$$r = !1;
393
+ };
394
+ this.$$c.$$.after_update.push(i), i();
395
+ for (const s in this.$$l)
396
+ for (const o of this.$$l[s]) {
397
+ const u = this.$$c.$on(s, o);
398
+ this.$$l_u.set(o, u);
399
+ }
400
+ this.$$l = {};
401
+ }
402
+ }
403
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
404
+ // and setting attributes through setAttribute etc, this is helpful
405
+ attributeChangedCallback(t, e, n) {
406
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = g(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
407
+ }
408
+ disconnectedCallback() {
409
+ this.$$cn = !1, Promise.resolve().then(() => {
410
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
411
+ });
412
+ }
413
+ $$g_p(t) {
414
+ return Object.keys(this.$$p_d).find(
415
+ (e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
416
+ ) || t;
417
+ }
418
+ });
419
+ function g(t, e, n, i) {
420
+ const s = n[t]?.type;
421
+ if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !n[t])
422
+ return e;
423
+ if (i === "toAttribute")
424
+ switch (s) {
425
+ case "Object":
426
+ case "Array":
427
+ return e == null ? null : JSON.stringify(e);
428
+ case "Boolean":
429
+ return e ? "" : null;
430
+ case "Number":
431
+ return e ?? null;
432
+ default:
433
+ return e;
434
+ }
435
+ else
436
+ switch (s) {
437
+ case "Object":
438
+ case "Array":
439
+ return e && JSON.parse(e);
440
+ case "Boolean":
441
+ return e;
442
+ case "Number":
443
+ return e != null ? +e : e;
444
+ default:
445
+ return e;
446
+ }
447
+ }
448
+ function ot(t, e, n, i, s, o) {
449
+ let u = class extends B {
450
+ constructor() {
451
+ super(t, n, s), this.$$p_d = e;
452
+ }
453
+ static get observedAttributes() {
454
+ return Object.keys(e).map(
455
+ (c) => (e[c].attribute || c).toLowerCase()
456
+ );
457
+ }
458
+ };
459
+ return Object.keys(e).forEach((c) => {
460
+ Object.defineProperty(u.prototype, c, {
461
+ get() {
462
+ return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
463
+ },
464
+ set(l) {
465
+ l = g(c, l, e), this.$$d[c] = l, this.$$c?.$set({ [c]: l });
466
+ }
467
+ });
468
+ }), i.forEach((c) => {
469
+ Object.defineProperty(u.prototype, c, {
470
+ get() {
471
+ return this.$$c?.[c];
472
+ }
473
+ });
474
+ }), t.element = /** @type {any} */
475
+ u, u;
476
+ }
477
+ class ct {
478
+ /**
479
+ * ### PRIVATE API
480
+ *
481
+ * Do not use, may change at any time
482
+ *
483
+ * @type {any}
484
+ */
485
+ $$ = void 0;
486
+ /**
487
+ * ### PRIVATE API
488
+ *
489
+ * Do not use, may change at any time
490
+ *
491
+ * @type {any}
492
+ */
493
+ $$set = void 0;
494
+ /** @returns {void} */
495
+ $destroy() {
496
+ st(this, 1), this.$destroy = d;
497
+ }
498
+ /**
499
+ * @template {Extract<keyof Events, string>} K
500
+ * @param {K} type
501
+ * @param {((e: Events[K]) => void) | null | undefined} callback
502
+ * @returns {() => void}
503
+ */
504
+ $on(e, n) {
505
+ if (!M(n))
506
+ return d;
507
+ const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
508
+ return i.push(n), () => {
509
+ const s = i.indexOf(n);
510
+ s !== -1 && i.splice(s, 1);
511
+ };
512
+ }
513
+ /**
514
+ * @param {Partial<Props>} props
515
+ * @returns {void}
516
+ */
517
+ $set(e) {
518
+ this.$$set && !G(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
519
+ }
520
+ }
521
+ const lt = "4";
522
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(lt);
523
+ function ut(t) {
524
+ D(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
525
+ }
526
+ function ft(t) {
527
+ let e;
528
+ return {
529
+ c() {
530
+ e = x("div"), e.innerHTML = '<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
531
+ },
532
+ m(n, i) {
533
+ C(n, e, i), t[3](e);
534
+ },
535
+ p: d,
536
+ i: d,
537
+ o: d,
538
+ d(n) {
539
+ n && w(e), t[3](null);
540
+ }
541
+ };
542
+ }
543
+ function dt(t, e, n) {
544
+ let { clientstyling: i = "" } = e, { clientstylingurl: s = "" } = e, o;
545
+ const u = () => {
546
+ let r = document.createElement("style");
547
+ r.innerHTML = i, o.appendChild(r);
548
+ }, c = () => {
549
+ let r = new URL(s), _ = document.createElement("style");
550
+ fetch(r.href).then((f) => f.text()).then((f) => {
551
+ _.innerHTML = f, setTimeout(
552
+ () => {
553
+ o.appendChild(_);
554
+ },
555
+ 1
556
+ ), setTimeout(
557
+ () => {
558
+ },
559
+ 500
560
+ );
561
+ });
562
+ };
563
+ function l(r) {
564
+ L[r ? "unshift" : "push"](() => {
565
+ o = r, n(0, o);
566
+ });
567
+ }
568
+ return t.$$set = (r) => {
569
+ "clientstyling" in r && n(1, i = r.clientstyling), "clientstylingurl" in r && n(2, s = r.clientstylingurl);
570
+ }, t.$$.update = () => {
571
+ t.$$.dirty & /*clientstyling, customStylingContainer*/
572
+ 3 && i && o && u(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
573
+ 5 && s && o && c();
574
+ }, [o, i, s, l];
575
+ }
576
+ class R extends ct {
577
+ constructor(e) {
578
+ super(), rt(this, e, dt, ft, z, { clientstyling: 1, clientstylingurl: 2 }, ut);
579
+ }
580
+ get clientstyling() {
581
+ return this.$$.ctx[1];
582
+ }
583
+ set clientstyling(e) {
584
+ this.$$set({ clientstyling: e }), y();
585
+ }
586
+ get clientstylingurl() {
587
+ return this.$$.ctx[2];
588
+ }
589
+ set clientstylingurl(e) {
590
+ this.$$set({ clientstylingurl: e }), y();
591
+ }
592
+ }
593
+ ot(R, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
594
+ const Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
595
+ __proto__: null,
596
+ default: R
597
+ }, Symbol.toStringTag, { value: "Module" }));
598
+ export {
599
+ gt as A,
600
+ Et as G,
601
+ bt as H,
602
+ ct as S,
603
+ z as a,
604
+ rt as b,
605
+ ot as c,
606
+ V as d,
607
+ H as e,
608
+ C as f,
609
+ U as g,
610
+ w as h,
611
+ M as i,
612
+ y as j,
613
+ D as k,
614
+ x as l,
615
+ ht as m,
616
+ d as n,
617
+ at as o,
618
+ wt as p,
619
+ L as q,
620
+ b as r,
621
+ I as s,
622
+ xt as t,
623
+ $t as u,
624
+ _t as v,
625
+ mt as w,
626
+ pt as x,
627
+ P as y,
628
+ yt as z
629
+ };