@commentkit/comment-kit 2.1.0 → 2.1.1

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 (62) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/npm/chunks/{AgentSend-pA7Ufvye.js → AgentSend-B4rxdY68.js} +3 -3
  3. package/dist/npm/chunks/{Checklist-Cn9skOYK.js → Checklist-Cy68X5qC.js} +8 -8
  4. package/dist/npm/chunks/{Composer-D7H-pzGa.js → Composer-D65l6Jg4.js} +33 -33
  5. package/dist/npm/chunks/{DatePicker-Nta5a1xD.js → DatePicker-BPzzqW3f.js} +3 -3
  6. package/dist/npm/chunks/{Guest-Bi7hlzhs.js → Guest-C-ZhARI0.js} +5 -5
  7. package/dist/npm/chunks/{MarkupEditor-WU3USeTk.js → MarkupEditor-BOb2jFTR.js} +8 -8
  8. package/dist/npm/chunks/{Panel-DhAzbUbC.js → Panel-DgdCgaC-.js} +267 -267
  9. package/dist/npm/chunks/{Settings-BmKqPX40.js → Settings-BbWu2Rd5.js} +18 -18
  10. package/dist/npm/chunks/{Shortcuts-Bl-c0Sez.js → Shortcuts-C5wEx-Mq.js} +4 -4
  11. package/dist/npm/chunks/SignInFirst-BlMbutED.js +36 -0
  12. package/dist/npm/chunks/{StyleEditor-D6fUnlwq.js → StyleEditor-BN2z7mUs.js} +4 -4
  13. package/dist/npm/chunks/{StylePanel-C-Gikxt1.js → StylePanel-BZk-r-kl.js} +3 -3
  14. package/dist/npm/chunks/{TaskFields-CaKi523b.js → TaskFields-B2-YvIwV.js} +21 -21
  15. package/dist/npm/chunks/{ThreadCard-d_3pUB5V.js → ThreadCard-xKy4JbXK.js} +46 -46
  16. package/dist/npm/chunks/{Viewer-BULQsi9-.js → Viewer-DL6M3wAT.js} +3 -3
  17. package/dist/npm/chunks/{agent-DHdhIJ3s.js → agent-D1VQvc14.js} +12 -12
  18. package/dist/npm/chunks/{ar-B5UszrQp.js → ar-DtfC6tHi.js} +2 -0
  19. package/dist/npm/chunks/{card-bits-cV8GdFWX.js → card-bits-B94SwnS9.js} +5 -5
  20. package/dist/npm/chunks/{client-Cv8ddtuM.js → client-CULjcQxz.js} +7 -7
  21. package/dist/npm/chunks/{confetti-B9zlyILU.js → confetti-K_xKxQGa.js} +1 -1
  22. package/dist/npm/chunks/{context-CsHnabaA.js → context-0MfEgoip.js} +1 -1
  23. package/dist/npm/chunks/{de-BE0Aaq8u.js → de-CSyX5Cz-.js} +2 -0
  24. package/dist/npm/chunks/{dpop-CwW9ifkq.js → dpop-DpxIN5kL.js} +1 -1
  25. package/dist/npm/chunks/{entrance-Bn_5M9uO.js → entrance-CO0AzUKy.js} +1 -1
  26. package/dist/npm/chunks/{es-BQviao4d.js → es-D7SAi7fz.js} +2 -0
  27. package/dist/npm/chunks/{extension-DXhz81XD.js → extension-DpfiPOjC.js} +1 -1
  28. package/dist/npm/chunks/{extension-CnQTDC1j.js → extension-faFfCApb.js} +2 -2
  29. package/dist/npm/chunks/{files-DLEr_wmh.js → files-BkHuRlcW.js} +2 -2
  30. package/dist/npm/chunks/{fr-C5gu6A06.js → fr-CIr2nUyu.js} +2 -0
  31. package/dist/npm/chunks/{hi-DXfQ5EvY.js → hi-BTocxOL5.js} +2 -0
  32. package/dist/npm/chunks/{i18n-Mgs9VOuk.js → i18n-CDw_D17c.js} +10 -10
  33. package/dist/npm/chunks/{icons-_C6ZWmBY.js → icons-BJLm_C0M.js} +1 -1
  34. package/dist/npm/chunks/{identify-BnQGJOa0.js → identify-963WDKul.js} +1 -1
  35. package/dist/npm/chunks/{it-BPHt13FV.js → it-DCExRo0r.js} +2 -0
  36. package/dist/npm/chunks/{ja-BkCqyKR0.js → ja-CgWpTdWi.js} +2 -0
  37. package/dist/npm/chunks/{late-words-D4Oo_yhJ.js → late-words-QnNheaDY.js} +2 -0
  38. package/dist/npm/chunks/{live-DXcxj_Af.js → live-BI72WQBA.js} +24 -22
  39. package/dist/npm/chunks/{nl-DZxdLLMU.js → nl-DhTQ8oJ_.js} +2 -0
  40. package/dist/npm/chunks/{page-key-UqAozdZi.js → page-key-CW8Mtf60.js} +1 -1
  41. package/dist/npm/chunks/{pick-C20RVUas.js → pick-BRhngGMq.js} +1 -1
  42. package/dist/npm/chunks/{pkce-BPvWoBrr.js → pkce-BEeLAZhN.js} +1 -1
  43. package/dist/npm/chunks/{pt-BR-lA9mJ05F.js → pt-BR-DrO6LV4n.js} +2 -0
  44. package/dist/npm/chunks/{report-BjUgUNnT.js → report-DAzQvgUh.js} +1 -1
  45. package/dist/npm/chunks/{show-BinoJyED.js → show-Ka3g4eCJ.js} +7 -7
  46. package/dist/npm/chunks/{signin-C2jjsxz9.js → signin-Car5vP1U.js} +3 -3
  47. package/dist/npm/chunks/{source-NuflODx3.js → source-dd_it90W.js} +1 -1
  48. package/dist/npm/chunks/{src-9o2Ocq8d.js → src-fTYV50pw.js} +7 -7
  49. package/dist/npm/chunks/{start-Cbx6rMrr.js → start-CE5eR33Z.js} +461 -449
  50. package/dist/npm/chunks/{upload-C4NpM-jE.js → upload-Dcv9CCly.js} +1 -1
  51. package/dist/npm/chunks/{uploads-CY4bDbaI.js → uploads-CmeoNVO2.js} +196 -196
  52. package/dist/npm/chunks/wrap-B0mzrRhc.js +69 -0
  53. package/dist/npm/chunks/{zh-CN-yqaDHwBx.js → zh-CN-Bb8UzT1V.js} +2 -0
  54. package/dist/npm/element.js +1 -1
  55. package/dist/npm/headless.js +2 -2
  56. package/dist/npm/index.js +2 -2
  57. package/dist/npm/react.js +1 -1
  58. package/dist/npm/svelte.js +1 -1
  59. package/dist/npm/vue.js +1 -1
  60. package/package.json +1 -1
  61. package/dist/npm/chunks/SignInFirst-CmGvSYkQ.js +0 -35
  62. package/dist/npm/chunks/wrap-D-xTKIzj.js +0 -69
@@ -1,43 +1,43 @@
1
1
  import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
2
- import { n as t } from "./src-9o2Ocq8d.js";
3
- import { o as n, v as r } from "./client-Cv8ddtuM.js";
2
+ import { n as t } from "./src-fTYV50pw.js";
3
+ import { o as n, v as r } from "./client-CULjcQxz.js";
4
4
  import { i, o as a, t as o } from "./anchor-BsQNVkHj.js";
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 ee, x as S, y as C } from "./i18n-Mgs9VOuk.js";
6
- import { a as w, i as T, n as E, r as D } from "./drafts-B0ctr1g9.js";
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
+ import { a as T, i as E, n as D, r as O } from "./drafts-B0ctr1g9.js";
7
7
  // src/capture/diagnostics.ts
