@elia-assistant/chatui 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chatui.css +1 -1
- package/dist/chatui.iife.css +1 -1
- package/dist/chatui.iife.js +7 -7
- package/dist/components/ChatView.d.ts +3 -1
- package/dist/hooks/useCta.d.ts +1 -1
- package/dist/index.js +765 -748
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38,8 +38,8 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
|
|
|
38
38
|
track: !0,
|
|
39
39
|
wbr: !0
|
|
40
40
|
};
|
|
41
|
-
})))()),
|
|
42
|
-
function
|
|
41
|
+
})))()), te = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
|
|
42
|
+
function F(e) {
|
|
43
43
|
var t = {
|
|
44
44
|
type: "tag",
|
|
45
45
|
name: "",
|
|
@@ -54,27 +54,27 @@ function I(e) {
|
|
|
54
54
|
comment: r === -1 ? "" : e.slice(4, r)
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
for (var i = new RegExp(
|
|
57
|
+
for (var i = new RegExp(te), a = null; (a = i.exec(e)) !== null;) if (a[0].trim()) if (a[1]) {
|
|
58
58
|
var o = a[1].trim(), s = [o, ""];
|
|
59
59
|
o.indexOf("=") > -1 && (s = o.split("=")), t.attrs[s[0]] = s[1], i.lastIndex--;
|
|
60
60
|
} else a[2] && (t.attrs[a[2]] = a[3].trim().substring(1, a[3].length - 1));
|
|
61
61
|
return t;
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
function
|
|
63
|
+
var ne = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, re = /^\s*$/, ie = Object.create(null);
|
|
64
|
+
function ae(e, t) {
|
|
65
65
|
switch (t.type) {
|
|
66
66
|
case "text": return e + t.content;
|
|
67
67
|
case "tag": return e += "<" + t.name + (t.attrs ? function(e) {
|
|
68
68
|
var t = [];
|
|
69
69
|
for (var n in e) t.push(n + "=\"" + e[n] + "\"");
|
|
70
70
|
return t.length ? " " + t.join(" ") : "";
|
|
71
|
-
}(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(
|
|
71
|
+
}(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(ae, "") + "</" + t.name + ">";
|
|
72
72
|
case "comment": return e + "<!--" + t.comment + "-->";
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var oe = {
|
|
76
76
|
parse: function(e, t) {
|
|
77
|
-
t ||= {}, t.components ||=
|
|
77
|
+
t ||= {}, t.components ||= ie;
|
|
78
78
|
var n, r = [], i = [], a = -1, o = !1;
|
|
79
79
|
if (e.indexOf("<") !== 0) {
|
|
80
80
|
var s = e.indexOf("<");
|
|
@@ -83,23 +83,23 @@ var ae = {
|
|
|
83
83
|
content: s === -1 ? e : e.substring(0, s)
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
return e.replace(
|
|
86
|
+
return e.replace(ne, function(s, c) {
|
|
87
87
|
if (o) {
|
|
88
88
|
if (s !== "</" + n.name + ">") return;
|
|
89
89
|
o = !1;
|
|
90
90
|
}
|
|
91
91
|
var l, u = s.charAt(1) !== "/", d = s.startsWith("<!--"), f = c + s.length, p = e.charAt(f);
|
|
92
92
|
if (d) {
|
|
93
|
-
var m =
|
|
93
|
+
var m = F(s);
|
|
94
94
|
return a < 0 ? (r.push(m), r) : ((l = i[a]).children.push(m), r);
|
|
95
95
|
}
|
|
96
|
-
if (u && (a++, (n =
|
|
96
|
+
if (u && (a++, (n = F(s)).type === "tag" && t.components[n.name] && (n.type = "component", o = !0), n.voidElement || o || !p || p === "<" || n.children.push({
|
|
97
97
|
type: "text",
|
|
98
98
|
content: e.slice(f, e.indexOf("<", f))
|
|
99
99
|
}), a === 0 && r.push(n), (l = i[a - 1]) && l.children.push(n), i[a] = n), (!u || n.voidElement) && (a > -1 && (n.voidElement || n.name === s.slice(2, -1)) && (a--, n = a === -1 ? r : i[a]), !o && p !== "<" && p)) {
|
|
100
100
|
l = a === -1 ? r : i[a].children;
|
|
101
101
|
var h = e.indexOf("<", f), g = e.slice(f, h === -1 ? void 0 : h);
|
|
102
|
-
|
|
102
|
+
re.test(g) && (g = " "), (h > -1 && a + l.length >= 0 || g !== " ") && l.push({
|
|
103
103
|
type: "text",
|
|
104
104
|
content: g
|
|
105
105
|
});
|
|
@@ -108,19 +108,19 @@ var ae = {
|
|
|
108
108
|
},
|
|
109
109
|
stringify: function(e) {
|
|
110
110
|
return e.reduce(function(e, t) {
|
|
111
|
-
return e +
|
|
111
|
+
return e + ae("", t);
|
|
112
112
|
}, "");
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, se = (e, t, n, r) => {
|
|
115
115
|
let i = [n, {
|
|
116
116
|
code: t,
|
|
117
117
|
...r || {}
|
|
118
118
|
}];
|
|
119
119
|
if (e?.services?.logger?.forward) return e.services.logger.forward(i, "warn", "react-i18next::", !0);
|
|
120
|
-
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
},
|
|
120
|
+
I(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), e?.services?.logger?.warn ? e.services.logger.warn(...i) : console?.warn && console.warn(...i);
|
|
121
|
+
}, ce = {}, le = (e, t, n, r) => {
|
|
122
|
+
I(n) && ce[n] || (I(n) && (ce[n] = /* @__PURE__ */ new Date()), se(e, t, n, r));
|
|
123
|
+
}, ue = (e, t) => () => {
|
|
124
124
|
if (e.isInitialized) t();
|
|
125
125
|
else {
|
|
126
126
|
let n = () => {
|
|
@@ -130,46 +130,46 @@ var ae = {
|
|
|
130
130
|
};
|
|
131
131
|
e.on("initialized", n);
|
|
132
132
|
}
|
|
133
|
-
},
|
|
134
|
-
e.loadNamespaces(t,
|
|
135
|
-
},
|
|
136
|
-
if (
|
|
133
|
+
}, de = (e, t, n) => {
|
|
134
|
+
e.loadNamespaces(t, ue(e, n));
|
|
135
|
+
}, fe = (e, t, n, r) => {
|
|
136
|
+
if (I(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return de(e, n, r);
|
|
137
137
|
n.forEach((t) => {
|
|
138
138
|
e.options.ns.indexOf(t) < 0 && e.options.ns.push(t);
|
|
139
|
-
}), e.loadLanguages(t,
|
|
140
|
-
},
|
|
139
|
+
}), e.loadLanguages(t, ue(e, r));
|
|
140
|
+
}, pe = (e, t, n = {}) => !t.languages || !t.languages.length ? (le(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: t.languages }), !0) : t.hasLoadedNamespace(e, {
|
|
141
141
|
lng: n.lng,
|
|
142
142
|
precheck: (t, r) => {
|
|
143
143
|
if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) return !1;
|
|
144
144
|
}
|
|
145
|
-
}),
|
|
145
|
+
}), I = (e) => typeof e == "string", me = (e) => typeof e == "object" && !!e, he = (e, t) => {
|
|
146
146
|
if (!e) return !1;
|
|
147
147
|
let n = e.props?.children ?? e.children;
|
|
148
148
|
return t ? n.length > 0 : !!n;
|
|
149
|
-
},
|
|
149
|
+
}, ge = (e) => {
|
|
150
150
|
if (!e) return [];
|
|
151
151
|
let t = e.props?.children ?? e.children;
|
|
152
|
-
return e.props?.i18nIsDynamicList ?
|
|
153
|
-
},
|
|
152
|
+
return e.props?.i18nIsDynamicList ? ve(t) : t;
|
|
153
|
+
}, _e = (e) => Array.isArray(e) && e.every(p), ve = (e) => Array.isArray(e) ? e : [e], ye = (e, t) => {
|
|
154
154
|
let n = { ...t };
|
|
155
155
|
return n.props = {
|
|
156
156
|
...t.props,
|
|
157
157
|
...e.props
|
|
158
158
|
}, n;
|
|
159
|
-
},
|
|
159
|
+
}, be = (e) => {
|
|
160
160
|
let t = {};
|
|
161
161
|
if (!e) return t;
|
|
162
162
|
let n = (e) => {
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
ve(e).forEach((e) => {
|
|
164
|
+
I(e) || (he(e) ? n(ge(e)) : me(e) && !p(e) && Object.assign(t, e));
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
return n(e), t;
|
|
168
|
-
},
|
|
168
|
+
}, xe = (e, t, n, r) => {
|
|
169
169
|
if (!e) return "";
|
|
170
|
-
let i = "", a =
|
|
170
|
+
let i = "", a = ve(e), o = t?.transSupportBasicHtmlNodes ? t.transKeepBasicHtmlNodesFor ?? [] : [];
|
|
171
171
|
return a.forEach((e, a) => {
|
|
172
|
-
if (
|
|
172
|
+
if (I(e)) {
|
|
173
173
|
i += `${e}`;
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
@@ -183,37 +183,37 @@ var ae = {
|
|
|
183
183
|
i += `<${a}></${a}>`;
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
if (u && l === 1 &&
|
|
186
|
+
if (u && l === 1 && I(d)) {
|
|
187
187
|
i += `<${c}>${d}</${c}>`;
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
|
-
let f =
|
|
190
|
+
let f = xe(d, t, n, r);
|
|
191
191
|
i += `<${a}>${f}</${a}>`;
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
194
|
if (e === null) {
|
|
195
|
-
|
|
195
|
+
se(n, "TRANS_NULL_VALUE", "Passed in a null value as child", { i18nKey: r });
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
|
-
if (
|
|
198
|
+
if (me(e)) {
|
|
199
199
|
let { format: t, ...a } = e, o = Object.keys(a);
|
|
200
200
|
if (o.length === 1) {
|
|
201
201
|
let e = t ? `${o[0]}, ${t}` : o[0];
|
|
202
202
|
i += `{{${e}}}`;
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
se(n, "TRANS_INVALID_OBJ", "Invalid child - Object should only have keys {{ value, format }} (format is optional).", {
|
|
206
206
|
i18nKey: r,
|
|
207
207
|
child: e
|
|
208
208
|
});
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
se(n, "TRANS_INVALID_VAR", "Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.", {
|
|
212
212
|
i18nKey: r,
|
|
213
213
|
child: e
|
|
214
214
|
});
|
|
215
215
|
}), i;
|
|
216
|
-
},
|
|
216
|
+
}, Se = (e, t = [], n = {}) => {
|
|
217
217
|
if (!e) return e;
|
|
218
218
|
let r = Object.keys(n), i = [...t, ...r], a = "", o = 0;
|
|
219
219
|
for (; o < e.length;) if (e[o] === "<") {
|
|
@@ -232,22 +232,22 @@ var ae = {
|
|
|
232
232
|
t || (a += "<", o += 1);
|
|
233
233
|
} else a += e[o], o += 1;
|
|
234
234
|
return a;
|
|
235
|
-
},
|
|
235
|
+
}, Ce = (e, n, i, a, o, s, l) => {
|
|
236
236
|
if (i === "") return [];
|
|
237
237
|
let d = o.transKeepBasicHtmlNodesFor || [], m = i && new RegExp(d.map((e) => `<${e}`).join("|")).test(i);
|
|
238
238
|
if (!e && !n && !m && !l) return [i];
|
|
239
239
|
let h = n ?? {}, g = (e) => {
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
ve(e).forEach((e) => {
|
|
241
|
+
I(e) || (he(e) ? g(ge(e)) : me(e) && !p(e) && Object.assign(h, e));
|
|
242
242
|
});
|
|
243
243
|
};
|
|
244
244
|
g(e);
|
|
245
|
-
let _ =
|
|
245
|
+
let _ = Se(i, d, h), v = oe.parse(`<0>${_}</0>`), y = {
|
|
246
246
|
...h,
|
|
247
247
|
...s
|
|
248
248
|
}, b = (e, t, n) => {
|
|
249
|
-
let r =
|
|
250
|
-
return
|
|
249
|
+
let r = ge(e), i = S(r, t.children, n);
|
|
250
|
+
return _e(r) && i.length === 0 || e.props?.i18nIsDynamicList ? r : i;
|
|
251
251
|
}, x = (e, t, n, r, i) => {
|
|
252
252
|
e.dummy ? (e.children = t, n.push(u(e, { key: r }, i ? void 0 : t))) : n.push(...c.map([e], (e) => {
|
|
253
253
|
let n = "data-i18n-is-dynamic-list", a = {
|
|
@@ -259,8 +259,8 @@ var ae = {
|
|
|
259
259
|
}), u(e, a, i ? null : t);
|
|
260
260
|
}));
|
|
261
261
|
}, S = (e, i, s) => {
|
|
262
|
-
let c =
|
|
263
|
-
return
|
|
262
|
+
let c = ve(e);
|
|
263
|
+
return ve(i).reduce((e, i, u) => {
|
|
264
264
|
let h = i.children?.[0]?.content && a.services.interpolator.interpolate(i.children[0].content, y, a.language);
|
|
265
265
|
if (i.type === "tag") {
|
|
266
266
|
let r = c[parseInt(i.name, 10)];
|
|
@@ -268,13 +268,13 @@ var ae = {
|
|
|
268
268
|
let g = { ...i.attrs };
|
|
269
269
|
l && Object.keys(g).forEach((e) => {
|
|
270
270
|
let n = g[e];
|
|
271
|
-
|
|
271
|
+
I(n) && (g[e] = t(n));
|
|
272
272
|
});
|
|
273
|
-
let _ = Object.keys(g).length === 0 ? r :
|
|
274
|
-
if (
|
|
273
|
+
let _ = Object.keys(g).length === 0 ? r : ye({ props: g }, r), v = p(_), C = v && he(i, !0) && !i.voidElement, w = m && me(_) && _.dummy && !v, T = me(n) && Object.hasOwnProperty.call(n, i.name);
|
|
274
|
+
if (I(_)) {
|
|
275
275
|
let t = a.services.interpolator.interpolate(_, y, a.language);
|
|
276
276
|
e.push(t);
|
|
277
|
-
} else if (
|
|
277
|
+
} else if (he(_) || C) x(_, b(_, i, s), e, u);
|
|
278
278
|
else if (w) x(_, S(c, i.children, s), e, u);
|
|
279
279
|
else if (Number.isNaN(parseFloat(i.name))) if (T) x(_, b(_, i, s), e, u, i.voidElement);
|
|
280
280
|
else if (o.transSupportBasicHtmlNodes && d.indexOf(i.name) > -1) if (i.voidElement) e.push(f(i.name, { key: `${i.name}-${u}` }));
|
|
@@ -287,7 +287,7 @@ var ae = {
|
|
|
287
287
|
let t = S(c, i.children, s);
|
|
288
288
|
e.push(`<${i.name}>${t}</${i.name}>`);
|
|
289
289
|
}
|
|
290
|
-
else if (
|
|
290
|
+
else if (me(_) && !v) {
|
|
291
291
|
let t = i.children[0] ? h : null;
|
|
292
292
|
t && e.push(t);
|
|
293
293
|
} else x(_, h, e, u, i.children.length !== 1 || !h);
|
|
@@ -298,31 +298,31 @@ var ae = {
|
|
|
298
298
|
return e;
|
|
299
299
|
}, []);
|
|
300
300
|
};
|
|
301
|
-
return
|
|
301
|
+
return ge(S([{
|
|
302
302
|
dummy: !0,
|
|
303
303
|
children: e || []
|
|
304
|
-
}], v,
|
|
305
|
-
},
|
|
304
|
+
}], v, ve(e || []))[0]);
|
|
305
|
+
}, we = (e, t, n) => {
|
|
306
306
|
let r = e.key || t, i = u(e, { key: r });
|
|
307
307
|
if (!i.props || !i.props.children || n.indexOf(`${t}/>`) < 0 && n.indexOf(`${t} />`) < 0) return i;
|
|
308
308
|
function a() {
|
|
309
309
|
return f(l, null, i);
|
|
310
310
|
}
|
|
311
311
|
return f(a, { key: r });
|
|
312
|
-
},
|
|
312
|
+
}, Te = (e, t) => e.map((e, n) => we(e, n, t)), Ee = (e, t) => {
|
|
313
313
|
let n = {};
|
|
314
314
|
return Object.keys(e).forEach((r) => {
|
|
315
|
-
Object.assign(n, { [r]:
|
|
315
|
+
Object.assign(n, { [r]: we(e[r], r, t) });
|
|
316
316
|
}), n;
|
|
317
|
-
},
|
|
318
|
-
function
|
|
317
|
+
}, De = (e, t, n, r) => e ? Array.isArray(e) ? Te(e, t) : me(e) ? Ee(e, t) : (le(n, "TRANS_INVALID_COMPONENTS", "<Trans /> \"components\" prop expects an object or array", { i18nKey: r }), null) : null, Oe = (e) => !me(e) || Array.isArray(e) ? !1 : Object.keys(e).reduce((e, t) => e && Number.isNaN(Number.parseFloat(t)), !0);
|
|
318
|
+
function ke({ children: t, count: i, parent: a, i18nKey: o, context: s, tOptions: c = {}, values: l, defaults: u, components: d, ns: p, i18n: m, t: h, shouldUnescape: g, ..._ }) {
|
|
319
319
|
let v = m || n();
|
|
320
|
-
if (!v) return
|
|
320
|
+
if (!v) return le(v, "NO_I18NEXT_INSTANCE", "Trans: You need to pass in an i18next instance using i18nextReactModule", { i18nKey: o }), t;
|
|
321
321
|
let y = h || v.t.bind(v) || ((e) => e), b = {
|
|
322
322
|
...r(),
|
|
323
323
|
...v.options?.react
|
|
324
324
|
}, x = p || y.ns || v.options?.defaultNS;
|
|
325
|
-
x =
|
|
325
|
+
x = I(x) ? [x] : x || ["translation"];
|
|
326
326
|
let { transDefaultProps: S } = b, C = S?.tOptions ? {
|
|
327
327
|
...S.tOptions,
|
|
328
328
|
...c
|
|
@@ -332,12 +332,12 @@ function Oe({ children: t, count: i, parent: a, i18nKey: o, context: s, tOptions
|
|
|
332
332
|
} : l, E = S?.components ? {
|
|
333
333
|
...S.components,
|
|
334
334
|
...d
|
|
335
|
-
} : d, D =
|
|
335
|
+
} : d, D = xe(t, b, v, o), O = u || C?.defaultValue || D || b.transEmptyNodeValue || (typeof o == "function" ? e(o) : o), { hashTransKey: k } = b, A = o || (k ? k(D || O) : D || O);
|
|
336
336
|
l = v.options?.interpolation?.defaultVariables ? T && Object.keys(T).length > 0 ? {
|
|
337
337
|
...T,
|
|
338
338
|
...v.options.interpolation.defaultVariables
|
|
339
339
|
} : { ...v.options.interpolation.defaultVariables } : T;
|
|
340
|
-
let j =
|
|
340
|
+
let j = be(t);
|
|
341
341
|
j && typeof j.count == "number" && i === void 0 && (i = j.count);
|
|
342
342
|
let M = l || i !== void 0 && !v.options?.interpolation?.alwaysFormat || !t ? C.interpolation : { interpolation: {
|
|
343
343
|
...C.interpolation,
|
|
@@ -353,14 +353,14 @@ function Oe({ children: t, count: i, parent: a, i18nKey: o, context: s, tOptions
|
|
|
353
353
|
ns: x
|
|
354
354
|
}, P = A ? y(A, N) : O;
|
|
355
355
|
P === A && O && (P = O);
|
|
356
|
-
let ee =
|
|
357
|
-
|
|
358
|
-
let
|
|
359
|
-
return
|
|
356
|
+
let ee = De(E, P, v, o), te = ee || t, F = null;
|
|
357
|
+
Oe(ee) && (F = ee, te = t);
|
|
358
|
+
let ne = Ce(te, F, P, v, b, N, w), re = a ?? b.defaultTransParent;
|
|
359
|
+
return re ? f(re, _, ne) : ne;
|
|
360
360
|
}
|
|
361
361
|
//#endregion
|
|
362
362
|
//#region node_modules/react-i18next/dist/es/context.js
|
|
363
|
-
var
|
|
363
|
+
var Ae = d(), je = class {
|
|
364
364
|
constructor() {
|
|
365
365
|
this.usedNamespaces = {};
|
|
366
366
|
}
|
|
@@ -375,9 +375,9 @@ var ke = d(), Ae = class {
|
|
|
375
375
|
};
|
|
376
376
|
//#endregion
|
|
377
377
|
//#region node_modules/react-i18next/dist/es/Trans.js
|
|
378
|
-
function
|
|
379
|
-
let { i18n: g, defaultNS: _ } = h(
|
|
380
|
-
return
|
|
378
|
+
function Me({ children: e, count: t, parent: r, i18nKey: i, context: a, tOptions: o = {}, values: s, defaults: c, components: l, ns: u, i18n: d, t: f, shouldUnescape: p, ...m }) {
|
|
379
|
+
let { i18n: g, defaultNS: _ } = h(Ae) || {}, v = d || g || n(), y = f || v?.t.bind(v);
|
|
380
|
+
return ke({
|
|
381
381
|
children: e,
|
|
382
382
|
count: t,
|
|
383
383
|
parent: r,
|
|
@@ -394,10 +394,10 @@ function je({ children: e, count: t, parent: r, i18nKey: i, context: a, tOptions
|
|
|
394
394
|
...m
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
|
-
var
|
|
397
|
+
var Ne = {
|
|
398
398
|
t: (e, t) => {
|
|
399
|
-
if (
|
|
400
|
-
if (
|
|
399
|
+
if (I(t)) return t;
|
|
400
|
+
if (me(t) && I(t.defaultValue)) return t.defaultValue;
|
|
401
401
|
if (typeof e == "function") return "";
|
|
402
402
|
if (Array.isArray(e)) {
|
|
403
403
|
let t = e[e.length - 1];
|
|
@@ -406,17 +406,17 @@ var Me = {
|
|
|
406
406
|
return e;
|
|
407
407
|
},
|
|
408
408
|
ready: !1
|
|
409
|
-
},
|
|
410
|
-
let { i18n: i } = t, { i18n: a, defaultNS: o } = h(
|
|
411
|
-
s && !s.reportNamespaces && (s.reportNamespaces = new
|
|
409
|
+
}, Pe = () => () => {}, Fe = (e, t = {}) => {
|
|
410
|
+
let { i18n: i } = t, { i18n: a, defaultNS: o } = h(Ae) || {}, s = i || a || n();
|
|
411
|
+
s && !s.reportNamespaces && (s.reportNamespaces = new je()), s || le(s, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
412
412
|
let c = _(() => ({
|
|
413
413
|
...r(),
|
|
414
414
|
...s?.options?.react,
|
|
415
415
|
...t
|
|
416
|
-
}), [s, t]), { useSuspense: l, keyPrefix: u } = c, d = e || o || s?.options?.defaultNS, f =
|
|
416
|
+
}), [s, t]), { useSuspense: l, keyPrefix: u } = c, d = e || o || s?.options?.defaultNS, f = I(d) ? [d] : d || ["translation"], p = _(() => f, f);
|
|
417
417
|
s?.reportNamespaces?.addUsedNamespaces?.(p);
|
|
418
418
|
let x = v(0), S = m((e) => {
|
|
419
|
-
if (!s) return
|
|
419
|
+
if (!s) return Pe;
|
|
420
420
|
let { bindI18n: t, bindI18nStore: n } = c, r = () => {
|
|
421
421
|
x.current += 1, e();
|
|
422
422
|
};
|
|
@@ -424,8 +424,8 @@ var Me = {
|
|
|
424
424
|
t && t.split(" ").forEach((e) => s.off(e, r)), n && n.split(" ").forEach((e) => s.store.off(e, r));
|
|
425
425
|
};
|
|
426
426
|
}, [s, c]), C = v(), w = m(() => {
|
|
427
|
-
if (!s) return
|
|
428
|
-
let e = !!(s.isInitialized || s.initializedStoreOnce) && p.every((e) =>
|
|
427
|
+
if (!s) return Ne;
|
|
428
|
+
let e = !!(s.isInitialized || s.initializedStoreOnce) && p.every((e) => pe(e, s, c)), n = t.lng || s.language, r = x.current, i = C.current;
|
|
429
429
|
if (i && i.ready === e && i.lng === n && i.keyPrefix === u && i.revision === r) return i;
|
|
430
430
|
let a = {
|
|
431
431
|
t: s.getFixedT(n, c.nsMode === "fallback" ? p : p[0], u),
|
|
@@ -445,7 +445,7 @@ var Me = {
|
|
|
445
445
|
g(() => {
|
|
446
446
|
if (s && !O && !l) {
|
|
447
447
|
let e = () => E((e) => e + 1);
|
|
448
|
-
t.lng ?
|
|
448
|
+
t.lng ? fe(s, t.lng, p, e) : de(s, p, e);
|
|
449
449
|
}
|
|
450
450
|
}, [
|
|
451
451
|
s,
|
|
@@ -471,7 +471,7 @@ var Me = {
|
|
|
471
471
|
}, N = _(() => {
|
|
472
472
|
let e = k, t = e?.language, n = e;
|
|
473
473
|
e && (A.current && A.current.__original === e && j.current === t ? n = A.current : (n = M(e), A.current = n, j.current = t));
|
|
474
|
-
let r = !O && !l ? (...e) => (
|
|
474
|
+
let r = !O && !l ? (...e) => (le(s, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), D(...e)) : D, i = [
|
|
475
475
|
r,
|
|
476
476
|
n,
|
|
477
477
|
O
|
|
@@ -487,13 +487,13 @@ var Me = {
|
|
|
487
487
|
]);
|
|
488
488
|
if (s && l && !O) throw new Promise((e) => {
|
|
489
489
|
let n = () => e();
|
|
490
|
-
t.lng ?
|
|
490
|
+
t.lng ? fe(s, t.lng, p, n) : de(s, p, n);
|
|
491
491
|
});
|
|
492
492
|
return N;
|
|
493
493
|
};
|
|
494
494
|
//#endregion
|
|
495
495
|
//#region src/hooks/useTheme.ts
|
|
496
|
-
function
|
|
496
|
+
function Ie() {
|
|
497
497
|
let e = o((e) => e.activeTheme), t = o((e) => e.setTheme);
|
|
498
498
|
return g(() => {
|
|
499
499
|
let t = i(e);
|
|
@@ -505,34 +505,34 @@ function Fe() {
|
|
|
505
505
|
}
|
|
506
506
|
//#endregion
|
|
507
507
|
//#region src/hooks/useCta.ts
|
|
508
|
-
function
|
|
508
|
+
function Le() {
|
|
509
509
|
try {
|
|
510
510
|
let e = new AudioContext(), t = e.createOscillator(), n = e.createGain();
|
|
511
511
|
t.connect(n), n.connect(e.destination), t.type = "sine", t.frequency.setValueAtTime(880, e.currentTime), t.frequency.setValueAtTime(1047, e.currentTime + .08), t.frequency.setValueAtTime(1319, e.currentTime + .16), n.gain.setValueAtTime(.15, e.currentTime), n.gain.exponentialRampToValueAtTime(.01, e.currentTime + .4), t.start(e.currentTime), t.stop(e.currentTime + .4);
|
|
512
512
|
} catch {}
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
let [
|
|
514
|
+
function Re(e, t, n) {
|
|
515
|
+
let [r, i] = y(!1), a = v(!1), o = n && (e.showCta ?? !0), s = e.ctaDelay ?? 5e3, c = e.ctaSound ?? !0, l = e.i18n?.[t]?.ctaText ?? e.i18n?.en?.ctaText ?? e.ctaText ?? "Hi! How can I help you today?", u = m(() => i(!1), []);
|
|
516
516
|
return g(() => {
|
|
517
|
-
if (!
|
|
517
|
+
if (!o || a.current) return;
|
|
518
518
|
let e = setTimeout(() => {
|
|
519
|
-
|
|
520
|
-
},
|
|
519
|
+
a.current = !0, i(!0), c && Le();
|
|
520
|
+
}, s);
|
|
521
521
|
return () => clearTimeout(e);
|
|
522
522
|
}, [
|
|
523
|
-
a,
|
|
524
523
|
o,
|
|
525
|
-
s
|
|
524
|
+
s,
|
|
525
|
+
c
|
|
526
526
|
]), {
|
|
527
|
-
showCta:
|
|
528
|
-
ctaText:
|
|
529
|
-
dismiss:
|
|
527
|
+
showCta: r,
|
|
528
|
+
ctaText: l,
|
|
529
|
+
dismiss: u
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
532
|
//#endregion
|
|
533
533
|
//#region src/components/Sidebar.tsx
|
|
534
|
-
function
|
|
535
|
-
let { t } =
|
|
534
|
+
function ze({ onOpenSettings: e }) {
|
|
535
|
+
let { t } = Fe(), n = s((e) => e.sessions), r = s((e) => e.activeSessionId), i = s((e) => e.createSession), a = s((e) => e.setActiveSession), c = s((e) => e.deleteSession), l = o((e) => e.config.hideSettings ?? !1), [u, d] = y(null);
|
|
536
536
|
return /* @__PURE__ */ C("aside", {
|
|
537
537
|
className: "flex flex-col h-full w-64 flex-shrink-0 border-r",
|
|
538
538
|
style: {
|
|
@@ -638,13 +638,13 @@ function Re({ onOpenSettings: e }) {
|
|
|
638
638
|
}
|
|
639
639
|
//#endregion
|
|
640
640
|
//#region src/lib/n8nClient.ts
|
|
641
|
-
var
|
|
641
|
+
var Be = class extends Error {
|
|
642
642
|
status;
|
|
643
643
|
constructor(e, t) {
|
|
644
644
|
super(e), this.name = "N8nApiError", this.status = t;
|
|
645
645
|
}
|
|
646
646
|
};
|
|
647
|
-
async function
|
|
647
|
+
async function Ve(e, t, n, r, i) {
|
|
648
648
|
let a = e.chatInputKey ?? "chatInput", o = e.chatSessionKey ?? "sessionId", s = e.webhookConfig?.method ?? "POST", c = {
|
|
649
649
|
"Content-Type": "application/json",
|
|
650
650
|
...e.webhookConfig?.headers
|
|
@@ -660,12 +660,12 @@ async function Be(e, t, n, r, i) {
|
|
|
660
660
|
headers: c,
|
|
661
661
|
body: s === "GET" ? void 0 : JSON.stringify(l)
|
|
662
662
|
});
|
|
663
|
-
if (!d.ok) throw new
|
|
664
|
-
if (u && d.body) return
|
|
663
|
+
if (!d.ok) throw new Be(`Webhook returned ${d.status}`, d.status);
|
|
664
|
+
if (u && d.body) return He(d.body, i);
|
|
665
665
|
let f = await d.json();
|
|
666
666
|
return f.output ?? f.text ?? "";
|
|
667
667
|
}
|
|
668
|
-
async function
|
|
668
|
+
async function He(e, t) {
|
|
669
669
|
let n = e.getReader(), r = new TextDecoder(), i = "", a = "";
|
|
670
670
|
for (;;) {
|
|
671
671
|
let { done: e, value: o } = await n.read();
|
|
@@ -686,32 +686,32 @@ async function Ve(e, t) {
|
|
|
686
686
|
}
|
|
687
687
|
//#endregion
|
|
688
688
|
//#region src/hooks/useChat.ts
|
|
689
|
-
function
|
|
689
|
+
function Ue() {
|
|
690
690
|
return Math.random().toString(36).slice(2) + Date.now().toString(36);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function We() {
|
|
693
693
|
let { activeSessionId: e, addMessage: t, appendToLastBot: n, setStreaming: r, createSession: i } = s(), a = o((e) => e.config), c = o((e) => e.language), l = s((e) => e.isStreaming);
|
|
694
694
|
return {
|
|
695
695
|
send: m(async (o) => {
|
|
696
696
|
if (!a.webhookUrl || !o.trim()) return;
|
|
697
697
|
let s = e ?? i();
|
|
698
698
|
t(s, {
|
|
699
|
-
id:
|
|
699
|
+
id: Ue(),
|
|
700
700
|
role: "user",
|
|
701
701
|
content: o.trim(),
|
|
702
702
|
ts: Date.now()
|
|
703
703
|
}), r(!0), t(s, {
|
|
704
|
-
id:
|
|
704
|
+
id: Ue(),
|
|
705
705
|
role: "bot",
|
|
706
706
|
content: "",
|
|
707
707
|
ts: Date.now()
|
|
708
708
|
});
|
|
709
709
|
try {
|
|
710
|
-
a.streaming ? await
|
|
710
|
+
a.streaming ? await Ve(a, s, o.trim(), c, (e) => {
|
|
711
711
|
n(s, e);
|
|
712
|
-
}) : n(s, await
|
|
712
|
+
}) : n(s, await Ve(a, s, o.trim(), c));
|
|
713
713
|
} catch (e) {
|
|
714
|
-
n(s, e instanceof
|
|
714
|
+
n(s, e instanceof Be ? `Error ${e.status ?? ""}: ${e.message}` : "Something went wrong. Please try again.");
|
|
715
715
|
} finally {
|
|
716
716
|
r(!1);
|
|
717
717
|
}
|
|
@@ -729,143 +729,143 @@ function Ue() {
|
|
|
729
729
|
}
|
|
730
730
|
//#endregion
|
|
731
731
|
//#region node_modules/comma-separated-tokens/index.js
|
|
732
|
-
function
|
|
732
|
+
function Ge(e, t) {
|
|
733
733
|
let n = t || {};
|
|
734
734
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join((n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")).trim();
|
|
735
735
|
}
|
|
736
736
|
//#endregion
|
|
737
737
|
//#region node_modules/estree-util-is-identifier-name/lib/index.js
|
|
738
|
-
var
|
|
739
|
-
function
|
|
740
|
-
return ((t ||
|
|
738
|
+
var Ke = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, qe = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Je = {};
|
|
739
|
+
function Ye(e, t) {
|
|
740
|
+
return ((t || Je).jsx ? qe : Ke).test(e);
|
|
741
741
|
}
|
|
742
742
|
//#endregion
|
|
743
743
|
//#region node_modules/hast-util-whitespace/lib/index.js
|
|
744
|
-
var
|
|
745
|
-
function Xe(e) {
|
|
746
|
-
return typeof e == "object" ? e.type === "text" ? Ze(e.value) : !1 : Ze(e);
|
|
747
|
-
}
|
|
744
|
+
var Xe = /[ \t\n\f\r]/g;
|
|
748
745
|
function Ze(e) {
|
|
749
|
-
return e
|
|
746
|
+
return typeof e == "object" ? e.type === "text" ? Qe(e.value) : !1 : Qe(e);
|
|
747
|
+
}
|
|
748
|
+
function Qe(e) {
|
|
749
|
+
return e.replace(Xe, "") === "";
|
|
750
750
|
}
|
|
751
751
|
//#endregion
|
|
752
752
|
//#region node_modules/property-information/lib/util/schema.js
|
|
753
|
-
var
|
|
753
|
+
var $e = class {
|
|
754
754
|
constructor(e, t, n) {
|
|
755
755
|
this.normal = t, this.property = e, n && (this.space = n);
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
|
-
|
|
758
|
+
$e.prototype.normal = {}, $e.prototype.property = {}, $e.prototype.space = void 0;
|
|
759
759
|
//#endregion
|
|
760
760
|
//#region node_modules/property-information/lib/util/merge.js
|
|
761
|
-
function
|
|
761
|
+
function et(e, t) {
|
|
762
762
|
let n = {}, r = {};
|
|
763
763
|
for (let t of e) Object.assign(n, t.property), Object.assign(r, t.normal);
|
|
764
|
-
return new
|
|
764
|
+
return new $e(n, r, t);
|
|
765
765
|
}
|
|
766
766
|
//#endregion
|
|
767
767
|
//#region node_modules/property-information/lib/normalize.js
|
|
768
|
-
function
|
|
768
|
+
function tt(e) {
|
|
769
769
|
return e.toLowerCase();
|
|
770
770
|
}
|
|
771
771
|
//#endregion
|
|
772
772
|
//#region node_modules/property-information/lib/util/info.js
|
|
773
|
-
var
|
|
773
|
+
var L = class {
|
|
774
774
|
constructor(e, t) {
|
|
775
775
|
this.attribute = t, this.property = e;
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
|
-
|
|
778
|
+
L.prototype.attribute = "", L.prototype.booleanish = !1, L.prototype.boolean = !1, L.prototype.commaOrSpaceSeparated = !1, L.prototype.commaSeparated = !1, L.prototype.defined = !1, L.prototype.mustUseProperty = !1, L.prototype.number = !1, L.prototype.overloadedBoolean = !1, L.prototype.property = "", L.prototype.spaceSeparated = !1, L.prototype.space = void 0;
|
|
779
779
|
//#endregion
|
|
780
780
|
//#region node_modules/property-information/lib/util/types.js
|
|
781
|
-
var
|
|
782
|
-
boolean: () =>
|
|
783
|
-
booleanish: () =>
|
|
784
|
-
commaOrSpaceSeparated: () =>
|
|
785
|
-
commaSeparated: () =>
|
|
786
|
-
number: () =>
|
|
787
|
-
overloadedBoolean: () =>
|
|
788
|
-
spaceSeparated: () =>
|
|
789
|
-
}),
|
|
790
|
-
function
|
|
791
|
-
return 2 ** ++
|
|
781
|
+
var nt = /* @__PURE__ */ M({
|
|
782
|
+
boolean: () => R,
|
|
783
|
+
booleanish: () => z,
|
|
784
|
+
commaOrSpaceSeparated: () => H,
|
|
785
|
+
commaSeparated: () => at,
|
|
786
|
+
number: () => B,
|
|
787
|
+
overloadedBoolean: () => it,
|
|
788
|
+
spaceSeparated: () => V
|
|
789
|
+
}), rt = 0, R = ot(), z = ot(), it = ot(), B = ot(), V = ot(), at = ot(), H = ot();
|
|
790
|
+
function ot() {
|
|
791
|
+
return 2 ** ++rt;
|
|
792
792
|
}
|
|
793
793
|
//#endregion
|
|
794
794
|
//#region node_modules/property-information/lib/util/defined-info.js
|
|
795
|
-
var
|
|
795
|
+
var st = Object.keys(nt), ct = class extends L {
|
|
796
796
|
constructor(e, t, n, r) {
|
|
797
797
|
let i = -1;
|
|
798
|
-
if (super(e, t),
|
|
799
|
-
let e =
|
|
800
|
-
|
|
798
|
+
if (super(e, t), lt(this, "space", r), typeof n == "number") for (; ++i < st.length;) {
|
|
799
|
+
let e = st[i];
|
|
800
|
+
lt(this, st[i], (n & nt[e]) === nt[e]);
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
803
|
};
|
|
804
|
-
|
|
805
|
-
function
|
|
804
|
+
ct.prototype.defined = !0;
|
|
805
|
+
function lt(e, t, n) {
|
|
806
806
|
n && (e[t] = n);
|
|
807
807
|
}
|
|
808
808
|
//#endregion
|
|
809
809
|
//#region node_modules/property-information/lib/util/create.js
|
|
810
|
-
function
|
|
810
|
+
function ut(e) {
|
|
811
811
|
let t = {}, n = {};
|
|
812
812
|
for (let [r, i] of Object.entries(e.properties)) {
|
|
813
|
-
let a = new
|
|
814
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[
|
|
813
|
+
let a = new ct(r, e.transform(e.attributes || {}, r), i, e.space);
|
|
814
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[tt(r)] = r, n[tt(a.attribute)] = r;
|
|
815
815
|
}
|
|
816
|
-
return new
|
|
816
|
+
return new $e(t, n, e.space);
|
|
817
817
|
}
|
|
818
818
|
//#endregion
|
|
819
819
|
//#region node_modules/property-information/lib/aria.js
|
|
820
|
-
var
|
|
820
|
+
var dt = ut({
|
|
821
821
|
properties: {
|
|
822
822
|
ariaActiveDescendant: null,
|
|
823
|
-
ariaAtomic:
|
|
823
|
+
ariaAtomic: z,
|
|
824
824
|
ariaAutoComplete: null,
|
|
825
|
-
ariaBusy:
|
|
826
|
-
ariaChecked:
|
|
827
|
-
ariaColCount:
|
|
828
|
-
ariaColIndex:
|
|
829
|
-
ariaColSpan:
|
|
830
|
-
ariaControls:
|
|
825
|
+
ariaBusy: z,
|
|
826
|
+
ariaChecked: z,
|
|
827
|
+
ariaColCount: B,
|
|
828
|
+
ariaColIndex: B,
|
|
829
|
+
ariaColSpan: B,
|
|
830
|
+
ariaControls: V,
|
|
831
831
|
ariaCurrent: null,
|
|
832
|
-
ariaDescribedBy:
|
|
832
|
+
ariaDescribedBy: V,
|
|
833
833
|
ariaDetails: null,
|
|
834
|
-
ariaDisabled:
|
|
835
|
-
ariaDropEffect:
|
|
834
|
+
ariaDisabled: z,
|
|
835
|
+
ariaDropEffect: V,
|
|
836
836
|
ariaErrorMessage: null,
|
|
837
|
-
ariaExpanded:
|
|
838
|
-
ariaFlowTo:
|
|
839
|
-
ariaGrabbed:
|
|
837
|
+
ariaExpanded: z,
|
|
838
|
+
ariaFlowTo: V,
|
|
839
|
+
ariaGrabbed: z,
|
|
840
840
|
ariaHasPopup: null,
|
|
841
|
-
ariaHidden:
|
|
841
|
+
ariaHidden: z,
|
|
842
842
|
ariaInvalid: null,
|
|
843
843
|
ariaKeyShortcuts: null,
|
|
844
844
|
ariaLabel: null,
|
|
845
|
-
ariaLabelledBy:
|
|
846
|
-
ariaLevel:
|
|
845
|
+
ariaLabelledBy: V,
|
|
846
|
+
ariaLevel: B,
|
|
847
847
|
ariaLive: null,
|
|
848
|
-
ariaModal:
|
|
849
|
-
ariaMultiLine:
|
|
850
|
-
ariaMultiSelectable:
|
|
848
|
+
ariaModal: z,
|
|
849
|
+
ariaMultiLine: z,
|
|
850
|
+
ariaMultiSelectable: z,
|
|
851
851
|
ariaOrientation: null,
|
|
852
|
-
ariaOwns:
|
|
852
|
+
ariaOwns: V,
|
|
853
853
|
ariaPlaceholder: null,
|
|
854
|
-
ariaPosInSet:
|
|
855
|
-
ariaPressed:
|
|
856
|
-
ariaReadOnly:
|
|
854
|
+
ariaPosInSet: B,
|
|
855
|
+
ariaPressed: z,
|
|
856
|
+
ariaReadOnly: z,
|
|
857
857
|
ariaRelevant: null,
|
|
858
|
-
ariaRequired:
|
|
859
|
-
ariaRoleDescription:
|
|
860
|
-
ariaRowCount:
|
|
861
|
-
ariaRowIndex:
|
|
862
|
-
ariaRowSpan:
|
|
863
|
-
ariaSelected:
|
|
864
|
-
ariaSetSize:
|
|
858
|
+
ariaRequired: z,
|
|
859
|
+
ariaRoleDescription: V,
|
|
860
|
+
ariaRowCount: B,
|
|
861
|
+
ariaRowIndex: B,
|
|
862
|
+
ariaRowSpan: B,
|
|
863
|
+
ariaSelected: z,
|
|
864
|
+
ariaSetSize: B,
|
|
865
865
|
ariaSort: null,
|
|
866
|
-
ariaValueMax:
|
|
867
|
-
ariaValueMin:
|
|
868
|
-
ariaValueNow:
|
|
866
|
+
ariaValueMax: B,
|
|
867
|
+
ariaValueMin: B,
|
|
868
|
+
ariaValueNow: B,
|
|
869
869
|
ariaValueText: null,
|
|
870
870
|
role: null
|
|
871
871
|
},
|
|
@@ -875,17 +875,17 @@ var ut = lt({
|
|
|
875
875
|
});
|
|
876
876
|
//#endregion
|
|
877
877
|
//#region node_modules/property-information/lib/util/case-sensitive-transform.js
|
|
878
|
-
function
|
|
878
|
+
function ft(e, t) {
|
|
879
879
|
return t in e ? e[t] : t;
|
|
880
880
|
}
|
|
881
881
|
//#endregion
|
|
882
882
|
//#region node_modules/property-information/lib/util/case-insensitive-transform.js
|
|
883
|
-
function
|
|
884
|
-
return
|
|
883
|
+
function pt(e, t) {
|
|
884
|
+
return ft(e, t.toLowerCase());
|
|
885
885
|
}
|
|
886
886
|
//#endregion
|
|
887
887
|
//#region node_modules/property-information/lib/html.js
|
|
888
|
-
var
|
|
888
|
+
var mt = ut({
|
|
889
889
|
attributes: {
|
|
890
890
|
acceptcharset: "accept-charset",
|
|
891
891
|
classname: "class",
|
|
@@ -900,45 +900,45 @@ var pt = lt({
|
|
|
900
900
|
],
|
|
901
901
|
properties: {
|
|
902
902
|
abbr: null,
|
|
903
|
-
accept:
|
|
904
|
-
acceptCharset:
|
|
905
|
-
accessKey:
|
|
903
|
+
accept: at,
|
|
904
|
+
acceptCharset: V,
|
|
905
|
+
accessKey: V,
|
|
906
906
|
action: null,
|
|
907
907
|
allow: null,
|
|
908
|
-
allowFullScreen:
|
|
909
|
-
allowPaymentRequest:
|
|
910
|
-
allowUserMedia:
|
|
908
|
+
allowFullScreen: R,
|
|
909
|
+
allowPaymentRequest: R,
|
|
910
|
+
allowUserMedia: R,
|
|
911
911
|
alt: null,
|
|
912
912
|
as: null,
|
|
913
|
-
async:
|
|
913
|
+
async: R,
|
|
914
914
|
autoCapitalize: null,
|
|
915
|
-
autoComplete:
|
|
916
|
-
autoFocus:
|
|
917
|
-
autoPlay:
|
|
918
|
-
blocking:
|
|
915
|
+
autoComplete: V,
|
|
916
|
+
autoFocus: R,
|
|
917
|
+
autoPlay: R,
|
|
918
|
+
blocking: V,
|
|
919
919
|
capture: null,
|
|
920
920
|
charSet: null,
|
|
921
|
-
checked:
|
|
921
|
+
checked: R,
|
|
922
922
|
cite: null,
|
|
923
|
-
className:
|
|
924
|
-
cols:
|
|
923
|
+
className: V,
|
|
924
|
+
cols: B,
|
|
925
925
|
colSpan: null,
|
|
926
926
|
content: null,
|
|
927
|
-
contentEditable:
|
|
928
|
-
controls:
|
|
929
|
-
controlsList:
|
|
930
|
-
coords:
|
|
927
|
+
contentEditable: z,
|
|
928
|
+
controls: R,
|
|
929
|
+
controlsList: V,
|
|
930
|
+
coords: B | at,
|
|
931
931
|
crossOrigin: null,
|
|
932
932
|
data: null,
|
|
933
933
|
dateTime: null,
|
|
934
934
|
decoding: null,
|
|
935
|
-
default:
|
|
936
|
-
defer:
|
|
935
|
+
default: R,
|
|
936
|
+
defer: R,
|
|
937
937
|
dir: null,
|
|
938
938
|
dirName: null,
|
|
939
|
-
disabled:
|
|
940
|
-
download:
|
|
941
|
-
draggable:
|
|
939
|
+
disabled: R,
|
|
940
|
+
download: it,
|
|
941
|
+
draggable: z,
|
|
942
942
|
encType: null,
|
|
943
943
|
enterKeyHint: null,
|
|
944
944
|
fetchPriority: null,
|
|
@@ -946,50 +946,50 @@ var pt = lt({
|
|
|
946
946
|
formAction: null,
|
|
947
947
|
formEncType: null,
|
|
948
948
|
formMethod: null,
|
|
949
|
-
formNoValidate:
|
|
949
|
+
formNoValidate: R,
|
|
950
950
|
formTarget: null,
|
|
951
|
-
headers:
|
|
952
|
-
height:
|
|
953
|
-
hidden:
|
|
954
|
-
high:
|
|
951
|
+
headers: V,
|
|
952
|
+
height: B,
|
|
953
|
+
hidden: it,
|
|
954
|
+
high: B,
|
|
955
955
|
href: null,
|
|
956
956
|
hrefLang: null,
|
|
957
|
-
htmlFor:
|
|
958
|
-
httpEquiv:
|
|
957
|
+
htmlFor: V,
|
|
958
|
+
httpEquiv: V,
|
|
959
959
|
id: null,
|
|
960
960
|
imageSizes: null,
|
|
961
961
|
imageSrcSet: null,
|
|
962
|
-
inert:
|
|
962
|
+
inert: R,
|
|
963
963
|
inputMode: null,
|
|
964
964
|
integrity: null,
|
|
965
965
|
is: null,
|
|
966
|
-
isMap:
|
|
966
|
+
isMap: R,
|
|
967
967
|
itemId: null,
|
|
968
|
-
itemProp:
|
|
969
|
-
itemRef:
|
|
970
|
-
itemScope:
|
|
971
|
-
itemType:
|
|
968
|
+
itemProp: V,
|
|
969
|
+
itemRef: V,
|
|
970
|
+
itemScope: R,
|
|
971
|
+
itemType: V,
|
|
972
972
|
kind: null,
|
|
973
973
|
label: null,
|
|
974
974
|
lang: null,
|
|
975
975
|
language: null,
|
|
976
976
|
list: null,
|
|
977
977
|
loading: null,
|
|
978
|
-
loop:
|
|
979
|
-
low:
|
|
978
|
+
loop: R,
|
|
979
|
+
low: B,
|
|
980
980
|
manifest: null,
|
|
981
981
|
max: null,
|
|
982
|
-
maxLength:
|
|
982
|
+
maxLength: B,
|
|
983
983
|
media: null,
|
|
984
984
|
method: null,
|
|
985
985
|
min: null,
|
|
986
|
-
minLength:
|
|
987
|
-
multiple:
|
|
988
|
-
muted:
|
|
986
|
+
minLength: B,
|
|
987
|
+
multiple: R,
|
|
988
|
+
muted: R,
|
|
989
989
|
name: null,
|
|
990
990
|
nonce: null,
|
|
991
|
-
noModule:
|
|
992
|
-
noValidate:
|
|
991
|
+
noModule: R,
|
|
992
|
+
noValidate: R,
|
|
993
993
|
onAbort: null,
|
|
994
994
|
onAfterPrint: null,
|
|
995
995
|
onAuxClick: null,
|
|
@@ -1078,65 +1078,65 @@ var pt = lt({
|
|
|
1078
1078
|
onVolumeChange: null,
|
|
1079
1079
|
onWaiting: null,
|
|
1080
1080
|
onWheel: null,
|
|
1081
|
-
open:
|
|
1082
|
-
optimum:
|
|
1081
|
+
open: R,
|
|
1082
|
+
optimum: B,
|
|
1083
1083
|
pattern: null,
|
|
1084
|
-
ping:
|
|
1084
|
+
ping: V,
|
|
1085
1085
|
placeholder: null,
|
|
1086
|
-
playsInline:
|
|
1086
|
+
playsInline: R,
|
|
1087
1087
|
popover: null,
|
|
1088
1088
|
popoverTarget: null,
|
|
1089
1089
|
popoverTargetAction: null,
|
|
1090
1090
|
poster: null,
|
|
1091
1091
|
preload: null,
|
|
1092
|
-
readOnly:
|
|
1092
|
+
readOnly: R,
|
|
1093
1093
|
referrerPolicy: null,
|
|
1094
|
-
rel:
|
|
1095
|
-
required:
|
|
1096
|
-
reversed:
|
|
1097
|
-
rows:
|
|
1098
|
-
rowSpan:
|
|
1099
|
-
sandbox:
|
|
1094
|
+
rel: V,
|
|
1095
|
+
required: R,
|
|
1096
|
+
reversed: R,
|
|
1097
|
+
rows: B,
|
|
1098
|
+
rowSpan: B,
|
|
1099
|
+
sandbox: V,
|
|
1100
1100
|
scope: null,
|
|
1101
|
-
scoped:
|
|
1102
|
-
seamless:
|
|
1103
|
-
selected:
|
|
1104
|
-
shadowRootClonable:
|
|
1105
|
-
shadowRootDelegatesFocus:
|
|
1101
|
+
scoped: R,
|
|
1102
|
+
seamless: R,
|
|
1103
|
+
selected: R,
|
|
1104
|
+
shadowRootClonable: R,
|
|
1105
|
+
shadowRootDelegatesFocus: R,
|
|
1106
1106
|
shadowRootMode: null,
|
|
1107
1107
|
shape: null,
|
|
1108
|
-
size:
|
|
1108
|
+
size: B,
|
|
1109
1109
|
sizes: null,
|
|
1110
1110
|
slot: null,
|
|
1111
|
-
span:
|
|
1112
|
-
spellCheck:
|
|
1111
|
+
span: B,
|
|
1112
|
+
spellCheck: z,
|
|
1113
1113
|
src: null,
|
|
1114
1114
|
srcDoc: null,
|
|
1115
1115
|
srcLang: null,
|
|
1116
1116
|
srcSet: null,
|
|
1117
|
-
start:
|
|
1117
|
+
start: B,
|
|
1118
1118
|
step: null,
|
|
1119
1119
|
style: null,
|
|
1120
|
-
tabIndex:
|
|
1120
|
+
tabIndex: B,
|
|
1121
1121
|
target: null,
|
|
1122
1122
|
title: null,
|
|
1123
1123
|
translate: null,
|
|
1124
1124
|
type: null,
|
|
1125
|
-
typeMustMatch:
|
|
1125
|
+
typeMustMatch: R,
|
|
1126
1126
|
useMap: null,
|
|
1127
|
-
value:
|
|
1128
|
-
width:
|
|
1127
|
+
value: z,
|
|
1128
|
+
width: B,
|
|
1129
1129
|
wrap: null,
|
|
1130
1130
|
writingSuggestions: null,
|
|
1131
1131
|
align: null,
|
|
1132
1132
|
aLink: null,
|
|
1133
|
-
archive:
|
|
1133
|
+
archive: V,
|
|
1134
1134
|
axis: null,
|
|
1135
1135
|
background: null,
|
|
1136
1136
|
bgColor: null,
|
|
1137
|
-
border:
|
|
1137
|
+
border: B,
|
|
1138
1138
|
borderColor: null,
|
|
1139
|
-
bottomMargin:
|
|
1139
|
+
bottomMargin: B,
|
|
1140
1140
|
cellPadding: null,
|
|
1141
1141
|
cellSpacing: null,
|
|
1142
1142
|
char: null,
|
|
@@ -1147,54 +1147,54 @@ var pt = lt({
|
|
|
1147
1147
|
codeBase: null,
|
|
1148
1148
|
codeType: null,
|
|
1149
1149
|
color: null,
|
|
1150
|
-
compact:
|
|
1151
|
-
declare:
|
|
1150
|
+
compact: R,
|
|
1151
|
+
declare: R,
|
|
1152
1152
|
event: null,
|
|
1153
1153
|
face: null,
|
|
1154
1154
|
frame: null,
|
|
1155
1155
|
frameBorder: null,
|
|
1156
|
-
hSpace:
|
|
1157
|
-
leftMargin:
|
|
1156
|
+
hSpace: B,
|
|
1157
|
+
leftMargin: B,
|
|
1158
1158
|
link: null,
|
|
1159
1159
|
longDesc: null,
|
|
1160
1160
|
lowSrc: null,
|
|
1161
|
-
marginHeight:
|
|
1162
|
-
marginWidth:
|
|
1163
|
-
noResize:
|
|
1164
|
-
noHref:
|
|
1165
|
-
noShade:
|
|
1166
|
-
noWrap:
|
|
1161
|
+
marginHeight: B,
|
|
1162
|
+
marginWidth: B,
|
|
1163
|
+
noResize: R,
|
|
1164
|
+
noHref: R,
|
|
1165
|
+
noShade: R,
|
|
1166
|
+
noWrap: R,
|
|
1167
1167
|
object: null,
|
|
1168
1168
|
profile: null,
|
|
1169
1169
|
prompt: null,
|
|
1170
1170
|
rev: null,
|
|
1171
|
-
rightMargin:
|
|
1171
|
+
rightMargin: B,
|
|
1172
1172
|
rules: null,
|
|
1173
1173
|
scheme: null,
|
|
1174
|
-
scrolling:
|
|
1174
|
+
scrolling: z,
|
|
1175
1175
|
standby: null,
|
|
1176
1176
|
summary: null,
|
|
1177
1177
|
text: null,
|
|
1178
|
-
topMargin:
|
|
1178
|
+
topMargin: B,
|
|
1179
1179
|
valueType: null,
|
|
1180
1180
|
version: null,
|
|
1181
1181
|
vAlign: null,
|
|
1182
1182
|
vLink: null,
|
|
1183
|
-
vSpace:
|
|
1183
|
+
vSpace: B,
|
|
1184
1184
|
allowTransparency: null,
|
|
1185
1185
|
autoCorrect: null,
|
|
1186
1186
|
autoSave: null,
|
|
1187
|
-
disablePictureInPicture:
|
|
1188
|
-
disableRemotePlayback:
|
|
1187
|
+
disablePictureInPicture: R,
|
|
1188
|
+
disableRemotePlayback: R,
|
|
1189
1189
|
prefix: null,
|
|
1190
1190
|
property: null,
|
|
1191
|
-
results:
|
|
1191
|
+
results: B,
|
|
1192
1192
|
security: null,
|
|
1193
1193
|
unselectable: null
|
|
1194
1194
|
},
|
|
1195
1195
|
space: "html",
|
|
1196
|
-
transform:
|
|
1197
|
-
}),
|
|
1196
|
+
transform: pt
|
|
1197
|
+
}), ht = ut({
|
|
1198
1198
|
attributes: {
|
|
1199
1199
|
accentHeight: "accent-height",
|
|
1200
1200
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1370,29 +1370,29 @@ var pt = lt({
|
|
|
1370
1370
|
timelineBegin: "timelinebegin"
|
|
1371
1371
|
},
|
|
1372
1372
|
properties: {
|
|
1373
|
-
about:
|
|
1374
|
-
accentHeight:
|
|
1373
|
+
about: H,
|
|
1374
|
+
accentHeight: B,
|
|
1375
1375
|
accumulate: null,
|
|
1376
1376
|
additive: null,
|
|
1377
1377
|
alignmentBaseline: null,
|
|
1378
|
-
alphabetic:
|
|
1379
|
-
amplitude:
|
|
1378
|
+
alphabetic: B,
|
|
1379
|
+
amplitude: B,
|
|
1380
1380
|
arabicForm: null,
|
|
1381
|
-
ascent:
|
|
1381
|
+
ascent: B,
|
|
1382
1382
|
attributeName: null,
|
|
1383
1383
|
attributeType: null,
|
|
1384
|
-
azimuth:
|
|
1384
|
+
azimuth: B,
|
|
1385
1385
|
bandwidth: null,
|
|
1386
1386
|
baselineShift: null,
|
|
1387
1387
|
baseFrequency: null,
|
|
1388
1388
|
baseProfile: null,
|
|
1389
1389
|
bbox: null,
|
|
1390
1390
|
begin: null,
|
|
1391
|
-
bias:
|
|
1391
|
+
bias: B,
|
|
1392
1392
|
by: null,
|
|
1393
1393
|
calcMode: null,
|
|
1394
|
-
capHeight:
|
|
1395
|
-
className:
|
|
1394
|
+
capHeight: B,
|
|
1395
|
+
className: V,
|
|
1396
1396
|
clip: null,
|
|
1397
1397
|
clipPath: null,
|
|
1398
1398
|
clipPathUnits: null,
|
|
@@ -1412,26 +1412,26 @@ var pt = lt({
|
|
|
1412
1412
|
d: null,
|
|
1413
1413
|
dataType: null,
|
|
1414
1414
|
defaultAction: null,
|
|
1415
|
-
descent:
|
|
1416
|
-
diffuseConstant:
|
|
1415
|
+
descent: B,
|
|
1416
|
+
diffuseConstant: B,
|
|
1417
1417
|
direction: null,
|
|
1418
1418
|
display: null,
|
|
1419
1419
|
dur: null,
|
|
1420
|
-
divisor:
|
|
1420
|
+
divisor: B,
|
|
1421
1421
|
dominantBaseline: null,
|
|
1422
|
-
download:
|
|
1422
|
+
download: R,
|
|
1423
1423
|
dx: null,
|
|
1424
1424
|
dy: null,
|
|
1425
1425
|
edgeMode: null,
|
|
1426
1426
|
editable: null,
|
|
1427
|
-
elevation:
|
|
1427
|
+
elevation: B,
|
|
1428
1428
|
enableBackground: null,
|
|
1429
1429
|
end: null,
|
|
1430
1430
|
event: null,
|
|
1431
|
-
exponent:
|
|
1431
|
+
exponent: B,
|
|
1432
1432
|
externalResourcesRequired: null,
|
|
1433
1433
|
fill: null,
|
|
1434
|
-
fillOpacity:
|
|
1434
|
+
fillOpacity: B,
|
|
1435
1435
|
fillRule: null,
|
|
1436
1436
|
filter: null,
|
|
1437
1437
|
filterRes: null,
|
|
@@ -1452,37 +1452,37 @@ var pt = lt({
|
|
|
1452
1452
|
from: null,
|
|
1453
1453
|
fx: null,
|
|
1454
1454
|
fy: null,
|
|
1455
|
-
g1:
|
|
1456
|
-
g2:
|
|
1457
|
-
glyphName:
|
|
1455
|
+
g1: at,
|
|
1456
|
+
g2: at,
|
|
1457
|
+
glyphName: at,
|
|
1458
1458
|
glyphOrientationHorizontal: null,
|
|
1459
1459
|
glyphOrientationVertical: null,
|
|
1460
1460
|
glyphRef: null,
|
|
1461
1461
|
gradientTransform: null,
|
|
1462
1462
|
gradientUnits: null,
|
|
1463
1463
|
handler: null,
|
|
1464
|
-
hanging:
|
|
1464
|
+
hanging: B,
|
|
1465
1465
|
hatchContentUnits: null,
|
|
1466
1466
|
hatchUnits: null,
|
|
1467
1467
|
height: null,
|
|
1468
1468
|
href: null,
|
|
1469
1469
|
hrefLang: null,
|
|
1470
|
-
horizAdvX:
|
|
1471
|
-
horizOriginX:
|
|
1472
|
-
horizOriginY:
|
|
1470
|
+
horizAdvX: B,
|
|
1471
|
+
horizOriginX: B,
|
|
1472
|
+
horizOriginY: B,
|
|
1473
1473
|
id: null,
|
|
1474
|
-
ideographic:
|
|
1474
|
+
ideographic: B,
|
|
1475
1475
|
imageRendering: null,
|
|
1476
1476
|
initialVisibility: null,
|
|
1477
1477
|
in: null,
|
|
1478
1478
|
in2: null,
|
|
1479
|
-
intercept:
|
|
1480
|
-
k:
|
|
1481
|
-
k1:
|
|
1482
|
-
k2:
|
|
1483
|
-
k3:
|
|
1484
|
-
k4:
|
|
1485
|
-
kernelMatrix:
|
|
1479
|
+
intercept: B,
|
|
1480
|
+
k: B,
|
|
1481
|
+
k1: B,
|
|
1482
|
+
k2: B,
|
|
1483
|
+
k3: B,
|
|
1484
|
+
k4: B,
|
|
1485
|
+
kernelMatrix: H,
|
|
1486
1486
|
kernelUnitLength: null,
|
|
1487
1487
|
keyPoints: null,
|
|
1488
1488
|
keySplines: null,
|
|
@@ -1492,7 +1492,7 @@ var pt = lt({
|
|
|
1492
1492
|
lengthAdjust: null,
|
|
1493
1493
|
letterSpacing: null,
|
|
1494
1494
|
lightingColor: null,
|
|
1495
|
-
limitingConeAngle:
|
|
1495
|
+
limitingConeAngle: B,
|
|
1496
1496
|
local: null,
|
|
1497
1497
|
markerEnd: null,
|
|
1498
1498
|
markerMid: null,
|
|
@@ -1508,7 +1508,7 @@ var pt = lt({
|
|
|
1508
1508
|
media: null,
|
|
1509
1509
|
mediaCharacterEncoding: null,
|
|
1510
1510
|
mediaContentEncodings: null,
|
|
1511
|
-
mediaSize:
|
|
1511
|
+
mediaSize: B,
|
|
1512
1512
|
mediaTime: null,
|
|
1513
1513
|
method: null,
|
|
1514
1514
|
min: null,
|
|
@@ -1614,43 +1614,43 @@ var pt = lt({
|
|
|
1614
1614
|
origin: null,
|
|
1615
1615
|
overflow: null,
|
|
1616
1616
|
overlay: null,
|
|
1617
|
-
overlinePosition:
|
|
1618
|
-
overlineThickness:
|
|
1617
|
+
overlinePosition: B,
|
|
1618
|
+
overlineThickness: B,
|
|
1619
1619
|
paintOrder: null,
|
|
1620
1620
|
panose1: null,
|
|
1621
1621
|
path: null,
|
|
1622
|
-
pathLength:
|
|
1622
|
+
pathLength: B,
|
|
1623
1623
|
patternContentUnits: null,
|
|
1624
1624
|
patternTransform: null,
|
|
1625
1625
|
patternUnits: null,
|
|
1626
1626
|
phase: null,
|
|
1627
|
-
ping:
|
|
1627
|
+
ping: V,
|
|
1628
1628
|
pitch: null,
|
|
1629
1629
|
playbackOrder: null,
|
|
1630
1630
|
pointerEvents: null,
|
|
1631
1631
|
points: null,
|
|
1632
|
-
pointsAtX:
|
|
1633
|
-
pointsAtY:
|
|
1634
|
-
pointsAtZ:
|
|
1632
|
+
pointsAtX: B,
|
|
1633
|
+
pointsAtY: B,
|
|
1634
|
+
pointsAtZ: B,
|
|
1635
1635
|
preserveAlpha: null,
|
|
1636
1636
|
preserveAspectRatio: null,
|
|
1637
1637
|
primitiveUnits: null,
|
|
1638
1638
|
propagate: null,
|
|
1639
|
-
property:
|
|
1639
|
+
property: H,
|
|
1640
1640
|
r: null,
|
|
1641
1641
|
radius: null,
|
|
1642
1642
|
referrerPolicy: null,
|
|
1643
1643
|
refX: null,
|
|
1644
1644
|
refY: null,
|
|
1645
|
-
rel:
|
|
1646
|
-
rev:
|
|
1645
|
+
rel: H,
|
|
1646
|
+
rev: H,
|
|
1647
1647
|
renderingIntent: null,
|
|
1648
1648
|
repeatCount: null,
|
|
1649
1649
|
repeatDur: null,
|
|
1650
|
-
requiredExtensions:
|
|
1651
|
-
requiredFeatures:
|
|
1652
|
-
requiredFonts:
|
|
1653
|
-
requiredFormats:
|
|
1650
|
+
requiredExtensions: H,
|
|
1651
|
+
requiredFeatures: H,
|
|
1652
|
+
requiredFonts: H,
|
|
1653
|
+
requiredFormats: H,
|
|
1654
1654
|
resource: null,
|
|
1655
1655
|
restart: null,
|
|
1656
1656
|
result: null,
|
|
@@ -1663,8 +1663,8 @@ var pt = lt({
|
|
|
1663
1663
|
side: null,
|
|
1664
1664
|
slope: null,
|
|
1665
1665
|
snapshotTime: null,
|
|
1666
|
-
specularConstant:
|
|
1667
|
-
specularExponent:
|
|
1666
|
+
specularConstant: B,
|
|
1667
|
+
specularExponent: B,
|
|
1668
1668
|
spreadMethod: null,
|
|
1669
1669
|
spacing: null,
|
|
1670
1670
|
startOffset: null,
|
|
@@ -1674,30 +1674,30 @@ var pt = lt({
|
|
|
1674
1674
|
stitchTiles: null,
|
|
1675
1675
|
stopColor: null,
|
|
1676
1676
|
stopOpacity: null,
|
|
1677
|
-
strikethroughPosition:
|
|
1678
|
-
strikethroughThickness:
|
|
1677
|
+
strikethroughPosition: B,
|
|
1678
|
+
strikethroughThickness: B,
|
|
1679
1679
|
string: null,
|
|
1680
1680
|
stroke: null,
|
|
1681
|
-
strokeDashArray:
|
|
1681
|
+
strokeDashArray: H,
|
|
1682
1682
|
strokeDashOffset: null,
|
|
1683
1683
|
strokeLineCap: null,
|
|
1684
1684
|
strokeLineJoin: null,
|
|
1685
|
-
strokeMiterLimit:
|
|
1686
|
-
strokeOpacity:
|
|
1685
|
+
strokeMiterLimit: B,
|
|
1686
|
+
strokeOpacity: B,
|
|
1687
1687
|
strokeWidth: null,
|
|
1688
1688
|
style: null,
|
|
1689
|
-
surfaceScale:
|
|
1689
|
+
surfaceScale: B,
|
|
1690
1690
|
syncBehavior: null,
|
|
1691
1691
|
syncBehaviorDefault: null,
|
|
1692
1692
|
syncMaster: null,
|
|
1693
1693
|
syncTolerance: null,
|
|
1694
1694
|
syncToleranceDefault: null,
|
|
1695
|
-
systemLanguage:
|
|
1696
|
-
tabIndex:
|
|
1695
|
+
systemLanguage: H,
|
|
1696
|
+
tabIndex: B,
|
|
1697
1697
|
tableValues: null,
|
|
1698
1698
|
target: null,
|
|
1699
|
-
targetX:
|
|
1700
|
-
targetY:
|
|
1699
|
+
targetX: B,
|
|
1700
|
+
targetY: B,
|
|
1701
1701
|
textAnchor: null,
|
|
1702
1702
|
textDecoration: null,
|
|
1703
1703
|
textRendering: null,
|
|
@@ -1706,28 +1706,28 @@ var pt = lt({
|
|
|
1706
1706
|
title: null,
|
|
1707
1707
|
transformBehavior: null,
|
|
1708
1708
|
type: null,
|
|
1709
|
-
typeOf:
|
|
1709
|
+
typeOf: H,
|
|
1710
1710
|
to: null,
|
|
1711
1711
|
transform: null,
|
|
1712
1712
|
transformOrigin: null,
|
|
1713
1713
|
u1: null,
|
|
1714
1714
|
u2: null,
|
|
1715
|
-
underlinePosition:
|
|
1716
|
-
underlineThickness:
|
|
1715
|
+
underlinePosition: B,
|
|
1716
|
+
underlineThickness: B,
|
|
1717
1717
|
unicode: null,
|
|
1718
1718
|
unicodeBidi: null,
|
|
1719
1719
|
unicodeRange: null,
|
|
1720
|
-
unitsPerEm:
|
|
1720
|
+
unitsPerEm: B,
|
|
1721
1721
|
values: null,
|
|
1722
|
-
vAlphabetic:
|
|
1723
|
-
vMathematical:
|
|
1722
|
+
vAlphabetic: B,
|
|
1723
|
+
vMathematical: B,
|
|
1724
1724
|
vectorEffect: null,
|
|
1725
|
-
vHanging:
|
|
1726
|
-
vIdeographic:
|
|
1725
|
+
vHanging: B,
|
|
1726
|
+
vIdeographic: B,
|
|
1727
1727
|
version: null,
|
|
1728
|
-
vertAdvY:
|
|
1729
|
-
vertOriginX:
|
|
1730
|
-
vertOriginY:
|
|
1728
|
+
vertAdvY: B,
|
|
1729
|
+
vertOriginX: B,
|
|
1730
|
+
vertOriginY: B,
|
|
1731
1731
|
viewBox: null,
|
|
1732
1732
|
viewTarget: null,
|
|
1733
1733
|
visibility: null,
|
|
@@ -1739,7 +1739,7 @@ var pt = lt({
|
|
|
1739
1739
|
x1: null,
|
|
1740
1740
|
x2: null,
|
|
1741
1741
|
xChannelSelector: null,
|
|
1742
|
-
xHeight:
|
|
1742
|
+
xHeight: B,
|
|
1743
1743
|
y: null,
|
|
1744
1744
|
y1: null,
|
|
1745
1745
|
y2: null,
|
|
@@ -1748,8 +1748,8 @@ var pt = lt({
|
|
|
1748
1748
|
zoomAndPan: null
|
|
1749
1749
|
},
|
|
1750
1750
|
space: "svg",
|
|
1751
|
-
transform:
|
|
1752
|
-
}),
|
|
1751
|
+
transform: ft
|
|
1752
|
+
}), gt = ut({
|
|
1753
1753
|
properties: {
|
|
1754
1754
|
xLinkActuate: null,
|
|
1755
1755
|
xLinkArcRole: null,
|
|
@@ -1763,15 +1763,15 @@ var pt = lt({
|
|
|
1763
1763
|
transform(e, t) {
|
|
1764
1764
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
1765
1765
|
}
|
|
1766
|
-
}),
|
|
1766
|
+
}), _t = ut({
|
|
1767
1767
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1768
1768
|
properties: {
|
|
1769
1769
|
xmlnsXLink: null,
|
|
1770
1770
|
xmlns: null
|
|
1771
1771
|
},
|
|
1772
1772
|
space: "xmlns",
|
|
1773
|
-
transform:
|
|
1774
|
-
}),
|
|
1773
|
+
transform: pt
|
|
1774
|
+
}), vt = ut({
|
|
1775
1775
|
properties: {
|
|
1776
1776
|
xmlBase: null,
|
|
1777
1777
|
xmlLang: null,
|
|
@@ -1781,7 +1781,7 @@ var pt = lt({
|
|
|
1781
1781
|
transform(e, t) {
|
|
1782
1782
|
return "xml:" + t.slice(3).toLowerCase();
|
|
1783
1783
|
}
|
|
1784
|
-
}),
|
|
1784
|
+
}), yt = {
|
|
1785
1785
|
classId: "classID",
|
|
1786
1786
|
dataType: "datatype",
|
|
1787
1787
|
itemId: "itemID",
|
|
@@ -1799,54 +1799,54 @@ var pt = lt({
|
|
|
1799
1799
|
xLinkTitle: "xlinkTitle",
|
|
1800
1800
|
xLinkType: "xlinkType",
|
|
1801
1801
|
xmlnsXLink: "xmlnsXlink"
|
|
1802
|
-
},
|
|
1803
|
-
function
|
|
1804
|
-
let n =
|
|
1802
|
+
}, bt = /[A-Z]/g, xt = /-[a-z]/g, St = /^data[-\w.:]+$/i;
|
|
1803
|
+
function Ct(e, t) {
|
|
1804
|
+
let n = tt(t), r = t, i = L;
|
|
1805
1805
|
if (n in e.normal) return e.property[e.normal[n]];
|
|
1806
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
1806
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && St.test(t)) {
|
|
1807
1807
|
if (t.charAt(4) === "-") {
|
|
1808
|
-
let e = t.slice(5).replace(
|
|
1808
|
+
let e = t.slice(5).replace(xt, Tt);
|
|
1809
1809
|
r = "data" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
1810
1810
|
} else {
|
|
1811
1811
|
let e = t.slice(4);
|
|
1812
|
-
if (!
|
|
1813
|
-
let n = e.replace(
|
|
1812
|
+
if (!xt.test(e)) {
|
|
1813
|
+
let n = e.replace(bt, wt);
|
|
1814
1814
|
n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
|
-
i =
|
|
1817
|
+
i = ct;
|
|
1818
1818
|
}
|
|
1819
1819
|
return new i(r, t);
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function wt(e) {
|
|
1822
1822
|
return "-" + e.toLowerCase();
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function Tt(e) {
|
|
1825
1825
|
return e.charAt(1).toUpperCase();
|
|
1826
1826
|
}
|
|
1827
1827
|
//#endregion
|
|
1828
1828
|
//#region node_modules/property-information/index.js
|
|
1829
|
-
var
|
|
1830
|
-
|
|
1831
|
-
pt,
|
|
1832
|
-
ht,
|
|
1833
|
-
gt,
|
|
1834
|
-
_t
|
|
1835
|
-
], "html"), Et = $e([
|
|
1836
|
-
ut,
|
|
1829
|
+
var Et = et([
|
|
1830
|
+
dt,
|
|
1837
1831
|
mt,
|
|
1832
|
+
gt,
|
|
1833
|
+
_t,
|
|
1834
|
+
vt
|
|
1835
|
+
], "html"), Dt = et([
|
|
1836
|
+
dt,
|
|
1838
1837
|
ht,
|
|
1839
1838
|
gt,
|
|
1840
|
-
_t
|
|
1839
|
+
_t,
|
|
1840
|
+
vt
|
|
1841
1841
|
], "svg");
|
|
1842
1842
|
//#endregion
|
|
1843
1843
|
//#region node_modules/space-separated-tokens/index.js
|
|
1844
|
-
function
|
|
1844
|
+
function Ot(e) {
|
|
1845
1845
|
return e.join(" ").trim();
|
|
1846
1846
|
}
|
|
1847
1847
|
//#endregion
|
|
1848
1848
|
//#region node_modules/inline-style-parser/cjs/index.js
|
|
1849
|
-
var
|
|
1849
|
+
var kt = /* @__PURE__ */ j(((e, t) => {
|
|
1850
1850
|
var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, i = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, s = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, c = /^[;\s]*/, l = /^\s+|\s+$/g, u = "\n", d = "/", f = "*", p = "", m = "comment", h = "declaration";
|
|
1851
1851
|
function g(e, t) {
|
|
1852
1852
|
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
@@ -1930,12 +1930,12 @@ var Ot = /* @__PURE__ */ j(((e, t) => {
|
|
|
1930
1930
|
return e ? e.replace(l, p) : p;
|
|
1931
1931
|
}
|
|
1932
1932
|
t.exports = g;
|
|
1933
|
-
})),
|
|
1933
|
+
})), At = /* @__PURE__ */ j(((e) => {
|
|
1934
1934
|
var t = e && e.__importDefault || function(e) {
|
|
1935
1935
|
return e && e.__esModule ? e : { default: e };
|
|
1936
1936
|
};
|
|
1937
1937
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = r;
|
|
1938
|
-
var n = t(
|
|
1938
|
+
var n = t(kt());
|
|
1939
1939
|
function r(e, t) {
|
|
1940
1940
|
let r = null;
|
|
1941
1941
|
if (!e || typeof e != "string") return r;
|
|
@@ -1946,7 +1946,7 @@ var Ot = /* @__PURE__ */ j(((e, t) => {
|
|
|
1946
1946
|
a ? t(n, i, e) : i && (r ||= {}, r[n] = i);
|
|
1947
1947
|
}), r;
|
|
1948
1948
|
}
|
|
1949
|
-
})),
|
|
1949
|
+
})), jt = /* @__PURE__ */ j(((e) => {
|
|
1950
1950
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.camelCase = void 0;
|
|
1951
1951
|
var t = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, r = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, a = /^-(ms)-/, o = function(e) {
|
|
1952
1952
|
return !e || r.test(e) || t.test(e);
|
|
@@ -1958,10 +1958,10 @@ var Ot = /* @__PURE__ */ j(((e, t) => {
|
|
|
1958
1958
|
e.camelCase = function(e, t) {
|
|
1959
1959
|
return t === void 0 && (t = {}), o(e) ? e : (e = e.toLowerCase(), e = t.reactCompat ? e.replace(a, c) : e.replace(i, c), e.replace(n, s));
|
|
1960
1960
|
};
|
|
1961
|
-
})),
|
|
1961
|
+
})), Mt = /* @__PURE__ */ j(((e, t) => {
|
|
1962
1962
|
var n = (e && e.__importDefault || function(e) {
|
|
1963
1963
|
return e && e.__esModule ? e : { default: e };
|
|
1964
|
-
})(
|
|
1964
|
+
})(At()), r = jt();
|
|
1965
1965
|
function i(e, t) {
|
|
1966
1966
|
var i = {};
|
|
1967
1967
|
return !e || typeof e != "string" || (0, n.default)(e, function(e, n) {
|
|
@@ -1969,8 +1969,8 @@ var Ot = /* @__PURE__ */ j(((e, t) => {
|
|
|
1969
1969
|
}), i;
|
|
1970
1970
|
}
|
|
1971
1971
|
i.default = i, t.exports = i;
|
|
1972
|
-
})),
|
|
1973
|
-
function
|
|
1972
|
+
})), Nt = Ft("end"), Pt = Ft("start");
|
|
1973
|
+
function Ft(e) {
|
|
1974
1974
|
return t;
|
|
1975
1975
|
function t(t) {
|
|
1976
1976
|
let n = t && t.position && t.position[e] || {};
|
|
@@ -1981,8 +1981,8 @@ function Pt(e) {
|
|
|
1981
1981
|
};
|
|
1982
1982
|
}
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1985
|
-
let t =
|
|
1984
|
+
function It(e) {
|
|
1985
|
+
let t = Pt(e), n = Nt(e);
|
|
1986
1986
|
if (t && n) return {
|
|
1987
1987
|
start: t,
|
|
1988
1988
|
end: n
|
|
@@ -1990,21 +1990,21 @@ function Ft(e) {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
//#endregion
|
|
1992
1992
|
//#region node_modules/unist-util-stringify-position/lib/index.js
|
|
1993
|
-
function It(e) {
|
|
1994
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Rt(e.position) : "start" in e || "end" in e ? Rt(e) : "line" in e || "column" in e ? Lt(e) : "";
|
|
1995
|
-
}
|
|
1996
1993
|
function Lt(e) {
|
|
1997
|
-
return
|
|
1994
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? zt(e.position) : "start" in e || "end" in e ? zt(e) : "line" in e || "column" in e ? Rt(e) : "";
|
|
1998
1995
|
}
|
|
1999
1996
|
function Rt(e) {
|
|
2000
|
-
return
|
|
1997
|
+
return Bt(e && e.line) + ":" + Bt(e && e.column);
|
|
2001
1998
|
}
|
|
2002
1999
|
function zt(e) {
|
|
2000
|
+
return Rt(e && e.start) + "-" + Rt(e && e.end);
|
|
2001
|
+
}
|
|
2002
|
+
function Bt(e) {
|
|
2003
2003
|
return e && typeof e == "number" ? e : 1;
|
|
2004
2004
|
}
|
|
2005
2005
|
//#endregion
|
|
2006
2006
|
//#region node_modules/vfile-message/lib/index.js
|
|
2007
|
-
var
|
|
2007
|
+
var U = class extends Error {
|
|
2008
2008
|
constructor(e, t, n) {
|
|
2009
2009
|
super(), typeof t == "string" && (n = t, t = void 0);
|
|
2010
2010
|
let r = "", i = {}, a = !1;
|
|
@@ -2020,29 +2020,29 @@ var W = class extends Error {
|
|
|
2020
2020
|
e && (i.place = e.position);
|
|
2021
2021
|
}
|
|
2022
2022
|
let o = i.place && "start" in i.place ? i.place.start : i.place;
|
|
2023
|
-
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name =
|
|
2023
|
+
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name = Lt(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = a && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
2024
2024
|
}
|
|
2025
2025
|
};
|
|
2026
|
-
|
|
2026
|
+
U.prototype.file = "", U.prototype.name = "", U.prototype.reason = "", U.prototype.message = "", U.prototype.stack = "", U.prototype.column = void 0, U.prototype.line = void 0, U.prototype.ancestors = void 0, U.prototype.cause = void 0, U.prototype.fatal = void 0, U.prototype.place = void 0, U.prototype.ruleId = void 0, U.prototype.source = void 0;
|
|
2027
2027
|
//#endregion
|
|
2028
2028
|
//#region node_modules/hast-util-to-jsx-runtime/lib/index.js
|
|
2029
|
-
var
|
|
2029
|
+
var Vt = /* @__PURE__ */ P(Mt(), 1), Ht = {}.hasOwnProperty, Ut = /* @__PURE__ */ new Map(), Wt = /[A-Z]/g, Gt = new Set([
|
|
2030
2030
|
"table",
|
|
2031
2031
|
"tbody",
|
|
2032
2032
|
"thead",
|
|
2033
2033
|
"tfoot",
|
|
2034
2034
|
"tr"
|
|
2035
|
-
]),
|
|
2036
|
-
function
|
|
2035
|
+
]), Kt = new Set(["td", "th"]), qt = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
2036
|
+
function Jt(e, t) {
|
|
2037
2037
|
if (!t || t.Fragment === void 0) throw TypeError("Expected `Fragment` in options");
|
|
2038
2038
|
let n = t.filePath || void 0, r;
|
|
2039
2039
|
if (t.development) {
|
|
2040
2040
|
if (typeof t.jsxDEV != "function") throw TypeError("Expected `jsxDEV` in options when `development: true`");
|
|
2041
|
-
r =
|
|
2041
|
+
r = on(n, t.jsxDEV);
|
|
2042
2042
|
} else {
|
|
2043
2043
|
if (typeof t.jsx != "function") throw TypeError("Expected `jsx` in production options");
|
|
2044
2044
|
if (typeof t.jsxs != "function") throw TypeError("Expected `jsxs` in production options");
|
|
2045
|
-
r =
|
|
2045
|
+
r = an(n, t.jsx, t.jsxs);
|
|
2046
2046
|
}
|
|
2047
2047
|
let i = {
|
|
2048
2048
|
Fragment: t.Fragment,
|
|
@@ -2055,72 +2055,72 @@ function qt(e, t) {
|
|
|
2055
2055
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
2056
2056
|
passKeys: t.passKeys !== !1,
|
|
2057
2057
|
passNode: t.passNode || !1,
|
|
2058
|
-
schema: t.space === "svg" ?
|
|
2058
|
+
schema: t.space === "svg" ? Dt : Et,
|
|
2059
2059
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
2060
2060
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
2061
|
-
}, a =
|
|
2061
|
+
}, a = Yt(i, e, void 0);
|
|
2062
2062
|
return a && typeof a != "string" ? a : i.create(e, i.Fragment, { children: a || void 0 }, void 0);
|
|
2063
2063
|
}
|
|
2064
|
-
function Jt(e, t, n) {
|
|
2065
|
-
if (t.type === "element") return Yt(e, t, n);
|
|
2066
|
-
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return Xt(e, t);
|
|
2067
|
-
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return Qt(e, t, n);
|
|
2068
|
-
if (t.type === "mdxjsEsm") return Zt(e, t);
|
|
2069
|
-
if (t.type === "root") return $t(e, t, n);
|
|
2070
|
-
if (t.type === "text") return en(e, t);
|
|
2071
|
-
}
|
|
2072
2064
|
function Yt(e, t, n) {
|
|
2065
|
+
if (t.type === "element") return Xt(e, t, n);
|
|
2066
|
+
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return Zt(e, t);
|
|
2067
|
+
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return $t(e, t, n);
|
|
2068
|
+
if (t.type === "mdxjsEsm") return Qt(e, t);
|
|
2069
|
+
if (t.type === "root") return en(e, t, n);
|
|
2070
|
+
if (t.type === "text") return tn(e, t);
|
|
2071
|
+
}
|
|
2072
|
+
function Xt(e, t, n) {
|
|
2073
2073
|
let r = e.schema, i = r;
|
|
2074
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
|
2075
|
-
let a =
|
|
2076
|
-
return
|
|
2077
|
-
return typeof e == "string" ? !
|
|
2078
|
-
})),
|
|
2074
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Dt, e.schema = i), e.ancestors.push(t);
|
|
2075
|
+
let a = fn(e, t.tagName, !1), o = sn(e, t), s = ln(e, t);
|
|
2076
|
+
return Gt.has(t.tagName) && (s = s.filter(function(e) {
|
|
2077
|
+
return typeof e == "string" ? !Ze(e) : !0;
|
|
2078
|
+
})), nn(e, o, a, t), rn(o, s), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function Zt(e, t) {
|
|
2081
2081
|
if (t.data && t.data.estree && e.evaluater) {
|
|
2082
2082
|
let n = t.data.estree.body[0];
|
|
2083
2083
|
return n.type, e.evaluater.evaluateExpression(n.expression);
|
|
2084
2084
|
}
|
|
2085
|
-
|
|
2085
|
+
pn(e, t.position);
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function Qt(e, t) {
|
|
2088
2088
|
if (t.data && t.data.estree && e.evaluater) return e.evaluater.evaluateProgram(t.data.estree);
|
|
2089
|
-
|
|
2089
|
+
pn(e, t.position);
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function $t(e, t, n) {
|
|
2092
2092
|
let r = e.schema, i = r;
|
|
2093
|
-
t.name === "svg" && r.space === "html" && (i =
|
|
2094
|
-
let a = t.name === null ? e.Fragment :
|
|
2095
|
-
return
|
|
2093
|
+
t.name === "svg" && r.space === "html" && (i = Dt, e.schema = i), e.ancestors.push(t);
|
|
2094
|
+
let a = t.name === null ? e.Fragment : fn(e, t.name, !0), o = cn(e, t), s = ln(e, t);
|
|
2095
|
+
return nn(e, o, a, t), rn(o, s), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2097
|
+
function en(e, t, n) {
|
|
2098
2098
|
let r = {};
|
|
2099
|
-
return
|
|
2099
|
+
return rn(r, ln(e, t)), e.create(t, e.Fragment, r, n);
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2101
|
+
function tn(e, t) {
|
|
2102
2102
|
return t.value;
|
|
2103
2103
|
}
|
|
2104
|
-
function
|
|
2104
|
+
function nn(e, t, n, r) {
|
|
2105
2105
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2107
|
+
function rn(e, t) {
|
|
2108
2108
|
if (t.length > 0) {
|
|
2109
2109
|
let n = t.length > 1 ? t : t[0];
|
|
2110
2110
|
n && (e.children = n);
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
2113
|
-
function
|
|
2113
|
+
function an(e, t, n) {
|
|
2114
2114
|
return r;
|
|
2115
2115
|
function r(e, r, i, a) {
|
|
2116
2116
|
let o = Array.isArray(i.children) ? n : t;
|
|
2117
2117
|
return a ? o(r, i, a) : o(r, i);
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function on(e, t) {
|
|
2121
2121
|
return n;
|
|
2122
2122
|
function n(n, r, i, a) {
|
|
2123
|
-
let o = Array.isArray(i.children), s =
|
|
2123
|
+
let o = Array.isArray(i.children), s = Pt(n);
|
|
2124
2124
|
return t(r, i, a, o, {
|
|
2125
2125
|
columnNumber: s ? s.column - 1 : void 0,
|
|
2126
2126
|
fileName: e,
|
|
@@ -2128,13 +2128,13 @@ function an(e, t) {
|
|
|
2128
2128
|
}, void 0);
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function sn(e, t) {
|
|
2132
2132
|
let n = {}, r, i;
|
|
2133
|
-
for (i in t.properties) if (i !== "children" &&
|
|
2134
|
-
let a =
|
|
2133
|
+
for (i in t.properties) if (i !== "children" && Ht.call(t.properties, i)) {
|
|
2134
|
+
let a = un(e, i, t.properties[i]);
|
|
2135
2135
|
if (a) {
|
|
2136
2136
|
let [i, o] = a;
|
|
2137
|
-
e.tableCellAlignToStyle && i === "align" && typeof o == "string" &&
|
|
2137
|
+
e.tableCellAlignToStyle && i === "align" && typeof o == "string" && Kt.has(t.tagName) ? r = o : n[i] = o;
|
|
2138
2138
|
}
|
|
2139
2139
|
}
|
|
2140
2140
|
if (r) {
|
|
@@ -2143,7 +2143,7 @@ function on(e, t) {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
return n;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function cn(e, t) {
|
|
2147
2147
|
let n = {};
|
|
2148
2148
|
for (let r of t.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) {
|
|
2149
2149
|
let t = r.data.estree.body[0];
|
|
@@ -2152,20 +2152,20 @@ function sn(e, t) {
|
|
|
2152
2152
|
i.type;
|
|
2153
2153
|
let a = i.properties[0];
|
|
2154
2154
|
a.type, Object.assign(n, e.evaluater.evaluateExpression(a.argument));
|
|
2155
|
-
} else
|
|
2155
|
+
} else pn(e, t.position);
|
|
2156
2156
|
else {
|
|
2157
2157
|
let i = r.name, a;
|
|
2158
2158
|
if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) {
|
|
2159
2159
|
let t = r.value.data.estree.body[0];
|
|
2160
2160
|
t.type, a = e.evaluater.evaluateExpression(t.expression);
|
|
2161
|
-
} else
|
|
2161
|
+
} else pn(e, t.position);
|
|
2162
2162
|
else a = r.value === null ? !0 : r.value;
|
|
2163
2163
|
n[i] = a;
|
|
2164
2164
|
}
|
|
2165
2165
|
return n;
|
|
2166
2166
|
}
|
|
2167
|
-
function
|
|
2168
|
-
let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
2167
|
+
function ln(e, t) {
|
|
2168
|
+
let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() : Ut;
|
|
2169
2169
|
for (; ++r < t.children.length;) {
|
|
2170
2170
|
let a = t.children[r], o;
|
|
2171
2171
|
if (e.passKeys) {
|
|
@@ -2175,36 +2175,36 @@ function cn(e, t) {
|
|
|
2175
2175
|
o = e + "-" + t, i.set(e, t + 1);
|
|
2176
2176
|
}
|
|
2177
2177
|
}
|
|
2178
|
-
let s =
|
|
2178
|
+
let s = Yt(e, a, o);
|
|
2179
2179
|
s !== void 0 && n.push(s);
|
|
2180
2180
|
}
|
|
2181
2181
|
return n;
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2184
|
-
let r =
|
|
2183
|
+
function un(e, t, n) {
|
|
2184
|
+
let r = Ct(e.schema, t);
|
|
2185
2185
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
2186
|
-
if (Array.isArray(n) && (n = r.commaSeparated ?
|
|
2187
|
-
let t = typeof n == "object" ? n :
|
|
2188
|
-
return e.stylePropertyNameCase === "css" && (t =
|
|
2186
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? Ge(n) : Ot(n)), r.property === "style") {
|
|
2187
|
+
let t = typeof n == "object" ? n : dn(e, String(n));
|
|
2188
|
+
return e.stylePropertyNameCase === "css" && (t = mn(t)), ["style", t];
|
|
2189
2189
|
}
|
|
2190
|
-
return [e.elementAttributeNameCase === "react" && r.space ?
|
|
2190
|
+
return [e.elementAttributeNameCase === "react" && r.space ? yt[r.property] || r.property : r.attribute, n];
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function dn(e, t) {
|
|
2194
2194
|
try {
|
|
2195
|
-
return (0,
|
|
2195
|
+
return (0, Vt.default)(t, { reactCompat: !0 });
|
|
2196
2196
|
} catch (t) {
|
|
2197
2197
|
if (e.ignoreInvalidStyle) return {};
|
|
2198
|
-
let n = t, r = new
|
|
2198
|
+
let n = t, r = new U("Cannot parse `style` attribute", {
|
|
2199
2199
|
ancestors: e.ancestors,
|
|
2200
2200
|
cause: n,
|
|
2201
2201
|
ruleId: "style",
|
|
2202
2202
|
source: "hast-util-to-jsx-runtime"
|
|
2203
2203
|
});
|
|
2204
|
-
throw r.file = e.filePath || void 0, r.url =
|
|
2204
|
+
throw r.file = e.filePath || void 0, r.url = qt + "#cannot-parse-style-attribute", r;
|
|
2205
2205
|
}
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2207
|
+
function fn(e, t, n) {
|
|
2208
2208
|
let r;
|
|
2209
2209
|
if (!n) r = {
|
|
2210
2210
|
type: "Literal",
|
|
@@ -2213,7 +2213,7 @@ function dn(e, t, n) {
|
|
|
2213
2213
|
else if (t.includes(".")) {
|
|
2214
2214
|
let e = t.split("."), n = -1, i;
|
|
2215
2215
|
for (; ++n < e.length;) {
|
|
2216
|
-
let t =
|
|
2216
|
+
let t = Ye(e[n]) ? {
|
|
2217
2217
|
type: "Identifier",
|
|
2218
2218
|
name: e[n]
|
|
2219
2219
|
} : {
|
|
@@ -2229,7 +2229,7 @@ function dn(e, t, n) {
|
|
|
2229
2229
|
} : t;
|
|
2230
2230
|
}
|
|
2231
2231
|
r = i;
|
|
2232
|
-
} else r =
|
|
2232
|
+
} else r = Ye(t) && !/^[a-z]/.test(t) ? {
|
|
2233
2233
|
type: "Identifier",
|
|
2234
2234
|
name: t
|
|
2235
2235
|
} : {
|
|
@@ -2238,35 +2238,35 @@ function dn(e, t, n) {
|
|
|
2238
2238
|
};
|
|
2239
2239
|
if (r.type === "Literal") {
|
|
2240
2240
|
let t = r.value;
|
|
2241
|
-
return
|
|
2241
|
+
return Ht.call(e.components, t) ? e.components[t] : t;
|
|
2242
2242
|
}
|
|
2243
2243
|
if (e.evaluater) return e.evaluater.evaluateExpression(r);
|
|
2244
|
-
|
|
2244
|
+
pn(e);
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2247
|
-
let n = new
|
|
2246
|
+
function pn(e, t) {
|
|
2247
|
+
let n = new U("Cannot handle MDX estrees without `createEvaluater`", {
|
|
2248
2248
|
ancestors: e.ancestors,
|
|
2249
2249
|
place: t,
|
|
2250
2250
|
ruleId: "mdx-estree",
|
|
2251
2251
|
source: "hast-util-to-jsx-runtime"
|
|
2252
2252
|
});
|
|
2253
|
-
throw n.file = e.filePath || void 0, n.url =
|
|
2253
|
+
throw n.file = e.filePath || void 0, n.url = qt + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
2254
2254
|
}
|
|
2255
|
-
function
|
|
2255
|
+
function mn(e) {
|
|
2256
2256
|
let t = {}, n;
|
|
2257
|
-
for (n in e)
|
|
2257
|
+
for (n in e) Ht.call(e, n) && (t[hn(n)] = e[n]);
|
|
2258
2258
|
return t;
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2261
|
-
let t = e.replace(
|
|
2260
|
+
function hn(e) {
|
|
2261
|
+
let t = e.replace(Wt, gn);
|
|
2262
2262
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2264
|
+
function gn(e) {
|
|
2265
2265
|
return "-" + e.toLowerCase();
|
|
2266
2266
|
}
|
|
2267
2267
|
//#endregion
|
|
2268
2268
|
//#region node_modules/html-url-attributes/lib/index.js
|
|
2269
|
-
var
|
|
2269
|
+
var _n = {
|
|
2270
2270
|
action: ["form"],
|
|
2271
2271
|
cite: [
|
|
2272
2272
|
"blockquote",
|
|
@@ -2298,45 +2298,45 @@ var gn = {
|
|
|
2298
2298
|
"track",
|
|
2299
2299
|
"video"
|
|
2300
2300
|
]
|
|
2301
|
-
},
|
|
2302
|
-
function
|
|
2303
|
-
let n = t ||
|
|
2304
|
-
return
|
|
2301
|
+
}, vn = {};
|
|
2302
|
+
function yn(e, t) {
|
|
2303
|
+
let n = t || vn;
|
|
2304
|
+
return bn(e, typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, typeof n.includeHtml == "boolean" ? n.includeHtml : !0);
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2307
|
-
if (
|
|
2306
|
+
function bn(e, t, n) {
|
|
2307
|
+
if (Sn(e)) {
|
|
2308
2308
|
if ("value" in e) return e.type === "html" && !n ? "" : e.value;
|
|
2309
2309
|
if (t && "alt" in e && e.alt) return e.alt;
|
|
2310
|
-
if ("children" in e) return
|
|
2310
|
+
if ("children" in e) return xn(e.children, t, n);
|
|
2311
2311
|
}
|
|
2312
|
-
return Array.isArray(e) ?
|
|
2312
|
+
return Array.isArray(e) ? xn(e, t, n) : "";
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function xn(e, t, n) {
|
|
2315
2315
|
let r = [], i = -1;
|
|
2316
|
-
for (; ++i < e.length;) r[i] =
|
|
2316
|
+
for (; ++i < e.length;) r[i] = bn(e[i], t, n);
|
|
2317
2317
|
return r.join("");
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function Sn(e) {
|
|
2320
2320
|
return !!(e && typeof e == "object");
|
|
2321
2321
|
}
|
|
2322
2322
|
//#endregion
|
|
2323
2323
|
//#region node_modules/decode-named-character-reference/index.dom.js
|
|
2324
|
-
var
|
|
2325
|
-
function
|
|
2324
|
+
var Cn = document.createElement("i");
|
|
2325
|
+
function wn(e) {
|
|
2326
2326
|
let t = "&" + e + ";";
|
|
2327
|
-
|
|
2328
|
-
let n =
|
|
2327
|
+
Cn.innerHTML = t;
|
|
2328
|
+
let n = Cn.textContent;
|
|
2329
2329
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
2330
2330
|
}
|
|
2331
2331
|
//#endregion
|
|
2332
2332
|
//#region node_modules/micromark-util-chunked/index.js
|
|
2333
|
-
function
|
|
2333
|
+
function W(e, t, n, r) {
|
|
2334
2334
|
let i = e.length, a = 0, o;
|
|
2335
2335
|
if (t = t < 0 ? -t > i ? 0 : i + t : t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4) o = Array.from(r), o.unshift(t, n), e.splice(...o);
|
|
2336
2336
|
else for (n && e.splice(t, n); a < r.length;) o = r.slice(a, a + 1e4), o.unshift(t, 0), e.splice(...o), a += 1e4, t += 1e4;
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2339
|
-
return e.length > 0 ? (
|
|
2338
|
+
function G(e, t) {
|
|
2339
|
+
return e.length > 0 ? (W(e, e.length, 0, t), e) : t;
|
|
2340
2340
|
}
|
|
2341
2341
|
//#endregion
|
|
2342
2342
|
//#region node_modules/micromark-util-combine-extensions/index.js
|
|
@@ -2360,7 +2360,7 @@ function Dn(e, t) {
|
|
|
2360
2360
|
function On(e, t) {
|
|
2361
2361
|
let n = -1, r = [];
|
|
2362
2362
|
for (; ++n < t.length;) (t[n].add === "after" ? e : r).push(t[n]);
|
|
2363
|
-
|
|
2363
|
+
W(e, 0, 0, r);
|
|
2364
2364
|
}
|
|
2365
2365
|
//#endregion
|
|
2366
2366
|
//#region node_modules/micromark-util-decode-numeric-character-reference/index.js
|
|
@@ -2479,7 +2479,7 @@ function Wn(e) {
|
|
|
2479
2479
|
_(r);
|
|
2480
2480
|
let s = n;
|
|
2481
2481
|
for (; s < t.events.length;) t.events[s][1].end = { ...o }, s++;
|
|
2482
|
-
return
|
|
2482
|
+
return W(t.events, a + 1, 0, t.events.slice(n)), t.events.length = s, l(e);
|
|
2483
2483
|
}
|
|
2484
2484
|
return s(e);
|
|
2485
2485
|
}
|
|
@@ -2535,7 +2535,7 @@ function Wn(e) {
|
|
|
2535
2535
|
s = !0;
|
|
2536
2536
|
}
|
|
2537
2537
|
for (_(r), e = n; e < t.events.length;) t.events[e][1].end = { ...c }, e++;
|
|
2538
|
-
|
|
2538
|
+
W(t.events, a + 1, 0, t.events.slice(n)), t.events.length = e;
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
2541
|
function _(r) {
|
|
@@ -2599,7 +2599,7 @@ function Yn(e, t) {
|
|
|
2599
2599
|
type: c > 1 ? "strong" : "emphasis",
|
|
2600
2600
|
start: { ...o.start },
|
|
2601
2601
|
end: { ...s.end }
|
|
2602
|
-
}, e[r][1].end = { ...o.start }, e[n][1].start = { ...s.end }, l = [], e[r][1].end.offset - e[r][1].start.offset && (l =
|
|
2602
|
+
}, e[r][1].end = { ...o.start }, e[n][1].start = { ...s.end }, l = [], e[r][1].end.offset - e[r][1].start.offset && (l = G(l, [[
|
|
2603
2603
|
"enter",
|
|
2604
2604
|
e[r][1],
|
|
2605
2605
|
t
|
|
@@ -2607,7 +2607,7 @@ function Yn(e, t) {
|
|
|
2607
2607
|
"exit",
|
|
2608
2608
|
e[r][1],
|
|
2609
2609
|
t
|
|
2610
|
-
]])), l =
|
|
2610
|
+
]])), l = G(l, [
|
|
2611
2611
|
[
|
|
2612
2612
|
"enter",
|
|
2613
2613
|
i,
|
|
@@ -2628,7 +2628,7 @@ function Yn(e, t) {
|
|
|
2628
2628
|
a,
|
|
2629
2629
|
t
|
|
2630
2630
|
]
|
|
2631
|
-
]), l =
|
|
2631
|
+
]), l = G(l, qn(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), l = G(l, [
|
|
2632
2632
|
[
|
|
2633
2633
|
"exit",
|
|
2634
2634
|
a,
|
|
@@ -2649,7 +2649,7 @@ function Yn(e, t) {
|
|
|
2649
2649
|
i,
|
|
2650
2650
|
t
|
|
2651
2651
|
]
|
|
2652
|
-
]), e[n][1].end.offset - e[n][1].start.offset ? (u = 2, l =
|
|
2652
|
+
]), e[n][1].end.offset - e[n][1].start.offset ? (u = 2, l = G(l, [[
|
|
2653
2653
|
"enter",
|
|
2654
2654
|
e[n][1],
|
|
2655
2655
|
t
|
|
@@ -2657,7 +2657,7 @@ function Yn(e, t) {
|
|
|
2657
2657
|
"exit",
|
|
2658
2658
|
e[n][1],
|
|
2659
2659
|
t
|
|
2660
|
-
]])) : u = 0,
|
|
2660
|
+
]])) : u = 0, W(e, r - 1, n - r + 3, l), n = r + l.length - u - 2;
|
|
2661
2661
|
break;
|
|
2662
2662
|
}
|
|
2663
2663
|
}
|
|
@@ -2806,7 +2806,7 @@ function lr(e, t, n) {
|
|
|
2806
2806
|
function u(s) {
|
|
2807
2807
|
if (s === 59 && i) {
|
|
2808
2808
|
let i = e.exit("characterReferenceValue");
|
|
2809
|
-
return o === q && !
|
|
2809
|
+
return o === q && !wn(r.sliceSerialize(i)) ? n(s) : (e.enter("characterReferenceMarker"), e.consume(s), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
2810
2810
|
}
|
|
2811
2811
|
return o(s) && i++ < a ? (e.consume(s), u) : n(s);
|
|
2812
2812
|
}
|
|
@@ -3048,7 +3048,7 @@ function wr(e) {
|
|
|
3048
3048
|
i && (r[1].end = { ...u.get(i)[1].start }, s = u.slice(i, n), s.unshift(r), u.splice(i, n - i + 1, s));
|
|
3049
3049
|
}
|
|
3050
3050
|
}
|
|
3051
|
-
return
|
|
3051
|
+
return W(e, 0, Infinity, u.slice(0)), !l;
|
|
3052
3052
|
}
|
|
3053
3053
|
function Tr(e, t) {
|
|
3054
3054
|
let n = e.get(t)[1], r = e.get(t)[2], i = t - 1, a = [], o = n._tokenizer;
|
|
@@ -3266,7 +3266,7 @@ function Hr(e, t) {
|
|
|
3266
3266
|
start: e[r][1].start,
|
|
3267
3267
|
end: e[n][1].end,
|
|
3268
3268
|
contentType: "text"
|
|
3269
|
-
},
|
|
3269
|
+
}, W(e, r, n - r + 1, [
|
|
3270
3270
|
[
|
|
3271
3271
|
"enter",
|
|
3272
3272
|
i,
|
|
@@ -3345,13 +3345,13 @@ function Xr(e, t, n) {
|
|
|
3345
3345
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(t), d;
|
|
3346
3346
|
}
|
|
3347
3347
|
function d(s) {
|
|
3348
|
-
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t :
|
|
3348
|
+
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t : te) : K(s) ? (e.consume(s), o = String.fromCharCode(s), g) : n(s);
|
|
3349
3349
|
}
|
|
3350
3350
|
function f(a) {
|
|
3351
|
-
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : K(a) ? (e.consume(a), i = 4, r.interrupt ? t :
|
|
3351
|
+
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : K(a) ? (e.consume(a), i = 4, r.interrupt ? t : te) : n(a);
|
|
3352
3352
|
}
|
|
3353
3353
|
function p(i) {
|
|
3354
|
-
return i === 45 ? (e.consume(i), r.interrupt ? t :
|
|
3354
|
+
return i === 45 ? (e.consume(i), r.interrupt ? t : te) : n(i);
|
|
3355
3355
|
}
|
|
3356
3356
|
function m(i) {
|
|
3357
3357
|
return i === "CDATA[".charCodeAt(s++) ? (e.consume(i), s === 6 ? r.interrupt ? t : O : m) : n(i);
|
|
@@ -3400,10 +3400,10 @@ function Xr(e, t, n) {
|
|
|
3400
3400
|
return t === null || J(t) ? O(t) : X(t) ? (e.consume(t), D) : n(t);
|
|
3401
3401
|
}
|
|
3402
3402
|
function O(t) {
|
|
3403
|
-
return t === 45 && i === 2 ? (e.consume(t), M) : t === 60 && i === 1 ? (e.consume(t), N) : t === 62 && i === 4 ? (e.consume(t),
|
|
3403
|
+
return t === 45 && i === 2 ? (e.consume(t), M) : t === 60 && i === 1 ? (e.consume(t), N) : t === 62 && i === 4 ? (e.consume(t), F) : t === 63 && i === 3 ? (e.consume(t), te) : t === 93 && i === 5 ? (e.consume(t), ee) : J(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(qr, ne, k)(t)) : t === null || J(t) ? (e.exit("htmlFlowData"), k(t)) : (e.consume(t), O);
|
|
3404
3404
|
}
|
|
3405
3405
|
function k(t) {
|
|
3406
|
-
return e.check(Jr, A,
|
|
3406
|
+
return e.check(Jr, A, ne)(t);
|
|
3407
3407
|
}
|
|
3408
3408
|
function A(t) {
|
|
3409
3409
|
return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), j;
|
|
@@ -3412,7 +3412,7 @@ function Xr(e, t, n) {
|
|
|
3412
3412
|
return t === null || J(t) ? k(t) : (e.enter("htmlFlowData"), O(t));
|
|
3413
3413
|
}
|
|
3414
3414
|
function M(t) {
|
|
3415
|
-
return t === 45 ? (e.consume(t),
|
|
3415
|
+
return t === 45 ? (e.consume(t), te) : O(t);
|
|
3416
3416
|
}
|
|
3417
3417
|
function N(t) {
|
|
3418
3418
|
return t === 47 ? (e.consume(t), o = "", P) : O(t);
|
|
@@ -3420,20 +3420,20 @@ function Xr(e, t, n) {
|
|
|
3420
3420
|
function P(t) {
|
|
3421
3421
|
if (t === 62) {
|
|
3422
3422
|
let n = o.toLowerCase();
|
|
3423
|
-
return Gr.includes(n) ? (e.consume(t),
|
|
3423
|
+
return Gr.includes(n) ? (e.consume(t), F) : O(t);
|
|
3424
3424
|
}
|
|
3425
3425
|
return K(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), P) : O(t);
|
|
3426
3426
|
}
|
|
3427
3427
|
function ee(t) {
|
|
3428
|
-
return t === 93 ? (e.consume(t),
|
|
3428
|
+
return t === 93 ? (e.consume(t), te) : O(t);
|
|
3429
3429
|
}
|
|
3430
|
-
function
|
|
3431
|
-
return t === 62 ? (e.consume(t),
|
|
3430
|
+
function te(t) {
|
|
3431
|
+
return t === 62 ? (e.consume(t), F) : t === 45 && i === 2 ? (e.consume(t), te) : O(t);
|
|
3432
3432
|
}
|
|
3433
|
-
function
|
|
3434
|
-
return t === null || J(t) ? (e.exit("htmlFlowData"),
|
|
3433
|
+
function F(t) {
|
|
3434
|
+
return t === null || J(t) ? (e.exit("htmlFlowData"), ne(t)) : (e.consume(t), F);
|
|
3435
3435
|
}
|
|
3436
|
-
function
|
|
3436
|
+
function ne(n) {
|
|
3437
3437
|
return e.exit("htmlFlow"), t(n);
|
|
3438
3438
|
}
|
|
3439
3439
|
}
|
|
@@ -3567,7 +3567,7 @@ function ai(e) {
|
|
|
3567
3567
|
r.type = "data", t += e;
|
|
3568
3568
|
}
|
|
3569
3569
|
}
|
|
3570
|
-
return e.length !== n.length &&
|
|
3570
|
+
return e.length !== n.length && W(e, 0, e.length, n), e;
|
|
3571
3571
|
}
|
|
3572
3572
|
function oi(e, t) {
|
|
3573
3573
|
let n = e.length, r = 0, i, a, o, s;
|
|
@@ -3601,11 +3601,11 @@ function oi(e, t) {
|
|
|
3601
3601
|
"enter",
|
|
3602
3602
|
l,
|
|
3603
3603
|
t
|
|
3604
|
-
]], s =
|
|
3604
|
+
]], s = G(s, e.slice(a + 1, a + r + 3)), s = G(s, [[
|
|
3605
3605
|
"enter",
|
|
3606
3606
|
u,
|
|
3607
3607
|
t
|
|
3608
|
-
]]), s =
|
|
3608
|
+
]]), s = G(s, qn(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, o - 3), t)), s = G(s, [
|
|
3609
3609
|
[
|
|
3610
3610
|
"exit",
|
|
3611
3611
|
u,
|
|
@@ -3618,11 +3618,11 @@ function oi(e, t) {
|
|
|
3618
3618
|
l,
|
|
3619
3619
|
t
|
|
3620
3620
|
]
|
|
3621
|
-
]), s =
|
|
3621
|
+
]), s = G(s, e.slice(o + 1)), s = G(s, [[
|
|
3622
3622
|
"exit",
|
|
3623
3623
|
c,
|
|
3624
3624
|
t
|
|
3625
|
-
]]),
|
|
3625
|
+
]]), W(e, a, e.length, s), e;
|
|
3626
3626
|
}
|
|
3627
3627
|
function si(e, t, n) {
|
|
3628
3628
|
let r = this, i = r.events.length, a, o;
|
|
@@ -4094,7 +4094,7 @@ function qi(e, t, n) {
|
|
|
4094
4094
|
}, u = t.tokenize.call(l, c);
|
|
4095
4095
|
return t.resolveAll && a.push(t), l;
|
|
4096
4096
|
function d(e) {
|
|
4097
|
-
return o =
|
|
4097
|
+
return o = G(o, e), g(), o[o.length - 1] === null ? (w(t, 0), l.events = qn(a, l.events, l), l.events) : [];
|
|
4098
4098
|
}
|
|
4099
4099
|
function f(e, t) {
|
|
4100
4100
|
return Yi(p(e), t);
|
|
@@ -4181,7 +4181,7 @@ function qi(e, t, n) {
|
|
|
4181
4181
|
}
|
|
4182
4182
|
}
|
|
4183
4183
|
function w(e, t) {
|
|
4184
|
-
e.resolveAll && !a.includes(e) && a.push(e), e.resolve &&
|
|
4184
|
+
e.resolveAll && !a.includes(e) && a.push(e), e.resolve && W(l.events, t, l.events.length - t, e.resolve(l.events.slice(t), l)), e.resolveTo && (l.events = e.resolveTo(l.events, l));
|
|
4185
4185
|
}
|
|
4186
4186
|
function T() {
|
|
4187
4187
|
let e = m(), t = l.previous, n = l.currentConstruct, i = l.events.length, a = Array.from(s);
|
|
@@ -4307,7 +4307,7 @@ function na(e, t, n) {
|
|
|
4307
4307
|
let e = n.charCodeAt(1), t = e === 120 || e === 88;
|
|
4308
4308
|
return kn(n.slice(t ? 2 : 1), t ? 16 : 10);
|
|
4309
4309
|
}
|
|
4310
|
-
return
|
|
4310
|
+
return wn(n) || e;
|
|
4311
4311
|
}
|
|
4312
4312
|
//#endregion
|
|
4313
4313
|
//#region node_modules/mdast-util-from-markdown/lib/index.js
|
|
@@ -4326,60 +4326,60 @@ function aa(e) {
|
|
|
4326
4326
|
"strong"
|
|
4327
4327
|
],
|
|
4328
4328
|
enter: {
|
|
4329
|
-
autolink: a(
|
|
4329
|
+
autolink: a(ve),
|
|
4330
4330
|
autolinkProtocol: T,
|
|
4331
4331
|
autolinkEmail: T,
|
|
4332
|
-
atxHeading: a(
|
|
4333
|
-
blockQuote: a(
|
|
4332
|
+
atxHeading: a(me),
|
|
4333
|
+
blockQuote: a(ue),
|
|
4334
4334
|
characterEscape: T,
|
|
4335
4335
|
characterReference: T,
|
|
4336
|
-
codeFenced: a(
|
|
4336
|
+
codeFenced: a(de),
|
|
4337
4337
|
codeFencedFenceInfo: o,
|
|
4338
4338
|
codeFencedFenceMeta: o,
|
|
4339
|
-
codeIndented: a(
|
|
4340
|
-
codeText: a(
|
|
4339
|
+
codeIndented: a(de, o),
|
|
4340
|
+
codeText: a(fe, o),
|
|
4341
4341
|
codeTextData: T,
|
|
4342
4342
|
data: T,
|
|
4343
4343
|
codeFlowValue: T,
|
|
4344
|
-
definition: a(
|
|
4344
|
+
definition: a(pe),
|
|
4345
4345
|
definitionDestinationString: o,
|
|
4346
4346
|
definitionLabelString: o,
|
|
4347
4347
|
definitionTitleString: o,
|
|
4348
|
-
emphasis: a(
|
|
4349
|
-
hardBreakEscape: a(
|
|
4350
|
-
hardBreakTrailing: a(
|
|
4351
|
-
htmlFlow: a(
|
|
4348
|
+
emphasis: a(I),
|
|
4349
|
+
hardBreakEscape: a(he),
|
|
4350
|
+
hardBreakTrailing: a(he),
|
|
4351
|
+
htmlFlow: a(ge, o),
|
|
4352
4352
|
htmlFlowData: T,
|
|
4353
|
-
htmlText: a(
|
|
4353
|
+
htmlText: a(ge, o),
|
|
4354
4354
|
htmlTextData: T,
|
|
4355
|
-
image: a(
|
|
4355
|
+
image: a(_e),
|
|
4356
4356
|
label: o,
|
|
4357
|
-
link: a(
|
|
4358
|
-
listItem: a(
|
|
4357
|
+
link: a(ve),
|
|
4358
|
+
listItem: a(be),
|
|
4359
4359
|
listItemValue: f,
|
|
4360
|
-
listOrdered: a(
|
|
4361
|
-
listUnordered: a(
|
|
4362
|
-
paragraph: a(
|
|
4363
|
-
reference:
|
|
4360
|
+
listOrdered: a(ye, d),
|
|
4361
|
+
listUnordered: a(ye),
|
|
4362
|
+
paragraph: a(xe),
|
|
4363
|
+
reference: re,
|
|
4364
4364
|
referenceString: o,
|
|
4365
4365
|
resourceDestinationString: o,
|
|
4366
4366
|
resourceTitleString: o,
|
|
4367
|
-
setextHeading: a(
|
|
4368
|
-
strong: a(
|
|
4369
|
-
thematicBreak: a(
|
|
4367
|
+
setextHeading: a(me),
|
|
4368
|
+
strong: a(Se),
|
|
4369
|
+
thematicBreak: a(we)
|
|
4370
4370
|
},
|
|
4371
4371
|
exit: {
|
|
4372
4372
|
atxHeading: c(),
|
|
4373
4373
|
atxHeadingSequence: x,
|
|
4374
4374
|
autolink: c(),
|
|
4375
|
-
autolinkEmail:
|
|
4376
|
-
autolinkProtocol:
|
|
4375
|
+
autolinkEmail: le,
|
|
4376
|
+
autolinkProtocol: ce,
|
|
4377
4377
|
blockQuote: c(),
|
|
4378
4378
|
characterEscapeValue: E,
|
|
4379
|
-
characterReferenceMarkerHexadecimal:
|
|
4380
|
-
characterReferenceMarkerNumeric:
|
|
4381
|
-
characterReferenceValue:
|
|
4382
|
-
characterReference:
|
|
4379
|
+
characterReferenceMarkerHexadecimal: ae,
|
|
4380
|
+
characterReferenceMarkerNumeric: ae,
|
|
4381
|
+
characterReferenceValue: oe,
|
|
4382
|
+
characterReference: se,
|
|
4383
4383
|
codeFenced: c(g),
|
|
4384
4384
|
codeFencedFence: h,
|
|
4385
4385
|
codeFencedFenceInfo: p,
|
|
@@ -4409,10 +4409,10 @@ function aa(e) {
|
|
|
4409
4409
|
listOrdered: c(),
|
|
4410
4410
|
listUnordered: c(),
|
|
4411
4411
|
paragraph: c(),
|
|
4412
|
-
referenceString:
|
|
4413
|
-
resourceDestinationString:
|
|
4414
|
-
resourceTitleString:
|
|
4415
|
-
resource:
|
|
4412
|
+
referenceString: ie,
|
|
4413
|
+
resourceDestinationString: te,
|
|
4414
|
+
resourceTitleString: F,
|
|
4415
|
+
resource: ne,
|
|
4416
4416
|
setextHeading: c(w),
|
|
4417
4417
|
setextHeadingLineSequence: C,
|
|
4418
4418
|
setextHeadingText: S,
|
|
@@ -4540,14 +4540,14 @@ function aa(e) {
|
|
|
4540
4540
|
function l(e, t) {
|
|
4541
4541
|
let n = this.stack.pop(), r = this.tokenStack.pop();
|
|
4542
4542
|
if (r) r[0].type !== e.type && (t ? t.call(this, e, r[0]) : (r[1] || la).call(this, e, r[0]));
|
|
4543
|
-
else throw Error("Cannot close `" + e.type + "` (" +
|
|
4543
|
+
else throw Error("Cannot close `" + e.type + "` (" + Lt({
|
|
4544
4544
|
start: e.start,
|
|
4545
4545
|
end: e.end
|
|
4546
4546
|
}) + "): it’s not open");
|
|
4547
4547
|
n.position.end = oa(e.end);
|
|
4548
4548
|
}
|
|
4549
4549
|
function u() {
|
|
4550
|
-
return
|
|
4550
|
+
return yn(this.stack.pop());
|
|
4551
4551
|
}
|
|
4552
4552
|
function d() {
|
|
4553
4553
|
this.data.expectingFirstListItemValue = !0;
|
|
@@ -4605,7 +4605,7 @@ function aa(e) {
|
|
|
4605
4605
|
}
|
|
4606
4606
|
function T(e) {
|
|
4607
4607
|
let t = this.stack[this.stack.length - 1].children, n = t[t.length - 1];
|
|
4608
|
-
(!n || n.type !== "text") && (n =
|
|
4608
|
+
(!n || n.type !== "text") && (n = Ce(), n.position = {
|
|
4609
4609
|
start: oa(e.start),
|
|
4610
4610
|
end: void 0
|
|
4611
4611
|
}, t.push(n)), this.stack.push(n);
|
|
@@ -4662,54 +4662,54 @@ function aa(e) {
|
|
|
4662
4662
|
let e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
4663
4663
|
this.data.inReference = !0, n.type === "link" ? n.children = e.children : n.alt = t;
|
|
4664
4664
|
}
|
|
4665
|
-
function
|
|
4665
|
+
function te() {
|
|
4666
4666
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
4667
4667
|
t.url = e;
|
|
4668
4668
|
}
|
|
4669
|
-
function
|
|
4669
|
+
function F() {
|
|
4670
4670
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
4671
4671
|
t.title = e;
|
|
4672
4672
|
}
|
|
4673
|
-
function
|
|
4673
|
+
function ne() {
|
|
4674
4674
|
this.data.inReference = void 0;
|
|
4675
4675
|
}
|
|
4676
|
-
function
|
|
4676
|
+
function re() {
|
|
4677
4677
|
this.data.referenceType = "collapsed";
|
|
4678
4678
|
}
|
|
4679
|
-
function
|
|
4679
|
+
function ie(e) {
|
|
4680
4680
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
4681
4681
|
n.label = t, n.identifier = An(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
|
|
4682
4682
|
}
|
|
4683
|
-
function
|
|
4683
|
+
function ae(e) {
|
|
4684
4684
|
this.data.characterReferenceType = e.type;
|
|
4685
4685
|
}
|
|
4686
|
-
function
|
|
4686
|
+
function oe(e) {
|
|
4687
4687
|
let t = this.sliceSerialize(e), n = this.data.characterReferenceType, r;
|
|
4688
|
-
n ? (r = kn(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r =
|
|
4688
|
+
n ? (r = kn(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = wn(t);
|
|
4689
4689
|
let i = this.stack[this.stack.length - 1];
|
|
4690
4690
|
i.value += r;
|
|
4691
4691
|
}
|
|
4692
|
-
function
|
|
4692
|
+
function se(e) {
|
|
4693
4693
|
let t = this.stack.pop();
|
|
4694
4694
|
t.position.end = oa(e.end);
|
|
4695
4695
|
}
|
|
4696
|
-
function
|
|
4696
|
+
function ce(e) {
|
|
4697
4697
|
E.call(this, e);
|
|
4698
4698
|
let t = this.stack[this.stack.length - 1];
|
|
4699
4699
|
t.url = this.sliceSerialize(e);
|
|
4700
4700
|
}
|
|
4701
|
-
function
|
|
4701
|
+
function le(e) {
|
|
4702
4702
|
E.call(this, e);
|
|
4703
4703
|
let t = this.stack[this.stack.length - 1];
|
|
4704
4704
|
t.url = "mailto:" + this.sliceSerialize(e);
|
|
4705
4705
|
}
|
|
4706
|
-
function
|
|
4706
|
+
function ue() {
|
|
4707
4707
|
return {
|
|
4708
4708
|
type: "blockquote",
|
|
4709
4709
|
children: []
|
|
4710
4710
|
};
|
|
4711
4711
|
}
|
|
4712
|
-
function
|
|
4712
|
+
function de() {
|
|
4713
4713
|
return {
|
|
4714
4714
|
type: "code",
|
|
4715
4715
|
lang: null,
|
|
@@ -4717,13 +4717,13 @@ function aa(e) {
|
|
|
4717
4717
|
value: ""
|
|
4718
4718
|
};
|
|
4719
4719
|
}
|
|
4720
|
-
function
|
|
4720
|
+
function fe() {
|
|
4721
4721
|
return {
|
|
4722
4722
|
type: "inlineCode",
|
|
4723
4723
|
value: ""
|
|
4724
4724
|
};
|
|
4725
4725
|
}
|
|
4726
|
-
function
|
|
4726
|
+
function pe() {
|
|
4727
4727
|
return {
|
|
4728
4728
|
type: "definition",
|
|
4729
4729
|
identifier: "",
|
|
@@ -4732,29 +4732,29 @@ function aa(e) {
|
|
|
4732
4732
|
url: ""
|
|
4733
4733
|
};
|
|
4734
4734
|
}
|
|
4735
|
-
function
|
|
4735
|
+
function I() {
|
|
4736
4736
|
return {
|
|
4737
4737
|
type: "emphasis",
|
|
4738
4738
|
children: []
|
|
4739
4739
|
};
|
|
4740
4740
|
}
|
|
4741
|
-
function
|
|
4741
|
+
function me() {
|
|
4742
4742
|
return {
|
|
4743
4743
|
type: "heading",
|
|
4744
4744
|
depth: 0,
|
|
4745
4745
|
children: []
|
|
4746
4746
|
};
|
|
4747
4747
|
}
|
|
4748
|
-
function
|
|
4748
|
+
function he() {
|
|
4749
4749
|
return { type: "break" };
|
|
4750
4750
|
}
|
|
4751
|
-
function
|
|
4751
|
+
function ge() {
|
|
4752
4752
|
return {
|
|
4753
4753
|
type: "html",
|
|
4754
4754
|
value: ""
|
|
4755
4755
|
};
|
|
4756
4756
|
}
|
|
4757
|
-
function
|
|
4757
|
+
function _e() {
|
|
4758
4758
|
return {
|
|
4759
4759
|
type: "image",
|
|
4760
4760
|
title: null,
|
|
@@ -4762,7 +4762,7 @@ function aa(e) {
|
|
|
4762
4762
|
alt: null
|
|
4763
4763
|
};
|
|
4764
4764
|
}
|
|
4765
|
-
function
|
|
4765
|
+
function ve() {
|
|
4766
4766
|
return {
|
|
4767
4767
|
type: "link",
|
|
4768
4768
|
title: null,
|
|
@@ -4770,7 +4770,7 @@ function aa(e) {
|
|
|
4770
4770
|
children: []
|
|
4771
4771
|
};
|
|
4772
4772
|
}
|
|
4773
|
-
function
|
|
4773
|
+
function ye(e) {
|
|
4774
4774
|
return {
|
|
4775
4775
|
type: "list",
|
|
4776
4776
|
ordered: e.type === "listOrdered",
|
|
@@ -4779,7 +4779,7 @@ function aa(e) {
|
|
|
4779
4779
|
children: []
|
|
4780
4780
|
};
|
|
4781
4781
|
}
|
|
4782
|
-
function
|
|
4782
|
+
function be(e) {
|
|
4783
4783
|
return {
|
|
4784
4784
|
type: "listItem",
|
|
4785
4785
|
spread: e._spread,
|
|
@@ -4787,25 +4787,25 @@ function aa(e) {
|
|
|
4787
4787
|
children: []
|
|
4788
4788
|
};
|
|
4789
4789
|
}
|
|
4790
|
-
function
|
|
4790
|
+
function xe() {
|
|
4791
4791
|
return {
|
|
4792
4792
|
type: "paragraph",
|
|
4793
4793
|
children: []
|
|
4794
4794
|
};
|
|
4795
4795
|
}
|
|
4796
|
-
function
|
|
4796
|
+
function Se() {
|
|
4797
4797
|
return {
|
|
4798
4798
|
type: "strong",
|
|
4799
4799
|
children: []
|
|
4800
4800
|
};
|
|
4801
4801
|
}
|
|
4802
|
-
function
|
|
4802
|
+
function Ce() {
|
|
4803
4803
|
return {
|
|
4804
4804
|
type: "text",
|
|
4805
4805
|
value: ""
|
|
4806
4806
|
};
|
|
4807
4807
|
}
|
|
4808
|
-
function
|
|
4808
|
+
function we() {
|
|
4809
4809
|
return { type: "thematicBreak" };
|
|
4810
4810
|
}
|
|
4811
4811
|
}
|
|
@@ -4845,13 +4845,13 @@ function ca(e, t) {
|
|
|
4845
4845
|
}
|
|
4846
4846
|
}
|
|
4847
4847
|
function la(e, t) {
|
|
4848
|
-
throw Error(e ? "Cannot close `" + e.type + "` (" +
|
|
4848
|
+
throw Error(e ? "Cannot close `" + e.type + "` (" + Lt({
|
|
4849
4849
|
start: e.start,
|
|
4850
4850
|
end: e.end
|
|
4851
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
4851
|
+
}) + "): a different token (`" + t.type + "`, " + Lt({
|
|
4852
4852
|
start: t.start,
|
|
4853
4853
|
end: t.end
|
|
4854
|
-
}) + ") is open" : "Cannot close document, a token (`" + t.type + "`, " +
|
|
4854
|
+
}) + ") is open" : "Cannot close document, a token (`" + t.type + "`, " + Lt({
|
|
4855
4855
|
start: t.start,
|
|
4856
4856
|
end: t.end
|
|
4857
4857
|
}) + ") is still open");
|
|
@@ -5209,7 +5209,7 @@ function Ma(e, t) {
|
|
|
5209
5209
|
tagName: "tbody",
|
|
5210
5210
|
properties: {},
|
|
5211
5211
|
children: e.wrap(n, !0)
|
|
5212
|
-
}, a =
|
|
5212
|
+
}, a = Pt(t.children[1]), o = Nt(t.children[t.children.length - 1]);
|
|
5213
5213
|
a && o && (r.position = {
|
|
5214
5214
|
start: a,
|
|
5215
5215
|
end: o
|
|
@@ -5717,7 +5717,7 @@ function vo(e, t) {
|
|
|
5717
5717
|
}
|
|
5718
5718
|
}
|
|
5719
5719
|
function yo(e, t) {
|
|
5720
|
-
e.position && (t.position =
|
|
5720
|
+
e.position && (t.position = It(e));
|
|
5721
5721
|
}
|
|
5722
5722
|
function bo(e, t) {
|
|
5723
5723
|
let n = t;
|
|
@@ -6094,7 +6094,7 @@ var Wo = [
|
|
|
6094
6094
|
return r.fatal = void 0, r;
|
|
6095
6095
|
}
|
|
6096
6096
|
message(e, t, n) {
|
|
6097
|
-
let r = new
|
|
6097
|
+
let r = new U(e, t, n);
|
|
6098
6098
|
return this.path && (r.name = this.path + ":" + r.name, r.file = this.path), r.fatal = !1, this.messages.push(r), r;
|
|
6099
6099
|
}
|
|
6100
6100
|
toString(e) {
|
|
@@ -6369,7 +6369,7 @@ function gs(e, t) {
|
|
|
6369
6369
|
tagName: "div",
|
|
6370
6370
|
properties: { className: t.className },
|
|
6371
6371
|
children: e.type === "root" ? e.children : [e]
|
|
6372
|
-
}), ho(e, l),
|
|
6372
|
+
}), ho(e, l), Jt(e, {
|
|
6373
6373
|
Fragment: x,
|
|
6374
6374
|
components: i,
|
|
6375
6375
|
ignoreInvalidStyle: !0,
|
|
@@ -6385,8 +6385,8 @@ function gs(e, t) {
|
|
|
6385
6385
|
}, t;
|
|
6386
6386
|
if (e.type === "element") {
|
|
6387
6387
|
let t;
|
|
6388
|
-
for (t in
|
|
6389
|
-
let n = e.properties[t], r =
|
|
6388
|
+
for (t in _n) if (Object.hasOwn(_n, t) && Object.hasOwn(e.properties, t)) {
|
|
6389
|
+
let n = e.properties[t], r = _n[t];
|
|
6390
6390
|
(r === null || r.includes(e.tagName)) && (e.properties[t] = c(String(n || ""), t, e));
|
|
6391
6391
|
}
|
|
6392
6392
|
}
|
|
@@ -6981,7 +6981,7 @@ function Oc(e, t) {
|
|
|
6981
6981
|
let n = !1;
|
|
6982
6982
|
return ho(e, function(e) {
|
|
6983
6983
|
if ("value" in e && /\r?\n|\r/.test(e.value) || e.type === "break") return n = !0, !1;
|
|
6984
|
-
}), !!((!e.depth || e.depth < 3) &&
|
|
6984
|
+
}), !!((!e.depth || e.depth < 3) && yn(e) && (t.options.setext || n));
|
|
6985
6985
|
}
|
|
6986
6986
|
//#endregion
|
|
6987
6987
|
//#region node_modules/mdast-util-to-markdown/lib/handle/heading.js
|
|
@@ -7082,7 +7082,7 @@ function Lc() {
|
|
|
7082
7082
|
//#endregion
|
|
7083
7083
|
//#region node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
|
|
7084
7084
|
function Rc(e, t) {
|
|
7085
|
-
let n =
|
|
7085
|
+
let n = yn(e);
|
|
7086
7086
|
return !!(!t.options.resourceLink && e.url && !e.title && e.children && e.children.length === 1 && e.children[0].type === "text" && (n === e.url || "mailto:" + n === e.url) && /^[a-z][a-z+.-]+:/i.test(e.url) && !/[\0- <>\u007F]/.test(e.url));
|
|
7087
7087
|
}
|
|
7088
7088
|
//#endregion
|
|
@@ -7938,7 +7938,7 @@ function tu(e) {
|
|
|
7938
7938
|
t
|
|
7939
7939
|
]
|
|
7940
7940
|
], s = t.parser.constructs.insideSpan.null;
|
|
7941
|
-
s &&
|
|
7941
|
+
s && W(o, o.length, 0, qn(s, e.slice(r + 1, n), t)), W(o, o.length, 0, [
|
|
7942
7942
|
[
|
|
7943
7943
|
"exit",
|
|
7944
7944
|
a,
|
|
@@ -7959,7 +7959,7 @@ function tu(e) {
|
|
|
7959
7959
|
i,
|
|
7960
7960
|
t
|
|
7961
7961
|
]
|
|
7962
|
-
]),
|
|
7962
|
+
]), W(e, r - 1, n - r + 3, o), n = r + o.length - 2;
|
|
7963
7963
|
break;
|
|
7964
7964
|
}
|
|
7965
7965
|
}
|
|
@@ -8345,7 +8345,7 @@ function Cu({ message: e }) {
|
|
|
8345
8345
|
},
|
|
8346
8346
|
children: "U"
|
|
8347
8347
|
}) : /* @__PURE__ */ S(xu, {}), /* @__PURE__ */ C("div", {
|
|
8348
|
-
className: `flex flex-col gap-1 max-w-[
|
|
8348
|
+
className: `flex flex-col gap-1 max-w-[88%] ${t ? "items-end" : "items-start"}`,
|
|
8349
8349
|
children: [/* @__PURE__ */ S("div", {
|
|
8350
8350
|
className: "px-4 py-2.5 rounded-2xl text-sm leading-relaxed break-words",
|
|
8351
8351
|
style: t ? {
|
|
@@ -8494,7 +8494,7 @@ function Du({ onSend: e, disabled: t, placeholder: n, allowFileUploads: r }) {
|
|
|
8494
8494
|
]
|
|
8495
8495
|
}), !d && /* @__PURE__ */ S("div", {
|
|
8496
8496
|
className: "text-center text-[11px] pb-2 px-3 text-fg-muted",
|
|
8497
|
-
children: /* @__PURE__ */ S(
|
|
8497
|
+
children: /* @__PURE__ */ S(Me, {
|
|
8498
8498
|
i18nKey: "footer.poweredBy",
|
|
8499
8499
|
values: { label: l },
|
|
8500
8500
|
components: { a: /* @__PURE__ */ S("a", {
|
|
@@ -8608,7 +8608,7 @@ function Au(e, t) {
|
|
|
8608
8608
|
//#endregion
|
|
8609
8609
|
//#region src/components/NotificationsTab.tsx
|
|
8610
8610
|
function ju({ feedUrl: e, inlineItems: t }) {
|
|
8611
|
-
let { t: n } =
|
|
8611
|
+
let { t: n } = Fe(), { data: r, loading: i, error: a } = Au(e, t);
|
|
8612
8612
|
return i ? /* @__PURE__ */ S(Fu, {
|
|
8613
8613
|
text: n("tabs.loading"),
|
|
8614
8614
|
muted: !0
|
|
@@ -8701,7 +8701,7 @@ function Fu({ text: e, muted: t }) {
|
|
|
8701
8701
|
//#endregion
|
|
8702
8702
|
//#region src/components/FaqTab.tsx
|
|
8703
8703
|
function Iu({ feedUrl: e, inlineItems: t }) {
|
|
8704
|
-
let { t: n } =
|
|
8704
|
+
let { t: n } = Fe(), { data: r, loading: i, error: a } = Au(e, t), [o, s] = y(""), [c, l] = y(null), u = _(() => {
|
|
8705
8705
|
let e = o.trim().toLowerCase();
|
|
8706
8706
|
return e ? r.filter((t) => `${t.question} ${t.answer} ${t.category ?? ""}`.toLowerCase().includes(e)) : r;
|
|
8707
8707
|
}, [r, o]);
|
|
@@ -8836,30 +8836,30 @@ function zu({ text: e, muted: t }) {
|
|
|
8836
8836
|
}
|
|
8837
8837
|
//#endregion
|
|
8838
8838
|
//#region src/components/ChatView.tsx
|
|
8839
|
-
function Bu({ onOpenSettings: e }) {
|
|
8840
|
-
let { t } =
|
|
8841
|
-
|
|
8839
|
+
function Bu({ onOpenSettings: e, onClose: t }) {
|
|
8840
|
+
let { t: n } = Fe(), r = s((e) => e.activeSessionId), i = s((e) => r ? e.messages[r] ?? [] : []), a = s((e) => e.createSession), c = s((e) => e.isStreaming), l = o((e) => e.config), u = o((e) => e.language), d = l.hideSettings ?? !1, { send: f } = We(), p = v(null), m = l.i18n?.[u] ?? l.i18n?.en ?? {}, h = m.initialMessages ?? l.initialMessages ?? [], _ = m.botName ?? l.botName ?? n("header.assistant"), b = l.tabs, w = b?.notifications, T = b?.help, E = !!(w?.feedUrl || w?.items?.length || T?.feedUrl || T?.items?.length), D = E ? [
|
|
8841
|
+
w?.feedUrl || w?.items?.length ? {
|
|
8842
8842
|
id: "notifications",
|
|
8843
|
-
label:
|
|
8843
|
+
label: m.tabs?.notifications?.title ?? b?.notifications?.title ?? n("tabs.notifications"),
|
|
8844
8844
|
icon: "bulb"
|
|
8845
8845
|
} : null,
|
|
8846
|
-
|
|
8846
|
+
T?.feedUrl || T?.items?.length ? {
|
|
8847
8847
|
id: "help",
|
|
8848
|
-
label:
|
|
8848
|
+
label: m.tabs?.help?.title ?? b?.help?.title ?? n("tabs.help"),
|
|
8849
8849
|
icon: "book"
|
|
8850
8850
|
} : null,
|
|
8851
8851
|
{
|
|
8852
8852
|
id: "chat",
|
|
8853
|
-
label:
|
|
8853
|
+
label: m.tabs?.chat?.title ?? b?.chat?.title ?? n("tabs.chat"),
|
|
8854
8854
|
icon: "chat"
|
|
8855
8855
|
}
|
|
8856
|
-
].filter((e) => e !== null) : [], [
|
|
8856
|
+
].filter((e) => e !== null) : [], [O, k] = y("chat");
|
|
8857
8857
|
g(() => {
|
|
8858
|
-
|
|
8859
|
-
}, [
|
|
8860
|
-
|
|
8861
|
-
}, [
|
|
8862
|
-
let
|
|
8858
|
+
r || a();
|
|
8859
|
+
}, [r, a]), g(() => {
|
|
8860
|
+
p.current?.scrollIntoView({ behavior: "smooth" });
|
|
8861
|
+
}, [i, c]);
|
|
8862
|
+
let A = l.showWelcomeScreen && i.length === 0 && !c, j = m.welcomeSubtitle ?? n("welcome.subtitle"), M = !E || O === "chat";
|
|
8863
8863
|
return /* @__PURE__ */ C("div", {
|
|
8864
8864
|
className: "flex flex-col h-full min-w-0",
|
|
8865
8865
|
children: [
|
|
@@ -8872,8 +8872,8 @@ function Bu({ onOpenSettings: e }) {
|
|
|
8872
8872
|
children: [/* @__PURE__ */ C("div", {
|
|
8873
8873
|
className: "flex items-center gap-2",
|
|
8874
8874
|
children: [
|
|
8875
|
-
bu(
|
|
8876
|
-
src: bu(
|
|
8875
|
+
bu(l.botAvatar) ? /* @__PURE__ */ S("img", {
|
|
8876
|
+
src: bu(l.botAvatar),
|
|
8877
8877
|
alt: "",
|
|
8878
8878
|
className: "w-7 h-7 rounded-full object-cover flex-shrink-0",
|
|
8879
8879
|
style: { border: "1px solid var(--t-bg-border)" }
|
|
@@ -8883,59 +8883,64 @@ function Bu({ onOpenSettings: e }) {
|
|
|
8883
8883
|
}),
|
|
8884
8884
|
/* @__PURE__ */ S("span", {
|
|
8885
8885
|
className: "text-sm font-semibold text-fg-primary",
|
|
8886
|
-
children:
|
|
8886
|
+
children: _
|
|
8887
8887
|
}),
|
|
8888
|
-
|
|
8888
|
+
l.webhookUrl ? /* @__PURE__ */ C("span", {
|
|
8889
8889
|
className: "text-xs text-fg-muted",
|
|
8890
|
-
children: ["● ",
|
|
8890
|
+
children: ["● ", n("header.online")]
|
|
8891
8891
|
}) : /* @__PURE__ */ S("span", {
|
|
8892
8892
|
className: "text-xs text-fg-muted",
|
|
8893
|
-
children:
|
|
8893
|
+
children: n("header.notConfigured")
|
|
8894
8894
|
})
|
|
8895
8895
|
]
|
|
8896
|
-
}), /* @__PURE__ */
|
|
8896
|
+
}), /* @__PURE__ */ C("div", {
|
|
8897
8897
|
className: "flex items-center gap-1",
|
|
8898
|
-
children: !
|
|
8898
|
+
children: [!d && /* @__PURE__ */ S("button", {
|
|
8899
8899
|
onClick: e,
|
|
8900
8900
|
className: "w-8 h-8 rounded-lg flex items-center justify-center text-fg-secondary hover:text-fg-primary hover:bg-bg-surface transition-colors",
|
|
8901
|
-
title:
|
|
8901
|
+
title: n("sidebar.settings"),
|
|
8902
8902
|
children: /* @__PURE__ */ S(Hu, {})
|
|
8903
|
-
})
|
|
8903
|
+
}), t && /* @__PURE__ */ S("button", {
|
|
8904
|
+
onClick: t,
|
|
8905
|
+
className: "w-8 h-8 rounded-lg flex items-center justify-center text-fg-secondary hover:text-fg-primary hover:bg-bg-surface transition-colors",
|
|
8906
|
+
"aria-label": "Close chat",
|
|
8907
|
+
children: /* @__PURE__ */ S(Uu, {})
|
|
8908
|
+
})]
|
|
8904
8909
|
})]
|
|
8905
8910
|
}),
|
|
8906
|
-
|
|
8907
|
-
tabs:
|
|
8908
|
-
activeId:
|
|
8909
|
-
onChange: (e) =>
|
|
8910
|
-
}),
|
|
8911
|
-
T && D === "notifications" && /* @__PURE__ */ S(ju, {
|
|
8912
|
-
feedUrl: b?.feedUrl,
|
|
8913
|
-
inlineItems: b?.items
|
|
8911
|
+
E && /* @__PURE__ */ S(Ou, {
|
|
8912
|
+
tabs: D,
|
|
8913
|
+
activeId: O,
|
|
8914
|
+
onChange: (e) => k(e)
|
|
8914
8915
|
}),
|
|
8915
|
-
|
|
8916
|
+
E && O === "notifications" && /* @__PURE__ */ S(ju, {
|
|
8916
8917
|
feedUrl: w?.feedUrl,
|
|
8917
8918
|
inlineItems: w?.items
|
|
8918
8919
|
}),
|
|
8919
|
-
|
|
8920
|
+
E && O === "help" && /* @__PURE__ */ S(Iu, {
|
|
8921
|
+
feedUrl: T?.feedUrl,
|
|
8922
|
+
inlineItems: T?.items
|
|
8923
|
+
}),
|
|
8924
|
+
M && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
|
|
8920
8925
|
className: "flex-1 overflow-y-auto px-4 py-4",
|
|
8921
|
-
children: [
|
|
8922
|
-
botName:
|
|
8923
|
-
subtitle:
|
|
8926
|
+
children: [A ? /* @__PURE__ */ S(Vu, {
|
|
8927
|
+
botName: _,
|
|
8928
|
+
subtitle: j
|
|
8924
8929
|
}) : /* @__PURE__ */ C(x, { children: [
|
|
8925
|
-
|
|
8930
|
+
i.length === 0 && h.map((e, t) => /* @__PURE__ */ S(Cu, { message: {
|
|
8926
8931
|
id: String(t),
|
|
8927
8932
|
role: "bot",
|
|
8928
8933
|
content: e,
|
|
8929
8934
|
ts: Date.now()
|
|
8930
8935
|
} }, t)),
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
] }), /* @__PURE__ */ S("div", { ref:
|
|
8936
|
+
i.map((e, t) => c && t === i.length - 1 && e.role === "bot" && e.content === "" ? null : /* @__PURE__ */ S(Cu, { message: e }, e.id)),
|
|
8937
|
+
c && i[i.length - 1]?.role === "bot" && i[i.length - 1]?.content === "" && /* @__PURE__ */ S(wu, {})
|
|
8938
|
+
] }), /* @__PURE__ */ S("div", { ref: p })]
|
|
8934
8939
|
}), /* @__PURE__ */ S(Du, {
|
|
8935
|
-
onSend:
|
|
8936
|
-
disabled:
|
|
8937
|
-
placeholder:
|
|
8938
|
-
allowFileUploads:
|
|
8940
|
+
onSend: f,
|
|
8941
|
+
disabled: c || !l.webhookUrl,
|
|
8942
|
+
placeholder: l.webhookUrl ? n("input.placeholder") : n("input.placeholderUnconfigured"),
|
|
8943
|
+
allowFileUploads: l.allowFileUploads
|
|
8939
8944
|
})] })
|
|
8940
8945
|
]
|
|
8941
8946
|
});
|
|
@@ -8974,10 +8979,21 @@ function Hu() {
|
|
|
8974
8979
|
}), /* @__PURE__ */ S("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })]
|
|
8975
8980
|
});
|
|
8976
8981
|
}
|
|
8982
|
+
function Uu() {
|
|
8983
|
+
return /* @__PURE__ */ S("svg", {
|
|
8984
|
+
width: "16",
|
|
8985
|
+
height: "16",
|
|
8986
|
+
viewBox: "0 0 24 24",
|
|
8987
|
+
fill: "none",
|
|
8988
|
+
stroke: "currentColor",
|
|
8989
|
+
strokeWidth: "2.5",
|
|
8990
|
+
children: /* @__PURE__ */ S("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
8991
|
+
});
|
|
8992
|
+
}
|
|
8977
8993
|
//#endregion
|
|
8978
8994
|
//#region src/components/ThemePicker.tsx
|
|
8979
|
-
function
|
|
8980
|
-
let { activeTheme: e, setTheme: t } =
|
|
8995
|
+
function Wu() {
|
|
8996
|
+
let { activeTheme: e, setTheme: t } = Ie();
|
|
8981
8997
|
return /* @__PURE__ */ S("div", {
|
|
8982
8998
|
className: "flex flex-wrap gap-2 p-3",
|
|
8983
8999
|
children: a.map((n) => /* @__PURE__ */ S("button", {
|
|
@@ -8994,7 +9010,7 @@ function Uu() {
|
|
|
8994
9010
|
}
|
|
8995
9011
|
//#endregion
|
|
8996
9012
|
//#region src/components/SettingsModal.tsx
|
|
8997
|
-
var
|
|
9013
|
+
var Gu = 500 * 1024, Ku = [
|
|
8998
9014
|
{
|
|
8999
9015
|
code: "en",
|
|
9000
9016
|
label: "EN – English"
|
|
@@ -9028,8 +9044,8 @@ var Wu = 500 * 1024, Gu = [
|
|
|
9028
9044
|
label: "ES – Spanish"
|
|
9029
9045
|
}
|
|
9030
9046
|
];
|
|
9031
|
-
function
|
|
9032
|
-
let { t } =
|
|
9047
|
+
function qu({ onClose: e }) {
|
|
9048
|
+
let { t } = Fe(), { config: n, setConfig: r, language: i, setLanguage: a, activeTheme: s } = o(), [c, l] = y({ ...n }), [u, d] = y(""), [f, p] = y(() => {
|
|
9033
9049
|
try {
|
|
9034
9050
|
return JSON.stringify(c.metadata ?? {}, null, 2);
|
|
9035
9051
|
} catch {
|
|
@@ -9081,7 +9097,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9081
9097
|
[e]: {}
|
|
9082
9098
|
}
|
|
9083
9099
|
})), O(e), A(""), M(!1));
|
|
9084
|
-
}, [k, E]),
|
|
9100
|
+
}, [k, E]), te = m(() => {
|
|
9085
9101
|
let t, n = f.trim();
|
|
9086
9102
|
if (n && n !== "{}") try {
|
|
9087
9103
|
t = JSON.parse(n), d("");
|
|
@@ -9098,7 +9114,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9098
9114
|
f,
|
|
9099
9115
|
r,
|
|
9100
9116
|
e
|
|
9101
|
-
]),
|
|
9117
|
+
]), F = N(D);
|
|
9102
9118
|
return /* @__PURE__ */ C("div", {
|
|
9103
9119
|
className: "fixed inset-0 z-50 flex items-center justify-center p-4",
|
|
9104
9120
|
style: { background: "rgba(0,0,0,0.6)" },
|
|
@@ -9186,7 +9202,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9186
9202
|
}),
|
|
9187
9203
|
/* @__PURE__ */ S($, {
|
|
9188
9204
|
label: t("settings.theme") ?? "Theme",
|
|
9189
|
-
children: /* @__PURE__ */ S(
|
|
9205
|
+
children: /* @__PURE__ */ S(Wu, {})
|
|
9190
9206
|
}),
|
|
9191
9207
|
/* @__PURE__ */ S("hr", { style: { borderColor: "var(--t-bg-border)" } }),
|
|
9192
9208
|
/* @__PURE__ */ S($, {
|
|
@@ -9241,7 +9257,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9241
9257
|
}),
|
|
9242
9258
|
/* @__PURE__ */ S($, {
|
|
9243
9259
|
label: t("settings.botAvatar"),
|
|
9244
|
-
children: /* @__PURE__ */ S(
|
|
9260
|
+
children: /* @__PURE__ */ S(Yu, {
|
|
9245
9261
|
value: c.botAvatar,
|
|
9246
9262
|
onChange: (e) => l((t) => ({
|
|
9247
9263
|
...t,
|
|
@@ -9266,7 +9282,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9266
9282
|
/* @__PURE__ */ C("div", {
|
|
9267
9283
|
className: "space-y-2",
|
|
9268
9284
|
children: [
|
|
9269
|
-
/* @__PURE__ */ S(
|
|
9285
|
+
/* @__PURE__ */ S(Ju, {
|
|
9270
9286
|
label: t("settings.streaming"),
|
|
9271
9287
|
checked: c.streaming ?? !1,
|
|
9272
9288
|
onChange: (e) => l((t) => ({
|
|
@@ -9274,7 +9290,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9274
9290
|
streaming: e
|
|
9275
9291
|
}))
|
|
9276
9292
|
}),
|
|
9277
|
-
/* @__PURE__ */ S(
|
|
9293
|
+
/* @__PURE__ */ S(Ju, {
|
|
9278
9294
|
label: t("settings.welcomeScreen"),
|
|
9279
9295
|
checked: c.showWelcomeScreen ?? !0,
|
|
9280
9296
|
onChange: (e) => l((t) => ({
|
|
@@ -9282,7 +9298,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9282
9298
|
showWelcomeScreen: e
|
|
9283
9299
|
}))
|
|
9284
9300
|
}),
|
|
9285
|
-
/* @__PURE__ */ S(
|
|
9301
|
+
/* @__PURE__ */ S(Ju, {
|
|
9286
9302
|
label: t("settings.sidebar"),
|
|
9287
9303
|
checked: c.showSidebar ?? !1,
|
|
9288
9304
|
onChange: (e) => l((t) => ({
|
|
@@ -9290,7 +9306,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9290
9306
|
showSidebar: e
|
|
9291
9307
|
}))
|
|
9292
9308
|
}),
|
|
9293
|
-
/* @__PURE__ */ S(
|
|
9309
|
+
/* @__PURE__ */ S(Ju, {
|
|
9294
9310
|
label: t("settings.fileUploads"),
|
|
9295
9311
|
checked: c.allowFileUploads ?? !1,
|
|
9296
9312
|
onChange: (e) => l((t) => ({
|
|
@@ -9328,7 +9344,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9328
9344
|
(c.mode === "fullscreen" || c.mode === "mixed") && /* @__PURE__ */ C("div", {
|
|
9329
9345
|
className: "space-y-3 pl-3 border-l-2",
|
|
9330
9346
|
style: { borderColor: "var(--t-accent)" },
|
|
9331
|
-
children: [/* @__PURE__ */ S(
|
|
9347
|
+
children: [/* @__PURE__ */ S(Ju, {
|
|
9332
9348
|
label: t("settings.fullscreenSheet"),
|
|
9333
9349
|
checked: c.fullscreenSheet ?? !1,
|
|
9334
9350
|
onChange: (e) => l((t) => ({
|
|
@@ -9457,7 +9473,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9457
9473
|
className: "space-y-3 pl-3 border-l-2",
|
|
9458
9474
|
style: { borderColor: "var(--t-accent)" },
|
|
9459
9475
|
children: [
|
|
9460
|
-
/* @__PURE__ */ S(
|
|
9476
|
+
/* @__PURE__ */ S(Ju, {
|
|
9461
9477
|
label: t("settings.cta"),
|
|
9462
9478
|
checked: c.showCta ?? !0,
|
|
9463
9479
|
onChange: (e) => l((t) => ({
|
|
@@ -9465,7 +9481,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9465
9481
|
showCta: e
|
|
9466
9482
|
}))
|
|
9467
9483
|
}),
|
|
9468
|
-
/* @__PURE__ */ S(
|
|
9484
|
+
/* @__PURE__ */ S(Ju, {
|
|
9469
9485
|
label: t("settings.ctaSound"),
|
|
9470
9486
|
checked: c.ctaSound ?? !0,
|
|
9471
9487
|
onChange: (e) => l((t) => ({
|
|
@@ -9489,7 +9505,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9489
9505
|
}),
|
|
9490
9506
|
/* @__PURE__ */ S($, {
|
|
9491
9507
|
label: t("settings.toggleButtonIcon"),
|
|
9492
|
-
children: /* @__PURE__ */ S(
|
|
9508
|
+
children: /* @__PURE__ */ S(Yu, {
|
|
9493
9509
|
value: c.toggleButtonIcon,
|
|
9494
9510
|
onChange: (e) => l((t) => ({
|
|
9495
9511
|
...t,
|
|
@@ -9501,7 +9517,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9501
9517
|
]
|
|
9502
9518
|
}),
|
|
9503
9519
|
/* @__PURE__ */ S("hr", { style: { borderColor: "var(--t-bg-border)" } }),
|
|
9504
|
-
/* @__PURE__ */ S(
|
|
9520
|
+
/* @__PURE__ */ S(Ju, {
|
|
9505
9521
|
label: t("settings.poweredByHide"),
|
|
9506
9522
|
checked: c.poweredByHide ?? !1,
|
|
9507
9523
|
onChange: (e) => l((t) => ({
|
|
@@ -9568,7 +9584,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9568
9584
|
value: "",
|
|
9569
9585
|
children: "Pick…"
|
|
9570
9586
|
}),
|
|
9571
|
-
|
|
9587
|
+
Ku.filter((e) => !E.includes(e.code)).map((e) => /* @__PURE__ */ S("option", {
|
|
9572
9588
|
value: e.code,
|
|
9573
9589
|
children: e.label
|
|
9574
9590
|
}, e.code)),
|
|
@@ -9611,7 +9627,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9611
9627
|
/* @__PURE__ */ S($, {
|
|
9612
9628
|
label: t("settings.botNameOverride"),
|
|
9613
9629
|
children: /* @__PURE__ */ S("input", {
|
|
9614
|
-
value:
|
|
9630
|
+
value: F.botName ?? "",
|
|
9615
9631
|
onChange: (e) => P(D, { botName: e.target.value || void 0 }),
|
|
9616
9632
|
placeholder: c.botName ?? "Assistant",
|
|
9617
9633
|
className: "input-field"
|
|
@@ -9620,7 +9636,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9620
9636
|
/* @__PURE__ */ S($, {
|
|
9621
9637
|
label: t("settings.welcomeSubtitle"),
|
|
9622
9638
|
children: /* @__PURE__ */ S("input", {
|
|
9623
|
-
value:
|
|
9639
|
+
value: F.welcomeSubtitle ?? "",
|
|
9624
9640
|
onChange: (e) => P(D, { welcomeSubtitle: e.target.value || void 0 }),
|
|
9625
9641
|
placeholder: t("welcome.subtitle"),
|
|
9626
9642
|
className: "input-field"
|
|
@@ -9629,7 +9645,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9629
9645
|
/* @__PURE__ */ S($, {
|
|
9630
9646
|
label: t("settings.initialMessages"),
|
|
9631
9647
|
children: /* @__PURE__ */ S("textarea", {
|
|
9632
|
-
value: (
|
|
9648
|
+
value: (F.initialMessages ?? []).join("\n"),
|
|
9633
9649
|
onChange: (e) => P(D, { initialMessages: e.target.value ? e.target.value.split("\n").filter(Boolean) : [] }),
|
|
9634
9650
|
rows: 4,
|
|
9635
9651
|
className: "input-field resize-none text-sm",
|
|
@@ -9639,7 +9655,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9639
9655
|
c.mode === "window" && /* @__PURE__ */ S($, {
|
|
9640
9656
|
label: t("settings.ctaTextLabel"),
|
|
9641
9657
|
children: /* @__PURE__ */ S("input", {
|
|
9642
|
-
value:
|
|
9658
|
+
value: F.ctaText ?? "",
|
|
9643
9659
|
onChange: (e) => P(D, { ctaText: e.target.value || void 0 }),
|
|
9644
9660
|
placeholder: c.ctaText ?? "Hi! How can I help you today?",
|
|
9645
9661
|
className: "input-field"
|
|
@@ -9676,7 +9692,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
|
|
|
9676
9692
|
className: "px-4 py-2 rounded-lg text-sm text-fg-secondary hover:text-fg-primary hover:bg-bg-surface2 transition-colors",
|
|
9677
9693
|
children: t("settings.cancel")
|
|
9678
9694
|
}), /* @__PURE__ */ S("button", {
|
|
9679
|
-
onClick:
|
|
9695
|
+
onClick: te,
|
|
9680
9696
|
className: "px-4 py-2 rounded-lg text-sm font-medium transition-colors",
|
|
9681
9697
|
style: {
|
|
9682
9698
|
background: "var(--t-accent)",
|
|
@@ -9709,7 +9725,7 @@ function $({ label: e, required: t, error: n, children: r }) {
|
|
|
9709
9725
|
]
|
|
9710
9726
|
});
|
|
9711
9727
|
}
|
|
9712
|
-
function
|
|
9728
|
+
function Ju({ label: e, checked: t, onChange: n }) {
|
|
9713
9729
|
return /* @__PURE__ */ C("label", {
|
|
9714
9730
|
className: "flex items-center gap-3 cursor-pointer select-none",
|
|
9715
9731
|
children: [/* @__PURE__ */ S("div", {
|
|
@@ -9726,13 +9742,13 @@ function qu({ label: e, checked: t, onChange: n }) {
|
|
|
9726
9742
|
})]
|
|
9727
9743
|
});
|
|
9728
9744
|
}
|
|
9729
|
-
function
|
|
9730
|
-
let { t: r } =
|
|
9745
|
+
function Yu({ value: e, onChange: t, shape: n }) {
|
|
9746
|
+
let { t: r } = Fe(), i = v(null), [a, o] = y(""), s = bu(e), c = n === "circle" ? "rounded-full" : "rounded-lg", l = (e) => {
|
|
9731
9747
|
if (!e.type.startsWith("image/")) {
|
|
9732
9748
|
o(r("settings.avatarErrorType"));
|
|
9733
9749
|
return;
|
|
9734
9750
|
}
|
|
9735
|
-
if (e.size >
|
|
9751
|
+
if (e.size > Gu) {
|
|
9736
9752
|
o(r("settings.avatarErrorSize"));
|
|
9737
9753
|
return;
|
|
9738
9754
|
}
|
|
@@ -9834,7 +9850,7 @@ function Ju({ value: e, onChange: t, shape: n }) {
|
|
|
9834
9850
|
}
|
|
9835
9851
|
//#endregion
|
|
9836
9852
|
//#region src/components/CtaPopup.tsx
|
|
9837
|
-
function
|
|
9853
|
+
function Xu({ text: e, onDismiss: t }) {
|
|
9838
9854
|
return /* @__PURE__ */ C("div", {
|
|
9839
9855
|
className: "absolute bottom-2 right-0 mb-2 w-64 cta-bubble rounded-2xl px-4 py-3 shadow-xl text-sm",
|
|
9840
9856
|
style: {
|
|
@@ -9855,66 +9871,44 @@ function Yu({ text: e, onDismiss: t }) {
|
|
|
9855
9871
|
}
|
|
9856
9872
|
//#endregion
|
|
9857
9873
|
//#region src/App.tsx
|
|
9858
|
-
function
|
|
9874
|
+
function Zu() {
|
|
9859
9875
|
let [e, t] = y(() => window.matchMedia("(min-width: 768px)").matches);
|
|
9860
9876
|
return g(() => {
|
|
9861
9877
|
let e = window.matchMedia("(min-width: 768px)"), n = (e) => t(e.matches);
|
|
9862
9878
|
return e.addEventListener("change", n), () => e.removeEventListener("change", n);
|
|
9863
9879
|
}, []), e;
|
|
9864
9880
|
}
|
|
9865
|
-
function
|
|
9866
|
-
|
|
9867
|
-
let e = o((e) => e.config), t = s((e) => e.activeSessionId), n = s((e) => e.createSession), [r, i] = y(!1), [a, c] = y(!1),
|
|
9868
|
-
|
|
9881
|
+
function Qu() {
|
|
9882
|
+
Ie();
|
|
9883
|
+
let e = o((e) => e.config), t = s((e) => e.activeSessionId), n = s((e) => e.createSession), [r, i] = y(!1), [a, c] = y(!1), l = o((e) => e.language), u = Zu(), d = e.mode === "window" || e.mode === "mixed" && u, f = e.mode === "fullscreen" && !e.fullscreenSheet, [p, m] = y(f), h = !d && (e.showSidebar ?? !1), _ = e.hideSettings ?? !1, { showCta: v, ctaText: b, dismiss: w } = Re(e, l, d), T = () => {
|
|
9884
|
+
_ || i(!0);
|
|
9869
9885
|
};
|
|
9870
|
-
|
|
9886
|
+
g(() => {
|
|
9871
9887
|
t || n();
|
|
9872
|
-
}, [t, n])
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
border: "1px solid var(--t-bg-border)",
|
|
9877
|
-
background: "var(--t-bg-base)"
|
|
9878
|
-
},
|
|
9879
|
-
children: /* @__PURE__ */ S(Bu, { onOpenSettings: b })
|
|
9880
|
-
}),
|
|
9881
|
-
d && !a && /* @__PURE__ */ S("div", {
|
|
9882
|
-
className: "fixed bottom-20 right-4 z-50",
|
|
9883
|
-
children: /* @__PURE__ */ S(Yu, {
|
|
9884
|
-
text: f,
|
|
9885
|
-
onDismiss: p
|
|
9886
|
-
})
|
|
9887
|
-
}),
|
|
9888
|
-
/* @__PURE__ */ S(Qu, {
|
|
9889
|
-
open: a,
|
|
9890
|
-
iconSrc: bu(e.toggleButtonIcon),
|
|
9891
|
-
onClick: () => {
|
|
9892
|
-
p(), c((e) => !e);
|
|
9893
|
-
}
|
|
9894
|
-
}),
|
|
9895
|
-
!v && r && /* @__PURE__ */ S(Ku, { onClose: () => i(!1) })
|
|
9896
|
-
] });
|
|
9897
|
-
let w = /* @__PURE__ */ C("div", {
|
|
9888
|
+
}, [t, n]);
|
|
9889
|
+
let E = () => m(!1), D = () => {
|
|
9890
|
+
w(), m(!0);
|
|
9891
|
+
}, O = /* @__PURE__ */ C("div", {
|
|
9898
9892
|
className: "flex h-full w-full",
|
|
9899
9893
|
style: { background: "var(--t-bg-base)" },
|
|
9900
9894
|
children: [
|
|
9901
|
-
|
|
9895
|
+
a && h && /* @__PURE__ */ S("div", {
|
|
9902
9896
|
className: "fixed inset-0 z-30 bg-black/50 md:hidden",
|
|
9903
|
-
onClick: () =>
|
|
9897
|
+
onClick: () => c(!1)
|
|
9904
9898
|
}),
|
|
9905
|
-
|
|
9899
|
+
h && /* @__PURE__ */ S("div", {
|
|
9906
9900
|
className: `
|
|
9907
9901
|
fixed md:relative inset-y-0 left-0 z-40
|
|
9908
9902
|
transition-transform md:translate-x-0
|
|
9909
|
-
${
|
|
9903
|
+
${a ? "translate-x-0" : "-translate-x-full"}
|
|
9910
9904
|
`,
|
|
9911
|
-
children: /* @__PURE__ */ S(
|
|
9905
|
+
children: /* @__PURE__ */ S(ze, { onOpenSettings: T })
|
|
9912
9906
|
}),
|
|
9913
9907
|
/* @__PURE__ */ C("div", {
|
|
9914
9908
|
className: "flex-1 flex flex-col min-w-0 h-full",
|
|
9915
|
-
children: [
|
|
9909
|
+
children: [h && /* @__PURE__ */ S("button", {
|
|
9916
9910
|
className: "md:hidden absolute top-3 left-3 z-20 w-8 h-8 flex items-center justify-center text-fg-secondary",
|
|
9917
|
-
onClick: () =>
|
|
9911
|
+
onClick: () => c((e) => !e),
|
|
9918
9912
|
children: /* @__PURE__ */ S("svg", {
|
|
9919
9913
|
width: "20",
|
|
9920
9914
|
height: "20",
|
|
@@ -9924,53 +9918,76 @@ function Zu() {
|
|
|
9924
9918
|
strokeWidth: "2",
|
|
9925
9919
|
children: /* @__PURE__ */ S("path", { d: "M3 12h18M3 6h18M3 18h18" })
|
|
9926
9920
|
})
|
|
9927
|
-
}), /* @__PURE__ */ S(Bu, {
|
|
9921
|
+
}), /* @__PURE__ */ S(Bu, {
|
|
9922
|
+
onOpenSettings: T,
|
|
9923
|
+
onClose: f ? void 0 : E
|
|
9924
|
+
})]
|
|
9928
9925
|
})
|
|
9929
9926
|
]
|
|
9930
9927
|
});
|
|
9931
|
-
if (
|
|
9932
|
-
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
}
|
|
9938
|
-
/* @__PURE__ */
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
}
|
|
9961
|
-
|
|
9928
|
+
if (d) return /* @__PURE__ */ C(x, { children: [
|
|
9929
|
+
p && /* @__PURE__ */ S("div", {
|
|
9930
|
+
className: "fixed bottom-20 right-4 z-50 w-[380px] h-[560px] rounded-2xl shadow-2xl overflow-hidden flex flex-col",
|
|
9931
|
+
style: {
|
|
9932
|
+
border: "1px solid var(--t-bg-border)",
|
|
9933
|
+
background: "var(--t-bg-base)"
|
|
9934
|
+
},
|
|
9935
|
+
children: /* @__PURE__ */ S(Bu, {
|
|
9936
|
+
onOpenSettings: T,
|
|
9937
|
+
onClose: E
|
|
9938
|
+
})
|
|
9939
|
+
}),
|
|
9940
|
+
v && !p && /* @__PURE__ */ S("div", {
|
|
9941
|
+
className: "fixed bottom-20 right-4 z-50",
|
|
9942
|
+
children: /* @__PURE__ */ S(Xu, {
|
|
9943
|
+
text: b,
|
|
9944
|
+
onDismiss: w
|
|
9945
|
+
})
|
|
9946
|
+
}),
|
|
9947
|
+
/* @__PURE__ */ S($u, {
|
|
9948
|
+
open: p,
|
|
9949
|
+
iconSrc: bu(e.toggleButtonIcon),
|
|
9950
|
+
onClick: () => p ? E() : D()
|
|
9951
|
+
}),
|
|
9952
|
+
!_ && r && /* @__PURE__ */ S(qu, { onClose: () => i(!1) })
|
|
9953
|
+
] });
|
|
9954
|
+
if (f) return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
|
|
9955
|
+
className: "fixed inset-0 z-30",
|
|
9956
|
+
children: O
|
|
9957
|
+
}), !_ && r && /* @__PURE__ */ S(qu, { onClose: () => i(!1) })] });
|
|
9958
|
+
let k = e.fullscreenSheetHeight ?? "75vh", A = e.fullscreenSheet === !0;
|
|
9959
|
+
return /* @__PURE__ */ C(x, { children: [p ? A ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
|
|
9960
|
+
className: "fixed inset-0 z-40 pointer-events-none",
|
|
9961
|
+
style: { background: "rgba(0, 0, 0, 0.4)" }
|
|
9962
|
+
}), /* @__PURE__ */ C("div", {
|
|
9963
|
+
className: "fixed inset-x-0 bottom-0 z-50 flex flex-col overflow-hidden",
|
|
9962
9964
|
style: {
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
zIndex: 30
|
|
9965
|
+
height: k,
|
|
9966
|
+
borderTopLeftRadius: "20px",
|
|
9967
|
+
borderTopRightRadius: "20px",
|
|
9968
|
+
background: "var(--t-bg-base)",
|
|
9969
|
+
boxShadow: "0 -8px 32px rgba(0, 0, 0, 0.18)"
|
|
9969
9970
|
},
|
|
9970
|
-
children:
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9971
|
+
children: [/* @__PURE__ */ S("div", {
|
|
9972
|
+
className: "flex justify-center pt-2 pb-1 flex-shrink-0",
|
|
9973
|
+
children: /* @__PURE__ */ S("div", {
|
|
9974
|
+
className: "w-10 h-1 rounded-full",
|
|
9975
|
+
style: { background: "var(--t-bg-border)" }
|
|
9976
|
+
})
|
|
9977
|
+
}), /* @__PURE__ */ S("div", {
|
|
9978
|
+
className: "flex-1 min-h-0",
|
|
9979
|
+
children: O
|
|
9980
|
+
})]
|
|
9981
|
+
})] }) : /* @__PURE__ */ S("div", {
|
|
9982
|
+
className: "fixed inset-0 z-50",
|
|
9983
|
+
children: O
|
|
9984
|
+
}) : /* @__PURE__ */ S($u, {
|
|
9985
|
+
open: !1,
|
|
9986
|
+
iconSrc: bu(e.toggleButtonIcon),
|
|
9987
|
+
onClick: D
|
|
9988
|
+
}), !_ && r && /* @__PURE__ */ S(qu, { onClose: () => i(!1) })] });
|
|
9989
|
+
}
|
|
9990
|
+
function $u({ open: e, iconSrc: t, onClick: n }) {
|
|
9974
9991
|
let r = !!t && !e;
|
|
9975
9992
|
return /* @__PURE__ */ S("button", {
|
|
9976
9993
|
className: "fixed bottom-4 right-4 z-50 w-14 h-14 rounded-full shadow-lg flex items-center justify-center transition-transform hover:scale-105 overflow-hidden",
|
|
@@ -10005,17 +10022,17 @@ function Qu({ open: e, iconSrc: t, onClick: n }) {
|
|
|
10005
10022
|
}
|
|
10006
10023
|
//#endregion
|
|
10007
10024
|
//#region src/createChat.ts
|
|
10008
|
-
function
|
|
10025
|
+
function ed(e) {
|
|
10009
10026
|
let { target: t, language: n, ...r } = e, i = typeof t == "string" ? document.querySelector(t) : t;
|
|
10010
10027
|
if (!i) throw Error(`[chatui] createChat: target "${String(t)}" not found`);
|
|
10011
10028
|
let a = o.getState();
|
|
10012
10029
|
a.setConfig(r), r.theme && a.setTheme(r.theme), n && a.setLanguage(n);
|
|
10013
10030
|
let s = w(i);
|
|
10014
|
-
return s.render(f(
|
|
10031
|
+
return s.render(f(Qu)), { unmount() {
|
|
10015
10032
|
s.unmount();
|
|
10016
10033
|
} };
|
|
10017
10034
|
}
|
|
10018
10035
|
//#endregion
|
|
10019
|
-
export {
|
|
10036
|
+
export { Qu as App, ed as createChat };
|
|
10020
10037
|
|
|
10021
10038
|
//# sourceMappingURL=index.js.map
|