@archieai/ui 0.1.51 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/molecules/MessageBubble/MessageBubble.d.ts +2 -0
- package/dist/components/molecules/MessageBubble/MessageBubble.d.ts.map +1 -1
- package/dist/components/organisms/Modal/Modal.d.ts.map +1 -1
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +680 -679
- package/dist/index.js.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +20 -19
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as v, jsxs as V, Fragment as Q0 } from "react/jsx-runtime";
|
|
2
2
|
import * as M from "react";
|
|
3
|
-
import { forwardRef as he, useState as
|
|
3
|
+
import { forwardRef as he, useState as Je, useMemo as _0, useId as Tr, useCallback as Ve, useEffect as $r, useRef as A0, createContext as Ei, useContext as Ri, Fragment as Li } from "react";
|
|
4
4
|
import { motion as Ce, AnimatePresence as Ar } from "framer-motion";
|
|
5
|
-
import { bl as _t, cZ as it, cb as Bi, p as It, S as Ii, dp as Wr, aK as Oi, N as Ur, A as Pi, _ as
|
|
6
|
-
import { a as $5, c as W5, d as U5, e as j5, f as X5, g as Y5, h as Z5, i as K5, j as J5, k as Q5, l as ed, m as td, n as rd, o as ad, q as nd, r as sd, s as id, t as od, u as ld, v as cd, B as ud, x as dd, w as md, y as hd, z as fd, C as pd, E as vd, D as gd, F as bd, G as yd, H as xd, I as wd, J as Sd, L as kd, K as Cd, M as Md, P as zd, R as Nd, T as Td, U as Ad, V as Dd, W as Ed, X as Rd, Y as Ld, Z as Bd, a4 as Id, $ as Od, a0 as Pd, a1 as
|
|
7
|
-
import { toast as je, Toaster as Zi } from "sonner";
|
|
5
|
+
import { bl as _t, cZ as it, cb as Bi, p as It, S as Ii, dp as Wr, aK as Oi, N as Ur, A as Pi, _ as qi, aB as Fi, cR as Hi, cQ as Vi, ci as _i, dy as Gi, cV as $i, O as jr, b as Xr, dJ as En, ba as Rn, b$ as Wi, Q as Ui, dM as ji, dL as Xi, da as Yi } from "./Search-BGRkl1S5.js";
|
|
6
|
+
import { a as $5, c as W5, d as U5, e as j5, f as X5, g as Y5, h as Z5, i as K5, j as J5, k as Q5, l as ed, m as td, n as rd, o as ad, q as nd, r as sd, s as id, t as od, u as ld, v as cd, B as ud, x as dd, w as md, y as hd, z as fd, C as pd, E as vd, D as gd, F as bd, G as yd, H as xd, I as wd, J as Sd, L as kd, K as Cd, M as Md, P as zd, R as Nd, T as Td, U as Ad, V as Dd, W as Ed, X as Rd, Y as Ld, Z as Bd, a4 as Id, $ as Od, a0 as Pd, a1 as qd, a2 as Fd, a3 as Hd, a5 as Vd, a6 as _d, a7 as Gd, a8 as $d, a9 as Wd, aa as Ud, ab as jd, ac as Xd, ad as Yd, ae as Zd, af as Kd, ag as Jd, ah as Qd, ai as e6, aj as t6, ak as r6, al as a6, am as n6, an as s6, ao as i6, ap as o6, aq as l6, ar as c6, au as u6, as as d6, at as m6, av as h6, aw as f6, ax as p6, ay as v6, az as g6, aA as b6, aD as y6, aC as x6, aE as w6, aF as S6, aG as k6, aH as C6, aI as M6, aJ as z6, aL as N6, aM as T6, dz as A6, aN as D6, aQ as E6, aO as R6, aP as L6, aR as B6, aS as I6, dA as O6, aT as P6, aU as q6, aV as F6, aW as H6, aX as V6, aY as _6, aZ as G6, a_ as $6, a$ as W6, b0 as U6, dB as j6, b1 as X6, b2 as Y6, b3 as Z6, b4 as K6, b5 as J6, b7 as Q6, b6 as e3, b8 as t3, b9 as r3, bb as a3, dC as n3, bc as s3, dD as i3, bd as o3, be as l3, bf as c3, bg as u3, bi as d3, bh as m3, bj as h3, bk as f3, dE as p3, bm as v3, bn as g3, bo as b3, bq as y3, bp as x3, bs as w3, br as S3, bt as k3, bu as C3, bv as M3, bx as z3, bw as N3, bz as T3, by as A3, bA as D3, bB as E3, bC as R3, bD as L3, bE as B3, bF as I3, bG as O3, bH as P3, bJ as q3, bI as F3, dF as H3, bK as V3, bL as _3, dG as G3, bM as $3, bO as W3, bN as U3, bP as j3, bQ as X3, bX as Y3, bR as Z3, bS as K3, bT as J3, bU as Q3, bV as e7, bW as t7, bY as r7, b_ as a7, bZ as n7, dH as s7, c0 as i7, c1 as o7, c2 as l7, c3 as c7, c4 as u7, c5 as d7, c6 as m7, c7 as h7, c8 as f7, c9 as p7, ca as v7, cc as g7, cd as b7, ce as y7, cf as x7, dP as w7, cg as S7, ch as k7, ck as C7, cj as M7, cm as z7, cl as N7, cn as T7, co as A7, cp as D7, cq as E7, cr as R7, cs as L7, ct as B7, cu as I7, cv as O7, cw as P7, cx as q7, dI as F7, cy as H7, cz as V7, cA as _7, cB as G7, cC as $7, cD as W7, cE as U7, cF as j7, cG as X7, cH as Y7, cI as Z7, dK as K7, cJ as J7, cK as Q7, cL as em, cM as tm, cN as rm, cO as am, cP as nm, cS as sm, cT as im, cU as om, cW as lm, cX as cm, cY as um, c_ as dm, c$ as mm, d0 as hm, d1 as fm, d2 as pm, d3 as vm, d4 as gm, d5 as bm, d6 as ym, d7 as xm, d8 as wm, dN as Sm, d9 as km, db as Cm, dd as Mm, dc as zm, de as Nm, di as Tm, df as Am, dg as Dm, dh as Em, dj as Rm, dO as Lm, dl as Bm, dk as Im, dm as Om, dn as Pm, dq as qm, dr as Fm, ds as Hm, dt as Vm, dv as _m, du as Gm, dw as $m, dx as Wm } from "./Search-BGRkl1S5.js";
|
|
8
7
|
import * as R0 from "@radix-ui/react-tabs";
|
|
8
|
+
import { toast as g0, Toaster as Zi } from "sonner";
|
|
9
9
|
import * as D0 from "@radix-ui/react-tooltip";
|
|
10
10
|
import * as Ki from "react-dom";
|
|
11
11
|
import Ji from "react-dom";
|
|
@@ -217,14 +217,14 @@ const Yr = "-", Qi = (r) => {
|
|
|
217
217
|
}
|
|
218
218
|
z = !1;
|
|
219
219
|
}
|
|
220
|
-
const D = s(y).join(":"),
|
|
221
|
-
if (i.includes(
|
|
220
|
+
const D = s(y).join(":"), R = x ? D + Er : D, O = R + T;
|
|
221
|
+
if (i.includes(O))
|
|
222
222
|
continue;
|
|
223
|
-
i.push(
|
|
223
|
+
i.push(O);
|
|
224
224
|
const P = n(T, z);
|
|
225
225
|
for (let j = 0; j < P.length; ++j) {
|
|
226
|
-
const
|
|
227
|
-
i.push(
|
|
226
|
+
const F = P[j];
|
|
227
|
+
i.push(R + F);
|
|
228
228
|
}
|
|
229
229
|
u = h + (u.length > 0 ? " " + u : u);
|
|
230
230
|
}
|
|
@@ -264,19 +264,19 @@ function ho(r, ...e) {
|
|
|
264
264
|
const we = (r) => {
|
|
265
265
|
const e = (t) => t[r] || [];
|
|
266
266
|
return e.isThemeGetter = !0, e;
|
|
267
|
-
}, Pn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i,
|
|
267
|
+
}, Pn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fo = /^\d+\/\d+$/, po = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, vo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, go = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, bo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, yo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, I0 = (r) => fo.test(r), Q = (r) => !!r && !Number.isNaN(Number(r)), h0 = (r) => !!r && Number.isInteger(Number(r)), tr = (r) => r.endsWith("%") && Q(r.slice(0, -1)), n0 = (r) => po.test(r), xo = () => !0, wo = (r) => (
|
|
268
268
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
269
269
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
270
270
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
271
271
|
vo.test(r) && !go.test(r)
|
|
272
|
-
),
|
|
272
|
+
), Fn = () => !1, So = (r) => bo.test(r), ko = (r) => yo.test(r), Co = (r) => !G(r) && !$(r), Mo = (r) => U0(r, _n, Fn), G = (r) => Pn.test(r), z0 = (r) => U0(r, Gn, wo), rr = (r) => U0(r, Do, Q), Ca = (r) => U0(r, Hn, Fn), zo = (r) => U0(r, Vn, ko), mt = (r) => U0(r, $n, So), $ = (r) => qn.test(r), Z0 = (r) => j0(r, Gn), No = (r) => j0(r, Eo), Ma = (r) => j0(r, Hn), To = (r) => j0(r, _n), Ao = (r) => j0(r, Vn), ht = (r) => j0(r, $n, !0), U0 = (r, e, t) => {
|
|
273
273
|
const a = Pn.exec(r);
|
|
274
274
|
return a ? a[1] ? e(a[1]) : t(a[2]) : !1;
|
|
275
275
|
}, j0 = (r, e, t = !1) => {
|
|
276
|
-
const a =
|
|
276
|
+
const a = qn.exec(r);
|
|
277
277
|
return a ? a[1] ? e(a[1]) : t : !1;
|
|
278
278
|
}, Hn = (r) => r === "position" || r === "percentage", Vn = (r) => r === "image" || r === "url", _n = (r) => r === "length" || r === "size" || r === "bg-size", Gn = (r) => r === "length", Do = (r) => r === "number", Eo = (r) => r === "family-name", $n = (r) => r === "shadow", Ro = () => {
|
|
279
|
-
const r = we("color"), e = we("font"), t = we("text"), a = we("font-weight"), n = we("tracking"), s = we("leading"), i = we("breakpoint"), l = we("container"), u = we("spacing"), d = we("radius"), h = we("shadow"), p = we("inset-shadow"), y = we("text-shadow"), x = we("drop-shadow"), C = we("blur"), S = we("perspective"), z = we("aspect"), T = we("ease"), D = we("animate"),
|
|
279
|
+
const r = we("color"), e = we("font"), t = we("text"), a = we("font-weight"), n = we("tracking"), s = we("leading"), i = we("breakpoint"), l = we("container"), u = we("spacing"), d = we("radius"), h = we("shadow"), p = we("inset-shadow"), y = we("text-shadow"), x = we("drop-shadow"), C = we("blur"), S = we("perspective"), z = we("aspect"), T = we("ease"), D = we("animate"), R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
280
280
|
"center",
|
|
281
281
|
"top",
|
|
282
282
|
"bottom",
|
|
@@ -294,15 +294,15 @@ const we = (r) => {
|
|
|
294
294
|
"bottom-left",
|
|
295
295
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
296
296
|
"left-bottom"
|
|
297
|
-
], P = () => [...
|
|
298
|
-
span: ["full",
|
|
299
|
-
},
|
|
297
|
+
], P = () => [...O(), $, G], j = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", "contain", "none"], B = () => [$, G, u], X = () => [I0, "full", "auto", ...B()], ce = () => [h0, "none", "subgrid", $, G], ae = () => ["auto", {
|
|
298
|
+
span: ["full", h0, $, G]
|
|
299
|
+
}, h0, $, G], ee = () => [h0, "auto", $, G], ne = () => ["auto", "min", "max", "fr", $, G], ye = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], fe = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], ve = () => ["auto", ...B()], Me = () => [I0, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...B()], U = () => [r, $, G], a0 = () => [...O(), Ma, Ca, {
|
|
300
300
|
position: [$, G]
|
|
301
301
|
}], Re = () => ["no-repeat", {
|
|
302
302
|
repeat: ["", "x", "y", "space", "round"]
|
|
303
303
|
}], Le = () => ["auto", "cover", "contain", To, Mo, {
|
|
304
304
|
size: [$, G]
|
|
305
|
-
}], ke = () => [tr, Z0, z0],
|
|
305
|
+
}], ke = () => [tr, Z0, z0], se = () => [
|
|
306
306
|
// Deprecated since Tailwind CSS v4.0.0
|
|
307
307
|
"",
|
|
308
308
|
"none",
|
|
@@ -310,35 +310,35 @@ const we = (r) => {
|
|
|
310
310
|
d,
|
|
311
311
|
$,
|
|
312
312
|
G
|
|
313
|
-
], xe = () => ["", Q, Z0, z0], Be = () => ["solid", "dashed", "dotted", "double"], M0 = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"],
|
|
313
|
+
], xe = () => ["", Q, Z0, z0], Be = () => ["solid", "dashed", "dotted", "double"], M0 = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ie = () => [Q, tr, Ma, Ca], We = () => [
|
|
314
314
|
// Deprecated since Tailwind CSS v4.0.0
|
|
315
315
|
"",
|
|
316
316
|
"none",
|
|
317
317
|
C,
|
|
318
318
|
$,
|
|
319
319
|
G
|
|
320
|
-
],
|
|
320
|
+
], qe = () => ["none", Q, $, G], Fe = () => ["none", Q, $, G], _ = () => [Q, $, G], He = () => [I0, "full", ...B()];
|
|
321
321
|
return {
|
|
322
322
|
cacheSize: 500,
|
|
323
323
|
theme: {
|
|
324
324
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
325
325
|
aspect: ["video"],
|
|
326
|
-
blur: [
|
|
327
|
-
breakpoint: [
|
|
326
|
+
blur: [n0],
|
|
327
|
+
breakpoint: [n0],
|
|
328
328
|
color: [xo],
|
|
329
|
-
container: [
|
|
330
|
-
"drop-shadow": [
|
|
329
|
+
container: [n0],
|
|
330
|
+
"drop-shadow": [n0],
|
|
331
331
|
ease: ["in", "out", "in-out"],
|
|
332
332
|
font: [Co],
|
|
333
333
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
334
|
-
"inset-shadow": [
|
|
334
|
+
"inset-shadow": [n0],
|
|
335
335
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
336
336
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
337
|
-
radius: [
|
|
338
|
-
shadow: [
|
|
337
|
+
radius: [n0],
|
|
338
|
+
shadow: [n0],
|
|
339
339
|
spacing: ["px", Q],
|
|
340
|
-
text: [
|
|
341
|
-
"text-shadow": [
|
|
340
|
+
text: [n0],
|
|
341
|
+
"text-shadow": [n0],
|
|
342
342
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
343
343
|
},
|
|
344
344
|
classGroups: {
|
|
@@ -370,14 +370,14 @@ const we = (r) => {
|
|
|
370
370
|
* @see https://tailwindcss.com/docs/break-after
|
|
371
371
|
*/
|
|
372
372
|
"break-after": [{
|
|
373
|
-
"break-after":
|
|
373
|
+
"break-after": R()
|
|
374
374
|
}],
|
|
375
375
|
/**
|
|
376
376
|
* Break Before
|
|
377
377
|
* @see https://tailwindcss.com/docs/break-before
|
|
378
378
|
*/
|
|
379
379
|
"break-before": [{
|
|
380
|
-
"break-before":
|
|
380
|
+
"break-before": R()
|
|
381
381
|
}],
|
|
382
382
|
/**
|
|
383
383
|
* Break Inside
|
|
@@ -469,21 +469,21 @@ const we = (r) => {
|
|
|
469
469
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
470
470
|
*/
|
|
471
471
|
overscroll: [{
|
|
472
|
-
overscroll:
|
|
472
|
+
overscroll: F()
|
|
473
473
|
}],
|
|
474
474
|
/**
|
|
475
475
|
* Overscroll Behavior X
|
|
476
476
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
477
477
|
*/
|
|
478
478
|
"overscroll-x": [{
|
|
479
|
-
"overscroll-x":
|
|
479
|
+
"overscroll-x": F()
|
|
480
480
|
}],
|
|
481
481
|
/**
|
|
482
482
|
* Overscroll Behavior Y
|
|
483
483
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
484
484
|
*/
|
|
485
485
|
"overscroll-y": [{
|
|
486
|
-
"overscroll-y":
|
|
486
|
+
"overscroll-y": F()
|
|
487
487
|
}],
|
|
488
488
|
/**
|
|
489
489
|
* Position
|
|
@@ -563,7 +563,7 @@ const we = (r) => {
|
|
|
563
563
|
* @see https://tailwindcss.com/docs/z-index
|
|
564
564
|
*/
|
|
565
565
|
z: [{
|
|
566
|
-
z: [
|
|
566
|
+
z: [h0, "auto", $, G]
|
|
567
567
|
}],
|
|
568
568
|
// ------------------------
|
|
569
569
|
// --- Flexbox and Grid ---
|
|
@@ -615,14 +615,14 @@ const we = (r) => {
|
|
|
615
615
|
* @see https://tailwindcss.com/docs/order
|
|
616
616
|
*/
|
|
617
617
|
order: [{
|
|
618
|
-
order: [
|
|
618
|
+
order: [h0, "first", "last", "none", $, G]
|
|
619
619
|
}],
|
|
620
620
|
/**
|
|
621
621
|
* Grid Template Columns
|
|
622
622
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
623
623
|
*/
|
|
624
624
|
"grid-cols": [{
|
|
625
|
-
"grid-cols":
|
|
625
|
+
"grid-cols": ce()
|
|
626
626
|
}],
|
|
627
627
|
/**
|
|
628
628
|
* Grid Column Start / End
|
|
@@ -650,7 +650,7 @@ const we = (r) => {
|
|
|
650
650
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
651
651
|
*/
|
|
652
652
|
"grid-rows": [{
|
|
653
|
-
"grid-rows":
|
|
653
|
+
"grid-rows": ce()
|
|
654
654
|
}],
|
|
655
655
|
/**
|
|
656
656
|
* Grid Row Start / End
|
|
@@ -685,14 +685,14 @@ const we = (r) => {
|
|
|
685
685
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
686
686
|
*/
|
|
687
687
|
"auto-cols": [{
|
|
688
|
-
"auto-cols":
|
|
688
|
+
"auto-cols": ne()
|
|
689
689
|
}],
|
|
690
690
|
/**
|
|
691
691
|
* Grid Auto Rows
|
|
692
692
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
693
693
|
*/
|
|
694
694
|
"auto-rows": [{
|
|
695
|
-
"auto-rows":
|
|
695
|
+
"auto-rows": ne()
|
|
696
696
|
}],
|
|
697
697
|
/**
|
|
698
698
|
* Gap
|
|
@@ -1269,7 +1269,7 @@ const we = (r) => {
|
|
|
1269
1269
|
* @see https://tailwindcss.com/docs/background-position
|
|
1270
1270
|
*/
|
|
1271
1271
|
"bg-position": [{
|
|
1272
|
-
bg:
|
|
1272
|
+
bg: a0()
|
|
1273
1273
|
}],
|
|
1274
1274
|
/**
|
|
1275
1275
|
* Background Repeat
|
|
@@ -1293,9 +1293,9 @@ const we = (r) => {
|
|
|
1293
1293
|
bg: ["none", {
|
|
1294
1294
|
linear: [{
|
|
1295
1295
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1296
|
-
},
|
|
1296
|
+
}, h0, $, G],
|
|
1297
1297
|
radial: ["", $, G],
|
|
1298
|
-
conic: [
|
|
1298
|
+
conic: [h0, $, G]
|
|
1299
1299
|
}, Ao, zo]
|
|
1300
1300
|
}],
|
|
1301
1301
|
/**
|
|
@@ -1355,105 +1355,105 @@ const we = (r) => {
|
|
|
1355
1355
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1356
1356
|
*/
|
|
1357
1357
|
rounded: [{
|
|
1358
|
-
rounded:
|
|
1358
|
+
rounded: se()
|
|
1359
1359
|
}],
|
|
1360
1360
|
/**
|
|
1361
1361
|
* Border Radius Start
|
|
1362
1362
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1363
1363
|
*/
|
|
1364
1364
|
"rounded-s": [{
|
|
1365
|
-
"rounded-s":
|
|
1365
|
+
"rounded-s": se()
|
|
1366
1366
|
}],
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Border Radius End
|
|
1369
1369
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1370
1370
|
*/
|
|
1371
1371
|
"rounded-e": [{
|
|
1372
|
-
"rounded-e":
|
|
1372
|
+
"rounded-e": se()
|
|
1373
1373
|
}],
|
|
1374
1374
|
/**
|
|
1375
1375
|
* Border Radius Top
|
|
1376
1376
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1377
1377
|
*/
|
|
1378
1378
|
"rounded-t": [{
|
|
1379
|
-
"rounded-t":
|
|
1379
|
+
"rounded-t": se()
|
|
1380
1380
|
}],
|
|
1381
1381
|
/**
|
|
1382
1382
|
* Border Radius Right
|
|
1383
1383
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1384
1384
|
*/
|
|
1385
1385
|
"rounded-r": [{
|
|
1386
|
-
"rounded-r":
|
|
1386
|
+
"rounded-r": se()
|
|
1387
1387
|
}],
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Border Radius Bottom
|
|
1390
1390
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1391
1391
|
*/
|
|
1392
1392
|
"rounded-b": [{
|
|
1393
|
-
"rounded-b":
|
|
1393
|
+
"rounded-b": se()
|
|
1394
1394
|
}],
|
|
1395
1395
|
/**
|
|
1396
1396
|
* Border Radius Left
|
|
1397
1397
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1398
1398
|
*/
|
|
1399
1399
|
"rounded-l": [{
|
|
1400
|
-
"rounded-l":
|
|
1400
|
+
"rounded-l": se()
|
|
1401
1401
|
}],
|
|
1402
1402
|
/**
|
|
1403
1403
|
* Border Radius Start Start
|
|
1404
1404
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1405
1405
|
*/
|
|
1406
1406
|
"rounded-ss": [{
|
|
1407
|
-
"rounded-ss":
|
|
1407
|
+
"rounded-ss": se()
|
|
1408
1408
|
}],
|
|
1409
1409
|
/**
|
|
1410
1410
|
* Border Radius Start End
|
|
1411
1411
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1412
1412
|
*/
|
|
1413
1413
|
"rounded-se": [{
|
|
1414
|
-
"rounded-se":
|
|
1414
|
+
"rounded-se": se()
|
|
1415
1415
|
}],
|
|
1416
1416
|
/**
|
|
1417
1417
|
* Border Radius End End
|
|
1418
1418
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1419
1419
|
*/
|
|
1420
1420
|
"rounded-ee": [{
|
|
1421
|
-
"rounded-ee":
|
|
1421
|
+
"rounded-ee": se()
|
|
1422
1422
|
}],
|
|
1423
1423
|
/**
|
|
1424
1424
|
* Border Radius End Start
|
|
1425
1425
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1426
1426
|
*/
|
|
1427
1427
|
"rounded-es": [{
|
|
1428
|
-
"rounded-es":
|
|
1428
|
+
"rounded-es": se()
|
|
1429
1429
|
}],
|
|
1430
1430
|
/**
|
|
1431
1431
|
* Border Radius Top Left
|
|
1432
1432
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1433
1433
|
*/
|
|
1434
1434
|
"rounded-tl": [{
|
|
1435
|
-
"rounded-tl":
|
|
1435
|
+
"rounded-tl": se()
|
|
1436
1436
|
}],
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Border Radius Top Right
|
|
1439
1439
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1440
1440
|
*/
|
|
1441
1441
|
"rounded-tr": [{
|
|
1442
|
-
"rounded-tr":
|
|
1442
|
+
"rounded-tr": se()
|
|
1443
1443
|
}],
|
|
1444
1444
|
/**
|
|
1445
1445
|
* Border Radius Bottom Right
|
|
1446
1446
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1447
1447
|
*/
|
|
1448
1448
|
"rounded-br": [{
|
|
1449
|
-
"rounded-br":
|
|
1449
|
+
"rounded-br": se()
|
|
1450
1450
|
}],
|
|
1451
1451
|
/**
|
|
1452
1452
|
* Border Radius Bottom Left
|
|
1453
1453
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1454
1454
|
*/
|
|
1455
1455
|
"rounded-bl": [{
|
|
1456
|
-
"rounded-bl":
|
|
1456
|
+
"rounded-bl": se()
|
|
1457
1457
|
}],
|
|
1458
1458
|
/**
|
|
1459
1459
|
* Border Width
|
|
@@ -1802,10 +1802,10 @@ const we = (r) => {
|
|
|
1802
1802
|
"mask-linear": [Q]
|
|
1803
1803
|
}],
|
|
1804
1804
|
"mask-image-linear-from-pos": [{
|
|
1805
|
-
"mask-linear-from":
|
|
1805
|
+
"mask-linear-from": ie()
|
|
1806
1806
|
}],
|
|
1807
1807
|
"mask-image-linear-to-pos": [{
|
|
1808
|
-
"mask-linear-to":
|
|
1808
|
+
"mask-linear-to": ie()
|
|
1809
1809
|
}],
|
|
1810
1810
|
"mask-image-linear-from-color": [{
|
|
1811
1811
|
"mask-linear-from": U()
|
|
@@ -1814,10 +1814,10 @@ const we = (r) => {
|
|
|
1814
1814
|
"mask-linear-to": U()
|
|
1815
1815
|
}],
|
|
1816
1816
|
"mask-image-t-from-pos": [{
|
|
1817
|
-
"mask-t-from":
|
|
1817
|
+
"mask-t-from": ie()
|
|
1818
1818
|
}],
|
|
1819
1819
|
"mask-image-t-to-pos": [{
|
|
1820
|
-
"mask-t-to":
|
|
1820
|
+
"mask-t-to": ie()
|
|
1821
1821
|
}],
|
|
1822
1822
|
"mask-image-t-from-color": [{
|
|
1823
1823
|
"mask-t-from": U()
|
|
@@ -1826,10 +1826,10 @@ const we = (r) => {
|
|
|
1826
1826
|
"mask-t-to": U()
|
|
1827
1827
|
}],
|
|
1828
1828
|
"mask-image-r-from-pos": [{
|
|
1829
|
-
"mask-r-from":
|
|
1829
|
+
"mask-r-from": ie()
|
|
1830
1830
|
}],
|
|
1831
1831
|
"mask-image-r-to-pos": [{
|
|
1832
|
-
"mask-r-to":
|
|
1832
|
+
"mask-r-to": ie()
|
|
1833
1833
|
}],
|
|
1834
1834
|
"mask-image-r-from-color": [{
|
|
1835
1835
|
"mask-r-from": U()
|
|
@@ -1838,10 +1838,10 @@ const we = (r) => {
|
|
|
1838
1838
|
"mask-r-to": U()
|
|
1839
1839
|
}],
|
|
1840
1840
|
"mask-image-b-from-pos": [{
|
|
1841
|
-
"mask-b-from":
|
|
1841
|
+
"mask-b-from": ie()
|
|
1842
1842
|
}],
|
|
1843
1843
|
"mask-image-b-to-pos": [{
|
|
1844
|
-
"mask-b-to":
|
|
1844
|
+
"mask-b-to": ie()
|
|
1845
1845
|
}],
|
|
1846
1846
|
"mask-image-b-from-color": [{
|
|
1847
1847
|
"mask-b-from": U()
|
|
@@ -1850,10 +1850,10 @@ const we = (r) => {
|
|
|
1850
1850
|
"mask-b-to": U()
|
|
1851
1851
|
}],
|
|
1852
1852
|
"mask-image-l-from-pos": [{
|
|
1853
|
-
"mask-l-from":
|
|
1853
|
+
"mask-l-from": ie()
|
|
1854
1854
|
}],
|
|
1855
1855
|
"mask-image-l-to-pos": [{
|
|
1856
|
-
"mask-l-to":
|
|
1856
|
+
"mask-l-to": ie()
|
|
1857
1857
|
}],
|
|
1858
1858
|
"mask-image-l-from-color": [{
|
|
1859
1859
|
"mask-l-from": U()
|
|
@@ -1862,10 +1862,10 @@ const we = (r) => {
|
|
|
1862
1862
|
"mask-l-to": U()
|
|
1863
1863
|
}],
|
|
1864
1864
|
"mask-image-x-from-pos": [{
|
|
1865
|
-
"mask-x-from":
|
|
1865
|
+
"mask-x-from": ie()
|
|
1866
1866
|
}],
|
|
1867
1867
|
"mask-image-x-to-pos": [{
|
|
1868
|
-
"mask-x-to":
|
|
1868
|
+
"mask-x-to": ie()
|
|
1869
1869
|
}],
|
|
1870
1870
|
"mask-image-x-from-color": [{
|
|
1871
1871
|
"mask-x-from": U()
|
|
@@ -1874,10 +1874,10 @@ const we = (r) => {
|
|
|
1874
1874
|
"mask-x-to": U()
|
|
1875
1875
|
}],
|
|
1876
1876
|
"mask-image-y-from-pos": [{
|
|
1877
|
-
"mask-y-from":
|
|
1877
|
+
"mask-y-from": ie()
|
|
1878
1878
|
}],
|
|
1879
1879
|
"mask-image-y-to-pos": [{
|
|
1880
|
-
"mask-y-to":
|
|
1880
|
+
"mask-y-to": ie()
|
|
1881
1881
|
}],
|
|
1882
1882
|
"mask-image-y-from-color": [{
|
|
1883
1883
|
"mask-y-from": U()
|
|
@@ -1889,10 +1889,10 @@ const we = (r) => {
|
|
|
1889
1889
|
"mask-radial": [$, G]
|
|
1890
1890
|
}],
|
|
1891
1891
|
"mask-image-radial-from-pos": [{
|
|
1892
|
-
"mask-radial-from":
|
|
1892
|
+
"mask-radial-from": ie()
|
|
1893
1893
|
}],
|
|
1894
1894
|
"mask-image-radial-to-pos": [{
|
|
1895
|
-
"mask-radial-to":
|
|
1895
|
+
"mask-radial-to": ie()
|
|
1896
1896
|
}],
|
|
1897
1897
|
"mask-image-radial-from-color": [{
|
|
1898
1898
|
"mask-radial-from": U()
|
|
@@ -1910,16 +1910,16 @@ const we = (r) => {
|
|
|
1910
1910
|
}]
|
|
1911
1911
|
}],
|
|
1912
1912
|
"mask-image-radial-pos": [{
|
|
1913
|
-
"mask-radial-at":
|
|
1913
|
+
"mask-radial-at": O()
|
|
1914
1914
|
}],
|
|
1915
1915
|
"mask-image-conic-pos": [{
|
|
1916
1916
|
"mask-conic": [Q]
|
|
1917
1917
|
}],
|
|
1918
1918
|
"mask-image-conic-from-pos": [{
|
|
1919
|
-
"mask-conic-from":
|
|
1919
|
+
"mask-conic-from": ie()
|
|
1920
1920
|
}],
|
|
1921
1921
|
"mask-image-conic-to-pos": [{
|
|
1922
|
-
"mask-conic-to":
|
|
1922
|
+
"mask-conic-to": ie()
|
|
1923
1923
|
}],
|
|
1924
1924
|
"mask-image-conic-from-color": [{
|
|
1925
1925
|
"mask-conic-from": U()
|
|
@@ -1946,7 +1946,7 @@ const we = (r) => {
|
|
|
1946
1946
|
* @see https://tailwindcss.com/docs/mask-position
|
|
1947
1947
|
*/
|
|
1948
1948
|
"mask-position": [{
|
|
1949
|
-
mask:
|
|
1949
|
+
mask: a0()
|
|
1950
1950
|
}],
|
|
1951
1951
|
/**
|
|
1952
1952
|
* Mask Repeat
|
|
@@ -2264,56 +2264,56 @@ const we = (r) => {
|
|
|
2264
2264
|
* @see https://tailwindcss.com/docs/rotate
|
|
2265
2265
|
*/
|
|
2266
2266
|
rotate: [{
|
|
2267
|
-
rotate:
|
|
2267
|
+
rotate: qe()
|
|
2268
2268
|
}],
|
|
2269
2269
|
/**
|
|
2270
2270
|
* Rotate X
|
|
2271
2271
|
* @see https://tailwindcss.com/docs/rotate
|
|
2272
2272
|
*/
|
|
2273
2273
|
"rotate-x": [{
|
|
2274
|
-
"rotate-x":
|
|
2274
|
+
"rotate-x": qe()
|
|
2275
2275
|
}],
|
|
2276
2276
|
/**
|
|
2277
2277
|
* Rotate Y
|
|
2278
2278
|
* @see https://tailwindcss.com/docs/rotate
|
|
2279
2279
|
*/
|
|
2280
2280
|
"rotate-y": [{
|
|
2281
|
-
"rotate-y":
|
|
2281
|
+
"rotate-y": qe()
|
|
2282
2282
|
}],
|
|
2283
2283
|
/**
|
|
2284
2284
|
* Rotate Z
|
|
2285
2285
|
* @see https://tailwindcss.com/docs/rotate
|
|
2286
2286
|
*/
|
|
2287
2287
|
"rotate-z": [{
|
|
2288
|
-
"rotate-z":
|
|
2288
|
+
"rotate-z": qe()
|
|
2289
2289
|
}],
|
|
2290
2290
|
/**
|
|
2291
2291
|
* Scale
|
|
2292
2292
|
* @see https://tailwindcss.com/docs/scale
|
|
2293
2293
|
*/
|
|
2294
2294
|
scale: [{
|
|
2295
|
-
scale:
|
|
2295
|
+
scale: Fe()
|
|
2296
2296
|
}],
|
|
2297
2297
|
/**
|
|
2298
2298
|
* Scale X
|
|
2299
2299
|
* @see https://tailwindcss.com/docs/scale
|
|
2300
2300
|
*/
|
|
2301
2301
|
"scale-x": [{
|
|
2302
|
-
"scale-x":
|
|
2302
|
+
"scale-x": Fe()
|
|
2303
2303
|
}],
|
|
2304
2304
|
/**
|
|
2305
2305
|
* Scale Y
|
|
2306
2306
|
* @see https://tailwindcss.com/docs/scale
|
|
2307
2307
|
*/
|
|
2308
2308
|
"scale-y": [{
|
|
2309
|
-
"scale-y":
|
|
2309
|
+
"scale-y": Fe()
|
|
2310
2310
|
}],
|
|
2311
2311
|
/**
|
|
2312
2312
|
* Scale Z
|
|
2313
2313
|
* @see https://tailwindcss.com/docs/scale
|
|
2314
2314
|
*/
|
|
2315
2315
|
"scale-z": [{
|
|
2316
|
-
"scale-z":
|
|
2316
|
+
"scale-z": Fe()
|
|
2317
2317
|
}],
|
|
2318
2318
|
/**
|
|
2319
2319
|
* Scale 3D
|
|
@@ -2824,7 +2824,7 @@ const za = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Na = Bn, N
|
|
|
2824
2824
|
), Oo = N("absolute inset-0 w-full h-full object-cover"), Po = (r) => {
|
|
2825
2825
|
const e = r.trim().split(/\s+/);
|
|
2826
2826
|
return e.length >= 2 ? (e[0][0] + e[1][0]).toUpperCase() : r.slice(0, 2).toUpperCase();
|
|
2827
|
-
},
|
|
2827
|
+
}, qo = (r, e) => `https://picsum.photos/seed/${r}/${e}/${e}`, Wn = he(
|
|
2828
2828
|
({
|
|
2829
2829
|
className: r,
|
|
2830
2830
|
type: e = "text",
|
|
@@ -2836,7 +2836,7 @@ const za = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Na = Bn, N
|
|
|
2836
2836
|
fallbackInitials: l,
|
|
2837
2837
|
...u
|
|
2838
2838
|
}, d) => {
|
|
2839
|
-
const [h, p] =
|
|
2839
|
+
const [h, p] = Je(!1), y = _0(() => Math.floor(Math.random() * 1e3), []), C = s || qo(y, a === "big" ? 64 : 32), S = h && l ? l : n, z = e === "image" && !h, T = () => {
|
|
2840
2840
|
p(!0);
|
|
2841
2841
|
}, D = {
|
|
2842
2842
|
backgroundImage: "linear-gradient(90deg, rgba(21, 177, 205, 0.08) 0%, rgba(21, 177, 205, 0.08) 100%), linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%)"
|
|
@@ -2864,7 +2864,7 @@ const za = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Na = Bn, N
|
|
|
2864
2864
|
}
|
|
2865
2865
|
);
|
|
2866
2866
|
Wn.displayName = "Avatar";
|
|
2867
|
-
const
|
|
2867
|
+
const Fo = N(
|
|
2868
2868
|
"relative inline-flex items-center justify-center shrink-0",
|
|
2869
2869
|
{
|
|
2870
2870
|
variants: {
|
|
@@ -2921,7 +2921,7 @@ const qo = N(
|
|
|
2921
2921
|
"div",
|
|
2922
2922
|
{
|
|
2923
2923
|
ref: s,
|
|
2924
|
-
className: W(
|
|
2924
|
+
className: W(Fo({ size: t }), r),
|
|
2925
2925
|
...n,
|
|
2926
2926
|
children: [
|
|
2927
2927
|
a && /* @__PURE__ */ v("span", { className: Vo({ variant: e }) }),
|
|
@@ -3318,20 +3318,20 @@ const Ko = N(
|
|
|
3318
3318
|
className: s,
|
|
3319
3319
|
disabled: i = !1
|
|
3320
3320
|
}, l) => {
|
|
3321
|
-
const [u, d] =
|
|
3321
|
+
const [u, d] = Je(!1), h = t || (u && !i ? "hover" : "normal"), p = _0(() => h === "generating" || h === "error" ? "rest" : u ? "hover" : "rest", [h, u]), y = Ve(() => {
|
|
3322
3322
|
!t && !i && d(!0);
|
|
3323
3323
|
}, [t, i]), x = Ve(() => {
|
|
3324
3324
|
!t && !i && d(!1);
|
|
3325
3325
|
}, [t, i]), C = Ve(() => {
|
|
3326
3326
|
!i && a && a();
|
|
3327
3327
|
}, [i, a]), S = Ve(
|
|
3328
|
-
(
|
|
3329
|
-
|
|
3328
|
+
(R) => {
|
|
3329
|
+
R.stopPropagation(), !i && n && n();
|
|
3330
3330
|
},
|
|
3331
3331
|
[i, n]
|
|
3332
3332
|
), z = Ve(
|
|
3333
|
-
(
|
|
3334
|
-
(
|
|
3333
|
+
(R) => {
|
|
3334
|
+
(R.key === "Enter" || R.key === " ") && (R.preventDefault(), C());
|
|
3335
3335
|
},
|
|
3336
3336
|
[C]
|
|
3337
3337
|
), T = () => h === "generating" ? /* @__PURE__ */ v("div", { className: ar({ status: "generating" }), children: /* @__PURE__ */ v(
|
|
@@ -3348,15 +3348,15 @@ const Ko = N(
|
|
|
3348
3348
|
rest: {},
|
|
3349
3349
|
hover: { transition: { staggerChildren: 0.1 } }
|
|
3350
3350
|
},
|
|
3351
|
-
children: pl.map((
|
|
3351
|
+
children: pl.map((R, O) => /* @__PURE__ */ v(
|
|
3352
3352
|
Ce.div,
|
|
3353
3353
|
{
|
|
3354
3354
|
className: rl(),
|
|
3355
|
-
style: { width: `${
|
|
3355
|
+
style: { width: `${R}%` },
|
|
3356
3356
|
variants: dl,
|
|
3357
3357
|
transition: { duration: 0.4, ease: "easeInOut" }
|
|
3358
3358
|
},
|
|
3359
|
-
|
|
3359
|
+
O
|
|
3360
3360
|
))
|
|
3361
3361
|
}
|
|
3362
3362
|
) }) }), D = () => h === "generating" ? null : h === "error" ? /* @__PURE__ */ v(
|
|
@@ -3761,7 +3761,7 @@ const Ml = ({
|
|
|
3761
3761
|
disabled: i,
|
|
3762
3762
|
...l
|
|
3763
3763
|
}, u) => {
|
|
3764
|
-
const [d, h] =
|
|
3764
|
+
const [d, h] = Je(
|
|
3765
3765
|
t || !1
|
|
3766
3766
|
), p = e !== void 0, y = p ? e : d, x = (C) => {
|
|
3767
3767
|
p || h(C.target.checked), a == null || a(C);
|
|
@@ -3879,7 +3879,7 @@ const El = N(
|
|
|
3879
3879
|
className: n,
|
|
3880
3880
|
...s
|
|
3881
3881
|
}) => {
|
|
3882
|
-
const [i, l] =
|
|
3882
|
+
const [i, l] = Je(e), u = t !== void 0, d = u ? t : i, h = A0(null), p = () => {
|
|
3883
3883
|
const x = !d;
|
|
3884
3884
|
u || l(x), a == null || a(x);
|
|
3885
3885
|
}, y = () => {
|
|
@@ -4030,7 +4030,7 @@ const Pl = N(
|
|
|
4030
4030
|
size: "medium"
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
|
-
),
|
|
4033
|
+
), ql = N("relative w-full", {
|
|
4034
4034
|
variants: {
|
|
4035
4035
|
size: {
|
|
4036
4036
|
medium: "",
|
|
@@ -4098,7 +4098,7 @@ const Pl = N(
|
|
|
4098
4098
|
position: "end"
|
|
4099
4099
|
}
|
|
4100
4100
|
}
|
|
4101
|
-
),
|
|
4101
|
+
), Fl = he(
|
|
4102
4102
|
({
|
|
4103
4103
|
className: r,
|
|
4104
4104
|
status: e = "default",
|
|
@@ -4120,7 +4120,7 @@ const Pl = N(
|
|
|
4120
4120
|
small: "pr-9",
|
|
4121
4121
|
tiny: "pr-8"
|
|
4122
4122
|
};
|
|
4123
|
-
return /* @__PURE__ */ V("div", { className:
|
|
4123
|
+
return /* @__PURE__ */ V("div", { className: ql({ size: t }), children: [
|
|
4124
4124
|
a && /* @__PURE__ */ v("span", { className: Ta({ status: e, size: t, position: "start" }), children: a }),
|
|
4125
4125
|
/* @__PURE__ */ v(
|
|
4126
4126
|
"input",
|
|
@@ -4140,7 +4140,7 @@ const Pl = N(
|
|
|
4140
4140
|
] });
|
|
4141
4141
|
}
|
|
4142
4142
|
);
|
|
4143
|
-
|
|
4143
|
+
Fl.displayName = "Input";
|
|
4144
4144
|
const Hl = N("flex flex-col items-center justify-center"), Vl = N("relative", {
|
|
4145
4145
|
variants: {
|
|
4146
4146
|
size: {
|
|
@@ -4289,7 +4289,7 @@ const Hl = N("flex flex-col items-center justify-center"), Vl = N("relative", {
|
|
|
4289
4289
|
), Jl = N(
|
|
4290
4290
|
"text-[12px] text-[var(--color-gray-600)] mt-[4px]"
|
|
4291
4291
|
), Ql = N(
|
|
4292
|
-
"flex items-center justify-center
|
|
4292
|
+
"flex items-center justify-center"
|
|
4293
4293
|
), e1 = N(
|
|
4294
4294
|
"relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"
|
|
4295
4295
|
), t1 = N([
|
|
@@ -4326,7 +4326,7 @@ const Hl = N("flex flex-col items-center justify-center"), Vl = N("relative", {
|
|
|
4326
4326
|
children: /* @__PURE__ */ v(e, { size: 12 })
|
|
4327
4327
|
}
|
|
4328
4328
|
), n1 = () => {
|
|
4329
|
-
const [r, e] =
|
|
4329
|
+
const [r, e] = Je(0);
|
|
4330
4330
|
return $r(() => {
|
|
4331
4331
|
const t = setInterval(() => {
|
|
4332
4332
|
e((a) => a + 1);
|
|
@@ -4336,7 +4336,7 @@ const Hl = N("flex flex-col items-center justify-center"), Vl = N("relative", {
|
|
|
4336
4336
|
Xn,
|
|
4337
4337
|
{
|
|
4338
4338
|
size: 28,
|
|
4339
|
-
colorVariant: "
|
|
4339
|
+
colorVariant: "lightTeal",
|
|
4340
4340
|
animated: !0,
|
|
4341
4341
|
animationDuration: 2
|
|
4342
4342
|
},
|
|
@@ -4356,53 +4356,54 @@ const Hl = N("flex flex-col items-center justify-center"), Vl = N("relative", {
|
|
|
4356
4356
|
isInitialPrompt: d = !1,
|
|
4357
4357
|
alignment: h,
|
|
4358
4358
|
onCopy: p,
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4359
|
+
onCopySuccess: y,
|
|
4360
|
+
onEdit: x,
|
|
4361
|
+
onHelpful: C,
|
|
4362
|
+
onUnhelpful: S,
|
|
4363
|
+
...z
|
|
4364
|
+
}, T) => {
|
|
4365
|
+
const D = A0(null), [R, O] = Je(!1), P = h ?? (e === "user" ? d ? "center" : "right" : "left"), j = async () => {
|
|
4366
|
+
if (!D.current) return;
|
|
4367
|
+
const B = D.current.innerText;
|
|
4367
4368
|
try {
|
|
4368
|
-
navigator.clipboard && navigator.clipboard.writeText ? (await navigator.clipboard.writeText(
|
|
4369
|
-
|
|
4370
|
-
}, 2e3)) :
|
|
4371
|
-
} catch (
|
|
4372
|
-
console.error("Failed to copy:",
|
|
4369
|
+
navigator.clipboard && navigator.clipboard.writeText ? (await navigator.clipboard.writeText(B), O(!0), p == null || p(), y == null || y(), setTimeout(() => {
|
|
4370
|
+
O(!1);
|
|
4371
|
+
}, 2e3)) : console.warn("Clipboard API not available");
|
|
4372
|
+
} catch (X) {
|
|
4373
|
+
console.error("Failed to copy:", X);
|
|
4373
4374
|
}
|
|
4374
|
-
},
|
|
4375
|
-
const
|
|
4376
|
-
if (
|
|
4377
|
-
if (
|
|
4378
|
-
const
|
|
4379
|
-
return
|
|
4375
|
+
}, F = (B) => {
|
|
4376
|
+
const X = typeof B == "string" ? new Date(B) : B, ae = (/* @__PURE__ */ new Date()).getTime() - X.getTime(), ee = Math.floor(ae / 6e4);
|
|
4377
|
+
if (ee < 1) return "Just now";
|
|
4378
|
+
if (ee < 60) return `${ee} min ago`;
|
|
4379
|
+
const ne = Math.floor(ee / 60);
|
|
4380
|
+
return ne < 24 ? `${ne}h ago` : X.toLocaleDateString();
|
|
4380
4381
|
};
|
|
4381
4382
|
return e === "loader" || n ? /* @__PURE__ */ v(
|
|
4382
4383
|
"div",
|
|
4383
4384
|
{
|
|
4384
|
-
ref:
|
|
4385
|
+
ref: T,
|
|
4385
4386
|
className: W(
|
|
4386
4387
|
Aa({ variant: "loader", alignment: "left" }),
|
|
4387
4388
|
r
|
|
4388
4389
|
),
|
|
4389
|
-
...
|
|
4390
|
+
...z,
|
|
4390
4391
|
children: /* @__PURE__ */ v("div", { className: W(Da({ variant: "loader", isSticky: u })), children: /* @__PURE__ */ v(n1, {}) })
|
|
4391
4392
|
}
|
|
4392
4393
|
) : /* @__PURE__ */ v(
|
|
4393
4394
|
"div",
|
|
4394
4395
|
{
|
|
4395
|
-
ref:
|
|
4396
|
+
ref: T,
|
|
4396
4397
|
className: W(
|
|
4397
|
-
Aa({ variant: e, alignment:
|
|
4398
|
+
Aa({ variant: e, alignment: P }),
|
|
4398
4399
|
"group",
|
|
4399
4400
|
r
|
|
4400
4401
|
),
|
|
4401
|
-
...
|
|
4402
|
+
...z,
|
|
4402
4403
|
children: /* @__PURE__ */ V("div", { className: W($l()), children: [
|
|
4403
4404
|
!i && e === "assistant" && /* @__PURE__ */ v("div", { className: W(Zl()), children: /* @__PURE__ */ v("div", { className: W(Kl()), children: /* @__PURE__ */ v(jn, { size: 20, colorVariant: "lightTeal" }) }) }),
|
|
4404
4405
|
/* @__PURE__ */ V("div", { className: W(Wl()), children: [
|
|
4405
|
-
/* @__PURE__ */ v("div", { className: W(Da({ variant: e, isSticky: u })), children: /* @__PURE__ */ v("div", { className: W(Ul({ variant: e })), ref:
|
|
4406
|
+
/* @__PURE__ */ v("div", { className: W(Da({ variant: e, isSticky: u })), children: /* @__PURE__ */ v("div", { className: W(Ul({ variant: e })), ref: D, children: e === "system" ? /* @__PURE__ */ V("div", { className: W(e1()), children: [
|
|
4406
4407
|
/* @__PURE__ */ v("div", { className: W(t1()) }),
|
|
4407
4408
|
/* @__PURE__ */ V("div", { className: W(r1()), children: [
|
|
4408
4409
|
/* @__PURE__ */ v(Pi, { size: 16 }),
|
|
@@ -4413,31 +4414,31 @@ const Hl = N("flex flex-col items-center justify-center"), Vl = N("relative", {
|
|
|
4413
4414
|
e === "assistant" && t && /* @__PURE__ */ v("h4", { className: W(jl()), children: t }),
|
|
4414
4415
|
/* @__PURE__ */ v("div", { className: W(Ea({ variant: e })), children: a })
|
|
4415
4416
|
] }) }) }),
|
|
4416
|
-
l && s && /* @__PURE__ */ v("div", { className: W(Jl()), children:
|
|
4417
|
+
l && s && /* @__PURE__ */ v("div", { className: W(Jl()), children: F(s) }),
|
|
4417
4418
|
!u && (e === "user" || e === "assistant") && /* @__PURE__ */ V("div", { className: W(Xl({ variant: e })), children: [
|
|
4418
4419
|
/* @__PURE__ */ v(
|
|
4419
4420
|
vt,
|
|
4420
4421
|
{
|
|
4421
|
-
onClick:
|
|
4422
|
-
icon:
|
|
4423
|
-
label:
|
|
4424
|
-
isCopied:
|
|
4422
|
+
onClick: j,
|
|
4423
|
+
icon: R ? Ur : qi,
|
|
4424
|
+
label: R ? "Copied" : "Copy",
|
|
4425
|
+
isCopied: R
|
|
4425
4426
|
}
|
|
4426
4427
|
),
|
|
4427
|
-
e === "user" &&
|
|
4428
|
+
e === "user" && x && /* @__PURE__ */ v(vt, { onClick: x, icon: Fi, label: "Edit" }),
|
|
4428
4429
|
e === "assistant" && /* @__PURE__ */ V(Q0, { children: [
|
|
4429
|
-
|
|
4430
|
+
C && /* @__PURE__ */ v(
|
|
4430
4431
|
vt,
|
|
4431
4432
|
{
|
|
4432
|
-
onClick:
|
|
4433
|
+
onClick: C,
|
|
4433
4434
|
icon: Hi,
|
|
4434
4435
|
label: "Helpful"
|
|
4435
4436
|
}
|
|
4436
4437
|
),
|
|
4437
|
-
|
|
4438
|
+
S && /* @__PURE__ */ v(
|
|
4438
4439
|
vt,
|
|
4439
4440
|
{
|
|
4440
|
-
onClick:
|
|
4441
|
+
onClick: S,
|
|
4441
4442
|
icon: Vi,
|
|
4442
4443
|
label: "Unhelpful"
|
|
4443
4444
|
}
|
|
@@ -4775,7 +4776,7 @@ const b1 = N(
|
|
|
4775
4776
|
"flex items-center gap-[2px]"
|
|
4776
4777
|
), La = N(
|
|
4777
4778
|
"group-data-[state=active]:text-[var(--color-blue-1000)]"
|
|
4778
|
-
),
|
|
4779
|
+
), q5 = R0.Root, k1 = M.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ v(
|
|
4779
4780
|
R0.List,
|
|
4780
4781
|
{
|
|
4781
4782
|
ref: t,
|
|
@@ -4970,9 +4971,9 @@ const A1 = N(
|
|
|
4970
4971
|
}
|
|
4971
4972
|
}
|
|
4972
4973
|
), E1 = (r, e) => {
|
|
4973
|
-
const t = e.getTime() - r.getTime(), a = Math.floor(t / 1e3), n = Math.floor(a / 60), s = Math.floor(n / 60), i = Math.floor(s / 24), l = Math.floor(i / 7), u = Math.floor(i / 30), d = Math.floor(i / 365), h = t < 0, p = Math.abs(a), y = Math.abs(n), x = Math.abs(s), C = Math.abs(i), S = Math.abs(l), z = Math.abs(u), T = Math.abs(d), D = (
|
|
4974
|
-
const P =
|
|
4975
|
-
return h ? `in ${
|
|
4974
|
+
const t = e.getTime() - r.getTime(), a = Math.floor(t / 1e3), n = Math.floor(a / 60), s = Math.floor(n / 60), i = Math.floor(s / 24), l = Math.floor(i / 7), u = Math.floor(i / 30), d = Math.floor(i / 365), h = t < 0, p = Math.abs(a), y = Math.abs(n), x = Math.abs(s), C = Math.abs(i), S = Math.abs(l), z = Math.abs(u), T = Math.abs(d), D = (R, O) => {
|
|
4975
|
+
const P = R === 1 ? "" : "s";
|
|
4976
|
+
return h ? `in ${R} ${O}${P}` : `${R} ${O}${P} ago`;
|
|
4976
4977
|
};
|
|
4977
4978
|
return p < 60 ? "just now" : y < 60 ? D(y, "minute") : x < 24 ? D(x, "hour") : C === 1 ? h ? "tomorrow" : "yesterday" : C < 7 ? D(C, "day") : S < 4 ? D(S, "week") : z < 12 ? D(z, "month") : D(T, "year");
|
|
4978
4979
|
}, R1 = (r, e, t) => {
|
|
@@ -5071,9 +5072,9 @@ const I1 = N(
|
|
|
5071
5072
|
}
|
|
5072
5073
|
}), P1 = N(
|
|
5073
5074
|
"flex items-center gap-1 flex-1"
|
|
5074
|
-
), F1 = N(
|
|
5075
|
-
"font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"
|
|
5076
5075
|
), q1 = N(
|
|
5076
|
+
"font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"
|
|
5077
|
+
), F1 = N(
|
|
5077
5078
|
"font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"
|
|
5078
5079
|
), H1 = N(
|
|
5079
5080
|
"flex items-center gap-2 shrink-0"
|
|
@@ -5118,15 +5119,15 @@ const I1 = N(
|
|
|
5118
5119
|
onClose: l
|
|
5119
5120
|
}) => {
|
|
5120
5121
|
const u = G1[e], d = $1[e], h = () => {
|
|
5121
|
-
l && l(), r &&
|
|
5122
|
+
l && l(), r && g0.dismiss(r);
|
|
5122
5123
|
}, p = (x) => (C) => {
|
|
5123
|
-
x(C), r &&
|
|
5124
|
+
x(C), r && g0.dismiss(r);
|
|
5124
5125
|
}, y = () => n || (e === "success" ? /* @__PURE__ */ v(jr, { size: 16, color: d }) : e === "error" ? /* @__PURE__ */ v(Xr, { size: 16, color: d }) : e === "prompt" ? /* @__PURE__ */ v(En, { size: 16, color: d }) : /* @__PURE__ */ v(u, { size: 16 }));
|
|
5125
5126
|
return /* @__PURE__ */ V("div", { className: W(I1({ variant: e })), role: "alert", children: [
|
|
5126
5127
|
/* @__PURE__ */ v("div", { className: O1({ variant: e }), children: y() }),
|
|
5127
5128
|
/* @__PURE__ */ V("div", { className: P1(), children: [
|
|
5128
|
-
/* @__PURE__ */ v("span", { className:
|
|
5129
|
-
a && /* @__PURE__ */ v("span", { className:
|
|
5129
|
+
/* @__PURE__ */ v("span", { className: q1(), children: t }),
|
|
5130
|
+
a && /* @__PURE__ */ v("span", { className: F1(), children: a })
|
|
5130
5131
|
] }),
|
|
5131
5132
|
/* @__PURE__ */ v("div", { className: V1({ variant: e }) }),
|
|
5132
5133
|
/* @__PURE__ */ V("div", { className: H1(), children: [
|
|
@@ -5163,7 +5164,7 @@ const I1 = N(
|
|
|
5163
5164
|
)
|
|
5164
5165
|
] })
|
|
5165
5166
|
] });
|
|
5166
|
-
},
|
|
5167
|
+
}, F5 = (r) => /* @__PURE__ */ v(
|
|
5167
5168
|
Zi,
|
|
5168
5169
|
{
|
|
5169
5170
|
position: "bottom-right",
|
|
@@ -5176,7 +5177,7 @@ const I1 = N(
|
|
|
5176
5177
|
...r
|
|
5177
5178
|
}
|
|
5178
5179
|
), H5 = {
|
|
5179
|
-
success: (r, e, t) =>
|
|
5180
|
+
success: (r, e, t) => g0.custom((a) => /* @__PURE__ */ v(
|
|
5180
5181
|
O0,
|
|
5181
5182
|
{
|
|
5182
5183
|
id: a,
|
|
@@ -5186,7 +5187,7 @@ const I1 = N(
|
|
|
5186
5187
|
action: t
|
|
5187
5188
|
}
|
|
5188
5189
|
)),
|
|
5189
|
-
error: (r, e, t) =>
|
|
5190
|
+
error: (r, e, t) => g0.custom((a) => /* @__PURE__ */ v(
|
|
5190
5191
|
O0,
|
|
5191
5192
|
{
|
|
5192
5193
|
id: a,
|
|
@@ -5196,7 +5197,7 @@ const I1 = N(
|
|
|
5196
5197
|
action: t
|
|
5197
5198
|
}
|
|
5198
5199
|
)),
|
|
5199
|
-
warning: (r, e, t) =>
|
|
5200
|
+
warning: (r, e, t) => g0.custom((a) => /* @__PURE__ */ v(
|
|
5200
5201
|
O0,
|
|
5201
5202
|
{
|
|
5202
5203
|
id: a,
|
|
@@ -5206,7 +5207,7 @@ const I1 = N(
|
|
|
5206
5207
|
action: t
|
|
5207
5208
|
}
|
|
5208
5209
|
)),
|
|
5209
|
-
info: (r, e, t) =>
|
|
5210
|
+
info: (r, e, t) => g0.custom((a) => /* @__PURE__ */ v(
|
|
5210
5211
|
O0,
|
|
5211
5212
|
{
|
|
5212
5213
|
id: a,
|
|
@@ -5216,7 +5217,7 @@ const I1 = N(
|
|
|
5216
5217
|
action: t
|
|
5217
5218
|
}
|
|
5218
5219
|
)),
|
|
5219
|
-
prompt: (r, e, t, a) =>
|
|
5220
|
+
prompt: (r, e, t, a) => g0.custom((n) => /* @__PURE__ */ v(
|
|
5220
5221
|
O0,
|
|
5221
5222
|
{
|
|
5222
5223
|
id: n,
|
|
@@ -5227,7 +5228,7 @@ const I1 = N(
|
|
|
5227
5228
|
secondaryAction: a
|
|
5228
5229
|
}
|
|
5229
5230
|
)),
|
|
5230
|
-
custom: (r) =>
|
|
5231
|
+
custom: (r) => g0.custom((e) => /* @__PURE__ */ v(O0, { id: e, ...r }))
|
|
5231
5232
|
}, W1 = N("flex items-center gap-3"), U1 = N(
|
|
5232
5233
|
"text-[var(--color-gray-1000)] font-medium select-none"
|
|
5233
5234
|
), j1 = N(
|
|
@@ -5516,9 +5517,9 @@ const sc = N("relative flex flex-col w-full"), ic = N(
|
|
|
5516
5517
|
onModelChange: z,
|
|
5517
5518
|
isUsingMagic: T = !1
|
|
5518
5519
|
}, D) => {
|
|
5519
|
-
var
|
|
5520
|
-
const [
|
|
5521
|
-
y ? y(_) :
|
|
5520
|
+
var qe, Fe;
|
|
5521
|
+
const [R, O] = Je(""), [P, j] = Je(!1), [F, B] = Je(!1), X = A0(null), ce = A0(null), ae = e !== void 0 ? e : R, ee = ae.trim().length > 0, ne = t.length > 0, fe = P ? "dragOver" : ne ? "withFiles" : F ? "active" : "default", ve = (_) => {
|
|
5522
|
+
y ? y(_) : O(_);
|
|
5522
5523
|
}, Me = (_) => {
|
|
5523
5524
|
ve(_.target.value), U();
|
|
5524
5525
|
}, U = Ve(() => {
|
|
@@ -5528,24 +5529,24 @@ const sc = N("relative flex flex-col w-full"), ic = N(
|
|
|
5528
5529
|
$r(() => {
|
|
5529
5530
|
U();
|
|
5530
5531
|
}, [ae, U]);
|
|
5531
|
-
const
|
|
5532
|
-
a || !ee && !
|
|
5533
|
-
}, [a, ee,
|
|
5534
|
-
_.key === "Enter" && !_.shiftKey && (_.preventDefault(),
|
|
5532
|
+
const a0 = Ve(() => {
|
|
5533
|
+
a || !ee && !ne || x && (x(ae, t), ve(""), X.current && (X.current.style.height = "auto"));
|
|
5534
|
+
}, [a, ee, ne, x, ae, t]), Re = (_) => {
|
|
5535
|
+
_.key === "Enter" && !_.shiftKey && (_.preventDefault(), a0());
|
|
5535
5536
|
}, Le = (_) => {
|
|
5536
5537
|
const He = Array.from(_.target.files || []);
|
|
5537
|
-
He.length > 0 && C && C(He),
|
|
5538
|
+
He.length > 0 && C && C(He), ce.current && (ce.current.value = "");
|
|
5538
5539
|
}, ke = () => {
|
|
5539
5540
|
var _;
|
|
5540
|
-
(_ =
|
|
5541
|
-
},
|
|
5542
|
-
_.preventDefault(), _.stopPropagation(),
|
|
5541
|
+
(_ = ce.current) == null || _.click();
|
|
5542
|
+
}, se = A0(0), xe = (_) => {
|
|
5543
|
+
_.preventDefault(), _.stopPropagation(), se.current += 1, se.current === 1 && j(!0);
|
|
5543
5544
|
}, Be = (_) => {
|
|
5544
|
-
_.preventDefault(), _.stopPropagation(),
|
|
5545
|
+
_.preventDefault(), _.stopPropagation(), se.current -= 1, se.current === 0 && j(!1);
|
|
5545
5546
|
}, M0 = (_) => {
|
|
5546
5547
|
_.preventDefault(), _.stopPropagation();
|
|
5547
|
-
},
|
|
5548
|
-
_.preventDefault(), _.stopPropagation(),
|
|
5548
|
+
}, ie = (_) => {
|
|
5549
|
+
_.preventDefault(), _.stopPropagation(), se.current = 0, j(!1);
|
|
5549
5550
|
const He = Array.from(_.dataTransfer.files);
|
|
5550
5551
|
He.length > 0 && C && C(He);
|
|
5551
5552
|
}, We = (_) => {
|
|
@@ -5599,10 +5600,10 @@ const sc = N("relative flex flex-col w-full"), ic = N(
|
|
|
5599
5600
|
onDragEnter: xe,
|
|
5600
5601
|
onDragLeave: Be,
|
|
5601
5602
|
onDragOver: M0,
|
|
5602
|
-
onDrop:
|
|
5603
|
+
onDrop: ie,
|
|
5603
5604
|
children: [
|
|
5604
5605
|
/* @__PURE__ */ v("div", { className: oc({ state: fe, variant: l }), children: /* @__PURE__ */ v("div", { className: lc(), children: /* @__PURE__ */ V("div", { className: cc(), children: [
|
|
5605
|
-
|
|
5606
|
+
ne && /* @__PURE__ */ v("div", { className: uc(), children: t.map((_) => /* @__PURE__ */ v(
|
|
5606
5607
|
Ml,
|
|
5607
5608
|
{
|
|
5608
5609
|
filename: _.filename,
|
|
@@ -5687,7 +5688,7 @@ const sc = N("relative flex flex-col w-full"), ic = N(
|
|
|
5687
5688
|
color: "inherit",
|
|
5688
5689
|
as: "span",
|
|
5689
5690
|
className: a || p ? "opacity-50" : void 0,
|
|
5690
|
-
children: ((
|
|
5691
|
+
children: ((qe = d.find((_) => _.id === h)) == null ? void 0 : qe.name) || ((Fe = d[0]) == null ? void 0 : Fe.name) || "Select model"
|
|
5691
5692
|
}
|
|
5692
5693
|
),
|
|
5693
5694
|
/* @__PURE__ */ v(Ui, { size: 10, color: "currentColor" })
|
|
@@ -5724,11 +5725,11 @@ const sc = N("relative flex flex-col w-full"), ic = N(
|
|
|
5724
5725
|
"button",
|
|
5725
5726
|
{
|
|
5726
5727
|
type: "button",
|
|
5727
|
-
onClick:
|
|
5728
|
+
onClick: a0,
|
|
5728
5729
|
className: vc({
|
|
5729
|
-
disabled: a || p || !ee && !
|
|
5730
|
+
disabled: a || p || !ee && !ne
|
|
5730
5731
|
}),
|
|
5731
|
-
disabled: a || p || !ee && !
|
|
5732
|
+
disabled: a || p || !ee && !ne,
|
|
5732
5733
|
"aria-label": p ? "Loading" : "Send message",
|
|
5733
5734
|
tabIndex: 0,
|
|
5734
5735
|
children: p ? /* @__PURE__ */ v(
|
|
@@ -5794,7 +5795,7 @@ const sc = N("relative flex flex-col w-full"), ic = N(
|
|
|
5794
5795
|
/* @__PURE__ */ v(
|
|
5795
5796
|
"input",
|
|
5796
5797
|
{
|
|
5797
|
-
ref:
|
|
5798
|
+
ref: ce,
|
|
5798
5799
|
type: "file",
|
|
5799
5800
|
multiple: !0,
|
|
5800
5801
|
onChange: Le,
|
|
@@ -6000,7 +6001,7 @@ function Pc({
|
|
|
6000
6001
|
},
|
|
6001
6002
|
caller: a
|
|
6002
6003
|
}) {
|
|
6003
|
-
const [n, s, i] =
|
|
6004
|
+
const [n, s, i] = qc({
|
|
6004
6005
|
defaultProp: e,
|
|
6005
6006
|
onChange: t
|
|
6006
6007
|
}), l = r !== void 0, u = l ? r : n;
|
|
@@ -6017,7 +6018,7 @@ function Pc({
|
|
|
6017
6018
|
(h) => {
|
|
6018
6019
|
var p;
|
|
6019
6020
|
if (l) {
|
|
6020
|
-
const y =
|
|
6021
|
+
const y = Fc(h) ? h(r) : h;
|
|
6021
6022
|
y !== r && ((p = i.current) == null || p.call(i, y));
|
|
6022
6023
|
} else
|
|
6023
6024
|
s(h);
|
|
@@ -6026,7 +6027,7 @@ function Pc({
|
|
|
6026
6027
|
);
|
|
6027
6028
|
return [u, d];
|
|
6028
6029
|
}
|
|
6029
|
-
function
|
|
6030
|
+
function qc({
|
|
6030
6031
|
defaultProp: r,
|
|
6031
6032
|
onChange: e
|
|
6032
6033
|
}) {
|
|
@@ -6038,7 +6039,7 @@ function Fc({
|
|
|
6038
6039
|
n.current !== t && ((i = s.current) == null || i.call(s, t), n.current = t);
|
|
6039
6040
|
}, [t, n]), [t, a, s];
|
|
6040
6041
|
}
|
|
6041
|
-
function
|
|
6042
|
+
function Fc(r) {
|
|
6042
6043
|
return typeof r == "function";
|
|
6043
6044
|
}
|
|
6044
6045
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -6103,7 +6104,7 @@ var Wc = [
|
|
|
6103
6104
|
"span",
|
|
6104
6105
|
"svg",
|
|
6105
6106
|
"ul"
|
|
6106
|
-
],
|
|
6107
|
+
], Qe = Wc.reduce((r, e) => {
|
|
6107
6108
|
const t = /* @__PURE__ */ rs(`Primitive.${e}`), a = M.forwardRef((n, s) => {
|
|
6108
6109
|
const { asChild: i, ...l } = n, u = i ? t : e;
|
|
6109
6110
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v(u, { ...l, ref: s });
|
|
@@ -6145,32 +6146,32 @@ var Xc = "DismissableLayer", Lr = "dismissableLayer.update", Yc = "dismissableLa
|
|
|
6145
6146
|
onInteractOutside: i,
|
|
6146
6147
|
onDismiss: l,
|
|
6147
6148
|
...u
|
|
6148
|
-
} = r, d = M.useContext(as), [h, p] = M.useState(null), y = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = M.useState({}), C = L0(e, (
|
|
6149
|
-
const B =
|
|
6150
|
-
!
|
|
6151
|
-
}, y), j = eu((
|
|
6152
|
-
const B =
|
|
6153
|
-
[...d.branches].some((
|
|
6149
|
+
} = r, d = M.useContext(as), [h, p] = M.useState(null), y = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = M.useState({}), C = L0(e, (F) => p(F)), S = Array.from(d.layers), [z] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), T = S.indexOf(z), D = h ? S.indexOf(h) : -1, R = d.layersWithOutsidePointerEventsDisabled.size > 0, O = D >= T, P = Qc((F) => {
|
|
6150
|
+
const B = F.target, X = [...d.branches].some((ce) => ce.contains(B));
|
|
6151
|
+
!O || X || (n == null || n(F), i == null || i(F), F.defaultPrevented || l == null || l());
|
|
6152
|
+
}, y), j = eu((F) => {
|
|
6153
|
+
const B = F.target;
|
|
6154
|
+
[...d.branches].some((ce) => ce.contains(B)) || (s == null || s(F), i == null || i(F), F.defaultPrevented || l == null || l());
|
|
6154
6155
|
}, y);
|
|
6155
|
-
return jc((
|
|
6156
|
-
D === d.layers.size - 1 && (a == null || a(
|
|
6156
|
+
return jc((F) => {
|
|
6157
|
+
D === d.layers.size - 1 && (a == null || a(F), !F.defaultPrevented && l && (F.preventDefault(), l()));
|
|
6157
6158
|
}, y), M.useEffect(() => {
|
|
6158
6159
|
if (h)
|
|
6159
|
-
return t && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Pa = y.body.style.pointerEvents, y.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(h)), d.layers.add(h),
|
|
6160
|
+
return t && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Pa = y.body.style.pointerEvents, y.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(h)), d.layers.add(h), qa(), () => {
|
|
6160
6161
|
t && d.layersWithOutsidePointerEventsDisabled.size === 1 && (y.body.style.pointerEvents = Pa);
|
|
6161
6162
|
};
|
|
6162
6163
|
}, [h, y, t, d]), M.useEffect(() => () => {
|
|
6163
|
-
h && (d.layers.delete(h), d.layersWithOutsidePointerEventsDisabled.delete(h),
|
|
6164
|
+
h && (d.layers.delete(h), d.layersWithOutsidePointerEventsDisabled.delete(h), qa());
|
|
6164
6165
|
}, [h, d]), M.useEffect(() => {
|
|
6165
|
-
const
|
|
6166
|
-
return document.addEventListener(Lr,
|
|
6166
|
+
const F = () => x({});
|
|
6167
|
+
return document.addEventListener(Lr, F), () => document.removeEventListener(Lr, F);
|
|
6167
6168
|
}, []), /* @__PURE__ */ v(
|
|
6168
|
-
|
|
6169
|
+
Qe.div,
|
|
6169
6170
|
{
|
|
6170
6171
|
...u,
|
|
6171
6172
|
ref: C,
|
|
6172
6173
|
style: {
|
|
6173
|
-
pointerEvents:
|
|
6174
|
+
pointerEvents: R ? O ? "auto" : "none" : void 0,
|
|
6174
6175
|
...r.style
|
|
6175
6176
|
},
|
|
6176
6177
|
onFocusCapture: x0(r.onFocusCapture, j.onFocusCapture),
|
|
@@ -6192,7 +6193,7 @@ var Kc = "DismissableLayerBranch", Jc = M.forwardRef((r, e) => {
|
|
|
6192
6193
|
return t.branches.add(s), () => {
|
|
6193
6194
|
t.branches.delete(s);
|
|
6194
6195
|
};
|
|
6195
|
-
}, [t.branches]), /* @__PURE__ */ v(
|
|
6196
|
+
}, [t.branches]), /* @__PURE__ */ v(Qe.div, { ...r, ref: n });
|
|
6196
6197
|
});
|
|
6197
6198
|
Jc.displayName = Kc;
|
|
6198
6199
|
function Qc(r, e = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -6239,7 +6240,7 @@ function eu(r, e = globalThis == null ? void 0 : globalThis.document) {
|
|
|
6239
6240
|
onBlurCapture: () => a.current = !1
|
|
6240
6241
|
};
|
|
6241
6242
|
}
|
|
6242
|
-
function
|
|
6243
|
+
function qa() {
|
|
6243
6244
|
const r = new CustomEvent(Lr);
|
|
6244
6245
|
document.dispatchEvent(r);
|
|
6245
6246
|
}
|
|
@@ -6247,7 +6248,7 @@ function ss(r, e, t, { discrete: a }) {
|
|
|
6247
6248
|
const n = t.originalEvent.target, s = new CustomEvent(r, { bubbles: !1, cancelable: !0, detail: t });
|
|
6248
6249
|
e && n.addEventListener(r, e, { once: !0 }), a ? Uc(n, s) : n.dispatchEvent(s);
|
|
6249
6250
|
}
|
|
6250
|
-
var ir = "focusScope.autoFocusOnMount", or = "focusScope.autoFocusOnUnmount",
|
|
6251
|
+
var ir = "focusScope.autoFocusOnMount", or = "focusScope.autoFocusOnUnmount", Fa = { bubbles: !1, cancelable: !0 }, tu = "FocusScope", is = M.forwardRef((r, e) => {
|
|
6251
6252
|
const {
|
|
6252
6253
|
loop: t = !1,
|
|
6253
6254
|
trapped: a = !1,
|
|
@@ -6265,18 +6266,18 @@ var ir = "focusScope.autoFocusOnMount", or = "focusScope.autoFocusOnUnmount", qa
|
|
|
6265
6266
|
}).current;
|
|
6266
6267
|
M.useEffect(() => {
|
|
6267
6268
|
if (a) {
|
|
6268
|
-
let S = function(
|
|
6269
|
+
let S = function(R) {
|
|
6269
6270
|
if (x.paused || !l) return;
|
|
6270
|
-
const
|
|
6271
|
-
l.contains(
|
|
6272
|
-
}, z = function(
|
|
6271
|
+
const O = R.target;
|
|
6272
|
+
l.contains(O) ? p.current = O : v0(p.current, { select: !0 });
|
|
6273
|
+
}, z = function(R) {
|
|
6273
6274
|
if (x.paused || !l) return;
|
|
6274
|
-
const
|
|
6275
|
-
|
|
6276
|
-
}, T = function(
|
|
6275
|
+
const O = R.relatedTarget;
|
|
6276
|
+
O !== null && (l.contains(O) || v0(p.current, { select: !0 }));
|
|
6277
|
+
}, T = function(R) {
|
|
6277
6278
|
if (document.activeElement === document.body)
|
|
6278
|
-
for (const P of
|
|
6279
|
-
P.removedNodes.length > 0 &&
|
|
6279
|
+
for (const P of R)
|
|
6280
|
+
P.removedNodes.length > 0 && v0(l);
|
|
6280
6281
|
};
|
|
6281
6282
|
document.addEventListener("focusin", S), document.addEventListener("focusout", z);
|
|
6282
6283
|
const D = new MutationObserver(T);
|
|
@@ -6289,13 +6290,13 @@ var ir = "focusScope.autoFocusOnMount", or = "focusScope.autoFocusOnUnmount", qa
|
|
|
6289
6290
|
Va.add(x);
|
|
6290
6291
|
const S = document.activeElement;
|
|
6291
6292
|
if (!l.contains(S)) {
|
|
6292
|
-
const T = new CustomEvent(ir,
|
|
6293
|
-
l.addEventListener(ir, d), l.dispatchEvent(T), T.defaultPrevented || (ru(ou(os(l)), { select: !0 }), document.activeElement === S &&
|
|
6293
|
+
const T = new CustomEvent(ir, Fa);
|
|
6294
|
+
l.addEventListener(ir, d), l.dispatchEvent(T), T.defaultPrevented || (ru(ou(os(l)), { select: !0 }), document.activeElement === S && v0(l));
|
|
6294
6295
|
}
|
|
6295
6296
|
return () => {
|
|
6296
6297
|
l.removeEventListener(ir, d), setTimeout(() => {
|
|
6297
|
-
const T = new CustomEvent(or,
|
|
6298
|
-
l.addEventListener(or, h), l.dispatchEvent(T), T.defaultPrevented ||
|
|
6298
|
+
const T = new CustomEvent(or, Fa);
|
|
6299
|
+
l.addEventListener(or, h), l.dispatchEvent(T), T.defaultPrevented || v0(S ?? document.body, { select: !0 }), l.removeEventListener(or, h), Va.remove(x);
|
|
6299
6300
|
}, 0);
|
|
6300
6301
|
};
|
|
6301
6302
|
}
|
|
@@ -6305,19 +6306,19 @@ var ir = "focusScope.autoFocusOnMount", or = "focusScope.autoFocusOnUnmount", qa
|
|
|
6305
6306
|
if (!t && !a || x.paused) return;
|
|
6306
6307
|
const z = S.key === "Tab" && !S.altKey && !S.ctrlKey && !S.metaKey, T = document.activeElement;
|
|
6307
6308
|
if (z && T) {
|
|
6308
|
-
const D = S.currentTarget, [
|
|
6309
|
-
|
|
6309
|
+
const D = S.currentTarget, [R, O] = au(D);
|
|
6310
|
+
R && O ? !S.shiftKey && T === O ? (S.preventDefault(), t && v0(R, { select: !0 })) : S.shiftKey && T === R && (S.preventDefault(), t && v0(O, { select: !0 })) : T === D && S.preventDefault();
|
|
6310
6311
|
}
|
|
6311
6312
|
},
|
|
6312
6313
|
[t, a, x.paused]
|
|
6313
6314
|
);
|
|
6314
|
-
return /* @__PURE__ */ v(
|
|
6315
|
+
return /* @__PURE__ */ v(Qe.div, { tabIndex: -1, ...i, ref: y, onKeyDown: C });
|
|
6315
6316
|
});
|
|
6316
6317
|
is.displayName = tu;
|
|
6317
6318
|
function ru(r, { select: e = !1 } = {}) {
|
|
6318
6319
|
const t = document.activeElement;
|
|
6319
6320
|
for (const a of r)
|
|
6320
|
-
if (
|
|
6321
|
+
if (v0(a, { select: e }), document.activeElement !== t) return;
|
|
6321
6322
|
}
|
|
6322
6323
|
function au(r) {
|
|
6323
6324
|
const e = os(r), t = Ha(e, r), a = Ha(e.reverse(), r);
|
|
@@ -6349,7 +6350,7 @@ function nu(r, { upTo: e }) {
|
|
|
6349
6350
|
function su(r) {
|
|
6350
6351
|
return r instanceof HTMLInputElement && "select" in r;
|
|
6351
6352
|
}
|
|
6352
|
-
function
|
|
6353
|
+
function v0(r, { select: e = !1 } = {}) {
|
|
6353
6354
|
if (r && r.focus) {
|
|
6354
6355
|
const t = document.activeElement;
|
|
6355
6356
|
r.focus({ preventScroll: !0 }), r !== t && su(r) && e && r.select();
|
|
@@ -6381,7 +6382,7 @@ var lu = "Portal", ls = M.forwardRef((r, e) => {
|
|
|
6381
6382
|
const { container: t, ...a } = r, [n, s] = M.useState(!1);
|
|
6382
6383
|
rt(() => s(!0), []);
|
|
6383
6384
|
const i = t || n && ((l = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : l.body);
|
|
6384
|
-
return i ? Ji.createPortal(/* @__PURE__ */ v(
|
|
6385
|
+
return i ? Ji.createPortal(/* @__PURE__ */ v(Qe.div, { ...a, ref: e }), i) : null;
|
|
6385
6386
|
});
|
|
6386
6387
|
ls.displayName = lu;
|
|
6387
6388
|
function cu(r, e) {
|
|
@@ -6462,14 +6463,14 @@ function Ga() {
|
|
|
6462
6463
|
const r = document.createElement("span");
|
|
6463
6464
|
return r.setAttribute("data-radix-focus-guard", ""), r.tabIndex = 0, r.style.outline = "none", r.style.opacity = "0", r.style.position = "fixed", r.style.pointerEvents = "none", r;
|
|
6464
6465
|
}
|
|
6465
|
-
var
|
|
6466
|
-
return
|
|
6466
|
+
var Ye = function() {
|
|
6467
|
+
return Ye = Object.assign || function(e) {
|
|
6467
6468
|
for (var t, a = 1, n = arguments.length; a < n; a++) {
|
|
6468
6469
|
t = arguments[a];
|
|
6469
6470
|
for (var s in t) Object.prototype.hasOwnProperty.call(t, s) && (e[s] = t[s]);
|
|
6470
6471
|
}
|
|
6471
6472
|
return e;
|
|
6472
|
-
},
|
|
6473
|
+
}, Ye.apply(this, arguments);
|
|
6473
6474
|
};
|
|
6474
6475
|
function cs(r, e) {
|
|
6475
6476
|
var t = {};
|
|
@@ -6489,7 +6490,7 @@ function cr(r, e) {
|
|
|
6489
6490
|
return typeof r == "function" ? r(e) : r && (r.current = e), r;
|
|
6490
6491
|
}
|
|
6491
6492
|
function vu(r, e) {
|
|
6492
|
-
var t =
|
|
6493
|
+
var t = Je(function() {
|
|
6493
6494
|
return {
|
|
6494
6495
|
// value
|
|
6495
6496
|
value: r,
|
|
@@ -6590,7 +6591,7 @@ function xu(r, e) {
|
|
|
6590
6591
|
function wu(r) {
|
|
6591
6592
|
r === void 0 && (r = {});
|
|
6592
6593
|
var e = xu(null);
|
|
6593
|
-
return e.options =
|
|
6594
|
+
return e.options = Ye({ async: !0, ssr: !1 }, r), e;
|
|
6594
6595
|
}
|
|
6595
6596
|
var us = function(r) {
|
|
6596
6597
|
var e = r.sideCar, t = cs(r, ["sideCar"]);
|
|
@@ -6599,7 +6600,7 @@ var us = function(r) {
|
|
|
6599
6600
|
var a = e.read();
|
|
6600
6601
|
if (!a)
|
|
6601
6602
|
throw new Error("Sidecar medium not found");
|
|
6602
|
-
return M.createElement(a,
|
|
6603
|
+
return M.createElement(a, Ye({}, t));
|
|
6603
6604
|
};
|
|
6604
6605
|
us.isSideCarExport = !0;
|
|
6605
6606
|
function Su(r, e) {
|
|
@@ -6611,12 +6612,12 @@ var ds = wu(), ur = function() {
|
|
|
6611
6612
|
onScrollCapture: ur,
|
|
6612
6613
|
onWheelCapture: ur,
|
|
6613
6614
|
onTouchMoveCapture: ur
|
|
6614
|
-
}), n = a[0], s = a[1], i = r.forwardProps, l = r.children, u = r.className, d = r.removeScrollBar, h = r.enabled, p = r.shards, y = r.sideCar, x = r.noRelative, C = r.noIsolation, S = r.inert, z = r.allowPinchZoom, T = r.as, D = T === void 0 ? "div" : T,
|
|
6615
|
+
}), n = a[0], s = a[1], i = r.forwardProps, l = r.children, u = r.className, d = r.removeScrollBar, h = r.enabled, p = r.shards, y = r.sideCar, x = r.noRelative, C = r.noIsolation, S = r.inert, z = r.allowPinchZoom, T = r.as, D = T === void 0 ? "div" : T, R = r.gapMode, O = cs(r, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), P = y, j = bu([t, e]), F = Ye(Ye({}, O), n);
|
|
6615
6616
|
return M.createElement(
|
|
6616
6617
|
M.Fragment,
|
|
6617
6618
|
null,
|
|
6618
|
-
h && M.createElement(P, { sideCar: ds, removeScrollBar: d, shards: p, noRelative: x, noIsolation: C, inert: S, setCallbacks: s, allowPinchZoom: !!z, lockRef: t, gapMode:
|
|
6619
|
-
i ? M.cloneElement(M.Children.only(l),
|
|
6619
|
+
h && M.createElement(P, { sideCar: ds, removeScrollBar: d, shards: p, noRelative: x, noIsolation: C, inert: S, setCallbacks: s, allowPinchZoom: !!z, lockRef: t, gapMode: R }),
|
|
6620
|
+
i ? M.cloneElement(M.Children.only(l), Ye(Ye({}, F), { ref: j })) : M.createElement(D, Ye({}, F, { className: u, ref: j }), l)
|
|
6620
6621
|
);
|
|
6621
6622
|
});
|
|
6622
6623
|
$t.defaultProps = {
|
|
@@ -6778,7 +6779,7 @@ var P0 = Br ? { passive: !1 } : !1, Ou = function(r) {
|
|
|
6778
6779
|
);
|
|
6779
6780
|
}, Pu = function(r) {
|
|
6780
6781
|
return hs(r, "overflowY");
|
|
6781
|
-
},
|
|
6782
|
+
}, qu = function(r) {
|
|
6782
6783
|
return hs(r, "overflowX");
|
|
6783
6784
|
}, Ua = function(r, e) {
|
|
6784
6785
|
var t = e.ownerDocument, a = e;
|
|
@@ -6793,7 +6794,7 @@ var P0 = Br ? { passive: !1 } : !1, Ou = function(r) {
|
|
|
6793
6794
|
a = a.parentNode;
|
|
6794
6795
|
} while (a && a !== t.body);
|
|
6795
6796
|
return !1;
|
|
6796
|
-
},
|
|
6797
|
+
}, Fu = function(r) {
|
|
6797
6798
|
var e = r.scrollTop, t = r.scrollHeight, a = r.clientHeight;
|
|
6798
6799
|
return [
|
|
6799
6800
|
e,
|
|
@@ -6808,9 +6809,9 @@ var P0 = Br ? { passive: !1 } : !1, Ou = function(r) {
|
|
|
6808
6809
|
a
|
|
6809
6810
|
];
|
|
6810
6811
|
}, fs = function(r, e) {
|
|
6811
|
-
return r === "v" ? Pu(e) :
|
|
6812
|
+
return r === "v" ? Pu(e) : qu(e);
|
|
6812
6813
|
}, ps = function(r, e) {
|
|
6813
|
-
return r === "v" ?
|
|
6814
|
+
return r === "v" ? Fu(e) : Hu(e);
|
|
6814
6815
|
}, Vu = function(r, e) {
|
|
6815
6816
|
return r === "h" && e === "rtl" ? -1 : 1;
|
|
6816
6817
|
}, _u = function(r, e, t, a, n) {
|
|
@@ -6841,7 +6842,7 @@ var P0 = Br ? { passive: !1 } : !1, Ou = function(r) {
|
|
|
6841
6842
|
.block-interactivity-`.concat(r, ` {pointer-events: none;}
|
|
6842
6843
|
.allow-interactivity-`).concat(r, ` {pointer-events: all;}
|
|
6843
6844
|
`);
|
|
6844
|
-
}, Wu = 0,
|
|
6845
|
+
}, Wu = 0, q0 = [];
|
|
6845
6846
|
function Uu(r) {
|
|
6846
6847
|
var e = M.useRef([]), t = M.useRef([0, 0]), a = M.useRef(), n = M.useState(Wu++)[0], s = M.useState(ms)[0], i = M.useRef(r);
|
|
6847
6848
|
M.useEffect(function() {
|
|
@@ -6862,21 +6863,21 @@ function Uu(r) {
|
|
|
6862
6863
|
var l = M.useCallback(function(S, z) {
|
|
6863
6864
|
if ("touches" in S && S.touches.length === 2 || S.type === "wheel" && S.ctrlKey)
|
|
6864
6865
|
return !i.current.allowPinchZoom;
|
|
6865
|
-
var T = yt(S), D = t.current,
|
|
6866
|
-
if ("touches" in S &&
|
|
6866
|
+
var T = yt(S), D = t.current, R = "deltaX" in S ? S.deltaX : D[0] - T[0], O = "deltaY" in S ? S.deltaY : D[1] - T[1], P, j = S.target, F = Math.abs(R) > Math.abs(O) ? "h" : "v";
|
|
6867
|
+
if ("touches" in S && F === "h" && j.type === "range")
|
|
6867
6868
|
return !1;
|
|
6868
|
-
var B = Ua(
|
|
6869
|
+
var B = Ua(F, j);
|
|
6869
6870
|
if (!B)
|
|
6870
6871
|
return !0;
|
|
6871
|
-
if (B ? P =
|
|
6872
|
+
if (B ? P = F : (P = F === "v" ? "h" : "v", B = Ua(F, j)), !B)
|
|
6872
6873
|
return !1;
|
|
6873
|
-
if (!a.current && "changedTouches" in S && (
|
|
6874
|
+
if (!a.current && "changedTouches" in S && (R || O) && (a.current = P), !P)
|
|
6874
6875
|
return !0;
|
|
6875
6876
|
var X = a.current || P;
|
|
6876
|
-
return _u(X, z, S, X === "h" ?
|
|
6877
|
+
return _u(X, z, S, X === "h" ? R : O);
|
|
6877
6878
|
}, []), u = M.useCallback(function(S) {
|
|
6878
6879
|
var z = S;
|
|
6879
|
-
if (!(!
|
|
6880
|
+
if (!(!q0.length || q0[q0.length - 1] !== s)) {
|
|
6880
6881
|
var T = "deltaY" in z ? ja(z) : yt(z), D = e.current.filter(function(P) {
|
|
6881
6882
|
return P.name === z.type && (P.target === z.target || z.target === P.shadowParent) && Gu(P.delta, T);
|
|
6882
6883
|
})[0];
|
|
@@ -6885,17 +6886,17 @@ function Uu(r) {
|
|
|
6885
6886
|
return;
|
|
6886
6887
|
}
|
|
6887
6888
|
if (!D) {
|
|
6888
|
-
var
|
|
6889
|
+
var R = (i.current.shards || []).map(Xa).filter(Boolean).filter(function(P) {
|
|
6889
6890
|
return P.contains(z.target);
|
|
6890
|
-
}),
|
|
6891
|
-
|
|
6891
|
+
}), O = R.length > 0 ? l(z, R[0]) : !i.current.noIsolation;
|
|
6892
|
+
O && z.cancelable && z.preventDefault();
|
|
6892
6893
|
}
|
|
6893
6894
|
}
|
|
6894
6895
|
}, []), d = M.useCallback(function(S, z, T, D) {
|
|
6895
|
-
var
|
|
6896
|
-
e.current.push(
|
|
6897
|
-
e.current = e.current.filter(function(
|
|
6898
|
-
return
|
|
6896
|
+
var R = { name: S, delta: z, target: T, should: D, shadowParent: ju(T) };
|
|
6897
|
+
e.current.push(R), setTimeout(function() {
|
|
6898
|
+
e.current = e.current.filter(function(O) {
|
|
6899
|
+
return O !== R;
|
|
6899
6900
|
});
|
|
6900
6901
|
}, 1);
|
|
6901
6902
|
}, []), h = M.useCallback(function(S) {
|
|
@@ -6906,12 +6907,12 @@ function Uu(r) {
|
|
|
6906
6907
|
d(S.type, yt(S), S.target, l(S, r.lockRef.current));
|
|
6907
6908
|
}, []);
|
|
6908
6909
|
M.useEffect(function() {
|
|
6909
|
-
return
|
|
6910
|
+
return q0.push(s), r.setCallbacks({
|
|
6910
6911
|
onScrollCapture: p,
|
|
6911
6912
|
onWheelCapture: p,
|
|
6912
6913
|
onTouchMoveCapture: y
|
|
6913
6914
|
}), document.addEventListener("wheel", u, P0), document.addEventListener("touchmove", u, P0), document.addEventListener("touchstart", h, P0), function() {
|
|
6914
|
-
|
|
6915
|
+
q0 = q0.filter(function(S) {
|
|
6915
6916
|
return S !== s;
|
|
6916
6917
|
}), document.removeEventListener("wheel", u, P0), document.removeEventListener("touchmove", u, P0), document.removeEventListener("touchstart", h, P0);
|
|
6917
6918
|
};
|
|
@@ -6931,7 +6932,7 @@ function ju(r) {
|
|
|
6931
6932
|
}
|
|
6932
6933
|
const Xu = Su(ds, Uu);
|
|
6933
6934
|
var vs = M.forwardRef(function(r, e) {
|
|
6934
|
-
return M.createElement($t,
|
|
6935
|
+
return M.createElement($t, Ye({}, r, { ref: e, sideCar: Xu }));
|
|
6935
6936
|
});
|
|
6936
6937
|
vs.classNames = $t.classNames;
|
|
6937
6938
|
var Yu = function(r) {
|
|
@@ -6939,7 +6940,7 @@ var Yu = function(r) {
|
|
|
6939
6940
|
return null;
|
|
6940
6941
|
var e = Array.isArray(r) ? r[0] : r;
|
|
6941
6942
|
return e.ownerDocument.body;
|
|
6942
|
-
},
|
|
6943
|
+
}, F0 = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), wt = {}, mr = 0, gs = function(r) {
|
|
6943
6944
|
return r && (r.host || gs(r.parentNode));
|
|
6944
6945
|
}, Zu = function(r, e) {
|
|
6945
6946
|
return e.map(function(t) {
|
|
@@ -6963,8 +6964,8 @@ var Yu = function(r) {
|
|
|
6963
6964
|
h(y);
|
|
6964
6965
|
else
|
|
6965
6966
|
try {
|
|
6966
|
-
var x = y.getAttribute(a), C = x !== null && x !== "false", S = (
|
|
6967
|
-
|
|
6967
|
+
var x = y.getAttribute(a), C = x !== null && x !== "false", S = (F0.get(y) || 0) + 1, z = (s.get(y) || 0) + 1;
|
|
6968
|
+
F0.set(y, S), s.set(y, z), i.push(y), S === 1 && C && xt.set(y, !0), z === 1 && y.setAttribute(t, "true"), C || y.setAttribute(a, "true");
|
|
6968
6969
|
} catch (T) {
|
|
6969
6970
|
console.error("aria-hidden: cannot operate on ", y, T);
|
|
6970
6971
|
}
|
|
@@ -6972,9 +6973,9 @@ var Yu = function(r) {
|
|
|
6972
6973
|
};
|
|
6973
6974
|
return h(e), l.clear(), mr++, function() {
|
|
6974
6975
|
i.forEach(function(p) {
|
|
6975
|
-
var y =
|
|
6976
|
-
|
|
6977
|
-
}), mr--, mr || (
|
|
6976
|
+
var y = F0.get(p) - 1, x = s.get(p) - 1;
|
|
6977
|
+
F0.set(p, y), s.set(p, x), y || (xt.has(p) || p.removeAttribute(a), xt.delete(p)), x || p.removeAttribute(t);
|
|
6978
|
+
}), mr--, mr || (F0 = /* @__PURE__ */ new WeakMap(), F0 = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), wt = {});
|
|
6978
6979
|
};
|
|
6979
6980
|
}, Ju = function(r, e, t) {
|
|
6980
6981
|
t === void 0 && (t = "data-aria-hidden");
|
|
@@ -6982,7 +6983,7 @@ var Yu = function(r) {
|
|
|
6982
6983
|
return n ? (a.push.apply(a, Array.from(n.querySelectorAll("[aria-live], script"))), Ku(a, n, t, "aria-hidden")) : function() {
|
|
6983
6984
|
return null;
|
|
6984
6985
|
};
|
|
6985
|
-
}, Wt = "Dialog", [bs] = Rc(Wt), [Qu,
|
|
6986
|
+
}, Wt = "Dialog", [bs] = Rc(Wt), [Qu, je] = bs(Wt), ys = (r) => {
|
|
6986
6987
|
const {
|
|
6987
6988
|
__scopeDialog: e,
|
|
6988
6989
|
children: t,
|
|
@@ -7016,9 +7017,9 @@ var Yu = function(r) {
|
|
|
7016
7017
|
ys.displayName = Wt;
|
|
7017
7018
|
var xs = "DialogTrigger", e4 = M.forwardRef(
|
|
7018
7019
|
(r, e) => {
|
|
7019
|
-
const { __scopeDialog: t, ...a } = r, n =
|
|
7020
|
+
const { __scopeDialog: t, ...a } = r, n = je(xs, t), s = L0(e, n.triggerRef);
|
|
7020
7021
|
return /* @__PURE__ */ v(
|
|
7021
|
-
|
|
7022
|
+
Qe.button,
|
|
7022
7023
|
{
|
|
7023
7024
|
type: "button",
|
|
7024
7025
|
"aria-haspopup": "dialog",
|
|
@@ -7036,25 +7037,25 @@ e4.displayName = xs;
|
|
|
7036
7037
|
var Kr = "DialogPortal", [t4, ws] = bs(Kr, {
|
|
7037
7038
|
forceMount: void 0
|
|
7038
7039
|
}), Ss = (r) => {
|
|
7039
|
-
const { __scopeDialog: e, forceMount: t, children: a, container: n } = r, s =
|
|
7040
|
+
const { __scopeDialog: e, forceMount: t, children: a, container: n } = r, s = je(Kr, e);
|
|
7040
7041
|
return /* @__PURE__ */ v(t4, { scope: e, forceMount: t, children: M.Children.map(a, (i) => /* @__PURE__ */ v(Gt, { present: t || s.open, children: /* @__PURE__ */ v(ls, { asChild: !0, container: n, children: i }) })) });
|
|
7041
7042
|
};
|
|
7042
7043
|
Ss.displayName = Kr;
|
|
7043
7044
|
var Ot = "DialogOverlay", ks = M.forwardRef(
|
|
7044
7045
|
(r, e) => {
|
|
7045
|
-
const t = ws(Ot, r.__scopeDialog), { forceMount: a = t.forceMount, ...n } = r, s =
|
|
7046
|
+
const t = ws(Ot, r.__scopeDialog), { forceMount: a = t.forceMount, ...n } = r, s = je(Ot, r.__scopeDialog);
|
|
7046
7047
|
return s.modal ? /* @__PURE__ */ v(Gt, { present: a || s.open, children: /* @__PURE__ */ v(a4, { ...n, ref: e }) }) : null;
|
|
7047
7048
|
}
|
|
7048
7049
|
);
|
|
7049
7050
|
ks.displayName = Ot;
|
|
7050
7051
|
var r4 = /* @__PURE__ */ rs("DialogOverlay.RemoveScroll"), a4 = M.forwardRef(
|
|
7051
7052
|
(r, e) => {
|
|
7052
|
-
const { __scopeDialog: t, ...a } = r, n =
|
|
7053
|
+
const { __scopeDialog: t, ...a } = r, n = je(Ot, t);
|
|
7053
7054
|
return (
|
|
7054
7055
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
7055
7056
|
// ie. when `Overlay` and `Content` are siblings
|
|
7056
7057
|
/* @__PURE__ */ v(vs, { as: r4, allowPinchZoom: !0, shards: [n.contentRef], children: /* @__PURE__ */ v(
|
|
7057
|
-
|
|
7058
|
+
Qe.div,
|
|
7058
7059
|
{
|
|
7059
7060
|
"data-state": Qr(n.open),
|
|
7060
7061
|
...a,
|
|
@@ -7066,14 +7067,14 @@ var r4 = /* @__PURE__ */ rs("DialogOverlay.RemoveScroll"), a4 = M.forwardRef(
|
|
|
7066
7067
|
}
|
|
7067
7068
|
), E0 = "DialogContent", Cs = M.forwardRef(
|
|
7068
7069
|
(r, e) => {
|
|
7069
|
-
const t = ws(E0, r.__scopeDialog), { forceMount: a = t.forceMount, ...n } = r, s =
|
|
7070
|
+
const t = ws(E0, r.__scopeDialog), { forceMount: a = t.forceMount, ...n } = r, s = je(E0, r.__scopeDialog);
|
|
7070
7071
|
return /* @__PURE__ */ v(Gt, { present: a || s.open, children: s.modal ? /* @__PURE__ */ v(n4, { ...n, ref: e }) : /* @__PURE__ */ v(s4, { ...n, ref: e }) });
|
|
7071
7072
|
}
|
|
7072
7073
|
);
|
|
7073
7074
|
Cs.displayName = E0;
|
|
7074
7075
|
var n4 = M.forwardRef(
|
|
7075
7076
|
(r, e) => {
|
|
7076
|
-
const t =
|
|
7077
|
+
const t = je(E0, r.__scopeDialog), a = M.useRef(null), n = L0(e, t.contentRef, a);
|
|
7077
7078
|
return M.useEffect(() => {
|
|
7078
7079
|
const s = a.current;
|
|
7079
7080
|
if (s) return Ju(s);
|
|
@@ -7101,7 +7102,7 @@ var n4 = M.forwardRef(
|
|
|
7101
7102
|
}
|
|
7102
7103
|
), s4 = M.forwardRef(
|
|
7103
7104
|
(r, e) => {
|
|
7104
|
-
const t =
|
|
7105
|
+
const t = je(E0, r.__scopeDialog), a = M.useRef(!1), n = M.useRef(!1);
|
|
7105
7106
|
return /* @__PURE__ */ v(
|
|
7106
7107
|
Ms,
|
|
7107
7108
|
{
|
|
@@ -7124,7 +7125,7 @@ var n4 = M.forwardRef(
|
|
|
7124
7125
|
}
|
|
7125
7126
|
), Ms = M.forwardRef(
|
|
7126
7127
|
(r, e) => {
|
|
7127
|
-
const { __scopeDialog: t, trapFocus: a, onOpenAutoFocus: n, onCloseAutoFocus: s, ...i } = r, l =
|
|
7128
|
+
const { __scopeDialog: t, trapFocus: a, onOpenAutoFocus: n, onCloseAutoFocus: s, ...i } = r, l = je(E0, t), u = M.useRef(null), d = L0(e, u);
|
|
7128
7129
|
return mu(), /* @__PURE__ */ V(Q0, { children: [
|
|
7129
7130
|
/* @__PURE__ */ v(
|
|
7130
7131
|
is,
|
|
@@ -7157,23 +7158,23 @@ var n4 = M.forwardRef(
|
|
|
7157
7158
|
}
|
|
7158
7159
|
), Jr = "DialogTitle", zs = M.forwardRef(
|
|
7159
7160
|
(r, e) => {
|
|
7160
|
-
const { __scopeDialog: t, ...a } = r, n =
|
|
7161
|
-
return /* @__PURE__ */ v(
|
|
7161
|
+
const { __scopeDialog: t, ...a } = r, n = je(Jr, t);
|
|
7162
|
+
return /* @__PURE__ */ v(Qe.h2, { id: n.titleId, ...a, ref: e });
|
|
7162
7163
|
}
|
|
7163
7164
|
);
|
|
7164
7165
|
zs.displayName = Jr;
|
|
7165
7166
|
var Ns = "DialogDescription", Ts = M.forwardRef(
|
|
7166
7167
|
(r, e) => {
|
|
7167
|
-
const { __scopeDialog: t, ...a } = r, n =
|
|
7168
|
-
return /* @__PURE__ */ v(
|
|
7168
|
+
const { __scopeDialog: t, ...a } = r, n = je(Ns, t);
|
|
7169
|
+
return /* @__PURE__ */ v(Qe.p, { id: n.descriptionId, ...a, ref: e });
|
|
7169
7170
|
}
|
|
7170
7171
|
);
|
|
7171
7172
|
Ts.displayName = Ns;
|
|
7172
7173
|
var As = "DialogClose", Ds = M.forwardRef(
|
|
7173
7174
|
(r, e) => {
|
|
7174
|
-
const { __scopeDialog: t, ...a } = r, n =
|
|
7175
|
+
const { __scopeDialog: t, ...a } = r, n = je(As, t);
|
|
7175
7176
|
return /* @__PURE__ */ v(
|
|
7176
|
-
|
|
7177
|
+
Qe.button,
|
|
7177
7178
|
{
|
|
7178
7179
|
type: "button",
|
|
7179
7180
|
...a,
|
|
@@ -7221,7 +7222,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
7221
7222
|
wordWrap: "normal"
|
|
7222
7223
|
}), v4 = "VisuallyHidden", Ls = M.forwardRef(
|
|
7223
7224
|
(r, e) => /* @__PURE__ */ v(
|
|
7224
|
-
|
|
7225
|
+
Qe.span,
|
|
7225
7226
|
{
|
|
7226
7227
|
...r,
|
|
7227
7228
|
ref: e,
|
|
@@ -7292,23 +7293,23 @@ const b4 = N(
|
|
|
7292
7293
|
footerClassName: z,
|
|
7293
7294
|
size: T = "md"
|
|
7294
7295
|
}) => {
|
|
7295
|
-
const D = Tr(),
|
|
7296
|
-
(
|
|
7297
|
-
e(
|
|
7296
|
+
const D = Tr(), R = Tr(), O = A0(null), P = A0(null), j = Ve(
|
|
7297
|
+
(ne) => {
|
|
7298
|
+
e(ne), ne || p == null || p();
|
|
7298
7299
|
},
|
|
7299
7300
|
[e, p]
|
|
7300
|
-
),
|
|
7301
|
+
), F = Ve(async () => {
|
|
7301
7302
|
l != null && l.onClick && await l.onClick();
|
|
7302
7303
|
}, [l]), B = Ve(async () => {
|
|
7303
7304
|
u != null && u.onClick && await u.onClick();
|
|
7304
7305
|
}, [u]), X = Ve(
|
|
7305
|
-
(
|
|
7306
|
-
h ||
|
|
7306
|
+
(ne) => {
|
|
7307
|
+
h || ne.preventDefault();
|
|
7307
7308
|
},
|
|
7308
7309
|
[h]
|
|
7309
|
-
),
|
|
7310
|
-
(
|
|
7311
|
-
d ||
|
|
7310
|
+
), ce = Ve(
|
|
7311
|
+
(ne) => {
|
|
7312
|
+
d || ne.preventDefault();
|
|
7312
7313
|
},
|
|
7313
7314
|
[d]
|
|
7314
7315
|
), ae = t || a, ee = l || u;
|
|
@@ -7324,11 +7325,11 @@ const b4 = N(
|
|
|
7324
7325
|
{
|
|
7325
7326
|
className: W(y4({ size: T }), y),
|
|
7326
7327
|
onEscapeKeyDown: X,
|
|
7327
|
-
onPointerDownOutside:
|
|
7328
|
+
onPointerDownOutside: ce,
|
|
7328
7329
|
"aria-labelledby": D,
|
|
7329
|
-
"aria-describedby": a ?
|
|
7330
|
+
"aria-describedby": a ? R : void 0,
|
|
7330
7331
|
children: [
|
|
7331
|
-
!t && /* @__PURE__ */ v(
|
|
7332
|
+
!t && /* @__PURE__ */ v(g4, { children: /* @__PURE__ */ v(Ya, { id: D, children: "Modal dialog" }) }),
|
|
7332
7333
|
n && /* @__PURE__ */ v(f4, { asChild: !0, children: /* @__PURE__ */ v(
|
|
7333
7334
|
"button",
|
|
7334
7335
|
{
|
|
@@ -7342,7 +7343,7 @@ const b4 = N(
|
|
|
7342
7343
|
a && /* @__PURE__ */ v(
|
|
7343
7344
|
h4,
|
|
7344
7345
|
{
|
|
7345
|
-
id:
|
|
7346
|
+
id: R,
|
|
7346
7347
|
className: C4(),
|
|
7347
7348
|
children: a
|
|
7348
7349
|
}
|
|
@@ -7366,10 +7367,10 @@ const b4 = N(
|
|
|
7366
7367
|
l && /* @__PURE__ */ v(
|
|
7367
7368
|
et,
|
|
7368
7369
|
{
|
|
7369
|
-
ref:
|
|
7370
|
+
ref: O,
|
|
7370
7371
|
variant: l.variant || "primary",
|
|
7371
7372
|
size: "small",
|
|
7372
|
-
onClick:
|
|
7373
|
+
onClick: F,
|
|
7373
7374
|
disabled: l.disabled || l.loading,
|
|
7374
7375
|
startIcon: l.icon,
|
|
7375
7376
|
className: "flex-1",
|
|
@@ -7666,7 +7667,7 @@ class Oe {
|
|
|
7666
7667
|
return new Oe(t, De.range(this, e));
|
|
7667
7668
|
}
|
|
7668
7669
|
}
|
|
7669
|
-
class
|
|
7670
|
+
class L {
|
|
7670
7671
|
// Error start position based on passed-in Token or ParseNode.
|
|
7671
7672
|
// Length of affected text based on passed-in Token or ParseNode.
|
|
7672
7673
|
// The underlying error message without any context added.
|
|
@@ -7682,10 +7683,10 @@ class R {
|
|
|
7682
7683
|
s + 15 < l.length ? h = l.slice(s, s + 15) + "…" : h = l.slice(s), a += d + u + h;
|
|
7683
7684
|
}
|
|
7684
7685
|
var p = new Error(a);
|
|
7685
|
-
return p.name = "ParseError", p.__proto__ =
|
|
7686
|
+
return p.name = "ParseError", p.__proto__ = L.prototype, p.position = n, n != null && s != null && (p.length = s - n), p.rawMessage = e, p;
|
|
7686
7687
|
}
|
|
7687
7688
|
}
|
|
7688
|
-
|
|
7689
|
+
L.prototype.__proto__ = Error.prototype;
|
|
7689
7690
|
var A4 = function(e, t) {
|
|
7690
7691
|
return e === void 0 ? t : e;
|
|
7691
7692
|
}, D4 = /([A-Z])/g, E4 = function(e) {
|
|
@@ -7806,7 +7807,7 @@ var Bs = function r(e) {
|
|
|
7806
7807
|
cli: !1
|
|
7807
7808
|
}
|
|
7808
7809
|
};
|
|
7809
|
-
function
|
|
7810
|
+
function q4(r) {
|
|
7810
7811
|
if (r.default)
|
|
7811
7812
|
return r.default;
|
|
7812
7813
|
var e = r.type, t = Array.isArray(e) ? e[0] : e;
|
|
@@ -7829,7 +7830,7 @@ class ea {
|
|
|
7829
7830
|
for (var t in Lt)
|
|
7830
7831
|
if (Lt.hasOwnProperty(t)) {
|
|
7831
7832
|
var a = Lt[t];
|
|
7832
|
-
this[t] = e[t] !== void 0 ? a.processor ? a.processor(e[t]) : e[t] :
|
|
7833
|
+
this[t] = e[t] !== void 0 ? a.processor ? a.processor(e[t]) : e[t] : q4(a);
|
|
7833
7834
|
}
|
|
7834
7835
|
}
|
|
7835
7836
|
/**
|
|
@@ -7840,7 +7841,7 @@ class ea {
|
|
|
7840
7841
|
var n = this.strict;
|
|
7841
7842
|
if (typeof n == "function" && (n = n(e, t, a)), !(!n || n === "ignore")) {
|
|
7842
7843
|
if (n === !0 || n === "error")
|
|
7843
|
-
throw new
|
|
7844
|
+
throw new L("LaTeX-incompatible input and strict mode is set to 'error': " + (t + " [" + e + "]"), a);
|
|
7844
7845
|
n === "warn" ? typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (t + " [" + e + "]")) : typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to " + ("unrecognized '" + n + "': " + t + " [" + e + "]"));
|
|
7845
7846
|
}
|
|
7846
7847
|
}
|
|
@@ -7881,7 +7882,7 @@ class ea {
|
|
|
7881
7882
|
return !!a;
|
|
7882
7883
|
}
|
|
7883
7884
|
}
|
|
7884
|
-
class
|
|
7885
|
+
class f0 {
|
|
7885
7886
|
constructor(e, t, a) {
|
|
7886
7887
|
this.id = void 0, this.size = void 0, this.cramped = void 0, this.id = e, this.size = t, this.cramped = a;
|
|
7887
7888
|
}
|
|
@@ -7889,40 +7890,40 @@ class p0 {
|
|
|
7889
7890
|
* Get the style of a superscript given a base in the current style.
|
|
7890
7891
|
*/
|
|
7891
7892
|
sup() {
|
|
7892
|
-
return
|
|
7893
|
+
return Xe[F4[this.id]];
|
|
7893
7894
|
}
|
|
7894
7895
|
/**
|
|
7895
7896
|
* Get the style of a subscript given a base in the current style.
|
|
7896
7897
|
*/
|
|
7897
7898
|
sub() {
|
|
7898
|
-
return
|
|
7899
|
+
return Xe[H4[this.id]];
|
|
7899
7900
|
}
|
|
7900
7901
|
/**
|
|
7901
7902
|
* Get the style of a fraction numerator given the fraction in the current
|
|
7902
7903
|
* style.
|
|
7903
7904
|
*/
|
|
7904
7905
|
fracNum() {
|
|
7905
|
-
return
|
|
7906
|
+
return Xe[V4[this.id]];
|
|
7906
7907
|
}
|
|
7907
7908
|
/**
|
|
7908
7909
|
* Get the style of a fraction denominator given the fraction in the current
|
|
7909
7910
|
* style.
|
|
7910
7911
|
*/
|
|
7911
7912
|
fracDen() {
|
|
7912
|
-
return
|
|
7913
|
+
return Xe[_4[this.id]];
|
|
7913
7914
|
}
|
|
7914
7915
|
/**
|
|
7915
7916
|
* Get the cramped version of a style (in particular, cramping a cramped style
|
|
7916
7917
|
* doesn't change the style).
|
|
7917
7918
|
*/
|
|
7918
7919
|
cramp() {
|
|
7919
|
-
return
|
|
7920
|
+
return Xe[G4[this.id]];
|
|
7920
7921
|
}
|
|
7921
7922
|
/**
|
|
7922
7923
|
* Get a text or display version of this style.
|
|
7923
7924
|
*/
|
|
7924
7925
|
text() {
|
|
7925
|
-
return
|
|
7926
|
+
return Xe[$4[this.id]];
|
|
7926
7927
|
}
|
|
7927
7928
|
/**
|
|
7928
7929
|
* Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
|
|
@@ -7931,11 +7932,11 @@ class p0 {
|
|
|
7931
7932
|
return this.size >= 2;
|
|
7932
7933
|
}
|
|
7933
7934
|
}
|
|
7934
|
-
var ta = 0, Pt = 1, $0 = 2,
|
|
7935
|
-
DISPLAY:
|
|
7936
|
-
TEXT:
|
|
7937
|
-
SCRIPT:
|
|
7938
|
-
SCRIPTSCRIPT:
|
|
7935
|
+
var ta = 0, Pt = 1, $0 = 2, o0 = 3, nt = 4, _e = 5, W0 = 6, Ne = 7, Xe = [new f0(ta, 0, !1), new f0(Pt, 0, !0), new f0($0, 1, !1), new f0(o0, 1, !0), new f0(nt, 2, !1), new f0(_e, 2, !0), new f0(W0, 3, !1), new f0(Ne, 3, !0)], F4 = [nt, _e, nt, _e, W0, Ne, W0, Ne], H4 = [_e, _e, _e, _e, Ne, Ne, Ne, Ne], V4 = [$0, o0, nt, _e, W0, Ne, W0, Ne], _4 = [o0, o0, _e, _e, Ne, Ne, Ne, Ne], G4 = [Pt, Pt, o0, o0, _e, _e, Ne, Ne], $4 = [ta, Pt, $0, o0, $0, o0, $0, o0], Z = {
|
|
7936
|
+
DISPLAY: Xe[ta],
|
|
7937
|
+
TEXT: Xe[$0],
|
|
7938
|
+
SCRIPT: Xe[nt],
|
|
7939
|
+
SCRIPTSCRIPT: Xe[W0]
|
|
7939
7940
|
}, Ir = [{
|
|
7940
7941
|
// Latin characters beyond the Latin-1 characters we have metrics for.
|
|
7941
7942
|
// Needed for Czech, Hungarian and Turkish text, for example.
|
|
@@ -8460,7 +8461,7 @@ class ot {
|
|
|
8460
8461
|
return this.children.map(e).join("");
|
|
8461
8462
|
}
|
|
8462
8463
|
}
|
|
8463
|
-
var
|
|
8464
|
+
var Ze = {
|
|
8464
8465
|
"AMS-Regular": {
|
|
8465
8466
|
32: [0, 0, 0, 0, 0.25],
|
|
8466
8467
|
65: [0, 0.68889, 0, 0, 0.72222],
|
|
@@ -10691,13 +10692,13 @@ var Ke = {
|
|
|
10691
10692
|
я: "r"
|
|
10692
10693
|
};
|
|
10693
10694
|
function r2(r, e) {
|
|
10694
|
-
|
|
10695
|
+
Ze[r] = e;
|
|
10695
10696
|
}
|
|
10696
10697
|
function ra(r, e, t) {
|
|
10697
|
-
if (!
|
|
10698
|
+
if (!Ze[e])
|
|
10698
10699
|
throw new Error("Font metrics not found for font: " + e + ".");
|
|
10699
|
-
var a = r.charCodeAt(0), n =
|
|
10700
|
-
if (!n && r[0] in Ka && (a = Ka[r[0]].charCodeAt(0), n =
|
|
10700
|
+
var a = r.charCodeAt(0), n = Ze[e][a];
|
|
10701
|
+
if (!n && r[0] in Ka && (a = Ka[r[0]].charCodeAt(0), n = Ze[e][a]), !n && t === "text" && Is(a) && (n = Ze[e][77]), n)
|
|
10701
10702
|
return {
|
|
10702
10703
|
depth: n[0],
|
|
10703
10704
|
height: n[1],
|
|
@@ -10760,7 +10761,7 @@ var n2 = [
|
|
|
10760
10761
|
], Qa = function(e, t) {
|
|
10761
10762
|
return t.size < 2 ? e : n2[e - 1][t.size - 1];
|
|
10762
10763
|
};
|
|
10763
|
-
class
|
|
10764
|
+
class i0 {
|
|
10764
10765
|
// A font family applies to a group of fonts (i.e. SansSerif), while a font
|
|
10765
10766
|
// represents a specific font (i.e. SansSerif Bold).
|
|
10766
10767
|
// See: https://tex.stackexchange.com/questions/22350/difference-between-textrm-and-mathrm
|
|
@@ -10768,7 +10769,7 @@ class o0 {
|
|
|
10768
10769
|
* The base size index.
|
|
10769
10770
|
*/
|
|
10770
10771
|
constructor(e) {
|
|
10771
|
-
this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size ||
|
|
10772
|
+
this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size || i0.BASESIZE, this.textSize = e.textSize || this.size, this.phantom = !!e.phantom, this.font = e.font || "", this.fontFamily = e.fontFamily || "", this.fontWeight = e.fontWeight || "", this.fontShape = e.fontShape || "", this.sizeMultiplier = Ja[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0;
|
|
10772
10773
|
}
|
|
10773
10774
|
/**
|
|
10774
10775
|
* Returns a new options object with the same properties as "this". Properties
|
|
@@ -10790,7 +10791,7 @@ class o0 {
|
|
|
10790
10791
|
};
|
|
10791
10792
|
for (var a in e)
|
|
10792
10793
|
e.hasOwnProperty(a) && (t[a] = e[a]);
|
|
10793
|
-
return new
|
|
10794
|
+
return new i0(t);
|
|
10794
10795
|
}
|
|
10795
10796
|
/**
|
|
10796
10797
|
* Return an options object with the given style. If `this.style === style`,
|
|
@@ -10827,8 +10828,8 @@ class o0 {
|
|
|
10827
10828
|
*/
|
|
10828
10829
|
havingBaseStyle(e) {
|
|
10829
10830
|
e = e || this.style.text();
|
|
10830
|
-
var t = Qa(
|
|
10831
|
-
return this.size === t && this.textSize ===
|
|
10831
|
+
var t = Qa(i0.BASESIZE, e);
|
|
10832
|
+
return this.size === t && this.textSize === i0.BASESIZE && this.style === e ? this : this.extend({
|
|
10832
10833
|
style: e,
|
|
10833
10834
|
size: t
|
|
10834
10835
|
});
|
|
@@ -10920,7 +10921,7 @@ class o0 {
|
|
|
10920
10921
|
* `this.havingSize(BASESIZE).sizingClasses(this)`.
|
|
10921
10922
|
*/
|
|
10922
10923
|
baseSizingClasses() {
|
|
10923
|
-
return this.size !==
|
|
10924
|
+
return this.size !== i0.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + i0.BASESIZE] : [];
|
|
10924
10925
|
}
|
|
10925
10926
|
/**
|
|
10926
10927
|
* Return the font metrics for this size.
|
|
@@ -10935,7 +10936,7 @@ class o0 {
|
|
|
10935
10936
|
return this.phantom ? "transparent" : this.color;
|
|
10936
10937
|
}
|
|
10937
10938
|
}
|
|
10938
|
-
|
|
10939
|
+
i0.BASESIZE = 6;
|
|
10939
10940
|
var Or = {
|
|
10940
10941
|
// https://en.wikibooks.org/wiki/LaTeX/Lengths and
|
|
10941
10942
|
// https://tex.stackexchange.com/a/8263
|
|
@@ -10983,7 +10984,7 @@ var Or = {
|
|
|
10983
10984
|
else if (e.unit === "em")
|
|
10984
10985
|
a = n.fontMetrics().quad;
|
|
10985
10986
|
else
|
|
10986
|
-
throw new
|
|
10987
|
+
throw new L("Invalid unit: '" + e.unit + "'");
|
|
10987
10988
|
n !== t && (a *= n.sizeMultiplier / t.sizeMultiplier);
|
|
10988
10989
|
}
|
|
10989
10990
|
return Math.min(e.number * a, t.maxSize);
|
|
@@ -10997,7 +10998,7 @@ var Or = {
|
|
|
10997
10998
|
var n = t.getColor();
|
|
10998
10999
|
n && (this.style.color = n);
|
|
10999
11000
|
}
|
|
11000
|
-
},
|
|
11001
|
+
}, qs = function(e) {
|
|
11001
11002
|
var t = document.createElement(e);
|
|
11002
11003
|
t.className = w0(this.classes);
|
|
11003
11004
|
for (var a in this.style)
|
|
@@ -11007,7 +11008,7 @@ var Or = {
|
|
|
11007
11008
|
for (var s = 0; s < this.children.length; s++)
|
|
11008
11009
|
t.appendChild(this.children[s].toNode());
|
|
11009
11010
|
return t;
|
|
11010
|
-
}, i2 = /[\s"'>/=\x00-\x1f]/,
|
|
11011
|
+
}, i2 = /[\s"'>/=\x00-\x1f]/, Fs = function(e) {
|
|
11011
11012
|
var t = "<" + e;
|
|
11012
11013
|
this.classes.length && (t += ' class="' + re.escape(w0(this.classes)) + '"');
|
|
11013
11014
|
var a = "";
|
|
@@ -11017,7 +11018,7 @@ var Or = {
|
|
|
11017
11018
|
for (var s in this.attributes)
|
|
11018
11019
|
if (this.attributes.hasOwnProperty(s)) {
|
|
11019
11020
|
if (i2.test(s))
|
|
11020
|
-
throw new
|
|
11021
|
+
throw new L("Invalid attribute name '" + s + "'");
|
|
11021
11022
|
t += " " + s + '="' + re.escape(this.attributes[s]) + '"';
|
|
11022
11023
|
}
|
|
11023
11024
|
t += ">";
|
|
@@ -11041,10 +11042,10 @@ class lt {
|
|
|
11041
11042
|
return this.classes.includes(e);
|
|
11042
11043
|
}
|
|
11043
11044
|
toNode() {
|
|
11044
|
-
return
|
|
11045
|
+
return qs.call(this, "span");
|
|
11045
11046
|
}
|
|
11046
11047
|
toMarkup() {
|
|
11047
|
-
return
|
|
11048
|
+
return Fs.call(this, "span");
|
|
11048
11049
|
}
|
|
11049
11050
|
}
|
|
11050
11051
|
class aa {
|
|
@@ -11058,10 +11059,10 @@ class aa {
|
|
|
11058
11059
|
return this.classes.includes(e);
|
|
11059
11060
|
}
|
|
11060
11061
|
toNode() {
|
|
11061
|
-
return
|
|
11062
|
+
return qs.call(this, "a");
|
|
11062
11063
|
}
|
|
11063
11064
|
toMarkup() {
|
|
11064
|
-
return
|
|
11065
|
+
return Fs.call(this, "a");
|
|
11065
11066
|
}
|
|
11066
11067
|
}
|
|
11067
11068
|
class o2 {
|
|
@@ -11127,7 +11128,7 @@ class Ge {
|
|
|
11127
11128
|
return e ? (t += ">", t += s, t += "</span>", t) : s;
|
|
11128
11129
|
}
|
|
11129
11130
|
}
|
|
11130
|
-
class
|
|
11131
|
+
class c0 {
|
|
11131
11132
|
constructor(e, t) {
|
|
11132
11133
|
this.children = void 0, this.attributes = void 0, this.children = e || [], this.attributes = t || {};
|
|
11133
11134
|
}
|
|
@@ -11201,18 +11202,18 @@ var u2 = {
|
|
|
11201
11202
|
"op-token": 1,
|
|
11202
11203
|
spacing: 1,
|
|
11203
11204
|
textord: 1
|
|
11204
|
-
},
|
|
11205
|
+
}, le = {
|
|
11205
11206
|
math: {},
|
|
11206
11207
|
text: {}
|
|
11207
11208
|
};
|
|
11208
11209
|
function o(r, e, t, a, n, s) {
|
|
11209
|
-
|
|
11210
|
+
le[r][n] = {
|
|
11210
11211
|
font: e,
|
|
11211
11212
|
group: t,
|
|
11212
11213
|
replace: a
|
|
11213
|
-
}, s && a && (
|
|
11214
|
+
}, s && a && (le[r][a] = le[r][n]);
|
|
11214
11215
|
}
|
|
11215
|
-
var c = "math", A = "text", m = "main", g = "ams", ue = "accent-token", H = "bin", Te = "close", X0 = "inner", Y = "mathord", be = "op-token", Pe = "open", Ut = "punct", b = "rel",
|
|
11216
|
+
var c = "math", A = "text", m = "main", g = "ams", ue = "accent-token", H = "bin", Te = "close", X0 = "inner", Y = "mathord", be = "op-token", Pe = "open", Ut = "punct", b = "rel", m0 = "spacing", w = "textord";
|
|
11216
11217
|
o(c, m, b, "≡", "\\equiv", !0);
|
|
11217
11218
|
o(c, m, b, "≺", "\\prec", !0);
|
|
11218
11219
|
o(c, m, b, "≻", "\\succ", !0);
|
|
@@ -11656,15 +11657,15 @@ o(c, m, b, "→", "\\rightarrow", !0);
|
|
|
11656
11657
|
o(c, m, b, "→", "\\to");
|
|
11657
11658
|
o(c, g, b, "≱", "\\ngeq", !0);
|
|
11658
11659
|
o(c, g, b, "≰", "\\nleq", !0);
|
|
11659
|
-
o(c, m,
|
|
11660
|
-
o(c, m,
|
|
11661
|
-
o(c, m,
|
|
11662
|
-
o(A, m,
|
|
11663
|
-
o(A, m,
|
|
11664
|
-
o(A, m,
|
|
11665
|
-
o(A, m,
|
|
11666
|
-
o(c, m,
|
|
11667
|
-
o(c, m,
|
|
11660
|
+
o(c, m, m0, " ", "\\ ");
|
|
11661
|
+
o(c, m, m0, " ", "\\space");
|
|
11662
|
+
o(c, m, m0, " ", "\\nobreakspace");
|
|
11663
|
+
o(A, m, m0, " ", "\\ ");
|
|
11664
|
+
o(A, m, m0, " ", " ");
|
|
11665
|
+
o(A, m, m0, " ", "\\space");
|
|
11666
|
+
o(A, m, m0, " ", "\\nobreakspace");
|
|
11667
|
+
o(c, m, m0, null, "\\nobreak");
|
|
11668
|
+
o(c, m, m0, null, "\\allowbreak");
|
|
11668
11669
|
o(c, m, Ut, ",", ",");
|
|
11669
11670
|
o(c, m, Ut, ";", ";");
|
|
11670
11671
|
o(c, g, H, "⊼", "\\barwedge", !0);
|
|
@@ -11821,9 +11822,9 @@ for (var pr = 0; pr < an.length; pr++) {
|
|
|
11821
11822
|
var nn = an.charAt(pr);
|
|
11822
11823
|
o(A, m, w, nn, nn);
|
|
11823
11824
|
}
|
|
11824
|
-
var
|
|
11825
|
-
for (var vr = 0; vr <
|
|
11826
|
-
var kt =
|
|
11825
|
+
var qt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
11826
|
+
for (var vr = 0; vr < qt.length; vr++) {
|
|
11827
|
+
var kt = qt.charAt(vr);
|
|
11827
11828
|
o(c, m, Y, kt, kt), o(A, m, w, kt, kt);
|
|
11828
11829
|
}
|
|
11829
11830
|
o(c, g, w, "C", "ℂ");
|
|
@@ -11843,20 +11844,20 @@ o(A, g, w, "Z", "ℤ");
|
|
|
11843
11844
|
o(c, m, Y, "h", "ℎ");
|
|
11844
11845
|
o(A, m, Y, "h", "ℎ");
|
|
11845
11846
|
var K = "";
|
|
11846
|
-
for (var ze = 0; ze <
|
|
11847
|
-
var pe =
|
|
11847
|
+
for (var ze = 0; ze < qt.length; ze++) {
|
|
11848
|
+
var pe = qt.charAt(ze);
|
|
11848
11849
|
K = String.fromCharCode(55349, 56320 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K), K = String.fromCharCode(55349, 56372 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K), K = String.fromCharCode(55349, 56424 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K), K = String.fromCharCode(55349, 56580 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K), K = String.fromCharCode(55349, 56684 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K), K = String.fromCharCode(55349, 56736 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K), K = String.fromCharCode(55349, 56788 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K), K = String.fromCharCode(55349, 56840 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K), K = String.fromCharCode(55349, 56944 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K), ze < 26 && (K = String.fromCharCode(55349, 56632 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K), K = String.fromCharCode(55349, 56476 + ze), o(c, m, Y, pe, K), o(A, m, w, pe, K));
|
|
11849
11850
|
}
|
|
11850
11851
|
K = "𝕜";
|
|
11851
11852
|
o(c, m, Y, "k", K);
|
|
11852
11853
|
o(A, m, w, "k", K);
|
|
11853
11854
|
for (var N0 = 0; N0 < 10; N0++) {
|
|
11854
|
-
var
|
|
11855
|
-
K = String.fromCharCode(55349, 57294 + N0), o(c, m, Y,
|
|
11855
|
+
var p0 = N0.toString();
|
|
11856
|
+
K = String.fromCharCode(55349, 57294 + N0), o(c, m, Y, p0, K), o(A, m, w, p0, K), K = String.fromCharCode(55349, 57314 + N0), o(c, m, Y, p0, K), o(A, m, w, p0, K), K = String.fromCharCode(55349, 57324 + N0), o(c, m, Y, p0, K), o(A, m, w, p0, K), K = String.fromCharCode(55349, 57334 + N0), o(c, m, Y, p0, K), o(A, m, w, p0, K);
|
|
11856
11857
|
}
|
|
11857
|
-
var
|
|
11858
|
-
for (var gr = 0; gr <
|
|
11859
|
-
var Ct =
|
|
11858
|
+
var qr = "ÐÞþ";
|
|
11859
|
+
for (var gr = 0; gr < qr.length; gr++) {
|
|
11860
|
+
var Ct = qr.charAt(gr);
|
|
11860
11861
|
o(c, m, Y, Ct, Ct), o(A, m, w, Ct, Ct);
|
|
11861
11862
|
}
|
|
11862
11863
|
var Mt = [
|
|
@@ -11939,10 +11940,10 @@ var Mt = [
|
|
|
11939
11940
|
return [Mt[0][2], Mt[0][i]];
|
|
11940
11941
|
if (120486 < s && s < 120782)
|
|
11941
11942
|
return ["", ""];
|
|
11942
|
-
throw new
|
|
11943
|
+
throw new L("Unsupported character: " + e);
|
|
11943
11944
|
}
|
|
11944
11945
|
}, jt = function(e, t, a) {
|
|
11945
|
-
return
|
|
11946
|
+
return le[a][e] && le[a][e].replace && (e = le[a][e].replace), {
|
|
11946
11947
|
value: e,
|
|
11947
11948
|
metrics: ra(e, t, a)
|
|
11948
11949
|
};
|
|
@@ -11962,7 +11963,7 @@ var Mt = [
|
|
|
11962
11963
|
}
|
|
11963
11964
|
return u;
|
|
11964
11965
|
}, h2 = function(e, t, a, n) {
|
|
11965
|
-
return n === void 0 && (n = []), a.font === "boldsymbol" && jt(e, "Main-Bold", t).metrics ? Ue(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" ||
|
|
11966
|
+
return n === void 0 && (n = []), a.font === "boldsymbol" && jt(e, "Main-Bold", t).metrics ? Ue(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" || le[t][e].font === "main" ? Ue(e, "Main-Regular", t, a, n) : Ue(e, "AMS-Regular", t, a, n.concat(["amsrm"]));
|
|
11966
11967
|
}, f2 = function(e, t, a, n, s) {
|
|
11967
11968
|
return s !== "textord" && jt(e, "Math-BoldItalic", t).metrics ? {
|
|
11968
11969
|
fontName: "Math-BoldItalic",
|
|
@@ -11992,7 +11993,7 @@ var Mt = [
|
|
|
11992
11993
|
if (a === "mathord")
|
|
11993
11994
|
return Ue(s, "Math-Italic", n, t, i.concat(["mathnormal"]));
|
|
11994
11995
|
if (a === "textord") {
|
|
11995
|
-
var z =
|
|
11996
|
+
var z = le[n][s] && le[n][s].font;
|
|
11996
11997
|
if (z === "ams") {
|
|
11997
11998
|
var T = zt("amsrm", t.fontWeight, t.fontShape);
|
|
11998
11999
|
return Ue(s, T, n, t, i.concat("amsrm", t.fontWeight, t.fontShape));
|
|
@@ -12000,8 +12001,8 @@ var Mt = [
|
|
|
12000
12001
|
var D = zt("textrm", t.fontWeight, t.fontShape);
|
|
12001
12002
|
return Ue(s, D, n, t, i.concat(t.fontWeight, t.fontShape));
|
|
12002
12003
|
} else {
|
|
12003
|
-
var
|
|
12004
|
-
return Ue(s,
|
|
12004
|
+
var R = zt(z, t.fontWeight, t.fontShape);
|
|
12005
|
+
return Ue(s, R, n, t, i.concat(R, t.fontWeight, t.fontShape));
|
|
12005
12006
|
}
|
|
12006
12007
|
} else
|
|
12007
12008
|
throw new Error("unexpected type: " + a + " in makeOrd");
|
|
@@ -12103,21 +12104,21 @@ var Mt = [
|
|
|
12103
12104
|
if (S.type === "kern")
|
|
12104
12105
|
x += S.size;
|
|
12105
12106
|
else {
|
|
12106
|
-
var z = S.elem, T = S.wrapperClasses || [], D = S.wrapperStyle || {},
|
|
12107
|
-
|
|
12107
|
+
var z = S.elem, T = S.wrapperClasses || [], D = S.wrapperStyle || {}, R = Ae(T, [d, z], void 0, D);
|
|
12108
|
+
R.style.top = I(-s - x - z.depth), S.marginLeft && (R.style.marginLeft = S.marginLeft), S.marginRight && (R.style.marginRight = S.marginRight), h.push(R), x += z.height + z.depth;
|
|
12108
12109
|
}
|
|
12109
12110
|
p = Math.min(p, x), y = Math.max(y, x);
|
|
12110
12111
|
}
|
|
12111
|
-
var
|
|
12112
|
-
|
|
12112
|
+
var O = Ae(["vlist"], h);
|
|
12113
|
+
O.style.height = I(y);
|
|
12113
12114
|
var P;
|
|
12114
12115
|
if (p < 0) {
|
|
12115
|
-
var j = Ae([], []),
|
|
12116
|
-
|
|
12116
|
+
var j = Ae([], []), F = Ae(["vlist"], [j]);
|
|
12117
|
+
F.style.height = I(-p);
|
|
12117
12118
|
var B = Ae(["vlist-s"], [new Ge("")]);
|
|
12118
|
-
P = [Ae(["vlist-r"], [
|
|
12119
|
+
P = [Ae(["vlist-r"], [O, B]), Ae(["vlist-r"], [F])];
|
|
12119
12120
|
} else
|
|
12120
|
-
P = [Ae(["vlist-r"], [
|
|
12121
|
+
P = [Ae(["vlist-r"], [O])];
|
|
12121
12122
|
var X = Ae(["vlist-t"], P);
|
|
12122
12123
|
return P.length === 2 && X.classes.push("vlist-t2"), X.height = y, X.depth = -p, X;
|
|
12123
12124
|
}, k2 = (r, e) => {
|
|
@@ -12207,7 +12208,7 @@ var Mt = [
|
|
|
12207
12208
|
oiiintSize1: ["oiiintSize1", 1.304, 0.499],
|
|
12208
12209
|
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
|
|
12209
12210
|
}, C2 = function(e, t) {
|
|
12210
|
-
var [a, n, s] = $s[e], i = new S0(a), l = new
|
|
12211
|
+
var [a, n, s] = $s[e], i = new S0(a), l = new c0([i], {
|
|
12211
12212
|
width: I(n),
|
|
12212
12213
|
height: I(s),
|
|
12213
12214
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -12238,20 +12239,20 @@ var Mt = [
|
|
|
12238
12239
|
}, T0 = {
|
|
12239
12240
|
number: 4,
|
|
12240
12241
|
unit: "mu"
|
|
12241
|
-
},
|
|
12242
|
+
}, s0 = {
|
|
12242
12243
|
number: 5,
|
|
12243
12244
|
unit: "mu"
|
|
12244
12245
|
}, M2 = {
|
|
12245
12246
|
mord: {
|
|
12246
12247
|
mop: de,
|
|
12247
12248
|
mbin: T0,
|
|
12248
|
-
mrel:
|
|
12249
|
+
mrel: s0,
|
|
12249
12250
|
minner: de
|
|
12250
12251
|
},
|
|
12251
12252
|
mop: {
|
|
12252
12253
|
mord: de,
|
|
12253
12254
|
mop: de,
|
|
12254
|
-
mrel:
|
|
12255
|
+
mrel: s0,
|
|
12255
12256
|
minner: de
|
|
12256
12257
|
},
|
|
12257
12258
|
mbin: {
|
|
@@ -12261,22 +12262,22 @@ var Mt = [
|
|
|
12261
12262
|
minner: T0
|
|
12262
12263
|
},
|
|
12263
12264
|
mrel: {
|
|
12264
|
-
mord:
|
|
12265
|
-
mop:
|
|
12266
|
-
mopen:
|
|
12267
|
-
minner:
|
|
12265
|
+
mord: s0,
|
|
12266
|
+
mop: s0,
|
|
12267
|
+
mopen: s0,
|
|
12268
|
+
minner: s0
|
|
12268
12269
|
},
|
|
12269
12270
|
mopen: {},
|
|
12270
12271
|
mclose: {
|
|
12271
12272
|
mop: de,
|
|
12272
12273
|
mbin: T0,
|
|
12273
|
-
mrel:
|
|
12274
|
+
mrel: s0,
|
|
12274
12275
|
minner: de
|
|
12275
12276
|
},
|
|
12276
12277
|
mpunct: {
|
|
12277
12278
|
mord: de,
|
|
12278
12279
|
mop: de,
|
|
12279
|
-
mrel:
|
|
12280
|
+
mrel: s0,
|
|
12280
12281
|
mopen: de,
|
|
12281
12282
|
mclose: de,
|
|
12282
12283
|
mpunct: de,
|
|
@@ -12286,7 +12287,7 @@ var Mt = [
|
|
|
12286
12287
|
mord: de,
|
|
12287
12288
|
mop: de,
|
|
12288
12289
|
mbin: T0,
|
|
12289
|
-
mrel:
|
|
12290
|
+
mrel: s0,
|
|
12290
12291
|
mopen: de,
|
|
12291
12292
|
mpunct: de,
|
|
12292
12293
|
minner: de
|
|
@@ -12309,7 +12310,7 @@ var Mt = [
|
|
|
12309
12310
|
minner: {
|
|
12310
12311
|
mop: de
|
|
12311
12312
|
}
|
|
12312
|
-
}, Ws = {},
|
|
12313
|
+
}, Ws = {}, Ft = {}, Ht = {};
|
|
12313
12314
|
function q(r) {
|
|
12314
12315
|
for (var {
|
|
12315
12316
|
type: e,
|
|
@@ -12331,7 +12332,7 @@ function q(r) {
|
|
|
12331
12332
|
handler: n
|
|
12332
12333
|
}, u = 0; u < t.length; ++u)
|
|
12333
12334
|
Ws[t[u]] = l;
|
|
12334
|
-
e && (s && (
|
|
12335
|
+
e && (s && (Ft[e] = s), i && (Ht[e] = i));
|
|
12335
12336
|
}
|
|
12336
12337
|
function B0(r) {
|
|
12337
12338
|
var {
|
|
@@ -12356,7 +12357,7 @@ var Vt = function(e) {
|
|
|
12356
12357
|
return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
|
|
12357
12358
|
}, ge = function(e) {
|
|
12358
12359
|
return e.type === "ordgroup" ? e.body : [e];
|
|
12359
|
-
},
|
|
12360
|
+
}, u0 = k.makeSpan, N2 = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], T2 = ["rightmost", "mrel", "mclose", "mpunct"], A2 = {
|
|
12360
12361
|
display: Z.DISPLAY,
|
|
12361
12362
|
text: Z.TEXT,
|
|
12362
12363
|
script: Z.SCRIPT,
|
|
@@ -12387,14 +12388,14 @@ var Vt = function(e) {
|
|
|
12387
12388
|
var h = e[0];
|
|
12388
12389
|
h.type === "sizing" ? d = t.havingSize(h.size) : h.type === "styling" && (d = t.havingStyle(A2[h.style]));
|
|
12389
12390
|
}
|
|
12390
|
-
var p =
|
|
12391
|
+
var p = u0([n[0] || "leftmost"], [], t), y = u0([n[1] || "rightmost"], [], t), x = a === "root";
|
|
12391
12392
|
return on(s, (C, S) => {
|
|
12392
12393
|
var z = S.classes[0], T = C.classes[0];
|
|
12393
12394
|
z === "mbin" && T2.includes(T) ? S.classes[0] = "mord" : T === "mbin" && N2.includes(z) && (C.classes[0] = "mord");
|
|
12394
12395
|
}, {
|
|
12395
12396
|
node: p
|
|
12396
12397
|
}, y, x), on(s, (C, S) => {
|
|
12397
|
-
var z =
|
|
12398
|
+
var z = Fr(S), T = Fr(C), D = z && T ? C.hasClass("mtight") ? z2[z][T] : M2[z][T] : null;
|
|
12398
12399
|
if (D)
|
|
12399
12400
|
return k.makeGlue(D, d);
|
|
12400
12401
|
}, {
|
|
@@ -12413,7 +12414,7 @@ var Vt = function(e) {
|
|
|
12413
12414
|
var h = t(l, a.node);
|
|
12414
12415
|
h && (a.insertAfter ? a.insertAfter(h) : (e.unshift(h), i++));
|
|
12415
12416
|
}
|
|
12416
|
-
d ? a.node = l : s && l.hasClass("newline") && (a.node =
|
|
12417
|
+
d ? a.node = l : s && l.hasClass("newline") && (a.node = u0(["leftmost"])), a.insertAfter = /* @__PURE__ */ ((p) => (y) => {
|
|
12417
12418
|
e.splice(p + 1, 0, y), i++;
|
|
12418
12419
|
})(i);
|
|
12419
12420
|
}
|
|
@@ -12432,27 +12433,27 @@ var Vt = function(e) {
|
|
|
12432
12433
|
}
|
|
12433
12434
|
}
|
|
12434
12435
|
return e;
|
|
12435
|
-
},
|
|
12436
|
+
}, Fr = function(e, t) {
|
|
12436
12437
|
return e ? (t && (e = E2(e, t)), D2[e.classes[0]] || null) : null;
|
|
12437
12438
|
}, st = function(e, t) {
|
|
12438
12439
|
var a = ["nulldelimiter"].concat(e.baseSizingClasses());
|
|
12439
|
-
return
|
|
12440
|
+
return u0(t.concat(a));
|
|
12440
12441
|
}, te = function(e, t, a) {
|
|
12441
12442
|
if (!e)
|
|
12442
|
-
return
|
|
12443
|
-
if (
|
|
12444
|
-
var n =
|
|
12443
|
+
return u0();
|
|
12444
|
+
if (Ft[e.type]) {
|
|
12445
|
+
var n = Ft[e.type](e, t);
|
|
12445
12446
|
if (a && t.size !== a.size) {
|
|
12446
|
-
n =
|
|
12447
|
+
n = u0(t.sizingClasses(a), [n], t);
|
|
12447
12448
|
var s = t.sizeMultiplier / a.sizeMultiplier;
|
|
12448
12449
|
n.height *= s, n.depth *= s;
|
|
12449
12450
|
}
|
|
12450
12451
|
return n;
|
|
12451
12452
|
} else
|
|
12452
|
-
throw new
|
|
12453
|
+
throw new L("Got group of unknown type: '" + e.type + "'");
|
|
12453
12454
|
};
|
|
12454
12455
|
function Nt(r, e) {
|
|
12455
|
-
var t =
|
|
12456
|
+
var t = u0(["base"], r, e), a = u0(["strut"]);
|
|
12456
12457
|
return a.style.height = I(t.height + t.depth), t.depth && (a.style.verticalAlign = I(-t.depth)), t.children.unshift(a), t;
|
|
12457
12458
|
}
|
|
12458
12459
|
function Hr(r, e) {
|
|
@@ -12469,7 +12470,7 @@ function Hr(r, e) {
|
|
|
12469
12470
|
i.length > 0 && s.push(Nt(i, e));
|
|
12470
12471
|
var d;
|
|
12471
12472
|
t ? (d = Nt(Se(t, e, !0)), d.classes = ["tag"], s.push(d)) : n && s.push(n);
|
|
12472
|
-
var h =
|
|
12473
|
+
var h = u0(["katex-html"], s);
|
|
12473
12474
|
if (h.setAttribute("aria-hidden", "true"), d) {
|
|
12474
12475
|
var p = d.children[0];
|
|
12475
12476
|
p.style.height = I(h.height + h.depth), h.depth && (p.style.verticalAlign = I(-h.depth));
|
|
@@ -12505,10 +12506,10 @@ class Ie {
|
|
|
12505
12506
|
Object.prototype.hasOwnProperty.call(this.attributes, t) && e.setAttribute(t, this.attributes[t]);
|
|
12506
12507
|
this.classes.length > 0 && (e.className = w0(this.classes));
|
|
12507
12508
|
for (var a = 0; a < this.children.length; a++)
|
|
12508
|
-
if (this.children[a] instanceof
|
|
12509
|
-
for (var n = this.children[a].toText() + this.children[++a].toText(); this.children[a + 1] instanceof
|
|
12509
|
+
if (this.children[a] instanceof Ke && this.children[a + 1] instanceof Ke) {
|
|
12510
|
+
for (var n = this.children[a].toText() + this.children[++a].toText(); this.children[a + 1] instanceof Ke; )
|
|
12510
12511
|
n += this.children[++a].toText();
|
|
12511
|
-
e.appendChild(new
|
|
12512
|
+
e.appendChild(new Ke(n).toNode());
|
|
12512
12513
|
} else
|
|
12513
12514
|
e.appendChild(this.children[a].toNode());
|
|
12514
12515
|
return e;
|
|
@@ -12532,7 +12533,7 @@ class Ie {
|
|
|
12532
12533
|
return this.children.map((e) => e.toText()).join("");
|
|
12533
12534
|
}
|
|
12534
12535
|
}
|
|
12535
|
-
class
|
|
12536
|
+
class Ke {
|
|
12536
12537
|
constructor(e) {
|
|
12537
12538
|
this.text = void 0, this.text = e;
|
|
12538
12539
|
}
|
|
@@ -12588,11 +12589,11 @@ class R2 {
|
|
|
12588
12589
|
}
|
|
12589
12590
|
var E = {
|
|
12590
12591
|
MathNode: Ie,
|
|
12591
|
-
TextNode:
|
|
12592
|
+
TextNode: Ke,
|
|
12592
12593
|
SpaceNode: R2,
|
|
12593
12594
|
newDocumentFragment: js
|
|
12594
12595
|
}, $e = function(e, t, a) {
|
|
12595
|
-
return
|
|
12596
|
+
return le[t][e] && le[t][e].replace && e.charCodeAt(0) !== 55349 && !(Hs.hasOwnProperty(e) && a && (a.fontFamily && a.fontFamily.slice(4, 6) === "tt" || a.font && a.font.slice(4, 6) === "tt")) && (e = le[t][e].replace), new E.TextNode(e);
|
|
12596
12597
|
}, sa = function(e) {
|
|
12597
12598
|
return e.length === 1 ? e[0] : new E.MathNode("mrow", e);
|
|
12598
12599
|
}, ia = function(e, t) {
|
|
@@ -12631,7 +12632,7 @@ var E = {
|
|
|
12631
12632
|
var s = e.text;
|
|
12632
12633
|
if (["\\imath", "\\jmath"].includes(s))
|
|
12633
12634
|
return null;
|
|
12634
|
-
|
|
12635
|
+
le[n][s] && le[n][s].replace && (s = le[n][s].replace);
|
|
12635
12636
|
var i = k.fontMap[a].fontName;
|
|
12636
12637
|
return ra(s, i, n) ? k.fontMap[a].variant : null;
|
|
12637
12638
|
};
|
|
@@ -12640,20 +12641,20 @@ function br(r) {
|
|
|
12640
12641
|
return !1;
|
|
12641
12642
|
if (r.type === "mi" && r.children.length === 1) {
|
|
12642
12643
|
var e = r.children[0];
|
|
12643
|
-
return e instanceof
|
|
12644
|
+
return e instanceof Ke && e.text === ".";
|
|
12644
12645
|
} else if (r.type === "mo" && r.children.length === 1 && r.getAttribute("separator") === "true" && r.getAttribute("lspace") === "0em" && r.getAttribute("rspace") === "0em") {
|
|
12645
12646
|
var t = r.children[0];
|
|
12646
|
-
return t instanceof
|
|
12647
|
+
return t instanceof Ke && t.text === ",";
|
|
12647
12648
|
} else
|
|
12648
12649
|
return !1;
|
|
12649
12650
|
}
|
|
12650
12651
|
var Ee = function(e, t, a) {
|
|
12651
12652
|
if (e.length === 1) {
|
|
12652
|
-
var n =
|
|
12653
|
+
var n = oe(e[0], t);
|
|
12653
12654
|
return a && n instanceof Ie && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n];
|
|
12654
12655
|
}
|
|
12655
12656
|
for (var s = [], i, l = 0; l < e.length; l++) {
|
|
12656
|
-
var u =
|
|
12657
|
+
var u = oe(e[l], t);
|
|
12657
12658
|
if (u instanceof Ie && i instanceof Ie) {
|
|
12658
12659
|
if (u.type === "mtext" && i.type === "mtext" && u.getAttribute("mathvariant") === i.getAttribute("mathvariant")) {
|
|
12659
12660
|
i.children.push(...u.children);
|
|
@@ -12671,9 +12672,9 @@ var Ee = function(e, t, a) {
|
|
|
12671
12672
|
d instanceof Ie && d.type === "mn" && (d.children = [...i.children, ...d.children], s.pop());
|
|
12672
12673
|
} else if (i.type === "mi" && i.children.length === 1) {
|
|
12673
12674
|
var h = i.children[0];
|
|
12674
|
-
if (h instanceof
|
|
12675
|
+
if (h instanceof Ke && h.text === "̸" && (u.type === "mo" || u.type === "mi" || u.type === "mn")) {
|
|
12675
12676
|
var p = u.children[0];
|
|
12676
|
-
p instanceof
|
|
12677
|
+
p instanceof Ke && p.text.length > 0 && (p.text = p.text.slice(0, 1) + "̸" + p.text.slice(1), s.pop());
|
|
12677
12678
|
}
|
|
12678
12679
|
}
|
|
12679
12680
|
}
|
|
@@ -12682,14 +12683,14 @@ var Ee = function(e, t, a) {
|
|
|
12682
12683
|
return s;
|
|
12683
12684
|
}, k0 = function(e, t, a) {
|
|
12684
12685
|
return sa(Ee(e, t, a));
|
|
12685
|
-
},
|
|
12686
|
+
}, oe = function(e, t) {
|
|
12686
12687
|
if (!e)
|
|
12687
12688
|
return new E.MathNode("mrow");
|
|
12688
12689
|
if (Ht[e.type]) {
|
|
12689
12690
|
var a = Ht[e.type](e, t);
|
|
12690
12691
|
return a;
|
|
12691
12692
|
} else
|
|
12692
|
-
throw new
|
|
12693
|
+
throw new L("Got group of unknown type: '" + e.type + "'");
|
|
12693
12694
|
};
|
|
12694
12695
|
function ln(r, e, t, a, n) {
|
|
12695
12696
|
var s = Ee(r, t), i;
|
|
@@ -12702,7 +12703,7 @@ function ln(r, e, t, a, n) {
|
|
|
12702
12703
|
return k.makeSpan([h], [d]);
|
|
12703
12704
|
}
|
|
12704
12705
|
var Xs = function(e) {
|
|
12705
|
-
return new
|
|
12706
|
+
return new i0({
|
|
12706
12707
|
style: e.displayMode ? Z.DISPLAY : Z.TEXT,
|
|
12707
12708
|
maxSize: e.maxSize,
|
|
12708
12709
|
minRuleThickness: e.minRuleThickness
|
|
@@ -12823,20 +12824,20 @@ var Xs = function(e) {
|
|
|
12823
12824
|
xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901],
|
|
12824
12825
|
xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716],
|
|
12825
12826
|
xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716]
|
|
12826
|
-
},
|
|
12827
|
+
}, q2 = function(e) {
|
|
12827
12828
|
return e.type === "ordgroup" ? e.body.length : 1;
|
|
12828
|
-
},
|
|
12829
|
+
}, F2 = function(e, t) {
|
|
12829
12830
|
function a() {
|
|
12830
12831
|
var l = 4e5, u = e.label.slice(1);
|
|
12831
12832
|
if (["widehat", "widecheck", "widetilde", "utilde"].includes(u)) {
|
|
12832
|
-
var d = e, h =
|
|
12833
|
+
var d = e, h = q2(d.base), p, y, x;
|
|
12833
12834
|
if (h > 5)
|
|
12834
12835
|
u === "widehat" || u === "widecheck" ? (p = 420, l = 2364, x = 0.42, y = u + "4") : (p = 312, l = 2340, x = 0.34, y = "tilde4");
|
|
12835
12836
|
else {
|
|
12836
12837
|
var C = [1, 1, 2, 2, 3, 3][h];
|
|
12837
12838
|
u === "widehat" || u === "widecheck" ? (l = [0, 1062, 2364, 2364, 2364][C], p = [0, 239, 300, 360, 420][C], x = [0, 0.24, 0.3, 0.3, 0.36, 0.42][C], y = u + C) : (l = [0, 600, 1033, 2339, 2340][C], p = [0, 260, 286, 306, 312][C], x = [0, 0.26, 0.286, 0.3, 0.306, 0.34][C], y = "tilde" + C);
|
|
12838
12839
|
}
|
|
12839
|
-
var S = new S0(y), z = new
|
|
12840
|
+
var S = new S0(y), z = new c0([S], {
|
|
12840
12841
|
width: "100%",
|
|
12841
12842
|
height: I(x),
|
|
12842
12843
|
viewBox: "0 0 " + l + " " + p,
|
|
@@ -12848,35 +12849,35 @@ var Xs = function(e) {
|
|
|
12848
12849
|
height: x
|
|
12849
12850
|
};
|
|
12850
12851
|
} else {
|
|
12851
|
-
var T = [], D = P2[u], [
|
|
12852
|
-
if (
|
|
12853
|
-
var
|
|
12854
|
-
B = ["hide-tail"], X = [
|
|
12855
|
-
} else if (
|
|
12852
|
+
var T = [], D = P2[u], [R, O, P] = D, j = P / 1e3, F = R.length, B, X;
|
|
12853
|
+
if (F === 1) {
|
|
12854
|
+
var ce = D[3];
|
|
12855
|
+
B = ["hide-tail"], X = [ce];
|
|
12856
|
+
} else if (F === 2)
|
|
12856
12857
|
B = ["halfarrow-left", "halfarrow-right"], X = ["xMinYMin", "xMaxYMin"];
|
|
12857
|
-
else if (
|
|
12858
|
+
else if (F === 3)
|
|
12858
12859
|
B = ["brace-left", "brace-center", "brace-right"], X = ["xMinYMin", "xMidYMin", "xMaxYMin"];
|
|
12859
12860
|
else
|
|
12860
12861
|
throw new Error(`Correct katexImagesData or update code here to support
|
|
12861
|
-
` +
|
|
12862
|
-
for (var ae = 0; ae <
|
|
12863
|
-
var ee = new S0(
|
|
12862
|
+
` + F + " children.");
|
|
12863
|
+
for (var ae = 0; ae < F; ae++) {
|
|
12864
|
+
var ee = new S0(R[ae]), ne = new c0([ee], {
|
|
12864
12865
|
width: "400em",
|
|
12865
12866
|
height: I(j),
|
|
12866
12867
|
viewBox: "0 0 " + l + " " + P,
|
|
12867
12868
|
preserveAspectRatio: X[ae] + " slice"
|
|
12868
|
-
}), ye = k.makeSvgSpan([B[ae]], [
|
|
12869
|
-
if (
|
|
12869
|
+
}), ye = k.makeSvgSpan([B[ae]], [ne], t);
|
|
12870
|
+
if (F === 1)
|
|
12870
12871
|
return {
|
|
12871
12872
|
span: ye,
|
|
12872
|
-
minWidth:
|
|
12873
|
+
minWidth: O,
|
|
12873
12874
|
height: j
|
|
12874
12875
|
};
|
|
12875
12876
|
ye.style.height = I(j), T.push(ye);
|
|
12876
12877
|
}
|
|
12877
12878
|
return {
|
|
12878
12879
|
span: k.makeSpan(["stretchy"], T, t),
|
|
12879
|
-
minWidth:
|
|
12880
|
+
minWidth: O,
|
|
12880
12881
|
height: j
|
|
12881
12882
|
};
|
|
12882
12883
|
}
|
|
@@ -12909,17 +12910,17 @@ var Xs = function(e) {
|
|
|
12909
12910
|
y2: "0",
|
|
12910
12911
|
"stroke-width": "0.046em"
|
|
12911
12912
|
}));
|
|
12912
|
-
var h = new
|
|
12913
|
+
var h = new c0(d, {
|
|
12913
12914
|
width: "100%",
|
|
12914
12915
|
height: I(l)
|
|
12915
12916
|
});
|
|
12916
12917
|
i = k.makeSvgSpan([], [h], s);
|
|
12917
12918
|
}
|
|
12918
12919
|
return i.height = l, i.style.height = I(l), i;
|
|
12919
|
-
},
|
|
12920
|
+
}, d0 = {
|
|
12920
12921
|
encloseSpan: H2,
|
|
12921
12922
|
mathMLnode: O2,
|
|
12922
|
-
svgSpan:
|
|
12923
|
+
svgSpan: F2
|
|
12923
12924
|
};
|
|
12924
12925
|
function J(r, e) {
|
|
12925
12926
|
if (!r || r.type !== e)
|
|
@@ -12945,7 +12946,7 @@ var la = (r, e) => {
|
|
|
12945
12946
|
}
|
|
12946
12947
|
var h = a.label === "\\c", p = h ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), y;
|
|
12947
12948
|
if (a.isStretchy)
|
|
12948
|
-
y =
|
|
12949
|
+
y = d0.svgSpan(a, e), y = k.makeVList({
|
|
12949
12950
|
positionType: "firstBaseline",
|
|
12950
12951
|
children: [{
|
|
12951
12952
|
type: "elem",
|
|
@@ -12986,7 +12987,7 @@ var la = (r, e) => {
|
|
|
12986
12987
|
var T = k.makeSpan(["mord", "accent"], [y], e);
|
|
12987
12988
|
return n ? (n.children[0] = T, n.height = Math.max(T.height, n.height), n.classes[0] = "mord", n) : T;
|
|
12988
12989
|
}, Zs = (r, e) => {
|
|
12989
|
-
var t = r.isStretchy ?
|
|
12990
|
+
var t = r.isStretchy ? d0.mathMLnode(r.label) : new E.MathNode("mo", [$e(r.label, r.mode)]), a = new E.MathNode("mover", [oe(r.base, e), t]);
|
|
12990
12991
|
return a.setAttribute("accent", "true"), a;
|
|
12991
12992
|
}, V2 = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((r) => "\\" + r).join("|"));
|
|
12992
12993
|
q({
|
|
@@ -13052,7 +13053,7 @@ q({
|
|
|
13052
13053
|
};
|
|
13053
13054
|
},
|
|
13054
13055
|
htmlBuilder: (r, e) => {
|
|
13055
|
-
var t = te(r.base, e), a =
|
|
13056
|
+
var t = te(r.base, e), a = d0.svgSpan(r, e), n = r.label === "\\utilde" ? 0.12 : 0, s = k.makeVList({
|
|
13056
13057
|
positionType: "top",
|
|
13057
13058
|
positionData: t.height,
|
|
13058
13059
|
children: [{
|
|
@@ -13070,7 +13071,7 @@ q({
|
|
|
13070
13071
|
return k.makeSpan(["mord", "accentunder"], [s], e);
|
|
13071
13072
|
},
|
|
13072
13073
|
mathmlBuilder: (r, e) => {
|
|
13073
|
-
var t =
|
|
13074
|
+
var t = d0.mathMLnode(r.label), a = new E.MathNode("munder", [oe(r.base, e), t]);
|
|
13074
13075
|
return a.setAttribute("accentunder", "true"), a;
|
|
13075
13076
|
}
|
|
13076
13077
|
});
|
|
@@ -13134,7 +13135,7 @@ q({
|
|
|
13134
13135
|
n.classes.push(s + "-arrow-pad");
|
|
13135
13136
|
var i;
|
|
13136
13137
|
r.below && (a = e.havingStyle(t.sub()), i = k.wrapFragment(te(r.below, a, e), e), i.classes.push(s + "-arrow-pad"));
|
|
13137
|
-
var l =
|
|
13138
|
+
var l = d0.svgSpan(r, e), u = -e.fontMetrics().axisHeight + 0.5 * l.height, d = -e.fontMetrics().axisHeight - 0.5 * l.height - 0.111;
|
|
13138
13139
|
(n.depth > 0.25 || r.label === "\\xleftequilibrium") && (d -= n.depth);
|
|
13139
13140
|
var h;
|
|
13140
13141
|
if (i) {
|
|
@@ -13171,18 +13172,18 @@ q({
|
|
|
13171
13172
|
return h.children[0].children[0].children[1].classes.push("svg-align"), k.makeSpan(["mrel", "x-arrow"], [h], e);
|
|
13172
13173
|
},
|
|
13173
13174
|
mathmlBuilder(r, e) {
|
|
13174
|
-
var t =
|
|
13175
|
+
var t = d0.mathMLnode(r.label);
|
|
13175
13176
|
t.setAttribute("minsize", r.label.charAt(0) === "x" ? "1.75em" : "3.0em");
|
|
13176
13177
|
var a;
|
|
13177
13178
|
if (r.body) {
|
|
13178
|
-
var n = Tt(
|
|
13179
|
+
var n = Tt(oe(r.body, e));
|
|
13179
13180
|
if (r.below) {
|
|
13180
|
-
var s = Tt(
|
|
13181
|
+
var s = Tt(oe(r.below, e));
|
|
13181
13182
|
a = new E.MathNode("munderover", [t, s, n]);
|
|
13182
13183
|
} else
|
|
13183
13184
|
a = new E.MathNode("mover", [t, n]);
|
|
13184
13185
|
} else if (r.below) {
|
|
13185
|
-
var i = Tt(
|
|
13186
|
+
var i = Tt(oe(r.below, e));
|
|
13186
13187
|
a = new E.MathNode("munder", [t, i]);
|
|
13187
13188
|
} else
|
|
13188
13189
|
a = Tt(), a = new E.MathNode("mover", [t, a]);
|
|
@@ -13374,7 +13375,7 @@ function U2(r) {
|
|
|
13374
13375
|
e[e.length - 1].length === 0 && e.pop();
|
|
13375
13376
|
break;
|
|
13376
13377
|
} else
|
|
13377
|
-
throw new
|
|
13378
|
+
throw new L("Expected \\\\ or \\cr or \\end", r.nextToken);
|
|
13378
13379
|
}
|
|
13379
13380
|
for (var a = [], n = [a], s = 0; s < e.length; s++) {
|
|
13380
13381
|
for (var i = e[s], l = cn(), u = 0; u < i.length; u++)
|
|
@@ -13399,14 +13400,14 @@ function U2(r) {
|
|
|
13399
13400
|
break;
|
|
13400
13401
|
}
|
|
13401
13402
|
if (un(i[x]))
|
|
13402
|
-
throw new
|
|
13403
|
+
throw new L("Missing a " + d + " character to complete a CD arrow.", i[x]);
|
|
13403
13404
|
h[p].body.push(i[x]);
|
|
13404
13405
|
}
|
|
13405
13406
|
if (y)
|
|
13406
|
-
throw new
|
|
13407
|
+
throw new L("Missing a " + d + " character to complete a CD arrow.", i[u]);
|
|
13407
13408
|
}
|
|
13408
13409
|
else
|
|
13409
|
-
throw new
|
|
13410
|
+
throw new L('Expected one of "<>AV=|." after @', i[u]);
|
|
13410
13411
|
var C = W2(d, h, r), S = {
|
|
13411
13412
|
type: "styling",
|
|
13412
13413
|
body: [C],
|
|
@@ -13462,7 +13463,7 @@ q({
|
|
|
13462
13463
|
return a.classes.push("cd-label-" + r.side), a.style.bottom = I(0.8 - a.depth), a.height = 0, a.depth = 0, a;
|
|
13463
13464
|
},
|
|
13464
13465
|
mathmlBuilder(r, e) {
|
|
13465
|
-
var t = new E.MathNode("mrow", [
|
|
13466
|
+
var t = new E.MathNode("mrow", [oe(r.label, e)]);
|
|
13466
13467
|
return t = new E.MathNode("mpadded", [t]), t.setAttribute("width", "0"), r.side === "left" && t.setAttribute("lspace", "-1width"), t.setAttribute("voffset", "0.7em"), t = new E.MathNode("mstyle", [t]), t.setAttribute("displaystyle", "false"), t.setAttribute("scriptlevel", "1"), t;
|
|
13467
13468
|
}
|
|
13468
13469
|
});
|
|
@@ -13487,7 +13488,7 @@ q({
|
|
|
13487
13488
|
return t.classes.push("cd-vert-arrow"), t;
|
|
13488
13489
|
},
|
|
13489
13490
|
mathmlBuilder(r, e) {
|
|
13490
|
-
return new E.MathNode("mrow", [
|
|
13491
|
+
return new E.MathNode("mrow", [oe(r.fragment, e)]);
|
|
13491
13492
|
}
|
|
13492
13493
|
});
|
|
13493
13494
|
q({
|
|
@@ -13506,9 +13507,9 @@ q({
|
|
|
13506
13507
|
}
|
|
13507
13508
|
var u = parseInt(s), d;
|
|
13508
13509
|
if (isNaN(u))
|
|
13509
|
-
throw new
|
|
13510
|
+
throw new L("\\@char has non-numeric argument " + s);
|
|
13510
13511
|
if (u < 0 || u >= 1114111)
|
|
13511
|
-
throw new
|
|
13512
|
+
throw new L("\\@char with invalid code point " + s);
|
|
13512
13513
|
return u <= 65535 ? d = String.fromCharCode(u) : (u -= 65536, d = String.fromCharCode((u >> 10) + 55296, (u & 1023) + 56320)), {
|
|
13513
13514
|
type: "textord",
|
|
13514
13515
|
mode: t.mode,
|
|
@@ -13613,7 +13614,7 @@ var Vr = {
|
|
|
13613
13614
|
}, ti = (r) => {
|
|
13614
13615
|
var e = r.text;
|
|
13615
13616
|
if (/^(?:[\\{}$&#^_]|EOF)$/.test(e))
|
|
13616
|
-
throw new
|
|
13617
|
+
throw new L("Expected a control sequence", r);
|
|
13617
13618
|
return e;
|
|
13618
13619
|
}, j2 = (r) => {
|
|
13619
13620
|
var e = r.gullet.popToken();
|
|
@@ -13648,7 +13649,7 @@ q({
|
|
|
13648
13649
|
var a = e.fetch();
|
|
13649
13650
|
if (Vr[a.text])
|
|
13650
13651
|
return (t === "\\global" || t === "\\\\globallong") && (a.text = Vr[a.text]), J(e.parseFunction(), "internal");
|
|
13651
|
-
throw new
|
|
13652
|
+
throw new L("Invalid token after macro prefix", a);
|
|
13652
13653
|
}
|
|
13653
13654
|
});
|
|
13654
13655
|
q({
|
|
@@ -13665,7 +13666,7 @@ q({
|
|
|
13665
13666
|
funcName: t
|
|
13666
13667
|
} = r, a = e.gullet.popToken(), n = a.text;
|
|
13667
13668
|
if (/^(?:[\\{}$&#^_]|EOF)$/.test(n))
|
|
13668
|
-
throw new
|
|
13669
|
+
throw new L("Expected a control sequence", a);
|
|
13669
13670
|
for (var s = 0, i, l = [[]]; e.gullet.future().text !== "{"; )
|
|
13670
13671
|
if (a = e.gullet.popToken(), a.text === "#") {
|
|
13671
13672
|
if (e.gullet.future().text === "{") {
|
|
@@ -13673,13 +13674,13 @@ q({
|
|
|
13673
13674
|
break;
|
|
13674
13675
|
}
|
|
13675
13676
|
if (a = e.gullet.popToken(), !/^[1-9]$/.test(a.text))
|
|
13676
|
-
throw new
|
|
13677
|
+
throw new L('Invalid argument number "' + a.text + '"');
|
|
13677
13678
|
if (parseInt(a.text) !== s + 1)
|
|
13678
|
-
throw new
|
|
13679
|
+
throw new L('Argument number "' + a.text + '" out of order');
|
|
13679
13680
|
s++, l.push([]);
|
|
13680
13681
|
} else {
|
|
13681
13682
|
if (a.text === "EOF")
|
|
13682
|
-
throw new
|
|
13683
|
+
throw new L("Expected a macro definition");
|
|
13683
13684
|
l[s].push(a.text);
|
|
13684
13685
|
}
|
|
13685
13686
|
var {
|
|
@@ -13744,7 +13745,7 @@ q({
|
|
|
13744
13745
|
}
|
|
13745
13746
|
});
|
|
13746
13747
|
var K0 = function(e, t, a) {
|
|
13747
|
-
var n =
|
|
13748
|
+
var n = le.math[e] && le.math[e].replace, s = ra(n || e, t, a);
|
|
13748
13749
|
if (!s)
|
|
13749
13750
|
throw new Error("Unsupported symbol " + e + " and font size " + t + ".");
|
|
13750
13751
|
return s;
|
|
@@ -13771,7 +13772,7 @@ var K0 = function(e, t, a) {
|
|
|
13771
13772
|
elem: s
|
|
13772
13773
|
};
|
|
13773
13774
|
}, xr = function(e, t, a) {
|
|
13774
|
-
var n =
|
|
13775
|
+
var n = Ze["Size4-Regular"][e.charCodeAt(0)] ? Ze["Size4-Regular"][e.charCodeAt(0)][4] : Ze["Size1-Regular"][e.charCodeAt(0)][4], s = new S0("inner", e2(e, Math.round(1e3 * t))), i = new c0([s], {
|
|
13775
13776
|
width: I(n),
|
|
13776
13777
|
height: I(t),
|
|
13777
13778
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -13791,42 +13792,42 @@ var K0 = function(e, t, a) {
|
|
|
13791
13792
|
l = d = h = e, u = null;
|
|
13792
13793
|
var x = "Size1-Regular";
|
|
13793
13794
|
e === "\\uparrow" ? d = h = "⏐" : e === "\\Uparrow" ? d = h = "‖" : e === "\\downarrow" ? l = d = "⏐" : e === "\\Downarrow" ? l = d = "‖" : e === "\\updownarrow" ? (l = "\\uparrow", d = "⏐", h = "\\downarrow") : e === "\\Updownarrow" ? (l = "\\Uparrow", d = "‖", h = "\\Downarrow") : Z2.includes(e) ? (d = "∣", p = "vert", y = 333) : K2.includes(e) ? (d = "∥", p = "doublevert", y = 556) : e === "[" || e === "\\lbrack" ? (l = "⎡", d = "⎢", h = "⎣", x = "Size4-Regular", p = "lbrack", y = 667) : e === "]" || e === "\\rbrack" ? (l = "⎤", d = "⎥", h = "⎦", x = "Size4-Regular", p = "rbrack", y = 667) : e === "\\lfloor" || e === "⌊" ? (d = l = "⎢", h = "⎣", x = "Size4-Regular", p = "lfloor", y = 667) : e === "\\lceil" || e === "⌈" ? (l = "⎡", d = h = "⎢", x = "Size4-Regular", p = "lceil", y = 667) : e === "\\rfloor" || e === "⌋" ? (d = l = "⎥", h = "⎦", x = "Size4-Regular", p = "rfloor", y = 667) : e === "\\rceil" || e === "⌉" ? (l = "⎤", d = h = "⎥", x = "Size4-Regular", p = "rceil", y = 667) : e === "(" || e === "\\lparen" ? (l = "⎛", d = "⎜", h = "⎝", x = "Size4-Regular", p = "lparen", y = 875) : e === ")" || e === "\\rparen" ? (l = "⎞", d = "⎟", h = "⎠", x = "Size4-Regular", p = "rparen", y = 875) : e === "\\{" || e === "\\lbrace" ? (l = "⎧", u = "⎨", h = "⎩", d = "⎪", x = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (l = "⎫", u = "⎬", h = "⎭", d = "⎪", x = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (l = "⎧", h = "⎩", d = "⎪", x = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (l = "⎫", h = "⎭", d = "⎪", x = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (l = "⎧", h = "⎭", d = "⎪", x = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (l = "⎫", h = "⎩", d = "⎪", x = "Size4-Regular");
|
|
13794
|
-
var C = K0(l, x, s), S = C.height + C.depth, z = K0(d, x, s), T = z.height + z.depth, D = K0(h, x, s),
|
|
13795
|
+
var C = K0(l, x, s), S = C.height + C.depth, z = K0(d, x, s), T = z.height + z.depth, D = K0(h, x, s), R = D.height + D.depth, O = 0, P = 1;
|
|
13795
13796
|
if (u !== null) {
|
|
13796
13797
|
var j = K0(u, x, s);
|
|
13797
|
-
|
|
13798
|
+
O = j.height + j.depth, P = 2;
|
|
13798
13799
|
}
|
|
13799
|
-
var
|
|
13800
|
-
a && (
|
|
13801
|
-
var ae = X / 2 -
|
|
13800
|
+
var F = S + R + O, B = Math.max(0, Math.ceil((t - F) / (P * T))), X = F + B * P * T, ce = n.fontMetrics().axisHeight;
|
|
13801
|
+
a && (ce *= n.sizeMultiplier);
|
|
13802
|
+
var ae = X / 2 - ce, ee = [];
|
|
13802
13803
|
if (p.length > 0) {
|
|
13803
|
-
var
|
|
13804
|
+
var ne = X - S - R, ye = Math.round(X * 1e3), fe = t2(p, Math.round(ne * 1e3)), ve = new S0(p, fe), Me = (y / 1e3).toFixed(3) + "em", U = (ye / 1e3).toFixed(3) + "em", a0 = new c0([ve], {
|
|
13804
13805
|
width: Me,
|
|
13805
13806
|
height: U,
|
|
13806
13807
|
viewBox: "0 0 " + y + " " + ye
|
|
13807
|
-
}), Re = k.makeSvgSpan([], [
|
|
13808
|
+
}), Re = k.makeSvgSpan([], [a0], n);
|
|
13808
13809
|
Re.height = ye / 1e3, Re.style.width = Me, Re.style.height = U, ee.push({
|
|
13809
13810
|
type: "elem",
|
|
13810
13811
|
elem: Re
|
|
13811
13812
|
});
|
|
13812
13813
|
} else {
|
|
13813
13814
|
if (ee.push(yr(h, x, s)), ee.push(At), u === null) {
|
|
13814
|
-
var Le = X - S -
|
|
13815
|
+
var Le = X - S - R + 2 * _r;
|
|
13815
13816
|
ee.push(xr(d, Le, n));
|
|
13816
13817
|
} else {
|
|
13817
|
-
var ke = (X - S -
|
|
13818
|
+
var ke = (X - S - R - O) / 2 + 2 * _r;
|
|
13818
13819
|
ee.push(xr(d, ke, n)), ee.push(At), ee.push(yr(u, x, s)), ee.push(At), ee.push(xr(d, ke, n));
|
|
13819
13820
|
}
|
|
13820
13821
|
ee.push(At), ee.push(yr(l, x, s));
|
|
13821
13822
|
}
|
|
13822
|
-
var
|
|
13823
|
+
var se = n.havingBaseStyle(Z.TEXT), xe = k.makeVList({
|
|
13823
13824
|
positionType: "bottom",
|
|
13824
13825
|
positionData: ae,
|
|
13825
13826
|
children: ee
|
|
13826
|
-
},
|
|
13827
|
-
return ca(k.makeSpan(["delimsizing", "mult"], [xe],
|
|
13827
|
+
}, se);
|
|
13828
|
+
return ca(k.makeSpan(["delimsizing", "mult"], [xe], se), Z.TEXT, n, i);
|
|
13828
13829
|
}, wr = 80, Sr = 0.08, kr = function(e, t, a, n, s) {
|
|
13829
|
-
var i = Q4(e, n, a), l = new S0(e, i), u = new
|
|
13830
|
+
var i = Q4(e, n, a), l = new S0(e, i), u = new c0([l], {
|
|
13830
13831
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
13831
13832
|
width: "400em",
|
|
13832
13833
|
height: I(t),
|
|
@@ -13850,7 +13851,7 @@ var K0 = function(e, t, a) {
|
|
|
13850
13851
|
return ni(e, t, !1, a, n, s);
|
|
13851
13852
|
if (Q2.includes(e))
|
|
13852
13853
|
return si(e, J0[t], !1, a, n, s);
|
|
13853
|
-
throw new
|
|
13854
|
+
throw new L("Illegal delimiter: '" + e + "'");
|
|
13854
13855
|
}, t5 = [{
|
|
13855
13856
|
type: "small",
|
|
13856
13857
|
style: Z.SCRIPTSCRIPT
|
|
@@ -13946,7 +13947,7 @@ var K0 = function(e, t, a) {
|
|
|
13946
13947
|
2 * h - d
|
|
13947
13948
|
);
|
|
13948
13949
|
return ui(e, p, !0, n, s, i);
|
|
13949
|
-
},
|
|
13950
|
+
}, l0 = {
|
|
13950
13951
|
sqrtImage: J2,
|
|
13951
13952
|
sizedDelim: e5,
|
|
13952
13953
|
sizeToMaxHeight: J0,
|
|
@@ -14022,7 +14023,7 @@ function Zt(r, e) {
|
|
|
14022
14023
|
var t = Xt(r);
|
|
14023
14024
|
if (t && s5.includes(t.text))
|
|
14024
14025
|
return t;
|
|
14025
|
-
throw t ? new
|
|
14026
|
+
throw t ? new L("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", r) : new L("Invalid delimiter type '" + r.type + "'", r);
|
|
14026
14027
|
}
|
|
14027
14028
|
q({
|
|
14028
14029
|
type: "delimsizing",
|
|
@@ -14041,13 +14042,13 @@ q({
|
|
|
14041
14042
|
delim: t.text
|
|
14042
14043
|
};
|
|
14043
14044
|
},
|
|
14044
|
-
htmlBuilder: (r, e) => r.delim === "." ? k.makeSpan([r.mclass]) :
|
|
14045
|
+
htmlBuilder: (r, e) => r.delim === "." ? k.makeSpan([r.mclass]) : l0.sizedDelim(r.delim, r.size, e, r.mode, [r.mclass]),
|
|
14045
14046
|
mathmlBuilder: (r) => {
|
|
14046
14047
|
var e = [];
|
|
14047
14048
|
r.delim !== "." && e.push($e(r.delim, r.mode));
|
|
14048
14049
|
var t = new E.MathNode("mo", e);
|
|
14049
14050
|
r.mclass === "mopen" || r.mclass === "mclose" ? t.setAttribute("fence", "true") : t.setAttribute("fence", "false"), t.setAttribute("stretchy", "true");
|
|
14050
|
-
var a = I(
|
|
14051
|
+
var a = I(l0.sizeToMaxHeight[r.size]);
|
|
14051
14052
|
return t.setAttribute("minsize", a), t.setAttribute("maxsize", a), t;
|
|
14052
14053
|
}
|
|
14053
14054
|
});
|
|
@@ -14065,7 +14066,7 @@ q({
|
|
|
14065
14066
|
handler: (r, e) => {
|
|
14066
14067
|
var t = r.parser.gullet.macros.get("\\current@color");
|
|
14067
14068
|
if (t && typeof t != "string")
|
|
14068
|
-
throw new
|
|
14069
|
+
throw new L("\\current@color set to non-string in \\right");
|
|
14069
14070
|
return {
|
|
14070
14071
|
type: "leftright-right",
|
|
14071
14072
|
mode: r.parser.mode,
|
|
@@ -14103,17 +14104,17 @@ q({
|
|
|
14103
14104
|
t[i].isMiddle ? s = !0 : (a = Math.max(t[i].height, a), n = Math.max(t[i].depth, n));
|
|
14104
14105
|
a *= e.sizeMultiplier, n *= e.sizeMultiplier;
|
|
14105
14106
|
var l;
|
|
14106
|
-
if (r.left === "." ? l = st(e, ["mopen"]) : l =
|
|
14107
|
+
if (r.left === "." ? l = st(e, ["mopen"]) : l = l0.leftRightDelim(r.left, a, n, e, r.mode, ["mopen"]), t.unshift(l), s)
|
|
14107
14108
|
for (var u = 1; u < t.length; u++) {
|
|
14108
14109
|
var d = t[u], h = d.isMiddle;
|
|
14109
|
-
h && (t[u] =
|
|
14110
|
+
h && (t[u] = l0.leftRightDelim(h.delim, a, n, h.options, r.mode, []));
|
|
14110
14111
|
}
|
|
14111
14112
|
var p;
|
|
14112
14113
|
if (r.right === ".")
|
|
14113
14114
|
p = st(e, ["mclose"]);
|
|
14114
14115
|
else {
|
|
14115
14116
|
var y = r.rightColor ? e.withColor(r.rightColor) : e;
|
|
14116
|
-
p =
|
|
14117
|
+
p = l0.leftRightDelim(r.right, a, n, y, r.mode, ["mclose"]);
|
|
14117
14118
|
}
|
|
14118
14119
|
return t.push(p), k.makeSpan(["minner"], t, e);
|
|
14119
14120
|
},
|
|
@@ -14141,7 +14142,7 @@ q({
|
|
|
14141
14142
|
handler: (r, e) => {
|
|
14142
14143
|
var t = Zt(e[0], r);
|
|
14143
14144
|
if (!r.parser.leftrightDepth)
|
|
14144
|
-
throw new
|
|
14145
|
+
throw new L("\\middle without preceding \\left", t);
|
|
14145
14146
|
return {
|
|
14146
14147
|
type: "middle",
|
|
14147
14148
|
mode: r.parser.mode,
|
|
@@ -14153,7 +14154,7 @@ q({
|
|
|
14153
14154
|
if (r.delim === ".")
|
|
14154
14155
|
t = st(e, []);
|
|
14155
14156
|
else {
|
|
14156
|
-
t =
|
|
14157
|
+
t = l0.sizedDelim(r.delim, 1, e, r.mode, []);
|
|
14157
14158
|
var a = {
|
|
14158
14159
|
delim: r.delim,
|
|
14159
14160
|
options: e
|
|
@@ -14182,7 +14183,7 @@ var ua = (r, e) => {
|
|
|
14182
14183
|
n = n / h.sizeMultiplier;
|
|
14183
14184
|
var p = t.height + t.depth + u + d;
|
|
14184
14185
|
t.style.paddingLeft = I(p / 2 + u);
|
|
14185
|
-
var y = Math.floor(1e3 * p * n), x = K4(y), C = new
|
|
14186
|
+
var y = Math.floor(1e3 * p * n), x = K4(y), C = new c0([new S0("phase", x)], {
|
|
14186
14187
|
width: "400em",
|
|
14187
14188
|
height: I(y / 1e3),
|
|
14188
14189
|
viewBox: "0 0 400000 " + y,
|
|
@@ -14197,7 +14198,7 @@ var ua = (r, e) => {
|
|
|
14197
14198
|
// default
|
|
14198
14199
|
e.minRuleThickness
|
|
14199
14200
|
// User override.
|
|
14200
|
-
), S = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : T), z = S) : a === "angl" ? (T = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), S = 4 * T, z = Math.max(0, 0.25 - t.depth)) : (S = l ? 0.2 : 0, z = S), s =
|
|
14201
|
+
), S = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : T), z = S) : a === "angl" ? (T = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), S = 4 * T, z = Math.max(0, 0.25 - t.depth)) : (S = l ? 0.2 : 0, z = S), s = d0.encloseSpan(t, a, S, z, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = I(T)) : a === "angl" && T !== 0.049 && (s.style.borderTopWidth = I(T), s.style.borderRightWidth = I(T)), i = t.depth + z, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
|
|
14201
14202
|
}
|
|
14202
14203
|
var D;
|
|
14203
14204
|
if (r.backgroundColor)
|
|
@@ -14218,7 +14219,7 @@ var ua = (r, e) => {
|
|
|
14218
14219
|
]
|
|
14219
14220
|
}, e);
|
|
14220
14221
|
else {
|
|
14221
|
-
var
|
|
14222
|
+
var R = /cancel|phase/.test(a) ? ["svg-align"] : [];
|
|
14222
14223
|
D = k.makeVList({
|
|
14223
14224
|
positionType: "individualShift",
|
|
14224
14225
|
children: [
|
|
@@ -14232,14 +14233,14 @@ var ua = (r, e) => {
|
|
|
14232
14233
|
type: "elem",
|
|
14233
14234
|
elem: s,
|
|
14234
14235
|
shift: i,
|
|
14235
|
-
wrapperClasses:
|
|
14236
|
+
wrapperClasses: R
|
|
14236
14237
|
}
|
|
14237
14238
|
]
|
|
14238
14239
|
}, e);
|
|
14239
14240
|
}
|
|
14240
14241
|
return /cancel/.test(a) && (D.height = t.height, D.depth = t.depth), /cancel/.test(a) && !l ? k.makeSpan(["mord", "cancel-lap"], [D], e) : k.makeSpan(["mord"], [D], e);
|
|
14241
14242
|
}, da = (r, e) => {
|
|
14242
|
-
var t = 0, a = new E.MathNode(r.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [
|
|
14243
|
+
var t = 0, a = new E.MathNode(r.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [oe(r.body, e)]);
|
|
14243
14244
|
switch (r.label) {
|
|
14244
14245
|
case "\\cancel":
|
|
14245
14246
|
a.setAttribute("notation", "updiagonalstrike");
|
|
@@ -14388,7 +14389,7 @@ q({
|
|
|
14388
14389
|
}
|
|
14389
14390
|
});
|
|
14390
14391
|
var di = {};
|
|
14391
|
-
function
|
|
14392
|
+
function e0(r) {
|
|
14392
14393
|
for (var {
|
|
14393
14394
|
type: e,
|
|
14394
14395
|
names: t,
|
|
@@ -14404,7 +14405,7 @@ function t0(r) {
|
|
|
14404
14405
|
handler: n
|
|
14405
14406
|
}, u = 0; u < t.length; ++u)
|
|
14406
14407
|
di[t[u]] = l;
|
|
14407
|
-
s && (
|
|
14408
|
+
s && (Ft[e] = s), i && (Ht[e] = i);
|
|
14408
14409
|
}
|
|
14409
14410
|
var mi = {};
|
|
14410
14411
|
function f(r, e) {
|
|
@@ -14421,7 +14422,7 @@ function hn(r) {
|
|
|
14421
14422
|
var Kt = (r) => {
|
|
14422
14423
|
var e = r.parser.settings;
|
|
14423
14424
|
if (!e.displayMode)
|
|
14424
|
-
throw new
|
|
14425
|
+
throw new L("{" + r.envName + "} can be used only in display mode.");
|
|
14425
14426
|
};
|
|
14426
14427
|
function ma(r) {
|
|
14427
14428
|
if (r.indexOf("ed") === -1)
|
|
@@ -14445,17 +14446,17 @@ function C0(r, e, t) {
|
|
|
14445
14446
|
if (x == null)
|
|
14446
14447
|
i = 1;
|
|
14447
14448
|
else if (i = parseFloat(x), !i || i < 0)
|
|
14448
|
-
throw new
|
|
14449
|
+
throw new L("Invalid \\arraystretch: " + x);
|
|
14449
14450
|
}
|
|
14450
14451
|
r.gullet.beginGroup();
|
|
14451
14452
|
var C = [], S = [C], z = [], T = [], D = u != null ? [] : void 0;
|
|
14452
|
-
function
|
|
14453
|
+
function R() {
|
|
14453
14454
|
u && r.gullet.macros.set("\\@eqnsw", "1", !0);
|
|
14454
14455
|
}
|
|
14455
|
-
function
|
|
14456
|
+
function O() {
|
|
14456
14457
|
D && (r.gullet.macros.get("\\df@tag") ? (D.push(r.subparse([new Oe("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : D.push(!!u && r.gullet.macros.get("\\@eqnsw") === "1"));
|
|
14457
14458
|
}
|
|
14458
|
-
for (
|
|
14459
|
+
for (R(), T.push(hn(r)); ; ) {
|
|
14459
14460
|
var P = r.parseExpression(!1, d ? "\\end" : "\\\\");
|
|
14460
14461
|
r.gullet.endGroup(), r.gullet.beginGroup(), P = {
|
|
14461
14462
|
type: "ordgroup",
|
|
@@ -14471,19 +14472,19 @@ function C0(r, e, t) {
|
|
|
14471
14472
|
if (j === "&") {
|
|
14472
14473
|
if (p && C.length === p) {
|
|
14473
14474
|
if (d || l)
|
|
14474
|
-
throw new
|
|
14475
|
+
throw new L("Too many tab characters: &", r.nextToken);
|
|
14475
14476
|
r.settings.reportNonstrict("textEnv", "Too few columns specified in the {array} column argument.");
|
|
14476
14477
|
}
|
|
14477
14478
|
r.consume();
|
|
14478
14479
|
} else if (j === "\\end") {
|
|
14479
|
-
|
|
14480
|
+
O(), C.length === 1 && P.type === "styling" && P.body[0].body.length === 0 && (S.length > 1 || !h) && S.pop(), T.length < S.length + 1 && T.push([]);
|
|
14480
14481
|
break;
|
|
14481
14482
|
} else if (j === "\\\\") {
|
|
14482
14483
|
r.consume();
|
|
14483
|
-
var
|
|
14484
|
-
r.gullet.future().text !== " " && (
|
|
14484
|
+
var F = void 0;
|
|
14485
|
+
r.gullet.future().text !== " " && (F = r.parseSizeGroup(!0)), z.push(F ? F.value : null), O(), T.push(hn(r)), C = [], S.push(C), R();
|
|
14485
14486
|
} else
|
|
14486
|
-
throw new
|
|
14487
|
+
throw new L("Expected & or \\\\ or \\cr or \\end", r.nextToken);
|
|
14487
14488
|
}
|
|
14488
14489
|
return r.gullet.endGroup(), r.gullet.endGroup(), {
|
|
14489
14490
|
type: "array",
|
|
@@ -14503,7 +14504,7 @@ function C0(r, e, t) {
|
|
|
14503
14504
|
function ha(r) {
|
|
14504
14505
|
return r.slice(0, 1) === "d" ? "display" : "text";
|
|
14505
14506
|
}
|
|
14506
|
-
var
|
|
14507
|
+
var t0 = function(e, t) {
|
|
14507
14508
|
var a, n, s = e.body.length, i = e.hLinesBeforeRow, l = 0, u = new Array(s), d = [], h = Math.max(
|
|
14508
14509
|
// From LaTeX \showthe\arrayrulewidth. Equals 0.04 em.
|
|
14509
14510
|
t.fontMetrics().arrayRuleWidth,
|
|
@@ -14517,63 +14518,63 @@ var r0 = function(e, t) {
|
|
|
14517
14518
|
var C = e.colSeparationType === "CD" ? me({
|
|
14518
14519
|
number: 3,
|
|
14519
14520
|
unit: "ex"
|
|
14520
|
-
}, t) : 12 * p, S = 3 * p, z = e.arraystretch * C, T = 0.7 * z, D = 0.3 * z,
|
|
14521
|
-
function
|
|
14521
|
+
}, t) : 12 * p, S = 3 * p, z = e.arraystretch * C, T = 0.7 * z, D = 0.3 * z, R = 0;
|
|
14522
|
+
function O(ut) {
|
|
14522
14523
|
for (var dt = 0; dt < ut.length; ++dt)
|
|
14523
|
-
dt > 0 && (
|
|
14524
|
-
pos:
|
|
14524
|
+
dt > 0 && (R += 0.25), d.push({
|
|
14525
|
+
pos: R,
|
|
14525
14526
|
isDashed: ut[dt]
|
|
14526
14527
|
});
|
|
14527
14528
|
}
|
|
14528
|
-
for (
|
|
14529
|
-
var P = e.body[a], j = T,
|
|
14529
|
+
for (O(i[0]), a = 0; a < e.body.length; ++a) {
|
|
14530
|
+
var P = e.body[a], j = T, F = D;
|
|
14530
14531
|
l < P.length && (l = P.length);
|
|
14531
14532
|
var B = new Array(P.length);
|
|
14532
14533
|
for (n = 0; n < P.length; ++n) {
|
|
14533
14534
|
var X = te(P[n], t);
|
|
14534
|
-
|
|
14535
|
+
F < X.depth && (F = X.depth), j < X.height && (j = X.height), B[n] = X;
|
|
14535
14536
|
}
|
|
14536
|
-
var
|
|
14537
|
-
|
|
14537
|
+
var ce = e.rowGaps[a], ae = 0;
|
|
14538
|
+
ce && (ae = me(ce, t), ae > 0 && (ae += D, F < ae && (F = ae), ae = 0)), e.addJot && (F += S), B.height = j, B.depth = F, R += j, B.pos = R, R += F + ae, u[a] = B, O(i[a + 1]);
|
|
14538
14539
|
}
|
|
14539
|
-
var ee =
|
|
14540
|
+
var ee = R / 2 + t.fontMetrics().axisHeight, ne = e.cols || [], ye = [], fe, ve, Me = [];
|
|
14540
14541
|
if (e.tags && e.tags.some((ut) => ut))
|
|
14541
14542
|
for (a = 0; a < s; ++a) {
|
|
14542
|
-
var U = u[a],
|
|
14543
|
+
var U = u[a], a0 = U.pos - ee, Re = e.tags[a], Le = void 0;
|
|
14543
14544
|
Re === !0 ? Le = k.makeSpan(["eqn-num"], [], t) : Re === !1 ? Le = k.makeSpan([], [], t) : Le = k.makeSpan([], Se(Re, t, !0), t), Le.depth = U.depth, Le.height = U.height, Me.push({
|
|
14544
14545
|
type: "elem",
|
|
14545
14546
|
elem: Le,
|
|
14546
|
-
shift:
|
|
14547
|
+
shift: a0
|
|
14547
14548
|
});
|
|
14548
14549
|
}
|
|
14549
14550
|
for (
|
|
14550
14551
|
n = 0, ve = 0;
|
|
14551
14552
|
// Continue while either there are more columns or more column
|
|
14552
14553
|
// descriptions, so trailing separators don't get lost.
|
|
14553
|
-
n < l || ve <
|
|
14554
|
+
n < l || ve < ne.length;
|
|
14554
14555
|
++n, ++ve
|
|
14555
14556
|
) {
|
|
14556
|
-
for (var ke =
|
|
14557
|
-
if (
|
|
14557
|
+
for (var ke = ne[ve] || {}, se = !0; ke.type === "separator"; ) {
|
|
14558
|
+
if (se || (fe = k.makeSpan(["arraycolsep"], []), fe.style.width = I(t.fontMetrics().doubleRuleSep), ye.push(fe)), ke.separator === "|" || ke.separator === ":") {
|
|
14558
14559
|
var xe = ke.separator === "|" ? "solid" : "dashed", Be = k.makeSpan(["vertical-separator"], [], t);
|
|
14559
|
-
Be.style.height = I(
|
|
14560
|
-
var M0 =
|
|
14560
|
+
Be.style.height = I(R), Be.style.borderRightWidth = I(h), Be.style.borderRightStyle = xe, Be.style.margin = "0 " + I(-h / 2);
|
|
14561
|
+
var M0 = R - ee;
|
|
14561
14562
|
M0 && (Be.style.verticalAlign = I(-M0)), ye.push(Be);
|
|
14562
14563
|
} else
|
|
14563
|
-
throw new
|
|
14564
|
-
ve++, ke =
|
|
14564
|
+
throw new L("Invalid separator type: " + ke.separator);
|
|
14565
|
+
ve++, ke = ne[ve] || {}, se = !1;
|
|
14565
14566
|
}
|
|
14566
14567
|
if (!(n >= l)) {
|
|
14567
|
-
var
|
|
14568
|
-
(n > 0 || e.hskipBeforeAndAfter) && (
|
|
14568
|
+
var ie = void 0;
|
|
14569
|
+
(n > 0 || e.hskipBeforeAndAfter) && (ie = re.deflt(ke.pregap, y), ie !== 0 && (fe = k.makeSpan(["arraycolsep"], []), fe.style.width = I(ie), ye.push(fe)));
|
|
14569
14570
|
var We = [];
|
|
14570
14571
|
for (a = 0; a < s; ++a) {
|
|
14571
|
-
var
|
|
14572
|
-
if (
|
|
14573
|
-
var _ =
|
|
14574
|
-
|
|
14572
|
+
var qe = u[a], Fe = qe[n];
|
|
14573
|
+
if (Fe) {
|
|
14574
|
+
var _ = qe.pos - ee;
|
|
14575
|
+
Fe.depth = qe.depth, Fe.height = qe.height, We.push({
|
|
14575
14576
|
type: "elem",
|
|
14576
|
-
elem:
|
|
14577
|
+
elem: Fe,
|
|
14577
14578
|
shift: _
|
|
14578
14579
|
});
|
|
14579
14580
|
}
|
|
@@ -14581,7 +14582,7 @@ var r0 = function(e, t) {
|
|
|
14581
14582
|
We = k.makeVList({
|
|
14582
14583
|
positionType: "individualShift",
|
|
14583
14584
|
children: We
|
|
14584
|
-
}, t), We = k.makeSpan(["col-align-" + (ke.align || "c")], [We]), ye.push(We), (n < l - 1 || e.hskipBeforeAndAfter) && (
|
|
14585
|
+
}, t), We = k.makeSpan(["col-align-" + (ke.align || "c")], [We]), ye.push(We), (n < l - 1 || e.hskipBeforeAndAfter) && (ie = re.deflt(ke.postgap, y), ie !== 0 && (fe = k.makeSpan(["arraycolsep"], []), fe.style.width = I(ie), ye.push(fe)));
|
|
14585
14586
|
}
|
|
14586
14587
|
}
|
|
14587
14588
|
if (u = k.makeSpan(["mtable"], ye), d.length > 0) {
|
|
@@ -14617,10 +14618,10 @@ var r0 = function(e, t) {
|
|
|
14617
14618
|
c: "center ",
|
|
14618
14619
|
l: "left ",
|
|
14619
14620
|
r: "right "
|
|
14620
|
-
},
|
|
14621
|
+
}, r0 = function(e, t) {
|
|
14621
14622
|
for (var a = [], n = new E.MathNode("mtd", [], ["mtr-glue"]), s = new E.MathNode("mtd", [], ["mml-eqn-num"]), i = 0; i < e.body.length; i++) {
|
|
14622
14623
|
for (var l = e.body[i], u = [], d = 0; d < l.length; d++)
|
|
14623
|
-
u.push(new E.MathNode("mtd", [
|
|
14624
|
+
u.push(new E.MathNode("mtd", [oe(l[d], t)]));
|
|
14624
14625
|
e.tags && e.tags[i] && (u.unshift(n), u.push(n), e.leqno ? u.unshift(s) : u.push(s)), a.push(new E.MathNode("mtr", u));
|
|
14625
14626
|
}
|
|
14626
14627
|
var h = new E.MathNode("mtable", a), p = e.arraystretch === 0.5 ? 0.1 : 0.16 + e.arraystretch - 1 + (e.addJot ? 0.09 : 0);
|
|
@@ -14629,20 +14630,20 @@ var r0 = function(e, t) {
|
|
|
14629
14630
|
if (e.cols && e.cols.length > 0) {
|
|
14630
14631
|
var C = e.cols, S = "", z = !1, T = 0, D = C.length;
|
|
14631
14632
|
C[0].type === "separator" && (y += "top ", T = 1), C[C.length - 1].type === "separator" && (y += "bottom ", D -= 1);
|
|
14632
|
-
for (var
|
|
14633
|
-
C[
|
|
14633
|
+
for (var R = T; R < D; R++)
|
|
14634
|
+
C[R].type === "align" ? (x += i5[C[R].align], z && (S += "none "), z = !0) : C[R].type === "separator" && z && (S += C[R].separator === "|" ? "solid " : "dashed ", z = !1);
|
|
14634
14635
|
h.setAttribute("columnalign", x.trim()), /[sd]/.test(S) && h.setAttribute("columnlines", S.trim());
|
|
14635
14636
|
}
|
|
14636
14637
|
if (e.colSeparationType === "align") {
|
|
14637
|
-
for (var
|
|
14638
|
+
for (var O = e.cols || [], P = "", j = 1; j < O.length; j++)
|
|
14638
14639
|
P += j % 2 ? "0em " : "1em ";
|
|
14639
14640
|
h.setAttribute("columnspacing", P.trim());
|
|
14640
14641
|
} else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? h.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? h.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? h.setAttribute("columnspacing", "0.5em") : h.setAttribute("columnspacing", "1em");
|
|
14641
|
-
var
|
|
14642
|
+
var F = "", B = e.hLinesBeforeRow;
|
|
14642
14643
|
y += B[0].length > 0 ? "left " : "", y += B[B.length - 1].length > 0 ? "right " : "";
|
|
14643
14644
|
for (var X = 1; X < B.length - 1; X++)
|
|
14644
|
-
|
|
14645
|
-
return /[sd]/.test(
|
|
14645
|
+
F += B[X].length === 0 ? "none " : B[X][0] ? "dashed " : "solid ";
|
|
14646
|
+
return /[sd]/.test(F) && h.setAttribute("rowlines", F.trim()), y !== "" && (h = new E.MathNode("menclose", [h]), h.setAttribute("notation", y.trim())), e.arraystretch && e.arraystretch < 1 && (h = new E.MathNode("mstyle", [h]), h.setAttribute("scriptlevel", "1")), h;
|
|
14646
14647
|
}, hi = function(e, t) {
|
|
14647
14648
|
e.envName.indexOf("ed") === -1 && Kt(e);
|
|
14648
14649
|
var a = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", i = C0(e.parser, {
|
|
@@ -14668,15 +14669,15 @@ var r0 = function(e, t) {
|
|
|
14668
14669
|
var x = !u;
|
|
14669
14670
|
i.body.forEach(function(T) {
|
|
14670
14671
|
for (var D = 1; D < T.length; D += 2) {
|
|
14671
|
-
var
|
|
14672
|
-
|
|
14672
|
+
var R = J(T[D], "styling"), O = J(R.body[0], "ordgroup");
|
|
14673
|
+
O.body.unshift(d);
|
|
14673
14674
|
}
|
|
14674
14675
|
if (x)
|
|
14675
14676
|
u < T.length && (u = T.length);
|
|
14676
14677
|
else {
|
|
14677
14678
|
var P = T.length / 2;
|
|
14678
14679
|
if (l < P)
|
|
14679
|
-
throw new
|
|
14680
|
+
throw new L("Too many math in a row: " + ("expected " + l + ", but got " + P), T[0]);
|
|
14680
14681
|
}
|
|
14681
14682
|
});
|
|
14682
14683
|
for (var C = 0; C < u; ++C) {
|
|
@@ -14690,7 +14691,7 @@ var r0 = function(e, t) {
|
|
|
14690
14691
|
}
|
|
14691
14692
|
return i.colSeparationType = x ? "align" : "alignat", i;
|
|
14692
14693
|
};
|
|
14693
|
-
|
|
14694
|
+
e0({
|
|
14694
14695
|
type: "array",
|
|
14695
14696
|
names: ["array", "darray"],
|
|
14696
14697
|
props: {
|
|
@@ -14714,7 +14715,7 @@ t0({
|
|
|
14714
14715
|
type: "separator",
|
|
14715
14716
|
separator: ":"
|
|
14716
14717
|
};
|
|
14717
|
-
throw new
|
|
14718
|
+
throw new L("Unknown column alignment: " + u, i);
|
|
14718
14719
|
}), s = {
|
|
14719
14720
|
cols: n,
|
|
14720
14721
|
hskipBeforeAndAfter: !0,
|
|
@@ -14723,10 +14724,10 @@ t0({
|
|
|
14723
14724
|
};
|
|
14724
14725
|
return C0(r.parser, s, ha(r.envName));
|
|
14725
14726
|
},
|
|
14726
|
-
htmlBuilder:
|
|
14727
|
-
mathmlBuilder:
|
|
14727
|
+
htmlBuilder: t0,
|
|
14728
|
+
mathmlBuilder: r0
|
|
14728
14729
|
});
|
|
14729
|
-
|
|
14730
|
+
e0({
|
|
14730
14731
|
type: "array",
|
|
14731
14732
|
names: ["matrix", "pmatrix", "bmatrix", "Bmatrix", "vmatrix", "Vmatrix", "matrix*", "pmatrix*", "bmatrix*", "Bmatrix*", "vmatrix*", "Vmatrix*"],
|
|
14732
14733
|
props: {
|
|
@@ -14751,7 +14752,7 @@ t0({
|
|
|
14751
14752
|
var n = r.parser;
|
|
14752
14753
|
if (n.consumeSpaces(), n.fetch().text === "[") {
|
|
14753
14754
|
if (n.consume(), n.consumeSpaces(), t = n.fetch().text, "lcr".indexOf(t) === -1)
|
|
14754
|
-
throw new
|
|
14755
|
+
throw new L("Expected l or c or r", n.nextToken);
|
|
14755
14756
|
n.consume(), n.consumeSpaces(), n.expect("]"), n.consume(), a.cols = [{
|
|
14756
14757
|
type: "align",
|
|
14757
14758
|
align: t
|
|
@@ -14772,10 +14773,10 @@ t0({
|
|
|
14772
14773
|
// \right uninfluenced by \color in array
|
|
14773
14774
|
} : s;
|
|
14774
14775
|
},
|
|
14775
|
-
htmlBuilder:
|
|
14776
|
-
mathmlBuilder:
|
|
14776
|
+
htmlBuilder: t0,
|
|
14777
|
+
mathmlBuilder: r0
|
|
14777
14778
|
});
|
|
14778
|
-
|
|
14779
|
+
e0({
|
|
14779
14780
|
type: "array",
|
|
14780
14781
|
names: ["smallmatrix"],
|
|
14781
14782
|
props: {
|
|
@@ -14787,10 +14788,10 @@ t0({
|
|
|
14787
14788
|
}, t = C0(r.parser, e, "script");
|
|
14788
14789
|
return t.colSeparationType = "small", t;
|
|
14789
14790
|
},
|
|
14790
|
-
htmlBuilder:
|
|
14791
|
-
mathmlBuilder:
|
|
14791
|
+
htmlBuilder: t0,
|
|
14792
|
+
mathmlBuilder: r0
|
|
14792
14793
|
});
|
|
14793
|
-
|
|
14794
|
+
e0({
|
|
14794
14795
|
type: "array",
|
|
14795
14796
|
names: ["subarray"],
|
|
14796
14797
|
props: {
|
|
@@ -14804,23 +14805,23 @@ t0({
|
|
|
14804
14805
|
type: "align",
|
|
14805
14806
|
align: u
|
|
14806
14807
|
};
|
|
14807
|
-
throw new
|
|
14808
|
+
throw new L("Unknown column alignment: " + u, i);
|
|
14808
14809
|
});
|
|
14809
14810
|
if (n.length > 1)
|
|
14810
|
-
throw new
|
|
14811
|
+
throw new L("{subarray} can contain only one column");
|
|
14811
14812
|
var s = {
|
|
14812
14813
|
cols: n,
|
|
14813
14814
|
hskipBeforeAndAfter: !1,
|
|
14814
14815
|
arraystretch: 0.5
|
|
14815
14816
|
};
|
|
14816
14817
|
if (s = C0(r.parser, s, "script"), s.body.length > 0 && s.body[0].length > 1)
|
|
14817
|
-
throw new
|
|
14818
|
+
throw new L("{subarray} can contain only one column");
|
|
14818
14819
|
return s;
|
|
14819
14820
|
},
|
|
14820
|
-
htmlBuilder:
|
|
14821
|
-
mathmlBuilder:
|
|
14821
|
+
htmlBuilder: t0,
|
|
14822
|
+
mathmlBuilder: r0
|
|
14822
14823
|
});
|
|
14823
|
-
|
|
14824
|
+
e0({
|
|
14824
14825
|
type: "array",
|
|
14825
14826
|
names: ["cases", "dcases", "rcases", "drcases"],
|
|
14826
14827
|
props: {
|
|
@@ -14855,20 +14856,20 @@ t0({
|
|
|
14855
14856
|
rightColor: void 0
|
|
14856
14857
|
};
|
|
14857
14858
|
},
|
|
14858
|
-
htmlBuilder:
|
|
14859
|
-
mathmlBuilder:
|
|
14859
|
+
htmlBuilder: t0,
|
|
14860
|
+
mathmlBuilder: r0
|
|
14860
14861
|
});
|
|
14861
|
-
|
|
14862
|
+
e0({
|
|
14862
14863
|
type: "array",
|
|
14863
14864
|
names: ["align", "align*", "aligned", "split"],
|
|
14864
14865
|
props: {
|
|
14865
14866
|
numArgs: 0
|
|
14866
14867
|
},
|
|
14867
14868
|
handler: hi,
|
|
14868
|
-
htmlBuilder:
|
|
14869
|
-
mathmlBuilder:
|
|
14869
|
+
htmlBuilder: t0,
|
|
14870
|
+
mathmlBuilder: r0
|
|
14870
14871
|
});
|
|
14871
|
-
|
|
14872
|
+
e0({
|
|
14872
14873
|
type: "array",
|
|
14873
14874
|
names: ["gathered", "gather", "gather*"],
|
|
14874
14875
|
props: {
|
|
@@ -14889,20 +14890,20 @@ t0({
|
|
|
14889
14890
|
};
|
|
14890
14891
|
return C0(r.parser, e, "display");
|
|
14891
14892
|
},
|
|
14892
|
-
htmlBuilder:
|
|
14893
|
-
mathmlBuilder:
|
|
14893
|
+
htmlBuilder: t0,
|
|
14894
|
+
mathmlBuilder: r0
|
|
14894
14895
|
});
|
|
14895
|
-
|
|
14896
|
+
e0({
|
|
14896
14897
|
type: "array",
|
|
14897
14898
|
names: ["alignat", "alignat*", "alignedat"],
|
|
14898
14899
|
props: {
|
|
14899
14900
|
numArgs: 1
|
|
14900
14901
|
},
|
|
14901
14902
|
handler: hi,
|
|
14902
|
-
htmlBuilder:
|
|
14903
|
-
mathmlBuilder:
|
|
14903
|
+
htmlBuilder: t0,
|
|
14904
|
+
mathmlBuilder: r0
|
|
14904
14905
|
});
|
|
14905
|
-
|
|
14906
|
+
e0({
|
|
14906
14907
|
type: "array",
|
|
14907
14908
|
names: ["equation", "equation*"],
|
|
14908
14909
|
props: {
|
|
@@ -14919,10 +14920,10 @@ t0({
|
|
|
14919
14920
|
};
|
|
14920
14921
|
return C0(r.parser, e, "display");
|
|
14921
14922
|
},
|
|
14922
|
-
htmlBuilder:
|
|
14923
|
-
mathmlBuilder:
|
|
14923
|
+
htmlBuilder: t0,
|
|
14924
|
+
mathmlBuilder: r0
|
|
14924
14925
|
});
|
|
14925
|
-
|
|
14926
|
+
e0({
|
|
14926
14927
|
type: "array",
|
|
14927
14928
|
names: ["CD"],
|
|
14928
14929
|
props: {
|
|
@@ -14931,8 +14932,8 @@ t0({
|
|
|
14931
14932
|
handler(r) {
|
|
14932
14933
|
return Kt(r), U2(r.parser);
|
|
14933
14934
|
},
|
|
14934
|
-
htmlBuilder:
|
|
14935
|
-
mathmlBuilder:
|
|
14935
|
+
htmlBuilder: t0,
|
|
14936
|
+
mathmlBuilder: r0
|
|
14936
14937
|
});
|
|
14937
14938
|
f("\\nonumber", "\\gdef\\@eqnsw{0}");
|
|
14938
14939
|
f("\\notag", "\\nonumber");
|
|
@@ -14946,7 +14947,7 @@ q({
|
|
|
14946
14947
|
allowedInMath: !0
|
|
14947
14948
|
},
|
|
14948
14949
|
handler(r, e) {
|
|
14949
|
-
throw new
|
|
14950
|
+
throw new L(r.funcName + " valid only within array environment");
|
|
14950
14951
|
}
|
|
14951
14952
|
});
|
|
14952
14953
|
var fn = di;
|
|
@@ -14963,12 +14964,12 @@ q({
|
|
|
14963
14964
|
funcName: a
|
|
14964
14965
|
} = r, n = e[0];
|
|
14965
14966
|
if (n.type !== "ordgroup")
|
|
14966
|
-
throw new
|
|
14967
|
+
throw new L("Invalid environment name", n);
|
|
14967
14968
|
for (var s = "", i = 0; i < n.body.length; ++i)
|
|
14968
14969
|
s += J(n.body[i], "textord").text;
|
|
14969
14970
|
if (a === "\\begin") {
|
|
14970
14971
|
if (!fn.hasOwnProperty(s))
|
|
14971
|
-
throw new
|
|
14972
|
+
throw new L("No such environment: " + s, n);
|
|
14972
14973
|
var l = fn[s], {
|
|
14973
14974
|
args: u,
|
|
14974
14975
|
optArgs: d
|
|
@@ -14980,7 +14981,7 @@ q({
|
|
|
14980
14981
|
t.expect("\\end", !1);
|
|
14981
14982
|
var y = t.nextToken, x = J(t.parseFunction(), "environment");
|
|
14982
14983
|
if (x.name !== s)
|
|
14983
|
-
throw new
|
|
14984
|
+
throw new L("Mismatch: \\begin{" + s + "} matched by \\end{" + x.name + "}", y);
|
|
14984
14985
|
return p;
|
|
14985
14986
|
}
|
|
14986
14987
|
return {
|
|
@@ -14996,7 +14997,7 @@ var fi = (r, e) => {
|
|
|
14996
14997
|
return te(r.body, a);
|
|
14997
14998
|
}, pi = (r, e) => {
|
|
14998
14999
|
var t = r.font, a = e.withFont(t);
|
|
14999
|
-
return
|
|
15000
|
+
return oe(r.body, a);
|
|
15000
15001
|
}, pn = {
|
|
15001
15002
|
"\\Bbb": "\\mathbb",
|
|
15002
15003
|
"\\bold": "\\mathbf",
|
|
@@ -15116,7 +15117,7 @@ var vi = (r, e) => {
|
|
|
15116
15117
|
if (h) {
|
|
15117
15118
|
var D = e.fontMetrics().axisHeight;
|
|
15118
15119
|
x - i.depth - (D + 0.5 * p) < C && (x += C - (x - i.depth - (D + 0.5 * p))), D - 0.5 * p - (d.height - S) < C && (S += C - (D - 0.5 * p - (d.height - S)));
|
|
15119
|
-
var
|
|
15120
|
+
var R = -(D - 0.5 * p);
|
|
15120
15121
|
z = k.makeVList({
|
|
15121
15122
|
positionType: "individualShift",
|
|
15122
15123
|
children: [{
|
|
@@ -15126,7 +15127,7 @@ var vi = (r, e) => {
|
|
|
15126
15127
|
}, {
|
|
15127
15128
|
type: "elem",
|
|
15128
15129
|
elem: h,
|
|
15129
|
-
shift:
|
|
15130
|
+
shift: R
|
|
15130
15131
|
}, {
|
|
15131
15132
|
type: "elem",
|
|
15132
15133
|
elem: i,
|
|
@@ -15149,12 +15150,12 @@ var vi = (r, e) => {
|
|
|
15149
15150
|
}, e);
|
|
15150
15151
|
}
|
|
15151
15152
|
s = e.havingStyle(t), z.height *= s.sizeMultiplier / e.sizeMultiplier, z.depth *= s.sizeMultiplier / e.sizeMultiplier;
|
|
15152
|
-
var
|
|
15153
|
-
t.size === Z.DISPLAY.size ?
|
|
15153
|
+
var O;
|
|
15154
|
+
t.size === Z.DISPLAY.size ? O = e.fontMetrics().delim1 : t.size === Z.SCRIPTSCRIPT.size ? O = e.havingStyle(Z.SCRIPT).fontMetrics().delim2 : O = e.fontMetrics().delim2;
|
|
15154
15155
|
var P, j;
|
|
15155
|
-
return r.leftDelim == null ? P = st(e, ["mopen"]) : P =
|
|
15156
|
+
return r.leftDelim == null ? P = st(e, ["mopen"]) : P = l0.customSizedDelim(r.leftDelim, O, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? j = k.makeSpan([]) : r.rightDelim == null ? j = st(e, ["mclose"]) : j = l0.customSizedDelim(r.rightDelim, O, !0, e.havingStyle(t), r.mode, ["mclose"]), k.makeSpan(["mord"].concat(s.sizingClasses(e)), [P, k.makeSpan(["mfrac"], [z]), j], e);
|
|
15156
15157
|
}, pa = (r, e) => {
|
|
15157
|
-
var t = new E.MathNode("mfrac", [
|
|
15158
|
+
var t = new E.MathNode("mfrac", [oe(r.numer, e), oe(r.denom, e)]);
|
|
15158
15159
|
if (!r.hasBarLine)
|
|
15159
15160
|
t.setAttribute("linethickness", "0px");
|
|
15160
15161
|
else if (r.barSize) {
|
|
@@ -15414,7 +15415,7 @@ q({
|
|
|
15414
15415
|
var gi = (r, e) => {
|
|
15415
15416
|
var t = e.style, a, n;
|
|
15416
15417
|
r.type === "supsub" ? (a = r.sup ? te(r.sup, e.havingStyle(t.sup()), e) : te(r.sub, e.havingStyle(t.sub()), e), n = J(r.base, "horizBrace")) : n = J(r, "horizBrace");
|
|
15417
|
-
var s = te(n.base, e.havingBaseStyle(Z.DISPLAY)), i =
|
|
15418
|
+
var s = te(n.base, e.havingBaseStyle(Z.DISPLAY)), i = d0.svgSpan(n, e), l;
|
|
15418
15419
|
if (n.isOver ? (l = k.makeVList({
|
|
15419
15420
|
positionType: "firstBaseline",
|
|
15420
15421
|
children: [{
|
|
@@ -15471,8 +15472,8 @@ var gi = (r, e) => {
|
|
|
15471
15472
|
}
|
|
15472
15473
|
return k.makeSpan(["mord", n.isOver ? "mover" : "munder"], [l], e);
|
|
15473
15474
|
}, o5 = (r, e) => {
|
|
15474
|
-
var t =
|
|
15475
|
-
return new E.MathNode(r.isOver ? "mover" : "munder", [
|
|
15475
|
+
var t = d0.mathMLnode(r.label);
|
|
15476
|
+
return new E.MathNode(r.isOver ? "mover" : "munder", [oe(r.base, e), t]);
|
|
15476
15477
|
};
|
|
15477
15478
|
q({
|
|
15478
15479
|
type: "horizBrace",
|
|
@@ -15632,7 +15633,7 @@ q({
|
|
|
15632
15633
|
for (var d = s.split(","), h = 0; h < d.length; h++) {
|
|
15633
15634
|
var p = d[h].split("=");
|
|
15634
15635
|
if (p.length !== 2)
|
|
15635
|
-
throw new
|
|
15636
|
+
throw new L("Error parsing key-value for \\htmlData");
|
|
15636
15637
|
u["data-" + p[0].trim()] = p[1].trim();
|
|
15637
15638
|
}
|
|
15638
15639
|
l = {
|
|
@@ -15693,14 +15694,14 @@ var Cr = function(e) {
|
|
|
15693
15694
|
};
|
|
15694
15695
|
var t = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);
|
|
15695
15696
|
if (!t)
|
|
15696
|
-
throw new
|
|
15697
|
+
throw new L("Invalid size: '" + e + "' in \\includegraphics");
|
|
15697
15698
|
var a = {
|
|
15698
15699
|
number: +(t[1] + t[2]),
|
|
15699
15700
|
// sign + magnitude, cast to number
|
|
15700
15701
|
unit: t[3]
|
|
15701
15702
|
};
|
|
15702
15703
|
if (!Os(a))
|
|
15703
|
-
throw new
|
|
15704
|
+
throw new L("Invalid unit: '" + a.unit + "' in \\includegraphics.");
|
|
15704
15705
|
return a;
|
|
15705
15706
|
};
|
|
15706
15707
|
q({
|
|
@@ -15744,7 +15745,7 @@ q({
|
|
|
15744
15745
|
i = Cr(y);
|
|
15745
15746
|
break;
|
|
15746
15747
|
default:
|
|
15747
|
-
throw new
|
|
15748
|
+
throw new L("Invalid key: '" + p[0] + "' in \\includegraphics.");
|
|
15748
15749
|
}
|
|
15749
15750
|
}
|
|
15750
15751
|
}
|
|
@@ -15843,7 +15844,7 @@ q({
|
|
|
15843
15844
|
return s.style.height = I(n.height + n.depth), n.depth && (s.style.verticalAlign = I(-n.depth)), n.children.unshift(s), n = k.makeSpan(["thinbox"], [n], e), k.makeSpan(["mord", "vbox"], [n], e);
|
|
15844
15845
|
},
|
|
15845
15846
|
mathmlBuilder: (r, e) => {
|
|
15846
|
-
var t = new E.MathNode("mpadded", [
|
|
15847
|
+
var t = new E.MathNode("mpadded", [oe(r.body, e)]);
|
|
15847
15848
|
if (r.alignment !== "rlap") {
|
|
15848
15849
|
var a = r.alignment === "llap" ? "-1" : "-0.5";
|
|
15849
15850
|
t.setAttribute("lspace", a + "width");
|
|
@@ -15884,7 +15885,7 @@ q({
|
|
|
15884
15885
|
allowedInMath: !1
|
|
15885
15886
|
},
|
|
15886
15887
|
handler(r, e) {
|
|
15887
|
-
throw new
|
|
15888
|
+
throw new L("Mismatched " + r.funcName);
|
|
15888
15889
|
}
|
|
15889
15890
|
});
|
|
15890
15891
|
var bn = (r, e) => {
|
|
@@ -16066,7 +16067,7 @@ var bi = (r, e, t, a, n, s, i) => {
|
|
|
16066
16067
|
else if (r.body)
|
|
16067
16068
|
t = new Ie("mo", Ee(r.body, e));
|
|
16068
16069
|
else {
|
|
16069
|
-
t = new Ie("mi", [new
|
|
16070
|
+
t = new Ie("mi", [new Ke(r.name.slice(1))]);
|
|
16070
16071
|
var a = new Ie("mo", [$e("", "text")]);
|
|
16071
16072
|
r.parentIsSupSub ? t = new Ie("mrow", [t, a]) : t = js([t, a]);
|
|
16072
16073
|
}
|
|
@@ -16331,7 +16332,7 @@ q({
|
|
|
16331
16332
|
mathmlBuilder(r, e) {
|
|
16332
16333
|
var t = new E.MathNode("mo", [new E.TextNode("‾")]);
|
|
16333
16334
|
t.setAttribute("stretchy", "true");
|
|
16334
|
-
var a = new E.MathNode("mover", [
|
|
16335
|
+
var a = new E.MathNode("mover", [oe(r.body, e), t]);
|
|
16335
16336
|
return a.setAttribute("accent", "true"), a;
|
|
16336
16337
|
}
|
|
16337
16338
|
});
|
|
@@ -16453,7 +16454,7 @@ q({
|
|
|
16453
16454
|
}, e);
|
|
16454
16455
|
},
|
|
16455
16456
|
mathmlBuilder(r, e) {
|
|
16456
|
-
var t = new E.MathNode("mpadded", [
|
|
16457
|
+
var t = new E.MathNode("mpadded", [oe(r.body, e)]), a = r.dy.number + r.dy.unit;
|
|
16457
16458
|
return t.setAttribute("voffset", a), t;
|
|
16458
16459
|
}
|
|
16459
16460
|
});
|
|
@@ -16601,7 +16602,7 @@ q({
|
|
|
16601
16602
|
return k.makeSpan(["mord"], [s], e);
|
|
16602
16603
|
},
|
|
16603
16604
|
mathmlBuilder: (r, e) => {
|
|
16604
|
-
var t = new E.MathNode("mpadded", [
|
|
16605
|
+
var t = new E.MathNode("mpadded", [oe(r.body, e)]);
|
|
16605
16606
|
return r.smashHeight && t.setAttribute("height", "0px"), r.smashDepth && t.setAttribute("depth", "0px"), t;
|
|
16606
16607
|
}
|
|
16607
16608
|
});
|
|
@@ -16632,7 +16633,7 @@ q({
|
|
|
16632
16633
|
span: u,
|
|
16633
16634
|
ruleWidth: d,
|
|
16634
16635
|
advanceWidth: h
|
|
16635
|
-
} =
|
|
16636
|
+
} = l0.sqrtImage(l, e), p = u.height - d;
|
|
16636
16637
|
p > t.height + t.depth + i && (i = (i + p - t.height - t.depth) / 2);
|
|
16637
16638
|
var y = u.height - t.height - i - d;
|
|
16638
16639
|
t.style.paddingLeft = I(h);
|
|
@@ -16671,7 +16672,7 @@ q({
|
|
|
16671
16672
|
body: t,
|
|
16672
16673
|
index: a
|
|
16673
16674
|
} = r;
|
|
16674
|
-
return a ? new E.MathNode("mroot", [
|
|
16675
|
+
return a ? new E.MathNode("mroot", [oe(t, e), oe(a, e)]) : new E.MathNode("msqrt", [oe(t, e)]);
|
|
16675
16676
|
}
|
|
16676
16677
|
});
|
|
16677
16678
|
var xn = {
|
|
@@ -16760,17 +16761,17 @@ B0({
|
|
|
16760
16761
|
e.style === Z.DISPLAY ? S = d.sup1 : e.style.cramped ? S = d.sup3 : S = d.sup2;
|
|
16761
16762
|
var z = e.sizeMultiplier, T = I(0.5 / d.ptPerEm / z), D = null;
|
|
16762
16763
|
if (u) {
|
|
16763
|
-
var
|
|
16764
|
-
(i instanceof Ge ||
|
|
16764
|
+
var R = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
|
|
16765
|
+
(i instanceof Ge || R) && (D = I(-i.italic));
|
|
16765
16766
|
}
|
|
16766
|
-
var
|
|
16767
|
+
var O;
|
|
16767
16768
|
if (l && u) {
|
|
16768
16769
|
h = Math.max(h, S, l.depth + 0.25 * d.xHeight), p = Math.max(p, d.sub2);
|
|
16769
16770
|
var P = d.defaultRuleThickness, j = 4 * P;
|
|
16770
16771
|
if (h - l.depth - (u.height - p) < j) {
|
|
16771
16772
|
p = j - (h - l.depth) + u.height;
|
|
16772
|
-
var
|
|
16773
|
-
|
|
16773
|
+
var F = 0.8 * d.xHeight - (h - l.depth);
|
|
16774
|
+
F > 0 && (h += F, p -= F);
|
|
16774
16775
|
}
|
|
16775
16776
|
var B = [{
|
|
16776
16777
|
type: "elem",
|
|
@@ -16784,7 +16785,7 @@ B0({
|
|
|
16784
16785
|
shift: -h,
|
|
16785
16786
|
marginRight: T
|
|
16786
16787
|
}];
|
|
16787
|
-
|
|
16788
|
+
O = k.makeVList({
|
|
16788
16789
|
positionType: "individualShift",
|
|
16789
16790
|
children: B
|
|
16790
16791
|
}, e);
|
|
@@ -16796,13 +16797,13 @@ B0({
|
|
|
16796
16797
|
marginLeft: D,
|
|
16797
16798
|
marginRight: T
|
|
16798
16799
|
}];
|
|
16799
|
-
|
|
16800
|
+
O = k.makeVList({
|
|
16800
16801
|
positionType: "shift",
|
|
16801
16802
|
positionData: p,
|
|
16802
16803
|
children: X
|
|
16803
16804
|
}, e);
|
|
16804
16805
|
} else if (l)
|
|
16805
|
-
h = Math.max(h, S, l.depth + 0.25 * d.xHeight),
|
|
16806
|
+
h = Math.max(h, S, l.depth + 0.25 * d.xHeight), O = k.makeVList({
|
|
16806
16807
|
positionType: "shift",
|
|
16807
16808
|
positionData: -h,
|
|
16808
16809
|
children: [{
|
|
@@ -16813,14 +16814,14 @@ B0({
|
|
|
16813
16814
|
}, e);
|
|
16814
16815
|
else
|
|
16815
16816
|
throw new Error("supsub must have either sup or sub.");
|
|
16816
|
-
var
|
|
16817
|
-
return k.makeSpan([
|
|
16817
|
+
var ce = Fr(i, "right") || "mord";
|
|
16818
|
+
return k.makeSpan([ce], [i, k.makeSpan(["msupsub"], [O])], e);
|
|
16818
16819
|
},
|
|
16819
16820
|
mathmlBuilder(r, e) {
|
|
16820
16821
|
var t = !1, a, n;
|
|
16821
16822
|
r.base && r.base.type === "horizBrace" && (n = !!r.sup, n === r.base.isOver && (t = !0, a = r.base.isOver)), r.base && (r.base.type === "op" || r.base.type === "operatorname") && (r.base.parentIsSupSub = !0);
|
|
16822
|
-
var s = [
|
|
16823
|
-
r.sub && s.push(
|
|
16823
|
+
var s = [oe(r.base, e)];
|
|
16824
|
+
r.sub && s.push(oe(r.sub, e)), r.sup && s.push(oe(r.sup, e));
|
|
16824
16825
|
var i;
|
|
16825
16826
|
if (t)
|
|
16826
16827
|
i = a ? "mover" : "munder";
|
|
@@ -16905,7 +16906,7 @@ B0({
|
|
|
16905
16906
|
} else {
|
|
16906
16907
|
if (Mr.hasOwnProperty(r.text))
|
|
16907
16908
|
return k.makeSpan(["mspace", Mr[r.text]], [], e);
|
|
16908
|
-
throw new
|
|
16909
|
+
throw new L('Unknown type of space "' + r.text + '"');
|
|
16909
16910
|
}
|
|
16910
16911
|
},
|
|
16911
16912
|
mathmlBuilder(r, e) {
|
|
@@ -16915,7 +16916,7 @@ B0({
|
|
|
16915
16916
|
else {
|
|
16916
16917
|
if (Mr.hasOwnProperty(r.text))
|
|
16917
16918
|
return new E.MathNode("mspace");
|
|
16918
|
-
throw new
|
|
16919
|
+
throw new L('Unknown type of space "' + r.text + '"');
|
|
16919
16920
|
}
|
|
16920
16921
|
return t;
|
|
16921
16922
|
}
|
|
@@ -17039,7 +17040,7 @@ q({
|
|
|
17039
17040
|
mathmlBuilder(r, e) {
|
|
17040
17041
|
var t = new E.MathNode("mo", [new E.TextNode("‾")]);
|
|
17041
17042
|
t.setAttribute("stretchy", "true");
|
|
17042
|
-
var a = new E.MathNode("munder", [
|
|
17043
|
+
var a = new E.MathNode("munder", [oe(r.body, e), t]);
|
|
17043
17044
|
return a.setAttribute("accentunder", "true"), a;
|
|
17044
17045
|
}
|
|
17045
17046
|
});
|
|
@@ -17074,7 +17075,7 @@ q({
|
|
|
17074
17075
|
}, e);
|
|
17075
17076
|
},
|
|
17076
17077
|
mathmlBuilder(r, e) {
|
|
17077
|
-
return new E.MathNode("mpadded", [
|
|
17078
|
+
return new E.MathNode("mpadded", [oe(r.body, e)], ["vcenter"]);
|
|
17078
17079
|
}
|
|
17079
17080
|
});
|
|
17080
17081
|
q({
|
|
@@ -17085,7 +17086,7 @@ q({
|
|
|
17085
17086
|
allowedInText: !0
|
|
17086
17087
|
},
|
|
17087
17088
|
handler(r, e, t) {
|
|
17088
|
-
throw new
|
|
17089
|
+
throw new L("\\verb ended by end of line instead of matching delimiter");
|
|
17089
17090
|
},
|
|
17090
17091
|
htmlBuilder(r, e) {
|
|
17091
17092
|
for (var t = Mn(r), a = [], n = e.havingStyle(e.style.text()), s = 0; s < t.length; s++) {
|
|
@@ -17134,7 +17135,7 @@ class zn {
|
|
|
17134
17135
|
return new Oe("EOF", new De(this, t, t));
|
|
17135
17136
|
var a = this.tokenRegex.exec(e);
|
|
17136
17137
|
if (a === null || a.index !== t)
|
|
17137
|
-
throw new
|
|
17138
|
+
throw new L("Unexpected character: '" + e[t] + "'", new Oe(e[t], new De(this, t, t + 1)));
|
|
17138
17139
|
var n = a[6] || a[3] || (a[2] ? "\\ " : " ");
|
|
17139
17140
|
if (this.catcodes[n] === 14) {
|
|
17140
17141
|
var s = e.indexOf(`
|
|
@@ -17165,7 +17166,7 @@ class x5 {
|
|
|
17165
17166
|
*/
|
|
17166
17167
|
endGroup() {
|
|
17167
17168
|
if (this.undefStack.length === 0)
|
|
17168
|
-
throw new
|
|
17169
|
+
throw new L("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");
|
|
17169
17170
|
var e = this.undefStack.pop();
|
|
17170
17171
|
for (var t in e)
|
|
17171
17172
|
e.hasOwnProperty(t) && (e[t] == null ? delete this.current[t] : this.current[t] = e[t]);
|
|
@@ -17302,14 +17303,14 @@ f("\\char", function(r) {
|
|
|
17302
17303
|
a = e.text.charCodeAt(1);
|
|
17303
17304
|
else {
|
|
17304
17305
|
if (e.text === "EOF")
|
|
17305
|
-
throw new
|
|
17306
|
+
throw new L("\\char` missing argument");
|
|
17306
17307
|
a = e.text.charCodeAt(0);
|
|
17307
17308
|
}
|
|
17308
17309
|
else
|
|
17309
17310
|
t = 10;
|
|
17310
17311
|
if (t) {
|
|
17311
17312
|
if (a = Nn[e.text], a == null || a >= t)
|
|
17312
|
-
throw new
|
|
17313
|
+
throw new L("Invalid base-" + t + " digit " + e.text);
|
|
17313
17314
|
for (var n; (n = Nn[r.future().text]) != null && n < t; )
|
|
17314
17315
|
a *= t, a += n, r.popToken();
|
|
17315
17316
|
}
|
|
@@ -17318,18 +17319,18 @@ f("\\char", function(r) {
|
|
|
17318
17319
|
var va = (r, e, t, a) => {
|
|
17319
17320
|
var n = r.consumeArg().tokens;
|
|
17320
17321
|
if (n.length !== 1)
|
|
17321
|
-
throw new
|
|
17322
|
+
throw new L("\\newcommand's first argument must be a macro name");
|
|
17322
17323
|
var s = n[0].text, i = r.isDefined(s);
|
|
17323
17324
|
if (i && !e)
|
|
17324
|
-
throw new
|
|
17325
|
+
throw new L("\\newcommand{" + s + "} attempting to redefine " + (s + "; use \\renewcommand"));
|
|
17325
17326
|
if (!i && !t)
|
|
17326
|
-
throw new
|
|
17327
|
+
throw new L("\\renewcommand{" + s + "} when command " + s + " does not yet exist; use \\newcommand");
|
|
17327
17328
|
var l = 0;
|
|
17328
17329
|
if (n = r.consumeArg().tokens, n.length === 1 && n[0].text === "[") {
|
|
17329
17330
|
for (var u = "", d = r.expandNextToken(); d.text !== "]" && d.text !== "EOF"; )
|
|
17330
17331
|
u += d.text, d = r.expandNextToken();
|
|
17331
17332
|
if (!u.match(/^\s*[0-9]+\s*$/))
|
|
17332
|
-
throw new
|
|
17333
|
+
throw new L("Invalid number of arguments: " + u);
|
|
17333
17334
|
l = parseInt(u), n = r.consumeArg().tokens;
|
|
17334
17335
|
}
|
|
17335
17336
|
return i && a || r.macros.set(s, {
|
|
@@ -17350,7 +17351,7 @@ f("\\errmessage", (r) => {
|
|
|
17350
17351
|
});
|
|
17351
17352
|
f("\\show", (r) => {
|
|
17352
17353
|
var e = r.popToken(), t = e.text;
|
|
17353
|
-
return console.log(e, r.macros.get(t), y0[t],
|
|
17354
|
+
return console.log(e, r.macros.get(t), y0[t], le.math[t], le.text[t]), "";
|
|
17354
17355
|
});
|
|
17355
17356
|
f("\\bgroup", "{");
|
|
17356
17357
|
f("\\egroup", "}");
|
|
@@ -17485,7 +17486,7 @@ var Tn = {
|
|
|
17485
17486
|
};
|
|
17486
17487
|
f("\\dots", function(r) {
|
|
17487
17488
|
var e = "\\dotso", t = r.expandAfterFuture().text;
|
|
17488
|
-
return t in Tn ? e = Tn[t] : (t.slice(0, 4) === "\\not" || t in
|
|
17489
|
+
return t in Tn ? e = Tn[t] : (t.slice(0, 4) === "\\not" || t in le.math && ["bin", "rel"].includes(le.math[t].group)) && (e = "\\dotsb"), e;
|
|
17489
17490
|
});
|
|
17490
17491
|
var ga = {
|
|
17491
17492
|
// \rightdelim@ checks for the following:
|
|
@@ -17550,7 +17551,7 @@ f("\\tag", "\\@ifstar\\tag@literal\\tag@paren");
|
|
|
17550
17551
|
f("\\tag@paren", "\\tag@literal{({#1})}");
|
|
17551
17552
|
f("\\tag@literal", (r) => {
|
|
17552
17553
|
if (r.macros.get("\\df@tag"))
|
|
17553
|
-
throw new
|
|
17554
|
+
throw new L("Multiple \\tag");
|
|
17554
17555
|
return "\\gdef\\df@tag{\\text{#1}}";
|
|
17555
17556
|
});
|
|
17556
17557
|
f("\\bmod", "\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");
|
|
@@ -17559,7 +17560,7 @@ f("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
|
|
|
17559
17560
|
f("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
|
|
17560
17561
|
f("\\newline", "\\\\\\relax");
|
|
17561
17562
|
f("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
|
|
17562
|
-
var Ci = I(
|
|
17563
|
+
var Ci = I(Ze["Main-Regular"][84][1] - 0.7 * Ze["Main-Regular"][65][1]);
|
|
17563
17564
|
f("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + Ci + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
|
|
17564
17565
|
f("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + Ci + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
|
|
17565
17566
|
f("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
|
|
@@ -17914,9 +17915,9 @@ class S5 {
|
|
|
17914
17915
|
++i;
|
|
17915
17916
|
else if (s.text === "}") {
|
|
17916
17917
|
if (--i, i === -1)
|
|
17917
|
-
throw new
|
|
17918
|
+
throw new L("Extra }", s);
|
|
17918
17919
|
} else if (s.text === "EOF")
|
|
17919
|
-
throw new
|
|
17920
|
+
throw new L("Unexpected end of input in a macro argument, expected '" + (e && a ? e[l] : "}") + "'", s);
|
|
17920
17921
|
if (e && a)
|
|
17921
17922
|
if ((i === 0 || i === 1 && e[l] === "{") && s.text === e[l]) {
|
|
17922
17923
|
if (++l, l === e.length) {
|
|
@@ -17939,11 +17940,11 @@ class S5 {
|
|
|
17939
17940
|
consumeArgs(e, t) {
|
|
17940
17941
|
if (t) {
|
|
17941
17942
|
if (t.length !== e + 1)
|
|
17942
|
-
throw new
|
|
17943
|
+
throw new L("The length of delimiters doesn't match the number of args!");
|
|
17943
17944
|
for (var a = t[0], n = 0; n < a.length; n++) {
|
|
17944
17945
|
var s = this.popToken();
|
|
17945
17946
|
if (a[n] !== s.text)
|
|
17946
|
-
throw new
|
|
17947
|
+
throw new L("Use of the macro doesn't match its definition", s);
|
|
17947
17948
|
}
|
|
17948
17949
|
}
|
|
17949
17950
|
for (var i = [], l = 0; l < e; l++)
|
|
@@ -17956,7 +17957,7 @@ class S5 {
|
|
|
17956
17957
|
*/
|
|
17957
17958
|
countExpansion(e) {
|
|
17958
17959
|
if (this.expansionCount += e, this.expansionCount > this.settings.maxExpand)
|
|
17959
|
-
throw new
|
|
17960
|
+
throw new L("Too many expansions: infinite loop or need to increase maxExpand setting");
|
|
17960
17961
|
}
|
|
17961
17962
|
/**
|
|
17962
17963
|
* Expand the next token only once if possible.
|
|
@@ -17981,7 +17982,7 @@ class S5 {
|
|
|
17981
17982
|
var t = this.popToken(), a = t.text, n = t.noexpand ? null : this._getExpansion(a);
|
|
17982
17983
|
if (n == null || e && n.unexpandable) {
|
|
17983
17984
|
if (e && n == null && a[0] === "\\" && !this.isDefined(a))
|
|
17984
|
-
throw new
|
|
17985
|
+
throw new L("Undefined control sequence: " + a);
|
|
17985
17986
|
return this.pushToken(t), !1;
|
|
17986
17987
|
}
|
|
17987
17988
|
this.countExpansion(1);
|
|
@@ -17992,13 +17993,13 @@ class S5 {
|
|
|
17992
17993
|
var u = s[l];
|
|
17993
17994
|
if (u.text === "#") {
|
|
17994
17995
|
if (l === 0)
|
|
17995
|
-
throw new
|
|
17996
|
+
throw new L("Incomplete placeholder at end of macro body", u);
|
|
17996
17997
|
if (u = s[--l], u.text === "#")
|
|
17997
17998
|
s.splice(l + 1, 1);
|
|
17998
17999
|
else if (/^[1-9]$/.test(u.text))
|
|
17999
18000
|
s.splice(l, 2, ...i[+u.text - 1]);
|
|
18000
18001
|
else
|
|
18001
|
-
throw new
|
|
18002
|
+
throw new L("Not a valid argument number", u);
|
|
18002
18003
|
}
|
|
18003
18004
|
}
|
|
18004
18005
|
}
|
|
@@ -18090,7 +18091,7 @@ class S5 {
|
|
|
18090
18091
|
* `implicitCommands`.
|
|
18091
18092
|
*/
|
|
18092
18093
|
isDefined(e) {
|
|
18093
|
-
return this.macros.has(e) || y0.hasOwnProperty(e) ||
|
|
18094
|
+
return this.macros.has(e) || y0.hasOwnProperty(e) || le.math.hasOwnProperty(e) || le.text.hasOwnProperty(e) || zi.hasOwnProperty(e);
|
|
18094
18095
|
}
|
|
18095
18096
|
/**
|
|
18096
18097
|
* Determine whether a command is expandable.
|
|
@@ -18606,7 +18607,7 @@ class Jt {
|
|
|
18606
18607
|
*/
|
|
18607
18608
|
expect(e, t) {
|
|
18608
18609
|
if (t === void 0 && (t = !0), this.fetch().text !== e)
|
|
18609
|
-
throw new
|
|
18610
|
+
throw new L("Expected '" + e + "', got '" + this.fetch().text + "'", this.fetch());
|
|
18610
18611
|
t && this.consume();
|
|
18611
18612
|
}
|
|
18612
18613
|
/**
|
|
@@ -18688,7 +18689,7 @@ class Jt {
|
|
|
18688
18689
|
for (var t = -1, a, n = 0; n < e.length; n++)
|
|
18689
18690
|
if (e[n].type === "infix") {
|
|
18690
18691
|
if (t !== -1)
|
|
18691
|
-
throw new
|
|
18692
|
+
throw new L("only one infix operator per group", e[n].token);
|
|
18692
18693
|
t = n, a = e[n].replaceWith;
|
|
18693
18694
|
}
|
|
18694
18695
|
if (t !== -1 && a) {
|
|
@@ -18719,7 +18720,7 @@ class Jt {
|
|
|
18719
18720
|
n = this.parseGroup(e);
|
|
18720
18721
|
} while (((s = n) == null ? void 0 : s.type) === "internal");
|
|
18721
18722
|
if (!n)
|
|
18722
|
-
throw new
|
|
18723
|
+
throw new L("Expected group after '" + a + "'", t);
|
|
18723
18724
|
return n;
|
|
18724
18725
|
}
|
|
18725
18726
|
/**
|
|
@@ -18762,19 +18763,19 @@ class Jt {
|
|
|
18762
18763
|
} else if (t && t.type === "operatorname")
|
|
18763
18764
|
t.alwaysHandleSupSub && (t.limits = s.text === "\\limits");
|
|
18764
18765
|
else
|
|
18765
|
-
throw new
|
|
18766
|
+
throw new L("Limit controls must follow a math operator", s);
|
|
18766
18767
|
this.consume();
|
|
18767
18768
|
} else if (s.text === "^") {
|
|
18768
18769
|
if (a)
|
|
18769
|
-
throw new
|
|
18770
|
+
throw new L("Double superscript", s);
|
|
18770
18771
|
a = this.handleSupSubscript("superscript");
|
|
18771
18772
|
} else if (s.text === "_") {
|
|
18772
18773
|
if (n)
|
|
18773
|
-
throw new
|
|
18774
|
+
throw new L("Double subscript", s);
|
|
18774
18775
|
n = this.handleSupSubscript("subscript");
|
|
18775
18776
|
} else if (s.text === "'") {
|
|
18776
18777
|
if (a)
|
|
18777
|
-
throw new
|
|
18778
|
+
throw new L("Double superscript", s);
|
|
18778
18779
|
var l = {
|
|
18779
18780
|
type: "textord",
|
|
18780
18781
|
mode: this.mode,
|
|
@@ -18824,11 +18825,11 @@ class Jt {
|
|
|
18824
18825
|
if (!s)
|
|
18825
18826
|
return null;
|
|
18826
18827
|
if (this.consume(), t && t !== "atom" && !s.allowedInArgument)
|
|
18827
|
-
throw new
|
|
18828
|
+
throw new L("Got function '" + n + "' with no arguments" + (t ? " as " + t : ""), a);
|
|
18828
18829
|
if (this.mode === "text" && !s.allowedInText)
|
|
18829
|
-
throw new
|
|
18830
|
+
throw new L("Can't use function '" + n + "' in text mode", a);
|
|
18830
18831
|
if (this.mode === "math" && s.allowedInMath === !1)
|
|
18831
|
-
throw new
|
|
18832
|
+
throw new L("Can't use function '" + n + "' in math mode", a);
|
|
18832
18833
|
var {
|
|
18833
18834
|
args: i,
|
|
18834
18835
|
optArgs: l
|
|
@@ -18847,7 +18848,7 @@ class Jt {
|
|
|
18847
18848
|
}, l = y0[e];
|
|
18848
18849
|
if (l && l.handler)
|
|
18849
18850
|
return l.handler(i, t, a);
|
|
18850
|
-
throw new
|
|
18851
|
+
throw new L("No function handler for " + e);
|
|
18851
18852
|
}
|
|
18852
18853
|
/**
|
|
18853
18854
|
* Parses the arguments of a function or environment
|
|
@@ -18869,7 +18870,7 @@ class Jt {
|
|
|
18869
18870
|
else if (d != null)
|
|
18870
18871
|
n.push(d);
|
|
18871
18872
|
else
|
|
18872
|
-
throw new
|
|
18873
|
+
throw new L("Null argument, please report this as a bug");
|
|
18873
18874
|
}
|
|
18874
18875
|
return {
|
|
18875
18876
|
args: n,
|
|
@@ -18910,10 +18911,10 @@ class Jt {
|
|
|
18910
18911
|
}
|
|
18911
18912
|
case "primitive": {
|
|
18912
18913
|
if (a)
|
|
18913
|
-
throw new
|
|
18914
|
+
throw new L("A primitive argument cannot be optional");
|
|
18914
18915
|
var i = this.parseGroup(e);
|
|
18915
18916
|
if (i == null)
|
|
18916
|
-
throw new
|
|
18917
|
+
throw new L("Expected group as " + e, this.fetch());
|
|
18917
18918
|
return i;
|
|
18918
18919
|
}
|
|
18919
18920
|
case "original":
|
|
@@ -18921,7 +18922,7 @@ class Jt {
|
|
|
18921
18922
|
case void 0:
|
|
18922
18923
|
return this.parseArgumentGroup(a);
|
|
18923
18924
|
default:
|
|
18924
|
-
throw new
|
|
18925
|
+
throw new L("Unknown group type as " + e, this.fetch());
|
|
18925
18926
|
}
|
|
18926
18927
|
}
|
|
18927
18928
|
/**
|
|
@@ -18952,7 +18953,7 @@ class Jt {
|
|
|
18952
18953
|
for (var a = this.fetch(), n = a, s = "", i; (i = this.fetch()).text !== "EOF" && e.test(s + i.text); )
|
|
18953
18954
|
n = i, s += n.text, this.consume();
|
|
18954
18955
|
if (s === "")
|
|
18955
|
-
throw new
|
|
18956
|
+
throw new L("Invalid " + t + ": '" + a.text + "'", a);
|
|
18956
18957
|
return a.range(n, s);
|
|
18957
18958
|
}
|
|
18958
18959
|
/**
|
|
@@ -18964,7 +18965,7 @@ class Jt {
|
|
|
18964
18965
|
return null;
|
|
18965
18966
|
var a = /^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);
|
|
18966
18967
|
if (!a)
|
|
18967
|
-
throw new
|
|
18968
|
+
throw new L("Invalid color: '" + t.text + "'", t);
|
|
18968
18969
|
var n = a[0];
|
|
18969
18970
|
return /^[0-9a-f]{6}$/i.test(n) && (n = "#" + n), {
|
|
18970
18971
|
type: "color-token",
|
|
@@ -18982,14 +18983,14 @@ class Jt {
|
|
|
18982
18983
|
!e && t.text.length === 0 && (t.text = "0pt", a = !0);
|
|
18983
18984
|
var n = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);
|
|
18984
18985
|
if (!n)
|
|
18985
|
-
throw new
|
|
18986
|
+
throw new L("Invalid size: '" + t.text + "'", t);
|
|
18986
18987
|
var s = {
|
|
18987
18988
|
number: +(n[1] + n[2]),
|
|
18988
18989
|
// sign + magnitude, cast to number
|
|
18989
18990
|
unit: n[3]
|
|
18990
18991
|
};
|
|
18991
18992
|
if (!Os(s))
|
|
18992
|
-
throw new
|
|
18993
|
+
throw new L("Invalid unit: '" + s.unit + "'", t);
|
|
18993
18994
|
return {
|
|
18994
18995
|
type: "size",
|
|
18995
18996
|
mode: this.mode,
|
|
@@ -19058,7 +19059,7 @@ class Jt {
|
|
|
19058
19059
|
};
|
|
19059
19060
|
} else if (s = this.parseFunction(t, e) || this.parseSymbol(), s == null && n[0] === "\\" && !zi.hasOwnProperty(n)) {
|
|
19060
19061
|
if (this.settings.throwOnError)
|
|
19061
|
-
throw new
|
|
19062
|
+
throw new L("Undefined control sequence: " + n, a);
|
|
19062
19063
|
s = this.formatUnsupportedCmd(n), this.consume();
|
|
19063
19064
|
}
|
|
19064
19065
|
return s;
|
|
@@ -19102,7 +19103,7 @@ class Jt {
|
|
|
19102
19103
|
this.consume();
|
|
19103
19104
|
var a = t.slice(5), n = a.charAt(0) === "*";
|
|
19104
19105
|
if (n && (a = a.slice(1)), a.length < 2 || a.charAt(0) !== a.slice(-1))
|
|
19105
|
-
throw new
|
|
19106
|
+
throw new L(`\\verb assertion failed --
|
|
19106
19107
|
please report what input caused this bug`);
|
|
19107
19108
|
return a = a.slice(1, -1), {
|
|
19108
19109
|
type: "verb",
|
|
@@ -19111,13 +19112,13 @@ class Jt {
|
|
|
19111
19112
|
star: n
|
|
19112
19113
|
};
|
|
19113
19114
|
}
|
|
19114
|
-
Dn.hasOwnProperty(t[0]) && !
|
|
19115
|
+
Dn.hasOwnProperty(t[0]) && !le[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = Dn[t[0]] + t.slice(1));
|
|
19115
19116
|
var s = b5.exec(t);
|
|
19116
19117
|
s && (t = t.substring(0, s.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ"));
|
|
19117
19118
|
var i;
|
|
19118
|
-
if (
|
|
19119
|
-
this.settings.strict && this.mode === "math" &&
|
|
19120
|
-
var l =
|
|
19119
|
+
if (le[this.mode][t]) {
|
|
19120
|
+
this.settings.strict && this.mode === "math" && qr.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
|
|
19121
|
+
var l = le[this.mode][t].group, u = De.range(e), d;
|
|
19121
19122
|
if (u2.hasOwnProperty(l)) {
|
|
19122
19123
|
var h = l;
|
|
19123
19124
|
d = {
|
|
@@ -19148,10 +19149,10 @@ class Jt {
|
|
|
19148
19149
|
for (var p = 0; p < s[0].length; p++) {
|
|
19149
19150
|
var y = s[0][p];
|
|
19150
19151
|
if (!Nr[y])
|
|
19151
|
-
throw new
|
|
19152
|
+
throw new L("Unknown accent ' " + y + "'", e);
|
|
19152
19153
|
var x = Nr[y][this.mode] || Nr[y].text;
|
|
19153
19154
|
if (!x)
|
|
19154
|
-
throw new
|
|
19155
|
+
throw new L("Accent " + y + " unsupported in " + this.mode + " mode", e);
|
|
19155
19156
|
i = {
|
|
19156
19157
|
type: "accent",
|
|
19157
19158
|
mode: this.mode,
|
|
@@ -19175,7 +19176,7 @@ var ba = function(e, t) {
|
|
|
19175
19176
|
var n = a.parse();
|
|
19176
19177
|
if (delete a.gullet.macros.current["\\current@color"], delete a.gullet.macros.current["\\color"], a.gullet.macros.get("\\df@tag")) {
|
|
19177
19178
|
if (!t.displayMode)
|
|
19178
|
-
throw new
|
|
19179
|
+
throw new L("\\tag works only in display equations");
|
|
19179
19180
|
n = [{
|
|
19180
19181
|
type: "tag",
|
|
19181
19182
|
mode: "text",
|
|
@@ -19190,7 +19191,7 @@ var ba = function(e, t) {
|
|
|
19190
19191
|
t.appendChild(n);
|
|
19191
19192
|
};
|
|
19192
19193
|
typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), Ni = function() {
|
|
19193
|
-
throw new
|
|
19194
|
+
throw new L("KaTeX doesn't work in quirks mode.");
|
|
19194
19195
|
});
|
|
19195
19196
|
var k5 = function(e, t) {
|
|
19196
19197
|
var a = ya(e, t).toMarkup();
|
|
@@ -19199,7 +19200,7 @@ var k5 = function(e, t) {
|
|
|
19199
19200
|
var a = new ea(t);
|
|
19200
19201
|
return ba(e, a);
|
|
19201
19202
|
}, Ti = function(e, t, a) {
|
|
19202
|
-
if (a.throwOnError || !(e instanceof
|
|
19203
|
+
if (a.throwOnError || !(e instanceof L))
|
|
19203
19204
|
throw e;
|
|
19204
19205
|
var n = k.makeSpan(["katex-error"], [new Ge(t)]);
|
|
19205
19206
|
return n.setAttribute("title", e.toString()), n.setAttribute("style", "color:" + a.errorColor), n;
|
|
@@ -19223,7 +19224,7 @@ var k5 = function(e, t) {
|
|
|
19223
19224
|
Span: lt,
|
|
19224
19225
|
Anchor: aa,
|
|
19225
19226
|
SymbolNode: Ge,
|
|
19226
|
-
SvgNode:
|
|
19227
|
+
SvgNode: c0,
|
|
19227
19228
|
PathNode: S0,
|
|
19228
19229
|
LineNode: Pr
|
|
19229
19230
|
}, Ai = {
|
|
@@ -19244,7 +19245,7 @@ var k5 = function(e, t) {
|
|
|
19244
19245
|
/**
|
|
19245
19246
|
* KaTeX error, usually during parsing.
|
|
19246
19247
|
*/
|
|
19247
|
-
ParseError:
|
|
19248
|
+
ParseError: L,
|
|
19248
19249
|
/**
|
|
19249
19250
|
* The schema of Settings
|
|
19250
19251
|
*/
|
|
@@ -19793,13 +19794,13 @@ export {
|
|
|
19793
19794
|
Rd as ChevronsUp,
|
|
19794
19795
|
Ld as Chrome,
|
|
19795
19796
|
Bd as Circle,
|
|
19796
|
-
|
|
19797
|
+
qi as Clipboard,
|
|
19797
19798
|
Gi as ClockHistory,
|
|
19798
19799
|
Id as Cloud,
|
|
19799
19800
|
Od as CloudDrizzle,
|
|
19800
19801
|
Pd as CloudLightning,
|
|
19801
|
-
|
|
19802
|
-
|
|
19802
|
+
qd as CloudOff,
|
|
19803
|
+
Fd as CloudRain,
|
|
19803
19804
|
Hd as CloudSnow,
|
|
19804
19805
|
Vd as Code,
|
|
19805
19806
|
_d as Codepen,
|
|
@@ -19838,7 +19839,7 @@ export {
|
|
|
19838
19839
|
v6 as Droplet,
|
|
19839
19840
|
g6 as Dumbell,
|
|
19840
19841
|
b6 as Edit2,
|
|
19841
|
-
|
|
19842
|
+
Fi as Edit3,
|
|
19842
19843
|
y6 as Eye,
|
|
19843
19844
|
x6 as EyeOff,
|
|
19844
19845
|
w6 as Facebook,
|
|
@@ -19861,8 +19862,8 @@ export {
|
|
|
19861
19862
|
Yo as FullLogo,
|
|
19862
19863
|
O6 as GalleryView,
|
|
19863
19864
|
P6 as Gauge,
|
|
19864
|
-
|
|
19865
|
-
|
|
19865
|
+
q6 as Gift,
|
|
19866
|
+
F6 as GitBranch,
|
|
19866
19867
|
H6 as GitCommit,
|
|
19867
19868
|
V6 as GitMerge,
|
|
19868
19869
|
_6 as GitPullRequest,
|
|
@@ -19881,7 +19882,7 @@ export {
|
|
|
19881
19882
|
t3 as Image,
|
|
19882
19883
|
r3 as Inbox,
|
|
19883
19884
|
Rn as Info,
|
|
19884
|
-
|
|
19885
|
+
Fl as Input,
|
|
19885
19886
|
a3 as Instagram,
|
|
19886
19887
|
n3 as Invite,
|
|
19887
19888
|
s3 as Italic,
|
|
@@ -19923,8 +19924,8 @@ export {
|
|
|
19923
19924
|
I3 as MousePointer,
|
|
19924
19925
|
O3 as Move,
|
|
19925
19926
|
P3 as Music,
|
|
19926
|
-
|
|
19927
|
-
|
|
19927
|
+
q3 as Navigation,
|
|
19928
|
+
F3 as Navigation2,
|
|
19928
19929
|
H3 as NewChat,
|
|
19929
19930
|
V3 as Octagon,
|
|
19930
19931
|
_3 as Package,
|
|
@@ -19984,8 +19985,8 @@ export {
|
|
|
19984
19985
|
I7 as Slash,
|
|
19985
19986
|
O7 as Sliders,
|
|
19986
19987
|
P7 as Smartphone,
|
|
19987
|
-
|
|
19988
|
-
|
|
19988
|
+
q7 as Smile,
|
|
19989
|
+
F7 as Sort1,
|
|
19989
19990
|
H7 as SortDefault,
|
|
19990
19991
|
V7 as SortDown,
|
|
19991
19992
|
_7 as SortUp,
|
|
@@ -20002,7 +20003,7 @@ export {
|
|
|
20002
20003
|
Z7 as Sunset,
|
|
20003
20004
|
K7 as TableView,
|
|
20004
20005
|
J7 as Tablet,
|
|
20005
|
-
|
|
20006
|
+
q5 as Tabs,
|
|
20006
20007
|
M1 as TabsContent,
|
|
20007
20008
|
k1 as TabsList,
|
|
20008
20009
|
C1 as TabsTrigger,
|
|
@@ -20019,7 +20020,7 @@ export {
|
|
|
20019
20020
|
Hi as ThumbsUp,
|
|
20020
20021
|
B1 as Timestamp,
|
|
20021
20022
|
O0 as Toast,
|
|
20022
|
-
|
|
20023
|
+
F5 as ToastContainer,
|
|
20023
20024
|
Y1 as Toggle,
|
|
20024
20025
|
sm as ToggleLeft,
|
|
20025
20026
|
im as ToggleRight,
|
|
@@ -20064,8 +20065,8 @@ export {
|
|
|
20064
20065
|
Om as Wind,
|
|
20065
20066
|
Pm as WorkStream,
|
|
20066
20067
|
Wr as X,
|
|
20067
|
-
|
|
20068
|
-
|
|
20068
|
+
qm as XCircle,
|
|
20069
|
+
Fm as XOctagon,
|
|
20069
20070
|
Hm as XSquare,
|
|
20070
20071
|
Vm as Youtube,
|
|
20071
20072
|
_m as Zap,
|