8
- var O = 20, k = /token|key|secret|passw|^pass$|auth|code|session|sig|credential|^x-amz-|ck_invite/i, A = /[\w.%+-]{1,64}@[A-Za-z0-9-]{1,63}(?:\.[A-Za-z0-9-]{1,63}){0,8}\.[A-Za-z]{2,24}/g, j = /(^|[^\w-])(\+?\d(?:[\s().-]{0,2}\d){8,})(?!\w)/g, M = (e) => e.replace(A, "[email]").replace(j, "$1[number]"), N = /eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+/, P = 1e3, F = [], I = [], L = !1, R = "";
9
- function z(e) {
10
- if (L || !(e.console || e.network)) return () => void 0;
11
- L = !0, R = `${new URL(e.endpoint ?? "https://commentkit.dev").origin}/api/v1/`;
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
+ 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/`;
12
12
  let t, n = !1;
13
- return import("./wrap-D-xTKIzj.js").then((r) => n || (t = r.wrap(e)), () => void 0), () => {
14
- n = !0, t?.(), B(), L = !1;
13
+ return import("./wrap-B0mzrRhc.js").then((r) => n || (t = r.wrap(e)), () => void 0), () => {
14
+ n = !0, t?.(), V(), R = !1;
15
15
  };
16
16
  }
17
- function te() {
17
+ function B() {
18
18
  return {
19
- console: F.length ? [...F] : void 0,
20
- network: I.length ? [...I] : void 0
19
+ console: I.length ? [...I] : void 0,
20
+ network: L.length ? [...L] : void 0
21
21
  };
22
22
  }
23
- function B() {
24
- F.length = 0, I.length = 0;
23
+ function V() {
24
+ I.length = 0, L.length = 0;
25
25
  }
26
- function ne(e, t, n, r) {
26
+ function te(e, t, n, r) {
27
27
  try {
28
- if (new URL(t, location.href).href.startsWith(R)) return;
28
+ if (new URL(t, location.href).href.startsWith(z)) return;
29
29
  } catch {}
30
- re(I, {
30
+ ne(L, {
31
31
  method: e.slice(0, 10),
32
- url: H(t).slice(0, 2e3),
32
+ url: re(t).slice(0, 2e3),
33
33
  status: n,
34
34
  duration_ms: Math.round(performance.now() - r)
35
35
  });
36
36
  }
37
- function re(e, t) {
38
- e.push(t), e.length > O && e.shift();
37
+ function ne(e, t) {
38
+ e.push(t), e.length > k && e.shift();
39
39
  }
40
- function V(e) {
40
+ function H(e) {
41
41
  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;
42
42
  let t = /* @__PURE__ */ new Map();
43
43
  for (let n of e) t.set(n, (t.get(n) ?? 0) + 1);
@@ -45,18 +45,18 @@ function V(e) {
45
45
  for (let r of t.values()) n -= r / e.length * Math.log2(r / e.length);
46
46
  return n >= 3.5;
47
47
  }
48
- function H(e) {
48
+ function re(e) {
49
49
  try {
50
50
  let t = new URL(e, location.href);
51
- t.username = "", t.password = "", t.pathname = t.pathname.split("/").map((e) => N.test(e) || V(e) && /[A-Za-z\d]{16}/.test(e) && !e.includes(".") ? "[redacted]" : M(U(e)) === U(e) ? e : M(U(e))).join("/");
52
- for (let [e, n] of [...t.searchParams]) k.test(e) || V(n) ? t.searchParams.set(e, "[redacted]") : M(n) !== n && t.searchParams.set(e, M(n));
53
- return t.hash && (k.test(t.hash) || t.hash.split(/[#&=/]/).some(V) || M(U(t.hash)) !== U(t.hash)) && (t.hash = "#[redacted]"), t.toString();
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();
54
54
  } catch {
55
55
  return "[unparseable url]";
56
56
  }
57
57
  }
58
58
  function ie(e) {
59
- return e.replace(/Bearer\s+[A-Za-z0-9._~+/-]+=*/gi, "Bearer [redacted]").replace(new RegExp(N.source, "g"), "[redacted-jwt]").replace(/https?:\/\/[^\s"'<>]+/g, (e) => H(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) => V(e) ? "[redacted]" : 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);
60
60
  }
61
61
  var U = (e) => {
62
62
  try {
@@ -66,58 +66,58 @@ var U = (e) => {
66
66
  }
67
67
  };
68
68
  function ae(e) {
69
- return M(ie(e.slice(0, P))).slice(0, P);
69
+ return N(ie(e.slice(0, F))).slice(0, F);
70
70
  }
71
71
  // src/ui/format.tsx
72
- function W(e, t = innerWidth) {
72
+ function oe(e, t = innerWidth) {
73
73
  return !!e.breakpoint && Math.abs(e.breakpoint - t) > 200;
74
74
  }
75
- var oe = (e) => e < 600 ? "phone" : e < 1024 ? "tablet" : "wide", G = (e) => `${Math.round(e * 100) / 100}px`, K = (e, t, n, r) => ({
76
- left: G(e),
77
- top: G(t),
78
- ...n === void 0 ? {} : { width: G(n) },
79
- ...r === void 0 ? {} : { height: G(r) }
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) }
80
80
  });
81
- function q({ text: e, people: t = [] }) {
81
+ function ce({ text: e, people: t = [] }) {
82
82
  let n = he(t), r = [], i = 0;
83
- for (let t of e.matchAll(J)) {
83
+ for (let t of e.matchAll(K)) {
84
84
  let a = t.index ?? 0;
85
- a > i && r.push(se(e.slice(i, a), n)), r.push(/* @__PURE__ */ x("pre", {
85
+ a > i && r.push(q(e.slice(i, a), n)), r.push(/* @__PURE__ */ x("pre", {
86
86
  class: "ck-pre",
87
87
  children: /* @__PURE__ */ x("code", { children: t[2].replace(/^\n|\n$/g, "") })
88
88
  })), i = a + t[0].length;
89
89
  }
90
- return i < e.length && r.push(se(e.slice(i), n)), /* @__PURE__ */ x(l, { children: r });
90
+ return i < e.length && r.push(q(e.slice(i), n)), /* @__PURE__ */ x(l, { children: r });
91
91
  }
92
- var J = /```([\w-]*)\n?([\s\S]*?)```/g;
93
- function se(e, t) {
92
+ var K = /```([\w-]*)\n?([\s\S]*?)```/g;
93
+ function q(e, t) {
94
94
  let n = e.replace(/^\n/, "").split("\n");
95
95
  return n.map((e, r) => /* @__PURE__ */ x(l, { children: [ge(e, t), r < n.length - 1 ? /* @__PURE__ */ x("br", {}) : null] }));
96
96
  }
97
- var ce = null;
98
- function Y(e) {
99
- ce = e;
100
- }
97
+ var J = null;
101
98
  function le(e) {
99
+ J = e;
100
+ }
101
+ function ue(e) {
102
102
  return [...e.includes("‍") ? e : e.replace(/\ufe0f/g, "")].map((e) => e.codePointAt(0).toString(16)).join("-");
103
103
  }
104
- function ue({ char: e }) {
104
+ function de({ char: e }) {
105
105
  let [t, n] = s(!1);
106
- return !ce || t ? /* @__PURE__ */ x(l, { children: e }) : /* @__PURE__ */ x("img", {
106
+ return !J || t ? /* @__PURE__ */ x(l, { children: e }) : /* @__PURE__ */ x("img", {
107
107
  class: "ck-emoji",
108
- src: `${ce}/emoji/${le(e)}.svg`,
108
+ src: `${J}/emoji/${ue(e)}.svg`,
109
109
  alt: e,
110
110
  draggable: !1,
111
111
  loading: "lazy",
112
112
  onError: () => n(!0)
113
113
  });
114
114
  }
115
- var de = String.raw`\p{Extended_Pictographic}(?:\ufe0f|\p{Emoji_Modifier}|\u200d\p{Extended_Pictographic}\ufe0f?)*`, X = String.raw`\*\*[^*\n]+\*\*|~~[^~\n]+~~|\x60[^\x60\n]+\x60|\*[^*\s][^*\n]*\*|(?:^|[\s(\[])_[^_\n]+_(?![\p{L}\p{N}_])`, fe = String.raw`https?:\/\/[^\s<>"')\u200b-\u200f\u202a-\u202e\u2060-\u2069\ufeff]+`, pe = `${X}|${fe}`, me = /* @__PURE__ */ new Map();
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
116
  function he(e) {
117
- let t = e.join("\0"), n = me.get(t);
117
+ let t = e.join("\0"), n = X.get(t);
118
118
  if (!n) {
119
119
  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(`${pe}|${i}|${de}`, "gu"), me.set(t, n);
120
+ n = RegExp(`${me}|${i}|${Y}`, "gu"), X.set(t, n);
121
121
  }
122
122
  return n;
123
123
  }
@@ -133,7 +133,7 @@ function ge(e, t) {
133
133
  class: "ck-mention",
134
134
  children: /* @__PURE__ */ x("bdi", { children: a })
135
135
  }));
136
- else if (/^\p{Extended_Pictographic}/u.test(a)) n.push(/* @__PURE__ */ x(ue, { char: a }));
136
+ else if (/^\p{Extended_Pictographic}/u.test(a)) n.push(/* @__PURE__ */ x(de, { char: a }));
137
137
  else {
138
138
  let e = _e(a);
139
139
  n.push(e ? /* @__PURE__ */ x("a", {
@@ -363,19 +363,19 @@ function Pe(e) {
363
363
  return t ? u(t) : _() === "en" && e.status >= 400 && e.message ? e.message : u("errorGeneric");
364
364
  }
365
365
  // src/ui/draft-key.ts
366
- var Fe = "commentkit:pending-compose", Ie = "commentkit:press-send", Le = "commentkit:comment-after-sign-in";
367
- function Re(e, t, n = e.pageKey()) {
368
- return E(e.options.project, n, t.type, t.selector, t.ck_id, t.source, t.quote);
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()) {
368
+ return D(e.options.project, n, t.type, t.selector, t.ck_id, t.source, t.quote);
369
369
  }
370
370
  // src/ui/privacy.ts
371
- var ze = (e, t) => e?.privacy?.mode === "strict" ? "strict" : t, Be = [], Ve = null;
372
- function He(e) {
373
- Ve = e, e && Be.forEach((t) => We(e, t));
374
- }
371
+ var Be = (e, t) => e?.privacy?.mode === "strict" ? "strict" : t, Ve = [], He = null;
375
372
  function Ue(e) {
376
- Be.includes(e) || (Be.push(e), Ve && We(Ve, 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
377
  }
378
- function We(e, t) {
378
+ function Ge(e, t) {
379
379
  if ("adoptedStyleSheets" in e && "replaceSync" in CSSStyleSheet.prototype) {
380
380
  let n = new CSSStyleSheet();
381
381
  n.replaceSync(t), e.adoptedStyleSheets = [...e.adoptedStyleSheets, n];
@@ -385,26 +385,26 @@ function We(e, t) {
385
385
  }
386
386
  }
387
387
  // src/ui/deep-links.ts
388
- var Ge = "commentkit:share";
389
- function Ke(e, t) {
388
+ var Ke = "commentkit:share";
389
+ function qe(e, t) {
390
390
  let n = new URL(location.href).searchParams.get(e);
391
- return !n || !t.test(n) ? null : (Xe(location.href.replace(/^[^#]*/, (t) => t.replace(RegExp(`([?&])${e}=[^&]*(&?)`), (e, t, n) => n ? t : ""))), n);
391
+ return !n || !t.test(n) ? null : (Ze(location.href.replace(/^[^#]*/, (t) => t.replace(RegExp(`([?&])${e}=[^&]*(&?)`), (e, t, n) => n ? t : ""))), n);
392
392
  }
393
- function qe(e, t) {
393
+ function Je(e, t) {
394
394
  let [, n = "", r = ""] = /^([^#]*)(.*)$/s.exec(e) ?? [];
395
395
  return `${n}${n.includes("?") ? "&" : "?"}ck_thread=${encodeURIComponent(t)}${r}`;
396
396
  }
397
- function Je() {
398
- let e = Ke("ck", /^[A-Za-z0-9]{16,128}$/);
399
- return e && T(Ge, e), e ?? T(Ge);
397
+ function Ye() {
398
+ let e = qe("ck", /^[A-Za-z0-9]{16,128}$/);
399
+ return e && E(Ke, e), e ?? E(Ke);
400
400
  }
401
- var Ye = () => Ke("ck_thread", /^[0-9a-f-]{36}$/i);
402
- function Xe(e) {
401
+ var Xe = () => qe("ck_thread", /^[0-9a-f-]{36}$/i);
402
+ function Ze(e) {
403
403
  try {
404
404
  history.replaceState(history.state, "", e);
405
405
  } catch {}
406
406
  }
407
- function Ze(e, t = () => location.href) {
407
+ function Qe(e, t = () => location.href) {
408
408
  let n = location.href, r = t(), i = () => {
409
409
  if (location.href !== n) {
410
410
  n = location.href;
@@ -419,27 +419,27 @@ function Ze(e, t = () => location.href) {
419
419
  };
420
420
  }
421
421
  // src/ui/prefs.ts
422
- var Qe = "commentkit:v1:prefs", $e = /* @__PURE__ */ new Set(), et = null;
423
- function tt(e = !0) {
424
- if (et !== null) return et;
422
+ var $e = "commentkit:v1:prefs", et = /* @__PURE__ */ new Set(), tt = null;
423
+ function nt(e = !0) {
424
+ if (tt !== null) return tt;
425
425
  try {
426
- let t = JSON.parse(D(Qe) ?? "{}")?.shortcuts;
426
+ let t = JSON.parse(O($e) ?? "{}")?.shortcuts;
427
427
  return typeof t == "boolean" ? t : e;
428
428
  } catch {
429
429
  return e;
430
430
  }
431
431
  }
432
- function nt(e) {
433
- return e.options.shortcuts !== !1 && tt(!!e.state.get().session?.capabilities.triage);
434
- }
435
432
  function rt(e) {
436
- et = e, D(Qe, JSON.stringify({ shortcuts: e })), $e.forEach((e) => e());
433
+ return e.options.shortcuts !== !1 && nt(!!e.state.get().session?.capabilities.triage);
437
434
  }
438
435
  function it(e) {
439
- return $e.add(e), () => void $e.delete(e);
436
+ tt = e, O($e, JSON.stringify({ shortcuts: e })), et.forEach((e) => e());
437
+ }
438
+ function at(e) {
439
+ return et.add(e), () => void et.delete(e);
440
440
  }
441
441
  // src/ui/Welcome.tsx
442
- function at({ id: e, position: t, title: n, body: r, primary: i, secondary: a, onPrimary: o, onSecondary: s }) {
442
+ function ot({ id: e, position: t, title: n, body: r, primary: i, secondary: a, onPrimary: o, onSecondary: s }) {
443
443
  return /* @__PURE__ */ x("div", {
444
444
  class: "ck-welcome",
445
445
  "data-pos": t,
@@ -467,8 +467,8 @@ function at({ id: e, position: t, title: n, body: r, primary: i, secondary: a, o
467
467
  ]
468
468
  });
469
469
  }
470
- function ot({ position: e, project: t, onStart: n, onDismiss: r }) {
471
- return /* @__PURE__ */ x(at, {
470
+ function st({ position: e, project: t, onStart: n, onDismiss: r }) {
471
+ return /* @__PURE__ */ x(ot, {
472
472
  id: "ck-welcome-title",
473
473
  position: e,
474
474
  title: u("welcomeTitle", { project: t }),
@@ -479,8 +479,8 @@ function ot({ position: e, project: t, onStart: n, onDismiss: r }) {
479
479
  onSecondary: r
480
480
  });
481
481
  }
482
- function st({ position: e, project: t, onContinue: n, onDismiss: r }) {
483
- return /* @__PURE__ */ x(at, {
482
+ function ct({ position: e, project: t, onContinue: n, onDismiss: r }) {
483
+ return /* @__PURE__ */ x(ot, {
484
484
  id: "ck-signin-link-title",
485
485
  position: e,
486
486
  title: u("signInLinkTitle", { project: t }),
@@ -492,8 +492,8 @@ function st({ position: e, project: t, onContinue: n, onDismiss: r }) {
492
492
  });
493
493
  }
494
494
  // src/ui/chunks.ts
495
- function ct(e, n, r, i, a, o) {
496
- let s = Q(a, () => t(() => import("./Settings-BmKqPX40.js")).then((e) => e.Settings), o), c = Q(i, () => t(() => import("./Shortcuts-Bl-c0Sez.js")).then((e) => e.Shortcuts), o), l = Q(r.name === "commenting" || r.name === "composing", () => t(() => import("./Composer-D7H-pzGa.js")).then((t) => (e.state.get().config?.features.screenshots !== !1 && t.warmCapture(), t.Composer)), o), u = Q(r.name === "verify", () => t(() => import("./Guest-Bi7hlzhs.js")).then((e) => e.GuestVerify), o), d = Q(r.name === "panel", () => t(() => import("./Panel-DhAzbUbC.js")).then((e) => e.Panel), o), p = Q(r.name === "thread" || r.name === "panel" ? r.threadId : null, () => t(() => import("./ThreadCard-d_3pUB5V.js")).then((e) => e.ThreadCard), o), m = () => [[...e.state.get().config?.privacy?.redact_selectors ?? [], ...e.options.redact ?? []], ze(e.state.get().config, e.options.privacy)], h = Q(!0, () => Promise.all([t(() => import("./context-BuMl7A07.js").then((e) => e.t)), t(() => import("./pick-C20RVUas.js"))]).then(([e, t]) => (e.install(), e.configurePrivacy(...m()), {
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()), {
497
497
  configurePrivacy: e.configurePrivacy,
498
498
  picker: t
499
499
  })), o);
@@ -508,81 +508,81 @@ function ct(e, n, r, i, a, o) {
508
508
  };
509
509
  }
510
510
  // src/ui/dock.ts
511
- var lt = "commentkit:dock";
512
- function ut(e, t) {
511
+ var ut = "commentkit:dock";
512
+ function dt(e, t) {
513
513
  let [n, r] = s(() => {
514
- let e = D(lt);
514
+ let e = O(ut);
515
515
  return e && /^(top|bottom)-(left|center|right)$/.test(e) ? e : null;
516
516
  });
517
517
  return [n ?? e.options.position ?? t?.appearance.position ?? "bottom-right", (e) => {
518
- r(e), D(lt, e);
518
+ r(e), O(ut, e);
519
519
  }];
520
520
  }
521
521
  // src/ui/keys.ts
522
- var dt = (e) => !e.metaKey && !e.ctrlKey && !e.altKey, ft = (e, t) => e.composedPath().some((e) => e instanceof HTMLElement && e.classList.contains(t));
523
- function pt(e, t) {
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) {
524
524
  let { key: n } = e;
525
- if (e.defaultPrevented || Oe(e) || ft(e, "ck-markup") || ft(e, "ck-pop") || n !== "Escape" && !(t.keys && ke(e))) return null;
525
+ if (e.defaultPrevented || Oe(e) || pt(e, "ck-markup") || pt(e, "ck-pop") || n !== "Escape" && !(t.keys && ke(e))) return null;
526
526
  if (t.help) return n === "Escape" ? "closeHelp" : null;
527
527
  let { view: r, threads: i } = t;
528
- if (n === "?" && dt(e)) return "help";
528
+ if (n === "?" && ft(e)) return "help";
529
529
  if (n === "Escape" && r.name !== "idle") return "back";
530
- if ((n === "c" || n === "C") && dt(e) && r.name === "idle") return "comment";
531
- if ((n === "j" || n === "k") && dt(e) && t.signedIn && (r.name === "idle" || r.name === "thread")) {
532
- if (!i.length || ft(e, "ck-panel")) return null;
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;
533
533
  let t = r.name === "thread" ? i.findIndex((e) => e.id === r.threadId) : -1;
534
534
  return i[(t + (n === "j" ? 1 : i.length - 1 + +(t < 0))) % i.length] ?? null;
535
535
  }
536
536
  return null;
537
537
  }
538
- function mt(e, t) {
538
+ function ht(e, t) {
539
539
  f(() => {
540
540
  let n = (n) => {
541
- let r = pt(n, e());
541
+ let r = mt(n, e());
542
542
  r && (r !== "closeHelp" && n.preventDefault(), t(r));
543
543
  };
544
544
  return addEventListener("keydown", n, !0), () => removeEventListener("keydown", n, !0);
545
545
  });
546
546
  }
547
- function ht(e, t, n, r) {
548
- let i = t.name === "commenting", a = g(!1);
547
+ function gt(e, t, n) {
548
+ let r = t.name === "commenting", i = g(!1);
549
549
  d(() => {
550
- (a.current || i) && e.emit("mode", { commenting: i }), a.current = !0;
551
- }, [i]);
552
- let o = Z(e.state, (e) => e.request);
550
+ (i.current || r) && e.emit("mode", { commenting: r }), i.current = !0;
551
+ }, [r]);
552
+ let a = Z(e.state, (e) => e.request);
553
553
  d(() => {
554
- o && (e.state.set({ request: null }), o.kind === "comment" ? i || r.comment() : o.kind === "stop" ? r.go({ name: "stop" }) : n ? r.togglePanel() : r.signIn());
555
- }, [o]);
554
+ a && (e.state.set({ request: null }), a.kind === "comment" ? r || n.comment() : a.kind === "stop" ? n.go({ name: "stop" }) : n.inbox());
555
+ }, [a]);
556
556
  }
557
557
  // src/ui/Launcher.tsx
558
- function gt({ 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: ee, covered: S, entrance: C }) {
559
- let w = Z(e.state, (e) => e.config?.read_only ?? !1), T = Z(e.state, (e) => e.session), E = Z(e.state, (e) => e.unread), [D, O] = s(!1), [k, A] = s(null), j = g(null), M = g(null), N = g(null);
560
- d(() => void (D && M.current?.querySelector("[role=menuitem]")?.focus()), [D]), De(D, M, () => O(!1)), f(() => {
561
- let e = M.current;
562
- if (!C || !e) return;
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
563
  e.dataset.entering = "";
564
564
  let n = () => void (e.dataset.entering = "done"), r = setTimeout(() => n(), 1500);
565
- return t(() => import("./entrance-Bn_5M9uO.js")).then((t) => {
566
- clearTimeout(r), e.dataset.entering === "" && (n = t.enter(e, C.key, C.say).stop);
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
567
  }, () => n()), () => (clearTimeout(r), n());
568
568
  }, []);
569
- let P = Ae();
569
+ let F = Ae();
570
570
  return /* @__PURE__ */ x("div", {
571
571
  class: "ck-launcher",
572
572
  "data-pos": n,
573
- "data-covered": S,
574
- "data-dragging": k ? "true" : void 0,
573
+ "data-covered": C,
574
+ "data-dragging": A ? "true" : void 0,
575
575
  "data-commentkit-ui": !0,
576
- ref: M,
577
- style: k ? {
578
- left: G(k.x),
579
- top: G(k.y),
576
+ ref: N,
577
+ style: A ? {
578
+ left: W(A.x),
579
+ top: W(A.y),
580
580
  right: "auto",
581
581
  bottom: "auto",
582
582
  translate: "none"
583
583
  } : void 0,
584
584
  children: [
585
- D ? null : b ? /* @__PURE__ */ x("div", {
585
+ O ? null : b ? /* @__PURE__ */ x("div", {
586
586
  class: "ck-note ck-launcher-note",
587
587
  role: "status",
588
588
  children: [
@@ -590,11 +590,11 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
590
590
  " ",
591
591
  /* @__PURE__ */ x("button", {
592
592
  class: "ck-btn",
593
- onClick: ee,
593
+ onClick: S,
594
594
  children: u("enterCode")
595
595
  })
596
596
  ]
597
- }) : w ? /* @__PURE__ */ x("div", {
597
+ }) : T ? /* @__PURE__ */ x("div", {
598
598
  class: "ck-note ck-launcher-note",
599
599
  role: "status",
600
600
  children: u("readOnlyShort")
@@ -615,23 +615,23 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
615
615
  children: u("comment")
616
616
  })]
617
617
  }),
618
- T ? /* @__PURE__ */ x("button", {
618
+ E ? /* @__PURE__ */ x("button", {
619
619
  class: "ck-bar-btn ck-icon-btn",
620
620
  "aria-pressed": a,
621
621
  onClick: c,
622
622
  title: u("inbox"),
623
- "aria-label": `${u("inbox")}${E ? ` (${E})` : ""}`,
624
- children: [/* @__PURE__ */ x(xe, { name: "inbox" }), E > 0 ? /* @__PURE__ */ x("span", {
623
+ "aria-label": `${u("inbox")}${D ? ` (${D})` : ""}`,
624
+ children: [/* @__PURE__ */ x(xe, { name: "inbox" }), D > 0 ? /* @__PURE__ */ x("span", {
625
625
  class: "ck-badge",
626
- children: E > 99 ? "99+" : E
626
+ children: D > 99 ? "99+" : D
627
627
  }) : null]
628
628
  }) : null,
629
629
  /* @__PURE__ */ x("button", {
630
630
  class: "ck-bar-btn ck-icon-btn",
631
- ref: N,
631
+ ref: P,
632
632
  "aria-haspopup": "menu",
633
- "aria-expanded": D,
634
- onClick: () => O(!D),
633
+ "aria-expanded": O,
634
+ onClick: () => k(!O),
635
635
  "aria-label": u("moreFeedback"),
636
636
  title: u("moreFeedback"),
637
637
  children: /* @__PURE__ */ x(xe, { name: "more" })
@@ -644,26 +644,26 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
644
644
  onPointerDown: (e) => {
645
645
  if (e.button !== 0) return;
646
646
  let t = e.currentTarget.closest(".ck-launcher").getBoundingClientRect();
647
- j.current = {
647
+ M.current = {
648
648
  dx: e.clientX - t.left,
649
649
  dy: e.clientY - t.top
650
650
  }, e.currentTarget.setPointerCapture(e.pointerId);
651
651
  },
652
652
  onPointerMove: (e) => {
653
- let t = j.current;
654
- t && A({
653
+ let t = M.current;
654
+ t && j({
655
655
  x: e.clientX - t.dx,
656
656
  y: e.clientY - t.dy
657
657
  });
658
658
  },
659
659
  onPointerUp: (e) => {
660
- let t = j.current;
661
- if (j.current = null, !t || !k) return A(null);
662
- A(null), r(_t(e.clientX, e.clientY));
660
+ let t = M.current;
661
+ if (M.current = null, !t || !A) return j(null);
662
+ j(null), r(vt(e.clientX, e.clientY));
663
663
  },
664
- onPointerCancel: () => (j.current = null, A(null)),
664
+ onPointerCancel: () => (M.current = null, j(null)),
665
665
  onKeyDown: (e) => {
666
- let t = vt(n, e.key);
666
+ let t = yt(n, e.key);
667
667
  t && (e.preventDefault(), r(t));
668
668
  },
669
669
  children: /* @__PURE__ */ x("svg", {
@@ -707,20 +707,20 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
707
707
  })
708
708
  ]
709
709
  }),
710
- D ? /* @__PURE__ */ x("div", {
710
+ O ? /* @__PURE__ */ x("div", {
711
711
  class: "ck-menu ck-pop",
712
712
  role: "menu",
713
- onClick: () => (O(!1), N.current?.focus()),
714
- onKeyDown: (e) => e.key === "Escape" ? (e.stopPropagation(), O(!1), N.current?.focus()) : Ee(e, "[role=menuitem]", !0),
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),
715
715
  children: [
716
- T ? /* @__PURE__ */ x(l, { children: [
716
+ E ? /* @__PURE__ */ x(l, { children: [
717
717
  /* @__PURE__ */ x("div", {
718
718
  class: "ck-menu-head",
719
- title: `${T.person.name} · ${T.project.name}`,
719
+ title: `${E.person.name} · ${E.project.name}`,
720
720
  children: [
721
- /* @__PURE__ */ x("bdi", { children: T.person.name }),
721
+ /* @__PURE__ */ x("bdi", { children: E.person.name }),
722
722
  " · ",
723
- /* @__PURE__ */ x("bdi", { children: T.project.name })
723
+ /* @__PURE__ */ x("bdi", { children: E.project.name })
724
724
  ]
725
725
  }),
726
726
  /* @__PURE__ */ x("button", {
@@ -747,14 +747,14 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
747
747
  /* @__PURE__ */ x("button", {
748
748
  role: "menuitem",
749
749
  class: "ck-menu-two",
750
- "aria-keyshortcuts": P ? "Meta+Shift+K" : "Control+Shift+K",
750
+ "aria-keyshortcuts": F ? "Meta+Shift+K" : "Control+Shift+K",
751
751
  onClick: v,
752
752
  children: [u("hideWidget"), je() ? null : /* @__PURE__ */ x("span", {
753
753
  class: "ck-muted",
754
- children: u("hideWidgetHint", { keys: P ? "⌘ Shift K" : "Ctrl Shift K" })
754
+ children: u("hideWidgetHint", { keys: F ? "⌘ Shift K" : "Ctrl Shift K" })
755
755
  })]
756
756
  }),
757
- T ? /* @__PURE__ */ x("button", {
757
+ E ? /* @__PURE__ */ x("button", {
758
758
  role: "menuitem",
759
759
  class: "ck-danger",
760
760
  onClick: m,
@@ -765,10 +765,10 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
765
765
  ]
766
766
  });
767
767
  }
768
- function _t(e, t) {
768
+ function vt(e, t) {
769
769
  return `${t < innerHeight / 2 ? "top" : "bottom"}-${e < innerWidth / 3 ? "left" : e > innerWidth * 2 / 3 ? "right" : "center"}`;
770
770
  }
771
- function vt(e, t) {
771
+ function yt(e, t) {
772
772
  let [n, r] = e.split("-"), i = [
773
773
  "left",
774
774
  "center",
@@ -776,11 +776,11 @@ function vt(e, t) {
776
776
  ], a = i.indexOf(r);
777
777
  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
778
  }
779
- function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = null }) {
779
+ function bt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = null }) {
780
780
  let [p] = s(() => {
781
781
  let e = document.activeElement;
782
782
  return e && e !== document.body && e !== document.documentElement && !i(e) ? e : null;
783
- }), m = ee(() => matchMedia("(pointer: coarse)").matches, []), [h, _] = s(null), v = g(c);
783
+ }), m = S(() => matchMedia("(pointer: coarse)").matches, []), [h, _] = s(null), v = g(c);
784
784
  d(() => {
785
785
  let e = !0, r = (r) => {
786
786
  if (!e) return;
@@ -808,31 +808,31 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
808
808
  });
809
809
  }
810
810
  };
811
- return c ? r(c) : import("./pick-C20RVUas.js").then(r, () => {}), () => void (e = !1);
811
+ return c ? r(c) : import("./pick-BRhngGMq.js").then(r, () => {}), () => void (e = !1);
812
812
  }, []);
813
813
  let y = (e) => o({
814
814
  ...e,
815
815
  extra: v.current?.extra
816
- }), [b, S] = s(null), C = g(null), w = g(null), [T, E] = s([]), D = g(null), O = g(null);
817
- f(() => O.current?.focus({ preventScroll: !0 }), []);
818
- let k = g(null), A = g({
816
+ }), [b, C] = s(null), w = g(null), T = g(null), [E, D] = s([]), O = g(null), k = g(null);
817
+ f(() => k.current?.focus({ preventScroll: !0 }), []);
818
+ let A = g(null), j = g({
819
819
  timer: null,
820
820
  fired: !1
821
- }), j = () => {
822
- A.current.timer && clearTimeout(A.current.timer), A.current.timer = null;
821
+ }), M = () => {
822
+ j.current.timer && clearTimeout(j.current.timer), j.current.timer = null;
823
823
  };
824
- d(() => j, []);
825
- let M = (e, t) => {
826
- let n = D.current;
824
+ d(() => M, []);
825
+ let N = (e, t) => {
826
+ let n = O.current;
827
827
  if (!n) return null;
828
828
  let r = v.current;
829
829
  n.style.pointerEvents = "none";
830
830
  let a = r ? r.deepAt(e, t) : document.elementsFromPoint(e, t).find((e) => !i(e) && e !== document.documentElement && e !== document.body) ?? document.body;
831
831
  return n.style.pointerEvents = "auto", r ? r.paintedAt(a, (n) => {
832
- let i = F(e, t);
832
+ let i = I(e, t);
833
833
  return !!i && n.contains(i.node) && r.overText(e, t, i);
834
834
  }) : a;
835
- }, N = (e) => {
835
+ }, P = (e) => {
836
836
  if (!v.current) return;
837
837
  let n = a(e), r = n.left + Math.min(n.width / 2, 24), i = n.top + Math.min(n.height / 2, 24);
838
838
  t({
@@ -847,7 +847,7 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
847
847
  },
848
848
  region: null
849
849
  });
850
- }, P = () => {
850
+ }, F = () => {
851
851
  t({
852
852
  anchor: {
853
853
  type: "page",
@@ -862,8 +862,8 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
862
862
  },
863
863
  region: null
864
864
  });
865
- }, F = (e, t) => {
866
- let n = D.current, r = v.current;
865
+ }, I = (e, t) => {
866
+ let n = O.current, r = v.current;
867
867
  if (!n || !r) return null;
868
868
  n.style.pointerEvents = "none";
869
869
  try {
@@ -878,8 +878,8 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
878
878
  else if (r && t.key === "Enter") {
879
879
  let e = document.activeElement;
880
880
  if (!e || e === document.body || e.hasAttribute("data-commentkit-host")) return;
881
- t.preventDefault(), N(e);
882
- } else t.key === "Enter" && !t.composedPath().some((e) => e instanceof HTMLButtonElement) && (t.preventDefault(), p ? N(p) : P());
881
+ t.preventDefault(), P(e);
882
+ } else t.key === "Enter" && !t.composedPath().some((e) => e instanceof HTMLButtonElement) && (t.preventDefault(), p ? P(p) : F());
883
883
  };
884
884
  return addEventListener("keydown", t), () => removeEventListener("keydown", t);
885
885
  }, [e, r]), /* @__PURE__ */ x(l, { children: [
@@ -900,69 +900,69 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
900
900
  }),
901
901
  r ? null : p ? /* @__PURE__ */ x("button", {
902
902
  class: "ck-chip",
903
- ref: O,
904
- onClick: () => N(p),
903
+ ref: k,
904
+ onClick: () => P(p),
905
905
  children: u("commentFocused")
906
906
  }) : null,
907
907
  r ? null : /* @__PURE__ */ x("button", {
908
908
  class: "ck-chip",
909
- ref: p ? void 0 : O,
910
- onClick: P,
909
+ ref: p ? void 0 : k,
910
+ onClick: F,
911
911
  children: u("commentOnPage")
912
912
  }),
913
913
  /* @__PURE__ */ x("button", {
914
914
  class: "ck-chip",
915
- ref: r ? O : void 0,
915
+ ref: r ? k : void 0,
916
916
  onClick: e,
917
917
  children: u("cancel")
918
918
  })
919
919
  ]
920
920
  }),
921
921
  /* @__PURE__ */ x("div", {
922
- ref: D,
922
+ ref: O,
923
923
  class: "ck-catcher",
924
924
  "data-commentkit-ui": !0,
925
925
  onPointerMove: (e) => {
926
926
  if (e.pointerType === "touch") {
927
- let t = k.current;
928
- t && (Math.abs(e.clientX - t.x) > 8 || Math.abs(e.clientY - t.y) > 8) && j();
927
+ let t = A.current;
928
+ t && (Math.abs(e.clientX - t.x) > 8 || Math.abs(e.clientY - t.y) > 8) && M();
929
929
  return;
930
930
  }
931
- if (k.current && C.current) {
932
- let t = F(e.clientX, e.clientY);
931
+ if (A.current && w.current) {
932
+ let t = I(e.clientX, e.clientY);
933
933
  if (!t) return;
934
- let n = v.current, r = n.between(C.current, t);
934
+ let n = v.current, r = n.between(w.current, t);
935
935
  if (!r) return;
936
- w.current = r, E(n.boxesOf(r).filter((e) => e.width > 0 && e.height > 0).slice(0, 200));
936
+ T.current = r, D(n.boxesOf(r).filter((e) => e.width > 0 && e.height > 0).slice(0, 200));
937
937
  return;
938
938
  }
939
- if (k.current) {
940
- S({
941
- x: k.current.x,
942
- y: k.current.y,
939
+ if (A.current) {
940
+ C({
941
+ x: A.current.x,
942
+ y: A.current.y,
943
943
  x2: e.clientX,
944
944
  y2: e.clientY
945
945
  });
946
946
  return;
947
947
  }
948
- let t = M(e.clientX, e.clientY);
948
+ let t = N(e.clientX, e.clientY);
949
949
  _(t ? a(t) : null);
950
950
  },
951
951
  onPointerDown: (e) => {
952
952
  if (e.button !== 0 || !v.current) return;
953
- let r = M(e.clientX, e.clientY);
953
+ let r = N(e.clientX, e.clientY);
954
954
  if (r) {
955
- if (k.current = {
955
+ if (A.current = {
956
956
  x: e.clientX,
957
957
  y: e.clientY,
958
958
  target: r
959
- }, A.current.fired = !1, C.current = null, w.current = null, n && e.pointerType !== "touch" && !e.shiftKey) {
960
- let t = F(e.clientX, e.clientY);
961
- t && v.current.overText(e.clientX, e.clientY, t) && (C.current = t);
959
+ }, j.current.fired = !1, w.current = null, T.current = null, n && e.pointerType !== "touch" && !e.shiftKey) {
960
+ let t = I(e.clientX, e.clientY);
961
+ t && v.current.overText(e.clientX, e.clientY, t) && (w.current = t);
962
962
  }
963
- e.pointerType === "touch" && (e.preventDefault(), j(), A.current.timer = setTimeout(() => {
964
- let e = k.current;
965
- A.current.timer = null, e && (A.current.fired = !0, k.current = null, bt(e.x, e.y), t({
963
+ e.pointerType === "touch" && (e.preventDefault(), M(), j.current.timer = setTimeout(() => {
964
+ let e = A.current;
965
+ j.current.timer = null, e && (j.current.fired = !0, A.current = null, xt(e.x, e.y), t({
966
966
  anchor: y({
967
967
  element: e.target,
968
968
  clientX: e.x,
@@ -974,15 +974,15 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
974
974
  },
975
975
  region: null
976
976
  }));
977
- }, 500)), e.pointerType !== "touch" && D.current?.setPointerCapture(e.pointerId);
977
+ }, 500)), e.pointerType !== "touch" && O.current?.setPointerCapture(e.pointerId);
978
978
  }
979
979
  },
980
980
  onPointerUp: (e) => {
981
- j();
982
- let n = k.current;
983
- if (k.current = null, S(null), E([]), !n) return;
984
- let r = w.current;
985
- C.current = null, w.current = null;
981
+ M();
982
+ let n = A.current;
983
+ if (A.current = null, C(null), D([]), !n) return;
984
+ let r = T.current;
985
+ w.current = null, T.current = null;
986
986
  let i = r?.toString().trim();
987
987
  if (r && i) {
988
988
  let e = a(r.startContainer, r.getBoundingClientRect()), o = r.commonAncestorContainer.nodeType === 1 ? r.commonAncestorContainer : r.commonAncestorContainer.parentElement ?? n.target;
@@ -1008,8 +1008,8 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
1008
1008
  }
1009
1009
  let o = Math.abs(e.clientX - n.x) > 8 || Math.abs(e.clientY - n.y) > 8;
1010
1010
  if (e.pointerType === "touch" && o) return;
1011
- e.pointerType === "touch" && bt(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 ? xt(n.target, M(e.clientX, e.clientY) ?? n.target) : n.target;
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;
1013
1013
  t({
1014
1014
  anchor: y({
1015
1015
  element: c,
@@ -1033,27 +1033,27 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
1033
1033
  });
1034
1034
  },
1035
1035
  onPointerCancel: () => {
1036
- j(), k.current = null, S(null);
1036
+ M(), A.current = null, C(null);
1037
1037
  },
1038
1038
  onContextMenu: (t) => {
1039
- t.preventDefault(), A.current.timer || A.current.fired || m || e();
1039
+ t.preventDefault(), j.current.timer || j.current.fired || m || e();
1040
1040
  }
1041
1041
  }),
1042
- h && !b && !T.length ? /* @__PURE__ */ x("div", {
1042
+ h && !b && !E.length ? /* @__PURE__ */ x("div", {
1043
1043
  class: "ck-outline",
1044
- style: K(h.left - 2, h.top - 2, h.width + 4, h.height + 4)
1044
+ style: G(h.left - 2, h.top - 2, h.width + 4, h.height + 4)
1045
1045
  }) : null,
1046
- T.map((e) => /* @__PURE__ */ x("div", {
1046
+ E.map((e) => /* @__PURE__ */ x("div", {
1047
1047
  class: "ck-text-box",
1048
- style: K(e.left, e.top, e.width, e.height)
1048
+ style: G(e.left, e.top, e.width, e.height)
1049
1049
  })),
1050
- b && !C.current ? /* @__PURE__ */ x("div", {
1050
+ b && !w.current ? /* @__PURE__ */ x("div", {
1051
1051
  class: "ck-region",
1052
- 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))
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))
1053
1053
  }) : null
1054
1054
  ] });
1055
1055
  }
1056
- function bt(e, t) {
1056
+ function xt(e, t) {
1057
1057
  $();
1058
1058
  let n = (n) => {
1059
1059
  Math.abs(n.clientX - e) > 24 || Math.abs(n.clientY - t) > 24 || (n.preventDefault(), n.stopPropagation(), $());
@@ -1065,18 +1065,18 @@ function bt(e, t) {
1065
1065
  };
1066
1066
  }
1067
1067
  var $ = () => void 0;
1068
- function xt(e, t) {
1068
+ function St(e, t) {
1069
1069
  if (e.contains(t)) return e;
1070
1070
  for (let n = t; n; n = n.parentElement) if (n.contains(e)) return n;
1071
1071
  return document.body;
1072
1072
  }
1073
1073
  // src/ui/nav.ts
1074
- function St(e, t, n) {
1074
+ function Ct(e, t, n) {
1075
1075
  let r = _e(e);
1076
- if (!r || !/^https?:$/.test(new URL(r).protocol) || Ct(r)) return n(t);
1077
- location.assign(qe(r, t));
1076
+ if (!r || !/^https?:$/.test(new URL(r).protocol) || wt(r)) return n(t);
1077
+ location.assign(Je(r, t));
1078
1078
  }
1079
- function Ct(e) {
1079
+ function wt(e) {
1080
1080
  try {
1081
1081
  let t = new URL(e), r = new URL(n());
1082
1082
  return t.origin === r.origin && t.pathname === r.pathname && t.search === r.search && (t.hash === r.hash || !t.hash.startsWith("#/"));
@@ -1085,9 +1085,9 @@ function Ct(e) {
1085
1085
  }
1086
1086
  }
1087
1087
  // src/ui/Pins.tsx
1088
- var wt = "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", Tt = 6;
1089
- function Et({ 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")), _ = ee(() => h?.createPlacer(), [h]), [, v] = s(0), [y] = s(() => /* @__PURE__ */ new Map()), [b] = s(() => /* @__PURE__ */ new Map());
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());
1091
1091
  d(() => {
1092
1092
  let e = new Set(f.map((e) => e.id));
1093
1093
  _?.keep(e);
@@ -1098,10 +1098,10 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1098
1098
  let t = setTimeout(() => v((e) => e + 1), e);
1099
1099
  return () => clearTimeout(t);
1100
1100
  });
1101
- let S = g(null), C = g(null), w = typeof matchMedia == "function" && matchMedia("(hover: hover)").matches, T = f.map((e) => ({
1101
+ let C = g(null), w = g(null), T = typeof matchMedia == "function" && matchMedia("(hover: hover)").matches, E = f.map((e) => ({
1102
1102
  thread: e,
1103
1103
  at: _ ? _(e.id, e.anchor, m.version) : null
1104
- })), E = (e) => {
1104
+ })), D = (e) => {
1105
1105
  let t = e?.getBoundingClientRect() ?? {
1106
1106
  left: -scrollX,
1107
1107
  top: -scrollY,
@@ -1111,11 +1111,11 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1111
1111
  x: (e - t.left) / (t.width / 100 || 1),
1112
1112
  y: (n - t.top) / (t.width / 100 || 1)
1113
1113
  });
1114
- }, D = E(S.current), O = E(C.current), k = T.flatMap(({ thread: e, at: t }) => {
1114
+ }, O = D(C.current), k = D(w.current), A = E.flatMap(({ thread: e, at: t }) => {
1115
1115
  let n = e.anchor.quote;
1116
1116
  if (!t || e.anchor.type !== "text" || !n) return [];
1117
1117
  let r = y.get(e.id);
1118
- r?.[0] !== m.version && y.set(e.id, r = [m.version, jt(t.element, n)]);
1118
+ r?.[0] !== m.version && y.set(e.id, r = [m.version, Mt(t.element, n)]);
1119
1119
  let i = t.element.getBoundingClientRect(), o = a(t.element);
1120
1120
  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
1121
  id: e.id,
@@ -1125,59 +1125,59 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1125
1125
  w: n.width,
1126
1126
  h: n.height
1127
1127
  }));
1128
- }), A = g(k);
1129
- A.current = k, d(() => m.watch(T.flatMap(({ at: e }) => e?.element ? [e.element] : []))), d(() => {
1130
- if (!w) return;
1128
+ }), j = g(A);
1129
+ j.current = A, d(() => m.watch(E.flatMap(({ at: e }) => e?.element ? [e.element] : []))), d(() => {
1130
+ if (!T) return;
1131
1131
  let e = 0, t = null, n = (n) => {
1132
1132
  e || (e = requestAnimationFrame(() => {
1133
1133
  e = 0;
1134
- let r = n.clientX, i = n.clientY, a = A.current.find((e) => r >= e.x && r <= e.x + e.w && i >= e.y && i <= e.y + e.h)?.id ?? null;
1135
- a !== t && (t = a, R(a, a ? 250 : 120));
1134
+ let r = n.clientX, i = n.clientY, a = j.current.find((e) => r >= e.x && r <= e.x + e.w && i >= e.y && i <= e.y + e.h)?.id ?? null;
1135
+ a !== t && (t = a, z(a, a ? 250 : 120));
1136
1136
  }));
1137
1137
  };
1138
1138
  return addEventListener("pointermove", n, { passive: !0 }), () => {
1139
1139
  removeEventListener("pointermove", n), cancelAnimationFrame(e);
1140
1140
  };
1141
- }, [k.length > 0]);
1142
- let [j, M] = s(null), [N, P] = s(null), F = g(null), I = g(!1), L = g(null), R = (e, t) => {
1143
- L.current && clearTimeout(L.current), L.current = setTimeout(() => M(e), t);
1141
+ }, [A.length > 0]);
1142
+ let [M, N] = s(null), [P, F] = s(null), I = g(null), L = g(!1), R = g(null), z = (e, t) => {
1143
+ R.current && clearTimeout(R.current), R.current = setTimeout(() => N(e), t);
1144
1144
  };
1145
- d(() => () => void (L.current && clearTimeout(L.current)), []);
1146
- let z = (t, n, a) => {
1145
+ d(() => () => void (R.current && clearTimeout(R.current)), []);
1146
+ let ee = (t, n, a) => {
1147
1147
  let s = document.elementsFromPoint(n, a).find((e) => !i(e) && e !== document.documentElement);
1148
- s && Dt(e, t, o({
1148
+ s && Ot(e, t, o({
1149
1149
  element: s,
1150
1150
  clientX: n,
1151
1151
  clientY: a
1152
1152
  }), r, c);
1153
- }, te = (e) => {
1154
- e.style.translate = "", P(null);
1155
- }, B = {
1153
+ }, B = (e) => {
1154
+ e.style.translate = "", F(null);
1155
+ }, V = {
1156
1156
  page: [],
1157
1157
  fixed: []
1158
1158
  };
1159
- for (let e of k) {
1160
- let n = (e.fixed ? O : D)(e.x, e.y);
1161
- B[e.fixed ? "fixed" : "page"].push(/* @__PURE__ */ x("div", {
1159
+ for (let e of A) {
1160
+ let n = (e.fixed ? k : O)(e.x, e.y);
1161
+ V[e.fixed ? "fixed" : "page"].push(/* @__PURE__ */ x("div", {
1162
1162
  class: "ck-shade",
1163
- "data-active": e.id === t || e.id === j || void 0,
1164
- style: K(n.x, n.y, e.w, e.h),
1163
+ "data-active": e.id === t || e.id === M || void 0,
1164
+ style: G(n.x, n.y, e.w, e.h),
1165
1165
  "aria-hidden": "true"
1166
1166
  }));
1167
1167
  }
1168
- for (let { thread: e, at: r } of T) {
1168
+ for (let { thread: e, at: r } of E) {
1169
1169
  if (!r) continue;
1170
- let i = r.fixed ? O : D, a = N === 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) : Ot(r.element, o, s), b.set(e.id, d));
1172
- let f = c || d, h = j === e.id && !N && 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
- B[r.fixed ? "fixed" : "page"].push(/* @__PURE__ */ x(l, { children: [
1170
+ 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));
1172
+ 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
+ V[r.fixed ? "fixed" : "page"].push(/* @__PURE__ */ x(l, { children: [
1174
1174
  _ ? /* @__PURE__ */ x("div", {
1175
1175
  class: "ck-pin-region",
1176
- style: K(_.x, _.y, r.resolved.rect.w, r.resolved.rect.h)
1176
+ style: G(_.x, _.y, r.resolved.rect.w, r.resolved.rect.h)
1177
1177
  }) : null,
1178
1178
  /* @__PURE__ */ x("button", {
1179
1179
  class: "ck-pin",
1180
- style: K(g.x, g.y),
1180
+ style: G(g.x, g.y),
1181
1181
  "data-status": e.status,
1182
1182
  "data-state": r.resolved.state,
1183
1183
  "data-dragging": a || void 0,
@@ -1188,14 +1188,14 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1188
1188
  "aria-expanded": e.id === t,
1189
1189
  "aria-label": `${e.reference} · ${u(`status_${e.status}`)}: ${e.first_message?.body.slice(0, 80) ?? ""}`,
1190
1190
  "aria-roledescription": p ? u("pinMovable") : void 0,
1191
- onPointerEnter: () => w && R(e.id, 250),
1192
- onPointerLeave: () => w && R(null, 120),
1193
- onFocus: () => R(e.id, 0),
1194
- onBlur: () => R(null, 0),
1191
+ onPointerEnter: () => T && z(e.id, 250),
1192
+ onPointerLeave: () => T && z(null, 120),
1193
+ onFocus: () => z(e.id, 0),
1194
+ onBlur: () => z(null, 0),
1195
1195
  onPointerDown: (t) => {
1196
1196
  if (!p || t.button !== 0) return;
1197
1197
  let n = t.currentTarget.parentElement?.getBoundingClientRect().width;
1198
- F.current = {
1198
+ I.current = {
1199
1199
  id: e.id,
1200
1200
  x: t.clientX,
1201
1201
  y: t.clientY,
@@ -1204,37 +1204,37 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1204
1204
  }, t.currentTarget.setPointerCapture?.(t.pointerId);
1205
1205
  },
1206
1206
  onPointerMove: (t) => {
1207
- let n = F.current;
1207
+ let n = I.current;
1208
1208
  if (n && n.id === e.id) {
1209
1209
  if (!n.moved) {
1210
- if (Math.hypot(t.clientX - n.x, t.clientY - n.y) < Tt) return;
1211
- n.moved = !0, M(null), P(e.id);
1210
+ if (Math.hypot(t.clientX - n.x, t.clientY - n.y) < Et) return;
1211
+ n.moved = !0, N(null), F(e.id);
1212
1212
  }
1213
1213
  t.currentTarget.style.translate = `${(t.clientX - n.x) / n.scale}px ${(t.clientY - n.y) / n.scale}px`;
1214
1214
  }
1215
1215
  },
1216
1216
  onPointerUp: (t) => {
1217
- let n = F.current;
1218
- F.current = null, n?.moved && (I.current = !0, te(t.currentTarget), z(e, t.clientX, t.clientY));
1217
+ let n = I.current;
1218
+ I.current = null, n?.moved && (L.current = !0, B(t.currentTarget), ee(e, t.clientX, t.clientY));
1219
1219
  },
1220
1220
  onPointerCancel: (e) => {
1221
- F.current = null, te(e.currentTarget);
1221
+ I.current = null, B(e.currentTarget);
1222
1222
  },
1223
1223
  onClick: () => {
1224
- if (I.current) return void (I.current = !1);
1224
+ if (L.current) return void (L.current = !1);
1225
1225
  n(e);
1226
1226
  },
1227
- onKeyDown: (e) => e.key === "Escape" && M(null),
1227
+ onKeyDown: (e) => e.key === "Escape" && N(null),
1228
1228
  children: [/* @__PURE__ */ x("svg", {
1229
1229
  viewBox: "5 3 54 62",
1230
1230
  "aria-hidden": "true",
1231
- children: /* @__PURE__ */ x("path", { d: wt })
1231
+ children: /* @__PURE__ */ x("path", { d: Tt })
1232
1232
  }), /* @__PURE__ */ x("span", {
1233
1233
  "data-long": e.number > 999 || void 0,
1234
1234
  children: e.number > 9999 ? `${e.number / 1e3 | 0}k` : e.number
1235
1235
  })]
1236
1236
  }),
1237
- h ? /* @__PURE__ */ x(At, {
1237
+ h ? /* @__PURE__ */ x(jt, {
1238
1238
  thread: e,
1239
1239
  x: o,
1240
1240
  y: s,
@@ -1244,18 +1244,18 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
1244
1244
  }
1245
1245
  return /* @__PURE__ */ x(l, { children: [/* @__PURE__ */ x("div", {
1246
1246
  class: "ck-pins",
1247
- ref: S,
1247
+ ref: C,
1248
1248
  "data-commentkit-ui": !0,
1249
- children: B.page
1249
+ children: V.page
1250
1250
  }), /* @__PURE__ */ x("div", {
1251
1251
  class: "ck-pins",
1252
- ref: C,
1252
+ ref: w,
1253
1253
  "data-fixed": !0,
1254
1254
  "data-commentkit-ui": !0,
1255
- children: B.fixed
1255
+ children: V.fixed
1256
1256
  })] });
1257
1257
  }
1258
- function Dt(e, t, n, r, i) {
1258
+ function Ot(e, t, n, r, i) {
1259
1259
  let a = t.anchor, o = (n) => e.state.set((e) => ({ threads: e.threads.map((e) => e.id === t.id ? {
1260
1260
  ...e,
1261
1261
  anchor: n
@@ -1273,21 +1273,21 @@ function Dt(e, t, n, r, i) {
1273
1273
  o(a), i(e);
1274
1274
  });
1275
1275
  }
1276
- function Ot(e, t, n) {
1276
+ function kt(e, t, n) {
1277
1277
  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 = kt(e), o = r && kt(r);
1278
+ let r = document.elementsFromPoint(t, n).find((e) => !i(e)), a = At(e), o = r && At(r);
1279
1279
  return !!o && o !== document.documentElement && o !== document.body && !a.contains(o) && !o.contains(a);
1280
1280
  }
1281
- function kt(e) {
1281
+ function At(e) {
1282
1282
  for (let t; t = e.getRootNode().host ?? (e.ownerDocument !== document && e.ownerDocument.defaultView?.frameElement);) e = t;
1283
1283
  return e;
1284
1284
  }
1285
- function At({ thread: e, x: t, y: n, to: r }) {
1285
+ function jt({ thread: e, x: t, y: n, to: r }) {
1286
1286
  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
1287
  return /* @__PURE__ */ x("div", {
1288
1288
  class: "ck-peek",
1289
1289
  style: {
1290
- ...K(o.x, o.y, 260),
1290
+ ...G(o.x, o.y, 260),
1291
1291
  translate: i ? "0 -100%" : void 0
1292
1292
  },
1293
1293
  "aria-hidden": "true",
@@ -1325,7 +1325,7 @@ function At({ thread: e, x: t, y: n, to: r }) {
1325
1325
  ]
1326
1326
  });
1327
1327
  }
1328
- function jt(e, t) {
1328
+ function Mt(e, t) {
1329
1329
  let n = t.replace(/\s+/g, " ").trim().toLowerCase();
1330
1330
  if (!n) return null;
1331
1331
  let r = [], i = "", a = e.ownerDocument, o = a.createTreeWalker(e, NodeFilter.SHOW_TEXT);
@@ -1345,24 +1345,24 @@ function jt(e, t) {
1345
1345
  return u.setStart(c.node, c.offset), u.setEnd(l.node, l.offset + 1), u;
1346
1346
  }
1347
1347
  // src/ui/session.ts
1348
- function Mt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportError: c }) {
1348
+ function Nt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportError: c }) {
1349
1349
  let l = Z(e.state, (e) => e.opening), f = g(null), p = g(null);
1350
1350
  p.current = n.name === "thread" ? n.threadId : n.name === "panel" ? n.threadId ?? null : null;
1351
1351
  let [m, h] = s(0);
1352
1352
  return d(() => () => f.current?.stop(), []), d(() => {
1353
1353
  let n = () => {
1354
- let e = Ye();
1354
+ let e = Xe();
1355
1355
  e && (t ? r({
1356
1356
  name: "thread",
1357
1357
  threadId: e
1358
- }) : D("commentkit:pending-thread", e));
1358
+ }) : O("commentkit:pending-thread", e));
1359
1359
  }, a = () => t && void e.loadPageThreads().catch(c);
1360
- Pt(e, c) || a(), n();
1360
+ Ft(e, c) || a(), n();
1361
1361
  let o, s = !1;
1362
1362
  if (t) {
1363
1363
  e.inbox().catch(() => void 0);
1364
1364
  let t = e.state.get().config, n = () => h((e) => e + 1);
1365
- import("./live-DXcxj_Af.js").then((r) => {
1365
+ import("./live-BI72WQBA.js").then((r) => {
1366
1366
  if (s) return;
1367
1367
  o = r.catchUp(e, n);
1368
1368
  let a = r.comeBack();
@@ -1375,10 +1375,10 @@ function Mt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportErr
1375
1375
  })), a.thread ? i({
1376
1376
  name: "thread",
1377
1377
  threadId: a.thread
1378
- }) : a.comment && !a.draft && i({ name: "commenting" }), t?.features.realtime && t.realtime) return f.current ?? (f.current = r.liveUpdates(e, () => p.current, n)), e.connectRealtime((e) => f.current?.onPing(e));
1378
+ }) : 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
1379
  }).catch(() => void 0);
1380
1380
  }
1381
- let l = Ze((e) => (e && a(), n()), () => e.pageKey());
1381
+ let l = Qe((e) => (e && a(), n()), () => e.pageKey());
1382
1382
  return () => {
1383
1383
  s = !0, o?.(), l();
1384
1384
  };
@@ -1394,7 +1394,7 @@ function Mt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportErr
1394
1394
  draft: null
1395
1395
  });
1396
1396
  }, []), d(() => {
1397
- l && t && (e.state.set({ opening: null }), import("./live-DXcxj_Af.js").then((t) => t.openReference(e, l, a, St, () => o({
1397
+ l && t && (e.state.set({ opening: null }), import("./live-BI72WQBA.js").then((t) => t.openReference(e, l, a, Ct, () => o({
1398
1398
  text: u("threadNotFound"),
1399
1399
  tone: "error"
1400
1400
  }), c), c));
@@ -1403,12 +1403,12 @@ function Mt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportErr
1403
1403
  openId: p.current
1404
1404
  };
1405
1405
  }
1406
- var Nt = null;
1407
- function Pt(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 !== Nt && !!e.options.branch && r !== e.state.get().allBranches;
1409
- return Nt = i, a && e.setAllBranches(r).catch(t), a;
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;
1410
1410
  }
1411
- function Ft(e, t, n, r) {
1411
+ function It(e, t, n, r) {
1412
1412
  let i = async (n, i) => {
1413
1413
  let a = null, o = e.on("error", ({ error: e }) => a = e), s = await e.signIn(t, n).finally(o);
1414
1414
  return s !== "signed_in" && s !== "redirecting" && !n?.aborted && !(i && s === "cancelled") && r({
@@ -1418,16 +1418,16 @@ function Ft(e, t, n, r) {
1418
1418
  }, a = g(n);
1419
1419
  return d(() => {
1420
1420
  let t = a.current;
1421
- a.current = n, t && !n && import("./live-DXcxj_Af.js").then((n) => n.forgetPerson(e.options.project, t)).catch(() => void 0);
1421
+ a.current = n, t && !n && import("./live-BI72WQBA.js").then((n) => n.forgetPerson(e.options.project, t)).catch(() => void 0);
1422
1422
  }, [n]), {
1423
1423
  signIn: i,
1424
1424
  signOut: () => void e.signOut()
1425
1425
  };
1426
1426
  }
1427
- var It = /* @__PURE__ */ new WeakSet();
1428
- function Lt() {
1427
+ var Lt = /* @__PURE__ */ new WeakSet();
1428
+ function Rt() {
1429
1429
  let e = g([]), [t, n] = s(e.current), r = p((t, r = !1) => {
1430
- n(e.current = e.current.filter((e) => e !== t)), !It.has(t) && (It.add(t), r || t.onExpire?.());
1430
+ n(e.current = e.current.filter((e) => e !== t)), !Lt.has(t) && (Lt.add(t), r || t.onExpire?.());
1431
1431
  }, []);
1432
1432
  d(() => {
1433
1433
  let e = t.filter((e) => (e.tone === "error" || e.action) && !e.expires);
@@ -1456,7 +1456,7 @@ function Lt() {
1456
1456
  region: i
1457
1457
  };
1458
1458
  }
1459
- function Rt({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
1459
+ function zt({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
1460
1460
  return /* @__PURE__ */ x("div", {
1461
1461
  class: "ck-toast-region",
1462
1462
  role: "status",
@@ -1496,11 +1496,11 @@ function Rt({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
1496
1496
  });
1497
1497
  }
1498
1498
  // src/ui/view.ts
1499
- var zt = { name: "idle" };
1500
- function Bt(e, t) {
1499
+ var Bt = { name: "idle" };
1500
+ function Vt(e, t) {
1501
1501
  let n = e.name === "panel" && e.order || [];
1502
1502
  switch (t.name) {
1503
- case "stop": return e.name === "commenting" ? zt : e;
1503
+ case "stop": return e.name === "commenting" ? Bt : e;
1504
1504
  case "back": return e.name === "panel" ? {
1505
1505
  name: "panel",
1506
1506
  order: n
@@ -1520,8 +1520,8 @@ function Bt(e, t) {
1520
1520
  default: return t;
1521
1521
  }
1522
1522
  }
1523
- function Vt() {
1524
- let [e, t] = m(Bt, zt), n = g(null);
1523
+ function Ht() {
1524
+ let [e, t] = m(Vt, Bt), n = g(null);
1525
1525
  d(() => {
1526
1526
  if (e.name === "idle") {
1527
1527
  let e = n.current;
@@ -1530,9 +1530,9 @@ function Vt() {
1530
1530
  }, [e.name]);
1531
1531
  let [r, i] = s(!1), a = g(null), o = p((e) => {
1532
1532
  if (!a.current) {
1533
- if (e === !0 || matchMedia("(prefers-reduced-motion: reduce)").matches) return t(zt);
1533
+ if (e === !0 || matchMedia("(prefers-reduced-motion: reduce)").matches) return t(Bt);
1534
1534
  i(!0), a.current = setTimeout(() => {
1535
- a.current = null, i(!1), t(zt);
1535
+ a.current = null, i(!1), t(Bt);
1536
1536
  }, 120);
1537
1537
  }
1538
1538
  }, []);
@@ -1551,180 +1551,191 @@ function Vt() {
1551
1551
  };
1552
1552
  }
1553
1553
  // src/ui/App.tsx
1554
- var Ht = "commentkit:welcomed";
1555
- function Ut({ client: e, onHide: t = () => void 0 }) {
1554
+ var Ut = "commentkit:welcomed";
1555
+ function Wt({ client: e, onHide: t = () => void 0 }) {
1556
1556
  let n = Z(e.state, ({ config: e }) => e?.enabled === !1 && (e.disabled_reason || "paused")[0]);
1557
1557
  return n ? n == "v" ? null : /* @__PURE__ */ x("div", {
1558
1558
  class: "ck-toast",
1559
1559
  role: "status",
1560
1560
  children: u(n == "n" ? "notLive" : "paused")
1561
- }) : /* @__PURE__ */ x(Wt, {
1561
+ }) : /* @__PURE__ */ x(Gt, {
1562
1562
  client: e,
1563
1563
  onHide: t
1564
1564
  });
1565
1565
  }
1566
- function Wt({ client: e, onHide: n }) {
1566
+ function Gt({ client: e, onHide: n }) {
1567
1567
  let [i] = s(() => {
1568
1568
  let t = e.entrance ?? (e.auth.hasSignInLink() || e.auth.finishLink || /[?&]ck(_thread)?=[^&#]/.test(location.href) ? "link" : null);
1569
1569
  return e.entrance = void 0, t;
1570
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
- w(m);
1572
- let h = Lt(), { notify: g } = h, { view: _, go: v, open: y, close: b, closing: ee } = Vt(), [S, C] = s(!1), [T, E] = s(!1), O = p((t) => {
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) => {
1573
1573
  let n = e.auth.pending();
1574
- if (t instanceof r && t.code === "verification_required" && n) return v({
1574
+ if (t instanceof r && t.code === "verification_required" && n) return y({
1575
1575
  name: "verify",
1576
1576
  email: n.email,
1577
1577
  draft: null
1578
1578
  });
1579
- g({
1579
+ _({
1580
1580
  text: Pe(t),
1581
1581
  tone: "error"
1582
1582
  });
1583
- }, [g]), { Settings: k, Shortcuts: A, Composer: j, GuestVerify: M, Panel: N, ThreadCard: P, anchors: F } = ct(e, c, _, S, T, O), I = Q(e.auth.finishLink, () => t(() => import("./Guest-Bi7hlzhs.js")).then((e) => e.GuestFinish), O), [L] = s(Je), [R, z] = s(() => !!L && !D(Ht)), [te, B] = s(() => e.auth.hasSignInLink()), [ne, re] = s(null), [, V] = s(0);
1584
- d(() => it(() => V((e) => e + 1)), []), d(() => () => $(), []);
1585
- let H = nt(e), ie = H && f?.capabilities.triage && !je() ? () => C(!0) : null, U = c?.read_only ?? !1, ae = u(f && f.role !== "guest" ? "readOnly" : "readOnlyGuest"), W = !f && _.name === "idle" ? e.auth.pending() : null, [oe, G] = s(!1), K = Q(oe, () => t(() => import("./SignInFirst-CmGvSYkQ.js")).then((e) => e.SignInFirst), O), q = () => {
1586
- if (U) return g({
1587
- text: ae,
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 _({
1587
+ text: oe,
1588
1588
  tone: "error"
1589
1589
  });
1590
- if (z(!1), !f && !L && !e.auth.pending() && !e.auth.hasSession()) return G(!0);
1591
- y({ name: "commenting" });
1592
- }, J = (e) => y({
1590
+ if (B(!1), !f && !z && !e.auth.pending() && !e.auth.hasSession()) return G("comment");
1591
+ b({ name: "commenting" });
1592
+ }, q = (e) => b({
1593
1593
  name: "thread",
1594
1594
  threadId: typeof e == "string" ? e : e.id
1595
- }), se = () => _.name === "panel" ? b() : y({ name: "panel" }), ce = (t) => {
1595
+ }), J = () => v.name === "panel" ? S() : b({ name: "panel" }), le = g(0), ue = () => {
1596
+ if (f) return J();
1597
+ let t = e.auth.pending();
1598
+ if (t) return b({
1599
+ name: "verify",
1600
+ email: t.email,
1601
+ draft: ne
1602
+ });
1603
+ if (e.auth.hasSession()) return void (le.current = Date.now());
1604
+ G("inbox");
1605
+ }, de = (t) => {
1596
1606
  let n = e.state.get().threads.find((e) => e.id === t);
1597
- return n ? () => v({
1607
+ return n ? () => y({
1598
1608
  name: "commenting",
1599
1609
  move: n
1600
1610
  }) : void 0;
1601
- }, { signIn: Y, signOut: le } = Ft(e, L, m, g);
1602
- d(() => void (f && G(!1)), [f]);
1603
- let { cardVersion: ue, openId: de } = Mt(e, f, {
1604
- view: _,
1605
- open: y,
1606
- go: v,
1607
- openThread: J,
1608
- notify: g,
1609
- reportError: O
1611
+ }, { signIn: Y, signOut: fe } = It(e, z, m, _);
1612
+ 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
1610
1622
  });
1611
- mt(() => ({
1612
- view: _,
1613
- help: S,
1614
- keys: H,
1623
+ ht(() => ({
1624
+ view: v,
1625
+ help: w,
1626
+ keys: ie,
1615
1627
  signedIn: !!f,
1616
1628
  threads: e.state.get().threads
1617
- }), (e) => e === "help" ? C(!0) : e === "closeHelp" ? C(!1) : e === "comment" ? q() : e === "back" ? _.name === "commenting" ? v({ name: "idle" }) : b(!0) : J(e)), ht(e, _, f, {
1618
- comment: q,
1619
- go: v,
1620
- togglePanel: se,
1621
- signIn: () => void Y()
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
1622
1633
  });
1623
- let [X, fe] = ut(e, c);
1634
+ let [X, he] = dt(e, c);
1624
1635
  return /* @__PURE__ */ x(l, { children: [
1625
- f ? /* @__PURE__ */ x(Et, {
1636
+ f ? /* @__PURE__ */ x(Dt, {
1626
1637
  client: e,
1627
- activeId: de,
1628
- onOpen: J,
1629
- notify: g,
1630
- onError: O
1638
+ activeId: me,
1639
+ onOpen: q,
1640
+ notify: _,
1641
+ onError: A
1631
1642
  }) : null,
1632
- _.name === "commenting" && F ? /* @__PURE__ */ x(yt, {
1633
- picker: F.picker,
1634
- quote: e.options.tools?.text !== !1 && !_.move,
1635
- move: !!_.move,
1636
- onCancel: () => v({ name: "idle" }),
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
1648
  onPick: (t) => {
1638
- let n = _.move;
1639
- if (!n) return v({
1649
+ let n = v.move;
1650
+ if (!n) return y({
1640
1651
  name: "composing",
1641
1652
  draft: t
1642
1653
  });
1643
- v({ name: "idle" }), Dt(e, n, t.anchor, g, O);
1654
+ y({ name: "idle" }), Ot(e, n, t.anchor, _, A);
1644
1655
  }
1645
1656
  }) : null,
1646
1657
  /* @__PURE__ */ x("div", {
1647
1658
  class: "ck-layer",
1648
- "data-closing": ee || void 0,
1659
+ "data-closing": C || void 0,
1649
1660
  "data-pos": X,
1650
1661
  children: [
1651
- _.name === "composing" && j ? /* @__PURE__ */ x(j, {
1662
+ v.name === "composing" && N ? /* @__PURE__ */ x(N, {
1652
1663
  client: e,
1653
- draft: _.draft,
1664
+ draft: v.draft,
1654
1665
  signedIn: !!f,
1655
1666
  onSignIn: Y,
1656
- onCancel: b,
1657
- share: L,
1658
- onError: O,
1667
+ onCancel: S,
1668
+ share: z,
1669
+ onError: A,
1659
1670
  onSent: (t, n) => {
1660
1671
  let r = e.state.get().session;
1661
- g({
1672
+ _({
1662
1673
  text: n ? u(n === "screenshot" ? "sentWithoutScreenshot" : "sentWithoutFiles") : r?.role === "guest" || !r ? u("sentGuest") : u("sent"),
1663
1674
  tone: n ? "info" : "success"
1664
- }), J(t);
1675
+ }), q(t);
1665
1676
  },
1666
1677
  onPending: (e) => {
1667
- re(_.draft), v({
1678
+ H(v.draft), y({
1668
1679
  name: "verify",
1669
1680
  email: e,
1670
- draft: _.draft
1681
+ draft: v.draft
1671
1682
  });
1672
1683
  }
1673
1684
  }) : null,
1674
- _.name === "verify" && M ? /* @__PURE__ */ x(M, {
1685
+ v.name === "verify" && P ? /* @__PURE__ */ x(P, {
1675
1686
  client: e,
1676
- email: _.email,
1677
- onDifferentEmail: () => v({ name: "edit" }),
1678
- onClose: b,
1687
+ email: v.email,
1688
+ onDifferentEmail: () => y({ name: "edit" }),
1689
+ onClose: S,
1679
1690
  onDone: (t) => {
1680
- if (_.draft) {
1681
- let t = Re(e, _.draft.anchor);
1682
- D(t, null), D(t.replace(/[^:]*~/, ""), null);
1691
+ if (v.draft) {
1692
+ let t = ze(e, v.draft.anchor);
1693
+ O(t, null), O(t.replace(/[^:]*~/, ""), null);
1683
1694
  }
1684
- g({
1695
+ _({
1685
1696
  text: u("sentGuest"),
1686
1697
  tone: "success"
1687
- }), t[0] ? J(t[0]) : v({ name: "idle" });
1698
+ }), t[0] ? q(t[0]) : y({ name: "idle" });
1688
1699
  }
1689
1700
  }) : null,
1690
- _.name === "thread" && P ? /* @__PURE__ */ x(P, {
1701
+ v.name === "thread" && I ? /* @__PURE__ */ x(I, {
1691
1702
  client: e,
1692
- threadId: _.threadId,
1693
- version: ue,
1694
- onClose: b,
1695
- onError: O,
1696
- notify: g,
1697
- onMovePin: ce(_.threadId)
1703
+ threadId: v.threadId,
1704
+ version: pe,
1705
+ onClose: S,
1706
+ onError: A,
1707
+ notify: _,
1708
+ onMovePin: de(v.threadId)
1698
1709
  }) : null,
1699
- _.name === "panel" && N ? /* @__PURE__ */ x(N, {
1710
+ v.name === "panel" && F ? /* @__PURE__ */ x(F, {
1700
1711
  client: e,
1701
1712
  side: X.endsWith("left") ? "left" : "right",
1702
1713
  dock: X.startsWith("top") ? "top" : "bottom",
1703
- onClose: b,
1704
- version: ue,
1705
- onError: O,
1706
- notify: g,
1707
- reveal: _.signOff,
1708
- onOpen: (e, t) => v({
1714
+ onClose: S,
1715
+ version: pe,
1716
+ onError: A,
1717
+ notify: _,
1718
+ reveal: v.signOff,
1719
+ onOpen: (e, t) => y({
1709
1720
  name: "panel",
1710
1721
  threadId: typeof e == "string" ? e : e.id,
1711
1722
  order: t
1712
1723
  }),
1713
- detail: _.threadId && P ? (() => {
1714
- let t = _.order ?? [], n = t.indexOf(_.threadId), r = (e) => t.length > 1 && n >= 0 ? () => v({
1724
+ detail: v.threadId && I ? (() => {
1725
+ let t = v.order ?? [], n = t.indexOf(v.threadId), r = (e) => t.length > 1 && n >= 0 ? () => y({
1715
1726
  name: "step",
1716
1727
  by: e
1717
1728
  }) : void 0;
1718
- return /* @__PURE__ */ x(P, {
1729
+ return /* @__PURE__ */ x(I, {
1719
1730
  client: e,
1720
- threadId: _.threadId,
1721
- version: ue,
1722
- onClose: b,
1723
- onError: O,
1724
- notify: g,
1725
- onMovePin: ce(_.threadId),
1731
+ threadId: v.threadId,
1732
+ version: pe,
1733
+ onClose: S,
1734
+ onError: A,
1735
+ notify: _,
1736
+ onMovePin: de(v.threadId),
1726
1737
  embedded: {
1727
- onBack: () => v({ name: "back" }),
1738
+ onBack: () => y({ name: "back" }),
1728
1739
  onPrev: r(-1),
1729
1740
  onNext: r(1),
1730
1741
  position: n < 0 ? null : {
@@ -1732,7 +1743,7 @@ function Wt({ client: e, onHide: n }) {
1732
1743
  total: t.length
1733
1744
  },
1734
1745
  onShow: (e) => {
1735
- v({ name: "idle" }), St(e.page.url, e.id, J);
1746
+ y({ name: "idle" }), Ct(e.page.url, e.id, q);
1736
1747
  }
1737
1748
  }
1738
1749
  });
@@ -1740,74 +1751,75 @@ function Wt({ client: e, onHide: n }) {
1740
1751
  }) : null
1741
1752
  ]
1742
1753
  }),
1743
- I ? /* @__PURE__ */ x(I, {
1754
+ R ? /* @__PURE__ */ x(R, {
1744
1755
  client: e,
1745
1756
  position: X,
1746
- notify: g,
1747
- onOpen: J
1748
- }) : oe && K && !f && _.name === "idle" ? /* @__PURE__ */ x(K, {
1757
+ notify: _,
1758
+ onOpen: q
1759
+ }) : W && ce && !f && v.name === "idle" ? /* @__PURE__ */ x(ce, {
1749
1760
  position: X,
1750
1761
  website: c?.project.name ?? "",
1762
+ inbox: W === "inbox",
1751
1763
  signIn: () => Y(void 0, !0),
1752
- onSignedIn: () => (G(!1), y({ name: "commenting" })),
1764
+ onSignedIn: () => (G(!1), b({ name: W === "inbox" ? "panel" : "commenting" })),
1753
1765
  onDismiss: () => G(!1)
1754
- }) : te && !f && !W && _.name === "idle" ? /* @__PURE__ */ x(st, {
1766
+ }) : V && !f && !se && v.name === "idle" ? /* @__PURE__ */ x(ct, {
1755
1767
  position: X,
1756
1768
  project: c?.project.name ?? "",
1757
1769
  onContinue: () => {
1758
- B(!1), Y().then(() => B(e.auth.hasSignInLink()));
1770
+ te(!1), Y().then(() => te(e.auth.hasSignInLink()));
1759
1771
  },
1760
- onDismiss: () => B(!1)
1761
- }) : R && !f && !U && _.name === "idle" ? /* @__PURE__ */ x(ot, {
1772
+ onDismiss: () => te(!1)
1773
+ }) : ee && !f && !ae && v.name === "idle" ? /* @__PURE__ */ x(st, {
1762
1774
  position: X,
1763
1775
  project: c?.project.name ?? "",
1764
- onStart: q,
1776
+ onStart: K,
1765
1777
  onDismiss: () => {
1766
- z(!1), D(Ht, "1");
1778
+ B(!1), O(Ut, "1");
1767
1779
  }
1768
1780
  }) : null,
1769
- /* @__PURE__ */ x(gt, {
1781
+ /* @__PURE__ */ x(_t, {
1770
1782
  client: e,
1771
1783
  position: X,
1772
- onMove: fe,
1773
- commenting: _.name === "commenting",
1774
- panelOpen: _.name === "panel",
1775
- onComment: () => _.name === "commenting" ? v({ name: "idle" }) : q(),
1776
- onPanel: se,
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,
1777
1789
  onSignIn: () => void Y(),
1778
- onSignOut: le,
1779
- onShortcuts: ie,
1780
- onApprove: f?.capabilities.comment && !U ? () => y({
1790
+ onSignOut: fe,
1791
+ onShortcuts: U,
1792
+ onApprove: f?.capabilities.comment && !ae ? () => b({
1781
1793
  name: "panel",
1782
1794
  signOff: Date.now()
1783
1795
  }) : null,
1784
- onSettings: () => E(!0),
1796
+ onSettings: () => k(!0),
1785
1797
  onHide: n,
1786
- waiting: W?.email ?? null,
1787
- onCode: () => W && y({
1798
+ waiting: se?.email ?? null,
1799
+ onCode: () => se && b({
1788
1800
  name: "verify",
1789
- email: W.email,
1801
+ email: se.email,
1790
1802
  draft: ne
1791
1803
  }),
1792
- covered: _.name !== "idle" && _.name !== "commenting" || S || T,
1804
+ covered: v.name !== "idle" && v.name !== "commenting" || w || D,
1793
1805
  entrance: i ? {
1794
1806
  key: i === "key",
1795
- say: () => o(u(H ? "shownAnnounce" : "shownAnnounceNoKeys"))
1807
+ say: () => o(u(ie ? "shownAnnounce" : "shownAnnounceNoKeys"))
1796
1808
  } : null
1797
1809
  }),
1798
- S && A ? /* @__PURE__ */ x(A, { onClose: () => C(!1) }) : null,
1799
- T && k ? /* @__PURE__ */ x(k, {
1810
+ w && M ? /* @__PURE__ */ x(M, { onClose: () => E(!1) }) : null,
1811
+ D && j ? /* @__PURE__ */ x(j, {
1800
1812
  client: e,
1801
- onClose: () => E(!1),
1802
- onShortcuts: ie,
1813
+ onClose: () => k(!1),
1814
+ onShortcuts: U,
1803
1815
  onHide: n,
1804
- onSignOut: le
1816
+ onSignOut: fe
1805
1817
  }) : null,
1806
- /* @__PURE__ */ x(Rt, {
1818
+ /* @__PURE__ */ x(zt, {
1807
1819
  toasts: h,
1808
- children: [U && _.name === "commenting" ? /* @__PURE__ */ x("div", {
1820
+ children: [ae && v.name === "commenting" ? /* @__PURE__ */ x("div", {
1809
1821
  class: "ck-toast",
1810
- children: ae
1822
+ children: oe
1811
1823
  }) : null, a ? /* @__PURE__ */ x("span", {
1812
1824
  class: "ck-sr",
1813
1825
  children: a
@@ -1816,25 +1828,25 @@ function Wt({ client: e, onHide: n }) {
1816
1828
  ] });
1817
1829
  }
1818
1830
  // src/ui/styles.css?inline
1819
- var Gt = ":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}}";
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}}";
1820
1832
  // src/ui/mount.tsx
1821
- function Kt(e, t = () => void 0, n = t) {
1833
+ function qt(e, t = () => void 0, n = t) {
1822
1834
  let r = document.createElement("div");
1823
1835
  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;");
1824
1836
  let i = r.attachShadow({ mode: "open" });
1825
1837
  for (let t of ["x", "y"]) {
1826
1838
  let n = Number(e.options.inset?.[t]);
1827
- Number.isFinite(n) && r.style.setProperty(`--ck-opt-i${t}`, G(Math.max(0, n)));
1839
+ Number.isFinite(n) && r.style.setProperty(`--ck-opt-i${t}`, W(Math.max(0, n)));
1828
1840
  }
1829
1841
  if ("adoptedStyleSheets" in Document.prototype && "replaceSync" in CSSStyleSheet.prototype) {
1830
1842
  let e = new CSSStyleSheet();
1831
- e.replaceSync(Gt), i.adoptedStyleSheets = [e];
1843
+ e.replaceSync(Kt), i.adoptedStyleSheets = [e];
1832
1844
  } else {
1833
1845
  let e = document.createElement("style");
1834
- e.textContent = Gt, i.appendChild(e);
1846
+ e.textContent = Kt, i.appendChild(e);
1835
1847
  }
1836
1848
  let a = document.createElement("div");
1837
- a.className = "ck-root", a.dir = h(), a.lang = _(), i.appendChild(a), He(i), Y(e.assets);
1849
+ a.className = "ck-root", a.dir = h(), a.lang = _(), i.appendChild(a), Ue(i), le(e.assets);
1838
1850
  let o = !1, s = () => o || r.isConnected || document.documentElement.appendChild(r), c = () => typeof requestIdleCallback == "function" ? requestIdleCallback(s, { timeout: 2e3 }) : setTimeout(s, 50);
1839
1851
  "commentkitLoader" in document.documentElement.dataset && document.readyState !== "complete" ? addEventListener("load", c) : s();
1840
1852
  let l = () => {
@@ -1842,40 +1854,40 @@ function Kt(e, t = () => void 0, n = t) {
1842
1854
  (t.request || t.opening) && s();
1843
1855
  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;
1844
1856
  r.setAttribute("data-theme", i ? "dark" : "light");
1845
- let a = e.state.get().config?.appearance.accent, o = !!a && /^#[0-9a-f]{6}$/i.test(a), c = qt(o ? a : "#c2341b");
1857
+ let a = e.state.get().config?.appearance.accent, o = !!a && /^#[0-9a-f]{6}$/i.test(a), c = Jt(o ? a : "#c2341b");
1846
1858
  if (o) {
1847
1859
  let e = c;
1848
- for (; Yt(e) > .1833 && Yt(e) < .2047;) e = Jt(e, [
1860
+ for (; Xt(e) > .1833 && Xt(e) < .2047;) e = Yt(e, [
1849
1861
  0,
1850
1862
  0,
1851
1863
  0
1852
1864
  ], .98).map(Math.round);
1853
- let t = e === c ? a : `rgb(${e})`, n = Yt(e) > .194 ? "#121316" : "#ffffff";
1865
+ let t = e === c ? a : `rgb(${e})`, n = Xt(e) > .194 ? "#121316" : "#ffffff";
1854
1866
  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);
1855
1867
  }
1856
- let l = Yt(Jt(c, qt(i ? "#212126" : "#ffffff"), .12)) + .05, u = qt(i ? "#ffffff" : "#121316"), d = c;
1857
- for (let e = 1, t; e > 0 && (t = Yt(d = Jt(c, u, e)) + .05) / l < 4.5 && l / t < 4.5; e -= .05);
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);
1858
1870
  r.style.setProperty("--ck-accent-text", `rgb(${d.map(Math.round)})`);
1859
1871
  };
1860
1872
  l();
1861
1873
  let u = matchMedia("(prefers-color-scheme: dark)");
1862
1874
  u.addEventListener?.("change", l);
1863
- 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))));
1864
- return f?.addEventListener("resize", p), f?.addEventListener("scroll", p), C(/* @__PURE__ */ x(Zt, {
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, {
1865
1877
  onCrash: t,
1866
1878
  onError: (t) => e.reportCrash(t),
1867
- children: /* @__PURE__ */ x(Ut, {
1879
+ children: /* @__PURE__ */ x(Wt, {
1868
1880
  client: e,
1869
1881
  onHide: n
1870
1882
  })
1871
1883
  }), a), Object.assign(() => {
1872
- o = !0, removeEventListener("load", c), C(null, a), He(null), d(), u.removeEventListener?.("change", l), f?.removeEventListener("resize", p), f?.removeEventListener("scroll", p), r.remove();
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();
1873
1885
  }, { attach: s });
1874
1886
  }
1875
- var qt = (e) => e.slice(1).match(/../g).map((e) => parseInt(e, 16)), Jt = (e, t, n) => e.map((e, r) => e * n + t[r] * (1 - n)), Yt = (e) => {
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) => {
1876
1888
  let [t, n, r] = e.map((e) => (e /= 255) <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
1877
1889
  return .2126 * t + .7152 * n + .0722 * r;
1878
- }, Xt = !1, Zt = class extends S {
1890
+ }, Zt = !1, Qt = class extends C {
1879
1891
  constructor(...e) {
1880
1892
  super(...e), this.state = { crashed: !1 };
1881
1893
  }
@@ -1885,7 +1897,7 @@ var qt = (e) => e.slice(1).match(/../g).map((e) => parseInt(e, 16)), Jt = (e, t,
1885
1897
  try {
1886
1898
  this.props.onError?.(e);
1887
1899
  } catch {}
1888
- Xt || (Xt = !0, console.warn("[CommentKit] The widget stopped after an error and was removed. Your page is not affected.", e)), setTimeout(() => {
1900
+ Zt || (Zt = !0, console.warn("[CommentKit] The widget stopped after an error and was removed. Your page is not affected.", e)), setTimeout(() => {
1889
1901
  try {
1890
1902
  this.props.onCrash();
1891
1903
  } catch {}
@@ -1895,10 +1907,10 @@ var qt = (e) => e.slice(1).match(/../g).map((e) => parseInt(e, 16)), Jt = (e, t,
1895
1907
  render() {
1896
1908
  return this.state.crashed ? null : this.props.children;
1897
1909
  }
1898
- }, Qt = /* @__PURE__ */ e({
1910
+ }, $t = /* @__PURE__ */ e({
1899
1911
  en: () => y,
1900
- installDiagnostics: () => z,
1901
- mountWidget: () => Kt,
1912
+ installDiagnostics: () => ee,
1913
+ mountWidget: () => qt,
1902
1914
  setLocale: () => b
1903
1915
  });
1904
- export { K as A, ne as B, ve as C, X as D, fe as E, oe as F, ae as H, ye as I, F as L, Ce as M, W as N, q as O, _e as P, te as R, Z as S, J as T, H as U, ie as V, Ae as _, rt as a, Te as b, Ue as c, Fe as d, y as en, Ie as f, ke as g, Pe as h, it as i, z as installDiagnostics, Se as j, be as k, ze as l, Me as m, Kt as mountWidget, at as n, tt as o, Re as p, nt as r, qe as s, b as setLocale, Qt as t, Le as u, Ee as v, ue as w, De as x, Q as y, re as z };
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 };