@ddrinnova/agentsgt-widget 0.1.16 → 0.1.17

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/widget.es.js CHANGED
@@ -54,9 +54,9 @@ function hS() {
54
54
  var te = Z.length;
55
55
  Z.push(F);
56
56
  e: for (; 0 < te; ) {
57
- var ge = te - 1 >>> 1, z = Z[ge];
57
+ var me = te - 1 >>> 1, z = Z[me];
58
58
  if (0 < o(z, F))
59
- Z[ge] = F, Z[te] = z, te = ge;
59
+ Z[me] = F, Z[te] = z, te = me;
60
60
  else break e;
61
61
  }
62
62
  }
@@ -68,12 +68,12 @@ function hS() {
68
68
  var F = Z[0], te = Z.pop();
69
69
  if (te !== F) {
70
70
  Z[0] = te;
71
- e: for (var ge = 0, z = Z.length, A = z >>> 1; ge < A; ) {
72
- var H = 2 * (ge + 1) - 1, x = Z[H], ne = H + 1, be = Z[ne];
71
+ e: for (var me = 0, z = Z.length, A = z >>> 1; me < A; ) {
72
+ var H = 2 * (me + 1) - 1, x = Z[H], ne = H + 1, be = Z[ne];
73
73
  if (0 > o(x, te))
74
- ne < z && 0 > o(be, x) ? (Z[ge] = be, Z[ne] = te, ge = ne) : (Z[ge] = x, Z[H] = te, ge = H);
74
+ ne < z && 0 > o(be, x) ? (Z[me] = be, Z[ne] = te, me = ne) : (Z[me] = x, Z[H] = te, me = H);
75
75
  else if (ne < z && 0 > o(be, te))
76
- Z[ge] = be, Z[ne] = te, ge = ne;
76
+ Z[me] = be, Z[ne] = te, me = ne;
77
77
  else break e;
78
78
  }
79
79
  }
@@ -129,10 +129,10 @@ function hS() {
129
129
  try {
130
130
  t: {
131
131
  for (K(Z), g = i(m); g !== null && !(g.expirationTime > Z && L()); ) {
132
- var ge = g.callback;
133
- if (typeof ge == "function") {
132
+ var me = g.callback;
133
+ if (typeof me == "function") {
134
134
  g.callback = null, _ = g.priorityLevel;
135
- var z = ge(
135
+ var z = me(
136
136
  g.expirationTime <= Z
137
137
  );
138
138
  if (Z = e.unstable_now(), typeof z == "function") {
@@ -228,8 +228,8 @@ function hS() {
228
228
  _ = te;
229
229
  }
230
230
  }, e.unstable_scheduleCallback = function(Z, F, te) {
231
- var ge = e.unstable_now();
232
- switch (typeof te == "object" && te !== null ? (te = te.delay, te = typeof te == "number" && 0 < te ? ge + te : ge) : te = ge, Z) {
231
+ var me = e.unstable_now();
232
+ switch (typeof te == "object" && te !== null ? (te = te.delay, te = typeof te == "number" && 0 < te ? me + te : me) : te = me, Z) {
233
233
  case 1:
234
234
  var z = -1;
235
235
  break;
@@ -252,7 +252,7 @@ function hS() {
252
252
  startTime: te,
253
253
  expirationTime: z,
254
254
  sortIndex: -1
255
- }, te > ge ? (Z.sortIndex = te, n(d, Z), i(m) === null && Z === i(d) && (T ? (B(X), X = -1) : T = !0, fe(J, te - ge))) : (Z.sortIndex = z, n(m, Z), E || b || (E = !0, D || (D = !0, re()))), Z;
255
+ }, te > me ? (Z.sortIndex = te, n(d, Z), i(m) === null && Z === i(d) && (T ? (B(X), X = -1) : T = !0, fe(J, te - me))) : (Z.sortIndex = z, n(m, Z), E || b || (E = !0, D || (D = !0, re()))), Z;
256
256
  }, e.unstable_shouldYield = L, e.unstable_wrapCallback = function(Z) {
257
257
  var F = _;
258
258
  return function() {
@@ -468,7 +468,7 @@ function dS() {
468
468
  if (A._status === 1) return A._result.default;
469
469
  throw A._result;
470
470
  }
471
- var ge = typeof reportError == "function" ? reportError : function(A) {
471
+ var me = typeof reportError == "function" ? reportError : function(A) {
472
472
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
473
473
  var H = new window.ErrorEvent("error", {
474
474
  bubbles: !0,
@@ -589,9 +589,9 @@ function dS() {
589
589
  X.T = x;
590
590
  try {
591
591
  var ne = A(), be = X.S;
592
- be !== null && be(x, ne), typeof ne == "object" && ne !== null && typeof ne.then == "function" && ne.then(D, ge);
592
+ be !== null && be(x, ne), typeof ne == "object" && ne !== null && typeof ne.then == "function" && ne.then(D, me);
593
593
  } catch (pe) {
594
- ge(pe);
594
+ me(pe);
595
595
  } finally {
596
596
  H !== null && x.types !== null && (H.types = x.types), X.T = H;
597
597
  }
@@ -974,15 +974,15 @@ function yS() {
974
974
  data: null,
975
975
  method: null,
976
976
  action: null
977
- }, ge = [], z = -1;
977
+ }, me = [], z = -1;
978
978
  function A(t) {
979
979
  return { current: t };
980
980
  }
981
981
  function H(t) {
982
- 0 > z || (t.current = ge[z], ge[z] = null, z--);
982
+ 0 > z || (t.current = me[z], me[z] = null, z--);
983
983
  }
984
984
  function x(t, r) {
985
- z++, ge[z] = t.current, t.current = r;
985
+ z++, me[z] = t.current, t.current = r;
986
986
  }
987
987
  var ne = A(null), be = A(null), pe = A(null), Ne = A(null);
988
988
  function ut(t, r) {
@@ -19339,7 +19339,7 @@ function zo(e) {
19339
19339
  );
19340
19340
  }
19341
19341
  const $f = Br(/\d/), WA = Br(/[\dA-Fa-f]/), e2 = Br(/[!-/:-@[-`{-~]/);
19342
- function me(e) {
19342
+ function ge(e) {
19343
19343
  return e !== null && e < -2;
19344
19344
  }
19345
19345
  function Ke(e) {
@@ -19414,7 +19414,7 @@ function n2(e) {
19414
19414
  e.exit("chunkText"), e.exit("paragraph"), e.consume(h);
19415
19415
  return;
19416
19416
  }
19417
- return me(h) ? (e.consume(h), e.exit("chunkText"), s) : (e.consume(h), c);
19417
+ return ge(h) ? (e.consume(h), e.exit("chunkText"), s) : (e.consume(h), c);
19418
19418
  }
19419
19419
  }
19420
19420
  const r2 = {
@@ -19491,7 +19491,7 @@ function i2(e) {
19491
19491
  j(e.exit("chunkFlow"), !0), C(0), e.consume(w);
19492
19492
  return;
19493
19493
  }
19494
- return me(w) ? (e.consume(w), j(e.exit("chunkFlow")), l = 0, n.interrupt = void 0, h) : (e.consume(w), T);
19494
+ return ge(w) ? (e.consume(w), j(e.exit("chunkFlow")), l = 0, n.interrupt = void 0, h) : (e.consume(w), T);
19495
19495
  }
19496
19496
  function j(w, K) {
19497
19497
  const J = n.sliceStream(w);
@@ -19678,7 +19678,7 @@ function c2(e, n, i) {
19678
19678
  return Ce(s) ? Ze(e, o, "linePrefix")(s) : o(s);
19679
19679
  }
19680
19680
  function o(s) {
19681
- return s === null || me(s) ? n(s) : i(s);
19681
+ return s === null || ge(s) ? n(s) : i(s);
19682
19682
  }
19683
19683
  }
19684
19684
  const l0 = {
@@ -19782,20 +19782,20 @@ function g2(e, n, i) {
19782
19782
  return D === h ? (c++, e.consume(D), y) : c < 3 ? i(D) : (e.exit("codeFencedFenceSequence"), Ce(D) ? Ze(e, g, "whitespace")(D) : g(D));
19783
19783
  }
19784
19784
  function g(D) {
19785
- return D === null || me(D) ? (e.exit("codeFencedFence"), l.interrupt ? n(D) : e.check(Iy, T, K)(D)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
19785
+ return D === null || ge(D) ? (e.exit("codeFencedFence"), l.interrupt ? n(D) : e.check(Iy, T, K)(D)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
19786
19786
  contentType: "string"
19787
19787
  }), _(D));
19788
19788
  }
19789
19789
  function _(D) {
19790
- return D === null || me(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), g(D)) : Ce(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ze(e, b, "whitespace")(D)) : D === 96 && D === h ? i(D) : (e.consume(D), _);
19790
+ return D === null || ge(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), g(D)) : Ce(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ze(e, b, "whitespace")(D)) : D === 96 && D === h ? i(D) : (e.consume(D), _);
19791
19791
  }
19792
19792
  function b(D) {
19793
- return D === null || me(D) ? g(D) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
19793
+ return D === null || ge(D) ? g(D) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
19794
19794
  contentType: "string"
19795
19795
  }), E(D));
19796
19796
  }
19797
19797
  function E(D) {
19798
- return D === null || me(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), g(D)) : D === 96 && D === h ? i(D) : (e.consume(D), E);
19798
+ return D === null || ge(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), g(D)) : D === 96 && D === h ? i(D) : (e.consume(D), E);
19799
19799
  }
19800
19800
  function T(D) {
19801
19801
  return e.attempt(o, K, j)(D);
@@ -19807,10 +19807,10 @@ function g2(e, n, i) {
19807
19807
  return s > 0 && Ce(D) ? Ze(e, B, "linePrefix", s + 1)(D) : B(D);
19808
19808
  }
19809
19809
  function B(D) {
19810
- return D === null || me(D) ? e.check(Iy, T, K)(D) : (e.enter("codeFlowValue"), w(D));
19810
+ return D === null || ge(D) ? e.check(Iy, T, K)(D) : (e.enter("codeFlowValue"), w(D));
19811
19811
  }
19812
19812
  function w(D) {
19813
- return D === null || me(D) ? (e.exit("codeFlowValue"), B(D)) : (e.consume(D), w);
19813
+ return D === null || ge(D) ? (e.exit("codeFlowValue"), B(D)) : (e.consume(D), w);
19814
19814
  }
19815
19815
  function K(D) {
19816
19816
  return e.exit("codeFenced"), n(D);
@@ -19831,7 +19831,7 @@ function g2(e, n, i) {
19831
19831
  return fe === h ? (he++, D.consume(fe), le) : he >= c ? (D.exit("codeFencedFenceSequence"), Ce(fe) ? Ze(D, ae, "whitespace")(fe) : ae(fe)) : ce(fe);
19832
19832
  }
19833
19833
  function ae(fe) {
19834
- return fe === null || me(fe) ? (D.exit("codeFencedFence"), X(fe)) : ce(fe);
19834
+ return fe === null || ge(fe) ? (D.exit("codeFencedFence"), X(fe)) : ce(fe);
19835
19835
  }
19836
19836
  }
19837
19837
  }
@@ -19863,10 +19863,10 @@ function b2(e, n, i) {
19863
19863
  return y && y[1].type === "linePrefix" && y[2].sliceSerialize(y[1], !0).length >= 4 ? c(d) : i(d);
19864
19864
  }
19865
19865
  function c(d) {
19866
- return d === null ? m(d) : me(d) ? e.attempt(v2, c, m)(d) : (e.enter("codeFlowValue"), h(d));
19866
+ return d === null ? m(d) : ge(d) ? e.attempt(v2, c, m)(d) : (e.enter("codeFlowValue"), h(d));
19867
19867
  }
19868
19868
  function h(d) {
19869
- return d === null || me(d) ? (e.exit("codeFlowValue"), c(d)) : (e.consume(d), h);
19869
+ return d === null || ge(d) ? (e.exit("codeFlowValue"), c(d)) : (e.consume(d), h);
19870
19870
  }
19871
19871
  function m(d) {
19872
19872
  return e.exit("codeIndented"), n(d);
@@ -19876,11 +19876,11 @@ function _2(e, n, i) {
19876
19876
  const l = this;
19877
19877
  return o;
19878
19878
  function o(c) {
19879
- return l.parser.lazy[l.now().line] ? i(c) : me(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), o) : Ze(e, s, "linePrefix", 5)(c);
19879
+ return l.parser.lazy[l.now().line] ? i(c) : ge(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), o) : Ze(e, s, "linePrefix", 5)(c);
19880
19880
  }
19881
19881
  function s(c) {
19882
19882
  const h = l.events[l.events.length - 1];
19883
- return h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? n(c) : me(c) ? o(c) : i(c);
19883
+ return h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? n(c) : ge(c) ? o(c) : i(c);
19884
19884
  }
19885
19885
  }
19886
19886
  const S2 = {
@@ -19915,10 +19915,10 @@ function z2(e, n, i) {
19915
19915
  return g === 96 ? (e.consume(g), l++, h) : (e.exit("codeTextSequence"), m(g));
19916
19916
  }
19917
19917
  function m(g) {
19918
- return g === null ? i(g) : g === 32 ? (e.enter("space"), e.consume(g), e.exit("space"), m) : g === 96 ? (s = e.enter("codeTextSequence"), o = 0, y(g)) : me(g) ? (e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), m) : (e.enter("codeTextData"), d(g));
19918
+ return g === null ? i(g) : g === 32 ? (e.enter("space"), e.consume(g), e.exit("space"), m) : g === 96 ? (s = e.enter("codeTextSequence"), o = 0, y(g)) : ge(g) ? (e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), m) : (e.enter("codeTextData"), d(g));
19919
19919
  }
19920
19920
  function d(g) {
19921
- return g === null || g === 32 || g === 96 || me(g) ? (e.exit("codeTextData"), m(g)) : (e.consume(g), d);
19921
+ return g === null || g === 32 || g === 96 || ge(g) ? (e.exit("codeTextData"), m(g)) : (e.consume(g), d);
19922
19922
  }
19923
19923
  function y(g) {
19924
19924
  return g === 96 ? (e.consume(g), o++, y) : o === l ? (e.exit("codeTextSequence"), e.exit("codeText"), n(g)) : (s.type = "codeTextData", d(g));
@@ -20164,7 +20164,7 @@ function C2(e, n) {
20164
20164
  }), o(h);
20165
20165
  }
20166
20166
  function o(h) {
20167
- return h === null ? s(h) : me(h) ? e.check(A2, c, s)(h) : (e.consume(h), o);
20167
+ return h === null ? s(h) : ge(h) ? e.check(A2, c, s)(h) : (e.consume(h), o);
20168
20168
  }
20169
20169
  function s(h) {
20170
20170
  return e.exit("chunkContent"), e.exit("content"), n(h);
@@ -20183,7 +20183,7 @@ function N2(e, n, i) {
20183
20183
  return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), Ze(e, s, "linePrefix");
20184
20184
  }
20185
20185
  function s(c) {
20186
- if (c === null || me(c))
20186
+ if (c === null || ge(c))
20187
20187
  return i(c);
20188
20188
  const h = l.events[l.events.length - 1];
20189
20189
  return !l.parser.constructs.disable.null.includes("codeIndented") && h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? n(c) : e.interrupt(l.parser.constructs.flow, i, n)(c);
@@ -20204,7 +20204,7 @@ function c0(e, n, i, l, o, s, c, h, m) {
20204
20204
  }), b(C));
20205
20205
  }
20206
20206
  function b(C) {
20207
- return C === 62 ? (e.exit("chunkString"), e.exit(h), _(C)) : C === null || C === 60 || me(C) ? i(C) : (e.consume(C), C === 92 ? E : b);
20207
+ return C === 62 ? (e.exit("chunkString"), e.exit(h), _(C)) : C === null || C === 60 || ge(C) ? i(C) : (e.consume(C), C === 92 ? E : b);
20208
20208
  }
20209
20209
  function E(C) {
20210
20210
  return C === 60 || C === 62 || C === 92 ? (e.consume(C), b) : b(C);
@@ -20229,12 +20229,12 @@ function f0(e, n, i, l, o, s) {
20229
20229
  // which doesn’t need this.
20230
20230
  // Hidden footnotes hook.
20231
20231
  /* c8 ignore next 3 */
20232
- b === 94 && !h && "_hiddenFootnoteSupport" in c.parser.constructs ? i(b) : b === 93 ? (e.exit(s), e.enter(o), e.consume(b), e.exit(o), e.exit(l), n) : me(b) ? (e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), y) : (e.enter("chunkString", {
20232
+ b === 94 && !h && "_hiddenFootnoteSupport" in c.parser.constructs ? i(b) : b === 93 ? (e.exit(s), e.enter(o), e.consume(b), e.exit(o), e.exit(l), n) : ge(b) ? (e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), y) : (e.enter("chunkString", {
20233
20233
  contentType: "string"
20234
20234
  }), g(b));
20235
20235
  }
20236
20236
  function g(b) {
20237
- return b === null || b === 91 || b === 93 || me(b) || h++ > 999 ? (e.exit("chunkString"), y(b)) : (e.consume(b), m || (m = !Ce(b)), b === 92 ? _ : g);
20237
+ return b === null || b === 91 || b === 93 || ge(b) || h++ > 999 ? (e.exit("chunkString"), y(b)) : (e.consume(b), m || (m = !Ce(b)), b === 92 ? _ : g);
20238
20238
  }
20239
20239
  function _(b) {
20240
20240
  return b === 91 || b === 92 || b === 93 ? (e.consume(b), h++, g) : g(b);
@@ -20250,12 +20250,12 @@ function h0(e, n, i, l, o, s) {
20250
20250
  return _ === c ? (e.enter(o), e.consume(_), e.exit(o), e.exit(l), n) : (e.enter(s), d(_));
20251
20251
  }
20252
20252
  function d(_) {
20253
- return _ === c ? (e.exit(s), m(c)) : _ === null ? i(_) : me(_) ? (e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), Ze(e, d, "linePrefix")) : (e.enter("chunkString", {
20253
+ return _ === c ? (e.exit(s), m(c)) : _ === null ? i(_) : ge(_) ? (e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), Ze(e, d, "linePrefix")) : (e.enter("chunkString", {
20254
20254
  contentType: "string"
20255
20255
  }), y(_));
20256
20256
  }
20257
20257
  function y(_) {
20258
- return _ === c || _ === null || me(_) ? (e.exit("chunkString"), d(_)) : (e.consume(_), _ === 92 ? g : y);
20258
+ return _ === c || _ === null || ge(_) ? (e.exit("chunkString"), d(_)) : (e.consume(_), _ === 92 ? g : y);
20259
20259
  }
20260
20260
  function g(_) {
20261
20261
  return _ === c || _ === 92 ? (e.consume(_), y) : y(_);
@@ -20265,7 +20265,7 @@ function zl(e, n) {
20265
20265
  let i;
20266
20266
  return l;
20267
20267
  function l(o) {
20268
- return me(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i = !0, l) : Ce(o) ? Ze(e, l, i ? "linePrefix" : "lineSuffix")(o) : n(o);
20268
+ return ge(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i = !0, l) : Ce(o) ? Ze(e, l, i ? "linePrefix" : "lineSuffix")(o) : n(o);
20269
20269
  }
20270
20270
  }
20271
20271
  const D2 = {
@@ -20320,7 +20320,7 @@ function R2(e, n, i) {
20320
20320
  return Ce(b) ? Ze(e, _, "whitespace")(b) : _(b);
20321
20321
  }
20322
20322
  function _(b) {
20323
- return b === null || me(b) ? (e.exit("definition"), l.parser.defined.push(o), n(b)) : i(b);
20323
+ return b === null || ge(b) ? (e.exit("definition"), l.parser.defined.push(o), n(b)) : i(b);
20324
20324
  }
20325
20325
  }
20326
20326
  function j2(e, n, i) {
@@ -20335,7 +20335,7 @@ function j2(e, n, i) {
20335
20335
  return Ce(h) ? Ze(e, c, "whitespace")(h) : c(h);
20336
20336
  }
20337
20337
  function c(h) {
20338
- return h === null || me(h) ? n(h) : i(h);
20338
+ return h === null || ge(h) ? n(h) : i(h);
20339
20339
  }
20340
20340
  }
20341
20341
  const U2 = {
@@ -20348,7 +20348,7 @@ function Z2(e, n, i) {
20348
20348
  return e.enter("hardBreakEscape"), e.consume(s), o;
20349
20349
  }
20350
20350
  function o(s) {
20351
- return me(s) ? (e.exit("hardBreakEscape"), n(s)) : i(s);
20351
+ return ge(s) ? (e.exit("hardBreakEscape"), n(s)) : i(s);
20352
20352
  }
20353
20353
  }
20354
20354
  const L2 = {
@@ -20382,7 +20382,7 @@ function B2(e, n, i) {
20382
20382
  return y === 35 && l++ < 6 ? (e.consume(y), c) : y === null || Ke(y) ? (e.exit("atxHeadingSequence"), h(y)) : i(y);
20383
20383
  }
20384
20384
  function h(y) {
20385
- return y === 35 ? (e.enter("atxHeadingSequence"), m(y)) : y === null || me(y) ? (e.exit("atxHeading"), n(y)) : Ce(y) ? Ze(e, h, "whitespace")(y) : (e.enter("atxHeadingText"), d(y));
20385
+ return y === 35 ? (e.enter("atxHeadingSequence"), m(y)) : y === null || ge(y) ? (e.exit("atxHeading"), n(y)) : Ce(y) ? Ze(e, h, "whitespace")(y) : (e.enter("atxHeadingText"), d(y));
20386
20386
  }
20387
20387
  function m(y) {
20388
20388
  return y === 35 ? (e.consume(y), m) : (e.exit("atxHeadingSequence"), h(y));
@@ -20524,7 +20524,7 @@ function G2(e, n, i) {
20524
20524
  return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? i(x) : x === 34 || x === 39 ? (e.consume(x), m = x, X) : Ce(x) ? (e.consume(x), D) : ce(x);
20525
20525
  }
20526
20526
  function X(x) {
20527
- return x === m ? (e.consume(x), m = null, he) : x === null || me(x) ? i(x) : (e.consume(x), X);
20527
+ return x === m ? (e.consume(x), m = null, he) : x === null || ge(x) ? i(x) : (e.consume(x), X);
20528
20528
  }
20529
20529
  function ce(x) {
20530
20530
  return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || Ke(x) ? J(x) : (e.consume(x), ce);
@@ -20536,10 +20536,10 @@ function G2(e, n, i) {
20536
20536
  return x === 62 ? (e.consume(x), ie) : i(x);
20537
20537
  }
20538
20538
  function ie(x) {
20539
- return x === null || me(x) ? re(x) : Ce(x) ? (e.consume(x), ie) : i(x);
20539
+ return x === null || ge(x) ? re(x) : Ce(x) ? (e.consume(x), ie) : i(x);
20540
20540
  }
20541
20541
  function re(x) {
20542
- return x === 45 && o === 2 ? (e.consume(x), Z) : x === 60 && o === 1 ? (e.consume(x), F) : x === 62 && o === 4 ? (e.consume(x), A) : x === 63 && o === 3 ? (e.consume(x), z) : x === 93 && o === 5 ? (e.consume(x), ge) : me(x) && (o === 6 || o === 7) ? (e.exit("htmlFlowData"), e.check($2, H, le)(x)) : x === null || me(x) ? (e.exit("htmlFlowData"), le(x)) : (e.consume(x), re);
20542
+ return x === 45 && o === 2 ? (e.consume(x), Z) : x === 60 && o === 1 ? (e.consume(x), F) : x === 62 && o === 4 ? (e.consume(x), A) : x === 63 && o === 3 ? (e.consume(x), z) : x === 93 && o === 5 ? (e.consume(x), me) : ge(x) && (o === 6 || o === 7) ? (e.exit("htmlFlowData"), e.check($2, H, le)(x)) : x === null || ge(x) ? (e.exit("htmlFlowData"), le(x)) : (e.consume(x), re);
20543
20543
  }
20544
20544
  function le(x) {
20545
20545
  return e.check(V2, ae, H)(x);
@@ -20548,7 +20548,7 @@ function G2(e, n, i) {
20548
20548
  return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), fe;
20549
20549
  }
20550
20550
  function fe(x) {
20551
- return x === null || me(x) ? le(x) : (e.enter("htmlFlowData"), re(x));
20551
+ return x === null || ge(x) ? le(x) : (e.enter("htmlFlowData"), re(x));
20552
20552
  }
20553
20553
  function Z(x) {
20554
20554
  return x === 45 ? (e.consume(x), z) : re(x);
@@ -20563,14 +20563,14 @@ function G2(e, n, i) {
20563
20563
  }
20564
20564
  return Lt(x) && c.length < 8 ? (e.consume(x), c += String.fromCharCode(x), te) : re(x);
20565
20565
  }
20566
- function ge(x) {
20566
+ function me(x) {
20567
20567
  return x === 93 ? (e.consume(x), z) : re(x);
20568
20568
  }
20569
20569
  function z(x) {
20570
20570
  return x === 62 ? (e.consume(x), A) : x === 45 && o === 2 ? (e.consume(x), z) : re(x);
20571
20571
  }
20572
20572
  function A(x) {
20573
- return x === null || me(x) ? (e.exit("htmlFlowData"), H(x)) : (e.consume(x), A);
20573
+ return x === null || ge(x) ? (e.exit("htmlFlowData"), H(x)) : (e.consume(x), A);
20574
20574
  }
20575
20575
  function H(x) {
20576
20576
  return e.exit("htmlFlow"), n(x);
@@ -20580,7 +20580,7 @@ function X2(e, n, i) {
20580
20580
  const l = this;
20581
20581
  return o;
20582
20582
  function o(c) {
20583
- return me(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), s) : i(c);
20583
+ return ge(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), s) : i(c);
20584
20584
  }
20585
20585
  function s(c) {
20586
20586
  return l.parser.lazy[l.now().line] ? i(c) : n(c);
@@ -20613,7 +20613,7 @@ function Q2(e, n, i) {
20613
20613
  return z === 45 ? (e.consume(z), b) : i(z);
20614
20614
  }
20615
20615
  function g(z) {
20616
- return z === null ? i(z) : z === 45 ? (e.consume(z), _) : me(z) ? (c = g, F(z)) : (e.consume(z), g);
20616
+ return z === null ? i(z) : z === 45 ? (e.consume(z), _) : ge(z) ? (c = g, F(z)) : (e.consume(z), g);
20617
20617
  }
20618
20618
  function _(z) {
20619
20619
  return z === 45 ? (e.consume(z), b) : g(z);
@@ -20626,7 +20626,7 @@ function Q2(e, n, i) {
20626
20626
  return z === A.charCodeAt(s++) ? (e.consume(z), s === A.length ? T : E) : i(z);
20627
20627
  }
20628
20628
  function T(z) {
20629
- return z === null ? i(z) : z === 93 ? (e.consume(z), j) : me(z) ? (c = T, F(z)) : (e.consume(z), T);
20629
+ return z === null ? i(z) : z === 93 ? (e.consume(z), j) : ge(z) ? (c = T, F(z)) : (e.consume(z), T);
20630
20630
  }
20631
20631
  function j(z) {
20632
20632
  return z === 93 ? (e.consume(z), C) : T(z);
@@ -20635,10 +20635,10 @@ function Q2(e, n, i) {
20635
20635
  return z === 62 ? Z(z) : z === 93 ? (e.consume(z), C) : T(z);
20636
20636
  }
20637
20637
  function B(z) {
20638
- return z === null || z === 62 ? Z(z) : me(z) ? (c = B, F(z)) : (e.consume(z), B);
20638
+ return z === null || z === 62 ? Z(z) : ge(z) ? (c = B, F(z)) : (e.consume(z), B);
20639
20639
  }
20640
20640
  function w(z) {
20641
- return z === null ? i(z) : z === 63 ? (e.consume(z), K) : me(z) ? (c = w, F(z)) : (e.consume(z), w);
20641
+ return z === null ? i(z) : z === 63 ? (e.consume(z), K) : ge(z) ? (c = w, F(z)) : (e.consume(z), w);
20642
20642
  }
20643
20643
  function K(z) {
20644
20644
  return z === 62 ? Z(z) : w(z);
@@ -20650,25 +20650,25 @@ function Q2(e, n, i) {
20650
20650
  return z === 45 || Ct(z) ? (e.consume(z), D) : X(z);
20651
20651
  }
20652
20652
  function X(z) {
20653
- return me(z) ? (c = X, F(z)) : Ce(z) ? (e.consume(z), X) : Z(z);
20653
+ return ge(z) ? (c = X, F(z)) : Ce(z) ? (e.consume(z), X) : Z(z);
20654
20654
  }
20655
20655
  function ce(z) {
20656
20656
  return z === 45 || Ct(z) ? (e.consume(z), ce) : z === 47 || z === 62 || Ke(z) ? he(z) : i(z);
20657
20657
  }
20658
20658
  function he(z) {
20659
- return z === 47 ? (e.consume(z), Z) : z === 58 || z === 95 || Lt(z) ? (e.consume(z), L) : me(z) ? (c = he, F(z)) : Ce(z) ? (e.consume(z), he) : Z(z);
20659
+ return z === 47 ? (e.consume(z), Z) : z === 58 || z === 95 || Lt(z) ? (e.consume(z), L) : ge(z) ? (c = he, F(z)) : Ce(z) ? (e.consume(z), he) : Z(z);
20660
20660
  }
20661
20661
  function L(z) {
20662
20662
  return z === 45 || z === 46 || z === 58 || z === 95 || Ct(z) ? (e.consume(z), L) : ie(z);
20663
20663
  }
20664
20664
  function ie(z) {
20665
- return z === 61 ? (e.consume(z), re) : me(z) ? (c = ie, F(z)) : Ce(z) ? (e.consume(z), ie) : he(z);
20665
+ return z === 61 ? (e.consume(z), re) : ge(z) ? (c = ie, F(z)) : Ce(z) ? (e.consume(z), ie) : he(z);
20666
20666
  }
20667
20667
  function re(z) {
20668
- return z === null || z === 60 || z === 61 || z === 62 || z === 96 ? i(z) : z === 34 || z === 39 ? (e.consume(z), o = z, le) : me(z) ? (c = re, F(z)) : Ce(z) ? (e.consume(z), re) : (e.consume(z), ae);
20668
+ return z === null || z === 60 || z === 61 || z === 62 || z === 96 ? i(z) : z === 34 || z === 39 ? (e.consume(z), o = z, le) : ge(z) ? (c = re, F(z)) : Ce(z) ? (e.consume(z), re) : (e.consume(z), ae);
20669
20669
  }
20670
20670
  function le(z) {
20671
- return z === o ? (e.consume(z), o = void 0, fe) : z === null ? i(z) : me(z) ? (c = le, F(z)) : (e.consume(z), le);
20671
+ return z === o ? (e.consume(z), o = void 0, fe) : z === null ? i(z) : ge(z) ? (c = le, F(z)) : (e.consume(z), le);
20672
20672
  }
20673
20673
  function ae(z) {
20674
20674
  return z === null || z === 34 || z === 39 || z === 60 || z === 61 || z === 96 ? i(z) : z === 47 || z === 62 || Ke(z) ? he(z) : (e.consume(z), ae);
@@ -20683,9 +20683,9 @@ function Q2(e, n, i) {
20683
20683
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(z), e.exit("lineEnding"), te;
20684
20684
  }
20685
20685
  function te(z) {
20686
- return Ce(z) ? Ze(e, ge, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : ge(z);
20686
+ return Ce(z) ? Ze(e, me, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : me(z);
20687
20687
  }
20688
- function ge(z) {
20688
+ function me(z) {
20689
20689
  return e.enter("htmlTextData"), c(z);
20690
20690
  }
20691
20691
  }
@@ -20887,7 +20887,7 @@ function fO(e, n, i) {
20887
20887
  return o = d, h(d);
20888
20888
  }
20889
20889
  function h(d) {
20890
- return d === o ? (e.enter("thematicBreakSequence"), m(d)) : l >= 3 && (d === null || me(d)) ? (e.exit("thematicBreak"), n(d)) : i(d);
20890
+ return d === o ? (e.enter("thematicBreakSequence"), m(d)) : l >= 3 && (d === null || ge(d)) ? (e.exit("thematicBreak"), n(d)) : i(d);
20891
20891
  }
20892
20892
  function m(d) {
20893
20893
  return d === o ? (e.consume(d), l++, m) : (e.exit("thematicBreakSequence"), Ce(d) ? Ze(e, h, "whitespace")(d) : h(d));
@@ -21025,7 +21025,7 @@ function _O(e, n, i) {
21025
21025
  return d === o ? (e.consume(d), h) : (e.exit("setextHeadingLineSequence"), Ce(d) ? Ze(e, m, "lineSuffix")(d) : m(d));
21026
21026
  }
21027
21027
  function m(d) {
21028
- return d === null || me(d) ? (e.exit("setextHeadingLine"), n(d)) : i(d);
21028
+ return d === null || ge(d) ? (e.exit("setextHeadingLine"), n(d)) : i(d);
21029
21029
  }
21030
21030
  }
21031
21031
  const SO = {
@@ -21285,7 +21285,7 @@ function ZO(e, n, i) {
21285
21285
  y = y(ie);
21286
21286
  }
21287
21287
  function B(ie) {
21288
- me(ie) ? (l.line++, l.column = 1, l.offset += ie === -3 ? 2 : 1, L()) : ie !== -1 && (l.column++, l.offset++), l._bufferIndex < 0 ? l._index++ : (l._bufferIndex++, l._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
21288
+ ge(ie) ? (l.line++, l.column = 1, l.offset += ie === -3 ? 2 : 1, L()) : ie !== -1 && (l.column++, l.offset++), l._bufferIndex < 0 ? l._index++ : (l._bufferIndex++, l._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
21289
21289
  // strings.
21290
21290
  /** @type {string} */
21291
21291
  c[l._index].length && (l._bufferIndex = -1, l._index++)), d.previous = ie;
@@ -21307,7 +21307,7 @@ function ZO(e, n, i) {
21307
21307
  function X(ie, re) {
21308
21308
  return le;
21309
21309
  function le(ae, fe, Z) {
21310
- let F, te, ge, z;
21310
+ let F, te, me, z;
21311
21311
  return Array.isArray(ae) ? (
21312
21312
  /* c8 ignore next 1 */
21313
21313
  H(ae)
@@ -21336,7 +21336,7 @@ function ZO(e, n, i) {
21336
21336
  function x(pe) {
21337
21337
  return Ne;
21338
21338
  function Ne(ut) {
21339
- return z = he(), ge = pe, pe.partial || (d.currentConstruct = pe), pe.name && d.parser.constructs.disable.null.includes(pe.name) ? be() : pe.tokenize.call(
21339
+ return z = he(), me = pe, pe.partial || (d.currentConstruct = pe), pe.name && d.parser.constructs.disable.null.includes(pe.name) ? be() : pe.tokenize.call(
21340
21340
  // If we do have fields, create an object w/ `context` as its
21341
21341
  // prototype.
21342
21342
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -21348,7 +21348,7 @@ function ZO(e, n, i) {
21348
21348
  }
21349
21349
  }
21350
21350
  function ne(pe) {
21351
- return ie(ge, z), fe;
21351
+ return ie(me, z), fe;
21352
21352
  }
21353
21353
  function be(pe) {
21354
21354
  return z.restore(), ++te < F.length ? x(F[te]) : Z;
@@ -21586,7 +21586,7 @@ function XO(e) {
21586
21586
  htmlText: m(ae),
21587
21587
  htmlTextData: L,
21588
21588
  image: m(F),
21589
- label: ge,
21589
+ label: me,
21590
21590
  labelText: te,
21591
21591
  lineEnding: ie,
21592
21592
  link: m(Z),
@@ -21861,7 +21861,7 @@ function XO(e) {
21861
21861
  const W = this.sliceSerialize(V), _e = this.stack[this.stack.length - 2];
21862
21862
  _e.label = VO(W), _e.identifier = On(W).toLowerCase();
21863
21863
  }
21864
- function ge() {
21864
+ function me() {
21865
21865
  const V = this.stack[this.stack.length - 1], W = this.resume(), _e = this.stack[this.stack.length - 1];
21866
21866
  if (this.data.inReference = !0, _e.type === "link") {
21867
21867
  const Te = V.children;
@@ -25995,7 +25995,7 @@ function bD(e, n, i) {
25995
25995
  return L === 124 || (c = !0, s += 1), y(L);
25996
25996
  }
25997
25997
  function y(L) {
25998
- return L === null ? i(L) : me(L) ? s > 1 ? (s = 0, l.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"), b) : i(L) : Ce(L) ? Ze(e, y, "whitespace")(L) : (s += 1, c && (c = !1, o += 1), L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), c = !0, y) : (e.enter("data"), g(L)));
25998
+ return L === null ? i(L) : ge(L) ? s > 1 ? (s = 0, l.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"), b) : i(L) : Ce(L) ? Ze(e, y, "whitespace")(L) : (s += 1, c && (c = !1, o += 1), L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), c = !0, y) : (e.enter("data"), g(L)));
25999
25999
  }
26000
26000
  function g(L) {
26001
26001
  return L === null || L === 124 || Ke(L) ? (e.exit("data"), y(L)) : (e.consume(L), L === 92 ? _ : g);
@@ -26013,7 +26013,7 @@ function bD(e, n, i) {
26013
26013
  return Ce(L) ? Ze(e, j, "whitespace")(L) : j(L);
26014
26014
  }
26015
26015
  function j(L) {
26016
- return L === 58 ? (s += 1, c = !0, e.enter("tableDelimiterMarker"), e.consume(L), e.exit("tableDelimiterMarker"), C) : L === 45 ? (s += 1, C(L)) : L === null || me(L) ? K(L) : J(L);
26016
+ return L === 58 ? (s += 1, c = !0, e.enter("tableDelimiterMarker"), e.consume(L), e.exit("tableDelimiterMarker"), C) : L === 45 ? (s += 1, C(L)) : L === null || ge(L) ? K(L) : J(L);
26017
26017
  }
26018
26018
  function C(L) {
26019
26019
  return L === 45 ? (e.enter("tableDelimiterFiller"), B(L)) : J(L);
@@ -26025,7 +26025,7 @@ function bD(e, n, i) {
26025
26025
  return Ce(L) ? Ze(e, K, "whitespace")(L) : K(L);
26026
26026
  }
26027
26027
  function K(L) {
26028
- return L === 124 ? E(L) : L === null || me(L) ? !c || o !== s ? J(L) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(L)) : J(L);
26028
+ return L === 124 ? E(L) : L === null || ge(L) ? !c || o !== s ? J(L) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(L)) : J(L);
26029
26029
  }
26030
26030
  function J(L) {
26031
26031
  return i(L);
@@ -26034,7 +26034,7 @@ function bD(e, n, i) {
26034
26034
  return e.enter("tableRow"), X(L);
26035
26035
  }
26036
26036
  function X(L) {
26037
- return L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), X) : L === null || me(L) ? (e.exit("tableRow"), n(L)) : Ce(L) ? Ze(e, X, "whitespace")(L) : (e.enter("data"), ce(L));
26037
+ return L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), X) : L === null || ge(L) ? (e.exit("tableRow"), n(L)) : Ce(L) ? Ze(e, X, "whitespace")(L) : (e.enter("data"), ce(L));
26038
26038
  }
26039
26039
  function ce(L) {
26040
26040
  return L === null || L === 124 || Ke(L) ? (e.exit("data"), X(L)) : (e.consume(L), L === 92 ? he : ce);
@@ -26129,7 +26129,7 @@ function ED(e, n, i) {
26129
26129
  return m === 93 ? (e.enter("taskListCheckMarker"), e.consume(m), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), h) : i(m);
26130
26130
  }
26131
26131
  function h(m) {
26132
- return me(m) ? n(m) : Ce(m) ? e.check({
26132
+ return ge(m) ? n(m) : Ce(m) ? e.check({
26133
26133
  tokenize: zD
26134
26134
  }, n, i)(m) : i(m);
26135
26135
  }
@@ -26393,8 +26393,8 @@ function J0({
26393
26393
  const te = sessionStorage.getItem(K);
26394
26394
  if (te)
26395
26395
  try {
26396
- const ge = JSON.parse(te);
26397
- if (Array.isArray(ge) && ge.length > 0) return ge;
26396
+ const me = JSON.parse(te);
26397
+ if (Array.isArray(me) && me.length > 0) return me;
26398
26398
  } catch {
26399
26399
  }
26400
26400
  return [
@@ -26414,9 +26414,9 @@ function J0({
26414
26414
  body: {
26415
26415
  ...c ? { context: c } : {},
26416
26416
  ...h ? {
26417
- actions: h.map(({ name: te, description: ge, parameters: z }) => ({
26417
+ actions: h.map(({ name: te, description: me, parameters: z }) => ({
26418
26418
  name: te,
26419
- description: ge,
26419
+ description: me,
26420
26420
  parameters: z
26421
26421
  }))
26422
26422
  } : {}
@@ -26441,19 +26441,26 @@ function J0({
26441
26441
  }, [he, K]), we.useEffect(() => {
26442
26442
  if (!(!h || h.length === 0)) {
26443
26443
  for (const te of he)
26444
- for (const ge of te.parts)
26445
- if (ge.type.startsWith("tool-")) {
26446
- const z = ge;
26447
- if (z.state === "output-available" && !g.current.has(z.toolCallId)) {
26448
- const A = z.toolName || ge.type.slice(5), H = h.find((x) => x.name === A);
26444
+ for (const me of te.parts)
26445
+ if (me.type.startsWith("tool-")) {
26446
+ const z = me, A = z.toolName || me.type.slice(5);
26447
+ if (console.log("[agentsgt-widget] Tool part detected:", {
26448
+ type: me.type,
26449
+ toolName: A,
26450
+ state: z.state,
26451
+ toolCallId: z.toolCallId,
26452
+ input: z.input
26453
+ }), z.state === "output-available" && !g.current.has(z.toolCallId)) {
26454
+ const H = h.find((x) => x.name === A);
26449
26455
  if (H) {
26450
- g.current.add(z.toolCallId);
26456
+ console.log(`[agentsgt-widget] Executing action "${A}"`, z.input), g.current.add(z.toolCallId);
26451
26457
  try {
26452
26458
  H.handler(z.input);
26453
26459
  } catch (x) {
26454
26460
  console.error(`[agentsgt-widget] Action "${H.name}" failed:`, x);
26455
26461
  }
26456
- }
26462
+ } else
26463
+ console.warn(`[agentsgt-widget] No matching action for "${A}"`);
26457
26464
  }
26458
26465
  }
26459
26466
  }
@@ -26463,7 +26470,7 @@ function J0({
26463
26470
  B && (async () => {
26464
26471
  var te;
26465
26472
  try {
26466
- const ge = await fetch(
26473
+ const me = await fetch(
26467
26474
  `${w}/api/v1/agents/agent/${B}`,
26468
26475
  {
26469
26476
  headers: {
@@ -26472,8 +26479,8 @@ function J0({
26472
26479
  }
26473
26480
  }
26474
26481
  );
26475
- if (ge.ok) {
26476
- const z = await ge.json();
26482
+ if (me.ok) {
26483
+ const z = await me.json();
26477
26484
  b(z.data);
26478
26485
  const A = ((te = z.data.language) == null ? void 0 : te.toLowerCase()) || "english", H = Object.keys(hf);
26479
26486
  T(