@crimson-education/helios-editor-renderer 0.1.0 → 0.3.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/index.mjs +599 -566
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as J, jsxs as Qt, Fragment as Ty } from "react/jsx-runtime";
|
|
2
2
|
import * as mr from "react";
|
|
3
3
|
import ce, { useReducer as Cy, useRef as as, useEffect as gh, useCallback as yy, useMemo as Eh, useDebugValue as Ry, forwardRef as Sh, createElement as Bd, useState as Ny } from "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -286,12 +286,12 @@ function Gy(e, ...t) {
|
|
|
286
286
|
const Yt = (e) => {
|
|
287
287
|
const t = (r) => r[e] || [];
|
|
288
288
|
return t.isThemeGetter = !0, t;
|
|
289
|
-
}, Th = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ch = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Yy = /^\d+\/\d+$/, zy = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qy = /\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$/, Hy = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Vy = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $y = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ca = (e) => Yy.test(e),
|
|
289
|
+
}, Th = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ch = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Yy = /^\d+\/\d+$/, zy = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qy = /\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$/, Hy = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Vy = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $y = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ca = (e) => Yy.test(e), Ve = (e) => !!e && !Number.isNaN(Number(e)), Nn = (e) => !!e && Number.isInteger(Number(e)), Do = (e) => e.endsWith("%") && Ve(e.slice(0, -1)), cn = (e) => zy.test(e), Wy = () => !0, Ky = (e) => (
|
|
290
290
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
291
291
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
292
292
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
293
293
|
qy.test(e) && !Hy.test(e)
|
|
294
|
-
), yh = () => !1, Qy = (e) => Vy.test(e), Xy = (e) => $y.test(e), jy = (e) => !Ee(e) && !Se(e), Zy = (e) => Oa(e, Oh, yh), Ee = (e) => Th.test(e), Gn = (e) => Oa(e, Ah, Ky), Io = (e) => Oa(e, nR,
|
|
294
|
+
), yh = () => !1, Qy = (e) => Vy.test(e), Xy = (e) => $y.test(e), jy = (e) => !Ee(e) && !Se(e), Zy = (e) => Oa(e, Oh, yh), Ee = (e) => Th.test(e), Gn = (e) => Oa(e, Ah, Ky), Io = (e) => Oa(e, nR, Ve), mp = (e) => Oa(e, Rh, yh), Jy = (e) => Oa(e, Nh, Xy), Pi = (e) => Oa(e, Dh, Qy), Se = (e) => Ch.test(e), Va = (e) => Aa(e, Ah), eR = (e) => Aa(e, aR), pp = (e) => Aa(e, Rh), tR = (e) => Aa(e, Oh), rR = (e) => Aa(e, Nh), ki = (e) => Aa(e, Dh, !0), Oa = (e, t, r) => {
|
|
295
295
|
const n = Th.exec(e);
|
|
296
296
|
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
297
297
|
}, Aa = (e, t, r = !1) => {
|
|
@@ -332,14 +332,14 @@ const Yt = (e) => {
|
|
|
332
332
|
c,
|
|
333
333
|
Se,
|
|
334
334
|
Ee
|
|
335
|
-
], Me = () => ["",
|
|
335
|
+
], Me = () => ["", Ve, Va, Gn], de = () => ["solid", "dashed", "dotted", "double"], qe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Ie = () => [Ve, Do, pp, mp], Xe = () => [
|
|
336
336
|
// Deprecated since Tailwind CSS v4.0.0
|
|
337
337
|
"",
|
|
338
338
|
"none",
|
|
339
339
|
p,
|
|
340
340
|
Se,
|
|
341
341
|
Ee
|
|
342
|
-
], Je = () => ["none",
|
|
342
|
+
], Je = () => ["none", Ve, Se, Ee], at = () => ["none", Ve, Se, Ee], lt = () => [Ve, Se, Ee], Ct = () => [ca, "full", ...A()];
|
|
343
343
|
return {
|
|
344
344
|
cacheSize: 500,
|
|
345
345
|
theme: {
|
|
@@ -358,7 +358,7 @@ const Yt = (e) => {
|
|
|
358
358
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
359
359
|
radius: [cn],
|
|
360
360
|
shadow: [cn],
|
|
361
|
-
spacing: ["px",
|
|
361
|
+
spacing: ["px", Ve],
|
|
362
362
|
text: [cn],
|
|
363
363
|
"text-shadow": [cn],
|
|
364
364
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -385,7 +385,7 @@ const Yt = (e) => {
|
|
|
385
385
|
* @see https://tailwindcss.com/docs/columns
|
|
386
386
|
*/
|
|
387
387
|
columns: [{
|
|
388
|
-
columns: [
|
|
388
|
+
columns: [Ve, Ee, Se, o]
|
|
389
389
|
}],
|
|
390
390
|
/**
|
|
391
391
|
* Break After
|
|
@@ -616,21 +616,21 @@ const Yt = (e) => {
|
|
|
616
616
|
* @see https://tailwindcss.com/docs/flex
|
|
617
617
|
*/
|
|
618
618
|
flex: [{
|
|
619
|
-
flex: [
|
|
619
|
+
flex: [Ve, ca, "auto", "initial", "none", Ee]
|
|
620
620
|
}],
|
|
621
621
|
/**
|
|
622
622
|
* Flex Grow
|
|
623
623
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
624
624
|
*/
|
|
625
625
|
grow: [{
|
|
626
|
-
grow: ["",
|
|
626
|
+
grow: ["", Ve, Se, Ee]
|
|
627
627
|
}],
|
|
628
628
|
/**
|
|
629
629
|
* Flex Shrink
|
|
630
630
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
631
631
|
*/
|
|
632
632
|
shrink: [{
|
|
633
|
-
shrink: ["",
|
|
633
|
+
shrink: ["", Ve, Se, Ee]
|
|
634
634
|
}],
|
|
635
635
|
/**
|
|
636
636
|
* Order
|
|
@@ -1107,7 +1107,7 @@ const Yt = (e) => {
|
|
|
1107
1107
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1108
1108
|
*/
|
|
1109
1109
|
"line-clamp": [{
|
|
1110
|
-
"line-clamp": [
|
|
1110
|
+
"line-clamp": [Ve, "none", Se, Io]
|
|
1111
1111
|
}],
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Line Height
|
|
@@ -1180,7 +1180,7 @@ const Yt = (e) => {
|
|
|
1180
1180
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1181
1181
|
*/
|
|
1182
1182
|
"text-decoration-thickness": [{
|
|
1183
|
-
decoration: [
|
|
1183
|
+
decoration: [Ve, "from-font", "auto", Se, Gn]
|
|
1184
1184
|
}],
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Text Decoration Color
|
|
@@ -1194,7 +1194,7 @@ const Yt = (e) => {
|
|
|
1194
1194
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1195
1195
|
*/
|
|
1196
1196
|
"underline-offset": [{
|
|
1197
|
-
"underline-offset": [
|
|
1197
|
+
"underline-offset": [Ve, "auto", Se, Ee]
|
|
1198
1198
|
}],
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Text Transform
|
|
@@ -1660,14 +1660,14 @@ const Yt = (e) => {
|
|
|
1660
1660
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1661
1661
|
*/
|
|
1662
1662
|
"outline-offset": [{
|
|
1663
|
-
"outline-offset": [
|
|
1663
|
+
"outline-offset": [Ve, Se, Ee]
|
|
1664
1664
|
}],
|
|
1665
1665
|
/**
|
|
1666
1666
|
* Outline Width
|
|
1667
1667
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1668
1668
|
*/
|
|
1669
1669
|
"outline-w": [{
|
|
1670
|
-
outline: ["",
|
|
1670
|
+
outline: ["", Ve, Va, Gn]
|
|
1671
1671
|
}],
|
|
1672
1672
|
/**
|
|
1673
1673
|
* Outline Color
|
|
@@ -1742,7 +1742,7 @@ const Yt = (e) => {
|
|
|
1742
1742
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1743
1743
|
*/
|
|
1744
1744
|
"ring-offset-w": [{
|
|
1745
|
-
"ring-offset": [
|
|
1745
|
+
"ring-offset": [Ve, Gn]
|
|
1746
1746
|
}],
|
|
1747
1747
|
/**
|
|
1748
1748
|
* Ring Offset Color
|
|
@@ -1786,7 +1786,7 @@ const Yt = (e) => {
|
|
|
1786
1786
|
* @see https://tailwindcss.com/docs/opacity
|
|
1787
1787
|
*/
|
|
1788
1788
|
opacity: [{
|
|
1789
|
-
opacity: [
|
|
1789
|
+
opacity: [Ve, Se, Ee]
|
|
1790
1790
|
}],
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Mix Blend Mode
|
|
@@ -1821,13 +1821,13 @@ const Yt = (e) => {
|
|
|
1821
1821
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1822
1822
|
*/
|
|
1823
1823
|
"mask-image-linear-pos": [{
|
|
1824
|
-
"mask-linear": [
|
|
1824
|
+
"mask-linear": [Ve]
|
|
1825
1825
|
}],
|
|
1826
1826
|
"mask-image-linear-from-pos": [{
|
|
1827
|
-
"mask-linear-from":
|
|
1827
|
+
"mask-linear-from": Ie()
|
|
1828
1828
|
}],
|
|
1829
1829
|
"mask-image-linear-to-pos": [{
|
|
1830
|
-
"mask-linear-to":
|
|
1830
|
+
"mask-linear-to": Ie()
|
|
1831
1831
|
}],
|
|
1832
1832
|
"mask-image-linear-from-color": [{
|
|
1833
1833
|
"mask-linear-from": V()
|
|
@@ -1836,10 +1836,10 @@ const Yt = (e) => {
|
|
|
1836
1836
|
"mask-linear-to": V()
|
|
1837
1837
|
}],
|
|
1838
1838
|
"mask-image-t-from-pos": [{
|
|
1839
|
-
"mask-t-from":
|
|
1839
|
+
"mask-t-from": Ie()
|
|
1840
1840
|
}],
|
|
1841
1841
|
"mask-image-t-to-pos": [{
|
|
1842
|
-
"mask-t-to":
|
|
1842
|
+
"mask-t-to": Ie()
|
|
1843
1843
|
}],
|
|
1844
1844
|
"mask-image-t-from-color": [{
|
|
1845
1845
|
"mask-t-from": V()
|
|
@@ -1848,10 +1848,10 @@ const Yt = (e) => {
|
|
|
1848
1848
|
"mask-t-to": V()
|
|
1849
1849
|
}],
|
|
1850
1850
|
"mask-image-r-from-pos": [{
|
|
1851
|
-
"mask-r-from":
|
|
1851
|
+
"mask-r-from": Ie()
|
|
1852
1852
|
}],
|
|
1853
1853
|
"mask-image-r-to-pos": [{
|
|
1854
|
-
"mask-r-to":
|
|
1854
|
+
"mask-r-to": Ie()
|
|
1855
1855
|
}],
|
|
1856
1856
|
"mask-image-r-from-color": [{
|
|
1857
1857
|
"mask-r-from": V()
|
|
@@ -1860,10 +1860,10 @@ const Yt = (e) => {
|
|
|
1860
1860
|
"mask-r-to": V()
|
|
1861
1861
|
}],
|
|
1862
1862
|
"mask-image-b-from-pos": [{
|
|
1863
|
-
"mask-b-from":
|
|
1863
|
+
"mask-b-from": Ie()
|
|
1864
1864
|
}],
|
|
1865
1865
|
"mask-image-b-to-pos": [{
|
|
1866
|
-
"mask-b-to":
|
|
1866
|
+
"mask-b-to": Ie()
|
|
1867
1867
|
}],
|
|
1868
1868
|
"mask-image-b-from-color": [{
|
|
1869
1869
|
"mask-b-from": V()
|
|
@@ -1872,10 +1872,10 @@ const Yt = (e) => {
|
|
|
1872
1872
|
"mask-b-to": V()
|
|
1873
1873
|
}],
|
|
1874
1874
|
"mask-image-l-from-pos": [{
|
|
1875
|
-
"mask-l-from":
|
|
1875
|
+
"mask-l-from": Ie()
|
|
1876
1876
|
}],
|
|
1877
1877
|
"mask-image-l-to-pos": [{
|
|
1878
|
-
"mask-l-to":
|
|
1878
|
+
"mask-l-to": Ie()
|
|
1879
1879
|
}],
|
|
1880
1880
|
"mask-image-l-from-color": [{
|
|
1881
1881
|
"mask-l-from": V()
|
|
@@ -1884,10 +1884,10 @@ const Yt = (e) => {
|
|
|
1884
1884
|
"mask-l-to": V()
|
|
1885
1885
|
}],
|
|
1886
1886
|
"mask-image-x-from-pos": [{
|
|
1887
|
-
"mask-x-from":
|
|
1887
|
+
"mask-x-from": Ie()
|
|
1888
1888
|
}],
|
|
1889
1889
|
"mask-image-x-to-pos": [{
|
|
1890
|
-
"mask-x-to":
|
|
1890
|
+
"mask-x-to": Ie()
|
|
1891
1891
|
}],
|
|
1892
1892
|
"mask-image-x-from-color": [{
|
|
1893
1893
|
"mask-x-from": V()
|
|
@@ -1896,10 +1896,10 @@ const Yt = (e) => {
|
|
|
1896
1896
|
"mask-x-to": V()
|
|
1897
1897
|
}],
|
|
1898
1898
|
"mask-image-y-from-pos": [{
|
|
1899
|
-
"mask-y-from":
|
|
1899
|
+
"mask-y-from": Ie()
|
|
1900
1900
|
}],
|
|
1901
1901
|
"mask-image-y-to-pos": [{
|
|
1902
|
-
"mask-y-to":
|
|
1902
|
+
"mask-y-to": Ie()
|
|
1903
1903
|
}],
|
|
1904
1904
|
"mask-image-y-from-color": [{
|
|
1905
1905
|
"mask-y-from": V()
|
|
@@ -1911,10 +1911,10 @@ const Yt = (e) => {
|
|
|
1911
1911
|
"mask-radial": [Se, Ee]
|
|
1912
1912
|
}],
|
|
1913
1913
|
"mask-image-radial-from-pos": [{
|
|
1914
|
-
"mask-radial-from":
|
|
1914
|
+
"mask-radial-from": Ie()
|
|
1915
1915
|
}],
|
|
1916
1916
|
"mask-image-radial-to-pos": [{
|
|
1917
|
-
"mask-radial-to":
|
|
1917
|
+
"mask-radial-to": Ie()
|
|
1918
1918
|
}],
|
|
1919
1919
|
"mask-image-radial-from-color": [{
|
|
1920
1920
|
"mask-radial-from": V()
|
|
@@ -1935,13 +1935,13 @@ const Yt = (e) => {
|
|
|
1935
1935
|
"mask-radial-at": D()
|
|
1936
1936
|
}],
|
|
1937
1937
|
"mask-image-conic-pos": [{
|
|
1938
|
-
"mask-conic": [
|
|
1938
|
+
"mask-conic": [Ve]
|
|
1939
1939
|
}],
|
|
1940
1940
|
"mask-image-conic-from-pos": [{
|
|
1941
|
-
"mask-conic-from":
|
|
1941
|
+
"mask-conic-from": Ie()
|
|
1942
1942
|
}],
|
|
1943
1943
|
"mask-image-conic-to-pos": [{
|
|
1944
|
-
"mask-conic-to":
|
|
1944
|
+
"mask-conic-to": Ie()
|
|
1945
1945
|
}],
|
|
1946
1946
|
"mask-image-conic-from-color": [{
|
|
1947
1947
|
"mask-conic-from": V()
|
|
@@ -2026,14 +2026,14 @@ const Yt = (e) => {
|
|
|
2026
2026
|
* @see https://tailwindcss.com/docs/brightness
|
|
2027
2027
|
*/
|
|
2028
2028
|
brightness: [{
|
|
2029
|
-
brightness: [
|
|
2029
|
+
brightness: [Ve, Se, Ee]
|
|
2030
2030
|
}],
|
|
2031
2031
|
/**
|
|
2032
2032
|
* Contrast
|
|
2033
2033
|
* @see https://tailwindcss.com/docs/contrast
|
|
2034
2034
|
*/
|
|
2035
2035
|
contrast: [{
|
|
2036
|
-
contrast: [
|
|
2036
|
+
contrast: [Ve, Se, Ee]
|
|
2037
2037
|
}],
|
|
2038
2038
|
/**
|
|
2039
2039
|
* Drop Shadow
|
|
@@ -2061,35 +2061,35 @@ const Yt = (e) => {
|
|
|
2061
2061
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2062
2062
|
*/
|
|
2063
2063
|
grayscale: [{
|
|
2064
|
-
grayscale: ["",
|
|
2064
|
+
grayscale: ["", Ve, Se, Ee]
|
|
2065
2065
|
}],
|
|
2066
2066
|
/**
|
|
2067
2067
|
* Hue Rotate
|
|
2068
2068
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2069
2069
|
*/
|
|
2070
2070
|
"hue-rotate": [{
|
|
2071
|
-
"hue-rotate": [
|
|
2071
|
+
"hue-rotate": [Ve, Se, Ee]
|
|
2072
2072
|
}],
|
|
2073
2073
|
/**
|
|
2074
2074
|
* Invert
|
|
2075
2075
|
* @see https://tailwindcss.com/docs/invert
|
|
2076
2076
|
*/
|
|
2077
2077
|
invert: [{
|
|
2078
|
-
invert: ["",
|
|
2078
|
+
invert: ["", Ve, Se, Ee]
|
|
2079
2079
|
}],
|
|
2080
2080
|
/**
|
|
2081
2081
|
* Saturate
|
|
2082
2082
|
* @see https://tailwindcss.com/docs/saturate
|
|
2083
2083
|
*/
|
|
2084
2084
|
saturate: [{
|
|
2085
|
-
saturate: [
|
|
2085
|
+
saturate: [Ve, Se, Ee]
|
|
2086
2086
|
}],
|
|
2087
2087
|
/**
|
|
2088
2088
|
* Sepia
|
|
2089
2089
|
* @see https://tailwindcss.com/docs/sepia
|
|
2090
2090
|
*/
|
|
2091
2091
|
sepia: [{
|
|
2092
|
-
sepia: ["",
|
|
2092
|
+
sepia: ["", Ve, Se, Ee]
|
|
2093
2093
|
}],
|
|
2094
2094
|
/**
|
|
2095
2095
|
* Backdrop Filter
|
|
@@ -2116,56 +2116,56 @@ const Yt = (e) => {
|
|
|
2116
2116
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2117
2117
|
*/
|
|
2118
2118
|
"backdrop-brightness": [{
|
|
2119
|
-
"backdrop-brightness": [
|
|
2119
|
+
"backdrop-brightness": [Ve, Se, Ee]
|
|
2120
2120
|
}],
|
|
2121
2121
|
/**
|
|
2122
2122
|
* Backdrop Contrast
|
|
2123
2123
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2124
2124
|
*/
|
|
2125
2125
|
"backdrop-contrast": [{
|
|
2126
|
-
"backdrop-contrast": [
|
|
2126
|
+
"backdrop-contrast": [Ve, Se, Ee]
|
|
2127
2127
|
}],
|
|
2128
2128
|
/**
|
|
2129
2129
|
* Backdrop Grayscale
|
|
2130
2130
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2131
2131
|
*/
|
|
2132
2132
|
"backdrop-grayscale": [{
|
|
2133
|
-
"backdrop-grayscale": ["",
|
|
2133
|
+
"backdrop-grayscale": ["", Ve, Se, Ee]
|
|
2134
2134
|
}],
|
|
2135
2135
|
/**
|
|
2136
2136
|
* Backdrop Hue Rotate
|
|
2137
2137
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2138
2138
|
*/
|
|
2139
2139
|
"backdrop-hue-rotate": [{
|
|
2140
|
-
"backdrop-hue-rotate": [
|
|
2140
|
+
"backdrop-hue-rotate": [Ve, Se, Ee]
|
|
2141
2141
|
}],
|
|
2142
2142
|
/**
|
|
2143
2143
|
* Backdrop Invert
|
|
2144
2144
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2145
2145
|
*/
|
|
2146
2146
|
"backdrop-invert": [{
|
|
2147
|
-
"backdrop-invert": ["",
|
|
2147
|
+
"backdrop-invert": ["", Ve, Se, Ee]
|
|
2148
2148
|
}],
|
|
2149
2149
|
/**
|
|
2150
2150
|
* Backdrop Opacity
|
|
2151
2151
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2152
2152
|
*/
|
|
2153
2153
|
"backdrop-opacity": [{
|
|
2154
|
-
"backdrop-opacity": [
|
|
2154
|
+
"backdrop-opacity": [Ve, Se, Ee]
|
|
2155
2155
|
}],
|
|
2156
2156
|
/**
|
|
2157
2157
|
* Backdrop Saturate
|
|
2158
2158
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2159
2159
|
*/
|
|
2160
2160
|
"backdrop-saturate": [{
|
|
2161
|
-
"backdrop-saturate": [
|
|
2161
|
+
"backdrop-saturate": [Ve, Se, Ee]
|
|
2162
2162
|
}],
|
|
2163
2163
|
/**
|
|
2164
2164
|
* Backdrop Sepia
|
|
2165
2165
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2166
2166
|
*/
|
|
2167
2167
|
"backdrop-sepia": [{
|
|
2168
|
-
"backdrop-sepia": ["",
|
|
2168
|
+
"backdrop-sepia": ["", Ve, Se, Ee]
|
|
2169
2169
|
}],
|
|
2170
2170
|
// --------------
|
|
2171
2171
|
// --- Tables ---
|
|
@@ -2234,7 +2234,7 @@ const Yt = (e) => {
|
|
|
2234
2234
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2235
2235
|
*/
|
|
2236
2236
|
duration: [{
|
|
2237
|
-
duration: [
|
|
2237
|
+
duration: [Ve, "initial", Se, Ee]
|
|
2238
2238
|
}],
|
|
2239
2239
|
/**
|
|
2240
2240
|
* Transition Timing Function
|
|
@@ -2248,7 +2248,7 @@ const Yt = (e) => {
|
|
|
2248
2248
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2249
2249
|
*/
|
|
2250
2250
|
delay: [{
|
|
2251
|
-
delay: [
|
|
2251
|
+
delay: [Ve, Se, Ee]
|
|
2252
2252
|
}],
|
|
2253
2253
|
/**
|
|
2254
2254
|
* Animation
|
|
@@ -2389,28 +2389,28 @@ const Yt = (e) => {
|
|
|
2389
2389
|
* @see https://tailwindcss.com/docs/translate
|
|
2390
2390
|
*/
|
|
2391
2391
|
translate: [{
|
|
2392
|
-
translate:
|
|
2392
|
+
translate: Ct()
|
|
2393
2393
|
}],
|
|
2394
2394
|
/**
|
|
2395
2395
|
* Translate X
|
|
2396
2396
|
* @see https://tailwindcss.com/docs/translate
|
|
2397
2397
|
*/
|
|
2398
2398
|
"translate-x": [{
|
|
2399
|
-
"translate-x":
|
|
2399
|
+
"translate-x": Ct()
|
|
2400
2400
|
}],
|
|
2401
2401
|
/**
|
|
2402
2402
|
* Translate Y
|
|
2403
2403
|
* @see https://tailwindcss.com/docs/translate
|
|
2404
2404
|
*/
|
|
2405
2405
|
"translate-y": [{
|
|
2406
|
-
"translate-y":
|
|
2406
|
+
"translate-y": Ct()
|
|
2407
2407
|
}],
|
|
2408
2408
|
/**
|
|
2409
2409
|
* Translate Z
|
|
2410
2410
|
* @see https://tailwindcss.com/docs/translate
|
|
2411
2411
|
*/
|
|
2412
2412
|
"translate-z": [{
|
|
2413
|
-
"translate-z":
|
|
2413
|
+
"translate-z": Ct()
|
|
2414
2414
|
}],
|
|
2415
2415
|
/**
|
|
2416
2416
|
* Translate None
|
|
@@ -2692,7 +2692,7 @@ const Yt = (e) => {
|
|
|
2692
2692
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2693
2693
|
*/
|
|
2694
2694
|
"stroke-w": [{
|
|
2695
|
-
stroke: [
|
|
2695
|
+
stroke: [Ve, Va, Gn, Io]
|
|
2696
2696
|
}],
|
|
2697
2697
|
/**
|
|
2698
2698
|
* Stroke
|
|
@@ -3591,7 +3591,7 @@ var IR = (e, t, r) => {
|
|
|
3591
3591
|
else if (!ve.isText(T) && !ve.isText(D))
|
|
3592
3592
|
D.children.push(...T.children);
|
|
3593
3593
|
else
|
|
3594
|
-
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(h, "] to nodes of different interfaces: ").concat(
|
|
3594
|
+
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(h, "] to nodes of different interfaces: ").concat(er.stringify(T), " ").concat(er.stringify(D)));
|
|
3595
3595
|
if (y.children.splice(N, 1), t)
|
|
3596
3596
|
for (var [I, A] of Q.points(t))
|
|
3597
3597
|
t[A] = We.transform(I, r);
|
|
@@ -3623,11 +3623,11 @@ var IR = (e, t, r) => {
|
|
|
3623
3623
|
t[ne] = Me;
|
|
3624
3624
|
else {
|
|
3625
3625
|
var de = void 0, qe = void 0;
|
|
3626
|
-
for (var [
|
|
3626
|
+
for (var [Ie, Xe] of ie.texts(e))
|
|
3627
3627
|
if (G.compare(Xe, re) === -1)
|
|
3628
|
-
de = [
|
|
3628
|
+
de = [Ie, Xe];
|
|
3629
3629
|
else {
|
|
3630
|
-
qe = [
|
|
3630
|
+
qe = [Ie, Xe];
|
|
3631
3631
|
break;
|
|
3632
3632
|
}
|
|
3633
3633
|
var Je = !1;
|
|
@@ -3640,10 +3640,10 @@ var IR = (e, t, r) => {
|
|
|
3640
3640
|
var {
|
|
3641
3641
|
path: at,
|
|
3642
3642
|
offset: lt,
|
|
3643
|
-
text:
|
|
3643
|
+
text: Ct
|
|
3644
3644
|
} = r;
|
|
3645
|
-
if (
|
|
3646
|
-
var Lt = ie.leaf(e, at), st = Lt.text.slice(0, lt), b = Lt.text.slice(lt +
|
|
3645
|
+
if (Ct.length === 0) break;
|
|
3646
|
+
var Lt = ie.leaf(e, at), st = Lt.text.slice(0, lt), b = Lt.text.slice(lt + Ct.length);
|
|
3647
3647
|
if (Lt.text = st + b, t)
|
|
3648
3648
|
for (var [O, x] of Q.points(t))
|
|
3649
3649
|
t[x] = We.transform(O, r);
|
|
@@ -3664,30 +3664,30 @@ var IR = (e, t, r) => {
|
|
|
3664
3664
|
var Ot = mt[Ht];
|
|
3665
3665
|
Ot == null ? delete Mr[Ht] : Mr[Ht] = Ot;
|
|
3666
3666
|
}
|
|
3667
|
-
for (var
|
|
3668
|
-
mt.hasOwnProperty(
|
|
3667
|
+
for (var jt in Be)
|
|
3668
|
+
mt.hasOwnProperty(jt) || delete Mr[jt];
|
|
3669
3669
|
break;
|
|
3670
3670
|
}
|
|
3671
3671
|
case "set_selection": {
|
|
3672
3672
|
var {
|
|
3673
|
-
newProperties:
|
|
3673
|
+
newProperties: Zt
|
|
3674
3674
|
} = r;
|
|
3675
|
-
if (
|
|
3676
|
-
t =
|
|
3675
|
+
if (Zt == null)
|
|
3676
|
+
t = Zt;
|
|
3677
3677
|
else {
|
|
3678
3678
|
if (t == null) {
|
|
3679
|
-
if (!Q.isRange(
|
|
3680
|
-
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(
|
|
3681
|
-
t = $a({},
|
|
3679
|
+
if (!Q.isRange(Zt))
|
|
3680
|
+
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(er.stringify(Zt), " when there is no current selection."));
|
|
3681
|
+
t = $a({}, Zt);
|
|
3682
3682
|
}
|
|
3683
|
-
for (var
|
|
3684
|
-
var Lr =
|
|
3683
|
+
for (var Jt in Zt) {
|
|
3684
|
+
var Lr = Zt[Jt];
|
|
3685
3685
|
if (Lr == null) {
|
|
3686
|
-
if (
|
|
3687
|
-
throw new Error('Cannot remove the "'.concat(
|
|
3688
|
-
delete t[
|
|
3686
|
+
if (Jt === "anchor" || Jt === "focus")
|
|
3687
|
+
throw new Error('Cannot remove the "'.concat(Jt, '" selection property'));
|
|
3688
|
+
delete t[Jt];
|
|
3689
3689
|
} else
|
|
3690
|
-
t[
|
|
3690
|
+
t[Jt] = Lr;
|
|
3691
3691
|
}
|
|
3692
3692
|
}
|
|
3693
3693
|
break;
|
|
@@ -3700,19 +3700,19 @@ var IR = (e, t, r) => {
|
|
|
3700
3700
|
} = r;
|
|
3701
3701
|
if ($t.length === 0)
|
|
3702
3702
|
throw new Error('Cannot apply a "split_node" operation at path ['.concat($t, "] because the root node cannot be split."));
|
|
3703
|
-
var Rr = ie.get(e, $t), Bn = ie.parent(e, $t), fr = $t[$t.length - 1],
|
|
3703
|
+
var Rr = ie.get(e, $t), Bn = ie.parent(e, $t), fr = $t[$t.length - 1], rr;
|
|
3704
3704
|
if (ve.isText(Rr)) {
|
|
3705
3705
|
var Oi = Rr.text.slice(0, Hr), Ai = Rr.text.slice(Hr);
|
|
3706
|
-
Rr.text = Oi,
|
|
3706
|
+
Rr.text = Oi, rr = $a($a({}, Rn), {}, {
|
|
3707
3707
|
text: Ai
|
|
3708
3708
|
});
|
|
3709
3709
|
} else {
|
|
3710
3710
|
var Di = Rr.children.slice(0, Hr), ia = Rr.children.slice(Hr);
|
|
3711
|
-
Rr.children = Di,
|
|
3711
|
+
Rr.children = Di, rr = $a($a({}, Rn), {}, {
|
|
3712
3712
|
children: ia
|
|
3713
3713
|
});
|
|
3714
3714
|
}
|
|
3715
|
-
if (Bn.children.splice(fr + 1, 0,
|
|
3715
|
+
if (Bn.children.splice(fr + 1, 0, rr), t)
|
|
3716
3716
|
for (var [Fa, Ua] of Q.points(t))
|
|
3717
3717
|
t[Ua] = We.transform(Fa, r);
|
|
3718
3718
|
break;
|
|
@@ -3950,7 +3950,7 @@ var Q = {
|
|
|
3950
3950
|
ancestor(e, t) {
|
|
3951
3951
|
var r = ie.get(e, t);
|
|
3952
3952
|
if (ve.isText(r))
|
|
3953
|
-
throw new Error("Cannot get the ancestor node at path [".concat(t, "] because it refers to a text node instead: ").concat(
|
|
3953
|
+
throw new Error("Cannot get the ancestor node at path [".concat(t, "] because it refers to a text node instead: ").concat(er.stringify(r)));
|
|
3954
3954
|
return r;
|
|
3955
3955
|
},
|
|
3956
3956
|
ancestors(e, t) {
|
|
@@ -3964,10 +3964,10 @@ var Q = {
|
|
|
3964
3964
|
},
|
|
3965
3965
|
child(e, t) {
|
|
3966
3966
|
if (ve.isText(e))
|
|
3967
|
-
throw new Error("Cannot get the child of a text node: ".concat(
|
|
3967
|
+
throw new Error("Cannot get the child of a text node: ".concat(er.stringify(e)));
|
|
3968
3968
|
var r = e.children[t];
|
|
3969
3969
|
if (r == null)
|
|
3970
|
-
throw new Error("Cannot get child at index `".concat(t, "` in node: ").concat(
|
|
3970
|
+
throw new Error("Cannot get child at index `".concat(t, "` in node: ").concat(er.stringify(e)));
|
|
3971
3971
|
return r;
|
|
3972
3972
|
},
|
|
3973
3973
|
children(e, t) {
|
|
@@ -3990,7 +3990,7 @@ var Q = {
|
|
|
3990
3990
|
descendant(e, t) {
|
|
3991
3991
|
var r = ie.get(e, t);
|
|
3992
3992
|
if (w.isEditor(r))
|
|
3993
|
-
throw new Error("Cannot get the descendant node at path [".concat(t, "] because it refers to the root editor node instead: ").concat(
|
|
3993
|
+
throw new Error("Cannot get the descendant node at path [".concat(t, "] because it refers to the root editor node instead: ").concat(er.stringify(r)));
|
|
3994
3994
|
return r;
|
|
3995
3995
|
},
|
|
3996
3996
|
descendants(e) {
|
|
@@ -4023,7 +4023,7 @@ var Q = {
|
|
|
4023
4023
|
},
|
|
4024
4024
|
fragment(e, t) {
|
|
4025
4025
|
if (ve.isText(e))
|
|
4026
|
-
throw new Error("Cannot get a fragment starting from a root text node: ".concat(
|
|
4026
|
+
throw new Error("Cannot get a fragment starting from a root text node: ".concat(er.stringify(e)));
|
|
4027
4027
|
var r = Hs({
|
|
4028
4028
|
children: e.children
|
|
4029
4029
|
}, (n) => {
|
|
@@ -4055,7 +4055,7 @@ var Q = {
|
|
|
4055
4055
|
get(e, t) {
|
|
4056
4056
|
var r = ie.getIf(e, t);
|
|
4057
4057
|
if (r === void 0)
|
|
4058
|
-
throw new Error("Cannot find a descendant at path [".concat(t, "] in node: ").concat(
|
|
4058
|
+
throw new Error("Cannot find a descendant at path [".concat(t, "] in node: ").concat(er.stringify(e)));
|
|
4059
4059
|
return r;
|
|
4060
4060
|
},
|
|
4061
4061
|
getIf(e, t) {
|
|
@@ -4098,7 +4098,7 @@ var Q = {
|
|
|
4098
4098
|
leaf(e, t) {
|
|
4099
4099
|
var r = ie.get(e, t);
|
|
4100
4100
|
if (!ve.isText(r))
|
|
4101
|
-
throw new Error("Cannot get the leaf node at path [".concat(t, "] because it refers to a non-leaf node: ").concat(
|
|
4101
|
+
throw new Error("Cannot get the leaf node at path [".concat(t, "] because it refers to a non-leaf node: ").concat(er.stringify(r)));
|
|
4102
4102
|
return r;
|
|
4103
4103
|
},
|
|
4104
4104
|
levels(e, t) {
|
|
@@ -4588,7 +4588,7 @@ var We = {
|
|
|
4588
4588
|
}
|
|
4589
4589
|
});
|
|
4590
4590
|
}
|
|
4591
|
-
}, Lp = void 0,
|
|
4591
|
+
}, Lp = void 0, er = {
|
|
4592
4592
|
setScrubber(e) {
|
|
4593
4593
|
Lp = e;
|
|
4594
4594
|
},
|
|
@@ -5984,9 +5984,9 @@ var Lb = (e, t) => {
|
|
|
5984
5984
|
at: st,
|
|
5985
5985
|
voids: l
|
|
5986
5986
|
})), !L) {
|
|
5987
|
-
var qe = re.current, [
|
|
5987
|
+
var qe = re.current, [Ie] = w.leaf(t, qe), {
|
|
5988
5988
|
path: Xe
|
|
5989
|
-
} = qe, Je = I ? T.offset : 0, at =
|
|
5989
|
+
} = qe, Je = I ? T.offset : 0, at = Ie.text.slice(Je, C.offset);
|
|
5990
5990
|
at.length > 0 && (t.apply({
|
|
5991
5991
|
type: "remove_text",
|
|
5992
5992
|
path: Xe,
|
|
@@ -5999,7 +5999,7 @@ var Lb = (e, t) => {
|
|
|
5999
5999
|
hanging: !0,
|
|
6000
6000
|
voids: l
|
|
6001
6001
|
}), d && i && s === "character" && ge.length > 1 && ge.match(/[\u0E00-\u0E7F]+/) && me.insertText(t, ge.slice(0, ge.length - o));
|
|
6002
|
-
var lt = V.unref(),
|
|
6002
|
+
var lt = V.unref(), Ct = re.unref(), Lt = i ? lt || Ct : Ct || lt;
|
|
6003
6003
|
r.at == null && Lt && me.select(t, Lt);
|
|
6004
6004
|
}
|
|
6005
6005
|
}
|
|
@@ -6060,8 +6060,8 @@ var Lb = (e, t) => {
|
|
|
6060
6060
|
}, []), [, N] = ie.last({
|
|
6061
6061
|
children: r
|
|
6062
6062
|
}, []), I = [], A = (de) => {
|
|
6063
|
-
var [qe,
|
|
6064
|
-
return Xe ? !1 : T ? !0 : !(C && G.isAncestor(
|
|
6063
|
+
var [qe, Ie] = de, Xe = Ie.length === 0;
|
|
6064
|
+
return Xe ? !1 : T ? !0 : !(C && G.isAncestor(Ie, y) && Oe.isElement(qe) && !t.isVoid(qe) && !t.isInline(qe) || D && G.isAncestor(Ie, N) && Oe.isElement(qe) && !t.isVoid(qe) && !t.isInline(qe));
|
|
6065
6065
|
};
|
|
6066
6066
|
for (var L of ie.nodes({
|
|
6067
6067
|
children: r
|
|
@@ -6185,7 +6185,7 @@ var Lb = (e, t) => {
|
|
|
6185
6185
|
return;
|
|
6186
6186
|
}
|
|
6187
6187
|
if (!Q.isRange(t))
|
|
6188
|
-
throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(
|
|
6188
|
+
throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(er.stringify(t)));
|
|
6189
6189
|
e.apply({
|
|
6190
6190
|
type: "set_selection",
|
|
6191
6191
|
properties: r,
|
|
@@ -6465,7 +6465,7 @@ var Vb = function(t, r) {
|
|
|
6465
6465
|
var L = bn(m, y1);
|
|
6466
6466
|
A = g.children.length, I = L;
|
|
6467
6467
|
} else
|
|
6468
|
-
throw new Error("Cannot merge the node at path [".concat(p, "] with the previous sibling because it is not the same kind: ").concat(
|
|
6468
|
+
throw new Error("Cannot merge the node at path [".concat(p, "] with the previous sibling because it is not the same kind: ").concat(er.stringify(m), " ").concat(er.stringify(g)));
|
|
6469
6469
|
C || me.moveNodes(t, {
|
|
6470
6470
|
at: p,
|
|
6471
6471
|
to: h,
|
|
@@ -7532,7 +7532,7 @@ var G1 = /* @__PURE__ */ new WeakMap(), Y1 = /* @__PURE__ */ new WeakMap(), z1 =
|
|
|
7532
7532
|
break;
|
|
7533
7533
|
r.unshift(i), n = a;
|
|
7534
7534
|
}
|
|
7535
|
-
throw new Error("Unable to find the path for Slate node: ".concat(
|
|
7535
|
+
throw new Error("Unable to find the path for Slate node: ".concat(er.stringify(t)));
|
|
7536
7536
|
},
|
|
7537
7537
|
focus: function(t) {
|
|
7538
7538
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
@@ -7610,7 +7610,7 @@ var G1 = /* @__PURE__ */ new WeakMap(), Y1 = /* @__PURE__ */ new WeakMap(), z1 =
|
|
|
7610
7610
|
toDOMNode: (e, t) => {
|
|
7611
7611
|
var r = V1.get(e), n = w.isEditor(t) ? q1.get(e) : r == null ? void 0 : r.get(Re.findKey(e, t));
|
|
7612
7612
|
if (!n)
|
|
7613
|
-
throw new Error("Cannot resolve a DOM node from Slate node: ".concat(
|
|
7613
|
+
throw new Error("Cannot resolve a DOM node from Slate node: ".concat(er.stringify(t)));
|
|
7614
7614
|
return n;
|
|
7615
7615
|
},
|
|
7616
7616
|
toDOMPoint: (e, t) => {
|
|
@@ -7649,7 +7649,7 @@ var G1 = /* @__PURE__ */ new WeakMap(), Y1 = /* @__PURE__ */ new WeakMap(), z1 =
|
|
|
7649
7649
|
}
|
|
7650
7650
|
}
|
|
7651
7651
|
if (!a)
|
|
7652
|
-
throw new Error("Cannot resolve a DOM point from Slate point: ".concat(
|
|
7652
|
+
throw new Error("Cannot resolve a DOM point from Slate point: ".concat(er.stringify(t)));
|
|
7653
7653
|
return a;
|
|
7654
7654
|
},
|
|
7655
7655
|
toDOMRange: (e, t) => {
|
|
@@ -9426,32 +9426,32 @@ var je = {
|
|
|
9426
9426
|
}
|
|
9427
9427
|
}, yO = {
|
|
9428
9428
|
*children(e, t, r = {}) {
|
|
9429
|
-
const { from: n, reverse: a = !1, to: i } = r, s =
|
|
9429
|
+
const { from: n, reverse: a = !1, to: i } = r, s = De.ancestor(e, t);
|
|
9430
9430
|
if (!s) return;
|
|
9431
9431
|
const { children: o } = s;
|
|
9432
9432
|
let l = a ? o.length - 1 : 0;
|
|
9433
9433
|
const c = i ?? (a ? 0 : o.length);
|
|
9434
9434
|
for (n !== void 0 && (l = n); a ? l >= c : l < c; ) {
|
|
9435
|
-
const u =
|
|
9435
|
+
const u = De.child(s, l), d = t.concat(l);
|
|
9436
9436
|
yield [u, d], l = a ? l - 1 : l + 1;
|
|
9437
9437
|
}
|
|
9438
9438
|
},
|
|
9439
9439
|
firstChild(e, t) {
|
|
9440
|
-
return
|
|
9440
|
+
return De.children(e, t).next().value;
|
|
9441
9441
|
},
|
|
9442
9442
|
firstText(e, t) {
|
|
9443
|
-
return
|
|
9443
|
+
return De.texts(e, t).next().value;
|
|
9444
9444
|
},
|
|
9445
9445
|
isEditor: (e) => Yh(e),
|
|
9446
9446
|
isLastChild(e, t) {
|
|
9447
9447
|
if (t.length === 0) return !1;
|
|
9448
|
-
const r =
|
|
9448
|
+
const r = De.parent(e, t);
|
|
9449
9449
|
return r ? t.at(-1) === r.children.length - 1 : !1;
|
|
9450
9450
|
},
|
|
9451
9451
|
lastChild(e, t) {
|
|
9452
|
-
return
|
|
9452
|
+
return De.children(e, t, { reverse: !0 }).next().value;
|
|
9453
9453
|
}
|
|
9454
|
-
}, rt = ve,
|
|
9454
|
+
}, rt = ve, De = {
|
|
9455
9455
|
...ie,
|
|
9456
9456
|
isAncestor: je.isAncestor,
|
|
9457
9457
|
ancestor: (...e) => {
|
|
@@ -9491,7 +9491,7 @@ var je = {
|
|
|
9491
9491
|
} catch {
|
|
9492
9492
|
}
|
|
9493
9493
|
},
|
|
9494
|
-
hasSingleChild: (e) => rt.isText(e) ? !0 : e.children.length === 1 &&
|
|
9494
|
+
hasSingleChild: (e) => rt.isText(e) ? !0 : e.children.length === 1 && De.hasSingleChild(e.children[0]),
|
|
9495
9495
|
isDescendant: (e) => je.isElement(e) || rt.isText(e),
|
|
9496
9496
|
last: (...e) => {
|
|
9497
9497
|
try {
|
|
@@ -9514,7 +9514,7 @@ var je = {
|
|
|
9514
9514
|
...yO
|
|
9515
9515
|
}, Cv = {
|
|
9516
9516
|
...UR,
|
|
9517
|
-
isAt: (e) => Cv.isLocation(e) ||
|
|
9517
|
+
isAt: (e) => Cv.isLocation(e) || De.isNode(e)
|
|
9518
9518
|
}, yv = zh, RO = Ea, tt = {
|
|
9519
9519
|
...Q,
|
|
9520
9520
|
contains: (e, t) => {
|
|
@@ -9831,7 +9831,7 @@ var je = {
|
|
|
9831
9831
|
}), Rv.forEach((r) => {
|
|
9832
9832
|
t[r] && (t.tf[r] = t[r]);
|
|
9833
9833
|
});
|
|
9834
|
-
}, jO = (e, t, r) => yb(e, t, r), ZO = (e, t, r) => Ob(e, t, r), Qe = (e, t) => t && iN(t) &&
|
|
9834
|
+
}, jO = (e, t, r) => yb(e, t, r), ZO = (e, t, r) => Ob(e, t, r), Qe = (e, t) => t && iN(t) && De.isNode(t) ? e.api.findPath(t) : t ?? void 0, JO = (e, t, r = {}) => {
|
|
9835
9835
|
try {
|
|
9836
9836
|
if (r.previous) {
|
|
9837
9837
|
const n = e.api.previous({ at: Qe(e, t) });
|
|
@@ -9918,7 +9918,7 @@ function sA(e) {
|
|
|
9918
9918
|
var Av = (e, t, r) => r ? typeof r == "object" ? Object.entries(r).every(([n, a]) => sA(a).includes(e[n])) : r(e, t) : !0, ro = (e, { id: t, block: r, empty: n, match: a, text: i } = {}) => {
|
|
9919
9919
|
let s = !1, o = () => !0;
|
|
9920
9920
|
return i !== void 0 && (s = !0, o = In(o, (l) => rt.isText(l) === i)), n !== void 0 && (s = !0, o = In(o, (l) => rt.isText(l) ? l.text.length > 0 == !n : e.api.isEmpty(l) === n)), r !== void 0 && (s = !0, o = In(o, (l) => e.api.isBlock(l) === r)), t !== void 0 && (s = !0, o = In(o, (l) => t === !0 && !!l.id || l.id === t)), typeof a == "object" ? (s = !0, o = In(o, (l, c) => Av(l, c, a))) : typeof a == "function" && (s = !0, o = In(o, a)), s ? o : void 0;
|
|
9921
|
-
},
|
|
9921
|
+
}, tr = (e, { id: t, empty: r, match: n, text: a, ...i } = {}) => {
|
|
9922
9922
|
const { at: s, block: o } = i;
|
|
9923
9923
|
return {
|
|
9924
9924
|
...i,
|
|
@@ -9927,7 +9927,7 @@ var Av = (e, t, r) => r ? typeof r == "object" ? Object.entries(r).every(([n, a]
|
|
|
9927
9927
|
};
|
|
9928
9928
|
}, In = (e, t) => (r, n) => e(r, n) && (!t || t(r, n));
|
|
9929
9929
|
function* oA(e, t = {}) {
|
|
9930
|
-
t =
|
|
9930
|
+
t = tr(e, t);
|
|
9931
9931
|
const {
|
|
9932
9932
|
ignoreNonSelectable: r = !1,
|
|
9933
9933
|
mode: n = "all",
|
|
@@ -9946,7 +9946,7 @@ function* oA(e, t = {}) {
|
|
|
9946
9946
|
if (c = a ? g : p, u = a ? p : g, !p || !g)
|
|
9947
9947
|
return;
|
|
9948
9948
|
}
|
|
9949
|
-
const d =
|
|
9949
|
+
const d = De.nodes(e, {
|
|
9950
9950
|
from: c,
|
|
9951
9951
|
reverse: a,
|
|
9952
9952
|
to: u,
|
|
@@ -10041,7 +10041,7 @@ var em = (e, { allow: t, exclude: r, filter: n, level: a, maxLevel: i } = {}) =>
|
|
|
10041
10041
|
}
|
|
10042
10042
|
let l = [e, []];
|
|
10043
10043
|
ye.isPath(r) && (l = e.api.node(r));
|
|
10044
|
-
const c =
|
|
10044
|
+
const c = De.descendants(l[0], {
|
|
10045
10045
|
from: s,
|
|
10046
10046
|
reverse: a,
|
|
10047
10047
|
to: o,
|
|
@@ -10141,7 +10141,7 @@ function SA({
|
|
|
10141
10141
|
return t;
|
|
10142
10142
|
}
|
|
10143
10143
|
if (n === "text" || n === "all") {
|
|
10144
|
-
const l = Array.from(
|
|
10144
|
+
const l = Array.from(De.texts(o));
|
|
10145
10145
|
for (const [c] of l) {
|
|
10146
10146
|
const u = i(c);
|
|
10147
10147
|
if (u !== void 0) {
|
|
@@ -10158,7 +10158,7 @@ function SA({
|
|
|
10158
10158
|
}
|
|
10159
10159
|
var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
10160
10160
|
try {
|
|
10161
|
-
return Qh(e,
|
|
10161
|
+
return Qh(e, tr(e, t));
|
|
10162
10162
|
} catch {
|
|
10163
10163
|
return;
|
|
10164
10164
|
}
|
|
@@ -10214,7 +10214,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10214
10214
|
} catch {
|
|
10215
10215
|
return [];
|
|
10216
10216
|
}
|
|
10217
|
-
}, xA = (e, t) => hb(e,
|
|
10217
|
+
}, xA = (e, t) => hb(e, tr(e, t)), MA = (e) => bb(e), LA = (e) => Rb(e), PA = (e, t, r) => {
|
|
10218
10218
|
try {
|
|
10219
10219
|
return Db(e, Qe(e, t), r);
|
|
10220
10220
|
} catch {
|
|
@@ -10225,7 +10225,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10225
10225
|
}), FA = (e) => xb(e), UA = (e, t) => sb(e, t), GA = (e, t) => ob(e, t), YA = (e, t) => cb(e, t), zA = (e) => ub(e), qA = (e, t, r) => e.tf.insertNodes(t, r), HA = (e, t, r) => mb(e, t, r), VA = (e) => fb(e), $A = (e, t) => rb(e, t), WA = (e, t = [], r) => {
|
|
10226
10226
|
var n;
|
|
10227
10227
|
if (t === null) return !0;
|
|
10228
|
-
if (ye.isPath(t) && t.length === 0 ||
|
|
10228
|
+
if (ye.isPath(t) && t.length === 0 || De.isEditor(t))
|
|
10229
10229
|
return e.children.length === 1 && Xa(e, e.children[0]);
|
|
10230
10230
|
if (r != null && r.after) {
|
|
10231
10231
|
const a = e.api.block({ above: !0, at: t });
|
|
@@ -10235,7 +10235,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10235
10235
|
const [, o] = s;
|
|
10236
10236
|
if (!e.api.isEnd(i, o)) return !1;
|
|
10237
10237
|
const l = Array.from(
|
|
10238
|
-
|
|
10238
|
+
De.children(e, a[1], {
|
|
10239
10239
|
from: ye.lastIndex(i.path) + 1
|
|
10240
10240
|
})
|
|
10241
10241
|
).map(([c]) => c);
|
|
@@ -10254,7 +10254,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10254
10254
|
if (!a) return !1;
|
|
10255
10255
|
t = a[0];
|
|
10256
10256
|
}
|
|
10257
|
-
if (!
|
|
10257
|
+
if (!De.isNode(t)) {
|
|
10258
10258
|
const a = e.api.nodes({ at: t, ...r });
|
|
10259
10259
|
for (const i of a)
|
|
10260
10260
|
if (!Xa(e, i[0]))
|
|
@@ -10347,7 +10347,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10347
10347
|
}
|
|
10348
10348
|
};
|
|
10349
10349
|
if (t != null && t.sibling) {
|
|
10350
|
-
const a =
|
|
10350
|
+
const a = tr(e, t).at;
|
|
10351
10351
|
if (!a) return;
|
|
10352
10352
|
const i = ye.previous(a);
|
|
10353
10353
|
return i ? e.api.node(i) : void 0;
|
|
@@ -10521,14 +10521,14 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10521
10521
|
at: Qe(e, r == null ? void 0 : r.at)
|
|
10522
10522
|
});
|
|
10523
10523
|
}, ED = (e, t, { nextBlock: r, removeEmpty: n, ...a } = {}) => {
|
|
10524
|
-
a =
|
|
10524
|
+
a = tr(e, a), e.tf.withoutNormalizing(() => {
|
|
10525
10525
|
if (n) {
|
|
10526
10526
|
const i = e.api.above({ at: a.at });
|
|
10527
10527
|
if (i) {
|
|
10528
10528
|
const s = n === !0 ? {
|
|
10529
10529
|
allow: ["p"]
|
|
10530
10530
|
} : n, { filter: o } = s;
|
|
10531
|
-
s.filter = ([l, c]) =>
|
|
10531
|
+
s.filter = ([l, c]) => De.string(l) || l.children.some((d) => e.api.isInline(d)) ? !1 : !o || o([l, c]), em(i, s) && (e.tf.removeNodes({ at: i[1] }), r = !1);
|
|
10532
10532
|
}
|
|
10533
10533
|
}
|
|
10534
10534
|
if (r) {
|
|
@@ -10557,8 +10557,8 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10557
10557
|
}), e.marks = null;
|
|
10558
10558
|
} else
|
|
10559
10559
|
me.insertText(e, t, n);
|
|
10560
|
-
}, hD = (e, t) => Kb(e,
|
|
10561
|
-
t =
|
|
10560
|
+
}, hD = (e, t) => Kb(e, tr(e, t)), bD = (e, t = {}) => {
|
|
10561
|
+
t = tr(e, t), e.tf.withoutNormalizing(() => {
|
|
10562
10562
|
let { at: r = e.selection, match: n } = t;
|
|
10563
10563
|
const {
|
|
10564
10564
|
hanging: a = !1,
|
|
@@ -10593,7 +10593,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10593
10593
|
), y = e.api.above({
|
|
10594
10594
|
at: m,
|
|
10595
10595
|
mode: "highest",
|
|
10596
|
-
match: (L) => D.has(L) && je.isElement(L) &&
|
|
10596
|
+
match: (L) => D.has(L) && je.isElement(L) && De.hasSingleChild(L)
|
|
10597
10597
|
}), N = y && e.api.pathRef(y[1]);
|
|
10598
10598
|
let I, A;
|
|
10599
10599
|
if (rt.isText(_) && rt.isText(p)) {
|
|
@@ -10623,7 +10623,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10623
10623
|
}), N && N.unref();
|
|
10624
10624
|
});
|
|
10625
10625
|
}, vD = (e, { children: t, fromIndex: r = 0, ...n }) => {
|
|
10626
|
-
const a =
|
|
10626
|
+
const a = tr(e, n);
|
|
10627
10627
|
let i = !1;
|
|
10628
10628
|
if (t) {
|
|
10629
10629
|
if (!a.at) return i;
|
|
@@ -10632,7 +10632,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10632
10632
|
const [o, l] = s;
|
|
10633
10633
|
if (!e.api.isBlock(o)) return i;
|
|
10634
10634
|
for (let c = o.children.length - 1; c >= r; c--) {
|
|
10635
|
-
const u = [...l, c], d =
|
|
10635
|
+
const u = [...l, c], d = De.get(e, u);
|
|
10636
10636
|
(!a.match || d && a.match(d, u)) && (jd(e, {
|
|
10637
10637
|
...a,
|
|
10638
10638
|
at: u
|
|
@@ -10644,7 +10644,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10644
10644
|
}, TD = (e, t) => {
|
|
10645
10645
|
Hb(e, t);
|
|
10646
10646
|
}, CD = (e, { children: t, previousEmptyBlock: r, ...n } = {}) => {
|
|
10647
|
-
const a =
|
|
10647
|
+
const a = tr(e, n);
|
|
10648
10648
|
e.tf.withoutNormalizing(() => {
|
|
10649
10649
|
if (r) {
|
|
10650
10650
|
const i = e.api.block({ at: a.at });
|
|
@@ -10659,13 +10659,13 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10659
10659
|
return;
|
|
10660
10660
|
}
|
|
10661
10661
|
if (t && a.at) {
|
|
10662
|
-
for (const [, i] of
|
|
10662
|
+
for (const [, i] of De.children(e, a.at, {
|
|
10663
10663
|
reverse: !0
|
|
10664
10664
|
}))
|
|
10665
10665
|
e.tf.removeNodes({ ...a, at: i });
|
|
10666
10666
|
return;
|
|
10667
10667
|
}
|
|
10668
|
-
return Xb(e,
|
|
10668
|
+
return Xb(e, tr(e, a));
|
|
10669
10669
|
});
|
|
10670
10670
|
}, yD = (e, t, { marks: r, ...n } = {}) => {
|
|
10671
10671
|
if (r) {
|
|
@@ -10694,7 +10694,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10694
10694
|
return Zd(
|
|
10695
10695
|
e,
|
|
10696
10696
|
t,
|
|
10697
|
-
|
|
10697
|
+
tr(e, {
|
|
10698
10698
|
...n,
|
|
10699
10699
|
at: a,
|
|
10700
10700
|
match: i,
|
|
@@ -10706,24 +10706,24 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10706
10706
|
return Zd(
|
|
10707
10707
|
e,
|
|
10708
10708
|
t,
|
|
10709
|
-
|
|
10709
|
+
tr(e, n)
|
|
10710
10710
|
);
|
|
10711
10711
|
}, RD = (e, t, r) => {
|
|
10712
10712
|
Vb(e, t, r);
|
|
10713
10713
|
}, ND = (e, t) => {
|
|
10714
10714
|
$b(e, t);
|
|
10715
|
-
}, OD = (e, t) => jb(e,
|
|
10715
|
+
}, OD = (e, t) => jb(e, tr(e, t)), AD = (e, t, r) => Zb(
|
|
10716
10716
|
e,
|
|
10717
10717
|
t,
|
|
10718
|
-
|
|
10718
|
+
tr(e, r)
|
|
10719
10719
|
), DD = (e, t) => {
|
|
10720
|
-
Jb(e,
|
|
10720
|
+
Jb(e, tr(e, t));
|
|
10721
10721
|
}, ID = (e, t, { children: r, ...n } = {}) => {
|
|
10722
|
-
const a =
|
|
10722
|
+
const a = tr(e, n);
|
|
10723
10723
|
if (a.at && (a.at = e.api.unhangRange(a.at, a)), r) {
|
|
10724
10724
|
const i = e.api.path(a.at);
|
|
10725
10725
|
if (!i) return;
|
|
10726
|
-
const s =
|
|
10726
|
+
const s = De.get(e, i);
|
|
10727
10727
|
if (!(s != null && s.children)) return;
|
|
10728
10728
|
e.tf.withoutNormalizing(() => {
|
|
10729
10729
|
const o = ye.firstChild(i);
|
|
@@ -11412,7 +11412,7 @@ function VD() {
|
|
|
11412
11412
|
return Nu = r, Nu;
|
|
11413
11413
|
}
|
|
11414
11414
|
var $D = VD();
|
|
11415
|
-
const
|
|
11415
|
+
const ar = /* @__PURE__ */ en($D), WD = Symbol(), Hv = Symbol(), Wa = "a", ai = "w";
|
|
11416
11416
|
let KD = (e, t) => new Proxy(e, t);
|
|
11417
11417
|
const e_ = Object.getPrototypeOf, oE = /* @__PURE__ */ new WeakMap(), QD = (e) => e && (oE.has(e) ? oE.get(e) : e_(e) === Object.prototype || e_(e) === Array.prototype), vs = (e) => typeof e == "object" && e !== null, XD = (e) => {
|
|
11418
11418
|
if (Array.isArray(e)) return Array.from(e);
|
|
@@ -12246,7 +12246,7 @@ function Qv(e, t) {
|
|
|
12246
12246
|
} else
|
|
12247
12247
|
throw new Error("Please check mark() to ensure that it is a stable marker draftable function.");
|
|
12248
12248
|
}
|
|
12249
|
-
function
|
|
12249
|
+
function sr(e) {
|
|
12250
12250
|
e.copy || (e.copy = Qv(e.original, e.options));
|
|
12251
12251
|
}
|
|
12252
12252
|
function ei(e) {
|
|
@@ -12355,7 +12355,7 @@ function Xv(e, t, r) {
|
|
|
12355
12355
|
var o;
|
|
12356
12356
|
if (Zn(s)) {
|
|
12357
12357
|
const l = Ke(s);
|
|
12358
|
-
|
|
12358
|
+
sr(l);
|
|
12359
12359
|
const c = !((o = l.assignedMap) === null || o === void 0) && o.size || l.operated ? l.copy : l.original;
|
|
12360
12360
|
Ti(n ? a : e, i, c);
|
|
12361
12361
|
} else
|
|
@@ -12510,18 +12510,18 @@ const Ts = (e, t, r = !1) => {
|
|
|
12510
12510
|
},
|
|
12511
12511
|
set(e, t) {
|
|
12512
12512
|
const r = Ke(this), n = gr(r);
|
|
12513
|
-
return (!n.has(e) || !fn(n.get(e), t)) && (
|
|
12513
|
+
return (!n.has(e) || !fn(n.get(e), t)) && (sr(r), Xr(r), r.assignedMap.set(e, !0), r.copy.set(e, t), _m(r, e, t, mi)), this;
|
|
12514
12514
|
},
|
|
12515
12515
|
delete(e) {
|
|
12516
12516
|
if (!this.has(e))
|
|
12517
12517
|
return !1;
|
|
12518
12518
|
const t = Ke(this);
|
|
12519
|
-
return
|
|
12519
|
+
return sr(t), Xr(t), t.original.has(e) ? t.assignedMap.set(e, !1) : t.assignedMap.delete(e), t.copy.delete(e), !0;
|
|
12520
12520
|
},
|
|
12521
12521
|
clear() {
|
|
12522
12522
|
const e = Ke(this);
|
|
12523
12523
|
if (this.size) {
|
|
12524
|
-
|
|
12524
|
+
sr(e), Xr(e), e.assignedMap = /* @__PURE__ */ new Map();
|
|
12525
12525
|
for (const [t] of e.original)
|
|
12526
12526
|
e.assignedMap.set(t, !1);
|
|
12527
12527
|
e.copy.clear();
|
|
@@ -12545,7 +12545,7 @@ const Ts = (e, t, r = !1) => {
|
|
|
12545
12545
|
finalities: n.finalities,
|
|
12546
12546
|
options: n.options
|
|
12547
12547
|
});
|
|
12548
|
-
return
|
|
12548
|
+
return sr(n), n.copy.set(e, s), s;
|
|
12549
12549
|
},
|
|
12550
12550
|
keys() {
|
|
12551
12551
|
return gr(Ke(this)).keys();
|
|
@@ -12612,19 +12612,19 @@ const Ts = (e, t, r = !1) => {
|
|
|
12612
12612
|
const t = Ke(this);
|
|
12613
12613
|
if (t.setMap.has(e))
|
|
12614
12614
|
return !0;
|
|
12615
|
-
|
|
12615
|
+
sr(t);
|
|
12616
12616
|
const r = Ke(e);
|
|
12617
12617
|
return !!(r && t.setMap.has(r.original));
|
|
12618
12618
|
},
|
|
12619
12619
|
add(e) {
|
|
12620
12620
|
const t = Ke(this);
|
|
12621
|
-
return this.has(e) || (
|
|
12621
|
+
return this.has(e) || (sr(t), Xr(t), t.assignedMap.set(e, !0), t.setMap.set(e, e), _m(t, e, e, mi)), this;
|
|
12622
12622
|
},
|
|
12623
12623
|
delete(e) {
|
|
12624
12624
|
if (!this.has(e))
|
|
12625
12625
|
return !1;
|
|
12626
12626
|
const t = Ke(this);
|
|
12627
|
-
|
|
12627
|
+
sr(t), Xr(t);
|
|
12628
12628
|
const r = Ke(e);
|
|
12629
12629
|
return r && t.setMap.has(r.original) ? (t.assignedMap.set(r.original, !1), t.setMap.delete(r.original)) : (!r && t.setMap.has(e) ? t.assignedMap.set(e, !1) : t.assignedMap.delete(e), t.setMap.delete(e));
|
|
12630
12630
|
},
|
|
@@ -12632,14 +12632,14 @@ const Ts = (e, t, r = !1) => {
|
|
|
12632
12632
|
if (!this.size)
|
|
12633
12633
|
return;
|
|
12634
12634
|
const e = Ke(this);
|
|
12635
|
-
|
|
12635
|
+
sr(e), Xr(e);
|
|
12636
12636
|
for (const t of e.original)
|
|
12637
12637
|
e.assignedMap.set(t, !1);
|
|
12638
12638
|
e.setMap.clear();
|
|
12639
12639
|
},
|
|
12640
12640
|
values() {
|
|
12641
12641
|
const e = Ke(this);
|
|
12642
|
-
|
|
12642
|
+
sr(e);
|
|
12643
12643
|
const t = e.setMap.keys();
|
|
12644
12644
|
return {
|
|
12645
12645
|
[Symbol.iterator]: () => this.values(),
|
|
@@ -12648,7 +12648,7 @@ const Ts = (e, t, r = !1) => {
|
|
|
12648
12648
|
},
|
|
12649
12649
|
entries() {
|
|
12650
12650
|
const e = Ke(this);
|
|
12651
|
-
|
|
12651
|
+
sr(e);
|
|
12652
12652
|
const t = e.setMap.keys();
|
|
12653
12653
|
return {
|
|
12654
12654
|
[Symbol.iterator]: () => this.entries(),
|
|
@@ -12733,7 +12733,7 @@ const DI = Reflect.ownKeys(Cs), jv = /* @__PURE__ */ new WeakSet(), Zv = {
|
|
|
12733
12733
|
if (e.options.strict && Ts(l, e.options), e.finalized || !Yr(l, e.options))
|
|
12734
12734
|
return l;
|
|
12735
12735
|
if (l === xu(e.original, t)) {
|
|
12736
|
-
if (
|
|
12736
|
+
if (sr(e), e.copy[t] = mm({
|
|
12737
12737
|
original: e.original[t],
|
|
12738
12738
|
parentDraft: e,
|
|
12739
12739
|
key: e.type === 1 ? Number(t) : t,
|
|
@@ -12741,7 +12741,7 @@ const DI = Reflect.ownKeys(Cs), jv = /* @__PURE__ */ new WeakSet(), Zv = {
|
|
|
12741
12741
|
options: e.options
|
|
12742
12742
|
}), typeof s == "function") {
|
|
12743
12743
|
const c = Ke(e.copy[t]);
|
|
12744
|
-
return
|
|
12744
|
+
return sr(c), Xr(c), c.copy;
|
|
12745
12745
|
}
|
|
12746
12746
|
return e.copy[t];
|
|
12747
12747
|
}
|
|
@@ -12758,7 +12758,7 @@ const DI = Reflect.ownKeys(Cs), jv = /* @__PURE__ */ new WeakSet(), Zv = {
|
|
|
12758
12758
|
if (i != null && i.set)
|
|
12759
12759
|
return i.set.call(e.proxy, r), !0;
|
|
12760
12760
|
const s = xu(gr(e), t), o = Ke(s);
|
|
12761
|
-
return o && fn(o.original, r) ? (e.copy[t] = r, e.assignedMap = (n = e.assignedMap) !== null && n !== void 0 ? n : /* @__PURE__ */ new Map(), e.assignedMap.set(t, !1), !0) : (fn(r, s) && (r !== void 0 || ii(e.original, t)) || (
|
|
12761
|
+
return o && fn(o.original, r) ? (e.copy[t] = r, e.assignedMap = (n = e.assignedMap) !== null && n !== void 0 ? n : /* @__PURE__ */ new Map(), e.assignedMap.set(t, !1), !0) : (fn(r, s) && (r !== void 0 || ii(e.original, t)) || (sr(e), Xr(e), ii(e.original, t) && fn(r, e.original[t]) ? e.assignedMap.delete(t) : e.assignedMap.set(t, !0), e.copy[t] = r, _m(e, t, r, mi)), !0);
|
|
12762
12762
|
},
|
|
12763
12763
|
has(e, t) {
|
|
12764
12764
|
return t in gr(e);
|
|
@@ -12786,7 +12786,7 @@ const DI = Reflect.ownKeys(Cs), jv = /* @__PURE__ */ new WeakSet(), Zv = {
|
|
|
12786
12786
|
},
|
|
12787
12787
|
deleteProperty(e, t) {
|
|
12788
12788
|
var r;
|
|
12789
|
-
return e.type === 1 ? Zv.set.call(this, e, t, void 0, e.proxy) : (xu(e.original, t) !== void 0 || t in e.original ? (
|
|
12789
|
+
return e.type === 1 ? Zv.set.call(this, e, t, void 0, e.proxy) : (xu(e.original, t) !== void 0 || t in e.original ? (sr(e), Xr(e), e.assignedMap.set(t, !1)) : (e.assignedMap = (r = e.assignedMap) !== null && r !== void 0 ? r : /* @__PURE__ */ new Map(), e.assignedMap.delete(t)), e.copy && delete e.copy[t], !0);
|
|
12790
12790
|
}
|
|
12791
12791
|
};
|
|
12792
12792
|
function mm(e) {
|
|
@@ -14028,7 +14028,7 @@ var oT = (e, t) => {
|
|
|
14028
14028
|
);
|
|
14029
14029
|
}), r.__extensions = []);
|
|
14030
14030
|
const n = (i = r.inject) == null ? void 0 : i.targetPluginToInject, a = (s = r.inject) == null ? void 0 : s.targetPlugins;
|
|
14031
|
-
return n && a && a.length > 0 && (r.inject = r.inject || {}, r.inject.plugins =
|
|
14031
|
+
return n && a && a.length > 0 && (r.inject = r.inject || {}, r.inject.plugins = ar(
|
|
14032
14032
|
{},
|
|
14033
14033
|
r.inject.plugins,
|
|
14034
14034
|
Object.fromEntries(
|
|
@@ -14090,7 +14090,7 @@ var kw = (e) => {
|
|
|
14090
14090
|
}), t.__apiExtensions && t.__apiExtensions.length > 0 && (t.__apiExtensions.forEach(
|
|
14091
14091
|
({ extension: r, isOverride: n, isPluginSpecific: a, isTransform: i }) => {
|
|
14092
14092
|
const s = r(wt(e, t));
|
|
14093
|
-
n ? (s.api && (
|
|
14093
|
+
n ? (s.api && (ar(e.api, s.api), ar(t.api, s.api), Ag(e, e.api)), s.transforms && (ar(e.transforms, s.transforms), ar(t.transforms, s.transforms), Og(e, s.transforms))) : i ? a ? (e.transforms[t.key] || (e.transforms[t.key] = {}), t.transforms[t.key] || (t.transforms[t.key] = {}), ar(e.transforms[t.key], s), ar(t.transforms[t.key], s)) : (ar(e.transforms, s), ar(t.transforms, s), Og(e, s)) : a ? (e.api[t.key] || (e.api[t.key] = {}), t.api[t.key] || (t.api[t.key] = {}), ar(e.api[t.key], s), ar(t.api[t.key], s)) : (ar(e.api, s), ar(t.api, s), Ag(e, e.api));
|
|
14094
14094
|
}
|
|
14095
14095
|
), delete t.__apiExtensions);
|
|
14096
14096
|
}, Gw = (e) => {
|
|
@@ -14248,7 +14248,7 @@ var kw = (e) => {
|
|
|
14248
14248
|
query: n,
|
|
14249
14249
|
source: a
|
|
14250
14250
|
}) => {
|
|
14251
|
-
em([t, r], n) && (a instanceof Function ? e(t, a()) : e(t, a)),
|
|
14251
|
+
em([t, r], n) && (a instanceof Function ? e(t, a()) : e(t, a)), De.isAncestor(t) && t.children.forEach((s, o) => {
|
|
14252
14252
|
lT({
|
|
14253
14253
|
apply: e,
|
|
14254
14254
|
node: s,
|
|
@@ -14684,7 +14684,7 @@ var pT = (e) => e.dataset.slateVoid === "true", px = (e) => e.dataset.slateNode
|
|
|
14684
14684
|
};
|
|
14685
14685
|
Et("bold"), Et("compose"), Et("deleteBackward"), Et("deleteForward"), Et("deleteLineBackward"), Et("deleteLineForward"), Et("deleteWordBackward"), Et("deleteWordForward"), Et("extendBackward"), Et("extendForward"), Et("extendLineBackward"), Et("extendLineForward"), Et("italic"), Et("moveBackward"), Et("moveForward"), Et("moveLineBackward"), Et("moveLineForward"), Et("moveWordBackward"), Et("moveWordForward"), Et("redo"), Et("insertSoftBreak"), Et("splitBlock"), Et("transposeCharacter"), Et("undo");
|
|
14686
14686
|
var Cx = (e) => {
|
|
14687
|
-
lT({ ...e, apply:
|
|
14687
|
+
lT({ ...e, apply: ar });
|
|
14688
14688
|
}, yx = class extends Error {
|
|
14689
14689
|
constructor(t, r = "DEFAULT") {
|
|
14690
14690
|
super(`[${r}] ${t}`), this.type = r, this.name = "PlateError";
|
|
@@ -15648,7 +15648,7 @@ var uM = (e, t, { fragment: r, ...n }) => {
|
|
|
15648
15648
|
query: n,
|
|
15649
15649
|
source: a
|
|
15650
15650
|
}) => {
|
|
15651
|
-
em([t, r], n) && (a instanceof Function ? e(t, a()) : e(t, a)),
|
|
15651
|
+
em([t, r], n) && (a instanceof Function ? e(t, a()) : e(t, a)), De.isAncestor(t) && t.children.forEach((s, o) => {
|
|
15652
15652
|
CT({
|
|
15653
15653
|
apply: e,
|
|
15654
15654
|
node: s,
|
|
@@ -15695,7 +15695,7 @@ var uM = (e, t, { fragment: r, ...n }) => {
|
|
|
15695
15695
|
const a = (i = n.inject.plugins) == null ? void 0 : i[t.key];
|
|
15696
15696
|
a && r.push(a);
|
|
15697
15697
|
}), [t, ...r];
|
|
15698
|
-
},
|
|
15698
|
+
}, Tt = (e) => {
|
|
15699
15699
|
const { as: t, attributes: r, element: n, elementToAttributes: a, nodeProps: i, ...s } = UT(e), o = !!n.id && e.editor.api.isBlock(n), l = {
|
|
15700
15700
|
...r,
|
|
15701
15701
|
...s,
|
|
@@ -15828,7 +15828,7 @@ var uM = (e, t, { fragment: r, ...n }) => {
|
|
|
15828
15828
|
};
|
|
15829
15829
|
}, SM = (e, t, r) => function(a) {
|
|
15830
15830
|
if (a.element.type === t.node.type) {
|
|
15831
|
-
const i = a.element, s = t.key, o = (r == null ? void 0 : r[t.key]) ??
|
|
15831
|
+
const i = a.element, s = t.key, o = (r == null ? void 0 : r[t.key]) ?? Tt;
|
|
15832
15832
|
let { children: l } = a;
|
|
15833
15833
|
const c = e.pluginList.flatMap(
|
|
15834
15834
|
(m) => {
|
|
@@ -15872,7 +15872,7 @@ var uM = (e, t, { fragment: r, ...n }) => {
|
|
|
15872
15872
|
}), function(i) {
|
|
15873
15873
|
let s;
|
|
15874
15874
|
return n.some((o) => (s = o(i), !!s)), s || (r ? r(i) : /* @__PURE__ */ ce.createElement(
|
|
15875
|
-
|
|
15875
|
+
Tt,
|
|
15876
15876
|
{
|
|
15877
15877
|
attributes: i.attributes,
|
|
15878
15878
|
element: i.element
|
|
@@ -16139,7 +16139,7 @@ var AT = (e) => e.dataset.slateVoid === "true", AM = (e) => e.dataset.slateNode
|
|
|
16139
16139
|
};
|
|
16140
16140
|
St("bold"), St("compose"), St("deleteBackward"), St("deleteForward"), St("deleteLineBackward"), St("deleteLineForward"), St("deleteWordBackward"), St("deleteWordForward"), St("extendBackward"), St("extendForward"), St("extendLineBackward"), St("extendLineForward"), St("italic"), St("moveBackward"), St("moveForward"), St("moveLineBackward"), St("moveLineForward"), St("moveWordBackward"), St("moveWordForward"), St("redo"), St("insertSoftBreak"), St("splitBlock"), St("transposeCharacter"), St("undo");
|
|
16141
16141
|
var BM = (e) => {
|
|
16142
|
-
CT({ ...e, apply:
|
|
16142
|
+
CT({ ...e, apply: ar });
|
|
16143
16143
|
}, FM = class extends Error {
|
|
16144
16144
|
constructor(e, t = "DEFAULT") {
|
|
16145
16145
|
super(`[${t}] ${e}`), this.type = t, this.name = "PlateError";
|
|
@@ -17045,7 +17045,7 @@ function b2(e) {
|
|
|
17045
17045
|
return t;
|
|
17046
17046
|
}
|
|
17047
17047
|
function v2(e, [t, r]) {
|
|
17048
|
-
const { defaultLanguage: n, ...a } = e.getOptions(Kn), i = a.lowlight, s = t.children.map((g) =>
|
|
17048
|
+
const { defaultLanguage: n, ...a } = e.getOptions(Kn), i = a.lowlight, s = t.children.map((g) => De.string(g)).join(`
|
|
17049
17049
|
`), l = t.lang || n;
|
|
17050
17050
|
let c;
|
|
17051
17051
|
try {
|
|
@@ -17193,7 +17193,7 @@ var A2 = ({
|
|
|
17193
17193
|
const [a] = e.api.block() ?? [], i = e.getType(Gr);
|
|
17194
17194
|
function s(o) {
|
|
17195
17195
|
return {
|
|
17196
|
-
children: [{ text:
|
|
17196
|
+
children: [{ text: De.string(o) }],
|
|
17197
17197
|
type: i
|
|
17198
17198
|
};
|
|
17199
17199
|
}
|
|
@@ -17215,7 +17215,7 @@ var A2 = ({
|
|
|
17215
17215
|
return;
|
|
17216
17216
|
const a = e.getType(Kn), i = e.getType(Gr);
|
|
17217
17217
|
if (r.type === a) {
|
|
17218
|
-
const o = Array.from(
|
|
17218
|
+
const o = Array.from(De.children(e, n)).find(
|
|
17219
17219
|
([l]) => l.type !== i
|
|
17220
17220
|
);
|
|
17221
17221
|
o && e.tf.setNodes({ type: i }, { at: o[1] });
|
|
@@ -17815,7 +17815,7 @@ var q2 = (e, {
|
|
|
17815
17815
|
}
|
|
17816
17816
|
}, HT = (e, t, r) => qT(e, t, {
|
|
17817
17817
|
getNextEntry: ([, n]) => {
|
|
17818
|
-
const a = ye.next(n), i =
|
|
17818
|
+
const a = ye.next(n), i = De.get(e, a);
|
|
17819
17819
|
if (i)
|
|
17820
17820
|
return [i, a];
|
|
17821
17821
|
},
|
|
@@ -17825,7 +17825,7 @@ var q2 = (e, {
|
|
|
17825
17825
|
getPreviousEntry: ([, n]) => {
|
|
17826
17826
|
const a = ye.previous(n);
|
|
17827
17827
|
if (!a) return;
|
|
17828
|
-
const i =
|
|
17828
|
+
const i = De.get(e, a);
|
|
17829
17829
|
if (i)
|
|
17830
17830
|
return [i, a];
|
|
17831
17831
|
},
|
|
@@ -17844,7 +17844,7 @@ var q2 = (e, {
|
|
|
17844
17844
|
if (!s && (i = $2(e, t), !i))
|
|
17845
17845
|
return;
|
|
17846
17846
|
let o = !0, l = t;
|
|
17847
|
-
for (; o && (o = K2(e, l, s) || i, o && (i = !0), s = [
|
|
17847
|
+
for (; o && (o = K2(e, l, s) || i, o && (i = !0), s = [De.get(e, l[1]), l[1]], l = HT(e, l, r), !!l); )
|
|
17848
17848
|
;
|
|
17849
17849
|
return i;
|
|
17850
17850
|
}), Q2 = (e, t = {}) => {
|
|
@@ -17859,7 +17859,7 @@ var q2 = (e, {
|
|
|
17859
17859
|
const n = e.api.above();
|
|
17860
17860
|
if (!n) return t(r);
|
|
17861
17861
|
const a = n[0];
|
|
17862
|
-
return e.api.isCollapsed() &&
|
|
17862
|
+
return e.api.isCollapsed() && De.string(a) ? t(r) : zr(a[zt.key]) ? Q2(e) : t(r);
|
|
17863
17863
|
}
|
|
17864
17864
|
}
|
|
17865
17865
|
}), j2 = ({ editor: e, tf: { insertBreak: t } }) => ({
|
|
@@ -18148,7 +18148,7 @@ var q2 = (e, {
|
|
|
18148
18148
|
const { rules: i, onError: s } = t();
|
|
18149
18149
|
if (!(a.length === 0 && i.some(
|
|
18150
18150
|
({ path: l, strictType: c, type: u }) => {
|
|
18151
|
-
const d =
|
|
18151
|
+
const d = De.get(e, l);
|
|
18152
18152
|
if (d) {
|
|
18153
18153
|
if (c && je.isElement(d) && d.type !== c) {
|
|
18154
18154
|
const { children: _, ...m } = e.api.create.block({
|
|
@@ -18188,7 +18188,7 @@ var WT = ({
|
|
|
18188
18188
|
transforms: {
|
|
18189
18189
|
normalizeNode([n, a]) {
|
|
18190
18190
|
const i = wr(t().types ?? []);
|
|
18191
|
-
if (je.isElement(n) && n.type && i.includes(n.type) &&
|
|
18191
|
+
if (je.isElement(n) && n.type && i.includes(n.type) && De.string(n) === "") {
|
|
18192
18192
|
e.tf.removeNodes({ at: a });
|
|
18193
18193
|
return;
|
|
18194
18194
|
}
|
|
@@ -18321,9 +18321,9 @@ var WT = ({
|
|
|
18321
18321
|
_ && e.tf.removeNodes({
|
|
18322
18322
|
at: d
|
|
18323
18323
|
});
|
|
18324
|
-
const m =
|
|
18324
|
+
const m = De.extractProps(u ?? {}), p = (T = e.selection) == null ? void 0 : T.focus.path;
|
|
18325
18325
|
if (!p) return;
|
|
18326
|
-
const g =
|
|
18326
|
+
const g = De.leaf(e, p);
|
|
18327
18327
|
return i != null && i.length || (i = s), s4(
|
|
18328
18328
|
e,
|
|
18329
18329
|
{
|
|
@@ -18614,7 +18614,7 @@ class An {
|
|
|
18614
18614
|
return this.size >= 2;
|
|
18615
18615
|
}
|
|
18616
18616
|
}
|
|
18617
|
-
var ym = 0, ws = 1, ba = 2, En = 3, gi = 4, Ir = 5, Ra = 6,
|
|
18617
|
+
var ym = 0, ws = 1, ba = 2, En = 3, gi = 4, Ir = 5, Ra = 6, or = 7, Wr = [new An(ym, 0, !1), new An(ws, 0, !0), new An(ba, 1, !1), new An(En, 1, !0), new An(gi, 2, !1), new An(Ir, 2, !0), new An(Ra, 3, !1), new An(or, 3, !0)], h4 = [gi, Ir, gi, Ir, Ra, or, Ra, or], b4 = [Ir, Ir, Ir, Ir, or, or, or, or], v4 = [ba, En, gi, Ir, Ra, or, Ra, or], T4 = [En, En, Ir, Ir, or, or, or, or], C4 = [ws, ws, En, En, Ir, Ir, or, or], y4 = [ym, ws, ba, En, ba, En, ba, En], Le = {
|
|
18618
18618
|
DISPLAY: Wr[ym],
|
|
18619
18619
|
TEXT: Wr[ba],
|
|
18620
18620
|
SCRIPT: Wr[gi],
|
|
@@ -21575,7 +21575,7 @@ function f(e, t, r, n, a, i) {
|
|
|
21575
21575
|
replace: n
|
|
21576
21576
|
}, i && n && (xt[e][n] = xt[e][a]);
|
|
21577
21577
|
}
|
|
21578
|
-
var E = "math", X = "text", v = "main", M = "ams", ht = "accent-token", pe = "bin", ur = "close", ka = "inner",
|
|
21578
|
+
var E = "math", X = "text", v = "main", M = "ams", ht = "accent-token", pe = "bin", ur = "close", ka = "inner", we = "mathord", Ft = "op-token", Cr = "open", _o = "punct", P = "rel", yn = "spacing", F = "textord";
|
|
21579
21579
|
f(E, v, P, "≡", "\\equiv", !0);
|
|
21580
21580
|
f(E, v, P, "≺", "\\prec", !0);
|
|
21581
21581
|
f(E, v, P, "≻", "\\succ", !0);
|
|
@@ -21940,36 +21940,36 @@ f(E, v, F, "⊤", "\\top");
|
|
|
21940
21940
|
f(E, v, F, "⊥", "\\bot");
|
|
21941
21941
|
f(E, v, F, "∅", "\\emptyset");
|
|
21942
21942
|
f(E, M, F, "∅", "\\varnothing");
|
|
21943
|
-
f(E, v,
|
|
21944
|
-
f(E, v,
|
|
21945
|
-
f(E, v,
|
|
21946
|
-
f(E, v,
|
|
21947
|
-
f(E, v,
|
|
21948
|
-
f(E, v,
|
|
21949
|
-
f(E, v,
|
|
21950
|
-
f(E, v,
|
|
21951
|
-
f(E, v,
|
|
21952
|
-
f(E, v,
|
|
21953
|
-
f(E, v,
|
|
21954
|
-
f(E, v,
|
|
21955
|
-
f(E, v,
|
|
21956
|
-
f(E, v,
|
|
21957
|
-
f(E, v,
|
|
21958
|
-
f(E, v,
|
|
21959
|
-
f(E, v,
|
|
21960
|
-
f(E, v,
|
|
21961
|
-
f(E, v,
|
|
21962
|
-
f(E, v,
|
|
21963
|
-
f(E, v,
|
|
21964
|
-
f(E, v,
|
|
21965
|
-
f(E, v,
|
|
21966
|
-
f(E, v,
|
|
21967
|
-
f(E, v,
|
|
21968
|
-
f(E, v,
|
|
21969
|
-
f(E, v,
|
|
21970
|
-
f(E, v,
|
|
21971
|
-
f(E, v,
|
|
21972
|
-
f(E, v,
|
|
21943
|
+
f(E, v, we, "α", "\\alpha", !0);
|
|
21944
|
+
f(E, v, we, "β", "\\beta", !0);
|
|
21945
|
+
f(E, v, we, "γ", "\\gamma", !0);
|
|
21946
|
+
f(E, v, we, "δ", "\\delta", !0);
|
|
21947
|
+
f(E, v, we, "ϵ", "\\epsilon", !0);
|
|
21948
|
+
f(E, v, we, "ζ", "\\zeta", !0);
|
|
21949
|
+
f(E, v, we, "η", "\\eta", !0);
|
|
21950
|
+
f(E, v, we, "θ", "\\theta", !0);
|
|
21951
|
+
f(E, v, we, "ι", "\\iota", !0);
|
|
21952
|
+
f(E, v, we, "κ", "\\kappa", !0);
|
|
21953
|
+
f(E, v, we, "λ", "\\lambda", !0);
|
|
21954
|
+
f(E, v, we, "μ", "\\mu", !0);
|
|
21955
|
+
f(E, v, we, "ν", "\\nu", !0);
|
|
21956
|
+
f(E, v, we, "ξ", "\\xi", !0);
|
|
21957
|
+
f(E, v, we, "ο", "\\omicron", !0);
|
|
21958
|
+
f(E, v, we, "π", "\\pi", !0);
|
|
21959
|
+
f(E, v, we, "ρ", "\\rho", !0);
|
|
21960
|
+
f(E, v, we, "σ", "\\sigma", !0);
|
|
21961
|
+
f(E, v, we, "τ", "\\tau", !0);
|
|
21962
|
+
f(E, v, we, "υ", "\\upsilon", !0);
|
|
21963
|
+
f(E, v, we, "ϕ", "\\phi", !0);
|
|
21964
|
+
f(E, v, we, "χ", "\\chi", !0);
|
|
21965
|
+
f(E, v, we, "ψ", "\\psi", !0);
|
|
21966
|
+
f(E, v, we, "ω", "\\omega", !0);
|
|
21967
|
+
f(E, v, we, "ε", "\\varepsilon", !0);
|
|
21968
|
+
f(E, v, we, "ϑ", "\\vartheta", !0);
|
|
21969
|
+
f(E, v, we, "ϖ", "\\varpi", !0);
|
|
21970
|
+
f(E, v, we, "ϱ", "\\varrho", !0);
|
|
21971
|
+
f(E, v, we, "ς", "\\varsigma", !0);
|
|
21972
|
+
f(E, v, we, "φ", "\\varphi", !0);
|
|
21973
21973
|
f(E, v, pe, "∗", "*", !0);
|
|
21974
21974
|
f(E, v, pe, "+", "+");
|
|
21975
21975
|
f(E, v, pe, "−", "-", !0);
|
|
@@ -22121,8 +22121,8 @@ f(E, v, ht, "^", "\\hat");
|
|
|
22121
22121
|
f(E, v, ht, "⃗", "\\vec");
|
|
22122
22122
|
f(E, v, ht, "˙", "\\dot");
|
|
22123
22123
|
f(E, v, ht, "˚", "\\mathring");
|
|
22124
|
-
f(E, v,
|
|
22125
|
-
f(E, v,
|
|
22124
|
+
f(E, v, we, "", "\\@imath");
|
|
22125
|
+
f(E, v, we, "", "\\@jmath");
|
|
22126
22126
|
f(E, v, F, "ı", "ı");
|
|
22127
22127
|
f(E, v, F, "ȷ", "ȷ");
|
|
22128
22128
|
f(X, v, F, "ı", "\\i", !0);
|
|
@@ -22187,7 +22187,7 @@ for (var rd = 0; rd < mS.length; rd++) {
|
|
|
22187
22187
|
var xs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
22188
22188
|
for (var nd = 0; nd < xs.length; nd++) {
|
|
22189
22189
|
var $i = xs.charAt(nd);
|
|
22190
|
-
f(E, v,
|
|
22190
|
+
f(E, v, we, $i, $i), f(X, v, F, $i, $i);
|
|
22191
22191
|
}
|
|
22192
22192
|
f(E, M, F, "C", "ℂ");
|
|
22193
22193
|
f(X, M, F, "C", "ℂ");
|
|
@@ -22203,24 +22203,24 @@ f(E, M, F, "R", "ℝ");
|
|
|
22203
22203
|
f(X, M, F, "R", "ℝ");
|
|
22204
22204
|
f(E, M, F, "Z", "ℤ");
|
|
22205
22205
|
f(X, M, F, "Z", "ℤ");
|
|
22206
|
-
f(E, v,
|
|
22207
|
-
f(X, v,
|
|
22206
|
+
f(E, v, we, "h", "ℎ");
|
|
22207
|
+
f(X, v, we, "h", "ℎ");
|
|
22208
22208
|
var Pe = "";
|
|
22209
|
-
for (var
|
|
22210
|
-
var
|
|
22211
|
-
Pe = String.fromCharCode(55349, 56320 +
|
|
22209
|
+
for (var nr = 0; nr < xs.length; nr++) {
|
|
22210
|
+
var Nt = xs.charAt(nr);
|
|
22211
|
+
Pe = String.fromCharCode(55349, 56320 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe), Pe = String.fromCharCode(55349, 56372 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe), Pe = String.fromCharCode(55349, 56424 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe), Pe = String.fromCharCode(55349, 56580 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe), Pe = String.fromCharCode(55349, 56684 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe), Pe = String.fromCharCode(55349, 56736 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe), Pe = String.fromCharCode(55349, 56788 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe), Pe = String.fromCharCode(55349, 56840 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe), Pe = String.fromCharCode(55349, 56944 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe), nr < 26 && (Pe = String.fromCharCode(55349, 56632 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe), Pe = String.fromCharCode(55349, 56476 + nr), f(E, v, we, Nt, Pe), f(X, v, F, Nt, Pe));
|
|
22212
22212
|
}
|
|
22213
22213
|
Pe = "𝕜";
|
|
22214
|
-
f(E, v,
|
|
22214
|
+
f(E, v, we, "k", Pe);
|
|
22215
22215
|
f(X, v, F, "k", Pe);
|
|
22216
22216
|
for (var qn = 0; qn < 10; qn++) {
|
|
22217
22217
|
var Dn = qn.toString();
|
|
22218
|
-
Pe = String.fromCharCode(55349, 57294 + qn), f(E, v,
|
|
22218
|
+
Pe = String.fromCharCode(55349, 57294 + qn), f(E, v, we, Dn, Pe), f(X, v, F, Dn, Pe), Pe = String.fromCharCode(55349, 57314 + qn), f(E, v, we, Dn, Pe), f(X, v, F, Dn, Pe), Pe = String.fromCharCode(55349, 57324 + qn), f(E, v, we, Dn, Pe), f(X, v, F, Dn, Pe), Pe = String.fromCharCode(55349, 57334 + qn), f(E, v, we, Dn, Pe), f(X, v, F, Dn, Pe);
|
|
22219
22219
|
}
|
|
22220
22220
|
var fS = "ÐÞþ";
|
|
22221
22221
|
for (var ad = 0; ad < fS.length; ad++) {
|
|
22222
22222
|
var Wi = fS.charAt(ad);
|
|
22223
|
-
f(E, v,
|
|
22223
|
+
f(E, v, we, Wi, Wi), f(X, v, F, Wi, Wi);
|
|
22224
22224
|
}
|
|
22225
22225
|
var Ki = [
|
|
22226
22226
|
["mathbf", "textbf", "Main-Bold"],
|
|
@@ -22733,7 +22733,7 @@ var Ps = function(t) {
|
|
|
22733
22733
|
mclose: "mclose",
|
|
22734
22734
|
mpunct: "mpunct",
|
|
22735
22735
|
minner: "minner"
|
|
22736
|
-
},
|
|
22736
|
+
}, Xt = function(t, r, n, a) {
|
|
22737
22737
|
a === void 0 && (a = [null, null]);
|
|
22738
22738
|
for (var i = [], s = 0; s < t.length; s++) {
|
|
22739
22739
|
var o = Ze(t[s], r);
|
|
@@ -23491,7 +23491,7 @@ _e({
|
|
|
23491
23491
|
});
|
|
23492
23492
|
var SL = Y.makeSpan;
|
|
23493
23493
|
function cC(e, t) {
|
|
23494
|
-
var r =
|
|
23494
|
+
var r = Xt(e.body, t, !0);
|
|
23495
23495
|
return SL([e.mclass], r, t);
|
|
23496
23496
|
}
|
|
23497
23497
|
function uC(e, t) {
|
|
@@ -23603,7 +23603,7 @@ _e({
|
|
|
23603
23603
|
};
|
|
23604
23604
|
},
|
|
23605
23605
|
htmlBuilder(e, t) {
|
|
23606
|
-
var r =
|
|
23606
|
+
var r = Xt(e.body, t, !0), n = Y.makeSpan([e.mclass], r, t);
|
|
23607
23607
|
return n.style.textShadow = "0.02em 0.01em 0.04px", n;
|
|
23608
23608
|
},
|
|
23609
23609
|
mathmlBuilder(e, t) {
|
|
@@ -23817,7 +23817,7 @@ _e({
|
|
|
23817
23817
|
}
|
|
23818
23818
|
});
|
|
23819
23819
|
var dC = (e, t) => {
|
|
23820
|
-
var r =
|
|
23820
|
+
var r = Xt(e.body, t.withColor(e.color), !1);
|
|
23821
23821
|
return Y.makeFragment(r);
|
|
23822
23822
|
}, _C = (e, t) => {
|
|
23823
23823
|
var r = yr(e.body, t.withColor(e.color)), n = new Z.MathNode("mstyle", r);
|
|
@@ -24399,7 +24399,7 @@ _e({
|
|
|
24399
24399
|
},
|
|
24400
24400
|
htmlBuilder: (e, t) => {
|
|
24401
24401
|
vS(e);
|
|
24402
|
-
for (var r =
|
|
24402
|
+
for (var r = Xt(e.body, t, !0, ["mopen", "mclose"]), n = 0, a = 0, i = !1, s = 0; s < r.length; s++)
|
|
24403
24403
|
r[s].isMiddle ? i = !0 : (n = Math.max(r[s].height, n), a = Math.max(r[s].depth, a));
|
|
24404
24404
|
n *= t.sizeMultiplier, a *= t.sizeMultiplier;
|
|
24405
24405
|
var o;
|
|
@@ -24840,7 +24840,7 @@ var nn = function(t, r) {
|
|
|
24840
24840
|
if (t.tags && t.tags.some((H) => H))
|
|
24841
24841
|
for (n = 0; n < i; ++n) {
|
|
24842
24842
|
var V = l[n], re = V.pos - z, ge = t.tags[n], be = void 0;
|
|
24843
|
-
ge === !0 ? be = Y.makeSpan(["eqn-num"], [], r) : ge === !1 ? be = Y.makeSpan([], [], r) : be = Y.makeSpan([],
|
|
24843
|
+
ge === !0 ? be = Y.makeSpan(["eqn-num"], [], r) : ge === !1 ? be = Y.makeSpan([], [], r) : be = Y.makeSpan([], Xt(ge, r, !0), r), be.depth = V.depth, be.height = V.height, ue.push({
|
|
24844
24844
|
type: "elem",
|
|
24845
24845
|
elem: be,
|
|
24846
24846
|
shift: re
|
|
@@ -24864,8 +24864,8 @@ var nn = function(t, r) {
|
|
|
24864
24864
|
ae++, te = j[ae] || {}, ne = !1;
|
|
24865
24865
|
}
|
|
24866
24866
|
if (!(a >= o)) {
|
|
24867
|
-
var
|
|
24868
|
-
(a > 0 || t.hskipBeforeAndAfter) && (
|
|
24867
|
+
var Ie = void 0;
|
|
24868
|
+
(a > 0 || t.hskipBeforeAndAfter) && (Ie = xe.deflt(te.pregap, _), Ie !== 0 && (K = Y.makeSpan(["arraycolsep"], []), K.style.width = se(Ie), $.push(K)));
|
|
24869
24869
|
var Xe = [];
|
|
24870
24870
|
for (n = 0; n < i; ++n) {
|
|
24871
24871
|
var Je = l[n], at = Je[a];
|
|
@@ -24881,11 +24881,11 @@ var nn = function(t, r) {
|
|
|
24881
24881
|
Xe = Y.makeVList({
|
|
24882
24882
|
positionType: "individualShift",
|
|
24883
24883
|
children: Xe
|
|
24884
|
-
}, r), Xe = Y.makeSpan(["col-align-" + (te.align || "c")], [Xe]), $.push(Xe), (a < o - 1 || t.hskipBeforeAndAfter) && (
|
|
24884
|
+
}, r), Xe = Y.makeSpan(["col-align-" + (te.align || "c")], [Xe]), $.push(Xe), (a < o - 1 || t.hskipBeforeAndAfter) && (Ie = xe.deflt(te.postgap, _), Ie !== 0 && (K = Y.makeSpan(["arraycolsep"], []), K.style.width = se(Ie), $.push(K)));
|
|
24885
24885
|
}
|
|
24886
24886
|
}
|
|
24887
24887
|
if (l = Y.makeSpan(["mtable"], $), c.length > 0) {
|
|
24888
|
-
for (var
|
|
24888
|
+
for (var Ct = Y.makeLineSpan("hline", r, u), Lt = Y.makeLineSpan("hdashline", r, u), st = [{
|
|
24889
24889
|
type: "elem",
|
|
24890
24890
|
elem: l,
|
|
24891
24891
|
shift: 0
|
|
@@ -24897,7 +24897,7 @@ var nn = function(t, r) {
|
|
|
24897
24897
|
shift: O
|
|
24898
24898
|
}) : st.push({
|
|
24899
24899
|
type: "elem",
|
|
24900
|
-
elem:
|
|
24900
|
+
elem: Ct,
|
|
24901
24901
|
shift: O
|
|
24902
24902
|
});
|
|
24903
24903
|
}
|
|
@@ -25819,7 +25819,7 @@ _e({
|
|
|
25819
25819
|
} : r.formatUnsupportedCmd("\\href");
|
|
25820
25820
|
},
|
|
25821
25821
|
htmlBuilder: (e, t) => {
|
|
25822
|
-
var r =
|
|
25822
|
+
var r = Xt(e.body, t, !1);
|
|
25823
25823
|
return Y.makeAnchor(e.href, [], r, t);
|
|
25824
25824
|
},
|
|
25825
25825
|
mathmlBuilder: (e, t) => {
|
|
@@ -25886,7 +25886,7 @@ _e({
|
|
|
25886
25886
|
};
|
|
25887
25887
|
},
|
|
25888
25888
|
htmlBuilder(e, t) {
|
|
25889
|
-
var r =
|
|
25889
|
+
var r = Xt(e.body, t, !1);
|
|
25890
25890
|
return Y.makeFragment(r);
|
|
25891
25891
|
},
|
|
25892
25892
|
mathmlBuilder(e, t) {
|
|
@@ -25952,7 +25952,7 @@ _e({
|
|
|
25952
25952
|
} : r.formatUnsupportedCmd(n);
|
|
25953
25953
|
},
|
|
25954
25954
|
htmlBuilder: (e, t) => {
|
|
25955
|
-
var r =
|
|
25955
|
+
var r = Xt(e.body, t, !1), n = ["enclosing"];
|
|
25956
25956
|
e.attributes.class && n.push(...e.attributes.class.trim().split(/\s+/));
|
|
25957
25957
|
var a = Y.makeSpan(n, r, t);
|
|
25958
25958
|
for (var i in e.attributes)
|
|
@@ -25980,7 +25980,7 @@ _e({
|
|
|
25980
25980
|
};
|
|
25981
25981
|
},
|
|
25982
25982
|
htmlBuilder: (e, t) => {
|
|
25983
|
-
var r =
|
|
25983
|
+
var r = Xt(e.html, t, !1);
|
|
25984
25984
|
return Y.makeFragment(r);
|
|
25985
25985
|
},
|
|
25986
25986
|
mathmlBuilder: (e, t) => Pn(e.mathml, t)
|
|
@@ -26222,7 +26222,7 @@ _e({
|
|
|
26222
26222
|
};
|
|
26223
26223
|
},
|
|
26224
26224
|
htmlBuilder: (e, t) => {
|
|
26225
|
-
var r = OS(e, t), n =
|
|
26225
|
+
var r = OS(e, t), n = Xt(r, t, !1);
|
|
26226
26226
|
return Y.makeFragment(n);
|
|
26227
26227
|
},
|
|
26228
26228
|
mathmlBuilder: (e, t) => {
|
|
@@ -26350,7 +26350,7 @@ var DC = (e, t, r, n, a, i, s) => {
|
|
|
26350
26350
|
}, t), i.name = "\\" + u, l.classes.unshift("mop"), l.italic = d;
|
|
26351
26351
|
}
|
|
26352
26352
|
} else if (i.body) {
|
|
26353
|
-
var m =
|
|
26353
|
+
var m = Xt(i.body, t, !0);
|
|
26354
26354
|
m.length === 1 && m[0] instanceof Zr ? (l = m[0], l.classes[0] = "mop") : l = Y.makeSpan(["mop"], m, t);
|
|
26355
26355
|
} else {
|
|
26356
26356
|
for (var p = [], g = 1; g < i.name.length; g++)
|
|
@@ -26520,7 +26520,7 @@ var wC = (e, t) => {
|
|
|
26520
26520
|
mode: d.mode,
|
|
26521
26521
|
text: _
|
|
26522
26522
|
} : d;
|
|
26523
|
-
}), l =
|
|
26523
|
+
}), l = Xt(o, t.withFont("mathrm"), !0), c = 0; c < l.length; c++) {
|
|
26524
26524
|
var u = l[c];
|
|
26525
26525
|
u instanceof Zr && (u.text = u.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
|
|
26526
26526
|
}
|
|
@@ -26587,7 +26587,7 @@ R("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
|
|
|
26587
26587
|
aa({
|
|
26588
26588
|
type: "ordgroup",
|
|
26589
26589
|
htmlBuilder(e, t) {
|
|
26590
|
-
return e.semisimple ? Y.makeFragment(
|
|
26590
|
+
return e.semisimple ? Y.makeFragment(Xt(e.body, t, !1)) : Y.makeSpan(["mord"], Xt(e.body, t, !0), t);
|
|
26591
26591
|
},
|
|
26592
26592
|
mathmlBuilder(e, t) {
|
|
26593
26593
|
return Pn(e.body, t, !0);
|
|
@@ -26653,7 +26653,7 @@ _e({
|
|
|
26653
26653
|
};
|
|
26654
26654
|
},
|
|
26655
26655
|
htmlBuilder: (e, t) => {
|
|
26656
|
-
var r =
|
|
26656
|
+
var r = Xt(e.body, t.withPhantom(), !1);
|
|
26657
26657
|
return Y.makeFragment(r);
|
|
26658
26658
|
},
|
|
26659
26659
|
mathmlBuilder: (e, t) => {
|
|
@@ -26808,7 +26808,7 @@ _e({
|
|
|
26808
26808
|
}
|
|
26809
26809
|
});
|
|
26810
26810
|
function xC(e, t, r) {
|
|
26811
|
-
for (var n =
|
|
26811
|
+
for (var n = Xt(e, t, !1), a = t.sizeMultiplier / r.sizeMultiplier, i = 0; i < n.length; i++) {
|
|
26812
26812
|
var s = n[i].classes.indexOf("sizing");
|
|
26813
26813
|
s < 0 ? Array.prototype.push.apply(n[i].classes, t.sizingClasses(r)) : n[i].classes[s + 1] === "reset-size" + t.size && (n[i].classes[s + 1] = "reset-size" + r.size), n[i].height *= a, n[i].depth *= a;
|
|
26814
26814
|
}
|
|
@@ -27290,7 +27290,7 @@ _e({
|
|
|
27290
27290
|
};
|
|
27291
27291
|
},
|
|
27292
27292
|
htmlBuilder(e, t) {
|
|
27293
|
-
var r = MS(e, t), n =
|
|
27293
|
+
var r = MS(e, t), n = Xt(e.body, r, !0);
|
|
27294
27294
|
return Y.makeSpan(["mord", "text"], n, r);
|
|
27295
27295
|
},
|
|
27296
27296
|
mathmlBuilder(e, t) {
|
|
@@ -28567,7 +28567,7 @@ function QL() {
|
|
|
28567
28567
|
return x += ne(O), x;
|
|
28568
28568
|
}, p.bind(new de());
|
|
28569
28569
|
var qe = l.combineParams;
|
|
28570
|
-
function
|
|
28570
|
+
function Ie() {
|
|
28571
28571
|
this.provider = "teachertube", this.alternatives = [], this.defaultFormat = "long", this.formats = {
|
|
28572
28572
|
long: this.createLongUrl,
|
|
28573
28573
|
embed: this.createEmbedUrl
|
|
@@ -28580,18 +28580,18 @@ function QL() {
|
|
|
28580
28580
|
GROUP: "group"
|
|
28581
28581
|
};
|
|
28582
28582
|
}
|
|
28583
|
-
|
|
28583
|
+
Ie.prototype.parse = function(b, O) {
|
|
28584
28584
|
var x = {};
|
|
28585
28585
|
x.list = this.parsePlaylist(O), x.params = O;
|
|
28586
28586
|
var H = b.match(/\/(audio|video|document|user\/channel|collection|group)\/(?:[\w-]+-)?(\w+)/);
|
|
28587
28587
|
if (H)
|
|
28588
28588
|
return x.mediaType = this.parseMediaType(H[1]), x.id = H[2], x;
|
|
28589
|
-
},
|
|
28589
|
+
}, Ie.prototype.parsePlaylist = function(b) {
|
|
28590
28590
|
if (b["playlist-id"]) {
|
|
28591
28591
|
var O = b["playlist-id"];
|
|
28592
28592
|
return delete b["playlist-id"], O;
|
|
28593
28593
|
}
|
|
28594
|
-
},
|
|
28594
|
+
}, Ie.prototype.parseMediaType = function(b) {
|
|
28595
28595
|
switch (b) {
|
|
28596
28596
|
case "audio":
|
|
28597
28597
|
return this.mediaTypes.AUDIO;
|
|
@@ -28606,12 +28606,12 @@ function QL() {
|
|
|
28606
28606
|
case "group":
|
|
28607
28607
|
return this.mediaTypes.GROUP;
|
|
28608
28608
|
}
|
|
28609
|
-
},
|
|
28609
|
+
}, Ie.prototype.createLongUrl = function(b, O) {
|
|
28610
28610
|
if (b.id) {
|
|
28611
28611
|
var x = "https://www.teachertube.com/";
|
|
28612
28612
|
return b.list && (O["playlist-id"] = b.list), b.mediaType === this.mediaTypes.CHANNEL ? x += "user/channel/" : x += b.mediaType + "/", x += b.id, x += qe(O), x;
|
|
28613
28613
|
}
|
|
28614
|
-
},
|
|
28614
|
+
}, Ie.prototype.createEmbedUrl = function(b, O) {
|
|
28615
28615
|
if (b.id) {
|
|
28616
28616
|
var x = "https://www.teachertube.com/embed/";
|
|
28617
28617
|
if (b.mediaType === this.mediaTypes.VIDEO || b.mediaType === this.mediaTypes.AUDIO)
|
|
@@ -28620,7 +28620,7 @@ function QL() {
|
|
|
28620
28620
|
return;
|
|
28621
28621
|
return x += qe(O), x;
|
|
28622
28622
|
}
|
|
28623
|
-
}, p.bind(new
|
|
28623
|
+
}, p.bind(new Ie());
|
|
28624
28624
|
var Xe = l.combineParams;
|
|
28625
28625
|
function Je() {
|
|
28626
28626
|
this.provider = "tiktok", this.defaultFormat = "long", this.formats = {
|
|
@@ -28684,7 +28684,7 @@ function QL() {
|
|
|
28684
28684
|
return;
|
|
28685
28685
|
return x += at(O), x;
|
|
28686
28686
|
}, p.bind(new lt());
|
|
28687
|
-
var
|
|
28687
|
+
var Ct = l.combineParams;
|
|
28688
28688
|
function Lt() {
|
|
28689
28689
|
this.provider = "facebook", this.alternatives = [], this.defaultFormat = "long", this.formats = {
|
|
28690
28690
|
long: this.createLongUrl,
|
|
@@ -28705,7 +28705,7 @@ function QL() {
|
|
|
28705
28705
|
if (!(b.mediaType !== this.mediaTypes.VIDEO || !b.id))
|
|
28706
28706
|
return O = {
|
|
28707
28707
|
v: b.id
|
|
28708
|
-
}, x +=
|
|
28708
|
+
}, x += Ct(O), x;
|
|
28709
28709
|
}, Lt.prototype.createLongUrl = function(b, O) {
|
|
28710
28710
|
var x = "https://facebook.com/";
|
|
28711
28711
|
if (b.pageId)
|
|
@@ -28716,7 +28716,7 @@ function QL() {
|
|
|
28716
28716
|
x += "/videos/" + b.id;
|
|
28717
28717
|
else
|
|
28718
28718
|
return;
|
|
28719
|
-
return x +=
|
|
28719
|
+
return x += Ct(O), x;
|
|
28720
28720
|
}, p.bind(new Lt());
|
|
28721
28721
|
var st = p;
|
|
28722
28722
|
return st;
|
|
@@ -29247,29 +29247,29 @@ var Id, rh;
|
|
|
29247
29247
|
function TP() {
|
|
29248
29248
|
if (rh) return Id;
|
|
29249
29249
|
rh = 1;
|
|
29250
|
-
var e = Qs(), t = oP(), r = nm(), n = lP(), a = cP(), i = xv(), s = Lv(), o = uP(), l = dP(), c = Ev(), u = _P(), d = Js(), _ = mP(), m = EP(), p = Pv(), g = Tr(), S = js(), h = hP(), T = qr(), C = vP(), D = hi(), y = La(), N = 1, I = 2, A = 4, L = "[object Arguments]", k = "[object Array]", U = "[object Boolean]", z = "[object Date]", j = "[object Error]", $ = "[object Function]", K = "[object GeneratorFunction]", ae = "[object Map]", ue = "[object Number]", V = "[object Object]", re = "[object RegExp]", ge = "[object Set]", be = "[object String]", te = "[object Symbol]", ne = "[object WeakMap]", Me = "[object ArrayBuffer]", de = "[object DataView]", qe = "[object Float32Array]",
|
|
29251
|
-
b[L] = b[k] = b[Me] = b[de] = b[U] = b[z] = b[qe] = b[
|
|
29250
|
+
var e = Qs(), t = oP(), r = nm(), n = lP(), a = cP(), i = xv(), s = Lv(), o = uP(), l = dP(), c = Ev(), u = _P(), d = Js(), _ = mP(), m = EP(), p = Pv(), g = Tr(), S = js(), h = hP(), T = qr(), C = vP(), D = hi(), y = La(), N = 1, I = 2, A = 4, L = "[object Arguments]", k = "[object Array]", U = "[object Boolean]", z = "[object Date]", j = "[object Error]", $ = "[object Function]", K = "[object GeneratorFunction]", ae = "[object Map]", ue = "[object Number]", V = "[object Object]", re = "[object RegExp]", ge = "[object Set]", be = "[object String]", te = "[object Symbol]", ne = "[object WeakMap]", Me = "[object ArrayBuffer]", de = "[object DataView]", qe = "[object Float32Array]", Ie = "[object Float64Array]", Xe = "[object Int8Array]", Je = "[object Int16Array]", at = "[object Int32Array]", lt = "[object Uint8Array]", Ct = "[object Uint8ClampedArray]", Lt = "[object Uint16Array]", st = "[object Uint32Array]", b = {};
|
|
29251
|
+
b[L] = b[k] = b[Me] = b[de] = b[U] = b[z] = b[qe] = b[Ie] = b[Xe] = b[Je] = b[at] = b[ae] = b[ue] = b[V] = b[re] = b[ge] = b[be] = b[te] = b[lt] = b[Ct] = b[Lt] = b[st] = !0, b[j] = b[$] = b[ne] = !1;
|
|
29252
29252
|
function O(x, H, Be, mt, Mr, Ht) {
|
|
29253
|
-
var Ot,
|
|
29253
|
+
var Ot, jt = H & N, Zt = H & I, Jt = H & A;
|
|
29254
29254
|
if (Be && (Ot = Mr ? Be(x, mt, Mr, Ht) : Be(x)), Ot !== void 0)
|
|
29255
29255
|
return Ot;
|
|
29256
29256
|
if (!T(x))
|
|
29257
29257
|
return x;
|
|
29258
29258
|
var Lr = g(x);
|
|
29259
29259
|
if (Lr) {
|
|
29260
|
-
if (Ot = _(x), !
|
|
29260
|
+
if (Ot = _(x), !jt)
|
|
29261
29261
|
return s(x, Ot);
|
|
29262
29262
|
} else {
|
|
29263
29263
|
var $t = d(x), Hr = $t == $ || $t == K;
|
|
29264
29264
|
if (S(x))
|
|
29265
|
-
return i(x,
|
|
29265
|
+
return i(x, jt);
|
|
29266
29266
|
if ($t == V || $t == L || Hr && !Mr) {
|
|
29267
|
-
if (Ot =
|
|
29268
|
-
return
|
|
29267
|
+
if (Ot = Zt || Hr ? {} : p(x), !jt)
|
|
29268
|
+
return Zt ? l(x, a(Ot, x)) : o(x, n(Ot, x));
|
|
29269
29269
|
} else {
|
|
29270
29270
|
if (!b[$t])
|
|
29271
29271
|
return Mr ? x : {};
|
|
29272
|
-
Ot = m(x, $t,
|
|
29272
|
+
Ot = m(x, $t, jt);
|
|
29273
29273
|
}
|
|
29274
29274
|
}
|
|
29275
29275
|
Ht || (Ht = new e());
|
|
@@ -29278,12 +29278,12 @@ function TP() {
|
|
|
29278
29278
|
return Rn;
|
|
29279
29279
|
Ht.set(x, Ot), C(x) ? x.forEach(function(fr) {
|
|
29280
29280
|
Ot.add(O(fr, H, Be, fr, x, Ht));
|
|
29281
|
-
}) : h(x) && x.forEach(function(fr,
|
|
29282
|
-
Ot.set(
|
|
29281
|
+
}) : h(x) && x.forEach(function(fr, rr) {
|
|
29282
|
+
Ot.set(rr, O(fr, H, Be, rr, x, Ht));
|
|
29283
29283
|
});
|
|
29284
|
-
var Rr =
|
|
29285
|
-
return t(Bn || x, function(fr,
|
|
29286
|
-
Bn && (
|
|
29284
|
+
var Rr = Jt ? Zt ? u : c : Zt ? y : D, Bn = Lr ? void 0 : Rr(x);
|
|
29285
|
+
return t(Bn || x, function(fr, rr) {
|
|
29286
|
+
Bn && (rr = fr, fr = x[rr]), r(Ot, rr, O(fr, H, Be, rr, x, Ht));
|
|
29287
29287
|
}), Ot;
|
|
29288
29288
|
}
|
|
29289
29289
|
return Id = O, Id;
|
|
@@ -29535,7 +29535,7 @@ var pt = (e, t) => {
|
|
|
29535
29535
|
let C = d, D = m;
|
|
29536
29536
|
const y = [];
|
|
29537
29537
|
for (; ; ) {
|
|
29538
|
-
const N = g.concat([C, D]), I =
|
|
29538
|
+
const N = g.concat([C, D]), I = De.get(e, N);
|
|
29539
29539
|
if (!I) break;
|
|
29540
29540
|
const A = T.children[C - d].children;
|
|
29541
29541
|
if (A[D - m] = I, y.push([I, N]), D + 1 <= p)
|
|
@@ -29546,7 +29546,7 @@ var pt = (e, t) => {
|
|
|
29546
29546
|
break;
|
|
29547
29547
|
}
|
|
29548
29548
|
return r === "cell" ? y : [[T, g]];
|
|
29549
|
-
},
|
|
29549
|
+
}, lr = (e, { format: t = "table", ...r } = {}) => {
|
|
29550
29550
|
const { api: n } = e.getPlugin({ key: "table" }), a = e.api.edgeBlocks({
|
|
29551
29551
|
match: {
|
|
29552
29552
|
type: Bt(e)
|
|
@@ -29580,7 +29580,7 @@ var pt = (e, t) => {
|
|
|
29580
29580
|
const r = bo(e);
|
|
29581
29581
|
return (e.colSizes ? [...e.colSizes] : Array.from({ length: r }).fill(0)).map((a, i) => a);
|
|
29582
29582
|
}, zC = (e, t) => {
|
|
29583
|
-
const [r, n] = tt.edges(e.selection), a =
|
|
29583
|
+
const [r, n] = tt.edges(e.selection), a = De.child(t[0], 0), i = De.child(
|
|
29584
29584
|
t[0],
|
|
29585
29585
|
t[0].children.length - 1
|
|
29586
29586
|
), s = e.api.above({
|
|
@@ -29592,7 +29592,7 @@ var pt = (e, t) => {
|
|
|
29592
29592
|
});
|
|
29593
29593
|
!s || !o || a.id === s[0].id && o[0].id === i.id && MP(e);
|
|
29594
29594
|
}, MP = (e) => {
|
|
29595
|
-
const t =
|
|
29595
|
+
const t = lr(e, {
|
|
29596
29596
|
format: "cell"
|
|
29597
29597
|
}), r = [];
|
|
29598
29598
|
t.forEach(([n, a]) => {
|
|
@@ -29690,7 +29690,7 @@ var pt = (e, t) => {
|
|
|
29690
29690
|
}
|
|
29691
29691
|
});
|
|
29692
29692
|
}, qC = (e, [t, r]) => {
|
|
29693
|
-
const { api: n } = nt(e, dt), a = kP(t), i =
|
|
29693
|
+
const { api: n } = nt(e, dt), a = kP(t), i = lr(e, {
|
|
29694
29694
|
format: "cell"
|
|
29695
29695
|
}), s = ah(i[0][1]);
|
|
29696
29696
|
if (s === null) return;
|
|
@@ -29761,7 +29761,7 @@ var pt = (e, t) => {
|
|
|
29761
29761
|
return Me >= A;
|
|
29762
29762
|
});
|
|
29763
29763
|
if (U === -1) {
|
|
29764
|
-
const te = C.children.at(-1), ne = e.api.findPath(te), Me = ne.slice(0, -2), de = ne.at(-1) + N + 1, qe = [...Me, T, de],
|
|
29764
|
+
const te = C.children.at(-1), ne = e.api.findPath(te), Me = ne.slice(0, -2), de = ne.at(-1) + N + 1, qe = [...Me, T, de], Ie = _ - L + 1, Xe = k - Ie, Je = hn({ ...I, rowSpan: Xe });
|
|
29765
29765
|
(a = Je.attributes) != null && a.rowspan && (Je.attributes.rowspan = Xe.toString()), e.tf.insertNodes(Je, {
|
|
29766
29766
|
at: qe
|
|
29767
29767
|
});
|
|
@@ -29809,8 +29809,8 @@ var pt = (e, t) => {
|
|
|
29809
29809
|
} = {}) => {
|
|
29810
29810
|
const { api: s, getOptions: o, type: l } = nt(e, dt), { initialTableWidth: c, minColumnWidth: u } = o();
|
|
29811
29811
|
if (t && !n) {
|
|
29812
|
-
const k =
|
|
29813
|
-
(k == null ? void 0 : k.type) === e.getType(dt) && (n =
|
|
29812
|
+
const k = De.get(e, t);
|
|
29813
|
+
(k == null ? void 0 : k.type) === e.getType(dt) && (n = De.lastChild(e, t.concat([0]))[1], t = void 0);
|
|
29814
29814
|
}
|
|
29815
29815
|
const d = n ? e.api.node({
|
|
29816
29816
|
at: n,
|
|
@@ -29900,8 +29900,8 @@ var pt = (e, t) => {
|
|
|
29900
29900
|
} = {}) => {
|
|
29901
29901
|
const { api: s, type: o } = nt(e, dt);
|
|
29902
29902
|
if (t && !n) {
|
|
29903
|
-
const z =
|
|
29904
|
-
(z == null ? void 0 : z.type) === e.getType(dt) && (n =
|
|
29903
|
+
const z = De.get(e, t);
|
|
29904
|
+
(z == null ? void 0 : z.type) === e.getType(dt) && (n = De.lastChild(e, t)[1], t = void 0);
|
|
29905
29905
|
}
|
|
29906
29906
|
const l = e.api.block({
|
|
29907
29907
|
at: n,
|
|
@@ -29975,7 +29975,7 @@ var pt = (e, t) => {
|
|
|
29975
29975
|
}
|
|
29976
29976
|
});
|
|
29977
29977
|
}, UP = (e) => {
|
|
29978
|
-
const { api: t } = nt(e, dt), r =
|
|
29978
|
+
const { api: t } = nt(e, dt), r = lr(e, {
|
|
29979
29979
|
format: "cell"
|
|
29980
29980
|
});
|
|
29981
29981
|
e.tf.withoutNormalizing(() => {
|
|
@@ -30018,7 +30018,7 @@ var pt = (e, t) => {
|
|
|
30018
30018
|
e.tf.insertNodes(l, { at: r[0][1] });
|
|
30019
30019
|
}), e.tf.select(e.api.end(r[0][1]));
|
|
30020
30020
|
}, GP = (e) => {
|
|
30021
|
-
const { api: t } = nt(e, dt), r = e.getType(qt), n =
|
|
30021
|
+
const { api: t } = nt(e, dt), r = e.getType(qt), n = lr(e, { format: "cell" }), [[a, i]] = n;
|
|
30022
30022
|
e.tf.withoutNormalizing(() => {
|
|
30023
30023
|
const s = (S) => ({
|
|
30024
30024
|
...t.create.tableCell({
|
|
@@ -30193,8 +30193,8 @@ var pt = (e, t) => {
|
|
|
30193
30193
|
const { before: l, header: c, select: u } = t;
|
|
30194
30194
|
let { at: d, fromCell: _ } = t;
|
|
30195
30195
|
if (d && !_) {
|
|
30196
|
-
const y =
|
|
30197
|
-
(y == null ? void 0 : y.type) === e.getType(dt) && (_ =
|
|
30196
|
+
const y = De.get(e, d);
|
|
30197
|
+
(y == null ? void 0 : y.type) === e.getType(dt) && (_ = De.lastChild(e, d.concat([0]))[1], d = void 0);
|
|
30198
30198
|
}
|
|
30199
30199
|
const m = e.api.block({
|
|
30200
30200
|
at: _,
|
|
@@ -30262,8 +30262,8 @@ var pt = (e, t) => {
|
|
|
30262
30262
|
const { before: s, header: o, select: l } = t;
|
|
30263
30263
|
let { at: c, fromRow: u } = t;
|
|
30264
30264
|
if (c && !u) {
|
|
30265
|
-
const S =
|
|
30266
|
-
(S == null ? void 0 : S.type) === e.getType(dt) && (u =
|
|
30265
|
+
const S = De.get(e, c);
|
|
30266
|
+
(S == null ? void 0 : S.type) === e.getType(dt) && (u = De.lastChild(e, c)[1], c = void 0);
|
|
30267
30267
|
}
|
|
30268
30268
|
const d = e.api.block({
|
|
30269
30269
|
at: u,
|
|
@@ -30306,7 +30306,7 @@ var pt = (e, t) => {
|
|
|
30306
30306
|
reverse: a
|
|
30307
30307
|
} = {}) => {
|
|
30308
30308
|
if (r) {
|
|
30309
|
-
const s =
|
|
30309
|
+
const s = lr(e, { at: t, format: "cell" }), o = n ? 0 : 1;
|
|
30310
30310
|
if (s.length > o) {
|
|
30311
30311
|
const [, l] = s[0], [, c] = s.at(-1), u = [...l], d = [...c];
|
|
30312
30312
|
switch (r) {
|
|
@@ -30327,7 +30327,7 @@ var pt = (e, t) => {
|
|
|
30327
30327
|
break;
|
|
30328
30328
|
}
|
|
30329
30329
|
}
|
|
30330
|
-
return
|
|
30330
|
+
return De.has(e, u) && De.has(e, d) && e.tf.select({
|
|
30331
30331
|
anchor: e.api.start(u),
|
|
30332
30332
|
focus: e.api.start(d)
|
|
30333
30333
|
}), !0;
|
|
@@ -30340,7 +30340,7 @@ var pt = (e, t) => {
|
|
|
30340
30340
|
});
|
|
30341
30341
|
if (i) {
|
|
30342
30342
|
const [, s] = i, o = [...s], l = a ? -1 : 1;
|
|
30343
|
-
if (o[o.length - 2] += l,
|
|
30343
|
+
if (o[o.length - 2] += l, De.has(e, o))
|
|
30344
30344
|
e.tf.select(e.api.start(o));
|
|
30345
30345
|
else {
|
|
30346
30346
|
const c = s.slice(0, -2);
|
|
@@ -30489,7 +30489,7 @@ var pt = (e, t) => {
|
|
|
30489
30489
|
},
|
|
30490
30490
|
deleteFragment(i) {
|
|
30491
30491
|
if (e.api.isAt({ block: !0, match: (s) => s.type === a })) {
|
|
30492
|
-
const s =
|
|
30492
|
+
const s = lr(e, { format: "cell" });
|
|
30493
30493
|
if (s.length > 1) {
|
|
30494
30494
|
e.tf.withoutNormalizing(() => {
|
|
30495
30495
|
s.forEach(([, o]) => {
|
|
@@ -30527,7 +30527,7 @@ var pt = (e, t) => {
|
|
|
30527
30527
|
i.push(..._[0].children);
|
|
30528
30528
|
return;
|
|
30529
30529
|
} else {
|
|
30530
|
-
const d =
|
|
30530
|
+
const d = lr(r);
|
|
30531
30531
|
if (d.length > 0) {
|
|
30532
30532
|
i.push(d[0][0]);
|
|
30533
30533
|
return;
|
|
@@ -30554,7 +30554,7 @@ var pt = (e, t) => {
|
|
|
30554
30554
|
if (!o && w_(t, {
|
|
30555
30555
|
at: (l = t.selection) == null ? void 0 : l.anchor
|
|
30556
30556
|
})) {
|
|
30557
|
-
const _ =
|
|
30557
|
+
const _ = lr(t, {
|
|
30558
30558
|
format: "cell"
|
|
30559
30559
|
});
|
|
30560
30560
|
if (_.length > 1) {
|
|
@@ -30577,7 +30577,7 @@ var pt = (e, t) => {
|
|
|
30577
30577
|
if (w_(t, {
|
|
30578
30578
|
at: (c = t.selection) == null ? void 0 : c.anchor
|
|
30579
30579
|
})) {
|
|
30580
|
-
const [_] =
|
|
30580
|
+
const [_] = lr(t, {
|
|
30581
30581
|
at: (u = t.selection) == null ? void 0 : u.anchor,
|
|
30582
30582
|
format: "cell"
|
|
30583
30583
|
});
|
|
@@ -30588,7 +30588,7 @@ var pt = (e, t) => {
|
|
|
30588
30588
|
o.children.forEach((C) => {
|
|
30589
30589
|
if (p[p.length - 1] = g, !h) {
|
|
30590
30590
|
const N = p.slice(0, -1);
|
|
30591
|
-
if (p[p.length - 2] += 1, !
|
|
30591
|
+
if (p[p.length - 2] += 1, !De.has(t, p)) {
|
|
30592
30592
|
if (r().disableExpandOnInsert)
|
|
30593
30593
|
return;
|
|
30594
30594
|
n.tableRow({
|
|
@@ -30602,7 +30602,7 @@ var pt = (e, t) => {
|
|
|
30602
30602
|
D.forEach((N) => {
|
|
30603
30603
|
if (!y) {
|
|
30604
30604
|
const A = [...p];
|
|
30605
|
-
if (p[p.length - 1] += 1, !
|
|
30605
|
+
if (p[p.length - 1] += 1, !De.has(t, p)) {
|
|
30606
30606
|
if (r().disableExpandOnInsert)
|
|
30607
30607
|
return;
|
|
30608
30608
|
n.tableColumn({
|
|
@@ -30643,7 +30643,7 @@ var pt = (e, t) => {
|
|
|
30643
30643
|
var a;
|
|
30644
30644
|
e.api.isExpanded() && w_(e, {
|
|
30645
30645
|
at: (a = e.selection) == null ? void 0 : a.anchor
|
|
30646
|
-
}) &&
|
|
30646
|
+
}) && lr(e, {
|
|
30647
30647
|
format: "cell"
|
|
30648
30648
|
}).length > 1 && e.tf.collapse({
|
|
30649
30649
|
edge: "focus"
|
|
@@ -30659,7 +30659,7 @@ var pt = (e, t) => {
|
|
|
30659
30659
|
marks() {
|
|
30660
30660
|
const { selection: a } = t;
|
|
30661
30661
|
if (!a || t.api.isCollapsed()) return e();
|
|
30662
|
-
const i =
|
|
30662
|
+
const i = lr(t, { format: "cell" });
|
|
30663
30663
|
if (i.length === 0) return e();
|
|
30664
30664
|
const s = {};
|
|
30665
30665
|
return i.forEach(([o, l]) => {
|
|
@@ -30680,7 +30680,7 @@ var pt = (e, t) => {
|
|
|
30680
30680
|
addMark(a, i) {
|
|
30681
30681
|
const { selection: s } = t;
|
|
30682
30682
|
if (!s || t.api.isCollapsed()) return r(a, i);
|
|
30683
|
-
const o =
|
|
30683
|
+
const o = lr(t, { format: "cell" });
|
|
30684
30684
|
if (o.length <= 1) return r(a, i);
|
|
30685
30685
|
o.forEach(([l, c]) => {
|
|
30686
30686
|
t.tf.setNodes(
|
|
@@ -30699,7 +30699,7 @@ var pt = (e, t) => {
|
|
|
30699
30699
|
removeMark(a) {
|
|
30700
30700
|
const { selection: i } = t;
|
|
30701
30701
|
if (!i || t.api.isCollapsed()) return n(a);
|
|
30702
|
-
const s =
|
|
30702
|
+
const s = lr(t, { format: "cell" });
|
|
30703
30703
|
if (s.length === 0) return n(a);
|
|
30704
30704
|
s.forEach(([o, l]) => {
|
|
30705
30705
|
t.tf.unsetNodes(a, {
|
|
@@ -30807,9 +30807,9 @@ var pt = (e, t) => {
|
|
|
30807
30807
|
transforms: {
|
|
30808
30808
|
setFragmentData(a, i) {
|
|
30809
30809
|
var T;
|
|
30810
|
-
const s = (T =
|
|
30810
|
+
const s = (T = lr(t, {
|
|
30811
30811
|
format: "table"
|
|
30812
|
-
})) == null ? void 0 : T[0], o =
|
|
30812
|
+
})) == null ? void 0 : T[0], o = lr(t, {
|
|
30813
30813
|
format: "cell"
|
|
30814
30814
|
}), l = t.selection;
|
|
30815
30815
|
if (!s || !l) {
|
|
@@ -31048,7 +31048,7 @@ function s3(e) {
|
|
|
31048
31048
|
begin: "\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"
|
|
31049
31049
|
}
|
|
31050
31050
|
]
|
|
31051
|
-
},
|
|
31051
|
+
}, Ie = {
|
|
31052
31052
|
match: /[;()+\-:=,]/,
|
|
31053
31053
|
className: "punctuation",
|
|
31054
31054
|
relevance: 0
|
|
@@ -31127,7 +31127,7 @@ function s3(e) {
|
|
|
31127
31127
|
Me,
|
|
31128
31128
|
de,
|
|
31129
31129
|
qe,
|
|
31130
|
-
|
|
31130
|
+
Ie
|
|
31131
31131
|
]
|
|
31132
31132
|
};
|
|
31133
31133
|
}
|
|
@@ -75818,7 +75818,7 @@ function A7(e) {
|
|
|
75818
75818
|
const t = e[e.length - 1];
|
|
75819
75819
|
return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
|
|
75820
75820
|
}
|
|
75821
|
-
function
|
|
75821
|
+
function ir(...e) {
|
|
75822
75822
|
return "(" + (A7(e).capture ? "" : "?:") + e.map((n) => ZC(n)).join("|") + ")";
|
|
75823
75823
|
}
|
|
75824
75824
|
const Ym = (e) => ot(
|
|
@@ -76039,7 +76039,7 @@ const Ym = (e) => ot(
|
|
|
76039
76039
|
"withVaList",
|
|
76040
76040
|
"withoutActuallyEscaping",
|
|
76041
76041
|
"zip"
|
|
76042
|
-
], JC =
|
|
76042
|
+
], JC = ir(
|
|
76043
76043
|
/[/=\-+!*%<>&|^~?]/,
|
|
76044
76044
|
/[\u00A1-\u00A7]/,
|
|
76045
76045
|
/[\u00A9\u00AB]/,
|
|
@@ -76058,7 +76058,7 @@ const Ym = (e) => ot(
|
|
|
76058
76058
|
/[\u3001-\u3003]/,
|
|
76059
76059
|
/[\u3008-\u3020]/,
|
|
76060
76060
|
/[\u3030]/
|
|
76061
|
-
), ey =
|
|
76061
|
+
), ey = ir(
|
|
76062
76062
|
JC,
|
|
76063
76063
|
/[\u0300-\u036F]/,
|
|
76064
76064
|
/[\u1DC0-\u1DFF]/,
|
|
@@ -76067,7 +76067,7 @@ const Ym = (e) => ot(
|
|
|
76067
76067
|
/[\uFE20-\uFE2F]/
|
|
76068
76068
|
// TODO: The following characters are also allowed, but the regex isn't supported yet.
|
|
76069
76069
|
// /[\u{E0100}-\u{E01EF}]/u
|
|
76070
|
-
), Pd = ot(JC, ey, "*"), ty =
|
|
76070
|
+
), Pd = ot(JC, ey, "*"), ty = ir(
|
|
76071
76071
|
/[a-zA-Z_]/,
|
|
76072
76072
|
/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
|
|
76073
76073
|
/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
|
|
@@ -76085,14 +76085,14 @@ const Ym = (e) => ot(
|
|
|
76085
76085
|
// /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
|
|
76086
76086
|
// /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
|
|
76087
76087
|
// /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
|
|
76088
|
-
), Bs =
|
|
76088
|
+
), Bs = ir(
|
|
76089
76089
|
ty,
|
|
76090
76090
|
/\d/,
|
|
76091
76091
|
/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
|
|
76092
76092
|
), $r = ot(ty, Bs, "*"), ns = ot(/[A-Z]/, Bs, "*"), M7 = [
|
|
76093
76093
|
"attached",
|
|
76094
76094
|
"autoclosure",
|
|
76095
|
-
ot(/convention\(/,
|
|
76095
|
+
ot(/convention\(/, ir("swift", "block", "c"), /\)/),
|
|
76096
76096
|
"discardableResult",
|
|
76097
76097
|
"dynamicCallable",
|
|
76098
76098
|
"dynamicMemberLookup",
|
|
@@ -76151,20 +76151,20 @@ function P7(e) {
|
|
|
76151
76151
|
], a = {
|
|
76152
76152
|
match: [
|
|
76153
76153
|
/\./,
|
|
76154
|
-
|
|
76154
|
+
ir(...D7, ...lh)
|
|
76155
76155
|
],
|
|
76156
76156
|
className: { 2: "keyword" }
|
|
76157
76157
|
}, i = {
|
|
76158
76158
|
// Consume .keyword to prevent highlighting properties and methods as keywords.
|
|
76159
|
-
match: ot(/\./,
|
|
76159
|
+
match: ot(/\./, ir(...Ld)),
|
|
76160
76160
|
relevance: 0
|
|
76161
76161
|
}, s = Ld.filter((O) => typeof O == "string").concat(["_|0"]), o = Ld.filter((O) => typeof O != "string").concat(I7).map(Ym), l = { variants: [
|
|
76162
76162
|
{
|
|
76163
76163
|
className: "keyword",
|
|
76164
|
-
match:
|
|
76164
|
+
match: ir(...o, ...lh)
|
|
76165
76165
|
}
|
|
76166
76166
|
] }, c = {
|
|
76167
|
-
$pattern:
|
|
76167
|
+
$pattern: ir(
|
|
76168
76168
|
/\b\w+/,
|
|
76169
76169
|
// regular keywords
|
|
76170
76170
|
/#\w+/
|
|
@@ -76178,11 +76178,11 @@ function P7(e) {
|
|
|
76178
76178
|
l
|
|
76179
76179
|
], d = {
|
|
76180
76180
|
// Consume .built_in to prevent highlighting properties and methods.
|
|
76181
|
-
match: ot(/\./,
|
|
76181
|
+
match: ot(/\./, ir(...uh)),
|
|
76182
76182
|
relevance: 0
|
|
76183
76183
|
}, _ = {
|
|
76184
76184
|
className: "built_in",
|
|
76185
|
-
match: ot(/\b/,
|
|
76185
|
+
match: ot(/\b/, ir(...uh), /(?=\()/)
|
|
76186
76186
|
}, m = [
|
|
76187
76187
|
d,
|
|
76188
76188
|
_
|
|
@@ -76320,7 +76320,7 @@ function P7(e) {
|
|
|
76320
76320
|
] }
|
|
76321
76321
|
}, re = {
|
|
76322
76322
|
scope: "keyword",
|
|
76323
|
-
match: ot(/@/,
|
|
76323
|
+
match: ot(/@/, ir(...M7), Qa(ir(/\(/, /\s+/)))
|
|
76324
76324
|
}, ge = {
|
|
76325
76325
|
scope: "meta",
|
|
76326
76326
|
match: ot(/@/, $r)
|
|
@@ -76403,8 +76403,8 @@ function P7(e) {
|
|
|
76403
76403
|
...n,
|
|
76404
76404
|
te
|
|
76405
76405
|
]
|
|
76406
|
-
},
|
|
76407
|
-
begin:
|
|
76406
|
+
}, Ie = {
|
|
76407
|
+
begin: ir(
|
|
76408
76408
|
Qa(ot($r, /\s*:/)),
|
|
76409
76409
|
Qa(ot($r, /\s+/, $r, /\s*:/))
|
|
76410
76410
|
),
|
|
@@ -76425,7 +76425,7 @@ function P7(e) {
|
|
|
76425
76425
|
end: /\)/,
|
|
76426
76426
|
keywords: c,
|
|
76427
76427
|
contains: [
|
|
76428
|
-
|
|
76428
|
+
Ie,
|
|
76429
76429
|
...n,
|
|
76430
76430
|
...u,
|
|
76431
76431
|
...S,
|
|
@@ -76441,7 +76441,7 @@ function P7(e) {
|
|
|
76441
76441
|
match: [
|
|
76442
76442
|
/(func|macro)/,
|
|
76443
76443
|
/\s+/,
|
|
76444
|
-
|
|
76444
|
+
ir($.match, $r, Pd)
|
|
76445
76445
|
],
|
|
76446
76446
|
className: {
|
|
76447
76447
|
1: "keyword",
|
|
@@ -76478,7 +76478,7 @@ function P7(e) {
|
|
|
76478
76478
|
1: "keyword",
|
|
76479
76479
|
3: "title"
|
|
76480
76480
|
}
|
|
76481
|
-
},
|
|
76481
|
+
}, Ct = {
|
|
76482
76482
|
begin: [
|
|
76483
76483
|
/precedencegroup/,
|
|
76484
76484
|
/\s+/,
|
|
@@ -76581,7 +76581,7 @@ function P7(e) {
|
|
|
76581
76581
|
st,
|
|
76582
76582
|
b,
|
|
76583
76583
|
lt,
|
|
76584
|
-
|
|
76584
|
+
Ct,
|
|
76585
76585
|
{
|
|
76586
76586
|
beginKeywords: "import",
|
|
76587
76587
|
end: /$/,
|
|
@@ -78206,8 +78206,8 @@ function H7() {
|
|
|
78206
78206
|
for (const Fe in B)
|
|
78207
78207
|
le[Fe] = B[Fe];
|
|
78208
78208
|
return W.forEach(function(Fe) {
|
|
78209
|
-
for (const
|
|
78210
|
-
le[
|
|
78209
|
+
for (const yt in Fe)
|
|
78210
|
+
le[yt] = Fe[yt];
|
|
78211
78211
|
}), /** @type {T} */
|
|
78212
78212
|
le;
|
|
78213
78213
|
}
|
|
@@ -78218,7 +78218,7 @@ function H7() {
|
|
|
78218
78218
|
const le = B.split(".");
|
|
78219
78219
|
return [
|
|
78220
78220
|
`${W}${le.shift()}`,
|
|
78221
|
-
...le.map((Fe,
|
|
78221
|
+
...le.map((Fe, yt) => `${Fe}${"_".repeat(yt + 1)}`)
|
|
78222
78222
|
].join(" ");
|
|
78223
78223
|
}
|
|
78224
78224
|
return `${W}${B}`;
|
|
@@ -78399,15 +78399,15 @@ function H7() {
|
|
|
78399
78399
|
let le = 0;
|
|
78400
78400
|
return B.map((Fe) => {
|
|
78401
78401
|
le += 1;
|
|
78402
|
-
const
|
|
78403
|
-
let
|
|
78404
|
-
for (;
|
|
78405
|
-
const fe = D.exec(
|
|
78402
|
+
const yt = le;
|
|
78403
|
+
let Rt = d(Fe), Te = "";
|
|
78404
|
+
for (; Rt.length > 0; ) {
|
|
78405
|
+
const fe = D.exec(Rt);
|
|
78406
78406
|
if (!fe) {
|
|
78407
|
-
Te +=
|
|
78407
|
+
Te += Rt;
|
|
78408
78408
|
break;
|
|
78409
78409
|
}
|
|
78410
|
-
Te +=
|
|
78410
|
+
Te += Rt.substring(0, fe.index), Rt = Rt.substring(fe.index + fe[0].length), fe[0][0] === "\\" && fe[1] ? Te += "\\" + String(Number(fe[1]) + yt) : (Te += fe[0], fe[0] === "(" && le++);
|
|
78411
78411
|
}
|
|
78412
78412
|
return Te;
|
|
78413
78413
|
}).map((Fe) => `(${Fe})`).join(W);
|
|
@@ -78465,7 +78465,7 @@ function H7() {
|
|
|
78465
78465
|
excludeBegin: !0,
|
|
78466
78466
|
relevance: 0
|
|
78467
78467
|
});
|
|
78468
|
-
const
|
|
78468
|
+
const yt = h(
|
|
78469
78469
|
// list of common 1 and 2 letter words in English
|
|
78470
78470
|
"I",
|
|
78471
78471
|
"a",
|
|
@@ -78505,7 +78505,7 @@ function H7() {
|
|
|
78505
78505
|
/[ ]+/,
|
|
78506
78506
|
// necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
|
|
78507
78507
|
"(",
|
|
78508
|
-
|
|
78508
|
+
yt,
|
|
78509
78509
|
/[.]?[:]?([.][ ]|[ ])/,
|
|
78510
78510
|
"){3}"
|
|
78511
78511
|
)
|
|
@@ -78541,7 +78541,7 @@ function H7() {
|
|
|
78541
78541
|
scope: "title",
|
|
78542
78542
|
begin: I,
|
|
78543
78543
|
relevance: 0
|
|
78544
|
-
},
|
|
78544
|
+
}, Ie = {
|
|
78545
78545
|
scope: "title",
|
|
78546
78546
|
begin: A,
|
|
78547
78547
|
relevance: 0
|
|
@@ -78589,12 +78589,12 @@ function H7() {
|
|
|
78589
78589
|
SHEBANG: j,
|
|
78590
78590
|
TITLE_MODE: qe,
|
|
78591
78591
|
UNDERSCORE_IDENT_RE: A,
|
|
78592
|
-
UNDERSCORE_TITLE_MODE:
|
|
78592
|
+
UNDERSCORE_TITLE_MODE: Ie
|
|
78593
78593
|
});
|
|
78594
78594
|
function lt(B, W) {
|
|
78595
78595
|
B.input[B.index - 1] === "." && W.ignoreMatch();
|
|
78596
78596
|
}
|
|
78597
|
-
function
|
|
78597
|
+
function Ct(B, W) {
|
|
78598
78598
|
B.className !== void 0 && (B.scope = B.className, delete B.className);
|
|
78599
78599
|
}
|
|
78600
78600
|
function Lt(B, W) {
|
|
@@ -78642,16 +78642,16 @@ function H7() {
|
|
|
78642
78642
|
], Be = "keyword";
|
|
78643
78643
|
function mt(B, W, le = Be) {
|
|
78644
78644
|
const Fe = /* @__PURE__ */ Object.create(null);
|
|
78645
|
-
return typeof B == "string" ?
|
|
78645
|
+
return typeof B == "string" ? yt(le, B.split(" ")) : Array.isArray(B) ? yt(le, B) : Object.keys(B).forEach(function(Rt) {
|
|
78646
78646
|
Object.assign(
|
|
78647
78647
|
Fe,
|
|
78648
|
-
mt(B[
|
|
78648
|
+
mt(B[Rt], W, Rt)
|
|
78649
78649
|
);
|
|
78650
78650
|
}), Fe;
|
|
78651
|
-
function
|
|
78651
|
+
function yt(Rt, Te) {
|
|
78652
78652
|
W && (Te = Te.map((fe) => fe.toLowerCase())), Te.forEach(function(fe) {
|
|
78653
78653
|
const ke = fe.split("|");
|
|
78654
|
-
Fe[ke[0]] = [
|
|
78654
|
+
Fe[ke[0]] = [Rt, Mr(ke[0], ke[1])];
|
|
78655
78655
|
});
|
|
78656
78656
|
}
|
|
78657
78657
|
}
|
|
@@ -78661,35 +78661,35 @@ function H7() {
|
|
|
78661
78661
|
function Ht(B) {
|
|
78662
78662
|
return H.includes(B.toLowerCase());
|
|
78663
78663
|
}
|
|
78664
|
-
const Ot = {},
|
|
78664
|
+
const Ot = {}, jt = (B) => {
|
|
78665
78665
|
console.error(B);
|
|
78666
|
-
},
|
|
78666
|
+
}, Zt = (B, ...W) => {
|
|
78667
78667
|
console.log(`WARN: ${B}`, ...W);
|
|
78668
|
-
},
|
|
78668
|
+
}, Jt = (B, W) => {
|
|
78669
78669
|
Ot[`${B}/${W}`] || (console.log(`Deprecated as of ${B}. ${W}`), Ot[`${B}/${W}`] = !0);
|
|
78670
78670
|
}, Lr = new Error();
|
|
78671
78671
|
function $t(B, W, { key: le }) {
|
|
78672
78672
|
let Fe = 0;
|
|
78673
|
-
const
|
|
78673
|
+
const yt = B[le], Rt = {}, Te = {};
|
|
78674
78674
|
for (let fe = 1; fe <= W.length; fe++)
|
|
78675
|
-
Te[fe + Fe] =
|
|
78676
|
-
B[le] = Te, B[le]._emit =
|
|
78675
|
+
Te[fe + Fe] = yt[fe], Rt[fe + Fe] = !0, Fe += T(W[fe - 1]);
|
|
78676
|
+
B[le] = Te, B[le]._emit = Rt, B[le]._multi = !0;
|
|
78677
78677
|
}
|
|
78678
78678
|
function Hr(B) {
|
|
78679
78679
|
if (Array.isArray(B.begin)) {
|
|
78680
78680
|
if (B.skip || B.excludeBegin || B.returnBegin)
|
|
78681
|
-
throw
|
|
78681
|
+
throw jt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Lr;
|
|
78682
78682
|
if (typeof B.beginScope != "object" || B.beginScope === null)
|
|
78683
|
-
throw
|
|
78683
|
+
throw jt("beginScope must be object"), Lr;
|
|
78684
78684
|
$t(B, B.begin, { key: "beginScope" }), B.begin = y(B.begin, { joinWith: "" });
|
|
78685
78685
|
}
|
|
78686
78686
|
}
|
|
78687
78687
|
function Rn(B) {
|
|
78688
78688
|
if (Array.isArray(B.end)) {
|
|
78689
78689
|
if (B.skip || B.excludeEnd || B.returnEnd)
|
|
78690
|
-
throw
|
|
78690
|
+
throw jt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Lr;
|
|
78691
78691
|
if (typeof B.endScope != "object" || B.endScope === null)
|
|
78692
|
-
throw
|
|
78692
|
+
throw jt("endScope must be object"), Lr;
|
|
78693
78693
|
$t(B, B.end, { key: "endScope" }), B.end = y(B.end, { joinWith: "" });
|
|
78694
78694
|
}
|
|
78695
78695
|
}
|
|
@@ -78761,18 +78761,18 @@ function H7() {
|
|
|
78761
78761
|
return Ut && (this.regexIndex += Ut.position + 1, this.regexIndex === this.count && this.considerAll()), Ut;
|
|
78762
78762
|
}
|
|
78763
78763
|
}
|
|
78764
|
-
function
|
|
78764
|
+
function yt(Te) {
|
|
78765
78765
|
const fe = new Fe();
|
|
78766
78766
|
return Te.contains.forEach((ke) => fe.addRule(ke.begin, { rule: ke, type: "begin" })), Te.terminatorEnd && fe.addRule(Te.terminatorEnd, { type: "end" }), Te.illegal && fe.addRule(Te.illegal, { type: "illegal" }), fe;
|
|
78767
78767
|
}
|
|
78768
|
-
function
|
|
78768
|
+
function Rt(Te, fe) {
|
|
78769
78769
|
const ke = (
|
|
78770
78770
|
/** @type CompiledMode */
|
|
78771
78771
|
Te
|
|
78772
78772
|
);
|
|
78773
78773
|
if (Te.isCompiled) return ke;
|
|
78774
78774
|
[
|
|
78775
|
-
|
|
78775
|
+
Ct,
|
|
78776
78776
|
// do this early so compiler extensions generally don't have to worry about
|
|
78777
78777
|
// the distinction between match/begin
|
|
78778
78778
|
b,
|
|
@@ -78793,27 +78793,27 @@ function H7() {
|
|
|
78793
78793
|
)), Te.contains || (Te.contains = []), Te.contains = [].concat(...Te.contains.map(function(At) {
|
|
78794
78794
|
return Oi(At === "self" ? Te : At);
|
|
78795
78795
|
})), Te.contains.forEach(function(At) {
|
|
78796
|
-
|
|
78796
|
+
Rt(
|
|
78797
78797
|
/** @type Mode */
|
|
78798
78798
|
At,
|
|
78799
78799
|
ke
|
|
78800
78800
|
);
|
|
78801
|
-
}), Te.starts &&
|
|
78801
|
+
}), Te.starts && Rt(Te.starts, fe), ke.matcher = yt(ke), ke;
|
|
78802
78802
|
}
|
|
78803
78803
|
if (B.compilerExtensions || (B.compilerExtensions = []), B.contains && B.contains.includes("self"))
|
|
78804
78804
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
78805
|
-
return B.classNameAliases = n(B.classNameAliases || {}),
|
|
78805
|
+
return B.classNameAliases = n(B.classNameAliases || {}), Rt(
|
|
78806
78806
|
/** @type Mode */
|
|
78807
78807
|
B
|
|
78808
78808
|
);
|
|
78809
78809
|
}
|
|
78810
|
-
function
|
|
78811
|
-
return B ? B.endsWithParent ||
|
|
78810
|
+
function rr(B) {
|
|
78811
|
+
return B ? B.endsWithParent || rr(B.starts) : !1;
|
|
78812
78812
|
}
|
|
78813
78813
|
function Oi(B) {
|
|
78814
78814
|
return B.variants && !B.cachedVariants && (B.cachedVariants = B.variants.map(function(W) {
|
|
78815
78815
|
return n(B, { variants: null }, W);
|
|
78816
|
-
})), B.cachedVariants ? B.cachedVariants :
|
|
78816
|
+
})), B.cachedVariants ? B.cachedVariants : rr(B) ? n(B, { starts: B.starts ? n(B.starts) : null }) : Object.isFrozen(B) ? n(B) : B;
|
|
78817
78817
|
}
|
|
78818
78818
|
var Ai = "11.11.1";
|
|
78819
78819
|
class Di extends Error {
|
|
@@ -78823,8 +78823,8 @@ function H7() {
|
|
|
78823
78823
|
}
|
|
78824
78824
|
const ia = r, Fa = n, Ua = Symbol("nomatch"), Wm = 7, vo = function(B) {
|
|
78825
78825
|
const W = /* @__PURE__ */ Object.create(null), le = /* @__PURE__ */ Object.create(null), Fe = [];
|
|
78826
|
-
let
|
|
78827
|
-
const
|
|
78826
|
+
let yt = !0;
|
|
78827
|
+
const Rt = "Could not find the language '{}', did you forget to load/include a language module?", Te = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
78828
78828
|
let fe = {
|
|
78829
78829
|
ignoreUnescapedHTML: !1,
|
|
78830
78830
|
throwUnescapedHTML: !1,
|
|
@@ -78837,23 +78837,23 @@ function H7() {
|
|
|
78837
78837
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
78838
78838
|
__emitter: u
|
|
78839
78839
|
};
|
|
78840
|
-
function ke(
|
|
78841
|
-
return fe.noHighlightRe.test(
|
|
78840
|
+
function ke(ee) {
|
|
78841
|
+
return fe.noHighlightRe.test(ee);
|
|
78842
78842
|
}
|
|
78843
|
-
function Ut(
|
|
78844
|
-
let Ne =
|
|
78845
|
-
Ne +=
|
|
78843
|
+
function Ut(ee) {
|
|
78844
|
+
let Ne = ee.className + " ";
|
|
78845
|
+
Ne += ee.parentNode ? ee.parentNode.className : "";
|
|
78846
78846
|
const $e = fe.languageDetectRe.exec(Ne);
|
|
78847
78847
|
if ($e) {
|
|
78848
78848
|
const ct = sn($e[1]);
|
|
78849
|
-
return ct || (
|
|
78849
|
+
return ct || (Zt(Rt.replace("{}", $e[1])), Zt("Falling back to no-highlight mode for this block.", ee)), ct ? $e[1] : "no-highlight";
|
|
78850
78850
|
}
|
|
78851
78851
|
return Ne.split(/\s+/).find((ct) => ke(ct) || sn(ct));
|
|
78852
78852
|
}
|
|
78853
|
-
function At(
|
|
78853
|
+
function At(ee, Ne, $e) {
|
|
78854
78854
|
let ct = "", Pt = "";
|
|
78855
|
-
typeof Ne == "object" ? (ct =
|
|
78856
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), Pt =
|
|
78855
|
+
typeof Ne == "object" ? (ct = ee, $e = Ne.ignoreIllegals, Pt = Ne.language) : (Jt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Jt("10.7.0", `Please use highlight(code, options) instead.
|
|
78856
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), Pt = ee, ct = Ne), $e === void 0 && ($e = !0);
|
|
78857
78857
|
const Nr = {
|
|
78858
78858
|
code: ct,
|
|
78859
78859
|
language: Pt
|
|
@@ -78862,7 +78862,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Pt = J, ct = Ne), $e
|
|
|
78862
78862
|
const on = Nr.result ? Nr.result : sa(Nr.language, Nr.code, $e);
|
|
78863
78863
|
return on.code = Nr.code, Ya("after:highlight", on), on;
|
|
78864
78864
|
}
|
|
78865
|
-
function sa(
|
|
78865
|
+
function sa(ee, Ne, $e, ct) {
|
|
78866
78866
|
const Pt = /* @__PURE__ */ Object.create(null);
|
|
78867
78867
|
function Nr(oe, Ce) {
|
|
78868
78868
|
return oe.keywords[Ce];
|
|
@@ -78976,9 +78976,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Pt = J, ct = Ne), $e
|
|
|
78976
78976
|
if (it += oe, Ye == null)
|
|
78977
78977
|
return dr(), 0;
|
|
78978
78978
|
if (oa.type === "begin" && Ce.type === "end" && oa.index === Ce.index && Ye === "") {
|
|
78979
|
-
if (it += Ne.slice(Ce.index, Ce.index + 1), !
|
|
78980
|
-
const et = new Error(`0 width match regex (${
|
|
78981
|
-
throw et.languageName =
|
|
78979
|
+
if (it += Ne.slice(Ce.index, Ce.index + 1), !yt) {
|
|
78980
|
+
const et = new Error(`0 width match regex (${ee})`);
|
|
78981
|
+
throw et.languageName = ee, et.badRule = oa.rule, et;
|
|
78982
78982
|
}
|
|
78983
78983
|
return 1;
|
|
78984
78984
|
}
|
|
@@ -78999,9 +78999,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Pt = J, ct = Ne), $e
|
|
|
78999
78999
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
79000
79000
|
return it += Ye, Ye.length;
|
|
79001
79001
|
}
|
|
79002
|
-
const Or = sn(
|
|
79002
|
+
const Or = sn(ee);
|
|
79003
79003
|
if (!Or)
|
|
79004
|
-
throw
|
|
79004
|
+
throw jt(Rt.replace("{}", ee)), new Error('Unknown language: "' + ee + '"');
|
|
79005
79005
|
const Ao = fr(Or);
|
|
79006
79006
|
let qa = "", Ue = ct || Ao;
|
|
79007
79007
|
const Li = {}, kt = new fe.__emitter(fe);
|
|
@@ -79021,7 +79021,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Pt = J, ct = Ne), $e
|
|
|
79021
79021
|
Mi(Ne.substring(ln));
|
|
79022
79022
|
}
|
|
79023
79023
|
return kt.finalize(), qa = kt.toHTML(), {
|
|
79024
|
-
language:
|
|
79024
|
+
language: ee,
|
|
79025
79025
|
value: qa,
|
|
79026
79026
|
relevance: Un,
|
|
79027
79027
|
illegal: !1,
|
|
@@ -79031,7 +79031,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Pt = J, ct = Ne), $e
|
|
|
79031
79031
|
} catch (oe) {
|
|
79032
79032
|
if (oe.message && oe.message.includes("Illegal"))
|
|
79033
79033
|
return {
|
|
79034
|
-
language:
|
|
79034
|
+
language: ee,
|
|
79035
79035
|
value: ia(Ne),
|
|
79036
79036
|
illegal: !0,
|
|
79037
79037
|
relevance: 0,
|
|
@@ -79044,9 +79044,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Pt = J, ct = Ne), $e
|
|
|
79044
79044
|
},
|
|
79045
79045
|
_emitter: kt
|
|
79046
79046
|
};
|
|
79047
|
-
if (
|
|
79047
|
+
if (yt)
|
|
79048
79048
|
return {
|
|
79049
|
-
language:
|
|
79049
|
+
language: ee,
|
|
79050
79050
|
value: ia(Ne),
|
|
79051
79051
|
illegal: !1,
|
|
79052
79052
|
relevance: 0,
|
|
@@ -79057,20 +79057,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Pt = J, ct = Ne), $e
|
|
|
79057
79057
|
throw oe;
|
|
79058
79058
|
}
|
|
79059
79059
|
}
|
|
79060
|
-
function Ii(
|
|
79060
|
+
function Ii(ee) {
|
|
79061
79061
|
const Ne = {
|
|
79062
|
-
value: ia(
|
|
79062
|
+
value: ia(ee),
|
|
79063
79063
|
illegal: !1,
|
|
79064
79064
|
relevance: 0,
|
|
79065
79065
|
_top: Te,
|
|
79066
79066
|
_emitter: new fe.__emitter(fe)
|
|
79067
79067
|
};
|
|
79068
|
-
return Ne._emitter.addText(
|
|
79068
|
+
return Ne._emitter.addText(ee), Ne;
|
|
79069
79069
|
}
|
|
79070
|
-
function wi(
|
|
79070
|
+
function wi(ee, Ne) {
|
|
79071
79071
|
Ne = Ne || fe.languages || Object.keys(W);
|
|
79072
|
-
const $e = Ii(
|
|
79073
|
-
(dr) => sa(dr,
|
|
79072
|
+
const $e = Ii(ee), ct = Ne.filter(sn).filter(yo).map(
|
|
79073
|
+
(dr) => sa(dr, ee, !1)
|
|
79074
79074
|
);
|
|
79075
79075
|
ct.unshift($e);
|
|
79076
79076
|
const Pt = ct.sort((dr, Pr) => {
|
|
@@ -79085,117 +79085,117 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Pt = J, ct = Ne), $e
|
|
|
79085
79085
|
}), [Nr, on] = Pt, za = Nr;
|
|
79086
79086
|
return za.secondBest = on, za;
|
|
79087
79087
|
}
|
|
79088
|
-
function Km(
|
|
79088
|
+
function Km(ee, Ne, $e) {
|
|
79089
79089
|
const ct = Ne && le[Ne] || $e;
|
|
79090
|
-
|
|
79090
|
+
ee.classList.add("hljs"), ee.classList.add(`language-${ct}`);
|
|
79091
79091
|
}
|
|
79092
|
-
function xi(
|
|
79092
|
+
function xi(ee) {
|
|
79093
79093
|
let Ne = null;
|
|
79094
|
-
const $e = Ut(
|
|
79094
|
+
const $e = Ut(ee);
|
|
79095
79095
|
if (ke($e)) return;
|
|
79096
79096
|
if (Ya(
|
|
79097
79097
|
"before:highlightElement",
|
|
79098
|
-
{ el:
|
|
79099
|
-
),
|
|
79100
|
-
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",
|
|
79098
|
+
{ el: ee, language: $e }
|
|
79099
|
+
), ee.dataset.highlighted) {
|
|
79100
|
+
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", ee);
|
|
79101
79101
|
return;
|
|
79102
79102
|
}
|
|
79103
|
-
if (
|
|
79103
|
+
if (ee.children.length > 0 && (fe.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(ee)), fe.throwUnescapedHTML))
|
|
79104
79104
|
throw new Di(
|
|
79105
79105
|
"One of your code blocks includes unescaped HTML.",
|
|
79106
|
-
|
|
79106
|
+
ee.innerHTML
|
|
79107
79107
|
);
|
|
79108
|
-
Ne =
|
|
79108
|
+
Ne = ee;
|
|
79109
79109
|
const ct = Ne.textContent, Pt = $e ? At(ct, { language: $e, ignoreIllegals: !0 }) : wi(ct);
|
|
79110
|
-
|
|
79110
|
+
ee.innerHTML = Pt.value, ee.dataset.highlighted = "yes", Km(ee, $e, Pt.language), ee.result = {
|
|
79111
79111
|
language: Pt.language,
|
|
79112
79112
|
// TODO: remove with version 11.0
|
|
79113
79113
|
re: Pt.relevance,
|
|
79114
79114
|
relevance: Pt.relevance
|
|
79115
|
-
}, Pt.secondBest && (
|
|
79115
|
+
}, Pt.secondBest && (ee.secondBest = {
|
|
79116
79116
|
language: Pt.secondBest.language,
|
|
79117
79117
|
relevance: Pt.secondBest.relevance
|
|
79118
|
-
}), Ya("after:highlightElement", { el:
|
|
79118
|
+
}), Ya("after:highlightElement", { el: ee, result: Pt, text: ct });
|
|
79119
79119
|
}
|
|
79120
|
-
function Qm(
|
|
79121
|
-
fe = Fa(fe,
|
|
79120
|
+
function Qm(ee) {
|
|
79121
|
+
fe = Fa(fe, ee);
|
|
79122
79122
|
}
|
|
79123
79123
|
const Xm = () => {
|
|
79124
|
-
Ga(),
|
|
79124
|
+
Ga(), Jt("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
79125
79125
|
};
|
|
79126
79126
|
function jm() {
|
|
79127
|
-
Ga(),
|
|
79127
|
+
Ga(), Jt("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
79128
79128
|
}
|
|
79129
79129
|
let To = !1;
|
|
79130
79130
|
function Ga() {
|
|
79131
|
-
function
|
|
79131
|
+
function ee() {
|
|
79132
79132
|
Ga();
|
|
79133
79133
|
}
|
|
79134
79134
|
if (document.readyState === "loading") {
|
|
79135
|
-
To || window.addEventListener("DOMContentLoaded",
|
|
79135
|
+
To || window.addEventListener("DOMContentLoaded", ee, !1), To = !0;
|
|
79136
79136
|
return;
|
|
79137
79137
|
}
|
|
79138
79138
|
document.querySelectorAll(fe.cssSelector).forEach(xi);
|
|
79139
79139
|
}
|
|
79140
|
-
function Zm(
|
|
79140
|
+
function Zm(ee, Ne) {
|
|
79141
79141
|
let $e = null;
|
|
79142
79142
|
try {
|
|
79143
79143
|
$e = Ne(B);
|
|
79144
79144
|
} catch (ct) {
|
|
79145
|
-
if (
|
|
79146
|
-
|
|
79145
|
+
if (jt("Language definition for '{}' could not be registered.".replace("{}", ee)), yt)
|
|
79146
|
+
jt(ct);
|
|
79147
79147
|
else
|
|
79148
79148
|
throw ct;
|
|
79149
79149
|
$e = Te;
|
|
79150
79150
|
}
|
|
79151
|
-
$e.name || ($e.name =
|
|
79151
|
+
$e.name || ($e.name = ee), W[ee] = $e, $e.rawDefinition = Ne.bind(null, B), $e.aliases && Co($e.aliases, { languageName: ee });
|
|
79152
79152
|
}
|
|
79153
|
-
function Jm(
|
|
79154
|
-
delete W[
|
|
79153
|
+
function Jm(ee) {
|
|
79154
|
+
delete W[ee];
|
|
79155
79155
|
for (const Ne of Object.keys(le))
|
|
79156
|
-
le[Ne] ===
|
|
79156
|
+
le[Ne] === ee && delete le[Ne];
|
|
79157
79157
|
}
|
|
79158
79158
|
function ep() {
|
|
79159
79159
|
return Object.keys(W);
|
|
79160
79160
|
}
|
|
79161
|
-
function sn(
|
|
79162
|
-
return
|
|
79161
|
+
function sn(ee) {
|
|
79162
|
+
return ee = (ee || "").toLowerCase(), W[ee] || W[le[ee]];
|
|
79163
79163
|
}
|
|
79164
|
-
function Co(
|
|
79165
|
-
typeof
|
|
79164
|
+
function Co(ee, { languageName: Ne }) {
|
|
79165
|
+
typeof ee == "string" && (ee = [ee]), ee.forEach(($e) => {
|
|
79166
79166
|
le[$e.toLowerCase()] = Ne;
|
|
79167
79167
|
});
|
|
79168
79168
|
}
|
|
79169
|
-
function yo(
|
|
79170
|
-
const Ne = sn(
|
|
79169
|
+
function yo(ee) {
|
|
79170
|
+
const Ne = sn(ee);
|
|
79171
79171
|
return Ne && !Ne.disableAutodetect;
|
|
79172
79172
|
}
|
|
79173
|
-
function tp(
|
|
79174
|
-
|
|
79175
|
-
|
|
79173
|
+
function tp(ee) {
|
|
79174
|
+
ee["before:highlightBlock"] && !ee["before:highlightElement"] && (ee["before:highlightElement"] = (Ne) => {
|
|
79175
|
+
ee["before:highlightBlock"](
|
|
79176
79176
|
Object.assign({ block: Ne.el }, Ne)
|
|
79177
79177
|
);
|
|
79178
|
-
}),
|
|
79179
|
-
|
|
79178
|
+
}), ee["after:highlightBlock"] && !ee["after:highlightElement"] && (ee["after:highlightElement"] = (Ne) => {
|
|
79179
|
+
ee["after:highlightBlock"](
|
|
79180
79180
|
Object.assign({ block: Ne.el }, Ne)
|
|
79181
79181
|
);
|
|
79182
79182
|
});
|
|
79183
79183
|
}
|
|
79184
|
-
function rp(
|
|
79185
|
-
tp(
|
|
79184
|
+
function rp(ee) {
|
|
79185
|
+
tp(ee), Fe.push(ee);
|
|
79186
79186
|
}
|
|
79187
|
-
function np(
|
|
79188
|
-
const Ne = Fe.indexOf(
|
|
79187
|
+
function np(ee) {
|
|
79188
|
+
const Ne = Fe.indexOf(ee);
|
|
79189
79189
|
Ne !== -1 && Fe.splice(Ne, 1);
|
|
79190
79190
|
}
|
|
79191
|
-
function Ya(
|
|
79192
|
-
const $e =
|
|
79191
|
+
function Ya(ee, Ne) {
|
|
79192
|
+
const $e = ee;
|
|
79193
79193
|
Fe.forEach(function(ct) {
|
|
79194
79194
|
ct[$e] && ct[$e](Ne);
|
|
79195
79195
|
});
|
|
79196
79196
|
}
|
|
79197
|
-
function ap(
|
|
79198
|
-
return
|
|
79197
|
+
function ap(ee) {
|
|
79198
|
+
return Jt("10.7.0", "highlightBlock will be removed entirely in v12.0"), Jt("10.7.0", "Please use highlightElement now."), xi(ee);
|
|
79199
79199
|
}
|
|
79200
79200
|
Object.assign(B, {
|
|
79201
79201
|
highlight: At,
|
|
@@ -79217,9 +79217,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Pt = J, ct = Ne), $e
|
|
|
79217
79217
|
addPlugin: rp,
|
|
79218
79218
|
removePlugin: np
|
|
79219
79219
|
}), B.debugMode = function() {
|
|
79220
|
-
|
|
79220
|
+
yt = !1;
|
|
79221
79221
|
}, B.safeMode = function() {
|
|
79222
|
-
|
|
79222
|
+
yt = !0;
|
|
79223
79223
|
}, B.versionString = Ai, B.regex = {
|
|
79224
79224
|
concat: g,
|
|
79225
79225
|
lookahead: _,
|
|
@@ -79227,8 +79227,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Pt = J, ct = Ne), $e
|
|
|
79227
79227
|
optional: p,
|
|
79228
79228
|
anyNumberOfTimes: m
|
|
79229
79229
|
};
|
|
79230
|
-
for (const
|
|
79231
|
-
typeof at[
|
|
79230
|
+
for (const ee in at)
|
|
79231
|
+
typeof at[ee] == "object" && e(at[ee]);
|
|
79232
79232
|
return Object.assign(B, at), B;
|
|
79233
79233
|
}, Fn = vo({});
|
|
79234
79234
|
return Fn.newInstance = () => vo({}), kd = Fn, Fn.HighlightJS = Fn, Fn.default = Fn, kd;
|
|
@@ -79443,9 +79443,9 @@ function j7(e) {
|
|
|
79443
79443
|
const { children: i, ...s } = n, o = mr.Children.toArray(i), l = o.find(eB);
|
|
79444
79444
|
if (l) {
|
|
79445
79445
|
const c = l.props.children, u = o.map((d) => d === l ? mr.Children.count(c) > 1 ? mr.Children.only(null) : mr.isValidElement(c) ? c.props.children : null : d);
|
|
79446
|
-
return /* @__PURE__ */
|
|
79446
|
+
return /* @__PURE__ */ J(t, { ...s, ref: a, children: mr.isValidElement(c) ? mr.cloneElement(c, void 0, u) : null });
|
|
79447
79447
|
}
|
|
79448
|
-
return /* @__PURE__ */
|
|
79448
|
+
return /* @__PURE__ */ J(t, { ...s, ref: a, children: i });
|
|
79449
79449
|
});
|
|
79450
79450
|
return r.displayName = `${e}.Slot`, r;
|
|
79451
79451
|
}
|
|
@@ -79495,21 +79495,21 @@ nB ? ce.useLayoutEffect : ce.useEffect;
|
|
|
79495
79495
|
function aB(e) {
|
|
79496
79496
|
return ce.forwardRef(e);
|
|
79497
79497
|
}
|
|
79498
|
-
function
|
|
79498
|
+
function He(...e) {
|
|
79499
79499
|
return Ih(ps(e));
|
|
79500
79500
|
}
|
|
79501
79501
|
const iB = ({
|
|
79502
79502
|
children: e,
|
|
79503
79503
|
className: t,
|
|
79504
79504
|
...r
|
|
79505
|
-
}) => /* @__PURE__ */
|
|
79506
|
-
|
|
79505
|
+
}) => /* @__PURE__ */ Qt(
|
|
79506
|
+
Tt,
|
|
79507
79507
|
{
|
|
79508
79508
|
as: "blockquote",
|
|
79509
|
-
className:
|
|
79509
|
+
className: He(t, "my-1 border-l-2 pl-6 italic"),
|
|
79510
79510
|
...r,
|
|
79511
79511
|
children: [
|
|
79512
|
-
/* @__PURE__ */
|
|
79512
|
+
/* @__PURE__ */ J(
|
|
79513
79513
|
"svg",
|
|
79514
79514
|
{
|
|
79515
79515
|
className: "blockquote-icon",
|
|
@@ -79518,7 +79518,7 @@ const iB = ({
|
|
|
79518
79518
|
viewBox: "0 0 22 18",
|
|
79519
79519
|
fill: "none",
|
|
79520
79520
|
xmlns: "http://www.w3.org/2000/svg",
|
|
79521
|
-
children: /* @__PURE__ */
|
|
79521
|
+
children: /* @__PURE__ */ J(
|
|
79522
79522
|
"path",
|
|
79523
79523
|
{
|
|
79524
79524
|
d: "M6.88689 0.599577L8.7289 2.31002C7.83764 2.67616 7.02365 3.13854 6.28898 3.69828L6.28889 3.69817L6.27965 3.70557C5.3877 4.41913 4.64662 5.22622 4.06078 6.12751L4.05588 6.13504L4.05125 6.14275C3.51502 7.03648 3.13171 7.95852 2.9056 8.90819L2.81376 9.2939L3.1684 9.47122L3.4244 9.59922L3.70079 9.73741L3.948 9.552C4.06602 9.46349 4.22823 9.37897 4.44612 9.30634C4.62394 9.24707 4.94259 9.204 5.44 9.204C5.85228 9.204 6.30456 9.32388 6.80295 9.59224C7.26772 9.8425 7.65053 10.2202 7.94988 10.7441L7.9606 10.7628L7.9729 10.7806C8.28038 11.2247 8.46 11.8605 8.46 12.736C8.46 13.4161 8.29123 14.0308 7.95525 14.5908L7.94876 14.6016L7.94282 14.6127C7.64443 15.1722 7.21523 15.6428 6.64461 16.0253C6.08737 16.3573 5.47603 16.524 4.8 16.524C3.91419 16.524 3.16662 16.2956 2.53612 15.853C1.89257 15.3586 1.39158 14.6891 1.03877 13.8267C0.68332 12.9578 0.5 11.9571 0.5 10.816C0.5 9.4219 0.725072 8.09332 1.17373 6.8274C1.66293 5.52446 2.39725 4.3197 3.3817 3.21218C4.29097 2.18926 5.45592 1.3167 6.88689 0.599577ZM18.9189 0.599577L20.7609 2.31002C19.8696 2.67616 19.0557 3.13854 18.321 3.69828L18.3209 3.69817L18.3117 3.70557C17.4197 4.41913 16.6786 5.22622 16.0928 6.12751L16.0879 6.13505L16.0833 6.14275C15.547 7.03648 15.1637 7.95852 14.9376 8.90819L14.8458 9.2939L15.2004 9.47122L15.4564 9.59922L15.7328 9.73741L15.98 9.552C16.098 9.46349 16.2602 9.37897 16.4781 9.30634C16.6559 9.24707 16.9746 9.204 17.472 9.204C17.8843 9.204 18.3366 9.32388 18.835 9.59224C19.2997 9.8425 19.6825 10.2202 19.9819 10.7441L19.9926 10.7628L20.0049 10.7806C20.3124 11.2247 20.492 11.8605 20.492 12.736C20.492 13.4161 20.3232 14.0308 19.9873 14.5908L19.9808 14.6016L19.9748 14.6127C19.6764 15.1722 19.2472 15.6428 18.6766 16.0253C18.1194 16.3573 17.508 16.524 16.832 16.524C15.9462 16.524 15.1986 16.2956 14.5681 15.853C13.9246 15.3586 13.4236 14.6891 13.0708 13.8267C12.7153 12.9578 12.532 11.9571 12.532 10.816C12.532 9.42189 12.7571 8.0933 13.2057 6.82737C13.6949 5.52445 14.4293 4.31969 15.4137 3.21218C16.323 2.18926 17.4879 1.3167 18.9189 0.599577Z",
|
|
@@ -79535,10 +79535,10 @@ const iB = ({
|
|
|
79535
79535
|
children: e,
|
|
79536
79536
|
className: t,
|
|
79537
79537
|
...r
|
|
79538
|
-
}) => /* @__PURE__ */
|
|
79539
|
-
|
|
79538
|
+
}) => /* @__PURE__ */ J(
|
|
79539
|
+
Tt,
|
|
79540
79540
|
{
|
|
79541
|
-
className:
|
|
79541
|
+
className: He(
|
|
79542
79542
|
t,
|
|
79543
79543
|
"py-1",
|
|
79544
79544
|
"**:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d]",
|
|
@@ -79556,17 +79556,17 @@ const iB = ({
|
|
|
79556
79556
|
"**:[.hljs-deletion]:bg-[#ffeef0] **:[.hljs-deletion]:text-[#b31d28]"
|
|
79557
79557
|
),
|
|
79558
79558
|
...r,
|
|
79559
|
-
children: /* @__PURE__ */
|
|
79559
|
+
children: /* @__PURE__ */ J("div", { className: "relative rounded-md bg-muted/50 helios-code-block", children: /* @__PURE__ */ J("pre", { className: "overflow-x-auto p-8 pr-4 font-mono text-sm leading-[normal] [tab-size:2] print:break-inside-avoid", children: /* @__PURE__ */ J("code", { children: e }) }) })
|
|
79560
79560
|
}
|
|
79561
79561
|
), oB = ({
|
|
79562
79562
|
children: e,
|
|
79563
79563
|
className: t,
|
|
79564
79564
|
...r
|
|
79565
|
-
}) => /* @__PURE__ */
|
|
79565
|
+
}) => /* @__PURE__ */ J(
|
|
79566
79566
|
ra,
|
|
79567
79567
|
{
|
|
79568
79568
|
as: "code",
|
|
79569
|
-
className:
|
|
79569
|
+
className: He(
|
|
79570
79570
|
t,
|
|
79571
79571
|
"rounded-md bg-muted px-[0.3em] py-[0.2em] font-mono text-sm whitespace-pre-wrap"
|
|
79572
79572
|
),
|
|
@@ -79576,14 +79576,14 @@ const iB = ({
|
|
|
79576
79576
|
), lB = ({
|
|
79577
79577
|
children: e,
|
|
79578
79578
|
...t
|
|
79579
|
-
}) => /* @__PURE__ */
|
|
79579
|
+
}) => /* @__PURE__ */ J(Tt, { ...t, children: e });
|
|
79580
79580
|
function cB({
|
|
79581
79581
|
children: e,
|
|
79582
79582
|
className: t,
|
|
79583
79583
|
...r
|
|
79584
79584
|
}) {
|
|
79585
79585
|
const n = r.leaf.className;
|
|
79586
|
-
return /* @__PURE__ */
|
|
79586
|
+
return /* @__PURE__ */ J(ra, { className: He(n, t), ...r, children: e });
|
|
79587
79587
|
}
|
|
79588
79588
|
function uB({
|
|
79589
79589
|
children: e,
|
|
@@ -79591,15 +79591,15 @@ function uB({
|
|
|
79591
79591
|
...r
|
|
79592
79592
|
}) {
|
|
79593
79593
|
const { width: n } = r.element;
|
|
79594
|
-
return /* @__PURE__ */
|
|
79595
|
-
|
|
79594
|
+
return /* @__PURE__ */ J("div", { className: "group/column relative", style: { width: n ?? "100%" }, children: /* @__PURE__ */ J(
|
|
79595
|
+
Tt,
|
|
79596
79596
|
{
|
|
79597
|
-
className:
|
|
79597
|
+
className: He(
|
|
79598
79598
|
t,
|
|
79599
79599
|
"h-full px-2 pt-2 group-first/column:pl-0 group-last/column:pr-0"
|
|
79600
79600
|
),
|
|
79601
79601
|
...r,
|
|
79602
|
-
children: /* @__PURE__ */
|
|
79602
|
+
children: /* @__PURE__ */ J("div", { className: He("relative h-full border border-transparent p-1.5"), children: e })
|
|
79603
79603
|
}
|
|
79604
79604
|
) });
|
|
79605
79605
|
}
|
|
@@ -79608,22 +79608,22 @@ function dB({
|
|
|
79608
79608
|
className: t,
|
|
79609
79609
|
...r
|
|
79610
79610
|
}) {
|
|
79611
|
-
return /* @__PURE__ */
|
|
79611
|
+
return /* @__PURE__ */ J(Tt, { className: He(t, "mb-2"), ...r, children: /* @__PURE__ */ J("div", { className: He("flex size-full rounded"), children: e }) });
|
|
79612
79612
|
}
|
|
79613
79613
|
function _B({
|
|
79614
79614
|
children: e,
|
|
79615
79615
|
className: t,
|
|
79616
79616
|
...r
|
|
79617
79617
|
}) {
|
|
79618
|
-
return /* @__PURE__ */
|
|
79618
|
+
return /* @__PURE__ */ J(
|
|
79619
79619
|
ra,
|
|
79620
79620
|
{
|
|
79621
|
-
className:
|
|
79621
|
+
className: He(
|
|
79622
79622
|
t,
|
|
79623
79623
|
"border-b-2 border-b-highlight/35 bg-highlight/15"
|
|
79624
79624
|
),
|
|
79625
79625
|
...r,
|
|
79626
|
-
children: /* @__PURE__ */
|
|
79626
|
+
children: /* @__PURE__ */ J(Ty, { children: e })
|
|
79627
79627
|
}
|
|
79628
79628
|
);
|
|
79629
79629
|
}
|
|
@@ -79633,11 +79633,11 @@ function mB({
|
|
|
79633
79633
|
...r
|
|
79634
79634
|
}) {
|
|
79635
79635
|
const { element: n } = r;
|
|
79636
|
-
return /* @__PURE__ */
|
|
79637
|
-
/* @__PURE__ */
|
|
79636
|
+
return /* @__PURE__ */ Qt(Tt, { className: He(t, "inline-block"), ...r, children: [
|
|
79637
|
+
/* @__PURE__ */ J(
|
|
79638
79638
|
"span",
|
|
79639
79639
|
{
|
|
79640
|
-
className:
|
|
79640
|
+
className: He("w-fit rounded-sm bg-muted px-1 text-muted-foreground"),
|
|
79641
79641
|
children: n.date ? (() => {
|
|
79642
79642
|
const a = /* @__PURE__ */ new Date(), i = new Date(n.date), s = i.getDate() === a.getDate() && i.getMonth() === a.getMonth() && i.getFullYear() === a.getFullYear(), o = new Date(a.setDate(a.getDate() - 1)).toDateString() === i.toDateString(), l = new Date(a.setDate(a.getDate() + 2)).toDateString() === i.toDateString();
|
|
79643
79643
|
return s ? "Today" : o ? "Yesterday" : l ? "Tomorrow" : i.toLocaleDateString(void 0, {
|
|
@@ -79645,14 +79645,14 @@ function mB({
|
|
|
79645
79645
|
month: "long",
|
|
79646
79646
|
year: "numeric"
|
|
79647
79647
|
});
|
|
79648
|
-
})() : /* @__PURE__ */
|
|
79648
|
+
})() : /* @__PURE__ */ J("span", { children: "Pick a date" })
|
|
79649
79649
|
}
|
|
79650
79650
|
),
|
|
79651
79651
|
e
|
|
79652
79652
|
] });
|
|
79653
79653
|
}
|
|
79654
79654
|
const pB = Us(
|
|
79655
|
-
|
|
79655
|
+
He(
|
|
79656
79656
|
"group/editor",
|
|
79657
79657
|
"relative w-full cursor-text overflow-x-hidden break-words whitespace-pre-wrap select-text",
|
|
79658
79658
|
"rounded-md ring-offset-background focus-visible:outline-none",
|
|
@@ -79688,10 +79688,10 @@ function fB({
|
|
|
79688
79688
|
variant: r,
|
|
79689
79689
|
...n
|
|
79690
79690
|
}) {
|
|
79691
|
-
return /* @__PURE__ */
|
|
79691
|
+
return /* @__PURE__ */ J(
|
|
79692
79692
|
OM,
|
|
79693
79693
|
{
|
|
79694
|
-
className:
|
|
79694
|
+
className: He(pB({ variant: r }), t),
|
|
79695
79695
|
...n
|
|
79696
79696
|
}
|
|
79697
79697
|
);
|
|
@@ -79715,13 +79715,13 @@ const gB = Us("relative mb-1", {
|
|
|
79715
79715
|
...a
|
|
79716
79716
|
}) => {
|
|
79717
79717
|
const i = typeof (n == null ? void 0 : n.id) == "string" ? n.id : void 0;
|
|
79718
|
-
return /* @__PURE__ */
|
|
79719
|
-
|
|
79718
|
+
return /* @__PURE__ */ J(
|
|
79719
|
+
Tt,
|
|
79720
79720
|
{
|
|
79721
79721
|
as: r,
|
|
79722
79722
|
id: i,
|
|
79723
79723
|
element: n,
|
|
79724
|
-
className:
|
|
79724
|
+
className: He(t, gB({ variant: r })),
|
|
79725
79725
|
...a,
|
|
79726
79726
|
children: e
|
|
79727
79727
|
}
|
|
@@ -79732,11 +79732,11 @@ function EB({
|
|
|
79732
79732
|
className: t,
|
|
79733
79733
|
...r
|
|
79734
79734
|
}) {
|
|
79735
|
-
return /* @__PURE__ */
|
|
79735
|
+
return /* @__PURE__ */ J(
|
|
79736
79736
|
ra,
|
|
79737
79737
|
{
|
|
79738
79738
|
as: "mark",
|
|
79739
|
-
className:
|
|
79739
|
+
className: He(t, "bg-highlight/30 text-inherit"),
|
|
79740
79740
|
...r,
|
|
79741
79741
|
children: e
|
|
79742
79742
|
}
|
|
@@ -79748,12 +79748,12 @@ function SB({
|
|
|
79748
79748
|
nodeProps: r,
|
|
79749
79749
|
...n
|
|
79750
79750
|
}) {
|
|
79751
|
-
return /* @__PURE__ */
|
|
79752
|
-
/* @__PURE__ */
|
|
79751
|
+
return /* @__PURE__ */ Qt(Tt, { className: t, nodeProps: r, ...n, children: [
|
|
79752
|
+
/* @__PURE__ */ J("div", { className: "cursor-text py-6", contentEditable: !1, children: /* @__PURE__ */ J(
|
|
79753
79753
|
"hr",
|
|
79754
79754
|
{
|
|
79755
79755
|
...r,
|
|
79756
|
-
className:
|
|
79756
|
+
className: He(
|
|
79757
79757
|
"h-0.5 rounded-sm border-none bg-muted bg-clip-content"
|
|
79758
79758
|
)
|
|
79759
79759
|
}
|
|
@@ -79773,32 +79773,32 @@ function hB({
|
|
|
79773
79773
|
url: s,
|
|
79774
79774
|
width: o
|
|
79775
79775
|
} = n.element;
|
|
79776
|
-
return /* @__PURE__ */
|
|
79777
|
-
|
|
79776
|
+
return /* @__PURE__ */ Qt(
|
|
79777
|
+
Tt,
|
|
79778
79778
|
{
|
|
79779
|
-
className:
|
|
79779
|
+
className: He(t, "py-2.5"),
|
|
79780
79780
|
...n,
|
|
79781
79781
|
nodeProps: r,
|
|
79782
79782
|
children: [
|
|
79783
|
-
/* @__PURE__ */
|
|
79783
|
+
/* @__PURE__ */ J("figure", { className: "group relative m-0 inline-block", style: { width: o }, children: /* @__PURE__ */ Qt(
|
|
79784
79784
|
"div",
|
|
79785
79785
|
{
|
|
79786
79786
|
className: "relative max-w-full min-w-[92px]",
|
|
79787
79787
|
style: { textAlign: a },
|
|
79788
79788
|
children: [
|
|
79789
|
-
/* @__PURE__ */
|
|
79789
|
+
/* @__PURE__ */ J(
|
|
79790
79790
|
"img",
|
|
79791
79791
|
{
|
|
79792
|
-
className:
|
|
79793
|
-
"w-full max-w-full cursor-default object-cover px-0",
|
|
79792
|
+
className: He(
|
|
79793
|
+
"w-full max-w-full cursor-default object-cover px-0 heilos-plate-image",
|
|
79794
79794
|
"rounded-sm"
|
|
79795
79795
|
),
|
|
79796
|
-
alt: "",
|
|
79796
|
+
alt: "crimson image",
|
|
79797
79797
|
src: s,
|
|
79798
79798
|
...r
|
|
79799
79799
|
}
|
|
79800
79800
|
),
|
|
79801
|
-
i && /* @__PURE__ */
|
|
79801
|
+
i && /* @__PURE__ */ J("figcaption", { className: "mt-2 max-w-full", children: De.string(i[0]) })
|
|
79802
79802
|
]
|
|
79803
79803
|
}
|
|
79804
79804
|
) }),
|
|
@@ -79809,7 +79809,7 @@ function hB({
|
|
|
79809
79809
|
}
|
|
79810
79810
|
const bB = (e) => {
|
|
79811
79811
|
const { element: t } = e;
|
|
79812
|
-
return /* @__PURE__ */
|
|
79812
|
+
return /* @__PURE__ */ J("div", { contentEditable: !1, children: /* @__PURE__ */ J(
|
|
79813
79813
|
"span",
|
|
79814
79814
|
{
|
|
79815
79815
|
className: "select-none",
|
|
@@ -79821,7 +79821,7 @@ const bB = (e) => {
|
|
|
79821
79821
|
) });
|
|
79822
79822
|
}, vB = (e) => {
|
|
79823
79823
|
const { children: t } = e;
|
|
79824
|
-
return /* @__PURE__ */
|
|
79824
|
+
return /* @__PURE__ */ J("li", { className: "list-none", children: t });
|
|
79825
79825
|
};
|
|
79826
79826
|
/**
|
|
79827
79827
|
* @license lucide-react v0.487.0 - ISC
|
|
@@ -79938,23 +79938,23 @@ function xB({
|
|
|
79938
79938
|
className: e,
|
|
79939
79939
|
...t
|
|
79940
79940
|
}) {
|
|
79941
|
-
return /* @__PURE__ */
|
|
79941
|
+
return /* @__PURE__ */ J(
|
|
79942
79942
|
"button",
|
|
79943
79943
|
{
|
|
79944
|
-
className:
|
|
79944
|
+
className: He(
|
|
79945
79945
|
"peer size-4 shrink-0 rounded-sm border border-primary bg-background ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
79946
79946
|
e
|
|
79947
79947
|
),
|
|
79948
79948
|
"data-state": t.checked ? "checked" : "unchecked",
|
|
79949
79949
|
type: "button",
|
|
79950
79950
|
...t,
|
|
79951
|
-
children: /* @__PURE__ */
|
|
79951
|
+
children: /* @__PURE__ */ J("div", { className: He("flex items-center justify-center text-current"), children: t.checked && /* @__PURE__ */ J(OB, { className: "size-4" }) })
|
|
79952
79952
|
}
|
|
79953
79953
|
);
|
|
79954
79954
|
}
|
|
79955
79955
|
const MB = ({
|
|
79956
79956
|
element: e
|
|
79957
|
-
}) => /* @__PURE__ */
|
|
79957
|
+
}) => /* @__PURE__ */ J("div", { contentEditable: !1, children: /* @__PURE__ */ J(
|
|
79958
79958
|
xB,
|
|
79959
79959
|
{
|
|
79960
79960
|
className: "pointer-events-none absolute top-1 -left-6",
|
|
@@ -79963,10 +79963,10 @@ const MB = ({
|
|
|
79963
79963
|
) }), LB = ({
|
|
79964
79964
|
children: e,
|
|
79965
79965
|
element: t
|
|
79966
|
-
}) => /* @__PURE__ */
|
|
79966
|
+
}) => /* @__PURE__ */ J(
|
|
79967
79967
|
"li",
|
|
79968
79968
|
{
|
|
79969
|
-
className:
|
|
79969
|
+
className: He(
|
|
79970
79970
|
"list-none",
|
|
79971
79971
|
t.checked && "text-muted-foreground line-through"
|
|
79972
79972
|
),
|
|
@@ -79978,11 +79978,11 @@ function PB({
|
|
|
79978
79978
|
className: t,
|
|
79979
79979
|
...r
|
|
79980
79980
|
}) {
|
|
79981
|
-
return /* @__PURE__ */
|
|
79981
|
+
return /* @__PURE__ */ J(
|
|
79982
79982
|
ra,
|
|
79983
79983
|
{
|
|
79984
79984
|
as: "kbd",
|
|
79985
|
-
className:
|
|
79985
|
+
className: He(
|
|
79986
79986
|
t,
|
|
79987
79987
|
"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-sm shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(248,_249,_250)_0px_1px_5px_0px_inset,_rgb(193,_200,_205)_0px_0px_0px_0.5px,_rgb(193,_200,_205)_0px_2px_1px_-1px,_rgb(193,_200,_205)_0px_1px_0px_0px] dark:shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(26,_29,_30)_0px_1px_5px_0px_inset,_rgb(76,_81,_85)_0px_0px_0px_0.5px,_rgb(76,_81,_85)_0px_2px_1px_-1px,_rgb(76,_81,_85)_0px_1px_0px_0px]"
|
|
79988
79988
|
),
|
|
@@ -79995,11 +79995,11 @@ const kB = ({
|
|
|
79995
79995
|
children: e,
|
|
79996
79996
|
className: t,
|
|
79997
79997
|
...r
|
|
79998
|
-
}) => /* @__PURE__ */
|
|
79999
|
-
|
|
79998
|
+
}) => /* @__PURE__ */ J(
|
|
79999
|
+
Tt,
|
|
80000
80000
|
{
|
|
80001
80001
|
as: "a",
|
|
80002
|
-
className:
|
|
80002
|
+
className: He(
|
|
80003
80003
|
t,
|
|
80004
80004
|
"font-medium text-primary underline decoration-primary underline-offset-4"
|
|
80005
80005
|
),
|
|
@@ -80013,8 +80013,8 @@ function BB({
|
|
|
80013
80013
|
...r
|
|
80014
80014
|
}) {
|
|
80015
80015
|
const { url: n } = r.element;
|
|
80016
|
-
return /* @__PURE__ */
|
|
80017
|
-
/* @__PURE__ */
|
|
80016
|
+
return /* @__PURE__ */ Qt(Tt, { className: He(t, "mb-1"), ...r, children: [
|
|
80017
|
+
/* @__PURE__ */ J("figure", { className: "group relative cursor-default", children: /* @__PURE__ */ J("div", { className: "h-16", children: /* @__PURE__ */ J("audio", { className: "size-full", src: n, controls: !0 }) }) }),
|
|
80018
80018
|
e
|
|
80019
80019
|
] });
|
|
80020
80020
|
}
|
|
@@ -80024,8 +80024,8 @@ const FB = ({
|
|
|
80024
80024
|
...r
|
|
80025
80025
|
}) => {
|
|
80026
80026
|
const { name: n, url: a } = r.element;
|
|
80027
|
-
return /* @__PURE__ */
|
|
80028
|
-
/* @__PURE__ */
|
|
80027
|
+
return /* @__PURE__ */ Qt(Tt, { className: He(t, "my-px rounded-sm"), ...r, children: [
|
|
80028
|
+
/* @__PURE__ */ J(
|
|
80029
80029
|
"a",
|
|
80030
80030
|
{
|
|
80031
80031
|
className: "group relative m-0 flex cursor-pointer items-center rounded px-0.5 py-[3px] hover:bg-muted",
|
|
@@ -80035,9 +80035,9 @@ const FB = ({
|
|
|
80035
80035
|
rel: "noopener noreferrer",
|
|
80036
80036
|
role: "button",
|
|
80037
80037
|
target: "_blank",
|
|
80038
|
-
children: /* @__PURE__ */
|
|
80039
|
-
/* @__PURE__ */
|
|
80040
|
-
/* @__PURE__ */
|
|
80038
|
+
children: /* @__PURE__ */ Qt("div", { className: "flex items-center gap-1 p-1", children: [
|
|
80039
|
+
/* @__PURE__ */ J(wB, { className: "size-5" }),
|
|
80040
|
+
/* @__PURE__ */ J("div", { children: n })
|
|
80041
80041
|
] })
|
|
80042
80042
|
}
|
|
80043
80043
|
),
|
|
@@ -80055,22 +80055,22 @@ function UB({
|
|
|
80055
80055
|
url: i,
|
|
80056
80056
|
width: s
|
|
80057
80057
|
} = r.element;
|
|
80058
|
-
return /* @__PURE__ */
|
|
80059
|
-
/* @__PURE__ */
|
|
80058
|
+
return /* @__PURE__ */ Qt(Tt, { className: He(t, "py-2.5"), ...r, children: [
|
|
80059
|
+
/* @__PURE__ */ J("div", { style: { textAlign: n }, children: /* @__PURE__ */ Qt(
|
|
80060
80060
|
"figure",
|
|
80061
80061
|
{
|
|
80062
80062
|
className: "group relative m-0 inline-block cursor-default",
|
|
80063
80063
|
style: { width: s },
|
|
80064
80064
|
children: [
|
|
80065
|
-
/* @__PURE__ */
|
|
80065
|
+
/* @__PURE__ */ J(
|
|
80066
80066
|
"video",
|
|
80067
80067
|
{
|
|
80068
|
-
className:
|
|
80068
|
+
className: He("w-full max-w-full object-cover px-0", "rounded-sm"),
|
|
80069
80069
|
src: i,
|
|
80070
80070
|
controls: !0
|
|
80071
80071
|
}
|
|
80072
80072
|
),
|
|
80073
|
-
a && /* @__PURE__ */
|
|
80073
|
+
a && /* @__PURE__ */ J("figcaption", { children: De.string(a[0]) })
|
|
80074
80074
|
]
|
|
80075
80075
|
}
|
|
80076
80076
|
) }),
|
|
@@ -80084,10 +80084,10 @@ function GB({
|
|
|
80084
80084
|
...n
|
|
80085
80085
|
}) {
|
|
80086
80086
|
const a = n.element;
|
|
80087
|
-
return /* @__PURE__ */
|
|
80088
|
-
|
|
80087
|
+
return /* @__PURE__ */ J(
|
|
80088
|
+
Tt,
|
|
80089
80089
|
{
|
|
80090
|
-
className:
|
|
80090
|
+
className: He(
|
|
80091
80091
|
t,
|
|
80092
80092
|
"inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline text-sm font-medium",
|
|
80093
80093
|
a.children[0].bold === !0 && "font-bold",
|
|
@@ -80098,14 +80098,14 @@ function GB({
|
|
|
80098
80098
|
...n,
|
|
80099
80099
|
children: li ? (
|
|
80100
80100
|
// Mac OS IME https://github.com/ianstormtaylor/slate/issues/3490
|
|
80101
|
-
/* @__PURE__ */
|
|
80101
|
+
/* @__PURE__ */ Qt(ce.Fragment, { children: [
|
|
80102
80102
|
e,
|
|
80103
80103
|
r,
|
|
80104
80104
|
a.value
|
|
80105
80105
|
] })
|
|
80106
80106
|
) : (
|
|
80107
80107
|
// Others like Android https://github.com/ianstormtaylor/slate/pull/5360
|
|
80108
|
-
/* @__PURE__ */
|
|
80108
|
+
/* @__PURE__ */ Qt(ce.Fragment, { children: [
|
|
80109
80109
|
r,
|
|
80110
80110
|
a.value,
|
|
80111
80111
|
e
|
|
@@ -80118,7 +80118,7 @@ const YB = ({
|
|
|
80118
80118
|
children: e,
|
|
80119
80119
|
className: t,
|
|
80120
80120
|
...r
|
|
80121
|
-
}) => /* @__PURE__ */
|
|
80121
|
+
}) => /* @__PURE__ */ J(Tt, { className: He(t, "m-0 px-0 py-1"), ...r, children: e });
|
|
80122
80122
|
function _y({
|
|
80123
80123
|
children: e,
|
|
80124
80124
|
className: t,
|
|
@@ -80128,19 +80128,19 @@ function _y({
|
|
|
80128
80128
|
}) {
|
|
80129
80129
|
var d, _, m, p;
|
|
80130
80130
|
const { editor: i, element: s } = a, { api: o } = i.getPlugin(dt), { minHeight: l, width: c } = o.table.getCellSize({ element: s }), u = o.table.getCellBorders({ element: s });
|
|
80131
|
-
return /* @__PURE__ */
|
|
80132
|
-
|
|
80131
|
+
return /* @__PURE__ */ J(
|
|
80132
|
+
Tt,
|
|
80133
80133
|
{
|
|
80134
80134
|
as: r ? "th" : "td",
|
|
80135
|
-
className:
|
|
80135
|
+
className: He(
|
|
80136
80136
|
t,
|
|
80137
80137
|
"h-full overflow-visible border-none bg-background p-0",
|
|
80138
80138
|
s.background ? "bg-(--cellBackground)" : "bg-background",
|
|
80139
|
-
|
|
80139
|
+
He(
|
|
80140
80140
|
r && "text-left font-normal *:m-0",
|
|
80141
80141
|
"before:size-full",
|
|
80142
80142
|
"before:absolute before:box-border before:content-[''] before:select-none",
|
|
80143
|
-
u &&
|
|
80143
|
+
u && He(
|
|
80144
80144
|
((d = u.bottom) == null ? void 0 : d.size) && "before:border-b before:border-b-border",
|
|
80145
80145
|
((_ = u.right) == null ? void 0 : _.size) && "before:border-r before:border-r-border",
|
|
80146
80146
|
((m = u.left) == null ? void 0 : m.size) && "before:border-l before:border-l-border",
|
|
@@ -80157,7 +80157,7 @@ function _y({
|
|
|
80157
80157
|
colSpan: o.table.getColSpan(s),
|
|
80158
80158
|
rowSpan: o.table.getRowSpan(s),
|
|
80159
80159
|
...a,
|
|
80160
|
-
children: /* @__PURE__ */
|
|
80160
|
+
children: /* @__PURE__ */ J(
|
|
80161
80161
|
"div",
|
|
80162
80162
|
{
|
|
80163
80163
|
className: "relative z-20 box-border h-full px-4 py-2",
|
|
@@ -80169,7 +80169,7 @@ function _y({
|
|
|
80169
80169
|
);
|
|
80170
80170
|
}
|
|
80171
80171
|
function zB(e) {
|
|
80172
|
-
return /* @__PURE__ */
|
|
80172
|
+
return /* @__PURE__ */ J(_y, { ...e, isHeader: !0 });
|
|
80173
80173
|
}
|
|
80174
80174
|
const qB = ({
|
|
80175
80175
|
children: e,
|
|
@@ -80177,13 +80177,13 @@ const qB = ({
|
|
|
80177
80177
|
...r
|
|
80178
80178
|
}) => {
|
|
80179
80179
|
const { disableMarginLeft: n } = r.editor.getOptions(dt), a = n ? 0 : r.element.marginLeft;
|
|
80180
|
-
return /* @__PURE__ */
|
|
80181
|
-
|
|
80180
|
+
return /* @__PURE__ */ J(
|
|
80181
|
+
Tt,
|
|
80182
80182
|
{
|
|
80183
|
-
className:
|
|
80183
|
+
className: He(t, "overflow-x-auto py-5"),
|
|
80184
80184
|
style: { paddingLeft: a },
|
|
80185
80185
|
...r,
|
|
80186
|
-
children: /* @__PURE__ */
|
|
80186
|
+
children: /* @__PURE__ */ J("div", { className: "group/table relative w-fit", children: /* @__PURE__ */ J("table", { className: "mr-0 ml-px table h-px table-fixed border-collapse", children: /* @__PURE__ */ J("tbody", { className: "min-w-full", children: e }) }) })
|
|
80187
80187
|
}
|
|
80188
80188
|
);
|
|
80189
80189
|
};
|
|
@@ -80192,7 +80192,7 @@ function HB({
|
|
|
80192
80192
|
className: t,
|
|
80193
80193
|
...r
|
|
80194
80194
|
}) {
|
|
80195
|
-
return /* @__PURE__ */
|
|
80195
|
+
return /* @__PURE__ */ J(Tt, { as: "tr", className: He(t, "h-full"), ...r, children: e });
|
|
80196
80196
|
}
|
|
80197
80197
|
const VB = Us(
|
|
80198
80198
|
"inline-flex cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
@@ -80224,11 +80224,11 @@ const VB = Us(
|
|
|
80224
80224
|
}
|
|
80225
80225
|
}
|
|
80226
80226
|
}
|
|
80227
|
-
), $B = aB(({ asChild: e = !1, className: t, isMenu: r, size: n, variant: a, ...i }, s) => /* @__PURE__ */
|
|
80227
|
+
), $B = aB(({ asChild: e = !1, className: t, isMenu: r, size: n, variant: a, ...i }, s) => /* @__PURE__ */ J(
|
|
80228
80228
|
e ? cy : "button",
|
|
80229
80229
|
{
|
|
80230
80230
|
ref: s,
|
|
80231
|
-
className:
|
|
80231
|
+
className: He(VB({ className: t, isMenu: r, size: n, variant: a })),
|
|
80232
80232
|
...i
|
|
80233
80233
|
}
|
|
80234
80234
|
)), WB = Us(
|
|
@@ -80249,16 +80249,16 @@ function KB({
|
|
|
80249
80249
|
...r
|
|
80250
80250
|
}) {
|
|
80251
80251
|
const { editor: n } = r, a = XB(n);
|
|
80252
|
-
return /* @__PURE__ */
|
|
80253
|
-
/* @__PURE__ */
|
|
80252
|
+
return /* @__PURE__ */ Qt(Tt, { className: He(t, "mb-1 p-0"), ...r, children: [
|
|
80253
|
+
/* @__PURE__ */ J("div", { children: a.length > 0 ? a.map((i) => /* @__PURE__ */ J(
|
|
80254
80254
|
$B,
|
|
80255
80255
|
{
|
|
80256
80256
|
variant: "ghost",
|
|
80257
|
-
className:
|
|
80257
|
+
className: He(WB({ depth: i.depth })),
|
|
80258
80258
|
children: i.title
|
|
80259
80259
|
},
|
|
80260
80260
|
i.title
|
|
80261
|
-
)) : /* @__PURE__ */
|
|
80261
|
+
)) : /* @__PURE__ */ J("div", { className: "text-sm text-gray-500", children: "Create a heading to display the table of contents." }) }),
|
|
80262
80262
|
e
|
|
80263
80263
|
] });
|
|
80264
80264
|
}
|
|
@@ -80279,7 +80279,7 @@ const QB = {
|
|
|
80279
80279
|
match: (a) => Y2(a)
|
|
80280
80280
|
});
|
|
80281
80281
|
return n ? (Array.from(n, ([a, i]) => {
|
|
80282
|
-
const { type: s } = a, o =
|
|
80282
|
+
const { type: s } = a, o = De.string(a), l = QB[s], c = a.id;
|
|
80283
80283
|
o && r.push({ id: c, depth: l, path: i, title: o, type: s });
|
|
80284
80284
|
}), r) : [];
|
|
80285
80285
|
};
|
|
@@ -80288,16 +80288,16 @@ function jB({
|
|
|
80288
80288
|
className: t,
|
|
80289
80289
|
...r
|
|
80290
80290
|
}) {
|
|
80291
|
-
return /* @__PURE__ */
|
|
80292
|
-
/* @__PURE__ */
|
|
80291
|
+
return /* @__PURE__ */ Qt(Tt, { className: He(t, "pl-6"), ...r, children: [
|
|
80292
|
+
/* @__PURE__ */ J(
|
|
80293
80293
|
"div",
|
|
80294
80294
|
{
|
|
80295
80295
|
className: "absolute top-0 -left-0.5 size-6 cursor-pointer items-center justify-center rounded-md p-px text-muted-foreground transition-colors select-none hover:bg-accent [&_svg]:size-4",
|
|
80296
80296
|
contentEditable: !1,
|
|
80297
|
-
children: /* @__PURE__ */
|
|
80297
|
+
children: /* @__PURE__ */ J(
|
|
80298
80298
|
DB,
|
|
80299
80299
|
{
|
|
80300
|
-
className:
|
|
80300
|
+
className: He("transition-transform duration-75", "rotate-0")
|
|
80301
80301
|
}
|
|
80302
80302
|
)
|
|
80303
80303
|
}
|
|
@@ -80309,7 +80309,7 @@ const ZB = ({
|
|
|
80309
80309
|
attributes: e,
|
|
80310
80310
|
children: t,
|
|
80311
80311
|
element: r
|
|
80312
|
-
}) => /* @__PURE__ */
|
|
80312
|
+
}) => /* @__PURE__ */ J(
|
|
80313
80313
|
"h2",
|
|
80314
80314
|
{
|
|
80315
80315
|
...e,
|
|
@@ -80320,23 +80320,23 @@ const ZB = ({
|
|
|
80320
80320
|
), JB = ({
|
|
80321
80321
|
attributes: e,
|
|
80322
80322
|
children: t
|
|
80323
|
-
}) => /* @__PURE__ */
|
|
80323
|
+
}) => /* @__PURE__ */ J("p", { ...e, className: "text-base font-normal text-black/70 mb-4", children: t }), e8 = ({
|
|
80324
80324
|
attributes: e,
|
|
80325
80325
|
children: t
|
|
80326
|
-
}) => /* @__PURE__ */
|
|
80326
|
+
}) => /* @__PURE__ */ J(
|
|
80327
80327
|
"h3",
|
|
80328
80328
|
{
|
|
80329
80329
|
...e,
|
|
80330
80330
|
className: "relative qa-step-header pl-4 text-lg font-semibold text-gray-800 mb-2 before:absolute before:left-0 before:top-1/2 before:-translate-y-1/2 before:content-['•'] before:text-xl",
|
|
80331
|
-
children: /* @__PURE__ */
|
|
80331
|
+
children: /* @__PURE__ */ J("span", { children: t })
|
|
80332
80332
|
}
|
|
80333
80333
|
), t8 = ({
|
|
80334
80334
|
attributes: e,
|
|
80335
80335
|
children: t
|
|
80336
|
-
}) => /* @__PURE__ */
|
|
80336
|
+
}) => /* @__PURE__ */ J("div", { ...e, className: "text-base text-gray-700 mt-2", children: /* @__PURE__ */ J("span", { children: t }) }), r8 = ({
|
|
80337
80337
|
attributes: e,
|
|
80338
80338
|
children: t
|
|
80339
|
-
}) => /* @__PURE__ */
|
|
80339
|
+
}) => /* @__PURE__ */ J("div", { ...e, className: "mb-6", children: /* @__PURE__ */ J("span", { children: t }) }), qm = "qa_section_title", n8 = he({
|
|
80340
80340
|
key: qm,
|
|
80341
80341
|
node: {
|
|
80342
80342
|
isElement: !0,
|
|
@@ -80356,9 +80356,9 @@ const ZB = ({
|
|
|
80356
80356
|
const n = ce.Children.map(t, (a) => {
|
|
80357
80357
|
var s, o;
|
|
80358
80358
|
const i = (o = (s = a == null ? void 0 : a.props) == null ? void 0 : s.element) == null ? void 0 : o.type;
|
|
80359
|
-
return i === qm ? /* @__PURE__ */
|
|
80359
|
+
return i === qm ? /* @__PURE__ */ J("div", { className: "mb-2", children: a }) : i === Hm ? /* @__PURE__ */ J("div", { className: "mb-4", children: a }) : a;
|
|
80360
80360
|
});
|
|
80361
|
-
return /* @__PURE__ */
|
|
80361
|
+
return /* @__PURE__ */ J(
|
|
80362
80362
|
"div",
|
|
80363
80363
|
{
|
|
80364
80364
|
...e,
|
|
@@ -80394,10 +80394,10 @@ const ZB = ({
|
|
|
80394
80394
|
}), u8 = ({
|
|
80395
80395
|
attributes: e,
|
|
80396
80396
|
children: t
|
|
80397
|
-
}) => /* @__PURE__ */
|
|
80397
|
+
}) => /* @__PURE__ */ J("h3", { ...e, className: "text-xl font-bold text-black mb-2 essay-excerpt-title", children: t }), d8 = ({
|
|
80398
80398
|
attributes: e,
|
|
80399
80399
|
children: t
|
|
80400
|
-
}) => /* @__PURE__ */
|
|
80400
|
+
}) => /* @__PURE__ */ J("h4", { ...e, className: "text-base font-normal text-black/70 mb-4 essay-excerpt-subTitle", children: t }), Vm = "essay_excerpt_title", _8 = he({
|
|
80401
80401
|
key: Vm,
|
|
80402
80402
|
node: {
|
|
80403
80403
|
isElement: !0,
|
|
@@ -80416,9 +80416,9 @@ const ZB = ({
|
|
|
80416
80416
|
const r = ce.Children.map(t, (n) => {
|
|
80417
80417
|
var i, s;
|
|
80418
80418
|
const a = (s = (i = n == null ? void 0 : n.props) == null ? void 0 : i.element) == null ? void 0 : s.type;
|
|
80419
|
-
return a === Vm ? /* @__PURE__ */
|
|
80419
|
+
return a === Vm ? /* @__PURE__ */ J("div", { className: "text-xl font-bold mb-2", children: n }) : a === $m ? /* @__PURE__ */ J("div", { className: "text-sm text-muted mb-4", children: n }) : n;
|
|
80420
80420
|
});
|
|
80421
|
-
return /* @__PURE__ */
|
|
80421
|
+
return /* @__PURE__ */ J(
|
|
80422
80422
|
"div",
|
|
80423
80423
|
{
|
|
80424
80424
|
...e,
|
|
@@ -80432,8 +80432,8 @@ const ZB = ({
|
|
|
80432
80432
|
element: r
|
|
80433
80433
|
}) => {
|
|
80434
80434
|
const [n, a] = Ny(!1), i = (l) => l ? typeof l.text == "string" ? l.text : Array.isArray(l.children) ? l.children.map(i).join("") : "" : "", o = Eh(() => i(r).length, [r]) > 500;
|
|
80435
|
-
return /* @__PURE__ */
|
|
80436
|
-
/* @__PURE__ */
|
|
80435
|
+
return /* @__PURE__ */ Qt("div", { className: "essay-excerpt-body", children: [
|
|
80436
|
+
/* @__PURE__ */ J(
|
|
80437
80437
|
"div",
|
|
80438
80438
|
{
|
|
80439
80439
|
...e,
|
|
@@ -80441,7 +80441,7 @@ const ZB = ({
|
|
|
80441
80441
|
children: t
|
|
80442
80442
|
}
|
|
80443
80443
|
),
|
|
80444
|
-
o && /* @__PURE__ */
|
|
80444
|
+
o && /* @__PURE__ */ J("div", { className: "mt-4 text-center", children: /* @__PURE__ */ J(
|
|
80445
80445
|
"button",
|
|
80446
80446
|
{
|
|
80447
80447
|
className: "text-sm text-gray-600 underline",
|
|
@@ -80479,10 +80479,10 @@ const ZB = ({
|
|
|
80479
80479
|
}), b8 = ({
|
|
80480
80480
|
attributes: e,
|
|
80481
80481
|
children: t
|
|
80482
|
-
}) => /* @__PURE__ */
|
|
80482
|
+
}) => /* @__PURE__ */ J("div", { ...e, className: "my-6", children: t }), v8 = ({
|
|
80483
80483
|
attributes: e,
|
|
80484
80484
|
children: t
|
|
80485
|
-
}) => /* @__PURE__ */
|
|
80485
|
+
}) => /* @__PURE__ */ J("div", { ...e, className: "text-sm text-gray-500 quote-author", children: t });
|
|
80486
80486
|
function T8(e) {
|
|
80487
80487
|
try {
|
|
80488
80488
|
const t = new URL(e);
|
|
@@ -80491,20 +80491,53 @@ function T8(e) {
|
|
|
80491
80491
|
return e;
|
|
80492
80492
|
}
|
|
80493
80493
|
}
|
|
80494
|
-
|
|
80495
|
-
|
|
80496
|
-
|
|
80497
|
-
|
|
80494
|
+
function C8(e) {
|
|
80495
|
+
return typeof e == "object" && e !== null && typeof e.url == "string";
|
|
80496
|
+
}
|
|
80497
|
+
function y8({
|
|
80498
|
+
children: e,
|
|
80499
|
+
className: t,
|
|
80500
|
+
nodeProps: r,
|
|
80501
|
+
...n
|
|
80502
|
+
}) {
|
|
80503
|
+
const a = n.element;
|
|
80504
|
+
if (!C8(a))
|
|
80505
|
+
return console.warn("⚠️ Invalid media embed element structure:", a), null;
|
|
80506
|
+
const i = a, { url: s, caption: o, width: l, align: c = "center" } = i, u = T8(s), d = (o == null ? void 0 : o.map((_) => De.string(_)).join("").trim()) ?? "";
|
|
80507
|
+
return u ? /* @__PURE__ */ Qt(
|
|
80508
|
+
Tt,
|
|
80498
80509
|
{
|
|
80499
|
-
className: "
|
|
80500
|
-
|
|
80501
|
-
|
|
80502
|
-
|
|
80503
|
-
|
|
80504
|
-
|
|
80505
|
-
|
|
80506
|
-
|
|
80507
|
-
|
|
80510
|
+
className: He(t, "py-2.5"),
|
|
80511
|
+
...n,
|
|
80512
|
+
nodeProps: r,
|
|
80513
|
+
children: [
|
|
80514
|
+
/* @__PURE__ */ J("figure", { className: "group relative m-0 block w-full", children: /* @__PURE__ */ Qt(
|
|
80515
|
+
"div",
|
|
80516
|
+
{
|
|
80517
|
+
className: "relative w-full",
|
|
80518
|
+
style: { textAlign: c },
|
|
80519
|
+
children: [
|
|
80520
|
+
/* @__PURE__ */ J(
|
|
80521
|
+
"iframe",
|
|
80522
|
+
{
|
|
80523
|
+
className: "w-full aspect-video",
|
|
80524
|
+
src: u,
|
|
80525
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
80526
|
+
allowFullScreen: !0,
|
|
80527
|
+
loading: "lazy"
|
|
80528
|
+
}
|
|
80529
|
+
),
|
|
80530
|
+
d && /* @__PURE__ */ J("figcaption", { className: "mt-2 text-center text-sm media-embed-caption", children: d })
|
|
80531
|
+
]
|
|
80532
|
+
}
|
|
80533
|
+
) }),
|
|
80534
|
+
e
|
|
80535
|
+
]
|
|
80536
|
+
}
|
|
80537
|
+
) : null;
|
|
80538
|
+
}
|
|
80539
|
+
const R8 = K7(q7);
|
|
80540
|
+
function w8({ value: e }) {
|
|
80508
80541
|
const t = {
|
|
80509
80542
|
[hy]: b8,
|
|
80510
80543
|
[by]: v8,
|
|
@@ -80536,7 +80569,7 @@ function I8({ value: e }) {
|
|
|
80536
80569
|
[f_.key]: Ar(wn, { as: "em" }),
|
|
80537
80570
|
[aS.key]: PB,
|
|
80538
80571
|
[Er.key]: kB,
|
|
80539
|
-
[Zi.key]:
|
|
80572
|
+
[Zi.key]: y8,
|
|
80540
80573
|
[US.key]: GB,
|
|
80541
80574
|
[xn.key]: YB,
|
|
80542
80575
|
[g_.key]: Ar(wn, { as: "del" }),
|
|
@@ -80594,7 +80627,7 @@ function I8({ value: e }) {
|
|
|
80594
80627
|
b_,
|
|
80595
80628
|
Kn.configure({
|
|
80596
80629
|
options: {
|
|
80597
|
-
lowlight:
|
|
80630
|
+
lowlight: R8
|
|
80598
80631
|
}
|
|
80599
80632
|
}),
|
|
80600
80633
|
fi.extend({
|
|
@@ -80660,8 +80693,8 @@ function I8({ value: e }) {
|
|
|
80660
80693
|
],
|
|
80661
80694
|
value: e
|
|
80662
80695
|
});
|
|
80663
|
-
return /* @__PURE__ */
|
|
80696
|
+
return /* @__PURE__ */ J(fB, { components: t, editor: r });
|
|
80664
80697
|
}
|
|
80665
80698
|
export {
|
|
80666
|
-
|
|
80699
|
+
w8 as RichEditor
|
|
80667
80700
|
};
|