@commentkit/comment-kit 2.1.1 → 2.1.2

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/npm/chunks/{AgentSend-B4rxdY68.js → AgentSend-DhG61w_r.js} +2 -2
  3. package/dist/npm/chunks/{Checklist-Cy68X5qC.js → Checklist-C2q5KzWe.js} +8 -7
  4. package/dist/npm/chunks/{Composer-D65l6Jg4.js → Composer-Dj0YAYOR.js} +27 -26
  5. package/dist/npm/chunks/{DatePicker-BPzzqW3f.js → DatePicker-TshUaQHj.js} +1 -1
  6. package/dist/npm/chunks/{Guest-C-ZhARI0.js → Guest-bAxvxjbL.js} +4 -3
  7. package/dist/npm/chunks/{MarkupEditor-BOb2jFTR.js → MarkupEditor-DnViTOOC.js} +2 -1
  8. package/dist/npm/chunks/{Panel-DgdCgaC-.js → Panel-C3_NURrp.js} +109 -108
  9. package/dist/npm/chunks/{Settings-BbWu2Rd5.js → Settings-BM7pWbwd.js} +18 -17
  10. package/dist/npm/chunks/{Shortcuts-C5wEx-Mq.js → Shortcuts-CFDTnP5H.js} +3 -3
  11. package/dist/npm/chunks/{SignInFirst-BlMbutED.js → SignInFirst-CeiPhLx0.js} +3 -3
  12. package/dist/npm/chunks/{StyleEditor-BN2z7mUs.js → StyleEditor-BUZrhAY6.js} +2 -2
  13. package/dist/npm/chunks/{StylePanel-BZk-r-kl.js → StylePanel-CFp-U7qa.js} +2 -2
  14. package/dist/npm/chunks/TaskFields-C4GddJTi.js +652 -0
  15. package/dist/npm/chunks/{ThreadCard-xKy4JbXK.js → ThreadCard-CwClbMNh.js} +60 -59
  16. package/dist/npm/chunks/{Viewer-DL6M3wAT.js → Viewer-oM3stPeq.js} +1 -1
  17. package/dist/npm/chunks/{agent-D1VQvc14.js → agent-DfUu5BAp.js} +1 -1
  18. package/dist/npm/chunks/{card-bits-B94SwnS9.js → card-bits-BXOCnmcQ.js} +2 -2
  19. package/dist/npm/chunks/{client-CULjcQxz.js → client-BqcfSisZ.js} +7 -7
  20. package/dist/npm/chunks/{confetti-K_xKxQGa.js → confetti-CM1XHlrM.js} +1 -1
  21. package/dist/npm/chunks/{dpop-DpxIN5kL.js → dpop-CHzhM9ud.js} +1 -1
  22. package/dist/npm/chunks/{entrance-CO0AzUKy.js → entrance-D7kmBxF3.js} +29 -29
  23. package/dist/npm/chunks/{extension-DpfiPOjC.js → extension-PWW2UQD7.js} +1 -1
  24. package/dist/npm/chunks/{extension-faFfCApb.js → extension-TF7pIF_W.js} +2 -2
  25. package/dist/npm/chunks/{identify-963WDKul.js → identify-CoQ4rxaI.js} +1 -1
  26. package/dist/npm/chunks/{live-BI72WQBA.js → live-HKWO5Tsg.js} +5 -5
  27. package/dist/npm/chunks/{page-key-CW8Mtf60.js → page-key-z6o1r8Uu.js} +1 -1
  28. package/dist/npm/chunks/{pick-BRhngGMq.js → pick-Bai3lMZX.js} +1 -1
  29. package/dist/npm/chunks/{pkce-BEeLAZhN.js → pkce-B6VU0dtv.js} +1 -1
  30. package/dist/npm/chunks/{report-DAzQvgUh.js → report-D-yxx5uK.js} +1 -1
  31. package/dist/npm/chunks/sheet-77GHVTpR.js +18 -0
  32. package/dist/npm/chunks/{show-Ka3g4eCJ.js → show-C3bJFyaD.js} +11 -9
  33. package/dist/npm/chunks/{signin-Car5vP1U.js → signin-Bq2KYFLY.js} +3 -3
  34. package/dist/npm/chunks/{source-dd_it90W.js → source-W_nJm3Ym.js} +1 -1
  35. package/dist/npm/chunks/{src-fTYV50pw.js → src-BFu9DgRc.js} +57 -52
  36. package/dist/npm/chunks/{start-CE5eR33Z.js → start-Dgw3mSp8.js} +428 -429
  37. package/dist/npm/chunks/{upload-Dcv9CCly.js → upload-b0nY04eW.js} +1 -1
  38. package/dist/npm/chunks/{uploads-CmeoNVO2.js → uploads-Df4mLJ9O.js} +21 -20
  39. package/dist/npm/chunks/waiting-BRtT3ZZT.js +54 -0
  40. package/dist/npm/chunks/{wrap-B0mzrRhc.js → wrap-BuWw3zAq.js} +1 -1
  41. package/dist/npm/element.js +1 -1
  42. package/dist/npm/headless.js +2 -2
  43. package/dist/npm/index.js +2 -2
  44. package/dist/npm/react.js +1 -1
  45. package/dist/npm/svelte.js +1 -1
  46. package/dist/npm/types/core/client.d.ts +2 -0
  47. package/dist/npm/vue.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/npm/chunks/TaskFields-B2-YvIwV.js +0 -617
@@ -1,41 +1,42 @@
1
1
  import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
2
- import { n as t } from "./src-fTYV50pw.js";
3
- import { o as n, v as r } from "./client-CULjcQxz.js";
2
+ import { n as t } from "./src-BFu9DgRc.js";
3
+ import { o as n, v as r } from "./client-BqcfSisZ.js";
4
4
  import { i, o as a, t as o } from "./anchor-BsQNVkHj.js";
5
5
  import { _ as s, a as c, b as l, c as u, d, f, g as p, h as m, l as h, m as g, n as _, o as v, r as y, s as b, u as x, v as S, x as C, y as w } from "./i18n-CDw_D17c.js";
6
6
  import { a as T, i as E, n as D, r as O } from "./drafts-B0ctr1g9.js";
7
+ import { n as k } from "./sheet-77GHVTpR.js";
7
8
  // src/capture/diagnostics.ts
