@opencxh/domain 1.217.0 → 1.221.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
@@ -1,4 +1,4 @@
1
- const Er = 10, Sr = 10, _r = 10, Tr = 5, Le = /* @__PURE__ */ new Set([
1
+ const $r = 10, Lr = 10, Pr = 10, Ur = 5, Ve = /* @__PURE__ */ new Set([
2
2
  "header",
3
3
  "section",
4
4
  "context",
@@ -8,13 +8,13 @@ const Er = 10, Sr = 10, _r = 10, Tr = 5, Le = /* @__PURE__ */ new Set([
8
8
  "actions",
9
9
  "attachments"
10
10
  ]);
11
- function w(e) {
11
+ function R(e) {
12
12
  if (typeof e == "string") return e.length > 0;
13
13
  if (!e || typeof e != "object") return !1;
14
14
  const t = e;
15
15
  return typeof t.key == "string" || typeof t.value == "string";
16
16
  }
17
- function Ir(e, t = () => {
17
+ function Kr(e, t = () => {
18
18
  }) {
19
19
  if (!Array.isArray(e)) return [];
20
20
  const n = [];
@@ -25,19 +25,19 @@ function Ir(e, t = () => {
25
25
  }
26
26
  if (!r || typeof r != "object") continue;
27
27
  const i = r;
28
- if (!Le.has(i.type)) {
28
+ if (!Ve.has(i.type)) {
29
29
  t(`unknown block type ${String(i.type)}`);
30
30
  continue;
31
31
  }
32
32
  switch (i.type) {
33
33
  case "header":
34
- if (!w(i.text)) {
34
+ if (!R(i.text)) {
35
35
  t("a header without text");
36
36
  continue;
37
37
  }
38
38
  break;
39
39
  case "context":
40
- if (!w(i.text)) {
40
+ if (!R(i.text)) {
41
41
  t("a context block without text");
42
42
  continue;
43
43
  }
@@ -59,7 +59,7 @@ function Ir(e, t = () => {
59
59
  i.items.length > 10 && (t("more than 10 list items"), i.items = i.items.slice(0, 10));
60
60
  break;
61
61
  case "actions": {
62
- const o = Array.isArray(i.elements) ? i.elements : [], a = o.filter((s) => s?.action_id && s.invoke && w(s.text));
62
+ const o = Array.isArray(i.elements) ? i.elements : [], a = o.filter((s) => s?.action_id && s.invoke && R(s.text));
63
63
  if (a.length !== o.length && t("an action without action_id, invoke or text"), a.length === 0) continue;
64
64
  a.length > 5 && t("more than 5 actions"), i.elements = a.slice(0, 5);
65
65
  break;
@@ -69,44 +69,44 @@ function Ir(e, t = () => {
69
69
  }
70
70
  return n;
71
71
  }
72
- const De = /(\*\*|__)(?=\S)([\s\S]*?\S)\1/g, Pe = /(\*|_)(?=\S)([^*_\n]*?\S)\1/g;
73
- function Ue(e) {
72
+ const ze = /(\*\*|__)(?=\S)([\s\S]*?\S)\1/g, Xe = /(\*|_)(?=\S)([^*_\n]*?\S)\1/g;
73
+ function Ye(e) {
74
74
  if (typeof e != "string" || !e) return "";
75
75
  let t = e;
76
76
  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(`
77
77
  `).map(
78
78
  (n) => n.replace(/^\s{0,3}#{1,6}\s+/, "").replace(/^\s{0,3}>\s?/, "").replace(/^\s*[-*+]\s+/, "").replace(/^\s*\d+[.)]\s+/, "").replace(/^\s*(?:[-*_]\s*){3,}$/, "")
79
79
  ).join(`
80
- `), t = t.replace(De, "$2"), t = t.replace(Pe, "$2"), t = t.replace(/~~(?=\S)([\s\S]*?\S)~~/g, "$1"), t = t.replace(/`([^`\n]+)`/g, "$1"), t.replace(/\s+/g, " ").trim();
80
+ `), t = t.replace(ze, "$2"), t = t.replace(Xe, "$2"), t = t.replace(/~~(?=\S)([\s\S]*?\S)~~/g, "$1"), t = t.replace(/`([^`\n]+)`/g, "$1"), t.replace(/\s+/g, " ").trim();
81
81
  }
82
- function Ke(e) {
82
+ function qe(e) {
83
83
  return e.replace(/<style[\s\S]*?<\/style>/gi, " ").replace(/<script[\s\S]*?<\/script>/gi, " ").replace(/<[^>]+>/g, " ").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&#39;/g, "'").replace(/\s+/g, " ").trim();
84
84
  }
85
- function b(e) {
85
+ function w(e) {
86
86
  if (!e || e < 0) return "";
87
87
  const t = Math.floor(e / 60), n = Math.floor(e % 60);
88
88
  return `${t}:${n.toString().padStart(2, "0")}`;
89
89
  }
90
- function P(e) {
90
+ function W(e) {
91
91
  return e ? ` — ${Math.floor(e / 60)}m ${e % 60}s` : "";
92
92
  }
93
- function M(e) {
93
+ function D(e) {
94
94
  return e?.split("@")?.[0] || e || "";
95
95
  }
96
- function E(e) {
96
+ function M(e) {
97
97
  return e.map((t) => t.name).join(", ");
98
98
  }
99
- function U(e) {
99
+ function V(e) {
100
100
  return e === "meeting" ? "Meeting" : e === "video" ? "Video call" : "Audio call";
101
101
  }
102
- const m = {
102
+ const A = {
103
103
  /* ---- voice ---- */
104
104
  VOICE_CALL_STARTED: {
105
105
  shape: "event",
106
106
  channelKind: "voice",
107
107
  icon: "phone",
108
108
  snippet: () => "Gesprek gestart",
109
- timeline: (e) => e.direction === "inbound" ? `Inbound call started — ${M(e.payload.from)}` : `Outbound call started — ${M(e.payload.to)}`
109
+ timeline: (e) => e.direction === "inbound" ? `Inbound call started — ${D(e.payload.from)}` : `Outbound call started — ${D(e.payload.to)}`
110
110
  },
111
111
  VOICE_CALL_ANSWERED: {
112
112
  shape: "event",
@@ -133,15 +133,15 @@ const m = {
133
133
  shape: "event",
134
134
  channelKind: "voice",
135
135
  icon: "phone",
136
- snippet: (e) => `Gesprek beëindigd${e.payload.duration ? ` (${b(e.payload.duration)})` : ""}`,
137
- timeline: (e) => `Call ended${P(e.payload.duration)}`
136
+ snippet: (e) => `Gesprek beëindigd${e.payload.duration ? ` (${w(e.payload.duration)})` : ""}`,
137
+ timeline: (e) => `Call ended${W(e.payload.duration)}`
138
138
  },
139
139
  VOICE_CALL_MISSED: {
140
140
  shape: "event",
141
141
  channelKind: "voice",
142
142
  icon: "phone",
143
143
  snippet: () => "Gemiste oproep",
144
- timeline: (e) => `Missed call — ${M(e.payload.from)}`
144
+ timeline: (e) => `Missed call — ${D(e.payload.from)}`
145
145
  },
146
146
  VOICE_CALL_FAILED: {
147
147
  shape: "event",
@@ -188,7 +188,7 @@ const m = {
188
188
  shape: "event",
189
189
  channelKind: "video",
190
190
  icon: "video",
191
- snippet: (e) => `Gesprek beëindigd${e.payload.duration ? ` (${b(e.payload.duration)})` : ""}`,
191
+ snippet: (e) => `Gesprek beëindigd${e.payload.duration ? ` (${w(e.payload.duration)})` : ""}`,
192
192
  timeline: () => "Video call ended"
193
193
  },
194
194
  VIDEO_CALL_MISSED: {
@@ -216,7 +216,7 @@ const m = {
216
216
  replyable: !0,
217
217
  carriesText: !0,
218
218
  countsAs: "inbound_message",
219
- snippet: K
219
+ snippet: z
220
220
  },
221
221
  EMAIL_SENT: {
222
222
  shape: "message",
@@ -226,7 +226,7 @@ const m = {
226
226
  replyable: !0,
227
227
  carriesText: !0,
228
228
  countsAs: "outbound_message",
229
- snippet: K
229
+ snippet: z
230
230
  },
231
231
  /* ---- chat ---- */
232
232
  CHAT_MESSAGE_SENT: {
@@ -255,9 +255,9 @@ const m = {
255
255
  shape: "event",
256
256
  channelKind: "chat",
257
257
  icon: "message-circle",
258
- snippet: (e) => `${E(e.payload.members)} toegevoegd`,
258
+ snippet: (e) => `${M(e.payload.members)} toegevoegd`,
259
259
  timeline: (e) => {
260
- const t = E(e.payload.members) || "Someone", n = e.payload.initiator?.name ? ` · added by ${e.payload.initiator.name}` : "";
260
+ const t = M(e.payload.members) || "Someone", n = e.payload.initiator?.name ? ` · added by ${e.payload.initiator.name}` : "";
261
261
  return `${t} joined the chat${n}`;
262
262
  }
263
263
  },
@@ -265,9 +265,9 @@ const m = {
265
265
  shape: "event",
266
266
  channelKind: "chat",
267
267
  icon: "message-circle",
268
- snippet: (e) => `${E(e.payload.members)} verlaten`,
268
+ snippet: (e) => `${M(e.payload.members)} verlaten`,
269
269
  timeline: (e) => {
270
- const t = E(e.payload.members) || "Someone", n = e.payload.initiator?.name ? ` · removed by ${e.payload.initiator.name}` : "";
270
+ const t = M(e.payload.members) || "Someone", n = e.payload.initiator?.name ? ` · removed by ${e.payload.initiator.name}` : "";
271
271
  return `${t} left the chat${n}`;
272
272
  }
273
273
  },
@@ -283,15 +283,15 @@ const m = {
283
283
  channelKind: "chat",
284
284
  icon: "message-circle",
285
285
  snippet: () => "Gesprek gestart",
286
- timeline: (e) => `${U(e.payload.callType)} started${e.payload.initiator ? ` by ${e.payload.initiator.name}` : ""}`,
286
+ timeline: (e) => `${V(e.payload.callType)} started${e.payload.initiator ? ` by ${e.payload.initiator.name}` : ""}`,
287
287
  joinUrl: (e) => e.payload.joinUrl
288
288
  },
289
289
  CHAT_CALL_ENDED: {
290
290
  shape: "event",
291
291
  channelKind: "chat",
292
292
  icon: "message-circle",
293
- snippet: (e) => `Gesprek beëindigd${e.payload.duration ? ` (${b(e.payload.duration)})` : ""}`,
294
- timeline: (e) => `${U(e.payload.callType)} ended${P(e.payload.duration)}`,
293
+ snippet: (e) => `Gesprek beëindigd${e.payload.duration ? ` (${w(e.payload.duration)})` : ""}`,
294
+ timeline: (e) => `${V(e.payload.callType)} ended${W(e.payload.duration)}`,
295
295
  joinUrl: (e) => e.payload.joinUrl
296
296
  },
297
297
  CHAT_EVENT: {
@@ -380,7 +380,7 @@ const m = {
380
380
  MEETING_ENDED: {
381
381
  shape: "event",
382
382
  icon: "calendar",
383
- snippet: (e) => `Vergadering beëindigd${e.payload.duration ? ` (${b(e.payload.duration)})` : ""}`,
383
+ snippet: (e) => `Vergadering beëindigd${e.payload.duration ? ` (${w(e.payload.duration)})` : ""}`,
384
384
  timeline: () => "Meeting ended"
385
385
  },
386
386
  MEETING_PARTICIPANT_JOINED: {
@@ -448,57 +448,57 @@ const m = {
448
448
  timeline: (e, t) => `Status changed by ${t}`
449
449
  }
450
450
  };
451
- function K(e) {
452
- const t = e.payload, n = Ue(t.bodyText).trim() || t.bodySnippet?.trim() || Ke(t.body ?? "");
451
+ function z(e) {
452
+ const t = e.payload, n = Ye(t.bodyText).trim() || t.bodySnippet?.trim() || qe(t.body ?? "");
453
453
  return t.subject ? `${t.subject} — ${n}` : n;
454
454
  }
455
- function p(e) {
456
- return m[e];
455
+ function h(e) {
456
+ return A[e];
457
457
  }
458
- function wr(e) {
459
- return p(e)?.icon ?? "circle";
458
+ function Br(e) {
459
+ return h(e)?.icon ?? "circle";
460
460
  }
461
- function Mr(e) {
462
- return p(e)?.channelKind;
461
+ function Hr(e) {
462
+ return h(e)?.channelKind;
463
463
  }
464
- function pe(e) {
464
+ function _e(e) {
465
465
  return e === "message" || e === "note";
466
466
  }
467
- function kr(e) {
468
- return pe(p(e)?.shape);
467
+ function jr(e) {
468
+ return _e(h(e)?.shape);
469
469
  }
470
- function Cr(e) {
471
- return p(e)?.replyable === !0;
470
+ function Gr(e) {
471
+ return h(e)?.replyable === !0;
472
472
  }
473
- function Or(e) {
474
- return p(e)?.carriesText === !0;
473
+ function Fr(e) {
474
+ return h(e)?.carriesText === !0;
475
475
  }
476
- function Ge(e) {
477
- return p(e)?.countsAs;
476
+ function Je(e) {
477
+ return h(e)?.countsAs;
478
478
  }
479
- function Nr(e) {
480
- return p(e)?.playbookAuthored === !0;
479
+ function Wr(e) {
480
+ return h(e)?.playbookAuthored === !0;
481
481
  }
482
- function vr(e) {
483
- return p(e)?.connected === !0;
482
+ function Vr(e) {
483
+ return h(e)?.connected === !0;
484
484
  }
485
- function Rr(e) {
486
- const t = p(e);
485
+ function zr(e) {
486
+ const t = h(e);
487
487
  return t?.shape === "artifact" && t?.carriesText === !0;
488
488
  }
489
- function je(e) {
490
- const t = p(e.type)?.snippet;
489
+ function Ze(e) {
490
+ const t = h(e.type)?.snippet;
491
491
  return t ? t(e) : "";
492
492
  }
493
- function $r(e, t) {
494
- const n = p(e.type)?.timeline;
493
+ function Xr(e, t) {
494
+ const n = h(e.type)?.timeline;
495
495
  return n ? n(e, t) : e.type.replace(/_/g, " ").toLowerCase();
496
496
  }
497
- function xr(e) {
498
- const t = p(e.type)?.joinUrl;
497
+ function Yr(e) {
498
+ const t = h(e.type)?.joinUrl;
499
499
  return t ? t(e) : void 0;
500
500
  }
501
- function R(e, t) {
501
+ function B(e, t) {
502
502
  let n = e;
503
503
  for (const r of t.split(".")) {
504
504
  if (n == null || typeof n != "object") return "";
@@ -506,44 +506,44 @@ function R(e, t) {
506
506
  }
507
507
  return n == null ? "" : typeof n == "string" ? n : typeof n == "number" || typeof n == "boolean" ? String(n) : "";
508
508
  }
509
- function $(e, t, n) {
509
+ function H(e, t, n) {
510
510
  if (e === void 0) return null;
511
511
  if (typeof e == "string") return e || null;
512
512
  if ("value" in e)
513
- return R(t, e.value) || null;
513
+ return B(t, e.value) || null;
514
514
  const r = {};
515
515
  for (const [o, a] of Object.entries(e.params ?? {}))
516
- r[o] = R(t, a);
516
+ r[o] = B(t, a);
517
517
  const i = n(e.key, r);
518
518
  return i === e.key ? null : i;
519
519
  }
520
- function Be(e, t) {
520
+ function Qe(e, t) {
521
521
  if (!e || typeof e == "string" || "value" in e) return null;
522
522
  const n = {};
523
523
  for (const [r, i] of Object.entries(e.params ?? {}))
524
- n[r] = R(t, i);
524
+ n[r] = B(t, i);
525
525
  return { key: e.key, params: n };
526
526
  }
527
- const G = 140;
528
- function He(e) {
527
+ const X = 140;
528
+ function et(e) {
529
529
  const t = e.trim();
530
- return t.length <= G ? t : `${t.slice(0, G - 1).trimEnd()}…`;
530
+ return t.length <= X ? t : `${t.slice(0, X - 1).trimEnd()}…`;
531
531
  }
532
- function Lr(e, t) {
533
- const n = Be(t?.text, e), r = t ? $(t.text, e, (i) => i) : null;
532
+ function qr(e, t) {
533
+ const n = Qe(t?.text, e), r = t ? H(t.text, e, (i) => i) : null;
534
534
  return {
535
535
  activityId: e.id,
536
536
  type: e.type,
537
- snippet: He(r ?? je(e)),
537
+ snippet: et(r ?? Ze(e)),
538
538
  authorName: e.author?.name ?? "",
539
539
  direction: e.direction,
540
540
  createdAt: e.createdAt ?? Date.now(),
541
541
  ...n ? { snippetKey: n.key, snippetParams: n.params } : {}
542
542
  };
543
543
  }
544
- const Fe = (e) => e;
545
- function j(e) {
546
- const t = m[e];
544
+ const tt = (e) => e;
545
+ function Y(e) {
546
+ const t = A[e];
547
547
  return {
548
548
  type: e,
549
549
  shape: t.shape,
@@ -558,7 +558,7 @@ function j(e) {
558
558
  displayNameKey: t.displayNameKey
559
559
  };
560
560
  }
561
- function B(e) {
561
+ function q(e) {
562
562
  return {
563
563
  type: e.type,
564
564
  shape: e.shape,
@@ -573,21 +573,21 @@ function B(e) {
573
573
  displayNameKey: e.displayNameKey
574
574
  };
575
575
  }
576
- class Ve {
577
- constructor(t = [], n = Fe) {
576
+ class nt {
577
+ constructor(t = [], n = tt) {
578
578
  this.translate = n;
579
579
  for (const r of t)
580
- r?.type && (r.type in m || this.declared.has(r.type) || this.declared.set(r.type, r));
580
+ r?.type && (r.type in A || this.declared.has(r.type) || this.declared.set(r.type, r));
581
581
  }
582
582
  declared = /* @__PURE__ */ new Map();
583
583
  get(t) {
584
- if (t in m) return j(t);
584
+ if (t in A) return Y(t);
585
585
  const n = this.declared.get(t);
586
- return n ? B(n) : void 0;
586
+ return n ? q(n) : void 0;
587
587
  }
588
588
  /** Everything that may be offered as a trigger, built-in and declared. */
589
589
  triggerable() {
590
- const t = Object.keys(m).filter((r) => m[r].triggerable).map(j), n = [...this.declared.values()].map(B).filter((r) => r.triggerable);
590
+ const t = Object.keys(A).filter((r) => A[r].triggerable).map(Y), n = [...this.declared.values()].map(q).filter((r) => r.triggerable);
591
591
  return [...t, ...n];
592
592
  }
593
593
  /**
@@ -596,17 +596,17 @@ class Ve {
596
596
  * the feed always showed for unknown types.
597
597
  */
598
598
  timelineText(t, n) {
599
- const r = m[t.type];
599
+ const r = A[t.type];
600
600
  if (r?.timeline) return r.timeline(t, n);
601
601
  const i = this.declared.get(t.type);
602
- return $(i?.text, t, this.translate) ?? t.type.replace(/_/g, " ").toLowerCase();
602
+ return H(i?.text, t, this.translate) ?? t.type.replace(/_/g, " ").toLowerCase();
603
603
  }
604
604
  /** The line for the inbox list. Empty when the type has nothing to show. */
605
605
  snippet(t) {
606
- const n = m[t.type];
606
+ const n = A[t.type];
607
607
  if (n?.snippet) return n.snippet(t);
608
608
  const r = this.declared.get(t.type);
609
- return $(r?.text, t, this.translate) ?? "";
609
+ return H(r?.text, t, this.translate) ?? "";
610
610
  }
611
611
  /** The descriptor as it arrived; needed to store `text` as a key. */
612
612
  descriptor(t) {
@@ -631,7 +631,7 @@ class Ve {
631
631
  * {@link ResolvedActivityType}.
632
632
  */
633
633
  isMessage(t) {
634
- return pe(this.get(t)?.shape);
634
+ return _e(this.get(t)?.shape);
635
635
  }
636
636
  /** Can a person reply to this? Notes cannot — those go nowhere. */
637
637
  isReplyable(t) {
@@ -659,23 +659,23 @@ class Ve {
659
659
  return this.translate;
660
660
  }
661
661
  }
662
- const Dr = new Ve();
663
- function Pr(e, t, n = []) {
662
+ const Jr = new nt();
663
+ function Zr(e, t, n = []) {
664
664
  const r = e.createdAt;
665
665
  if (!r) return [];
666
666
  const i = new Set(n);
667
667
  return e.author.type === "user" && e.author.id && i.add(e.author.id), Object.entries(t).filter(([o, a]) => a >= r && !i.has(o)).map(([o]) => o);
668
668
  }
669
- function We(e) {
669
+ function rt(e) {
670
670
  return e.createdAt ?? 0;
671
671
  }
672
- function Ur(e) {
672
+ function Qr(e) {
673
673
  return e.type === "EMAIL_RECEIVED" || e.type === "EMAIL_SENT";
674
674
  }
675
- function Kr(e) {
675
+ function ei(e) {
676
676
  return e.type === "CHAT_MESSAGE_SENT" || e.type === "CHAT_MESSAGE_RECEIVED";
677
677
  }
678
- const fe = [
678
+ const Te = [
679
679
  {
680
680
  id: "openai",
681
681
  attachmentKinds: ["image", "pdf"],
@@ -765,45 +765,45 @@ const fe = [
765
765
  defaultModel: "default"
766
766
  }
767
767
  ];
768
- function T(e) {
769
- return fe.find((t) => t.id === e);
768
+ function N(e) {
769
+ return Te.find((t) => t.id === e);
770
770
  }
771
- function Gr(e) {
772
- return T(e)?.label ?? e;
771
+ function ti(e) {
772
+ return N(e)?.label ?? e;
773
773
  }
774
- function jr(e, t = "gpt-5-mini") {
775
- return T(e)?.defaultModel ?? t;
774
+ function ni(e, t = "gpt-5-mini") {
775
+ return N(e)?.defaultModel ?? t;
776
776
  }
777
- function Br(e) {
778
- return fe.filter((t) => t.capabilities.includes(e));
777
+ function ri(e) {
778
+ return Te.filter((t) => t.capabilities.includes(e));
779
779
  }
780
- function Hr(e) {
781
- const t = T(e);
780
+ function ii(e) {
781
+ const t = N(e);
782
782
  return !!t && !t.baseUrl;
783
783
  }
784
- function Fr(e, t) {
785
- return t === "text" ? !0 : T(e)?.attachmentKinds?.includes(t) === !0;
784
+ function oi(e, t) {
785
+ return t === "text" ? !0 : N(e)?.attachmentKinds?.includes(t) === !0;
786
786
  }
787
- function Vr(e, t) {
787
+ function ai(e, t) {
788
788
  if (!e.enabled) return "ok";
789
- const n = H(e.hardLimitNanos), r = H(e.softLimitNanos);
789
+ const n = J(e.hardLimitNanos), r = J(e.softLimitNanos);
790
790
  return n !== void 0 && t >= n ? "hard" : r !== void 0 && t >= r ? "soft" : "ok";
791
791
  }
792
- function H(e) {
792
+ function J(e) {
793
793
  return typeof e == "number" ? e : void 0;
794
794
  }
795
- function ze(e, t = "month") {
795
+ function it(e, t = "month") {
796
796
  const n = new Date(e);
797
797
  return Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), 1);
798
798
  }
799
- function Wr(e, t = "month") {
800
- const n = new Date(ze(e, t));
799
+ function si(e, t = "month") {
800
+ const n = new Date(it(e, t));
801
801
  return `${n.getUTCFullYear()}-${String(n.getUTCMonth() + 1).padStart(2, "0")}`;
802
802
  }
803
- function zr(e) {
803
+ function ci(e) {
804
804
  return e?.listeningEnabled !== !1;
805
805
  }
806
- const Xr = [
806
+ const li = [
807
807
  { id: "agent", label: "Agent", labelSource: "user" },
808
808
  { id: "team", label: "Team", labelSource: "team" },
809
809
  { id: "inbox", label: "Inbox", labelSource: "inbox" },
@@ -813,47 +813,47 @@ const Xr = [
813
813
  { id: "handledBy", label: "Afhandelaar", labelSource: "raw" },
814
814
  { id: "time", label: "Tijd", labelSource: "raw" }
815
815
  ];
816
- function k(e) {
816
+ function $(e) {
817
817
  return e < 10 ? `0${e}` : `${e}`;
818
818
  }
819
- function Xe(e, t) {
820
- const n = new Date(e), r = `${n.getUTCFullYear()}-${k(n.getUTCMonth() + 1)}-${k(n.getUTCDate())}`;
821
- return t === "day" ? r : `${r}T${k(n.getUTCHours())}`;
819
+ function ot(e, t) {
820
+ const n = new Date(e), r = `${n.getUTCFullYear()}-${$(n.getUTCMonth() + 1)}-${$(n.getUTCDate())}`;
821
+ return t === "day" ? r : `${r}T${$(n.getUTCHours())}`;
822
822
  }
823
- function Ye(e, t) {
823
+ function at(e, t) {
824
824
  const n = new Date(e);
825
825
  return n.setUTCMinutes(0, 0, 0), t === "day" && n.setUTCHours(0), n.getTime();
826
826
  }
827
- const qe = 36e5, Je = 864e5;
828
- function Yr(e, t, n) {
829
- const r = n === "hour" ? qe : Je, i = [];
830
- for (let o = Ye(e, n); o <= t; o += r)
831
- i.push(Xe(o, n));
827
+ const st = 36e5, ct = 864e5;
828
+ function ui(e, t, n) {
829
+ const r = n === "hour" ? st : ct, i = [];
830
+ for (let o = at(e, n); o <= t; o += r)
831
+ i.push(ot(o, n));
832
832
  return i;
833
833
  }
834
- const Ze = [
834
+ const lt = [
835
835
  { id: "resource", label: "Resource", labelSource: "raw" },
836
836
  { id: "origin", label: "Herkomst", labelSource: "raw" }
837
- ], Qe = Ze.map((e) => e.id);
838
- function et(e, t) {
837
+ ], ut = lt.map((e) => e.id);
838
+ function dt(e, t) {
839
839
  return `${e}.usage.${t}`;
840
840
  }
841
- function qr(e, t) {
841
+ function di(e, t) {
842
842
  return t.map((n) => ({
843
- id: et(e, n.unit),
843
+ id: dt(e, n.unit),
844
844
  label: n.label,
845
845
  category: "Verbruik",
846
846
  valueType: n.valueType ?? "count",
847
847
  aggregation: "sum",
848
848
  supportedDimensions: [
849
849
  "provider",
850
- ...Qe,
850
+ ...ut,
851
851
  ...n.extraDimensions ?? [],
852
852
  "time"
853
853
  ]
854
854
  }));
855
855
  }
856
- const me = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), F = 200, V = 100, W = 200, z = 12, X = 4, ge = 4e3, C = 500, Jr = 256 * 1024, tt = /* @__PURE__ */ new Set([
856
+ const Ie = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), Z = 200, Q = 100, ee = 200, te = 12, ne = 4, we = 4e3, L = 500, pi = 256 * 1024, pt = /* @__PURE__ */ new Set([
857
857
  "heading",
858
858
  "paragraph",
859
859
  "list",
@@ -863,15 +863,15 @@ const me = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]
863
863
  "table",
864
864
  "kpi",
865
865
  "callout"
866
- ]), nt = ["http:", "https:", "mailto:", "tel:"], rt = /^[a-z][a-z0-9+.-]*:/i;
867
- function he(e) {
866
+ ]), ft = ["http:", "https:", "mailto:", "tel:"], mt = /^[a-z][a-z0-9+.-]*:/i;
867
+ function Me(e) {
868
868
  const t = e.trim().replace(/^<|>$/g, "");
869
869
  if (!t) return !1;
870
- const n = rt.exec(t)?.[0];
871
- return n ? nt.includes(n.toLowerCase()) : !t.startsWith("//");
870
+ const n = mt.exec(t)?.[0];
871
+ return n ? ft.includes(n.toLowerCase()) : !t.startsWith("//");
872
872
  }
873
- const it = /^[ \t]{0,3}\[([^\]]+)\]:[ \t]*(\S+).*$/gm;
874
- function ot(e) {
873
+ const gt = /^[ \t]{0,3}\[([^\]]+)\]:[ \t]*(\S+).*$/gm;
874
+ function ht(e) {
875
875
  let t = "", n = 0;
876
876
  for (; n < e.length; ) {
877
877
  const r = e[n] === "!" && e[n + 1] === "[";
@@ -879,22 +879,22 @@ function ot(e) {
879
879
  t += e[n], n += 1;
880
880
  continue;
881
881
  }
882
- const i = n + (r ? 2 : 1), o = Y(e, i, "[", "]");
882
+ const i = n + (r ? 2 : 1), o = re(e, i, "[", "]");
883
883
  if (o < 0 || e[o + 1] !== "(") {
884
884
  t += e[n], n += 1;
885
885
  continue;
886
886
  }
887
- const a = Y(e, o + 2, "(", ")");
887
+ const a = re(e, o + 2, "(", ")");
888
888
  if (a < 0) {
889
889
  t += e[n], n += 1;
890
890
  continue;
891
891
  }
892
- const s = e.slice(i, o), c = e.slice(o + 2, a).trim().split(/\s+/)[0] ?? "";
893
- t += r || !he(c) ? s : e.slice(n, a + 1), n = a + 1;
892
+ const s = e.slice(i, o), d = e.slice(o + 2, a).trim().split(/\s+/)[0] ?? "";
893
+ t += r || !Me(d) ? s : e.slice(n, a + 1), n = a + 1;
894
894
  }
895
895
  return t;
896
896
  }
897
- function Y(e, t, n, r) {
897
+ function re(e, t, n, r) {
898
898
  let i = 1;
899
899
  for (let o = t; o < e.length; o += 1) {
900
900
  if (e[o] === "\\") {
@@ -907,40 +907,40 @@ function Y(e, t, n, r) {
907
907
  }
908
908
  return -1;
909
909
  }
910
- function at(e) {
911
- return ot(e).replace(
912
- it,
913
- (t, n, r) => he(r) ? t : ""
910
+ function yt(e) {
911
+ return ht(e).replace(
912
+ gt,
913
+ (t, n, r) => Me(r) ? t : ""
914
914
  );
915
915
  }
916
- function d(e, t = ge) {
917
- return typeof e == "string" ? at(e).slice(0, t) : "";
916
+ function g(e, t = we) {
917
+ return typeof e == "string" ? yt(e).slice(0, t) : "";
918
918
  }
919
- function st(e, t = ge) {
919
+ function bt(e, t = we) {
920
920
  return typeof e == "string" ? e.slice(0, t) : "";
921
921
  }
922
- function ct(e, t = "info") {
923
- return typeof e == "string" && me.has(e) ? e : t;
922
+ function At(e, t = "info") {
923
+ return typeof e == "string" && Ie.has(e) ? e : t;
924
924
  }
925
- function Zr(e, t = () => {
925
+ function fi(e, t = () => {
926
926
  }) {
927
927
  if (!Array.isArray(e)) return [];
928
928
  const n = [];
929
929
  for (const r of e) {
930
- if (n.length >= F) {
931
- t(`more than ${F} blocks; the rest was dropped`);
930
+ if (n.length >= Z) {
931
+ t(`more than ${Z} blocks; the rest was dropped`);
932
932
  break;
933
933
  }
934
934
  if (!r || typeof r != "object") continue;
935
935
  const i = r;
936
- if (!tt.has(i.type)) {
936
+ if (!pt.has(i.type)) {
937
937
  t(`unknown block type ${String(i.type)}`);
938
938
  continue;
939
939
  }
940
940
  const o = typeof i.block_id == "string" ? { block_id: i.block_id } : {};
941
941
  switch (i.type) {
942
942
  case "heading": {
943
- const a = d(i.text);
943
+ const a = g(i.text);
944
944
  if (!a) {
945
945
  t("a heading without text");
946
946
  continue;
@@ -950,7 +950,7 @@ function Zr(e, t = () => {
950
950
  break;
951
951
  }
952
952
  case "paragraph": {
953
- const a = d(i.text);
953
+ const a = g(i.text);
954
954
  if (!a) {
955
955
  t("a paragraph without text");
956
956
  continue;
@@ -959,7 +959,7 @@ function Zr(e, t = () => {
959
959
  break;
960
960
  }
961
961
  case "quote": {
962
- const a = d(i.text);
962
+ const a = g(i.text);
963
963
  if (!a) {
964
964
  t("a quote without text");
965
965
  continue;
@@ -968,7 +968,7 @@ function Zr(e, t = () => {
968
968
  break;
969
969
  }
970
970
  case "code": {
971
- const a = st(i.text);
971
+ const a = bt(i.text);
972
972
  if (!a) {
973
973
  t("a code block without text");
974
974
  continue;
@@ -982,69 +982,69 @@ function Zr(e, t = () => {
982
982
  break;
983
983
  case "list": {
984
984
  const a = Array.isArray(i.items) ? i.items : [], s = [];
985
- for (const l of a) {
986
- if (s.length >= V) {
987
- t(`more than ${V} list items`);
985
+ for (const f of a) {
986
+ if (s.length >= Q) {
987
+ t(`more than ${Q} list items`);
988
988
  break;
989
989
  }
990
- const f = d(l?.text);
991
- if (!f) continue;
992
- const u = d(l?.lead, 200);
993
- s.push(u ? { lead: u, text: f } : { text: f });
990
+ const b = g(f?.text);
991
+ if (!b) continue;
992
+ const m = g(f?.lead, 200);
993
+ s.push(m ? { lead: m, text: b } : { text: b });
994
994
  }
995
995
  if (s.length === 0) {
996
996
  t("a list without usable items");
997
997
  continue;
998
998
  }
999
- const c = i.style === "numbered" ? "numbered" : "bulleted";
1000
- n.push({ ...o, type: "list", style: c, items: s });
999
+ const d = i.style === "numbered" ? "numbered" : "bulleted";
1000
+ n.push({ ...o, type: "list", style: d, items: s });
1001
1001
  break;
1002
1002
  }
1003
1003
  case "table": {
1004
1004
  const a = Array.isArray(i.columns) ? i.columns : [], s = [];
1005
- for (const u of a) {
1006
- if (s.length >= z) {
1007
- t(`more than ${z} table columns`);
1005
+ for (const m of a) {
1006
+ if (s.length >= te) {
1007
+ t(`more than ${te} table columns`);
1008
1008
  break;
1009
1009
  }
1010
- const A = d(u?.label, C), I = u?.align === "right" ? "right" : void 0;
1011
- s.push(I ? { label: A, align: I } : { label: A });
1010
+ const I = g(m?.label, L), x = m?.align === "right" ? "right" : void 0;
1011
+ s.push(x ? { label: I, align: x } : { label: I });
1012
1012
  }
1013
1013
  if (s.length === 0) {
1014
1014
  t("a table without columns");
1015
1015
  continue;
1016
1016
  }
1017
- const c = Array.isArray(i.rows) ? i.rows : [], l = [];
1018
- for (const u of c) {
1019
- if (l.length >= W) {
1020
- t(`more than ${W} table rows`);
1017
+ const d = Array.isArray(i.rows) ? i.rows : [], f = [];
1018
+ for (const m of d) {
1019
+ if (f.length >= ee) {
1020
+ t(`more than ${ee} table rows`);
1021
1021
  break;
1022
1022
  }
1023
- const A = Array.isArray(u) ? u : [];
1024
- l.push(s.map((I, xe) => d(A[xe], C)));
1023
+ const I = Array.isArray(m) ? m : [];
1024
+ f.push(s.map((x, We) => g(I[We], L)));
1025
1025
  }
1026
- const f = d(i.caption, C);
1026
+ const b = g(i.caption, L);
1027
1027
  n.push({
1028
1028
  ...o,
1029
1029
  type: "table",
1030
1030
  columns: s,
1031
- rows: l,
1032
- ...f ? { caption: f } : {}
1031
+ rows: f,
1032
+ ...b ? { caption: b } : {}
1033
1033
  });
1034
1034
  break;
1035
1035
  }
1036
1036
  case "kpi": {
1037
1037
  const a = Array.isArray(i.items) ? i.items : [], s = [];
1038
- for (const c of a) {
1039
- if (s.length >= X) {
1040
- t(`more than ${X} kpi items`);
1038
+ for (const d of a) {
1039
+ if (s.length >= ne) {
1040
+ t(`more than ${ne} kpi items`);
1041
1041
  break;
1042
1042
  }
1043
- const l = d(c?.value, 40), f = d(c?.label, 80);
1044
- if (!l || !f) continue;
1045
- const u = c?.tone;
1043
+ const f = g(d?.value, 40), b = g(d?.label, 80);
1044
+ if (!f || !b) continue;
1045
+ const m = d?.tone;
1046
1046
  s.push(
1047
- typeof u == "string" && me.has(u) ? { value: l, label: f, tone: u } : { value: l, label: f }
1047
+ typeof m == "string" && Ie.has(m) ? { value: f, label: b, tone: m } : { value: f, label: b }
1048
1048
  );
1049
1049
  }
1050
1050
  if (s.length === 0) {
@@ -1055,16 +1055,16 @@ function Zr(e, t = () => {
1055
1055
  break;
1056
1056
  }
1057
1057
  case "callout": {
1058
- const a = d(i.text);
1058
+ const a = g(i.text);
1059
1059
  if (!a) {
1060
1060
  t("a callout without text");
1061
1061
  continue;
1062
1062
  }
1063
- const s = d(i.title, 200);
1063
+ const s = g(i.title, 200);
1064
1064
  n.push({
1065
1065
  ...o,
1066
1066
  type: "callout",
1067
- tone: ct(i.tone),
1067
+ tone: At(i.tone),
1068
1068
  ...s ? { title: s } : {},
1069
1069
  text: a
1070
1070
  });
@@ -1074,28 +1074,28 @@ function Zr(e, t = () => {
1074
1074
  }
1075
1075
  return n;
1076
1076
  }
1077
- function Qr(e) {
1077
+ function mi(e) {
1078
1078
  return JSON.stringify(e).length;
1079
1079
  }
1080
- function ei(e) {
1080
+ function gi(e) {
1081
1081
  return {
1082
1082
  blocks: e.length,
1083
1083
  types: e.map((t) => t.type),
1084
1084
  headings: e.flatMap((t) => t.type === "heading" ? [t.text] : [])
1085
1085
  };
1086
1086
  }
1087
- function q(e) {
1087
+ function ie(e) {
1088
1088
  return e.replace(/\|/g, "\\|").replace(/\r?\n/g, " ").trim();
1089
1089
  }
1090
- function J(e, t, n) {
1090
+ function oe(e, t, n) {
1091
1091
  const r = e.map((i, o) => n?.[o] === "right" ? "---:" : "---");
1092
1092
  return [
1093
- `| ${e.map(q).join(" | ")} |`,
1093
+ `| ${e.map(ie).join(" | ")} |`,
1094
1094
  `| ${r.join(" | ")} |`,
1095
- ...t.map((i) => `| ${i.map(q).join(" | ")} |`)
1095
+ ...t.map((i) => `| ${i.map(ie).join(" | ")} |`)
1096
1096
  ];
1097
1097
  }
1098
- function lt(e) {
1098
+ function Et(e) {
1099
1099
  switch (e.type) {
1100
1100
  case "heading":
1101
1101
  return [`${"#".repeat(e.level)} ${e.text}`];
@@ -1113,7 +1113,7 @@ function lt(e) {
1113
1113
  return t.lead ? `${r} **${t.lead}** ${t.text}` : `${r} ${t.text}`;
1114
1114
  });
1115
1115
  case "table": {
1116
- const t = J(
1116
+ const t = oe(
1117
1117
  e.columns.map((n) => n.label),
1118
1118
  e.rows,
1119
1119
  e.columns.map((n) => n.align ?? "left")
@@ -1121,7 +1121,7 @@ function lt(e) {
1121
1121
  return e.caption ? [...t, "", `*${e.caption}*`] : t;
1122
1122
  }
1123
1123
  case "kpi":
1124
- return J(
1124
+ return oe(
1125
1125
  e.items.map((t) => t.value),
1126
1126
  [e.items.map((t) => t.label)]
1127
1127
  );
@@ -1129,11 +1129,11 @@ function lt(e) {
1129
1129
  return (e.title ? `**${e.title}** ${e.text}` : e.text).split(/\r?\n/).map((n) => `> ${n}`);
1130
1130
  }
1131
1131
  }
1132
- function ti(e, t) {
1132
+ function hi(e, t) {
1133
1133
  const n = [], r = e.some((i) => i.type === "heading" && i.level === 1);
1134
1134
  t && !r && n.push(`# ${t}`);
1135
1135
  for (const i of e) {
1136
- const o = lt(i);
1136
+ const o = Et(i);
1137
1137
  o.length > 0 && n.push(o.join(`
1138
1138
  `));
1139
1139
  }
@@ -1142,41 +1142,41 @@ function ti(e, t) {
1142
1142
  `)}
1143
1143
  `;
1144
1144
  }
1145
- const ye = (e) => `user:${e}`, Ae = (e) => `team:${e}`;
1146
- function ni(e) {
1145
+ const ke = (e) => `user:${e}`, Ce = (e) => `team:${e}`;
1146
+ function yi(e) {
1147
1147
  const t = /* @__PURE__ */ new Set();
1148
1148
  for (const n of e ?? [])
1149
- n?.id && (n.kind === "user" && t.add(ye(n.id)), n.kind === "team" && t.add(Ae(n.id)));
1149
+ n?.id && (n.kind === "user" && t.add(ke(n.id)), n.kind === "team" && t.add(Ce(n.id)));
1150
1150
  return [...t].sort();
1151
1151
  }
1152
- function ri(e, t) {
1153
- return [ye(e), ...t.map(Ae)];
1152
+ function bi(e, t) {
1153
+ return [ke(e), ...t.map(Ce)];
1154
1154
  }
1155
- function ii(e) {
1155
+ function Ai(e) {
1156
1156
  const t = /* @__PURE__ */ new Set();
1157
1157
  for (const n of e ?? [])
1158
1158
  n?.kind && t.add(n.kind);
1159
1159
  return [...t];
1160
1160
  }
1161
- const ut = ["done", "escalated"], oi = ["open", "waiting"];
1162
- function ai(e) {
1163
- return ut.includes(e);
1161
+ const St = ["done", "escalated"], Ei = ["open", "waiting"];
1162
+ function Si(e) {
1163
+ return St.includes(e);
1164
1164
  }
1165
- const dt = "assignment";
1166
- function si(e) {
1167
- return `${dt}:${e}`;
1165
+ const _t = "assignment";
1166
+ function _i(e) {
1167
+ return `${_t}:${e}`;
1168
1168
  }
1169
- function ci(e, t, n) {
1169
+ function Ti(e, t, n) {
1170
1170
  if (e.direction === "inbound") return !0;
1171
1171
  if (e.author?.type === "user" && e.author.id === t) return !1;
1172
1172
  const r = e.payload?.mentions;
1173
1173
  return Array.isArray(r) && r.includes(t) ? !0 : n === "reply";
1174
1174
  }
1175
- function li(e) {
1175
+ function Ii(e) {
1176
1176
  return e.subjectKind && e.subjectId ? { type: e.subjectKind, id: e.subjectId } : void 0;
1177
1177
  }
1178
- const pt = 12;
1179
- function ui(e, t, n = pt) {
1178
+ const Tt = 12;
1179
+ function wi(e, t, n = Tt) {
1180
1180
  const r = t + 1;
1181
1181
  return e ? e.kind === "done" ? { status: "done", waitingOn: null, turns: r, reason: e.note } : e.kind === "escalate" ? { status: "escalated", waitingOn: null, turns: r, reason: e.reason } : r >= n ? {
1182
1182
  status: "escalated",
@@ -1190,39 +1190,39 @@ function ui(e, t, n = pt) {
1190
1190
  reason: "de agent rondde zijn beurt af zonder te zeggen wat er moet gebeuren (wachten, afronden of overdragen)"
1191
1191
  };
1192
1192
  }
1193
- const di = /* @__PURE__ */ new Set(["mail", "message"]);
1194
- function ft(e, t) {
1193
+ const Mi = /* @__PURE__ */ new Set(["mail", "message"]);
1194
+ function It(e, t) {
1195
1195
  const n = e.settings?.signatures?.[t];
1196
1196
  return !n?.enabled || !n.body || n.body.trim() === "" ? null : n;
1197
1197
  }
1198
- function pi(e, t, n, r = "html") {
1198
+ function ki(e, t, n, r = "html") {
1199
1199
  if (!e) return n;
1200
- const i = ft(e, t);
1200
+ const i = It(e, t);
1201
1201
  return i ? `${n}${r === "text" ? `
1202
1202
 
1203
1203
  ` : t === "mail" ? "<br><br>-- <br>" : "<br><br>"}${i.body}` : n;
1204
1204
  }
1205
- function fi(e) {
1205
+ function Ci(e) {
1206
1206
  return e.endpoints ?? [];
1207
1207
  }
1208
- const mt = 36e5, gt = 864e5, g = -1 / 0, mi = (e) => e.score > g, _ = {
1208
+ const wt = 36e5, Mt = 864e5, E = -1 / 0, Oi = (e) => e.score > E, O = {
1209
1209
  urgent: 40,
1210
1210
  high: 25,
1211
1211
  normal: 10,
1212
1212
  low: 0
1213
1213
  };
1214
- function gi(e) {
1214
+ function vi(e) {
1215
1215
  return Object.fromEntries(e.map((t) => [t.resourceId, t]));
1216
1216
  }
1217
- const ht = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i, be = /\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;
1218
- function yt(e, t) {
1219
- return !!(e && ht.test(e) || t && be.test(t));
1217
+ const kt = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i, Oe = /\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;
1218
+ function Ct(e, t) {
1219
+ return !!(e && kt.test(e) || t && Oe.test(t));
1220
1220
  }
1221
- const At = 3, bt = 600;
1222
- function hi(e, t) {
1223
- return e >= At || t >= bt;
1221
+ const Ot = 3, vt = 600;
1222
+ function Ni(e, t) {
1223
+ return e >= Ot || t >= vt;
1224
1224
  }
1225
- const Et = [
1225
+ const Nt = [
1226
1226
  "list-unsubscribe",
1227
1227
  "list-unsubscribe-post",
1228
1228
  "list-id",
@@ -1232,93 +1232,93 @@ const Et = [
1232
1232
  "feedback-id",
1233
1233
  "x-mailer"
1234
1234
  ];
1235
- function yi(e) {
1235
+ function xi(e) {
1236
1236
  const t = {};
1237
1237
  for (const n of e) {
1238
1238
  const r = n.name?.toLowerCase();
1239
- r && n.value !== void 0 && Et.includes(r) && (t[r] = n.value);
1239
+ r && n.value !== void 0 && Nt.includes(r) && (t[r] = n.value);
1240
1240
  }
1241
1241
  return t;
1242
1242
  }
1243
- const St = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|notifications?|bounce|postmaster|mailer)@/i, _t = /(^|[._+-])(newsletter|nieuwsbrief|marketing|mailing)@/i;
1244
- function Ai(e) {
1243
+ const xt = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|notifications?|bounce|postmaster|mailer)@/i, Rt = /(^|[._+-])(newsletter|nieuwsbrief|marketing|mailing)@/i;
1244
+ function Ri(e) {
1245
1245
  const t = e.headers ?? {}, n = e.from?.email, r = t["auto-submitted"]?.toLowerCase();
1246
- if (r && r !== "no" || t["x-auto-response-suppress"] || n && St.test(n))
1246
+ if (r && r !== "no" || t["x-auto-response-suppress"] || n && xt.test(n))
1247
1247
  return "automated";
1248
1248
  const i = t.precedence?.toLowerCase();
1249
- if (t["list-unsubscribe"] || t["list-unsubscribe-post"] || t["list-id"] || i === "bulk" || i === "list" || e.body && be.test(e.body) || n && _t.test(n))
1249
+ if (t["list-unsubscribe"] || t["list-unsubscribe-post"] || t["list-id"] || i === "bulk" || i === "list" || e.body && Oe.test(e.body) || n && Rt.test(n))
1250
1250
  return "marketing";
1251
1251
  }
1252
- function Tt(e, t) {
1252
+ function Dt(e, t) {
1253
1253
  return e.lastActivityAt ? !(e.seenBy ?? []).includes(t) : !1;
1254
1254
  }
1255
- const It = ["open"], wt = 1e3, Mt = {
1255
+ const $t = ["open"], Lt = 1e3, Pt = {
1256
1256
  urgent: 1,
1257
1257
  high: 4,
1258
1258
  normal: 8,
1259
1259
  low: 24
1260
- }, kt = 72;
1261
- function Ct(e) {
1262
- return e.lastActivityAt ?? (e.createdAt ? new Date(We(e)).getTime() : 0);
1260
+ }, Ut = 72;
1261
+ function Kt(e) {
1262
+ return e.lastActivityAt ?? (e.createdAt ? new Date(rt(e)).getTime() : 0);
1263
1263
  }
1264
- function Ot(e, t) {
1265
- return Nt(t.remindersById?.[e.id], e, t.now);
1264
+ function Bt(e, t) {
1265
+ return Ht(t.remindersById?.[e.id], e, t.now);
1266
1266
  }
1267
- function Nt(e, t, n) {
1267
+ function Ht(e, t, n) {
1268
1268
  return !e || e.remindAt <= n ? !1 : !((t.lastActivityAt ?? 0) > e.parkedAt && t.lastActivityPreview?.direction === "inbound");
1269
1269
  }
1270
- const Ee = (e) => Ge(e) === "outbound_message", Se = (e) => It.includes(e);
1271
- function x(e, t) {
1272
- return Math.max(0, (t - Ct(e)) / mt);
1270
+ const ve = (e) => Je(e) === "outbound_message", Ne = (e) => $t.includes(e);
1271
+ function j(e, t) {
1272
+ return Math.max(0, (t - Kt(e)) / wt);
1273
1273
  }
1274
- function vt(e, t) {
1274
+ function jt(e, t) {
1275
1275
  const n = e.assignedInboxId ? t?.[e.assignedInboxId] : void 0;
1276
- return typeof n == "number" && n > 0 ? n : Mt[e.priority ?? "normal"];
1276
+ return typeof n == "number" && n > 0 ? n : Pt[e.priority ?? "normal"];
1277
1277
  }
1278
- function bi(e) {
1278
+ function Di(e) {
1279
1279
  const t = {};
1280
1280
  for (const n of e)
1281
1281
  typeof n.slaHours == "number" && n.slaHours > 0 && (t[n.id] = n.slaHours);
1282
1282
  return t;
1283
1283
  }
1284
- function Ei(e, t, n) {
1285
- return !Se(e.status) || e.firstResponseAt ? !1 : x(e, t) > vt(e, n);
1284
+ function $i(e, t, n) {
1285
+ return !Ne(e.status) || e.firstResponseAt ? !1 : j(e, t) > jt(e, n);
1286
1286
  }
1287
- function Rt(e, t) {
1287
+ function Gt(e, t) {
1288
1288
  const n = e.lastActivityPreview;
1289
- return n?.direction !== "outbound" || !Ee(n.type) ? !1 : x(e, t) < kt;
1289
+ return n?.direction !== "outbound" || !ve(n.type) ? !1 : j(e, t) < Ut;
1290
1290
  }
1291
- function Si(e, t) {
1292
- if (!Se(e.status)) return { score: g, reasons: [] };
1293
- if (e.snoozedTill && e.snoozedTill > t.now) return { score: g, reasons: [] };
1294
- if (Rt(e, t.now)) return { score: g, reasons: [] };
1295
- if (Ot(e, t)) return { score: g, reasons: [] };
1291
+ function Li(e, t) {
1292
+ if (!Ne(e.status)) return { score: E, reasons: [] };
1293
+ if (e.snoozedTill && e.snoozedTill > t.now) return { score: E, reasons: [] };
1294
+ if (Gt(e, t.now)) return { score: E, reasons: [] };
1295
+ if (Bt(e, t)) return { score: E, reasons: [] };
1296
1296
  let n = 0;
1297
1297
  const r = [], i = e.priority ?? "normal";
1298
- _[i] > 0 && (n += _[i], r.push(`priority:${i}`)), Tt(e, t.userId) && (n += 20, r.push("unseen")), e.assignedUserId && e.assignedUserId === t.userId && (n += 15, r.push("assigned-to-you"));
1299
- const o = x(e, t.now);
1298
+ O[i] > 0 && (n += O[i], r.push(`priority:${i}`)), Dt(e, t.userId) && (n += 20, r.push("unseen")), e.assignedUserId && e.assignedUserId === t.userId && (n += 15, r.push("assigned-to-you"));
1299
+ const o = j(e, t.now);
1300
1300
  if (o > 0) {
1301
- const c = Math.min(o * 2, 30);
1302
- n += c, o >= 1 && r.push(`waiting:${Math.round(o)}h`);
1301
+ const d = Math.min(o * 2, 30);
1302
+ n += d, o >= 1 && r.push(`waiting:${Math.round(o)}h`);
1303
1303
  }
1304
1304
  const a = e.lastActivityPreview;
1305
- return a?.type === "AI_ACTION_PROPOSED" && (n += 30, r.push("awaiting-approval")), a?.direction === "outbound" && Ee(a.type) && (n += 10, r.push("no-reply")), !e.firstResponseAt && e.lastActivityPreview?.direction === "inbound" && (n += 10, r.push("awaiting-reply")), (e.tags?.some((c) => c === "marketing" || c === "automated") || yt(e.remoteParty?.resource, e.lastActivityPreview?.snippet)) && (n -= wt, r.push("bulk")), { score: n, reasons: r };
1305
+ return a?.type === "AI_ACTION_PROPOSED" && (n += 30, r.push("awaiting-approval")), a?.direction === "outbound" && ve(a.type) && (n += 10, r.push("no-reply")), !e.firstResponseAt && e.lastActivityPreview?.direction === "inbound" && (n += 10, r.push("awaiting-reply")), (e.tags?.some((d) => d === "marketing" || d === "automated") || Ct(e.remoteParty?.resource, e.lastActivityPreview?.snippet)) && (n -= Lt, r.push("bulk")), { score: n, reasons: r };
1306
1306
  }
1307
- const _i = (e) => !!e.assignedUserId || !!e.assignedInboxId, Ti = (e) => e.status === "closed", Ii = (e) => ({
1307
+ const Pi = (e) => !!e.assignedUserId || !!e.assignedInboxId, Ui = (e) => e.status === "closed", Ki = (e) => ({
1308
1308
  urgent: 10,
1309
1309
  high: 5,
1310
1310
  normal: 2,
1311
1311
  low: 1
1312
- })[e.priority] || 0, wi = (e, t = 30) => e.title?.length <= t ? e.title : `${e.title.substring(0, t)}...`;
1313
- function Mi(e, t) {
1312
+ })[e.priority] || 0, Bi = (e, t = 30) => e.title?.length <= t ? e.title : `${e.title.substring(0, t)}...`;
1313
+ function Hi(e, t) {
1314
1314
  const n = e.labels ?? [];
1315
1315
  return n.find((r) => r.locale === t)?.label ?? n[0]?.label ?? e.url;
1316
1316
  }
1317
- function ki(e, t, n) {
1317
+ function ji(e, t, n) {
1318
1318
  const r = e.translations ?? [];
1319
1319
  return r.find((i) => i.locale === t) ?? (n ? r.find((i) => i.locale === n) : void 0) ?? { locale: t };
1320
1320
  }
1321
- const Z = [
1321
+ const ae = [
1322
1322
  { code: "nl", label: "Nederlands", english: "Dutch" },
1323
1323
  { code: "en", label: "English", english: "English" },
1324
1324
  { code: "de", label: "Deutsch", english: "German" },
@@ -1333,36 +1333,36 @@ const Z = [
1333
1333
  { code: "fi", label: "Suomi", english: "Finnish" },
1334
1334
  { code: "tr", label: "Türkçe", english: "Turkish" }
1335
1335
  ];
1336
- function _e(e) {
1336
+ function xe(e) {
1337
1337
  const t = (e ?? "").toLowerCase();
1338
- return Z.find((n) => n.code === t) ?? Z.find((n) => n.code === t.split("-")[0]);
1338
+ return ae.find((n) => n.code === t) ?? ae.find((n) => n.code === t.split("-")[0]);
1339
1339
  }
1340
- function Ci(e) {
1341
- return _e(e)?.label ?? e;
1340
+ function Gi(e) {
1341
+ return xe(e)?.label ?? e;
1342
1342
  }
1343
- function Oi(e) {
1344
- const t = _e(e);
1343
+ function Fi(e) {
1344
+ const t = xe(e);
1345
1345
  return t ? t.english === t.label ? `${t.english} (${t.code})` : `${t.english} — ${t.label} (${t.code})` : e;
1346
1346
  }
1347
- const Te = 3;
1348
- function $t(e, t) {
1347
+ const Re = 3;
1348
+ function Ft(e, t) {
1349
1349
  const n = /* @__PURE__ */ new Set();
1350
1350
  let r = 1, i = t.get(e)?.parentId;
1351
1351
  for (; i; ) {
1352
- if (n.has(i) || (n.add(i), r++, r > Te + 1)) return 1 / 0;
1352
+ if (n.has(i) || (n.add(i), r++, r > Re + 1)) return 1 / 0;
1353
1353
  i = t.get(i)?.parentId;
1354
1354
  }
1355
1355
  return r;
1356
1356
  }
1357
- function Ni(e, t, n) {
1357
+ function Wi(e, t, n) {
1358
1358
  if (!e) return !0;
1359
1359
  if (e === t) return !1;
1360
1360
  const r = new Map(n.map((a) => [a.id, a]));
1361
- if (!r.has(e) || t && xt(e, t, r)) return !1;
1362
- const i = $t(e, r), o = t ? Ie(t, n) : 1;
1363
- return i + o <= Te;
1361
+ if (!r.has(e) || t && Wt(e, t, r)) return !1;
1362
+ const i = Ft(e, r), o = t ? De(t, n) : 1;
1363
+ return i + o <= Re;
1364
1364
  }
1365
- function xt(e, t, n) {
1365
+ function Wt(e, t, n) {
1366
1366
  const r = /* @__PURE__ */ new Set();
1367
1367
  let i = n.get(e)?.parentId;
1368
1368
  for (; i; ) {
@@ -1372,44 +1372,44 @@ function xt(e, t, n) {
1372
1372
  }
1373
1373
  return !1;
1374
1374
  }
1375
- function Ie(e, t, n = /* @__PURE__ */ new Set()) {
1375
+ function De(e, t, n = /* @__PURE__ */ new Set()) {
1376
1376
  if (n.has(e)) return 1;
1377
1377
  n.add(e);
1378
1378
  const r = t.filter((i) => i.parentId === e);
1379
- return r.length ? 1 + Math.max(...r.map((i) => Ie(i.id, t, n))) : 1;
1379
+ return r.length ? 1 + Math.max(...r.map((i) => De(i.id, t, n))) : 1;
1380
1380
  }
1381
- const Lt = "en";
1382
- function Dt(e) {
1383
- return e.defaultLocale || e.locale || Lt;
1381
+ const Vt = "en";
1382
+ function zt(e) {
1383
+ return e.defaultLocale || e.locale || Vt;
1384
1384
  }
1385
- function vi(e) {
1385
+ function Vi(e) {
1386
1386
  const t = /* @__PURE__ */ new Set(), n = [];
1387
- for (const r of [Dt(e), ...e.locales ?? []])
1387
+ for (const r of [zt(e), ...e.locales ?? []])
1388
1388
  !r || t.has(r) || (t.add(r), n.push(r));
1389
1389
  return n;
1390
1390
  }
1391
- function Ri(e, t, n) {
1391
+ function zi(e, t, n) {
1392
1392
  const r = e.translations ?? [];
1393
1393
  return r.find((i) => i.locale === t)?.name ?? (n ? r.find((i) => i.locale === n)?.name : void 0) ?? e.name;
1394
1394
  }
1395
- const Q = ["lookup", "condition", "parallel", "for-each"];
1396
- function ee(e) {
1395
+ const se = ["lookup", "condition", "parallel", "for-each"];
1396
+ function ce(e) {
1397
1397
  for (const t of e) {
1398
- if (!Q.includes(t.type))
1399
- return `staptype "${t.type}" mag niet meelezen (alleen ${Q.join(", ")})`;
1398
+ if (!se.includes(t.type))
1399
+ return `staptype "${t.type}" mag niet meelezen (alleen ${se.join(", ")})`;
1400
1400
  if (t.type === "parallel")
1401
1401
  for (const n of t.branches ?? []) {
1402
- const r = ee(n);
1402
+ const r = ce(n);
1403
1403
  if (r) return r;
1404
1404
  }
1405
1405
  if (t.type === "for-each") {
1406
- const n = ee(t.body ?? []);
1406
+ const n = ce(t.body ?? []);
1407
1407
  if (n) return n;
1408
1408
  }
1409
1409
  }
1410
1410
  return null;
1411
1411
  }
1412
- function Pt(e, t) {
1412
+ function Xt(e, t) {
1413
1413
  switch (e.kind) {
1414
1414
  case "org":
1415
1415
  return !0;
@@ -1419,23 +1419,23 @@ function Pt(e, t) {
1419
1419
  return e.userId === t.userId;
1420
1420
  }
1421
1421
  }
1422
- function $i(e, t) {
1423
- return e.filter((n) => n.enabled && Pt(n.ownerScope, t));
1422
+ function Xi(e, t) {
1423
+ return e.filter((n) => n.enabled && Xt(n.ownerScope, t));
1424
1424
  }
1425
- function xi(e) {
1425
+ function Yi(e) {
1426
1426
  return e.credentialScope ? e.credentialScope : (e.authMode ?? "header") === "header" || e.oauth?.scope === "org" ? "shared" : "per-user";
1427
1427
  }
1428
- function Li(e) {
1428
+ function qi(e) {
1429
1429
  return `mcp__${e}__`;
1430
1430
  }
1431
- const Di = 1e3, Pi = 2e3, Ui = 500, Ki = 12e3, Gi = 4e3, Ut = ["contact", "company", "work_item"];
1432
- function ji(e) {
1431
+ const Ji = 1e3, Zi = 2e3, Qi = 500, eo = 12e3, to = 4e3, Yt = ["contact", "company", "work_item"];
1432
+ function no(e) {
1433
1433
  if (!e) return !1;
1434
1434
  const t = e.slice(0, e.indexOf(":"));
1435
- return Ut.includes(t);
1435
+ return Yt.includes(t);
1436
1436
  }
1437
- const Bi = "onboarding-source", Hi = ["support", "billing", "availability", "sales", "onboarding"], Fi = ["keep", "replace"];
1438
- function Kt(e) {
1437
+ const ro = "onboarding-source", io = ["support", "billing", "availability", "sales", "onboarding"], oo = ["keep", "replace"];
1438
+ function qt(e) {
1439
1439
  switch (e.kind) {
1440
1440
  case "user":
1441
1441
  return `user:${e.userId}`;
@@ -1445,7 +1445,7 @@ function Kt(e) {
1445
1445
  return "org";
1446
1446
  }
1447
1447
  }
1448
- function Vi(e) {
1448
+ function ao(e) {
1449
1449
  if (typeof e != "string") return;
1450
1450
  const t = e.trim();
1451
1451
  if (t === "org") return { kind: "org" };
@@ -1457,10 +1457,10 @@ function Vi(e) {
1457
1457
  if (r === "team") return { kind: "team", teamId: i };
1458
1458
  }
1459
1459
  }
1460
- function Gt(e) {
1461
- return Kt(e);
1460
+ function Jt(e) {
1461
+ return qt(e);
1462
1462
  }
1463
- function jt(e) {
1463
+ function Zt(e) {
1464
1464
  switch (e.kind) {
1465
1465
  case "personal":
1466
1466
  return { kind: "user", userId: e.userId };
@@ -1470,14 +1470,14 @@ function jt(e) {
1470
1470
  return { kind: "org" };
1471
1471
  }
1472
1472
  }
1473
- const Bt = jt;
1474
- function Wi(e) {
1475
- return e.agentId ? { kind: "user", userId: e.agentId } : Bt(e.ownerScope);
1473
+ const Qt = Zt;
1474
+ function so(e) {
1475
+ return e.agentId ? { kind: "user", userId: e.agentId } : Qt(e.ownerScope);
1476
1476
  }
1477
- function zi(e) {
1478
- return Gt(e);
1477
+ function co(e) {
1478
+ return Jt(e);
1479
1479
  }
1480
- function Xi(e, t) {
1480
+ function lo(e, t) {
1481
1481
  if (!t) return;
1482
1482
  let n = e;
1483
1483
  for (const r of t.split(".")) {
@@ -1486,24 +1486,24 @@ function Xi(e, t) {
1486
1486
  }
1487
1487
  return n;
1488
1488
  }
1489
- function Yi(e, t) {
1489
+ function uo(e, t) {
1490
1490
  return e.targets.find((n) => n.activityTypes.includes(t));
1491
1491
  }
1492
- function qi(e, t) {
1492
+ function po(e, t) {
1493
1493
  if (t)
1494
1494
  return e.targets.find((n) => n.id === t);
1495
1495
  }
1496
- function Ht(e) {
1496
+ function en(e) {
1497
1497
  return e?.kind === "assignment";
1498
1498
  }
1499
- function Ji(e) {
1499
+ function fo(e) {
1500
1500
  const { trigger: t, agentId: n, target: r, activityType: i, assigneeUserId: o, authorUserId: a } = e;
1501
- return Ht(t) ? n ? r ? r.activityTypes.includes(i) ? o ? o !== n ? "assigned to someone else" : a && a === n ? "the agent assigned this to itself, which would restart its own run" : null : `no assignee found at ${r.assigneePath}` : `activity type ${i} does not announce an assignment for ${r.id}` : `assignment target kind "${t.targetKind}" is not declared by any installed app` : "this playbook has no agent, so an assignment can never be for it" : "trigger is not an assignment trigger";
1501
+ return en(t) ? n ? r ? r.activityTypes.includes(i) ? o ? o !== n ? "assigned to someone else" : a && a === n ? "the agent assigned this to itself, which would restart its own run" : null : `no assignee found at ${r.assigneePath}` : `activity type ${i} does not announce an assignment for ${r.id}` : `assignment target kind "${t.targetKind}" is not declared by any installed app` : "this playbook has no agent, so an assignment can never be for it" : "trigger is not an assignment trigger";
1502
1502
  }
1503
- function Zi(e) {
1503
+ function mo(e) {
1504
1504
  return (e.startsWith("tool:") ? e.slice(5) : e).replace(/__/g, " · ").replace(/\./g, " · ").replace(/_/g, " ");
1505
1505
  }
1506
- const Qi = [
1506
+ const go = [
1507
1507
  { name: "text", type: "string" },
1508
1508
  { name: "subject", type: "string" },
1509
1509
  { name: "from", type: "string" },
@@ -1537,7 +1537,7 @@ const Qi = [
1537
1537
  // `buildTriggerVars` cannot fill it itself: the job does that with the catalog in hand, before
1538
1538
  // the trigger filter runs — like contactId/companyId above.
1539
1539
  { name: "assigneeUserId", type: "string" }
1540
- ], eo = {
1540
+ ], ho = {
1541
1541
  topics: [
1542
1542
  { name: "topicId", type: "string" },
1543
1543
  { name: "topic", type: "string" },
@@ -1551,78 +1551,78 @@ const Qi = [
1551
1551
  // Deliberately empty: the fields come from `ClassifyStep.fields` and so differ per step.
1552
1552
  extract: []
1553
1553
  };
1554
- function Ft(e) {
1554
+ function tn(e) {
1555
1555
  return `${e.type}:${e.id}`;
1556
1556
  }
1557
- const Vt = "interaction";
1558
- function Wt(e) {
1559
- return e?.type === Vt ? e.id : void 0;
1557
+ const nn = "interaction";
1558
+ function rn(e) {
1559
+ return e?.type === nn ? e.id : void 0;
1560
1560
  }
1561
- const zt = 64, Xt = 8e3;
1562
- function to(e) {
1561
+ const on = 64, an = 8e3;
1562
+ function yo(e) {
1563
1563
  const t = typeof e == "number" ? e : Number(String(e ?? "").trim());
1564
1564
  if (!(!Number.isFinite(t) || t <= 0))
1565
- return Math.min(Math.max(Math.round(t), zt), Xt);
1565
+ return Math.min(Math.max(Math.round(t), on), an);
1566
1566
  }
1567
- const no = { kind: "workflow", steps: [] };
1568
- function ro(e) {
1567
+ const bo = { kind: "workflow", steps: [] };
1568
+ function Ao(e) {
1569
1569
  return e?.kind === "workflow" ? e.steps : [];
1570
1570
  }
1571
- function io(e) {
1571
+ function Eo(e) {
1572
1572
  return e?.kind === "procedure" ? e.procedure : void 0;
1573
1573
  }
1574
- function Yt(e) {
1574
+ function sn(e) {
1575
1575
  const t = e?.approved ?? 0, n = t + (e?.rejected ?? 0);
1576
1576
  return { total: n, rate: n ? t / n : 0 };
1577
1577
  }
1578
- const qt = 10, Jt = 0.9;
1579
- function oo(e) {
1580
- const { total: t, rate: n } = Yt(e);
1581
- return t >= qt && n >= Jt;
1578
+ const cn = 10, ln = 0.9;
1579
+ function So(e) {
1580
+ const { total: t, rate: n } = sn(e);
1581
+ return t >= cn && n >= ln;
1582
1582
  }
1583
- const Zt = ["done", "escalated", "failed", "stopped"];
1584
- function ao(e) {
1585
- return Zt.includes(e);
1583
+ const un = ["done", "escalated", "failed", "stopped"];
1584
+ function _o(e) {
1585
+ return un.includes(e);
1586
1586
  }
1587
- function Qt(e) {
1587
+ function dn(e) {
1588
1588
  return e === "waiting";
1589
1589
  }
1590
- function so(e) {
1591
- return e === "running" || Qt(e);
1590
+ function To(e) {
1591
+ return e === "running" || dn(e);
1592
1592
  }
1593
- function we(e) {
1593
+ function $e(e) {
1594
1594
  return e.subjectKind && e.subjectId ? { type: e.subjectKind, id: e.subjectId } : void 0;
1595
1595
  }
1596
- function co(e) {
1597
- const t = we(e);
1598
- return t ? Ft(t) : void 0;
1596
+ function Io(e) {
1597
+ const t = $e(e);
1598
+ return t ? tn(t) : void 0;
1599
1599
  }
1600
- function lo(e) {
1601
- return Wt(we(e));
1600
+ function wo(e) {
1601
+ return rn($e(e));
1602
1602
  }
1603
- function uo(e, t) {
1603
+ function Mo(e, t) {
1604
1604
  const n = e.accumulatedSeconds || 0;
1605
1605
  return e.runningSince ? n + Math.max(0, Math.floor((t - e.runningSince) / 1e3)) : n;
1606
1606
  }
1607
- function po(e, t) {
1607
+ function ko(e, t) {
1608
1608
  const n = Math.max(1, Math.ceil(Math.max(0, e) / 60));
1609
1609
  if (!t || t === "exact") return n * 60;
1610
1610
  const r = Number(t);
1611
1611
  return !Number.isFinite(r) || r <= 0 ? n * 60 : Math.ceil(n / r) * r * 60;
1612
1612
  }
1613
- function fo(e) {
1613
+ function Co(e) {
1614
1614
  const t = Math.max(0, Math.round(e / 60));
1615
1615
  return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
1616
1616
  }
1617
- function mo(e) {
1617
+ function Oo(e) {
1618
1618
  const t = Math.max(0, Math.floor(e)), n = (o) => String(o).padStart(2, "0"), r = Math.floor(t / 60) % 60, i = Math.floor(t / 3600);
1619
1619
  return i > 0 ? `${i}:${n(r)}:${n(t % 60)}` : `${n(r)}:${n(t % 60)}`;
1620
1620
  }
1621
- function en(e) {
1621
+ function pn(e) {
1622
1622
  return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 48).replace(/^-+|-+$/g, "");
1623
1623
  }
1624
- function go(e, t) {
1625
- const n = en(e) || "werksoort", r = new Set(t);
1624
+ function vo(e, t) {
1625
+ const n = pn(e) || "werksoort", r = new Set(t);
1626
1626
  if (!r.has(n)) return n;
1627
1627
  for (let i = 2; i < 500; i++) {
1628
1628
  const o = `${n}-${i}`;
@@ -1630,93 +1630,93 @@ function go(e, t) {
1630
1630
  }
1631
1631
  return `${n}-${r.size + 1}`;
1632
1632
  }
1633
- function ho(e, t) {
1633
+ function No(e, t) {
1634
1634
  const n = e.ownerScope;
1635
1635
  return !n || n.kind === "org" ? !0 : t.includes(n.teamId);
1636
1636
  }
1637
- function yo(e) {
1638
- return e.filter((t) => !t.archived).sort(tn);
1637
+ function xo(e) {
1638
+ return e.filter((t) => !t.archived).sort(fn);
1639
1639
  }
1640
- function tn(e, t) {
1640
+ function fn(e, t) {
1641
1641
  const n = (e.order ?? 0) - (t.order ?? 0);
1642
1642
  return n !== 0 ? n : (e.label || "").localeCompare(t.label || "");
1643
1643
  }
1644
- const nn = 20, rn = 20, O = 300;
1645
- function h(e) {
1644
+ const mn = 20, gn = 20, P = 300;
1645
+ function S(e) {
1646
1646
  return e.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu, " ").replace(/\s+/g, " ").trim();
1647
1647
  }
1648
- function on(e) {
1648
+ function hn(e) {
1649
1649
  const t = e.replace(/\s+/g, " ").trim();
1650
- if (t.length <= O) return t;
1651
- const n = t.slice(0, O), r = Math.max(n.lastIndexOf(". "), n.lastIndexOf("! "), n.lastIndexOf("? "));
1652
- return r > O * 0.6 ? n.slice(0, r + 1) : `${n.trimEnd()}…`;
1653
- }
1654
- function Ao(e, t) {
1655
- const n = on(t.text), r = h(n);
1656
- if (!r || (e.examples ?? []).some((a) => h(a) === r)) return null;
1657
- const i = e.exampleCandidates ?? [], o = i.findIndex((a) => h(a.text) === r);
1650
+ if (t.length <= P) return t;
1651
+ const n = t.slice(0, P), r = Math.max(n.lastIndexOf(". "), n.lastIndexOf("! "), n.lastIndexOf("? "));
1652
+ return r > P * 0.6 ? n.slice(0, r + 1) : `${n.trimEnd()}…`;
1653
+ }
1654
+ function Ro(e, t) {
1655
+ const n = hn(t.text), r = S(n);
1656
+ if (!r || (e.examples ?? []).some((a) => S(a) === r)) return null;
1657
+ const i = e.exampleCandidates ?? [], o = i.findIndex((a) => S(a.text) === r);
1658
1658
  if (o >= 0) {
1659
1659
  if (i[o].corrected || !t.corrected) return null;
1660
1660
  const a = [...i];
1661
- return a[o] = { ...a[o], corrected: !0, addedAt: t.addedAt }, te(a);
1661
+ return a[o] = { ...a[o], corrected: !0, addedAt: t.addedAt }, le(a);
1662
1662
  }
1663
- return te([{ ...t, text: n }, ...i]).slice(0, rn);
1663
+ return le([{ ...t, text: n }, ...i]).slice(0, gn);
1664
1664
  }
1665
- function te(e) {
1665
+ function le(e) {
1666
1666
  return [...e].sort(
1667
1667
  (t, n) => Number(n.corrected) - Number(t.corrected) || n.addedAt - t.addedAt
1668
1668
  );
1669
1669
  }
1670
- function bo(e, t) {
1671
- const n = h(t), r = (e.examples ?? []).filter((o) => o.trim());
1672
- return { examples: r.some((o) => h(o) === n) ? r : [...r, t].slice(-nn), exampleCandidates: an(e, t) };
1670
+ function Do(e, t) {
1671
+ const n = S(t), r = (e.examples ?? []).filter((o) => o.trim());
1672
+ return { examples: r.some((o) => S(o) === n) ? r : [...r, t].slice(-mn), exampleCandidates: yn(e, t) };
1673
1673
  }
1674
- function an(e, t) {
1675
- const n = h(t);
1676
- return (e.exampleCandidates ?? []).filter((r) => h(r.text) !== n);
1674
+ function yn(e, t) {
1675
+ const n = S(t);
1676
+ return (e.exampleCandidates ?? []).filter((r) => S(r.text) !== n);
1677
1677
  }
1678
- function sn(e, t) {
1678
+ function bn(e, t) {
1679
1679
  const n = e.ownerScope;
1680
1680
  return n ? n.kind === "org" ? !0 : n.kind === "team" ? !!t && n.teamId === t : !1 : !1;
1681
1681
  }
1682
- function Eo(e, t) {
1683
- return e.filter((n) => sn(n, t));
1682
+ function $o(e, t) {
1683
+ return e.filter((n) => bn(n, t));
1684
1684
  }
1685
- function So(e) {
1685
+ function Lo(e) {
1686
1686
  return e.type === "agent";
1687
1687
  }
1688
- const _o = "WORK_COMMENT_ADDED", To = "WORK_ITEM_ASSIGNED", Io = "WORK_ITEM_STATUS_CHANGED";
1689
- function cn(e, t) {
1688
+ const Po = "WORK_COMMENT_ADDED", Uo = "WORK_ITEM_ASSIGNED", Ko = "WORK_ITEM_STATUS_CHANGED";
1689
+ function An(e, t) {
1690
1690
  const n = (r) => {
1691
1691
  const i = new Date(r);
1692
1692
  return i.setHours(0, 0, 0, 0), i.getTime();
1693
1693
  };
1694
- return Math.round((n(e) - n(t)) / gt);
1694
+ return Math.round((n(e) - n(t)) / Mt);
1695
1695
  }
1696
- function wo(e, t) {
1697
- if (e.closedAt != null) return { score: g, reasons: [] };
1696
+ function Bo(e, t) {
1697
+ if (e.closedAt != null) return { score: E, reasons: [] };
1698
1698
  const n = t.remindersById?.[e.id];
1699
- if (n && n.remindAt > t.now) return { score: g, reasons: [] };
1699
+ if (n && n.remindAt > t.now) return { score: E, reasons: [] };
1700
1700
  let r = 0;
1701
1701
  const i = [], o = e.priority ?? "normal";
1702
- if (_[o] > 0 && (r += _[o], i.push(`priority:${o}`)), typeof e.dueDate == "number") {
1703
- const a = cn(e.dueDate, t.now);
1702
+ if (O[o] > 0 && (r += O[o], i.push(`priority:${o}`)), typeof e.dueDate == "number") {
1703
+ const a = An(e.dueDate, t.now);
1704
1704
  a < 0 ? (r += 35, i.push("overdue")) : a === 0 && (r += 20, i.push("due-today"));
1705
1705
  }
1706
1706
  return e.source?.initiator === "system" && e.source.systemReason && (r += 15, i.push(`auto:${e.source.systemReason}`)), { score: r, reasons: i };
1707
1707
  }
1708
- const ln = "work_item", un = "work_project";
1709
- function dn(e) {
1710
- return `${ln}:${e}`;
1708
+ const En = "work_item", Sn = "work_project";
1709
+ function _n(e) {
1710
+ return `${En}:${e}`;
1711
1711
  }
1712
- function Me(e) {
1713
- return `${un}:${e}`;
1712
+ function Le(e) {
1713
+ return `${Sn}:${e}`;
1714
1714
  }
1715
- function Mo(e, t, n) {
1715
+ function Ho(e, t, n) {
1716
1716
  const r = `${e}-${t}`;
1717
1717
  return n ? `${r}-${n}` : r;
1718
1718
  }
1719
- function ko(e) {
1719
+ function jo(e) {
1720
1720
  const t = /^([A-Za-z0-9]{2,8})-(\d+)(?:-(\d+))?$/.exec((e || "").trim());
1721
1721
  return t ? {
1722
1722
  projectKey: t[1].toUpperCase(),
@@ -1724,52 +1724,52 @@ function ko(e) {
1724
1724
  ...t[3] ? { subSequence: Number(t[3]) } : {}
1725
1725
  } : null;
1726
1726
  }
1727
- function Co(e) {
1727
+ function Go(e) {
1728
1728
  return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toUpperCase().replace(/[^A-Z0-9]/g, "").slice(0, 3) || "PRJ";
1729
1729
  }
1730
- function Oo(e, t = 25) {
1731
- const n = /* @__PURE__ */ new Set([dn(e.id)]);
1732
- e.projectId && n.add(Me(e.projectId));
1730
+ function Fo(e, t = 25) {
1731
+ const n = /* @__PURE__ */ new Set([_n(e.id)]);
1732
+ e.projectId && n.add(Le(e.projectId));
1733
1733
  for (const r of e.ancestorKeys ?? []) n.add(r);
1734
1734
  for (const r of e.partyKeys ?? []) n.add(r);
1735
1735
  return Array.from(n).slice(0, t);
1736
1736
  }
1737
- function No(e) {
1738
- return [Me(e.id)];
1737
+ function Wo(e) {
1738
+ return [Le(e.id)];
1739
1739
  }
1740
- const L = [
1740
+ const G = [
1741
1741
  { key: "open", label: "status_open", category: "todo", order: 0 },
1742
1742
  { key: "in_progress", label: "status_in_progress", category: "in_progress", order: 1 },
1743
1743
  { key: "done", label: "status_done", category: "done", order: 2 },
1744
1744
  { key: "cancelled", label: "status_cancelled", category: "done", order: 3 }
1745
- ], ke = L.map((e) => e.key);
1746
- function pn(e) {
1747
- return e?.statuses?.length ? e.statuses : L;
1745
+ ], Pe = G.map((e) => e.key);
1746
+ function Tn(e) {
1747
+ return e?.statuses?.length ? e.statuses : G;
1748
1748
  }
1749
- function fn(e, t) {
1749
+ function In(e, t) {
1750
1750
  return t.find((n) => n.key === e)?.category ?? "todo";
1751
1751
  }
1752
- function vo(e, t) {
1752
+ function Vo(e, t) {
1753
1753
  return t.find((n) => n.key === e);
1754
1754
  }
1755
- function Ro(e) {
1756
- const t = pn(e), n = e?.defaultStatusKey;
1757
- return n && t.some((r) => r.key === n) ? n : mn(t)[0]?.key ?? L[0].key;
1755
+ function zo(e) {
1756
+ const t = Tn(e), n = e?.defaultStatusKey;
1757
+ return n && t.some((r) => r.key === n) ? n : wn(t)[0]?.key ?? G[0].key;
1758
1758
  }
1759
- function mn(e) {
1759
+ function wn(e) {
1760
1760
  return [...e].sort((t, n) => {
1761
1761
  const r = (t.order ?? 0) - (n.order ?? 0);
1762
1762
  return r !== 0 ? r : (t.label || "").localeCompare(n.label || "");
1763
1763
  });
1764
1764
  }
1765
- function $o(e, t) {
1766
- return fn(e, t) === "done";
1765
+ function Xo(e, t) {
1766
+ return In(e, t) === "done";
1767
1767
  }
1768
- function gn(e) {
1768
+ function Mn(e) {
1769
1769
  return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 48).replace(/^-+|-+$/g, "");
1770
1770
  }
1771
- function xo(e, t) {
1772
- const n = gn(e) || "status", r = /* @__PURE__ */ new Set([...t, ...ke]);
1771
+ function Yo(e, t) {
1772
+ const n = Mn(e) || "status", r = /* @__PURE__ */ new Set([...t, ...Pe]);
1773
1773
  if (!r.has(n)) return n;
1774
1774
  for (let i = 2; i < 500; i++) {
1775
1775
  const o = `${n}-${i}`;
@@ -1777,7 +1777,7 @@ function xo(e, t) {
1777
1777
  }
1778
1778
  return `${n}-${r.size + 1}`;
1779
1779
  }
1780
- function Lo(e) {
1780
+ function qo(e) {
1781
1781
  const t = [];
1782
1782
  if (!e.length) return [{ index: -1, reason: "empty" }];
1783
1783
  const n = /* @__PURE__ */ new Set();
@@ -1786,10 +1786,10 @@ function Lo(e) {
1786
1786
  t.push({ index: i, reason: "missing_key" });
1787
1787
  return;
1788
1788
  }
1789
- ke.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);
1789
+ Pe.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);
1790
1790
  }), 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;
1791
1791
  }
1792
- const hn = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), yn = /* @__PURE__ */ new Set([
1792
+ const kn = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), Cn = /* @__PURE__ */ new Set([
1793
1793
  "text/plain",
1794
1794
  "text/markdown",
1795
1795
  "text/csv",
@@ -1798,67 +1798,67 @@ const hn = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "ima
1798
1798
  "application/xml",
1799
1799
  "text/xml"
1800
1800
  ]);
1801
- function An(e) {
1801
+ function On(e) {
1802
1802
  const t = (e ?? "").trim().toLowerCase().split(";")[0];
1803
- return t ? hn.has(t) ? "image" : t === "application/pdf" ? "pdf" : yn.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
1804
- }
1805
- const y = 1024 * 1024, bn = {
1806
- image: 5 * y,
1807
- pdf: 20 * y,
1808
- text: 1 * y,
1809
- audio: 20 * y
1810
- }, Do = 25 * y, Po = 5;
1811
- function Uo(e, t) {
1812
- const n = An(e);
1813
- return n === "unsupported" ? "unsupported" : t > bn[n] ? "too-large" : null;
1814
- }
1815
- function Ko(e) {
1803
+ return t ? kn.has(t) ? "image" : t === "application/pdf" ? "pdf" : Cn.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
1804
+ }
1805
+ const _ = 1024 * 1024, vn = {
1806
+ image: 5 * _,
1807
+ pdf: 20 * _,
1808
+ text: 1 * _,
1809
+ audio: 20 * _
1810
+ }, Jo = 25 * _, Zo = 5;
1811
+ function Qo(e, t) {
1812
+ const n = On(e);
1813
+ return n === "unsupported" ? "unsupported" : t > vn[n] ? "too-large" : null;
1814
+ }
1815
+ function ea(e) {
1816
1816
  return e.access !== "read" && e.effect !== "internal";
1817
1817
  }
1818
- function En(e) {
1818
+ function Nn(e) {
1819
1819
  return `${e.kind}:${e.id || e.url || e.title}`;
1820
1820
  }
1821
- function Go(e, t = []) {
1821
+ function ta(e, t = []) {
1822
1822
  const n = new Set(t), r = [], i = [];
1823
1823
  for (const o of e) {
1824
- const a = En(o);
1824
+ const a = Nn(o);
1825
1825
  n.has(a) || (n.add(a), r.push(o), i.push(a));
1826
1826
  }
1827
1827
  return { sources: r, keys: i };
1828
1828
  }
1829
- const jo = "assist-source", Bo = ["blocking", "due", "open"];
1830
- function Ho(e, t) {
1829
+ const na = "assist-source", ra = ["blocking", "due", "open"];
1830
+ function ia(e, t) {
1831
1831
  const [n, r] = (e.subjectKey ?? "").split(":");
1832
1832
  return n === t && r ? r : void 0;
1833
1833
  }
1834
- const ne = { blocking: 0, due: 1, open: 2 };
1835
- function Fo(e, t) {
1836
- return ne[e.band ?? "open"] - ne[t.band ?? "open"] || (t.priority ?? 0) - (e.priority ?? 0) || e.id.localeCompare(t.id);
1834
+ const ue = { blocking: 0, due: 1, open: 2 };
1835
+ function oa(e, t) {
1836
+ return ue[e.band ?? "open"] - ue[t.band ?? "open"] || (t.priority ?? 0) - (e.priority ?? 0) || e.id.localeCompare(t.id);
1837
1837
  }
1838
- function Vo(e) {
1838
+ function aa(e) {
1839
1839
  return e.sessions.filter(
1840
1840
  (t) => t.id !== e.exceptSessionId && t.state === "connected" && e.canHold(t.providerId)
1841
1841
  );
1842
1842
  }
1843
- function Wo(e) {
1843
+ function sa(e) {
1844
1844
  return e.sessions.filter(
1845
1845
  (t) => t.id !== e.exceptSessionId && t.state === "connected" && !e.canHold(t.providerId)
1846
1846
  );
1847
1847
  }
1848
- function zo(e) {
1848
+ function ca(e) {
1849
1849
  return e.sessions.some(
1850
1850
  (n) => n.id !== e.exceptSessionId && (n.state === "connected" || n.state === "on_hold")
1851
1851
  ) ? { admit: !1, reason: "busy" } : { admit: !0 };
1852
1852
  }
1853
- function Sn(e, t) {
1854
- const n = new Set(e.disabledIntents ?? []), r = e.intentOverrides ?? {}, i = t.intents.filter((a) => !n.has(a.intent)).map((a) => Tn(a, r[a.intent]));
1853
+ function xn(e, t) {
1854
+ const n = new Set(e.disabledIntents ?? []), r = e.intentOverrides ?? {}, i = t.intents.filter((a) => !n.has(a.intent)).map((a) => Dn(a, r[a.intent]));
1855
1855
  if (!e.extraIntents || e.extraIntents.length === 0) return i;
1856
1856
  const o = new Set(i.map((a) => a.intent));
1857
1857
  for (const a of e.extraIntents)
1858
1858
  o.has(a.intent) || (i.push(a), o.add(a.intent));
1859
1859
  return i;
1860
1860
  }
1861
- function _n(e, t) {
1861
+ function Rn(e, t) {
1862
1862
  const n = {};
1863
1863
  for (const r of e.intents) {
1864
1864
  if (!r.togglable) continue;
@@ -1867,46 +1867,46 @@ function _n(e, t) {
1867
1867
  }
1868
1868
  return n;
1869
1869
  }
1870
- function Xo(e, t) {
1871
- const n = _n(e, t);
1870
+ function la(e, t) {
1871
+ const n = Rn(e, t);
1872
1872
  return Object.entries(n).filter(([, r]) => !r).map(([r]) => r);
1873
1873
  }
1874
- function Tn(e, t) {
1874
+ function Dn(e, t) {
1875
1875
  return t ? {
1876
1876
  intent: t.intent ?? e.intent,
1877
1877
  targetSchemes: t.targetSchemes ?? e.targetSchemes,
1878
1878
  transport: t.transport ?? e.transport
1879
1879
  } : e;
1880
1880
  }
1881
- function Yo(e, t) {
1881
+ function ua(e, t) {
1882
1882
  const n = [];
1883
1883
  for (const r of e) {
1884
1884
  if (!r.enabled) continue;
1885
1885
  const i = t[r.providerId];
1886
1886
  if (i)
1887
- for (const o of Sn(r, i))
1887
+ for (const o of xn(r, i))
1888
1888
  n.push({ channel: r, description: i, capability: o });
1889
1889
  }
1890
1890
  return n;
1891
1891
  }
1892
- function qo(e, t) {
1892
+ function da(e, t) {
1893
1893
  return t.filter((n) => n.capability.intent === e);
1894
1894
  }
1895
- function In(e, t) {
1895
+ function $n(e, t) {
1896
1896
  return t.filter((n) => n.capability.targetSchemes.includes(e));
1897
1897
  }
1898
- function Jo(e, t) {
1899
- return In(e.scheme, t);
1898
+ function pa(e, t) {
1899
+ return $n(e.scheme, t);
1900
1900
  }
1901
- function Zo(e, t, n) {
1901
+ function fa(e, t, n) {
1902
1902
  const r = [];
1903
1903
  for (const i of e)
1904
1904
  for (const o of n)
1905
1905
  o.capability.intent === t && o.capability.targetSchemes.includes(i.scheme) && r.push({ channelIntent: o, endpoint: i });
1906
1906
  return r;
1907
1907
  }
1908
- var wn = /* @__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))(wn || {});
1909
- const Mn = {
1908
+ var Ln = /* @__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))(Ln || {});
1909
+ const Pn = {
1910
1910
  mailto: "mail",
1911
1911
  sip: "tel",
1912
1912
  tel: "tel",
@@ -1927,10 +1927,10 @@ const Mn = {
1927
1927
  id: "note",
1928
1928
  custom: "note"
1929
1929
  };
1930
- function Qo(e) {
1931
- return e ? Mn[e] ?? "note" : "note";
1930
+ function ma(e) {
1931
+ return e ? Pn[e] ?? "note" : "note";
1932
1932
  }
1933
- const ea = "message_window", ta = "message_templates", na = {
1933
+ const ga = "message_window", ha = "message_templates", ya = {
1934
1934
  // E-mail
1935
1935
  FROM: "from",
1936
1936
  TO: "to",
@@ -1947,19 +1947,360 @@ const ea = "message_window", ta = "message_templates", na = {
1947
1947
  // Voice/conference
1948
1948
  HOST: "host",
1949
1949
  PARTICIPANT: "participant"
1950
- }, ra = (e, t) => ({ intent: e, ...t }), ia = "folder_management", oa = "remote_search", aa = {
1950
+ }, ba = (e, t) => ({ intent: e, ...t }), Aa = "folder_management", Ea = "remote_search", Sa = {
1951
1951
  ok: !1,
1952
1952
  code: "UNSUPPORTED",
1953
1953
  message: "Provider does not support this op"
1954
- }, sa = "context.collect", ca = "installation-id";
1955
- function la(e) {
1954
+ }, _a = "context.collect", u = (e) => ({ type: "string", description: e }), l = (e) => ({ type: "number", description: e }), k = (e) => ({ type: "boolean", description: e }), y = u("Sheet name. Omit for the sheet the user is looking at."), de = u("Slide id, as `inspect` reports it.");
1955
+ function c(e, t, n, r, i, o) {
1956
+ return {
1957
+ op: e,
1958
+ kinds: t,
1959
+ summary: n,
1960
+ parameters: { type: "object", properties: r, required: i },
1961
+ undoable: o.undoable,
1962
+ visible: o.visible
1963
+ };
1964
+ }
1965
+ const T = { undoable: !1, visible: !0 }, p = { undoable: !0, visible: !0 }, pe = { undoable: !1, visible: !0 }, v = { undoable: !1, visible: !1 }, Un = [
1966
+ c(
1967
+ "pdf.goToPage",
1968
+ ["pdf"],
1969
+ "Scroll the viewer to a page.",
1970
+ { page: l("1-based page number.") },
1971
+ ["page"],
1972
+ T
1973
+ ),
1974
+ c(
1975
+ "pdf.search",
1976
+ ["pdf"],
1977
+ "Search the document and highlight the matches, as the find bar does.",
1978
+ { query: u("Text to find."), next: k("Jump to the next match instead of the first.") },
1979
+ ["query"],
1980
+ T
1981
+ ),
1982
+ c(
1983
+ "pdf.setTool",
1984
+ ["pdf"],
1985
+ "Select a markup tool for the user, so their next click draws it.",
1986
+ {
1987
+ tool: {
1988
+ type: "string",
1989
+ enum: ["highlight", "text", "draw", "image", "signature", "none"],
1990
+ description: "Which tool to arm. `none` puts the tool row back to reading."
1991
+ }
1992
+ },
1993
+ ["tool"],
1994
+ T
1995
+ ),
1996
+ c(
1997
+ "pdf.fillField",
1998
+ ["pdf"],
1999
+ "Fill one form field of a fillable PDF.",
2000
+ {
2001
+ field: u("Field name, exactly as `inspect` reports it under `fields`."),
2002
+ value: {
2003
+ type: ["string", "boolean"],
2004
+ description: "Text for a text field, true/false for a checkbox or radio."
2005
+ }
2006
+ },
2007
+ ["field", "value"],
2008
+ p
2009
+ ),
2010
+ c(
2011
+ "pdf.reorderPages",
2012
+ ["pdf"],
2013
+ "Put the pages in a different order. Pages left out are deleted.",
2014
+ {
2015
+ order: {
2016
+ type: "array",
2017
+ items: { type: "number" },
2018
+ description: "1-based source page numbers, in the order they should end up in."
2019
+ }
2020
+ },
2021
+ ["order"],
2022
+ pe
2023
+ ),
2024
+ c(
2025
+ "pdf.deletePages",
2026
+ ["pdf"],
2027
+ "Remove pages, keeping the rest in order.",
2028
+ { pages: { type: "array", items: { type: "number" }, description: "1-based page numbers." } },
2029
+ ["pages"],
2030
+ pe
2031
+ ),
2032
+ c(
2033
+ "pdf.addNote",
2034
+ ["pdf"],
2035
+ "Place a text note on a page. Written on save; not visible before that.",
2036
+ {
2037
+ page: l("1-based page number."),
2038
+ text: u("The note's text."),
2039
+ left: l("Distance from the left edge, in PDF points (72 per inch)."),
2040
+ top: l("Distance from the top edge, in PDF points."),
2041
+ width: l("Box width in points. Omit for a sensible default."),
2042
+ height: l("Box height in points. Omit for a sensible default."),
2043
+ fontSize: l("Font size in points. Omit for 12.")
2044
+ },
2045
+ ["page", "text", "left", "top"],
2046
+ v
2047
+ ),
2048
+ c(
2049
+ "pdf.highlightText",
2050
+ ["pdf"],
2051
+ "Highlight a phrase on a page. Written on save; not visible before that.",
2052
+ {
2053
+ page: l("1-based page number."),
2054
+ text: u("The exact phrase to highlight, as it appears in the page's text."),
2055
+ occurrence: l("Which occurrence on that page, 1-based. Omit for the first.")
2056
+ },
2057
+ ["page", "text"],
2058
+ v
2059
+ )
2060
+ ], Kn = [
2061
+ c(
2062
+ "sheet.setValues",
2063
+ ["sheet"],
2064
+ "Write a block of values. The block's shape must match the range.",
2065
+ {
2066
+ sheet: y,
2067
+ range: u("A1 notation, e.g. `B2:D5` or a single `A1`."),
2068
+ values: {
2069
+ type: "array",
2070
+ items: { type: "array", items: { type: ["string", "number", "boolean", "null"] } },
2071
+ description: "Rows of cells, top-left first. `null` clears a cell."
2072
+ }
2073
+ },
2074
+ ["range", "values"],
2075
+ p
2076
+ ),
2077
+ c(
2078
+ "sheet.setFormula",
2079
+ ["sheet"],
2080
+ "Put a formula in every cell of a range.",
2081
+ { sheet: y, range: u("A1 notation."), formula: u("Including the leading `=`.") },
2082
+ ["range", "formula"],
2083
+ p
2084
+ ),
2085
+ c(
2086
+ "sheet.setStyle",
2087
+ ["sheet"],
2088
+ "Change the look of a range. Only the properties you pass are touched.",
2089
+ {
2090
+ sheet: y,
2091
+ range: u("A1 notation."),
2092
+ bold: k("Bold on or off."),
2093
+ italic: k("Italic on or off."),
2094
+ fontSize: l("Point size."),
2095
+ fontColor: u("CSS colour, e.g. `#b91c1c`."),
2096
+ background: u("CSS colour for the cell fill."),
2097
+ horizontalAlignment: {
2098
+ type: "string",
2099
+ enum: ["left", "center", "right"],
2100
+ description: "Horizontal alignment."
2101
+ },
2102
+ numberFormat: u("Number format pattern, e.g. `#,##0.00` or `0%`.")
2103
+ },
2104
+ ["range"],
2105
+ p
2106
+ ),
2107
+ c(
2108
+ "sheet.insertRows",
2109
+ ["sheet"],
2110
+ "Insert empty rows, pushing the rest down.",
2111
+ {
2112
+ sheet: y,
2113
+ at: l("1-based row number to insert before."),
2114
+ count: l("How many. Omit for 1.")
2115
+ },
2116
+ ["at"],
2117
+ p
2118
+ ),
2119
+ c(
2120
+ "sheet.deleteRows",
2121
+ ["sheet"],
2122
+ "Delete rows, pulling the rest up.",
2123
+ { sheet: y, at: l("1-based first row to delete."), count: l("How many. Omit for 1.") },
2124
+ ["at"],
2125
+ p
2126
+ ),
2127
+ c(
2128
+ "sheet.insertColumns",
2129
+ ["sheet"],
2130
+ "Insert empty columns, pushing the rest right.",
2131
+ {
2132
+ sheet: y,
2133
+ at: l("1-based column number to insert before."),
2134
+ count: l("How many. Omit for 1.")
2135
+ },
2136
+ ["at"],
2137
+ p
2138
+ ),
2139
+ c(
2140
+ "sheet.deleteColumns",
2141
+ ["sheet"],
2142
+ "Delete columns, pulling the rest left.",
2143
+ {
2144
+ sheet: y,
2145
+ at: l("1-based first column to delete."),
2146
+ count: l("How many. Omit for 1.")
2147
+ },
2148
+ ["at"],
2149
+ p
2150
+ ),
2151
+ c(
2152
+ "sheet.merge",
2153
+ ["sheet"],
2154
+ "Merge a range into one cell.",
2155
+ { sheet: y, range: u("A1 notation.") },
2156
+ ["range"],
2157
+ p
2158
+ ),
2159
+ c(
2160
+ "sheet.unmerge",
2161
+ ["sheet"],
2162
+ "Break merged cells in a range apart.",
2163
+ { sheet: y, range: u("A1 notation.") },
2164
+ ["range"],
2165
+ p
2166
+ ),
2167
+ c(
2168
+ "sheet.sort",
2169
+ ["sheet"],
2170
+ "Sort a range on one of its columns.",
2171
+ {
2172
+ sheet: y,
2173
+ range: u("A1 notation covering the rows to sort, header excluded."),
2174
+ column: l("1-based column *within the range*, not within the sheet."),
2175
+ ascending: k("Ascending. Omit for ascending.")
2176
+ },
2177
+ ["range", "column"],
2178
+ p
2179
+ ),
2180
+ c(
2181
+ "sheet.insertSheet",
2182
+ ["sheet"],
2183
+ "Add a new sheet.",
2184
+ { name: u("Name for the new sheet.") },
2185
+ ["name"],
2186
+ p
2187
+ ),
2188
+ c(
2189
+ "sheet.renameSheet",
2190
+ ["sheet"],
2191
+ "Rename a sheet.",
2192
+ { sheet: u("Current name."), name: u("New name.") },
2193
+ ["sheet", "name"],
2194
+ p
2195
+ ),
2196
+ c(
2197
+ "sheet.deleteSheet",
2198
+ ["sheet"],
2199
+ "Remove a sheet and everything on it.",
2200
+ { sheet: u("Name of the sheet to delete.") },
2201
+ ["sheet"],
2202
+ p
2203
+ ),
2204
+ c(
2205
+ "sheet.activate",
2206
+ ["sheet"],
2207
+ "Show the user a sheet and select a range on it.",
2208
+ { sheet: y, range: u("A1 notation to select. Omit to only switch sheets.") },
2209
+ [],
2210
+ T
2211
+ )
2212
+ ], Bn = [
2213
+ c(
2214
+ "word.appendText",
2215
+ ["word"],
2216
+ "Add text at the end of the document.",
2217
+ { text: u("The text to append.") },
2218
+ ["text"],
2219
+ p
2220
+ ),
2221
+ c(
2222
+ "word.insertText",
2223
+ ["word"],
2224
+ "Insert text at a character offset.",
2225
+ {
2226
+ index: l("Character offset, as `inspect` reports offsets."),
2227
+ text: u("The text to insert.")
2228
+ },
2229
+ ["index", "text"],
2230
+ p
2231
+ ),
2232
+ c(
2233
+ "word.insertParagraph",
2234
+ ["word"],
2235
+ "Start a new paragraph at a character offset.",
2236
+ { index: l("Character offset. Omit for the end of the document.") },
2237
+ [],
2238
+ p
2239
+ ),
2240
+ c(
2241
+ "word.setSelection",
2242
+ ["word"],
2243
+ "Put the user's cursor on a stretch of text.",
2244
+ { start: l("Start character offset."), end: l("End character offset. Omit for a caret.") },
2245
+ ["start"],
2246
+ T
2247
+ )
2248
+ ], Hn = [
2249
+ c(
2250
+ "slides.setText",
2251
+ ["slides"],
2252
+ "Replace the text of one shape. Written on save; not visible before that, and not undoable.",
2253
+ {
2254
+ slide: de,
2255
+ element: u("Element id, as `inspect` reports it."),
2256
+ text: u("The new text.")
2257
+ },
2258
+ ["slide", "element", "text"],
2259
+ v
2260
+ ),
2261
+ c(
2262
+ "slides.setTransform",
2263
+ ["slides"],
2264
+ "Move or resize one shape. Only the values you pass change. Written on save; not visible before that, and not undoable.",
2265
+ {
2266
+ slide: de,
2267
+ element: u("Element id."),
2268
+ left: l("Distance from the left edge, in pixels."),
2269
+ top: l("Distance from the top edge, in pixels."),
2270
+ width: l("Width in pixels."),
2271
+ height: l("Height in pixels.")
2272
+ },
2273
+ ["slide", "element"],
2274
+ v
2275
+ )
2276
+ ], Ue = [
2277
+ ...Un,
2278
+ ...Kn,
2279
+ ...Bn,
2280
+ ...Hn
2281
+ ];
2282
+ function Ta(e) {
2283
+ return Ue.filter((t) => t.kinds.includes(e));
2284
+ }
2285
+ function Ia(e) {
2286
+ return Ue.find((t) => t.op === e);
2287
+ }
2288
+ const wa = "documents.describe", Ma = "documents.inspect", ka = "documents.apply";
2289
+ function Ca(e) {
2290
+ const t = e.indexOf(":");
2291
+ if (t !== -1) return e.slice(0, t);
2292
+ const n = e.indexOf(".");
2293
+ return n === -1 ? e : e.slice(0, n);
2294
+ }
2295
+ const Oa = "installation-id";
2296
+ function va(e) {
1956
2297
  const t = [];
1957
2298
  for (const n of Object.keys(e))
1958
2299
  for (const r of Object.keys(e[n]))
1959
2300
  t.push({ lang: n, key: r, value: e[n][r] });
1960
2301
  return t;
1961
2302
  }
1962
- const ua = "notification-source", da = (e, t) => `${e}.pref.${t}`, pa = {
2303
+ const Na = "notification-source", xa = (e, t) => `${e}.pref.${t}`, Ra = {
1963
2304
  ai: [
1964
2305
  "account.read",
1965
2306
  "account.write",
@@ -2092,64 +2433,64 @@ const ua = "notification-source", da = (e, t) => `${e}.pref.${t}`, pa = {
2092
2433
  time: ["entry.read", "entry.write", "work-type.read", "work-type.write"],
2093
2434
  user: ["user.read", "user.write"],
2094
2435
  work: ["item.read", "item.write", "project.read", "project.write"]
2095
- }, Ce = 9e4, kn = ["out_of_office"], Oe = (e) => kn.includes(e);
2096
- function fa(e, t, n) {
2097
- const r = n - e < Ce, i = t?.status && (!t.expiresAt || t.expiresAt > n) ? t : void 0;
2436
+ }, Ke = 9e4, jn = ["out_of_office"], Be = (e) => jn.includes(e);
2437
+ function Da(e, t, n) {
2438
+ const r = n - e < Ke, i = t?.status && (!t.expiresAt || t.expiresAt > n) ? t : void 0;
2098
2439
  if (!i?.status) return { online: r, status: r ? "available" : "offline" };
2099
2440
  const o = i.status;
2100
- return !r && !Oe(o) ? { online: !1, status: "offline" } : { online: r, status: o, message: i.message };
2441
+ return !r && !Be(o) ? { online: !1, status: "offline" } : { online: r, status: o, message: i.message };
2101
2442
  }
2102
- function ma(e, t) {
2103
- const n = t - e.lastSeenAt < Ce, r = n || Oe(e.status) ? e.status : "offline";
2443
+ function $a(e, t) {
2444
+ const n = t - e.lastSeenAt < Ke, r = n || Be(e.status) ? e.status : "offline";
2104
2445
  return n === e.online && r === e.status ? e : { ...e, online: n, status: r };
2105
2446
  }
2106
- function ga(e, t) {
2447
+ function La(e, t) {
2107
2448
  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 };
2108
2449
  }
2109
- function ha(e) {
2450
+ function Pa(e) {
2110
2451
  return e.providerAvailable && e.allowed;
2111
2452
  }
2112
- const ya = "resources.describe", Aa = "resources.search", ba = "resources.resolve", Ea = "resources.attached";
2113
- function Sa(e) {
2453
+ const Ua = "resources.describe", Ka = "resources.search", Ba = "resources.resolve", Ha = "resources.attached";
2454
+ function ja(e) {
2114
2455
  const t = e.indexOf(":");
2115
2456
  return t === -1 ? e : e.slice(0, t);
2116
2457
  }
2117
- const _a = "/provider/scope/related", Ta = "/provider/scope/read", Ne = "auth";
2118
- function ve(e) {
2458
+ const Ga = "/provider/scope/related", Fa = "/provider/scope/read", He = "auth";
2459
+ function je(e) {
2119
2460
  const t = typeof e == "string" ? e.match(/apps\/([^/?#]+)/) : null;
2120
2461
  return t ? t[1] : null;
2121
2462
  }
2122
- function Ia(e) {
2123
- const t = ve(e);
2124
- return t ? t !== Ne : typeof e == "string" && e.startsWith("/wake");
2463
+ function Wa(e) {
2464
+ const t = je(e);
2465
+ return t ? t !== He : typeof e == "string" && e.startsWith("/wake");
2125
2466
  }
2126
- function wa(e) {
2127
- return typeof e != "string" || e === "" || e === "/" ? !0 : ve(e) === Ne;
2467
+ function Va(e) {
2468
+ return typeof e != "string" || e === "" || e === "/" ? !0 : je(e) === He;
2128
2469
  }
2129
- function Cn(e) {
2470
+ function Gn(e) {
2130
2471
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2131
2472
  }
2132
- function On(e) {
2133
- const n = e.split("/").filter(Boolean).map((r) => r.startsWith(":") ? r.endsWith("?") ? "(?:/[^/]+)?" : "/[^/]+" : `/${Cn(r)}`).join("");
2473
+ function Fn(e) {
2474
+ const n = e.split("/").filter(Boolean).map((r) => r.startsWith(":") ? r.endsWith("?") ? "(?:/[^/]+)?" : "/[^/]+" : `/${Gn(r)}`).join("");
2134
2475
  return new RegExp(`^${n}\\/?$`);
2135
2476
  }
2136
- function Nn(e, t) {
2477
+ function Wn(e, t) {
2137
2478
  const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean), i = {};
2138
2479
  return n.forEach((o, a) => {
2139
2480
  if (o.startsWith(":")) {
2140
- const s = o.endsWith("?") ? o.slice(1, -1) : o.slice(1), c = r[a];
2141
- c && (i[s] = c);
2481
+ const s = o.endsWith("?") ? o.slice(1, -1) : o.slice(1), d = r[a];
2482
+ d && (i[s] = d);
2142
2483
  }
2143
2484
  }), i;
2144
2485
  }
2145
- function vn(e) {
2486
+ function Vn(e) {
2146
2487
  return e.publicBasePath ?? `/apps/${e.name}`;
2147
2488
  }
2148
- function Ma(e) {
2489
+ function za(e) {
2149
2490
  const t = [];
2150
2491
  for (const n of e) {
2151
2492
  if (!n?.name) continue;
2152
- const r = vn(n);
2493
+ const r = Vn(n);
2153
2494
  for (const i of n.routes ?? []) {
2154
2495
  if (!i.public) continue;
2155
2496
  const o = i.path === "/" ? "" : i.path;
@@ -2163,7 +2504,7 @@ function Ma(e) {
2163
2504
  }
2164
2505
  return t;
2165
2506
  }
2166
- function Rn(e, t) {
2507
+ function zn(e, t) {
2167
2508
  const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
2168
2509
  for (let i = 0; i < Math.min(n.length, r.length); i++) {
2169
2510
  const o = n[i].startsWith(":"), a = r[i].startsWith(":");
@@ -2171,17 +2512,17 @@ function Rn(e, t) {
2171
2512
  }
2172
2513
  return n.length > r.length;
2173
2514
  }
2174
- function $n(e, t) {
2515
+ function Xn(e, t) {
2175
2516
  if (typeof e != "string") return null;
2176
2517
  let n = null;
2177
2518
  for (const r of t)
2178
- On(r.pattern).test(e) && (!n || Rn(r.pattern, n.pattern)) && (n = r);
2179
- return n ? { ...n, params: { ...n.props, ...Nn(n.pattern, e) } } : null;
2519
+ Fn(r.pattern).test(e) && (!n || zn(r.pattern, n.pattern)) && (n = r);
2520
+ return n ? { ...n, params: { ...n.props, ...Wn(n.pattern, e) } } : null;
2180
2521
  }
2181
- function ka(e, t) {
2182
- return $n(e, t) !== null;
2522
+ function Xa(e, t) {
2523
+ return Xn(e, t) !== null;
2183
2524
  }
2184
- const Ca = 10 * 1024 * 1024, Oa = "sync-source", Na = "sync-target", va = 20, xn = {
2525
+ const Ya = 10 * 1024 * 1024, qa = 25 * 1024 * 1024, Ja = "sync-source", Za = "sync-target", Qa = 20, Yn = {
2185
2526
  afrikaans: [
2186
2527
  "[Muziek]",
2187
2528
  "(C) TV GELDERLAND 2021",
@@ -2331,14 +2672,14 @@ const Ca = 10 * 1024 * 1024, Oa = "sync-source", Na = "sync-target", va = 20, xn
2331
2672
  "[MÚSICA]",
2332
2673
  "[Music cuts in British]"
2333
2674
  ]
2334
- }, Ln = (e) => {
2675
+ }, qn = (e) => {
2335
2676
  let t = e;
2336
- return Object.values(xn).forEach((n) => {
2677
+ return Object.values(Yn).forEach((n) => {
2337
2678
  n.forEach((r) => {
2338
2679
  t = t.replaceAll(r, "");
2339
2680
  });
2340
2681
  }), t = t.replace(/\(.*?\)/g, ""), t = t.replace(/\[.*?\]/g, ""), t;
2341
- }, Dn = 6e4, Pn = 8e3, Un = 2, Kn = 0.4, Gn = 3, jn = /* @__PURE__ */ new Set([
2682
+ }, Jn = 6e4, Zn = 8e3, Qn = 2, er = 0.4, tr = 3, nr = /* @__PURE__ */ new Set([
2342
2683
  "aan",
2343
2684
  "als",
2344
2685
  "ben",
@@ -2451,13 +2792,13 @@ const Ca = 10 * 1024 * 1024, Oa = "sync-source", Na = "sync-target", va = 20, xn
2451
2792
  "you",
2452
2793
  "your"
2453
2794
  ]);
2454
- function Bn(e) {
2795
+ function rr(e) {
2455
2796
  const t = /* @__PURE__ */ new Set();
2456
2797
  for (const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))
2457
- n.length < Gn || jn.has(n) || t.add(n);
2798
+ n.length < tr || nr.has(n) || t.add(n);
2458
2799
  return [...t];
2459
2800
  }
2460
- function Hn(e, t) {
2801
+ function ir(e, t) {
2461
2802
  if (!e.length) return 0;
2462
2803
  if (!t.length) return 1;
2463
2804
  const n = new Set(t), r = new Set(e);
@@ -2465,38 +2806,38 @@ function Hn(e, t) {
2465
2806
  for (const o of r) n.has(o) || (i += 1);
2466
2807
  return i / r.size;
2467
2808
  }
2468
- function Fn(e, t = Dn) {
2809
+ function or(e, t = Jn) {
2469
2810
  const n = e.filter((a) => !a.partial && typeof a.text == "string");
2470
2811
  if (!n.length) return { text: "", segmentCount: 0 };
2471
2812
  const i = n.reduce((a, s) => Math.max(a, s.endedAt ?? 0), 0) - t;
2472
- return { text: n.filter((a) => (a.endedAt ?? 0) >= i).map((a) => Ln(a.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
2813
+ return { text: n.filter((a) => (a.endedAt ?? 0) >= i).map((a) => qn(a.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
2473
2814
  }
2474
- const Vn = 60;
2475
- function Ra(e, t, n = Vn) {
2815
+ const ar = 60;
2816
+ function es(e, t, n = ar) {
2476
2817
  const r = new Set(e), i = [...e];
2477
2818
  for (const o of t)
2478
2819
  !o || r.has(o) || (r.add(o), i.push(o));
2479
2820
  return i.slice(-n);
2480
2821
  }
2481
- function $a(e) {
2822
+ function ts(e) {
2482
2823
  const { segments: t, now: n, state: r } = e;
2483
- if (r.lastTriggerAt && n - r.lastTriggerAt < Pn)
2824
+ if (r.lastTriggerAt && n - r.lastTriggerAt < Zn)
2484
2825
  return { trigger: !1, reason: "too_soon" };
2485
- const i = Fn(t, e.windowMs);
2826
+ const i = or(t, e.windowMs);
2486
2827
  if (!i.text) return { trigger: !1, reason: "no_speech" };
2487
2828
  const o = i.segmentCount - (r.lastSegmentCount ?? 0);
2488
- if (r.lastQueryTerms && o < Un)
2829
+ if (r.lastQueryTerms && o < Qn)
2489
2830
  return { trigger: !1, reason: "too_few_new" };
2490
- const a = Bn(i.text);
2491
- return a.length ? r.lastQueryTerms?.length && Hn(a, r.lastQueryTerms) < Kn ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: i.text, terms: a, segmentCount: i.segmentCount } : { trigger: !1, reason: "no_speech" };
2831
+ const a = rr(i.text);
2832
+ return a.length ? r.lastQueryTerms?.length && ir(a, r.lastQueryTerms) < er ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: i.text, terms: a, segmentCount: i.segmentCount } : { trigger: !1, reason: "no_speech" };
2492
2833
  }
2493
- const xa = [
2834
+ const ns = [
2494
2835
  "personal",
2495
2836
  "workspace",
2496
2837
  "connections",
2497
2838
  "work",
2498
2839
  "ai"
2499
- ], La = "navNotice", D = {
2840
+ ], rs = "navNotice", F = {
2500
2841
  // The lower bounds are deliberately generous: service ranges (0800/0900) are
2501
2842
  // shorter than geographic numbers, and a too-strict minimum silently drops them.
2502
2843
  // An over-permissive key is harmless — it simply matches nothing.
@@ -2519,81 +2860,81 @@ const xa = [
2519
2860
  PL: { callingCode: "48", nsnMin: 9, nsnMax: 9 },
2520
2861
  US: { callingCode: "1", nsnMin: 10, nsnMax: 10 },
2521
2862
  CA: { callingCode: "1", nsnMin: 10, nsnMax: 10 }
2522
- }, Wn = "NL", zn = 15, Xn = 8, Yn = Array.from(
2523
- new Set(Object.values(D).map((e) => e.callingCode))
2863
+ }, sr = "NL", cr = 15, lr = 8, ur = Array.from(
2864
+ new Set(Object.values(F).map((e) => e.callingCode))
2524
2865
  ).sort((e, t) => t.length - e.length);
2525
- function re(e) {
2866
+ function fe(e) {
2526
2867
  if (e)
2527
- return D[e.trim().toUpperCase()];
2868
+ return F[e.trim().toUpperCase()];
2528
2869
  }
2529
- function S(e, t) {
2870
+ function C(e, t) {
2530
2871
  return e.length >= t.nsnMin && e.length <= t.nsnMax;
2531
2872
  }
2532
- function ie(e) {
2533
- if (e.length > zn) return null;
2534
- for (const t of Yn) {
2873
+ function me(e) {
2874
+ if (e.length > cr) return null;
2875
+ for (const t of ur) {
2535
2876
  if (!e.startsWith(t)) continue;
2536
2877
  const n = e.slice(t.length);
2537
- for (const r of Object.values(D)) {
2878
+ for (const r of Object.values(F)) {
2538
2879
  if (r.callingCode !== t) continue;
2539
2880
  const i = r.trunkPrefix, o = i && n.startsWith(i) ? n.slice(i.length) : n;
2540
- if (S(o, r)) return `+${t}${o}`;
2881
+ if (C(o, r)) return `+${t}${o}`;
2541
2882
  }
2542
2883
  return null;
2543
2884
  }
2544
- return e.length < Xn ? null : `+${e}`;
2885
+ return e.length < lr ? null : `+${e}`;
2545
2886
  }
2546
- function qn(e) {
2887
+ function dr(e) {
2547
2888
  let t = e.trim();
2548
2889
  const n = t.match(/^(sips?|tel|whatsapp):/i);
2549
2890
  n && (t = t.slice(n[0].length));
2550
2891
  const r = t.indexOf("@");
2551
2892
  return r >= 0 && (t = t.slice(0, r)), t.trim();
2552
2893
  }
2553
- function Da(e) {
2894
+ function is(e) {
2554
2895
  if (!e) return !1;
2555
2896
  const t = e.indexOf("@");
2556
2897
  if (t <= 0) return !1;
2557
2898
  const n = e.slice(0, t).trim();
2558
2899
  return !/^[+\d\s().-]+$/.test(n);
2559
2900
  }
2560
- function oe(e, t) {
2901
+ function ge(e, t) {
2561
2902
  if (!e) return null;
2562
- const n = qn(e);
2903
+ const n = dr(e);
2563
2904
  if (!n) return null;
2564
2905
  const r = n.startsWith("+"), i = n.replace(/\D/g, "");
2565
2906
  if (!i) return null;
2566
- if (r) return ie(i);
2567
- if (i.startsWith("00")) return ie(i.slice(2));
2568
- const o = re(t) ?? re(Wn);
2907
+ if (r) return me(i);
2908
+ if (i.startsWith("00")) return me(i.slice(2));
2909
+ const o = fe(t) ?? fe(sr);
2569
2910
  if (!o) return null;
2570
2911
  const a = o.trunkPrefix;
2571
2912
  if (a && i.startsWith(a)) {
2572
2913
  const s = i.slice(a.length);
2573
- return S(s, o) ? `+${o.callingCode}${s}` : null;
2914
+ return C(s, o) ? `+${o.callingCode}${s}` : null;
2574
2915
  }
2575
2916
  if (i.startsWith(o.callingCode)) {
2576
2917
  const s = i.slice(o.callingCode.length);
2577
- if (S(s, o)) return `+${o.callingCode}${s}`;
2918
+ if (C(s, o)) return `+${o.callingCode}${s}`;
2578
2919
  }
2579
- return !a && S(i, o) ? `+${o.callingCode}${i}` : null;
2920
+ return !a && C(i, o) ? `+${o.callingCode}${i}` : null;
2580
2921
  }
2581
- function Pa(e, t = 9) {
2922
+ function os(e, t = 9) {
2582
2923
  const n = (e ?? "").replace(/\D/g, "");
2583
2924
  return n.length < t ? null : n.slice(-t);
2584
2925
  }
2585
- function Re(e) {
2926
+ function Ge(e) {
2586
2927
  if (!e) return null;
2587
2928
  const t = e.trim().toLowerCase(), n = t.lastIndexOf("@");
2588
2929
  if (n <= 0 || n === t.length - 1) return null;
2589
2930
  const r = t.slice(0, n).split("+")[0], i = t.slice(n + 1);
2590
2931
  return !r || !i.includes(".") ? null : `${r}@${i}`;
2591
2932
  }
2592
- function Ua(e) {
2593
- const t = Re(e);
2933
+ function as(e) {
2934
+ const t = Ge(e);
2594
2935
  return t ? t.slice(t.lastIndexOf("@") + 1) : null;
2595
2936
  }
2596
- const Jn = /* @__PURE__ */ new Set([
2937
+ const pr = /* @__PURE__ */ new Set([
2597
2938
  "co.uk",
2598
2939
  "org.uk",
2599
2940
  "gov.uk",
@@ -2603,14 +2944,14 @@ const Jn = /* @__PURE__ */ new Set([
2603
2944
  "com.br",
2604
2945
  "co.za"
2605
2946
  ]);
2606
- function Zn(e) {
2947
+ function fr(e) {
2607
2948
  if (!e) return null;
2608
2949
  const t = e.trim().toLowerCase().replace(/\.$/, "").split(".").filter(Boolean);
2609
2950
  if (t.length < 2) return null;
2610
2951
  const n = t.slice(-2).join(".");
2611
- return Jn.has(n) && t.length >= 3 ? t.slice(-3).join(".") : n;
2952
+ return pr.has(n) && t.length >= 3 ? t.slice(-3).join(".") : n;
2612
2953
  }
2613
- const Qn = /* @__PURE__ */ new Set([
2954
+ const mr = /* @__PURE__ */ new Set([
2614
2955
  "gmail.com",
2615
2956
  "googlemail.com",
2616
2957
  "outlook.com",
@@ -2655,34 +2996,34 @@ const Qn = /* @__PURE__ */ new Set([
2655
2996
  "proximus.be",
2656
2997
  "scarlet.be"
2657
2998
  ]);
2658
- function Ka(e) {
2659
- const t = Zn(e);
2660
- return t ? Qn.has(t) : !1;
2999
+ function ss(e) {
3000
+ const t = fr(e);
3001
+ return t ? mr.has(t) : !1;
2661
3002
  }
2662
- function Ga(e) {
3003
+ function cs(e) {
2663
3004
  if (!e) return !1;
2664
3005
  const t = e.trim().toLowerCase();
2665
3006
  return t === "tel" || t === "sms" || t === "whatsapp" || t === "fax";
2666
3007
  }
2667
- function ja(e, t, n) {
3008
+ function ls(e, t, n) {
2668
3009
  if (!e || !t) return null;
2669
3010
  const r = e.trim().toLowerCase();
2670
3011
  if (r === "tel" || r === "sms" || r === "whatsapp") {
2671
- const o = oe(t, n);
3012
+ const o = ge(t, n);
2672
3013
  return o ? `tel:${o}` : null;
2673
3014
  }
2674
3015
  if (r === "fax") {
2675
- const o = oe(t, n);
3016
+ const o = ge(t, n);
2676
3017
  return o ? `fax:${o}` : null;
2677
3018
  }
2678
3019
  if (r === "mailto" || r === "email") {
2679
- const o = Re(t);
3020
+ const o = Ge(t);
2680
3021
  return o ? `mailto:${o}` : null;
2681
3022
  }
2682
3023
  const i = t.trim().toLowerCase();
2683
3024
  return i ? `${r}:${i}` : null;
2684
3025
  }
2685
- const er = [
3026
+ const gr = [
2686
3027
  /<blockquote/i,
2687
3028
  /class="?gmail_quote/i,
2688
3029
  // Gmail quote container
@@ -2695,72 +3036,72 @@ const er = [
2695
3036
  // Outlook underscore separator before "From:"
2696
3037
  /\bOn\b[\s\S]{0,200}?\bwrote:/i
2697
3038
  // Gmail "On <date> <name> wrote:"
2698
- ], ae = /^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i, tr = /^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;
2699
- function nr(e) {
3039
+ ], he = /^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i, hr = /^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;
3040
+ function yr(e) {
2700
3041
  const t = e.split(`
2701
3042
  `);
2702
3043
  for (let n = 0; n < t.length; n++)
2703
- if (tr.test(t[n]) || ae.test(t[n]) && t.slice(n + 1, n + 4).some((r) => ae.test(r)))
3044
+ if (hr.test(t[n]) || he.test(t[n]) && t.slice(n + 1, n + 4).some((r) => he.test(r)))
2704
3045
  return t.slice(0, n).join(`
2705
3046
  `).trim();
2706
3047
  return e;
2707
3048
  }
2708
- const rr = /^(?:https?:|mailto:|tel:)/i, ir = /^(?:https?:|cid:|data:image\/)/i;
2709
- function N(e, t) {
3049
+ const br = /^(?:https?:|mailto:|tel:)/i, Ar = /^(?:https?:|cid:|data:image\/)/i;
3050
+ function U(e, t) {
2710
3051
  const n = e.match(new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s">]+))`, "i"));
2711
3052
  return (n?.[1] ?? n?.[2] ?? n?.[3] ?? "").trim();
2712
3053
  }
2713
- const or = /(!\[[^\]]*\]\([^)]*\))/;
2714
- function se(e) {
2715
- return e.replace(/\s+/g, " ").trim().split(or).map((t, n) => n % 2 === 1 ? t : t.replace(/[[\]]/g, "\\$&")).join("");
3054
+ const Er = /(!\[[^\]]*\]\([^)]*\))/;
3055
+ function ye(e) {
3056
+ return e.replace(/\s+/g, " ").trim().split(Er).map((t, n) => n % 2 === 1 ? t : t.replace(/[[\]]/g, "\\$&")).join("");
2716
3057
  }
2717
- function v(e) {
3058
+ function K(e) {
2718
3059
  return e.replace(
2719
3060
  /[()\s<>"]/g,
2720
3061
  (t) => `%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2, "0")}`
2721
3062
  );
2722
3063
  }
2723
- function ar(e) {
3064
+ function Sr(e) {
2724
3065
  return e.replace(/<img\b([^>]*?)\/?>/gi, (n, r) => {
2725
- const i = N(r, "src");
2726
- return ir.test(i) ? `![${se(N(r, "alt"))}](${v(i)})` : "";
3066
+ const i = U(r, "src");
3067
+ return Ar.test(i) ? `![${ye(U(r, "alt"))}](${K(i)})` : "";
2727
3068
  }).replace(
2728
3069
  /<a\b([^>]*)>([\s\S]*?)<\/a\s*>/gi,
2729
3070
  (n, r, i) => {
2730
- const o = se(i.replace(/<[^>]*>/g, "")), a = N(r, "href");
2731
- return rr.test(a) ? `[${o || v(a)}](${v(a)})` : o;
3071
+ const o = ye(i.replace(/<[^>]*>/g, "")), a = U(r, "href");
3072
+ return br.test(a) ? `[${o || K(a)}](${K(a)})` : o;
2732
3073
  }
2733
3074
  );
2734
3075
  }
2735
- const sr = /<table\b[^>]*>((?:(?!<table\b)[\s\S])*?)<\/table\s*>/i, cr = /<tr\b[^>]*>([\s\S]*?)<\/tr\s*>/gi, lr = /<(t[dh])\b([^>]*)>([\s\S]*?)<\/\1\s*>/gi;
2736
- function ur(e, t) {
3076
+ const _r = /<table\b[^>]*>((?:(?!<table\b)[\s\S])*?)<\/table\s*>/i, Tr = /<tr\b[^>]*>([\s\S]*?)<\/tr\s*>/gi, Ir = /<(t[dh])\b([^>]*)>([\s\S]*?)<\/\1\s*>/gi;
3077
+ function wr(e, t) {
2737
3078
  return /<table\b/i.test(e) || e.includes(`
2738
3079
 
2739
3080
  |`) || t.includes("![") || t.length > 200;
2740
3081
  }
2741
- const dr = 40, pr = { left: "---", center: ":---:", right: "---:" };
2742
- function fr(e) {
3082
+ const Mr = 40, kr = { left: "---", center: ":---:", right: "---:" };
3083
+ function Cr(e) {
2743
3084
  const t = e.match(/align\s*[=:]\s*["']?\s*(right|center)/i);
2744
3085
  return t ? t[1].toLowerCase() : "left";
2745
3086
  }
2746
- function mr(e) {
3087
+ function Or(e) {
2747
3088
  return e.replace(/<[^>]*>/g, "").replace(/\s+/g, " ").trim().replace(/\|/g, "\\|");
2748
3089
  }
2749
- function gr(e) {
3090
+ function vr(e) {
2750
3091
  const t = [];
2751
- for (const a of e.matchAll(cr)) {
3092
+ for (const a of e.matchAll(Tr)) {
2752
3093
  const s = [];
2753
- for (const c of a[1].matchAll(lr)) {
2754
- const l = mr(c[3]);
2755
- if (ur(c[3], l)) return null;
2756
- s.push({ text: l, align: fr(c[2]) });
3094
+ for (const d of a[1].matchAll(Ir)) {
3095
+ const f = Or(d[3]);
3096
+ if (wr(d[3], f)) return null;
3097
+ s.push({ text: f, align: Cr(d[2]) });
2757
3098
  }
2758
3099
  if (s.length === 0) return null;
2759
- s.some((c) => c.text !== "") && t.push(s);
3100
+ s.some((d) => d.text !== "") && t.push(s);
2760
3101
  }
2761
3102
  const n = t[0]?.length ?? 0;
2762
3103
  if (t.length < 2 || n < 2 || t.some((a) => a.length !== n)) return null;
2763
- const r = (a) => `| ${a.map((s) => s.text).join(" | ")} |`, i = t[1].map((a) => pr[a.align]).join(" | "), o = t.slice(1).map(r).join(`
3104
+ const r = (a) => `| ${a.map((s) => s.text).join(" | ")} |`, i = t[1].map((a) => kr[a.align]).join(" | "), o = t.slice(1).map(r).join(`
2764
3105
  `);
2765
3106
  return `
2766
3107
 
@@ -2770,36 +3111,36 @@ ${o}
2770
3111
 
2771
3112
  `;
2772
3113
  }
2773
- function hr(e) {
3114
+ function Nr(e) {
2774
3115
  return e.replace(/<\/(t[dh])\s*>/gi, " ").replace(/<\/tr\s*>/gi, `
2775
3116
  `).replace(/<(?:tbody|thead|tfoot|caption|colgroup|col|tr|t[dh])\b[^>]*>/gi, "").replace(/<\/(?:tbody|thead|tfoot|caption|colgroup)\s*>/gi, "");
2776
3117
  }
2777
- function yr(e) {
3118
+ function xr(e) {
2778
3119
  let t = e;
2779
- for (let n = 0; n < dr; n++) {
2780
- const r = sr.exec(t);
3120
+ for (let n = 0; n < Mr; n++) {
3121
+ const r = _r.exec(t);
2781
3122
  if (!r || r.index === void 0) break;
2782
- const o = gr(r[1]) ?? `
3123
+ const o = vr(r[1]) ?? `
2783
3124
 
2784
- ${hr(r[1])}
3125
+ ${Nr(r[1])}
2785
3126
 
2786
3127
  `;
2787
3128
  t = t.slice(0, r.index) + o + t.slice(r.index + r[0].length);
2788
3129
  }
2789
3130
  return t;
2790
3131
  }
2791
- function ce(e, t) {
3132
+ function be(e, t) {
2792
3133
  let n = e;
2793
3134
  return n = n.replace(/<(script|style)[\s\S]*?<\/\1>/gi, ""), n = n.replace(/<!--[\s\S]*?-->/g, ""), n = n.replace(/<br\s*\/?>/gi, `
2794
- `), t && (n = yr(ar(n))), n = n.replace(/<\/(p|h[1-6]|ul|ol|table|blockquote)>/gi, `
3135
+ `), t && (n = xr(Sr(n))), n = n.replace(/<\/(p|h[1-6]|ul|ol|table|blockquote)>/gi, `
2795
3136
 
2796
3137
  `), n = n.replace(/<\/(div|li|tr)>/gi, `
2797
3138
  `), n = n.replace(/<\/(td|th)>/gi, " "), n = n.replace(/<[^>]+>/g, ""), n = n.replace(/<[^>]*$/, ""), n;
2798
3139
  }
2799
- function le(e) {
3140
+ function Ae(e) {
2800
3141
  return !Number.isInteger(e) || e < 0 || e > 1114111 ? null : String.fromCodePoint(e);
2801
3142
  }
2802
- const Ar = {
3143
+ const Rr = {
2803
3144
  euro: "€",
2804
3145
  pound: "£",
2805
3146
  yen: "¥",
@@ -2821,353 +3162,361 @@ const Ar = {
2821
3162
  rdquo: "”",
2822
3163
  apos: "'"
2823
3164
  };
2824
- function ue(e) {
2825
- return e.replace(/&nbsp;/gi, " ").replace(/&([a-z]+);/gi, (t, n) => Ar[n.toLowerCase()] ?? t).replace(/&lt;/gi, "<").replace(/&gt;/gi, ">").replace(/&quot;/gi, '"').replace(/&#(\d+);/g, (t, n) => le(Number(n)) ?? t).replace(/&#x([0-9a-f]+);/gi, (t, n) => le(parseInt(n, 16)) ?? t).replace(/&amp;/gi, "&");
3165
+ function Ee(e) {
3166
+ return e.replace(/&nbsp;/gi, " ").replace(/&([a-z]+);/gi, (t, n) => Rr[n.toLowerCase()] ?? t).replace(/&lt;/gi, "<").replace(/&gt;/gi, ">").replace(/&quot;/gi, '"').replace(/&#(\d+);/g, (t, n) => Ae(Number(n)) ?? t).replace(/&#x([0-9a-f]+);/gi, (t, n) => Ae(parseInt(n, 16)) ?? t).replace(/&amp;/gi, "&");
2826
3167
  }
2827
- function de(e) {
3168
+ function Se(e) {
2828
3169
  return e.replace(/\r/g, "").replace(/[ \t]+/g, " ").replace(/ *\n */g, `
2829
3170
  `).replace(/\n{3,}/g, `
2830
3171
 
2831
3172
  `).trim();
2832
3173
  }
2833
- const br = /<\s*(html|body|div|p|table|br|span)\b/i;
2834
- function Ba(e) {
2835
- return br.test(e);
3174
+ const Dr = /<\s*(html|body|div|p|table|br|span)\b/i;
3175
+ function us(e) {
3176
+ return Dr.test(e);
2836
3177
  }
2837
- function Ha(e) {
2838
- return $e(e, !1);
3178
+ function ds(e) {
3179
+ return Fe(e, !1);
2839
3180
  }
2840
- function Fa(e) {
2841
- return $e(e, !0);
3181
+ function ps(e) {
3182
+ return Fe(e, !0);
2842
3183
  }
2843
- function $e(e, t) {
3184
+ function Fe(e, t) {
2844
3185
  if (typeof e != "string" || !e) return "";
2845
3186
  let n = e.length;
2846
- for (const a of er) {
3187
+ for (const a of gr) {
2847
3188
  const s = e.search(a);
2848
3189
  s >= 0 && s < n && (n = s);
2849
3190
  }
2850
3191
  const r = e.slice(0, n);
2851
- let i = de(ue(ce(r, t)));
2852
- return i || (i = de(ue(ce(e, t)))), nr(i) || i;
3192
+ let i = Se(Ee(be(r, t)));
3193
+ return i || (i = Se(Ee(be(e, t)))), yr(i) || i;
2853
3194
  }
2854
3195
  export {
2855
- oi as ACTIVE_ASSIGNMENT_STATUSES,
2856
- m as ACTIVITY_CATALOG,
2857
- bn as AI_ATTACHMENT_LIMITS,
2858
- Po as AI_ATTACHMENT_MAX_PER_TURN,
2859
- Do as AI_ATTACHMENT_TURN_BUDGET,
2860
- fe as AI_VENDORS,
2861
- nt as ALLOWED_LINK_SCHEMES,
2862
- pa as APP_PERMISSIONS,
2863
- F as ARTIFACT_MAX_BLOCKS,
2864
- Jr as ARTIFACT_MAX_BODY_BYTES,
2865
- C as ARTIFACT_MAX_CELL_LEN,
2866
- X as ARTIFACT_MAX_KPI_ITEMS,
2867
- V as ARTIFACT_MAX_LIST_ITEMS,
2868
- z as ARTIFACT_MAX_TABLE_COLUMNS,
2869
- W as ARTIFACT_MAX_TABLE_ROWS,
2870
- ge as ARTIFACT_MAX_TEXT_LEN,
2871
- dt as ASSIGNMENT_SCOPE_KIND,
2872
- Bo as ASSIST_BANDS,
2873
- jo as ASSIST_SOURCE_PROVIDER_GROUP,
2874
- It as ATTENTION_STATUSES,
2875
- Ne as AUTH_APP_NAME,
2876
- qt as AUTO_READY_MIN_PROPOSALS,
2877
- Jt as AUTO_READY_RATE,
2878
- Ve as ActivityTypeRegistry,
2879
- Dr as BUILT_IN_ONLY,
2880
- wt as BULK_PENALTY,
2881
- Pn as CADENCE_FLOOR_MS,
2882
- Un as CADENCE_MIN_NEW_SEGMENTS,
2883
- Kn as CADENCE_MIN_NOVELTY,
2884
- Dn as CADENCE_WINDOW_MS,
2885
- eo as CLASSIFY_VARS,
2886
- sa as CONTEXT_COLLECT_SERVICE,
2887
- Xr as CORE_DIMENSIONS,
2888
- wn as CommunicationScheme,
2889
- gt as DAY_MS,
2890
- Gi as DEFAULT_MEMORY_BUDGET,
2891
- Wn as DEFAULT_PHONE_REGION,
2892
- no as EMPTY_WORKFLOW,
2893
- ia as FEATURE_FOLDER_MANAGEMENT,
2894
- oa as FEATURE_REMOTE_SEARCH,
2895
- kt as FOLLOW_UP_HOURS,
2896
- mt as HOUR_MS,
2897
- br as HTML_BODY_RE,
2898
- g as INELIGIBLE,
2899
- ca as INSTALLATION_HEADER,
2900
- Vt as INTERACTION_KIND,
2901
- na as InteractionParticipantRole,
2902
- Lt as KB_FALLBACK_LOCALE,
2903
- Z as KB_LOCALES,
2904
- L as LOOSE_STATUSES,
2905
- Et as MAIL_HINT_HEADERS,
2906
- Tr as MAX_ACTIONS,
2907
- pt as MAX_ASSIGNMENT_TURNS,
2908
- Er as MAX_BLOCKS,
2909
- Te as MAX_COLLECTION_DEPTH,
2910
- Ca as MAX_EDITABLE_FILE_BYTES,
2911
- Sr as MAX_FIELDS,
2912
- _r as MAX_LIST_ITEMS,
2913
- Di as MAX_MEMORY_BROWSE,
2914
- Ki as MAX_MEMORY_BUDGET,
2915
- Pi as MAX_MEMORY_CHARS,
2916
- Vn as MAX_SHOWN_KEYS,
2917
- rn as MAX_TOPIC_CANDIDATES,
2918
- nn as MAX_TOPIC_EXAMPLES,
2919
- O as MAX_TOPIC_EXAMPLE_CHARS,
2920
- Ui as MIN_MEMORY_BUDGET,
2921
- La as NAV_NOTICE_SLOT,
2922
- ua as NOTIFICATION_SOURCE_PROVIDER_GROUP,
2923
- Bi as ONBOARDING_SOURCE_PROVIDER_GROUP,
2924
- D as PHONE_REGIONS,
2925
- Ce as PRESENCE_ONLINE_WINDOW_MS,
2926
- kn as PRESENCE_SURVIVES_OFFLINE,
2927
- Fi as PROFILE_TOOL_DISPOSITIONS,
2928
- ta as PROVIDER_FEATURE_MESSAGE_TEMPLATES,
2929
- ea as PROVIDER_FEATURE_MESSAGE_WINDOW,
2930
- Qn as PUBLIC_EMAIL_DOMAINS,
2931
- Q as READ_STEP_TYPES,
2932
- Ut as RELATED_SUBJECT_KINDS,
2933
- ke as RESERVED_STATUS_KEYS,
2934
- Ea as RESOURCE_ATTACHED_SERVICE,
2935
- ya as RESOURCE_DESCRIBE_SERVICE,
2936
- ba as RESOURCE_RESOLVE_SERVICE,
2937
- Aa as RESOURCE_SEARCH_SERVICE,
2938
- Ta as SCOPE_READ_ROUTE,
2939
- _a as SCOPE_RELATED_ROUTE,
2940
- xa as SETTINGS_CATEGORIES,
2941
- di as SIGNATURE_INTENTS,
2942
- Mt as SLA_HOURS_BY_PRIORITY,
2943
- Xt as STEP_MAX_TOKENS_MAX,
2944
- zt as STEP_MAX_TOKENS_MIN,
2945
- bt as SUMMARY_MIN_LAST_CHARS,
2946
- At as SUMMARY_MIN_MESSAGES,
2947
- va as SYNC_RUN_MAX_ERRORS,
2948
- Oa as SYNC_SOURCE_PROVIDER_GROUP,
2949
- Na as SYNC_TARGET_PROVIDER_GROUP,
2950
- ut as TERMINAL_ASSIGNMENT_STATUSES,
2951
- Zt as TERMINAL_RUN_STATUSES,
2952
- Qi as TRIGGER_VARS,
2953
- aa as UNSUPPORTED,
2954
- Ze as USAGE_DIMENSIONS,
2955
- Qe as USAGE_DIMENSION_IDS,
2956
- Hi as WORK_AREAS,
2957
- _o as WORK_COMMENT_ADDED,
2958
- To as WORK_ITEM_ASSIGNED,
2959
- ln as WORK_ITEM_SCOPE_KIND,
2960
- Io as WORK_ITEM_STATUS_CHANGED,
2961
- un as WORK_PROJECT_SCOPE_KIND,
2962
- _ as W_PRIORITY,
2963
- bo as acceptExampleCandidate,
2964
- Gt as actingIdentityKey,
2965
- yo as activeWorkTypes,
2966
- wr as activityIconOf,
2967
- xr as activityJoinUrl,
2968
- je as activitySnippet,
2969
- Be as activityTextParams,
2970
- $r as activityTimelineText,
2971
- We as activityTimestamp,
2972
- p as activityTypeInfo,
2973
- zi as actorKey,
2974
- Ao as addExampleCandidate,
2975
- ma as agePresenceEntry,
2976
- An as aiAttachmentKind,
2977
- Uo as aiAttachmentRejection,
2978
- H as aiBudgetLimit,
2979
- Wr as aiBudgetPeriodKey,
2980
- ze as aiBudgetPeriodStart,
2981
- Vr as aiBudgetState,
2982
- Fr as aiVendorAcceptsAttachment,
2983
- jr as aiVendorDefaultModel,
2984
- Gr as aiVendorLabel,
2985
- Hr as aiVendorNeedsBaseUrl,
2986
- Br as aiVendorsWith,
2987
- ve as appNameFromPath,
2988
- po as applyRounding,
2989
- pi as applySignature,
2990
- Yt as approvalRate,
2991
- Qr as artifactBodyBytes,
2992
- ei as artifactOutline,
2993
- ti as artifactToMarkdown,
2994
- Ji as assignmentMismatch,
2995
- si as assignmentScopeKey,
2996
- li as assignmentSubject,
2997
- Lr as buildActivityPreview,
2998
- Yo as buildChannelIntents,
2999
- ni as buildShareKeys,
3000
- Fn as buildWindow,
3001
- Ni as canNestUnder,
3002
- Or as carriesText,
3003
- Ri as categoryLabel,
3004
- fn as categoryOf,
3005
- Qo as channelKindForScheme,
3006
- Mr as channelKindOf,
3007
- to as clampStepMaxTokens,
3008
- Ai as classifyMail,
3009
- Fa as cleanMessageMarkdown,
3010
- Ha as cleanMessageText,
3011
- Fo as compareAssistRank,
3012
- tn as compareWorkTypes,
3013
- ui as decideAssignmentState,
3014
- $a as decideCadence,
3015
- zo as decideIncomingCall,
3016
- Dt as defaultLocaleOf,
3017
- Ro as defaultStatusKey,
3018
- ra as defineIntent,
3019
- $t as depthOf,
3020
- fa as derivePresence,
3021
- Xo as disabledIntentsFromCapabilities,
3022
- uo as elapsedSeconds,
3023
- Ua as emailDomain,
3024
- ja as endpointKey,
3025
- Nn as extractParams,
3026
- Bn as extractTerms,
3027
- Jo as filterByEndpoint,
3028
- qo as filterByIntent,
3029
- In as filterByTargetScheme,
3030
- T as findAiVendor,
3031
- la as flattenLocales,
3032
- Ye as floorToPeriod,
3033
- Kt as formatActingIdentity,
3034
- mo as formatClock,
3035
- fo as formatHm,
3036
- Mo as formatItemKey,
3037
- Xe as formatPeriod,
3038
- Go as freshSources,
3039
- Pr as getActivitySeenUserIds,
3040
- fi as getContactEndpoints,
3041
- wi as getShortTitle,
3042
- Ii as getUrgencyScore,
3043
- Ie as heightOf,
3044
- ki as helpCenterText,
3045
- Zi as humanizeAction,
3046
- Wt as interactionIdOf,
3047
- So as isAgentUser,
3048
- _i as isAssigned,
3049
- ai as isAssignmentTerminal,
3050
- Ht as isAssignmentTrigger,
3051
- oo as isAutoReady,
3052
- Rt as isAwaitingThem,
3053
- Kr as isChatMessageActivity,
3054
- Ti as isClosed,
3055
- vr as isConnectedType,
3056
- Ia as isDeepLink,
3057
- xt as isDescendant,
3058
- mi as isEligible,
3059
- Ur as isEmailActivity,
3060
- Ba as isHtmlBody,
3061
- so as isInFlight,
3062
- Tt as isInteractionUnseen,
3063
- wa as isLandingPath,
3064
- yt as isLikelyBulk,
3065
- pe as isMessageShape,
3066
- kr as isMessageType,
3067
- Rn as isMoreSpecificPattern,
3068
- Ko as isOutwardTool,
3069
- Ot as isParked,
3070
- Qt as isPaused,
3071
- Nr as isPlaybookAuthoredType,
3072
- Ka as isPublicEmailDomain,
3073
- ka as isPublicPath,
3074
- Nt as isReminderActive,
3075
- Cr as isReplyableType,
3076
- Ei as isSlaAtRisk,
3077
- ao as isTerminal,
3078
- hi as isThreadLongEnough,
3079
- Rr as isTranscriptType,
3080
- $o as isWorkClosed,
3081
- ho as isWorkTypeVisible,
3082
- Oo as itemDossierKeys,
3083
- pn as ladderFor,
3084
- Mi as linkLabel,
3085
- zr as listeningAllowed,
3086
- Oi as localeInstruction,
3087
- Ci as localeName,
3088
- vi as localesOf,
3089
- Da as looksLikeEmail,
3090
- Zo as matchContactToIntents,
3091
- $n as matchPublicRoute,
3092
- xi as mcpCredentialScope,
3093
- Li as mcpToolPrefix,
3094
- Ra as mergeShownKeys,
3095
- Ge as messageCountsAs,
3096
- Ga as needsPhoneRegion,
3097
- Zr as normalizeArtifactBlocks,
3098
- Ir as normalizeBlocks,
3099
- Re as normalizeEmail,
3100
- h as normalizeExample,
3101
- da as notificationPrefKey,
3102
- Hn as novelty,
3103
- gi as parkMarksById,
3104
- Vi as parseActingIdentity,
3105
- ko as parseItemKey,
3106
- On as pathToRegex,
3107
- Yr as periodsInRange,
3108
- Pa as phoneSuffix,
3109
- yi as pickMailHeaders,
3110
- Ue as plainTextFromMarkdown,
3111
- Bt as playbookActor,
3112
- io as procedureOf,
3113
- No as projectDossierKeys,
3114
- vn as publicBasePathFor,
3115
- Ma as publicRoutePatterns,
3116
- R as readPath,
3117
- ee as readStepError,
3118
- Ct as recencyOf,
3119
- Ft as refKey,
3120
- Zn as registrableDomain,
3121
- an as rejectExampleCandidate,
3122
- ji as relatedByDefault,
3123
- _n as resolveAccountCapabilities,
3124
- $ as resolveActivityText,
3125
- Sn as resolveChannelIntents,
3126
- ft as resolveSignature,
3127
- ga as resolveWorkMode,
3128
- Sa as resourceKindOf,
3129
- Wi as runActor,
3130
- lo as runInteractionId,
3131
- at as sanitizeInline,
3132
- Ln as sanitizeTranscript,
3133
- Si as scoreInteraction,
3134
- wo as scoreWorkItem,
3135
- $i as selectLenses,
3136
- Wo as sessionsHoldCannotReach,
3137
- Vo as sessionsToHold,
3138
- Ae as shareKeyForTeam,
3139
- ye as shareKeyForUser,
3140
- ri as shareKeysForViewer,
3141
- ha as shouldRunAudioPipeline,
3142
- bi as slaHoursByInbox,
3143
- vt as slaHoursFor,
3144
- mn as sortStatuses,
3145
- En as sourceKey,
3146
- vo as statusIn,
3147
- ro as stepsOf,
3148
- Ke as stripHtml,
3149
- co as subjectKeyOf,
3150
- we as subjectOf,
3151
- Ho as subjectRef,
3152
- Co as suggestProjectKey,
3153
- qi as targetById,
3154
- Yi as targetForActivityType,
3155
- jt as toActingIdentity,
3156
- oe as toE164,
3157
- ii as toolSourceKinds,
3158
- sn as topicOfferedForTeam,
3159
- Eo as topicsForTeam,
3160
- on as truncateExample,
3161
- xo as uniqueWorkStatusKey,
3162
- go as uniqueWorkTypeKey,
3163
- et as usageMetricId,
3164
- qr as usageMetrics,
3165
- Lo as validateStatuses,
3166
- Xi as valueAtPath,
3167
- x as waitHoursOf,
3168
- ci as wakesAssignment,
3169
- dn as workItemScopeKey,
3170
- Me as workProjectScopeKey,
3171
- gn as workStatusKey,
3172
- en as workTypeKey
3196
+ Ei as ACTIVE_ASSIGNMENT_STATUSES,
3197
+ A as ACTIVITY_CATALOG,
3198
+ vn as AI_ATTACHMENT_LIMITS,
3199
+ Zo as AI_ATTACHMENT_MAX_PER_TURN,
3200
+ Jo as AI_ATTACHMENT_TURN_BUDGET,
3201
+ Te as AI_VENDORS,
3202
+ ft as ALLOWED_LINK_SCHEMES,
3203
+ Ra as APP_PERMISSIONS,
3204
+ Z as ARTIFACT_MAX_BLOCKS,
3205
+ pi as ARTIFACT_MAX_BODY_BYTES,
3206
+ L as ARTIFACT_MAX_CELL_LEN,
3207
+ ne as ARTIFACT_MAX_KPI_ITEMS,
3208
+ Q as ARTIFACT_MAX_LIST_ITEMS,
3209
+ te as ARTIFACT_MAX_TABLE_COLUMNS,
3210
+ ee as ARTIFACT_MAX_TABLE_ROWS,
3211
+ we as ARTIFACT_MAX_TEXT_LEN,
3212
+ _t as ASSIGNMENT_SCOPE_KIND,
3213
+ ra as ASSIST_BANDS,
3214
+ na as ASSIST_SOURCE_PROVIDER_GROUP,
3215
+ $t as ATTENTION_STATUSES,
3216
+ He as AUTH_APP_NAME,
3217
+ cn as AUTO_READY_MIN_PROPOSALS,
3218
+ ln as AUTO_READY_RATE,
3219
+ nt as ActivityTypeRegistry,
3220
+ Jr as BUILT_IN_ONLY,
3221
+ Lt as BULK_PENALTY,
3222
+ Zn as CADENCE_FLOOR_MS,
3223
+ Qn as CADENCE_MIN_NEW_SEGMENTS,
3224
+ er as CADENCE_MIN_NOVELTY,
3225
+ Jn as CADENCE_WINDOW_MS,
3226
+ ho as CLASSIFY_VARS,
3227
+ _a as CONTEXT_COLLECT_SERVICE,
3228
+ li as CORE_DIMENSIONS,
3229
+ Ln as CommunicationScheme,
3230
+ Mt as DAY_MS,
3231
+ to as DEFAULT_MEMORY_BUDGET,
3232
+ sr as DEFAULT_PHONE_REGION,
3233
+ ka as DOCUMENT_APPLY_SERVICE,
3234
+ wa as DOCUMENT_DESCRIBE_SERVICE,
3235
+ Ma as DOCUMENT_INSPECT_SERVICE,
3236
+ Ue as DOCUMENT_OPERATIONS,
3237
+ bo as EMPTY_WORKFLOW,
3238
+ Aa as FEATURE_FOLDER_MANAGEMENT,
3239
+ Ea as FEATURE_REMOTE_SEARCH,
3240
+ Ut as FOLLOW_UP_HOURS,
3241
+ wt as HOUR_MS,
3242
+ Dr as HTML_BODY_RE,
3243
+ E as INELIGIBLE,
3244
+ Oa as INSTALLATION_HEADER,
3245
+ nn as INTERACTION_KIND,
3246
+ ya as InteractionParticipantRole,
3247
+ Vt as KB_FALLBACK_LOCALE,
3248
+ ae as KB_LOCALES,
3249
+ G as LOOSE_STATUSES,
3250
+ Nt as MAIL_HINT_HEADERS,
3251
+ Ur as MAX_ACTIONS,
3252
+ Tt as MAX_ASSIGNMENT_TURNS,
3253
+ $r as MAX_BLOCKS,
3254
+ Re as MAX_COLLECTION_DEPTH,
3255
+ Ya as MAX_EDITABLE_FILE_BYTES,
3256
+ Lr as MAX_FIELDS,
3257
+ Pr as MAX_LIST_ITEMS,
3258
+ Ji as MAX_MEMORY_BROWSE,
3259
+ eo as MAX_MEMORY_BUDGET,
3260
+ Zi as MAX_MEMORY_CHARS,
3261
+ ar as MAX_SHOWN_KEYS,
3262
+ gn as MAX_TOPIC_CANDIDATES,
3263
+ mn as MAX_TOPIC_EXAMPLES,
3264
+ P as MAX_TOPIC_EXAMPLE_CHARS,
3265
+ qa as MAX_VIEWABLE_FILE_BYTES,
3266
+ Qi as MIN_MEMORY_BUDGET,
3267
+ rs as NAV_NOTICE_SLOT,
3268
+ Na as NOTIFICATION_SOURCE_PROVIDER_GROUP,
3269
+ ro as ONBOARDING_SOURCE_PROVIDER_GROUP,
3270
+ F as PHONE_REGIONS,
3271
+ Ke as PRESENCE_ONLINE_WINDOW_MS,
3272
+ jn as PRESENCE_SURVIVES_OFFLINE,
3273
+ oo as PROFILE_TOOL_DISPOSITIONS,
3274
+ ha as PROVIDER_FEATURE_MESSAGE_TEMPLATES,
3275
+ ga as PROVIDER_FEATURE_MESSAGE_WINDOW,
3276
+ mr as PUBLIC_EMAIL_DOMAINS,
3277
+ se as READ_STEP_TYPES,
3278
+ Yt as RELATED_SUBJECT_KINDS,
3279
+ Pe as RESERVED_STATUS_KEYS,
3280
+ Ha as RESOURCE_ATTACHED_SERVICE,
3281
+ Ua as RESOURCE_DESCRIBE_SERVICE,
3282
+ Ba as RESOURCE_RESOLVE_SERVICE,
3283
+ Ka as RESOURCE_SEARCH_SERVICE,
3284
+ Fa as SCOPE_READ_ROUTE,
3285
+ Ga as SCOPE_RELATED_ROUTE,
3286
+ ns as SETTINGS_CATEGORIES,
3287
+ Mi as SIGNATURE_INTENTS,
3288
+ Pt as SLA_HOURS_BY_PRIORITY,
3289
+ an as STEP_MAX_TOKENS_MAX,
3290
+ on as STEP_MAX_TOKENS_MIN,
3291
+ vt as SUMMARY_MIN_LAST_CHARS,
3292
+ Ot as SUMMARY_MIN_MESSAGES,
3293
+ Qa as SYNC_RUN_MAX_ERRORS,
3294
+ Ja as SYNC_SOURCE_PROVIDER_GROUP,
3295
+ Za as SYNC_TARGET_PROVIDER_GROUP,
3296
+ St as TERMINAL_ASSIGNMENT_STATUSES,
3297
+ un as TERMINAL_RUN_STATUSES,
3298
+ go as TRIGGER_VARS,
3299
+ Sa as UNSUPPORTED,
3300
+ lt as USAGE_DIMENSIONS,
3301
+ ut as USAGE_DIMENSION_IDS,
3302
+ io as WORK_AREAS,
3303
+ Po as WORK_COMMENT_ADDED,
3304
+ Uo as WORK_ITEM_ASSIGNED,
3305
+ En as WORK_ITEM_SCOPE_KIND,
3306
+ Ko as WORK_ITEM_STATUS_CHANGED,
3307
+ Sn as WORK_PROJECT_SCOPE_KIND,
3308
+ O as W_PRIORITY,
3309
+ Do as acceptExampleCandidate,
3310
+ Jt as actingIdentityKey,
3311
+ xo as activeWorkTypes,
3312
+ Br as activityIconOf,
3313
+ Yr as activityJoinUrl,
3314
+ Ze as activitySnippet,
3315
+ Qe as activityTextParams,
3316
+ Xr as activityTimelineText,
3317
+ rt as activityTimestamp,
3318
+ h as activityTypeInfo,
3319
+ co as actorKey,
3320
+ Ro as addExampleCandidate,
3321
+ $a as agePresenceEntry,
3322
+ On as aiAttachmentKind,
3323
+ Qo as aiAttachmentRejection,
3324
+ J as aiBudgetLimit,
3325
+ si as aiBudgetPeriodKey,
3326
+ it as aiBudgetPeriodStart,
3327
+ ai as aiBudgetState,
3328
+ oi as aiVendorAcceptsAttachment,
3329
+ ni as aiVendorDefaultModel,
3330
+ ti as aiVendorLabel,
3331
+ ii as aiVendorNeedsBaseUrl,
3332
+ ri as aiVendorsWith,
3333
+ je as appNameFromPath,
3334
+ ko as applyRounding,
3335
+ ki as applySignature,
3336
+ sn as approvalRate,
3337
+ mi as artifactBodyBytes,
3338
+ gi as artifactOutline,
3339
+ hi as artifactToMarkdown,
3340
+ fo as assignmentMismatch,
3341
+ _i as assignmentScopeKey,
3342
+ Ii as assignmentSubject,
3343
+ qr as buildActivityPreview,
3344
+ ua as buildChannelIntents,
3345
+ yi as buildShareKeys,
3346
+ or as buildWindow,
3347
+ Wi as canNestUnder,
3348
+ Fr as carriesText,
3349
+ zi as categoryLabel,
3350
+ In as categoryOf,
3351
+ ma as channelKindForScheme,
3352
+ Hr as channelKindOf,
3353
+ yo as clampStepMaxTokens,
3354
+ Ri as classifyMail,
3355
+ ps as cleanMessageMarkdown,
3356
+ ds as cleanMessageText,
3357
+ oa as compareAssistRank,
3358
+ fn as compareWorkTypes,
3359
+ wi as decideAssignmentState,
3360
+ ts as decideCadence,
3361
+ ca as decideIncomingCall,
3362
+ zt as defaultLocaleOf,
3363
+ zo as defaultStatusKey,
3364
+ ba as defineIntent,
3365
+ Ft as depthOf,
3366
+ Da as derivePresence,
3367
+ la as disabledIntentsFromCapabilities,
3368
+ Ca as documentKindOf,
3369
+ Mo as elapsedSeconds,
3370
+ as as emailDomain,
3371
+ ls as endpointKey,
3372
+ Wn as extractParams,
3373
+ rr as extractTerms,
3374
+ pa as filterByEndpoint,
3375
+ da as filterByIntent,
3376
+ $n as filterByTargetScheme,
3377
+ N as findAiVendor,
3378
+ va as flattenLocales,
3379
+ at as floorToPeriod,
3380
+ qt as formatActingIdentity,
3381
+ Oo as formatClock,
3382
+ Co as formatHm,
3383
+ Ho as formatItemKey,
3384
+ ot as formatPeriod,
3385
+ ta as freshSources,
3386
+ Zr as getActivitySeenUserIds,
3387
+ Ci as getContactEndpoints,
3388
+ Bi as getShortTitle,
3389
+ Ki as getUrgencyScore,
3390
+ De as heightOf,
3391
+ ji as helpCenterText,
3392
+ mo as humanizeAction,
3393
+ rn as interactionIdOf,
3394
+ Lo as isAgentUser,
3395
+ Pi as isAssigned,
3396
+ Si as isAssignmentTerminal,
3397
+ en as isAssignmentTrigger,
3398
+ So as isAutoReady,
3399
+ Gt as isAwaitingThem,
3400
+ ei as isChatMessageActivity,
3401
+ Ui as isClosed,
3402
+ Vr as isConnectedType,
3403
+ Wa as isDeepLink,
3404
+ Wt as isDescendant,
3405
+ Oi as isEligible,
3406
+ Qr as isEmailActivity,
3407
+ us as isHtmlBody,
3408
+ To as isInFlight,
3409
+ Dt as isInteractionUnseen,
3410
+ Va as isLandingPath,
3411
+ Ct as isLikelyBulk,
3412
+ _e as isMessageShape,
3413
+ jr as isMessageType,
3414
+ zn as isMoreSpecificPattern,
3415
+ ea as isOutwardTool,
3416
+ Bt as isParked,
3417
+ dn as isPaused,
3418
+ Wr as isPlaybookAuthoredType,
3419
+ ss as isPublicEmailDomain,
3420
+ Xa as isPublicPath,
3421
+ Ht as isReminderActive,
3422
+ Gr as isReplyableType,
3423
+ $i as isSlaAtRisk,
3424
+ _o as isTerminal,
3425
+ Ni as isThreadLongEnough,
3426
+ zr as isTranscriptType,
3427
+ Xo as isWorkClosed,
3428
+ No as isWorkTypeVisible,
3429
+ Fo as itemDossierKeys,
3430
+ Tn as ladderFor,
3431
+ Hi as linkLabel,
3432
+ ci as listeningAllowed,
3433
+ Fi as localeInstruction,
3434
+ Gi as localeName,
3435
+ Vi as localesOf,
3436
+ is as looksLikeEmail,
3437
+ fa as matchContactToIntents,
3438
+ Xn as matchPublicRoute,
3439
+ Yi as mcpCredentialScope,
3440
+ qi as mcpToolPrefix,
3441
+ es as mergeShownKeys,
3442
+ Je as messageCountsAs,
3443
+ cs as needsPhoneRegion,
3444
+ fi as normalizeArtifactBlocks,
3445
+ Kr as normalizeBlocks,
3446
+ Ge as normalizeEmail,
3447
+ S as normalizeExample,
3448
+ xa as notificationPrefKey,
3449
+ ir as novelty,
3450
+ Ia as operationDescriptor,
3451
+ Ta as operationsForKind,
3452
+ vi as parkMarksById,
3453
+ ao as parseActingIdentity,
3454
+ jo as parseItemKey,
3455
+ Fn as pathToRegex,
3456
+ ui as periodsInRange,
3457
+ os as phoneSuffix,
3458
+ xi as pickMailHeaders,
3459
+ Ye as plainTextFromMarkdown,
3460
+ Qt as playbookActor,
3461
+ Eo as procedureOf,
3462
+ Wo as projectDossierKeys,
3463
+ Vn as publicBasePathFor,
3464
+ za as publicRoutePatterns,
3465
+ B as readPath,
3466
+ ce as readStepError,
3467
+ Kt as recencyOf,
3468
+ tn as refKey,
3469
+ fr as registrableDomain,
3470
+ yn as rejectExampleCandidate,
3471
+ no as relatedByDefault,
3472
+ Rn as resolveAccountCapabilities,
3473
+ H as resolveActivityText,
3474
+ xn as resolveChannelIntents,
3475
+ It as resolveSignature,
3476
+ La as resolveWorkMode,
3477
+ ja as resourceKindOf,
3478
+ so as runActor,
3479
+ wo as runInteractionId,
3480
+ yt as sanitizeInline,
3481
+ qn as sanitizeTranscript,
3482
+ Li as scoreInteraction,
3483
+ Bo as scoreWorkItem,
3484
+ Xi as selectLenses,
3485
+ sa as sessionsHoldCannotReach,
3486
+ aa as sessionsToHold,
3487
+ Ce as shareKeyForTeam,
3488
+ ke as shareKeyForUser,
3489
+ bi as shareKeysForViewer,
3490
+ Pa as shouldRunAudioPipeline,
3491
+ Di as slaHoursByInbox,
3492
+ jt as slaHoursFor,
3493
+ wn as sortStatuses,
3494
+ Nn as sourceKey,
3495
+ Vo as statusIn,
3496
+ Ao as stepsOf,
3497
+ qe as stripHtml,
3498
+ Io as subjectKeyOf,
3499
+ $e as subjectOf,
3500
+ ia as subjectRef,
3501
+ Go as suggestProjectKey,
3502
+ po as targetById,
3503
+ uo as targetForActivityType,
3504
+ Zt as toActingIdentity,
3505
+ ge as toE164,
3506
+ Ai as toolSourceKinds,
3507
+ bn as topicOfferedForTeam,
3508
+ $o as topicsForTeam,
3509
+ hn as truncateExample,
3510
+ Yo as uniqueWorkStatusKey,
3511
+ vo as uniqueWorkTypeKey,
3512
+ dt as usageMetricId,
3513
+ di as usageMetrics,
3514
+ qo as validateStatuses,
3515
+ lo as valueAtPath,
3516
+ j as waitHoursOf,
3517
+ Ti as wakesAssignment,
3518
+ _n as workItemScopeKey,
3519
+ Le as workProjectScopeKey,
3520
+ Mn as workStatusKey,
3521
+ pn as workTypeKey
3173
3522
  };