@walker-di/fortalece-ai-sdk 0.3.18 → 0.3.19

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.
@@ -11,7 +11,7 @@ function vn() {
11
11
  });
12
12
  return { promise: r, resolve: e, reject: t };
13
13
  }
14
- const q = 2, Kt = 4, tr = 8, gn = 1 << 24, Ue = 16, Se = 32, Ze = 64, Lr = 128, pe = 512, F = 1024, W = 2048, $e = 4096, oe = 8192, Pe = 16384, rr = 32768, gt = 65536, en = 1 << 17, mn = 1 << 18, ot = 1 << 19, Ds = 1 << 20, We = 1 << 25, it = 32768, kr = 1 << 21, Nr = 1 << 22, Ve = 1 << 23, Ht = /* @__PURE__ */ Symbol("$state"), Ls = /* @__PURE__ */ Symbol("legacy props"), Ns = /* @__PURE__ */ Symbol(""), ut = new class extends Error {
14
+ const q = 2, Kt = 4, tr = 8, gn = 1 << 24, Ue = 16, Se = 32, Ze = 64, Lr = 128, pe = 512, F = 1024, W = 2048, $e = 4096, oe = 8192, Pe = 16384, rr = 32768, gt = 65536, en = 1 << 17, mn = 1 << 18, ot = 1 << 19, Ds = 1 << 20, We = 1 << 25, it = 32768, kr = 1 << 21, Nr = 1 << 22, Ve = 1 << 23, Ht = /* @__PURE__ */ Symbol("$state"), Ls = /* @__PURE__ */ Symbol("legacy props"), Ns = /* @__PURE__ */ Symbol(""), ft = new class extends Error {
15
15
  name = "StaleReactionError";
16
16
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
17
17
  }(), nr = 3, wt = 8;
@@ -305,12 +305,12 @@ class Fe {
305
305
  for (const s of t)
306
306
  this.#c(s, r, n);
307
307
  if (this.is_deferred()) {
308
- this.#u(n), this.#u(r);
308
+ this.#f(n), this.#f(r);
309
309
  for (const [s, i] of this.#i)
310
310
  Tn(s, i);
311
311
  } else {
312
312
  for (const s of this.#e) s();
313
- this.#e.clear(), this.#r === 0 && this.#f(), D = null, tn(n), tn(r), this.#o?.resolve();
313
+ this.#e.clear(), this.#r === 0 && this.#u(), D = null, tn(n), tn(r), this.#o?.resolve();
314
314
  }
315
315
  be = null;
316
316
  }
@@ -324,12 +324,12 @@ class Fe {
324
324
  #c(t, r, n) {
325
325
  t.f ^= F;
326
326
  for (var s = t.first, i = null; s !== null; ) {
327
- var a = s.f, o = (a & (Se | Ze)) !== 0, l = o && (a & F) !== 0, f = l || (a & oe) !== 0 || this.#i.has(s);
328
- if (!f && s.fn !== null) {
327
+ var a = s.f, o = (a & (Se | Ze)) !== 0, l = o && (a & F) !== 0, u = l || (a & oe) !== 0 || this.#i.has(s);
328
+ if (!u && s.fn !== null) {
329
329
  o ? s.f ^= F : i !== null && (a & (Kt | tr | gn)) !== 0 ? i.b.defer_effect(s) : (a & Kt) !== 0 ? r.push(s) : Mt(s) && ((a & Ue) !== 0 && this.#n.add(s), Rt(s));
330
- var u = s.first;
331
- if (u !== null) {
332
- s = u;
330
+ var f = s.first;
331
+ if (f !== null) {
332
+ s = f;
333
333
  continue;
334
334
  }
335
335
  }
@@ -341,7 +341,7 @@ class Fe {
341
341
  /**
342
342
  * @param {Effect[]} effects
343
343
  */
344
- #u(t) {
344
+ #f(t) {
345
345
  for (var r = 0; r < t.length; r += 1)
346
346
  kn(t[r], this.#s, this.#n);
347
347
  }
@@ -371,7 +371,7 @@ class Fe {
371
371
  for (const t of this.#t) t(this);
372
372
  this.#t.clear();
373
373
  }
374
- #f() {
374
+ #u() {
375
375
  if (jt.size > 1) {
376
376
  this.previous.clear();
377
377
  var t = be, r = !0;
@@ -396,12 +396,12 @@ class Fe {
396
396
  var n = ae;
397
397
  ae = [];
398
398
  const o = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
399
- for (const f of i)
400
- Cn(f, a, o, l);
399
+ for (const u of i)
400
+ Cn(u, a, o, l);
401
401
  if (ae.length > 0) {
402
402
  D = s, s.apply();
403
- for (const f of ae)
404
- s.#c(f, [], []);
403
+ for (const u of ae)
404
+ s.#c(u, [], []);
405
405
  s.deactivate();
406
406
  }
407
407
  ae = n;
@@ -614,8 +614,8 @@ class si {
614
614
  #l = null;
615
615
  /** @type {TemplateNode | null} */
616
616
  #c = null;
617
- #u = 0;
618
617
  #f = 0;
618
+ #u = 0;
619
619
  #p = !1;
620
620
  #h = !1;
621
621
  /** @type {Set<Effect>} */
@@ -630,7 +630,7 @@ class si {
630
630
  * @type {Source<number> | null}
631
631
  */
632
632
  #d = null;
633
- #y = ti(() => (this.#d = at(this.#u), () => {
633
+ #y = ti(() => (this.#d = at(this.#f), () => {
634
634
  this.#d = null;
635
635
  }));
636
636
  /**
@@ -645,7 +645,7 @@ class si {
645
645
  const i = this.#t;
646
646
  ir(), /** @type {Comment} */
647
647
  i.nodeType === wt && /** @type {Comment} */
648
- i.data === Qt ? this.#x() : (this.#$(), this.#f === 0 && (this.is_pending = !1));
648
+ i.data === Qt ? this.#x() : (this.#$(), this.#u === 0 && (this.is_pending = !1));
649
649
  } else {
650
650
  var s = this.#b();
651
651
  try {
@@ -653,7 +653,7 @@ class si {
653
653
  } catch (i) {
654
654
  this.error(i);
655
655
  }
656
- this.#f > 0 ? this.#_() : this.is_pending = !1;
656
+ this.#u > 0 ? this.#_() : this.is_pending = !1;
657
657
  }
658
658
  return () => {
659
659
  this.#c?.remove();
@@ -671,7 +671,7 @@ class si {
671
671
  const t = this.#r.pending;
672
672
  t && (this.#n = he(() => t(this.#e)), rt(() => {
673
673
  var r = this.#b();
674
- this.#s = this.#m(() => (Fe.ensure(), he(() => this.#a(r)))), this.#f > 0 ? this.#_() : (nt(
674
+ this.#s = this.#m(() => (Fe.ensure(), he(() => this.#a(r)))), this.#u > 0 ? this.#_() : (nt(
675
675
  /** @type {Effect} */
676
676
  this.#n,
677
677
  () => {
@@ -735,7 +735,7 @@ class si {
735
735
  this.parent && this.parent.#w(t);
736
736
  return;
737
737
  }
738
- if (this.#f += t, this.#f === 0) {
738
+ if (this.#u += t, this.#u === 0) {
739
739
  this.is_pending = !1;
740
740
  for (const r of this.#v)
741
741
  P(r, W), we(r);
@@ -753,8 +753,8 @@ class si {
753
753
  * @param {1 | -1} d
754
754
  */
755
755
  update_pending_count(t) {
756
- this.#w(t), this.#u += t, !(!this.#d || this.#p) && (this.#p = !0, rt(() => {
757
- this.#p = !1, this.#d && bt(this.#d, this.#u);
756
+ this.#w(t), this.#f += t, !(!this.#d || this.#p) && (this.#p = !0, rt(() => {
757
+ this.#p = !1, this.#d && bt(this.#d, this.#f);
758
758
  }));
759
759
  }
760
760
  get_effect_pending() {
@@ -779,9 +779,9 @@ class si {
779
779
  Js();
780
780
  return;
781
781
  }
782
- s = !0, i && Ks(), Fe.ensure(), this.#u = 0, this.#i !== null && nt(this.#i, () => {
782
+ s = !0, i && Ks(), Fe.ensure(), this.#f = 0, this.#i !== null && nt(this.#i, () => {
783
783
  this.#i = null;
784
- }), this.is_pending = this.has_pending_snippet(), this.#s = this.#m(() => (this.#h = !1, he(() => this.#a(this.#e)))), this.#f > 0 ? this.#_() : this.is_pending = !1;
784
+ }), this.is_pending = this.has_pending_snippet(), this.#s = this.#m(() => (this.#h = !1, he(() => this.#a(this.#e)))), this.#u > 0 ? this.#_() : this.is_pending = !1;
785
785
  };
786
786
  rt(() => {
787
787
  try {
@@ -822,8 +822,8 @@ function ii(e, t, r, n) {
822
822
  var a = D, o = (
823
823
  /** @type {Effect} */
824
824
  E
825
- ), l = ai(), f = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
826
- function u(h) {
825
+ ), l = ai(), u = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
826
+ function f(h) {
827
827
  l();
828
828
  try {
829
829
  n(h);
@@ -833,13 +833,13 @@ function ii(e, t, r, n) {
833
833
  a?.deactivate(), Cr();
834
834
  }
835
835
  if (r.length === 0) {
836
- f.then(() => u(t.map(s)));
836
+ u.then(() => f(t.map(s)));
837
837
  return;
838
838
  }
839
839
  function d() {
840
- l(), Promise.all(r.map((h) => /* @__PURE__ */ oi(h))).then((h) => u([...t.map(s), ...h])).catch((h) => _t(h, o));
840
+ l(), Promise.all(r.map((h) => /* @__PURE__ */ oi(h))).then((h) => f([...t.map(s), ...h])).catch((h) => _t(h, o));
841
841
  }
842
- f ? f.then(d) : d();
842
+ u ? u.then(d) : d();
843
843
  }
844
844
  function ai() {
845
845
  var e = E, t = x, r = ce, n = D;
@@ -893,47 +893,47 @@ function oi(e, t, r) {
893
893
  B
894
894
  ), o = !x, l = /* @__PURE__ */ new Map();
895
895
  return gi(() => {
896
- var f = vn();
897
- i = f.promise;
896
+ var u = vn();
897
+ i = u.promise;
898
898
  try {
899
- Promise.resolve(e()).then(f.resolve, f.reject).then(() => {
900
- u === D && u.committed && u.deactivate(), Cr();
899
+ Promise.resolve(e()).then(u.resolve, u.reject).then(() => {
900
+ f === D && f.committed && f.deactivate(), Cr();
901
901
  });
902
902
  } catch (g) {
903
- f.reject(g), Cr();
903
+ u.reject(g), Cr();
904
904
  }
905
- var u = (
905
+ var f = (
906
906
  /** @type {Batch} */
907
907
  D
908
908
  );
909
909
  if (o) {
910
910
  var d = s.is_rendered();
911
- s.update_pending_count(1), u.increment(d), l.get(u)?.reject(ut), l.delete(u), l.set(u, f);
911
+ s.update_pending_count(1), f.increment(d), l.get(f)?.reject(ft), l.delete(f), l.set(f, u);
912
912
  }
913
913
  const h = (g, p = void 0) => {
914
- if (u.activate(), p)
915
- p !== ut && (a.f |= Ve, bt(a, p));
914
+ if (f.activate(), p)
915
+ p !== ft && (a.f |= Ve, bt(a, p));
916
916
  else {
917
917
  (a.f & Ve) !== 0 && (a.f ^= Ve), bt(a, g);
918
918
  for (const [_, z] of l) {
919
- if (l.delete(_), _ === u) break;
920
- z.reject(ut);
919
+ if (l.delete(_), _ === f) break;
920
+ z.reject(ft);
921
921
  }
922
922
  }
923
- o && (s.update_pending_count(-1), u.decrement(d));
923
+ o && (s.update_pending_count(-1), f.decrement(d));
924
924
  };
925
- f.promise.then(h, (g) => h(null, g || "unknown"));
925
+ u.promise.then(h, (g) => h(null, g || "unknown"));
926
926
  }), hi(() => {
927
- for (const f of l.values())
928
- f.reject(ut);
929
- }), new Promise((f) => {
930
- function u(d) {
927
+ for (const u of l.values())
928
+ u.reject(ft);
929
+ }), new Promise((u) => {
930
+ function f(d) {
931
931
  function h() {
932
- d === i ? f(a) : u(i);
932
+ d === i ? u(a) : f(i);
933
933
  }
934
934
  d.then(h, h);
935
935
  }
936
- u(i);
936
+ f(i);
937
937
  });
938
938
  }
939
939
  // @__NO_SIDE_EFFECTS__
@@ -1030,11 +1030,11 @@ function bt(e, t) {
1030
1030
  );
1031
1031
  (e.f & W) !== 0 && Br(s), jr(s);
1032
1032
  }
1033
- e.wv = Xn(), On(e, W), E !== null && (E.f & F) !== 0 && (E.f & (Se | Ze)) === 0 && (de === null ? bi([e]) : de.push(e)), !n.is_fork && Ar.size > 0 && !Mn && fi();
1033
+ e.wv = Xn(), On(e, W), E !== null && (E.f & F) !== 0 && (E.f & (Se | Ze)) === 0 && (de === null ? bi([e]) : de.push(e)), !n.is_fork && Ar.size > 0 && !Mn && ui();
1034
1034
  }
1035
1035
  return t;
1036
1036
  }
1037
- function fi() {
1037
+ function ui() {
1038
1038
  Mn = !1;
1039
1039
  for (const e of Ar)
1040
1040
  (e.f & F) !== 0 && P(e, $e), Mt(e) && Rt(e);
@@ -1072,10 +1072,10 @@ function Ne(e) {
1072
1072
  var r = /* @__PURE__ */ new Map(), n = hn(e), s = /* @__PURE__ */ A(0), i = st, a = (o) => {
1073
1073
  if (st === i)
1074
1074
  return o();
1075
- var l = x, f = st;
1075
+ var l = x, u = st;
1076
1076
  ge(null), sn(i);
1077
- var u = o();
1078
- return ge(l), sn(f), u;
1077
+ var f = o();
1078
+ return ge(l), sn(u), f;
1079
1079
  };
1080
1080
  return n && r.set("length", /* @__PURE__ */ A(
1081
1081
  /** @type {any[]} */
@@ -1084,44 +1084,44 @@ function Ne(e) {
1084
1084
  /** @type {any} */
1085
1085
  e,
1086
1086
  {
1087
- defineProperty(o, l, f) {
1088
- (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Ws();
1089
- var u = r.get(l);
1090
- return u === void 0 ? u = a(() => {
1091
- var d = /* @__PURE__ */ A(f.value);
1087
+ defineProperty(o, l, u) {
1088
+ (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Ws();
1089
+ var f = r.get(l);
1090
+ return f === void 0 ? f = a(() => {
1091
+ var d = /* @__PURE__ */ A(u.value);
1092
1092
  return r.set(l, d), d;
1093
- }) : m(u, f.value, !0), !0;
1093
+ }) : m(f, u.value, !0), !0;
1094
1094
  },
1095
1095
  deleteProperty(o, l) {
1096
- var f = r.get(l);
1097
- if (f === void 0) {
1096
+ var u = r.get(l);
1097
+ if (u === void 0) {
1098
1098
  if (l in o) {
1099
- const u = a(() => /* @__PURE__ */ A(B));
1100
- r.set(l, u), zt(s);
1099
+ const f = a(() => /* @__PURE__ */ A(B));
1100
+ r.set(l, f), zt(s);
1101
1101
  }
1102
1102
  } else
1103
- m(f, B), zt(s);
1103
+ m(u, B), zt(s);
1104
1104
  return !0;
1105
1105
  },
1106
- get(o, l, f) {
1106
+ get(o, l, u) {
1107
1107
  if (l === Ht)
1108
1108
  return e;
1109
- var u = r.get(l), d = l in o;
1110
- if (u === void 0 && (!d || ht(o, l)?.writable) && (u = a(() => {
1109
+ var f = r.get(l), d = l in o;
1110
+ if (f === void 0 && (!d || ht(o, l)?.writable) && (f = a(() => {
1111
1111
  var g = Ne(d ? o[l] : B), p = /* @__PURE__ */ A(g);
1112
1112
  return p;
1113
- }), r.set(l, u)), u !== void 0) {
1114
- var h = c(u);
1113
+ }), r.set(l, f)), f !== void 0) {
1114
+ var h = c(f);
1115
1115
  return h === B ? void 0 : h;
1116
1116
  }
1117
- return Reflect.get(o, l, f);
1117
+ return Reflect.get(o, l, u);
1118
1118
  },
1119
1119
  getOwnPropertyDescriptor(o, l) {
1120
- var f = Reflect.getOwnPropertyDescriptor(o, l);
1121
- if (f && "value" in f) {
1122
- var u = r.get(l);
1123
- u && (f.value = c(u));
1124
- } else if (f === void 0) {
1120
+ var u = Reflect.getOwnPropertyDescriptor(o, l);
1121
+ if (u && "value" in u) {
1122
+ var f = r.get(l);
1123
+ f && (u.value = c(f));
1124
+ } else if (u === void 0) {
1125
1125
  var d = r.get(l), h = d?.v;
1126
1126
  if (d !== void 0 && h !== B)
1127
1127
  return {
@@ -1131,40 +1131,40 @@ function Ne(e) {
1131
1131
  writable: !0
1132
1132
  };
1133
1133
  }
1134
- return f;
1134
+ return u;
1135
1135
  },
1136
1136
  has(o, l) {
1137
1137
  if (l === Ht)
1138
1138
  return !0;
1139
- var f = r.get(l), u = f !== void 0 && f.v !== B || Reflect.has(o, l);
1140
- if (f !== void 0 || E !== null && (!u || ht(o, l)?.writable)) {
1141
- f === void 0 && (f = a(() => {
1142
- var h = u ? Ne(o[l]) : B, g = /* @__PURE__ */ A(h);
1139
+ var u = r.get(l), f = u !== void 0 && u.v !== B || Reflect.has(o, l);
1140
+ if (u !== void 0 || E !== null && (!f || ht(o, l)?.writable)) {
1141
+ u === void 0 && (u = a(() => {
1142
+ var h = f ? Ne(o[l]) : B, g = /* @__PURE__ */ A(h);
1143
1143
  return g;
1144
- }), r.set(l, f));
1145
- var d = c(f);
1144
+ }), r.set(l, u));
1145
+ var d = c(u);
1146
1146
  if (d === B)
1147
1147
  return !1;
1148
1148
  }
1149
- return u;
1149
+ return f;
1150
1150
  },
1151
- set(o, l, f, u) {
1151
+ set(o, l, u, f) {
1152
1152
  var d = r.get(l), h = l in o;
1153
1153
  if (n && l === "length")
1154
- for (var g = f; g < /** @type {Source<number>} */
1154
+ for (var g = u; g < /** @type {Source<number>} */
1155
1155
  d.v; g += 1) {
1156
1156
  var p = r.get(g + "");
1157
1157
  p !== void 0 ? m(p, B) : g in o && (p = a(() => /* @__PURE__ */ A(B)), r.set(g + "", p));
1158
1158
  }
1159
1159
  if (d === void 0)
1160
- (!h || ht(o, l)?.writable) && (d = a(() => /* @__PURE__ */ A(void 0)), m(d, Ne(f)), r.set(l, d));
1160
+ (!h || ht(o, l)?.writable) && (d = a(() => /* @__PURE__ */ A(void 0)), m(d, Ne(u)), r.set(l, d));
1161
1161
  else {
1162
1162
  h = d.v !== B;
1163
- var _ = a(() => Ne(f));
1163
+ var _ = a(() => Ne(u));
1164
1164
  m(d, _);
1165
1165
  }
1166
1166
  var z = Reflect.getOwnPropertyDescriptor(o, l);
1167
- if (z?.set && z.set.call(u, f), !h) {
1167
+ if (z?.set && z.set.call(f, u), !h) {
1168
1168
  if (n && typeof l == "string") {
1169
1169
  var w = (
1170
1170
  /** @type {Source<number>} */
@@ -1182,8 +1182,8 @@ function Ne(e) {
1182
1182
  var h = r.get(d);
1183
1183
  return h === void 0 || h.v !== B;
1184
1184
  });
1185
- for (var [f, u] of r)
1186
- u.v !== B && !(f in o) && l.push(f);
1185
+ for (var [u, f] of r)
1186
+ f.v !== B && !(u in o) && l.push(u);
1187
1187
  return l;
1188
1188
  },
1189
1189
  setPrototypeOf() {
@@ -1294,7 +1294,7 @@ function jn(e) {
1294
1294
  ge(t), Ae(r);
1295
1295
  }
1296
1296
  }
1297
- function ui(e) {
1297
+ function fi(e) {
1298
1298
  E === null && (x === null && Bs(), js()), Ye && Us();
1299
1299
  }
1300
1300
  function di(e, t) {
@@ -1346,7 +1346,7 @@ function hi(e) {
1346
1346
  return P(t, F), t.teardown = e, t;
1347
1347
  }
1348
1348
  function Yt(e) {
1349
- ui();
1349
+ fi();
1350
1350
  var t = (
1351
1351
  /** @type {Effect} */
1352
1352
  E.f
@@ -1417,7 +1417,7 @@ function Wn(e, t = !1) {
1417
1417
  for (e.first = e.last = null; r !== null; ) {
1418
1418
  const s = r.ac;
1419
1419
  s !== null && jn(() => {
1420
- s.abort(ut);
1420
+ s.abort(ft);
1421
1421
  });
1422
1422
  var n = r.next;
1423
1423
  (r.f & Ze) !== 0 ? r.parent = null : Z(r, t), r = n;
@@ -1575,17 +1575,17 @@ function Qn(e, t, r = !0) {
1575
1575
  }
1576
1576
  }
1577
1577
  function es(e) {
1578
- var t = re, r = ie, n = de, s = x, i = ve, a = ce, o = ye, l = st, f = e.f;
1578
+ var t = re, r = ie, n = de, s = x, i = ve, a = ce, o = ye, l = st, u = e.f;
1579
1579
  re = /** @type {null | Value[]} */
1580
- null, ie = 0, de = null, x = (f & (Se | Ze)) === 0 ? e : null, ve = null, mt(e.ctx), ye = !1, st = ++tt, e.ac !== null && (jn(() => {
1581
- e.ac.abort(ut);
1580
+ null, ie = 0, de = null, x = (u & (Se | Ze)) === 0 ? e : null, ve = null, mt(e.ctx), ye = !1, st = ++tt, e.ac !== null && (jn(() => {
1581
+ e.ac.abort(ft);
1582
1582
  }), e.ac = null);
1583
1583
  try {
1584
1584
  e.f |= kr;
1585
- var u = (
1585
+ var f = (
1586
1586
  /** @type {Function} */
1587
1587
  e.fn
1588
- ), d = u(), h = e.deps, g = D?.is_fork;
1588
+ ), d = f(), h = e.deps, g = D?.is_fork;
1589
1589
  if (re !== null) {
1590
1590
  var p;
1591
1591
  if (g || Zt(e, ie), h !== null && ie > 0)
@@ -1691,8 +1691,8 @@ function c(e) {
1691
1691
  var o = a.v;
1692
1692
  return ((a.f & F) === 0 && a.reactions !== null || rs(a)) && (o = Br(a)), Ge.set(a, o), o;
1693
1693
  }
1694
- var l = (a.f & pe) === 0 && !ye && x !== null && (qt || (x.f & pe) !== 0), f = a.deps === null;
1695
- Mt(a) && (l && (a.f |= pe), Rn(a)), l && !f && ts(a);
1694
+ var l = (a.f & pe) === 0 && !ye && x !== null && (qt || (x.f & pe) !== 0), u = a.deps === null;
1695
+ Mt(a) && (l && (a.f |= pe), Rn(a)), l && !u && ts(a);
1696
1696
  }
1697
1697
  if (be?.has(e))
1698
1698
  return be.get(e);
@@ -1754,10 +1754,10 @@ function Bt(e) {
1754
1754
  e.__root = t;
1755
1755
  return;
1756
1756
  }
1757
- var f = s.indexOf(t);
1758
- if (f === -1)
1757
+ var u = s.indexOf(t);
1758
+ if (u === -1)
1759
1759
  return;
1760
- l <= f && (a = l);
1760
+ l <= u && (a = l);
1761
1761
  }
1762
1762
  if (i = /** @type {Element} */
1763
1763
  s[a] || e.target, i !== t) {
@@ -1767,7 +1767,7 @@ function Bt(e) {
1767
1767
  return i || r;
1768
1768
  }
1769
1769
  });
1770
- var u = x, d = E;
1770
+ var f = x, d = E;
1771
1771
  ge(null), Ae(null);
1772
1772
  try {
1773
1773
  for (var h, g = []; i !== null; ) {
@@ -1794,7 +1794,7 @@ function Bt(e) {
1794
1794
  throw h;
1795
1795
  }
1796
1796
  } finally {
1797
- e.__root = t, delete e.currentTarget, ge(u), Ae(d);
1797
+ e.__root = t, delete e.currentTarget, ge(f), Ae(d);
1798
1798
  }
1799
1799
  }
1800
1800
  }
@@ -1919,7 +1919,7 @@ function ki(e, t) {
1919
1919
  Le(n), le(s);
1920
1920
  }
1921
1921
  }
1922
- const ft = /* @__PURE__ */ new Map();
1922
+ const ut = /* @__PURE__ */ new Map();
1923
1923
  function os(e, { target: t, anchor: r, props: n = {}, events: s, context: i, intro: a = !0 }) {
1924
1924
  Tr();
1925
1925
  var o = /* @__PURE__ */ new Set(), l = (d) => {
@@ -1929,13 +1929,13 @@ function os(e, { target: t, anchor: r, props: n = {}, events: s, context: i, int
1929
1929
  o.add(g);
1930
1930
  var p = Si(g);
1931
1931
  t.addEventListener(g, Bt, { passive: p });
1932
- var _ = ft.get(g);
1933
- _ === void 0 ? (document.addEventListener(g, Bt, { passive: p }), ft.set(g, 1)) : ft.set(g, _ + 1);
1932
+ var _ = ut.get(g);
1933
+ _ === void 0 ? (document.addEventListener(g, Bt, { passive: p }), ut.set(g, 1)) : ut.set(g, _ + 1);
1934
1934
  }
1935
1935
  }
1936
1936
  };
1937
1937
  l(er(ns)), zr.add(l);
1938
- var f = void 0, u = vi(() => {
1938
+ var u = void 0, f = vi(() => {
1939
1939
  var d = r ?? t.appendChild(xe());
1940
1940
  return ni(
1941
1941
  /** @type {TemplateNode} */
@@ -1957,7 +1957,7 @@ function os(e, { target: t, anchor: r, props: n = {}, events: s, context: i, int
1957
1957
  /** @type {TemplateNode} */
1958
1958
  h,
1959
1959
  null
1960
- ), f = e(h, n) || {}, k && (E.nodes.end = S, S === null || S.nodeType !== wt || /** @type {Comment} */
1960
+ ), u = e(h, n) || {}, k && (E.nodes.end = S, S === null || S.nodeType !== wt || /** @type {Comment} */
1961
1961
  S.data !== Dr))
1962
1962
  throw sr(), pt;
1963
1963
  i && Ur();
@@ -1967,14 +1967,14 @@ function os(e, { target: t, anchor: r, props: n = {}, events: s, context: i, int
1967
1967
  t.removeEventListener(h, Bt);
1968
1968
  var g = (
1969
1969
  /** @type {number} */
1970
- ft.get(h)
1970
+ ut.get(h)
1971
1971
  );
1972
- --g === 0 ? (document.removeEventListener(h, Bt), ft.delete(h)) : ft.set(h, g);
1972
+ --g === 0 ? (document.removeEventListener(h, Bt), ut.delete(h)) : ut.set(h, g);
1973
1973
  }
1974
1974
  zr.delete(l), d !== r && d.parentNode?.removeChild(d);
1975
1975
  };
1976
1976
  });
1977
- return Rr.set(f, u), f;
1977
+ return Rr.set(u, f), u;
1978
1978
  }
1979
1979
  let Rr = /* @__PURE__ */ new WeakMap();
1980
1980
  function Ei(e, t) {
@@ -2050,8 +2050,8 @@ class Ci {
2050
2050
  if (i === r || this.#a.has(i)) continue;
2051
2051
  const o = () => {
2052
2052
  if (Array.from(this.#e.values()).includes(i)) {
2053
- var f = document.createDocumentFragment();
2054
- Jn(a, f), f.append(xe()), this.#r.set(i, { effect: a, fragment: f });
2053
+ var u = document.createDocumentFragment();
2054
+ Jn(a, u), u.append(xe()), this.#r.set(i, { effect: a, fragment: u });
2055
2055
  } else
2056
2056
  Z(a);
2057
2057
  this.#a.delete(i), this.#t.delete(i);
@@ -2115,8 +2115,8 @@ function H(e, t, r = !1) {
2115
2115
  var n = new Ci(e), s = r ? gt : 0;
2116
2116
  function i(a, o) {
2117
2117
  if (k) {
2118
- const f = _n(e) === Qt;
2119
- if (a === f) {
2118
+ const u = _n(e) === Qt;
2119
+ if (a === u) {
2120
2120
  var l = Jt();
2121
2121
  le(l), n.anchor = l, Le(!1), n.ensure(a, o), Le(!0);
2122
2122
  return;
@@ -2154,14 +2154,14 @@ function Ai(e, t, r) {
2154
2154
  if (a === 0) {
2155
2155
  var l = n.length === 0 && r !== null;
2156
2156
  if (l) {
2157
- var f = (
2157
+ var u = (
2158
2158
  /** @type {Element} */
2159
2159
  r
2160
- ), u = (
2160
+ ), f = (
2161
2161
  /** @type {Element} */
2162
- f.parentNode
2162
+ u.parentNode
2163
2163
  );
2164
- Fn(u), u.append(f), e.items.clear();
2164
+ Fn(f), f.append(u), e.items.clear();
2165
2165
  }
2166
2166
  Mr(t, !l);
2167
2167
  } else
@@ -2178,19 +2178,19 @@ var on;
2178
2178
  function Ti(e, t, r, n, s, i = null) {
2179
2179
  var a = e, o = /* @__PURE__ */ new Map();
2180
2180
  k && ir();
2181
- var l = null, f = /* @__PURE__ */ li(() => {
2181
+ var l = null, u = /* @__PURE__ */ li(() => {
2182
2182
  var _ = r();
2183
2183
  return hn(_) ? _ : _ == null ? [] : er(_);
2184
- }), u, d = !0;
2184
+ }), f, d = !0;
2185
2185
  function h() {
2186
- p.fallback = l, zi(p, u, a, t, n), l !== null && (u.length === 0 ? (l.f & We) === 0 ? Gr(l) : (l.f ^= We, At(l, null, a)) : nt(l, () => {
2186
+ p.fallback = l, zi(p, f, a, t, n), l !== null && (f.length === 0 ? (l.f & We) === 0 ? Gr(l) : (l.f ^= We, At(l, null, a)) : nt(l, () => {
2187
2187
  l = null;
2188
2188
  }));
2189
2189
  }
2190
2190
  var g = Vr(() => {
2191
- u = /** @type {V[]} */
2192
- c(f);
2193
- var _ = u.length;
2191
+ f = /** @type {V[]} */
2192
+ c(u);
2193
+ var _ = f.length;
2194
2194
  let z = !1;
2195
2195
  if (k) {
2196
2196
  var w = _n(a) === Qt;
@@ -2203,7 +2203,7 @@ function Ti(e, t, r, n, s, i = null) {
2203
2203
  k && S.nodeType === wt && /** @type {Comment} */
2204
2204
  S.data === Dr && (a = /** @type {Comment} */
2205
2205
  S, z = !0, Le(!1));
2206
- var Re = u[G], ke = n(Re, G), R = d ? null : o.get(ke);
2206
+ var Re = f[G], ke = n(Re, G), R = d ? null : o.get(ke);
2207
2207
  R ? (R.v && bt(R.v, Re), R.i && bt(R.i, G), V && X.unskip_effect(R.e)) : (R = Ri(
2208
2208
  o,
2209
2209
  d ? a : on ??= xe(),
@@ -2223,7 +2223,7 @@ function Ti(e, t, r, n, s, i = null) {
2223
2223
  });
2224
2224
  } else
2225
2225
  h();
2226
- z && Le(!0), c(f);
2226
+ z && Le(!0), c(u);
2227
2227
  }), p = { effect: g, items: o, outrogroups: null, fallback: l };
2228
2228
  d = !1, k && (a = S);
2229
2229
  }
@@ -2233,7 +2233,7 @@ function Et(e) {
2233
2233
  return e;
2234
2234
  }
2235
2235
  function zi(e, t, r, n, s) {
2236
- var i = t.length, a = e.items, o = Et(e.effect.first), l, f = null, u = [], d = [], h, g, p, _;
2236
+ var i = t.length, a = e.items, o = Et(e.effect.first), l, u = null, f = [], d = [], h, g, p, _;
2237
2237
  for (_ = 0; _ < i; _ += 1) {
2238
2238
  if (h = t[_], g = s(h, _), p = /** @type {EachItem} */
2239
2239
  a.get(g).e, e.outrogroups !== null)
@@ -2243,31 +2243,31 @@ function zi(e, t, r, n, s) {
2243
2243
  if (p.f ^= We, p === o)
2244
2244
  At(p, null, r);
2245
2245
  else {
2246
- var z = f ? f.next : o;
2247
- p === e.effect.last && (e.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), He(e, f, p), He(e, p, z), At(p, z, r), f = p, u = [], d = [], o = Et(f.next);
2246
+ var z = u ? u.next : o;
2247
+ p === e.effect.last && (e.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), He(e, u, p), He(e, p, z), At(p, z, r), u = p, f = [], d = [], o = Et(u.next);
2248
2248
  continue;
2249
2249
  }
2250
2250
  if ((p.f & oe) !== 0 && Gr(p), p !== o) {
2251
2251
  if (l !== void 0 && l.has(p)) {
2252
- if (u.length < d.length) {
2252
+ if (f.length < d.length) {
2253
2253
  var w = d[0], $;
2254
- f = w.prev;
2255
- var X = u[0], V = u[u.length - 1];
2256
- for ($ = 0; $ < u.length; $ += 1)
2257
- At(u[$], w, r);
2254
+ u = w.prev;
2255
+ var X = f[0], V = f[f.length - 1];
2256
+ for ($ = 0; $ < f.length; $ += 1)
2257
+ At(f[$], w, r);
2258
2258
  for ($ = 0; $ < d.length; $ += 1)
2259
2259
  l.delete(d[$]);
2260
- He(e, X.prev, V.next), He(e, f, X), He(e, V, w), o = w, f = V, _ -= 1, u = [], d = [];
2260
+ He(e, X.prev, V.next), He(e, u, X), He(e, V, w), o = w, u = V, _ -= 1, f = [], d = [];
2261
2261
  } else
2262
- l.delete(p), At(p, o, r), He(e, p.prev, p.next), He(e, p, f === null ? e.effect.first : f.next), He(e, f, p), f = p;
2262
+ l.delete(p), At(p, o, r), He(e, p.prev, p.next), He(e, p, u === null ? e.effect.first : u.next), He(e, u, p), u = p;
2263
2263
  continue;
2264
2264
  }
2265
- for (u = [], d = []; o !== null && o !== p; )
2265
+ for (f = [], d = []; o !== null && o !== p; )
2266
2266
  (l ??= /* @__PURE__ */ new Set()).add(o), d.push(o), o = Et(o.next);
2267
2267
  if (o === null)
2268
2268
  continue;
2269
2269
  }
2270
- (p.f & We) === 0 && u.push(p), f = p, o = Et(p.next);
2270
+ (p.f & We) === 0 && f.push(p), u = p, o = Et(p.next);
2271
2271
  }
2272
2272
  if (e.outrogroups !== null) {
2273
2273
  for (const R of e.outrogroups)
@@ -2289,11 +2289,11 @@ function zi(e, t, r, n, s) {
2289
2289
  }
2290
2290
  }
2291
2291
  function Ri(e, t, r, n, s, i, a, o) {
2292
- var l = (a & Ss) !== 0 ? (a & Es) === 0 ? /* @__PURE__ */ In(r, !1, !1) : at(r) : null, f = (a & ks) !== 0 ? at(s) : null;
2292
+ var l = (a & Ss) !== 0 ? (a & Es) === 0 ? /* @__PURE__ */ In(r, !1, !1) : at(r) : null, u = (a & ks) !== 0 ? at(s) : null;
2293
2293
  return {
2294
2294
  v: l,
2295
- i: f,
2296
- e: he(() => (i(t, l ?? r, f ?? s, o), () => {
2295
+ i: u,
2296
+ e: he(() => (i(t, l ?? r, u ?? s, o), () => {
2297
2297
  e.delete(n);
2298
2298
  }))
2299
2299
  };
@@ -2369,23 +2369,23 @@ function Ii(e, t) {
2369
2369
  e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
2370
2370
  var i = !1, a = 0, o = !1, l = [];
2371
2371
  n && l.push(...Object.keys(n).map(yr)), s && l.push(...Object.keys(s).map(yr));
2372
- var f = 0, u = -1;
2372
+ var u = 0, f = -1;
2373
2373
  const _ = e.length;
2374
2374
  for (var d = 0; d < _; d++) {
2375
2375
  var h = e[d];
2376
2376
  if (o ? h === "/" && e[d - 1] === "*" && (o = !1) : i ? i === h && (i = !1) : h === "/" && e[d + 1] === "*" ? o = !0 : h === '"' || h === "'" ? i = h : h === "(" ? a++ : h === ")" && a--, !o && i === !1 && a === 0) {
2377
- if (h === ":" && u === -1)
2378
- u = d;
2377
+ if (h === ":" && f === -1)
2378
+ f = d;
2379
2379
  else if (h === ";" || d === _ - 1) {
2380
- if (u !== -1) {
2381
- var g = yr(e.substring(f, u).trim());
2380
+ if (f !== -1) {
2381
+ var g = yr(e.substring(u, f).trim());
2382
2382
  if (!l.includes(g)) {
2383
2383
  h !== ";" && d++;
2384
- var p = e.substring(f, d).trim();
2384
+ var p = e.substring(u, d).trim();
2385
2385
  r += " " + p + ";";
2386
2386
  }
2387
2387
  }
2388
- f = d + 1, u = -1;
2388
+ u = d + 1, f = -1;
2389
2389
  }
2390
2390
  }
2391
2391
  }
@@ -2401,8 +2401,8 @@ function dt(e, t, r, n, s, i) {
2401
2401
  (!k || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e.__className = r;
2402
2402
  } else if (i && s !== i)
2403
2403
  for (var l in i) {
2404
- var f = !!i[l];
2405
- (s == null || f !== !!s[l]) && e.classList.toggle(l, f);
2404
+ var u = !!i[l];
2405
+ (s == null || u !== !!s[l]) && e.classList.toggle(l, u);
2406
2406
  }
2407
2407
  return i;
2408
2408
  }
@@ -2435,11 +2435,11 @@ function Li(e) {
2435
2435
  }
2436
2436
  );
2437
2437
  }
2438
- var fn = /* @__PURE__ */ new Map();
2438
+ var un = /* @__PURE__ */ new Map();
2439
2439
  function Ni(e) {
2440
- var t = e.getAttribute("is") || e.nodeName, r = fn.get(t);
2440
+ var t = e.getAttribute("is") || e.nodeName, r = un.get(t);
2441
2441
  if (r) return r;
2442
- fn.set(t, r = []);
2442
+ un.set(t, r = []);
2443
2443
  for (var n, s = e, i = Element.prototype; i !== s; ) {
2444
2444
  n = Rs(s);
2445
2445
  for (var a in n)
@@ -2448,7 +2448,7 @@ function Ni(e) {
2448
2448
  }
2449
2449
  return r;
2450
2450
  }
2451
- function un(e, t) {
2451
+ function fn(e, t) {
2452
2452
  return e === t || e?.[Ht] === t;
2453
2453
  }
2454
2454
  function Or(e = {}, t, r, n) {
@@ -2456,11 +2456,11 @@ function Or(e = {}, t, r, n) {
2456
2456
  var s, i;
2457
2457
  return Wr(() => {
2458
2458
  s = i, i = [], Kr(() => {
2459
- e !== r(...i) && (t(e, ...i), s && un(r(...s), e) && t(null, ...s));
2459
+ e !== r(...i) && (t(e, ...i), s && fn(r(...s), e) && t(null, ...s));
2460
2460
  });
2461
2461
  }), () => {
2462
2462
  rt(() => {
2463
- i && un(r(...i), e) && t(null, ...i);
2463
+ i && fn(r(...i), e) && t(null, ...i);
2464
2464
  });
2465
2465
  };
2466
2466
  }), e;
@@ -2481,7 +2481,7 @@ function Y(e, t, r, n) {
2481
2481
  );
2482
2482
  return h === void 0 ? a() : (i = !0, h);
2483
2483
  };
2484
- var f = !1, u = /* @__PURE__ */ or(() => (f = !1, l())), d = (
2484
+ var u = !1, f = /* @__PURE__ */ or(() => (u = !1, l())), d = (
2485
2485
  /** @type {Effect} */
2486
2486
  E
2487
2487
  );
@@ -2489,10 +2489,10 @@ function Y(e, t, r, n) {
2489
2489
  /** @type {() => V} */
2490
2490
  (function(h, g) {
2491
2491
  if (arguments.length > 0) {
2492
- const p = g ? c(u) : h;
2493
- return m(u, p), f = !0, s !== void 0 && (s = p), h;
2492
+ const p = g ? c(f) : h;
2493
+ return m(f, p), u = !0, s !== void 0 && (s = p), h;
2494
2494
  }
2495
- return Ye && f || (d.f & Pe) !== 0 ? u.v : c(u);
2495
+ return Ye && u || (d.f & Pe) !== 0 ? f.v : c(f);
2496
2496
  })
2497
2497
  );
2498
2498
  }
@@ -2577,8 +2577,8 @@ class Fi {
2577
2577
  this.#t.$destroy();
2578
2578
  }
2579
2579
  }
2580
- let fs;
2581
- typeof HTMLElement == "function" && (fs = class extends HTMLElement {
2580
+ let us;
2581
+ typeof HTMLElement == "function" && (us = class extends HTMLElement {
2582
2582
  /** The Svelte component constructor */
2583
2583
  $$ctor;
2584
2584
  /** Slots */
@@ -2747,8 +2747,8 @@ function Ui(e) {
2747
2747
  ] = !0;
2748
2748
  }), t;
2749
2749
  }
2750
- function us(e, t, r, n, s, i) {
2751
- let a = class extends fs {
2750
+ function fs(e, t, r, n, s, i) {
2751
+ let a = class extends us {
2752
2752
  constructor() {
2753
2753
  super(e, r, s), this.$$p_d = t;
2754
2754
  }
@@ -2765,10 +2765,10 @@ function us(e, t, r, n, s, i) {
2765
2765
  },
2766
2766
  set(l) {
2767
2767
  l = Wt(o, l, t), this.$$d[o] = l;
2768
- var f = this.$$c;
2769
- if (f) {
2770
- var u = ht(f, o)?.get;
2771
- u ? f[o] = l : f.$set({ [o]: l });
2768
+ var u = this.$$c;
2769
+ if (u) {
2770
+ var f = ht(u, o)?.get;
2771
+ f ? u[o] = l : u.$set({ [o]: l });
2772
2772
  }
2773
2773
  }
2774
2774
  });
@@ -2909,18 +2909,18 @@ class Bi {
2909
2909
  o && a.addTrack(o);
2910
2910
  const l = s.stream.getAudioTracks()[0];
2911
2911
  l && a.addTrack(l), this.mediaStream = a, this.mediaStream._originalDisplayStream = t, this.mediaStream._originalMicStream = r, this.mediaStream._audioContext = n;
2912
- const f = [
2912
+ const u = [
2913
2913
  "video/webm;codecs=vp9,opus",
2914
2914
  "video/webm;codecs=vp8,opus",
2915
2915
  "video/webm"
2916
2916
  ];
2917
- let u = "video/webm";
2918
- for (const d of f)
2917
+ let f = "video/webm";
2918
+ for (const d of u)
2919
2919
  if (MediaRecorder.isTypeSupported(d)) {
2920
- u = d;
2920
+ f = d;
2921
2921
  break;
2922
2922
  }
2923
- this.mediaRecorder = new MediaRecorder(a, { mimeType: u }), this.recordingChunks = [], this.mediaRecorder.ondataavailable = (d) => {
2923
+ this.mediaRecorder = new MediaRecorder(a, { mimeType: f }), this.recordingChunks = [], this.mediaRecorder.ondataavailable = (d) => {
2924
2924
  d.data.size > 0 && this.recordingChunks.push(d.data);
2925
2925
  }, this.mediaRecorder.start();
2926
2926
  } catch (t) {
@@ -3097,7 +3097,7 @@ let xr = null;
3097
3097
  function ds() {
3098
3098
  return xr || (xr = new Bi()), xr;
3099
3099
  }
3100
- var Hi = /* @__PURE__ */ U('<button class="recording-btn svelte-1105cax" aria-label="Stop recording"><span class="recording-dot svelte-1105cax"></span> <span class="recording-time svelte-1105cax"> </span> <span class="stop-label svelte-1105cax">Stop</span></button>'), qi = /* @__PURE__ */ U('<span class="unread-badge svelte-1105cax"> </span>'), Wi = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-1105cax"><path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" class="svelte-1105cax"></path></svg>'), Vi = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-1105cax"><path fill-rule="evenodd" d="M4.804 21.644A6.707 6.707 0 0 0 6 21.75a6.721 6.721 0 0 0 3.583-1.029c.774.182 1.584.279 2.417.279 5.322 0 9.75-3.97 9.75-9 0-5.03-4.428-9-9.75-9s-9.75 3.97-9.75 9c0 2.409 1.025 4.587 2.674 6.192.232.226.277.428.254.543a3.73 3.73 0 0 1-.814 1.686.75.75 0 0 0 .44 1.223ZM8.25 10.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25ZM10.875 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Zm4.875-1.125a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Z" clip-rule="evenodd" class="svelte-1105cax"></path></svg>'), Gi = /* @__PURE__ */ U('<button class="toggle-btn svelte-1105cax"><!> <!></button>'), Ki = /* @__PURE__ */ U('<div class="loading-state svelte-1105cax"><div class="loading-spinner svelte-1105cax"></div> <p class="svelte-1105cax">Loading...</p></div>'), Ji = /* @__PURE__ */ U('<div class="support-chat svelte-1105cax"><!> <div><!> <iframe title="Support Chat" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox" allow="clipboard-write; display-capture; microphone"></iframe></div></div>');
3100
+ var Hi = /* @__PURE__ */ U('<button class="recording-btn svelte-1105cax" aria-label="Stop recording"><span class="recording-dot svelte-1105cax"></span> <span class="recording-time svelte-1105cax"> </span> <span class="stop-label svelte-1105cax">Stop</span></button>'), qi = /* @__PURE__ */ U('<span class="unread-badge svelte-1105cax"> </span>'), Wi = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-1105cax"><path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" class="svelte-1105cax"></path></svg>'), Vi = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-1105cax"><path fill-rule="evenodd" d="M4.804 21.644A6.707 6.707 0 0 0 6 21.75a6.721 6.721 0 0 0 3.583-1.029c.774.182 1.584.279 2.417.279 5.322 0 9.75-3.97 9.75-9 0-5.03-4.428-9-9.75-9s-9.75 3.97-9.75 9c0 2.409 1.025 4.587 2.674 6.192.232.226.277.428.254.543a3.73 3.73 0 0 1-.814 1.686.75.75 0 0 0 .44 1.223ZM8.25 10.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25ZM10.875 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Zm4.875-1.125a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Z" clip-rule="evenodd" class="svelte-1105cax"></path></svg>'), Gi = /* @__PURE__ */ U('<button class="toggle-btn svelte-1105cax"><!> <!></button>'), Ki = /* @__PURE__ */ U('<div class="loading-state svelte-1105cax"><div class="loading-spinner svelte-1105cax"></div> <p class="svelte-1105cax">Loading...</p></div>'), Ji = /* @__PURE__ */ U('<div class="support-chat svelte-1105cax"><!> <div><!> <iframe title="Support Chat" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation" allow="clipboard-write; display-capture; microphone"></iframe></div></div>');
3101
3101
  const Yi = {
3102
3102
  hash: "svelte-1105cax",
3103
3103
  code: `.svelte-1105cax {box-sizing:border-box;margin:0;padding:0;}.support-chat.svelte-1105cax {--primary-color: #6366f1;--shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
@@ -3152,7 +3152,7 @@ function Zi(e, t) {
3152
3152
  7,
3153
3153
  "true"
3154
3154
  // Default to string 'true' since HTML attributes are strings
3155
- ), a = Y(t, "allowAttachments", 7, !0), o = Y(t, "allowScreenRecording", 7, !0), l = Y(t, "captureConsoleLogs", 7, !0), f = /* @__PURE__ */ A(!1), u = /* @__PURE__ */ A(!1), d = /* @__PURE__ */ A(!1), h = /* @__PURE__ */ A(0), g = /* @__PURE__ */ A(!1), p = /* @__PURE__ */ A(null), _ = /* @__PURE__ */ A("00:00"), z = /* @__PURE__ */ A(void 0), w = /* @__PURE__ */ A(null), $ = /* @__PURE__ */ A(Ne([])), X = /* @__PURE__ */ A(Ne([]));
3155
+ ), a = Y(t, "allowAttachments", 7, !0), o = Y(t, "allowScreenRecording", 7, !0), l = Y(t, "captureConsoleLogs", 7, !0), u = /* @__PURE__ */ A(!1), f = /* @__PURE__ */ A(!1), d = /* @__PURE__ */ A(!1), h = /* @__PURE__ */ A(0), g = /* @__PURE__ */ A(!1), p = /* @__PURE__ */ A(null), _ = /* @__PURE__ */ A("00:00"), z = /* @__PURE__ */ A(void 0), w = /* @__PURE__ */ A(null), $ = /* @__PURE__ */ A(Ne([])), X = /* @__PURE__ */ A(Ne([]));
3156
3156
  Yt(() => {
3157
3157
  if (c(g) && c(p) !== null) {
3158
3158
  const y = setInterval(
@@ -3165,7 +3165,7 @@ function Zi(e, t) {
3165
3165
  return () => clearInterval(y);
3166
3166
  }
3167
3167
  });
3168
- const V = /* @__PURE__ */ _e(() => i() === "false" || i() === !1), G = /* @__PURE__ */ _e(() => !c(f) || c(V) || !c(u)), Re = /* @__PURE__ */ _e(() => `${n()}/embed/${r()}${c(V) ? "?showHeader=false" : ""}`), ke = /* @__PURE__ */ _e(() => s() === "bottom-left" ? "left: 1rem; right: auto;" : "right: 1rem; left: auto;");
3168
+ const V = /* @__PURE__ */ _e(() => i() === "false" || i() === !1), G = /* @__PURE__ */ _e(() => !c(u) || c(V) || !c(f)), Re = /* @__PURE__ */ _e(() => `${n()}/embed/${r()}${c(V) ? "?showHeader=false" : ""}`), ke = /* @__PURE__ */ _e(() => s() === "bottom-left" ? "left: 1rem; right: auto;" : "right: 1rem; left: auto;");
3169
3169
  ls(() => {
3170
3170
  m(w, ds(), !0), l() && c(w).startConsoleCapture();
3171
3171
  function y(L) {
@@ -3178,10 +3178,10 @@ function Zi(e, t) {
3178
3178
  const { type: se, payload: Ee } = L.data || {};
3179
3179
  switch (se) {
3180
3180
  case "fortalece:ready":
3181
- m(u, !0);
3181
+ m(f, !0);
3182
3182
  break;
3183
3183
  case "fortalece:close-request":
3184
- m(f, !1);
3184
+ m(u, !1);
3185
3185
  break;
3186
3186
  case "fortalece:request-context":
3187
3187
  yt();
@@ -3199,10 +3199,10 @@ function Zi(e, t) {
3199
3199
  m(h, Ee?.count || 0, !0);
3200
3200
  break;
3201
3201
  case "fortalece:recording-started":
3202
- m(g, !0), m(p, Date.now(), !0), m(_, "00:00"), m(f, !1);
3202
+ m(g, !0), m(p, Date.now(), !0), m(_, "00:00"), m(u, !1);
3203
3203
  break;
3204
3204
  case "fortalece:recording-stopped":
3205
- m(g, !1), m(p, null), m(_, "00:00"), m(f, !0);
3205
+ m(g, !1), m(p, null), m(_, "00:00"), m(u, !0);
3206
3206
  break;
3207
3207
  }
3208
3208
  }
@@ -3211,7 +3211,7 @@ function Zi(e, t) {
3211
3211
  };
3212
3212
  });
3213
3213
  function R() {
3214
- m(f, !c(f)), c(f) && m(h, 0);
3214
+ m(u, !c(u)), c(u) && m(h, 0);
3215
3215
  }
3216
3216
  function lt() {
3217
3217
  me("fortalece:stop-recording"), m(g, !1), m(p, null), m(_, "00:00");
@@ -3254,7 +3254,7 @@ function Zi(e, t) {
3254
3254
  }));
3255
3255
  }
3256
3256
  Yt(() => {
3257
- c(f) && c(u) && (me("fortalece:opened"), yt(), ne());
3257
+ c(u) && c(f) && (me("fortalece:opened"), yt(), ne());
3258
3258
  });
3259
3259
  var It = {
3260
3260
  get embedId() {
@@ -3301,12 +3301,12 @@ function Zi(e, t) {
3301
3301
  }
3302
3302
  }, je = Ji(), Ot = I(je);
3303
3303
  {
3304
- var fr = (y) => {
3304
+ var ur = (y) => {
3305
3305
  var L = Hi();
3306
3306
  L.__click = lt;
3307
3307
  var se = N(I(L), 2), Ee = I(se, !0);
3308
3308
  M(se), Pr(2), M(L), te(() => qe(Ee, c(_))), O(y, L);
3309
- }, ur = (y) => {
3309
+ }, fr = (y) => {
3310
3310
  var L = $i(), se = Pn(L);
3311
3311
  {
3312
3312
  var Ee = (Be) => {
@@ -3314,28 +3314,28 @@ function Zi(e, t) {
3314
3314
  Xe.__click = R;
3315
3315
  var St = I(Xe);
3316
3316
  {
3317
- var hr = (fe) => {
3317
+ var hr = (ue) => {
3318
3318
  var Me = qi(), v = I(Me, !0);
3319
- M(Me), te(() => qe(v, c(h) > 9 ? "9+" : c(h))), O(fe, Me);
3319
+ M(Me), te(() => qe(v, c(h) > 9 ? "9+" : c(h))), O(ue, Me);
3320
3320
  };
3321
- H(St, (fe) => {
3322
- c(h) > 0 && !c(f) && fe(hr);
3321
+ H(St, (ue) => {
3322
+ c(h) > 0 && !c(u) && ue(hr);
3323
3323
  });
3324
3324
  }
3325
3325
  var Ft = N(St, 2);
3326
3326
  {
3327
- var pr = (fe) => {
3327
+ var pr = (ue) => {
3328
3328
  var Me = Wi();
3329
- O(fe, Me);
3330
- }, kt = (fe) => {
3329
+ O(ue, Me);
3330
+ }, kt = (ue) => {
3331
3331
  var Me = Vi();
3332
- O(fe, Me);
3332
+ O(ue, Me);
3333
3333
  };
3334
- H(Ft, (fe) => {
3335
- c(f) ? fe(pr) : fe(kt, !1);
3334
+ H(Ft, (ue) => {
3335
+ c(u) ? ue(pr) : ue(kt, !1);
3336
3336
  });
3337
3337
  }
3338
- M(Xe), te(() => Xt(Xe, "aria-label", c(f) ? "Close chat" : "Open chat")), O(Be, Xe);
3338
+ M(Xe), te(() => Xt(Xe, "aria-label", c(u) ? "Close chat" : "Open chat")), O(Be, Xe);
3339
3339
  };
3340
3340
  H(
3341
3341
  se,
@@ -3348,7 +3348,7 @@ function Zi(e, t) {
3348
3348
  O(y, L);
3349
3349
  };
3350
3350
  H(Ot, (y) => {
3351
- c(g) ? y(fr) : y(ur, !1);
3351
+ c(g) ? y(ur) : y(fr, !1);
3352
3352
  });
3353
3353
  }
3354
3354
  var ct = N(Ot, 2);
@@ -3360,22 +3360,22 @@ function Zi(e, t) {
3360
3360
  O(y, L);
3361
3361
  };
3362
3362
  H(Nt, (y) => {
3363
- c(u) || y(dr);
3363
+ c(f) || y(dr);
3364
3364
  });
3365
3365
  }
3366
3366
  var xt = N(Nt, 2);
3367
3367
  let Pt;
3368
3368
  return Or(xt, (y) => m(z, y), () => c(z)), M(ct), M(je), te(() => {
3369
3369
  Ir(je, c(ke)), Dt = dt(ct, 1, "chat-window svelte-1105cax", null, Dt, {
3370
- "chat-window-hidden": !c(f),
3370
+ "chat-window-hidden": !c(u),
3371
3371
  "chat-window-fullscreen": c(d)
3372
3372
  }), Lt = Ir(ct, "", Lt, {
3373
3373
  bottom: c(d) ? void 0 : c(G) ? "4.5rem" : "0"
3374
- }), Xt(xt, "src", c(Re)), Pt = dt(xt, 1, "svelte-1105cax", null, Pt, { hidden: !c(u) });
3374
+ }), Xt(xt, "src", c(Re)), Pt = dt(xt, 1, "svelte-1105cax", null, Pt, { hidden: !c(f) });
3375
3375
  }), O(e, je), Ur(It);
3376
3376
  }
3377
3377
  ss(["click"]);
3378
- customElements.define("support-chat", us(
3378
+ customElements.define("support-chat", fs(
3379
3379
  Zi,
3380
3380
  {
3381
3381
  embedId: { attribute: "embed-id", reflect: !0 },
@@ -3402,7 +3402,7 @@ customElements.define("support-chat", us(
3402
3402
  [],
3403
3403
  { mode: "open" }
3404
3404
  ));
3405
- var Xi = /* @__PURE__ */ U('<div class="recording-indicator svelte-p7nz7"><div class="recording-dot svelte-p7nz7"></div> <span class="svelte-p7nz7">Recording...</span> <button class="stop-recording-btn svelte-p7nz7">Stop</button></div>'), Qi = /* @__PURE__ */ U('<button class="capture-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">📎</span> <span class="svelte-p7nz7">Add File</span></button>'), ea = /* @__PURE__ */ U('<button class="capture-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">📸</span> <span class="svelte-p7nz7">Screenshot</span></button> <button class="capture-btn record-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">🔴</span> <span class="svelte-p7nz7">Record Screen</span></button>', 1), ta = /* @__PURE__ */ U('<div class="attachment-item svelte-p7nz7"><span class="attachment-icon svelte-p7nz7"> </span> <div class="attachment-info svelte-p7nz7"><span class="attachment-name svelte-p7nz7"> </span> <span class="attachment-size svelte-p7nz7"> </span></div> <button class="remove-attachment-btn svelte-p7nz7">✕</button></div>'), ra = /* @__PURE__ */ U('<div class="attachment-list svelte-p7nz7"><div class="attachment-header svelte-p7nz7"><span class="svelte-p7nz7"> </span></div> <!></div>'), na = /* @__PURE__ */ U('<div class="console-info svelte-p7nz7"><span class="console-icon svelte-p7nz7">🔧</span> <span class="svelte-p7nz7"> </span></div>'), sa = /* @__PURE__ */ U('<div class="capture-panel svelte-p7nz7"><div class="capture-panel-header svelte-p7nz7"><span class="svelte-p7nz7">Capture</span> <button class="close-capture-btn svelte-p7nz7">✕</button></div> <div class="capture-actions svelte-p7nz7"><!> <!></div> <!> <!></div>'), ia = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg>'), aa = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path fill-rule="evenodd" d="M4.848 2.771A49.144 49.144 0 0 1 12 2.25c2.43 0 4.817.178 7.152.52 1.978.292 3.348 2.024 3.348 3.97v6.02c0 1.946-1.37 3.678-3.348 3.97a48.901 48.901 0 0 1-3.476.383.39.39 0 0 0-.297.17l-2.755 4.133a.75.75 0 0 1-1.248 0l-2.755-4.133a.39.39 0 0 0-.297-.17 48.9 48.9 0 0 1-3.476-.384c-1.978-.29-3.348-2.024-3.348-3.97V6.741c0-1.946 1.37-3.68 3.348-3.97Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg>'), oa = /* @__PURE__ */ U('<button class="toggle-btn svelte-p7nz7"><!></button>'), la = /* @__PURE__ */ U('<span class="badge svelte-p7nz7"> </span>'), ca = /* @__PURE__ */ U('<button aria-label="Toggle capture panel"><!> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path d="M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z" class="svelte-p7nz7"></path><path fill-rule="evenodd" d="M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3H4.5a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.151-.178a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg></button>'), fa = /* @__PURE__ */ U('<div class="loading-state svelte-p7nz7"><div class="loading-spinner svelte-p7nz7"></div> <p class="svelte-p7nz7">Loading...</p></div>'), ua = /* @__PURE__ */ U('<div><!> <iframe title="Feedback Panel" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox" allow="clipboard-write; display-capture; microphone"></iframe></div>'), da = /* @__PURE__ */ U('<div><!> <!> <!> <!> <input type="file" accept="image/*,audio/*,video/*" multiple style="display: none;" class="svelte-p7nz7"/> <!></div>');
3405
+ var Xi = /* @__PURE__ */ U('<div class="recording-indicator svelte-p7nz7"><div class="recording-dot svelte-p7nz7"></div> <span class="svelte-p7nz7">Recording...</span> <button class="stop-recording-btn svelte-p7nz7">Stop</button></div>'), Qi = /* @__PURE__ */ U('<button class="capture-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">📎</span> <span class="svelte-p7nz7">Add File</span></button>'), ea = /* @__PURE__ */ U('<button class="capture-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">📸</span> <span class="svelte-p7nz7">Screenshot</span></button> <button class="capture-btn record-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">🔴</span> <span class="svelte-p7nz7">Record Screen</span></button>', 1), ta = /* @__PURE__ */ U('<div class="attachment-item svelte-p7nz7"><span class="attachment-icon svelte-p7nz7"> </span> <div class="attachment-info svelte-p7nz7"><span class="attachment-name svelte-p7nz7"> </span> <span class="attachment-size svelte-p7nz7"> </span></div> <button class="remove-attachment-btn svelte-p7nz7">✕</button></div>'), ra = /* @__PURE__ */ U('<div class="attachment-list svelte-p7nz7"><div class="attachment-header svelte-p7nz7"><span class="svelte-p7nz7"> </span></div> <!></div>'), na = /* @__PURE__ */ U('<div class="console-info svelte-p7nz7"><span class="console-icon svelte-p7nz7">🔧</span> <span class="svelte-p7nz7"> </span></div>'), sa = /* @__PURE__ */ U('<div class="capture-panel svelte-p7nz7"><div class="capture-panel-header svelte-p7nz7"><span class="svelte-p7nz7">Capture</span> <button class="close-capture-btn svelte-p7nz7">✕</button></div> <div class="capture-actions svelte-p7nz7"><!> <!></div> <!> <!></div>'), ia = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg>'), aa = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path fill-rule="evenodd" d="M4.848 2.771A49.144 49.144 0 0 1 12 2.25c2.43 0 4.817.178 7.152.52 1.978.292 3.348 2.024 3.348 3.97v6.02c0 1.946-1.37 3.678-3.348 3.97a48.901 48.901 0 0 1-3.476.383.39.39 0 0 0-.297.17l-2.755 4.133a.75.75 0 0 1-1.248 0l-2.755-4.133a.39.39 0 0 0-.297-.17 48.9 48.9 0 0 1-3.476-.384c-1.978-.29-3.348-2.024-3.348-3.97V6.741c0-1.946 1.37-3.68 3.348-3.97Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg>'), oa = /* @__PURE__ */ U('<button class="toggle-btn svelte-p7nz7"><!></button>'), la = /* @__PURE__ */ U('<span class="badge svelte-p7nz7"> </span>'), ca = /* @__PURE__ */ U('<button aria-label="Toggle capture panel"><!> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path d="M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z" class="svelte-p7nz7"></path><path fill-rule="evenodd" d="M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3H4.5a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.151-.178a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg></button>'), ua = /* @__PURE__ */ U('<div class="loading-state svelte-p7nz7"><div class="loading-spinner svelte-p7nz7"></div> <p class="svelte-p7nz7">Loading...</p></div>'), fa = /* @__PURE__ */ U('<div><!> <iframe title="Feedback Panel" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation" allow="clipboard-write; display-capture; microphone"></iframe></div>'), da = /* @__PURE__ */ U('<div><!> <!> <!> <!> <input type="file" accept="image/*,audio/*,video/*" multiple style="display: none;" class="svelte-p7nz7"/> <!></div>');
3406
3406
  const ha = {
3407
3407
  hash: "svelte-p7nz7",
3408
3408
  code: `
@@ -3462,18 +3462,18 @@ const ha = {
3462
3462
  };
3463
3463
  function pa(e, t) {
3464
3464
  Fr(t, !0), cs(e, ha);
3465
- let r = Y(t, "embedId"), n = Y(t, "embedUrl", 7, "https://app.fortalece.ai"), s = Y(t, "position", 7, "bottom-right"), i = Y(t, "display", 7, "floating"), a = Y(t, "allowAttachments", 7, !0), o = Y(t, "allowScreenRecording", 7, !0), l = Y(t, "captureConsoleLogs", 7, !0), f = Y(
3465
+ let r = Y(t, "embedId"), n = Y(t, "embedUrl", 7, "https://app.fortalece.ai"), s = Y(t, "position", 7, "bottom-right"), i = Y(t, "display", 7, "floating"), a = Y(t, "allowAttachments", 7, !0), o = Y(t, "allowScreenRecording", 7, !0), l = Y(t, "captureConsoleLogs", 7, !0), u = Y(
3466
3466
  t,
3467
3467
  "showHeader",
3468
3468
  7,
3469
3469
  "true"
3470
3470
  // Default to string 'true' since HTML attributes are strings
3471
3471
  );
3472
- const u = /* @__PURE__ */ _e(() => i() === "inline");
3472
+ const f = /* @__PURE__ */ _e(() => i() === "inline");
3473
3473
  let d = /* @__PURE__ */ A(!1), h = /* @__PURE__ */ A(!1);
3474
- const g = /* @__PURE__ */ _e(() => c(u) ? !0 : c(d));
3474
+ const g = /* @__PURE__ */ _e(() => c(f) ? !0 : c(d));
3475
3475
  let p = /* @__PURE__ */ A(!1), _ = /* @__PURE__ */ A(void 0), z = /* @__PURE__ */ A(void 0), w = /* @__PURE__ */ A(null), $ = /* @__PURE__ */ A(Ne([])), X = /* @__PURE__ */ A(Ne([])), V = /* @__PURE__ */ A(!1);
3476
- const G = /* @__PURE__ */ _e(() => f() === "false" || f() === !1), Re = /* @__PURE__ */ _e(() => `${n()}/embed/${r()}?type=feedback-panel${c(G) ? "&showHeader=false" : ""}`), ke = /* @__PURE__ */ _e(() => s() === "bottom-left" ? "left: 1rem; right: auto;" : "right: 1rem; left: auto;"), R = /* @__PURE__ */ _e(() => c($).length < 5), lt = /* @__PURE__ */ _e(() => a() || o());
3476
+ const G = /* @__PURE__ */ _e(() => u() === "false" || u() === !1), Re = /* @__PURE__ */ _e(() => `${n()}/embed/${r()}?type=feedback-panel${c(G) ? "&showHeader=false" : ""}`), ke = /* @__PURE__ */ _e(() => s() === "bottom-left" ? "left: 1rem; right: auto;" : "right: 1rem; left: auto;"), R = /* @__PURE__ */ _e(() => c($).length < 5), lt = /* @__PURE__ */ _e(() => a() || o());
3477
3477
  ls(() => {
3478
3478
  m(w, ds(), !0), l() && c(w).startConsoleCapture();
3479
3479
  function v(b) {
@@ -3500,7 +3500,7 @@ function pa(e, t) {
3500
3500
  case "fortalece:submit-start":
3501
3501
  break;
3502
3502
  case "fortalece:submit-complete":
3503
- b.data.payload?.success && (Nt(), c(u) || m(d, !1));
3503
+ b.data.payload?.success && (Nt(), c(f) || m(d, !1));
3504
3504
  break;
3505
3505
  }
3506
3506
  }
@@ -3550,7 +3550,7 @@ function pa(e, t) {
3550
3550
  function Ot() {
3551
3551
  c(z)?.click();
3552
3552
  }
3553
- async function fr(v) {
3553
+ async function ur(v) {
3554
3554
  const b = v.target;
3555
3555
  if (!(!b.files || !c(w))) {
3556
3556
  for (const C of Array.from(b.files)) {
@@ -3561,7 +3561,7 @@ function pa(e, t) {
3561
3561
  b.value = "";
3562
3562
  }
3563
3563
  }
3564
- function ur(v) {
3564
+ function fr(v) {
3565
3565
  c(w) && (c(w).removeAttachment(v), m($, c($).filter((b) => b.id !== v), !0), ne("fortalece:attachment-removed", { id: v }));
3566
3566
  }
3567
3567
  async function ct() {
@@ -3658,10 +3658,10 @@ function pa(e, t) {
3658
3658
  l(v), K();
3659
3659
  },
3660
3660
  get showHeader() {
3661
- return f();
3661
+ return u();
3662
3662
  },
3663
3663
  set showHeader(v = "true") {
3664
- f(v), K();
3664
+ u(v), K();
3665
3665
  }
3666
3666
  }, y = da();
3667
3667
  let L;
@@ -3672,7 +3672,7 @@ function pa(e, t) {
3672
3672
  C.__click = Dt, M(b), O(v, b);
3673
3673
  };
3674
3674
  H(se, (v) => {
3675
- c(p) && !c(u) && v(Ee);
3675
+ c(p) && !c(f) && v(Ee);
3676
3676
  });
3677
3677
  }
3678
3678
  var Be = N(se, 2);
@@ -3682,12 +3682,12 @@ function pa(e, t) {
3682
3682
  Q.__click = yt, M(C);
3683
3683
  var Ie = N(C, 2), j = I(Ie);
3684
3684
  {
3685
- var ue = (J) => {
3685
+ var fe = (J) => {
3686
3686
  var ee = Qi();
3687
3687
  ee.__click = Ot, te(() => ee.disabled = !c(R)), O(J, ee);
3688
3688
  };
3689
3689
  H(j, (J) => {
3690
- a() && J(ue);
3690
+ a() && J(fe);
3691
3691
  });
3692
3692
  }
3693
3693
  var Oe = N(j, 2);
@@ -3719,7 +3719,7 @@ function pa(e, t) {
3719
3719
  var Xr = N(wr, 2), ws = I(Xr, !0);
3720
3720
  M(Xr), M(br);
3721
3721
  var ys = N(br, 2);
3722
- ys.__click = () => ur(c(Ut).id), M(mr), te(
3722
+ ys.__click = () => fr(c(Ut).id), M(mr), te(
3723
3723
  ($s, xs) => {
3724
3724
  qe(_s, $s), qe(bs, c(Ut).name), qe(ws, xs);
3725
3725
  },
@@ -3747,7 +3747,7 @@ function pa(e, t) {
3747
3747
  M(b), O(v, b);
3748
3748
  };
3749
3749
  H(Be, (v) => {
3750
- c(V) && !c(p) && c(lt) && !c(u) && v(Xe);
3750
+ c(V) && !c(p) && c(lt) && !c(f) && v(Xe);
3751
3751
  });
3752
3752
  }
3753
3753
  var St = N(Be, 2);
@@ -3758,11 +3758,11 @@ function pa(e, t) {
3758
3758
  var C = I(b);
3759
3759
  {
3760
3760
  var Q = (j) => {
3761
- var ue = ia();
3762
- O(j, ue);
3761
+ var fe = ia();
3762
+ O(j, fe);
3763
3763
  }, Ie = (j) => {
3764
- var ue = aa();
3765
- O(j, ue);
3764
+ var fe = aa();
3765
+ O(j, fe);
3766
3766
  };
3767
3767
  H(C, (j) => {
3768
3768
  c(g) ? j(Q) : j(Ie, !1);
@@ -3771,7 +3771,7 @@ function pa(e, t) {
3771
3771
  M(b), te(() => Xt(b, "aria-label", c(g) ? "Close feedback" : "Send feedback")), O(v, b);
3772
3772
  };
3773
3773
  H(St, (v) => {
3774
- c(u) || v(hr);
3774
+ c(f) || v(hr);
3775
3775
  });
3776
3776
  }
3777
3777
  var Ft = N(St, 2);
@@ -3783,8 +3783,8 @@ function pa(e, t) {
3783
3783
  var Q = I(b);
3784
3784
  {
3785
3785
  var Ie = (j) => {
3786
- var ue = la(), Oe = I(ue, !0);
3787
- M(ue), te(() => qe(Oe, c($).length)), O(j, ue);
3786
+ var fe = la(), Oe = I(fe, !0);
3787
+ M(fe), te(() => qe(Oe, c($).length)), O(j, fe);
3788
3788
  };
3789
3789
  H(Q, (j) => {
3790
3790
  c($).length > 0 && j(Ie);
@@ -3793,20 +3793,20 @@ function pa(e, t) {
3793
3793
  Pr(2), M(b), te(() => C = dt(b, 1, "capture-toggle-btn svelte-p7nz7", null, C, { "has-items": c($).length > 0 })), O(v, b);
3794
3794
  };
3795
3795
  H(Ft, (v) => {
3796
- !c(u) && c(g) && c(lt) && !c(p) && v(pr);
3796
+ !c(f) && c(g) && c(lt) && !c(p) && v(pr);
3797
3797
  });
3798
3798
  }
3799
3799
  var kt = N(Ft, 2);
3800
- kt.__change = fr, Or(kt, (v) => m(z, v), () => c(z));
3801
- var fe = N(kt, 2);
3800
+ kt.__change = ur, Or(kt, (v) => m(z, v), () => c(z));
3801
+ var ue = N(kt, 2);
3802
3802
  {
3803
3803
  var Me = (v) => {
3804
- var b = ua();
3804
+ var b = fa();
3805
3805
  let C;
3806
3806
  var Q = I(b);
3807
3807
  {
3808
3808
  var Ie = (Oe) => {
3809
- var vr = fa();
3809
+ var vr = ua();
3810
3810
  O(Oe, vr);
3811
3811
  };
3812
3812
  H(Q, (Oe) => {
@@ -3814,21 +3814,21 @@ function pa(e, t) {
3814
3814
  });
3815
3815
  }
3816
3816
  var j = N(Q, 2);
3817
- let ue;
3817
+ let fe;
3818
3818
  Or(j, (Oe) => m(_, Oe), () => c(_)), M(b), te(() => {
3819
- C = dt(b, 1, "panel-window svelte-p7nz7", null, C, { inline: c(u) }), Xt(j, "src", c(Re)), ue = dt(j, 1, "svelte-p7nz7", null, ue, { hidden: !c(h) });
3819
+ C = dt(b, 1, "panel-window svelte-p7nz7", null, C, { inline: c(f) }), Xt(j, "src", c(Re)), fe = dt(j, 1, "svelte-p7nz7", null, fe, { hidden: !c(h) });
3820
3820
  }), O(v, b);
3821
3821
  };
3822
- H(fe, (v) => {
3822
+ H(ue, (v) => {
3823
3823
  c(g) && v(Me);
3824
3824
  });
3825
3825
  }
3826
3826
  return M(y), te(() => {
3827
- L = dt(y, 1, "feedback-panel svelte-p7nz7", null, L, { inline: c(u) }), Ir(y, c(u) ? "" : c(ke));
3827
+ L = dt(y, 1, "feedback-panel svelte-p7nz7", null, L, { inline: c(f) }), Ir(y, c(f) ? "" : c(ke));
3828
3828
  }), O(e, y), Ur(Pt);
3829
3829
  }
3830
3830
  ss(["click", "change"]);
3831
- customElements.define("feedback-panel", us(
3831
+ customElements.define("feedback-panel", fs(
3832
3832
  pa,
3833
3833
  {
3834
3834
  embedId: { attribute: "embed-id", reflect: !0 },