linear-grab 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.global.js +17 -17
- package/dist/linear-grab.js +620 -564
- package/package.json +1 -1
package/dist/linear-grab.js
CHANGED
|
@@ -62,41 +62,41 @@ function T(e, t) {
|
|
|
62
62
|
};
|
|
63
63
|
return [me.bind(n), (e) => (typeof e == "function" && (e = y && y.running && y.sources.has(n) ? e(n.tValue) : e(n.value)), he(n, e))];
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function E(e, t, n) {
|
|
66
66
|
ge(ve(e, t, !0, m));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function D(e, t, n) {
|
|
69
69
|
ge(ve(e, t, !1, m));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function O(e, t, n) {
|
|
72
72
|
p = Ce;
|
|
73
73
|
let r = ve(e, t, !1, m), i = pe && de(pe);
|
|
74
74
|
i && (r.suspense = i), (!n || !n.render) && (r.user = !0), S ? S.push(r) : ge(r);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function k(e, t, n) {
|
|
77
77
|
n = n ? Object.assign({}, d, n) : d;
|
|
78
78
|
let r = ve(e, t, !0, 0);
|
|
79
79
|
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, ge(r), me.bind(r);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function ee(e) {
|
|
82
82
|
return e && typeof e == "object" && "then" in e;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function te(e, t, n) {
|
|
85
85
|
let r, a, o;
|
|
86
86
|
typeof t == "function" ? (r = e, a = t, o = n || {}) : (r = !0, a = e, o = t || {});
|
|
87
|
-
let s = null, c = _, l = null, u = !1, d = !1, f = "initialValue" in o, p = typeof r == "function" &&
|
|
87
|
+
let s = null, c = _, l = null, u = !1, d = !1, f = "initialValue" in o, p = typeof r == "function" && k(r), m = /* @__PURE__ */ new Set(), [h, g] = (o.storage || T)(o.initialValue), [x, S] = T(void 0), [C, w] = T(void 0, { equals: !1 }), [D, O] = T(f ? "ready" : "unresolved");
|
|
88
88
|
v && ae(() => {
|
|
89
89
|
for (let e of m.keys()) e.decrement();
|
|
90
90
|
m.clear(), y && s && y.promises.delete(s), s = null;
|
|
91
91
|
}), i.context && (l = i.getNextContextId(), o.ssrLoadFrom === "initial" ? c = o.initialValue : i.load && i.has(l) && (c = i.load(l)));
|
|
92
|
-
function
|
|
92
|
+
function te(e, t, n, r) {
|
|
93
93
|
return s === e && (s = null, r !== void 0 && (f = !0), (e === c || t === c) && o.onHydrated && queueMicrotask(() => o.onHydrated(r, { value: t })), c = _, y && e && u ? (y.promises.delete(e), u = !1, be(() => {
|
|
94
94
|
y.running = !0, A(t, n);
|
|
95
95
|
}, !1)) : A(t, n)), t;
|
|
96
96
|
}
|
|
97
97
|
function A(e, t) {
|
|
98
98
|
be(() => {
|
|
99
|
-
t === void 0 && g(() => e),
|
|
99
|
+
t === void 0 && g(() => e), O(t === void 0 ? f ? "ready" : "unresolved" : "errored"), S(t);
|
|
100
100
|
for (let e of m.keys()) e.decrement();
|
|
101
101
|
m.clear();
|
|
102
102
|
}, !1);
|
|
@@ -104,7 +104,7 @@ function k(e, t, n) {
|
|
|
104
104
|
function re() {
|
|
105
105
|
let e = pe && de(pe), t = h(), n = x();
|
|
106
106
|
if (n !== void 0 && !s) throw n;
|
|
107
|
-
return b && !b.user && e &&
|
|
107
|
+
return b && !b.user && e && E(() => {
|
|
108
108
|
C(), s && (e.resolved && y && u ? y.promises.add(s) : m.has(e) || (e.increment(), m.add(e)));
|
|
109
109
|
}), t;
|
|
110
110
|
}
|
|
@@ -113,7 +113,7 @@ function k(e, t, n) {
|
|
|
113
113
|
d = !1;
|
|
114
114
|
let t = p ? p() : r;
|
|
115
115
|
if (u = y && y.running, t == null || t === !1) {
|
|
116
|
-
|
|
116
|
+
te(s, ne(h));
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
119
|
y && s && y.promises.delete(s);
|
|
@@ -128,18 +128,18 @@ function k(e, t, n) {
|
|
|
128
128
|
}
|
|
129
129
|
}) : c;
|
|
130
130
|
if (n !== void 0) {
|
|
131
|
-
|
|
131
|
+
te(s, void 0, Oe(n), t);
|
|
132
132
|
return;
|
|
133
|
-
} else if (!
|
|
134
|
-
return s = i, "v" in i ? (i.s === 1 ?
|
|
135
|
-
|
|
136
|
-
}, !1), i.then((e) =>
|
|
133
|
+
} else if (!ee(i)) return te(s, i, void 0, t), i;
|
|
134
|
+
return s = i, "v" in i ? (i.s === 1 ? te(s, i.v, void 0, t) : te(s, void 0, Oe(i.v), t), i) : (d = !0, queueMicrotask(() => d = !1), be(() => {
|
|
135
|
+
O(f ? "refreshing" : "pending"), w();
|
|
136
|
+
}, !1), i.then((e) => te(i, e, void 0, t), (e) => te(i, void 0, Oe(e), t)));
|
|
137
137
|
}
|
|
138
138
|
Object.defineProperties(re, {
|
|
139
|
-
state: { get: () =>
|
|
139
|
+
state: { get: () => D() },
|
|
140
140
|
error: { get: () => x() },
|
|
141
141
|
loading: { get() {
|
|
142
|
-
let e =
|
|
142
|
+
let e = D();
|
|
143
143
|
return e === "pending" || e === "refreshing";
|
|
144
144
|
} },
|
|
145
145
|
latest: { get() {
|
|
@@ -150,7 +150,7 @@ function k(e, t, n) {
|
|
|
150
150
|
} }
|
|
151
151
|
});
|
|
152
152
|
let oe = v;
|
|
153
|
-
return p ?
|
|
153
|
+
return p ? E(() => (oe = v, ie(!1))) : ie(!1), [re, {
|
|
154
154
|
refetch: (e) => se(oe, () => ie(e)),
|
|
155
155
|
mutate: g
|
|
156
156
|
}];
|
|
@@ -182,7 +182,7 @@ function re(e, t, n) {
|
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
184
|
function ie(e) {
|
|
185
|
-
|
|
185
|
+
O(() => ne(e));
|
|
186
186
|
}
|
|
187
187
|
function ae(e) {
|
|
188
188
|
return v === null || (v.cleanups === null ? v.cleanups = [e] : v.cleanups.push(e)), e;
|
|
@@ -215,7 +215,7 @@ function de(e) {
|
|
|
215
215
|
return v && v.context && (t = v.context[e.id]) !== void 0 ? t : e.defaultValue;
|
|
216
216
|
}
|
|
217
217
|
function fe(e) {
|
|
218
|
-
let t =
|
|
218
|
+
let t = k(e), n = k(() => je(t()));
|
|
219
219
|
return n.toArray = () => {
|
|
220
220
|
let e = n();
|
|
221
221
|
return Array.isArray(e) ? e : e == null ? [] : [e];
|
|
@@ -450,7 +450,7 @@ function je(e) {
|
|
|
450
450
|
function Me(e, t) {
|
|
451
451
|
return function(t) {
|
|
452
452
|
let n;
|
|
453
|
-
return
|
|
453
|
+
return D(() => n = ne(() => (v.context = {
|
|
454
454
|
...v.context,
|
|
455
455
|
[e]: t.value
|
|
456
456
|
}, fe(() => t.children))), void 0), n;
|
|
@@ -549,7 +549,7 @@ function Ve(...e) {
|
|
|
549
549
|
let t = !1;
|
|
550
550
|
for (let n = 0; n < e.length; n++) {
|
|
551
551
|
let r = e[n];
|
|
552
|
-
t ||= !!r && c in r, e[n] = typeof r == "function" ? (t = !0,
|
|
552
|
+
t ||= !!r && c in r, e[n] = typeof r == "function" ? (t = !0, k(r)) : r;
|
|
553
553
|
}
|
|
554
554
|
if (l && t) return new Proxy({
|
|
555
555
|
get(t) {
|
|
@@ -637,15 +637,15 @@ function He(e, ...t) {
|
|
|
637
637
|
var Ue = (e) => `Stale read from <${e}>.`;
|
|
638
638
|
function We(e) {
|
|
639
639
|
let t = "fallback" in e && { fallback: () => e.fallback };
|
|
640
|
-
return
|
|
640
|
+
return k(Fe(() => e.each, e.children, t || void 0));
|
|
641
641
|
}
|
|
642
642
|
function Ge(e) {
|
|
643
643
|
let t = "fallback" in e && { fallback: () => e.fallback };
|
|
644
|
-
return
|
|
644
|
+
return k(Ie(() => e.each, e.children, t || void 0));
|
|
645
645
|
}
|
|
646
646
|
function M(e) {
|
|
647
|
-
let t = e.keyed, n =
|
|
648
|
-
return
|
|
647
|
+
let t = e.keyed, n = k(() => e.when, void 0, void 0), r = t ? n : k(n, void 0, { equals: (e, t) => !e == !t });
|
|
648
|
+
return k(() => {
|
|
649
649
|
let i = r();
|
|
650
650
|
if (i) {
|
|
651
651
|
let a = e.children;
|
|
@@ -806,7 +806,7 @@ var Ze = /*#__PURE__*/ new Set([
|
|
|
806
806
|
]), Qe = {
|
|
807
807
|
xlink: "http://www.w3.org/1999/xlink",
|
|
808
808
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
809
|
-
}, $e = (e) =>
|
|
809
|
+
}, $e = (e) => k(() => e());
|
|
810
810
|
function et(e, t, n) {
|
|
811
811
|
let r = n.length, i = t.length, a = r, o = 0, s = 0, c = t[i - 1].nextSibling, l = null;
|
|
812
812
|
for (; o < i || s < a;) {
|
|
@@ -910,14 +910,14 @@ function dt(e, t, n) {
|
|
|
910
910
|
}
|
|
911
911
|
function ft(e, t = {}, n, r) {
|
|
912
912
|
let i = {};
|
|
913
|
-
return r ||
|
|
913
|
+
return r || D(() => i.children = bt(e, t.children, i.children)), D(() => typeof t.ref == "function" && pt(t.ref, e)), D(() => mt(e, t, n, !0, i, !0)), i;
|
|
914
914
|
}
|
|
915
915
|
function pt(e, t, n) {
|
|
916
916
|
return ne(() => e(t, n));
|
|
917
917
|
}
|
|
918
918
|
function P(e, t, n, r) {
|
|
919
919
|
if (n !== void 0 && !r && (r = []), typeof t != "function") return bt(e, t, r, n);
|
|
920
|
-
|
|
920
|
+
D((r) => bt(e, t(), r, n), r);
|
|
921
921
|
}
|
|
922
922
|
function mt(e, t, n, r, i = {}, a = !1) {
|
|
923
923
|
t ||= {};
|
|
@@ -1031,14 +1031,14 @@ function bt(e, t, n, r, i) {
|
|
|
1031
1031
|
} else if (t == null || o === "boolean") {
|
|
1032
1032
|
if (a) return n;
|
|
1033
1033
|
n = Ct(e, n, r);
|
|
1034
|
-
} else if (o === "function") return
|
|
1034
|
+
} else if (o === "function") return D(() => {
|
|
1035
1035
|
let i = t();
|
|
1036
1036
|
for (; typeof i == "function";) i = i();
|
|
1037
1037
|
n = bt(e, i, n, r);
|
|
1038
1038
|
}), () => n;
|
|
1039
1039
|
else if (Array.isArray(t)) {
|
|
1040
1040
|
let o = [], c = n && Array.isArray(n);
|
|
1041
|
-
if (xt(o, t, n, i)) return
|
|
1041
|
+
if (xt(o, t, n, i)) return D(() => n = bt(e, o, n, r, !0)), () => n;
|
|
1042
1042
|
if (a) {
|
|
1043
1043
|
if (!o.length) return n;
|
|
1044
1044
|
if (r === void 0) return n = [...e.childNodes];
|
|
@@ -2967,7 +2967,7 @@ var or = ue(void 0), sr = (e) => {
|
|
|
2967
2967
|
let t = de(or);
|
|
2968
2968
|
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
|
|
2969
2969
|
return t();
|
|
2970
|
-
}, cr = (e) => (
|
|
2970
|
+
}, cr = (e) => (D((t) => (t?.(), e.client.mount(), e.client.unmount.bind(e.client))), ae(() => e.client.unmount()), j(or.Provider, {
|
|
2971
2971
|
value: () => e.client,
|
|
2972
2972
|
get children() {
|
|
2973
2973
|
return e.children;
|
|
@@ -2995,7 +2995,7 @@ function dr(e, t, n, r) {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
var fr = (e, t) => t;
|
|
2997
2997
|
function pr(e, t, n) {
|
|
2998
|
-
let r =
|
|
2998
|
+
let r = k(() => sr(n?.())), i = ur(), a = k(() => {
|
|
2999
2999
|
let t = r().defaultQueryOptions(e());
|
|
3000
3000
|
return t._optimisticResults = i() ? "isRestoring" : "optimistic", t.structuralSharing = !1, t;
|
|
3001
3001
|
}), o = a(), [s, c] = T(new t(r(), a())), l = s().getOptimisticResult(a()), [u, d] = tr(l), f = () => s().subscribe((e) => {
|
|
@@ -3017,7 +3017,7 @@ function pr(e, t, n) {
|
|
|
3017
3017
|
p(e);
|
|
3018
3018
|
}];
|
|
3019
3019
|
}
|
|
3020
|
-
let h = null, g = null, [_, { refetch: v }] =
|
|
3020
|
+
let h = null, g = null, [_, { refetch: v }] = te(() => {
|
|
3021
3021
|
let e = s();
|
|
3022
3022
|
return new Promise((t, n) => {
|
|
3023
3023
|
if (g = t, !h && !i() && (h = f()), e.updateResult(), l.isError && !l.isFetching && !i() && $t(e.options.throwOnError, [l.error, e.getCurrentQuery()])) return p(l), n(l.error);
|
|
@@ -3035,34 +3035,34 @@ function pr(e, t, n) {
|
|
|
3035
3035
|
(o.staleTime || !o.initialData) && t.value && (n.refetchOnMount = !1), s().setOptions(n), p(s().getOptimisticResult(n)), h = f();
|
|
3036
3036
|
}
|
|
3037
3037
|
});
|
|
3038
|
-
return
|
|
3038
|
+
return E(re(r, (e) => {
|
|
3039
3039
|
h && h();
|
|
3040
3040
|
let n = new t(e, a());
|
|
3041
3041
|
h = f(), c(n);
|
|
3042
|
-
}, { defer: !0 })),
|
|
3042
|
+
}, { defer: !0 })), E(re(i, (e) => {
|
|
3043
3043
|
e || v();
|
|
3044
3044
|
}, { defer: !0 })), ae(() => {
|
|
3045
3045
|
h &&= (h(), null), g &&= (g(l), null);
|
|
3046
|
-
}),
|
|
3046
|
+
}), E(re([s, a], ([e, t]) => {
|
|
3047
3047
|
e.setOptions(t), p(e.getOptimisticResult(t)), v();
|
|
3048
3048
|
}, { defer: !0 })), new Proxy(u, { get(e, t) {
|
|
3049
3049
|
return t === "data" ? u.data === void 0 ? _()?.data : _.latest?.data : Reflect.get(e, t);
|
|
3050
3050
|
} });
|
|
3051
3051
|
}
|
|
3052
3052
|
function mr(e, t) {
|
|
3053
|
-
return pr(
|
|
3053
|
+
return pr(k(() => e()), Cn, t);
|
|
3054
3054
|
}
|
|
3055
3055
|
function hr(e, t) {
|
|
3056
|
-
let n = new Pn(
|
|
3056
|
+
let n = new Pn(k(() => sr(t?.()))(), e()), r = (e, t) => {
|
|
3057
3057
|
n.mutate(e, t).catch(At);
|
|
3058
3058
|
}, [i, a] = tr({
|
|
3059
3059
|
...n.getCurrentResult(),
|
|
3060
3060
|
mutate: r,
|
|
3061
3061
|
mutateAsync: n.getCurrentResult().mutate
|
|
3062
3062
|
});
|
|
3063
|
-
return
|
|
3063
|
+
return E(() => {
|
|
3064
3064
|
n.setOptions(e());
|
|
3065
|
-
}),
|
|
3065
|
+
}), E(re(() => i.status, () => {
|
|
3066
3066
|
if (i.isError && $t(n.options.throwOnError, [i.error])) throw i.error;
|
|
3067
3067
|
})), ae(n.subscribe((e) => {
|
|
3068
3068
|
a({
|
|
@@ -15607,7 +15607,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
15607
15607
|
allowedTools: _?.allowedTools ?? void 0,
|
|
15608
15608
|
toolNameMapping: x,
|
|
15609
15609
|
customProviderToolNames: S
|
|
15610
|
-
}), { input:
|
|
15610
|
+
}), { input: E, warnings: D } = await O_({
|
|
15611
15611
|
prompt: c,
|
|
15612
15612
|
toolNameMapping: x,
|
|
15613
15613
|
systemMessageMode: _?.systemMessageMode ?? (b ? "developer" : h.systemMessageMode),
|
|
@@ -15617,35 +15617,35 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
15617
15617
|
store: _?.store ?? !0,
|
|
15618
15618
|
hasConversation: _?.conversation != null,
|
|
15619
15619
|
hasPreviousResponseId: _?.previousResponseId != null,
|
|
15620
|
-
hasLocalShellTool:
|
|
15621
|
-
hasShellTool:
|
|
15622
|
-
hasApplyPatchTool:
|
|
15620
|
+
hasLocalShellTool: te("openai.local_shell"),
|
|
15621
|
+
hasShellTool: te("openai.shell"),
|
|
15622
|
+
hasApplyPatchTool: te("openai.apply_patch"),
|
|
15623
15623
|
customProviderToolNames: S.size > 0 ? S : void 0
|
|
15624
15624
|
});
|
|
15625
|
-
m.push(...
|
|
15626
|
-
let
|
|
15627
|
-
function
|
|
15628
|
-
|
|
15625
|
+
m.push(...D);
|
|
15626
|
+
let O = _?.strictJsonSchema ?? !0, k = _?.include;
|
|
15627
|
+
function ee(e) {
|
|
15628
|
+
k == null ? k = [e] : k.includes(e) || (k = [...k, e]);
|
|
15629
15629
|
}
|
|
15630
|
-
function
|
|
15630
|
+
function te(e) {
|
|
15631
15631
|
return d?.find((t) => t.type === "provider" && t.id === e) != null;
|
|
15632
15632
|
}
|
|
15633
15633
|
let A = typeof _?.logprobs == "number" ? _?.logprobs : _?.logprobs === !0 ? Ty : void 0;
|
|
15634
|
-
A &&
|
|
15634
|
+
A && ee("message.output_text.logprobs");
|
|
15635
15635
|
let ne = d?.find((e) => e.type === "provider" && (e.id === "openai.web_search" || e.id === "openai.web_search_preview"))?.name;
|
|
15636
|
-
ne &&
|
|
15636
|
+
ne && ee("web_search_call.action.sources"), te("openai.code_interpreter") && ee("code_interpreter_call.outputs");
|
|
15637
15637
|
let re = _?.store;
|
|
15638
|
-
re === !1 && b &&
|
|
15638
|
+
re === !1 && b && ee("reasoning.encrypted_content");
|
|
15639
15639
|
let ie = {
|
|
15640
15640
|
model: this.modelId,
|
|
15641
|
-
input:
|
|
15641
|
+
input: E,
|
|
15642
15642
|
temperature: t,
|
|
15643
15643
|
top_p: r,
|
|
15644
15644
|
max_output_tokens: e,
|
|
15645
15645
|
...(p?.type === "json" || _?.textVerbosity) && { text: {
|
|
15646
15646
|
...p?.type === "json" && { format: p.schema == null ? { type: "json_object" } : {
|
|
15647
15647
|
type: "json_schema",
|
|
15648
|
-
strict:
|
|
15648
|
+
strict: O,
|
|
15649
15649
|
name: p.name ?? "response",
|
|
15650
15650
|
description: p.description,
|
|
15651
15651
|
schema: p.schema
|
|
@@ -15661,7 +15661,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
15661
15661
|
user: _?.user,
|
|
15662
15662
|
instructions: _?.instructions,
|
|
15663
15663
|
service_tier: _?.serviceTier,
|
|
15664
|
-
include:
|
|
15664
|
+
include: k,
|
|
15665
15665
|
prompt_cache_key: _?.promptCacheKey,
|
|
15666
15666
|
prompt_cache_options: _?.promptCacheOptions,
|
|
15667
15667
|
prompt_cache_retention: _?.promptCacheRetention,
|
|
@@ -16113,7 +16113,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16113
16113
|
}), p = this, m = P_(e.prompt), h = /* @__PURE__ */ new Map(), g = {
|
|
16114
16114
|
unified: "other",
|
|
16115
16115
|
raw: void 0
|
|
16116
|
-
}, _, v = [], y = null, b = {}, x = [], S, C = !1, w = {}, T,
|
|
16116
|
+
}, _, v = [], y = null, b = {}, x = [], S, C = !1, w = {}, T, E, D = [], O = !1;
|
|
16117
16117
|
return {
|
|
16118
16118
|
stream: f.pipeThrough(new TransformStream({
|
|
16119
16119
|
start(e) {
|
|
@@ -16123,7 +16123,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16123
16123
|
});
|
|
16124
16124
|
},
|
|
16125
16125
|
transform(t, r) {
|
|
16126
|
-
var d, f,
|
|
16126
|
+
var d, f, k, ee, te;
|
|
16127
16127
|
if (e.includeRawChunks && r.enqueue({
|
|
16128
16128
|
type: "raw",
|
|
16129
16129
|
rawValue: t.rawValue
|
|
@@ -16376,7 +16376,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16376
16376
|
let e = b[A.output_index], t = A.item.execution === "server";
|
|
16377
16377
|
if (e != null) {
|
|
16378
16378
|
let n = t ? e.toolCallId : A.item.call_id ?? A.item.id;
|
|
16379
|
-
t ?
|
|
16379
|
+
t ? D.push(n) : r.enqueue({
|
|
16380
16380
|
type: "tool-input-start",
|
|
16381
16381
|
id: n,
|
|
16382
16382
|
toolName: e.toolName
|
|
@@ -16397,7 +16397,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16397
16397
|
}
|
|
16398
16398
|
b[A.output_index] = void 0;
|
|
16399
16399
|
} else if (A.item.type === "tool_search_output") {
|
|
16400
|
-
let e = A.item.call_id ??
|
|
16400
|
+
let e = A.item.call_id ?? D.shift() ?? A.item.id;
|
|
16401
16401
|
r.enqueue({
|
|
16402
16402
|
type: "tool-result",
|
|
16403
16403
|
toolCallId: e,
|
|
@@ -16639,7 +16639,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16639
16639
|
hasFunctionCall: C
|
|
16640
16640
|
}),
|
|
16641
16641
|
raw: A.response.incomplete_details?.reason ?? void 0
|
|
16642
|
-
}, _ = A.response.usage, typeof A.response.service_tier == "string" && (T = A.response.service_tier), A.response.reasoning?.context != null && (
|
|
16642
|
+
}, _ = A.response.usage, typeof A.response.service_tier == "string" && (T = A.response.service_tier), A.response.reasoning?.context != null && (E = A.response.reasoning.context);
|
|
16643
16643
|
else if (V_(A)) {
|
|
16644
16644
|
let e = A.response.incomplete_details?.reason;
|
|
16645
16645
|
g = {
|
|
@@ -16648,7 +16648,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16648
16648
|
hasFunctionCall: C
|
|
16649
16649
|
}) : "error",
|
|
16650
16650
|
raw: e ?? "error"
|
|
16651
|
-
}, _ = A.response.usage ?? void 0, A.response.reasoning?.context != null && (
|
|
16651
|
+
}, _ = A.response.usage ?? void 0, A.response.reasoning?.context != null && (E = A.response.reasoning.context), !O && A.response.error != null && (O = !0, r.enqueue({
|
|
16652
16652
|
type: "error",
|
|
16653
16653
|
error: {
|
|
16654
16654
|
type: "response.failed",
|
|
@@ -16669,7 +16669,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16669
16669
|
}) : A.annotation.type === "file_citation" ? r.enqueue({
|
|
16670
16670
|
type: "source",
|
|
16671
16671
|
sourceType: "document",
|
|
16672
|
-
id: (
|
|
16672
|
+
id: (k = p.config).generateId?.call(k) ?? cg(),
|
|
16673
16673
|
mediaType: "text/plain",
|
|
16674
16674
|
title: A.annotation.filename,
|
|
16675
16675
|
filename: A.annotation.filename,
|
|
@@ -16681,7 +16681,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16681
16681
|
}) : A.annotation.type === "container_file_citation" ? r.enqueue({
|
|
16682
16682
|
type: "source",
|
|
16683
16683
|
sourceType: "document",
|
|
16684
|
-
id: (
|
|
16684
|
+
id: (ee = p.config).generateId?.call(ee) ?? cg(),
|
|
16685
16685
|
mediaType: "text/plain",
|
|
16686
16686
|
title: A.annotation.filename,
|
|
16687
16687
|
filename: A.annotation.filename,
|
|
@@ -16693,7 +16693,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16693
16693
|
}) : A.annotation.type === "file_path" && r.enqueue({
|
|
16694
16694
|
type: "source",
|
|
16695
16695
|
sourceType: "document",
|
|
16696
|
-
id: (
|
|
16696
|
+
id: (te = p.config).generateId?.call(te) ?? cg(),
|
|
16697
16697
|
mediaType: "application/octet-stream",
|
|
16698
16698
|
title: A.annotation.file_id,
|
|
16699
16699
|
filename: A.annotation.file_id,
|
|
@@ -16702,7 +16702,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16702
16702
|
fileId: A.annotation.file_id,
|
|
16703
16703
|
index: A.annotation.index
|
|
16704
16704
|
} }
|
|
16705
|
-
})) : Q_(A) && (
|
|
16705
|
+
})) : Q_(A) && (O = !0, g = {
|
|
16706
16706
|
unified: "error",
|
|
16707
16707
|
raw: "error"
|
|
16708
16708
|
}, r.enqueue({
|
|
@@ -16715,7 +16715,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
|
|
|
16715
16715
|
responseId: y,
|
|
16716
16716
|
...v.length > 0 ? { logprobs: v } : {},
|
|
16717
16717
|
...T === void 0 ? {} : { serviceTier: T },
|
|
16718
|
-
...
|
|
16718
|
+
...E === void 0 ? {} : { reasoningContext: E }
|
|
16719
16719
|
} };
|
|
16720
16720
|
e.enqueue({
|
|
16721
16721
|
type: "finish",
|
|
@@ -19758,7 +19758,7 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
|
|
|
19758
19758
|
provider: _,
|
|
19759
19759
|
providerOptions: m,
|
|
19760
19760
|
schema: yb
|
|
19761
|
-
}), b = y != null, x = Object.assign({}, v ?? {}, y ?? {}), { maxOutputTokens: S, supportsStructuredOutput: C, supportsAdaptiveThinking: w, rejectsSamplingParameters: T, supportsXhighEffort:
|
|
19761
|
+
}), b = y != null, x = Object.assign({}, v ?? {}, y ?? {}), { maxOutputTokens: S, supportsStructuredOutput: C, supportsAdaptiveThinking: w, rejectsSamplingParameters: T, supportsXhighEffort: E, isKnownModel: D } = nb(this.modelId);
|
|
19762
19762
|
T && (r != null && (g.push({
|
|
19763
19763
|
type: "unsupported",
|
|
19764
19764
|
feature: "temperature",
|
|
@@ -19772,7 +19772,7 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
|
|
|
19772
19772
|
feature: "topP",
|
|
19773
19773
|
details: `topP is not supported by ${this.modelId} and will be ignored`
|
|
19774
19774
|
}), i = void 0));
|
|
19775
|
-
let
|
|
19775
|
+
let O = D || this.modelId.startsWith("claude-"), k = (this.config.supportsNativeStructuredOutput ?? !0) && C, ee = (this.config.supportsStrictTools ?? !0) && C, te = x?.structuredOutputMode ?? "auto", A = te === "outputFormat" || te === "auto" && k, ne = l?.type === "json" && l.schema != null && !A ? {
|
|
19776
19776
|
type: "function",
|
|
19777
19777
|
name: "json",
|
|
19778
19778
|
description: "Respond with a JSON object.",
|
|
@@ -19811,7 +19811,7 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
|
|
|
19811
19811
|
let e = ib({
|
|
19812
19812
|
reasoning: p,
|
|
19813
19813
|
supportsAdaptiveThinking: w,
|
|
19814
|
-
supportsXhighEffort:
|
|
19814
|
+
supportsXhighEffort: E,
|
|
19815
19815
|
maxOutputTokensForModel: S,
|
|
19816
19816
|
warnings: g
|
|
19817
19817
|
});
|
|
@@ -19918,11 +19918,11 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
|
|
|
19918
19918
|
type: "unsupported",
|
|
19919
19919
|
feature: "topP",
|
|
19920
19920
|
details: "topP is not supported when thinking is enabled"
|
|
19921
|
-
})), me.max_tokens = pe + (de ?? 0)) :
|
|
19921
|
+
})), me.max_tokens = pe + (de ?? 0)) : O && i != null && r != null && (g.push({
|
|
19922
19922
|
type: "unsupported",
|
|
19923
19923
|
feature: "topP",
|
|
19924
19924
|
details: "topP is not supported when temperature is set. topP is ignored."
|
|
19925
|
-
}), me.top_p = void 0),
|
|
19925
|
+
}), me.top_p = void 0), D && me.max_tokens > S && (n != null && g.push({
|
|
19926
19926
|
type: "unsupported",
|
|
19927
19927
|
feature: "maxOutputTokens",
|
|
19928
19928
|
details: `${me.max_tokens} (maxOutputTokens + thinkingBudget) is greater than ${this.modelId} ${S} max output tokens. The max output tokens have been limited to ${S}.`
|
|
@@ -19935,8 +19935,8 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
|
|
|
19935
19935
|
toolChoice: f,
|
|
19936
19936
|
disableParallelToolUse: x?.disableParallelToolUse,
|
|
19937
19937
|
cacheControlValidator: ie,
|
|
19938
|
-
supportsStructuredOutput:
|
|
19939
|
-
supportsStrictTools:
|
|
19938
|
+
supportsStructuredOutput: k,
|
|
19939
|
+
supportsStrictTools: ee,
|
|
19940
19940
|
defaultEagerInputStreaming: he
|
|
19941
19941
|
} : {
|
|
19942
19942
|
tools: [...d ?? [], ne],
|
|
@@ -19944,7 +19944,7 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
|
|
|
19944
19944
|
disableParallelToolUse: !0,
|
|
19945
19945
|
cacheControlValidator: ie,
|
|
19946
19946
|
supportsStructuredOutput: !1,
|
|
19947
|
-
supportsStrictTools:
|
|
19947
|
+
supportsStrictTools: ee,
|
|
19948
19948
|
defaultEagerInputStreaming: he
|
|
19949
19949
|
}), be = ie.getWarnings();
|
|
19950
19950
|
return {
|
|
@@ -20367,7 +20367,7 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
|
|
|
20367
20367
|
cache_creation_input_tokens: 0,
|
|
20368
20368
|
cache_read_input_tokens: 0,
|
|
20369
20369
|
iterations: null
|
|
20370
|
-
}, h = {}, g = {}, _ = {}, v = null, y, b = null, x, S = null, C = !1, w, T = this.generateId, [
|
|
20370
|
+
}, h = {}, g = {}, _ = {}, v = null, y, b = null, x, S = null, C = !1, w, T = this.generateId, [E, D] = f.pipeThrough(new TransformStream({
|
|
20371
20371
|
start(e) {
|
|
20372
20372
|
e.enqueue({
|
|
20373
20373
|
type: "stream-start",
|
|
@@ -20906,11 +20906,11 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
|
|
|
20906
20906
|
default: throw Error(`Unsupported chunk type: ${r}`);
|
|
20907
20907
|
}
|
|
20908
20908
|
}
|
|
20909
|
-
})).tee(),
|
|
20909
|
+
})).tee(), O = E.getReader();
|
|
20910
20910
|
try {
|
|
20911
|
-
await
|
|
20912
|
-
let e = await
|
|
20913
|
-
if (e.value?.type === "raw" && (e = await
|
|
20911
|
+
await O.read();
|
|
20912
|
+
let e = await O.read();
|
|
20913
|
+
if (e.value?.type === "raw" && (e = await O.read()), e.value?.type === "error") {
|
|
20914
20914
|
let n = e.value.error;
|
|
20915
20915
|
throw new $r({
|
|
20916
20916
|
message: n.message,
|
|
@@ -20923,10 +20923,10 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
|
|
|
20923
20923
|
});
|
|
20924
20924
|
}
|
|
20925
20925
|
} finally {
|
|
20926
|
-
|
|
20926
|
+
O.cancel().catch(() => {}), O.releaseLock();
|
|
20927
20927
|
}
|
|
20928
20928
|
return {
|
|
20929
|
-
stream:
|
|
20929
|
+
stream: D,
|
|
20930
20930
|
request: { body: t },
|
|
20931
20931
|
response: { headers: d }
|
|
20932
20932
|
};
|
|
@@ -24493,32 +24493,32 @@ function _T(e, t) {
|
|
|
24493
24493
|
function vT(e) {
|
|
24494
24494
|
let { model: t, output: n = "object", instructions: r, system: i, prompt: a, messages: o, allowSystemInMessages: s, maxRetries: c, abortSignal: l, headers: u, experimental_repairText: d, experimental_telemetry: f, telemetry: p = f, experimental_download: m, providerOptions: h, onStart: g, experimental_onStart: _, onStepStart: v, experimental_onStepStart: y, onStepEnd: b, onStepFinish: x, onError: S = ({ error: e }) => {
|
|
24495
24495
|
console.error(e);
|
|
24496
|
-
}, onFinish: C, _internal: { generateId: w = eD, currentDate: T = () => /* @__PURE__ */ new Date(), now:
|
|
24496
|
+
}, onFinish: C, _internal: { generateId: w = eD, currentDate: T = () => /* @__PURE__ */ new Date(), now: E = Ww } = {}, ...D } = e, O = "enum" in e && e.enum ? e.enum : void 0, { schema: k, schemaDescription: ee, schemaName: te } = "schema" in e ? e : {};
|
|
24497
24497
|
return gT({
|
|
24498
24498
|
output: n,
|
|
24499
|
-
schema:
|
|
24500
|
-
schemaName:
|
|
24501
|
-
schemaDescription:
|
|
24502
|
-
enumValues:
|
|
24499
|
+
schema: k,
|
|
24500
|
+
schemaName: te,
|
|
24501
|
+
schemaDescription: ee,
|
|
24502
|
+
enumValues: O
|
|
24503
24503
|
}), new tD({
|
|
24504
24504
|
model: t,
|
|
24505
24505
|
telemetry: p,
|
|
24506
24506
|
headers: u,
|
|
24507
|
-
settings:
|
|
24507
|
+
settings: D,
|
|
24508
24508
|
maxRetries: c,
|
|
24509
24509
|
abortSignal: l,
|
|
24510
24510
|
outputStrategy: pT({
|
|
24511
24511
|
output: n,
|
|
24512
|
-
schema:
|
|
24513
|
-
enumValues:
|
|
24512
|
+
schema: k,
|
|
24513
|
+
enumValues: O
|
|
24514
24514
|
}),
|
|
24515
24515
|
instructions: r,
|
|
24516
24516
|
system: i,
|
|
24517
24517
|
prompt: a,
|
|
24518
24518
|
messages: o,
|
|
24519
24519
|
allowSystemInMessages: s,
|
|
24520
|
-
schemaName:
|
|
24521
|
-
schemaDescription:
|
|
24520
|
+
schemaName: te,
|
|
24521
|
+
schemaDescription: ee,
|
|
24522
24522
|
providerOptions: h,
|
|
24523
24523
|
repairText: d,
|
|
24524
24524
|
onStart: g ?? _,
|
|
@@ -24529,7 +24529,7 @@ function vT(e) {
|
|
|
24529
24529
|
download: m,
|
|
24530
24530
|
generateId: w,
|
|
24531
24531
|
currentDate: T,
|
|
24532
|
-
now:
|
|
24532
|
+
now: E
|
|
24533
24533
|
});
|
|
24534
24534
|
}
|
|
24535
24535
|
var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT, BT, VT, HT, UT, WT, GT, KT, qT, JT, YT, XT, ZT, QT, $T, eE, tE, nE, rE, iE, aE, oE, sE, cE, lE, uE, dE, fE, pE, mE, hE, gE, _E, vE, yE, bE, xE, SE, CE, wE, TE, EE, DE, OE, kE, AE, jE, ME, NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE, QE, $E, eD, tD, nD, rD = t((() => {
|
|
@@ -25367,13 +25367,13 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
|
|
|
25367
25367
|
}), tD = class {
|
|
25368
25368
|
constructor({ model: e, headers: t, telemetry: n, settings: r, maxRetries: i, abortSignal: a, outputStrategy: o, instructions: s, system: c, prompt: l, messages: u, allowSystemInMessages: d, schemaName: f, schemaDescription: p, providerOptions: m, repairText: h, onStart: g, onStepStart: _, onStepFinish: v, onError: y, onFinish: b, download: x, generateId: S, currentDate: C, now: w }) {
|
|
25369
25369
|
this._object = new Kh(), this._usage = new Kh(), this._providerMetadata = new Kh(), this._warnings = new Kh(), this._request = new Kh(), this._response = new Kh(), this._finishReason = new Kh();
|
|
25370
|
-
let T = Cw(e), { maxRetries:
|
|
25370
|
+
let T = Cw(e), { maxRetries: E, retry: D } = qw({
|
|
25371
25371
|
maxRetries: i,
|
|
25372
25372
|
abortSignal: a
|
|
25373
|
-
}),
|
|
25373
|
+
}), O = Rw(r), k = iT({ telemetry: n }), ee = this, te = fT(), A = new TransformStream({ transform(e, t) {
|
|
25374
25374
|
t.enqueue(e), e.type === "error" && y({ error: Bw(e.error) });
|
|
25375
25375
|
} });
|
|
25376
|
-
this.baseStream =
|
|
25376
|
+
this.baseStream = te.stream.pipeThrough(A);
|
|
25377
25377
|
let ne = S();
|
|
25378
25378
|
(async () => {
|
|
25379
25379
|
let e = await o.jsonSchema();
|
|
@@ -25386,14 +25386,14 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
|
|
|
25386
25386
|
system: s ?? c,
|
|
25387
25387
|
prompt: l,
|
|
25388
25388
|
messages: u,
|
|
25389
|
-
maxOutputTokens:
|
|
25390
|
-
temperature:
|
|
25391
|
-
topP:
|
|
25392
|
-
topK:
|
|
25393
|
-
presencePenalty:
|
|
25394
|
-
frequencyPenalty:
|
|
25395
|
-
seed:
|
|
25396
|
-
maxRetries:
|
|
25389
|
+
maxOutputTokens: O.maxOutputTokens,
|
|
25390
|
+
temperature: O.temperature,
|
|
25391
|
+
topP: O.topP,
|
|
25392
|
+
topK: O.topK,
|
|
25393
|
+
presencePenalty: O.presencePenalty,
|
|
25394
|
+
frequencyPenalty: O.frequencyPenalty,
|
|
25395
|
+
seed: O.seed,
|
|
25396
|
+
maxRetries: E,
|
|
25397
25397
|
headers: t,
|
|
25398
25398
|
providerOptions: m,
|
|
25399
25399
|
output: o.type,
|
|
@@ -25401,7 +25401,7 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
|
|
|
25401
25401
|
schemaName: f,
|
|
25402
25402
|
schemaDescription: p
|
|
25403
25403
|
},
|
|
25404
|
-
callbacks: [g,
|
|
25404
|
+
callbacks: [g, k.onStart]
|
|
25405
25405
|
});
|
|
25406
25406
|
let n = await zw({
|
|
25407
25407
|
instructions: s,
|
|
@@ -25438,7 +25438,7 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
|
|
|
25438
25438
|
headers: t,
|
|
25439
25439
|
promptMessages: i.prompt
|
|
25440
25440
|
},
|
|
25441
|
-
callbacks: [_,
|
|
25441
|
+
callbacks: [_, k.onObjectStepStart]
|
|
25442
25442
|
});
|
|
25443
25443
|
let y = { transform: (e, t) => {
|
|
25444
25444
|
switch (e.type) {
|
|
@@ -25452,8 +25452,8 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
|
|
|
25452
25452
|
t.enqueue(e);
|
|
25453
25453
|
break;
|
|
25454
25454
|
}
|
|
25455
|
-
} }, A = w(), { stream: re, response: ie, request: ae } = await
|
|
25456
|
-
|
|
25455
|
+
} }, A = w(), { stream: re, response: ie, request: ae } = await D(() => T.doStream(i));
|
|
25456
|
+
ee._request.resolve(ae ?? {});
|
|
25457
25457
|
let oe, se = Hw(), ce, le, ue, de, fe, pe = "", me = "", he = {
|
|
25458
25458
|
id: S(),
|
|
25459
25459
|
timestamp: C(),
|
|
@@ -25506,18 +25506,18 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
|
|
|
25506
25506
|
warnings: oe ?? [],
|
|
25507
25507
|
provider: T.provider,
|
|
25508
25508
|
model: T.modelId
|
|
25509
|
-
}),
|
|
25509
|
+
}), ee._usage.resolve(se), ee._providerMetadata.resolve(le), ee._warnings.resolve(oe), ee._response.resolve({
|
|
25510
25510
|
...he,
|
|
25511
25511
|
headers: ie?.headers
|
|
25512
|
-
}),
|
|
25512
|
+
}), ee._finishReason.resolve(ce ?? "other");
|
|
25513
25513
|
try {
|
|
25514
25514
|
ue = await hT(pe, o, h, {
|
|
25515
25515
|
response: he,
|
|
25516
25516
|
usage: se,
|
|
25517
25517
|
finishReason: ce
|
|
25518
|
-
}),
|
|
25518
|
+
}), ee._object.resolve(ue);
|
|
25519
25519
|
} catch (e) {
|
|
25520
|
-
de = e,
|
|
25520
|
+
de = e, ee._object.reject(e);
|
|
25521
25521
|
}
|
|
25522
25522
|
break;
|
|
25523
25523
|
default:
|
|
@@ -25551,7 +25551,7 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
|
|
|
25551
25551
|
},
|
|
25552
25552
|
providerMetadata: le
|
|
25553
25553
|
},
|
|
25554
|
-
callbacks: [v,
|
|
25554
|
+
callbacks: [v, k.onObjectStepEnd]
|
|
25555
25555
|
}), await Gw({
|
|
25556
25556
|
event: {
|
|
25557
25557
|
callId: ne,
|
|
@@ -25568,7 +25568,7 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
|
|
|
25568
25568
|
},
|
|
25569
25569
|
providerMetadata: le
|
|
25570
25570
|
},
|
|
25571
|
-
callbacks: [b,
|
|
25571
|
+
callbacks: [b, k.onEnd]
|
|
25572
25572
|
});
|
|
25573
25573
|
} catch (t) {
|
|
25574
25574
|
e.enqueue({
|
|
@@ -25578,19 +25578,19 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
|
|
|
25578
25578
|
}
|
|
25579
25579
|
}
|
|
25580
25580
|
}));
|
|
25581
|
-
|
|
25581
|
+
te.addStream(be);
|
|
25582
25582
|
})().catch(async (e) => {
|
|
25583
|
-
await
|
|
25583
|
+
await k.onError?.call(k, {
|
|
25584
25584
|
callId: ne,
|
|
25585
25585
|
error: e
|
|
25586
|
-
}),
|
|
25586
|
+
}), te.addStream(new ReadableStream({ start(t) {
|
|
25587
25587
|
t.enqueue({
|
|
25588
25588
|
type: "error",
|
|
25589
25589
|
error: e
|
|
25590
25590
|
}), t.close();
|
|
25591
25591
|
} }));
|
|
25592
25592
|
}).finally(() => {
|
|
25593
|
-
|
|
25593
|
+
te.close();
|
|
25594
25594
|
}), this.outputStrategy = o;
|
|
25595
25595
|
}
|
|
25596
25596
|
get object() {
|
|
@@ -25818,12 +25818,12 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
25818
25818
|
enumerable: !0
|
|
25819
25819
|
});
|
|
25820
25820
|
})(e, {
|
|
25821
|
-
GIFEncoder: () =>
|
|
25821
|
+
GIFEncoder: () => ee,
|
|
25822
25822
|
applyPalette: () => S,
|
|
25823
25823
|
default: () => le,
|
|
25824
|
-
nearestColor: () =>
|
|
25825
|
-
nearestColorIndex: () =>
|
|
25826
|
-
nearestColorIndexWithDistance: () =>
|
|
25824
|
+
nearestColor: () => k,
|
|
25825
|
+
nearestColorIndex: () => D,
|
|
25826
|
+
nearestColorIndexWithDistance: () => O,
|
|
25827
25827
|
prequantize: () => x,
|
|
25828
25828
|
quantize: () => _,
|
|
25829
25829
|
snapColorsToPalette: () => T
|
|
@@ -25908,12 +25908,12 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
25908
25908
|
function s(e, t, n, s, c = r(512), l = /* @__PURE__ */ new Uint8Array(256), u = new Int32Array(a), d = new Int32Array(a)) {
|
|
25909
25909
|
let f = u.length, p = Math.max(2, s);
|
|
25910
25910
|
l.fill(0), d.fill(0), u.fill(-1);
|
|
25911
|
-
let m = 0, h = 0, g = p + 1, _ = g, v = !1, y = _, b = (1 << y) - 1, x = 1 << g - 1, S = x + 1, C = x + 2, w = 0, T = n[0],
|
|
25912
|
-
for (let e = f; e < 65536; e *= 2) ++
|
|
25913
|
-
|
|
25914
|
-
let
|
|
25915
|
-
for (let e = 1; e <
|
|
25916
|
-
let t = n[e], r = (t << i) + T, a = t <<
|
|
25911
|
+
let m = 0, h = 0, g = p + 1, _ = g, v = !1, y = _, b = (1 << y) - 1, x = 1 << g - 1, S = x + 1, C = x + 2, w = 0, T = n[0], E = 0;
|
|
25912
|
+
for (let e = f; e < 65536; e *= 2) ++E;
|
|
25913
|
+
E = 8 - E, c.writeByte(p), O(x);
|
|
25914
|
+
let D = n.length;
|
|
25915
|
+
for (let e = 1; e < D; e++) next_block: {
|
|
25916
|
+
let t = n[e], r = (t << i) + T, a = t << E ^ T;
|
|
25917
25917
|
if (u[a] === r) {
|
|
25918
25918
|
T = d[a];
|
|
25919
25919
|
break next_block;
|
|
@@ -25923,10 +25923,10 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
25923
25923
|
T = d[a];
|
|
25924
25924
|
break next_block;
|
|
25925
25925
|
}
|
|
25926
|
-
|
|
25926
|
+
O(T), T = t, C < 1 << i ? (d[a] = C++, u[a] = r) : (u.fill(-1), C = x + 2, v = !0, O(x));
|
|
25927
25927
|
}
|
|
25928
|
-
return
|
|
25929
|
-
function
|
|
25928
|
+
return O(T), O(S), c.writeByte(0), c.bytesView();
|
|
25929
|
+
function O(e) {
|
|
25930
25930
|
for (m &= o[h], h > 0 ? m |= e << h : m = e, h += y; h >= 8;) l[w++] = m & 255, w >= 254 && (c.writeByte(w), c.writeBytesView(l, 0, w), w = 0), m >>= 8, h -= 8;
|
|
25931
25931
|
if ((C > b || v) && (v ? (y = _, b = (1 << y) - 1, v = !1) : (++y, b = y === i ? 1 << y : (1 << y) - 1)), e == S) {
|
|
25932
25932
|
for (; h > 0;) l[w++] = m & 255, w >= 254 && (c.writeByte(w), c.writeBytesView(l, 0, w), w = 0), m >>= 8, h -= 8;
|
|
@@ -26010,22 +26010,22 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
26010
26010
|
var C, w, T;
|
|
26011
26011
|
for (x = 0; x < b; ++x) {
|
|
26012
26012
|
m(d, x, !1);
|
|
26013
|
-
var
|
|
26014
|
-
for (w = ++y[0]; w > 1 && (T = w >> 1, !(d[C = y[T]].err <=
|
|
26013
|
+
var E = d[x].err;
|
|
26014
|
+
for (w = ++y[0]; w > 1 && (T = w >> 1, !(d[C = y[T]].err <= E)); w = T) y[w] = C;
|
|
26015
26015
|
y[w] = x;
|
|
26016
26016
|
}
|
|
26017
|
-
var
|
|
26018
|
-
for (x = 0; x <
|
|
26019
|
-
for (var
|
|
26020
|
-
var
|
|
26021
|
-
if (
|
|
26022
|
-
|
|
26023
|
-
var
|
|
26024
|
-
for (w = 1; (T = w + w) <= y[0] && (T < y[0] && d[y[T]].err > d[y[T + 1]].err && T++, !(
|
|
26025
|
-
y[w] =
|
|
26017
|
+
var D = b - t;
|
|
26018
|
+
for (x = 0; x < D;) {
|
|
26019
|
+
for (var O;;) {
|
|
26020
|
+
var k = y[1];
|
|
26021
|
+
if (O = d[k], O.tm >= O.mtm && d[O.nn].mtm <= O.tm) break;
|
|
26022
|
+
O.mtm == _ ? k = y[1] = y[y[0]--] : (m(d, k, !1), O.tm = x);
|
|
26023
|
+
var E = d[k].err;
|
|
26024
|
+
for (w = 1; (T = w + w) <= y[0] && (T < y[0] && d[y[T]].err > d[y[T + 1]].err && T++, !(E <= d[C = y[T]].err)); w = T) y[w] = C;
|
|
26025
|
+
y[w] = k;
|
|
26026
26026
|
}
|
|
26027
|
-
var
|
|
26028
|
-
u && (
|
|
26027
|
+
var ee = d[O.nn], te = O.cnt, A = ee.cnt, S = 1 / (te + A);
|
|
26028
|
+
u && (O.ac = S * (te * O.ac + A * ee.ac)), O.rc = S * (te * O.rc + A * ee.rc), O.gc = S * (te * O.gc + A * ee.gc), O.bc = S * (te * O.bc + A * ee.bc), O.cnt += ee.cnt, O.mtm = ++x, d[ee.bk].fw = ee.fw, d[ee.fw].bk = ee.bk, ee.mtm = _;
|
|
26029
26029
|
}
|
|
26030
26030
|
let ne = [];
|
|
26031
26031
|
var re = 0;
|
|
@@ -26091,26 +26091,26 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
26091
26091
|
function C(e, t, n, r, i) {
|
|
26092
26092
|
let a = 0, o = 1e100;
|
|
26093
26093
|
for (let s = 0; s < i.length; s++) {
|
|
26094
|
-
let c = i[s], l = c[3], u =
|
|
26094
|
+
let c = i[s], l = c[3], u = E(l - r);
|
|
26095
26095
|
if (u > o) continue;
|
|
26096
26096
|
let d = c[0];
|
|
26097
|
-
if (u +=
|
|
26097
|
+
if (u += E(d - e), u > o) continue;
|
|
26098
26098
|
let f = c[1];
|
|
26099
|
-
if (u +=
|
|
26099
|
+
if (u += E(f - t), u > o) continue;
|
|
26100
26100
|
let p = c[2];
|
|
26101
|
-
u +=
|
|
26101
|
+
u += E(p - n), !(u > o) && (o = u, a = s);
|
|
26102
26102
|
}
|
|
26103
26103
|
return a;
|
|
26104
26104
|
}
|
|
26105
26105
|
function w(e, t, n, r) {
|
|
26106
26106
|
let i = 0, a = 1e100;
|
|
26107
26107
|
for (let o = 0; o < r.length; o++) {
|
|
26108
|
-
let s = r[o], c = s[0], l =
|
|
26108
|
+
let s = r[o], c = s[0], l = E(c - e);
|
|
26109
26109
|
if (l > a) continue;
|
|
26110
26110
|
let u = s[1];
|
|
26111
|
-
if (l +=
|
|
26111
|
+
if (l += E(u - t), l > a) continue;
|
|
26112
26112
|
let d = s[2];
|
|
26113
|
-
l +=
|
|
26113
|
+
l += E(d - n), !(l > a) && (a = l, i = o);
|
|
26114
26114
|
}
|
|
26115
26115
|
return i;
|
|
26116
26116
|
}
|
|
@@ -26125,14 +26125,14 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
26125
26125
|
o[2],
|
|
26126
26126
|
255
|
|
26127
26127
|
] : o.length > a ? o.slice(0, 3) : o.slice();
|
|
26128
|
-
let s =
|
|
26128
|
+
let s = O(r, o.slice(0, 3), y), c = s[0], l = s[1];
|
|
26129
26129
|
l > 0 && l <= i && (e[c] = o);
|
|
26130
26130
|
}
|
|
26131
26131
|
}
|
|
26132
|
-
function
|
|
26132
|
+
function E(e) {
|
|
26133
26133
|
return e * e;
|
|
26134
26134
|
}
|
|
26135
|
-
function
|
|
26135
|
+
function D(e, t, n = y) {
|
|
26136
26136
|
let r = Infinity, i = -1;
|
|
26137
26137
|
for (let a = 0; a < e.length; a++) {
|
|
26138
26138
|
let o = e[a], s = n(t, o);
|
|
@@ -26140,7 +26140,7 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
26140
26140
|
}
|
|
26141
26141
|
return i;
|
|
26142
26142
|
}
|
|
26143
|
-
function
|
|
26143
|
+
function O(e, t, n = y) {
|
|
26144
26144
|
let r = Infinity, i = -1;
|
|
26145
26145
|
for (let a = 0; a < e.length; a++) {
|
|
26146
26146
|
let o = e[a], s = n(t, o);
|
|
@@ -26148,10 +26148,10 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
26148
26148
|
}
|
|
26149
26149
|
return [i, r];
|
|
26150
26150
|
}
|
|
26151
|
-
function
|
|
26152
|
-
return e[
|
|
26151
|
+
function k(e, t, n = y) {
|
|
26152
|
+
return e[D(e, t, n)];
|
|
26153
26153
|
}
|
|
26154
|
-
function
|
|
26154
|
+
function ee(e = {}) {
|
|
26155
26155
|
let { initialCapacity: t = 4096, auto: i = !0 } = e, a = r(t), o = 5003, s = /* @__PURE__ */ new Uint8Array(256), c = new Int32Array(o), l = new Int32Array(o), u = !1;
|
|
26156
26156
|
return {
|
|
26157
26157
|
reset() {
|
|
@@ -26180,7 +26180,7 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
26180
26180
|
A(a, t, n, m, g), re(a, m), h >= 0 && ne(a, h);
|
|
26181
26181
|
}
|
|
26182
26182
|
let y = Math.round(p / 10);
|
|
26183
|
-
|
|
26183
|
+
te(a, _, y, o, f);
|
|
26184
26184
|
let b = !!m && !v;
|
|
26185
26185
|
ie(a, t, n, b ? m : null), b && re(a, m), ae(a, e, t, n, g, s, c, l);
|
|
26186
26186
|
}
|
|
@@ -26189,7 +26189,7 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
26189
26189
|
se(a, "GIF89a");
|
|
26190
26190
|
}
|
|
26191
26191
|
}
|
|
26192
|
-
function
|
|
26192
|
+
function te(e, t, n, r, i) {
|
|
26193
26193
|
e.writeByte(33), e.writeByte(249), e.writeByte(4), i < 0 && (i = 0, r = !1);
|
|
26194
26194
|
var a, o;
|
|
26195
26195
|
r ? (a = 1, o = 2) : (a = 0, o = 0), t >= 0 && (o = t & 7), o <<= 2, e.writeByte(o | 0 | a), oe(e, n), e.writeByte(i || 0), e.writeByte(0);
|
|
@@ -26234,7 +26234,7 @@ var CD = (/* @__PURE__ */ n(((e) => {
|
|
|
26234
26234
|
function ce(e) {
|
|
26235
26235
|
return Math.max(Math.ceil(Math.log2(e)), 1);
|
|
26236
26236
|
}
|
|
26237
|
-
var le =
|
|
26237
|
+
var le = ee;
|
|
26238
26238
|
})))(), wD = "(function(){var e=((e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports))((e=>{var t=Object.defineProperty;(e=>t(e,`__esModule`,{value:!0}))(e),((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(e,{GIFEncoder:()=>A,applyPalette:()=>S,default:()=>B,nearestColor:()=>k,nearestColorIndex:()=>D,nearestColorIndexWithDistance:()=>O,prequantize:()=>x,quantize:()=>_,snapColorsToPalette:()=>T});var n={signature:`GIF`,version:`89a`,trailer:59,extensionIntroducer:33,applicationExtensionLabel:255,graphicControlExtensionLabel:249,imageSeparator:44,signatureSize:3,versionSize:3,globalColorTableFlagMask:128,colorResolutionMask:112,sortFlagMask:8,globalColorTableSizeMask:7,applicationIdentifierSize:8,applicationAuthCodeSize:3,disposalMethodMask:28,userInputFlagMask:2,transparentColorFlagMask:1,localColorTableFlagMask:128,interlaceFlagMask:64,idSortFlagMask:32,localColorTableSizeMask:7};function r(e=256){let t=0,n=new Uint8Array(e);return{get buffer(){return n.buffer},reset(){t=0},bytesView(){return n.subarray(0,t)},bytes(){return n.slice(0,t)},writeByte(e){r(t+1),n[t]=e,t++},writeBytes(e,i=0,a=e.length){r(t+a);for(let r=0;r<a;r++)n[t++]=e[r+i]},writeBytesView(e,i=0,a=e.byteLength){r(t+a),n.set(e.subarray(i,i+a),t),t+=a}};function r(e){var r=n.length;if(r>=e)return;e=Math.max(e,r*(r<1024*1024?2:1.125)>>>0),r!=0&&(e=Math.max(e,256));let i=n;n=new Uint8Array(e),t>0&&n.set(i.subarray(0,t),0)}}var i=12,a=5003,o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function s(e,t,n,s,c=r(512),l=new Uint8Array(256),u=new Int32Array(a),d=new Int32Array(a)){let f=u.length,p=Math.max(2,s);l.fill(0),d.fill(0),u.fill(-1);let m=0,h=0,g=p+1,_=g,v=!1,y=_,b=(1<<y)-1,x=1<<g-1,S=x+1,C=x+2,w=0,T=n[0],E=0;for(let e=f;e<65536;e*=2)++E;E=8-E,c.writeByte(p),O(x);let D=n.length;for(let e=1;e<D;e++)next_block:{let t=n[e],r=(t<<i)+T,a=t<<E^T;if(u[a]===r){T=d[a];break next_block}let o=a===0?1:f-a;for(;u[a]>=0;)if(a-=o,a<0&&(a+=f),u[a]===r){T=d[a];break next_block}O(T),T=t,C<1<<i?(d[a]=C++,u[a]=r):(u.fill(-1),C=x+2,v=!0,O(x))}return O(T),O(S),c.writeByte(0),c.bytesView();function O(e){for(m&=o[h],h>0?m|=e<<h:m=e,h+=y;h>=8;)l[w++]=m&255,w>=254&&(c.writeByte(w),c.writeBytesView(l,0,w),w=0),m>>=8,h-=8;if((C>b||v)&&(v?(y=_,b=(1<<y)-1,v=!1):(++y,b=y===i?1<<y:(1<<y)-1)),e==S){for(;h>0;)l[w++]=m&255,w>=254&&(c.writeByte(w),c.writeBytesView(l,0,w),w=0),m>>=8,h-=8;w>0&&(c.writeByte(w),c.writeBytesView(l,0,w),w=0)}}}var c=s;function l(e,t,n){return e<<8&63488|t<<2&992|n>>3}function u(e,t,n,r){return e>>4|t&240|(n&240)<<4|(r&240)<<8}function d(e,t,n){return e>>4<<8|t&240|n>>4}function f(e,t,n){return e<t?t:e>n?n:e}function p(e){return e*e}function m(e,t,n){var r=0,i=1e100;let a=e[t],o=a.cnt,s=a.ac,c=a.rc,l=a.gc,u=a.bc;for(var d=a.fw;d!=0;d=e[d].fw){let t=e[d],a=t.cnt,m=o*a/(o+a);if(!(m>=i)){var f=0;n&&(f+=m*p(t.ac-s),f>=i)||(f+=m*p(t.rc-c),!(f>=i)&&(f+=m*p(t.gc-l),!(f>=i)&&(f+=m*p(t.bc-u),!(f>=i)&&(i=f,r=d))))}}a.err=i,a.nn=r}function h(){return{ac:0,rc:0,gc:0,bc:0,cnt:0,nn:0,fw:0,bk:0,tm:0,mtm:0,err:0}}function g(e,t){let n=Array(t===`rgb444`?4096:65536),r=e.length;if(t===`rgba4444`)for(let t=0;t<r;++t){let r=e[t],i=r>>24&255,a=r>>16&255,o=r>>8&255,s=r&255,c=u(s,o,a,i),l=c in n?n[c]:n[c]=h();l.rc+=s,l.gc+=o,l.bc+=a,l.ac+=i,l.cnt++}else if(t===`rgb444`)for(let t=0;t<r;++t){let r=e[t],i=r>>16&255,a=r>>8&255,o=r&255,s=d(o,a,i),c=s in n?n[s]:n[s]=h();c.rc+=o,c.gc+=a,c.bc+=i,c.cnt++}else for(let t=0;t<r;++t){let r=e[t],i=r>>16&255,a=r>>8&255,o=r&255,s=l(o,a,i),c=s in n?n[s]:n[s]=h();c.rc+=o,c.gc+=a,c.bc+=i,c.cnt++}return n}function _(e,t,n={}){let{format:r=`rgb565`,clearAlpha:i=!0,clearAlphaColor:a=0,clearAlphaThreshold:o=0,oneBitAlpha:s=!1}=n;if(!e||!e.buffer||!(e instanceof Uint8Array)&&!(e instanceof Uint8ClampedArray))throw Error(`quantize() expected RGBA Uint8Array data`);let c=new Uint32Array(e.buffer),l=n.useSqrt!==!1,u=r===`rgba4444`,d=g(c,r),h=d.length,_=h-1,y=new Uint32Array(h+1);for(var b=0,x=0;x<h;++x){let e=d[x];if(e!=null){var S=1/e.cnt;u&&(e.ac*=S),e.rc*=S,e.gc*=S,e.bc*=S,d[b++]=e}}p(t)/b<.022&&(l=!1);for(var x=0;x<b-1;++x)d[x].fw=x+1,d[x+1].bk=x,l&&(d[x].cnt=Math.sqrt(d[x].cnt));l&&(d[x].cnt=Math.sqrt(d[x].cnt));var C,w,T;for(x=0;x<b;++x){m(d,x,!1);var E=d[x].err;for(w=++y[0];w>1&&(T=w>>1,!(d[C=y[T]].err<=E));w=T)y[w]=C;y[w]=x}var D=b-t;for(x=0;x<D;){for(var O;;){var k=y[1];if(O=d[k],O.tm>=O.mtm&&d[O.nn].mtm<=O.tm)break;O.mtm==_?k=y[1]=y[y[0]--]:(m(d,k,!1),O.tm=x);var E=d[k].err;for(w=1;(T=w+w)<=y[0]&&(T<y[0]&&d[y[T]].err>d[y[T+1]].err&&T++,!(E<=d[C=y[T]].err));w=T)y[w]=C;y[w]=k}var A=d[O.nn],j=O.cnt,M=A.cnt,S=1/(j+M);u&&(O.ac=S*(j*O.ac+M*A.ac)),O.rc=S*(j*O.rc+M*A.rc),O.gc=S*(j*O.gc+M*A.gc),O.bc=S*(j*O.bc+M*A.bc),O.cnt+=A.cnt,O.mtm=++x,d[A.bk].fw=A.fw,d[A.fw].bk=A.bk,A.mtm=_}let N=[];var P=0;for(x=0;;++P){let e=f(Math.round(d[x].rc),0,255),t=f(Math.round(d[x].gc),0,255),n=f(Math.round(d[x].bc),0,255),r=255;u&&(r=f(Math.round(d[x].ac),0,255),s&&(r=r<=(typeof s==`number`?s:127)?0:255),i&&r<=o&&(e=t=n=a,r=0));let c=u?[e,t,n,r]:[e,t,n];if(v(N,c)||N.push(c),(x=d[x].fw)==0)break}return N}function v(e,t){for(let n=0;n<e.length;n++){let r=e[n],i=r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2],a=r.length>=4&&t.length>=4?r[3]===t[3]:!0;if(i&&a)return!0}return!1}function y(e,t){var n=0,r;for(r=0;r<e.length;r++){let i=e[r]-t[r];n+=i*i}return n}function b(e,t){return t>1?Math.round(e/t)*t:e}function x(e,{roundRGB:t=5,roundAlpha:n=10,oneBitAlpha:r=null}={}){let i=new Uint32Array(e.buffer);for(let e=0;e<i.length;e++){let a=i[e],o=a>>24&255,s=a>>16&255,c=a>>8&255,l=a&255;o=b(o,n),r&&(o=o<=(typeof r==`number`?r:127)?0:255),l=b(l,t),c=b(c,t),s=b(s,t),i[e]=o<<24|s<<16|c<<8|l<<0}}function S(e,t,n=`rgb565`){if(!e||!e.buffer||!(e instanceof Uint8Array)&&!(e instanceof Uint8ClampedArray))throw Error(`quantize() expected RGBA Uint8Array data`);if(t.length>256)throw Error(`applyPalette() only works with 256 colors or less`);let r=new Uint32Array(e.buffer),i=r.length,a=n===`rgb444`?4096:65536,o=new Uint8Array(i),s=Array(a);if(n===`rgba4444`)for(let e=0;e<i;e++){let n=r[e],i=n>>24&255,a=n>>16&255,c=n>>8&255,l=n&255,d=u(l,c,a,i);o[e]=d in s?s[d]:s[d]=C(l,c,a,i,t)}else{let e=n===`rgb444`?d:l;for(let n=0;n<i;n++){let i=r[n],a=i>>16&255,c=i>>8&255,l=i&255,u=e(l,c,a);o[n]=u in s?s[u]:s[u]=w(l,c,a,t)}}return o}function C(e,t,n,r,i){let a=0,o=1e100;for(let s=0;s<i.length;s++){let c=i[s],l=c[3],u=E(l-r);if(u>o)continue;let d=c[0];if(u+=E(d-e),u>o)continue;let f=c[1];if(u+=E(f-t),u>o)continue;let p=c[2];u+=E(p-n),!(u>o)&&(o=u,a=s)}return a}function w(e,t,n,r){let i=0,a=1e100;for(let o=0;o<r.length;o++){let s=r[o],c=s[0],l=E(c-e);if(l>a)continue;let u=s[1];if(l+=E(u-t),l>a)continue;let d=s[2];l+=E(d-n),!(l>a)&&(a=l,i=o)}return i}function T(e,t,n=5){if(!e.length||!t.length)return;let r=e.map(e=>e.slice(0,3)),i=n*n,a=e[0].length;for(let n=0;n<t.length;n++){let o=t[n];o=o.length<a?[o[0],o[1],o[2],255]:o.length>a?o.slice(0,3):o.slice();let s=O(r,o.slice(0,3),y),c=s[0],l=s[1];l>0&&l<=i&&(e[c]=o)}}function E(e){return e*e}function D(e,t,n=y){let r=1/0,i=-1;for(let a=0;a<e.length;a++){let o=e[a],s=n(t,o);s<r&&(r=s,i=a)}return i}function O(e,t,n=y){let r=1/0,i=-1;for(let a=0;a<e.length;a++){let o=e[a],s=n(t,o);s<r&&(r=s,i=a)}return[i,r]}function k(e,t,n=y){return e[D(e,t,n)]}function A(e={}){let{initialCapacity:t=4096,auto:i=!0}=e,a=r(t),o=5003,s=new Uint8Array(256),c=new Int32Array(o),l=new Int32Array(o),u=!1;return{reset(){a.reset(),u=!1},finish(){a.writeByte(n.trailer)},bytes(){return a.bytes()},bytesView(){return a.bytesView()},get buffer(){return a.buffer},get stream(){return a},writeHeader:d,writeFrame(e,t,n,r={}){let{transparent:o=!1,transparentIndex:f=0,delay:p=0,palette:m=null,repeat:h=0,colorDepth:g=8,dispose:_=-1}=r,v=!1;if(i?u||=(v=!0,d(),!0):v=!!r.first,t=Math.max(0,Math.floor(t)),n=Math.max(0,Math.floor(n)),v){if(!m)throw Error(`First frame must include a { palette } option`);M(a,t,n,m,g),P(a,m),h>=0&&N(a,h)}let y=Math.round(p/10);j(a,_,y,o,f);let b=!!m&&!v;F(a,t,n,b?m:null),b&&P(a,m),I(a,e,t,n,g,s,c,l)}};function d(){R(a,`GIF89a`)}}function j(e,t,n,r,i){e.writeByte(33),e.writeByte(249),e.writeByte(4),i<0&&(i=0,r=!1);var a,o;r?(a=1,o=2):(a=0,o=0),t>=0&&(o=t&7),o<<=2,e.writeByte(o|0|a),L(e,n),e.writeByte(i||0),e.writeByte(0)}function M(e,t,n,r,i=8){let a=z(r.length)-1,o=i-1<<4|128|a;L(e,t),L(e,n),e.writeBytes([o,0,0])}function N(e,t){e.writeByte(33),e.writeByte(255),e.writeByte(11),R(e,`NETSCAPE2.0`),e.writeByte(3),e.writeByte(1),L(e,t),e.writeByte(0)}function P(e,t){let n=1<<z(t.length);for(let r=0;r<n;r++){let n=[0,0,0];r<t.length&&(n=t[r]),e.writeByte(n[0]),e.writeByte(n[1]),e.writeByte(n[2])}}function F(e,t,n,r){if(e.writeByte(44),L(e,0),L(e,0),L(e,t),L(e,n),r){let t=z(r.length)-1;e.writeByte(128|t)}else e.writeByte(0)}function I(e,t,n,r,i=8,a,o,s){c(n,r,t,i,e,a,o,s)}function L(e,t){e.writeByte(t&255),e.writeByte(t>>8&255)}function R(e,t){for(var n=0;n<t.length;n++)e.writeByte(t.charCodeAt(n))}function z(e){return Math.max(Math.ceil(Math.log2(e)),1)}var B=A}))();let t=null,n=!0;self.onmessage=e=>{r(e.data).catch(t=>{e.data?.id!=null&&self.postMessage({id:e.data.id,type:`error`,message:t instanceof Error?t.message:String(t)})})};async function r(r){let a=(e,t=[])=>self.postMessage({id:r.id,...e},t);switch(r.type){case`encode-png`:{let e=r.bitmap,t=new OffscreenCanvas(e.width,e.height),n=t.getContext(`2d`);if(!n)throw Error(`OffscreenCanvas 2d unavailable`);n.drawImage(e,0,0),e.close();let o=await t.convertToBlob({type:`image/png`});o.size>18e5&&(o=await t.convertToBlob({type:`image/jpeg`,quality:.85})),a({type:`png`,dataUrl:await i(o)});return}case`gif-init`:t=(0,e.GIFEncoder)(),n=!0,a({type:`ok`});return;case`gif-frame`:{if(!t)return;let i=new Uint8ClampedArray(r.buffer),a=(0,e.quantize)(i,256,{format:`rgb565`}),o=(0,e.applyPalette)(i,a,`rgb565`);t.writeFrame(o,r.width,r.height,{palette:a,delay:r.delay,first:n,repeat:0}),n=!1;return}case`gif-finish`:{if(!t)throw Error(`No active GIF session`);t.finish();let e=t.bytes();t=null,a({type:`gif`,buffer:e.buffer},[e.buffer]);return}case`gif-abort`:t=null;return}}function i(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}})();", TD = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", wD], { type: "text/javascript;charset=utf-8" });
|
|
26239
26239
|
function ED(e) {
|
|
26240
26240
|
let t;
|
|
@@ -27548,7 +27548,7 @@ function vj(e) {
|
|
|
27548
27548
|
var e = ej();
|
|
27549
27549
|
return P(e, j(yj, {})), e;
|
|
27550
27550
|
}
|
|
27551
|
-
}), null),
|
|
27551
|
+
}), null), D(() => st(r, `inline-flex items-center gap-1.5 ${t.loading ? "invisible" : ""}`)), e;
|
|
27552
27552
|
})();
|
|
27553
27553
|
}
|
|
27554
27554
|
function yj(e) {
|
|
@@ -27561,7 +27561,7 @@ function yj(e) {
|
|
|
27561
27561
|
},
|
|
27562
27562
|
children: (e) => (() => {
|
|
27563
27563
|
var i = rj();
|
|
27564
|
-
return dt(i, "transform", `rotate(${e * 30}deg)`), dt(i, "animation-delay", `${(e - 12) * .1}s`),
|
|
27564
|
+
return dt(i, "transform", `rotate(${e * 30}deg)`), dt(i, "animation-delay", `${(e - 12) * .1}s`), D((e) => {
|
|
27565
27565
|
var a = `${n()}px`, o = `${r()}px`, s = `-${n() / 2}px`, c = `center ${t() / 2}px`;
|
|
27566
27566
|
return a !== e.e && dt(i, "width", e.e = a), o !== e.t && dt(i, "height", e.t = o), s !== e.a && dt(i, "margin-left", e.a = s), c !== e.o && dt(i, "transform-origin", e.o = c), e;
|
|
27567
27567
|
}, {
|
|
@@ -27571,7 +27571,7 @@ function yj(e) {
|
|
|
27571
27571
|
o: void 0
|
|
27572
27572
|
}), i;
|
|
27573
27573
|
})()
|
|
27574
|
-
})),
|
|
27574
|
+
})), D((n) => {
|
|
27575
27575
|
var r = `${t()}px`, i = `${t()}px`;
|
|
27576
27576
|
return r !== n.e && dt(e, "width", n.e = r), i !== n.t && dt(e, "height", n.t = i), n;
|
|
27577
27577
|
}, {
|
|
@@ -27624,7 +27624,7 @@ function wj(e) {
|
|
|
27624
27624
|
function Tj(e) {
|
|
27625
27625
|
return (() => {
|
|
27626
27626
|
var t = lj(), n = t.firstChild;
|
|
27627
|
-
return P(n, () => e.children),
|
|
27627
|
+
return P(n, () => e.children), D((n) => {
|
|
27628
27628
|
var r = e.href, i = e.title || void 0, a = `text-accent inline-flex min-w-0 items-center gap-1 text-[11px] underline-offset-2 hover:underline ${e.class ?? ""}`;
|
|
27629
27629
|
return r !== n.e && it(t, "href", n.e = r), i !== n.t && it(t, "data-tip", n.t = i), a !== n.a && st(t, n.a = a), n;
|
|
27630
27630
|
}, {
|
|
@@ -27657,7 +27657,7 @@ function Dj(e) {
|
|
|
27657
27657
|
function Oj(e) {
|
|
27658
27658
|
return (() => {
|
|
27659
27659
|
var t = pj();
|
|
27660
|
-
return P(t, () => e.children),
|
|
27660
|
+
return P(t, () => e.children), D((n) => {
|
|
27661
27661
|
var r = `bg-surface-3 text-text-dim inline-flex h-[18px] items-center gap-1 rounded-full px-2 text-[10.5px] font-medium whitespace-nowrap ${e.class ?? ""}`, i = e.color ? { color: e.color } : void 0;
|
|
27662
27662
|
return r !== n.e && st(t, n.e = r), n.t = ut(t, i, n.t), n;
|
|
27663
27663
|
}, {
|
|
@@ -27669,7 +27669,7 @@ function Oj(e) {
|
|
|
27669
27669
|
function kj(e) {
|
|
27670
27670
|
return (() => {
|
|
27671
27671
|
var t = mj();
|
|
27672
|
-
return
|
|
27672
|
+
return D((n) => dt(t, "background", e.color)), t;
|
|
27673
27673
|
})();
|
|
27674
27674
|
}
|
|
27675
27675
|
function Aj(e) {
|
|
@@ -27709,13 +27709,13 @@ function dM(e) {
|
|
|
27709
27709
|
})), n = _r(() => ({
|
|
27710
27710
|
queryKey: ["settings"],
|
|
27711
27711
|
queryFn: Cr
|
|
27712
|
-
})), r =
|
|
27713
|
-
|
|
27712
|
+
})), r = k(() => n.data ?? {}), i = k(() => t.data?.[0] ?? null), a = k(() => !!(r().linearApiKey || r().linearAccessToken)), o = k(() => Ox(r())), [s, c] = T(""), [l, u] = T(""), [d, f] = T([]), [p, m] = T(""), [h, g] = T(""), [_, v] = T(""), [y, b] = T(""), [x, S] = T(""), [C, w] = T(0), [E, ee] = T(r().defaultTeamId ?? ""), [te, A] = T(r().defaultRepo ?? ""), [ne, re] = T("none"), [ie, oe] = T(""), [se, ce] = T(""), [le, ue] = T(!1), [de, fe] = T(!0), [pe, me] = T(ek().length);
|
|
27713
|
+
O(() => {
|
|
27714
27714
|
let e = setInterval(() => me(ek().length), 3e3);
|
|
27715
27715
|
ae(() => clearInterval(e));
|
|
27716
27716
|
});
|
|
27717
27717
|
let [he, ge] = T("");
|
|
27718
|
-
|
|
27718
|
+
O(() => {
|
|
27719
27719
|
let e = s().trim(), t = setTimeout(() => ge(e.length >= 8 ? e : ""), 600);
|
|
27720
27720
|
ae(() => clearTimeout(t));
|
|
27721
27721
|
});
|
|
@@ -27736,15 +27736,15 @@ function dM(e) {
|
|
|
27736
27736
|
}].slice(-6)), n.readAsDataURL(e);
|
|
27737
27737
|
}
|
|
27738
27738
|
}, [Ce, we] = T("fast"), [Te, Ee] = T(!0), De = !1;
|
|
27739
|
-
|
|
27739
|
+
O(() => {
|
|
27740
27740
|
let e = n.data;
|
|
27741
|
-
De || !e || (De = !0,
|
|
27741
|
+
De || !e || (De = !0, ee(e.defaultTeamId ?? ""), A(e.defaultRepo ?? ""), re(e.cursorAgentId ? "cursor" : "none"));
|
|
27742
27742
|
});
|
|
27743
27743
|
let Oe = _r(() => ({
|
|
27744
27744
|
queryKey: ["teams"],
|
|
27745
27745
|
queryFn: cO,
|
|
27746
27746
|
enabled: a()
|
|
27747
|
-
})), ke =
|
|
27747
|
+
})), ke = k(() => (Oe.data ?? []).find((e) => e.id === E())?.name), [Ae, je] = T(!1), [Me, Ne] = T(null), [Pe, Fe] = T(null), Ie = null, Le = () => {
|
|
27748
27748
|
Ie?.(), Ie = null;
|
|
27749
27749
|
};
|
|
27750
27750
|
ae(Le);
|
|
@@ -27796,7 +27796,7 @@ function dM(e) {
|
|
|
27796
27796
|
analysisNotes: y(),
|
|
27797
27797
|
suggestedNextSteps: x(),
|
|
27798
27798
|
grabs: t.data ?? [],
|
|
27799
|
-
repo:
|
|
27799
|
+
repo: te(),
|
|
27800
27800
|
model: se().trim() || r().cursorModel,
|
|
27801
27801
|
agentInstructions: sD(r())
|
|
27802
27802
|
});
|
|
@@ -27840,7 +27840,7 @@ function dM(e) {
|
|
|
27840
27840
|
Je(`Skipped: ${n.join(", ")} — issue created without ${n.length > 1 ? "them" : "it"}.${e ? " Real fix for uploads: run `npx linear-grab-bridge` in the repo (uploads relay through it) or set the GitHub fallback in Settings." : ""}`);
|
|
27841
27841
|
}
|
|
27842
27842
|
let c = await gO({
|
|
27843
|
-
teamId:
|
|
27843
|
+
teamId: E(),
|
|
27844
27844
|
title: s(),
|
|
27845
27845
|
description: e,
|
|
27846
27846
|
priority: C(),
|
|
@@ -27867,7 +27867,7 @@ function dM(e) {
|
|
|
27867
27867
|
env: r().linearApiKey ? { LINEAR_API_KEY: r().linearApiKey } : void 0
|
|
27868
27868
|
}), u = !0;
|
|
27869
27869
|
try {
|
|
27870
|
-
let e = (await mO(
|
|
27870
|
+
let e = (await mO(E())).filter((e) => e.type === "started").sort((e, t) => e.position - t.position)[0];
|
|
27871
27871
|
e && await hO(c.id, e.id);
|
|
27872
27872
|
} catch {}
|
|
27873
27873
|
await _O(c.id, "🖥️ Delegated to **local Claude Code** on this machine (Linear Grab bridge). Live status, conversation, and steering in the panel's Local tab. The agent will post its fix summary + PR here and move this issue to review when done.").catch(() => {});
|
|
@@ -27880,7 +27880,7 @@ function dM(e) {
|
|
|
27880
27880
|
url: c.url,
|
|
27881
27881
|
summary: l(),
|
|
27882
27882
|
impact: _(),
|
|
27883
|
-
repo:
|
|
27883
|
+
repo: te() || r().defaultRepo,
|
|
27884
27884
|
demoUrl: BD().result?.assetUrl,
|
|
27885
27885
|
executor: ne()
|
|
27886
27886
|
});
|
|
@@ -27898,12 +27898,12 @@ function dM(e) {
|
|
|
27898
27898
|
onError: (e) => {
|
|
27899
27899
|
Ke(e.message);
|
|
27900
27900
|
}
|
|
27901
|
-
})), Qe =
|
|
27901
|
+
})), Qe = k(() => !!s().trim() && !!E() && a()), et = k(() => {
|
|
27902
27902
|
let e = o();
|
|
27903
27903
|
return e ? jx[e][Ce()] : null;
|
|
27904
27904
|
}), tt = () => f((e) => [...e, ""]), nt = (e) => f((t) => t.filter((t, n) => n !== e)), N = (e, t) => f((n) => n.map((n, r) => r === e ? t : n));
|
|
27905
27905
|
return (() => {
|
|
27906
|
-
var n = rM(), f = n.firstChild, T = f.firstChild.firstChild.nextSibling,
|
|
27906
|
+
var n = rM(), f = n.firstChild, T = f.firstChild.firstChild.nextSibling, O = f.nextSibling;
|
|
27907
27907
|
return P(T, j(M, {
|
|
27908
27908
|
get when() {
|
|
27909
27909
|
return i();
|
|
@@ -28017,7 +28017,7 @@ function dM(e) {
|
|
|
28017
28017
|
},
|
|
28018
28018
|
children: (e) => (() => {
|
|
28019
28019
|
var t = iM(), n = t.firstChild, r = n.nextSibling;
|
|
28020
|
-
return r.$$click = () => xe((t) => t.filter((t) => t.id !== e.id)),
|
|
28020
|
+
return r.$$click = () => xe((t) => t.filter((t) => t.id !== e.id)), D(() => it(n, "src", e.dataUrl)), t;
|
|
28021
28021
|
})()
|
|
28022
28022
|
}), t), e;
|
|
28023
28023
|
}
|
|
@@ -28026,7 +28026,7 @@ function dM(e) {
|
|
|
28026
28026
|
var e = Lj(), t = e.firstChild.nextSibling;
|
|
28027
28027
|
return P(t, () => ["fast", "best"].map((e) => (() => {
|
|
28028
28028
|
var t = aM();
|
|
28029
|
-
return t.$$click = () => we(e), P(t, e === "fast" ? "Fast" : "Best"),
|
|
28029
|
+
return t.$$click = () => we(e), P(t, e === "fast" ? "Fast" : "Best"), D(() => st(t, `h-6 px-2.5 text-[11px] font-medium transition-colors cursor-pointer ${Ce() === e ? "bg-accent text-white" : "bg-surface-2 text-text-dim hover:text-text"}`)), t;
|
|
28030
28030
|
})())), e;
|
|
28031
28031
|
})(),
|
|
28032
28032
|
(() => {
|
|
@@ -28091,7 +28091,7 @@ function dM(e) {
|
|
|
28091
28091
|
})
|
|
28092
28092
|
];
|
|
28093
28093
|
}
|
|
28094
|
-
}),
|
|
28094
|
+
}), O), P(n, j(Dj, {
|
|
28095
28095
|
title: "Issue",
|
|
28096
28096
|
get children() {
|
|
28097
28097
|
return [
|
|
@@ -28125,7 +28125,7 @@ function dM(e) {
|
|
|
28125
28125
|
get children() {
|
|
28126
28126
|
return e.state.name;
|
|
28127
28127
|
}
|
|
28128
|
-
}), null),
|
|
28128
|
+
}), null), D((t) => {
|
|
28129
28129
|
var n = e.url, i = e.title;
|
|
28130
28130
|
return n !== t.e && it(r, "href", t.e = n), i !== t.t && it(r, "title", t.t = i), t;
|
|
28131
28131
|
}, {
|
|
@@ -28289,9 +28289,9 @@ function dM(e) {
|
|
|
28289
28289
|
get children() {
|
|
28290
28290
|
return j(Sj, {
|
|
28291
28291
|
get value() {
|
|
28292
|
-
return
|
|
28292
|
+
return E();
|
|
28293
28293
|
},
|
|
28294
|
-
onChange: (e) =>
|
|
28294
|
+
onChange: (e) => ee(e.currentTarget.value),
|
|
28295
28295
|
get children() {
|
|
28296
28296
|
return [Wj(), j(We, {
|
|
28297
28297
|
get each() {
|
|
@@ -28299,7 +28299,7 @@ function dM(e) {
|
|
|
28299
28299
|
},
|
|
28300
28300
|
children: (e) => (() => {
|
|
28301
28301
|
var t = cM();
|
|
28302
|
-
return P(t, () => e.name),
|
|
28302
|
+
return P(t, () => e.name), D(() => t.selected = e.id === E()), D(() => t.value = e.id), t;
|
|
28303
28303
|
})()
|
|
28304
28304
|
})];
|
|
28305
28305
|
}
|
|
@@ -28316,7 +28316,7 @@ function dM(e) {
|
|
|
28316
28316
|
get children() {
|
|
28317
28317
|
return j(bj, {
|
|
28318
28318
|
get value() {
|
|
28319
|
-
return
|
|
28319
|
+
return te();
|
|
28320
28320
|
},
|
|
28321
28321
|
onInput: (e) => A(e.currentTarget.value),
|
|
28322
28322
|
placeholder: "owner/repository"
|
|
@@ -28338,7 +28338,7 @@ function dM(e) {
|
|
|
28338
28338
|
return [
|
|
28339
28339
|
(() => {
|
|
28340
28340
|
var e = Gj(), t = e.firstChild;
|
|
28341
|
-
return P(e, () => r().cursorAgentName ?? "Cursor", t),
|
|
28341
|
+
return P(e, () => r().cursorAgentName ?? "Cursor", t), D((t) => {
|
|
28342
28342
|
var n = !r().cursorAgentId, i = ne() === "cursor";
|
|
28343
28343
|
return n !== t.e && (e.disabled = t.e = n), i !== t.t && (e.selected = t.t = i), t;
|
|
28344
28344
|
}, {
|
|
@@ -28348,11 +28348,11 @@ function dM(e) {
|
|
|
28348
28348
|
})(),
|
|
28349
28349
|
(() => {
|
|
28350
28350
|
var e = Kj();
|
|
28351
|
-
return
|
|
28351
|
+
return D(() => e.selected = ne() === "local"), e;
|
|
28352
28352
|
})(),
|
|
28353
28353
|
(() => {
|
|
28354
28354
|
var e = qj();
|
|
28355
|
-
return
|
|
28355
|
+
return D(() => e.selected = ne() === "none"), e;
|
|
28356
28356
|
})()
|
|
28357
28357
|
];
|
|
28358
28358
|
}
|
|
@@ -28401,23 +28401,23 @@ function dM(e) {
|
|
|
28401
28401
|
return [
|
|
28402
28402
|
(() => {
|
|
28403
28403
|
var e = Jj();
|
|
28404
|
-
return
|
|
28404
|
+
return D(() => e.selected = ie() === ""), e;
|
|
28405
28405
|
})(),
|
|
28406
28406
|
(() => {
|
|
28407
28407
|
var e = Yj();
|
|
28408
|
-
return
|
|
28408
|
+
return D(() => e.selected = ie() === "fable"), e;
|
|
28409
28409
|
})(),
|
|
28410
28410
|
(() => {
|
|
28411
28411
|
var e = Xj();
|
|
28412
|
-
return
|
|
28412
|
+
return D(() => e.selected = ie() === "opus"), e;
|
|
28413
28413
|
})(),
|
|
28414
28414
|
(() => {
|
|
28415
28415
|
var e = Zj();
|
|
28416
|
-
return
|
|
28416
|
+
return D(() => e.selected = ie() === "sonnet"), e;
|
|
28417
28417
|
})(),
|
|
28418
28418
|
(() => {
|
|
28419
28419
|
var e = Qj();
|
|
28420
|
-
return
|
|
28420
|
+
return D(() => e.selected = ie() === "haiku"), e;
|
|
28421
28421
|
})()
|
|
28422
28422
|
];
|
|
28423
28423
|
}
|
|
@@ -28425,7 +28425,7 @@ function dM(e) {
|
|
|
28425
28425
|
}
|
|
28426
28426
|
}), (() => {
|
|
28427
28427
|
var e = $j(), t = e.firstChild;
|
|
28428
|
-
return t.addEventListener("change", (e) => ue(e.currentTarget.checked)),
|
|
28428
|
+
return t.addEventListener("change", (e) => ue(e.currentTarget.checked)), D(() => t.checked = le()), e;
|
|
28429
28429
|
})()];
|
|
28430
28430
|
}
|
|
28431
28431
|
}),
|
|
@@ -28435,7 +28435,7 @@ function dM(e) {
|
|
|
28435
28435
|
},
|
|
28436
28436
|
get children() {
|
|
28437
28437
|
var e = eM(), t = e.firstChild, n = t.nextSibling.firstChild.nextSibling, r = n.firstChild.nextSibling;
|
|
28438
|
-
return r.nextSibling, t.addEventListener("change", (e) => fe(e.currentTarget.checked)), P(n, pe, r),
|
|
28438
|
+
return r.nextSibling, t.addEventListener("change", (e) => fe(e.currentTarget.checked)), P(n, pe, r), D(() => t.checked = de()), e;
|
|
28439
28439
|
}
|
|
28440
28440
|
}),
|
|
28441
28441
|
j(M, {
|
|
@@ -28444,12 +28444,12 @@ function dM(e) {
|
|
|
28444
28444
|
},
|
|
28445
28445
|
get children() {
|
|
28446
28446
|
var e = tM(), t = e.firstChild, n = t.nextSibling.firstChild.nextSibling, i = n.firstChild.nextSibling;
|
|
28447
|
-
return i.nextSibling, t.addEventListener("change", (e) => Ee(e.currentTarget.checked)), P(n, () => Math.min(500, Math.max(10, r().logLines ?? 100)), i),
|
|
28447
|
+
return i.nextSibling, t.addEventListener("change", (e) => Ee(e.currentTarget.checked)), P(n, () => Math.min(500, Math.max(10, r().logLines ?? 100)), i), D(() => t.checked = Te()), e;
|
|
28448
28448
|
}
|
|
28449
28449
|
})
|
|
28450
28450
|
];
|
|
28451
28451
|
}
|
|
28452
|
-
}),
|
|
28452
|
+
}), O), P(O, j(M, {
|
|
28453
28453
|
get when() {
|
|
28454
28454
|
return Ue();
|
|
28455
28455
|
},
|
|
@@ -28458,7 +28458,7 @@ function dM(e) {
|
|
|
28458
28458
|
return Ue();
|
|
28459
28459
|
} });
|
|
28460
28460
|
}
|
|
28461
|
-
}), null), P(
|
|
28461
|
+
}), null), P(O, j(M, {
|
|
28462
28462
|
get when() {
|
|
28463
28463
|
return qe();
|
|
28464
28464
|
},
|
|
@@ -28466,7 +28466,7 @@ function dM(e) {
|
|
|
28466
28466
|
var e = nM();
|
|
28467
28467
|
return P(e, qe), e;
|
|
28468
28468
|
}
|
|
28469
|
-
}), null), P(
|
|
28469
|
+
}), null), P(O, j(M, {
|
|
28470
28470
|
get when() {
|
|
28471
28471
|
return Ye();
|
|
28472
28472
|
},
|
|
@@ -28479,9 +28479,9 @@ function dM(e) {
|
|
|
28479
28479
|
Xe(null), Fe(null), e.onCreated();
|
|
28480
28480
|
},
|
|
28481
28481
|
children: "View activity"
|
|
28482
|
-
}), null),
|
|
28482
|
+
}), null), D(() => it(r, "href", t().url)), n;
|
|
28483
28483
|
})()
|
|
28484
|
-
}), null), P(
|
|
28484
|
+
}), null), P(O, j(vj, {
|
|
28485
28485
|
variant: "primary",
|
|
28486
28486
|
get loading() {
|
|
28487
28487
|
return Ze.isPending;
|
|
@@ -30065,9 +30065,9 @@ function cR(e, t, n) {
|
|
|
30065
30065
|
return m();
|
|
30066
30066
|
} }
|
|
30067
30067
|
});
|
|
30068
|
-
let
|
|
30069
|
-
return f ? iR(() => (
|
|
30070
|
-
refetch: (e) => hR(
|
|
30068
|
+
let E = Oz;
|
|
30069
|
+
return f ? iR(() => (E = Oz, T(!1))) : T(!1), [w, {
|
|
30070
|
+
refetch: (e) => hR(E, () => T(e)),
|
|
30071
30071
|
mutate: h
|
|
30072
30072
|
}];
|
|
30073
30073
|
}
|
|
@@ -33469,10 +33469,10 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
33469
33469
|
}
|
|
33470
33470
|
return n ? !0 : t.opacity > 0;
|
|
33471
33471
|
}), C(), a ? o = UF(T) : (o = null, s = null);
|
|
33472
|
-
}, ee = () => {
|
|
33473
|
-
o === null && (o = UF(T));
|
|
33474
33472
|
}, E = () => {
|
|
33475
|
-
|
|
33473
|
+
o === null && (o = UF(T));
|
|
33474
|
+
}, D = () => {
|
|
33475
|
+
m(), E();
|
|
33476
33476
|
};
|
|
33477
33477
|
return oR(dR(() => [
|
|
33478
33478
|
e.selectionVisible,
|
|
@@ -33481,7 +33481,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
33481
33481
|
e.selectionShouldSnap
|
|
33482
33482
|
], ([e, t, n, r]) => {
|
|
33483
33483
|
if (!e || !t && (!n || n.length === 0)) {
|
|
33484
|
-
l = [],
|
|
33484
|
+
l = [], E();
|
|
33485
33485
|
return;
|
|
33486
33486
|
}
|
|
33487
33487
|
let i;
|
|
@@ -33491,13 +33491,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
33491
33491
|
l = i.map((e, t) => {
|
|
33492
33492
|
let n = `selection-${t}`, i = a.get(n);
|
|
33493
33493
|
return i ? (_(i, e), r && (i.current.x = i.target.x, i.current.y = i.target.y, i.current.width = i.target.width, i.current.height = i.target.height), i) : g(n, e);
|
|
33494
|
-
}),
|
|
33494
|
+
}), E();
|
|
33495
33495
|
})), oR(dR(() => [e.dragVisible, e.dragBounds], ([e, t]) => {
|
|
33496
33496
|
if (!e || !t) {
|
|
33497
|
-
u = null,
|
|
33497
|
+
u = null, E();
|
|
33498
33498
|
return;
|
|
33499
33499
|
}
|
|
33500
|
-
u ? _(u, t) : u = g("drag", t),
|
|
33500
|
+
u ? _(u, t) : u = g("drag", t), E();
|
|
33501
33501
|
})), oR(dR(() => [e.grabbedBoxes, e.labelInstances], ([e, t]) => {
|
|
33502
33502
|
let n = e ?? [], r = t ?? [], i = /* @__PURE__ */ new Map();
|
|
33503
33503
|
for (let e of n) i.set(e.id, e);
|
|
@@ -33528,16 +33528,16 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
33528
33528
|
}
|
|
33529
33529
|
}
|
|
33530
33530
|
}
|
|
33531
|
-
d = d.filter((e) => e.id.startsWith("label-") ? o.has(e.id) : i.has(e.id)),
|
|
33531
|
+
d = d.filter((e) => e.id.startsWith("label-") ? o.has(e.id) : i.has(e.id)), E();
|
|
33532
33532
|
})), fR(() => {
|
|
33533
|
-
m(),
|
|
33533
|
+
m(), E(), window.addEventListener("resize", D);
|
|
33534
33534
|
let e = null, t = () => {
|
|
33535
|
-
Math.max(window.devicePixelRatio || 1, 2) !== a && (
|
|
33535
|
+
Math.max(window.devicePixelRatio || 1, 2) !== a && (D(), n());
|
|
33536
33536
|
}, n = () => {
|
|
33537
33537
|
e && e.removeEventListener("change", t), e = window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`), e.addEventListener("change", t);
|
|
33538
33538
|
};
|
|
33539
33539
|
n(), pR(() => {
|
|
33540
|
-
window.removeEventListener("resize",
|
|
33540
|
+
window.removeEventListener("resize", D), e && e.removeEventListener("change", t), o !== null && WF(o);
|
|
33541
33541
|
});
|
|
33542
33542
|
}), (() => {
|
|
33543
33543
|
var e = YU(), n = t;
|
|
@@ -34147,7 +34147,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34147
34147
|
}), pR(() => {
|
|
34148
34148
|
x?.disconnect(), window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C), window.visualViewport?.removeEventListener("resize", C), window.visualViewport?.removeEventListener("scroll", C), window.removeEventListener("keydown", w, { capture: !0 });
|
|
34149
34149
|
});
|
|
34150
|
-
let T = () => `${e.tagName ?? ""}:${e.componentName ?? ""}`,
|
|
34150
|
+
let T = () => `${e.tagName ?? ""}:${e.componentName ?? ""}`, E = Y((t) => {
|
|
34151
34151
|
d();
|
|
34152
34152
|
let n = T(), r = n === t.elementIdentity ? t : {
|
|
34153
34153
|
position: lG,
|
|
@@ -34168,23 +34168,23 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34168
34168
|
hadValidBounds: r.hadValidBounds,
|
|
34169
34169
|
elementIdentity: n
|
|
34170
34170
|
};
|
|
34171
|
-
let v = i.x + i.width / 2, y = e.mouseX ?? v, b = i.y + i.height, x = i.y, S = e.hideArrow ? 0 : rW(l()), C = y, w = 0,
|
|
34171
|
+
let v = i.x + i.width / 2, y = e.mouseX ?? v, b = i.y + i.height, x = i.y, S = e.hideArrow ? 0 : rW(l()), C = y, w = 0, E = b + S + 4;
|
|
34172
34172
|
if (o > 0) {
|
|
34173
34173
|
let e = C - o / 2, t = C + o / 2;
|
|
34174
34174
|
t > g - 8 && (w = g - 8 - t), e + w < m + 8 && (w = m + 8 - e);
|
|
34175
34175
|
}
|
|
34176
|
-
let
|
|
34177
|
-
|
|
34178
|
-
let
|
|
34176
|
+
let D = c + S + 4, O = E + c <= _ - 8;
|
|
34177
|
+
O || (E = x - D), E < h + 8 && (E = h + 8);
|
|
34178
|
+
let k = o / 2, ee = k - w, te = Math.min(16, k), A = Math.max(o - 16, k), ne = Math.max(te, Math.min(A, ee)) - k;
|
|
34179
34179
|
return {
|
|
34180
34180
|
position: {
|
|
34181
34181
|
left: C,
|
|
34182
|
-
top:
|
|
34182
|
+
top: E,
|
|
34183
34183
|
arrowLeftPercent: 50,
|
|
34184
34184
|
arrowLeftOffset: ne,
|
|
34185
34185
|
edgeOffsetX: w
|
|
34186
34186
|
},
|
|
34187
|
-
computedArrowPosition:
|
|
34187
|
+
computedArrowPosition: O ? "bottom" : "top",
|
|
34188
34188
|
hadValidBounds: !0,
|
|
34189
34189
|
elementIdentity: n
|
|
34190
34190
|
};
|
|
@@ -34193,17 +34193,17 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34193
34193
|
computedArrowPosition: null,
|
|
34194
34194
|
hadValidBounds: !1,
|
|
34195
34195
|
elementIdentity: ""
|
|
34196
|
-
}),
|
|
34196
|
+
}), D = () => E().computedArrowPosition ?? "bottom", O = () => E().hadValidBounds;
|
|
34197
34197
|
oR(dR(() => e.selectionLabelShakeCount, () => g(!0), { defer: !0 }));
|
|
34198
|
-
let
|
|
34198
|
+
let k = (t) => {
|
|
34199
34199
|
if (t.isComposing || t.keyCode === 229) return;
|
|
34200
34200
|
t.stopImmediatePropagation();
|
|
34201
34201
|
let n = t.code === "Enter" && !t.shiftKey, r = t.code === "Escape";
|
|
34202
34202
|
n ? (t.preventDefault(), e.onSubmit?.()) : r && (t.preventDefault(), e.onConfirmDismiss?.());
|
|
34203
|
-
},
|
|
34203
|
+
}, ee = (t) => {
|
|
34204
34204
|
let n = t.target;
|
|
34205
34205
|
n instanceof HTMLTextAreaElement && (tW(n, 95), e.onInputChange?.(n.value));
|
|
34206
|
-
},
|
|
34206
|
+
}, te = () => sW({
|
|
34207
34207
|
tagName: e.tagName,
|
|
34208
34208
|
componentName: e.componentName,
|
|
34209
34209
|
elementsCount: e.elementsCount
|
|
@@ -34215,7 +34215,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34215
34215
|
y() && e.onToggleExpand?.();
|
|
34216
34216
|
}, re = (t) => {
|
|
34217
34217
|
t.stopImmediatePropagation(), _() && e.isPromptMode && !e.discardPrompt && e.onSubmit && r && nW(r, { preventScroll: !0 });
|
|
34218
|
-
}, ie = () =>
|
|
34218
|
+
}, ie = () => O() && (v() || e.status === "error");
|
|
34219
34219
|
return X(qR, {
|
|
34220
34220
|
get when() {
|
|
34221
34221
|
return Kz(() => e.visible !== !1)() && (e.selectionBounds || ie());
|
|
@@ -34233,13 +34233,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34233
34233
|
get children() {
|
|
34234
34234
|
return X(pW, {
|
|
34235
34235
|
get position() {
|
|
34236
|
-
return
|
|
34236
|
+
return D();
|
|
34237
34237
|
},
|
|
34238
34238
|
get leftPercent() {
|
|
34239
|
-
return
|
|
34239
|
+
return E().position.arrowLeftPercent;
|
|
34240
34240
|
},
|
|
34241
34241
|
get leftOffsetPx() {
|
|
34242
|
-
return
|
|
34242
|
+
return E().position.arrowLeftOffset;
|
|
34243
34243
|
},
|
|
34244
34244
|
get labelWidth() {
|
|
34245
34245
|
return l();
|
|
@@ -34298,10 +34298,10 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34298
34298
|
var t = iG(), n = t.firstChild;
|
|
34299
34299
|
return $(n, X(yW, {
|
|
34300
34300
|
get tagName() {
|
|
34301
|
-
return
|
|
34301
|
+
return te().tagName;
|
|
34302
34302
|
},
|
|
34303
34303
|
get componentName() {
|
|
34304
|
-
return
|
|
34304
|
+
return te().componentName;
|
|
34305
34305
|
},
|
|
34306
34306
|
get isClickable() {
|
|
34307
34307
|
return !!(e.filePath && e.onOpen);
|
|
@@ -34320,10 +34320,10 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34320
34320
|
var t = sG(), n = t.firstChild;
|
|
34321
34321
|
return $(n, X(yW, {
|
|
34322
34322
|
get tagName() {
|
|
34323
|
-
return
|
|
34323
|
+
return te().tagName;
|
|
34324
34324
|
},
|
|
34325
34325
|
get componentName() {
|
|
34326
|
-
return
|
|
34326
|
+
return te().componentName;
|
|
34327
34327
|
},
|
|
34328
34328
|
get isClickable() {
|
|
34329
34329
|
return !!(e.filePath && e.onOpen);
|
|
@@ -34332,7 +34332,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34332
34332
|
onHoverChange: S
|
|
34333
34333
|
})), $(t, X(xW, { get children() {
|
|
34334
34334
|
var t = oG(), n = t.firstChild;
|
|
34335
|
-
return n.$$keydown =
|
|
34335
|
+
return n.$$keydown = k, n.$$input = ee, cz((t) => {
|
|
34336
34336
|
r = t, e.onSubmit && queueMicrotask(() => {
|
|
34337
34337
|
nW(t, { preventScroll: !0 }), tW(t, 95);
|
|
34338
34338
|
});
|
|
@@ -34399,7 +34399,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34399
34399
|
];
|
|
34400
34400
|
}
|
|
34401
34401
|
}), null), aR((t) => {
|
|
34402
|
-
var n = oW("fixed font-sans text-[13px] antialiased select-none ease-out"), r = `${
|
|
34402
|
+
var n = oW("fixed font-sans text-[13px] antialiased select-none ease-out"), r = `${E().position.top}px`, a = `${E().position.left}px`, o = `translateX(calc(-50% + ${E().position.edgeOffsetX}px))`, s = b() ? "auto" : "none", c = e.status === "fading" || p() ? 0 : 1, l = `drop-shadow(${kM}) blur(${e.status === "fading" || p() ? "3px" : "0"})`;
|
|
34403
34403
|
return n !== t.e && nz(i, t.e = n), r !== t.t && oz(i, "top", t.t = r), a !== t.a && oz(i, "left", t.a = a), o !== t.o && oz(i, "transform", t.o = o), s !== t.i && oz(i, "pointer-events", t.i = s), c !== t.n && oz(i, "opacity", t.n = c), l !== t.s && oz(i, "filter", t.s = l), t;
|
|
34404
34404
|
}, {
|
|
34405
34405
|
e: void 0,
|
|
@@ -34770,14 +34770,14 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34770
34770
|
let t, n, r = null, i = EV(), [a, o] = J(!1), [s, c] = J(!1), [l, u] = J(!1), [d, f] = J(i?.edge ?? "bottom"), [p, m] = J(i?.ratio ?? .5), [h, g] = J({
|
|
34771
34771
|
x: 0,
|
|
34772
34772
|
y: 0
|
|
34773
|
-
}), [_, v] = J(!1), [y, b] = J(!1), [x, S] = J(!1), [C, w] = J(!1), [T,
|
|
34773
|
+
}), [_, v] = J(!1), [y, b] = J(!1), [x, S] = J(!1), [C, w] = J(!1), [T, E] = J(0), [D, O] = J(null), k = () => {
|
|
34774
34774
|
r?.(), r = null, e.isActive || CL();
|
|
34775
|
-
},
|
|
34775
|
+
}, ee = FG({
|
|
34776
34776
|
getContainerRef: () => t,
|
|
34777
34777
|
isCollapsed: s,
|
|
34778
34778
|
getExpandedDimensions: () => ce,
|
|
34779
34779
|
onDragStart: () => {
|
|
34780
|
-
|
|
34780
|
+
O(null), r && k();
|
|
34781
34781
|
},
|
|
34782
34782
|
onPositionUpdate: (e) => g(e),
|
|
34783
34783
|
onSnapEdgeChange: (e, t) => {
|
|
@@ -34791,7 +34791,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34791
34791
|
enabled: !s()
|
|
34792
34792
|
});
|
|
34793
34793
|
}
|
|
34794
|
-
}),
|
|
34794
|
+
}), te = () => d() === "left" || d() === "right", A = () => te() ? "mb-1.5" : "mr-1.5", ne = (t) => e.activeActionId === t, re = () => !!e.isActive && (e.activeActionId ?? "copy") === "copy", ie = (t) => D() === t && !e.isActive && !s() && !ee.isDragging() && !ee.isSnapping() && !e.isContextMenuOpen, ae = () => {
|
|
34795
34795
|
switch (d()) {
|
|
34796
34796
|
case "top": return "bottom";
|
|
34797
34797
|
case "bottom": return "top";
|
|
@@ -34803,10 +34803,10 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34803
34803
|
e.stopImmediatePropagation();
|
|
34804
34804
|
}, se = (t, n) => ({
|
|
34805
34805
|
onMouseEnter: (e) => {
|
|
34806
|
-
|
|
34806
|
+
ee.isDragging() || (O(t), n?.shouldFreezeInteractions !== !1 && !r && (r = $L(), SL(e.clientX, e.clientY)), n?.onHoverChange?.(!0));
|
|
34807
34807
|
},
|
|
34808
34808
|
onMouseLeave: () => {
|
|
34809
|
-
|
|
34809
|
+
O((e) => e === t ? null : e), n?.shouldFreezeInteractions !== !1 && !e.isActive && !e.isContextMenuOpen && k(), n?.onHoverChange?.(!1);
|
|
34810
34810
|
}
|
|
34811
34811
|
});
|
|
34812
34812
|
oR(dR(() => e.shakeCount, (t) => {
|
|
@@ -34815,7 +34815,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34815
34815
|
!e && !t && r && (r(), r = null);
|
|
34816
34816
|
})), oR(dR(() => re(), (e) => {
|
|
34817
34817
|
if (!e) {
|
|
34818
|
-
|
|
34818
|
+
E((e) => IG(e, 0));
|
|
34819
34819
|
return;
|
|
34820
34820
|
}
|
|
34821
34821
|
let t = EM((e) => {
|
|
@@ -34823,7 +34823,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34823
34823
|
let t = n.getBoundingClientRect(), r = t.left + t.width / 2, i = t.top + t.height / 2, a = e.clientX - r, o = e.clientY - i;
|
|
34824
34824
|
if (Math.hypot(a, o) < 4) return;
|
|
34825
34825
|
let s = Math.atan2(o, a) * 180 / Math.PI - -45;
|
|
34826
|
-
|
|
34826
|
+
E((e) => IG(e, s));
|
|
34827
34827
|
});
|
|
34828
34828
|
window.addEventListener("pointermove", t, { passive: !0 }), pR(() => {
|
|
34829
34829
|
window.removeEventListener("pointermove", t);
|
|
@@ -34839,7 +34839,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34839
34839
|
return MG(e, n, ce, r?.width ?? i.width, r?.height ?? i.height);
|
|
34840
34840
|
}, pe = () => {
|
|
34841
34841
|
g(AG(d(), p(), ce.width, ce.height));
|
|
34842
|
-
}, me =
|
|
34842
|
+
}, me = ee.createDragAwareHandler(() => e.onToggle?.()), he = ee.createDragAwareHandler(() => e.onActivateAction?.(aN)), ge = ee.createDragAwareHandler(() => e.onActivateAction?.(oN)), _e = "group contain-layout flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox", ve = () => oW("relative contain-layout flex items-center justify-center", A()), ye = (e) => e ? "text-[var(--rg-text-primary)]" : "text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)]", be = ee.createDragAwareHandler(() => {
|
|
34843
34843
|
let e = t?.getBoundingClientRect(), n = s(), r = p();
|
|
34844
34844
|
if (n) {
|
|
34845
34845
|
let { position: e, ratio: t } = fe(je(), d());
|
|
@@ -34869,7 +34869,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34869
34869
|
height: e.height
|
|
34870
34870
|
}));
|
|
34871
34871
|
}, Ee = (e, t) => {
|
|
34872
|
-
if (!(e === 0 || t === 0) && !(
|
|
34872
|
+
if (!(e === 0 || t === 0) && !(ee.isDragging() || ee.isSnapping()) && !y()) {
|
|
34873
34873
|
if (s()) {
|
|
34874
34874
|
let n = le();
|
|
34875
34875
|
if (n.width === e && n.height === t) return;
|
|
@@ -34888,11 +34888,11 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34888
34888
|
}, g(AG(d(), p(), e, t)));
|
|
34889
34889
|
}
|
|
34890
34890
|
}, De = null, Oe = () => {
|
|
34891
|
-
|
|
34891
|
+
ee.isDragging() || ee.isSnapping() || De === null && (De = UF(() => {
|
|
34892
34892
|
De = null, pe();
|
|
34893
34893
|
}));
|
|
34894
34894
|
}, ke = () => {
|
|
34895
|
-
|
|
34895
|
+
ee.isDragging() || (u(!0), pe(), Se && clearTimeout(Se), Se = setTimeout(() => {
|
|
34896
34896
|
u(!1);
|
|
34897
34897
|
let e = jG(d(), h().x, h().y, ce.width, ce.height);
|
|
34898
34898
|
m(e), Ae({
|
|
@@ -34961,9 +34961,9 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34961
34961
|
clearTimeout(u);
|
|
34962
34962
|
});
|
|
34963
34963
|
}), pR(() => {
|
|
34964
|
-
window.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("scroll", ke), window.removeEventListener("scroll", Oe, { capture: !0 }), De !== null && WF(De), clearTimeout(Se), clearTimeout(Ce), r &&
|
|
34964
|
+
window.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("scroll", ke), window.removeEventListener("scroll", Oe, { capture: !0 }), De !== null && WF(De), clearTimeout(Se), clearTimeout(Ce), r && k();
|
|
34965
34965
|
});
|
|
34966
|
-
let je = () => s() ? xe() : h(), Me = () => s() ? "cursor-pointer" :
|
|
34966
|
+
let je = () => s() ? xe() : h(), Me = () => s() ? "cursor-pointer" : ee.isDragging() ? "cursor-grabbing" : "cursor-grab", Ne = () => C() || !!e.isContextMenuOpen || ee.isDragging() || ee.isSnapping() || y() || x(), Pe = () => !!e.isActive && !Ne(), Fe = () => l() || ee.isDragging() ? "" : ee.isSnapping() ? "transition-[transform,opacity] duration-300 ease-out" : y() ? `transition-[transform,opacity] ${s() ? "duration-140" : "duration-220"} ease-drawer` : "transition-[transform,opacity] duration-400 ease-drawer", Ie = () => {
|
|
34967
34967
|
switch (d()) {
|
|
34968
34968
|
case "top": return "center top";
|
|
34969
34969
|
case "bottom": return "center bottom";
|
|
@@ -34979,7 +34979,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
34979
34979
|
}), r.addEventListener("mouseenter", () => {
|
|
34980
34980
|
w(!0), s() || e.onSelectHoverChange?.(!0);
|
|
34981
34981
|
}), rz(r, "mousedown", oe), rz(r, "pointerdown", (e) => {
|
|
34982
|
-
oe(e),
|
|
34982
|
+
oe(e), ee.handlePointerDown(e);
|
|
34983
34983
|
});
|
|
34984
34984
|
var i = t;
|
|
34985
34985
|
return typeof i == "function" ? cz(i, r) : t = r, $(r, X(DG, {
|
|
@@ -35035,7 +35035,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
35035
35035
|
},
|
|
35036
35036
|
onClick: me,
|
|
35037
35037
|
onContextMenu: (t) => {
|
|
35038
|
-
t.preventDefault(), t.stopPropagation(),
|
|
35038
|
+
t.preventDefault(), t.stopPropagation(), O(null), e.onToggleToolbarMenu?.();
|
|
35039
35039
|
}
|
|
35040
35040
|
}, () => se(iN), {
|
|
35041
35041
|
get icon() {
|
|
@@ -36179,7 +36179,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
36179
36179
|
}
|
|
36180
36180
|
e.key === "Escape" && (e.preventDefault(), w());
|
|
36181
36181
|
}
|
|
36182
|
-
},
|
|
36182
|
+
}, E = () => {
|
|
36183
36183
|
let t = r();
|
|
36184
36184
|
return {
|
|
36185
36185
|
cursor: m() && !l() ? "ew-resize" : "default",
|
|
@@ -36291,7 +36291,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
36291
36291
|
})];
|
|
36292
36292
|
}
|
|
36293
36293
|
}), null), aR((t) => {
|
|
36294
|
-
var n = e.label ?? "Value", r = e.min, c = e.max, u = e.value, d = `${qB(e.value)}${e.unit}`, m =
|
|
36294
|
+
var n = e.label ?? "Value", r = e.min, c = e.max, u = e.value, d = `${qB(e.value)}${e.unit}`, m = E(), h = `${f()}%`, g = +!l(), _ = `calc(${f()}% - 1px)`, v = e.activeKey ? .9 : a() || s() ? .35 : 0;
|
|
36295
36295
|
return n !== t.e && Q(i, "aria-label", t.e = n), r !== t.t && Q(i, "aria-valuemin", t.t = r), c !== t.a && Q(i, "aria-valuemax", t.a = c), u !== t.o && Q(i, "aria-valuenow", t.o = u), d !== t.i && Q(i, "aria-valuetext", t.i = d), t.n = az(i, m, t.n), h !== t.s && oz(o, "width", t.s = h), g !== t.h && oz(o, "opacity", t.h = g), _ !== t.r && oz(p, "left", t.r = _), v !== t.d && oz(p, "opacity", t.d = v), t;
|
|
36296
36296
|
}, {
|
|
36297
36297
|
e: void 0,
|
|
@@ -37023,13 +37023,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37023
37023
|
}), d = () => {
|
|
37024
37024
|
let e = u.filteredProperties().findIndex((e) => e.kind === "numeric");
|
|
37025
37025
|
return e > 0 ? e : 0;
|
|
37026
|
-
}, [f, p] = J(d()), m = Y(() => u.hasPendingStyles()), h = Y(() => m() || !!e.state.hasSessionEdits), [g, _] = J(!1), v, y, b, x = !1, [S, C] = J(!1), w = Y(() => S() || m()), [T,
|
|
37026
|
+
}, [f, p] = J(d()), m = Y(() => u.hasPendingStyles()), h = Y(() => m() || !!e.state.hasSessionEdits), [g, _] = J(!1), v, y, b, x = !1, [S, C] = J(!1), w = Y(() => S() || m()), [T, E] = J(!1), D = MV(), O = Y(() => sW({
|
|
37027
37027
|
tagName: e.state.tagName,
|
|
37028
37028
|
componentName: e.state.componentName
|
|
37029
|
-
})),
|
|
37029
|
+
})), k = Y(() => {
|
|
37030
37030
|
let e = u.filteredProperties();
|
|
37031
37031
|
return e.length === 0 ? null : e[Math.min(Math.max(0, f()), e.length - 1)];
|
|
37032
|
-
}),
|
|
37032
|
+
}), ee, te = _K(() => ee, e.position), A = (e) => {
|
|
37033
37033
|
l(e), clearTimeout(v), v = setTimeout(() => {
|
|
37034
37034
|
l((t) => t === e ? null : t);
|
|
37035
37035
|
}, 100);
|
|
@@ -37071,9 +37071,9 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37071
37071
|
}, de = () => {
|
|
37072
37072
|
oe(), s(null), _(!1);
|
|
37073
37073
|
}, fe = (t, n, i = {}) => {
|
|
37074
|
-
u.applyStyle(t, n), r.apply(t.cssProperties, YB(t, n)), e.onPendingEditsChange?.(u.buildPendingEdits()), re(), i.isFromKeyRepeat || we.hide(), i.flashDirection && A(i.flashDirection === 1 ? "right" : "left"), i.shouldFocus && ie(), i.shouldCompact && _(!0), i.source === "keyboard" &&
|
|
37074
|
+
u.applyStyle(t, n), r.apply(t.cssProperties, YB(t, n)), e.onPendingEditsChange?.(u.buildPendingEdits()), re(), i.isFromKeyRepeat || we.hide(), i.flashDirection && A(i.flashDirection === 1 ? "right" : "left"), i.shouldFocus && ie(), i.shouldCompact && _(!0), i.source === "keyboard" && D.arm();
|
|
37075
37075
|
}, pe = OV((e) => e.shiftKey), me = OV((e) => e.altKey), he = (t, n, r, i, a) => {
|
|
37076
|
-
let o =
|
|
37076
|
+
let o = k();
|
|
37077
37077
|
if (!o) return null;
|
|
37078
37078
|
let s = bq(o, t, n, r, e.state.designTokens);
|
|
37079
37079
|
return s === null ? (A(t === 1 ? "right" : "left"), null) : (fe(o, s, {
|
|
@@ -37091,7 +37091,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37091
37091
|
isShiftHeld: pe,
|
|
37092
37092
|
isAltHeld: me
|
|
37093
37093
|
}), ye = (e, t) => {
|
|
37094
|
-
let n =
|
|
37094
|
+
let n = k();
|
|
37095
37095
|
if (n) {
|
|
37096
37096
|
if (n.kind === "numeric" && typeof e == "number") {
|
|
37097
37097
|
let r = JB(yB(e, n.min, n.max));
|
|
@@ -37102,13 +37102,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37102
37102
|
}
|
|
37103
37103
|
}, be = Y(() => {
|
|
37104
37104
|
if (!pe()) return null;
|
|
37105
|
-
let e =
|
|
37105
|
+
let e = k();
|
|
37106
37106
|
return !e || e.kind !== "numeric" ? null : yK(e.key, e.value);
|
|
37107
37107
|
}), xe = Xq({
|
|
37108
37108
|
initialProperties: t,
|
|
37109
37109
|
searchQuery: i,
|
|
37110
37110
|
isCompact: g,
|
|
37111
|
-
activeProperty:
|
|
37111
|
+
activeProperty: k,
|
|
37112
37112
|
commit: (e, t, n) => {
|
|
37113
37113
|
fe(e, t, {
|
|
37114
37114
|
...n,
|
|
@@ -37117,13 +37117,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37117
37117
|
},
|
|
37118
37118
|
setIsCompact: _
|
|
37119
37119
|
}), Se = Y(() => g() && i() !== "" && xe.isInlineNumericEdit()), Ce = () => {
|
|
37120
|
-
we.hide(),
|
|
37120
|
+
we.hide(), D.clear(), e.onSubmit(u.buildPendingEdits());
|
|
37121
37121
|
}, we = oq(), Te, Ee = () => {
|
|
37122
37122
|
Te && (Te.classList.remove("animate-shake"), Te.offsetWidth, Te.classList.add("animate-shake"));
|
|
37123
37123
|
}, De = (t) => {
|
|
37124
37124
|
we.hide(), t === "discard" && r.restore(), e.onDismiss();
|
|
37125
37125
|
}, Oe = (e) => {
|
|
37126
|
-
if (ve.cancelRepeat(), e === "pointer" &&
|
|
37126
|
+
if (ve.cancelRepeat(), e === "pointer" && D.clear(), we.isPending()) {
|
|
37127
37127
|
De("discard");
|
|
37128
37128
|
return;
|
|
37129
37129
|
}
|
|
@@ -37137,11 +37137,11 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37137
37137
|
let t = u.filteredProperties();
|
|
37138
37138
|
t.length !== 0 && (p((n) => (n + e + t.length) % t.length), de());
|
|
37139
37139
|
}, Ae = () => {
|
|
37140
|
-
|
|
37140
|
+
D.clear(), we.hide();
|
|
37141
37141
|
}, je = [], Me = (e) => (je.push(e), () => {
|
|
37142
37142
|
je = je.filter((t) => t !== e);
|
|
37143
37143
|
}), Ne = () => je[je.length - 1] ?? null, Pe = (e, t) => {
|
|
37144
|
-
if (
|
|
37144
|
+
if (k()?.kind === "color") {
|
|
37145
37145
|
t.repeat || Ne()?.();
|
|
37146
37146
|
return;
|
|
37147
37147
|
}
|
|
@@ -37154,7 +37154,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37154
37154
|
Tab: (e) => ke(e.shiftKey ? -1 : 1),
|
|
37155
37155
|
Enter: () => {
|
|
37156
37156
|
if (we.isPending()) return;
|
|
37157
|
-
let e =
|
|
37157
|
+
let e = k(), t = Ne();
|
|
37158
37158
|
if (e?.kind === "color" && !u.hasChangedStyleFor(e.key) && t && !h()) {
|
|
37159
37159
|
t();
|
|
37160
37160
|
return;
|
|
@@ -37181,7 +37181,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37181
37181
|
let e = n.value.length;
|
|
37182
37182
|
n.setSelectionRange(e, e);
|
|
37183
37183
|
}
|
|
37184
|
-
}),
|
|
37184
|
+
}), te.measure();
|
|
37185
37185
|
let e = i();
|
|
37186
37186
|
e && xe.applyTailwindClass(e);
|
|
37187
37187
|
let t = dK({
|
|
@@ -37198,10 +37198,10 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37198
37198
|
}), a = EM((e) => {
|
|
37199
37199
|
ve.releaseKey(e.key);
|
|
37200
37200
|
}), o = EM((e) => {
|
|
37201
|
-
e.pointerType === "mouse" && (we.isPending() ||
|
|
37201
|
+
e.pointerType === "mouse" && (we.isPending() || D.consume() && h() && Oe("pointer"));
|
|
37202
37202
|
});
|
|
37203
37203
|
window.addEventListener("keydown", r, { capture: !0 }), window.addEventListener("keyup", a, { capture: !0 }), window.addEventListener("pointermove", o, { capture: !0 }), pR(() => {
|
|
37204
|
-
t(), window.removeEventListener("keydown", r, { capture: !0 }), window.removeEventListener("keyup", a, { capture: !0 }), window.removeEventListener("pointermove", o, { capture: !0 }), clearTimeout(v), clearTimeout(y), clearTimeout(b), we.cleanup(),
|
|
37204
|
+
t(), window.removeEventListener("keydown", r, { capture: !0 }), window.removeEventListener("keyup", a, { capture: !0 }), window.removeEventListener("pointermove", o, { capture: !0 }), clearTimeout(v), clearTimeout(y), clearTimeout(b), we.cleanup(), te.clearAnimationHandles(), C(!1);
|
|
37205
37205
|
});
|
|
37206
37206
|
});
|
|
37207
37207
|
let j = (e) => {
|
|
@@ -37209,13 +37209,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37209
37209
|
};
|
|
37210
37210
|
return X(qR, {
|
|
37211
37211
|
get when() {
|
|
37212
|
-
return
|
|
37212
|
+
return te.shouldMount();
|
|
37213
37213
|
},
|
|
37214
37214
|
get children() {
|
|
37215
37215
|
var e = nJ();
|
|
37216
37216
|
rz(e, "contextmenu", uK, !0), rz(e, "click", uK, !0), rz(e, "mousedown", uK, !0), rz(e, "pointerdown", uK, !0);
|
|
37217
|
-
var t =
|
|
37218
|
-
return typeof t == "function" ? cz(t, e) :
|
|
37217
|
+
var t = ee;
|
|
37218
|
+
return typeof t == "function" ? cz(t, e) : ee = e, oz(e, "z-index", `${LM}`), oz(e, "--rg-edit-list-max-h", "280px"), $(e, X(TW, {
|
|
37219
37219
|
ref: (e) => Te = e,
|
|
37220
37220
|
class: "flex flex-col justify-center items-start overflow-hidden w-fit h-fit",
|
|
37221
37221
|
get style() {
|
|
@@ -37239,12 +37239,12 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37239
37239
|
},
|
|
37240
37240
|
get children() {
|
|
37241
37241
|
var e = tJ();
|
|
37242
|
-
return e.addEventListener("mouseleave", () =>
|
|
37242
|
+
return e.addEventListener("mouseleave", () => E(!1)), e.addEventListener("mouseenter", () => E(!0)), $(e, X(yW, {
|
|
37243
37243
|
get tagName() {
|
|
37244
|
-
return
|
|
37244
|
+
return O().tagName;
|
|
37245
37245
|
},
|
|
37246
37246
|
get componentName() {
|
|
37247
|
-
return
|
|
37247
|
+
return O().componentName;
|
|
37248
37248
|
},
|
|
37249
37249
|
isClickable: !1,
|
|
37250
37250
|
onClick: () => {},
|
|
@@ -37300,7 +37300,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37300
37300
|
}, cz((e) => {
|
|
37301
37301
|
n = e;
|
|
37302
37302
|
}, t), Q(t, "spellcheck", !1), aR((n) => {
|
|
37303
|
-
var r = Se() ? "" : "[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-1.5 w-full self-stretch [border-top-width:0.5px] border-t-solid border-t-[var(--rg-border-subtle)] antialiased", i = Se() ? TK : void 0, a = Se() ? -1 : 0, o = g() ?
|
|
37303
|
+
var r = Se() ? "" : "[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-1.5 w-full self-stretch [border-top-width:0.5px] border-t-solid border-t-[var(--rg-border-subtle)] antialiased", i = Se() ? TK : void 0, a = Se() ? -1 : 0, o = g() ? k()?.label ?? "Search property" : "Search property";
|
|
37304
37304
|
return r !== n.e && nz(e, n.e = r), n.t = az(e, i, n.t), a !== n.a && Q(t, "tabindex", n.a = a), o !== n.o && Q(t, "placeholder", n.o = o), n;
|
|
37305
37305
|
}, {
|
|
37306
37306
|
e: void 0,
|
|
@@ -37348,7 +37348,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37348
37348
|
}),
|
|
37349
37349
|
X(qR, {
|
|
37350
37350
|
get when() {
|
|
37351
|
-
return Kz(() => !!g())() &&
|
|
37351
|
+
return Kz(() => !!g())() && k();
|
|
37352
37352
|
},
|
|
37353
37353
|
children: (e) => (() => {
|
|
37354
37354
|
var t = rJ();
|
|
@@ -37376,7 +37376,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
|
|
|
37376
37376
|
];
|
|
37377
37377
|
}
|
|
37378
37378
|
})), aR((t) => {
|
|
37379
|
-
var n = g() ? "true" : "false", r = oW("fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none",
|
|
37379
|
+
var n = g() ? "true" : "false", r = oW("fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none", te.isAnimatedIn() ? "transition-[opacity,transform] duration-220 ease-spring" : "transition-[opacity,transform] duration-120 ease-drawer"), i = `${te.displayPosition().top}px`, a = `${te.displayPosition().left}px`, o = te.isAnimatedIn() ? "auto" : "none", s = dN[te.lastAnchorEdge()], c = te.isAnimatedIn() ? "1" : "0", l = te.isAnimatedIn() ? "scale(1)" : "scale(0.92)";
|
|
37380
37380
|
return n !== t.e && Q(e, "data-rg-compact", t.e = n), r !== t.t && nz(e, t.t = r), i !== t.a && oz(e, "top", t.a = i), a !== t.o && oz(e, "left", t.o = a), o !== t.i && oz(e, "pointer-events", t.i = o), s !== t.n && oz(e, "transform-origin", t.n = s), c !== t.s && oz(e, "opacity", t.s = c), l !== t.h && oz(e, "transform", t.h = l), t;
|
|
37381
37381
|
}, {
|
|
37382
37382
|
e: void 0,
|
|
@@ -39981,7 +39981,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
39981
39981
|
oR(dR(d, (e, t) => {
|
|
39982
39982
|
e && !t ? (SL(s().x, s().y), C("touchAction", "none")) : !e && t && (CL(), C("touchAction", ""));
|
|
39983
39983
|
}));
|
|
39984
|
-
let w = EV(), [T,
|
|
39984
|
+
let w = EV(), [T, E] = J(!w || !w.collapsed), [D, O] = J(0), [k, ee] = J(0), [te, A] = J(w), [ne, re] = J(!1), ie = OV((e) => e.shiftKey), [ae, oe] = J(null), [se, ce] = J(null), [le, ue] = J(null), de = RX({
|
|
39985
39985
|
store: i,
|
|
39986
39986
|
actions: o,
|
|
39987
39987
|
isActivated: d,
|
|
@@ -39999,7 +39999,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
39999
39999
|
}, Se = () => {
|
|
40000
40000
|
Le(!1), xe();
|
|
40001
40001
|
}, Ce = (e) => {
|
|
40002
|
-
let t =
|
|
40002
|
+
let t = te() ?? EV(), n = {
|
|
40003
40003
|
edge: t?.edge ?? "bottom",
|
|
40004
40004
|
ratio: t?.ratio ?? .5,
|
|
40005
40005
|
collapsed: t?.collapsed ?? !1,
|
|
@@ -40402,7 +40402,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
40402
40402
|
grabbedBoxes: [...Vt()],
|
|
40403
40403
|
labelInstances: [...Ht()],
|
|
40404
40404
|
selectionFilePath: i.selectionFilePath,
|
|
40405
|
-
toolbarState:
|
|
40405
|
+
toolbarState: te()
|
|
40406
40406
|
};
|
|
40407
40407
|
}), (e) => {
|
|
40408
40408
|
r.hooks.onStateChange(e);
|
|
@@ -40498,7 +40498,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
40498
40498
|
o.clearInputText(), Kt();
|
|
40499
40499
|
return;
|
|
40500
40500
|
}
|
|
40501
|
-
o.setPendingDismiss(!0),
|
|
40501
|
+
o.setPendingDismiss(!0), ee((e) => e + 1);
|
|
40502
40502
|
}
|
|
40503
40503
|
}, Zt = () => {
|
|
40504
40504
|
if (ye.isPendingDismiss()) {
|
|
@@ -40558,7 +40558,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
40558
40558
|
}
|
|
40559
40559
|
T() && (Ge = e, Je(e), Ke(!0), Jt());
|
|
40560
40560
|
}, sn = () => {
|
|
40561
|
-
on(
|
|
40561
|
+
on(te()?.defaultAction ?? "copy");
|
|
40562
40562
|
}, cn = (e, t, n) => {
|
|
40563
40563
|
rn(), o.clearInputText(), o.enterPromptMode({
|
|
40564
40564
|
x: t,
|
|
@@ -40769,7 +40769,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
40769
40769
|
let n = HJ(VJ(e));
|
|
40770
40770
|
o.setPointer(n), i.contextMenuPosition !== null && o.showContextMenu(n, e);
|
|
40771
40771
|
}, En = () => {
|
|
40772
|
-
ye.showDismissPrompt() &&
|
|
40772
|
+
ye.showDismissPrompt() && ee((e) => e + 1);
|
|
40773
40773
|
}, Dn = () => {
|
|
40774
40774
|
ye.clear(), o.unfreeze(), wn();
|
|
40775
40775
|
}, On = () => {
|
|
@@ -40890,7 +40890,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
40890
40890
|
xn.addWindowListener("keydown", EM((e) => {
|
|
40891
40891
|
if (kn(e) && Zz(e) || Hn(e)) return;
|
|
40892
40892
|
if (Cn(e), !T()) {
|
|
40893
|
-
KY(e, r.store.options) && !e.repeat &&
|
|
40893
|
+
KY(e, r.store.options) && !e.repeat && O((e) => e + 1);
|
|
40894
40894
|
return;
|
|
40895
40895
|
}
|
|
40896
40896
|
let t = rZ(e.code) && u() && !b(), n = CB(e, nN);
|
|
@@ -41355,7 +41355,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
41355
41355
|
onInputSubmit: () => void Yt(),
|
|
41356
41356
|
onToggleExpand: $t,
|
|
41357
41357
|
get selectionLabelShakeCount() {
|
|
41358
|
-
return
|
|
41358
|
+
return k();
|
|
41359
41359
|
},
|
|
41360
41360
|
onConfirmDismiss: Zt,
|
|
41361
41361
|
get discardPrompt() {
|
|
@@ -41383,10 +41383,10 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
41383
41383
|
return T();
|
|
41384
41384
|
},
|
|
41385
41385
|
get shakeCount() {
|
|
41386
|
-
return
|
|
41386
|
+
return D();
|
|
41387
41387
|
},
|
|
41388
41388
|
onToolbarStateChange: (e) => {
|
|
41389
|
-
A(e), e.enabled !== T() && (
|
|
41389
|
+
A(e), e.enabled !== T() && (E(e.enabled), e.enabled || (qt(), Ar())), mZ.forEach((t) => t(e));
|
|
41390
41390
|
},
|
|
41391
41391
|
onSubscribeToToolbarStateChanges: (e) => (mZ.add(e), () => {
|
|
41392
41392
|
mZ.delete(e);
|
|
@@ -41425,7 +41425,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
41425
41425
|
return r.store.actions.filter((e) => e.showInToolbarMenu === !0);
|
|
41426
41426
|
},
|
|
41427
41427
|
get defaultActionId() {
|
|
41428
|
-
return
|
|
41428
|
+
return te()?.defaultAction ?? "copy";
|
|
41429
41429
|
},
|
|
41430
41430
|
onSetDefaultAction: Mr,
|
|
41431
41431
|
onToggleToolbarMenu: jr,
|
|
@@ -41466,21 +41466,21 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
41466
41466
|
isActive: () => d(),
|
|
41467
41467
|
isEnabled: () => T(),
|
|
41468
41468
|
setEnabled: (e) => {
|
|
41469
|
-
e !== T() && (
|
|
41469
|
+
e !== T() && (E(e), Ce({
|
|
41470
41470
|
enabled: e,
|
|
41471
41471
|
collapsed: !e
|
|
41472
41472
|
}), e || (qt(), Ar()));
|
|
41473
41473
|
},
|
|
41474
|
-
getToolbarState: () =>
|
|
41474
|
+
getToolbarState: () => te() ?? EV(),
|
|
41475
41475
|
setToolbarState: (e) => {
|
|
41476
|
-
let t =
|
|
41476
|
+
let t = te() ?? EV(), n = e.collapsed ?? t?.collapsed ?? !1, r = {
|
|
41477
41477
|
edge: e.edge ?? t?.edge ?? "bottom",
|
|
41478
41478
|
ratio: e.ratio ?? t?.ratio ?? .5,
|
|
41479
41479
|
collapsed: n,
|
|
41480
41480
|
enabled: e.enabled ?? !n,
|
|
41481
41481
|
defaultAction: e.defaultAction ?? t?.defaultAction ?? "copy"
|
|
41482
41482
|
};
|
|
41483
|
-
DV(r), A(r), r.enabled !== T() && (
|
|
41483
|
+
DV(r), A(r), r.enabled !== T() && (E(r.enabled), r.enabled || (qt(), Ar())), mZ.forEach((e) => e(r));
|
|
41484
41484
|
},
|
|
41485
41485
|
onToolbarStateChange: (e) => (mZ.add(e), () => {
|
|
41486
41486
|
mZ.delete(e);
|
|
@@ -41516,7 +41516,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
|
|
|
41516
41516
|
grabbedBoxes: [...Vt()],
|
|
41517
41517
|
labelInstances: [...Ht()],
|
|
41518
41518
|
selectionFilePath: i.selectionFilePath,
|
|
41519
|
-
toolbarState:
|
|
41519
|
+
toolbarState: te()
|
|
41520
41520
|
}),
|
|
41521
41521
|
setOptions: (e) => {
|
|
41522
41522
|
r.setOptions(e);
|
|
@@ -41779,7 +41779,7 @@ function aQ() {
|
|
|
41779
41779
|
}, [g, _] = T(BD());
|
|
41780
41780
|
ae(VD(_));
|
|
41781
41781
|
let [v, y] = T(0);
|
|
41782
|
-
|
|
41782
|
+
O(() => {
|
|
41783
41783
|
if (g().phase !== "recording") return;
|
|
41784
41784
|
let e = setInterval(() => y(Date.now() - (BD().startedAt ?? Date.now())), 250);
|
|
41785
41785
|
ae(() => clearInterval(e));
|
|
@@ -41787,16 +41787,16 @@ function aQ() {
|
|
|
41787
41787
|
let b = (e) => {
|
|
41788
41788
|
let t = Math.floor(e / 1e3);
|
|
41789
41789
|
return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
|
|
41790
|
-
}, [x, S] = T("idle"), [C, w] = T(null),
|
|
41790
|
+
}, [x, S] = T("idle"), [C, w] = T(null), E = async () => {
|
|
41791
41791
|
let e = BD().result;
|
|
41792
41792
|
if (!e) throw Error("No recording available.");
|
|
41793
41793
|
if (e.assetUrl) return e.assetUrl;
|
|
41794
41794
|
let t = await xO(e.blob, `recording-${Date.now()}.gif`);
|
|
41795
41795
|
return tO(t), t;
|
|
41796
|
-
},
|
|
41796
|
+
}, k = async () => {
|
|
41797
41797
|
w(null), S("busy");
|
|
41798
41798
|
try {
|
|
41799
|
-
let e =
|
|
41799
|
+
let e = E().then((e) => new Blob([``], { type: "text/plain" }));
|
|
41800
41800
|
try {
|
|
41801
41801
|
await navigator.clipboard.write([new ClipboardItem({ "text/plain": e })]);
|
|
41802
41802
|
} catch {
|
|
@@ -41807,12 +41807,12 @@ function aQ() {
|
|
|
41807
41807
|
} catch {
|
|
41808
41808
|
S("idle"), await ne(), w("Direct upload is blocked in this browser — copied the GIF instead. Paste it into a Linear comment and Linear uploads it.");
|
|
41809
41809
|
}
|
|
41810
|
-
},
|
|
41810
|
+
}, ee = () => {
|
|
41811
41811
|
let e = g().result;
|
|
41812
41812
|
if (!e) return;
|
|
41813
41813
|
let t = document.createElement("a");
|
|
41814
41814
|
t.href = e.url, t.download = "linear-grab-recording.gif", t.click();
|
|
41815
|
-
}, [
|
|
41815
|
+
}, [te, A] = T("idle"), ne = async () => {
|
|
41816
41816
|
let e = g().result;
|
|
41817
41817
|
if (e) {
|
|
41818
41818
|
w(null), A("busy");
|
|
@@ -41905,7 +41905,7 @@ function aQ() {
|
|
|
41905
41905
|
},
|
|
41906
41906
|
get children() {
|
|
41907
41907
|
var t = ZZ();
|
|
41908
|
-
return
|
|
41908
|
+
return D(() => it(t, "src", e.screenshotDataUrl)), t;
|
|
41909
41909
|
}
|
|
41910
41910
|
}), null), t;
|
|
41911
41911
|
})()
|
|
@@ -42026,7 +42026,7 @@ function aQ() {
|
|
|
42026
42026
|
return i() ? "Copy markdown — uploads to Linear, copies embeddable link" : "Connect Linear in Settings first";
|
|
42027
42027
|
},
|
|
42028
42028
|
"aria-label": "Copy markdown",
|
|
42029
|
-
onClick: () => void
|
|
42029
|
+
onClick: () => void k(),
|
|
42030
42030
|
get children() {
|
|
42031
42031
|
return j(M, {
|
|
42032
42032
|
get when() {
|
|
@@ -42044,7 +42044,7 @@ function aQ() {
|
|
|
42044
42044
|
variant: "ghost",
|
|
42045
42045
|
class: "size-7 px-0",
|
|
42046
42046
|
get loading() {
|
|
42047
|
-
return
|
|
42047
|
+
return te() === "busy";
|
|
42048
42048
|
},
|
|
42049
42049
|
title: "Copy GIF — paste into a Linear comment and Linear uploads it",
|
|
42050
42050
|
"aria-label": "Copy GIF",
|
|
@@ -42052,7 +42052,7 @@ function aQ() {
|
|
|
42052
42052
|
get children() {
|
|
42053
42053
|
return j(M, {
|
|
42054
42054
|
get when() {
|
|
42055
|
-
return
|
|
42055
|
+
return te() === "copied";
|
|
42056
42056
|
},
|
|
42057
42057
|
get fallback() {
|
|
42058
42058
|
return $Z();
|
|
@@ -42067,7 +42067,7 @@ function aQ() {
|
|
|
42067
42067
|
class: "size-7 px-0",
|
|
42068
42068
|
title: "Download GIF",
|
|
42069
42069
|
"aria-label": "Download GIF",
|
|
42070
|
-
onClick:
|
|
42070
|
+
onClick: ee,
|
|
42071
42071
|
get children() {
|
|
42072
42072
|
return eQ();
|
|
42073
42073
|
}
|
|
@@ -42089,7 +42089,7 @@ function aQ() {
|
|
|
42089
42089
|
return C();
|
|
42090
42090
|
} });
|
|
42091
42091
|
}
|
|
42092
|
-
}), null),
|
|
42092
|
+
}), null), D(() => it(n, "src", e().url)), D(() => l.checked = g().attachOnCreate), t;
|
|
42093
42093
|
})()
|
|
42094
42094
|
})
|
|
42095
42095
|
];
|
|
@@ -42780,7 +42780,7 @@ function DQ(e) {
|
|
|
42780
42780
|
return s.setOptions(t), ie(() => {
|
|
42781
42781
|
let e = s._didMount();
|
|
42782
42782
|
s._willUpdate(), ae(e);
|
|
42783
|
-
}),
|
|
42783
|
+
}), E(() => {
|
|
42784
42784
|
s.setOptions(Ve(t, e, { onChange: (t, n) => {
|
|
42785
42785
|
var r;
|
|
42786
42786
|
t._willUpdate(), i(ar(t.getVirtualItems(), { key: "index" })), o(t.getTotalSize()), (r = e.onChange) == null || r.call(e, t, n);
|
|
@@ -42943,10 +42943,10 @@ function JQ(e) {
|
|
|
42943
42943
|
//#endregion
|
|
42944
42944
|
//#region src/panel/views/ActivityView.tsx
|
|
42945
42945
|
Rr();
|
|
42946
|
-
var YQ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\">"), XQ = /*#__PURE__*/ N("<span class=\"tabular-nums text-[10.5px] text-text-faint\">live · updated "), ZQ = /*#__PURE__*/ N("<svg aria-hidden width=11 height=11 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d=\"M1 4.5A7 7 0 0 1 13.5 3\"></path><path d=\"M15 11.5A7 7 0 0 1 2.5 13\"></path><polyline points=\"1 1 1 5 5 5\"></polyline><polyline points=\"15 11 15 15 11 15\">"), QQ = /*#__PURE__*/ N("<div class=\"flex-1 overflow-y-auto\">"), $Q = /*#__PURE__*/ N("<div class=\"min-h-0 flex-1 overflow-y-auto pl-2 pr-3\"><div style=position:relative>"), e$ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 items-center justify-between border-b px-3 py-2\"><span class=\"text-text text-[12px] font-semibold\">My issues</span><div class=\"flex items-center gap-2\">"), t$ = /*#__PURE__*/ N("<div style=position:absolute;top:0;left:0;width:100%>"), n$ = /*#__PURE__*/ N("<button class=\"w-full cursor-pointer rounded-md px-2 py-1.5 text-left hover:bg-surface-2 transition-colors\"><div class=\"flex items-center gap-1.5 min-w-0\"><span class=\"font-mono text-[11px] text-text-dim shrink-0\"></span><span class=\"truncate text-[12.5px] text-text\"></span></div><div class=\"mt-0.5 flex items-center gap-1.5\"><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\">"), r$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[6ch] text-left\">← Back"), i$ = /*#__PURE__*/ N("<span class=\"font-mono text-[11px] text-text-dim shrink-0\">"), a$ = /*#__PURE__*/ N("<span class=\"truncate text-[12px] font-medium text-text\">"), o$ = /*#__PURE__*/ N("<span class=\"text-[11.5px] text-text-faint\">Loading…"), s$ = /*#__PURE__*/ N("<div class=\"flex items-center gap-2\"><span class=\"text-[11px] text-text-dim\">"), c$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-2\">"), l$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-[10.5px] font-semibold uppercase tracking-wide text-text-dim\">Attachments</span><div class=\"flex flex-col gap-1\">"), u$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-2.5\"><span class=\"text-[10.5px] font-semibold uppercase tracking-wide text-text-dim\">Comments"), d$ = /*#__PURE__*/ N("<option value=new>Start NEW agent (@<!>)"), f$ = /*#__PURE__*/ N("<option value=comment>Comment only"), p$ = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=8 cy=8 r=2.2></circle><path d=\"M8 1v3M8 12v3M1 8h3M12 8h3\">"), m$ = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden><path d=\"M13 7.5 8.2 12.3a3.2 3.2 0 0 1-4.5-4.5L8.9 2.6a2.1 2.1 0 0 1 3 3L7.1 10.4a1 1 0 0 1-1.5-1.5l4.3-4.3\">"), h$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[4ch] text-left\">Send"), g$ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 flex-col gap-1 border-b px-3 py-2\"><div class=\"flex items-center gap-2\"></div></div><div class=\"min-h-0 flex-1 overflow-y-auto pl-3 pr-4 py-3 flex flex-col gap-3\"></div><div class=\"border-border shrink-0 border-t p-2.5 flex flex-col gap-1.5\"><div class=\"flex items-center gap-2\">"), _$ = /*#__PURE__*/ N("<div class=\"bg-surface border-border overflow-clip rounded-lg border\"><div class=\"border-border flex h-9 min-w-0 items-center justify-between gap-2 border-b px-3\"><div class=\"flex min-w-0 items-center gap-1.5 text-[11.5px] font-medium\"><span aria-hidden class=\"text-text-dim inline-flex\"></span><span class=\"text-text shrink-0\">Local Claude Code</span><span class=\"text-text-dim shrink-0\">started by you</span><span class=\"text-text-faint shrink-0 tabular-nums\">· </span></div></div><button class=\"hover:bg-surface-2 flex h-9 w-full min-w-0 cursor-pointer items-center gap-2 px-3 text-left transition-colors\"title=\"Open the live thread in the Local tab\"><span></span><span class=\"text-text-faint min-w-0 flex-1 truncate text-[11.5px]\"></span><svg width=14 height=14 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden class=\"text-text-dim shrink-0\"><path d=\"m6 3.5 4.5 4.5L6 12.5\">"), v$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[6ch] text-center\">"), y$ = /*#__PURE__*/ N("<div class=\"flex min-w-0 items-center gap-1.5\"><a target=_blank rel=noreferrer class=\"text-accent min-w-0 truncate text-[11.5px] hover:underline\">"), b$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-0.5\"><div class=\"flex items-center gap-1.5\"><span class=\"text-[11px] font-medium text-text-dim\"></span><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\"></span></div><div class=\"lg-md text-text text-[12px] leading-relaxed break-words\">"), x$ = /*#__PURE__*/ N("<option>Steer running agent<!> · "), S$ = /*#__PURE__*/ N("<span class=\"text-[11px] text-text-dim\">"), C$ = /*#__PURE__*/ N("<p class=\"text-[12px] text-text leading-relaxed whitespace-pre-wrap break-words\">"), w$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-0.5 border-t border-border pt-1.5 mt-0.5\">"), T$ = /*#__PURE__*/ N("<div class=\"bg-surface border-border rounded-lg border p-2.5 flex flex-col gap-1.5\"><div class=\"flex items-center gap-1.5 flex-wrap\"><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\">"), E$ = /*#__PURE__*/ N("<div class=\"flex items-start gap-1.5\"><span class=\"tabular-nums text-[10px] text-text-faint shrink-0 mt-px\"></span><span class=\"text-[11px] text-text-dim break-words min-w-0\">");
|
|
42946
|
+
var YQ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\">"), XQ = /*#__PURE__*/ N("<span class=\"tabular-nums text-[10.5px] text-text-faint\">live · updated "), ZQ = /*#__PURE__*/ N("<svg aria-hidden width=11 height=11 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d=\"M1 4.5A7 7 0 0 1 13.5 3\"></path><path d=\"M15 11.5A7 7 0 0 1 2.5 13\"></path><polyline points=\"1 1 1 5 5 5\"></polyline><polyline points=\"15 11 15 15 11 15\">"), QQ = /*#__PURE__*/ N("<div class=\"flex-1 overflow-y-auto\">"), $Q = /*#__PURE__*/ N("<div class=\"min-h-0 flex-1 overflow-y-auto pl-2 pr-3\"><div style=position:relative>"), e$ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 items-center justify-between border-b px-3 py-2\"><span class=\"text-text text-[12px] font-semibold\">My issues</span><div class=\"flex items-center gap-2\">"), t$ = /*#__PURE__*/ N("<div style=position:absolute;top:0;left:0;width:100%>"), n$ = /*#__PURE__*/ N("<button class=\"w-full cursor-pointer rounded-md px-2 py-1.5 text-left hover:bg-surface-2 transition-colors\"><div class=\"flex items-center gap-1.5 min-w-0\"><span class=\"font-mono text-[11px] text-text-dim shrink-0\"></span><span class=\"truncate text-[12.5px] text-text\"></span></div><div class=\"mt-0.5 flex items-center gap-1.5\"><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\">"), r$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[6ch] text-left\">← Back"), i$ = /*#__PURE__*/ N("<span class=\"font-mono text-[11px] text-text-dim shrink-0\">"), a$ = /*#__PURE__*/ N("<span class=\"truncate text-[12px] font-medium text-text\">"), o$ = /*#__PURE__*/ N("<span class=\"text-[11.5px] text-text-faint\">Loading…"), s$ = /*#__PURE__*/ N("<div class=\"flex items-center gap-2\"><span class=\"text-[11px] text-text-dim\">"), c$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-2\">"), l$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-[10.5px] font-semibold uppercase tracking-wide text-text-dim\">Attachments</span><div class=\"flex flex-col gap-1\">"), u$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-2.5\"><span class=\"text-[10.5px] font-semibold uppercase tracking-wide text-text-dim\">Comments"), d$ = /*#__PURE__*/ N("<option value=new>Start NEW agent (@<!>)"), f$ = /*#__PURE__*/ N("<option value=comment>Comment only"), p$ = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=8 cy=8 r=2.2></circle><path d=\"M8 1v3M8 12v3M1 8h3M12 8h3\">"), m$ = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden><path d=\"M13 7.5 8.2 12.3a3.2 3.2 0 0 1-4.5-4.5L8.9 2.6a2.1 2.1 0 0 1 3 3L7.1 10.4a1 1 0 0 1-1.5-1.5l4.3-4.3\">"), h$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[4ch] text-left\">Send"), g$ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 flex-col gap-1 border-b px-3 py-2\"><div class=\"flex items-center gap-2\"></div></div><div class=\"min-h-0 flex-1 overflow-y-auto pl-3 pr-4 py-3 flex flex-col gap-3\"></div><div class=\"border-border shrink-0 border-t p-2.5 flex flex-col gap-1.5\"><div class=\"flex items-center gap-2\">"), _$ = /*#__PURE__*/ N("<div class=\"bg-surface border-border overflow-clip rounded-lg border\"><div class=\"border-border flex h-9 min-w-0 items-center justify-between gap-2 border-b px-3\"><div class=\"flex min-w-0 items-center gap-1.5 text-[11.5px] font-medium\"><span aria-hidden class=\"text-text-dim inline-flex\"></span><span class=\"text-text shrink-0\">Local Claude Code</span><span class=\"text-text-dim shrink-0\">started by you</span><span class=\"text-text-faint shrink-0 tabular-nums\">· </span></div></div><button class=\"hover:bg-surface-2 flex h-9 w-full min-w-0 cursor-pointer items-center gap-2 px-3 text-left transition-colors\"title=\"Open the live thread in the Local tab\"><span></span><span class=\"text-text-faint min-w-0 flex-1 truncate text-[11.5px]\"></span><svg width=14 height=14 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden class=\"text-text-dim shrink-0\"><path d=\"m6 3.5 4.5 4.5L6 12.5\">"), v$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[6ch] text-center\">Merge"), y$ = /*#__PURE__*/ N("<div class=\"flex min-w-0 items-center gap-1.5\"><a target=_blank rel=noreferrer class=\"text-accent min-w-0 truncate text-[11.5px] hover:underline\">"), b$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-0.5\"><div class=\"flex items-center gap-1.5\"><span class=\"text-[11px] font-medium text-text-dim\"></span><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\"></span></div><div class=\"lg-md text-text text-[12px] leading-relaxed break-words\">"), x$ = /*#__PURE__*/ N("<option>Steer running agent<!> · "), S$ = /*#__PURE__*/ N("<span class=\"text-[11px] text-text-dim\">"), C$ = /*#__PURE__*/ N("<p class=\"text-[12px] text-text leading-relaxed whitespace-pre-wrap break-words\">"), w$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-0.5 border-t border-border pt-1.5 mt-0.5\">"), T$ = /*#__PURE__*/ N("<div class=\"bg-surface border-border rounded-lg border p-2.5 flex flex-col gap-1.5\"><div class=\"flex items-center gap-1.5 flex-wrap\"><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\">"), E$ = /*#__PURE__*/ N("<div class=\"flex items-start gap-1.5\"><span class=\"tabular-nums text-[10px] text-text-faint shrink-0 mt-px\"></span><span class=\"text-[11px] text-text-dim break-words min-w-0\">");
|
|
42947
42947
|
function D$() {
|
|
42948
42948
|
let [e, t] = T(null);
|
|
42949
|
-
return
|
|
42949
|
+
return O(() => {
|
|
42950
42950
|
let e = qA();
|
|
42951
42951
|
e && (t(e), XA());
|
|
42952
42952
|
}), (() => {
|
|
@@ -42974,7 +42974,7 @@ function O$(e) {
|
|
|
42974
42974
|
queryKey: ["my-issues"],
|
|
42975
42975
|
queryFn: uO,
|
|
42976
42976
|
refetchInterval: 12e3
|
|
42977
|
-
})), r =
|
|
42977
|
+
})), r = k(() => n.data ?? []), i = OQ({
|
|
42978
42978
|
get count() {
|
|
42979
42979
|
return r().length;
|
|
42980
42980
|
},
|
|
@@ -43038,7 +43038,7 @@ function O$(e) {
|
|
|
43038
43038
|
return i.getVirtualItems();
|
|
43039
43039
|
},
|
|
43040
43040
|
children: (t) => {
|
|
43041
|
-
let n =
|
|
43041
|
+
let n = k(() => r()[t.index]);
|
|
43042
43042
|
return (() => {
|
|
43043
43043
|
var r = t$();
|
|
43044
43044
|
return P(r, j(k$, {
|
|
@@ -43048,10 +43048,10 @@ function O$(e) {
|
|
|
43048
43048
|
get onSelect() {
|
|
43049
43049
|
return e.onSelect;
|
|
43050
43050
|
}
|
|
43051
|
-
})),
|
|
43051
|
+
})), D((e) => dt(r, "transform", `translateY(${t.start}px)`)), r;
|
|
43052
43052
|
})();
|
|
43053
43053
|
}
|
|
43054
|
-
})),
|
|
43054
|
+
})), D((e) => dt(a, "height", `${i.getTotalSize()}px`)), n;
|
|
43055
43055
|
}
|
|
43056
43056
|
}), null), a;
|
|
43057
43057
|
})();
|
|
@@ -43111,7 +43111,7 @@ function A$(e) {
|
|
|
43111
43111
|
queryFn: DO,
|
|
43112
43112
|
refetchInterval: 5e3,
|
|
43113
43113
|
retry: 0
|
|
43114
|
-
})), o =
|
|
43114
|
+
})), o = k(() => {
|
|
43115
43115
|
let e = n.data?.identifier;
|
|
43116
43116
|
return e ? a.data?.find((t) => t.title.startsWith(e)) : void 0;
|
|
43117
43117
|
}), s = (e) => e.status === "running" ? {
|
|
@@ -43141,7 +43141,7 @@ function A$(e) {
|
|
|
43141
43141
|
}, v = () => {
|
|
43142
43142
|
p(Date.now()), $A("composer"), FZ().catch(() => $A("capture"));
|
|
43143
43143
|
};
|
|
43144
|
-
|
|
43144
|
+
O(() => {
|
|
43145
43145
|
if (ZA() !== "composer") return;
|
|
43146
43146
|
let e = (m.data ?? []).filter((e) => e.grabbedAt >= f());
|
|
43147
43147
|
if (!e.length) return;
|
|
@@ -43151,27 +43151,33 @@ function A$(e) {
|
|
|
43151
43151
|
}).join("\n");
|
|
43152
43152
|
l((e) => `${e ? `${e}\n` : ""}${t}\n`), $A("capture");
|
|
43153
43153
|
});
|
|
43154
|
-
let
|
|
43155
|
-
|
|
43154
|
+
let y = /github\.com\/[^/]+\/[^/]+\/pull\/\d+/i, b = k(() => (n.data?.attachments ?? []).map((e) => e.url).filter((e) => y.test(e))), x = _r(() => ({
|
|
43155
|
+
queryKey: ["pr-status", b().sort().join("|")],
|
|
43156
|
+
queryFn: () => IO(b()),
|
|
43157
|
+
refetchInterval: 3e4,
|
|
43158
|
+
retry: 0,
|
|
43159
|
+
enabled: b().length > 0
|
|
43160
|
+
})), S = (e) => E().has(e) ? "MERGED" : x.data?.[e], [C, w] = T(null), [E, ee] = T(/* @__PURE__ */ new Set()), [te, A] = T(null), ne = async (n) => {
|
|
43161
|
+
A(null), w(n);
|
|
43156
43162
|
try {
|
|
43157
|
-
await LO(n),
|
|
43163
|
+
await LO(n), ee((e) => new Set(e).add(n)), t.invalidateQueries({ queryKey: ["issue", e.issueId] }), t.invalidateQueries({ queryKey: ["my-issues"] }), FQ();
|
|
43158
43164
|
} catch (e) {
|
|
43159
|
-
|
|
43165
|
+
A(e instanceof Error ? `${e.message} (bridge must be running; gh needs merge rights)` : "Merge failed.");
|
|
43160
43166
|
} finally {
|
|
43161
|
-
|
|
43162
|
-
}
|
|
43163
|
-
},
|
|
43164
|
-
|
|
43165
|
-
if (
|
|
43166
|
-
|
|
43167
|
-
let e =
|
|
43168
|
-
e.length ?
|
|
43167
|
+
w(null);
|
|
43168
|
+
}
|
|
43169
|
+
}, re = k(() => n.data ? yO(n.data.comments) : []), [ie, ae] = T("comment"), oe = !1;
|
|
43170
|
+
O(() => {
|
|
43171
|
+
if (oe || !n.data || !i.data) return;
|
|
43172
|
+
oe = !0;
|
|
43173
|
+
let e = re();
|
|
43174
|
+
e.length ? ae(`thread:${e[0].id}`) : n.data.delegate && i.data.cursorAgentId && ae("new");
|
|
43169
43175
|
});
|
|
43170
|
-
let
|
|
43176
|
+
let se = vr(() => ({
|
|
43171
43177
|
mutationFn: async () => {
|
|
43172
43178
|
let t = c().trim();
|
|
43173
43179
|
if (!t) throw Error("Message is empty");
|
|
43174
|
-
let n = i.data ?? {}, r =
|
|
43180
|
+
let n = i.data ?? {}, r = ie();
|
|
43175
43181
|
r.startsWith("thread:") ? await _O(e.issueId, t, r.slice(7)) : r === "new" && n.cursorAgentId ? await vO(e.issueId, t, {
|
|
43176
43182
|
name: n.cursorAgentName,
|
|
43177
43183
|
displayName: n.cursorAgentName ?? "Cursor",
|
|
@@ -43184,7 +43190,7 @@ function A$(e) {
|
|
|
43184
43190
|
onError: (e) => {
|
|
43185
43191
|
d(e.message ?? "Failed to send");
|
|
43186
43192
|
}
|
|
43187
|
-
})),
|
|
43193
|
+
})), ce = k(() => n.data), le = k(() => r.data ?? []);
|
|
43188
43194
|
return (() => {
|
|
43189
43195
|
var t = g$(), r = t.firstChild, a = r.firstChild, d = r.nextSibling, f = d.nextSibling, p = f.firstChild;
|
|
43190
43196
|
return P(a, j(vj, {
|
|
@@ -43197,35 +43203,35 @@ function A$(e) {
|
|
|
43197
43203
|
}
|
|
43198
43204
|
}), null), P(a, j(M, {
|
|
43199
43205
|
get when() {
|
|
43200
|
-
return
|
|
43206
|
+
return ce();
|
|
43201
43207
|
},
|
|
43202
43208
|
get children() {
|
|
43203
43209
|
return [(() => {
|
|
43204
43210
|
var e = i$();
|
|
43205
|
-
return P(e, () =>
|
|
43211
|
+
return P(e, () => ce().identifier), e;
|
|
43206
43212
|
})(), (() => {
|
|
43207
43213
|
var e = a$();
|
|
43208
|
-
return P(e, () =>
|
|
43214
|
+
return P(e, () => ce().title), e;
|
|
43209
43215
|
})()];
|
|
43210
43216
|
}
|
|
43211
43217
|
}), null), P(a, j(M, {
|
|
43212
43218
|
get when() {
|
|
43213
|
-
return $e(() => !!n.isPending)() && !
|
|
43219
|
+
return $e(() => !!n.isPending)() && !ce();
|
|
43214
43220
|
},
|
|
43215
43221
|
get children() {
|
|
43216
43222
|
return o$();
|
|
43217
43223
|
}
|
|
43218
43224
|
}), null), P(r, j(M, {
|
|
43219
43225
|
get when() {
|
|
43220
|
-
return
|
|
43226
|
+
return ce();
|
|
43221
43227
|
},
|
|
43222
43228
|
get children() {
|
|
43223
43229
|
var e = s$(), t = e.firstChild;
|
|
43224
43230
|
return P(e, j(kj, { get color() {
|
|
43225
|
-
return
|
|
43226
|
-
} }), t), P(t, () =>
|
|
43231
|
+
return ce().state.color;
|
|
43232
|
+
} }), t), P(t, () => ce().state.name), P(e, j(Tj, {
|
|
43227
43233
|
get href() {
|
|
43228
|
-
return
|
|
43234
|
+
return ce().url;
|
|
43229
43235
|
},
|
|
43230
43236
|
class: "ml-auto shrink-0",
|
|
43231
43237
|
children: "Open in Linear"
|
|
@@ -43253,57 +43259,71 @@ function A$(e) {
|
|
|
43253
43259
|
}), s), P(s, () => t().word), P(c, (() => {
|
|
43254
43260
|
var t = $e(() => e().status === "done");
|
|
43255
43261
|
return () => t() ? e().result ?? e().lastText : e().lastText;
|
|
43256
|
-
})()),
|
|
43262
|
+
})()), D(() => st(s, `shrink-0 text-[11.5px] font-medium ${t().cls}`)), n;
|
|
43257
43263
|
})();
|
|
43258
43264
|
}
|
|
43259
43265
|
}), null), P(d, j(M, {
|
|
43260
43266
|
get when() {
|
|
43261
|
-
return
|
|
43267
|
+
return le().length > 0;
|
|
43262
43268
|
},
|
|
43263
43269
|
get children() {
|
|
43264
43270
|
var e = c$();
|
|
43265
43271
|
return P(e, j(We, {
|
|
43266
43272
|
get each() {
|
|
43267
|
-
return
|
|
43273
|
+
return le();
|
|
43268
43274
|
},
|
|
43269
43275
|
children: (e) => j(j$, { session: e })
|
|
43270
43276
|
})), e;
|
|
43271
43277
|
}
|
|
43272
43278
|
}), null), P(d, j(M, {
|
|
43273
43279
|
get when() {
|
|
43274
|
-
return $e(() => !!
|
|
43280
|
+
return $e(() => !!ce())() && ce().attachments.length > 0;
|
|
43275
43281
|
},
|
|
43276
43282
|
get children() {
|
|
43277
43283
|
var e = l$(), t = e.firstChild.nextSibling;
|
|
43278
43284
|
return P(t, j(We, {
|
|
43279
43285
|
get each() {
|
|
43280
|
-
return
|
|
43286
|
+
return ce().attachments;
|
|
43281
43287
|
},
|
|
43282
43288
|
children: (e) => {
|
|
43283
43289
|
let t = /github\.com\/[^/]+\/[^/]+\/pull\/\d+/i.test(e.url);
|
|
43284
43290
|
return (() => {
|
|
43285
43291
|
var n = y$(), r = n.firstChild;
|
|
43286
43292
|
return P(r, () => e.title), P(n, j(M, {
|
|
43287
|
-
when
|
|
43293
|
+
get when() {
|
|
43294
|
+
return $e(() => !!(t && S(e.url)))() && S(e.url) !== "OPEN";
|
|
43295
|
+
},
|
|
43296
|
+
get children() {
|
|
43297
|
+
return j(Oj, {
|
|
43298
|
+
get class() {
|
|
43299
|
+
return `ml-auto shrink-0 ${S(e.url) === "MERGED" ? "text-success" : "text-text-faint"}`;
|
|
43300
|
+
},
|
|
43301
|
+
get children() {
|
|
43302
|
+
return S(e.url) === "MERGED" ? "✓ merged" : "closed";
|
|
43303
|
+
}
|
|
43304
|
+
});
|
|
43305
|
+
}
|
|
43306
|
+
}), null), P(n, j(M, {
|
|
43307
|
+
get when() {
|
|
43308
|
+
return t && (!S(e.url) || S(e.url) === "OPEN");
|
|
43309
|
+
},
|
|
43288
43310
|
get children() {
|
|
43289
43311
|
return j(vj, {
|
|
43290
43312
|
variant: "primary",
|
|
43291
43313
|
class: "ml-auto h-6 shrink-0 px-2 text-[11px]",
|
|
43292
43314
|
get loading() {
|
|
43293
|
-
return
|
|
43315
|
+
return C() === e.url;
|
|
43294
43316
|
},
|
|
43295
|
-
get
|
|
43296
|
-
return x().
|
|
43317
|
+
get title() {
|
|
43318
|
+
return x.isError ? "PR state unknown — restart the bridge (npx linear-grab-bridge) for live merge status" : "Squash-merge this PR via the bridge gh — reviewed the demo? Ship it.";
|
|
43297
43319
|
},
|
|
43298
|
-
|
|
43299
|
-
onClick: () => void ee(e.url),
|
|
43320
|
+
onClick: () => void ne(e.url),
|
|
43300
43321
|
get children() {
|
|
43301
|
-
|
|
43302
|
-
return P(t, () => x().has(e.url) ? "Merged ✓" : "Merge"), t;
|
|
43322
|
+
return v$();
|
|
43303
43323
|
}
|
|
43304
43324
|
});
|
|
43305
43325
|
}
|
|
43306
|
-
}), null),
|
|
43326
|
+
}), null), D((t) => {
|
|
43307
43327
|
var n = e.url, i = e.title;
|
|
43308
43328
|
return n !== t.e && it(r, "href", t.e = n), i !== t.t && it(r, "title", t.t = i), t;
|
|
43309
43329
|
}, {
|
|
@@ -43314,24 +43334,24 @@ function A$(e) {
|
|
|
43314
43334
|
}
|
|
43315
43335
|
}), null), P(t, j(M, {
|
|
43316
43336
|
get when() {
|
|
43317
|
-
return
|
|
43337
|
+
return te();
|
|
43318
43338
|
},
|
|
43319
43339
|
get children() {
|
|
43320
43340
|
return j(jj, { get message() {
|
|
43321
|
-
return
|
|
43341
|
+
return te();
|
|
43322
43342
|
} });
|
|
43323
43343
|
}
|
|
43324
43344
|
}), null), e;
|
|
43325
43345
|
}
|
|
43326
43346
|
}), null), P(d, j(M, {
|
|
43327
43347
|
get when() {
|
|
43328
|
-
return $e(() => !!
|
|
43348
|
+
return $e(() => !!ce())() && ce().comments.length > 0;
|
|
43329
43349
|
},
|
|
43330
43350
|
get children() {
|
|
43331
43351
|
var e = u$();
|
|
43332
43352
|
return e.firstChild, P(e, j(We, {
|
|
43333
43353
|
get each() {
|
|
43334
|
-
return
|
|
43354
|
+
return ce().comments;
|
|
43335
43355
|
},
|
|
43336
43356
|
children: (e) => (() => {
|
|
43337
43357
|
var t = b$(), n = t.firstChild, r = n.firstChild, i = r.nextSibling, a = n.nextSibling;
|
|
@@ -43342,13 +43362,13 @@ function A$(e) {
|
|
|
43342
43362
|
get children() {
|
|
43343
43363
|
return j(Oj, { children: "agent" });
|
|
43344
43364
|
}
|
|
43345
|
-
}), i), P(i, () => Nj(e.createdAt)),
|
|
43365
|
+
}), i), P(i, () => Nj(e.createdAt)), D(() => a.innerHTML = JQ(e.body)), t;
|
|
43346
43366
|
})()
|
|
43347
43367
|
}), null), e;
|
|
43348
43368
|
}
|
|
43349
43369
|
}), null), P(d, j(M, {
|
|
43350
43370
|
get when() {
|
|
43351
|
-
return $e(() => !!(
|
|
43371
|
+
return $e(() => !!(ce() && ce().comments.length === 0))() && le().length === 0;
|
|
43352
43372
|
},
|
|
43353
43373
|
get children() {
|
|
43354
43374
|
return j(Aj, {
|
|
@@ -43358,7 +43378,7 @@ function A$(e) {
|
|
|
43358
43378
|
}
|
|
43359
43379
|
}), null), P(d, j(M, {
|
|
43360
43380
|
get when() {
|
|
43361
|
-
return $e(() => !!n.isError)() && !
|
|
43381
|
+
return $e(() => !!n.isError)() && !ce();
|
|
43362
43382
|
},
|
|
43363
43383
|
get children() {
|
|
43364
43384
|
return j(Aj, {
|
|
@@ -43385,26 +43405,26 @@ function A$(e) {
|
|
|
43385
43405
|
},
|
|
43386
43406
|
onInput: (e) => l(e.target.value),
|
|
43387
43407
|
get disabled() {
|
|
43388
|
-
return
|
|
43408
|
+
return se.isPending;
|
|
43389
43409
|
}
|
|
43390
43410
|
}), p), P(p, j(Sj, {
|
|
43391
43411
|
class: "min-w-0 flex-1",
|
|
43392
43412
|
get value() {
|
|
43393
|
-
return
|
|
43413
|
+
return ie();
|
|
43394
43414
|
},
|
|
43395
|
-
onChange: (e) =>
|
|
43415
|
+
onChange: (e) => ae(e.currentTarget.value),
|
|
43396
43416
|
get children() {
|
|
43397
43417
|
return [
|
|
43398
43418
|
j(We, {
|
|
43399
43419
|
get each() {
|
|
43400
|
-
return
|
|
43420
|
+
return re();
|
|
43401
43421
|
},
|
|
43402
43422
|
children: (e, t) => (() => {
|
|
43403
43423
|
var n = x$(), r = n.firstChild.nextSibling;
|
|
43404
43424
|
return r.nextSibling, P(n, (() => {
|
|
43405
|
-
var e = $e(() =>
|
|
43425
|
+
var e = $e(() => re().length > 1);
|
|
43406
43426
|
return () => e() ? ` #${t() + 1}` : "";
|
|
43407
|
-
})(), r), P(n, () => Nj(e.createdAt), null),
|
|
43427
|
+
})(), r), P(n, () => Nj(e.createdAt), null), D(() => n.selected = ie() === `thread:${e.id}`), D(() => n.value = `thread:${e.id}`), n;
|
|
43408
43428
|
})()
|
|
43409
43429
|
}),
|
|
43410
43430
|
j(M, {
|
|
@@ -43413,12 +43433,12 @@ function A$(e) {
|
|
|
43413
43433
|
},
|
|
43414
43434
|
get children() {
|
|
43415
43435
|
var e = d$(), t = e.firstChild.nextSibling;
|
|
43416
|
-
return t.nextSibling, P(e, () => i.data?.cursorAgentName ?? "Cursor", t),
|
|
43436
|
+
return t.nextSibling, P(e, () => i.data?.cursorAgentName ?? "Cursor", t), D(() => e.selected = ie() === "new"), e;
|
|
43417
43437
|
}
|
|
43418
43438
|
}),
|
|
43419
43439
|
(() => {
|
|
43420
43440
|
var e = f$();
|
|
43421
|
-
return
|
|
43441
|
+
return D(() => e.selected = ie() === "comment"), e;
|
|
43422
43442
|
})()
|
|
43423
43443
|
];
|
|
43424
43444
|
}
|
|
@@ -43447,12 +43467,12 @@ function A$(e) {
|
|
|
43447
43467
|
class: "min-w-[52px] shrink-0",
|
|
43448
43468
|
variant: "primary",
|
|
43449
43469
|
get loading() {
|
|
43450
|
-
return
|
|
43470
|
+
return se.isPending;
|
|
43451
43471
|
},
|
|
43452
43472
|
get disabled() {
|
|
43453
43473
|
return c().trim().length === 0;
|
|
43454
43474
|
},
|
|
43455
|
-
onClick: () =>
|
|
43475
|
+
onClick: () => se.mutate(),
|
|
43456
43476
|
get children() {
|
|
43457
43477
|
return h$();
|
|
43458
43478
|
}
|
|
@@ -43460,10 +43480,10 @@ function A$(e) {
|
|
|
43460
43480
|
})();
|
|
43461
43481
|
}
|
|
43462
43482
|
function j$(e) {
|
|
43463
|
-
let t =
|
|
43483
|
+
let t = k(() => {
|
|
43464
43484
|
let t = e.session.status;
|
|
43465
43485
|
return /complete|done/i.test(t) ? "var(--color-success)" : /await|pending|elicit/i.test(t) ? "var(--color-warn)" : "var(--color-accent)";
|
|
43466
|
-
}), n =
|
|
43486
|
+
}), n = k(() => e.session.activities.slice(-10));
|
|
43467
43487
|
return (() => {
|
|
43468
43488
|
var r = T$(), i = r.firstChild, a = i.firstChild;
|
|
43469
43489
|
return P(i, j(Oj, {
|
|
@@ -43535,8 +43555,14 @@ var M$ = /*#__PURE__*/ N("<div class=\"border-accent/40 bg-accent-soft self-end
|
|
|
43535
43555
|
id: "haiku",
|
|
43536
43556
|
label: "Haiku"
|
|
43537
43557
|
}
|
|
43538
|
-
]
|
|
43539
|
-
function
|
|
43558
|
+
];
|
|
43559
|
+
function f1(e, t) {
|
|
43560
|
+
let n = e.split(".").map(Number), r = t.split(".").map(Number);
|
|
43561
|
+
for (let e = 0; e < 3; e++) if ((n[e] ?? 0) !== (r[e] ?? 0)) return (n[e] ?? 0) < (r[e] ?? 0);
|
|
43562
|
+
return !1;
|
|
43563
|
+
}
|
|
43564
|
+
var p1 = (e) => e == null ? "–" : e >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e5 ? 0 : 1)}k` : String(e);
|
|
43565
|
+
function m1() {
|
|
43540
43566
|
let e = sr(), t = _r(() => ({
|
|
43541
43567
|
queryKey: ["bridge-health"],
|
|
43542
43568
|
queryFn: EO,
|
|
@@ -43576,7 +43602,7 @@ function p1() {
|
|
|
43576
43602
|
})), v = () => {
|
|
43577
43603
|
g(Date.now()), $A("local"), FZ().catch(() => $A("capture"));
|
|
43578
43604
|
};
|
|
43579
|
-
|
|
43605
|
+
O(() => {
|
|
43580
43606
|
if (ZA() !== "local") return;
|
|
43581
43607
|
let e = (_.data ?? []).filter((e) => e.grabbedAt >= h());
|
|
43582
43608
|
if (!e.length) return;
|
|
@@ -43605,27 +43631,27 @@ function p1() {
|
|
|
43605
43631
|
})), S = vr(() => ({
|
|
43606
43632
|
mutationFn: (e) => NO(e),
|
|
43607
43633
|
onSuccess: l
|
|
43608
|
-
})), C, w = !0,
|
|
43634
|
+
})), C, w = !0, E = () => {
|
|
43609
43635
|
C && (w = C.scrollTop + C.clientHeight >= C.scrollHeight - 48);
|
|
43610
43636
|
};
|
|
43611
|
-
|
|
43637
|
+
O(() => {
|
|
43612
43638
|
let e = s.data?.tail?.length ?? 0;
|
|
43613
43639
|
r(), !(!C || !e || !w) && requestAnimationFrame(() => {
|
|
43614
43640
|
C && (C.scrollTop = C.scrollHeight);
|
|
43615
43641
|
});
|
|
43616
43642
|
});
|
|
43617
|
-
let [
|
|
43643
|
+
let [ee, te] = T(null), A = async (e) => {
|
|
43618
43644
|
try {
|
|
43619
|
-
await navigator.clipboard.writeText(zO(e)),
|
|
43645
|
+
await navigator.clipboard.writeText(zO(e)), te(e.id), setTimeout(() => te(null), 1800);
|
|
43620
43646
|
} catch {}
|
|
43621
43647
|
}, ne = (e) => e === "running" ? "var(--color-accent)" : e === "done" ? "var(--color-success)" : e === "stopped" ? "var(--color-warn)" : "var(--color-danger)", re = (e) => {
|
|
43622
|
-
let t = e.line.kind, n =
|
|
43648
|
+
let t = e.line.kind, n = k(() => JQ(e.line.text));
|
|
43623
43649
|
return t === "user" ? (() => {
|
|
43624
43650
|
var e = M$(), t = e.firstChild.nextSibling;
|
|
43625
|
-
return
|
|
43651
|
+
return D(() => t.innerHTML = n()), e;
|
|
43626
43652
|
})() : t === "assistant" || t === "result" ? (() => {
|
|
43627
43653
|
var e = N$(), r = e.firstChild, i = r.nextSibling;
|
|
43628
|
-
return st(e, `bg-surface rounded-lg border px-2.5 py-1.5 ${t === "result" ? "border-success/40" : "border-border"}`), st(r, `mb-0.5 text-[9.5px] font-semibold tracking-wide uppercase ${t === "result" ? "text-success" : "text-text-faint"}`), P(r, t === "result" ? "Result" : "Claude"),
|
|
43654
|
+
return st(e, `bg-surface rounded-lg border px-2.5 py-1.5 ${t === "result" ? "border-success/40" : "border-border"}`), st(r, `mb-0.5 text-[9.5px] font-semibold tracking-wide uppercase ${t === "result" ? "text-success" : "text-text-faint"}`), P(r, t === "result" ? "Result" : "Claude"), D(() => i.innerHTML = n()), e;
|
|
43629
43655
|
})() : (() => {
|
|
43630
43656
|
var n = P$();
|
|
43631
43657
|
return st(n, `font-mono px-1 text-[10px] leading-relaxed break-words ${t === "subagent" ? "text-warn" : t === "stderr" ? "text-danger" : "text-text-faint"}`), P(n, () => e.line.text), n;
|
|
@@ -43646,8 +43672,27 @@ function p1() {
|
|
|
43646
43672
|
});
|
|
43647
43673
|
},
|
|
43648
43674
|
get children() {
|
|
43649
|
-
|
|
43650
|
-
|
|
43675
|
+
return [j(M, {
|
|
43676
|
+
get when() {
|
|
43677
|
+
return f1(t.data.version, "0.15.1");
|
|
43678
|
+
},
|
|
43679
|
+
get children() {
|
|
43680
|
+
return j(Oj, {
|
|
43681
|
+
class: "text-warn",
|
|
43682
|
+
title: "Ctrl+C the old process, then: npx linear-grab-bridge",
|
|
43683
|
+
get children() {
|
|
43684
|
+
return [
|
|
43685
|
+
"v",
|
|
43686
|
+
$e(() => t.data.version),
|
|
43687
|
+
" outdated — restart"
|
|
43688
|
+
];
|
|
43689
|
+
}
|
|
43690
|
+
});
|
|
43691
|
+
}
|
|
43692
|
+
}), (() => {
|
|
43693
|
+
var e = F$(), n = e.firstChild;
|
|
43694
|
+
return P(e, () => t.data.active, n), P(e, () => t.data.cwd.split("/").slice(-2).join("/"), null), D(() => it(e, "title", t.data?.cwd)), e;
|
|
43695
|
+
})()];
|
|
43651
43696
|
}
|
|
43652
43697
|
}), null), P(l, j(M, {
|
|
43653
43698
|
get when() {
|
|
@@ -43691,7 +43736,7 @@ function p1() {
|
|
|
43691
43736
|
get fallback() {
|
|
43692
43737
|
return (() => {
|
|
43693
43738
|
var t = $$();
|
|
43694
|
-
return
|
|
43739
|
+
return D((n) => dt(t, "background", ne(e.status))), t;
|
|
43695
43740
|
})();
|
|
43696
43741
|
},
|
|
43697
43742
|
get children() {
|
|
@@ -43744,7 +43789,7 @@ function p1() {
|
|
|
43744
43789
|
},
|
|
43745
43790
|
get children() {
|
|
43746
43791
|
var t = z$(), n = t.firstChild.nextSibling;
|
|
43747
|
-
return n.nextSibling, P(t, () =>
|
|
43792
|
+
return n.nextSibling, P(t, () => p1(e.usage.contextTokens), n), P(t, () => p1(e.usage.outputTokens), null), P(t, (() => {
|
|
43748
43793
|
var t = $e(() => !!e.usage.costUsd);
|
|
43749
43794
|
return () => t() ? ` · $${e.usage.costUsd.toFixed(2)}` : "";
|
|
43750
43795
|
})(), null), t;
|
|
@@ -43791,7 +43836,7 @@ function p1() {
|
|
|
43791
43836
|
children: "Remove"
|
|
43792
43837
|
});
|
|
43793
43838
|
}
|
|
43794
|
-
}), null),
|
|
43839
|
+
}), null), D(() => it(n, "title", e.worktree.path)), t;
|
|
43795
43840
|
}
|
|
43796
43841
|
}), g), P(g, j(Sj, {
|
|
43797
43842
|
class: "h-7 w-auto min-w-0 flex-1 text-[11px]",
|
|
@@ -43808,7 +43853,7 @@ function p1() {
|
|
|
43808
43853
|
each: d1,
|
|
43809
43854
|
children: (t) => (() => {
|
|
43810
43855
|
var n = t1();
|
|
43811
|
-
return P(n, () => t.label),
|
|
43856
|
+
return P(n, () => t.label), D(() => n.selected = (e.pendingModel ?? e.model ?? "") === t.id), D(() => n.value = t.id), n;
|
|
43812
43857
|
})()
|
|
43813
43858
|
});
|
|
43814
43859
|
}
|
|
@@ -43838,7 +43883,7 @@ function p1() {
|
|
|
43838
43883
|
get children() {
|
|
43839
43884
|
return j(M, {
|
|
43840
43885
|
get when() {
|
|
43841
|
-
return
|
|
43886
|
+
return ee() === e.id;
|
|
43842
43887
|
},
|
|
43843
43888
|
get fallback() {
|
|
43844
43889
|
return r1();
|
|
@@ -43924,7 +43969,7 @@ function p1() {
|
|
|
43924
43969
|
})()
|
|
43925
43970
|
];
|
|
43926
43971
|
}
|
|
43927
|
-
})),
|
|
43972
|
+
})), D(() => it(n, "title", e.path)), t;
|
|
43928
43973
|
})()
|
|
43929
43974
|
}), null), P(e, j(We, {
|
|
43930
43975
|
get each() {
|
|
@@ -43945,7 +43990,7 @@ function p1() {
|
|
|
43945
43990
|
get children() {
|
|
43946
43991
|
return ["PR · ", $e(() => e.state.toLowerCase())];
|
|
43947
43992
|
}
|
|
43948
|
-
}), n), P(n, () => e.title),
|
|
43993
|
+
}), n), P(n, () => e.title), D((t) => {
|
|
43949
43994
|
var r = e.url, i = e.title;
|
|
43950
43995
|
return r !== t.e && it(n, "href", t.e = r), i !== t.t && it(n, "title", t.t = i), t;
|
|
43951
43996
|
}, {
|
|
@@ -43958,7 +44003,7 @@ function p1() {
|
|
|
43958
44003
|
}),
|
|
43959
44004
|
(() => {
|
|
43960
44005
|
var e = K$();
|
|
43961
|
-
return e.addEventListener("scroll",
|
|
44006
|
+
return e.addEventListener("scroll", E), pt((e) => {
|
|
43962
44007
|
C = e, w = !0;
|
|
43963
44008
|
}, e), P(e, j(M, {
|
|
43964
44009
|
get when() {
|
|
@@ -44060,13 +44105,13 @@ function p1() {
|
|
|
44060
44105
|
}
|
|
44061
44106
|
//#endregion
|
|
44062
44107
|
//#region src/panel/views/PrsView.tsx
|
|
44063
|
-
var
|
|
44064
|
-
function
|
|
44108
|
+
var h1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] tabular-nums\">/<!> from your issues"), g1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1.5\">"), _1 = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 items-center justify-between border-b px-3 py-2\"><span class=\"text-text text-[12px] font-semibold\">Pull requests</span></div><div class=\"border-border flex shrink-0 items-center gap-1.5 border-b px-3 py-1.5\"><div class=\"bg-surface-2 border-border flex shrink-0 rounded-md border p-0.5\"></div></div><div class=\"min-h-0 flex-1 overflow-y-auto pt-2 pb-3 pl-2 pr-3\">"), v1 = /*#__PURE__*/ N("<span class=\"text-warn text-[10.5px]\"title=\"Merge states come from gh via the bridge\">states unknown — restart the bridge"), y1 = /*#__PURE__*/ N("<button>"), b1 = /*#__PURE__*/ N("<span class=\"text-[12px] leading-none\">✓"), x1 = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=8 cy=8 r=6></circle><circle cx=8 cy=8 r=1.6 fill=currentColor stroke=none>"), S1 = /*#__PURE__*/ N("<span class=\"text-success text-[12px] leading-none\">✓"), C1 = /*#__PURE__*/ N("<div class=\"bg-surface border-border flex flex-col gap-1.5 rounded-lg border p-2.5\"><a target=_blank rel=noreferrer class=\"text-accent truncate text-[12.5px] font-medium hover:underline\"></a><div class=\"flex min-w-0 items-center gap-1.5\"><span class=\"font-mono text-text-dim shrink-0 text-[11px]\"></span><span class=\"text-text-dim truncate text-[11.5px]\"></span><span class=\"text-text-faint ml-auto shrink-0 text-[10.5px] tabular-nums\"></span></div><div class=\"flex min-w-0 flex-wrap items-center gap-1.5\"><div class=\"ml-auto flex shrink-0 items-center gap-1\">"), w1 = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=4 cy=3.5 r=1.5></circle><circle cx=4 cy=12.5 r=1.5></circle><circle cx=12 cy=8 r=1.5></circle><path d=\"M4 5v6M4 6.5c0 2 2 3 4.5 3h2\">"), T1 = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linejoin=round aria-hidden><rect x=5.5 y=5.5 width=9 height=9 rx=1.5></rect><path d=\"M10.5 5.5v-2a2 2 0 0 0-2-2h-5a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h2\">"), E1 = /github\.com\/[^/]+\/[^/]+\/pull\/\d+/i;
|
|
44109
|
+
function D1(e) {
|
|
44065
44110
|
let t = _r(() => ({
|
|
44066
44111
|
queryKey: ["my-issues"],
|
|
44067
44112
|
queryFn: uO,
|
|
44068
44113
|
refetchInterval: 15e3
|
|
44069
|
-
})), n =
|
|
44114
|
+
})), n = k(() => (t.data ?? []).flatMap((e) => (e.attachments ?? []).filter((e) => E1.test(e.url)).map((t) => ({
|
|
44070
44115
|
issue: e,
|
|
44071
44116
|
attachment: t
|
|
44072
44117
|
})))), r = _r(() => ({
|
|
@@ -44080,7 +44125,7 @@ function w1(e) {
|
|
|
44080
44125
|
refetchInterval: 3e4,
|
|
44081
44126
|
retry: 0,
|
|
44082
44127
|
enabled: n().length > 0
|
|
44083
|
-
})), a = (e) => g().has(e.attachment.url) ? "MERGED" : i.data?.[e.attachment.url], o = (e) => !!r.data?.some((t) => t.title.startsWith(e.issue.identifier)), [s, c] = T("all"), [l, u] = T(""), d =
|
|
44128
|
+
})), a = (e) => g().has(e.attachment.url) ? "MERGED" : i.data?.[e.attachment.url], o = (e) => !!r.data?.some((t) => t.title.startsWith(e.issue.identifier)), [s, c] = T("all"), [l, u] = T(""), d = k(() => {
|
|
44084
44129
|
let e = l().trim().toLowerCase();
|
|
44085
44130
|
return n().filter((t) => {
|
|
44086
44131
|
let n = t.issue.state.type;
|
|
@@ -44103,10 +44148,21 @@ function w1(e) {
|
|
|
44103
44148
|
} catch {}
|
|
44104
44149
|
};
|
|
44105
44150
|
return (() => {
|
|
44106
|
-
var r =
|
|
44107
|
-
|
|
44108
|
-
var
|
|
44109
|
-
return P(p,
|
|
44151
|
+
var r = _1(), p = r.firstChild;
|
|
44152
|
+
p.firstChild;
|
|
44153
|
+
var h = p.nextSibling, _ = h.firstChild, b = h.nextSibling;
|
|
44154
|
+
return P(p, j(M, {
|
|
44155
|
+
get when() {
|
|
44156
|
+
return !i.isError;
|
|
44157
|
+
},
|
|
44158
|
+
get fallback() {
|
|
44159
|
+
return v1();
|
|
44160
|
+
},
|
|
44161
|
+
get children() {
|
|
44162
|
+
var e = h1(), t = e.firstChild, r = t.nextSibling;
|
|
44163
|
+
return r.nextSibling, P(e, () => d().length, t), P(e, () => n().length, r), e;
|
|
44164
|
+
}
|
|
44165
|
+
}), null), P(_, j(We, {
|
|
44110
44166
|
each: [
|
|
44111
44167
|
{
|
|
44112
44168
|
id: "all",
|
|
@@ -44126,17 +44182,17 @@ function w1(e) {
|
|
|
44126
44182
|
}
|
|
44127
44183
|
],
|
|
44128
44184
|
children: (e) => (() => {
|
|
44129
|
-
var t =
|
|
44130
|
-
return t.$$click = () => c(e.id), P(t, () => e.label),
|
|
44185
|
+
var t = y1();
|
|
44186
|
+
return t.$$click = () => c(e.id), P(t, () => e.label), D(() => st(t, `rounded-[5px] px-2 py-0.5 text-[11px] font-medium transition-colors ${s() === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
|
|
44131
44187
|
})()
|
|
44132
|
-
})), P(
|
|
44188
|
+
})), P(h, j(bj, {
|
|
44133
44189
|
class: "h-6 min-w-0 flex-1 text-[11px]",
|
|
44134
44190
|
placeholder: "Search PRs…",
|
|
44135
44191
|
get value() {
|
|
44136
44192
|
return l();
|
|
44137
44193
|
},
|
|
44138
44194
|
onInput: (e) => u(e.currentTarget.value)
|
|
44139
|
-
}), null), P(
|
|
44195
|
+
}), null), P(b, j(M, {
|
|
44140
44196
|
get when() {
|
|
44141
44197
|
return d().length > 0;
|
|
44142
44198
|
},
|
|
@@ -44149,13 +44205,13 @@ function w1(e) {
|
|
|
44149
44205
|
});
|
|
44150
44206
|
},
|
|
44151
44207
|
get children() {
|
|
44152
|
-
var t =
|
|
44208
|
+
var t = g1();
|
|
44153
44209
|
return P(t, j(We, {
|
|
44154
44210
|
get each() {
|
|
44155
44211
|
return d();
|
|
44156
44212
|
},
|
|
44157
44213
|
children: (t) => (() => {
|
|
44158
|
-
var n =
|
|
44214
|
+
var n = C1(), r = n.firstChild, i = r.nextSibling, s = i.firstChild, c = s.nextSibling, l = c.nextSibling, u = i.nextSibling, d = u.firstChild;
|
|
44159
44215
|
return P(r, () => t.attachment.title || t.attachment.url), P(i, j(kj, { get color() {
|
|
44160
44216
|
return t.issue.state.color;
|
|
44161
44217
|
} }), s), P(s, () => t.issue.identifier), P(c, () => t.issue.title), P(l, () => Nj(t.issue.updatedAt)), P(u, j(Oj, { get children() {
|
|
@@ -44232,10 +44288,10 @@ function w1(e) {
|
|
|
44232
44288
|
return g().has(t.attachment.url);
|
|
44233
44289
|
},
|
|
44234
44290
|
get fallback() {
|
|
44235
|
-
return
|
|
44291
|
+
return w1();
|
|
44236
44292
|
},
|
|
44237
44293
|
get children() {
|
|
44238
|
-
return
|
|
44294
|
+
return b1();
|
|
44239
44295
|
}
|
|
44240
44296
|
});
|
|
44241
44297
|
}
|
|
@@ -44248,7 +44304,7 @@ function w1(e) {
|
|
|
44248
44304
|
YA("activity", t.issue.id), e.onOpenIssue();
|
|
44249
44305
|
},
|
|
44250
44306
|
get children() {
|
|
44251
|
-
return
|
|
44307
|
+
return x1();
|
|
44252
44308
|
}
|
|
44253
44309
|
}), null), P(d, j(vj, {
|
|
44254
44310
|
variant: "ghost",
|
|
@@ -44262,14 +44318,14 @@ function w1(e) {
|
|
|
44262
44318
|
return f() === t.attachment.id;
|
|
44263
44319
|
},
|
|
44264
44320
|
get fallback() {
|
|
44265
|
-
return
|
|
44321
|
+
return T1();
|
|
44266
44322
|
},
|
|
44267
44323
|
get children() {
|
|
44268
|
-
return
|
|
44324
|
+
return S1();
|
|
44269
44325
|
}
|
|
44270
44326
|
});
|
|
44271
44327
|
}
|
|
44272
|
-
}), null),
|
|
44328
|
+
}), null), D((e) => {
|
|
44273
44329
|
var n = t.attachment.url, i = t.attachment.title;
|
|
44274
44330
|
return n !== e.e && it(r, "href", e.e = n), i !== e.t && it(r, "title", e.t = i), e;
|
|
44275
44331
|
}, {
|
|
@@ -44285,13 +44341,13 @@ function w1(e) {
|
|
|
44285
44341
|
//#endregion
|
|
44286
44342
|
//#region src/lib/linear/auth.ts
|
|
44287
44343
|
rt(["click"]), Rr();
|
|
44288
|
-
function
|
|
44344
|
+
function O1(e) {
|
|
44289
44345
|
let t = "";
|
|
44290
44346
|
for (let n of e) t += String.fromCharCode(n);
|
|
44291
44347
|
return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
44292
44348
|
}
|
|
44293
|
-
async function
|
|
44294
|
-
let t =
|
|
44349
|
+
async function k1(e) {
|
|
44350
|
+
let t = O1(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(32))), n = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(t)), r = O1(new Uint8Array(n)), i = O1(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16))), a = chrome.identity.getRedirectURL(), o = new URL("https://linear.app/oauth/authorize");
|
|
44295
44351
|
o.searchParams.set("client_id", e), o.searchParams.set("redirect_uri", a), o.searchParams.set("response_type", "code"), o.searchParams.set("scope", "read,write"), o.searchParams.set("state", i), o.searchParams.set("code_challenge", r), o.searchParams.set("code_challenge_method", "S256");
|
|
44296
44352
|
let s = await chrome.identity.launchWebAuthFlow({
|
|
44297
44353
|
url: o.toString(),
|
|
@@ -44319,24 +44375,24 @@ async function E1(e) {
|
|
|
44319
44375
|
linearOauthClientId: e
|
|
44320
44376
|
});
|
|
44321
44377
|
}
|
|
44322
|
-
async function
|
|
44378
|
+
async function A1() {
|
|
44323
44379
|
await wr({
|
|
44324
44380
|
linearAccessToken: void 0,
|
|
44325
44381
|
linearApiKey: void 0
|
|
44326
44382
|
});
|
|
44327
44383
|
}
|
|
44328
44384
|
Rr(), br(), Nx(), mD();
|
|
44329
|
-
var
|
|
44330
|
-
function
|
|
44385
|
+
var j1 = /*#__PURE__*/ N("<div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\">"), M1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Cloud: picking an element opens the panel to draft & delegate to the Cursor agent. Local (react-grab style): picking auto-copies the element's context — source, stack, and your skills/memory paths — straight to the clipboard for a local Claude Code or Cursor session; the panel stays out of the way. Both share the same picker; switch anytime."), N1 = /*#__PURE__*/ N("<label class=\"flex cursor-pointer items-center gap-2 select-none\"><input type=checkbox class=\"accent-accent rounded\"><span class=\"text-text text-[12px]\">Element screenshots"), P1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Captures a highlighted screenshot of each picked element and attaches it to the issue. Costs a beat on huge pages — with this off, picking is instant (pure react-grab speed)."), F1 = /*#__PURE__*/ N("<span class=text-text>Connected as <span class=font-medium></span> · <span class=text-text-dim>"), I1 = /*#__PURE__*/ N("<div class=\"bg-surface border-border flex items-center justify-between rounded-lg border p-2.5\"><span class=\"text-text text-[12px]\">"), L1 = /*#__PURE__*/ N("<option value>Select a team…"), R1 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">No agents found — install the Cursor integration in Linear first."), z1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Empty = the default above (computer-use testing, video demo, PR + review babysitting)."), B1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1.5\">"), V1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-text-dim text-[11px] font-medium\">Mode</span><div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\"></div><span class=\"text-text-faint text-[10.5px] leading-snug\">Beside page squeezes the app next to the panel, DevTools-style — nothing gets covered. Also toggleable from the dock icon in the panel header."), H1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-text-dim text-[11px] font-medium\">Dock side</span><div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\"></div><span class=\"text-text-faint text-[10.5px] leading-snug\">The launcher pill is draggable — park it anywhere it doesn't cover your app."), U1 = /*#__PURE__*/ N("<option value>Select a channel…"), W1 = /*#__PURE__*/ N("<label class=\"flex cursor-pointer items-center gap-2 select-none\"><input type=checkbox class=\"accent-accent rounded\"><span class=\"text-text text-[12px]\">Announce new issues on create"), G1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">⚠️ Tokens are embedded in issue Agent-instructions so agents can post the finished demo — everyone who can read the issue can read them. Use single-channel-scoped bots."), K1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-text-dim text-[11px] font-medium\">Provider preference</span><div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\"><button>Auto</button><button>OpenAI</button><button>Anthropic"), q1 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">"), J1 = /*#__PURE__*/ N("<div class=min-h-[2lh]>"), Y1 = /*#__PURE__*/ N("<ol class=\"text-text-faint flex list-decimal flex-col gap-1 pl-4 text-[11px] leading-relaxed\"><li>Pick an element on your running dev app.</li><li>Draft the issue (AI optional).</li><li>Create + delegate — Cursor's cloud agent fixes it and opens a PR.</li><li>Track and steer it from Activity."), X1 = /*#__PURE__*/ N("<div class=\"flex h-full flex-col gap-5 overflow-y-auto pt-3 pb-6 pl-3 pr-4\">"), Z1 = /*#__PURE__*/ N("<button>"), Q1 = /*#__PURE__*/ N("<div class=\"flex gap-1.5\">"), $1 = /*#__PURE__*/ N("<p class=\"text-text-faint text-center text-[10.5px]\">or"), e0 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Register this callback URL in your Linear OAuth app config:<br><span class=\"font-mono text-[10.5px] break-all\">"), t0 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-3\">"), n0 = /*#__PURE__*/ N("<span class=text-text-dim>Connected — verifying…"), r0 = /*#__PURE__*/ N("<option> (<!>)"), i0 = /*#__PURE__*/ N("<option value>Select the agent…"), a0 = /*#__PURE__*/ N("<option>"), o0 = /*#__PURE__*/ N("<option>#"), s0 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">No key set — AI drafting disabled, manual drafting still works.");
|
|
44386
|
+
function c0() {
|
|
44331
44387
|
let e = sr(), t = _r(() => ({
|
|
44332
44388
|
queryKey: ["settings"],
|
|
44333
44389
|
queryFn: Cr,
|
|
44334
44390
|
staleTime: 0
|
|
44335
|
-
})), n =
|
|
44391
|
+
})), n = k(() => t.data ?? {});
|
|
44336
44392
|
async function r(t, n = !1) {
|
|
44337
44393
|
await wr(t), await e.invalidateQueries({ queryKey: ["settings"] }), n && (await e.invalidateQueries({ queryKey: ["viewer"] }), await e.invalidateQueries({ queryKey: ["teams"] }), await e.invalidateQueries({ queryKey: ["agents"] }), await e.invalidateQueries({ queryKey: ["my-issues"] }));
|
|
44338
44394
|
}
|
|
44339
|
-
let i =
|
|
44395
|
+
let i = k(() => !!(n().linearApiKey || n().linearAccessToken)), a = _r(() => ({
|
|
44340
44396
|
queryKey: ["viewer"],
|
|
44341
44397
|
queryFn: sO,
|
|
44342
44398
|
enabled: i(),
|
|
@@ -44372,7 +44428,7 @@ function a0() {
|
|
|
44372
44428
|
}
|
|
44373
44429
|
v(!0), b("");
|
|
44374
44430
|
try {
|
|
44375
|
-
await
|
|
44431
|
+
await k1(t), await e.invalidateQueries({ queryKey: ["settings"] }), await e.invalidateQueries({ queryKey: ["viewer"] }), await e.invalidateQueries({ queryKey: ["teams"] }), await e.invalidateQueries({ queryKey: ["agents"] }), await e.invalidateQueries({ queryKey: ["my-issues"] });
|
|
44376
44432
|
} catch (e) {
|
|
44377
44433
|
b(e instanceof Error ? e.message : "OAuth flow failed.");
|
|
44378
44434
|
} finally {
|
|
@@ -44383,28 +44439,28 @@ function a0() {
|
|
|
44383
44439
|
async function w() {
|
|
44384
44440
|
C(!0);
|
|
44385
44441
|
try {
|
|
44386
|
-
await
|
|
44442
|
+
await A1(), await e.invalidateQueries({ queryKey: ["settings"] }), await e.invalidateQueries({ queryKey: ["viewer"] }), await e.invalidateQueries({ queryKey: ["teams"] }), await e.invalidateQueries({ queryKey: ["agents"] }), await e.invalidateQueries({ queryKey: ["my-issues"] });
|
|
44387
44443
|
} finally {
|
|
44388
44444
|
C(!1);
|
|
44389
44445
|
}
|
|
44390
44446
|
}
|
|
44391
|
-
let
|
|
44447
|
+
let E = yr ? chrome.identity.getRedirectURL() : null, O = _r(() => ({
|
|
44392
44448
|
queryKey: ["slack-channels", n().slackToken],
|
|
44393
44449
|
queryFn: () => WO(n().slackToken),
|
|
44394
44450
|
enabled: !!n().slackToken,
|
|
44395
44451
|
retry: 0,
|
|
44396
44452
|
staleTime: 6e4
|
|
44397
|
-
})),
|
|
44398
|
-
let e =
|
|
44453
|
+
})), ee = k(() => Ox(n())), te = k(() => {
|
|
44454
|
+
let e = ee();
|
|
44399
44455
|
return e ? `Drafting with ${e} — ${jx[e].fast} (fast) / ${jx[e].best} (best)` : null;
|
|
44400
44456
|
});
|
|
44401
44457
|
return (() => {
|
|
44402
|
-
var e =
|
|
44458
|
+
var e = X1();
|
|
44403
44459
|
return P(e, j(Dj, {
|
|
44404
44460
|
title: "Workflow",
|
|
44405
44461
|
get children() {
|
|
44406
44462
|
return [(() => {
|
|
44407
|
-
var e =
|
|
44463
|
+
var e = j1();
|
|
44408
44464
|
return P(e, j(We, {
|
|
44409
44465
|
each: [{
|
|
44410
44466
|
id: "cloud",
|
|
@@ -44414,19 +44470,19 @@ function a0() {
|
|
|
44414
44470
|
label: "Local · clipboard"
|
|
44415
44471
|
}],
|
|
44416
44472
|
children: (e) => (() => {
|
|
44417
|
-
var t =
|
|
44418
|
-
return t.$$click = () => void r({ workflowMode: e.id }), P(t, () => e.label),
|
|
44473
|
+
var t = Z1();
|
|
44474
|
+
return t.$$click = () => void r({ workflowMode: e.id }), P(t, () => e.label), D(() => st(t, `flex-1 rounded-[5px] px-2 py-1 text-[11.5px] font-medium transition-colors ${(n().workflowMode ?? "cloud") === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
|
|
44419
44475
|
})()
|
|
44420
44476
|
})), e;
|
|
44421
|
-
})(),
|
|
44477
|
+
})(), M1()];
|
|
44422
44478
|
}
|
|
44423
44479
|
}), null), P(e, j(Dj, {
|
|
44424
44480
|
title: "Capture",
|
|
44425
44481
|
get children() {
|
|
44426
44482
|
return [(() => {
|
|
44427
|
-
var e =
|
|
44428
|
-
return t.addEventListener("change", (e) => void r({ captureShots: e.currentTarget.checked || void 0 })),
|
|
44429
|
-
})(),
|
|
44483
|
+
var e = N1(), t = e.firstChild;
|
|
44484
|
+
return t.addEventListener("change", (e) => void r({ captureShots: e.currentTarget.checked || void 0 })), D(() => t.checked = !!n().captureShots), e;
|
|
44485
|
+
})(), P1()];
|
|
44430
44486
|
}
|
|
44431
44487
|
}), null), P(e, j(Dj, {
|
|
44432
44488
|
title: "Linear",
|
|
@@ -44437,13 +44493,13 @@ function a0() {
|
|
|
44437
44493
|
},
|
|
44438
44494
|
get fallback() {
|
|
44439
44495
|
return (() => {
|
|
44440
|
-
var e =
|
|
44496
|
+
var e = t0();
|
|
44441
44497
|
return P(e, j(Ej, {
|
|
44442
44498
|
label: "Personal API key",
|
|
44443
44499
|
hint: "Create one at linear.app → Settings → API — fastest path.",
|
|
44444
44500
|
get children() {
|
|
44445
44501
|
return [(() => {
|
|
44446
|
-
var e =
|
|
44502
|
+
var e = Q1();
|
|
44447
44503
|
return P(e, j(bj, {
|
|
44448
44504
|
type: "password",
|
|
44449
44505
|
placeholder: "lin_api_…",
|
|
@@ -44480,12 +44536,12 @@ function a0() {
|
|
|
44480
44536
|
}), null), P(e, j(M, {
|
|
44481
44537
|
when: yr,
|
|
44482
44538
|
get children() {
|
|
44483
|
-
return [
|
|
44539
|
+
return [$1(), j(Ej, {
|
|
44484
44540
|
label: "OAuth client ID",
|
|
44485
44541
|
get children() {
|
|
44486
44542
|
return [
|
|
44487
44543
|
(() => {
|
|
44488
|
-
var e =
|
|
44544
|
+
var e = Q1();
|
|
44489
44545
|
return P(e, j(bj, {
|
|
44490
44546
|
placeholder: "your-client-id",
|
|
44491
44547
|
get value() {
|
|
@@ -44513,8 +44569,8 @@ function a0() {
|
|
|
44513
44569
|
}
|
|
44514
44570
|
}),
|
|
44515
44571
|
(() => {
|
|
44516
|
-
var e =
|
|
44517
|
-
return P(t,
|
|
44572
|
+
var e = e0(), t = e.firstChild.nextSibling.nextSibling;
|
|
44573
|
+
return P(t, E), e;
|
|
44518
44574
|
})()
|
|
44519
44575
|
];
|
|
44520
44576
|
}
|
|
@@ -44524,13 +44580,13 @@ function a0() {
|
|
|
44524
44580
|
})();
|
|
44525
44581
|
},
|
|
44526
44582
|
get children() {
|
|
44527
|
-
var e =
|
|
44583
|
+
var e = I1(), t = e.firstChild;
|
|
44528
44584
|
return P(t, j(M, {
|
|
44529
44585
|
get when() {
|
|
44530
44586
|
return !a.isLoading;
|
|
44531
44587
|
},
|
|
44532
44588
|
get fallback() {
|
|
44533
|
-
return
|
|
44589
|
+
return n0();
|
|
44534
44590
|
},
|
|
44535
44591
|
get children() {
|
|
44536
44592
|
return j(M, {
|
|
@@ -44543,7 +44599,7 @@ function a0() {
|
|
|
44543
44599
|
return a.isError;
|
|
44544
44600
|
},
|
|
44545
44601
|
get fallback() {
|
|
44546
|
-
return
|
|
44602
|
+
return n0();
|
|
44547
44603
|
},
|
|
44548
44604
|
get children() {
|
|
44549
44605
|
return j(jj, { message: "Key rejected — reconnect" });
|
|
@@ -44551,7 +44607,7 @@ function a0() {
|
|
|
44551
44607
|
});
|
|
44552
44608
|
},
|
|
44553
44609
|
get children() {
|
|
44554
|
-
var e =
|
|
44610
|
+
var e = F1(), t = e.firstChild.nextSibling, n = t.nextSibling.nextSibling;
|
|
44555
44611
|
return P(t, () => a.data.name), P(n, () => a.data.email), e;
|
|
44556
44612
|
}
|
|
44557
44613
|
});
|
|
@@ -44592,7 +44648,7 @@ function a0() {
|
|
|
44592
44648
|
return o.isLoading;
|
|
44593
44649
|
},
|
|
44594
44650
|
get children() {
|
|
44595
|
-
return [
|
|
44651
|
+
return [L1(), j(M, {
|
|
44596
44652
|
get when() {
|
|
44597
44653
|
return o.data;
|
|
44598
44654
|
},
|
|
@@ -44602,8 +44658,8 @@ function a0() {
|
|
|
44602
44658
|
return o.data;
|
|
44603
44659
|
},
|
|
44604
44660
|
children: (e) => (() => {
|
|
44605
|
-
var t =
|
|
44606
|
-
return i.nextSibling, P(t, () => e.name, r), P(t, () => e.key, i),
|
|
44661
|
+
var t = r0(), r = t.firstChild, i = r.nextSibling;
|
|
44662
|
+
return i.nextSibling, P(t, () => e.name, r), P(t, () => e.key, i), D(() => t.selected = e.id === n().defaultTeamId), D(() => t.value = e.id), t;
|
|
44607
44663
|
})()
|
|
44608
44664
|
});
|
|
44609
44665
|
}
|
|
@@ -44646,7 +44702,7 @@ function a0() {
|
|
|
44646
44702
|
return s.isLoading;
|
|
44647
44703
|
},
|
|
44648
44704
|
get children() {
|
|
44649
|
-
return [
|
|
44705
|
+
return [i0(), j(M, {
|
|
44650
44706
|
get when() {
|
|
44651
44707
|
return s.data;
|
|
44652
44708
|
},
|
|
@@ -44656,8 +44712,8 @@ function a0() {
|
|
|
44656
44712
|
return s.data;
|
|
44657
44713
|
},
|
|
44658
44714
|
children: (e) => (() => {
|
|
44659
|
-
var t =
|
|
44660
|
-
return P(t, () => e.displayName),
|
|
44715
|
+
var t = a0();
|
|
44716
|
+
return P(t, () => e.displayName), D(() => t.selected = e.id === n().cursorAgentId), D(() => t.value = e.id), t;
|
|
44661
44717
|
})()
|
|
44662
44718
|
});
|
|
44663
44719
|
}
|
|
@@ -44666,7 +44722,7 @@ function a0() {
|
|
|
44666
44722
|
});
|
|
44667
44723
|
},
|
|
44668
44724
|
get children() {
|
|
44669
|
-
return
|
|
44725
|
+
return R1();
|
|
44670
44726
|
}
|
|
44671
44727
|
});
|
|
44672
44728
|
}
|
|
@@ -44714,7 +44770,7 @@ function a0() {
|
|
|
44714
44770
|
onBlur: (e) => {
|
|
44715
44771
|
r({ issueTemplate: e.currentTarget.value.trim() || void 0 });
|
|
44716
44772
|
}
|
|
44717
|
-
}),
|
|
44773
|
+
}), z1()];
|
|
44718
44774
|
}
|
|
44719
44775
|
}),
|
|
44720
44776
|
j(Ej, {
|
|
@@ -44771,7 +44827,7 @@ function a0() {
|
|
|
44771
44827
|
label: "Test account",
|
|
44772
44828
|
hint: "The cloud agent logs into the app with this while testing and recording its demo. Added to every issue's Agent instructions. Use a throwaway account — it's visible to everyone who can read the issue.",
|
|
44773
44829
|
get children() {
|
|
44774
|
-
var e =
|
|
44830
|
+
var e = B1();
|
|
44775
44831
|
return P(e, j(bj, {
|
|
44776
44832
|
placeholder: "Username or email (e.g. demo@yourapp.com)",
|
|
44777
44833
|
get value() {
|
|
@@ -44803,7 +44859,7 @@ function a0() {
|
|
|
44803
44859
|
title: "Panel",
|
|
44804
44860
|
get children() {
|
|
44805
44861
|
return [(() => {
|
|
44806
|
-
var e =
|
|
44862
|
+
var e = V1(), t = e.firstChild.nextSibling;
|
|
44807
44863
|
return P(t, j(We, {
|
|
44808
44864
|
each: [{
|
|
44809
44865
|
id: "overlay",
|
|
@@ -44813,20 +44869,20 @@ function a0() {
|
|
|
44813
44869
|
label: "Beside page"
|
|
44814
44870
|
}],
|
|
44815
44871
|
children: (e) => (() => {
|
|
44816
|
-
var t =
|
|
44872
|
+
var t = Z1();
|
|
44817
44873
|
return t.$$click = () => void r({
|
|
44818
44874
|
panelMode: e.id,
|
|
44819
44875
|
panelPos: void 0
|
|
44820
|
-
}), P(t, () => e.label),
|
|
44876
|
+
}), P(t, () => e.label), D(() => st(t, `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${(n().panelMode ?? "overlay") === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
|
|
44821
44877
|
})()
|
|
44822
44878
|
})), e;
|
|
44823
44879
|
})(), (() => {
|
|
44824
|
-
var e =
|
|
44880
|
+
var e = H1(), t = e.firstChild.nextSibling;
|
|
44825
44881
|
return P(t, j(We, {
|
|
44826
44882
|
each: ["left", "right"],
|
|
44827
44883
|
children: (e) => (() => {
|
|
44828
|
-
var t =
|
|
44829
|
-
return t.$$click = () => void r({ panelSide: e }), P(t, e === "left" ? "Left" : "Right"),
|
|
44884
|
+
var t = Z1();
|
|
44885
|
+
return t.$$click = () => void r({ panelSide: e }), P(t, e === "left" ? "Left" : "Right"), D(() => st(t, `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${(n().panelSide ?? "right") === e ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
|
|
44830
44886
|
})()
|
|
44831
44887
|
})), e;
|
|
44832
44888
|
})()];
|
|
@@ -44916,7 +44972,7 @@ function a0() {
|
|
|
44916
44972
|
get children() {
|
|
44917
44973
|
return j(M, {
|
|
44918
44974
|
get when() {
|
|
44919
|
-
return !
|
|
44975
|
+
return !O.isError;
|
|
44920
44976
|
},
|
|
44921
44977
|
get fallback() {
|
|
44922
44978
|
return j(jj, { message: "Couldn't list channels — check the token scopes (channels:read)." });
|
|
@@ -44927,23 +44983,23 @@ function a0() {
|
|
|
44927
44983
|
return n().slackChannelId ?? "";
|
|
44928
44984
|
},
|
|
44929
44985
|
get disabled() {
|
|
44930
|
-
return
|
|
44986
|
+
return O.isLoading;
|
|
44931
44987
|
},
|
|
44932
44988
|
onChange: (e) => {
|
|
44933
|
-
let t = e.currentTarget.value, n =
|
|
44989
|
+
let t = e.currentTarget.value, n = O.data?.find((e) => e.id === t);
|
|
44934
44990
|
r({
|
|
44935
44991
|
slackChannelId: t || void 0,
|
|
44936
44992
|
slackChannelName: n?.name
|
|
44937
44993
|
});
|
|
44938
44994
|
},
|
|
44939
44995
|
get children() {
|
|
44940
|
-
return [
|
|
44996
|
+
return [U1(), j(We, {
|
|
44941
44997
|
get each() {
|
|
44942
|
-
return
|
|
44998
|
+
return O.data ?? [];
|
|
44943
44999
|
},
|
|
44944
45000
|
children: (e) => (() => {
|
|
44945
|
-
var t =
|
|
44946
|
-
return t.firstChild, P(t, () => e.name, null),
|
|
45001
|
+
var t = o0();
|
|
45002
|
+
return t.firstChild, P(t, () => e.name, null), D(() => t.selected = e.id === n().slackChannelId), D(() => t.value = e.id), t;
|
|
44947
45003
|
})()
|
|
44948
45004
|
})];
|
|
44949
45005
|
}
|
|
@@ -44993,10 +45049,10 @@ function a0() {
|
|
|
44993
45049
|
}
|
|
44994
45050
|
}),
|
|
44995
45051
|
(() => {
|
|
44996
|
-
var e =
|
|
44997
|
-
return t.addEventListener("change", (e) => void r({ notifyOnCreate: e.currentTarget.checked ? void 0 : !1 })),
|
|
45052
|
+
var e = W1(), t = e.firstChild;
|
|
45053
|
+
return t.addEventListener("change", (e) => void r({ notifyOnCreate: e.currentTarget.checked ? void 0 : !1 })), D(() => t.checked = n().notifyOnCreate !== !1), e;
|
|
44998
45054
|
})(),
|
|
44999
|
-
|
|
45055
|
+
G1()
|
|
45000
45056
|
];
|
|
45001
45057
|
}
|
|
45002
45058
|
}), null), P(e, j(Dj, {
|
|
@@ -45034,8 +45090,8 @@ function a0() {
|
|
|
45034
45090
|
}
|
|
45035
45091
|
}),
|
|
45036
45092
|
(() => {
|
|
45037
|
-
var e =
|
|
45038
|
-
return t.$$click = () => void r({ preferredProvider: void 0 }), i.$$click = () => void r({ preferredProvider: "openai" }), a.$$click = () => void r({ preferredProvider: "anthropic" }),
|
|
45093
|
+
var e = K1(), t = e.firstChild.nextSibling.firstChild, i = t.nextSibling, a = i.nextSibling;
|
|
45094
|
+
return t.$$click = () => void r({ preferredProvider: void 0 }), i.$$click = () => void r({ preferredProvider: "openai" }), a.$$click = () => void r({ preferredProvider: "anthropic" }), D((e) => {
|
|
45039
45095
|
var r = `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${n().preferredProvider === void 0 ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`, o = `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors disabled:cursor-not-allowed ${n().preferredProvider === "openai" ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer disabled:text-text-faint"}`, s = !n().openaiKey, c = `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors disabled:cursor-not-allowed ${n().preferredProvider === "anthropic" ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer disabled:text-text-faint"}`, l = !n().anthropicKey;
|
|
45040
45096
|
return r !== e.e && st(t, e.e = r), o !== e.t && st(i, e.t = o), s !== e.a && (i.disabled = e.a = s), c !== e.o && st(a, e.o = c), l !== e.i && (a.disabled = e.i = l), e;
|
|
45041
45097
|
}, {
|
|
@@ -45047,17 +45103,17 @@ function a0() {
|
|
|
45047
45103
|
}), e;
|
|
45048
45104
|
})(),
|
|
45049
45105
|
(() => {
|
|
45050
|
-
var e =
|
|
45106
|
+
var e = J1();
|
|
45051
45107
|
return P(e, j(M, {
|
|
45052
45108
|
get when() {
|
|
45053
|
-
return
|
|
45109
|
+
return te();
|
|
45054
45110
|
},
|
|
45055
45111
|
get fallback() {
|
|
45056
|
-
return
|
|
45112
|
+
return s0();
|
|
45057
45113
|
},
|
|
45058
45114
|
get children() {
|
|
45059
|
-
var e =
|
|
45060
|
-
return P(e,
|
|
45115
|
+
var e = q1();
|
|
45116
|
+
return P(e, te), e;
|
|
45061
45117
|
}
|
|
45062
45118
|
})), e;
|
|
45063
45119
|
})()
|
|
@@ -45066,7 +45122,7 @@ function a0() {
|
|
|
45066
45122
|
}), null), P(e, j(Dj, {
|
|
45067
45123
|
title: "How it works",
|
|
45068
45124
|
get children() {
|
|
45069
|
-
return
|
|
45125
|
+
return Y1();
|
|
45070
45126
|
}
|
|
45071
45127
|
}), null), e;
|
|
45072
45128
|
})();
|
|
@@ -45074,38 +45130,38 @@ function a0() {
|
|
|
45074
45130
|
rt(["click"]);
|
|
45075
45131
|
//#endregion
|
|
45076
45132
|
//#region src/lib/idbCache.ts
|
|
45077
|
-
var
|
|
45133
|
+
var l0 = "linear-grab", u0 = "queries", d0 = [
|
|
45078
45134
|
"my-issues",
|
|
45079
45135
|
"issue",
|
|
45080
45136
|
"sessions",
|
|
45081
45137
|
"teams",
|
|
45082
45138
|
"agents"
|
|
45083
45139
|
];
|
|
45084
|
-
function
|
|
45140
|
+
function f0() {
|
|
45085
45141
|
return new Promise((e) => {
|
|
45086
45142
|
try {
|
|
45087
|
-
let t = indexedDB.open(
|
|
45088
|
-
t.onupgradeneeded = () => t.result.createObjectStore(
|
|
45143
|
+
let t = indexedDB.open(l0, 1);
|
|
45144
|
+
t.onupgradeneeded = () => t.result.createObjectStore(u0), t.onsuccess = () => e(t.result), t.onerror = () => e(null);
|
|
45089
45145
|
} catch {
|
|
45090
45146
|
e(null);
|
|
45091
45147
|
}
|
|
45092
45148
|
});
|
|
45093
45149
|
}
|
|
45094
|
-
function
|
|
45095
|
-
return typeof e[0] == "string" &&
|
|
45150
|
+
function p0(e) {
|
|
45151
|
+
return typeof e[0] == "string" && d0.includes(e[0]);
|
|
45096
45152
|
}
|
|
45097
|
-
async function
|
|
45098
|
-
let t = await
|
|
45153
|
+
async function m0(e) {
|
|
45154
|
+
let t = await f0();
|
|
45099
45155
|
if (!t) return () => {};
|
|
45100
45156
|
await new Promise((n) => {
|
|
45101
45157
|
try {
|
|
45102
|
-
let r = t.transaction(
|
|
45158
|
+
let r = t.transaction(u0, "readonly").objectStore(u0).openCursor();
|
|
45103
45159
|
r.onsuccess = () => {
|
|
45104
45160
|
let t = r.result;
|
|
45105
45161
|
if (!t) return n();
|
|
45106
45162
|
try {
|
|
45107
45163
|
let { queryKey: n, data: r } = t.value;
|
|
45108
|
-
|
|
45164
|
+
p0(n) && e.getQueryData(n) === void 0 && e.setQueryData(n, r, { updatedAt: 0 });
|
|
45109
45165
|
} catch {}
|
|
45110
45166
|
t.continue();
|
|
45111
45167
|
}, r.onerror = () => n();
|
|
@@ -45116,14 +45172,14 @@ async function d0(e) {
|
|
|
45116
45172
|
let n = /* @__PURE__ */ new Map(), r = e.getQueryCache().subscribe((r) => {
|
|
45117
45173
|
if (r.type !== "updated" || r.action.type !== "success") return;
|
|
45118
45174
|
let { queryKey: i, queryHash: a } = r.query;
|
|
45119
|
-
if (!
|
|
45175
|
+
if (!p0(i)) return;
|
|
45120
45176
|
let o = n.get(a);
|
|
45121
45177
|
o && clearTimeout(o), n.set(a, setTimeout(() => {
|
|
45122
45178
|
n.delete(a);
|
|
45123
45179
|
try {
|
|
45124
45180
|
let n = e.getQueryData(i);
|
|
45125
45181
|
if (n === void 0) return;
|
|
45126
|
-
t.transaction(
|
|
45182
|
+
t.transaction(u0, "readwrite").objectStore(u0).put({
|
|
45127
45183
|
queryKey: i,
|
|
45128
45184
|
data: n
|
|
45129
45185
|
}, a);
|
|
@@ -45139,7 +45195,7 @@ async function d0(e) {
|
|
|
45139
45195
|
//#endregion
|
|
45140
45196
|
//#region src/panel/App.tsx
|
|
45141
45197
|
Rr();
|
|
45142
|
-
var
|
|
45198
|
+
var h0 = /*#__PURE__*/ N("<svg viewBox=\"0 0 100 100\"fill=currentColor aria-hidden><path d=\"M1.22541 61.5228c-.2225-.9485.90748-1.5459 1.59638-.857L39.3342 97.1782c.6889.6889.0915 1.8189-.857 1.5964C20.0515 94.4522 5.54779 79.9485 1.22541 61.5228ZM.00189135 46.8891c-.01764375.2833.08887215.5599.28957165.7606L52.3503 99.7085c.2007.2007.4773.3075.7606.2896 2.3692-.1476 4.6938-.46 6.9624-.9259.7645-.157 1.0301-1.0963.4782-1.6481L2.57595 39.4485c-.55186-.5519-1.49117-.2863-1.648174.4782-.465915 2.2686-.77832 4.5932-.92588465 6.9624ZM4.21093 29.7054c-.16649.3738-.08169.8106.20765 1.1l64.77602 64.776c.2894.2894.7262.3742 1.1.2077 1.7861-.7956 3.5171-1.6927 5.1855-2.684.5521-.328.6373-1.0867.1832-1.5407L8.43566 24.3367c-.45409-.4541-1.21271-.3689-1.54074.1832-.99132 1.6684-1.88843 3.3994-2.68399 5.1855ZM12.6587 18.074c-.3701-.3701-.393-.9637-.0443-1.3541C21.7795 6.45931 35.1114 0 49.9519 0 77.5927 0 100 22.4073 100 50.0481c0 14.8405-6.4593 28.1724-16.7199 37.3375-.3903.3487-.984.3258-1.3541-.0443L12.6587 18.074Z\">"), g0 = /*#__PURE__*/ N("<button><svg width=12 height=12 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 aria-hidden><rect x=1.5 y=2.5 width=13 height=11 rx=1.5></rect><path d=\"M10 2.5v11\">"), _0 = /*#__PURE__*/ N("<button aria-label=\"Minimize to launcher\"title=\"Minimize to launcher\"class=\"text-text-dim hover:text-text hover:bg-surface-3 grid size-6 shrink-0 cursor-pointer place-items-center rounded-md text-[15px] leading-none transition-colors\">–"), v0 = /*#__PURE__*/ N("<div class=\"bg-bg text-text flex h-full flex-col\"><header><span class=\"text-accent mr-0.5 inline-flex shrink-0\"title=\"Linear Grab\"></span><div class=\"no-scrollbar flex min-w-0 flex-1 items-center gap-1 overflow-x-auto\"></div></header><main class=\"min-h-0 flex-1\"><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full>"), y0 = /*#__PURE__*/ N("<button>"), b0 = [
|
|
45143
45199
|
{
|
|
45144
45200
|
id: "draft",
|
|
45145
45201
|
label: "Draft"
|
|
@@ -45164,15 +45220,15 @@ var f0 = /*#__PURE__*/ N("<svg viewBox=\"0 0 100 100\"fill=currentColor aria-hid
|
|
|
45164
45220
|
id: "settings",
|
|
45165
45221
|
label: "Settings"
|
|
45166
45222
|
}
|
|
45167
|
-
],
|
|
45223
|
+
], x0 = new gr({ defaultOptions: { queries: {
|
|
45168
45224
|
retry: 1,
|
|
45169
45225
|
refetchOnWindowFocus: !1,
|
|
45170
45226
|
staleTime: 5e3
|
|
45171
45227
|
} } });
|
|
45172
|
-
function
|
|
45228
|
+
function S0(e) {
|
|
45173
45229
|
return (() => {
|
|
45174
|
-
var t =
|
|
45175
|
-
return
|
|
45230
|
+
var t = h0();
|
|
45231
|
+
return D((n) => {
|
|
45176
45232
|
var r = e.size ?? 14, i = e.size ?? 14;
|
|
45177
45233
|
return r !== n.e && it(t, "width", n.e = r), i !== n.t && it(t, "height", n.t = i), n;
|
|
45178
45234
|
}, {
|
|
@@ -45181,41 +45237,41 @@ function y0(e) {
|
|
|
45181
45237
|
}), t;
|
|
45182
45238
|
})();
|
|
45183
45239
|
}
|
|
45184
|
-
function
|
|
45240
|
+
function C0(e) {
|
|
45185
45241
|
let [t, n] = T("draft"), r = () => {
|
|
45186
|
-
|
|
45242
|
+
x0.invalidateQueries({ queryKey: ["grab"] }), ZA() === "capture" && n("capture"), e.onGrab?.();
|
|
45187
45243
|
};
|
|
45188
|
-
return
|
|
45244
|
+
return O(() => {
|
|
45189
45245
|
let e = GA();
|
|
45190
45246
|
e && n(e);
|
|
45191
45247
|
}), ie(() => {
|
|
45192
|
-
let e =
|
|
45248
|
+
let e = m0(x0), t = IZ(r), n = () => {
|
|
45193
45249
|
RO().then(GQ), FO();
|
|
45194
45250
|
};
|
|
45195
45251
|
n();
|
|
45196
45252
|
let i = Ar((e) => {
|
|
45197
|
-
e === "settings" && (
|
|
45253
|
+
e === "settings" && (x0.invalidateQueries({ queryKey: ["settings"] }), n()), e === "grab" && r();
|
|
45198
45254
|
});
|
|
45199
45255
|
ae(() => {
|
|
45200
45256
|
t(), i(), e.then((e) => e());
|
|
45201
45257
|
});
|
|
45202
45258
|
}), j(cr, {
|
|
45203
|
-
client:
|
|
45259
|
+
client: x0,
|
|
45204
45260
|
get children() {
|
|
45205
|
-
var r =
|
|
45206
|
-
return i.$$pointerdown = (t) => e.onHeaderPointerDown?.(t), P(a, j(
|
|
45207
|
-
each:
|
|
45261
|
+
var r = v0(), i = r.firstChild, a = i.firstChild, o = a.nextSibling, s = i.nextSibling.firstChild, c = s.nextSibling, l = c.nextSibling, u = l.nextSibling, d = u.nextSibling, f = d.nextSibling;
|
|
45262
|
+
return i.$$pointerdown = (t) => e.onHeaderPointerDown?.(t), P(a, j(S0, { size: 14 })), P(o, j(We, {
|
|
45263
|
+
each: b0,
|
|
45208
45264
|
children: (e) => (() => {
|
|
45209
|
-
var r =
|
|
45210
|
-
return r.$$click = () => n(e.id), P(r, () => e.label),
|
|
45265
|
+
var r = y0();
|
|
45266
|
+
return r.$$click = () => n(e.id), P(r, () => e.label), D(() => st(r, `h-6 shrink-0 rounded-md px-2 text-[12px] font-medium whitespace-nowrap transition-colors ${t() === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), r;
|
|
45211
45267
|
})()
|
|
45212
45268
|
})), P(i, j(M, {
|
|
45213
45269
|
get when() {
|
|
45214
45270
|
return e.onTogglePin;
|
|
45215
45271
|
},
|
|
45216
45272
|
get children() {
|
|
45217
|
-
var t =
|
|
45218
|
-
return t.$$click = () => e.onTogglePin?.(),
|
|
45273
|
+
var t = g0();
|
|
45274
|
+
return t.$$click = () => e.onTogglePin?.(), D((n) => {
|
|
45219
45275
|
var r = e.pinned ? "Switch to overlay" : "Dock beside page", i = e.pinned ? "Overlay the page" : "Dock beside page (squeezes the app, DevTools-style)", a = `hover:bg-surface-3 grid size-6 shrink-0 cursor-pointer place-items-center rounded-md transition-colors ${e.pinned ? "text-accent" : "text-text-dim hover:text-text"}`;
|
|
45220
45276
|
return r !== n.e && it(t, "aria-label", n.e = r), i !== n.t && it(t, "title", n.t = i), a !== n.a && st(t, n.a = a), n;
|
|
45221
45277
|
}, {
|
|
@@ -45229,10 +45285,10 @@ function b0(e) {
|
|
|
45229
45285
|
return e.onClose;
|
|
45230
45286
|
},
|
|
45231
45287
|
get children() {
|
|
45232
|
-
var t =
|
|
45288
|
+
var t = _0();
|
|
45233
45289
|
return t.$$click = () => e.onClose?.(), t;
|
|
45234
45290
|
}
|
|
45235
|
-
}), null), P(s, j(dM, { onCreated: () => n("activity") })), P(c, j(aQ, {})), P(l, j(D$, {})), P(u, j(
|
|
45291
|
+
}), null), P(s, j(dM, { onCreated: () => n("activity") })), P(c, j(aQ, {})), P(l, j(D$, {})), P(u, j(m1, {})), P(d, j(D1, { onOpenIssue: () => n("activity") })), P(f, j(c0, {})), D((n) => {
|
|
45236
45292
|
var r = `border-border bg-surface flex shrink-0 items-center gap-1 border-b px-2 py-1.5 select-none ${e.onHeaderPointerDown ? "cursor-grab active:cursor-grabbing" : ""}`, a = t() !== "draft", o = t() !== "capture", p = t() !== "activity", m = t() !== "local", h = t() !== "prs", g = t() !== "settings";
|
|
45237
45293
|
return r !== n.e && st(i, n.e = r), a !== n.t && s.classList.toggle("hidden", n.t = a), o !== n.a && c.classList.toggle("hidden", n.a = o), p !== n.o && l.classList.toggle("hidden", n.o = p), m !== n.i && u.classList.toggle("hidden", n.i = m), h !== n.n && d.classList.toggle("hidden", n.n = h), g !== n.s && f.classList.toggle("hidden", n.s = g), n;
|
|
45238
45294
|
}, {
|
|
@@ -45250,12 +45306,12 @@ function b0(e) {
|
|
|
45250
45306
|
rt(["pointerdown", "click"]);
|
|
45251
45307
|
//#endregion
|
|
45252
45308
|
//#region src/styles/app.css?inline
|
|
45253
|
-
var x0 = "/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:\"Inter\", ui-sans-serif, system-ui, -apple-system, sans-serif;--font-serif:ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif;--font-mono:ui-monospace, \"SF Mono\", Menlo, monospace;--color-red-500:oklch(63.7% .237 25.331);--color-white:#fff;--spacing:.25rem;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:4px;--radius-md:6px;--radius-lg:10px;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg:#0b0c0e;--color-surface:#141517;--color-surface-2:#1c1d21;--color-surface-3:#24262b;--color-border:#26282d;--color-border-strong:#34363d;--color-text:#e8e9eb;--color-text-dim:#8b8e98;--color-text-faint:#5c5f6a;--color-accent:#5e6ad2;--color-accent-hover:#6e79e0;--color-accent-soft:#5e6ad226;--color-success:#4cb782;--color-warn:#f2c94c;--color-danger:#eb5757;--color-danger-soft:#eb575726}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.visible\\!{visibility:visible!important}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.top-0{top:0}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\\/2{top:50%}.top-\\[2px\\]{top:2px}.top-full{top:100%}.right-0{right:0}.right-0\\.5{right:calc(var(--spacing) * .5)}.right-4{right:calc(var(--spacing) * 4)}.right-full{right:100%}.bottom-0{bottom:0}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-\\[2px\\]{bottom:2px}.bottom-full{bottom:100%}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\\/2{left:50%}.left-full{left:100%}.z-1{z-index:1}.z-10{z-index:10}.z-\\[2147483645\\]{z-index:2147483645}.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container\\!{width:100%!important}@media (width>=40rem){.container\\!{max-width:40rem!important}}@media (width>=48rem){.container\\!{max-width:48rem!important}}@media (width>=64rem){.container\\!{max-width:64rem!important}}@media (width>=80rem){.container\\!{max-width:80rem!important}}@media (width>=96rem){.container\\!{max-width:96rem!important}}.-m-0{margin:0}.-m-0\\.5{margin:calc(var(--spacing) * -.5)}.-m-4{margin:calc(var(--spacing) * -4)}.m-0{margin:0}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-my-1{margin-block:calc(var(--spacing) * -1)}.-my-1\\.5{margin-block:calc(var(--spacing) * -1.5)}.mt-0{margin-top:0}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-px{margin-top:1px}.mr-0{margin-right:0}.mr-0\\.5{margin-right:calc(var(--spacing) * .5)}.mr-1{margin-right:var(--spacing)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-2\\.5{margin-right:calc(var(--spacing) * 2.5)}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-2\\.5{margin-left:calc(var(--spacing) * 2.5)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-0{width:0;height:0}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-16{height:calc(var(--spacing) * 16)}.h-\\[8px\\]{height:8px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-\\[20px\\]{height:20px}.h-\\[24px\\]{height:24px}.h-fit{height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-44{max-height:calc(var(--spacing) * 44)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\\[var\\(--rg-edit-list-max-h\\)\\]{max-height:var(--rg-edit-list-max-h)}.min-h-0{min-height:0}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-\\[2lh\\]{min-height:2lh}.min-h-\\[28px\\]{min-height:28px}.w-1{width:var(--spacing)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-16{width:calc(var(--spacing) * 16)}.w-72{width:calc(var(--spacing) * 72)}.w-\\[2px\\]{width:2px}.w-\\[calc\\(100\\%\\+16px\\)\\]{width:calc(100% + 16px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-\\[55\\%\\]{max-width:55%}.max-w-\\[100vw\\]{max-width:100vw}.max-w-\\[280px\\]{max-width:280px}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-\\[3\\.5ch\\]{min-width:3.5ch}.min-w-\\[4ch\\]{min-width:4ch}.min-w-\\[5ch\\]{min-width:5ch}.min-w-\\[6ch\\]{min-width:6ch}.min-w-\\[12ch\\]{min-width:12ch}.min-w-\\[36px\\]{min-width:36px}.min-w-\\[52px\\]{min-width:52px}.min-w-\\[68px\\]{min-width:68px}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[150px\\]{min-width:150px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-rotate-90{rotate:-90deg}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.list-decimal{list-style-type:decimal}.grid-cols-\\[0fr\\]{grid-template-columns:0fr}.grid-cols-\\[1fr\\]{grid-template-columns:1fr}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:0}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-\\[5px\\]{gap:5px}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[13px\\]{border-radius:13px}.rounded-\\[14px\\]{border-radius:14px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-\\[10px\\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-\\[10px\\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\\[6px\\]{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-4{border-top-style:var(--tw-border-style);border-top-width:4px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-dotted{--tw-border-style:dotted;border-style:dotted}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[var\\(--rg-border-button\\)\\]{border-color:var(--rg-border-button)}.border-accent{border-color:var(--color-accent)}.border-accent\\/40{border-color:#5e6ad266}@supports (color:color-mix(in lab, red, red)){.border-accent\\/40{border-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.border-border{border-color:var(--color-border)}.border-success{border-color:var(--color-success)}.border-success\\/40{border-color:#4cb78266}@supports (color:color-mix(in lab, red, red)){.border-success\\/40{border-color:color-mix(in oklab, var(--color-success) 40%, transparent)}}.border-text-dim{border-color:var(--color-text-dim)}.border-transparent{border-color:#0000}.border-warn{border-color:var(--color-warn)}.border-warn\\/40{border-color:#f2c94c66}@supports (color:color-mix(in lab, red, red)){.border-warn\\/40{border-color:color-mix(in oklab, var(--color-warn) 40%, transparent)}}.border-t-\\[var\\(--rg-border-subtle\\)\\]{border-top-color:var(--rg-border-subtle)}.border-t-transparent{border-top-color:#0000}.bg-\\[var\\(--rg-error-bg\\)\\]{background-color:var(--rg-error-bg)}.bg-\\[var\\(--rg-panel-bg\\)\\]{background-color:var(--rg-panel-bg)}.bg-\\[var\\(--rg-submit-bg\\)\\]{background-color:var(--rg-submit-bg)}.bg-\\[var\\(--rg-surface-active\\)\\]{background-color:var(--rg-surface-active)}.bg-\\[var\\(--rg-surface-hover\\)\\]{background-color:var(--rg-surface-hover)}.bg-\\[var\\(--rg-text-primary\\)\\]{background-color:var(--rg-text-primary)}.bg-\\[var\\(--rg-text-secondary\\)\\]{background-color:var(--rg-text-secondary)}.bg-accent{background-color:var(--color-accent)}.bg-accent-soft{background-color:var(--color-accent-soft)}.bg-bg{background-color:var(--color-bg)}.bg-bg\\/80{background-color:#0b0c0ecc}@supports (color:color-mix(in lab, red, red)){.bg-bg\\/80{background-color:color-mix(in oklab, var(--color-bg) 80%, transparent)}}.bg-border{background-color:var(--color-border)}.bg-current{background-color:currentColor}.bg-danger{background-color:var(--color-danger)}.bg-danger-soft{background-color:var(--color-danger-soft)}.bg-red-500{background-color:var(--color-red-500)}.bg-success{background-color:var(--color-success)}.bg-surface{background-color:var(--color-surface)}.bg-surface-2{background-color:var(--color-surface-2)}.bg-surface-3{background-color:var(--color-surface-3)}.bg-text-faint{background-color:var(--color-text-faint)}.bg-transparent{background-color:#0000}.bg-warn{background-color:var(--color-warn)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-6{padding:calc(var(--spacing) * 6)}.px-0{padding-inline:0}.px-0\\.25{padding-inline:calc(var(--spacing) * .25)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:0}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-0\\.25{padding-block:calc(var(--spacing) * .25)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-px{padding-block:1px}.pt-0{padding-top:0}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:var(--spacing)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1{padding-bottom:var(--spacing)}.pb-1\\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-end{text-align:end}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-\\[9\\.5px\\]{font-size:9.5px}.text-\\[9px\\]{font-size:9px}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.leading-3{--tw-leading:calc(var(--spacing) * 3);line-height:calc(var(--spacing) * 3)}.leading-3\\.5{--tw-leading:calc(var(--spacing) * 3.5);line-height:calc(var(--spacing) * 3.5)}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-extralight{--tw-font-weight:var(--font-weight-extralight);font-weight:var(--font-weight-extralight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin{--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-normal{overflow-wrap:normal;word-break:normal}.break-words,.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-break-spaces{white-space:break-spaces}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--rg-error-text\\)\\]{color:var(--rg-error-text)}.text-\\[var\\(--rg-submit-fg\\)\\]{color:var(--rg-submit-fg)}.text-\\[var\\(--rg-text-primary\\)\\]{color:var(--rg-text-primary)}.text-\\[var\\(--rg-text-primary-85\\)\\]{color:var(--rg-text-primary-85)}.text-\\[var\\(--rg-text-secondary\\)\\]{color:var(--rg-text-secondary)}.text-accent{color:var(--color-accent)}.text-danger{color:var(--color-danger)}.text-success{color:var(--color-success)}.text-text{color:var(--color-text)}.text-text-dim{color:var(--color-text-dim)}.text-text-faint{color:var(--color-text-faint)}.text-warn{color:var(--color-warn)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-accent{accent-color:var(--color-accent)}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.\\[box-shadow\\:var\\(--rg-shadow\\)\\]{box-shadow:var(--rg-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.\\[filter\\:var\\(--rg-drop-shadow\\)\\]{filter:var(--rg-drop-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-columns\\]{transition-property:grid-template-columns;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[padding\\,border-radius\\,transform\\]{transition-property:padding,border-radius,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[top\\,left\\,width\\,height\\,opacity\\,border-radius\\]{transition-property:top,left,width,height,opacity,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,color\\]{transition-property:transform,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-\\[80ms\\]{transition-delay:80ms}.duration-60{--tw-duration:60ms;transition-duration:60ms}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-140{--tw-duration:.14s;transition-duration:.14s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-180{--tw-duration:.18s;transition-duration:.18s}.duration-220{--tw-duration:.22s;transition-duration:.22s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[opacity\\,transform\\]{will-change:opacity,transform}.will-change-transform{will-change:transform}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.\\[corner-shape\\:superellipse\\(1\\.25\\)\\]{corner-shape:superellipse(1.25)}.\\[font-synthesis\\:none\\]{font-synthesis:none}.group-open\\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}@media (hover:hover){.group-hover\\:text-\\[var\\(--rg-text-primary\\)\\]:is(:where(.group):hover *){color:var(--rg-text-primary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-text-faint::placeholder{color:var(--color-text-faint)}@media (hover:hover){.hover\\:bg-\\[var\\(--rg-error-bg-hover\\)\\]:hover{background-color:var(--rg-error-bg-hover)}.hover\\:bg-\\[var\\(--rg-surface-active\\)\\]:hover{background-color:var(--rg-surface-active)}.hover\\:bg-\\[var\\(--rg-surface-hover\\)\\]:hover{background-color:var(--rg-surface-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--color-accent-hover)}.hover\\:bg-accent\\/50:hover{background-color:#5e6ad280}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.hover\\:bg-danger\\/30:hover{background-color:#eb57574d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger\\/30:hover{background-color:color-mix(in oklab, var(--color-danger) 30%, transparent)}}.hover\\:bg-surface-2:hover{background-color:var(--color-surface-2)}.hover\\:bg-surface-3:hover{background-color:var(--color-surface-3)}.hover\\:text-\\[var\\(--rg-text-primary\\)\\]:hover{color:var(--rg-text-primary)}.hover\\:text-danger:hover{color:var(--color-danger)}.hover\\:text-text:hover{color:var(--color-text)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}}.focus\\:border-accent:focus{border-color:var(--color-accent)}.active\\:cursor-grabbing:active{cursor:grabbing}.active\\:bg-accent:active{background-color:var(--color-accent)}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-surface-3:disabled{background-color:var(--color-surface-3)}.disabled\\:text-text-faint:disabled{color:var(--color-text-faint)}.disabled\\:opacity-40:disabled{opacity:.4}@media (hover:hover){.disabled\\:hover\\:bg-surface-2:disabled:hover{background-color:var(--color-surface-2)}}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=light],:host([data-theme=light]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}body{background-color:var(--color-bg);font-family:var(--font-sans);color:var(--color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-width:320px;margin:0;font-size:13px}@keyframes geist-spinner-fade{0%{opacity:1}to{opacity:.15}}[data-tip]{position:relative}[data-tip]:hover:after{content:attr(data-tip);color:#fff;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;z-index:60;background:#1b1c20;border-radius:6px;max-width:260px;padding:3px 8px;font-size:10.5px;font-weight:500;line-height:1.35;position:absolute;bottom:calc(100% + 6px);left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 4px 12px #0000004d}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.lg-md p{margin:0 0 6px}.lg-md p:last-child{margin-bottom:0}.lg-md a{color:var(--color-accent);word-break:break-all;text-decoration:none}.lg-md a:hover{text-decoration:underline}.lg-md code{background:var(--color-surface-2);border:1px solid var(--color-border);font-family:var(--font-mono);border-radius:4px;padding:0 4px;font-size:11px}.lg-md pre{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:6px;margin:6px 0;padding:8px;overflow-x:auto}.lg-md pre code{white-space:pre;background:0 0;border:none;padding:0;font-size:11px}.lg-md ul,.lg-md ol{flex-direction:column;gap:2px;margin:4px 0 6px;padding-left:18px;display:flex}.lg-md ul{list-style:outside}.lg-md ol{list-style:decimal}.lg-md h4{margin:8px 0 4px;font-size:12px;font-weight:600}.lg-md lg-media{display:block}.lg-md lg-media img,.lg-md lg-media video{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md video{border:1px solid var(--color-border);background:#000;border-radius:6px;max-width:100%;margin:4px 0}.lg-md img{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md strong{font-weight:600}*{scrollbar-width:thin;scrollbar-color:var(--color-border-strong) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:var(--color-border-strong);border-radius:4px}::-webkit-scrollbar-track{background:0 0}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-contain-size{syntax:\"*\";inherits:false}@property --tw-contain-layout{syntax:\"*\";inherits:false}@property --tw-contain-paint{syntax:\"*\";inherits:false}@property --tw-contain-style{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}";
|
|
45309
|
+
var w0 = "/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:\"Inter\", ui-sans-serif, system-ui, -apple-system, sans-serif;--font-serif:ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif;--font-mono:ui-monospace, \"SF Mono\", Menlo, monospace;--color-red-500:oklch(63.7% .237 25.331);--color-white:#fff;--spacing:.25rem;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:4px;--radius-md:6px;--radius-lg:10px;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg:#0b0c0e;--color-surface:#141517;--color-surface-2:#1c1d21;--color-surface-3:#24262b;--color-border:#26282d;--color-border-strong:#34363d;--color-text:#e8e9eb;--color-text-dim:#8b8e98;--color-text-faint:#5c5f6a;--color-accent:#5e6ad2;--color-accent-hover:#6e79e0;--color-accent-soft:#5e6ad226;--color-success:#4cb782;--color-warn:#f2c94c;--color-danger:#eb5757;--color-danger-soft:#eb575726}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.visible\\!{visibility:visible!important}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.top-0{top:0}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\\/2{top:50%}.top-\\[2px\\]{top:2px}.top-full{top:100%}.right-0{right:0}.right-0\\.5{right:calc(var(--spacing) * .5)}.right-4{right:calc(var(--spacing) * 4)}.right-full{right:100%}.bottom-0{bottom:0}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-\\[2px\\]{bottom:2px}.bottom-full{bottom:100%}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\\/2{left:50%}.left-full{left:100%}.z-1{z-index:1}.z-10{z-index:10}.z-\\[2147483645\\]{z-index:2147483645}.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container\\!{width:100%!important}@media (width>=40rem){.container\\!{max-width:40rem!important}}@media (width>=48rem){.container\\!{max-width:48rem!important}}@media (width>=64rem){.container\\!{max-width:64rem!important}}@media (width>=80rem){.container\\!{max-width:80rem!important}}@media (width>=96rem){.container\\!{max-width:96rem!important}}.-m-0{margin:0}.-m-0\\.5{margin:calc(var(--spacing) * -.5)}.-m-4{margin:calc(var(--spacing) * -4)}.m-0{margin:0}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-my-1{margin-block:calc(var(--spacing) * -1)}.-my-1\\.5{margin-block:calc(var(--spacing) * -1.5)}.mt-0{margin-top:0}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-px{margin-top:1px}.mr-0{margin-right:0}.mr-0\\.5{margin-right:calc(var(--spacing) * .5)}.mr-1{margin-right:var(--spacing)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-2\\.5{margin-right:calc(var(--spacing) * 2.5)}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-2\\.5{margin-left:calc(var(--spacing) * 2.5)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-0{width:0;height:0}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-16{height:calc(var(--spacing) * 16)}.h-\\[8px\\]{height:8px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-\\[20px\\]{height:20px}.h-\\[24px\\]{height:24px}.h-fit{height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-44{max-height:calc(var(--spacing) * 44)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\\[var\\(--rg-edit-list-max-h\\)\\]{max-height:var(--rg-edit-list-max-h)}.min-h-0{min-height:0}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-\\[2lh\\]{min-height:2lh}.min-h-\\[28px\\]{min-height:28px}.w-1{width:var(--spacing)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-16{width:calc(var(--spacing) * 16)}.w-72{width:calc(var(--spacing) * 72)}.w-\\[2px\\]{width:2px}.w-\\[calc\\(100\\%\\+16px\\)\\]{width:calc(100% + 16px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-\\[55\\%\\]{max-width:55%}.max-w-\\[100vw\\]{max-width:100vw}.max-w-\\[280px\\]{max-width:280px}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-\\[3\\.5ch\\]{min-width:3.5ch}.min-w-\\[4ch\\]{min-width:4ch}.min-w-\\[5ch\\]{min-width:5ch}.min-w-\\[6ch\\]{min-width:6ch}.min-w-\\[12ch\\]{min-width:12ch}.min-w-\\[36px\\]{min-width:36px}.min-w-\\[52px\\]{min-width:52px}.min-w-\\[68px\\]{min-width:68px}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[150px\\]{min-width:150px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-rotate-90{rotate:-90deg}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.list-decimal{list-style-type:decimal}.grid-cols-\\[0fr\\]{grid-template-columns:0fr}.grid-cols-\\[1fr\\]{grid-template-columns:1fr}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:0}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-\\[5px\\]{gap:5px}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[13px\\]{border-radius:13px}.rounded-\\[14px\\]{border-radius:14px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-\\[10px\\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-\\[10px\\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\\[6px\\]{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-4{border-top-style:var(--tw-border-style);border-top-width:4px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-dotted{--tw-border-style:dotted;border-style:dotted}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[var\\(--rg-border-button\\)\\]{border-color:var(--rg-border-button)}.border-accent{border-color:var(--color-accent)}.border-accent\\/40{border-color:#5e6ad266}@supports (color:color-mix(in lab, red, red)){.border-accent\\/40{border-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.border-border{border-color:var(--color-border)}.border-success{border-color:var(--color-success)}.border-success\\/40{border-color:#4cb78266}@supports (color:color-mix(in lab, red, red)){.border-success\\/40{border-color:color-mix(in oklab, var(--color-success) 40%, transparent)}}.border-text-dim{border-color:var(--color-text-dim)}.border-transparent{border-color:#0000}.border-warn{border-color:var(--color-warn)}.border-warn\\/40{border-color:#f2c94c66}@supports (color:color-mix(in lab, red, red)){.border-warn\\/40{border-color:color-mix(in oklab, var(--color-warn) 40%, transparent)}}.border-t-\\[var\\(--rg-border-subtle\\)\\]{border-top-color:var(--rg-border-subtle)}.border-t-transparent{border-top-color:#0000}.bg-\\[var\\(--rg-error-bg\\)\\]{background-color:var(--rg-error-bg)}.bg-\\[var\\(--rg-panel-bg\\)\\]{background-color:var(--rg-panel-bg)}.bg-\\[var\\(--rg-submit-bg\\)\\]{background-color:var(--rg-submit-bg)}.bg-\\[var\\(--rg-surface-active\\)\\]{background-color:var(--rg-surface-active)}.bg-\\[var\\(--rg-surface-hover\\)\\]{background-color:var(--rg-surface-hover)}.bg-\\[var\\(--rg-text-primary\\)\\]{background-color:var(--rg-text-primary)}.bg-\\[var\\(--rg-text-secondary\\)\\]{background-color:var(--rg-text-secondary)}.bg-accent{background-color:var(--color-accent)}.bg-accent-soft{background-color:var(--color-accent-soft)}.bg-bg{background-color:var(--color-bg)}.bg-bg\\/80{background-color:#0b0c0ecc}@supports (color:color-mix(in lab, red, red)){.bg-bg\\/80{background-color:color-mix(in oklab, var(--color-bg) 80%, transparent)}}.bg-border{background-color:var(--color-border)}.bg-current{background-color:currentColor}.bg-danger{background-color:var(--color-danger)}.bg-danger-soft{background-color:var(--color-danger-soft)}.bg-red-500{background-color:var(--color-red-500)}.bg-success{background-color:var(--color-success)}.bg-surface{background-color:var(--color-surface)}.bg-surface-2{background-color:var(--color-surface-2)}.bg-surface-3{background-color:var(--color-surface-3)}.bg-text-faint{background-color:var(--color-text-faint)}.bg-transparent{background-color:#0000}.bg-warn{background-color:var(--color-warn)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-6{padding:calc(var(--spacing) * 6)}.px-0{padding-inline:0}.px-0\\.25{padding-inline:calc(var(--spacing) * .25)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:0}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-0\\.25{padding-block:calc(var(--spacing) * .25)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-px{padding-block:1px}.pt-0{padding-top:0}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:var(--spacing)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1{padding-bottom:var(--spacing)}.pb-1\\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-end{text-align:end}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-\\[9\\.5px\\]{font-size:9.5px}.text-\\[9px\\]{font-size:9px}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.leading-3{--tw-leading:calc(var(--spacing) * 3);line-height:calc(var(--spacing) * 3)}.leading-3\\.5{--tw-leading:calc(var(--spacing) * 3.5);line-height:calc(var(--spacing) * 3.5)}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-extralight{--tw-font-weight:var(--font-weight-extralight);font-weight:var(--font-weight-extralight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin{--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-normal{overflow-wrap:normal;word-break:normal}.break-words,.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-break-spaces{white-space:break-spaces}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--rg-error-text\\)\\]{color:var(--rg-error-text)}.text-\\[var\\(--rg-submit-fg\\)\\]{color:var(--rg-submit-fg)}.text-\\[var\\(--rg-text-primary\\)\\]{color:var(--rg-text-primary)}.text-\\[var\\(--rg-text-primary-85\\)\\]{color:var(--rg-text-primary-85)}.text-\\[var\\(--rg-text-secondary\\)\\]{color:var(--rg-text-secondary)}.text-accent{color:var(--color-accent)}.text-danger{color:var(--color-danger)}.text-success{color:var(--color-success)}.text-text{color:var(--color-text)}.text-text-dim{color:var(--color-text-dim)}.text-text-faint{color:var(--color-text-faint)}.text-warn{color:var(--color-warn)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-accent{accent-color:var(--color-accent)}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.\\[box-shadow\\:var\\(--rg-shadow\\)\\]{box-shadow:var(--rg-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.\\[filter\\:var\\(--rg-drop-shadow\\)\\]{filter:var(--rg-drop-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-columns\\]{transition-property:grid-template-columns;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[padding\\,border-radius\\,transform\\]{transition-property:padding,border-radius,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[top\\,left\\,width\\,height\\,opacity\\,border-radius\\]{transition-property:top,left,width,height,opacity,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,color\\]{transition-property:transform,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-\\[80ms\\]{transition-delay:80ms}.duration-60{--tw-duration:60ms;transition-duration:60ms}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-140{--tw-duration:.14s;transition-duration:.14s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-180{--tw-duration:.18s;transition-duration:.18s}.duration-220{--tw-duration:.22s;transition-duration:.22s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[opacity\\,transform\\]{will-change:opacity,transform}.will-change-transform{will-change:transform}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.\\[corner-shape\\:superellipse\\(1\\.25\\)\\]{corner-shape:superellipse(1.25)}.\\[font-synthesis\\:none\\]{font-synthesis:none}.group-open\\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}@media (hover:hover){.group-hover\\:text-\\[var\\(--rg-text-primary\\)\\]:is(:where(.group):hover *){color:var(--rg-text-primary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-text-faint::placeholder{color:var(--color-text-faint)}@media (hover:hover){.hover\\:bg-\\[var\\(--rg-error-bg-hover\\)\\]:hover{background-color:var(--rg-error-bg-hover)}.hover\\:bg-\\[var\\(--rg-surface-active\\)\\]:hover{background-color:var(--rg-surface-active)}.hover\\:bg-\\[var\\(--rg-surface-hover\\)\\]:hover{background-color:var(--rg-surface-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--color-accent-hover)}.hover\\:bg-accent\\/50:hover{background-color:#5e6ad280}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.hover\\:bg-danger\\/30:hover{background-color:#eb57574d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger\\/30:hover{background-color:color-mix(in oklab, var(--color-danger) 30%, transparent)}}.hover\\:bg-surface-2:hover{background-color:var(--color-surface-2)}.hover\\:bg-surface-3:hover{background-color:var(--color-surface-3)}.hover\\:text-\\[var\\(--rg-text-primary\\)\\]:hover{color:var(--rg-text-primary)}.hover\\:text-danger:hover{color:var(--color-danger)}.hover\\:text-text:hover{color:var(--color-text)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}}.focus\\:border-accent:focus{border-color:var(--color-accent)}.active\\:cursor-grabbing:active{cursor:grabbing}.active\\:bg-accent:active{background-color:var(--color-accent)}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-surface-3:disabled{background-color:var(--color-surface-3)}.disabled\\:text-text-faint:disabled{color:var(--color-text-faint)}.disabled\\:opacity-40:disabled{opacity:.4}@media (hover:hover){.disabled\\:hover\\:bg-surface-2:disabled:hover{background-color:var(--color-surface-2)}}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=light],:host([data-theme=light]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}body{background-color:var(--color-bg);font-family:var(--font-sans);color:var(--color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-width:320px;margin:0;font-size:13px}@keyframes geist-spinner-fade{0%{opacity:1}to{opacity:.15}}[data-tip]{position:relative}[data-tip]:hover:after{content:attr(data-tip);color:#fff;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;z-index:60;background:#1b1c20;border-radius:6px;max-width:260px;padding:3px 8px;font-size:10.5px;font-weight:500;line-height:1.35;position:absolute;bottom:calc(100% + 6px);left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 4px 12px #0000004d}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.lg-md p{margin:0 0 6px}.lg-md p:last-child{margin-bottom:0}.lg-md a{color:var(--color-accent);word-break:break-all;text-decoration:none}.lg-md a:hover{text-decoration:underline}.lg-md code{background:var(--color-surface-2);border:1px solid var(--color-border);font-family:var(--font-mono);border-radius:4px;padding:0 4px;font-size:11px}.lg-md pre{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:6px;margin:6px 0;padding:8px;overflow-x:auto}.lg-md pre code{white-space:pre;background:0 0;border:none;padding:0;font-size:11px}.lg-md ul,.lg-md ol{flex-direction:column;gap:2px;margin:4px 0 6px;padding-left:18px;display:flex}.lg-md ul{list-style:outside}.lg-md ol{list-style:decimal}.lg-md h4{margin:8px 0 4px;font-size:12px;font-weight:600}.lg-md lg-media{display:block}.lg-md lg-media img,.lg-md lg-media video{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md video{border:1px solid var(--color-border);background:#000;border-radius:6px;max-width:100%;margin:4px 0}.lg-md img{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md strong{font-weight:600}*{scrollbar-width:thin;scrollbar-color:var(--color-border-strong) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:var(--color-border-strong);border-radius:4px}::-webkit-scrollbar-track{background:0 0}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-contain-size{syntax:\"*\";inherits:false}@property --tw-contain-layout{syntax:\"*\";inherits:false}@property --tw-contain-paint{syntax:\"*\";inherits:false}@property --tw-contain-style{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}";
|
|
45254
45310
|
//#endregion
|
|
45255
45311
|
//#region src/page/index.tsx
|
|
45256
45312
|
Rr();
|
|
45257
|
-
var
|
|
45258
|
-
function
|
|
45313
|
+
var T0 = /*#__PURE__*/ N("<span aria-hidden class=\"bg-danger size-2 shrink-0 animate-pulse rounded-full\">"), E0 = /*#__PURE__*/ N("<span class=\"text-text min-w-[5ch] text-[11px] font-medium tabular-nums\">"), D0 = /*#__PURE__*/ N("<button class=\"bg-accent hover:bg-accent-hover h-7 cursor-pointer rounded-full px-2.5 text-[11px] font-medium text-white transition-colors\"><span class=\"inline-block min-w-[4ch] text-center\">Stop"), O0 = /*#__PURE__*/ N("<p class=\"text-warn px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase\">Needs review"), k0 = /*#__PURE__*/ N("<div><p class=\"text-text-dim px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase\">Running agents"), A0 = /*#__PURE__*/ N("<div class=\"fixed z-[2147483646] select-none\"><div class=\"bg-surface border-border text-text flex h-9 cursor-grab items-center gap-1 rounded-full border py-1 pr-1 pl-2.5 font-sans shadow-lg active:cursor-grabbing\">"), j0 = /*#__PURE__*/ N("<div><div title=\"Drag to resize\">"), M0 = /*#__PURE__*/ N("<button title=\"Open Linear Grab\"aria-label=\"Open Linear Grab\"class=\"text-accent hover:opacity-80 inline-flex cursor-pointer items-center gap-1.5\">"), N0 = /*#__PURE__*/ N("<span class=\"bg-border h-4 w-px\"aria-hidden>"), P0 = /*#__PURE__*/ N("<span aria-hidden class=\"bg-warn size-2 rounded-full\">"), F0 = /*#__PURE__*/ N("<span class=\"text-warn min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums\"> rev"), I0 = /*#__PURE__*/ N("<button title=\"Running agents\"aria-label=\"Running agents\"class=\"hover:bg-surface-2 flex h-7 cursor-pointer items-center gap-1.5 rounded-full px-2 transition-colors\"><span aria-hidden></span><span>"), L0 = /*#__PURE__*/ N("<p class=\"text-text-faint px-1.5 pb-1.5 text-[11.5px]\">No agents running right now."), R0 = /*#__PURE__*/ N("<button class=\"hover:bg-surface-2 flex w-full cursor-pointer flex-col gap-0.5 rounded-md px-1.5 py-1.5 text-left transition-colors\"><span class=\"flex min-w-0 items-center gap-1.5\"><span aria-hidden class=\"size-1.5 shrink-0 rounded-full\"></span><span class=\"font-mono text-text-dim shrink-0 text-[10.5px]\"></span><span class=\"text-text truncate text-[11.5px]\"></span></span><span class=\"text-text-faint pl-3 text-[10.5px] tabular-nums\"> · <!> · ");
|
|
45314
|
+
function z0(e = {}) {
|
|
45259
45315
|
if (typeof window > "u" || window.__LINEAR_GRAB_PAGE__) return;
|
|
45260
45316
|
window.__LINEAR_GRAB_PAGE__ = !0;
|
|
45261
45317
|
let t = () => {
|
|
@@ -45263,17 +45319,17 @@ function I0(e = {}) {
|
|
|
45263
45319
|
let t = document.createElement("div");
|
|
45264
45320
|
t.id = "linear-grab-root", document.body.appendChild(t);
|
|
45265
45321
|
let n = t.attachShadow({ mode: "open" }), r = document.createElement("style");
|
|
45266
|
-
r.textContent =
|
|
45322
|
+
r.textContent = w0, n.appendChild(r);
|
|
45267
45323
|
let i = document.createElement("div");
|
|
45268
45324
|
n.appendChild(i);
|
|
45269
|
-
let a = () => i.setAttribute("data-theme",
|
|
45270
|
-
a(), matchMedia("(prefers-color-scheme: light)").addEventListener("change", a), nt(() => j(
|
|
45325
|
+
let a = () => i.setAttribute("data-theme", B0());
|
|
45326
|
+
a(), matchMedia("(prefers-color-scheme: light)").addEventListener("change", a), nt(() => j(K0, { get defaultOpen() {
|
|
45271
45327
|
return e.defaultOpen ?? !1;
|
|
45272
45328
|
} }), i);
|
|
45273
45329
|
};
|
|
45274
45330
|
document.body ? t() : document.addEventListener("DOMContentLoaded", t, { once: !0 });
|
|
45275
45331
|
}
|
|
45276
|
-
function
|
|
45332
|
+
function B0() {
|
|
45277
45333
|
try {
|
|
45278
45334
|
let e = [document.body, document.documentElement];
|
|
45279
45335
|
for (let t of e) {
|
|
@@ -45283,11 +45339,11 @@ function L0() {
|
|
|
45283
45339
|
} catch {}
|
|
45284
45340
|
return matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
|
|
45285
45341
|
}
|
|
45286
|
-
var
|
|
45287
|
-
function
|
|
45342
|
+
var V0 = 130, H0 = 36, U0 = 380, W0 = 280, G0 = 720;
|
|
45343
|
+
function K0(e) {
|
|
45288
45344
|
let [t, n] = T(e.defaultOpen), [r, i] = T("right"), [a, o] = T({
|
|
45289
|
-
x: Math.max(8, window.innerWidth -
|
|
45290
|
-
y: Math.max(8, window.innerHeight -
|
|
45345
|
+
x: Math.max(8, window.innerWidth - V0 - 24),
|
|
45346
|
+
y: Math.max(8, window.innerHeight - H0 - 20)
|
|
45291
45347
|
}), [s, c] = T({
|
|
45292
45348
|
running: [],
|
|
45293
45349
|
review: []
|
|
@@ -45302,15 +45358,15 @@ function U0(e) {
|
|
|
45302
45358
|
let t = Math.floor(e / 1e3);
|
|
45303
45359
|
return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
|
|
45304
45360
|
}, [v, y] = T(null), b = (e) => ({
|
|
45305
|
-
x: Math.min(Math.max(8, e.x), window.innerWidth -
|
|
45306
|
-
y: Math.min(Math.max(8, e.y), window.innerHeight -
|
|
45361
|
+
x: Math.min(Math.max(8, e.x), window.innerWidth - V0 - 8),
|
|
45362
|
+
y: Math.min(Math.max(8, e.y), window.innerHeight - H0 - 8)
|
|
45307
45363
|
}), x = (e) => ({
|
|
45308
|
-
x: Math.min(Math.max(8 - (
|
|
45364
|
+
x: Math.min(Math.max(8 - (te() - 80), e.x), window.innerWidth - 80),
|
|
45309
45365
|
y: Math.min(Math.max(0, e.y), window.innerHeight - 80)
|
|
45310
|
-
}), [S, C] = T(!1), [w,
|
|
45311
|
-
|
|
45366
|
+
}), [S, C] = T(!1), [w, E] = T("cloud"), [k, ee] = T(!1), [te, A] = T(U0), ne = (e) => Math.min(G0, Math.max(W0, Math.min(e, window.innerWidth - 60)));
|
|
45367
|
+
O(() => {
|
|
45312
45368
|
let e = document.documentElement, n = t() && S();
|
|
45313
|
-
e.style.transition = "margin 0.2s ease", e.style.marginRight = n && r() === "right" ? `${
|
|
45369
|
+
e.style.transition = "margin 0.2s ease", e.style.marginRight = n && r() === "right" ? `${te()}px` : "", e.style.marginLeft = n && r() === "left" ? `${te()}px` : "";
|
|
45314
45370
|
}), ae(() => {
|
|
45315
45371
|
document.documentElement.style.marginRight = "", document.documentElement.style.marginLeft = "";
|
|
45316
45372
|
});
|
|
@@ -45323,14 +45379,14 @@ function U0(e) {
|
|
|
45323
45379
|
};
|
|
45324
45380
|
ie(() => {
|
|
45325
45381
|
Cr().then((e) => {
|
|
45326
|
-
e.panelSide && i(e.panelSide), e.launcherPos && o(b(e.launcherPos)), e.panelPos && y(x(e.panelPos)), e.panelWidth && A(ne(e.panelWidth)), C(e.panelMode === "pinned"),
|
|
45382
|
+
e.panelSide && i(e.panelSide), e.launcherPos && o(b(e.launcherPos)), e.panelPos && y(x(e.panelPos)), e.panelWidth && A(ne(e.panelWidth)), C(e.panelMode === "pinned"), E(e.workflowMode ?? "cloud");
|
|
45327
45383
|
});
|
|
45328
45384
|
let e = Ar((e) => {
|
|
45329
45385
|
e === "settings" && Cr().then((e) => {
|
|
45330
|
-
i(e.panelSide ?? "right"), C(e.panelMode === "pinned"),
|
|
45386
|
+
i(e.panelSide ?? "right"), C(e.panelMode === "pinned"), E(e.workflowMode ?? "cloud");
|
|
45331
45387
|
}), e === "grab" && w() !== "local" && n(!0);
|
|
45332
45388
|
}), t = () => {
|
|
45333
|
-
|
|
45389
|
+
ee(!0), setTimeout(() => ee(!1), 1600);
|
|
45334
45390
|
};
|
|
45335
45391
|
window.addEventListener(EZ, t);
|
|
45336
45392
|
let r = () => {
|
|
@@ -45372,7 +45428,7 @@ function U0(e) {
|
|
|
45372
45428
|
}, ue = (e) => {
|
|
45373
45429
|
if (e.button !== 0) return;
|
|
45374
45430
|
e.preventDefault(), e.stopPropagation();
|
|
45375
|
-
let t = e.clientX, n =
|
|
45431
|
+
let t = e.clientX, n = te(), i = v(), a = (e) => {
|
|
45376
45432
|
let a = e.clientX - t, o = r() === "right" ? -a : a, s = ne(n + o);
|
|
45377
45433
|
A(s), i && r() === "right" && y(x({
|
|
45378
45434
|
x: i.x + (n - s),
|
|
@@ -45380,7 +45436,7 @@ function U0(e) {
|
|
|
45380
45436
|
}));
|
|
45381
45437
|
}, o = () => {
|
|
45382
45438
|
window.removeEventListener("pointermove", a), window.removeEventListener("pointerup", o), wr({
|
|
45383
|
-
panelWidth:
|
|
45439
|
+
panelWidth: te(),
|
|
45384
45440
|
...v() ? { panelPos: v() } : {}
|
|
45385
45441
|
});
|
|
45386
45442
|
};
|
|
@@ -45395,7 +45451,7 @@ function U0(e) {
|
|
|
45395
45451
|
x: e.clientX,
|
|
45396
45452
|
y: e.clientY
|
|
45397
45453
|
}, n = v() ?? {
|
|
45398
|
-
x: r() === "right" ? window.innerWidth -
|
|
45454
|
+
x: r() === "right" ? window.innerWidth - te() : 0,
|
|
45399
45455
|
y: 0
|
|
45400
45456
|
}, i = !1, a = (e) => {
|
|
45401
45457
|
let r = e.clientX - t.x, a = e.clientY - t.y;
|
|
@@ -45415,7 +45471,7 @@ function U0(e) {
|
|
|
45415
45471
|
return !t();
|
|
45416
45472
|
},
|
|
45417
45473
|
get children() {
|
|
45418
|
-
var e =
|
|
45474
|
+
var e = A0(), t = e.firstChild;
|
|
45419
45475
|
return t.$$pointerdown = se, P(t, j(M, {
|
|
45420
45476
|
get when() {
|
|
45421
45477
|
return p() === "recording";
|
|
@@ -45423,31 +45479,31 @@ function U0(e) {
|
|
|
45423
45479
|
get fallback() {
|
|
45424
45480
|
return [
|
|
45425
45481
|
(() => {
|
|
45426
|
-
var e =
|
|
45482
|
+
var e = M0();
|
|
45427
45483
|
return e.$$click = () => {
|
|
45428
45484
|
oe || (f(!1), n(!0));
|
|
45429
|
-
}, P(e, j(
|
|
45485
|
+
}, P(e, j(S0, { size: 13 })), e;
|
|
45430
45486
|
})(),
|
|
45431
|
-
|
|
45487
|
+
N0(),
|
|
45432
45488
|
(() => {
|
|
45433
|
-
var e =
|
|
45489
|
+
var e = I0(), t = e.firstChild, n = t.nextSibling;
|
|
45434
45490
|
return e.$$click = () => {
|
|
45435
45491
|
oe || f((e) => !e);
|
|
45436
45492
|
}, P(n, (() => {
|
|
45437
|
-
var e = $e(() => !!
|
|
45493
|
+
var e = $e(() => !!k());
|
|
45438
45494
|
return () => e() ? "Copied ✓" : `${l().length} run`;
|
|
45439
45495
|
})()), P(e, j(M, {
|
|
45440
45496
|
get when() {
|
|
45441
|
-
return $e(() => !
|
|
45497
|
+
return $e(() => !k())() && u().length > 0;
|
|
45442
45498
|
},
|
|
45443
45499
|
get children() {
|
|
45444
|
-
return [
|
|
45445
|
-
var e =
|
|
45500
|
+
return [P0(), (() => {
|
|
45501
|
+
var e = F0(), t = e.firstChild;
|
|
45446
45502
|
return P(e, () => u().length, t), e;
|
|
45447
45503
|
})()];
|
|
45448
45504
|
}
|
|
45449
|
-
}), null),
|
|
45450
|
-
var r = `size-2 rounded-full ${
|
|
45505
|
+
}), null), D((e) => {
|
|
45506
|
+
var r = `size-2 rounded-full ${k() ? "bg-success" : l().length ? "bg-success animate-pulse" : "bg-text-faint"}`, i = `min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums ${k() ? "text-success" : "text-text-dim"}`;
|
|
45451
45507
|
return r !== e.e && st(t, e.e = r), i !== e.t && st(n, e.t = i), e;
|
|
45452
45508
|
}, {
|
|
45453
45509
|
e: void 0,
|
|
@@ -45458,13 +45514,13 @@ function U0(e) {
|
|
|
45458
45514
|
},
|
|
45459
45515
|
get children() {
|
|
45460
45516
|
return [
|
|
45461
|
-
|
|
45517
|
+
T0(),
|
|
45462
45518
|
(() => {
|
|
45463
|
-
var e =
|
|
45519
|
+
var e = E0();
|
|
45464
45520
|
return P(e, () => _(h())), e;
|
|
45465
45521
|
})(),
|
|
45466
45522
|
(() => {
|
|
45467
|
-
var e =
|
|
45523
|
+
var e = D0();
|
|
45468
45524
|
return e.$$click = () => {
|
|
45469
45525
|
oe || QD();
|
|
45470
45526
|
}, e;
|
|
@@ -45476,17 +45532,17 @@ function U0(e) {
|
|
|
45476
45532
|
return d();
|
|
45477
45533
|
},
|
|
45478
45534
|
get children() {
|
|
45479
|
-
var e =
|
|
45535
|
+
var e = k0(), t = e.firstChild;
|
|
45480
45536
|
return P(e, j(M, {
|
|
45481
45537
|
get when() {
|
|
45482
45538
|
return u().length > 0;
|
|
45483
45539
|
},
|
|
45484
45540
|
get children() {
|
|
45485
|
-
return [
|
|
45541
|
+
return [O0(), j(We, {
|
|
45486
45542
|
get each() {
|
|
45487
45543
|
return u();
|
|
45488
45544
|
},
|
|
45489
|
-
children: (e) => j(
|
|
45545
|
+
children: (e) => j(q0, {
|
|
45490
45546
|
agent: e,
|
|
45491
45547
|
review: !0,
|
|
45492
45548
|
onOpen: le
|
|
@@ -45498,22 +45554,22 @@ function U0(e) {
|
|
|
45498
45554
|
return l().length > 0;
|
|
45499
45555
|
},
|
|
45500
45556
|
get fallback() {
|
|
45501
|
-
return
|
|
45557
|
+
return L0();
|
|
45502
45558
|
},
|
|
45503
45559
|
get children() {
|
|
45504
45560
|
return j(We, {
|
|
45505
45561
|
get each() {
|
|
45506
45562
|
return l();
|
|
45507
45563
|
},
|
|
45508
|
-
children: (e) => j(
|
|
45564
|
+
children: (e) => j(q0, {
|
|
45509
45565
|
agent: e,
|
|
45510
45566
|
onOpen: le
|
|
45511
45567
|
})
|
|
45512
45568
|
});
|
|
45513
45569
|
}
|
|
45514
|
-
}), null),
|
|
45570
|
+
}), null), D(() => st(e, `bg-surface border-border absolute w-72 rounded-lg border p-1.5 font-sans shadow-2xl ${ce() ? "bottom-full mb-2" : "top-full mt-2"} ${a().x > window.innerWidth - 300 ? "right-0" : "left-0"}`)), e;
|
|
45515
45571
|
}
|
|
45516
|
-
}), null),
|
|
45572
|
+
}), null), D((t) => {
|
|
45517
45573
|
var n = `${a().x}px`, r = `${a().y}px`;
|
|
45518
45574
|
return n !== t.e && dt(e, "left", t.e = n), r !== t.t && dt(e, "top", t.t = r), t;
|
|
45519
45575
|
}, {
|
|
@@ -45526,8 +45582,8 @@ function U0(e) {
|
|
|
45526
45582
|
return t();
|
|
45527
45583
|
},
|
|
45528
45584
|
get children() {
|
|
45529
|
-
var e =
|
|
45530
|
-
return t.$$pointerdown = ue, P(e, j(
|
|
45585
|
+
var e = j0(), t = e.firstChild;
|
|
45586
|
+
return t.$$pointerdown = ue, P(e, j(C0, {
|
|
45531
45587
|
onGrab: () => n(!0),
|
|
45532
45588
|
onClose: () => n(!1),
|
|
45533
45589
|
get onHeaderPointerDown() {
|
|
@@ -45537,9 +45593,9 @@ function U0(e) {
|
|
|
45537
45593
|
return S();
|
|
45538
45594
|
},
|
|
45539
45595
|
onTogglePin: re
|
|
45540
|
-
}), null),
|
|
45596
|
+
}), null), D((n) => {
|
|
45541
45597
|
var i = `bg-bg text-text border-border fixed z-[2147483645] flex max-w-[100vw] flex-col overflow-hidden font-sans text-[13px] antialiased ${S() ? "" : "shadow-2xl"} ${!S() && v() ? "rounded-xl border" : r() === "right" ? "top-0 right-0 h-screen border-l" : "top-0 left-0 h-screen border-r"}`, a = {
|
|
45542
|
-
width: `${
|
|
45598
|
+
width: `${te()}px`,
|
|
45543
45599
|
...!S() && v() ? {
|
|
45544
45600
|
left: `${v().x}px`,
|
|
45545
45601
|
top: `${v().y}px`,
|
|
@@ -45555,19 +45611,19 @@ function U0(e) {
|
|
|
45555
45611
|
}
|
|
45556
45612
|
})];
|
|
45557
45613
|
}
|
|
45558
|
-
function
|
|
45614
|
+
function q0(e) {
|
|
45559
45615
|
return (() => {
|
|
45560
|
-
var t =
|
|
45616
|
+
var t = R0(), n = t.firstChild, r = n.firstChild, i = r.nextSibling, a = i.nextSibling, o = n.nextSibling, s = o.firstChild, c = s.nextSibling;
|
|
45561
45617
|
return c.nextSibling, t.$$click = () => e.onOpen(e.agent.id), P(i, () => e.agent.identifier), P(a, () => e.agent.title), P(o, (() => {
|
|
45562
45618
|
var t = $e(() => !!e.review);
|
|
45563
45619
|
return () => t() ? "PR ready · needs review" : e.agent.stateName;
|
|
45564
|
-
})(), s), P(o, () => e.agent.delegateName, c), P(o, () =>
|
|
45620
|
+
})(), s), P(o, () => e.agent.delegateName, c), P(o, () => J0(e.agent.updatedAt), null), D((t) => dt(r, "background", e.review ? "var(--color-warn)" : e.agent.stateColor)), t;
|
|
45565
45621
|
})();
|
|
45566
45622
|
}
|
|
45567
|
-
function
|
|
45623
|
+
function J0(e) {
|
|
45568
45624
|
let t = Math.max(0, Math.floor((Date.now() - Date.parse(e)) / 1e3));
|
|
45569
45625
|
return t < 60 ? "now" : t < 3600 ? `${Math.floor(t / 60)}m` : t < 86400 ? `${Math.floor(t / 3600)}h` : `${Math.floor(t / 86400)}d`;
|
|
45570
45626
|
}
|
|
45571
45627
|
rt(["pointerdown", "click"]);
|
|
45572
45628
|
//#endregion
|
|
45573
|
-
export {
|
|
45629
|
+
export { z0 as init };
|