@evelan/jexity-widget 0.8.0-canary.16 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var Xe, m, br, yr, le, Tn, vr, _r, kr, nn, zt, Bt, wr, We = {}, Sr = [], qi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
1
+ var Xe, m, br, yr, le, Rn, vr, _r, kr, nn, zt, Bt, wr, We = {}, Sr = [], qi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
2
2
  function Z(t, e) {
3
3
  for (var n in e) t[n] = e[n];
4
4
  return t;
@@ -41,15 +41,15 @@ function jr(t) {
41
41
  }
42
42
  }
43
43
  function Ft(t) {
44
- (!t.__d && (t.__d = !0) && le.push(t) && !dt.__r++ || Tn != m.debounceRendering) && ((Tn = m.debounceRendering) || vr)(dt);
44
+ (!t.__d && (t.__d = !0) && le.push(t) && !dt.__r++ || Rn != m.debounceRendering) && ((Rn = m.debounceRendering) || vr)(dt);
45
45
  }
46
46
  function dt() {
47
- for (var t, e, n, r, i, s, o, l = 1; le.length; ) le.length > l && le.sort(_r), t = le.shift(), l = le.length, t.__d && (n = void 0, r = void 0, i = (r = (e = t).__v).__e, s = [], o = [], e.__P && ((n = Z({}, r)).__v = r.__v + 1, m.vnode && m.vnode(n), sn(e.__P, n, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [i] : null, s, i ?? Ce(r), !!(32 & r.__u), o), n.__v = r.__v, n.__.__k[n.__i] = n, Tr(s, n, o), r.__e = r.__ = null, n.__e != i && jr(n)));
47
+ for (var t, e, n, r, i, s, o, l = 1; le.length; ) le.length > l && le.sort(_r), t = le.shift(), l = le.length, t.__d && (n = void 0, r = void 0, i = (r = (e = t).__v).__e, s = [], o = [], e.__P && ((n = Z({}, r)).__v = r.__v + 1, m.vnode && m.vnode(n), sn(e.__P, n, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [i] : null, s, i ?? Ce(r), !!(32 & r.__u), o), n.__v = r.__v, n.__.__k[n.__i] = n, Rr(s, n, o), r.__e = r.__ = null, n.__e != i && jr(n)));
48
48
  dt.__r = 0;
49
49
  }
50
50
  function Cr(t, e, n, r, i, s, o, l, a, u, d) {
51
51
  var c, p, f, g, b, w, _, k = r && r.__k || Sr, V = e.length;
52
- for (a = Mi(n, e, k, a, V), c = 0; c < V; c++) (f = n.__k[c]) != null && (p = f.__i == -1 ? We : k[f.__i] || We, f.__i = c, w = sn(t, f, p, i, s, o, l, a, u, d), g = f.__e, f.ref && p.ref != f.ref && (p.ref && on(p.ref, null, f), d.push(f.ref, f.__c || g, f)), b == null && g != null && (b = g), (_ = !!(4 & f.__u)) || p.__k === f.__k ? a = Rr(f, a, t, _) : typeof f.type == "function" && w !== void 0 ? a = w : g && (a = g.nextSibling), f.__u &= -7);
52
+ for (a = Mi(n, e, k, a, V), c = 0; c < V; c++) (f = n.__k[c]) != null && (p = f.__i == -1 ? We : k[f.__i] || We, f.__i = c, w = sn(t, f, p, i, s, o, l, a, u, d), g = f.__e, f.ref && p.ref != f.ref && (p.ref && on(p.ref, null, f), d.push(f.ref, f.__c || g, f)), b == null && g != null && (b = g), (_ = !!(4 & f.__u)) || p.__k === f.__k ? a = Tr(f, a, t, _) : typeof f.type == "function" && w !== void 0 ? a = w : g && (a = g.nextSibling), f.__u &= -7);
53
53
  return n.__e = b, a;
54
54
  }
