@everymatrix/cashier-verifications 1.76.0 → 1.76.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1014 +0,0 @@
1
- var vt = Object.defineProperty, Ct = Object.defineProperties;
2
- var Et = Object.getOwnPropertyDescriptors;
3
- var et = Object.getOwnPropertySymbols;
4
- var Mt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable;
5
- var J = (t, e, n) => e in t ? vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, nt = (t, e) => {
6
- for (var n in e || (e = {}))
7
- Mt.call(e, n) && J(t, n, e[n]);
8
- if (et)
9
- for (var n of et(e))
10
- kt.call(e, n) && J(t, n, e[n]);
11
- return t;
12
- }, it = (t, e) => Ct(t, Et(e));
13
- var p = (t, e, n) => (J(t, typeof e != "symbol" ? e + "" : e, n), n);
14
- var st = (t, e, n) => new Promise((i, r) => {
15
- var s = (u) => {
16
- try {
17
- o(n.next(u));
18
- } catch (l) {
19
- r(l);
20
- }
21
- }, c = (u) => {
22
- try {
23
- o(n.throw(u));
24
- } catch (l) {
25
- r(l);
26
- }
27
- }, o = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(s, c);
28
- o((n = n.apply(t, e)).next());
29
- });
30
- function M() {
31
- }
32
- const ht = (t) => t;
33
- function jt(t, e) {
34
- for (const n in e)
35
- t[n] = e[n];
36
- return (
37
- /** @type {T & S} */
38
- t
39
- );
40
- }
41
- function mt(t) {
42
- return t();
43
- }
44
- function rt() {
45
- return /* @__PURE__ */ Object.create(null);
46
- }
47
- function j(t) {
48
- t.forEach(mt);
49
- }
50
- function X(t) {
51
- return typeof t == "function";
52
- }
53
- function St(t, e) {
54
- return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
55
- }
56
- function Lt(t) {
57
- return Object.keys(t).length === 0;
58
- }
59
- function Ot(t, ...e) {
60
- if (t == null) {
61
- for (const i of e)
62
- i(void 0);
63
- return M;
64
- }
65
- const n = t.subscribe(...e);
66
- return n.unsubscribe ? () => n.unsubscribe() : n;
67
- }
68
- function we(t, e, n) {
69
- t.$$.on_destroy.push(Ot(e, n));
70
- }
71
- function zt(t, e, n, i) {
72
- if (t) {
73
- const r = $t(t, e, n, i);
74
- return t[0](r);
75
- }
76
- }
77
- function $t(t, e, n, i) {
78
- return t[1] && i ? jt(n.ctx.slice(), t[1](i(e))) : n.ctx;
79
- }
80
- function At(t, e, n, i) {
81
- if (t[2] && i) {
82
- const r = t[2](i(n));
83
- if (e.dirty === void 0)
84
- return r;
85
- if (typeof r == "object") {
86
- const s = [], c = Math.max(e.dirty.length, r.length);
87
- for (let o = 0; o < c; o += 1)
88
- s[o] = e.dirty[o] | r[o];
89
- return s;
90
- }
91
- return e.dirty | r;
92
- }
93
- return e.dirty;
94
- }
95
- function Bt(t, e, n, i, r, s) {
96
- if (r) {
97
- const c = $t(e, n, i, s);
98
- t.p(c, r);
99
- }
100
- }
101
- function Nt(t) {
102
- if (t.ctx.length > 32) {
103
- const e = [], n = t.ctx.length / 32;
104
- for (let i = 0; i < n; i++)
105
- e[i] = -1;
106
- return e;
107
- }
108
- return -1;
109
- }
110
- const gt = typeof window != "undefined";
111
- let Pt = gt ? () => window.performance.now() : () => Date.now(), Y = gt ? (t) => requestAnimationFrame(t) : M;
112
- const C = /* @__PURE__ */ new Set();
113
- function _t(t) {
114
- C.forEach((e) => {
115
- e.c(t) || (C.delete(e), e.f());
116
- }), C.size !== 0 && Y(_t);
117
- }
118
- function Rt(t) {
119
- let e;
120
- return C.size === 0 && Y(_t), {
121
- promise: new Promise((n) => {
122
- C.add(e = { c: t, f: n });
123
- }),
124
- abort() {
125
- C.delete(e);
126
- }
127
- };
128
- }
129
- function T(t, e) {
130
- t.appendChild(e);
131
- }
132
- function Tt(t, e, n) {
133
- const i = Z(t);
134
- if (!i.getElementById(e)) {
135
- const r = w("style");
136
- r.id = e, r.textContent = n, pt(i, r);
137
- }
138
- }
139
- function Z(t) {
140
- if (!t)
141
- return document;
142
- const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
143
- return e && /** @type {ShadowRoot} */
144
- e.host ? (
145
- /** @type {ShadowRoot} */
146
- e
147
- ) : t.ownerDocument;
148
- }
149
- function Ht(t) {
150
- const e = w("style");
151
- return e.textContent = "/* empty */", pt(Z(t), e), e.sheet;
152
- }
153
- function pt(t, e) {
154
- return T(
155
- /** @type {Document} */
156
- t.head || t,
157
- e
158
- ), e.sheet;
159
- }
160
- function tt(t, e, n) {
161
- t.insertBefore(e, n || null);
162
- }
163
- function S(t) {
164
- t.parentNode && t.parentNode.removeChild(t);
165
- }
166
- function xe(t, e) {
167
- for (let n = 0; n < t.length; n += 1)
168
- t[n] && t[n].d(e);
169
- }
170
- function w(t) {
171
- return document.createElement(t);
172
- }
173
- function yt(t) {
174
- return document.createTextNode(t);
175
- }
176
- function ve() {
177
- return yt(" ");
178
- }
179
- function Wt() {
180
- return yt("");
181
- }
182
- function ot(t, e, n, i) {
183
- return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
184
- }
185
- function H(t, e, n) {
186
- n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
187
- }
188
- function Ce(t, e, n) {
189
- const i = e.toLowerCase();
190
- 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);
191
- }
192
- function Dt(t) {
193
- return Array.from(t.childNodes);
194
- }
195
- function Ee(t, e) {
196
- e = "" + e, t.data !== e && (t.data = /** @type {string} */
197
- e);
198
- }
199
- let N;
200
- function It() {
201
- if (N === void 0) {
202
- N = !1;
203
- try {
204
- typeof window != "undefined" && window.parent && window.parent.document;
205
- } catch (t) {
206
- N = !0;
207
- }
208
- }
209
- return N;
210
- }
211
- function Ut(t, e) {
212
- getComputedStyle(t).position === "static" && (t.style.position = "relative");
213
- const i = w("iframe");
214
- i.setAttribute(
215
- "style",
216
- "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
217
- ), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
218
- const r = It();
219
- let s;
220
- return r ? (i.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = ot(
221
- window,
222
- "message",
223
- /** @param {MessageEvent} event */
224
- (c) => {
225
- c.source === i.contentWindow && e();
226
- }
227
- )) : (i.src = "about:blank", i.onload = () => {
228
- s = ot(i.contentWindow, "resize", e), e();
229
- }), T(t, i), () => {
230
- (r || s && i.contentWindow) && s(), S(i);
231
- };
232
- }
233
- function Me(t, e, n) {
234
- t.classList.toggle(e, !!n);
235
- }
236
- function qt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
237
- return new CustomEvent(t, { detail: e, bubbles: n, cancelable: i });
238
- }
239
- function Ft(t) {
240
- const e = {};
241
- return t.childNodes.forEach(
242
- /** @param {Element} node */
243
- (n) => {
244
- e[n.slot || "default"] = !0;
245
- }
246
- ), e;
247
- }
248
- const W = /* @__PURE__ */ new Map();
249
- let D = 0;
250
- function Jt(t) {
251
- let e = 5381, n = t.length;
252
- for (; n--; )
253
- e = (e << 5) - e ^ t.charCodeAt(n);
254
- return e >>> 0;
255
- }
256
- function Vt(t, e) {
257
- const n = { stylesheet: Ht(e), rules: {} };
258
- return W.set(t, n), n;
259
- }
260
- function ct(t, e, n, i, r, s, c, o = 0) {
261
- const u = 16.666 / i;
262
- let l = `{
263
- `;
264
- for (let $ = 0; $ <= 1; $ += u) {
265
- const a = e + (n - e) * s($);
266
- l += $ * 100 + `%{${c(a, 1 - a)}}
267
- `;
268
- }
269
- const h = l + `100% {${c(n, 1 - n)}}
270
- }`, f = `__svelte_${Jt(h)}_${o}`, g = Z(t), { stylesheet: m, rules: d } = W.get(g) || Vt(g, t);
271
- d[f] || (d[f] = !0, m.insertRule(`@keyframes ${f} ${h}`, m.cssRules.length));
272
- const _ = t.style.animation || "";
273
- return t.style.animation = `${_ ? `${_}, ` : ""}${f} ${i}ms linear ${r}ms 1 both`, D += 1, f;
274
- }
275
- function Gt(t, e) {
276
- const n = (t.style.animation || "").split(", "), i = n.filter(
277
- e ? (s) => s.indexOf(e) < 0 : (s) => s.indexOf("__svelte") === -1
278
- // remove all Svelte animations
279
- ), r = n.length - i.length;
280
- r && (t.style.animation = i.join(", "), D -= r, D || Kt());
281
- }
282
- function Kt() {
283
- Y(() => {
284
- D || (W.forEach((t) => {
285
- const { ownerNode: e } = t.stylesheet;
286
- e && S(e);
287
- }), W.clear());
288
- });
289
- }
290
- let A;
291
- function O(t) {
292
- A = t;
293
- }
294
- function Qt() {
295
- if (!A)
296
- throw new Error("Function called outside component initialization");
297
- return A;
298
- }
299
- function Xt(t) {
300
- Qt().$$.on_mount.push(t);
301
- }
302
- const v = [], I = [];
303
- let E = [];
304
- const lt = [], Yt = /* @__PURE__ */ Promise.resolve();
305
- let K = !1;
306
- function Zt() {
307
- K || (K = !0, Yt.then(y));
308
- }
309
- function k(t) {
310
- E.push(t);
311
- }
312
- const V = /* @__PURE__ */ new Set();
313
- let x = 0;
314
- function y() {
315
- if (x !== 0)
316
- return;
317
- const t = A;
318
- do {
319
- try {
320
- for (; x < v.length; ) {
321
- const e = v[x];
322
- x++, O(e), te(e.$$);
323
- }
324
- } catch (e) {
325
- throw v.length = 0, x = 0, e;
326
- }
327
- for (O(null), v.length = 0, x = 0; I.length; )
328
- I.pop()();
329
- for (let e = 0; e < E.length; e += 1) {
330
- const n = E[e];
331
- V.has(n) || (V.add(n), n());
332
- }
333
- E.length = 0;
334
- } while (v.length);
335
- for (; lt.length; )
336
- lt.pop()();
337
- K = !1, V.clear(), O(t);
338
- }
339
- function te(t) {
340
- if (t.fragment !== null) {
341
- t.update(), j(t.before_update);
342
- const e = t.dirty;
343
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
344
- }
345
- }
346
- function ee(t) {
347
- const e = [], n = [];
348
- E.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), E = e;
349
- }
350
- let L;
351
- function ne() {
352
- return L || (L = Promise.resolve(), L.then(() => {
353
- L = null;
354
- })), L;
355
- }
356
- function G(t, e, n) {
357
- t.dispatchEvent(qt(`${e ? "intro" : "outro"}${n}`));
358
- }
359
- const P = /* @__PURE__ */ new Set();
360
- let b;
361
- function ie() {
362
- b = {
363
- r: 0,
364
- c: [],
365
- p: b
366
- // parent group
367
- };
368
- }
369
- function se() {
370
- b.r || j(b.c), b = b.p;
371
- }
372
- function z(t, e) {
373
- t && t.i && (P.delete(t), t.i(e));
374
- }
375
- function Q(t, e, n, i) {
376
- if (t && t.o) {
377
- if (P.has(t))
378
- return;
379
- P.add(t), b.c.push(() => {
380
- P.delete(t), i && (n && t.d(1), i());
381
- }), t.o(e);
382
- } else
383
- i && i();
384
- }
385
- const re = { duration: 0 };
386
- function ut(t, e, n, i) {
387
- let s = e(t, n, { direction: "both" }), c = i ? 0 : 1, o = null, u = null, l = null, h;
388
- function f() {
389
- l && Gt(t, l);
390
- }
391
- function g(d, _) {
392
- const $ = (
393
- /** @type {Program['d']} */
394
- d.b - c
395
- );
396
- return _ *= Math.abs($), {
397
- a: c,
398
- b: d.b,
399
- d: $,
400
- duration: _,
401
- start: d.start,
402
- end: d.start + _,
403
- group: d.group
404
- };
405
- }
406
- function m(d) {
407
- const {
408
- delay: _ = 0,
409
- duration: $ = 300,
410
- easing: a = ht,
411
- tick: U = M,
412
- css: q
413
- } = s || re, F = {
414
- start: Pt() + _,
415
- b: d
416
- };
417
- d || (F.group = b, b.r += 1), "inert" in t && (d ? h !== void 0 && (t.inert = h) : (h = /** @type {HTMLElement} */
418
- t.inert, t.inert = !0)), o || u ? u = F : (q && (f(), l = ct(t, c, d, $, _, a, q)), d && U(0, 1), o = g(F, $), k(() => G(t, d, "start")), Rt((B) => {
419
- if (u && B > u.start && (o = g(u, $), u = null, G(t, o.b, "start"), q && (f(), l = ct(
420
- t,
421
- c,
422
- o.b,
423
- o.duration,
424
- 0,
425
- a,
426
- s.css
427
- ))), o) {
428
- if (B >= o.end)
429
- U(c = o.b, 1 - c), G(t, o.b, "end"), u || (o.b ? f() : --o.group.r || j(o.group.c)), o = null;
430
- else if (B >= o.start) {
431
- const xt = B - o.start;
432
- c = o.a + o.d * a(xt / o.duration), U(c, 1 - c);
433
- }
434
- }
435
- return !!(o || u);
436
- }));
437
- }
438
- return {
439
- run(d) {
440
- X(s) ? ne().then(() => {
441
- s = s({ direction: d ? "in" : "out" }), m(d);
442
- }) : m(d);
443
- },
444
- end() {
445
- f(), o = u = null;
446
- }
447
- };
448
- }
449
- function ke(t) {
450
- return (t == null ? void 0 : t.length) !== void 0 ? t : Array.from(t);
451
- }
452
- function oe(t, e, n) {
453
- const { fragment: i, after_update: r } = t.$$;
454
- i && i.m(e, n), k(() => {
455
- const s = t.$$.on_mount.map(mt).filter(X);
456
- t.$$.on_destroy ? t.$$.on_destroy.push(...s) : j(s), t.$$.on_mount = [];
457
- }), r.forEach(k);
458
- }
459
- function ce(t, e) {
460
- const n = t.$$;
461
- n.fragment !== null && (ee(n.after_update), j(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
462
- }
463
- function le(t, e) {
464
- t.$$.dirty[0] === -1 && (v.push(t), Zt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
465
- }
466
- function ue(t, e, n, i, r, s, c = null, o = [-1]) {
467
- const u = A;
468
- O(t);
469
- const l = t.$$ = {
470
- fragment: null,
471
- ctx: [],
472
- // state
473
- props: s,
474
- update: M,
475
- not_equal: r,
476
- bound: rt(),
477
- // lifecycle
478
- on_mount: [],
479
- on_destroy: [],
480
- on_disconnect: [],
481
- before_update: [],
482
- after_update: [],
483
- context: new Map(e.context || (u ? u.$$.context : [])),
484
- // everything else
485
- callbacks: rt(),
486
- dirty: o,
487
- skip_bound: !1,
488
- root: e.target || u.$$.root
489
- };
490
- c && c(l.root);
491
- let h = !1;
492
- if (l.ctx = n ? n(t, e.props || {}, (f, g, ...m) => {
493
- const d = m.length ? m[0] : g;
494
- return l.ctx && r(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), h && le(t, f)), g;
495
- }) : [], l.update(), h = !0, j(l.before_update), l.fragment = i ? i(l.ctx) : !1, e.target) {
496
- if (e.hydrate) {
497
- const f = Dt(e.target);
498
- l.fragment && l.fragment.l(f), f.forEach(S);
499
- } else
500
- l.fragment && l.fragment.c();
501
- e.intro && z(t.$$.fragment), oe(t, e.target, e.anchor), y();
502
- }
503
- O(u);
504
- }
505
- let bt;
506
- typeof HTMLElement == "function" && (bt = class extends HTMLElement {
507
- constructor(e, n, i) {
508
- super();
509
- /** The Svelte component constructor */
510
- p(this, "$$ctor");
511
- /** Slots */
512
- p(this, "$$s");
513
- /** The Svelte component instance */
514
- p(this, "$$c");
515
- /** Whether or not the custom element is connected */
516
- p(this, "$$cn", !1);
517
- /** Component props data */
518
- p(this, "$$d", {});
519
- /** `true` if currently in the process of reflecting component props back to attributes */
520
- p(this, "$$r", !1);
521
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
522
- p(this, "$$p_d", {});
523
- /** @type {Record<string, Function[]>} Event listeners */
524
- p(this, "$$l", {});
525
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
526
- p(this, "$$l_u", /* @__PURE__ */ new Map());
527
- this.$$ctor = e, this.$$s = n, i && this.attachShadow({ mode: "open" });
528
- }
529
- addEventListener(e, n, i) {
530
- if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(n), this.$$c) {
531
- const r = this.$$c.$on(e, n);
532
- this.$$l_u.set(n, r);
533
- }
534
- super.addEventListener(e, n, i);
535
- }
536
- removeEventListener(e, n, i) {
537
- if (super.removeEventListener(e, n, i), this.$$c) {
538
- const r = this.$$l_u.get(n);
539
- r && (r(), this.$$l_u.delete(n));
540
- }
541
- }
542
- connectedCallback() {
543
- return st(this, null, function* () {
544
- if (this.$$cn = !0, !this.$$c) {
545
- let e = function(s) {
546
- return () => {
547
- let c;
548
- return {
549
- c: function() {
550
- c = w("slot"), s !== "default" && H(c, "name", s);
551
- },
552
- /**
553
- * @param {HTMLElement} target
554
- * @param {HTMLElement} [anchor]
555
- */
556
- m: function(l, h) {
557
- tt(l, c, h);
558
- },
559
- d: function(l) {
560
- l && S(c);
561
- }
562
- };
563
- };
564
- };
565
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
566
- return;
567
- const n = {}, i = Ft(this);
568
- for (const s of this.$$s)
569
- s in i && (n[s] = [e(s)]);
570
- for (const s of this.attributes) {
571
- const c = this.$$g_p(s.name);
572
- c in this.$$d || (this.$$d[c] = R(c, s.value, this.$$p_d, "toProp"));
573
- }
574
- for (const s in this.$$p_d)
575
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
576
- this.$$c = new this.$$ctor({
577
- target: this.shadowRoot || this,
578
- props: it(nt({}, this.$$d), {
579
- $$slots: n,
580
- $$scope: {
581
- ctx: []
582
- }
583
- })
584
- });
585
- const r = () => {
586
- this.$$r = !0;
587
- for (const s in this.$$p_d)
588
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
589
- const c = R(
590
- s,
591
- this.$$d[s],
592
- this.$$p_d,
593
- "toAttribute"
594
- );
595
- c == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, c);
596
- }
597
- this.$$r = !1;
598
- };
599
- this.$$c.$$.after_update.push(r), r();
600
- for (const s in this.$$l)
601
- for (const c of this.$$l[s]) {
602
- const o = this.$$c.$on(s, c);
603
- this.$$l_u.set(c, o);
604
- }
605
- this.$$l = {};
606
- }
607
- });
608
- }
609
- // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
610
- // and setting attributes through setAttribute etc, this is helpful
611
- attributeChangedCallback(e, n, i) {
612
- var r;
613
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = R(e, i, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [e]: this.$$d[e] }));
614
- }
615
- disconnectedCallback() {
616
- this.$$cn = !1, Promise.resolve().then(() => {
617
- !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
618
- });
619
- }
620
- $$g_p(e) {
621
- return Object.keys(this.$$p_d).find(
622
- (n) => this.$$p_d[n].attribute === e || !this.$$p_d[n].attribute && n.toLowerCase() === e
623
- ) || e;
624
- }
625
- });
626
- function R(t, e, n, i) {
627
- var s;
628
- const r = (s = n[t]) == null ? void 0 : s.type;
629
- if (e = r === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !n[t])
630
- return e;
631
- if (i === "toAttribute")
632
- switch (r) {
633
- case "Object":
634
- case "Array":
635
- return e == null ? null : JSON.stringify(e);
636
- case "Boolean":
637
- return e ? "" : null;
638
- case "Number":
639
- return e == null ? null : e;
640
- default:
641
- return e;
642
- }
643
- else
644
- switch (r) {
645
- case "Object":
646
- case "Array":
647
- return e && JSON.parse(e);
648
- case "Boolean":
649
- return e;
650
- case "Number":
651
- return e != null ? +e : e;
652
- default:
653
- return e;
654
- }
655
- }
656
- function ae(t, e, n, i, r, s) {
657
- let c = class extends bt {
658
- constructor() {
659
- super(t, n, r), this.$$p_d = e;
660
- }
661
- static get observedAttributes() {
662
- return Object.keys(e).map(
663
- (o) => (e[o].attribute || o).toLowerCase()
664
- );
665
- }
666
- };
667
- return Object.keys(e).forEach((o) => {
668
- Object.defineProperty(c.prototype, o, {
669
- get() {
670
- return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
671
- },
672
- set(u) {
673
- var l;
674
- u = R(o, u, e), this.$$d[o] = u, (l = this.$$c) == null || l.$set({ [o]: u });
675
- }
676
- });
677
- }), i.forEach((o) => {
678
- Object.defineProperty(c.prototype, o, {
679
- get() {
680
- var u;
681
- return (u = this.$$c) == null ? void 0 : u[o];
682
- }
683
- });
684
- }), t.element = /** @type {any} */
685
- c, c;
686
- }
687
- class fe {
688
- constructor() {
689
- /**
690
- * ### PRIVATE API
691
- *
692
- * Do not use, may change at any time
693
- *
694
- * @type {any}
695
- */
696
- p(this, "$$");
697
- /**
698
- * ### PRIVATE API
699
- *
700
- * Do not use, may change at any time
701
- *
702
- * @type {any}
703
- */
704
- p(this, "$$set");
705
- }
706
- /** @returns {void} */
707
- $destroy() {
708
- ce(this, 1), this.$destroy = M;
709
- }
710
- /**
711
- * @template {Extract<keyof Events, string>} K
712
- * @param {K} type
713
- * @param {((e: Events[K]) => void) | null | undefined} callback
714
- * @returns {() => void}
715
- */
716
- $on(e, n) {
717
- if (!X(n))
718
- return M;
719
- const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
720
- return i.push(n), () => {
721
- const r = i.indexOf(n);
722
- r !== -1 && i.splice(r, 1);
723
- };
724
- }
725
- /**
726
- * @param {Partial<Props>} props
727
- * @returns {void}
728
- */
729
- $set(e) {
730
- this.$$set && !Lt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
731
- }
732
- }
733
- const de = "4";
734
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(de);
735
- function he(t, e) {
736
- if (t) {
737
- const n = document.createElement("style");
738
- n.innerHTML = e, t.appendChild(n);
739
- }
740
- }
741
- function me(t, e) {
742
- const n = new URL(e);
743
- fetch(n.href).then((i) => i.text()).then((i) => {
744
- const r = document.createElement("style");
745
- r.innerHTML = i, t && t.appendChild(r);
746
- }).catch((i) => {
747
- console.error("There was an error while trying to load client styling from URL", i);
748
- });
749
- }
750
- function $e(t, e, n) {
751
- if (window.emMessageBus) {
752
- const i = document.createElement("style");
753
- window.emMessageBus.subscribe(e, (r) => {
754
- i.innerHTML = r, t && t.appendChild(i);
755
- });
756
- }
757
- }
758
- function at(t, { delay: e = 0, duration: n = 400, easing: i = ht } = {}) {
759
- const r = +getComputedStyle(t).opacity;
760
- return {
761
- delay: e,
762
- duration: n,
763
- easing: i,
764
- css: (s) => `opacity: ${s * r}`
765
- };
766
- }
767
- function ge(t) {
768
- Tt(t, "svelte-8iq2ew", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:absolute;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{width:500px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:90%}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn .ModalCloseBtn{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);height:inherit;right:0;top:0;cursor:pointer}.ModalCloseBtn .ModalOkButton{color:var(--emw--color-white, #fff);display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;width:100%;border:none;border-radius:50px;line-height:125%;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}");
769
- }
770
- const _e = (t) => ({}), ft = (t) => ({});
771
- function dt(t) {
772
- let e, n, i, r, s, c;
773
- const o = (
774
- /*#slots*/
775
- t[10].content
776
- ), u = zt(
777
- o,
778
- t,
779
- /*$$scope*/
780
- t[9],
781
- ft
782
- );
783
- return {
784
- c() {
785
- e = w("div"), n = w("div"), i = w("div"), u && u.c(), H(i, "class", "ModalContainer"), H(n, "id", "Modal"), k(() => (
786
- /*div1_elementresize_handler*/
787
- t[12].call(n)
788
- ));
789
- },
790
- m(l, h) {
791
- tt(l, e, h), T(e, n), T(n, i), u && u.m(i, null), t[11](n), r = Ut(
792
- n,
793
- /*div1_elementresize_handler*/
794
- t[12].bind(n)
795
- ), t[13](e), c = !0;
796
- },
797
- p(l, h) {
798
- t = l, u && u.p && (!c || h & /*$$scope*/
799
- 512) && Bt(
800
- u,
801
- o,
802
- t,
803
- /*$$scope*/
804
- t[9],
805
- c ? At(
806
- o,
807
- /*$$scope*/
808
- t[9],
809
- h,
810
- _e
811
- ) : Nt(
812
- /*$$scope*/
813
- t[9]
814
- ),
815
- ft
816
- );
817
- },
818
- i(l) {
819
- c || (z(u, l), l && k(() => {
820
- c && (s || (s = ut(
821
- n,
822
- at,
823
- /*duration*/
824
- t[3],
825
- !0
826
- )), s.run(1));
827
- }), c = !0);
828
- },
829
- o(l) {
830
- Q(u, l), l && (s || (s = ut(
831
- n,
832
- at,
833
- /*duration*/
834
- t[3],
835
- !1
836
- )), s.run(0)), c = !1;
837
- },
838
- d(l) {
839
- l && S(e), u && u.d(l), t[11](null), r(), l && s && s.end(), t[13](null);
840
- }
841
- };
842
- }
843
- function pe(t) {
844
- let e, n, i = (
845
- /*show*/
846
- t[2] === "true" && dt(t)
847
- );
848
- return {
849
- c() {
850
- i && i.c(), e = Wt();
851
- },
852
- m(r, s) {
853
- i && i.m(r, s), tt(r, e, s), n = !0;
854
- },
855
- p(r, [s]) {
856
- /*show*/
857
- r[2] === "true" ? i ? (i.p(r, s), s & /*show*/
858
- 4 && z(i, 1)) : (i = dt(r), i.c(), z(i, 1), i.m(e.parentNode, e)) : i && (ie(), Q(i, 1, 1, () => {
859
- i = null;
860
- }), se());
861
- },
862
- i(r) {
863
- n || (z(i), n = !0);
864
- },
865
- o(r) {
866
- Q(i), n = !1;
867
- },
868
- d(r) {
869
- r && S(e), i && i.d(r);
870
- }
871
- };
872
- }
873
- function ye(t, e, n) {
874
- let { $$slots: i = {}, $$scope: r } = e, { mbsource: s } = e, { clientstyling: c } = e, { clientstylingurl: o } = e, { show: u } = e, { duration: l = 200 } = e, { width: h } = e, { height: f } = e, g, m;
875
- Xt(() => () => {
876
- });
877
- function d(a) {
878
- I[a ? "unshift" : "push"](() => {
879
- g = a, n(5, g);
880
- });
881
- }
882
- function _() {
883
- h = this.clientWidth, f = this.clientHeight, n(0, h), n(1, f);
884
- }
885
- function $(a) {
886
- I[a ? "unshift" : "push"](() => {
887
- m = a, n(4, m);
888
- });
889
- }
890
- return t.$$set = (a) => {
891
- "mbsource" in a && n(6, s = a.mbsource), "clientstyling" in a && n(7, c = a.clientstyling), "clientstylingurl" in a && n(8, o = a.clientstylingurl), "show" in a && n(2, u = a.show), "duration" in a && n(3, l = a.duration), "width" in a && n(0, h = a.width), "height" in a && n(1, f = a.height), "$$scope" in a && n(9, r = a.$$scope);
892
- }, t.$$.update = () => {
893
- t.$$.dirty & /*clientstyling, customStylingContainer*/
894
- 144 && c && m && he(m, c), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
895
- 272 && o && m && me(m, o), t.$$.dirty & /*mbsource, customStylingContainer*/
896
- 80 && s && m && $e(m, `${s}.Style`);
897
- }, [
898
- h,
899
- f,
900
- u,
901
- l,
902
- m,
903
- g,
904
- s,
905
- c,
906
- o,
907
- r,
908
- i,
909
- d,
910
- _,
911
- $
912
- ];
913
- }
914
- class wt extends fe {
915
- constructor(e) {
916
- super(), ue(
917
- this,
918
- e,
919
- ye,
920
- pe,
921
- St,
922
- {
923
- mbsource: 6,
924
- clientstyling: 7,
925
- clientstylingurl: 8,
926
- show: 2,
927
- duration: 3,
928
- width: 0,
929
- height: 1
930
- },
931
- ge
932
- );
933
- }
934
- get mbsource() {
935
- return this.$$.ctx[6];
936
- }
937
- set mbsource(e) {
938
- this.$$set({ mbsource: e }), y();
939
- }
940
- get clientstyling() {
941
- return this.$$.ctx[7];
942
- }
943
- set clientstyling(e) {
944
- this.$$set({ clientstyling: e }), y();
945
- }
946
- get clientstylingurl() {
947
- return this.$$.ctx[8];
948
- }
949
- set clientstylingurl(e) {
950
- this.$$set({ clientstylingurl: e }), y();
951
- }
952
- get show() {
953
- return this.$$.ctx[2];
954
- }
955
- set show(e) {
956
- this.$$set({ show: e }), y();
957
- }
958
- get duration() {
959
- return this.$$.ctx[3];
960
- }
961
- set duration(e) {
962
- this.$$set({ duration: e }), y();
963
- }
964
- get width() {
965
- return this.$$.ctx[0];
966
- }
967
- set width(e) {
968
- this.$$set({ width: e }), y();
969
- }
970
- get height() {
971
- return this.$$.ctx[1];
972
- }
973
- set height(e) {
974
- this.$$set({ height: e }), y();
975
- }
976
- }
977
- ae(wt, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
978
- const je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
979
- __proto__: null,
980
- default: wt
981
- }, Symbol.toStringTag, { value: "Module" }));
982
- export {
983
- he as A,
984
- me as B,
985
- $e as C,
986
- je as D,
987
- fe as S,
988
- Ot as a,
989
- ue as b,
990
- ae as c,
991
- Tt as d,
992
- S as e,
993
- y as f,
994
- tt as g,
995
- w as h,
996
- X as i,
997
- H as j,
998
- we as k,
999
- I as l,
1000
- Ce as m,
1001
- M as n,
1002
- Xt as o,
1003
- ke as p,
1004
- xe as q,
1005
- j as r,
1006
- St as s,
1007
- Me as t,
1008
- ve as u,
1009
- Wt as v,
1010
- T as w,
1011
- ot as x,
1012
- Ee as y,
1013
- yt as z
1014
- };