8
- var k = 20, A = /token|key|secret|passw|^pass$|auth|code|session|sig|credential|^x-amz-|ck_invite/i, j = /[\w.%+-]{1,64}@[A-Za-z0-9-]{1,63}(?:\.[A-Za-z0-9-]{1,63}){0,8}\.[A-Za-z]{2,24}/g, M = /(^|[^\w-])(\+?\d(?:[\s().-]{0,2}\d){8,})(?!\w)/g, N = (e) => e.replace(j, "[email]").replace(M, "$1[number]"), P = /eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+/, F = 1e3, I = [], L = [], R = !1, z = "";
9
+ var A = 20, j = /token|key|secret|passw|^pass$|auth|code|session|sig|credential|^x-amz-|ck_invite/i, M = /[\w.%+-]{1,64}@[A-Za-z0-9-]{1,63}(?:\.[A-Za-z0-9-]{1,63}){0,8}\.[A-Za-z]{2,24}/g, N = /(^|[^\w-])(\+?\d(?:[\s().-]{0,2}\d){8,})(?!\w)/g, P = (e) => e.replace(M, "[email]").replace(N, "$1[number]"), F = /eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+/, I = 1e3, L = [], R = [], z = !1, B = "";
9
10
  function ee(e) {
10
- if (R || !(e.console || e.network)) return () => void 0;
11
- R = !0, z = `${new URL(e.endpoint ?? "https://commentkit.dev").origin}/api/v1/`;
11
+ if (z || !(e.console || e.network)) return () => void 0;
12
+ z = !0, B = `${new URL(e.endpoint ?? "https://commentkit.dev").origin}/api/v1/`;
12
13
  let t, n = !1;
13
- return import("./wrap-B0mzrRhc.js").then((r) => n || (t = r.wrap(e)), () => void 0), () => {
14
- n = !0, t?.(), V(), R = !1;
14
+ return import("./wrap-BuWw3zAq.js").then((r) => n || (t = r.wrap(e)), () => void 0), () => {
15
+ n = !0, t?.(), te(), z = !1;
15
16
  };
16
17
  }
17
- function B() {
18
+ function V() {
18
19
  return {
19
- console: I.length ? [...I] : void 0,
20
- network: L.length ? [...L] : void 0
20
+ console: L.length ? [...L] : void 0,
21
+ network: R.length ? [...R] : void 0
21
22
  };
22
23
  }
23
- function V() {
24
- I.length = 0, L.length = 0;
24
+ function te() {
25
+ L.length = 0, R.length = 0;
25
26
  }
26
- function te(e, t, n, r) {
27
+ function ne(e, t, n, r) {
27
28
  try {
28
- if (new URL(t, location.href).href.startsWith(z)) return;
29
+ if (new URL(t, location.href).href.startsWith(B)) return;
29
30
  } catch {}
30
- ne(L, {
31
+ re(R, {
31
32
  method: e.slice(0, 10),
32
- url: re(t).slice(0, 2e3),
33
+ url: ie(t).slice(0, 2e3),
33
34
  status: n,
34
35
  duration_ms: Math.round(performance.now() - r)
35
36
  });
36
37
  }
37
- function ne(e, t) {
38
- e.push(t), e.length > k && e.shift();
38
+ function re(e, t) {
39
+ e.push(t), e.length > A && e.shift();
39
40
  }
40
41
  function H(e) {
41
42
  if (e.length < 24 || !/^[\w~+/=.-]+$/.test(e) || !/\d/.test(e) || !/[a-z]/i.test(e) || /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)) return !1;
@@ -45,20 +46,20 @@ function H(e) {
45
46
  for (let r of t.values()) n -= r / e.length * Math.log2(r / e.length);
46
47
  return n >= 3.5;
47
48
  }
48
- function re(e) {
49
+ function ie(e) {
49
50
  try {
50
51
  let t = new URL(e, location.href);
51
- t.username = "", t.password = "", t.pathname = t.pathname.split("/").map((e) => P.test(e) || H(e) && /[A-Za-z\d]{16}/.test(e) && !e.includes(".") ? "[redacted]" : N(U(e)) === U(e) ? e : N(U(e))).join("/");
52
- for (let [e, n] of [...t.searchParams]) A.test(e) || H(n) ? t.searchParams.set(e, "[redacted]") : N(n) !== n && t.searchParams.set(e, N(n));
53
- return t.hash && (A.test(t.hash) || t.hash.split(/[#&=/]/).some(H) || N(U(t.hash)) !== U(t.hash)) && (t.hash = "#[redacted]"), t.toString();
52
+ t.username = "", t.password = "", t.pathname = t.pathname.split("/").map((e) => F.test(e) || H(e) && /[A-Za-z\d]{16}/.test(e) && !e.includes(".") ? "[redacted]" : P(W(e)) === W(e) ? e : P(W(e))).join("/");
53
+ for (let [e, n] of [...t.searchParams]) j.test(e) || H(n) ? t.searchParams.set(e, "[redacted]") : P(n) !== n && t.searchParams.set(e, P(n));
54
+ return t.hash && (j.test(t.hash) || t.hash.split(/[#&=/]/).some(H) || P(W(t.hash)) !== W(t.hash)) && (t.hash = "#[redacted]"), t.toString();
54
55
  } catch {
55
56
  return "[unparseable url]";
56
57
  }
57
58
  }
58
- function ie(e) {
59
- return e.replace(/Bearer\s+[A-Za-z0-9._~+/-]+=*/gi, "Bearer [redacted]").replace(new RegExp(P.source, "g"), "[redacted-jwt]").replace(/https?:\/\/[^\s"'<>]+/g, (e) => re(e)).replace(/\b((?:[\w-]*[_-])?(?:token|secret|password|passwd|pwd|api[_-]?key|access[_-]?key|private[_-]?key|session[_-]?id|signature|authorization|auth[_-]?code))(["']?\s*[:=]\s*["']?)(?!\[redacted)[^\s"'&,;]+/gi, "$1$2[redacted]").replace(/[\w~+=-]{24,}/g, (e) => H(e) ? "[redacted]" : e);
59
+ function U(e) {
60
+ return e.replace(/Bearer\s+[A-Za-z0-9._~+/-]+=*/gi, "Bearer [redacted]").replace(new RegExp(F.source, "g"), "[redacted-jwt]").replace(/https?:\/\/[^\s"'<>]+/g, (e) => ie(e)).replace(/\b((?:[\w-]*[_-])?(?:token|secret|password|passwd|pwd|api[_-]?key|access[_-]?key|private[_-]?key|session[_-]?id|signature|authorization|auth[_-]?code))(["']?\s*[:=]\s*["']?)(?!\[redacted)[^\s"'&,;]+/gi, "$1$2[redacted]").replace(/[\w~+=-]{24,}/g, (e) => H(e) ? "[redacted]" : e);
60
61
  }
61
- var U = (e) => {
62
+ var W = (e) => {
62
63
  try {
63
64
  return decodeURIComponent(e);
64
65
  } catch {
@@ -66,76 +67,76 @@ var U = (e) => {
66
67
  }
67
68
  };
68
69
  function ae(e) {
69
- return N(ie(e.slice(0, F))).slice(0, F);
70
+ return P(U(e.slice(0, I))).slice(0, I);
70
71
  }
71
72
  // src/ui/format.tsx
72
73
  function oe(e, t = innerWidth) {
73
74
  return !!e.breakpoint && Math.abs(e.breakpoint - t) > 200;
74
75
  }
75
- var se = (e) => e < 600 ? "phone" : e < 1024 ? "tablet" : "wide", W = (e) => `${Math.round(e * 100) / 100}px`, G = (e, t, n, r) => ({
76
- left: W(e),
77
- top: W(t),
78
- ...n === void 0 ? {} : { width: W(n) },
79
- ...r === void 0 ? {} : { height: W(r) }
76
+ var se = (e) => e < 600 ? "phone" : e < 1024 ? "tablet" : "wide", G = (e) => `${Math.round(e * 100) / 100}px`, K = (e, t, n, r) => ({
77
+ left: G(e),
78
+ top: G(t),
79
+ ...n === void 0 ? {} : { width: G(n) },
80
+ ...r === void 0 ? {} : { height: G(r) }
80
81
  });
81
82
  function ce({ text: e, people: t = [] }) {
82
- let n = he(t), r = [], i = 0;
83
- for (let t of e.matchAll(K)) {
83
+ let n = _e(t), r = [], i = 0;
84
+ for (let t of e.matchAll(q)) {
84
85
  let a = t.index ?? 0;
85
- a > i && r.push(q(e.slice(i, a), n)), r.push(/* @__PURE__ */ x("pre", {
86
+ a > i && r.push(J(e.slice(i, a), n)), r.push(/* @__PURE__ */ x("pre", {
86
87
  class: "ck-pre",
87
88
  children: /* @__PURE__ */ x("code", { children: t[2].replace(/^\n|\n$/g, "") })
88
89
  })), i = a + t[0].length;
89
90
  }
90
- return i < e.length && r.push(q(e.slice(i), n)), /* @__PURE__ */ x(l, { children: r });
91
+ return i < e.length && r.push(J(e.slice(i), n)), /* @__PURE__ */ x(l, { children: r });
91
92
  }
92
- var K = /```([\w-]*)\n?([\s\S]*?)```/g;
93
- function q(e, t) {
93
+ var q = /```([\w-]*)\n?([\s\S]*?)```/g;
94
+ function J(e, t) {
94
95
  let n = e.replace(/^\n/, "").split("\n");
95
- return n.map((e, r) => /* @__PURE__ */ x(l, { children: [ge(e, t), r < n.length - 1 ? /* @__PURE__ */ x("br", {}) : null] }));
96
- }
97
- var J = null;
98
- function le(e) {
99
- J = e;
96
+ return n.map((e, r) => /* @__PURE__ */ x(l, { children: [X(e, t), r < n.length - 1 ? /* @__PURE__ */ x("br", {}) : null] }));
100
97
  }
98
+ var le = null;
101
99
  function ue(e) {
100
+ le = e;
101
+ }
102
+ function de(e) {
102
103
  return [...e.includes("‍") ? e : e.replace(/\ufe0f/g, "")].map((e) => e.codePointAt(0).toString(16)).join("-");
103
104
  }
104
- function de({ char: e }) {
105
+ function fe({ char: e }) {
105
106
  let [t, n] = s(!1);
106
- return !J || t ? /* @__PURE__ */ x(l, { children: e }) : /* @__PURE__ */ x("img", {
107
+ return !le || t ? /* @__PURE__ */ x(l, { children: e }) : /* @__PURE__ */ x("img", {
107
108
  class: "ck-emoji",
108
- src: `${J}/emoji/${ue(e)}.svg`,
109
+ src: `${le}/emoji/${de(e)}.svg`,
109
110
  alt: e,
110
111
  draggable: !1,
111
112
  loading: "lazy",
112
113
  onError: () => n(!0)
113
114
  });
114
115
  }
115
- var Y = String.raw`\p{Extended_Pictographic}(?:\ufe0f|\p{Emoji_Modifier}|\u200d\p{Extended_Pictographic}\ufe0f?)*`, fe = String.raw`\*\*[^*\n]+\*\*|~~[^~\n]+~~|\x60[^\x60\n]+\x60|\*[^*\s][^*\n]*\*|(?:^|[\s(\[])_[^_\n]+_(?![\p{L}\p{N}_])`, pe = String.raw`https?:\/\/[^\s<>"')\u200b-\u200f\u202a-\u202e\u2060-\u2069\ufeff]+`, me = `${fe}|${pe}`, X = /* @__PURE__ */ new Map();
116
- function he(e) {
117
- let t = e.join("\0"), n = X.get(t);
116
+ var pe = String.raw`\p{Extended_Pictographic}(?:\ufe0f|\p{Emoji_Modifier}|\u200d\p{Extended_Pictographic}\ufe0f?)*`, me = String.raw`\*\*[^*\n]+\*\*|~~[^~\n]+~~|\x60[^\x60\n]+\x60|\*[^*\s][^*\n]*\*|(?:^|[\s(\[])_[^_\n]+_(?![\p{L}\p{N}_])`, he = String.raw`https?:\/\/[^\s<>"')\u200b-\u200f\u202a-\u202e\u2060-\u2069\ufeff]+`, ge = `${me}|${he}`, Y = /* @__PURE__ */ new Map();
117
+ function _e(e) {
118
+ let t = e.join("\0"), n = Y.get(t);
118
119
  if (!n) {
119
120
  let r = [...e].filter(Boolean).sort((e, t) => t.length - e.length).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")), i = `(?:^|[\\s(\\[])@(?:${r.length ? `${r.join("|")}|` : ""}[\\p{L}\\p{N}._-]+)`;
120
- n = RegExp(`${me}|${i}|${Y}`, "gu"), X.set(t, n);
121
+ n = RegExp(`${ge}|${i}|${pe}`, "gu"), Y.set(t, n);
121
122
  }
122
123
  return n;
123
124
  }
124
- function ge(e, t) {
125
+ function X(e, t) {
125
126
  let n = [], r = 0;
126
127
  for (let i of e.matchAll(t)) {
127
128
  let a = i[0], o = i.index ?? 0;
128
- if (/^[\s(\[]/.test(a) && /[_@]/.test(a[1] ?? "") && (o += 1, a = a.slice(1)), o > r && n.push(e.slice(r, o)), a.startsWith("**")) n.push(/* @__PURE__ */ x("strong", { children: ge(a.slice(2, -2), t) }));
129
- else if (a.startsWith("~~")) n.push(/* @__PURE__ */ x("s", { children: ge(a.slice(2, -2), t) }));
129
+ if (/^[\s(\[]/.test(a) && /[_@]/.test(a[1] ?? "") && (o += 1, a = a.slice(1)), o > r && n.push(e.slice(r, o)), a.startsWith("**")) n.push(/* @__PURE__ */ x("strong", { children: X(a.slice(2, -2), t) }));
130
+ else if (a.startsWith("~~")) n.push(/* @__PURE__ */ x("s", { children: X(a.slice(2, -2), t) }));
130
131
  else if (a.startsWith("`")) n.push(/* @__PURE__ */ x("code", { children: a.slice(1, -1) }));
131
- else if (a.startsWith("*") || a.startsWith("_")) n.push(/* @__PURE__ */ x("em", { children: ge(a.slice(1, -1), t) }));
132
+ else if (a.startsWith("*") || a.startsWith("_")) n.push(/* @__PURE__ */ x("em", { children: X(a.slice(1, -1), t) }));
132
133
  else if (a.startsWith("@")) n.push(/* @__PURE__ */ x("span", {
133
134
  class: "ck-mention",
134
135
  children: /* @__PURE__ */ x("bdi", { children: a })
135
136
  }));
136
- else if (/^\p{Extended_Pictographic}/u.test(a)) n.push(/* @__PURE__ */ x(de, { char: a }));
137
+ else if (/^\p{Extended_Pictographic}/u.test(a)) n.push(/* @__PURE__ */ x(fe, { char: a }));
137
138
  else {
138
- let e = _e(a);
139
+ let e = ve(a);
139
140
  n.push(e ? /* @__PURE__ */ x("a", {
140
141
  href: e,
141
142
  target: "_blank",
@@ -147,7 +148,7 @@ function ge(e, t) {
147
148
  }
148
149
  return r < e.length && n.push(e.slice(r)), n;
149
150
  }
150
- function _e(e, t = "link") {
151
+ function ve(e, t = "link") {
151
152
  if (!e) return null;
152
153
  try {
153
154
  let n = new URL(e);
@@ -156,7 +157,7 @@ function _e(e, t = "link") {
156
157
  return null;
157
158
  }
158
159
  }
159
- function ve({ person: e }) {
160
+ function ye({ person: e }) {
160
161
  let [t, n] = s(!1), r = e.name.split(/\s+/).map((e) => [...e][0]).slice(0, 2).join("").toUpperCase() || "?";
161
162
  return /* @__PURE__ */ x("span", {
162
163
  class: "ck-avatar",
@@ -169,9 +170,9 @@ function ve({ person: e }) {
169
170
  }) : r
170
171
  });
171
172
  }
172
- var ye = (e) => u(`status_${e}`);
173
- function be({ status: e }) {
174
- let t = ye(e);
173
+ var be = (e) => u(`status_${e}`);
174
+ function xe({ status: e }) {
175
+ let t = be(e);
175
176
  return /* @__PURE__ */ x("span", {
176
177
  class: "ck-status",
177
178
  "data-status": e,
@@ -179,7 +180,7 @@ function be({ status: e }) {
179
180
  children: t
180
181
  });
181
182
  }
182
- function xe({ name: e, size: t = 18 }) {
183
+ function Se({ name: e, size: t = 18 }) {
183
184
  return /* @__PURE__ */ x("svg", {
184
185
  width: t,
185
186
  height: t,
@@ -201,10 +202,10 @@ function xe({ name: e, size: t = 18 }) {
201
202
  }[e] })
202
203
  });
203
204
  }
204
- function Se(e) {
205
+ function Ce(e) {
205
206
  e?.focus({ preventScroll: !0 });
206
207
  }
207
- function Ce(e) {
208
+ function we(e) {
208
209
  if (!e) return;
209
210
  let t = e.getBoundingClientRect(), n = e.parentElement?.closest(".ck-panel, .ck-card")?.getBoundingClientRect() ?? {
210
211
  left: 0,
@@ -217,7 +218,7 @@ function Z(e, t) {
217
218
  let [n, r] = s(() => t(e.get()));
218
219
  return d(() => (r(t(e.get())), e.subscribe((e) => r(() => t(e)))), [e]), n;
219
220
  }
220
- function we(e) {
221
+ function Te(e) {
221
222
  let [, t] = s(0), [n] = s(() => ({
222
223
  version: 0,
223
224
  watch: () => void 0
@@ -280,7 +281,7 @@ function we(e) {
280
281
  };
281
282
  }, [e]), n;
282
283
  }
283
- function Te() {
284
+ function Ee() {
284
285
  let [e, t] = s(() => typeof navigator > "u" || navigator.onLine !== !1);
285
286
  return d(() => {
286
287
  let e = () => t(!0), n = () => t(!1);
@@ -289,7 +290,7 @@ function Te() {
289
290
  };
290
291
  }, []), e;
291
292
  }
292
- function Ee(e, t, n = !1) {
293
+ function De(e, t, n = !1) {
293
294
  let r = !n && getComputedStyle(e.currentTarget).direction === "rtl", i = n ? [
294
295
  "ArrowDown",
295
296
  "j",
@@ -312,32 +313,32 @@ function Q(e, t, n) {
312
313
  e && !r && t().then((e) => i(() => e), n);
313
314
  }, [e]), r;
314
315
  }
315
- function De(e, t, n) {
316
+ function Oe(e, t, n) {
316
317
  f(() => {
317
318
  if (!e) return;
318
319
  let r = (e) => t.current && !e.composedPath().includes(t.current) && n();
319
320
  return addEventListener("pointerdown", r, !0), () => removeEventListener("pointerdown", r, !0);
320
321
  }, [e]);
321
322
  }
322
- function Oe(e) {
323
+ function ke(e) {
323
324
  return e.composedPath().some((e) => e instanceof HTMLElement && (e.isContentEditable || [
324
325
  "INPUT",
325
326
  "TEXTAREA",
326
327
  "SELECT"
327
328
  ].includes(e.tagName)));
328
329
  }
329
- function ke(e) {
330
+ function Ae(e) {
330
331
  let t = e.target;
331
- return (t === document.body || t === document.documentElement || t instanceof Element && t.hasAttribute("data-commentkit-host")) && !Oe(e);
332
+ return (t === document.body || t === document.documentElement || t instanceof Element && t.hasAttribute("data-commentkit-host")) && !ke(e);
332
333
  }
333
- function Ae() {
334
+ function je() {
334
335
  return typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent);
335
336
  }
336
- function je() {
337
+ function Me() {
337
338
  return matchMedia("(pointer: coarse)").matches && !matchMedia("(any-pointer: fine)").matches;
338
339
  }
339
340
  // src/ui/errors.ts
340
- var Me = {
341
+ var Ne = {
341
342
  network_error: "networkError",
342
343
  upload_failed: "uploadFailed",
343
344
  share_expired: "shareExpired",
@@ -355,56 +356,39 @@ var Me = {
355
356
  edit_conflict: "editConflict",
356
357
  internal_error: "serverError",
357
358
  insecure_context: "insecureContext"
358
- }, Ne = /* @__PURE__ */ new Set(["file_rejected", "thread_not_found"]);
359
- function Pe(e) {
359
+ }, Pe = /* @__PURE__ */ new Set(["file_rejected", "thread_not_found"]);
360
+ function Fe(e) {
360
361
  if (!(e instanceof r)) return u("errorGeneric");
361
- if (Ne.has(e.code)) return e.message;
362
- let t = Me[e.code] ?? (e.status === 410 ? "shareExpired" : e.status === 429 ? "tooFast" : null);
362
+ if (Pe.has(e.code)) return e.message;
363
+ let t = Ne[e.code] ?? (e.status === 410 ? "shareExpired" : e.status === 429 ? "tooFast" : null);
363
364
  return t ? u(t) : _() === "en" && e.status >= 400 && e.message ? e.message : u("errorGeneric");
364
365
  }
365
366
  // src/ui/draft-key.ts
366
- var Fe = "commentkit:pending-compose", Ie = "commentkit:press-send", Le = "commentkit:comment-after-sign-in", Re = "commentkit:inbox-after-sign-in";
367
- function ze(e, t, n = e.pageKey()) {
367
+ var Ie = "commentkit:pending-compose", Le = "commentkit:press-send", Re = "commentkit:comment-after-sign-in", ze = "commentkit:inbox-after-sign-in";
368
+ function Be(e, t, n = e.pageKey()) {
368
369
  return D(e.options.project, n, t.type, t.selector, t.ck_id, t.source, t.quote);
369
370
  }
370
371
  // src/ui/privacy.ts
371
- var Be = (e, t) => e?.privacy?.mode === "strict" ? "strict" : t, Ve = [], He = null;
372
- function Ue(e) {
373
- He = e, e && Ve.forEach((t) => Ge(e, t));
374
- }
375
- function We(e) {
376
- Ve.includes(e) || (Ve.push(e), He && Ge(He, e));
377
- }
378
- function Ge(e, t) {
379
- if ("adoptedStyleSheets" in e && "replaceSync" in CSSStyleSheet.prototype) {
380
- let n = new CSSStyleSheet();
381
- n.replaceSync(t), e.adoptedStyleSheets = [...e.adoptedStyleSheets, n];
382
- } else {
383
- let n = document.createElement("style");
384
- n.textContent = t, e.insertBefore(n, e.querySelector(".ck-root"));
385
- }
386
- }
387
- // src/ui/deep-links.ts
388
- var Ke = "commentkit:share";
389
- function qe(e, t) {
372
+ var Ve = (e, t) => e?.privacy?.mode === "strict" ? "strict" : t, He = "commentkit:share";
373
+ function Ue(e, t) {
390
374
  let n = new URL(location.href).searchParams.get(e);
391
- return !n || !t.test(n) ? null : (Ze(location.href.replace(/^[^#]*/, (t) => t.replace(RegExp(`([?&])${e}=[^&]*(&?)`), (e, t, n) => n ? t : ""))), n);
375
+ return !n || !t.test(n) ? null : (qe(location.href.replace(/^[^#]*/, (t) => t.replace(RegExp(`([?&])${e}=[^&]*(&?)`), (e, t, n) => n ? t : ""))), n);
392
376
  }
393
- function Je(e, t) {
377
+ function We(e, t) {
394
378
  let [, n = "", r = ""] = /^([^#]*)(.*)$/s.exec(e) ?? [];
395
379
  return `${n}${n.includes("?") ? "&" : "?"}ck_thread=${encodeURIComponent(t)}${r}`;
396
380
  }
397
- function Ye() {
398
- let e = qe("ck", /^[A-Za-z0-9]{16,128}$/);
399
- return e && E(Ke, e), e ?? E(Ke);
381
+ function Ge() {
382
+ let e = Ue("ck", /^[A-Za-z0-9]{16,128}$/);
383
+ return e && E(He, e), e ?? E(He);
400
384
  }
401
- var Xe = () => qe("ck_thread", /^[0-9a-f-]{36}$/i);
402
- function Ze(e) {
385
+ var Ke = () => Ue("ck_thread", /^[0-9a-f-]{36}$/i);
386
+ function qe(e) {
403
387
  try {
404
388
  history.replaceState(history.state, "", e);
405
389
  } catch {}
406
390
  }
407
- function Qe(e, t = () => location.href) {
391
+ function Je(e, t = () => location.href) {
408
392
  let n = location.href, r = t(), i = () => {
409
393
  if (location.href !== n) {
410
394
  n = location.href;
@@ -419,27 +403,27 @@ function Qe(e, t = () => location.href) {
419
403
  };
420
404
  }
421
405
  // src/ui/prefs.ts
422
- var $e = "commentkit:v1:prefs", et = /* @__PURE__ */ new Set(), tt = null;
423
- function nt(e = !0) {
424
- if (tt !== null) return tt;
406
+ var Ye = "commentkit:v1:prefs", Xe = /* @__PURE__ */ new Set(), Ze = null;
407
+ function Qe(e = !0) {
408
+ if (Ze !== null) return Ze;
425
409
  try {
426
- let t = JSON.parse(O($e) ?? "{}")?.shortcuts;
410
+ let t = JSON.parse(O(Ye) ?? "{}")?.shortcuts;
427
411
  return typeof t == "boolean" ? t : e;
428
412
  } catch {
429
413
  return e;
430
414
  }
431
415
  }
432
- function rt(e) {
433
- return e.options.shortcuts !== !1 && nt(!!e.state.get().session?.capabilities.triage);
416
+ function $e(e) {
417
+ return e.options.shortcuts !== !1 && Qe(!!e.state.get().session?.capabilities.triage);
434
418
  }
435
- function it(e) {
436
- tt = e, O($e, JSON.stringify({ shortcuts: e })), et.forEach((e) => e());
419
+ function et(e) {
420
+ Ze = e, O(Ye, JSON.stringify({ shortcuts: e })), Xe.forEach((e) => e());
437
421
  }
438
- function at(e) {
439
- return et.add(e), () => void et.delete(e);
422
+ function tt(e) {
423
+ return Xe.add(e), () => void Xe.delete(e);
440
424
  }
441
425
  // src/ui/Welcome.tsx
442
- function ot({ id: e, position: t, title: n, body: r, primary: i, secondary: a, onPrimary: o, onSecondary: s }) {
426
+ function nt({ id: e, position: t, title: n, body: r, primary: i, secondary: a, onPrimary: o, onSecondary: s }) {
443
427
  return /* @__PURE__ */ x("div", {
444
428
  class: "ck-welcome",
445
429
  "data-pos": t,
@@ -467,8 +451,8 @@ function ot({ id: e, position: t, title: n, body: r, primary: i, secondary: a, o
467
451
  ]
468
452
  });
469
453
  }
470
- function st({ position: e, project: t, onStart: n, onDismiss: r }) {
471
- return /* @__PURE__ */ x(ot, {
454
+ function rt({ position: e, project: t, onStart: n, onDismiss: r }) {
455
+ return /* @__PURE__ */ x(nt, {
472
456
  id: "ck-welcome-title",
473
457
  position: e,
474
458
  title: u("welcomeTitle", { project: t }),
@@ -479,8 +463,8 @@ function st({ position: e, project: t, onStart: n, onDismiss: r }) {
479
463
  onSecondary: r
480
464
  });
481
465
  }
482
- function ct({ position: e, project: t, onContinue: n, onDismiss: r }) {
483
- return /* @__PURE__ */ x(ot, {
466
+ function it({ position: e, project: t, onContinue: n, onDismiss: r }) {
467
+ return /* @__PURE__ */ x(nt, {
484
468
  id: "ck-signin-link-title",
485
469
  position: e,
486
470
  title: u("signInLinkTitle", { project: t }),
@@ -492,8 +476,8 @@ function ct({ position: e, project: t, onContinue: n, onDismiss: r }) {
492
476
  });
493
477
  }
494
478
  // src/ui/chunks.ts
495
- function lt(e, n, r, i, a, o) {
496
- let s = Q(a, () => t(() => import("./Settings-BbWu2Rd5.js")).then((e) => e.Settings), o), c = Q(i, () => t(() => import("./Shortcuts-C5wEx-Mq.js")).then((e) => e.Shortcuts), o), l = Q(r.name === "commenting" || r.name === "composing", () => t(() => import("./Composer-D65l6Jg4.js")).then((t) => (e.state.get().config?.features.screenshots !== !1 && t.warmCapture(), t.Composer)), o), u = Q(r.name === "verify", () => t(() => import("./Guest-C-ZhARI0.js")).then((e) => e.GuestVerify), o), d = Q(r.name === "panel", () => t(() => import("./Panel-DgdCgaC-.js")).then((e) => e.Panel), o), p = Q(r.name === "thread" || r.name === "panel" ? r.threadId : null, () => t(() => import("./ThreadCard-xKy4JbXK.js")).then((e) => e.ThreadCard), o), m = () => [[...e.state.get().config?.privacy?.redact_selectors ?? [], ...e.options.redact ?? []], Be(e.state.get().config, e.options.privacy)], h = Q(!0, () => Promise.all([t(() => import("./context-BuMl7A07.js").then((e) => e.t)), t(() => import("./pick-BRhngGMq.js"))]).then(([e, t]) => (e.install(), e.configurePrivacy(...m()), {
479
+ function at(e, n, r, i, a, o) {
480
+ let s = Q(a, () => t(() => import("./Settings-BM7pWbwd.js")).then((e) => e.Settings), o), c = Q(i, () => t(() => import("./Shortcuts-CFDTnP5H.js")).then((e) => e.Shortcuts), o), l = Q(r.name === "commenting" || r.name === "composing", () => t(() => import("./Composer-Dj0YAYOR.js")).then((t) => (e.state.get().config?.features.screenshots !== !1 && t.warmCapture(), t.Composer)), o), u = Q(r.name === "verify", () => t(() => import("./Guest-bAxvxjbL.js")).then((e) => e.GuestVerify), o), d = Q(r.name === "panel", () => t(() => import("./Panel-C3_NURrp.js")).then((e) => e.Panel), o), p = Q(r.name === "thread" || r.name === "panel" ? r.threadId : null, () => t(() => import("./ThreadCard-CwClbMNh.js")).then((e) => e.ThreadCard), o), m = () => [[...e.state.get().config?.privacy?.redact_selectors ?? [], ...e.options.redact ?? []], Ve(e.state.get().config, e.options.privacy)], h = Q(!0, () => Promise.all([t(() => import("./context-BuMl7A07.js").then((e) => e.t)), t(() => import("./pick-Bai3lMZX.js"))]).then(([e, t]) => (e.install(), e.configurePrivacy(...m()), {
497
481
  configurePrivacy: e.configurePrivacy,
498
482
  picker: t
499
483
  })), o);
@@ -508,43 +492,43 @@ function lt(e, n, r, i, a, o) {
508
492
  };
509
493
  }
510
494
  // src/ui/dock.ts
511
- var ut = "commentkit:dock";
512
- function dt(e, t) {
495
+ var ot = "commentkit:dock";
496
+ function st(e, t) {
513
497
  let [n, r] = s(() => {
514
- let e = O(ut);
498
+ let e = O(ot);
515
499
  return e && /^(top|bottom)-(left|center|right)$/.test(e) ? e : null;
516
500
  });
517
501
  return [n ?? e.options.position ?? t?.appearance.position ?? "bottom-right", (e) => {
518
- r(e), O(ut, e);
502
+ r(e), O(ot, e);
519
503
  }];
520
504
  }
521
505
  // src/ui/keys.ts
522
- var ft = (e) => !e.metaKey && !e.ctrlKey && !e.altKey, pt = (e, t) => e.composedPath().some((e) => e instanceof HTMLElement && e.classList.contains(t));
523
- function mt(e, t) {
506
+ var ct = (e) => !e.metaKey && !e.ctrlKey && !e.altKey, lt = (e, t) => e.composedPath().some((e) => e instanceof HTMLElement && e.classList.contains(t));
507
+ function ut(e, t) {
524
508
  let { key: n } = e;
525
- if (e.defaultPrevented || Oe(e) || pt(e, "ck-markup") || pt(e, "ck-pop") || n !== "Escape" && !(t.keys && ke(e))) return null;
509
+ if (e.defaultPrevented || ke(e) || lt(e, "ck-markup") || lt(e, "ck-pop") || n !== "Escape" && !(t.keys && Ae(e))) return null;
526
510
  if (t.help) return n === "Escape" ? "closeHelp" : null;
527
511
  let { view: r, threads: i } = t;
528
- if (n === "?" && ft(e)) return "help";
512
+ if (n === "?" && ct(e)) return "help";
529
513
  if (n === "Escape" && r.name !== "idle") return "back";
530
- if ((n === "c" || n === "C") && ft(e) && r.name === "idle") return "comment";
531
- if ((n === "j" || n === "k") && ft(e) && t.signedIn && (r.name === "idle" || r.name === "thread")) {
532
- if (!i.length || pt(e, "ck-panel")) return null;
514
+ if ((n === "c" || n === "C") && ct(e) && r.name === "idle") return "comment";
515
+ if ((n === "j" || n === "k") && ct(e) && t.signedIn && (r.name === "idle" || r.name === "thread")) {
516
+ if (!i.length || lt(e, "ck-panel")) return null;
533
517
  let t = r.name === "thread" ? i.findIndex((e) => e.id === r.threadId) : -1;
534
518
  return i[(t + (n === "j" ? 1 : i.length - 1 + +(t < 0))) % i.length] ?? null;
535
519
  }
536
520
  return null;
537
521
  }
538
- function ht(e, t) {
522
+ function dt(e, t) {
539
523
  f(() => {
540
524
  let n = (n) => {
541
- let r = mt(n, e());
525
+ let r = ut(n, e());
542
526
  r && (r !== "closeHelp" && n.preventDefault(), t(r));
543
527
  };
544
528
  return addEventListener("keydown", n, !0), () => removeEventListener("keydown", n, !0);
545
529
  });
546
530
  }
547
- function gt(e, t, n) {
531
+ function ft(e, t, n) {
548
532
  let r = t.name === "commenting", i = g(!1);
549
533
  d(() => {
550
534
  (i.current || r) && e.emit("mode", { commenting: r }), i.current = !0;
@@ -555,34 +539,37 @@ function gt(e, t, n) {
555
539
  }, [a]);
556
540
  }
557
541
  // src/ui/Launcher.tsx
558
- function _t({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, onComment: o, onPanel: c, onSignIn: p, onSignOut: m, onShortcuts: h, onApprove: _, onHide: v, onSettings: y, waiting: b, onCode: S, covered: C, entrance: w }) {
559
- let T = Z(e.state, (e) => e.config?.read_only ?? !1), E = Z(e.state, (e) => e.session), D = Z(e.state, (e) => e.unread), [O, k] = s(!1), [A, j] = s(null), M = g(null), N = g(null), P = g(null);
560
- d(() => void (O && N.current?.querySelector("[role=menuitem]")?.focus()), [O]), De(O, N, () => k(!1)), f(() => {
561
- let e = N.current;
562
- if (!w || !e) return;
563
- e.dataset.entering = "";
564
- let n = () => void (e.dataset.entering = "done"), r = setTimeout(() => n(), 1500);
565
- return t(() => import("./entrance-CO0AzUKy.js")).then((t) => {
566
- clearTimeout(r), e.dataset.entering === "" && (n = t.enter(e, w.key, w.say).stop);
567
- }, () => n()), () => (clearTimeout(r), n());
542
+ function pt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, onComment: o, onPanel: c, onSignIn: p, onSignOut: m, onShortcuts: h, onApprove: _, onHide: v, onSettings: y, waiting: b, onCode: S, covered: C, entrance: w, ...T }) {
543
+ let E = Z(e.state, (e) => e.config?.read_only ?? !1), D = Z(e.state, (e) => e.session), O = Z(e.state, (e) => e.unread), [k, A] = s(!1), j = T.menu ?? k, M = T.onMenu ?? A, [N, P] = s(null), F = g(null), I = g(null), L = g(null);
544
+ d(() => void (j && I.current?.querySelector("[role=menuitem]")?.focus()), [j]), Oe(j, I, () => M(!1)), f(() => {
545
+ let n = I.current, r = () => {
546
+ let t = e.wait;
547
+ return e.wait = void 0, !!t?.();
548
+ };
549
+ if (!w || !n) return void r();
550
+ n.dataset.entering = "";
551
+ let i = () => void (r(), n.dataset.entering = "done"), a = setTimeout(() => i(), 1500);
552
+ return t(() => import("./entrance-D7kmBxF3.js")).then((e) => {
553
+ clearTimeout(a), n.dataset.entering === "" && (i = e.enter(n, w.key, w.say, r()).stop);
554
+ }, () => i()), () => (clearTimeout(a), i());
568
555
  }, []);
569
- let F = Ae();
556
+ let R = je();
570
557
  return /* @__PURE__ */ x("div", {
571
558
  class: "ck-launcher",
572
559
  "data-pos": n,
573
560
  "data-covered": C,
574
- "data-dragging": A ? "true" : void 0,
561
+ "data-dragging": N ? "true" : void 0,
575
562
  "data-commentkit-ui": !0,
576
- ref: N,
577
- style: A ? {
578
- left: W(A.x),
579
- top: W(A.y),
563
+ ref: I,
564
+ style: N ? {
565
+ left: G(N.x),
566
+ top: G(N.y),
580
567
  right: "auto",
581
568
  bottom: "auto",
582
569
  translate: "none"
583
570
  } : void 0,
584
571
  children: [
585
- O ? null : b ? /* @__PURE__ */ x("div", {
572
+ j ? null : b ? /* @__PURE__ */ x("div", {
586
573
  class: "ck-note ck-launcher-note",
587
574
  role: "status",
588
575
  children: [
@@ -594,7 +581,7 @@ function _t({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
594
581
  children: u("enterCode")
595
582
  })
596
583
  ]
597
- }) : T ? /* @__PURE__ */ x("div", {
584
+ }) : E ? /* @__PURE__ */ x("div", {
598
585
  class: "ck-note ck-launcher-note",
599
586
  role: "status",
600
587
  children: u("readOnlyShort")
@@ -610,31 +597,31 @@ function _t({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
610
597
  onClick: o,
611
598
  title: u("commentHint"),
612
599
  "aria-keyshortcuts": h ? "C" : void 0,
613
- children: [/* @__PURE__ */ x(xe, { name: "comment" }), /* @__PURE__ */ x("span", {
600
+ children: [/* @__PURE__ */ x(Se, { name: "comment" }), /* @__PURE__ */ x("span", {
614
601
  class: "ck-label",
615
602
  children: u("comment")
616
603
  })]
617
604
  }),
618
- E ? /* @__PURE__ */ x("button", {
605
+ D ? /* @__PURE__ */ x("button", {
619
606
  class: "ck-bar-btn ck-icon-btn",
620
607
  "aria-pressed": a,
621
608
  onClick: c,
622
609
  title: u("inbox"),
623
- "aria-label": `${u("inbox")}${D ? ` (${D})` : ""}`,
624
- children: [/* @__PURE__ */ x(xe, { name: "inbox" }), D > 0 ? /* @__PURE__ */ x("span", {
610
+ "aria-label": `${u("inbox")}${O ? ` (${O})` : ""}`,
611
+ children: [/* @__PURE__ */ x(Se, { name: "inbox" }), O > 0 ? /* @__PURE__ */ x("span", {
625
612
  class: "ck-badge",
626
- children: D > 99 ? "99+" : D
613
+ children: O > 99 ? "99+" : O
627
614
  }) : null]
628
615
  }) : null,
629
616
  /* @__PURE__ */ x("button", {
630
617
  class: "ck-bar-btn ck-icon-btn",
631
- ref: P,
618
+ ref: L,
632
619
  "aria-haspopup": "menu",
633
- "aria-expanded": O,
634
- onClick: () => k(!O),
620
+ "aria-expanded": j,
621
+ onClick: () => M(!j),
635
622
  "aria-label": u("moreFeedback"),
636
623
  title: u("moreFeedback"),
637
- children: /* @__PURE__ */ x(xe, { name: "more" })
624
+ children: /* @__PURE__ */ x(Se, { name: "more" })
638
625
  }),
639
626
  /* @__PURE__ */ x("button", {
640
627
  class: "ck-grip",
@@ -644,26 +631,26 @@ function _t({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
644
631
  onPointerDown: (e) => {
645
632
  if (e.button !== 0) return;
646
633
  let t = e.currentTarget.closest(".ck-launcher").getBoundingClientRect();
647
- M.current = {
634
+ F.current = {
648
635
  dx: e.clientX - t.left,
649
636
  dy: e.clientY - t.top
650
637
  }, e.currentTarget.setPointerCapture(e.pointerId);
651
638
  },
652
639
  onPointerMove: (e) => {
653
- let t = M.current;
654
- t && j({
640
+ let t = F.current;
641
+ t && P({
655
642
  x: e.clientX - t.dx,
656
643
  y: e.clientY - t.dy
657
644
  });
658
645
  },
659
646
  onPointerUp: (e) => {
660
- let t = M.current;
661
- if (M.current = null, !t || !A) return j(null);
662
- j(null), r(vt(e.clientX, e.clientY));
647
+ let t = F.current;
648
+ if (F.current = null, !t || !N) return P(null);
649
+ P(null), r(mt(e.clientX, e.clientY));
663
650
  },
664
- onPointerCancel: () => (M.current = null, j(null)),
651
+ onPointerCancel: () => (F.current = null, P(null)),
665
652
  onKeyDown: (e) => {
666
- let t = yt(n, e.key);
653
+ let t = ht(n, e.key);
667
654
  t && (e.preventDefault(), r(t));
668
655
  },
669
656
  children: /* @__PURE__ */ x("svg", {
@@ -707,20 +694,20 @@ function _t({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
707
694
  })
708
695
  ]
709
696
  }),
710
- O ? /* @__PURE__ */ x("div", {
697
+ j ? /* @__PURE__ */ x("div", {
711
698
  class: "ck-menu ck-pop",
712
699
  role: "menu",
713
- onClick: () => (k(!1), P.current?.focus()),
714
- onKeyDown: (e) => e.key === "Escape" ? (e.stopPropagation(), k(!1), P.current?.focus()) : Ee(e, "[role=menuitem]", !0),
700
+ onClick: () => (M(!1), L.current?.focus()),
701
+ onKeyDown: (e) => e.key === "Escape" ? (e.stopPropagation(), M(!1), L.current?.focus()) : De(e, "[role=menuitem]", !0),
715
702
  children: [
716
- E ? /* @__PURE__ */ x(l, { children: [
703
+ D ? /* @__PURE__ */ x(l, { children: [
717
704
  /* @__PURE__ */ x("div", {
718
705
  class: "ck-menu-head",
719
- title: `${E.person.name} · ${E.project.name}`,
706
+ title: `${D.person.name} · ${D.project.name}`,
720
707
  children: [
721
- /* @__PURE__ */ x("bdi", { children: E.person.name }),
708
+ /* @__PURE__ */ x("bdi", { children: D.person.name }),
722
709
  " · ",
723
- /* @__PURE__ */ x("bdi", { children: E.project.name })
710
+ /* @__PURE__ */ x("bdi", { children: D.project.name })
724
711
  ]
725
712
  }),
726
713
  /* @__PURE__ */ x("button", {
@@ -747,14 +734,14 @@ function _t({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
747
734
  /* @__PURE__ */ x("button", {
748
735
  role: "menuitem",
749
736
  class: "ck-menu-two",
750
- "aria-keyshortcuts": F ? "Meta+Shift+K" : "Control+Shift+K",
737
+ "aria-keyshortcuts": R ? "Meta+Shift+K" : "Control+Shift+K",
751
738
  onClick: v,
752
- children: [u("hideWidget"), je() ? null : /* @__PURE__ */ x("span", {
739
+ children: [u("hideWidget"), Me() ? null : /* @__PURE__ */ x("span", {
753
740
  class: "ck-muted",
754
- children: u("hideWidgetHint", { keys: F ? "⌘ Shift K" : "Ctrl Shift K" })
741
+ children: u("hideWidgetHint", { keys: R ? "⌘ Shift K" : "Ctrl Shift K" })
755
742
  })]
756
743
  }),
757
- E ? /* @__PURE__ */ x("button", {
744
+ D ? /* @__PURE__ */ x("button", {
758
745
  role: "menuitem",
759
746
  class: "ck-danger",
760
747
  onClick: m,
@@ -765,10 +752,10 @@ function _t({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
765
752
  ]
766
753
  });
767
754
  }
768
- function vt(e, t) {
755
+ function mt(e, t) {
769
756
  return `${t < innerHeight / 2 ? "top" : "bottom"}-${e < innerWidth / 3 ? "left" : e > innerWidth * 2 / 3 ? "right" : "center"}`;
770
757
  }
771
- function yt(e, t) {
758
+ function ht(e, t) {
772
759
  let [n, r] = e.split("-"), i = [
773
760
  "left",
774
761
  "center",
@@ -776,7 +763,7 @@ function yt(e, t) {
776
763
  ], a = i.indexOf(r);
777
764
  return t === "ArrowLeft" && a > 0 ? `${n}-${i[a - 1]}` : t === "ArrowRight" && a < 2 ? `${n}-${i[a + 1]}` : t === "ArrowUp" && n === "bottom" ? `top-${r}` : t === "ArrowDown" && n === "top" ? `bottom-${r}` : null;
778
765
  }
779
- function bt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = null }) {
766
+ function gt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = null }) {
780
767
  let [p] = s(() => {
781
768
  let e = document.activeElement;
782
769
  return e && e !== document.body && e !== document.documentElement && !i(e) ? e : null;
@@ -808,7 +795,7 @@ function bt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
808
795
  });
809
796
  }
810
797
  };
811
- return c ? r(c) : import("./pick-BRhngGMq.js").then(r, () => {}), () => void (e = !1);
798
+ return c ? r(c) : import("./pick-Bai3lMZX.js").then(r, () => {}), () => void (e = !1);
812
799
  }, []);
813
800
  let y = (e) => o({
814
801
  ...e,
@@ -962,7 +949,7 @@ function bt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
962
949
  }
963
950
  e.pointerType === "touch" && (e.preventDefault(), M(), j.current.timer = setTimeout(() => {
964
951
  let e = A.current;
965
- j.current.timer = null, e && (j.current.fired = !0, A.current = null, xt(e.x, e.y), t({
952
+ j.current.timer = null, e && (j.current.fired = !0, A.current = null, _t(e.x, e.y), t({
966
953
  anchor: y({
967
954
  element: e.target,
968
955
  clientX: e.x,
@@ -1008,8 +995,8 @@ function bt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
1008
995
  }
1009
996
  let o = Math.abs(e.clientX - n.x) > 8 || Math.abs(e.clientY - n.y) > 8;
1010
997
  if (e.pointerType === "touch" && o) return;
1011
- e.pointerType === "touch" && xt(e.clientX, e.clientY);
1012
- let s = e.pointerType !== "touch" && Math.abs(e.clientX - n.x) > 8 && Math.abs(e.clientY - n.y) > 8, c = s ? St(n.target, N(e.clientX, e.clientY) ?? n.target) : n.target;
998
+ e.pointerType === "touch" && _t(e.clientX, e.clientY);
999
+ let s = e.pointerType !== "touch" && Math.abs(e.clientX - n.x) > 8 && Math.abs(e.clientY - n.y) > 8, c = s ? vt(n.target, N(e.clientX, e.clientY) ?? n.target) : n.target;
1013
1000
  t({
1014
1001
  anchor: y({
1015
1002
  element: c,
@@ -1041,19 +1028,19 @@ function bt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
1041
1028
  }),
1042
1029
  h && !b && !E.length ? /* @__PURE__ */ x("div", {
1043
1030
  class: "ck-outline",
1044
- style: G(h.left - 2, h.top - 2, h.width + 4, h.height + 4)
1031
+ style: K(h.left - 2, h.top - 2, h.width + 4, h.height + 4)
1045
1032
  }) : null,
1046
1033
  E.map((e) => /* @__PURE__ */ x("div", {
1047
1034
  class: "ck-text-box",
1048
- style: G(e.left, e.top, e.width, e.height)
1035
+ style: K(e.left, e.top, e.width, e.height)
1049
1036
  })),
1050
1037
  b && !w.current ? /* @__PURE__ */ x("div", {
1051
1038
  class: "ck-region",
1052
- style: G(Math.min(b.x, b.x2), Math.min(b.y, b.y2), Math.abs(b.x2 - b.x), Math.abs(b.y2 - b.y))
1039
+ style: K(Math.min(b.x, b.x2), Math.min(b.y, b.y2), Math.abs(b.x2 - b.x), Math.abs(b.y2 - b.y))
1053
1040
  }) : null
1054
1041
  ] });
1055
1042
  }
1056
- function xt(e, t) {
1043
+ function _t(e, t) {
1057
1044
  $();
1058
1045
  let n = (n) => {
1059
1046
  Math.abs(n.clientX - e) > 24 || Math.abs(n.clientY - t) > 24 || (n.preventDefault(), n.stopPropagation(), $());
@@ -1065,18 +1052,18 @@ function xt(e, t) {
1065
1052
  };
1066
1053
  }
1067
1054
  var $ = () => void 0;
1068
- function St(e, t) {
1055
+ function vt(e, t) {
1069
1056
  if (e.contains(t)) return e;
1070
1057
  for (let n = t; n; n = n.parentElement) if (n.contains(e)) return n;
1071
1058
  return document.body;
1072
1059
  }
1073
1060
  // src/ui/nav.ts
1074
- function Ct(e, t, n) {
1075
- let r = _e(e);
1076
- if (!r || !/^https?:$/.test(new URL(r).protocol) || wt(r)) return n(t);
1077
- location.assign(Je(r, t));
1061
+ function yt(e, t, n) {
1062
+ let r = ve(e);
1063
+ if (!r || !/^https?:$/.test(new URL(r).protocol) || bt(r)) return n(t);
1064
+ location.assign(We(r, t));
1078
1065
  }
1079
- function wt(e) {
1066
+ function bt(e) {
1080
1067
  try {
1081
1068
  let t = new URL(e), r = new URL(n());
1082
1069
  return t.origin === r.origin && t.pathname === r.pathname && t.search === r.search && (t.hash === r.hash || !t.hash.startsWith("#/"));
@@ -1085,9 +1072,9 @@ function wt(e) {
1085
1072
  }
1086
1073
  }
1087
1074
  // src/ui/Pins.tsx
1088
- var Tt = "M31.5 4.8C17.3 4.4 7 15.2 7 29c0 13 8.5 21.2 20.9 23 1.6.2 2.1 1.2 2.1 2.5v6.9c0 1.7 1.2 2.1 2.5.9 5.7-4.9 16-13.6 21.1-22.1 3.5-5.8 4.7-11.8 3.2-18.1C54.3 11.5 44.7 4.6 31.5 4.8Z", Et = 6;
1089
- function Dt({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1090
- let f = Z(e.state, (e) => e.threads), p = Z(e.state, (e) => !!e.session?.capabilities.triage && !e.config?.read_only), m = we(f.length > 0), h = Q(!0, () => import("./placement-BF_HOUDD.js")), _ = S(() => h?.createPlacer(), [h]), [, v] = s(0), [y] = s(() => /* @__PURE__ */ new Map()), [b] = s(() => /* @__PURE__ */ new Map());
1075
+ var xt = "M31.5 4.8C17.3 4.4 7 15.2 7 29c0 13 8.5 21.2 20.9 23 1.6.2 2.1 1.2 2.1 2.5v6.9c0 1.7 1.2 2.1 2.5.9 5.7-4.9 16-13.6 21.1-22.1 3.5-5.8 4.7-11.8 3.2-18.1C54.3 11.5 44.7 4.6 31.5 4.8Z", St = 6;
1076
+ function Ct({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1077
+ let f = Z(e.state, (e) => e.threads), p = Z(e.state, (e) => !!e.session?.capabilities.triage && !e.config?.read_only), m = Te(f.length > 0), h = Q(!0, () => import("./placement-BF_HOUDD.js")), _ = S(() => h?.createPlacer(), [h]), [, v] = s(0), [y] = s(() => /* @__PURE__ */ new Map()), [b] = s(() => /* @__PURE__ */ new Map());
1091
1078
  d(() => {
1092
1079
  let e = new Set(f.map((e) => e.id));
1093
1080
  _?.keep(e);
@@ -1115,7 +1102,7 @@ function Dt({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1115
1102
  let n = e.anchor.quote;
1116
1103
  if (!t || e.anchor.type !== "text" || !n) return [];
1117
1104
  let r = y.get(e.id);
1118
- r?.[0] !== m.version && y.set(e.id, r = [m.version, Mt(t.element, n)]);
1105
+ r?.[0] !== m.version && y.set(e.id, r = [m.version, Ot(t.element, n)]);
1119
1106
  let i = t.element.getBoundingClientRect(), o = a(t.element);
1120
1107
  return [...r[1]?.getClientRects() ?? []].map((e) => new DOMRect(e.x + o.x - i.x, e.y + o.y - i.y, e.width, e.height)).filter((e) => e.width > 0 && e.height > 0 && t.inView(e.left + e.width / 2, e.top + e.height / 2)).slice(0, 50).map((n) => ({
1121
1108
  id: e.id,
@@ -1143,14 +1130,14 @@ function Dt({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1143
1130
  R.current && clearTimeout(R.current), R.current = setTimeout(() => N(e), t);
1144
1131
  };
1145
1132
  d(() => () => void (R.current && clearTimeout(R.current)), []);
1146
- let ee = (t, n, a) => {
1133
+ let B = (t, n, a) => {
1147
1134
  let s = document.elementsFromPoint(n, a).find((e) => !i(e) && e !== document.documentElement);
1148
- s && Ot(e, t, o({
1135
+ s && wt(e, t, o({
1149
1136
  element: s,
1150
1137
  clientX: n,
1151
1138
  clientY: a
1152
1139
  }), r, c);
1153
- }, B = (e) => {
1140
+ }, ee = (e) => {
1154
1141
  e.style.translate = "", F(null);
1155
1142
  }, V = {
1156
1143
  page: [],
@@ -1161,23 +1148,23 @@ function Dt({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1161
1148
  V[e.fixed ? "fixed" : "page"].push(/* @__PURE__ */ x("div", {
1162
1149
  class: "ck-shade",
1163
1150
  "data-active": e.id === t || e.id === M || void 0,
1164
- style: G(n.x, n.y, e.w, e.h),
1151
+ style: K(n.x, n.y, e.w, e.h),
1165
1152
  "aria-hidden": "true"
1166
1153
  }));
1167
1154
  }
1168
1155
  for (let { thread: e, at: r } of E) {
1169
1156
  if (!r) continue;
1170
1157
  let i = r.fixed ? k : O, a = P === e.id, { x: o, y: s } = r, c = !a && r.clipped, d = !1;
1171
- !c && !a && e.id !== t && (d = m.scrolling ? !!b.get(e.id) : kt(r.element, o, s), b.set(e.id, d));
1158
+ !c && !a && e.id !== t && (d = m.scrolling ? !!b.get(e.id) : Tt(r.element, o, s), b.set(e.id, d));
1172
1159
  let f = c || d, h = M === e.id && !P && e.id !== t && !f, g = i(o, s), _ = r.resolved.rect && e.id === t && !c ? i(r.resolved.rect.x - scrollX, r.resolved.rect.y - scrollY) : null;
1173
1160
  V[r.fixed ? "fixed" : "page"].push(/* @__PURE__ */ x(l, { children: [
1174
1161
  _ ? /* @__PURE__ */ x("div", {
1175
1162
  class: "ck-pin-region",
1176
- style: G(_.x, _.y, r.resolved.rect.w, r.resolved.rect.h)
1163
+ style: K(_.x, _.y, r.resolved.rect.w, r.resolved.rect.h)
1177
1164
  }) : null,
1178
1165
  /* @__PURE__ */ x("button", {
1179
1166
  class: "ck-pin",
1180
- style: G(g.x, g.y),
1167
+ style: K(g.x, g.y),
1181
1168
  "data-status": e.status,
1182
1169
  "data-state": r.resolved.state,
1183
1170
  "data-dragging": a || void 0,
@@ -1207,7 +1194,7 @@ function Dt({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1207
1194
  let n = I.current;
1208
1195
  if (n && n.id === e.id) {
1209
1196
  if (!n.moved) {
1210
- if (Math.hypot(t.clientX - n.x, t.clientY - n.y) < Et) return;
1197
+ if (Math.hypot(t.clientX - n.x, t.clientY - n.y) < St) return;
1211
1198
  n.moved = !0, N(null), F(e.id);
1212
1199
  }
1213
1200
  t.currentTarget.style.translate = `${(t.clientX - n.x) / n.scale}px ${(t.clientY - n.y) / n.scale}px`;
@@ -1215,10 +1202,10 @@ function Dt({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1215
1202
  },
1216
1203
  onPointerUp: (t) => {
1217
1204
  let n = I.current;
1218
- I.current = null, n?.moved && (L.current = !0, B(t.currentTarget), ee(e, t.clientX, t.clientY));
1205
+ I.current = null, n?.moved && (L.current = !0, ee(t.currentTarget), B(e, t.clientX, t.clientY));
1219
1206
  },
1220
1207
  onPointerCancel: (e) => {
1221
- I.current = null, B(e.currentTarget);
1208
+ I.current = null, ee(e.currentTarget);
1222
1209
  },
1223
1210
  onClick: () => {
1224
1211
  if (L.current) return void (L.current = !1);
@@ -1228,13 +1215,13 @@ function Dt({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1228
1215
  children: [/* @__PURE__ */ x("svg", {
1229
1216
  viewBox: "5 3 54 62",
1230
1217
  "aria-hidden": "true",
1231
- children: /* @__PURE__ */ x("path", { d: Tt })
1218
+ children: /* @__PURE__ */ x("path", { d: xt })
1232
1219
  }), /* @__PURE__ */ x("span", {
1233
1220
  "data-long": e.number > 999 || void 0,
1234
1221
  children: e.number > 9999 ? `${e.number / 1e3 | 0}k` : e.number
1235
1222
  })]
1236
1223
  }),
1237
- h ? /* @__PURE__ */ x(jt, {
1224
+ h ? /* @__PURE__ */ x(Dt, {
1238
1225
  thread: e,
1239
1226
  x: o,
1240
1227
  y: s,
@@ -1255,7 +1242,7 @@ function Dt({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1255
1242
  children: V.fixed
1256
1243
  })] });
1257
1244
  }
1258
- function Ot(e, t, n, r, i) {
1245
+ function wt(e, t, n, r, i) {
1259
1246
  let a = t.anchor, o = (n) => e.state.set((e) => ({ threads: e.threads.map((e) => e.id === t.id ? {
1260
1247
  ...e,
1261
1248
  anchor: n
@@ -1273,21 +1260,21 @@ function Ot(e, t, n, r, i) {
1273
1260
  o(a), i(e);
1274
1261
  });
1275
1262
  }
1276
- function kt(e, t, n) {
1263
+ function Tt(e, t, n) {
1277
1264
  if (!e?.isConnected || t < 0 || n < 0 || t >= innerWidth || n >= innerHeight) return !1;
1278
- let r = document.elementsFromPoint(t, n).find((e) => !i(e)), a = At(e), o = r && At(r);
1265
+ let r = document.elementsFromPoint(t, n).find((e) => !i(e)), a = Et(e), o = r && Et(r);
1279
1266
  return !!o && o !== document.documentElement && o !== document.body && !a.contains(o) && !o.contains(a);
1280
1267
  }
1281
- function At(e) {
1268
+ function Et(e) {
1282
1269
  for (let t; t = e.getRootNode().host ?? (e.ownerDocument !== document && e.ownerDocument.defaultView?.frameElement);) e = t;
1283
1270
  return e;
1284
1271
  }
1285
- function jt({ thread: e, x: t, y: n, to: r }) {
1272
+ function Dt({ thread: e, x: t, y: n, to: r }) {
1286
1273
  let i = n > 180, a = h() === "rtl" ? t - 18 - 260 : t + 18, o = r(Math.min(Math.max(8, a), innerWidth - 260 - 8), i ? n - 16 : n + 24);
1287
1274
  return /* @__PURE__ */ x("div", {
1288
1275
  class: "ck-peek",
1289
1276
  style: {
1290
- ...G(o.x, o.y, 260),
1277
+ ...K(o.x, o.y, 260),
1291
1278
  translate: i ? "0 -100%" : void 0
1292
1279
  },
1293
1280
  "aria-hidden": "true",
@@ -1295,7 +1282,7 @@ function jt({ thread: e, x: t, y: n, to: r }) {
1295
1282
  /* @__PURE__ */ x("div", {
1296
1283
  class: "ck-peek-top",
1297
1284
  children: [
1298
- /* @__PURE__ */ x(ve, { person: e.author }),
1285
+ /* @__PURE__ */ x(ye, { person: e.author }),
1299
1286
  /* @__PURE__ */ x("bdi", {
1300
1287
  class: "ck-msg-name",
1301
1288
  children: e.author.name
@@ -1317,7 +1304,7 @@ function jt({ thread: e, x: t, y: n, to: r }) {
1317
1304
  }),
1318
1305
  /* @__PURE__ */ x("div", {
1319
1306
  class: "ck-peek-foot",
1320
- children: [/* @__PURE__ */ x(be, { status: e.status }), /* @__PURE__ */ x("span", {
1307
+ children: [/* @__PURE__ */ x(xe, { status: e.status }), /* @__PURE__ */ x("span", {
1321
1308
  class: "ck-muted",
1322
1309
  children: c("messageCount", e.message_count)
1323
1310
  })]
@@ -1325,7 +1312,7 @@ function jt({ thread: e, x: t, y: n, to: r }) {
1325
1312
  ]
1326
1313
  });
1327
1314
  }
1328
- function Mt(e, t) {
1315
+ function Ot(e, t) {
1329
1316
  let n = t.replace(/\s+/g, " ").trim().toLowerCase();
1330
1317
  if (!n) return null;
1331
1318
  let r = [], i = "", a = e.ownerDocument, o = a.createTreeWalker(e, NodeFilter.SHOW_TEXT);
@@ -1345,24 +1332,24 @@ function Mt(e, t) {
1345
1332
  return u.setStart(c.node, c.offset), u.setEnd(l.node, l.offset + 1), u;
1346
1333
  }
1347
1334
  // src/ui/session.ts
1348
- function Nt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportError: c }) {
1335
+ function kt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportError: c }) {
1349
1336
  let l = Z(e.state, (e) => e.opening), f = g(null), p = g(null);
1350
1337
  p.current = n.name === "thread" ? n.threadId : n.name === "panel" ? n.threadId ?? null : null;
1351
1338
  let [m, h] = s(0);
1352
1339
  return d(() => () => f.current?.stop(), []), d(() => {
1353
1340
  let n = () => {
1354
- let e = Xe();
1341
+ let e = Ke();
1355
1342
  e && (t ? r({
1356
1343
  name: "thread",
1357
1344
  threadId: e
1358
1345
  }) : O("commentkit:pending-thread", e));
1359
1346
  }, a = () => t && void e.loadPageThreads().catch(c);
1360
- Ft(e, c) || a(), n();
1347
+ jt(e, c) || a(), n();
1361
1348
  let o, s = !1;
1362
1349
  if (t) {
1363
1350
  e.inbox().catch(() => void 0);
1364
1351
  let t = e.state.get().config, n = () => h((e) => e + 1);
1365
- import("./live-BI72WQBA.js").then((r) => {
1352
+ import("./live-HKWO5Tsg.js").then((r) => {
1366
1353
  if (s) return;
1367
1354
  o = r.catchUp(e, n);
1368
1355
  let a = r.comeBack();
@@ -1378,7 +1365,7 @@ function Nt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportErr
1378
1365
  }) : a.comment && !a.draft ? i({ name: "commenting" }) : a.inbox && !a.draft && i({ name: "panel" }), t?.features.realtime && t.realtime) return f.current ?? (f.current = r.liveUpdates(e, () => p.current, n)), e.connectRealtime((e) => f.current?.onPing(e));
1379
1366
  }).catch(() => void 0);
1380
1367
  }
1381
- let l = Qe((e) => (e && a(), n()), () => e.pageKey());
1368
+ let l = Je((e) => (e && a(), n()), () => e.pageKey());
1382
1369
  return () => {
1383
1370
  s = !0, o?.(), l();
1384
1371
  };
@@ -1394,7 +1381,7 @@ function Nt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportErr
1394
1381
  draft: null
1395
1382
  });
1396
1383
  }, []), d(() => {
1397
- l && t && (e.state.set({ opening: null }), import("./live-BI72WQBA.js").then((t) => t.openReference(e, l, a, Ct, () => o({
1384
+ l && t && (e.state.set({ opening: null }), import("./live-HKWO5Tsg.js").then((t) => t.openReference(e, l, a, yt, () => o({
1398
1385
  text: u("threadNotFound"),
1399
1386
  tone: "error"
1400
1387
  }), c), c));
@@ -1403,31 +1390,31 @@ function Nt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportErr
1403
1390
  openId: p.current
1404
1391
  };
1405
1392
  }
1406
- var Pt = null;
1407
- function Ft(e, t) {
1408
- let n = e.state.get().session, r = !n?.capabilities.triage, i = n && `${n.person.type}:${n.person.id}:${r}`, a = !!i && i !== Pt && !!e.options.branch && r !== e.state.get().allBranches;
1409
- return Pt = i, a && e.setAllBranches(r).catch(t), a;
1393
+ var At = null;
1394
+ function jt(e, t) {
1395
+ let n = e.state.get().session, r = !n?.capabilities.triage, i = n && `${n.person.type}:${n.person.id}:${r}`, a = !!i && i !== At && !!e.options.branch && r !== e.state.get().allBranches;
1396
+ return At = i, a && e.setAllBranches(r).catch(t), a;
1410
1397
  }
1411
- function It(e, t, n, r) {
1398
+ function Mt(e, t, n, r) {
1412
1399
  let i = async (n, i) => {
1413
1400
  let a = null, o = e.on("error", ({ error: e }) => a = e), s = await e.signIn(t, n).finally(o);
1414
1401
  return s !== "signed_in" && s !== "redirecting" && !n?.aborted && !(i && s === "cancelled") && r({
1415
- text: s === "popup_blocked" ? u("popupBlocked") : a ? Pe(a) : u("signInCancelled"),
1402
+ text: s === "popup_blocked" ? u("popupBlocked") : a ? Fe(a) : u("signInCancelled"),
1416
1403
  tone: "error"
1417
1404
  }), s;
1418
1405
  }, a = g(n);
1419
1406
  return d(() => {
1420
1407
  let t = a.current;
1421
- a.current = n, t && !n && import("./live-BI72WQBA.js").then((n) => n.forgetPerson(e.options.project, t)).catch(() => void 0);
1408
+ a.current = n, t && !n && import("./live-HKWO5Tsg.js").then((n) => n.forgetPerson(e.options.project, t)).catch(() => void 0);
1422
1409
  }, [n]), {
1423
1410
  signIn: i,
1424
1411
  signOut: () => void e.signOut()
1425
1412
  };
1426
1413
  }
1427
- var Lt = /* @__PURE__ */ new WeakSet();
1428
- function Rt() {
1414
+ var Nt = /* @__PURE__ */ new WeakSet();
1415
+ function Pt() {
1429
1416
  let e = g([]), [t, n] = s(e.current), r = p((t, r = !1) => {
1430
- n(e.current = e.current.filter((e) => e !== t)), !Lt.has(t) && (Lt.add(t), r || t.onExpire?.());
1417
+ n(e.current = e.current.filter((e) => e !== t)), !Nt.has(t) && (Nt.add(t), r || t.onExpire?.());
1431
1418
  }, []);
1432
1419
  d(() => {
1433
1420
  let e = t.filter((e) => (e.tone === "error" || e.action) && !e.expires);
@@ -1456,7 +1443,7 @@ function Rt() {
1456
1443
  region: i
1457
1444
  };
1458
1445
  }
1459
- function zt({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
1446
+ function Ft({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
1460
1447
  return /* @__PURE__ */ x("div", {
1461
1448
  class: "ck-toast-region",
1462
1449
  role: "status",
@@ -1471,7 +1458,7 @@ function zt({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
1471
1458
  e.tone ? /* @__PURE__ */ x("span", {
1472
1459
  class: "ck-toast-icon",
1473
1460
  "aria-hidden": "true",
1474
- children: /* @__PURE__ */ x(xe, {
1461
+ children: /* @__PURE__ */ x(Se, {
1475
1462
  name: e.tone === "error" ? "alert" : e.tone === "success" ? "check" : "info",
1476
1463
  size: 15
1477
1464
  })
@@ -1486,7 +1473,7 @@ function zt({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
1486
1473
  "aria-label": u("dismissMessage"),
1487
1474
  title: u("dismissMessage"),
1488
1475
  onClick: () => t(e),
1489
- children: /* @__PURE__ */ x(xe, {
1476
+ children: /* @__PURE__ */ x(Se, {
1490
1477
  name: "close",
1491
1478
  size: 14
1492
1479
  })
@@ -1496,11 +1483,11 @@ function zt({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
1496
1483
  });
1497
1484
  }
1498
1485
  // src/ui/view.ts
1499
- var Bt = { name: "idle" };
1500
- function Vt(e, t) {
1486
+ var It = { name: "idle" };
1487
+ function Lt(e, t) {
1501
1488
  let n = e.name === "panel" && e.order || [];
1502
1489
  switch (t.name) {
1503
- case "stop": return e.name === "commenting" ? Bt : e;
1490
+ case "stop": return e.name === "commenting" ? It : e;
1504
1491
  case "back": return e.name === "panel" ? {
1505
1492
  name: "panel",
1506
1493
  order: n
@@ -1520,8 +1507,8 @@ function Vt(e, t) {
1520
1507
  default: return t;
1521
1508
  }
1522
1509
  }
1523
- function Ht() {
1524
- let [e, t] = m(Vt, Bt), n = g(null);
1510
+ function Rt() {
1511
+ let [e, t] = m(Lt, It), n = g(null);
1525
1512
  d(() => {
1526
1513
  if (e.name === "idle") {
1527
1514
  let e = n.current;
@@ -1530,9 +1517,9 @@ function Ht() {
1530
1517
  }, [e.name]);
1531
1518
  let [r, i] = s(!1), a = g(null), o = p((e) => {
1532
1519
  if (!a.current) {
1533
- if (e === !0 || matchMedia("(prefers-reduced-motion: reduce)").matches) return t(Bt);
1520
+ if (e === !0 || matchMedia("(prefers-reduced-motion: reduce)").matches) return t(It);
1534
1521
  i(!0), a.current = setTimeout(() => {
1535
- a.current = null, i(!1), t(Bt);
1522
+ a.current = null, i(!1), t(It);
1536
1523
  }, 120);
1537
1524
  }
1538
1525
  }, []);
@@ -1551,191 +1538,198 @@ function Ht() {
1551
1538
  };
1552
1539
  }
1553
1540
  // src/ui/App.tsx
1554
- var Ut = "commentkit:welcomed";
1555
- function Wt({ client: e, onHide: t = () => void 0 }) {
1541
+ var zt = "commentkit:welcomed";
1542
+ function Bt({ client: e, onHide: t = () => void 0 }) {
1556
1543
  let n = Z(e.state, ({ config: e }) => e?.enabled === !1 && (e.disabled_reason || "paused")[0]);
1557
1544
  return n ? n == "v" ? null : /* @__PURE__ */ x("div", {
1558
1545
  class: "ck-toast",
1559
1546
  role: "status",
1560
1547
  children: u(n == "n" ? "notLive" : "paused")
1561
- }) : /* @__PURE__ */ x(Gt, {
1548
+ }) : /* @__PURE__ */ x(Vt, {
1562
1549
  client: e,
1563
1550
  onHide: t
1564
1551
  });
1565
1552
  }
1566
- function Gt({ client: e, onHide: n }) {
1553
+ function Vt({ client: e, onHide: n }) {
1567
1554
  let [i] = s(() => {
1568
1555
  let t = e.entrance ?? (e.auth.hasSignInLink() || e.auth.finishLink || /[?&]ck(_thread)?=[^&#]/.test(location.href) ? "link" : null);
1569
1556
  return e.entrance = void 0, t;
1570
- }), [a, o] = s(""), c = Z(e.state, (e) => e.config), f = Z(e.state, (e) => e.session), m = f && `${f.person.type}:${f.person.id}`;
1571
- T(m);
1572
- let h = Rt(), { notify: _ } = h, { view: v, go: y, open: b, close: S, closing: C } = Ht(), [w, E] = s(!1), [D, k] = s(!1), A = p((t) => {
1557
+ }), [a, o] = s(""), c = Z(e.state, (e) => e.config), m = Z(e.state, (e) => e.session), h = m && `${m.person.type}:${m.person.id}`;
1558
+ T(h);
1559
+ let _ = Pt(), { notify: v } = _, { view: y, go: b, open: S, close: C, closing: w } = Rt(), [E, D] = s(!1), [k, A] = s(!1), j = p((t) => {
1573
1560
  let n = e.auth.pending();
1574
- if (t instanceof r && t.code === "verification_required" && n) return y({
1561
+ if (t instanceof r && t.code === "verification_required" && n) return b({
1575
1562
  name: "verify",
1576
1563
  email: n.email,
1577
1564
  draft: null
1578
1565
  });
1579
- _({
1580
- text: Pe(t),
1566
+ v({
1567
+ text: Fe(t),
1581
1568
  tone: "error"
1582
1569
  });
1583
- }, [_]), { Settings: j, Shortcuts: M, Composer: N, GuestVerify: P, Panel: F, ThreadCard: I, anchors: L } = lt(e, c, v, w, D, A), R = Q(e.auth.finishLink, () => t(() => import("./Guest-C-ZhARI0.js")).then((e) => e.GuestFinish), A), [z] = s(Ye), [ee, B] = s(() => !!z && !O(Ut)), [V, te] = s(() => e.auth.hasSignInLink()), [ne, H] = s(null), [, re] = s(0);
1584
- d(() => at(() => re((e) => e + 1)), []), d(() => () => $(), []);
1585
- let ie = rt(e), U = ie && f?.capabilities.triage && !je() ? () => E(!0) : null, ae = c?.read_only ?? !1, oe = u(f && f.role !== "guest" ? "readOnly" : "readOnlyGuest"), se = !f && v.name === "idle" ? e.auth.pending() : null, [W, G] = s(!1), ce = Q(W, () => t(() => import("./SignInFirst-BlMbutED.js")).then((e) => e.SignInFirst), A), K = () => {
1586
- if (ae) return _({
1570
+ }, [v]), { Settings: M, Shortcuts: N, Composer: P, GuestVerify: F, Panel: I, ThreadCard: L, anchors: R } = at(e, c, y, E, k, j), z = Q(e.auth.finishLink, () => t(() => import("./Guest-bAxvxjbL.js")).then((e) => e.GuestFinish), j), [B] = s(Ge), [ee, V] = s(() => !!B && !O(zt)), [te, ne] = s(() => e.auth.hasSignInLink()), [re, H] = s(null), [, ie] = s(0);
1571
+ d(() => tt(() => ie((e) => e + 1)), []), d(() => () => $(), []);
1572
+ let U = $e(e), W = U && m?.capabilities.triage && !Me() ? () => D(!0) : null, ae = c?.read_only ?? !1, oe = u(m && m.role !== "guest" ? "readOnly" : "readOnlyGuest"), se = !m && y.name === "idle" ? e.auth.pending() : null, [G, K] = s(!1), ce = Q(G, () => t(() => import("./SignInFirst-CeiPhLx0.js")).then((e) => e.SignInFirst), j), q = () => {
1573
+ if (ae) return v({
1587
1574
  text: oe,
1588
1575
  tone: "error"
1589
1576
  });
1590
- if (B(!1), !f && !z && !e.auth.pending() && !e.auth.hasSession()) return G("comment");
1591
- b({ name: "commenting" });
1592
- }, q = (e) => b({
1577
+ if (V(!1), !m && !B && !e.auth.pending() && !e.auth.hasSession()) return K("comment");
1578
+ S({ name: "commenting" });
1579
+ }, J = (e) => S({
1593
1580
  name: "thread",
1594
1581
  threadId: typeof e == "string" ? e : e.id
1595
- }), J = () => v.name === "panel" ? S() : b({ name: "panel" }), le = g(0), ue = () => {
1596
- if (f) return J();
1582
+ }), le = () => y.name === "panel" ? C() : S({ name: "panel" }), ue = g(0), de = () => {
1583
+ if (m) return le();
1597
1584
  let t = e.auth.pending();
1598
- if (t) return b({
1585
+ if (t) return S({
1599
1586
  name: "verify",
1600
1587
  email: t.email,
1601
- draft: ne
1588
+ draft: re
1602
1589
  });
1603
- if (e.auth.hasSession()) return void (le.current = Date.now());
1604
- G("inbox");
1605
- }, de = (t) => {
1590
+ if (e.auth.hasSession()) return void (ue.current = Date.now());
1591
+ K("inbox");
1592
+ }, fe = (t) => {
1606
1593
  let n = e.state.get().threads.find((e) => e.id === t);
1607
- return n ? () => y({
1594
+ return n ? () => b({
1608
1595
  name: "commenting",
1609
1596
  move: n
1610
1597
  }) : void 0;
1611
- }, { signIn: Y, signOut: fe } = It(e, z, m, _);
1598
+ }, { signIn: pe, signOut: me } = Mt(e, B, h, v);
1612
1599
  d(() => {
1613
- f && (G(!1), Date.now() - le.current < 6e4 && b({ name: "panel" }), le.current = 0);
1614
- }, [f]);
1615
- let { cardVersion: pe, openId: me } = Nt(e, f, {
1616
- view: v,
1617
- open: b,
1618
- go: y,
1619
- openThread: q,
1620
- notify: _,
1621
- reportError: A
1600
+ m && (K(!1), Date.now() - ue.current < 6e4 && S({ name: "panel" }), ue.current = 0);
1601
+ }, [m]);
1602
+ let { cardVersion: he, openId: ge } = kt(e, m, {
1603
+ view: y,
1604
+ open: S,
1605
+ go: b,
1606
+ openThread: J,
1607
+ notify: v,
1608
+ reportError: j
1622
1609
  });
1623
- ht(() => ({
1624
- view: v,
1625
- help: w,
1626
- keys: ie,
1627
- signedIn: !!f,
1610
+ dt(() => ({
1611
+ view: y,
1612
+ help: E,
1613
+ keys: U,
1614
+ signedIn: !!m,
1628
1615
  threads: e.state.get().threads
1629
- }), (e) => e === "help" ? E(!0) : e === "closeHelp" ? E(!1) : e === "comment" ? K() : e === "back" ? v.name === "commenting" ? y({ name: "idle" }) : S(!0) : q(e)), gt(e, v, {
1630
- comment: K,
1631
- go: y,
1632
- inbox: ue
1616
+ }), (e) => e === "help" ? D(!0) : e === "closeHelp" ? D(!1) : e === "comment" ? q() : e === "back" ? y.name === "commenting" ? b({ name: "idle" }) : C(!0) : J(e)), ft(e, y, {
1617
+ comment: q,
1618
+ go: b,
1619
+ inbox: de
1633
1620
  });
1634
- let [X, he] = dt(e, c);
1621
+ let [Y, _e] = st(e, c), [X, ve] = s(!1);
1622
+ f(() => void ((y.name != "idle" || G || E || k) && ve(!1)), [
1623
+ y.name,
1624
+ G,
1625
+ E,
1626
+ k
1627
+ ]);
1628
+ let ye = X ? "none" : "contents";
1635
1629
  return /* @__PURE__ */ x(l, { children: [
1636
- f ? /* @__PURE__ */ x(Dt, {
1630
+ m ? /* @__PURE__ */ x(Ct, {
1637
1631
  client: e,
1638
- activeId: me,
1639
- onOpen: q,
1640
- notify: _,
1641
- onError: A
1632
+ activeId: ge,
1633
+ onOpen: J,
1634
+ notify: v,
1635
+ onError: j
1642
1636
  }) : null,
1643
- v.name === "commenting" && L ? /* @__PURE__ */ x(bt, {
1644
- picker: L.picker,
1645
- quote: e.options.tools?.text !== !1 && !v.move,
1646
- move: !!v.move,
1647
- onCancel: () => y({ name: "idle" }),
1637
+ y.name === "commenting" && R ? /* @__PURE__ */ x(gt, {
1638
+ picker: R.picker,
1639
+ quote: e.options.tools?.text !== !1 && !y.move,
1640
+ move: !!y.move,
1641
+ onCancel: () => b({ name: "idle" }),
1648
1642
  onPick: (t) => {
1649
- let n = v.move;
1650
- if (!n) return y({
1643
+ let n = y.move;
1644
+ if (!n) return b({
1651
1645
  name: "composing",
1652
1646
  draft: t
1653
1647
  });
1654
- y({ name: "idle" }), Ot(e, n, t.anchor, _, A);
1648
+ b({ name: "idle" }), wt(e, n, t.anchor, v, j);
1655
1649
  }
1656
1650
  }) : null,
1657
1651
  /* @__PURE__ */ x("div", {
1658
1652
  class: "ck-layer",
1659
- "data-closing": C || void 0,
1660
- "data-pos": X,
1653
+ "data-closing": w || void 0,
1654
+ "data-pos": Y,
1661
1655
  children: [
1662
- v.name === "composing" && N ? /* @__PURE__ */ x(N, {
1656
+ y.name === "composing" && P ? /* @__PURE__ */ x(P, {
1663
1657
  client: e,
1664
- draft: v.draft,
1665
- signedIn: !!f,
1666
- onSignIn: Y,
1667
- onCancel: S,
1668
- share: z,
1669
- onError: A,
1658
+ draft: y.draft,
1659
+ signedIn: !!m,
1660
+ onSignIn: pe,
1661
+ onCancel: C,
1662
+ share: B,
1663
+ onError: j,
1670
1664
  onSent: (t, n) => {
1671
1665
  let r = e.state.get().session;
1672
- _({
1666
+ v({
1673
1667
  text: n ? u(n === "screenshot" ? "sentWithoutScreenshot" : "sentWithoutFiles") : r?.role === "guest" || !r ? u("sentGuest") : u("sent"),
1674
1668
  tone: n ? "info" : "success"
1675
- }), q(t);
1669
+ }), J(t);
1676
1670
  },
1677
1671
  onPending: (e) => {
1678
- H(v.draft), y({
1672
+ H(y.draft), b({
1679
1673
  name: "verify",
1680
1674
  email: e,
1681
- draft: v.draft
1675
+ draft: y.draft
1682
1676
  });
1683
1677
  }
1684
1678
  }) : null,
1685
- v.name === "verify" && P ? /* @__PURE__ */ x(P, {
1679
+ y.name === "verify" && F ? /* @__PURE__ */ x(F, {
1686
1680
  client: e,
1687
- email: v.email,
1688
- onDifferentEmail: () => y({ name: "edit" }),
1689
- onClose: S,
1681
+ email: y.email,
1682
+ onDifferentEmail: () => b({ name: "edit" }),
1683
+ onClose: C,
1690
1684
  onDone: (t) => {
1691
- if (v.draft) {
1692
- let t = ze(e, v.draft.anchor);
1685
+ if (y.draft) {
1686
+ let t = Be(e, y.draft.anchor);
1693
1687
  O(t, null), O(t.replace(/[^:]*~/, ""), null);
1694
1688
  }
1695
- _({
1689
+ v({
1696
1690
  text: u("sentGuest"),
1697
1691
  tone: "success"
1698
- }), t[0] ? q(t[0]) : y({ name: "idle" });
1692
+ }), t[0] ? J(t[0]) : b({ name: "idle" });
1699
1693
  }
1700
1694
  }) : null,
1701
- v.name === "thread" && I ? /* @__PURE__ */ x(I, {
1695
+ y.name === "thread" && L ? /* @__PURE__ */ x(L, {
1702
1696
  client: e,
1703
- threadId: v.threadId,
1704
- version: pe,
1705
- onClose: S,
1706
- onError: A,
1707
- notify: _,
1708
- onMovePin: de(v.threadId)
1697
+ threadId: y.threadId,
1698
+ version: he,
1699
+ onClose: C,
1700
+ onError: j,
1701
+ notify: v,
1702
+ onMovePin: fe(y.threadId)
1709
1703
  }) : null,
1710
- v.name === "panel" && F ? /* @__PURE__ */ x(F, {
1704
+ y.name === "panel" && I ? /* @__PURE__ */ x(I, {
1711
1705
  client: e,
1712
- side: X.endsWith("left") ? "left" : "right",
1713
- dock: X.startsWith("top") ? "top" : "bottom",
1714
- onClose: S,
1715
- version: pe,
1716
- onError: A,
1717
- notify: _,
1718
- reveal: v.signOff,
1719
- onOpen: (e, t) => y({
1706
+ side: Y.endsWith("left") ? "left" : "right",
1707
+ dock: Y.startsWith("top") ? "top" : "bottom",
1708
+ onClose: C,
1709
+ version: he,
1710
+ onError: j,
1711
+ notify: v,
1712
+ reveal: y.signOff,
1713
+ onOpen: (e, t) => b({
1720
1714
  name: "panel",
1721
1715
  threadId: typeof e == "string" ? e : e.id,
1722
1716
  order: t
1723
1717
  }),
1724
- detail: v.threadId && I ? (() => {
1725
- let t = v.order ?? [], n = t.indexOf(v.threadId), r = (e) => t.length > 1 && n >= 0 ? () => y({
1718
+ detail: y.threadId && L ? (() => {
1719
+ let t = y.order ?? [], n = t.indexOf(y.threadId), r = (e) => t.length > 1 && n >= 0 ? () => b({
1726
1720
  name: "step",
1727
1721
  by: e
1728
1722
  }) : void 0;
1729
- return /* @__PURE__ */ x(I, {
1723
+ return /* @__PURE__ */ x(L, {
1730
1724
  client: e,
1731
- threadId: v.threadId,
1732
- version: pe,
1733
- onClose: S,
1734
- onError: A,
1735
- notify: _,
1736
- onMovePin: de(v.threadId),
1725
+ threadId: y.threadId,
1726
+ version: he,
1727
+ onClose: C,
1728
+ onError: j,
1729
+ notify: v,
1730
+ onMovePin: fe(y.threadId),
1737
1731
  embedded: {
1738
- onBack: () => y({ name: "back" }),
1732
+ onBack: () => b({ name: "back" }),
1739
1733
  onPrev: r(-1),
1740
1734
  onNext: r(1),
1741
1735
  position: n < 0 ? null : {
@@ -1743,7 +1737,7 @@ function Gt({ client: e, onHide: n }) {
1743
1737
  total: t.length
1744
1738
  },
1745
1739
  onShow: (e) => {
1746
- y({ name: "idle" }), Ct(e.page.url, e.id, q);
1740
+ b({ name: "idle" }), yt(e.page.url, e.id, J);
1747
1741
  }
1748
1742
  }
1749
1743
  });
@@ -1751,73 +1745,78 @@ function Gt({ client: e, onHide: n }) {
1751
1745
  }) : null
1752
1746
  ]
1753
1747
  }),
1754
- R ? /* @__PURE__ */ x(R, {
1755
- client: e,
1756
- position: X,
1757
- notify: _,
1758
- onOpen: q
1759
- }) : W && ce && !f && v.name === "idle" ? /* @__PURE__ */ x(ce, {
1760
- position: X,
1761
- website: c?.project.name ?? "",
1762
- inbox: W === "inbox",
1763
- signIn: () => Y(void 0, !0),
1764
- onSignedIn: () => (G(!1), b({ name: W === "inbox" ? "panel" : "commenting" })),
1765
- onDismiss: () => G(!1)
1766
- }) : V && !f && !se && v.name === "idle" ? /* @__PURE__ */ x(ct, {
1767
- position: X,
1768
- project: c?.project.name ?? "",
1769
- onContinue: () => {
1770
- te(!1), Y().then(() => te(e.auth.hasSignInLink()));
1771
- },
1772
- onDismiss: () => te(!1)
1773
- }) : ee && !f && !ae && v.name === "idle" ? /* @__PURE__ */ x(st, {
1774
- position: X,
1775
- project: c?.project.name ?? "",
1776
- onStart: K,
1777
- onDismiss: () => {
1778
- B(!1), O(Ut, "1");
1779
- }
1780
- }) : null,
1781
- /* @__PURE__ */ x(_t, {
1748
+ /* @__PURE__ */ x("div", {
1749
+ style: { display: ye },
1750
+ children: z ? /* @__PURE__ */ x(z, {
1751
+ client: e,
1752
+ position: Y,
1753
+ notify: v,
1754
+ onOpen: J
1755
+ }) : G && ce && !m && y.name === "idle" ? /* @__PURE__ */ x(ce, {
1756
+ position: Y,
1757
+ website: c?.project.name ?? "",
1758
+ inbox: G === "inbox",
1759
+ signIn: () => pe(void 0, !0),
1760
+ onSignedIn: () => (K(!1), S({ name: G === "inbox" ? "panel" : "commenting" })),
1761
+ onDismiss: () => K(!1)
1762
+ }) : te && !m && !se && y.name === "idle" ? /* @__PURE__ */ x(it, {
1763
+ position: Y,
1764
+ project: c?.project.name ?? "",
1765
+ onContinue: () => {
1766
+ ne(!1), pe().then(() => ne(e.auth.hasSignInLink()));
1767
+ },
1768
+ onDismiss: () => ne(!1)
1769
+ }) : ee && !m && !ae && y.name === "idle" ? /* @__PURE__ */ x(rt, {
1770
+ position: Y,
1771
+ project: c?.project.name ?? "",
1772
+ onStart: q,
1773
+ onDismiss: () => {
1774
+ V(!1), O(zt, "1");
1775
+ }
1776
+ }) : null
1777
+ }),
1778
+ /* @__PURE__ */ x(pt, {
1782
1779
  client: e,
1783
- position: X,
1784
- onMove: he,
1785
- commenting: v.name === "commenting",
1786
- panelOpen: v.name === "panel",
1787
- onComment: () => v.name === "commenting" ? y({ name: "idle" }) : K(),
1788
- onPanel: J,
1789
- onSignIn: () => void Y(),
1790
- onSignOut: fe,
1791
- onShortcuts: U,
1792
- onApprove: f?.capabilities.comment && !ae ? () => b({
1780
+ position: Y,
1781
+ onMove: _e,
1782
+ commenting: y.name === "commenting",
1783
+ panelOpen: y.name === "panel",
1784
+ onComment: () => y.name === "commenting" ? b({ name: "idle" }) : q(),
1785
+ onPanel: le,
1786
+ onSignIn: () => void pe(),
1787
+ onSignOut: me,
1788
+ onShortcuts: W,
1789
+ onApprove: m?.capabilities.comment && !ae ? () => S({
1793
1790
  name: "panel",
1794
1791
  signOff: Date.now()
1795
1792
  }) : null,
1796
- onSettings: () => k(!0),
1793
+ onSettings: () => A(!0),
1797
1794
  onHide: n,
1798
1795
  waiting: se?.email ?? null,
1799
- onCode: () => se && b({
1796
+ onCode: () => se && S({
1800
1797
  name: "verify",
1801
1798
  email: se.email,
1802
- draft: ne
1799
+ draft: re
1803
1800
  }),
1804
- covered: v.name !== "idle" && v.name !== "commenting" || w || D,
1801
+ covered: y.name !== "idle" && y.name !== "commenting" || E || k,
1802
+ menu: X,
1803
+ onMenu: (e) => (ve(e), e && K(!1)),
1805
1804
  entrance: i ? {
1806
1805
  key: i === "key",
1807
- say: () => o(u(ie ? "shownAnnounce" : "shownAnnounceNoKeys"))
1806
+ say: () => o(u(U ? "shownAnnounce" : "shownAnnounceNoKeys"))
1808
1807
  } : null
1809
1808
  }),
1810
- w && M ? /* @__PURE__ */ x(M, { onClose: () => E(!1) }) : null,
1811
- D && j ? /* @__PURE__ */ x(j, {
1809
+ E && N ? /* @__PURE__ */ x(N, { onClose: () => D(!1) }) : null,
1810
+ k && M ? /* @__PURE__ */ x(M, {
1812
1811
  client: e,
1813
- onClose: () => k(!1),
1814
- onShortcuts: U,
1812
+ onClose: () => A(!1),
1813
+ onShortcuts: W,
1815
1814
  onHide: n,
1816
- onSignOut: fe
1815
+ onSignOut: me
1817
1816
  }) : null,
1818
- /* @__PURE__ */ x(zt, {
1819
- toasts: h,
1820
- children: [ae && v.name === "commenting" ? /* @__PURE__ */ x("div", {
1817
+ /* @__PURE__ */ x(Ft, {
1818
+ toasts: _,
1819
+ children: [ae && y.name === "commenting" ? /* @__PURE__ */ x("div", {
1821
1820
  class: "ck-toast",
1822
1821
  children: oe
1823
1822
  }) : null, a ? /* @__PURE__ */ x("span", {
@@ -1828,25 +1827,25 @@ function Gt({ client: e, onHide: n }) {
1828
1827
  ] });
1829
1828
  }
1830
1829
  // src/ui/styles.css?inline
1831
- var Kt = ":host{all:initial;--ck-accent:#c2341b;--ck-ix:var(--commentkit-inset-x,var(--ck-opt-ix,0px));--ck-iy:var(--commentkit-inset-y,var(--ck-opt-iy,0px));--ck-accent-ink:#fff;--ck-mark:#ff5733;--ck-mark-ink:#121316;--ck-accent-soft:color-mix(in srgb, var(--ck-accent) 12%, var(--ck-bg));--ck-bg:#fff;--ck-bg-muted:#f7f7f8;--ck-bg-hover:#eeeef0;--ck-border:#e3e3e7;--ck-control:#84858f;--ck-ring:#65677a;--ck-hairline:#12131614;--ck-text:#121316;--ck-text-muted:#5e5f6e;--ck-danger:#c10007;--ck-success:#16794c;--ck-warning:#a15c00;--ck-open:#a6a09b;--ck-review:#8e51ff;--ck-progress:#2563eb;--ck-shadow-sm:0 0 0 1px #1313161a, 0 2px 2px -1px #0000000f, 0 4px 4px -2px #0000000a;--ck-shadow:0 0 0 1px var(--ck-hairline), 0 10px 32px #222a3526, 0 1px 1px #0000000d, 0 4px 6px #222a3514, 0 24px 68px #2f30371a;--ck-radius:12px;--ck-radius-sm:6px;--ck-radius-md:8px;--ck-ease:cubic-bezier(.2, .8, .2, 1);--ck-font:ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;--ck-mono:ui-monospace, SFMono-Regular, Menlo, monospace;--ck-z:1000;--ck-fs-2xs:10px;--ck-fs-xs:11px;--ck-fs-sm:12px;--ck-fs-md:13px;--ck-fs:14px;--ck-fs-lg:16px;--ck-fs-xl:20px;--ck-radius-pill:999px;--ck-fast:.12s;--ck-dur:.2s;--ck-img-outline:#0000001a}@supports not (color:color-mix(in srgb, red, red)){:host{--ck-accent-soft:var(--ck-bg-muted)}}@media print{:host,.ck-root{display:none!important}}:host([data-theme=dark]){--ck-bg:#212126;--ck-bg-muted:#1a1a1e;--ck-bg-hover:#2a2a30;--ck-border:#36363c;--ck-control:#7c7d87;--ck-ring:#a1a2ae;--ck-hairline:#ffffff1a;--ck-text:#fff;--ck-text-muted:#9394a1;--ck-img-outline:#ffffff1a;--ck-danger:#ffa2a2;--ck-success:#4cc38a;--ck-warning:#e3a33f;--ck-shadow-sm:0 0 0 1px var(--ck-hairline), 0 2px 2px -1px #0000004d, 0 4px 4px -2px #0003;--ck-shadow:0 0 0 1px var(--ck-hairline), 0 8px 24px #0006, 0 24px 68px #0000004d}.ck-root{all:initial;font-family:var(--ck-font);font-size:var(--ck-fs);color:var(--ck-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.45;display:block}*,:before,:after{box-sizing:border-box}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button:-webkit-any(:disabled,[aria-disabled=true]){opacity:.5;cursor:default}button:is(:disabled,[aria-disabled=true]){opacity:.5;cursor:default}::placeholder{color:var(--ck-text-muted);opacity:1}.ck-root *{scrollbar-width:thin;scrollbar-color:var(--ck-border) transparent}@keyframes ck-pop{0%{opacity:0;transform:translateY(6px)scale(.98)}}@keyframes ck-fade{0%{opacity:0}}@keyframes ck-sheet{0%{translate:0 100%}}.ck-bar-btn,.ck-btn,.ck-chip,.ck-ghost,.ck-input,.ck-grip,.ck-menu button,.ck-toast button,.ck-shade{transition:background-color var(--ck-fast), color var(--ck-fast), border-color var(--ck-fast), box-shadow var(--ck-fast), filter var(--ck-fast), opacity var(--ck-fast), scale var(--ck-fast) ease-out}.ck-bar-btn:active,.ck-btn:active,.ck-chip:active,.ck-ghost:active{scale:.96}.ck-launcher{z-index:var(--ck-z);align-items:center;gap:8px;display:flex;position:fixed}.ck-launcher[data-pos$=right],.ck-welcome[data-pos$=right]{right:calc(20px + var(--ck-ix))}.ck-launcher[data-pos$=left],.ck-welcome[data-pos$=left]{left:calc(20px + var(--ck-ix))}.ck-launcher[data-pos^=top]{top:calc(20px + var(--ck-iy))}.ck-launcher[data-pos^=bottom]{bottom:calc(20px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-launcher[data-pos$=center],.ck-welcome[data-pos$=center]{left:50%;translate:-50%}.ck-bar{background:var(--ck-bg);background:color-mix(in srgb, var(--ck-bg) 86%, transparent);-webkit-backdrop-filter:blur(14px)saturate(1.4);backdrop-filter:blur(14px)saturate(1.4);border-radius:var(--ck-radius-pill);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);align-items:center;gap:2px;padding:4px;display:flex}.ck-bar-btn{border-radius:var(--ck-radius-pill);height:36px;font-size:var(--ck-fs-md);white-space:nowrap;background:0 0;border:0;align-items:center;gap:6px;padding:0 12px;font-weight:600;display:inline-flex}.ck-bar-btn svg,.ck-btn svg,.ck-ghost svg{flex:none}.ck-bar-btn[aria-pressed=true],.ck-primary{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:inset 0 1px 0 #ffffff38, 0 1px 2px color-mix(in srgb, var(--ck-accent) 40%, transparent)}.ck-bar-btn[aria-expanded=true]{background:var(--ck-bg-hover)}.ck-icon-btn{width:36px;color:var(--ck-text-muted);justify-content:center;padding:0;position:relative}.ck-badge{border-radius:var(--ck-radius-pill);background:var(--ck-danger);min-width:16px;height:16px;color:var(--ck-bg);font-size:var(--ck-fs-2xs);box-shadow:0 0 0 2px var(--ck-bg);font-variant-numeric:tabular-nums;place-items:center;padding:0 4px;font-weight:700;line-height:1;display:grid;position:absolute;top:2px;right:2px}.ck-grip{border-radius:var(--ck-radius-pill);width:24px;height:32px;color:var(--ck-text-muted);cursor:grab;touch-action:none;opacity:.75;background:0 0;border:0;place-items:center;margin-inline-start:-4px;margin-inline-end:0;padding:0;display:grid}.ck-grip svg{fill:currentColor}.ck-launcher[data-dragging]{opacity:.92}.ck-launcher[data-entering=\"\"]{opacity:0}.ck-launcher[data-entering] .ck-bar{animation:none}.ck-launcher[data-dragging] .ck-grip{cursor:grabbing}.ck-mode-hint{z-index:var(--ck-z);padding:8px;border-radius:var(--ck-radius);background:var(--ck-text);background:color-mix(in srgb, var(--ck-text) 90%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);width:max-content;max-width:calc(100% - 24px);color:var(--ck-bg);font-size:var(--ck-fs-md);box-shadow:var(--ck-shadow);flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px;padding-inline-start:16px;font-weight:600;display:flex;position:fixed;top:16px;left:50%;translate:-50%}.ck-mode-hint .ck-chip{background:color-mix(in srgb, currentColor 8%, transparent);color:inherit;border-color:color-mix(in srgb, currentColor 60%, transparent)}.ck-mode-frame{z-index:calc(var(--ck-z) - 1);pointer-events:none;box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--ck-accent) 75%, transparent), inset 0 0 14px 2px color-mix(in srgb, var(--ck-accent) 16%, transparent);position:fixed;top:0;bottom:0;left:0;right:0}.ck-catcher{z-index:calc(var(--ck-z) - 2);cursor:crosshair;touch-action:pan-x pan-y pinch-zoom;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background:0 0;position:fixed;top:0;bottom:0;left:0;right:0}.ck-outline{z-index:calc(var(--ck-z) - 1);pointer-events:none;border:2px solid var(--ck-accent);border-radius:var(--ck-radius-sm);background:color-mix(in srgb, var(--ck-accent) 8%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--ck-accent) 14%, transparent);position:fixed}.ck-region{z-index:calc(var(--ck-z) - 1);pointer-events:none;border-radius:var(--ck-radius-sm);position:fixed}.ck-region,.ck-pending-region{--ck-dash:linear-gradient(90deg, var(--ck-accent) 50%, transparent 0);--ck-dash-v:linear-gradient(0deg, var(--ck-accent) 50%, transparent 0);background:var(--ck-dash) 0 0 / 12px 2px repeat-x, var(--ck-dash) 0 100% / 12px 2px repeat-x, var(--ck-dash-v) 0 0 / 2px 12px repeat-y, var(--ck-dash-v) 100% 0 / 2px 12px repeat-y, color-mix(in srgb, var(--ck-accent) 8%, transparent);animation:.6s linear infinite ck-ants}@keyframes ck-ants{to{background-position:12px 0,-12px 100%,0 -12px,100% 12px,0 0}}.ck-text-box{z-index:var(--ck-z);pointer-events:none;background:color-mix(in srgb, var(--ck-accent) 30%, transparent);border-radius:2px;position:fixed}.ck-pins{width:100px;height:0;z-index:calc(var(--ck-z) - 3);position:absolute;top:0;left:0}.ck-pins[data-fixed]{position:fixed}.ck-pin{--ck-pin:var(--ck-mark);transform-origin:49% 97%;width:28px;height:32px;color:var(--ck-mark-ink);font-size:var(--ck-fs-xs);font-variant-numeric:tabular-nums;filter:drop-shadow(0 0 .6px #fff)drop-shadow(0 0 .6px #fff)drop-shadow(0 3px 6px #12131647);transition:scale var(--ck-fast) var(--ck-ease), filter var(--ck-fast);animation:ck-fade var(--ck-dur) ease-out;background:0 0;border:0;padding:0;font-weight:700;position:absolute;transform:translate(-49%,-97%)}.ck-pin svg{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;overflow:visible}.ck-pin path{fill:var(--ck-pin);stroke:#121316;stroke-width:2px;stroke-linejoin:round}.ck-pin>span{text-align:center;line-height:1;position:absolute;top:41%;left:0;right:0;translate:0 -50%}.ck-pin[data-status=in_review]{--ck-pin:color-mix(in srgb, var(--ck-review) 90%, #000);color:#fff}.ck-pin[data-status=in_progress]{--ck-pin:var(--ck-progress);color:#fff}.ck-pin[data-status=resolved]{--ck-pin:var(--ck-success);color:var(--ck-bg)}.ck-pin>span[data-long]{letter-spacing:-.08em;font-size:9px}.ck-pin[data-state=moved]{opacity:.85}.ck-pin[data-covered]{opacity:0;pointer-events:none;transition:opacity var(--ck-fast) ease-out}.ck-pin[data-clipped]{display:none}.ck-pin[aria-expanded=true]{filter:drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fff) drop-shadow(0 0 5px color-mix(in srgb, var(--ck-pin) 60%, transparent)) drop-shadow(0 4px 8px #1213164d);scale:1.14}.ck-pin:focus-visible{border-radius:50%}.ck-pin-region{pointer-events:none;border:2px dashed var(--ck-accent);border-radius:var(--ck-radius-sm);position:absolute}.ck-pin[data-movable]{touch-action:none}.ck-pin[data-dragging]{cursor:grabbing;filter:drop-shadow(0 0 .6px #fff)drop-shadow(0 8px 14px #12131659);z-index:2;transition:none;scale:1.18}.ck-pin[aria-expanded=true]:before{content:\"\";width:28px;height:28px;box-shadow:0 0 0 2px var(--ck-pin);pointer-events:none;opacity:0;border-radius:50%;margin:-14px 0 0 -14px;animation:.9s ease-out 2 ck-ping;position:absolute;top:40%;left:50%}@keyframes ck-ping{0%{opacity:.8;scale:.6}to{opacity:0;scale:2.2}}.ck-peek{z-index:3;background:var(--ck-bg);border-radius:var(--ck-radius-md);box-shadow:var(--ck-shadow);pointer-events:none;animation:ck-fade var(--ck-fast) ease-out;font-size:var(--ck-fs-md);padding:12px;position:absolute}.ck-peek-top{align-items:center;gap:8px;display:flex}.ck-peek-top .ck-avatar{--ck-av:20px}.ck-peek-top .ck-time{color:var(--ck-text-muted);font-size:var(--ck-fs-sm);margin-inline-start:auto}.ck-peek-quote{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:8px 0 0;display:-webkit-box;overflow:hidden}.ck-peek-text{-webkit-line-clamp:3;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-top:4px;line-height:1.45;display:-webkit-box;overflow:hidden}.ck-peek-foot{font-size:var(--ck-fs-sm);align-items:center;gap:8px;margin-top:8px;display:flex}@keyframes ck-pin-drop{0%{opacity:0;translate:0 -8px;scale:.4}}.ck-shade{pointer-events:none;background:color-mix(in srgb, var(--ck-accent) 16%, transparent);box-shadow:inset 0 -2px 0 color-mix(in srgb, var(--ck-accent) 55%, transparent);border-radius:2px;position:absolute}.ck-shade[data-active]{background:color-mix(in srgb, var(--ck-accent) 28%, transparent)}.ck-card{z-index:calc(var(--ck-z) + 1);width:min(380px,100vw - 24px);max-height:min(560px,100vh - 24px);background:var(--ck-bg);border-radius:var(--ck-radius);max-height:min(560px,100dvh - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);flex-direction:column;display:flex;position:fixed;overflow:hidden}.ck-card-head{border-bottom:1px solid var(--ck-hairline);align-items:center;gap:4px;min-height:48px;padding:8px;padding-inline-start:16px;display:flex}.ck-card-title,.ck-peek-top bdi{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.ck-card h2.ck-card-title{font-size:var(--ck-fs);margin:0}.ck-card-body{background:linear-gradient(var(--ck-bg) 40%, #0000) top/100% 24px no-repeat local, linear-gradient(#0000, var(--ck-bg) 60%) bottom/100% 24px no-repeat local, linear-gradient(var(--ck-border), #0000) top/100% 8px no-repeat, linear-gradient(#0000, var(--ck-border)) bottom/100% 8px no-repeat;flex:1;min-height:0;padding:12px 16px;overflow:auto}.ck-card>:not(.ck-card-body){flex-shrink:0}.ck-card-foot{border-top:1px solid var(--ck-hairline);align-items:center;gap:8px;padding:12px;display:flex}.ck-card-body>p.ck-muted{margin:0 0 8px;line-height:1.4}.ck-ghost{border-radius:var(--ck-radius-sm);color:var(--ck-text-muted);background:0 0;border:0;padding:6px 8px;font-weight:600}.ck-card-head .ck-ghost{flex:none;place-items:center;width:32px;height:32px;padding:0;display:inline-grid}.ck-ghost-sm{min-height:24px;font-size:var(--ck-fs-sm);padding:0 4px}.ck-ghost.ck-danger{color:var(--ck-danger)}.ck-btn{border-radius:var(--ck-radius-sm);background:var(--ck-bg);height:32px;box-shadow:var(--ck-shadow-sm);font-size:var(--ck-fs-md);white-space:nowrap;border:0;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-weight:600;display:inline-flex}.ck-btn.ck-primary{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:inset 0 1px 0 #ffffff38, 0 0 0 1px color-mix(in srgb, var(--ck-accent) 80%, #000), 0 2px 2px -1px #00000029}.ck-spacer{flex:1}.ck-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.ck-chip{border-radius:var(--ck-radius-pill);border:1px solid var(--ck-control);background:var(--ck-bg);height:28px;color:var(--ck-text-muted);font-size:var(--ck-fs-sm);cursor:pointer;white-space:nowrap;align-items:center;gap:4px;max-width:100%;padding:0 12px;font-weight:600;display:inline-flex;overflow:hidden}.ck-chip[aria-pressed=true],.ck-chip[aria-expanded=true]{background:var(--ck-accent-soft);color:var(--ck-accent-text);border-color:var(--ck-accent);border-color:color-mix(in srgb, var(--ck-accent) 45%, var(--ck-border))}.ck-chip .ck-count{margin-inline-start:2px}.ck-input{border-radius:var(--ck-radius-sm);border:1px solid var(--ck-control);background:var(--ck-bg);width:100%;height:32px;padding:0 11px}.ck-input[aria-invalid=true]{border-color:var(--ck-danger)}.ck-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.ck-field{font-size:var(--ck-fs-md);color:var(--ck-text-muted);gap:4px;font-weight:500;display:grid}.ck-field .ck-input{color:var(--ck-text);font-weight:400;font-size:var(--ck-fs)}.ck-muted{color:var(--ck-text-muted);font-size:var(--ck-fs-sm)}.ck-note{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);font-size:var(--ck-fs-md);overflow-wrap:anywhere;margin:8px 0 0;padding:8px 12px;line-height:1.45}.ck-note[data-tone=warning]{background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-warning) 12%, var(--ck-bg))}.ck-note[data-tone=error]{background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-danger) 10%, var(--ck-bg));color:var(--ck-danger)}.ck-avatar{--ck-av:24px;width:var(--ck-av);height:var(--ck-av);background:var(--ck-bg-hover);color:var(--ck-text);font-size:max(8px, calc(var(--ck-av) * .4));box-shadow:0 0 0 1px var(--ck-hairline);border-radius:50%;flex:none;place-items:center;font-weight:600;display:grid;overflow:hidden}.ck-avatar img{object-fit:cover;outline:1px solid var(--ck-img-outline);outline-offset:-1px;width:100%;height:100%}.ck-msg-name{color:var(--ck-text);font-weight:600;font-size:var(--ck-fs-md)}.ck-status{--ck-tone:var(--ck-open);font-size:var(--ck-fs-sm);border-radius:var(--ck-radius-pill);background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-tone) 12%, var(--ck-bg));color:color-mix(in srgb, var(--ck-tone) 45%, var(--ck-text));white-space:nowrap;align-items:center;gap:6px;padding:2px 8px;font-weight:600;display:inline-flex}.ck-status:before{content:\"\";background:var(--ck-tone);border-radius:50%;width:8px;height:8px}.ck-status[data-status=in_progress]{--ck-tone:var(--ck-progress)}.ck-status[data-status=in_review]{--ck-tone:var(--ck-review)}.ck-status[data-status=resolved]{--ck-tone:var(--ck-success)}.ck-status[data-status=closed]{--ck-tone:var(--ck-text-muted)}.ck-mention{color:var(--ck-accent-text);font-weight:600}.ck-pre{overscroll-behavior-x:contain;border-radius:var(--ck-radius-sm);background:var(--ck-bg-muted);box-shadow:0 0 0 1px var(--ck-hairline);white-space:pre;margin:6px 0;padding:8px 12px;overflow-x:auto}.ck-quote{border-radius:var(--ck-radius-sm);border-inline-start:3px solid color-mix(in srgb, var(--ck-accent) 70%, var(--ck-border));background:var(--ck-bg-muted);color:var(--ck-text-muted);font-size:var(--ck-fs-sm);overflow-wrap:anywhere;margin:0 0 8px;padding:4px 8px;line-height:1.45;display:block}.ck-emoji{vertical-align:-.2em;width:1.15em;height:1.15em;margin:0 .04em;display:inline-block}.ck-time{white-space:nowrap;font-variant-numeric:tabular-nums;flex:none;line-height:1.67}.ck-menu{z-index:2;background:var(--ck-bg);border-radius:var(--ck-radius-md);min-width:210px;max-width:min(320px,100vw - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);padding:4px;position:absolute;top:48px}.ck-menu:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:8px}.ck-menu:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:8px}.ck-menu:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:8px}.ck-menu:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:8px}.ck-menu button{text-align:start;border-radius:var(--ck-radius-sm);width:100%;font-size:var(--ck-fs-md);background:0 0;border:0;align-items:center;gap:8px;padding:8px 12px;display:flex}.ck-menu .ck-danger{color:var(--ck-danger)}.ck-menu-head{border-bottom:1px solid var(--ck-hairline);font-size:var(--ck-fs-sm);color:var(--ck-text-muted);text-overflow:ellipsis;white-space:nowrap;margin-bottom:4px;padding:4px 12px 8px;overflow:hidden}.ck-menu-two{flex-direction:column;align-items:flex-start!important;gap:0!important}.ck-menu-two .ck-muted{font-size:var(--ck-fs-xs)}[dir=rtl] .ck-search .ck-ghost,[dir=rtl] .ck-badge{left:8px;right:auto}[dir=rtl] .ck-search .ck-ghost{left:4px}[dir=rtl] .ck-badge{left:2px}.ck-launcher .ck-menu{top:auto;bottom:52px;left:auto;right:0}.ck-launcher[data-pos^=top] .ck-menu{top:52px;bottom:auto}.ck-launcher[data-pos$=left] .ck-menu{left:0;right:auto}.ck-launcher-note{background:var(--ck-bg);width:max-content;max-width:min(300px,100vw - 40px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);margin:0;position:absolute;bottom:calc(100% + 8px);right:0}.ck-launcher[data-pos$=left] .ck-launcher-note{left:0;right:auto}.ck-launcher[data-pos^=top] .ck-launcher-note{top:calc(100% + 8px);bottom:auto}.ck-launcher[data-pos$=center] .ck-launcher-note,.ck-launcher[data-pos$=center] .ck-menu{left:50%;right:auto;translate:-50%}.ck-panel{z-index:var(--ck-z);background:var(--ck-bg);border-radius:var(--ck-radius);width:min(400px,100vw - 24px);box-shadow:var(--ck-shadow);transform-origin:100% 100%;animation:ck-grow var(--ck-dur) var(--ck-ease);flex-direction:column;display:flex;position:fixed;top:12px;bottom:12px;overflow:hidden}.ck-panel[data-side=right]{right:12px}.ck-panel[data-side=left]{transform-origin:0 100%;left:12px}@media (min-width:521px) and (min-height:481px){.ck-panel[data-dock=bottom]{bottom:calc(76px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-panel[data-dock=top]{top:calc(76px + var(--ck-iy))}}.ck-panel[data-dock=top][data-side=right]{transform-origin:100% 0}.ck-panel[data-dock=top][data-side=left]{transform-origin:0 0}.ck-toast{z-index:calc(var(--ck-z) + 1);border-radius:var(--ck-radius-md);background:var(--ck-bg);max-width:min(360px,100vw - 24px);color:var(--ck-text);font-size:var(--ck-fs-md);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);align-items:center;gap:8px;padding:8px;padding-inline-start:12px;font-weight:500;line-height:1.4;display:flex;position:fixed;bottom:84px;left:50%;translate:-50%}.ck-toast>span{overflow-wrap:anywhere;min-width:0}.ck-toast-region{z-index:calc(var(--ck-z) + 1);left:50%;bottom:calc(84px + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px));pointer-events:none;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 24px);display:flex;position:fixed;translate:-50%}.ck-layer[data-pos^=bottom]~.ck-toast-region{bottom:calc(84px + var(--ck-iy) + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px))}.ck-toast-region .ck-toast{pointer-events:auto;position:relative;bottom:auto;left:auto;translate:none}.ck-layer:has(.ck-card,.ck-panel)~.ck-toast-region{flex-direction:column-reverse;top:12px;bottom:auto}.ck-toast-icon{width:20px;height:20px;color:var(--ck-text-muted);border-radius:50%;flex:none;place-items:center;display:grid}.ck-toast[data-tone=success] .ck-toast-icon{color:var(--ck-success)}.ck-toast[data-tone=error] .ck-toast-icon{color:var(--ck-danger)}.ck-toast button{border-radius:var(--ck-radius-sm);min-height:24px;color:var(--ck-accent-text);background:0 0;border:0;flex:none;padding:4px 8px;font-weight:600}.ck-toast .ck-toast-close{width:24px;color:var(--ck-text-muted);place-items:center;padding:0;display:grid}.ck-welcome{z-index:var(--ck-z);background:var(--ck-bg);border-radius:var(--ck-radius);width:min(340px,100vw - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);padding:16px;position:fixed}.ck-welcome[data-pos^=top]{top:calc(76px + var(--ck-iy))}.ck-welcome[data-pos^=bottom]{bottom:calc(76px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-welcome h2{font-size:var(--ck-fs-lg);overflow-wrap:anywhere;margin:0 0 4px;font-weight:600}.ck-welcome p{color:var(--ck-text-muted);margin:0 0 16px;line-height:1.5}.ck-welcome .ck-actions{justify-content:flex-end;margin:0}.ck-card:has(.ck-markup,.ck-viewer){z-index:calc(var(--ck-z) + 3)}.ck-panel:has(.ck-viewer){z-index:calc(var(--ck-z) + 3)}.ck-root :focus{outline:none}.ck-root :focus-visible{outline:2px solid var(--ck-ring);outline-offset:2px}.ck-mode-hint :focus-visible{outline-color:currentColor}.ck-card-body,.ck-menu,.ck-markup{overscroll-behavior:contain}.ck-card,.ck-panel,.ck-menu,.ck-bar,.ck-toast,.ck-welcome,.ck-btn,.ck-launcher-note,.ck-peek,.ck-mode-hint{border:1px solid #0000}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.ck-note,.ck-empty,.ck-toast span,.ck-welcome p{text-wrap:pretty}.ck-empty strong,.ck-welcome h2{text-wrap:balance}@keyframes ck-grow{0%{opacity:0;scale:.94}}@keyframes ck-panel-out{to{opacity:0;scale:.94}}@keyframes ck-out{to{opacity:0;translate:0 6px;scale:.97}}@keyframes ck-sheet-out{to{translate:0 100%}}.ck-layer[data-closing] .ck-panel{animation:ck-panel-out var(--ck-fast) var(--ck-ease) forwards;pointer-events:none}.ck-layer[data-closing] .ck-card:not(.ck-card-embedded){animation:ck-out var(--ck-fast) var(--ck-ease) forwards;pointer-events:none}@media (max-width:520px){.ck-launcher[data-covered=true]{display:none}.ck-card{width:auto;max-height:70vh;max-height:min(70dvh, calc(100dvh - 24px - var(--ck-kb,0px)));animation-name:ck-sheet;left:12px!important;right:12px!important;bottom:calc(12px + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px))!important;top:auto!important}.ck-panel{bottom:var(--ck-kb,0px);height:80vh;height:min(80dvh, calc(100dvh - 12px - var(--ck-kb,0px)));border-radius:var(--ck-radius) var(--ck-radius) 0 0;width:100%;padding-bottom:env(safe-area-inset-bottom,0px);animation-name:ck-sheet;top:auto;left:0!important;right:0!important}.ck-mode-hint{top:auto;bottom:calc(84px + env(safe-area-inset-bottom,0px))}.ck-root:has(>.ck-launcher[data-pos^=bottom]) .ck-mode-hint{bottom:calc(84px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-mode-hint~.ck-toast-region{top:12px;bottom:auto}.ck-root:has(.ck-toast) .ck-launcher-note{display:none}.ck-layer[data-closing] .ck-panel,.ck-layer[data-closing] .ck-card:not(.ck-card-embedded){animation:ck-sheet-out var(--ck-fast) var(--ck-ease) forwards}}@media (pointer:coarse){.ck-bar-btn,.ck-btn,.ck-ghost,.ck-chip,.ck-menu button,.ck-toast button{min-width:44px;min-height:44px}.ck-search .ck-ghost{min-width:36px;min-height:36px}.ck-root .ck-input{font-size:var(--ck-fs-lg);min-height:44px}.ck-pin:after{content:\"\";position:absolute;top:-10px;bottom:-10px;left:-10px;right:-10px}.ck-grip{display:none}}@media (hover:hover){.ck-bar-btn:hover,.ck-ghost:hover,.ck-menu button:hover,.ck-toast button:hover{background:var(--ck-bg-hover)}.ck-bar-btn[aria-pressed=true]:hover,.ck-primary:hover,.ck-btn.ck-primary:hover{background:var(--ck-accent);filter:brightness(.96)}.ck-icon-btn:hover,.ck-ghost:hover,.ck-format .ck-ghost:hover,.ck-msg-actions .ck-ghost:hover,.ck-chip:hover{color:var(--ck-text)}.ck-mode-hint .ck-chip:hover{color:inherit;background:color-mix(in srgb, currentColor 16%, transparent)}.ck-pin:hover{scale:1.08}.ck-pin[data-movable]:hover{cursor:grab}.ck-btn:hover,.ck-chip:hover{background:var(--ck-bg-muted)}.ck-input:hover{border-color:var(--ck-text-muted)}.ck-grip:hover{opacity:1}}";
1830
+ var Ht = ":host{all:initial;--ck-accent:#c2341b;--ck-ix:var(--commentkit-inset-x,var(--ck-opt-ix,0px));--ck-iy:var(--commentkit-inset-y,var(--ck-opt-iy,0px));--ck-accent-ink:#fff;--ck-mark:#ff5733;--ck-mark-ink:#121316;--ck-accent-soft:color-mix(in srgb, var(--ck-accent) 12%, var(--ck-bg));--ck-bg:#fff;--ck-bg-muted:#f7f7f8;--ck-bg-hover:#eeeef0;--ck-border:#e3e3e7;--ck-control:#84858f;--ck-ring:#65677a;--ck-hairline:#12131614;--ck-text:#121316;--ck-text-muted:#5e5f6e;--ck-danger:#c10007;--ck-success:#16794c;--ck-warning:#a15c00;--ck-open:#a6a09b;--ck-review:#8e51ff;--ck-progress:#2563eb;--ck-shadow-sm:0 0 0 1px #1313161a, 0 2px 2px -1px #0000000f, 0 4px 4px -2px #0000000a;--ck-shadow:0 0 0 1px var(--ck-hairline), 0 10px 32px #222a3526, 0 1px 1px #0000000d, 0 4px 6px #222a3514, 0 24px 68px #2f30371a;--ck-radius:12px;--ck-radius-sm:6px;--ck-radius-md:8px;--ck-ease:cubic-bezier(.2, .8, .2, 1);--ck-font:ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;--ck-mono:ui-monospace, SFMono-Regular, Menlo, monospace;--ck-z:1000;--ck-fs-2xs:10px;--ck-fs-xs:11px;--ck-fs-sm:12px;--ck-fs-md:13px;--ck-fs:14px;--ck-fs-lg:16px;--ck-fs-xl:20px;--ck-radius-pill:999px;--ck-fast:.12s;--ck-dur:.2s;--ck-img-outline:#0000001a}@supports not (color:color-mix(in srgb, red, red)){:host{--ck-accent-soft:var(--ck-bg-muted)}}@media print{:host,.ck-root{display:none!important}}:host([data-theme=dark]){--ck-bg:#212126;--ck-bg-muted:#1a1a1e;--ck-bg-hover:#2a2a30;--ck-border:#36363c;--ck-control:#7c7d87;--ck-ring:#a1a2ae;--ck-hairline:#ffffff1a;--ck-text:#fff;--ck-text-muted:#9394a1;--ck-img-outline:#ffffff1a;--ck-danger:#ffa2a2;--ck-success:#4cc38a;--ck-warning:#e3a33f;--ck-shadow-sm:0 0 0 1px var(--ck-hairline), 0 2px 2px -1px #0000004d, 0 4px 4px -2px #0003;--ck-shadow:0 0 0 1px var(--ck-hairline), 0 8px 24px #0006, 0 24px 68px #0000004d}.ck-root{all:initial;font-family:var(--ck-font);font-size:var(--ck-fs);color:var(--ck-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.45;display:block}*,:before,:after{box-sizing:border-box}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button:-webkit-any(:disabled,[aria-disabled=true]){opacity:.5;cursor:default}button:is(:disabled,[aria-disabled=true]){opacity:.5;cursor:default}::placeholder{color:var(--ck-text-muted);opacity:1}.ck-root *{scrollbar-width:thin;scrollbar-color:var(--ck-border) transparent}@keyframes ck-pop{0%{opacity:0;transform:translateY(6px)scale(.98)}}@keyframes ck-fade{0%{opacity:0}}@keyframes ck-sheet{0%{translate:0 100%}}.ck-bar-btn,.ck-btn,.ck-chip,.ck-ghost,.ck-input,.ck-grip,.ck-menu button,.ck-toast button,.ck-shade{transition:background-color var(--ck-fast), color var(--ck-fast), border-color var(--ck-fast), box-shadow var(--ck-fast), filter var(--ck-fast), opacity var(--ck-fast), scale var(--ck-fast) ease-out}.ck-bar-btn:active,.ck-btn:active,.ck-chip:active,.ck-ghost:active{scale:.96}.ck-launcher{z-index:var(--ck-z);align-items:center;gap:8px;display:flex;position:fixed}.ck-launcher[data-pos$=right],.ck-welcome[data-pos$=right]{right:calc(20px + var(--ck-ix))}.ck-launcher[data-pos$=left],.ck-welcome[data-pos$=left]{left:calc(20px + var(--ck-ix))}.ck-launcher[data-pos^=top]{top:calc(20px + var(--ck-iy))}.ck-launcher[data-pos^=bottom]{bottom:calc(20px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-launcher[data-pos$=center],.ck-welcome[data-pos$=center]{left:50%;translate:-50%}.ck-bar{background:var(--ck-bg);background:color-mix(in srgb, var(--ck-bg) 86%, transparent);-webkit-backdrop-filter:blur(14px)saturate(1.4);backdrop-filter:blur(14px)saturate(1.4);border-radius:var(--ck-radius-pill);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);align-items:center;gap:2px;padding:4px;display:flex}.ck-bar-btn{border-radius:var(--ck-radius-pill);height:36px;font-size:var(--ck-fs-md);white-space:nowrap;background:0 0;border:0;align-items:center;gap:6px;padding:0 12px;font-weight:600;display:inline-flex}.ck-bar-btn svg,.ck-btn svg,.ck-ghost svg{flex:none}.ck-bar-btn[aria-pressed=true],.ck-primary{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:inset 0 1px 0 #ffffff38, 0 1px 2px color-mix(in srgb, var(--ck-accent) 40%, transparent)}.ck-bar-btn[aria-expanded=true]{background:var(--ck-bg-hover)}.ck-icon-btn{width:36px;color:var(--ck-text-muted);justify-content:center;padding:0;position:relative}.ck-badge{border-radius:var(--ck-radius-pill);background:var(--ck-danger);min-width:16px;height:16px;color:var(--ck-bg);font-size:var(--ck-fs-2xs);box-shadow:0 0 0 2px var(--ck-bg);font-variant-numeric:tabular-nums;place-items:center;padding:0 4px;font-weight:700;line-height:1;display:grid;position:absolute;top:2px;right:2px}.ck-grip{border-radius:var(--ck-radius-pill);width:24px;height:32px;color:var(--ck-text-muted);cursor:grab;touch-action:none;opacity:.75;background:0 0;border:0;place-items:center;margin-inline-start:-4px;margin-inline-end:0;padding:0;display:grid}.ck-grip svg{fill:currentColor}.ck-launcher[data-dragging]{opacity:.92}.ck-launcher[data-entering=\"\"]{opacity:0}.ck-launcher[data-entering] .ck-bar{animation:none}.ck-launcher[data-dragging] .ck-grip{cursor:grabbing}.ck-mode-hint{z-index:var(--ck-z);padding:8px;border-radius:var(--ck-radius);background:var(--ck-text);background:color-mix(in srgb, var(--ck-text) 90%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);width:max-content;max-width:calc(100% - 24px);color:var(--ck-bg);font-size:var(--ck-fs-md);box-shadow:var(--ck-shadow);flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px;padding-inline-start:16px;font-weight:600;display:flex;position:fixed;top:16px;left:50%;translate:-50%}.ck-mode-hint .ck-chip{background:color-mix(in srgb, currentColor 8%, transparent);color:inherit;border-color:color-mix(in srgb, currentColor 60%, transparent)}.ck-mode-frame{z-index:calc(var(--ck-z) - 1);pointer-events:none;box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--ck-accent) 75%, transparent), inset 0 0 14px 2px color-mix(in srgb, var(--ck-accent) 16%, transparent);position:fixed;top:0;bottom:0;left:0;right:0}.ck-catcher{z-index:calc(var(--ck-z) - 2);cursor:crosshair;touch-action:pan-x pan-y pinch-zoom;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background:0 0;position:fixed;top:0;bottom:0;left:0;right:0}.ck-outline{z-index:calc(var(--ck-z) - 1);pointer-events:none;border:2px solid var(--ck-accent);border-radius:var(--ck-radius-sm);background:color-mix(in srgb, var(--ck-accent) 8%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--ck-accent) 14%, transparent);position:fixed}.ck-region{z-index:calc(var(--ck-z) - 1);pointer-events:none;border-radius:var(--ck-radius-sm);position:fixed}.ck-region,.ck-pending-region{--ck-dash:linear-gradient(90deg, var(--ck-accent) 50%, transparent 0);--ck-dash-v:linear-gradient(0deg, var(--ck-accent) 50%, transparent 0);background:var(--ck-dash) 0 0 / 12px 2px repeat-x, var(--ck-dash) 0 100% / 12px 2px repeat-x, var(--ck-dash-v) 0 0 / 2px 12px repeat-y, var(--ck-dash-v) 100% 0 / 2px 12px repeat-y, color-mix(in srgb, var(--ck-accent) 8%, transparent);animation:.6s linear infinite ck-ants}@keyframes ck-ants{to{background-position:12px 0,-12px 100%,0 -12px,100% 12px,0 0}}.ck-text-box{z-index:var(--ck-z);pointer-events:none;background:color-mix(in srgb, var(--ck-accent) 30%, transparent);border-radius:2px;position:fixed}.ck-pins{width:100px;height:0;z-index:calc(var(--ck-z) - 3);position:absolute;top:0;left:0}.ck-pins[data-fixed]{position:fixed}.ck-pin{--ck-pin:var(--ck-mark);transform-origin:49% 97%;width:28px;height:32px;color:var(--ck-mark-ink);font-size:var(--ck-fs-xs);font-variant-numeric:tabular-nums;filter:drop-shadow(0 0 .6px #fff)drop-shadow(0 0 .6px #fff)drop-shadow(0 3px 6px #12131647);transition:scale var(--ck-fast) var(--ck-ease), filter var(--ck-fast);animation:ck-fade var(--ck-dur) ease-out;background:0 0;border:0;padding:0;font-weight:700;position:absolute;transform:translate(-49%,-97%)}.ck-pin svg{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;overflow:visible}.ck-pin path{fill:var(--ck-pin);stroke:#121316;stroke-width:2px;stroke-linejoin:round}.ck-pin>span{text-align:center;line-height:1;position:absolute;top:41%;left:0;right:0;translate:0 -50%}.ck-pin[data-status=in_review]{--ck-pin:color-mix(in srgb, var(--ck-review) 90%, #000);color:#fff}.ck-pin[data-status=in_progress]{--ck-pin:var(--ck-progress);color:#fff}.ck-pin[data-status=resolved]{--ck-pin:var(--ck-success);color:var(--ck-bg)}.ck-pin>span[data-long]{letter-spacing:-.08em;font-size:9px}.ck-pin[data-state=moved]{opacity:.85}.ck-pin[data-covered]{opacity:0;pointer-events:none;transition:opacity var(--ck-fast) ease-out}.ck-pin[data-clipped]{display:none}.ck-pin[aria-expanded=true]{filter:drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fff) drop-shadow(0 0 5px color-mix(in srgb, var(--ck-pin) 60%, transparent)) drop-shadow(0 4px 8px #1213164d);scale:1.14}.ck-pin:focus-visible{border-radius:50%}.ck-pin-region{pointer-events:none;border:2px dashed var(--ck-accent);border-radius:var(--ck-radius-sm);position:absolute}.ck-pin[data-movable]{touch-action:none}.ck-pin[data-dragging]{cursor:grabbing;filter:drop-shadow(0 0 .6px #fff)drop-shadow(0 8px 14px #12131659);z-index:2;transition:none;scale:1.18}.ck-pin[aria-expanded=true]:before{content:\"\";width:28px;height:28px;box-shadow:0 0 0 2px var(--ck-pin);pointer-events:none;opacity:0;border-radius:50%;margin:-14px 0 0 -14px;animation:.9s ease-out 2 ck-ping;position:absolute;top:40%;left:50%}@keyframes ck-ping{0%{opacity:.8;scale:.6}to{opacity:0;scale:2.2}}.ck-peek{z-index:3;background:var(--ck-bg);border-radius:var(--ck-radius-md);box-shadow:var(--ck-shadow);pointer-events:none;animation:ck-fade var(--ck-fast) ease-out;font-size:var(--ck-fs-md);padding:12px;position:absolute}.ck-peek-top{align-items:center;gap:8px;display:flex}.ck-peek-top .ck-avatar{--ck-av:20px}.ck-peek-top .ck-time{color:var(--ck-text-muted);font-size:var(--ck-fs-sm);margin-inline-start:auto}.ck-peek-quote{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:8px 0 0;display:-webkit-box;overflow:hidden}.ck-peek-text{-webkit-line-clamp:3;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-top:4px;line-height:1.45;display:-webkit-box;overflow:hidden}.ck-peek-foot{font-size:var(--ck-fs-sm);align-items:center;gap:8px;margin-top:8px;display:flex}@keyframes ck-pin-drop{0%{opacity:0;translate:0 -8px;scale:.4}}.ck-shade{pointer-events:none;background:color-mix(in srgb, var(--ck-accent) 16%, transparent);box-shadow:inset 0 -2px 0 color-mix(in srgb, var(--ck-accent) 55%, transparent);border-radius:2px;position:absolute}.ck-shade[data-active]{background:color-mix(in srgb, var(--ck-accent) 28%, transparent)}.ck-card{z-index:calc(var(--ck-z) + 1);width:min(380px,100vw - 24px);max-height:min(560px,100vh - 24px);background:var(--ck-bg);border-radius:var(--ck-radius);max-height:min(560px,100dvh - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);flex-direction:column;display:flex;position:fixed;overflow:hidden}.ck-card-head{border-bottom:1px solid var(--ck-hairline);align-items:center;gap:4px;min-height:48px;padding:8px;padding-inline-start:16px;display:flex}.ck-card-title,.ck-peek-top bdi{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.ck-card h2.ck-card-title{font-size:var(--ck-fs);margin:0}.ck-card-body{background:linear-gradient(var(--ck-bg) 40%, #0000) top/100% 24px no-repeat local, linear-gradient(#0000, var(--ck-bg) 60%) bottom/100% 24px no-repeat local, linear-gradient(var(--ck-border), #0000) top/100% 8px no-repeat, linear-gradient(#0000, var(--ck-border)) bottom/100% 8px no-repeat;flex:1;min-height:0;padding:12px 16px;overflow:auto}.ck-card>:not(.ck-card-body){flex-shrink:0}.ck-card-foot{border-top:1px solid var(--ck-hairline);align-items:center;gap:8px;padding:12px;display:flex}.ck-card-body>p.ck-muted{margin:0 0 8px;line-height:1.4}.ck-ghost{border-radius:var(--ck-radius-sm);color:var(--ck-text-muted);background:0 0;border:0;padding:6px 8px;font-weight:600}.ck-card-head .ck-ghost{flex:none;place-items:center;width:32px;height:32px;padding:0;display:inline-grid}.ck-ghost-sm{min-height:24px;font-size:var(--ck-fs-sm);padding:0 4px}.ck-ghost.ck-danger{color:var(--ck-danger)}.ck-btn{border-radius:var(--ck-radius-sm);background:var(--ck-bg);height:32px;box-shadow:var(--ck-shadow-sm);font-size:var(--ck-fs-md);white-space:nowrap;border:0;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-weight:600;display:inline-flex}.ck-btn.ck-primary{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:inset 0 1px 0 #ffffff38, 0 0 0 1px color-mix(in srgb, var(--ck-accent) 80%, #000), 0 2px 2px -1px #00000029}.ck-spacer{flex:1}.ck-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.ck-chip{border-radius:var(--ck-radius-pill);border:1px solid var(--ck-control);background:var(--ck-bg);height:28px;color:var(--ck-text-muted);font-size:var(--ck-fs-sm);cursor:pointer;white-space:nowrap;align-items:center;gap:4px;max-width:100%;padding:0 12px;font-weight:600;display:inline-flex;overflow:hidden}.ck-chip[aria-pressed=true],.ck-chip[aria-expanded=true]{background:var(--ck-accent-soft);color:var(--ck-accent-text);border-color:var(--ck-accent);border-color:color-mix(in srgb, var(--ck-accent) 45%, var(--ck-border))}.ck-chip .ck-count{margin-inline-start:2px}.ck-input{border-radius:var(--ck-radius-sm);border:1px solid var(--ck-control);background:var(--ck-bg);width:100%;height:32px;padding:0 11px}.ck-input[aria-invalid=true]{border-color:var(--ck-danger)}.ck-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.ck-field{font-size:var(--ck-fs-md);color:var(--ck-text-muted);gap:4px;font-weight:500;display:grid}.ck-field .ck-input{color:var(--ck-text);font-weight:400;font-size:var(--ck-fs)}.ck-muted{color:var(--ck-text-muted);font-size:var(--ck-fs-sm)}.ck-note{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);font-size:var(--ck-fs-md);overflow-wrap:anywhere;margin:8px 0 0;padding:8px 12px;line-height:1.45}.ck-note[data-tone=warning]{background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-warning) 12%, var(--ck-bg))}.ck-note[data-tone=error]{background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-danger) 10%, var(--ck-bg));color:var(--ck-danger)}.ck-avatar{--ck-av:24px;width:var(--ck-av);height:var(--ck-av);background:var(--ck-bg-hover);color:var(--ck-text);font-size:max(8px, calc(var(--ck-av) * .4));box-shadow:0 0 0 1px var(--ck-hairline);border-radius:50%;flex:none;place-items:center;font-weight:600;display:grid;overflow:hidden}.ck-avatar img{object-fit:cover;outline:1px solid var(--ck-img-outline);outline-offset:-1px;width:100%;height:100%}.ck-msg-name{color:var(--ck-text);font-weight:600;font-size:var(--ck-fs-md)}.ck-status{--ck-tone:var(--ck-open);font-size:var(--ck-fs-sm);border-radius:var(--ck-radius-pill);background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-tone) 12%, var(--ck-bg));color:color-mix(in srgb, var(--ck-tone) 45%, var(--ck-text));white-space:nowrap;align-items:center;gap:6px;padding:2px 8px;font-weight:600;display:inline-flex}.ck-status:before{content:\"\";background:var(--ck-tone);border-radius:50%;width:8px;height:8px}.ck-status[data-status=in_progress]{--ck-tone:var(--ck-progress)}.ck-status[data-status=in_review]{--ck-tone:var(--ck-review)}.ck-status[data-status=resolved]{--ck-tone:var(--ck-success)}.ck-status[data-status=closed]{--ck-tone:var(--ck-text-muted)}.ck-mention{color:var(--ck-accent-text);font-weight:600}.ck-pre{overscroll-behavior-x:contain;border-radius:var(--ck-radius-sm);background:var(--ck-bg-muted);box-shadow:0 0 0 1px var(--ck-hairline);white-space:pre;margin:6px 0;padding:8px 12px;overflow-x:auto}.ck-quote{border-radius:var(--ck-radius-sm);border-inline-start:3px solid color-mix(in srgb, var(--ck-accent) 70%, var(--ck-border));background:var(--ck-bg-muted);color:var(--ck-text-muted);font-size:var(--ck-fs-sm);overflow-wrap:anywhere;margin:0 0 8px;padding:4px 8px;line-height:1.45;display:block}.ck-emoji{vertical-align:-.2em;width:1.15em;height:1.15em;margin:0 .04em;display:inline-block}.ck-time{white-space:nowrap;font-variant-numeric:tabular-nums;flex:none;line-height:1.67}.ck-menu{z-index:2;background:var(--ck-bg);border-radius:var(--ck-radius-md);min-width:210px;max-width:min(320px,100vw - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);padding:4px;position:absolute;top:48px}.ck-menu:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:8px}.ck-menu:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:8px}.ck-menu:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:8px}.ck-menu:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:8px}.ck-menu button{text-align:start;border-radius:var(--ck-radius-sm);width:100%;font-size:var(--ck-fs-md);background:0 0;border:0;align-items:center;gap:8px;padding:8px 12px;display:flex}.ck-menu .ck-danger{color:var(--ck-danger)}.ck-menu-head{border-bottom:1px solid var(--ck-hairline);font-size:var(--ck-fs-sm);color:var(--ck-text-muted);text-overflow:ellipsis;white-space:nowrap;margin-bottom:4px;padding:4px 12px 8px;overflow:hidden}.ck-menu-two{flex-direction:column;align-items:flex-start!important;gap:0!important}.ck-menu-two .ck-muted{font-size:var(--ck-fs-xs)}[dir=rtl] .ck-search .ck-ghost,[dir=rtl] .ck-badge{left:8px;right:auto}[dir=rtl] .ck-search .ck-ghost{left:4px}[dir=rtl] .ck-badge{left:2px}.ck-launcher .ck-menu{top:auto;bottom:52px;left:auto;right:0}.ck-launcher[data-pos^=top] .ck-menu{top:52px;bottom:auto}.ck-launcher[data-pos$=left] .ck-menu{left:0;right:auto}.ck-launcher-note{background:var(--ck-bg);width:max-content;max-width:min(300px,100vw - 40px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);margin:0;position:absolute;bottom:calc(100% + 8px);right:0}.ck-launcher[data-pos$=left] .ck-launcher-note{left:0;right:auto}.ck-launcher[data-pos^=top] .ck-launcher-note{top:calc(100% + 8px);bottom:auto}.ck-launcher[data-pos$=center] .ck-launcher-note,.ck-launcher[data-pos$=center] .ck-menu{left:50%;right:auto;translate:-50%}.ck-panel{z-index:var(--ck-z);background:var(--ck-bg);border-radius:var(--ck-radius);width:min(400px,100vw - 24px);box-shadow:var(--ck-shadow);transform-origin:100% 100%;animation:ck-grow var(--ck-dur) var(--ck-ease);flex-direction:column;display:flex;position:fixed;top:12px;bottom:12px;overflow:hidden}.ck-panel[data-side=right]{right:12px}.ck-panel[data-side=left]{transform-origin:0 100%;left:12px}@media (min-width:521px) and (min-height:481px){.ck-panel[data-dock=bottom]{bottom:calc(76px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-panel[data-dock=top]{top:calc(76px + var(--ck-iy))}}.ck-panel[data-dock=top][data-side=right]{transform-origin:100% 0}.ck-panel[data-dock=top][data-side=left]{transform-origin:0 0}.ck-toast{z-index:calc(var(--ck-z) + 1);border-radius:var(--ck-radius-md);background:var(--ck-bg);max-width:min(360px,100vw - 24px);color:var(--ck-text);font-size:var(--ck-fs-md);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);align-items:center;gap:8px;padding:8px;padding-inline-start:12px;font-weight:500;line-height:1.4;display:flex;position:fixed;bottom:84px;left:50%;translate:-50%}.ck-toast>span{overflow-wrap:anywhere;min-width:0}.ck-toast-region{z-index:calc(var(--ck-z) + 1);left:50%;bottom:calc(84px + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px));pointer-events:none;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 24px);display:flex;position:fixed;translate:-50%}.ck-layer[data-pos^=bottom]~.ck-toast-region{bottom:calc(84px + var(--ck-iy) + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px))}.ck-toast-region .ck-toast{pointer-events:auto;position:relative;bottom:auto;left:auto;translate:none}.ck-layer:has(.ck-card,.ck-panel)~.ck-toast-region{flex-direction:column-reverse;top:12px;bottom:auto}.ck-toast-icon{width:20px;height:20px;color:var(--ck-text-muted);border-radius:50%;flex:none;place-items:center;display:grid}.ck-toast[data-tone=success] .ck-toast-icon{color:var(--ck-success)}.ck-toast[data-tone=error] .ck-toast-icon{color:var(--ck-danger)}.ck-toast button{border-radius:var(--ck-radius-sm);min-height:24px;color:var(--ck-accent-text);background:0 0;border:0;flex:none;padding:4px 8px;font-weight:600}.ck-toast .ck-toast-close{width:24px;color:var(--ck-text-muted);place-items:center;padding:0;display:grid}.ck-welcome{z-index:var(--ck-z);background:var(--ck-bg);border-radius:var(--ck-radius);width:min(340px,100vw - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);padding:16px;position:fixed}.ck-welcome[data-pos^=top]{top:calc(76px + var(--ck-iy))}.ck-welcome[data-pos^=bottom]{bottom:calc(76px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-welcome h2{font-size:var(--ck-fs-lg);overflow-wrap:anywhere;margin:0 0 4px;font-weight:600}.ck-welcome p{color:var(--ck-text-muted);margin:0 0 16px;line-height:1.5}.ck-welcome .ck-actions{justify-content:flex-end;margin:0}.ck-card:has(.ck-markup,.ck-viewer){z-index:calc(var(--ck-z) + 3)}.ck-panel:has(.ck-viewer){z-index:calc(var(--ck-z) + 3)}.ck-root :focus{outline:none}.ck-root :focus-visible{outline:2px solid var(--ck-ring);outline-offset:2px}.ck-mode-hint :focus-visible{outline-color:currentColor}.ck-card-body,.ck-menu,.ck-markup{overscroll-behavior:contain}.ck-card,.ck-panel,.ck-menu,.ck-bar,.ck-toast,.ck-welcome,.ck-btn,.ck-launcher-note,.ck-peek,.ck-mode-hint{border:1px solid #0000}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.ck-note,.ck-empty,.ck-toast span,.ck-welcome p{text-wrap:pretty}.ck-empty strong,.ck-welcome h2{text-wrap:balance}@keyframes ck-grow{0%{opacity:0;scale:.94}}@keyframes ck-panel-out{to{opacity:0;scale:.94}}@keyframes ck-out{to{opacity:0;translate:0 6px;scale:.97}}@keyframes ck-sheet-out{to{translate:0 100%}}.ck-layer[data-closing] .ck-panel{animation:ck-panel-out var(--ck-fast) var(--ck-ease) forwards;pointer-events:none}.ck-layer[data-closing] .ck-card:not(.ck-card-embedded){animation:ck-out var(--ck-fast) var(--ck-ease) forwards;pointer-events:none}@media (max-width:520px){.ck-launcher[data-covered=true]{display:none}.ck-card{width:auto;max-height:70vh;max-height:min(70dvh, calc(100dvh - 24px - var(--ck-kb,0px)));animation-name:ck-sheet;left:12px!important;right:12px!important;bottom:calc(12px + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px))!important;top:auto!important}.ck-panel{bottom:var(--ck-kb,0px);height:80vh;height:min(80dvh, calc(100dvh - 12px - var(--ck-kb,0px)));border-radius:var(--ck-radius) var(--ck-radius) 0 0;width:100%;padding-bottom:env(safe-area-inset-bottom,0px);animation-name:ck-sheet;top:auto;left:0!important;right:0!important}.ck-mode-hint{top:auto;bottom:calc(84px + env(safe-area-inset-bottom,0px))}.ck-root:has(>.ck-launcher[data-pos^=bottom]) .ck-mode-hint{bottom:calc(84px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-mode-hint~.ck-toast-region{top:12px;bottom:auto}.ck-root:has(.ck-toast) .ck-launcher-note{display:none}.ck-layer[data-closing] .ck-panel,.ck-layer[data-closing] .ck-card:not(.ck-card-embedded){animation:ck-sheet-out var(--ck-fast) var(--ck-ease) forwards}}@media (pointer:coarse){.ck-bar-btn,.ck-btn,.ck-ghost,.ck-chip,.ck-menu button,.ck-toast button{min-width:44px;min-height:44px}.ck-search .ck-ghost{min-width:36px;min-height:36px}.ck-root .ck-input{font-size:var(--ck-fs-lg);min-height:44px}.ck-pin:after{content:\"\";position:absolute;top:-10px;bottom:-10px;left:-10px;right:-10px}.ck-grip{display:none}}@media (hover:hover){.ck-bar-btn:hover,.ck-ghost:hover,.ck-menu button:hover,.ck-toast button:hover{background:var(--ck-bg-hover)}.ck-bar-btn[aria-pressed=true]:hover,.ck-primary:hover,.ck-btn.ck-primary:hover{background:var(--ck-accent);filter:brightness(.96)}.ck-icon-btn:hover,.ck-ghost:hover,.ck-format .ck-ghost:hover,.ck-msg-actions .ck-ghost:hover,.ck-chip:hover{color:var(--ck-text)}.ck-mode-hint .ck-chip:hover{color:inherit;background:color-mix(in srgb, currentColor 16%, transparent)}.ck-pin:hover{scale:1.08}.ck-pin[data-movable]:hover{cursor:grab}.ck-btn:hover,.ck-chip:hover{background:var(--ck-bg-muted)}.ck-input:hover{border-color:var(--ck-text-muted)}.ck-grip:hover{opacity:1}}";
1832
1831
  // src/ui/mount.tsx
1833
- function qt(e, t = () => void 0, n = t) {
1832
+ function Ut(e, t = () => void 0, n = t) {
1834
1833
  let r = document.createElement("div");
1835
1834
  r.setAttribute("data-commentkit-host", ""), r.style.cssText = "display:block;position:absolute;top:0;left:0;width:0;height:0;z-index:2147483000;visibility:visible;".replace(/;/g, "!important;");
1836
1835
  let i = r.attachShadow({ mode: "open" });
1837
1836
  for (let t of ["x", "y"]) {
1838
1837
  let n = Number(e.options.inset?.[t]);
1839
- Number.isFinite(n) && r.style.setProperty(`--ck-opt-i${t}`, W(Math.max(0, n)));
1838
+ Number.isFinite(n) && r.style.setProperty(`--ck-opt-i${t}`, G(Math.max(0, n)));
1840
1839
  }
1841
1840
  if ("adoptedStyleSheets" in Document.prototype && "replaceSync" in CSSStyleSheet.prototype) {
1842
1841
  let e = new CSSStyleSheet();
1843
- e.replaceSync(Kt), i.adoptedStyleSheets = [e];
1842
+ e.replaceSync(Ht), i.adoptedStyleSheets = [e];
1844
1843
  } else {
1845
1844
  let e = document.createElement("style");
1846
- e.textContent = Kt, i.appendChild(e);
1845
+ e.textContent = Ht, i.appendChild(e);
1847
1846
  }
1848
1847
  let a = document.createElement("div");
1849
- a.className = "ck-root", a.dir = h(), a.lang = _(), i.appendChild(a), Ue(i), le(e.assets);
1848
+ a.className = "ck-root", a.dir = h(), a.lang = _(), i.appendChild(a), k(i), ue(e.assets);
1850
1849
  let o = !1, s = () => o || r.isConnected || document.documentElement.appendChild(r), c = () => typeof requestIdleCallback == "function" ? requestIdleCallback(s, { timeout: 2e3 }) : setTimeout(s, 50);
1851
1850
  "commentkitLoader" in document.documentElement.dataset && document.readyState !== "complete" ? addEventListener("load", c) : s();
1852
1851
  let l = () => {
@@ -1854,40 +1853,40 @@ function qt(e, t = () => void 0, n = t) {
1854
1853
  (t.request || t.opening) && s();
1855
1854
  let n = e.state.get().theme ?? e.options.theme ?? e.state.get().config?.appearance.theme ?? "auto", i = n === "dark" || n === "auto" && matchMedia("(prefers-color-scheme: dark)").matches;
1856
1855
  r.setAttribute("data-theme", i ? "dark" : "light");
1857
- let a = e.state.get().config?.appearance.accent, o = !!a && /^#[0-9a-f]{6}$/i.test(a), c = Jt(o ? a : "#c2341b");
1856
+ let a = e.state.get().config?.appearance.accent, o = !!a && /^#[0-9a-f]{6}$/i.test(a), c = Wt(o ? a : "#c2341b");
1858
1857
  if (o) {
1859
1858
  let e = c;
1860
- for (; Xt(e) > .1833 && Xt(e) < .2047;) e = Yt(e, [
1859
+ for (; Kt(e) > .1833 && Kt(e) < .2047;) e = Gt(e, [
1861
1860
  0,
1862
1861
  0,
1863
1862
  0
1864
1863
  ], .98).map(Math.round);
1865
- let t = e === c ? a : `rgb(${e})`, n = Xt(e) > .194 ? "#121316" : "#ffffff";
1864
+ let t = e === c ? a : `rgb(${e})`, n = Kt(e) > .194 ? "#121316" : "#ffffff";
1866
1865
  r.style.setProperty("--ck-accent", t), r.style.setProperty("--ck-mark", t), r.style.setProperty("--ck-accent-ink", n), r.style.setProperty("--ck-mark-ink", n);
1867
1866
  }
1868
- let l = Xt(Yt(c, Jt(i ? "#212126" : "#ffffff"), .12)) + .05, u = Jt(i ? "#ffffff" : "#121316"), d = c;
1869
- for (let e = 1, t; e > 0 && (t = Xt(d = Yt(c, u, e)) + .05) / l < 4.5 && l / t < 4.5; e -= .05);
1867
+ let l = Kt(Gt(c, Wt(i ? "#212126" : "#ffffff"), .12)) + .05, u = Wt(i ? "#ffffff" : "#121316"), d = c;
1868
+ for (let e = 1, t; e > 0 && (t = Kt(d = Gt(c, u, e)) + .05) / l < 4.5 && l / t < 4.5; e -= .05);
1870
1869
  r.style.setProperty("--ck-accent-text", `rgb(${d.map(Math.round)})`);
1871
1870
  };
1872
1871
  l();
1873
1872
  let u = matchMedia("(prefers-color-scheme: dark)");
1874
1873
  u.addEventListener?.("change", l);
1875
- let d = e.state.subscribe(l), f = window.visualViewport, p = () => f && r.style.setProperty("--ck-kb", W(f.scale > 1.01 ? 0 : Math.max(0, Math.round(innerHeight - f.height - f.offsetTop))));
1876
- return f?.addEventListener("resize", p), f?.addEventListener("scroll", p), w(/* @__PURE__ */ x(Qt, {
1874
+ let d = e.state.subscribe(l), f = window.visualViewport, p = () => f && r.style.setProperty("--ck-kb", G(f.scale > 1.01 ? 0 : Math.max(0, Math.round(innerHeight - f.height - f.offsetTop))));
1875
+ return f?.addEventListener("resize", p), f?.addEventListener("scroll", p), w(/* @__PURE__ */ x(Jt, {
1877
1876
  onCrash: t,
1878
1877
  onError: (t) => e.reportCrash(t),
1879
- children: /* @__PURE__ */ x(Wt, {
1878
+ children: /* @__PURE__ */ x(Bt, {
1880
1879
  client: e,
1881
1880
  onHide: n
1882
1881
  })
1883
1882
  }), a), Object.assign(() => {
1884
- o = !0, removeEventListener("load", c), w(null, a), Ue(null), d(), u.removeEventListener?.("change", l), f?.removeEventListener("resize", p), f?.removeEventListener("scroll", p), r.remove();
1883
+ o = !0, removeEventListener("load", c), w(null, a), k(null), d(), u.removeEventListener?.("change", l), f?.removeEventListener("resize", p), f?.removeEventListener("scroll", p), r.remove();
1885
1884
  }, { attach: s });
1886
1885
  }
1887
- var Jt = (e) => e.slice(1).match(/../g).map((e) => parseInt(e, 16)), Yt = (e, t, n) => e.map((e, r) => e * n + t[r] * (1 - n)), Xt = (e) => {
1886
+ var Wt = (e) => e.slice(1).match(/../g).map((e) => parseInt(e, 16)), Gt = (e, t, n) => e.map((e, r) => e * n + t[r] * (1 - n)), Kt = (e) => {
1888
1887
  let [t, n, r] = e.map((e) => (e /= 255) <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
1889
1888
  return .2126 * t + .7152 * n + .0722 * r;
1890
- }, Zt = !1, Qt = class extends C {
1889
+ }, qt = !1, Jt = class extends C {
1891
1890
  constructor(...e) {
1892
1891
  super(...e), this.state = { crashed: !1 };
1893
1892
  }
@@ -1897,7 +1896,7 @@ var Jt = (e) => e.slice(1).match(/../g).map((e) => parseInt(e, 16)), Yt = (e, t,
1897
1896
  try {
1898
1897
  this.props.onError?.(e);
1899
1898
  } catch {}
1900
- Zt || (Zt = !0, console.warn("[CommentKit] The widget stopped after an error and was removed. Your page is not affected.", e)), setTimeout(() => {
1899
+ qt || (qt = !0, console.warn("[CommentKit] The widget stopped after an error and was removed. Your page is not affected.", e)), setTimeout(() => {
1901
1900
  try {
1902
1901
  this.props.onCrash();
1903
1902
  } catch {}
@@ -1907,10 +1906,10 @@ var Jt = (e) => e.slice(1).match(/../g).map((e) => parseInt(e, 16)), Yt = (e, t,
1907
1906
  render() {
1908
1907
  return this.state.crashed ? null : this.props.children;
1909
1908
  }
1910
- }, $t = /* @__PURE__ */ e({
1909
+ }, Yt = /* @__PURE__ */ e({
1911
1910
  en: () => y,
1912
1911
  installDiagnostics: () => ee,
1913
- mountWidget: () => qt,
1912
+ mountWidget: () => Ut,
1914
1913
  setLocale: () => b
1915
1914
  });
1916
- export { be as A, ne as B, Z as C, pe as D, K as E, _e as F, ie as H, se as I, ye as L, Se as M, Ce as N, fe as O, oe as P, I as R, De as S, de as T, ae as U, te as V, re as W, ke as _, it as a, Q as b, We as c, Re as d, y as en, Fe as f, Pe as g, Me as h, at as i, ee as installDiagnostics, G as j, ce as k, Be as l, ze as m, qt as mountWidget, ot as n, nt as o, Ie as p, rt as r, Je as s, b as setLocale, $t as t, Le as u, Ae as v, ve as w, Te as x, Ee as y, B as z };
1915
+ export { K as A, re as B, ye as C, me as D, he as E, ve as F, U as H, se as I, be as L, we as M, oe as N, ce as O, G as P, L as R, Z as S, q as T, ae as U, ne as V, ie as W, je as _, et as a, Ee as b, Ve as c, Ie as d, y as en, Le as f, Ae as g, Fe as h, tt as i, ee as installDiagnostics, Ce as j, xe as k, Re as l, Ne as m, Ut as mountWidget, nt as n, Qe as o, Be as p, $e as r, We as s, b as setLocale, Yt as t, ze as u, De as v, fe as w, Oe as x, Q as y, V as z };