55
55
  function Mi(t, e, n, r, i) {
@@ -58,10 +58,10 @@ function Mi(t, e, n, r, i) {
58
58
  if (c) for (s = 0; s < d; s++) (l = n[s]) != null && (2 & l.__u) == 0 && (l.__e == r && (r = Ce(l)), Ar(l, l));
59
59
  return r;
60
60
  }
61
- function Rr(t, e, n, r) {
61
+ function Tr(t, e, n, r) {
62
62
  var i, s;
63
63
  if (typeof t.type == "function") {
64
- for (i = t.__k, s = 0; i && s < i.length; s++) i[s] && (i[s].__ = t, e = Rr(i[s], e, n, r));
64
+ for (i = t.__k, s = 0; i && s < i.length; s++) i[s] && (i[s].__ = t, e = Tr(i[s], e, n, r));
65
65
  return e;
66
66
  }
67
67
  t.__e != e && (r && (e && t.type && !e.parentNode && (e = Ce(t)), n.insertBefore(t.__e, e || null)), e = t.__e);
@@ -115,7 +115,7 @@ function An(t) {
115
115
  };
116
116
  }
117
117
  function sn(t, e, n, r, i, s, o, l, a, u) {
118
- var d, c, p, f, g, b, w, _, k, V, W, ie, O, Rn, rt, Me, Tt, H = e.type;
118
+ var d, c, p, f, g, b, w, _, k, V, W, ie, O, Tn, rt, Me, Rt, H = e.type;
119
119
  if (e.constructor != null) return null;
120
120
  128 & n.__u && (a = !!(32 & n.__u), s = [l = e.__e = n.__e]), (d = m.__b) && d(e);
121
121
  e: if (typeof H == "function") try {
@@ -132,19 +132,19 @@ function sn(t, e, n, r, i, s, o, l, a, u) {
132
132
  c.componentDidUpdate(f, g, b);
133
133
  });
134
134
  }
135
- if (c.context = W, c.props = _, c.__P = t, c.__e = !1, O = m.__r, Rn = 0, k) {
135
+ if (c.context = W, c.props = _, c.__P = t, c.__e = !1, O = m.__r, Tn = 0, k) {
136
136
  for (c.state = c.__s, c.__d = !1, O && O(e), d = c.render(c.props, c.state, c.context), rt = 0; rt < c._sb.length; rt++) c.__h.push(c._sb[rt]);
137
137
  c._sb = [];
138
138
  } else do
139
139
  c.__d = !1, O && O(e), d = c.render(c.props, c.state, c.context), c.state = c.__s;
140
- while (c.__d && ++Rn < 25);
140
+ while (c.__d && ++Tn < 25);
141
141
  c.state = c.__s, c.getChildContext != null && (r = Z(Z({}, r), c.getChildContext())), k && !p && c.getSnapshotBeforeUpdate != null && (b = c.getSnapshotBeforeUpdate(f, g)), Me = d, d != null && d.type === F && d.key == null && (Me = $r(d.props.children)), l = Cr(t, Ye(Me) ? Me : [Me], e, n, r, i, s, o, l, a, u), c.base = e.__e, e.__u &= -161, c.__h.length && o.push(c), w && (c.__E = c.__ = null);
142
142
  } catch (xe) {
143
143
  if (e.__v = null, a || s != null) if (xe.then) {
144
144
  for (e.__u |= a ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
145
145
  s[s.indexOf(l)] = null, e.__e = l;
146
146
  } else {
147
- for (Tt = s.length; Tt--; ) rn(s[Tt]);
147
+ for (Rt = s.length; Rt--; ) rn(s[Rt]);
148
148
  Dt(e);
149
149
  }
150
150
  else e.__e = n.__e, e.__k = n.__k, xe.then || Dt(e);
@@ -156,7 +156,7 @@ function sn(t, e, n, r, i, s, o, l, a, u) {
156
156
  function Dt(t) {
157
157
  t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(Dt);
158
158
  }
159
- function Tr(t, e, n) {
159
+ function Rr(t, e, n) {
160
160
  for (var r = 0; r < n.length; r++) on(n[r], n[++r], n[++r]);
161
161
  m.__c && m.__c(e, t), t.some(function(i) {
162
162
  try {
@@ -228,7 +228,7 @@ function Ni(t, e, n) {
228
228
  }
229
229
  function he(t, e, n) {
230
230
  var r, i, s, o;
231
- e == document && (e = document.documentElement), m.__ && m.__(t, e), i = (r = typeof n == "function") ? null : n && n.__k || e.__k, s = [], o = [], sn(e, t = (!r && n || e).__k = ne(F, null, [t]), i || We, We, e.namespaceURI, !r && n ? [n] : i ? null : e.firstChild ? Xe.call(e.childNodes) : null, s, !r && n ? n : i ? i.__e : e.firstChild, r, o), Tr(s, t, o);
231
+ e == document && (e = document.documentElement), m.__ && m.__(t, e), i = (r = typeof n == "function") ? null : n && n.__k || e.__k, s = [], o = [], sn(e, t = (!r && n || e).__k = ne(F, null, [t]), i || We, We, e.namespaceURI, !r && n ? [n] : i ? null : e.firstChild ? Xe.call(e.childNodes) : null, s, !r && n ? n : i ? i.__e : e.firstChild, r, o), Rr(s, t, o);
232
232
  }
233
233
  function Ir(t, e) {
234
234
  he(t, e, Ir);
@@ -287,14 +287,14 @@ function h(t, e, n, r, i, s) {
287
287
  if (typeof t == "function" && (o = t.defaultProps)) for (l in o) a[l] === void 0 && (a[l] = o[l]);
288
288
  return m.vnode && m.vnode(u), u;
289
289
  }
290
- var oe, S, $t, In, Re = 0, Er = [], j = m, En = j.__b, qn = j.__r, Pn = j.diffed, Mn = j.__c, Ln = j.unmount, On = j.__;
290
+ var oe, S, $t, In, Te = 0, Er = [], j = m, En = j.__b, qn = j.__r, Pn = j.diffed, Mn = j.__c, Ln = j.unmount, On = j.__;
291
291
  function Ie(t, e) {
292
- j.__h && j.__h(S, t, Re || e), Re = 0;
292
+ j.__h && j.__h(S, t, Te || e), Te = 0;
293
293
  var n = S.__H || (S.__H = { __: [], __h: [] });
294
294
  return t >= n.__.length && n.__.push({}), n.__[t];
295
295
  }
296
- function T(t) {
297
- return Re = 1, an(Lr, t);
296
+ function R(t) {
297
+ return Te = 1, an(Lr, t);
298
298
  }
299
299
  function an(t, e, n) {
300
300
  var r = Ie(oe++, 2);
@@ -339,12 +339,12 @@ function et(t, e) {
339
339
  !j.__s && ln(n.__H, e) && (n.__ = t, n.u = e, S.__h.push(n));
340
340
  }
341
341
  function vt(t) {
342
- return Re = 5, U(function() {
342
+ return Te = 5, U(function() {
343
343
  return { current: t };
344
344
  }, []);
345
345
  }
346
346
  function qr(t, e, n) {
347
- Re = 6, et(function() {
347
+ Te = 6, et(function() {
348
348
  if (typeof t == "function") {
349
349
  var r = t(e());
350
350
  return function() {
@@ -361,7 +361,7 @@ function U(t, e) {
361
361
  return ln(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
362
362
  }
363
363
  function He(t, e) {
364
- return Re = 8, U(function() {
364
+ return Te = 8, U(function() {
365
365
  return t;
366
366
  }, e);
367
367
  }
@@ -460,7 +460,7 @@ function Vt(t, e) {
460
460
  return !1;
461
461
  }
462
462
  function Nr(t, e) {
463
- var n = e(), r = T({ t: { __: n, u: e } }), i = r[0].t, s = r[1];
463
+ var n = e(), r = R({ t: { __: n, u: e } }), i = r[0].t, s = r[1];
464
464
  return et(function() {
465
465
  i.__ = n, i.u = e, At(i) && s({ t: i });
466
466
  }, [t, n, e]), D(function() {
@@ -713,7 +713,7 @@ m.diffed = function(t) {
713
713
  };
714
714
  var us = { ReactCurrentDispatcher: { current: { readContext: function(t) {
715
715
  return cn.__n[t.__c].props.value;
716
- }, useCallback: He, useContext: _t, useDebugValue: Pr, useDeferredValue: zr, useEffect: D, useId: Mr, useImperativeHandle: qr, useInsertionEffect: Fr, useLayoutEffect: et, useMemo: U, useReducer: an, useRef: vt, useState: T, useSyncExternalStore: Nr, useTransition: Br } } };
716
+ }, useCallback: He, useContext: _t, useDebugValue: Pr, useDeferredValue: zr, useEffect: D, useId: Mr, useImperativeHandle: qr, useInsertionEffect: Fr, useLayoutEffect: et, useMemo: U, useReducer: an, useRef: vt, useState: R, useSyncExternalStore: Nr, useTransition: Br } } };
717
717
  function hs(t) {
718
718
  return ne.bind(null, t);
719
719
  }
@@ -739,7 +739,7 @@ var xs = function(t, e) {
739
739
  return t(e);
740
740
  }, bs = function(t, e) {
741
741
  return t(e);
742
- }, ys = F, vs = kt, un = { useState: T, useId: Mr, useReducer: an, useEffect: D, useLayoutEffect: et, useInsertionEffect: Fr, useTransition: Br, useDeferredValue: zr, useSyncExternalStore: Nr, startTransition: Qr, useRef: vt, useImperativeHandle: qr, useMemo: U, useCallback: He, useContext: _t, useDebugValue: Pr, version: "18.3.1", Children: Hi, render: is, hydrate: ss, unmountComponentAtNode: gs, createPortal: Xi, createElement: ne, createContext: zi, createFactory: hs, cloneElement: ps, createRef: Pi, Fragment: F, isValidElement: kt, isElement: vs, isFragment: ds, isMemo: fs, findDOMNode: ms, Component: z, PureComponent: Wt, memo: Ui, forwardRef: Wi, flushSync: bs, unstable_batchedUpdates: xs, StrictMode: ys, Suspense: ut, SuspenseList: Qe, lazy: Ji, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: us }, K = [], L = [], _s = Uint8Array, It = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
742
+ }, ys = F, vs = kt, un = { useState: R, useId: Mr, useReducer: an, useEffect: D, useLayoutEffect: et, useInsertionEffect: Fr, useTransition: Br, useDeferredValue: zr, useSyncExternalStore: Nr, startTransition: Qr, useRef: vt, useImperativeHandle: qr, useMemo: U, useCallback: He, useContext: _t, useDebugValue: Pr, version: "18.3.1", Children: Hi, render: is, hydrate: ss, unmountComponentAtNode: gs, createPortal: Xi, createElement: ne, createContext: zi, createFactory: hs, cloneElement: ps, createRef: Pi, Fragment: F, isValidElement: kt, isElement: vs, isFragment: ds, isMemo: fs, findDOMNode: ms, Component: z, PureComponent: Wt, memo: Ui, forwardRef: Wi, flushSync: bs, unstable_batchedUpdates: xs, StrictMode: ys, Suspense: ut, SuspenseList: Qe, lazy: Ji, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: us }, K = [], L = [], _s = Uint8Array, It = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
743
743
  for (var be = 0, ks = It.length; be < ks; ++be)
744
744
  K[be] = It[be], L[It.charCodeAt(be)] = be;
745
745
  L[45] = 62;
@@ -792,7 +792,7 @@ function ee(t) {
792
792
  );
793
793
  return t;
794
794
  }
795
- function Rs(t) {
795
+ function Ts(t) {
796
796
  if (typeof t > "u")
797
797
  throw new Error(
798
798
  "Client created with undefined deployment address. If you used an environment variable, check that it's set."
@@ -823,18 +823,18 @@ function Hr(t) {
823
823
  n?.constructor?.name === "Object";
824
824
  return e && r;
825
825
  }
826
- const Gr = !0, Te = BigInt("-9223372036854775808"), hn = BigInt("9223372036854775807"), Ht = BigInt("0"), Ts = BigInt("8"), $s = BigInt("256");
826
+ const Gr = !0, Re = BigInt("-9223372036854775808"), hn = BigInt("9223372036854775807"), Ht = BigInt("0"), Rs = BigInt("8"), $s = BigInt("256");
827
827
  function Jr(t) {
828
828
  return Number.isNaN(t) || !Number.isFinite(t) || Object.is(t, -0);
829
829
  }
830
830
  function As(t) {
831
- t < Ht && (t -= Te + Te);
831
+ t < Ht && (t -= Re + Re);
832
832
  let e = t.toString(16);
833
833
  e.length % 2 === 1 && (e = "0" + e);
834
834
  const n = new Uint8Array(new ArrayBuffer(8));
835
835
  let r = 0;
836
836
  for (const i of e.match(/.{2}/g).reverse())
837
- n.set([parseInt(i, 16)], r++), t >>= Ts;
837
+ n.set([parseInt(i, 16)], r++), t >>= Rs;
838
838
  return Je(n);
839
839
  }
840
840
  function Is(t) {
@@ -846,10 +846,10 @@ function Is(t) {
846
846
  let n = Ht, r = Ht;
847
847
  for (const i of e)
848
848
  n += BigInt(i) * $s ** r, r++;
849
- return n > hn && (n += Te + Te), n;
849
+ return n > hn && (n += Re + Re), n;
850
850
  }
851
851
  function Es(t) {
852
- if (t < Te || hn < t)
852
+ if (t < Re || hn < t)
853
853
  throw new Error(
854
854
  `BigInt ${t} does not fit into a 64-bit signed integer.`
855
855
  );
@@ -950,7 +950,7 @@ function Gt(t, e, n, r) {
950
950
  if (t === null)
951
951
  return t;
952
952
  if (typeof t == "bigint") {
953
- if (t < Te || hn < t)
953
+ if (t < Re || hn < t)
954
954
  throw new Error(
955
955
  `BigInt ${t} does not fit into a 64-bit signed integer.`
956
956
  );
@@ -1012,7 +1012,7 @@ class Jt extends (Kn = Error, Jn = Ns, Kn) {
1012
1012
  const Zr = () => Array.from({ length: 4 }, () => 0);
1013
1013
  Zr();
1014
1014
  Zr();
1015
- const Zn = "1.34.1";
1015
+ const Zn = "1.35.1";
1016
1016
  var Qs = Object.defineProperty, zs = (t, e, n) => e in t ? Qs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Xn = (t, e, n) => zs(t, typeof e != "symbol" ? e + "" : e, n);
1017
1017
  const Bs = "color:rgb(0, 145, 255)";
1018
1018
  function Xr(t) {
@@ -2486,12 +2486,12 @@ class Co {
2486
2486
  this.logger.logVerbose(`${e} [v${this.configVersion}]`);
2487
2487
  }
2488
2488
  }
2489
- const Ro = [
2489
+ const To = [
2490
2490
  "convexClientConstructed",
2491
2491
  "convexWebSocketOpen",
2492
2492
  "convexFirstMessageReceived"
2493
2493
  ];
2494
- function To(t, e) {
2494
+ function Ro(t, e) {
2495
2495
  const n = { sessionId: e };
2496
2496
  typeof performance > "u" || !performance.mark || performance.mark(t, { detail: n });
2497
2497
  }
@@ -2506,13 +2506,13 @@ function Ao(t) {
2506
2506
  if (typeof performance > "u" || !performance.getEntriesByName)
2507
2507
  return [];
2508
2508
  const e = [];
2509
- for (const n of Ro) {
2509
+ for (const n of To) {
2510
2510
  const r = performance.getEntriesByName(n).filter((i) => i.entryType === "mark").filter((i) => i.detail.sessionId === t);
2511
2511
  e.push(...r);
2512
2512
  }
2513
2513
  return e.map($o);
2514
2514
  }
2515
- var Io = Object.defineProperty, Eo = (t, e, n) => e in t ? Io(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, R = (t, e, n) => Eo(t, typeof e != "symbol" ? e + "" : e, n);
2515
+ var Io = Object.defineProperty, Eo = (t, e, n) => e in t ? Io(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, T = (t, e, n) => Eo(t, typeof e != "symbol" ? e + "" : e, n);
2516
2516
  class qo {
2517
2517
  /**
2518
2518
  * @param address - The url of your Convex deployment, often provided
@@ -2523,7 +2523,7 @@ class qo {
2523
2523
  * @param options - See {@link BaseConvexClientOptions} for a full description.
2524
2524
  */
2525
2525
  constructor(e, n, r) {
2526
- if (R(this, "address"), R(this, "state"), R(this, "requestManager"), R(this, "webSocketManager"), R(this, "authenticationManager"), R(this, "remoteQuerySet"), R(this, "optimisticQueryResults"), R(this, "_transitionHandlerCounter", 0), R(this, "_nextRequestId"), R(this, "_onTransitionFns", /* @__PURE__ */ new Map()), R(this, "_sessionId"), R(this, "firstMessageReceived", !1), R(this, "debug"), R(this, "logger"), R(this, "maxObservedTimestamp"), R(this, "connectionStateSubscribers", /* @__PURE__ */ new Map()), R(this, "nextConnectionStateSubscriberId", 0), R(this, "_lastPublishedConnectionState"), R(this, "markConnectionStateDirty", () => {
2526
+ if (T(this, "address"), T(this, "state"), T(this, "requestManager"), T(this, "webSocketManager"), T(this, "authenticationManager"), T(this, "remoteQuerySet"), T(this, "optimisticQueryResults"), T(this, "_transitionHandlerCounter", 0), T(this, "_nextRequestId"), T(this, "_onTransitionFns", /* @__PURE__ */ new Map()), T(this, "_sessionId"), T(this, "firstMessageReceived", !1), T(this, "debug"), T(this, "logger"), T(this, "maxObservedTimestamp"), T(this, "connectionStateSubscribers", /* @__PURE__ */ new Map()), T(this, "nextConnectionStateSubscriberId", 0), T(this, "_lastPublishedConnectionState"), T(this, "markConnectionStateDirty", () => {
2527
2527
  Promise.resolve().then(() => {
2528
2528
  const f = this.connectionState();
2529
2529
  if (JSON.stringify(f) !== JSON.stringify(this._lastPublishedConnectionState)) {
@@ -2532,13 +2532,13 @@ class qo {
2532
2532
  g(f);
2533
2533
  }
2534
2534
  });
2535
- }), R(this, "mark", (f) => {
2536
- this.debug && To(f, this.sessionId);
2535
+ }), T(this, "mark", (f) => {
2536
+ this.debug && Ro(f, this.sessionId);
2537
2537
  }), typeof e == "object")
2538
2538
  throw new Error(
2539
2539
  "Passing a ClientConfig object is no longer supported. Pass the URL of the Convex deployment as a string directly."
2540
2540
  );
2541
- r?.skipConvexDeploymentUrlCheck !== !0 && Rs(e), r = { ...r };
2541
+ r?.skipConvexDeploymentUrlCheck !== !0 && Ts(e), r = { ...r };
2542
2542
  const i = r.authRefreshTokenLeewaySeconds ?? 10;
2543
2543
  let s = r.webSocketConstructor;
2544
2544
  if (!s && typeof WebSocket > "u")
@@ -3381,7 +3381,7 @@ function Oo({
3381
3381
  // It should return an unsubscribe function that removes the handler.
3382
3382
  subscribe: e
3383
3383
  }) {
3384
- const [n, r] = T(() => ({
3384
+ const [n, r] = R(() => ({
3385
3385
  getCurrentValue: t,
3386
3386
  subscribe: e,
3387
3387
  value: t()
@@ -3887,7 +3887,7 @@ function Go(t) {
3887
3887
  return Jo(t, n);
3888
3888
  }
3889
3889
  function Jo(t, e) {
3890
- const [n] = T(() => new Ho(e));
3890
+ const [n] = R(() => new Ho(e));
3891
3891
  n.createWatch !== e && n.setCreateWatch(e), D(() => () => n.destroy(), [n]);
3892
3892
  const r = U(
3893
3893
  () => ({
@@ -4338,10 +4338,10 @@ async function oa(t, e, n) {
4338
4338
  return i.ok ? i.json() : null;
4339
4339
  }
4340
4340
  function aa(t, e) {
4341
- const [n, r] = T(null);
4341
+ const [n, r] = R(null);
4342
4342
  return D(() => {
4343
4343
  r(null);
4344
- const i = e ?? "https://tame-spider-109.eu-west-1.convex.cloud", s = i ? ia(i) : void 0;
4344
+ const i = e ?? "https://festive-mouse-978.eu-west-1.convex.cloud", s = i ? ia(i) : void 0;
4345
4345
  if (!s || !t)
4346
4346
  return;
4347
4347
  const o = new AbortController();
@@ -4412,7 +4412,8 @@ const bi = {
4412
4412
  tryAgain: "Try again",
4413
4413
  goBack: "Go back",
4414
4414
  somethingWentWrong: "Something went wrong",
4415
- fabLabel: "Chat with us"
4415
+ fabLabel: "Chat with us",
4416
+ chatNoLongerAvailable: "This chat is no longer available."
4416
4417
  }, la = {
4417
4418
  title: "Assistent",
4418
4419
  statusOnline: "Online · Antwortet in Sekunden",
@@ -4466,7 +4467,8 @@ const bi = {
4466
4467
  tryAgain: "Erneut versuchen",
4467
4468
  goBack: "Zurück",
4468
4469
  somethingWentWrong: "Etwas ist schiefgelaufen",
4469
- fabLabel: "Chatte mit uns"
4470
+ fabLabel: "Chatte mit uns",
4471
+ chatNoLongerAvailable: "Dieser Chat ist nicht mehr verfügbar."
4470
4472
  }, ca = [
4471
4473
  { value: "de", label: "Deutsch", flag: "🇩🇪" },
4472
4474
  { value: "en", label: "English", flag: "🇬🇧" }
@@ -4680,7 +4682,7 @@ function ja({ radius: t = "full", iconOption: e = "chat", label: n }) {
4680
4682
  );
4681
4683
  }
4682
4684
  function Ca({ title: t }) {
4683
- const e = P(), n = ae.value, [r, i] = T("");
4685
+ const e = P(), n = ae.value, [r, i] = R("");
4684
4686
  function s() {
4685
4687
  Xt(), Se({ id: "chat" });
4686
4688
  }
@@ -4738,7 +4740,7 @@ function Ca({ title: t }) {
4738
4740
  ] })
4739
4741
  ] });
4740
4742
  }
4741
- function Ra({ title: t }) {
4743
+ function Ta({ title: t }) {
4742
4744
  const e = P();
4743
4745
  return /* @__PURE__ */ h("div", { class: "jex-selection", children: [
4744
4746
  /* @__PURE__ */ h("h2", { class: "jex-selection-title", children: e.howCanWeHelp }),
@@ -4790,8 +4792,8 @@ function _i(t, e) {
4790
4792
  };
4791
4793
  return new Proxy({}, n);
4792
4794
  }
4793
- const Ta = () => _i("components", []), Ae = Xs;
4794
- Ta();
4795
+ const Ra = () => _i("components", []), Ae = Xs;
4796
+ Ra();
4795
4797
  function $a(t) {
4796
4798
  const e = vt(null), n = ke(!1), r = ke(!1), i = ke(!1), s = ke(null), o = wt(Ae.functions.chat.public.sessions.createOrResume), l = He(async () => {
4797
4799
  if (e.current)
@@ -4844,6 +4846,7 @@ function $a(t) {
4844
4846
  sessionNotFound: r.value,
4845
4847
  resumeFailed: i.value,
4846
4848
  sessionStatus: s.value,
4849
+ isOrgDeleted: s.value === "org_deleted",
4847
4850
  ensureSession: l,
4848
4851
  startFresh: a
4849
4852
  };
@@ -4870,7 +4873,7 @@ var Aa = (() => {
4870
4873
  return !1;
4871
4874
  }
4872
4875
  })(), I = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`), htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}>`) }, Ia = /^(?:[ \t]*(?:\n|$))+/, Ea = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, qa = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, nt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Pa = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, yn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, wi = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Si = x(wi).replace(/bull/g, yn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ma = x(wi).replace(/bull/g, yn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), vn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, La = /^[^\n]+/, _n = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Oa = x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", _n).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Na = x(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, yn).getRegex(), Ct = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", kn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Qa = x("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", kn).replace("tag", Ct).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ji = x(vn).replace("hr", nt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ct).getRegex(), za = x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ji).getRegex(), wn = { blockquote: za, code: Ea, def: Oa, fences: qa, heading: Pa, hr: nt, html: Qa, lheading: Si, list: Na, newline: Ia, paragraph: ji, table: ce, text: La }, hr = x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", nt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ct).getRegex(), Ba = { ...wn, lheading: Ma, table: hr, paragraph: x(vn).replace("hr", nt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", hr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ct).getRegex() }, Fa = { ...wn, html: x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", kn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: ce, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: x(vn).replace("hr", nt).replace("heading", ` *#{1,6} *[^
4873
- ]`).replace("lheading", Si).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Da = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ua = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ci = /^( {2,}|\\)\n(?!\s*$)/, Va = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Pe = /[\p{P}\p{S}]/u, Rt = /[\s\p{P}\p{S}]/u, Sn = /[^\s\p{P}\p{S}]/u, Wa = x(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Rt).getRegex(), Ri = /(?!~)[\p{P}\p{S}]/u, Ha = /(?!~)[\s\p{P}\p{S}]/u, Ga = /(?:[^\s\p{P}\p{S}]|~)/u, Ja = x(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Aa ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ti = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Ka = x(Ti, "u").replace(/punct/g, Pe).getRegex(), Za = x(Ti, "u").replace(/punct/g, Ri).getRegex(), $i = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xa = x($i, "gu").replace(/notPunctSpace/g, Sn).replace(/punctSpace/g, Rt).replace(/punct/g, Pe).getRegex(), Ya = x($i, "gu").replace(/notPunctSpace/g, Ga).replace(/punctSpace/g, Ha).replace(/punct/g, Ri).getRegex(), el = x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Sn).replace(/punctSpace/g, Rt).replace(/punct/g, Pe).getRegex(), tl = x(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Pe).getRegex(), nl = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", rl = x(nl, "gu").replace(/notPunctSpace/g, Sn).replace(/punctSpace/g, Rt).replace(/punct/g, Pe).getRegex(), il = x(/\\(punct)/, "gu").replace(/punct/g, Pe).getRegex(), sl = x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ol = x(kn).replace("(?:-->|$)", "-->").getRegex(), al = x("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ol).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), xt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, ll = x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", xt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ai = x(/^!?\[(label)\]\[(ref)\]/).replace("label", xt).replace("ref", _n).getRegex(), Ii = x(/^!?\[(ref)\](?:\[\])?/).replace("ref", _n).getRegex(), cl = x("reflink|nolink(?!\\()", "g").replace("reflink", Ai).replace("nolink", Ii).getRegex(), dr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, jn = { _backpedal: ce, anyPunctuation: il, autolink: sl, blockSkip: Ja, br: Ci, code: Ua, del: ce, delLDelim: ce, delRDelim: ce, emStrongLDelim: Ka, emStrongRDelimAst: Xa, emStrongRDelimUnd: el, escape: Da, link: ll, nolink: Ii, punctuation: Wa, reflink: Ai, reflinkSearch: cl, tag: al, text: Va, url: ce }, ul = { ...jn, link: x(/^!?\[(label)\]\((.*?)\)/).replace("label", xt).getRegex(), reflink: x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", xt).getRegex() }, Yt = { ...jn, emStrongRDelimAst: Ya, emStrongLDelim: Za, delLDelim: tl, delRDelim: rl, url: x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", dr).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: x(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", dr).getRegex() }, hl = { ...Yt, br: x(Ci).replace("{2,}", "*").getRegex(), text: x(Yt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, lt = { normal: wn, gfm: Ba, pedantic: Fa }, Le = { normal: jn, gfm: Yt, breaks: hl, pedantic: ul }, dl = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, fr = (t) => dl[t];
4876
+ ]`).replace("lheading", Si).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Da = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ua = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ci = /^( {2,}|\\)\n(?!\s*$)/, Va = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Pe = /[\p{P}\p{S}]/u, Tt = /[\s\p{P}\p{S}]/u, Sn = /[^\s\p{P}\p{S}]/u, Wa = x(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Tt).getRegex(), Ti = /(?!~)[\p{P}\p{S}]/u, Ha = /(?!~)[\s\p{P}\p{S}]/u, Ga = /(?:[^\s\p{P}\p{S}]|~)/u, Ja = x(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Aa ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ri = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Ka = x(Ri, "u").replace(/punct/g, Pe).getRegex(), Za = x(Ri, "u").replace(/punct/g, Ti).getRegex(), $i = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xa = x($i, "gu").replace(/notPunctSpace/g, Sn).replace(/punctSpace/g, Tt).replace(/punct/g, Pe).getRegex(), Ya = x($i, "gu").replace(/notPunctSpace/g, Ga).replace(/punctSpace/g, Ha).replace(/punct/g, Ti).getRegex(), el = x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Sn).replace(/punctSpace/g, Tt).replace(/punct/g, Pe).getRegex(), tl = x(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Pe).getRegex(), nl = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", rl = x(nl, "gu").replace(/notPunctSpace/g, Sn).replace(/punctSpace/g, Tt).replace(/punct/g, Pe).getRegex(), il = x(/\\(punct)/, "gu").replace(/punct/g, Pe).getRegex(), sl = x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ol = x(kn).replace("(?:-->|$)", "-->").getRegex(), al = x("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ol).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), xt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, ll = x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", xt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ai = x(/^!?\[(label)\]\[(ref)\]/).replace("label", xt).replace("ref", _n).getRegex(), Ii = x(/^!?\[(ref)\](?:\[\])?/).replace("ref", _n).getRegex(), cl = x("reflink|nolink(?!\\()", "g").replace("reflink", Ai).replace("nolink", Ii).getRegex(), dr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, jn = { _backpedal: ce, anyPunctuation: il, autolink: sl, blockSkip: Ja, br: Ci, code: Ua, del: ce, delLDelim: ce, delRDelim: ce, emStrongLDelim: Ka, emStrongRDelimAst: Xa, emStrongRDelimUnd: el, escape: Da, link: ll, nolink: Ii, punctuation: Wa, reflink: Ai, reflinkSearch: cl, tag: al, text: Va, url: ce }, ul = { ...jn, link: x(/^!?\[(label)\]\((.*?)\)/).replace("label", xt).getRegex(), reflink: x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", xt).getRegex() }, Yt = { ...jn, emStrongRDelimAst: Ya, emStrongLDelim: Za, delLDelim: tl, delRDelim: rl, url: x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", dr).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: x(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", dr).getRegex() }, hl = { ...Yt, br: x(Ci).replace("{2,}", "*").getRegex(), text: x(Yt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, lt = { normal: wn, gfm: Ba, pedantic: Fa }, Le = { normal: jn, gfm: Yt, breaks: hl, pedantic: ul }, dl = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, fr = (t) => dl[t];
4874
4877
  function J(t, e) {
4875
4878
  if (e) {
4876
4879
  if (I.escapeTest.test(t)) return t.replace(I.escapeReplace, fr);
@@ -5995,7 +5998,7 @@ function bl(t) {
5995
5998
  return e.length === 0 ? "?" : e.map((n) => n[0]).join("").slice(0, 2).toUpperCase();
5996
5999
  }
5997
6000
  function ye({ text: t, streaming: e, error: n, authorId: r, authorName: i, authorImage: s, botAvatarUrl: o }) {
5998
- const l = !!r, [a, u] = T(!1), d = He(() => u(!0), []), c = [
6001
+ const l = !!r, [a, u] = R(!1), d = He(() => u(!0), []), c = [
5999
6002
  "jex-message bot",
6000
6003
  n ? "jex-message-error" : ""
6001
6004
  ].filter(Boolean).join(" ");
@@ -6035,7 +6038,7 @@ function vl({ message: t, sessionId: e, visitorId: n }) {
6035
6038
  ) });
6036
6039
  }
6037
6040
  function _l({ messageId: t, sessionId: e, visitorId: n }) {
6038
- const r = P(), [i, s] = T(""), [o, l] = T(""), [a, u] = T(!1), d = wt(Ae.functions.chat.public.helpdesk.submitEscalation);
6041
+ const r = P(), [i, s] = R(""), [o, l] = R(""), [a, u] = R(!1), d = wt(Ae.functions.chat.public.helpdesk.submitEscalation);
6039
6042
  async function c(p) {
6040
6043
  if (p.preventDefault(), !a) {
6041
6044
  u(!0);
@@ -6098,7 +6101,7 @@ function kl() {
6098
6101
  ] });
6099
6102
  }
6100
6103
  function wl({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r, onStartFresh: i, sessionId: s, visitorId: o }) {
6101
- const l = P(), a = vt(null), [u, d] = T(null);
6104
+ const l = P(), a = vt(null), [u, d] = R(null);
6102
6105
  return D(() => {
6103
6106
  a.current?.scrollIntoView({ behavior: "smooth" });
6104
6107
  }, [t?.length, t?.at(-1)?.content]), /* @__PURE__ */ h("div", { class: "jex-chat-messages", children: [
@@ -6241,24 +6244,24 @@ function Ei({ message: t }) {
6241
6244
  ] });
6242
6245
  }
6243
6246
  function Cl({ greeting: t, orgSlug: e }) {
6244
- const n = P(), { sessionId: r, visitorId: i, isLoading: s, sessionNotFound: o, resumeFailed: l, ensureSession: a, startFresh: u } = $a(e), d = ar(
6247
+ const n = P(), { sessionId: r, visitorId: i, isLoading: s, sessionNotFound: o, resumeFailed: l, isOrgDeleted: a, ensureSession: u, startFresh: d } = $a(e), c = ar(
6245
6248
  Ae.functions.chat.public.conversations.listBySession,
6246
6249
  r && i ? { sessionId: r, visitorId: i } : "skip"
6247
- ), c = ar(
6250
+ ), p = ar(
6248
6251
  Ae.functions.chat.public.sessions.getSessionStatus,
6249
6252
  r && i ? { sessionId: r, visitorId: i } : "skip"
6250
- ), p = r !== null && d === void 0, f = d?.some((g) => g.status === "streaming") ?? !1;
6253
+ ), f = r !== null && c === void 0, g = c?.some((b) => b.status === "streaming") ?? !1;
6251
6254
  return D(() => {
6252
- fe.value && !r && a();
6253
- }, [a, r]), s || p && fe.value ? /* @__PURE__ */ h(Ei, { message: n.resumeConversation }) : /* @__PURE__ */ h(F, { children: [
6255
+ fe.value && !r && u();
6256
+ }, [u, r]), a ? /* @__PURE__ */ h("div", { class: "jex-chat-messages", children: /* @__PURE__ */ h("div", { class: "jex-session-notice", children: n.chatNoLongerAvailable }) }) : s || f && fe.value ? /* @__PURE__ */ h(Ei, { message: n.resumeConversation }) : /* @__PURE__ */ h(F, { children: [
6254
6257
  /* @__PURE__ */ h(
6255
6258
  wl,
6256
6259
  {
6257
- conversations: d,
6260
+ conversations: c,
6258
6261
  greeting: t,
6259
6262
  sessionNotFound: o,
6260
6263
  resumeFailed: l,
6261
- onStartFresh: u,
6264
+ onStartFresh: d,
6262
6265
  sessionId: r,
6263
6266
  visitorId: i
6264
6267
  }
@@ -6269,16 +6272,16 @@ function Cl({ greeting: t, orgSlug: e }) {
6269
6272
  sessionId: r,
6270
6273
  visitorId: i,
6271
6274
  isLoading: s,
6272
- isStreaming: f,
6273
- sessionStatus: c ?? null,
6274
- ensureSession: a,
6275
- onStartFresh: u
6275
+ isStreaming: g,
6276
+ sessionStatus: p ?? null,
6277
+ ensureSession: u,
6278
+ onStartFresh: d
6276
6279
  }
6277
6280
  )
6278
6281
  ] });
6279
6282
  }
6280
- function Rl({ formMessageId: t, sessionId: e, visitorId: n }) {
6281
- const r = P(), [i, s] = T(""), [o, l] = T(""), a = wt(Ae.functions.chat.public.helpdesk.submitEscalation);
6283
+ function Tl({ formMessageId: t, sessionId: e, visitorId: n }) {
6284
+ const r = P(), [i, s] = R(""), [o, l] = R(""), a = wt(Ae.functions.chat.public.helpdesk.submitEscalation);
6282
6285
  async function u(d) {
6283
6286
  d.preventDefault(), je({ id: "loading", message: r.escalationSubmitting });
6284
6287
  try {
@@ -6334,8 +6337,8 @@ function Rl({ formMessageId: t, sessionId: e, visitorId: n }) {
6334
6337
  }, children: r.escalationSkip })
6335
6338
  ] });
6336
6339
  }
6337
- function Tl() {
6338
- const t = P(), [e, n] = T(""), [r, i] = T(""), [s, o] = T("");
6340
+ function Rl() {
6341
+ const t = P(), [e, n] = R(""), [r, i] = R(""), [s, o] = R("");
6339
6342
  async function l(a) {
6340
6343
  a.preventDefault(), je({ id: "loading", message: t.submittingTicket }), await new Promise((d) => {
6341
6344
  setTimeout(d, 1200);
@@ -6426,10 +6429,10 @@ function xr({ greeting: t, title: e, orgSlug: n }) {
6426
6429
  );
6427
6430
  return /* @__PURE__ */ h("div", { class: "jex-screen-container", children: [
6428
6431
  i.id === "home" && /* @__PURE__ */ h(Ca, { greeting: t, title: e }),
6429
- i.id === "selection" && /* @__PURE__ */ h(Ra, { title: e }),
6430
- i.id === "form" && /* @__PURE__ */ h(Tl, {}),
6432
+ i.id === "selection" && /* @__PURE__ */ h(Ta, { title: e }),
6433
+ i.id === "form" && /* @__PURE__ */ h(Rl, {}),
6431
6434
  i.id === "escalation-form" && /* @__PURE__ */ h(
6432
- Rl,
6435
+ Tl,
6433
6436
  {
6434
6437
  formMessageId: i.formMessageId,
6435
6438
  sessionId: i.sessionId,
@@ -6500,7 +6503,7 @@ function ql(t) {
6500
6503
  const e = document.createElement("style");
6501
6504
  e.textContent = El, t.appendChild(e);
6502
6505
  }
6503
- const Pl = "https://tame-spider-109.eu-west-1.convex.cloud";
6506
+ const Pl = "https://festive-mouse-978.eu-west-1.convex.cloud";
6504
6507
  let Qt = null;
6505
6508
  function Ml(t) {
6506
6509
  const e = t ?? Pl;