@opencxh/domain 1.186.0 → 1.187.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.js CHANGED
@@ -14,7 +14,7 @@ function T(e) {
14
14
  const t = e;
15
15
  return typeof t.key == "string" || typeof t.value == "string";
16
16
  }
17
- function Nn(e, t = () => {
17
+ function On(e, t = () => {
18
18
  }) {
19
19
  if (!Array.isArray(e)) return [];
20
20
  const n = [];
@@ -445,7 +445,7 @@ function R(e) {
445
445
  function d(e) {
446
446
  return m[e];
447
447
  }
448
- function On(e) {
448
+ function Nn(e) {
449
449
  return d(e)?.icon ?? "circle";
450
450
  }
451
451
  function vn(e) {
@@ -484,7 +484,7 @@ function Un(e, t) {
484
484
  const n = d(e.type)?.timeline;
485
485
  return n ? n(e, t) : e.type.replace(/_/g, " ").toLowerCase();
486
486
  }
487
- function jn(e) {
487
+ function Gn(e) {
488
488
  const t = d(e.type)?.joinUrl;
489
489
  return t ? t(e) : void 0;
490
490
  }
@@ -496,7 +496,7 @@ function C(e, t) {
496
496
  }
497
497
  return n == null ? "" : typeof n == "string" ? n : typeof n == "number" || typeof n == "boolean" ? String(n) : "";
498
498
  }
499
- function N(e, t, n) {
499
+ function O(e, t, n) {
500
500
  if (e === void 0) return null;
501
501
  if (typeof e == "string") return e || null;
502
502
  if ("value" in e)
@@ -519,8 +519,8 @@ function Ce(e) {
519
519
  const t = e.trim();
520
520
  return t.length <= D ? t : `${t.slice(0, D - 1).trimEnd()}…`;
521
521
  }
522
- function Gn(e, t) {
523
- const n = ke(t?.text, e), r = t ? N(t.text, e, (i) => i) : null;
522
+ function jn(e, t) {
523
+ const n = ke(t?.text, e), r = t ? O(t.text, e, (i) => i) : null;
524
524
  return {
525
525
  activityId: e.id,
526
526
  type: e.type,
@@ -531,7 +531,7 @@ function Gn(e, t) {
531
531
  ...n ? { snippetKey: n.key, snippetParams: n.params } : {}
532
532
  };
533
533
  }
534
- const Ne = (e) => e;
534
+ const Oe = (e) => e;
535
535
  function L(e) {
536
536
  const t = m[e];
537
537
  return {
@@ -563,8 +563,8 @@ function P(e) {
563
563
  displayNameKey: e.displayNameKey
564
564
  };
565
565
  }
566
- class Oe {
567
- constructor(t = [], n = Ne) {
566
+ class Ne {
567
+ constructor(t = [], n = Oe) {
568
568
  this.translate = n;
569
569
  for (const r of t)
570
570
  r?.type && (r.type in m || this.declared.has(r.type) || this.declared.set(r.type, r));
@@ -589,14 +589,14 @@ class Oe {
589
589
  const r = m[t.type];
590
590
  if (r?.timeline) return r.timeline(t, n);
591
591
  const i = this.declared.get(t.type);
592
- return N(i?.text, t, this.translate) ?? t.type.replace(/_/g, " ").toLowerCase();
592
+ return O(i?.text, t, this.translate) ?? t.type.replace(/_/g, " ").toLowerCase();
593
593
  }
594
594
  /** The line for the inbox list. Empty when the type has nothing to show. */
595
595
  snippet(t) {
596
596
  const n = m[t.type];
597
597
  if (n?.snippet) return n.snippet(t);
598
598
  const r = this.declared.get(t.type);
599
- return N(r?.text, t, this.translate) ?? "";
599
+ return O(r?.text, t, this.translate) ?? "";
600
600
  }
601
601
  /** The descriptor as it arrived; needed to store `text` as a key. */
602
602
  descriptor(t) {
@@ -649,7 +649,7 @@ class Oe {
649
649
  return this.translate;
650
650
  }
651
651
  }
652
- const Bn = new Oe();
652
+ const Bn = new Ne();
653
653
  function Fn(e, t, n = []) {
654
654
  const r = e.createdAt;
655
655
  if (!r) return [];
@@ -659,10 +659,10 @@ function Fn(e, t, n = []) {
659
659
  function Hn(e) {
660
660
  return e.createdAt ?? 0;
661
661
  }
662
- function Wn(e) {
662
+ function Vn(e) {
663
663
  return e.type === "EMAIL_RECEIVED" || e.type === "EMAIL_SENT";
664
664
  }
665
- function Vn(e) {
665
+ function Wn(e) {
666
666
  return e.type === "CHAT_MESSAGE_SENT" || e.type === "CHAT_MESSAGE_RECEIVED";
667
667
  }
668
668
  const oe = [
@@ -850,7 +850,7 @@ function ir(e, t) {
850
850
  ]
851
851
  }));
852
852
  }
853
- const se = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), U = 200, j = 100, G = 200, B = 12, F = 4, ce = 4e3, M = 500, ar = 256 * 1024, Ue = /* @__PURE__ */ new Set([
853
+ const se = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), U = 200, G = 100, j = 200, B = 12, F = 4, ce = 4e3, M = 500, ar = 256 * 1024, Ue = /* @__PURE__ */ new Set([
854
854
  "heading",
855
855
  "paragraph",
856
856
  "list",
@@ -860,12 +860,12 @@ const se = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]
860
860
  "table",
861
861
  "kpi",
862
862
  "callout"
863
- ]), je = ["http:", "https:", "mailto:", "tel:"], Ge = /^[a-z][a-z0-9+.-]*:/i;
863
+ ]), Ge = ["http:", "https:", "mailto:", "tel:"], je = /^[a-z][a-z0-9+.-]*:/i;
864
864
  function le(e) {
865
865
  const t = e.trim().replace(/^<|>$/g, "");
866
866
  if (!t) return !1;
867
- const n = Ge.exec(t)?.[0];
868
- return n ? je.includes(n.toLowerCase()) : !t.startsWith("//");
867
+ const n = je.exec(t)?.[0];
868
+ return n ? Ge.includes(n.toLowerCase()) : !t.startsWith("//");
869
869
  }
870
870
  const Be = /^[ \t]{0,3}\[([^\]]+)\]:[ \t]*(\S+).*$/gm;
871
871
  function Fe(e) {
@@ -913,10 +913,10 @@ function He(e) {
913
913
  function u(e, t = ce) {
914
914
  return typeof e == "string" ? He(e).slice(0, t) : "";
915
915
  }
916
- function We(e, t = ce) {
916
+ function Ve(e, t = ce) {
917
917
  return typeof e == "string" ? e.slice(0, t) : "";
918
918
  }
919
- function Ve(e, t = "info") {
919
+ function We(e, t = "info") {
920
920
  return typeof e == "string" && se.has(e) ? e : t;
921
921
  }
922
922
  function or(e, t = () => {
@@ -965,7 +965,7 @@ function or(e, t = () => {
965
965
  break;
966
966
  }
967
967
  case "code": {
968
- const o = We(i.text);
968
+ const o = Ve(i.text);
969
969
  if (!o) {
970
970
  t("a code block without text");
971
971
  continue;
@@ -980,8 +980,8 @@ function or(e, t = () => {
980
980
  case "list": {
981
981
  const o = Array.isArray(i.items) ? i.items : [], s = [];
982
982
  for (const p of o) {
983
- if (s.length >= j) {
984
- t(`more than ${j} list items`);
983
+ if (s.length >= G) {
984
+ t(`more than ${G} list items`);
985
985
  break;
986
986
  }
987
987
  const f = u(p?.text);
@@ -1013,8 +1013,8 @@ function or(e, t = () => {
1013
1013
  }
1014
1014
  const c = Array.isArray(i.rows) ? i.rows : [], p = [];
1015
1015
  for (const l of c) {
1016
- if (p.length >= G) {
1017
- t(`more than ${G} table rows`);
1016
+ if (p.length >= j) {
1017
+ t(`more than ${j} table rows`);
1018
1018
  break;
1019
1019
  }
1020
1020
  const y = Array.isArray(l) ? l : [];
@@ -1061,7 +1061,7 @@ function or(e, t = () => {
1061
1061
  n.push({
1062
1062
  ...a,
1063
1063
  type: "callout",
1064
- tone: Ve(i.tone),
1064
+ tone: We(i.tone),
1065
1065
  ...s ? { title: s } : {},
1066
1066
  text: o
1067
1067
  });
@@ -1081,15 +1081,15 @@ function cr(e) {
1081
1081
  headings: e.flatMap((t) => t.type === "heading" ? [t.text] : [])
1082
1082
  };
1083
1083
  }
1084
- function W(e) {
1084
+ function V(e) {
1085
1085
  return e.replace(/\|/g, "\\|").replace(/\r?\n/g, " ").trim();
1086
1086
  }
1087
- function V(e, t, n) {
1087
+ function W(e, t, n) {
1088
1088
  const r = e.map((i, a) => n?.[a] === "right" ? "---:" : "---");
1089
1089
  return [
1090
- `| ${e.map(W).join(" | ")} |`,
1090
+ `| ${e.map(V).join(" | ")} |`,
1091
1091
  `| ${r.join(" | ")} |`,
1092
- ...t.map((i) => `| ${i.map(W).join(" | ")} |`)
1092
+ ...t.map((i) => `| ${i.map(V).join(" | ")} |`)
1093
1093
  ];
1094
1094
  }
1095
1095
  function ze(e) {
@@ -1110,7 +1110,7 @@ function ze(e) {
1110
1110
  return t.lead ? `${r} **${t.lead}** ${t.text}` : `${r} ${t.text}`;
1111
1111
  });
1112
1112
  case "table": {
1113
- const t = V(
1113
+ const t = W(
1114
1114
  e.columns.map((n) => n.label),
1115
1115
  e.rows,
1116
1116
  e.columns.map((n) => n.align ?? "left")
@@ -1118,7 +1118,7 @@ function ze(e) {
1118
1118
  return e.caption ? [...t, "", `*${e.caption}*`] : t;
1119
1119
  }
1120
1120
  case "kpi":
1121
- return V(
1121
+ return W(
1122
1122
  e.items.map((t) => t.value),
1123
1123
  [e.items.map((t) => t.label)]
1124
1124
  );
@@ -1241,7 +1241,7 @@ function pe(e) {
1241
1241
  function Cr(e) {
1242
1242
  return pe(e)?.label ?? e;
1243
1243
  }
1244
- function Nr(e) {
1244
+ function Or(e) {
1245
1245
  const t = pe(e);
1246
1246
  return t ? t.english === t.label ? `${t.english} (${t.code})` : `${t.english} — ${t.label} (${t.code})` : e;
1247
1247
  }
@@ -1255,7 +1255,7 @@ function Ze(e, t) {
1255
1255
  }
1256
1256
  return r;
1257
1257
  }
1258
- function Or(e, t, n) {
1258
+ function Nr(e, t, n) {
1259
1259
  if (!e) return !0;
1260
1260
  if (e === t) return !1;
1261
1261
  const r = new Map(n.map((o) => [o.id, o]));
@@ -1329,8 +1329,8 @@ function Rr(e) {
1329
1329
  function Dr(e) {
1330
1330
  return `mcp__${e}__`;
1331
1331
  }
1332
- const Lr = 1e3, Pr = 2e3, Kr = 500, Ur = 12e3, jr = 4e3, rt = ["contact", "company", "work_item"];
1333
- function Gr(e) {
1332
+ const Lr = 1e3, Pr = 2e3, Kr = 500, Ur = 12e3, Gr = 4e3, rt = ["contact", "company", "work_item"];
1333
+ function jr(e) {
1334
1334
  if (!e) return !1;
1335
1335
  const t = e.slice(0, e.indexOf(":"));
1336
1336
  return rt.includes(t);
@@ -1346,7 +1346,7 @@ function it(e) {
1346
1346
  return "org";
1347
1347
  }
1348
1348
  }
1349
- function Wr(e) {
1349
+ function Vr(e) {
1350
1350
  if (typeof e != "string") return;
1351
1351
  const t = e.trim();
1352
1352
  if (t === "org") return { kind: "org" };
@@ -1372,7 +1372,7 @@ function ot(e) {
1372
1372
  }
1373
1373
  }
1374
1374
  const st = ot;
1375
- function Vr(e) {
1375
+ function Wr(e) {
1376
1376
  return e.agentId ? { kind: "user", userId: e.agentId } : st(e.ownerScope);
1377
1377
  }
1378
1378
  function zr(e) {
@@ -1609,14 +1609,14 @@ function Mi(e, t = 25) {
1609
1609
  function ki(e) {
1610
1610
  return [he(e.id)];
1611
1611
  }
1612
- const O = [
1612
+ const N = [
1613
1613
  { key: "open", label: "status_open", category: "todo", order: 0 },
1614
1614
  { key: "in_progress", label: "status_in_progress", category: "in_progress", order: 1 },
1615
1615
  { key: "done", label: "status_done", category: "done", order: 2 },
1616
1616
  { key: "cancelled", label: "status_cancelled", category: "done", order: 3 }
1617
- ], ye = O.map((e) => e.key);
1617
+ ], ye = N.map((e) => e.key);
1618
1618
  function Mt(e) {
1619
- return e?.statuses?.length ? e.statuses : O;
1619
+ return e?.statuses?.length ? e.statuses : N;
1620
1620
  }
1621
1621
  function kt(e, t) {
1622
1622
  return t.find((n) => n.key === e)?.category ?? "todo";
@@ -1624,9 +1624,9 @@ function kt(e, t) {
1624
1624
  function Ci(e, t) {
1625
1625
  return t.find((n) => n.key === e);
1626
1626
  }
1627
- function Ni(e) {
1627
+ function Oi(e) {
1628
1628
  const t = Mt(e), n = e?.defaultStatusKey;
1629
- return n && t.some((r) => r.key === n) ? n : Ct(t)[0]?.key ?? O[0].key;
1629
+ return n && t.some((r) => r.key === n) ? n : Ct(t)[0]?.key ?? N[0].key;
1630
1630
  }
1631
1631
  function Ct(e) {
1632
1632
  return [...e].sort((t, n) => {
@@ -1634,14 +1634,14 @@ function Ct(e) {
1634
1634
  return r !== 0 ? r : (t.label || "").localeCompare(n.label || "");
1635
1635
  });
1636
1636
  }
1637
- function Oi(e, t) {
1637
+ function Ni(e, t) {
1638
1638
  return kt(e, t) === "done";
1639
1639
  }
1640
- function Nt(e) {
1640
+ function Ot(e) {
1641
1641
  return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 48).replace(/^-+|-+$/g, "");
1642
1642
  }
1643
1643
  function vi(e, t) {
1644
- const n = Nt(e) || "status", r = /* @__PURE__ */ new Set([...t, ...ye]);
1644
+ const n = Ot(e) || "status", r = /* @__PURE__ */ new Set([...t, ...ye]);
1645
1645
  if (!r.has(n)) return n;
1646
1646
  for (let i = 2; i < 500; i++) {
1647
1647
  const a = `${n}-${i}`;
@@ -1661,7 +1661,7 @@ function xi(e) {
1661
1661
  ye.includes(r.key) && t.push({ index: i, reason: "reserved_key", key: r.key }), n.has(r.key) && t.push({ index: i, reason: "duplicate_key", key: r.key }), n.add(r.key);
1662
1662
  }), e.some((r) => r.category === "todo" || r.category === "in_progress") || t.push({ index: -1, reason: "no_open" }), e.some((r) => r.category === "done") || t.push({ index: -1, reason: "no_done" }), t;
1663
1663
  }
1664
- const Ot = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), vt = /* @__PURE__ */ new Set([
1664
+ const Nt = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), vt = /* @__PURE__ */ new Set([
1665
1665
  "text/plain",
1666
1666
  "text/markdown",
1667
1667
  "text/csv",
@@ -1672,7 +1672,7 @@ const Ot = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "ima
1672
1672
  ]);
1673
1673
  function xt(e) {
1674
1674
  const t = (e ?? "").trim().toLowerCase().split(";")[0];
1675
- return t ? Ot.has(t) ? "image" : t === "application/pdf" ? "pdf" : vt.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
1675
+ return t ? Nt.has(t) ? "image" : t === "application/pdf" ? "pdf" : vt.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
1676
1676
  }
1677
1677
  const h = 1024 * 1024, $t = {
1678
1678
  image: 5 * h,
@@ -1727,7 +1727,7 @@ function Lt(e, t) {
1727
1727
  }
1728
1728
  return n;
1729
1729
  }
1730
- function ji(e, t) {
1730
+ function Gi(e, t) {
1731
1731
  const n = Lt(e, t);
1732
1732
  return Object.entries(n).filter(([, r]) => !r).map(([r]) => r);
1733
1733
  }
@@ -1738,7 +1738,7 @@ function Pt(e, t) {
1738
1738
  transport: t.transport ?? e.transport
1739
1739
  } : e;
1740
1740
  }
1741
- function Gi(e, t) {
1741
+ function ji(e, t) {
1742
1742
  const n = [];
1743
1743
  for (const r of e) {
1744
1744
  if (!r.enabled) continue;
@@ -1766,7 +1766,7 @@ function Hi(e, t, n) {
1766
1766
  return r;
1767
1767
  }
1768
1768
  var Ut = /* @__PURE__ */ ((e) => (e.MAILTO = "mailto", e.SIP = "sip", e.TEL = "tel", e.WEBHOOK = "webhook", e.USERNAME = "username", e.ID = "id", e.CUSTOM = "custom", e.URL = "url", e.TELEGRAM = "telegram", e.WHATSAPP = "whatsapp", e.MESSENGER = "messenger", e.INSTAGRAM = "instagram", e.VIBER = "viber", e.SMS = "sms", e.FAX = "fax", e.TEAMS = "teams", e.CALENDAR = "calendar", e))(Ut || {});
1769
- const jt = {
1769
+ const Gt = {
1770
1770
  mailto: "mail",
1771
1771
  sip: "tel",
1772
1772
  tel: "tel",
@@ -1787,10 +1787,10 @@ const jt = {
1787
1787
  id: "note",
1788
1788
  custom: "note"
1789
1789
  };
1790
- function Wi(e) {
1791
- return e ? jt[e] ?? "note" : "note";
1790
+ function Vi(e) {
1791
+ return e ? Gt[e] ?? "note" : "note";
1792
1792
  }
1793
- const Vi = "message_window", zi = "message_templates", Xi = {
1793
+ const Wi = "message_window", zi = "message_templates", Xi = {
1794
1794
  // E-mail
1795
1795
  FROM: "from",
1796
1796
  TO: "to",
@@ -1811,7 +1811,7 @@ const Vi = "message_window", zi = "message_templates", Xi = {
1811
1811
  ok: !1,
1812
1812
  code: "UNSUPPORTED",
1813
1813
  message: "Provider does not support this op"
1814
- }, Qi = "installation-id", ea = {
1814
+ }, Qi = "installation-id", ea = "notification-source", ta = (e, t) => `${e}.pref.${t}`, na = {
1815
1815
  ai: [
1816
1816
  "account.read",
1817
1817
  "account.write",
@@ -1942,25 +1942,25 @@ const Vi = "message_window", zi = "message_templates", Xi = {
1942
1942
  time: ["entry.read", "entry.write", "work-type.read", "work-type.write"],
1943
1943
  user: ["user.read", "user.write"],
1944
1944
  work: ["item.read", "item.write", "project.read", "project.write"]
1945
- }, Ae = 9e4, Gt = ["out_of_office"], be = (e) => Gt.includes(e);
1946
- function ta(e, t, n) {
1945
+ }, Ae = 9e4, jt = ["out_of_office"], be = (e) => jt.includes(e);
1946
+ function ra(e, t, n) {
1947
1947
  const r = n - e < Ae, i = t?.status && (!t.expiresAt || t.expiresAt > n) ? t : void 0;
1948
1948
  if (!i?.status) return { online: r, status: r ? "available" : "offline" };
1949
1949
  const a = i.status;
1950
1950
  return !r && !be(a) ? { online: !1, status: "offline" } : { online: r, status: a, message: i.message };
1951
1951
  }
1952
- function na(e, t) {
1952
+ function ia(e, t) {
1953
1953
  const n = t - e.lastSeenAt < Ae, r = n || be(e.status) ? e.status : "offline";
1954
1954
  return n === e.online && r === e.status ? e : { ...e, online: n, status: r };
1955
1955
  }
1956
- function ra(e, t) {
1956
+ function aa(e, t) {
1957
1957
  return e?.teamId && t.includes(e.teamId) ? { teamId: e.teamId, mustChoose: !1 } : t.length === 1 ? { teamId: t[0], mustChoose: !1 } : { teamId: void 0, mustChoose: t.length > 1 };
1958
1958
  }
1959
- function ia(e) {
1959
+ function oa(e) {
1960
1960
  return e.providerAvailable && e.allowed;
1961
1961
  }
1962
- const aa = "resources.describe", oa = "resources.search", sa = "resources.resolve";
1963
- function ca(e) {
1962
+ const sa = "resources.describe", ca = "resources.search", la = "resources.resolve";
1963
+ function ua(e) {
1964
1964
  const t = e.indexOf(":");
1965
1965
  return t === -1 ? e : e.slice(0, t);
1966
1966
  }
@@ -1969,11 +1969,11 @@ function Se(e) {
1969
1969
  const t = typeof e == "string" ? e.match(/apps\/([^/?#]+)/) : null;
1970
1970
  return t ? t[1] : null;
1971
1971
  }
1972
- function la(e) {
1972
+ function da(e) {
1973
1973
  const t = Se(e);
1974
1974
  return t ? t !== Ee : typeof e == "string" && e.startsWith("/wake");
1975
1975
  }
1976
- function ua(e) {
1976
+ function pa(e) {
1977
1977
  return typeof e != "string" || e === "" || e === "/" ? !0 : Se(e) === Ee;
1978
1978
  }
1979
1979
  function Bt(e) {
@@ -1992,14 +1992,14 @@ function Ht(e, t) {
1992
1992
  }
1993
1993
  }), i;
1994
1994
  }
1995
- function Wt(e) {
1995
+ function Vt(e) {
1996
1996
  return e.publicBasePath ?? `/apps/${e.name}`;
1997
1997
  }
1998
- function da(e) {
1998
+ function fa(e) {
1999
1999
  const t = [];
2000
2000
  for (const n of e) {
2001
2001
  if (!n?.name) continue;
2002
- const r = Wt(n);
2002
+ const r = Vt(n);
2003
2003
  for (const i of n.routes ?? []) {
2004
2004
  if (!i.public) continue;
2005
2005
  const a = i.path === "/" ? "" : i.path;
@@ -2013,7 +2013,7 @@ function da(e) {
2013
2013
  }
2014
2014
  return t;
2015
2015
  }
2016
- function Vt(e, t) {
2016
+ function Wt(e, t) {
2017
2017
  const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
2018
2018
  for (let i = 0; i < Math.min(n.length, r.length); i++) {
2019
2019
  const a = n[i].startsWith(":"), o = r[i].startsWith(":");
@@ -2025,13 +2025,13 @@ function zt(e, t) {
2025
2025
  if (typeof e != "string") return null;
2026
2026
  let n = null;
2027
2027
  for (const r of t)
2028
- Ft(r.pattern).test(e) && (!n || Vt(r.pattern, n.pattern)) && (n = r);
2028
+ Ft(r.pattern).test(e) && (!n || Wt(r.pattern, n.pattern)) && (n = r);
2029
2029
  return n ? { ...n, params: { ...n.props, ...Ht(n.pattern, e) } } : null;
2030
2030
  }
2031
- function pa(e, t) {
2031
+ function ma(e, t) {
2032
2032
  return zt(e, t) !== null;
2033
2033
  }
2034
- const fa = "sync-source", ma = "sync-target", ga = 20, Xt = {
2034
+ const ga = "sync-source", ha = "sync-target", ya = 20, Xt = {
2035
2035
  afrikaans: [
2036
2036
  "[Muziek]",
2037
2037
  "(C) TV GELDERLAND 2021",
@@ -2322,13 +2322,13 @@ function an(e, t = qt) {
2322
2322
  return { text: n.filter((o) => (o.endedAt ?? 0) >= i).map((o) => Yt(o.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
2323
2323
  }
2324
2324
  const on = 60;
2325
- function ha(e, t, n = on) {
2325
+ function Aa(e, t, n = on) {
2326
2326
  const r = new Set(e), i = [...e];
2327
2327
  for (const a of t)
2328
2328
  !a || r.has(a) || (r.add(a), i.push(a));
2329
2329
  return i.slice(-n);
2330
2330
  }
2331
- function ya(e) {
2331
+ function ba(e) {
2332
2332
  const { segments: t, now: n, state: r } = e;
2333
2333
  if (r.lastTriggerAt && n - r.lastTriggerAt < Jt)
2334
2334
  return { trigger: !1, reason: "too_soon" };
@@ -2340,7 +2340,7 @@ function ya(e) {
2340
2340
  const o = nn(i.text);
2341
2341
  return o.length ? r.lastQueryTerms?.length && rn(o, r.lastQueryTerms) < Qt ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: i.text, terms: o, segmentCount: i.segmentCount } : { trigger: !1, reason: "no_speech" };
2342
2342
  }
2343
- const Aa = "navNotice", v = {
2343
+ const Ea = "navNotice", v = {
2344
2344
  // The lower bounds are deliberately generous: service ranges (0800/0900) are
2345
2345
  // shorter than geographic numbers, and a too-strict minimum silently drops them.
2346
2346
  // An over-permissive key is harmless — it simply matches nothing.
@@ -2394,7 +2394,7 @@ function dn(e) {
2394
2394
  const r = t.indexOf("@");
2395
2395
  return r >= 0 && (t = t.slice(0, r)), t.trim();
2396
2396
  }
2397
- function ba(e) {
2397
+ function Sa(e) {
2398
2398
  if (!e) return !1;
2399
2399
  const t = e.indexOf("@");
2400
2400
  if (t <= 0) return !1;
@@ -2422,7 +2422,7 @@ function Q(e, t) {
2422
2422
  }
2423
2423
  return !o && E(i, a) ? `+${a.callingCode}${i}` : null;
2424
2424
  }
2425
- function Ea(e, t = 9) {
2425
+ function _a(e, t = 9) {
2426
2426
  const n = (e ?? "").replace(/\D/g, "");
2427
2427
  return n.length < t ? null : n.slice(-t);
2428
2428
  }
@@ -2433,7 +2433,7 @@ function _e(e) {
2433
2433
  const r = t.slice(0, n).split("+")[0], i = t.slice(n + 1);
2434
2434
  return !r || !i.includes(".") ? null : `${r}@${i}`;
2435
2435
  }
2436
- function Sa(e) {
2436
+ function Ta(e) {
2437
2437
  const t = _e(e);
2438
2438
  return t ? t.slice(t.lastIndexOf("@") + 1) : null;
2439
2439
  }
@@ -2499,16 +2499,16 @@ const mn = /* @__PURE__ */ new Set([
2499
2499
  "proximus.be",
2500
2500
  "scarlet.be"
2501
2501
  ]);
2502
- function _a(e) {
2502
+ function Ia(e) {
2503
2503
  const t = fn(e);
2504
2504
  return t ? mn.has(t) : !1;
2505
2505
  }
2506
- function Ta(e) {
2506
+ function wa(e) {
2507
2507
  if (!e) return !1;
2508
2508
  const t = e.trim().toLowerCase();
2509
2509
  return t === "tel" || t === "sms" || t === "whatsapp" || t === "fax";
2510
2510
  }
2511
- function Ia(e, t, n) {
2511
+ function Ma(e, t, n) {
2512
2512
  if (!e || !t) return null;
2513
2513
  const r = e.trim().toLowerCase();
2514
2514
  if (r === "tel" || r === "sms" || r === "whatsapp") {
@@ -2527,7 +2527,7 @@ function Ia(e, t, n) {
2527
2527
  return i ? `${r}:${i}` : null;
2528
2528
  }
2529
2529
  const gn = /(\*\*|__)(?=\S)([\s\S]*?\S)\1/g, hn = /(\*|_)(?=\S)([^*_\n]*?\S)\1/g;
2530
- function wa(e) {
2530
+ function ka(e) {
2531
2531
  if (typeof e != "string" || !e) return "";
2532
2532
  let t = e;
2533
2533
  return t = t.replace(/```[a-z]*\n?/gi, "").replace(/~~~[a-z]*\n?/gi, ""), t = t.replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1"), t = t.replace(/\[([^\]]*)\]\([^)]*\)/g, "$1"), t = t.replace(/\[([^\]]*)\]\[[^\]]*\]/g, "$1"), t = t.replace(/<((?:https?|mailto):[^>\s]+)>/gi, "$1"), t = t.split(`
@@ -2580,10 +2580,10 @@ function ie(e) {
2580
2580
  `).trim();
2581
2581
  }
2582
2582
  const En = /<\s*(html|body|div|p|table|br|span)\b/i;
2583
- function Ma(e) {
2583
+ function Ca(e) {
2584
2584
  return En.test(e);
2585
2585
  }
2586
- function ka(e) {
2586
+ function Oa(e) {
2587
2587
  if (typeof e != "string" || !e) return "";
2588
2588
  let t = e.length;
2589
2589
  for (const a of yn) {
@@ -2595,11 +2595,11 @@ function ka(e) {
2595
2595
  return r || (r = ie(re(te(e)))), bn(r) || r;
2596
2596
  }
2597
2597
  const Sn = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i, _n = /\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;
2598
- function Ca(e, t) {
2598
+ function Na(e, t) {
2599
2599
  return !!(e && Sn.test(e) || t && _n.test(t));
2600
2600
  }
2601
2601
  const Tn = 3, In = 600;
2602
- function Na(e, t) {
2602
+ function va(e, t) {
2603
2603
  return e >= Tn || t >= In;
2604
2604
  }
2605
2605
  export {
@@ -2608,19 +2608,19 @@ export {
2608
2608
  Ri as AI_ATTACHMENT_MAX_PER_TURN,
2609
2609
  $i as AI_ATTACHMENT_TURN_BUDGET,
2610
2610
  oe as AI_VENDORS,
2611
- je as ALLOWED_LINK_SCHEMES,
2612
- ea as APP_PERMISSIONS,
2611
+ Ge as ALLOWED_LINK_SCHEMES,
2612
+ na as APP_PERMISSIONS,
2613
2613
  U as ARTIFACT_MAX_BLOCKS,
2614
2614
  ar as ARTIFACT_MAX_BODY_BYTES,
2615
2615
  M as ARTIFACT_MAX_CELL_LEN,
2616
2616
  F as ARTIFACT_MAX_KPI_ITEMS,
2617
- j as ARTIFACT_MAX_LIST_ITEMS,
2617
+ G as ARTIFACT_MAX_LIST_ITEMS,
2618
2618
  B as ARTIFACT_MAX_TABLE_COLUMNS,
2619
- G as ARTIFACT_MAX_TABLE_ROWS,
2619
+ j as ARTIFACT_MAX_TABLE_ROWS,
2620
2620
  ce as ARTIFACT_MAX_TEXT_LEN,
2621
2621
  Ye as ASSIGNMENT_SCOPE_KIND,
2622
2622
  Ee as AUTH_APP_NAME,
2623
- Oe as ActivityTypeRegistry,
2623
+ Ne as ActivityTypeRegistry,
2624
2624
  Bn as BUILT_IN_ONLY,
2625
2625
  Jt as CADENCE_FLOOR_MS,
2626
2626
  Zt as CADENCE_MIN_NEW_SEGMENTS,
@@ -2629,7 +2629,7 @@ export {
2629
2629
  ei as CLASSIFY_VARS,
2630
2630
  nr as CORE_DIMENSIONS,
2631
2631
  Ut as CommunicationScheme,
2632
- jr as DEFAULT_MEMORY_BUDGET,
2632
+ Gr as DEFAULT_MEMORY_BUDGET,
2633
2633
  sn as DEFAULT_PHONE_REGION,
2634
2634
  ni as EMPTY_WORKFLOW,
2635
2635
  qi as FEATURE_FOLDER_MANAGEMENT,
@@ -2640,7 +2640,7 @@ export {
2640
2640
  Xi as InteractionParticipantRole,
2641
2641
  et as KB_FALLBACK_LOCALE,
2642
2642
  z as KB_LOCALES,
2643
- O as LOOSE_STATUSES,
2643
+ N as LOOSE_STATUSES,
2644
2644
  Cn as MAX_ACTIONS,
2645
2645
  qe as MAX_ASSIGNMENT_TURNS,
2646
2646
  wn as MAX_BLOCKS,
@@ -2655,29 +2655,30 @@ export {
2655
2655
  At as MAX_TOPIC_EXAMPLES,
2656
2656
  k as MAX_TOPIC_EXAMPLE_CHARS,
2657
2657
  Kr as MIN_MEMORY_BUDGET,
2658
- Aa as NAV_NOTICE_SLOT,
2658
+ Ea as NAV_NOTICE_SLOT,
2659
+ ea as NOTIFICATION_SOURCE_PROVIDER_GROUP,
2659
2660
  Br as ONBOARDING_SOURCE_PROVIDER_GROUP,
2660
2661
  v as PHONE_REGIONS,
2661
2662
  Ae as PRESENCE_ONLINE_WINDOW_MS,
2662
- Gt as PRESENCE_SURVIVES_OFFLINE,
2663
+ jt as PRESENCE_SURVIVES_OFFLINE,
2663
2664
  Hr as PROFILE_TOOL_DISPOSITIONS,
2664
2665
  zi as PROVIDER_FEATURE_MESSAGE_TEMPLATES,
2665
- Vi as PROVIDER_FEATURE_MESSAGE_WINDOW,
2666
+ Wi as PROVIDER_FEATURE_MESSAGE_WINDOW,
2666
2667
  mn as PUBLIC_EMAIL_DOMAINS,
2667
2668
  X as READ_STEP_TYPES,
2668
2669
  rt as RELATED_SUBJECT_KINDS,
2669
2670
  ye as RESERVED_STATUS_KEYS,
2670
- aa as RESOURCE_DESCRIBE_SERVICE,
2671
- sa as RESOURCE_RESOLVE_SERVICE,
2672
- oa as RESOURCE_SEARCH_SERVICE,
2671
+ sa as RESOURCE_DESCRIBE_SERVICE,
2672
+ la as RESOURCE_RESOLVE_SERVICE,
2673
+ ca as RESOURCE_SEARCH_SERVICE,
2673
2674
  Ar as SIGNATURE_INTENTS,
2674
2675
  ft as STEP_MAX_TOKENS_MAX,
2675
2676
  pt as STEP_MAX_TOKENS_MIN,
2676
2677
  In as SUMMARY_MIN_LAST_CHARS,
2677
2678
  Tn as SUMMARY_MIN_MESSAGES,
2678
- ga as SYNC_RUN_MAX_ERRORS,
2679
- fa as SYNC_SOURCE_PROVIDER_GROUP,
2680
- ma as SYNC_TARGET_PROVIDER_GROUP,
2679
+ ya as SYNC_RUN_MAX_ERRORS,
2680
+ ga as SYNC_SOURCE_PROVIDER_GROUP,
2681
+ ha as SYNC_TARGET_PROVIDER_GROUP,
2681
2682
  Xe as TERMINAL_ASSIGNMENT_STATUSES,
2682
2683
  mt as TERMINAL_RUN_STATUSES,
2683
2684
  Qr as TRIGGER_VARS,
@@ -2693,8 +2694,8 @@ export {
2693
2694
  yi as acceptExampleCandidate,
2694
2695
  at as actingIdentityKey,
2695
2696
  gi as activeWorkTypes,
2696
- On as activityIconOf,
2697
- jn as activityJoinUrl,
2697
+ Nn as activityIconOf,
2698
+ Gn as activityJoinUrl,
2698
2699
  Me as activitySnippet,
2699
2700
  ke as activityTextParams,
2700
2701
  Un as activityTimelineText,
@@ -2702,7 +2703,7 @@ export {
2702
2703
  d as activityTypeInfo,
2703
2704
  zr as actorKey,
2704
2705
  hi as addExampleCandidate,
2705
- na as agePresenceEntry,
2706
+ ia as agePresenceEntry,
2706
2707
  xt as aiAttachmentKind,
2707
2708
  Di as aiAttachmentRejection,
2708
2709
  K as aiBudgetLimit,
@@ -2723,31 +2724,31 @@ export {
2723
2724
  Jr as assignmentMismatch,
2724
2725
  mr as assignmentScopeKey,
2725
2726
  hr as assignmentSubject,
2726
- Gn as buildActivityPreview,
2727
- Gi as buildChannelIntents,
2727
+ jn as buildActivityPreview,
2728
+ ji as buildChannelIntents,
2728
2729
  ur as buildShareKeys,
2729
2730
  an as buildWindow,
2730
- Or as canNestUnder,
2731
+ Nr as canNestUnder,
2731
2732
  Rn as carriesText,
2732
2733
  xr as categoryLabel,
2733
2734
  kt as categoryOf,
2734
- Wi as channelKindForScheme,
2735
+ Vi as channelKindForScheme,
2735
2736
  vn as channelKindOf,
2736
2737
  ti as clampStepMaxTokens,
2737
- ka as cleanMessageText,
2738
+ Oa as cleanMessageText,
2738
2739
  yt as compareWorkTypes,
2739
2740
  yr as decideAssignmentState,
2740
- ya as decideCadence,
2741
+ ba as decideCadence,
2741
2742
  Ui as decideIncomingCall,
2742
2743
  tt as defaultLocaleOf,
2743
- Ni as defaultStatusKey,
2744
+ Oi as defaultStatusKey,
2744
2745
  Yi as defineIntent,
2745
2746
  Ze as depthOf,
2746
- ta as derivePresence,
2747
- ji as disabledIntentsFromCapabilities,
2747
+ ra as derivePresence,
2748
+ Gi as disabledIntentsFromCapabilities,
2748
2749
  li as elapsedSeconds,
2749
- Sa as emailDomain,
2750
- Ia as endpointKey,
2750
+ Ta as emailDomain,
2751
+ Ma as endpointKey,
2751
2752
  Ht as extractParams,
2752
2753
  nn as extractTerms,
2753
2754
  Fi as filterByEndpoint,
@@ -2774,74 +2775,75 @@ export {
2774
2775
  Sr as isAssigned,
2775
2776
  fr as isAssignmentTerminal,
2776
2777
  ct as isAssignmentTrigger,
2777
- Vn as isChatMessageActivity,
2778
+ Wn as isChatMessageActivity,
2778
2779
  _r as isClosed,
2779
2780
  Pn as isConnectedType,
2780
- la as isDeepLink,
2781
+ da as isDeepLink,
2781
2782
  Qe as isDescendant,
2782
- Wn as isEmailActivity,
2783
- Ma as isHtmlBody,
2783
+ Vn as isEmailActivity,
2784
+ Ca as isHtmlBody,
2784
2785
  oi as isInFlight,
2785
2786
  wr as isInteractionUnseen,
2786
- ua as isLandingPath,
2787
- Ca as isLikelyBulk,
2787
+ pa as isLandingPath,
2788
+ Na as isLikelyBulk,
2788
2789
  ae as isMessageShape,
2789
2790
  xn as isMessageType,
2790
- Vt as isMoreSpecificPattern,
2791
+ Wt as isMoreSpecificPattern,
2791
2792
  gt as isPaused,
2792
2793
  Ln as isPlaybookAuthoredType,
2793
- _a as isPublicEmailDomain,
2794
- pa as isPublicPath,
2794
+ Ia as isPublicEmailDomain,
2795
+ ma as isPublicPath,
2795
2796
  $n as isReplyableType,
2796
2797
  ai as isTerminal,
2797
- Na as isThreadLongEnough,
2798
+ va as isThreadLongEnough,
2798
2799
  Kn as isTranscriptType,
2799
- Oi as isWorkClosed,
2800
+ Ni as isWorkClosed,
2800
2801
  mi as isWorkTypeVisible,
2801
2802
  Mi as itemDossierKeys,
2802
2803
  Mt as ladderFor,
2803
2804
  Mr as linkLabel,
2804
2805
  er as listeningAllowed,
2805
- Nr as localeInstruction,
2806
+ Or as localeInstruction,
2806
2807
  Cr as localeName,
2807
2808
  vr as localesOf,
2808
- ba as looksLikeEmail,
2809
+ Sa as looksLikeEmail,
2809
2810
  Hi as matchContactToIntents,
2810
2811
  zt as matchPublicRoute,
2811
2812
  Rr as mcpCredentialScope,
2812
2813
  Dr as mcpToolPrefix,
2813
- ha as mergeShownKeys,
2814
+ Aa as mergeShownKeys,
2814
2815
  Dn as messageCountsAs,
2815
- Ta as needsPhoneRegion,
2816
+ wa as needsPhoneRegion,
2816
2817
  or as normalizeArtifactBlocks,
2817
- Nn as normalizeBlocks,
2818
+ On as normalizeBlocks,
2818
2819
  _e as normalizeEmail,
2819
2820
  g as normalizeExample,
2821
+ ta as notificationPrefKey,
2820
2822
  rn as novelty,
2821
- Wr as parseActingIdentity,
2823
+ Vr as parseActingIdentity,
2822
2824
  Ii as parseItemKey,
2823
2825
  Ft as pathToRegex,
2824
2826
  rr as periodsInRange,
2825
- Ea as phoneSuffix,
2826
- wa as plainTextFromMarkdown,
2827
+ _a as phoneSuffix,
2828
+ ka as plainTextFromMarkdown,
2827
2829
  st as playbookActor,
2828
2830
  ii as procedureOf,
2829
2831
  ki as projectDossierKeys,
2830
- Wt as publicBasePathFor,
2831
- da as publicRoutePatterns,
2832
+ Vt as publicBasePathFor,
2833
+ fa as publicRoutePatterns,
2832
2834
  C as readPath,
2833
2835
  Y as readStepError,
2834
2836
  lt as refKey,
2835
2837
  fn as registrableDomain,
2836
2838
  St as rejectExampleCandidate,
2837
- Gr as relatedByDefault,
2839
+ jr as relatedByDefault,
2838
2840
  Lt as resolveAccountCapabilities,
2839
- N as resolveActivityText,
2841
+ O as resolveActivityText,
2840
2842
  Dt as resolveChannelIntents,
2841
2843
  Je as resolveSignature,
2842
- ra as resolveWorkMode,
2843
- ca as resourceKindOf,
2844
- Vr as runActor,
2844
+ aa as resolveWorkMode,
2845
+ ua as resourceKindOf,
2846
+ Wr as runActor,
2845
2847
  ci as runInteractionId,
2846
2848
  He as sanitizeInline,
2847
2849
  Yt as sanitizeTranscript,
@@ -2851,7 +2853,7 @@ export {
2851
2853
  de as shareKeyForTeam,
2852
2854
  ue as shareKeyForUser,
2853
2855
  dr as shareKeysForViewer,
2854
- ia as shouldRunAudioPipeline,
2856
+ oa as shouldRunAudioPipeline,
2855
2857
  Ct as sortStatuses,
2856
2858
  Rt as sourceKey,
2857
2859
  Ci as statusIn,
@@ -2877,6 +2879,6 @@ export {
2877
2879
  gr as wakesAssignment,
2878
2880
  wt as workItemScopeKey,
2879
2881
  he as workProjectScopeKey,
2880
- Nt as workStatusKey,
2882
+ Ot as workStatusKey,
2881
2883
  ht as workTypeKey
2882
2884
  };