@eleven-labs/design-system 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Atoms/Svgs/AccessTime.d.ts +3 -2
- package/dist/components/Atoms/Svgs/ArrowBack.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Calendar.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Close.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Facebook.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Github.d.ts +4 -0
- package/dist/components/Atoms/Svgs/Language.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Link.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Linkedin.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Logo.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Message.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Person.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Rss.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Search.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Twitter.d.ts +3 -2
- package/dist/components/Atoms/Svgs/Welcometothejungle.d.ts +3 -2
- package/dist/components/Atoms/Svgs/index.d.ts +1 -0
- package/dist/constants/tokenNameList.d.ts +1 -1
- package/dist/constants/tokenVariables.d.ts +4 -1
- package/dist/index.es.js +771 -774
- package/dist/index.umd.cjs +9 -9
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/scss/abstracts/variables/_variables.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/svgs/github.svg +1 -0
- package/package.json +32 -32
- package/dist/typings.d.ts +0 -5
- package/dist/vite-env.d.ts +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as j, jsx as d, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { jsxs as j, jsx as d, Fragment as ce } from "react/jsx-runtime";
|
|
2
|
+
import * as P0 from "react";
|
|
3
|
+
import g0 from "react";
|
|
4
|
+
const u1 = (e) => /* @__PURE__ */ j(
|
|
5
5
|
"svg",
|
|
6
6
|
{
|
|
7
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -19,7 +19,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
19
19
|
/* @__PURE__ */ d("path", { fill: "currentColor", d: "M12 9h-1v4l3.5 2.1.5-.82-3-1.78V9Z" })
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
|
-
),
|
|
22
|
+
), g1 = (e) => /* @__PURE__ */ d(
|
|
23
23
|
"svg",
|
|
24
24
|
{
|
|
25
25
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -34,7 +34,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
}
|
|
37
|
-
),
|
|
37
|
+
), m1 = (e) => /* @__PURE__ */ d(
|
|
38
38
|
"svg",
|
|
39
39
|
{
|
|
40
40
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -49,7 +49,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
}
|
|
52
|
-
),
|
|
52
|
+
), d1 = (e) => /* @__PURE__ */ d(
|
|
53
53
|
"svg",
|
|
54
54
|
{
|
|
55
55
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -67,7 +67,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
67
67
|
}
|
|
68
68
|
)
|
|
69
69
|
}
|
|
70
|
-
),
|
|
70
|
+
), f1 = (e) => /* @__PURE__ */ j("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22 22", ...e, children: [
|
|
71
71
|
/* @__PURE__ */ d(
|
|
72
72
|
"path",
|
|
73
73
|
{
|
|
@@ -82,7 +82,24 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
82
82
|
d: "M15.152 21.926v-8.461h2.84l.426-3.3h-3.266V8.058c0-.954.266-1.606 1.633-1.606h1.746v-2.95a24.05 24.05 0 0 0-2.543-.128c-2.52 0-4.242 1.535-4.242 4.36v2.43H8.898v3.3h2.848v8.46Zm0 0"
|
|
83
83
|
}
|
|
84
84
|
)
|
|
85
|
-
] }),
|
|
85
|
+
] }), h1 = (e) => /* @__PURE__ */ d(
|
|
86
|
+
"svg",
|
|
87
|
+
{
|
|
88
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
89
|
+
fill: "none",
|
|
90
|
+
viewBox: "0 0 1024 1024",
|
|
91
|
+
...e,
|
|
92
|
+
children: /* @__PURE__ */ d(
|
|
93
|
+
"path",
|
|
94
|
+
{
|
|
95
|
+
fill: "#1B1F23",
|
|
96
|
+
fillRule: "evenodd",
|
|
97
|
+
d: "M512 0C229.12 0 0 229.12 0 512c0 226.56 146.56 417.92 350.08 485.76 25.6 4.48 35.2-10.88 35.2-24.32 0-12.16-.64-52.48-.64-95.36-128.64 23.68-161.92-31.36-172.16-60.16-5.76-14.72-30.72-60.16-52.48-72.32-17.92-9.6-43.52-33.28-.64-33.92 40.32-.64 69.12 37.12 78.72 52.48 46.08 77.44 119.68 55.68 149.12 42.24 4.48-33.28 17.92-55.68 32.64-68.48-113.92-12.8-232.96-56.96-232.96-252.8 0-55.68 19.84-101.76 52.48-137.6-5.12-12.8-23.04-65.28 5.12-135.68 0 0 42.88-13.44 140.8 52.48 40.96-11.52 84.48-17.28 128-17.28 43.52 0 87.04 5.76 128 17.28 97.92-66.56 140.8-52.48 140.8-52.48 28.16 70.4 10.24 122.88 5.12 135.68 32.64 35.84 52.48 81.28 52.48 137.6 0 196.48-119.68 240-233.6 252.8 18.56 16 34.56 46.72 34.56 94.72 0 68.48-.64 123.52-.64 140.8 0 13.44 9.6 29.44 35.2 24.32C877.44 929.92 1024 737.92 1024 512 1024 229.12 794.88 0 512 0Z",
|
|
98
|
+
clipRule: "evenodd"
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
), p1 = (e) => /* @__PURE__ */ d(
|
|
86
103
|
"svg",
|
|
87
104
|
{
|
|
88
105
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -97,7 +114,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
97
114
|
}
|
|
98
115
|
)
|
|
99
116
|
}
|
|
100
|
-
),
|
|
117
|
+
), b1 = (e) => /* @__PURE__ */ d(
|
|
101
118
|
"svg",
|
|
102
119
|
{
|
|
103
120
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -112,7 +129,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
112
129
|
}
|
|
113
130
|
)
|
|
114
131
|
}
|
|
115
|
-
),
|
|
132
|
+
), v1 = (e) => /* @__PURE__ */ j("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22 22", ...e, children: [
|
|
116
133
|
/* @__PURE__ */ d("path", { fill: "#0084b1", d: "M0 0h22v22H0z" }),
|
|
117
134
|
/* @__PURE__ */ d(
|
|
118
135
|
"path",
|
|
@@ -121,10 +138,10 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
121
138
|
d: "M5.176 3.34a1.857 1.857 0 0 1 1.84 1.848c-.004 1.058-.883 1.859-1.852 1.835-.98.02-1.84-.8-1.84-1.843a1.85 1.85 0 0 1 1.852-1.84ZM6.25 18.656H4.09a.507.507 0 0 1-.508-.508v-9.21c0-.278.227-.504.508-.504h2.16c.277 0 .504.226.504.504v9.21a.506.506 0 0 1-.504.508Zm12.426-6.988a3.495 3.495 0 0 0-3.496-3.496h-.555a3.109 3.109 0 0 0-2.719 1.605c-.02-.004-.027-.004-.027-.004V8.645a.213.213 0 0 0-.211-.211H8.973a.21.21 0 0 0-.211.21v9.801a.21.21 0 0 0 .21.211h2.755c.113 0 .21-.093.21-.21V12.78c0-.976.778-1.789 1.758-1.8.5-.008.953.195 1.282.519.32.324.52.77.52 1.262v5.687a.21.21 0 0 0 .21.207l2.758.004c.117 0 .21-.098.21-.21Zm0 0"
|
|
122
139
|
}
|
|
123
140
|
)
|
|
124
|
-
] }),
|
|
141
|
+
] }), ye = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 41 36", ...e, children: /* @__PURE__ */ j("g", { fill: "currentColor", fillRule: "evenodd", children: [
|
|
125
142
|
/* @__PURE__ */ d("path", { d: "M29.22 13.78a.947.947 0 0 1-1.334-.092.947.947 0 0 1 .092-1.332l3.89-3.298a.947.947 0 0 1 1.332.092c.341.392.3.991-.09 1.332l-3.89 3.298zm-.156 6.345a2.86 2.86 0 0 1 .947-1.72c.357-.31 1.726-1.49 1.76-1.52 2.194-1.914 5.91-8.042 8.101-11.837.627-1.085-.446-2.358-1.62-1.924-4.122 1.518-10.8 4.155-13.014 6.04-.034.027-1.405 1.207-1.763 1.514a2.87 2.87 0 0 1-1.842.683c-5.946.07-7.7 2.397-7.7 2.397l.773.806s3.451-.5 5.402 1.768l-1.645 1.407.992 1.151-1.143.985 2.136 2.562.222-.276-.987-2.693 2.47 2.837.58-.499-.727-3.136s1.235 1.338 1.967 2.184c1.953 2.264.897 5.648.897 5.648l.684.884s2.561-1.39 3.51-7.26z" }),
|
|
126
143
|
/* @__PURE__ */ d("path", { d: "M18.775 34.14c-5.796.313-10.983-2.426-14.105-6.751-.16-.221.109-.493.334-.34 3.956 2.727 10.24 1.913 14.299-5.48C-1.168 27.268 1.372 1.358 17.879 1.594c5.779.082 10.86 3.028 13.752 7.579l.056-.048c.339-.294.844-.336 1.203-.068a.948.948 0 0 1 .066 1.467l-.385.333a16.21 16.21 0 0 1 1.59 7.408c-.197 8.447-6.948 15.422-15.386 15.877M17.879 0C8.019 0 0 8.02 0 17.879c0 9.858 8.019 17.878 17.878 17.878 9.858 0 17.878-8.02 17.878-17.878S27.737-.001 17.879-.001" })
|
|
127
|
-
] }) }),
|
|
144
|
+
] }) }), E1 = (e) => /* @__PURE__ */ j(
|
|
128
145
|
"svg",
|
|
129
146
|
{
|
|
130
147
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -151,7 +168,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
151
168
|
)
|
|
152
169
|
]
|
|
153
170
|
}
|
|
154
|
-
),
|
|
171
|
+
), y1 = (e) => /* @__PURE__ */ d(
|
|
155
172
|
"svg",
|
|
156
173
|
{
|
|
157
174
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -166,7 +183,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
166
183
|
}
|
|
167
184
|
)
|
|
168
185
|
}
|
|
169
|
-
),
|
|
186
|
+
), N1 = (e) => /* @__PURE__ */ j(
|
|
170
187
|
"svg",
|
|
171
188
|
{
|
|
172
189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -181,7 +198,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
181
198
|
/* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("clipPath", { id: "rss_svg__a", children: /* @__PURE__ */ d("path", { fill: "currentColor", d: "M0 0h26v26H0z" }) }) })
|
|
182
199
|
]
|
|
183
200
|
}
|
|
184
|
-
),
|
|
201
|
+
), x1 = (e) => /* @__PURE__ */ d(
|
|
185
202
|
"svg",
|
|
186
203
|
{
|
|
187
204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -196,7 +213,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
196
213
|
}
|
|
197
214
|
)
|
|
198
215
|
}
|
|
199
|
-
),
|
|
216
|
+
), _1 = (e) => /* @__PURE__ */ j("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22 22", ...e, children: [
|
|
200
217
|
/* @__PURE__ */ d("path", { fill: "#50abf1", d: "M0 0h22v22H0z" }),
|
|
201
218
|
/* @__PURE__ */ d(
|
|
202
219
|
"path",
|
|
@@ -205,7 +222,7 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
205
222
|
d: "M2.914 16.309a9.419 9.419 0 0 0 5.063 1.464c5.23 0 9.472-4.238 9.472-9.468 0-.133-.004-.262-.008-.39.188-.15 1.36-1.087 1.645-1.692 0 0-.95.398-1.879.488-.004 0-.004.004-.008.004l.004-.004c.086-.059 1.285-.875 1.45-1.844 0 0-.673.356-1.614.672-.156.05-.32.102-.488.149a3.323 3.323 0 0 0-5.664 3.023c-.254-.012-4.16-.23-6.82-3.45 0 0-1.587 2.169.949 4.4 0 0-.774-.032-1.438-.427 0 0-.242 2.625 2.625 3.297 0 0-.562.215-1.465.063 0 0 .504 2.12 3.055 2.32 0 0-2.016 1.82-4.879 1.395Zm0 0"
|
|
206
223
|
}
|
|
207
224
|
)
|
|
208
|
-
] }),
|
|
225
|
+
] }), w1 = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22 22", ...e, children: /* @__PURE__ */ j("g", { fillRule: "evenodd", children: [
|
|
209
226
|
/* @__PURE__ */ d(
|
|
210
227
|
"path",
|
|
211
228
|
{
|
|
@@ -241,36 +258,30 @@ const l1 = (e) => /* @__PURE__ */ j(
|
|
|
241
258
|
d: "M15.082 5.227c-.11.015-.219.027-.242.03-.024 0-.035.005-.027.013.003.007.144-.004.312-.024.285-.039.316-.039.586 0 .16.02.293.031.3.024.009-.008-.003-.012-.019-.012-.015 0-.129-.016-.25-.031a1.874 1.874 0 0 0-.66 0m-.445.085c-.098.036-.117.06-.028.032.168-.051.188-.059.141-.059a.39.39 0 0 0-.113.027m1.445-.011c.137.047.203.066.191.05a.731.731 0 0 0-.214-.07c-.016 0-.008.012.023.02m-12.113.11c-.074.042-.098.109-.074.198.011.043.015.032.02-.046.003-.184-.173-.172 2.355-.172 2.437 0 2.289-.008 2.406.129a.26.26 0 0 0 .07.07c.031 0-.129-.156-.191-.192-.106-.054-4.496-.043-4.586.012m10.117.145c-.106.062-.129.097-.035.047.066-.036.156-.102.14-.102-.007 0-.054.027-.105.055m-5.324.066a2 2 0 0 0 .16.297 1.49 1.49 0 0 0-.145-.285c-.011-.02-.02-.024-.015-.012m5.14.055-.054.047.062-.028c.031-.015.059-.035.059-.043 0-.027 0-.027-.067.024m2.934-.028a.462.462 0 0 0 .086.075c.039.027.062.039.055.023a.476.476 0 0 0-.086-.074c-.04-.027-.063-.04-.055-.024m-3.215.25c-.379.332-.36.516.102 1 .199.207.148.137-.07-.101-.387-.418-.337-.754.156-1.027.023-.016.035-.032.027-.036-.008-.007-.102.067-.215.164m3.387-.132c0 .02.199.222.21.21a.645.645 0 0 0-.1-.113 1.144 1.144 0 0 0-.11-.097m-12.856.199c.082.098.188.23.235.293.101.133.207.246.125.133a2.199 2.199 0 0 0-.14-.18l-.216-.27a.981.981 0 0 0-.136-.156c-.008 0 .05.082.132.18m13.118.105a.627.627 0 0 0 .07.082c.015.008 0-.02-.035-.066-.075-.094-.102-.11-.035-.016m-8.25.059c0 .039.066.191.078.18.007-.004-.008-.055-.032-.106-.027-.055-.046-.086-.046-.074m8.382.14c.024.047.051.09.063.098.012.008-.004-.031-.031-.086-.07-.12-.094-.133-.032-.011m-12.804.253c.086.106.093.114.07.067a.314.314 0 0 0-.074-.09c-.051-.043-.047-.04.004.023m13.011.125c.098.215.145.297.145.27 0-.027-.195-.43-.207-.43a.928.928 0 0 0 .062.16m-12.867.067c.035.043.067.078.074.07.004-.004-.023-.043-.062-.082l-.074-.07.062.082m.18.246c.055.082.105.14.11.137.011-.012-.188-.278-.204-.278a.886.886 0 0 0 .094.14m12.898.161.075.215c.007.023.027.062.035.082a.217.217 0 0 1 .023.082c0 .023.008.05.02.055.02.015.007-.059-.02-.13-.012-.023-.05-.132-.09-.241a1.42 1.42 0 0 0-.09-.22.65.65 0 0 0 .047.157m-8.437-.008c.008.028.031.098.047.157.054.18.078.234.062.156a1.844 1.844 0 0 0-.113-.364c-.004 0-.004.024.004.051m-4.164.278c.097.144.183.261.187.257a5.067 5.067 0 0 0-.343-.507 1.87 1.87 0 0 0 .156.25m8.808-.141c.114.129.149.156.078.059-.066-.09-.148-.18-.168-.18a.474.474 0 0 0 .09.121m-1.28.145a.17.17 0 0 1 .062.125l.011.082.004-.082c0-.079-.058-.172-.117-.172-.008 0 .008.02.04.047m1.421.003c0 .008.043.07.098.137.101.125.14.145.046.024-.078-.106-.144-.176-.144-.16m-1.863.285c-.176.261-.188.28-.176.28.004 0 .066-.085.137-.19a5.48 5.48 0 0 1 .168-.239c.035-.039.05-.078.03-.078-.003 0-.073.102-.16.227m-2.788-.098a.47.47 0 0 0 .035.117c.011.02.02.063.02.094s.007.058.019.066c.02.012.008-.043-.043-.258-.027-.12-.05-.14-.031-.02m3.257.06a.393.393 0 0 0-.011.105c.004.063.004.059.023-.027.02-.098.012-.141-.012-.078m5.227 0c0 .023.008.062.02.09.023.054.023-.005 0-.079-.016-.043-.02-.047-.02-.011m-3.613.023c0 .02.375.516.386.516.016 0-.082-.137-.253-.36a.92.92 0 0 0-.133-.156m3.652.176a.21.21 0 0 0 .023.097c.016.024.02.008.008-.054-.02-.11-.03-.125-.03-.043m-5.313.09a.244.244 0 0 0-.004.09c.007.007.02-.024.027-.07.008-.044.012-.087.004-.09-.004-.009-.016.023-.027.07m-3.114.011a.2.2 0 0 0 .024.086c.015.024.015.008.008-.047-.02-.093-.032-.109-.032-.039m8.473.121c0 .047.008.098.02.118.015.023.019 0 .007-.079-.015-.136-.031-.152-.027-.039m-12.418.02a.2.2 0 0 0 .043.055c.004 0-.004-.024-.016-.055-.015-.031-.035-.055-.047-.055-.007 0 0 .024.02.055m3.992.055a.46.46 0 0 0 .02.12c.015.028.015.009.008-.066-.016-.133-.032-.16-.028-.054m2.32.039-.039.058.051-.047c.028-.027.043-.054.04-.062-.009-.008-.032.016-.052.05m.707.04a.228.228 0 0 0-.011.094c0 .046.004.042.02-.028.023-.09.015-.133-.008-.066m2.324.32c.25.379.246.375.355.563a.735.735 0 0 0 .09.136c.02 0-.125-.258-.156-.285-.02-.015-.031-.035-.031-.047a9.39 9.39 0 0 0-.465-.691c-.012-.004.082.14.207.324m3.117-.21c0 .058.008.124.023.14.012.023.016-.008.004-.098-.015-.164-.027-.184-.027-.043m-6.324.113a1.455 1.455 0 0 0-.117.196.734.734 0 0 0 .097-.13c.137-.206.168-.257.156-.257a1.5 1.5 0 0 0-.136.191M9.71 8.395c.023.187.05.34.062.351.016.016.004-.101-.03-.277-.032-.156-.044-.188-.032-.074m-3.793.12c.059.114.137.243.148.231.004-.004-.011-.039-.035-.074a.236.236 0 0 1-.047-.086.258.258 0 0 0-.046-.07l-.043-.055.023.055m6.723-.012a.817.817 0 0 0-.008.195v.156l.02-.187c.015-.191.011-.227-.012-.164m5.535.266c0 .082.008.18.02.218.011.04.011-.023.003-.144-.012-.246-.027-.29-.023-.074m-6.586.015c-.14.207-.156.235-.145.235.008 0 .07-.086.203-.293.02-.032.036-.059.028-.059a.766.766 0 0 0-.086.117m-5.5.031c.035.086.16.313.172.313.004 0-.032-.078-.082-.176-.082-.16-.13-.234-.09-.137m3.7.051a.3.3 0 0 0 .023.13c.011.023.015-.005.007-.087-.02-.152-.03-.168-.03-.043m2.808.047c-.008.027-.012.211-.008.402l.004.352.011-.395c.016-.418.016-.441-.007-.359m-2.762.262c0 .078.012.164.02.195.011.031.011-.027.007-.133-.015-.222-.031-.258-.027-.062m1.562-.094c-.035.066-.027.086.012.031.02-.031.027-.058.024-.062-.008-.008-.024.008-.036.031m-5.125.082a1.634 1.634 0 0 0 .172.328c0-.012-.039-.094-.086-.187-.046-.09-.086-.153-.086-.14m9.239.167c-.004.023.113.219.125.207a.553.553 0 0 0-.059-.117c-.039-.059-.066-.098-.066-.09m-4.336.11a1.425 1.425 0 0 1-.063.101c-.015.027-.027.05-.02.05.02 0 .13-.179.118-.19-.004-.008-.024.011-.035.038m7.011.094a1.345 1.345 0 0 0-.011.219c0 .098.004.09.02-.063.023-.199.015-.32-.009-.156m-8.296.75c0 .41.004.68.011.594.008-.086.016-.352.016-.594s-.008-.508-.016-.594c-.007-.086-.011.184-.011.594M6.492 9.63c0 .023.082.176.086.16a.611.611 0 0 0-.078-.176c-.004 0-.008.008-.008.016m6.078.207c0 .078.004.11.008.07a.893.893 0 0 0 0-.144c-.004-.04-.008-.008-.008.074M10.836 10a3.567 3.567 0 0 0-.102.18.268.268 0 0 1-.039.07c-.07.098-.168.285-.117.223.027-.032.047-.063.047-.075a.64.64 0 0 1 .066-.113c.036-.055.067-.101.067-.11 0-.007.02-.042.039-.073.062-.09.164-.266.152-.266a.913.913 0 0 0-.113.164m7.305.066a.574.574 0 0 0-.008.16v.126l.015-.157c.02-.16.016-.191-.007-.129m-5.551.329c0 .195.004.37.012.39.007.02.011-.113.007-.297-.007-.465-.02-.511-.02-.093m3.337-.258c.008.02.035.082.054.133.024.05.047.09.051.085a.894.894 0 0 0-.113-.257c-.008 0-.004.02.008.039m-9.16.136c.023.082.074.192.074.165a.701.701 0 0 0-.074-.204c-.008-.007-.008.008 0 .04m11.332.156c-.008.043-.016.11-.024.152-.008.043-.015.125-.023.188l-.008.109.02-.098c.03-.133.066-.406.054-.414-.004-.008-.012.024-.02.063m-1.98.175c.02.055.043.118.055.141.008.024.035.098.062.164.024.07.043.11.043.098.004-.028-.03-.13-.086-.262-.007-.023-.03-.078-.043-.121a.356.356 0 0 0-.05-.098c-.012-.011-.004.024.02.078m-5.688.09c-.055.09-.102.172-.106.184-.02.043.082-.09.11-.145a.706.706 0 0 1 .066-.113c.023-.035.04-.066.031-.074a.74.74 0 0 0-.101.148m.816-.11a2.486 2.486 0 0 0-.195.364c.011.008.125-.183.125-.21 0-.009.015-.032.035-.06.035-.038.035-.038.023.032-.007.043-.004.066.008.059.012-.008.024-.04.024-.067 0-.027.007-.058.02-.066.027-.016.03-.078.003-.078-.012 0-.031.015-.043.027m-4.312.133c.023.062.062.176.086.25.02.07.039.113.039.094.003-.067-.137-.458-.164-.458a.4.4 0 0 0 .039.114m4.234.219a.445.445 0 0 0-.027.12c.004.005.023-.042.043-.105a.38.38 0 0 0 .03-.121c-.007-.004-.027.043-.046.105m1.46.075a.57.57 0 0 0 .02.183c.012.016.016-.039.008-.133-.011-.218-.023-.238-.027-.05m5.383-.078a.36.36 0 0 0-.012.109c0 .039.008.031.02-.031.023-.094.015-.164-.008-.078m-7.77.093c-.035.063-.05.106-.039.094a.742.742 0 0 0 .11-.2c-.004-.007-.04.044-.07.106m6.05.07c.027.157.035.188.055.2.015.012-.004-.086-.043-.2l-.024-.066.012.067m-5.18.004c-.004.015-.008.046-.015.066-.012.031-.012.035.011.016.016-.012.024-.043.016-.067-.004-.023-.012-.027-.012-.015m-4.027.074c.027.09.059.199.086.304.02.075.043.118.043.075a.727.727 0 0 0-.027-.121c-.02-.051-.043-.137-.06-.192a.643.643 0 0 0-.046-.12c-.012-.013-.008.015.004.054m10.879-.012a.333.333 0 0 0-.012.098c.004.043.008.035.02-.032.02-.093.015-.125-.008-.066m-8.117.059a.993.993 0 0 0-.012.16c.004.066.008.05.023-.063.016-.164.012-.215-.011-.097m.175.187a.398.398 0 0 0-.05.11c.004.003.035-.04.066-.102.035-.059.059-.11.05-.11a.6.6 0 0 0-.066.102m.79-.035c-.02.04-.032.074-.028.078.004.004.027-.027.047-.07.043-.094.027-.102-.02-.008m1.86.023c0 .04.012.09.023.11.016.02.016 0 .008-.067-.02-.125-.031-.14-.031-.043m3.695-.023c0 .031.012.07.024.086.015.023.015.012.007-.043-.02-.094-.03-.113-.03-.043m1.55-.012a.106.106 0 0 0-.004.07c.004.024.012.012.02-.03.011-.075.003-.094-.016-.04m-8.113.157a.362.362 0 0 0-.016.109.247.247 0 0 1-.027.117c-.02.035-.02.05 0 .07.035.036.058.012.136-.14.043-.086.051-.117.024-.082a.227.227 0 0 0-.043.078c-.004.035-.086.133-.102.113-.007-.008-.004-.027.008-.043.02-.023.055-.258.04-.258-.005 0-.012.016-.02.036m.945-.02a1.129 1.129 0 0 0-.098.195c.008.004.036-.043.07-.101.048-.086.071-.16.028-.094m7.129.008a1.357 1.357 0 0 0-.055.277c0 .024.02-.035.043-.125.02-.09.035-.168.031-.172-.007-.008-.015.004-.02.02m-6.898.058a.332.332 0 0 1-.015.086c-.012.04-.012.04.012 0a.108.108 0 0 0 .015-.086c-.008-.05-.008-.05-.012 0m5.446.063a.42.42 0 0 0 .023.094c.016.02.004-.098-.015-.141-.016-.031-.016-.016-.008.047m-9.196.055c.016.093.032.109.028.039a.199.199 0 0 0-.02-.086c-.015-.024-.02-.008-.008.047m5.489-.012c0 .023.008.066.02.098.015.043.015.046.015.011a.46.46 0 0 0-.016-.097c-.015-.047-.02-.047-.02-.012m-1.78.055c-.004.02-.008.058-.016.085-.012.051-.008.051.012.016.015-.02.02-.058.015-.086-.004-.027-.011-.035-.011-.015m-.32.015c-.048.082-.259.496-.24.48a4.37 4.37 0 0 0 .263-.495c-.008 0-.016.007-.024.015m5.856.117a.53.53 0 0 0 .02.13c.015.019.003-.165-.016-.208-.012-.027-.016-.004-.004.078m-9.211-.03c0 .023.008.054.02.073.019.024.019.016.007-.035-.016-.078-.027-.097-.027-.039m10.527.059a1.6 1.6 0 0 1-.082.27c-.035.093-.047.148-.02.132.012-.008.024-.035.024-.059a.21.21 0 0 1 .02-.082.643.643 0 0 0 .042-.125c.012-.05.028-.109.036-.136.007-.028.007-.051.003-.051-.007 0-.015.023-.023.05m-5.027.044c0 .043.008.086.02.093.011.008.015-.023.007-.07-.016-.113-.027-.121-.027-.023m-1.883.062c-.024.125-.05.27-.078.375-.012.059-.02.137-.02.176.004.059.008.05.024-.035.015-.117.047-.281.086-.461.011-.059.015-.113.011-.117-.004-.004-.015.023-.023.062m-3.574 0a.16.16 0 0 0 .023.086c.012.024.016.012.004-.043-.016-.098-.027-.113-.027-.043m5.5.121a.32.32 0 0 0 .023.11c.012.027.012.007.004-.059-.016-.113-.027-.14-.027-.05m3.699.019c0 .047.008.137.016.199.02.105.02.105.02.02 0-.047-.009-.137-.017-.196-.015-.11-.02-.11-.02-.023m-9.155.078a.17.17 0 0 0 .023.066c.02.028.02.028.02 0 0-.02-.008-.05-.02-.066-.02-.031-.023-.031-.023 0m10.285.176c-.008.039-.012.074-.004.078.004.008.016-.02.023-.059.008-.039.012-.074.004-.082-.004-.004-.015.024-.023.063m-10.227.101c.02.114.032.121.032.024 0-.043-.012-.086-.024-.094-.012-.004-.016.023-.008.07m10.164.11a.393.393 0 0 0-.027.113c.008.008.02-.008.027-.031.004-.024.024-.067.035-.102.012-.035.016-.066.012-.074-.008-.004-.027.035-.047.094m-10.12.129a.69.69 0 0 0 .023.12c.02.02.004-.167-.016-.199-.016-.02-.016.004-.008.079m3.309-.055c0 .031-.016.25-.031.484-.028.399-.004 1.164.043 1.266.011.023-.008-.324-.032-.606a6.223 6.223 0 0 1 .012-.68c.02-.269.027-.495.02-.503-.008-.008-.012.012-.012.039m-.672.066a2.09 2.09 0 0 1-.078.149c-.024.043-.04.082-.035.086a.755.755 0 0 0 .09-.141.614.614 0 0 0 .07-.156c-.004-.004-.028.023-.047.062m6.43.262a.936.936 0 0 0-.008.195c.015.012.043-.316.031-.351-.004-.016-.016.054-.023.156m-9.032-.043c0 .043.008.11.02.145l.016.066v-.078a.862.862 0 0 0-.016-.145l-.02-.062v.074m2.426.113c-.02.04-.031.07-.027.078.004.004.027-.027.047-.07.043-.094.027-.101-.02-.008m3.176.024c.02.082.07.168.07.125 0-.02-.011-.043-.023-.051s-.02-.031-.02-.055a.09.09 0 0 0-.02-.054c-.011-.008-.015.007-.007.035M9.8 13.27a2.733 2.733 0 0 0-.18.363c.004.004.055-.082.11-.192.085-.168.124-.261.07-.171m3.375.05c.043.11.113.254.125.254.008 0 .008-.008.004-.015a1.61 1.61 0 0 1-.106-.246.047.047 0 0 0-.02-.036c-.015-.007-.015.004-.003.043m3.304-.011a.565.565 0 0 1-.015.113l-.012.055.024-.055a.183.183 0 0 0 .015-.11l-.008-.058-.004.055m-8.94.101a.808.808 0 0 0 .019.117c.02.02.003-.14-.016-.183-.012-.031-.016-.008-.004.066m8.898.121c-.003.016-.007.055-.015.086-.012.047-.008.051.012.016.015-.02.02-.059.015-.086-.004-.027-.012-.035-.012-.016m.735.078c-.02.047-.031.086-.024.094.008.004.012.004.012 0 0-.008.016-.05.031-.094.02-.043.032-.078.024-.078a.325.325 0 0 0-.043.078m-7.61.102c-.062.101-.238.445-.214.426.011-.016.05-.082.09-.157.039-.07.097-.171.124-.226.055-.094.055-.133 0-.043m3.793-.016c0 .035.18.317.204.32.007 0-.008-.035-.036-.074a1.308 1.308 0 0 1-.101-.164c-.043-.082-.067-.113-.067-.082m2.997.137c-.075.215-.082.254-.02.113.05-.12.094-.261.074-.261-.004 0-.027.066-.054.148m.746-.066-.125.238c-.055.105-.11.207-.118.219-.035.047-.136.23-.128.23.015 0 .218-.34.32-.543.078-.148.117-.273.05-.144m-9.519.597c0 .305.008.532.016.504.02-.066.02-.863 0-.972-.008-.047-.016.164-.016.468m8.637-.168a1.46 1.46 0 0 1-.43.555c-.043.035-.043.035.008.012.148-.075.539-.617.48-.672a.39.39 0 0 0-.058.105m-2.477.059c.145.176.547.512.575.48.007-.004-.047-.046-.114-.093-.07-.043-.21-.16-.312-.262-.106-.098-.172-.152-.149-.125m-4.508.066c-.02.04-.03.067-.023.067a.22.22 0 0 0 .043-.067c.02-.035.031-.062.023-.062a.166.166 0 0 0-.043.062m-.09.157c-.019.035-.027.066-.023.066.008 0 .028-.031.047-.066.02-.036.027-.067.024-.067-.008 0-.028.031-.047.067m1.64.046c0 .04.012.094.02.118.011.027.015.004.008-.067-.016-.129-.028-.156-.028-.05m5.852.066c-.043.062-.11.16-.153.21a.382.382 0 0 0-.062.106c.008.012.039-.031.2-.261a.683.683 0 0 0 .097-.16.382.382 0 0 0-.082.105m-5.805.148a.334.334 0 0 0 .016.121l.035.13c.008.034.016.062.02.058.007-.008-.008-.106-.051-.285-.016-.059-.02-.067-.02-.024m3.8.14c0 .024.227.083.294.079l.07-.004-.066-.008c-.035-.008-.114-.023-.172-.043-.121-.035-.125-.035-.125-.023m.871.02-.156.039c-.078.015-.078.019-.02.019.063.004.215-.039.242-.07.02-.016.02-.016-.066.011m.836.106c-.035.035-.059.07-.055.074.008.008.04-.023.07-.062.079-.094.067-.102-.015-.012m-7.512.027a.548.548 0 0 1-.07.125c-.07.106-.16.281-.11.223a.401.401 0 0 0 .047-.074c0-.012.016-.047.04-.078.07-.098.16-.266.14-.266-.008 0-.031.031-.047.07m6.242-.054c.024.003.07.003.098 0 .027-.008.004-.012-.05-.012-.055 0-.075.004-.048.012m-4.152.136a.2.2 0 0 0 .02.078c.011.028.02.032.02.012a.209.209 0 0 0-.02-.078c-.012-.027-.02-.031-.02-.012m5.211.149a6.625 6.625 0 0 1-.746.715.59.59 0 0 0-.121.101c.023.024.476-.371.695-.601.215-.23.313-.34.3-.348a.773.773 0 0 0-.128.133m-8.574-.004a3.345 3.345 0 0 0-.016.12c-.012.071-.012.071.012.024a.314.314 0 0 0 .016-.12c-.008-.04-.012-.052-.012-.024m3.406.012c0 .015.012.05.02.074l.02.047.003-.047a.152.152 0 0 0-.023-.074c-.016-.032-.02-.032-.02 0m-2.402.222a.678.678 0 0 1-.059.102c-.016.027-.027.047-.02.047.016 0 .13-.18.118-.192-.004-.004-.024.016-.04.043m-1.062.207c-.008.067-.012.13-.004.133.004.008.016-.043.028-.113a.523.523 0 0 0 .004-.133c-.008-.008-.02.043-.028.113m.883.098c-.078.129-.11.207-.05.121.054-.086.148-.254.14-.254a.591.591 0 0 0-.09.133m2.734-.082c.051.125.11.242.11.219 0-.032-.106-.27-.121-.27-.004 0 0 .024.011.05m-3.648.216a.87.87 0 0 1-.016.133c-.008.066-.008.07.012.019a.283.283 0 0 0 .016-.133c-.004-.054-.008-.058-.012-.02m.777.087c-.02.023-.035.05-.027.054.008.008.027-.011.047-.043.043-.066.035-.07-.02-.011m6.91.132c-.023.024-.054.043-.066.043-.016 0-.043.016-.055.036a.46.46 0 0 1-.097.066.517.517 0 0 0-.125.078c-.051.043-.047.043.035-.004.191-.105.41-.262.367-.262-.012 0-.039.02-.059.043m-7.73.043-.016.11c-.011.047-.011.05.012.015.012-.02.02-.07.016-.109-.008-.055-.008-.059-.012-.016m.691.036c-.023.03-.035.062-.027.07.004.004.027-.02.047-.059.043-.082.031-.09-.02-.011m3.329.152c.054.105.132.207.132.176 0-.016-.02-.047-.043-.07-.023-.028-.043-.055-.043-.067a.187.187 0 0 0-.046-.07c-.043-.055-.043-.055 0 .03M8 16.399a.379.379 0 0 1-.07.102c-.016.016-.032.04-.032.05 0 .032.067-.05.13-.155.027-.04.034-.07.027-.07-.012 0-.035.03-.055.073m6.652.059-.054.047.07-.035c.039-.02.07-.04.07-.047 0-.02-.035-.008-.086.035m-6.886.309a2.39 2.39 0 0 1-.215.277c-.051.055-.074.086-.051.074.07-.035.434-.527.39-.527-.003 0-.062.078-.124.176m3.867-.102c.078.113.183.23.203.23.012 0-.008-.027-.04-.058a3.517 3.517 0 0 1-.144-.16c-.078-.094-.078-.094-.02-.012m-4.316-.02a.26.26 0 0 0-.011.083c.004.03.011.02.023-.028.02-.082.012-.113-.012-.054m6.664.109c-.046.02-.105.043-.132.05a1.68 1.68 0 0 1-.25.083c-.016.008-.024.015-.02.023.012.008.18-.039.27-.078.027-.012.093-.039.148-.059.059-.02.106-.039.106-.046 0-.012-.028-.004-.122.027m-6.707.082c-.02.07-.015.277.004.289.008.004.016-.07.016-.164 0-.195 0-.195-.02-.125m4.653.133c.09.062.16.09.14.058-.007-.011-.023-.023-.039-.023a.222.222 0 0 1-.082-.043.221.221 0 0 0-.074-.043c-.012 0 .012.023.055.05m1.418-.011c-.2.047-.317.07-.45.094a.417.417 0 0 0-.128.031c-.028.023.218-.016.457-.078a3.08 3.08 0 0 0 .207-.05c.074-.017.113-.032.09-.032a1.03 1.03 0 0 0-.176.035m-1.242.102a.384.384 0 0 0 .074.023c.05.008.058.008.035-.008-.031-.02-.133-.035-.11-.015m.27.05c.066.004.184.004.25 0 .07-.004.016-.007-.125-.007-.14 0-.195.003-.125.007"
|
|
242
259
|
}
|
|
243
260
|
)
|
|
244
|
-
] }) }),
|
|
261
|
+
] }) }), S1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
245
262
|
__proto__: null,
|
|
246
|
-
AccessTime:
|
|
247
|
-
ArrowBack:
|
|
248
|
-
Calendar:
|
|
249
|
-
Close:
|
|
250
|
-
Facebook:
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
263
|
+
AccessTime: u1,
|
|
264
|
+
ArrowBack: g1,
|
|
265
|
+
Calendar: m1,
|
|
266
|
+
Close: d1,
|
|
267
|
+
Facebook: f1,
|
|
268
|
+
Github: h1,
|
|
269
|
+
Language: p1,
|
|
270
|
+
Link: b1,
|
|
271
|
+
Linkedin: v1,
|
|
272
|
+
Logo: ye,
|
|
273
|
+
Message: E1,
|
|
274
|
+
Person: y1,
|
|
275
|
+
Rss: N1,
|
|
276
|
+
Search: x1,
|
|
277
|
+
Twitter: _1,
|
|
278
|
+
Welcometothejungle: w1
|
|
261
279
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
262
|
-
var
|
|
263
|
-
function
|
|
280
|
+
var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
281
|
+
function V(e) {
|
|
264
282
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
265
283
|
}
|
|
266
|
-
var
|
|
267
|
-
get exports() {
|
|
268
|
-
return V0;
|
|
269
|
-
},
|
|
270
|
-
set exports(e) {
|
|
271
|
-
V0 = e;
|
|
272
|
-
}
|
|
273
|
-
};
|
|
284
|
+
var xe = { exports: {} };
|
|
274
285
|
/*!
|
|
275
286
|
Copyright (c) 2018 Jed Watson.
|
|
276
287
|
Licensed under the MIT License (MIT), see
|
|
@@ -305,11 +316,12 @@ var V0 = {}, S1 = {
|
|
|
305
316
|
}
|
|
306
317
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
307
318
|
})();
|
|
308
|
-
})(
|
|
309
|
-
|
|
319
|
+
})(xe);
|
|
320
|
+
var O1 = xe.exports;
|
|
321
|
+
const $ = /* @__PURE__ */ V(O1), A1 = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), M1 = (e) => (e.match(/[a-zA-Z0-9]+/g) || []).map((n) => `${n.charAt(0).toUpperCase()}${n.slice(1)}`).join(""), se = (e) => {
|
|
310
322
|
if (e.propValue !== void 0) {
|
|
311
323
|
if (typeof e.propValue != "boolean") {
|
|
312
|
-
const n =
|
|
324
|
+
const n = A1(
|
|
313
325
|
typeof e.propValue == "number" ? e.propValue.toString() : e.propValue
|
|
314
326
|
);
|
|
315
327
|
return `${e.className}-${n}@${e.defaultModifier}`;
|
|
@@ -318,7 +330,7 @@ const $ = V0, O1 = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/
|
|
|
318
330
|
}
|
|
319
331
|
}, B = (e) => {
|
|
320
332
|
if (e.propValue && ["string", "number"].includes(typeof e.propValue) || !e.propValue) {
|
|
321
|
-
const n =
|
|
333
|
+
const n = se({
|
|
322
334
|
className: e.className,
|
|
323
335
|
defaultModifier: e.defaultModifier || "xs",
|
|
324
336
|
propValue: e.propValue
|
|
@@ -327,7 +339,7 @@ const $ = V0, O1 = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/
|
|
|
327
339
|
}
|
|
328
340
|
return Object.entries(e.propValue).reduce(
|
|
329
341
|
(n, [t, a]) => {
|
|
330
|
-
const s =
|
|
342
|
+
const s = se({
|
|
331
343
|
className: e.className,
|
|
332
344
|
defaultModifier: t,
|
|
333
345
|
propValue: a
|
|
@@ -336,10 +348,10 @@ const $ = V0, O1 = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/
|
|
|
336
348
|
},
|
|
337
349
|
[]
|
|
338
350
|
);
|
|
339
|
-
},
|
|
351
|
+
}, _e = (e) => $({
|
|
340
352
|
[`bg-${e.bg}`]: e.bg,
|
|
341
353
|
[`color-${e.color}`]: e.color
|
|
342
|
-
}),
|
|
354
|
+
}), R1 = (e) => $(
|
|
343
355
|
B({
|
|
344
356
|
propValue: e.flexDirection,
|
|
345
357
|
className: "flex"
|
|
@@ -384,7 +396,7 @@ const $ = V0, O1 = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/
|
|
|
384
396
|
propValue: e.flex,
|
|
385
397
|
className: "flex"
|
|
386
398
|
})
|
|
387
|
-
),
|
|
399
|
+
), T1 = (e) => $(
|
|
388
400
|
B({
|
|
389
401
|
propValue: e.display,
|
|
390
402
|
className: "display"
|
|
@@ -413,7 +425,7 @@ const $ = V0, O1 = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/
|
|
|
413
425
|
propValue: e.maxHeight,
|
|
414
426
|
className: "max-height"
|
|
415
427
|
})
|
|
416
|
-
),
|
|
428
|
+
), F = {
|
|
417
429
|
asset: {
|
|
418
430
|
font: {
|
|
419
431
|
"WorkSans-Regular": {
|
|
@@ -477,6 +489,9 @@ const $ = V0, O1 = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/
|
|
|
477
489
|
},
|
|
478
490
|
welcometothejungle: {
|
|
479
491
|
value: "svgs/welcometothejungle.svg"
|
|
492
|
+
},
|
|
493
|
+
github: {
|
|
494
|
+
value: "svgs/github.svg"
|
|
480
495
|
}
|
|
481
496
|
}
|
|
482
497
|
},
|
|
@@ -795,14 +810,14 @@ const $ = V0, O1 = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/
|
|
|
795
810
|
}
|
|
796
811
|
};
|
|
797
812
|
[
|
|
798
|
-
...Object.keys(
|
|
799
|
-
...Object.keys(
|
|
800
|
-
...Object.keys(
|
|
813
|
+
...Object.keys(F.color.primary),
|
|
814
|
+
...Object.keys(F.color.secondary),
|
|
815
|
+
...Object.keys(F.color.greyscale)
|
|
801
816
|
];
|
|
802
|
-
const
|
|
817
|
+
const I1 = {
|
|
803
818
|
bg: ["background-color"],
|
|
804
819
|
color: ["color"]
|
|
805
|
-
},
|
|
820
|
+
}, L1 = {
|
|
806
821
|
p: ["padding"],
|
|
807
822
|
pt: ["padding-top"],
|
|
808
823
|
pr: ["padding-right"],
|
|
@@ -810,7 +825,7 @@ const T1 = {
|
|
|
810
825
|
pb: ["padding-bottom"],
|
|
811
826
|
px: ["padding-left", "padding-right"],
|
|
812
827
|
py: ["padding-top", "padding-bottom"]
|
|
813
|
-
},
|
|
828
|
+
}, we = {
|
|
814
829
|
m: ["margin"],
|
|
815
830
|
mt: ["margin-top"],
|
|
816
831
|
mr: ["margin-right"],
|
|
@@ -818,10 +833,10 @@ const T1 = {
|
|
|
818
833
|
mb: ["margin-bottom"],
|
|
819
834
|
mx: ["margin-left", "margin-right"],
|
|
820
835
|
my: ["margin-top", "margin-bottom"]
|
|
821
|
-
},
|
|
822
|
-
...
|
|
823
|
-
...
|
|
824
|
-
},
|
|
836
|
+
}, Se = {
|
|
837
|
+
...we,
|
|
838
|
+
...L1
|
|
839
|
+
}, C1 = {
|
|
825
840
|
alignItems: ["align-items"],
|
|
826
841
|
alignContent: ["align-content"],
|
|
827
842
|
justifyContent: ["justify-content"],
|
|
@@ -836,7 +851,7 @@ const T1 = {
|
|
|
836
851
|
}, k1 = {
|
|
837
852
|
hiddenBelow: ["display"],
|
|
838
853
|
hiddenAbove: ["display"]
|
|
839
|
-
},
|
|
854
|
+
}, D1 = {
|
|
840
855
|
display: ["display"],
|
|
841
856
|
width: ["width"],
|
|
842
857
|
height: ["height"],
|
|
@@ -844,36 +859,36 @@ const T1 = {
|
|
|
844
859
|
maxWidth: ["max-width"],
|
|
845
860
|
minHeight: ["min-height"],
|
|
846
861
|
maxHeight: ["max-height"]
|
|
847
|
-
},
|
|
862
|
+
}, B1 = {
|
|
848
863
|
textAlign: ["text-align"],
|
|
849
864
|
textSize: ["font-size", "line-height"],
|
|
850
865
|
fontWeight: ["font-weight"],
|
|
851
866
|
italic: ["font-style"],
|
|
852
867
|
underline: ["text-decoration"],
|
|
853
868
|
textTransform: ["text-transform"]
|
|
854
|
-
},
|
|
855
|
-
...
|
|
856
|
-
...L1,
|
|
857
|
-
...T1,
|
|
858
|
-
...D1,
|
|
869
|
+
}, P1 = {
|
|
870
|
+
...Se,
|
|
859
871
|
...C1,
|
|
872
|
+
...I1,
|
|
873
|
+
...B1,
|
|
874
|
+
...D1,
|
|
860
875
|
...k1
|
|
861
|
-
},
|
|
862
|
-
mobile: `(max-width: ${parseInt(
|
|
863
|
-
aboveMobile: `(min-width:${parseInt(
|
|
864
|
-
tablet: `(min-width:${parseInt(
|
|
865
|
-
aboveTablet: `(min-width:${parseInt(
|
|
866
|
-
desktop: `(min-width:${parseInt(
|
|
867
|
-
aboveDesktop: `(min-width:${parseInt(
|
|
868
|
-
large: `(min-width:${parseInt(
|
|
869
|
-
},
|
|
870
|
-
Object.entries(e).filter(([n]) => Object.keys(
|
|
876
|
+
}, $1 = {
|
|
877
|
+
mobile: `(max-width: ${parseInt(F.breakpoint.sm.value, 10) - 1}px)`,
|
|
878
|
+
aboveMobile: `(min-width:${parseInt(F.breakpoint.sm.value, 10)}px)`,
|
|
879
|
+
tablet: `(min-width:${parseInt(F.breakpoint.sm.value, 10)}px) and (max-width: ${parseInt(F.breakpoint.md.value, 10) - 1}px)`,
|
|
880
|
+
aboveTablet: `(min-width:${parseInt(F.breakpoint.md.value, 10)}px)`,
|
|
881
|
+
desktop: `(min-width:${parseInt(F.breakpoint.md.value, 10)}px) and (max-width: ${parseInt(F.breakpoint.lg.value, 10) - 1}px)`,
|
|
882
|
+
aboveDesktop: `(min-width:${parseInt(F.breakpoint.lg.value, 10)}px)`,
|
|
883
|
+
large: `(min-width:${parseInt(F.breakpoint.lg.value, 10)}px)`
|
|
884
|
+
}, Oe = (e) => $(
|
|
885
|
+
Object.entries(e).filter(([n]) => Object.keys(Se).includes(n)).reduce((n, [t, a]) => (n.push(
|
|
871
886
|
...B({
|
|
872
887
|
className: t,
|
|
873
888
|
propValue: a
|
|
874
889
|
})
|
|
875
890
|
), n), [])
|
|
876
|
-
),
|
|
891
|
+
), Ae = ({
|
|
877
892
|
textAlign: e,
|
|
878
893
|
...n
|
|
879
894
|
}) => $(
|
|
@@ -887,21 +902,21 @@ const T1 = {
|
|
|
887
902
|
["text-underline"]: n.underline,
|
|
888
903
|
["text-italic"]: n.italic
|
|
889
904
|
}
|
|
890
|
-
),
|
|
891
|
-
[`hidden-above@${e.hiddenAbove}`]:
|
|
892
|
-
[`hidden-below@${e.hiddenBelow}`]:
|
|
893
|
-
}),
|
|
894
|
-
|
|
895
|
-
M1(e),
|
|
905
|
+
), U1 = (e) => $({
|
|
906
|
+
[`hidden-above@${e.hiddenAbove}`]: !!e.hiddenAbove,
|
|
907
|
+
[`hidden-below@${e.hiddenBelow}`]: !!e.hiddenBelow
|
|
908
|
+
}), Me = (e) => typeof e.props == "object" ? Object.keys(e.props).reduce((n, t) => (e.systemPropNames.includes(t) || (n[t] = e.props[t]), n), {}) : {}, H1 = (e) => $(
|
|
909
|
+
_e(e),
|
|
896
910
|
R1(e),
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
911
|
+
T1(e),
|
|
912
|
+
Oe(e),
|
|
913
|
+
Ae(e),
|
|
914
|
+
U1(e)
|
|
900
915
|
);
|
|
901
|
-
function
|
|
902
|
-
return
|
|
916
|
+
function c0(e) {
|
|
917
|
+
return P0.forwardRef(e);
|
|
903
918
|
}
|
|
904
|
-
const
|
|
919
|
+
const E2 = ["primary", "secondary"], j1 = c0(
|
|
905
920
|
({ as: e = "button", variant: n = "primary", isChoiceChip: t = !1, children: a, ...s }, c) => /* @__PURE__ */ d(
|
|
906
921
|
U,
|
|
907
922
|
{
|
|
@@ -922,17 +937,17 @@ const v2 = ["primary", "secondary"], H1 = a0(
|
|
|
922
937
|
}
|
|
923
938
|
)
|
|
924
939
|
);
|
|
925
|
-
|
|
926
|
-
const
|
|
927
|
-
const a =
|
|
940
|
+
j1.displayName = "Button";
|
|
941
|
+
const V0 = ({ name: e, size: n, ...t }) => {
|
|
942
|
+
const a = S1[M1(e)];
|
|
928
943
|
return /* @__PURE__ */ d(
|
|
929
944
|
a,
|
|
930
945
|
{
|
|
931
|
-
...
|
|
946
|
+
...Me({ props: t, systemPropNames: [...Object.keys(we), "color"] }),
|
|
932
947
|
className: $(
|
|
933
948
|
"icon",
|
|
934
|
-
|
|
935
|
-
|
|
949
|
+
Oe(t),
|
|
950
|
+
_e(t),
|
|
936
951
|
t == null ? void 0 : t.className
|
|
937
952
|
),
|
|
938
953
|
height: "1em",
|
|
@@ -940,24 +955,24 @@ const Z0 = ({ name: e, size: n, ...t }) => {
|
|
|
940
955
|
style: { fontSize: n }
|
|
941
956
|
}
|
|
942
957
|
);
|
|
943
|
-
}, U =
|
|
958
|
+
}, U = c0(({ as: e = "div", textSize: n, children: t, ...a }, s) => /* @__PURE__ */ d(
|
|
944
959
|
e,
|
|
945
960
|
{
|
|
946
|
-
...
|
|
961
|
+
...Me({ props: a, systemPropNames: Object.keys(P1) }),
|
|
947
962
|
ref: s,
|
|
948
963
|
className: $(
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
{ [`text-${n}`]:
|
|
964
|
+
H1(a),
|
|
965
|
+
Ae(a),
|
|
966
|
+
{ [`text-${n}`]: !!n },
|
|
952
967
|
a == null ? void 0 : a.className
|
|
953
968
|
),
|
|
954
969
|
children: t
|
|
955
970
|
}
|
|
956
971
|
));
|
|
957
972
|
U.displayName = "Box";
|
|
958
|
-
const
|
|
959
|
-
const
|
|
960
|
-
|
|
973
|
+
const q0 = c0(({ as: e = "div", display: n = "flex", ...t }, a) => /* @__PURE__ */ d(U, { ...t, ref: a, as: e, display: n }));
|
|
974
|
+
const y2 = ["website", "blog"], N2 = c0(({ name: e, size: n, ...t }, a) => /* @__PURE__ */ j(
|
|
975
|
+
q0,
|
|
961
976
|
{
|
|
962
977
|
...t,
|
|
963
978
|
ref: a,
|
|
@@ -966,15 +981,15 @@ const E2 = ["website", "blog"], y2 = a0(({ name: e, size: n, ...t }, a) => /* @_
|
|
|
966
981
|
className: $("logo", t.className),
|
|
967
982
|
style: { fontSize: n },
|
|
968
983
|
children: [
|
|
969
|
-
/* @__PURE__ */ d(
|
|
984
|
+
/* @__PURE__ */ d(ye, { height: "1em" }),
|
|
970
985
|
e === "blog" ? /* @__PURE__ */ j(U, { className: "logo__blog", children: [
|
|
971
|
-
/* @__PURE__ */ d(
|
|
972
|
-
/* @__PURE__ */ d(
|
|
973
|
-
] }) : /* @__PURE__ */ d(
|
|
986
|
+
/* @__PURE__ */ d(d0, { fontWeight: "medium", children: "Eleven Labs" }),
|
|
987
|
+
/* @__PURE__ */ d(d0, { fontWeight: "bold", children: "Le blog" })
|
|
988
|
+
] }) : /* @__PURE__ */ d(d0, { fontWeight: "medium", className: "logo__website", children: "Eleven Labs" })
|
|
974
989
|
]
|
|
975
990
|
}
|
|
976
991
|
));
|
|
977
|
-
function
|
|
992
|
+
function z1(e, n) {
|
|
978
993
|
if (e == null)
|
|
979
994
|
return {};
|
|
980
995
|
var t = {}, a = Object.keys(e), s, c;
|
|
@@ -982,10 +997,10 @@ function j1(e, n) {
|
|
|
982
997
|
s = a[c], !(n.indexOf(s) >= 0) && (t[s] = e[s]);
|
|
983
998
|
return t;
|
|
984
999
|
}
|
|
985
|
-
function
|
|
1000
|
+
function G1(e, n) {
|
|
986
1001
|
if (e == null)
|
|
987
1002
|
return {};
|
|
988
|
-
var t =
|
|
1003
|
+
var t = z1(e, n), a, s;
|
|
989
1004
|
if (Object.getOwnPropertySymbols) {
|
|
990
1005
|
var c = Object.getOwnPropertySymbols(e);
|
|
991
1006
|
for (s = 0; s < c.length; s++)
|
|
@@ -999,7 +1014,7 @@ function W0(e, n) {
|
|
|
999
1014
|
a[t] = e[t];
|
|
1000
1015
|
return a;
|
|
1001
1016
|
}
|
|
1002
|
-
function
|
|
1017
|
+
function Z1(e) {
|
|
1003
1018
|
if (Array.isArray(e))
|
|
1004
1019
|
return W0(e);
|
|
1005
1020
|
}
|
|
@@ -1007,7 +1022,7 @@ function V1(e) {
|
|
|
1007
1022
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
1008
1023
|
return Array.from(e);
|
|
1009
1024
|
}
|
|
1010
|
-
function
|
|
1025
|
+
function W1(e, n) {
|
|
1011
1026
|
if (e) {
|
|
1012
1027
|
if (typeof e == "string")
|
|
1013
1028
|
return W0(e, n);
|
|
@@ -1018,38 +1033,39 @@ function Z1(e, n) {
|
|
|
1018
1033
|
return W0(e, n);
|
|
1019
1034
|
}
|
|
1020
1035
|
}
|
|
1021
|
-
function
|
|
1036
|
+
function F1() {
|
|
1022
1037
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1023
1038
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1024
1039
|
}
|
|
1025
|
-
function
|
|
1026
|
-
return
|
|
1040
|
+
function K1(e) {
|
|
1041
|
+
return Z1(e) || V1(e) || W1(e) || F1();
|
|
1027
1042
|
}
|
|
1028
|
-
function
|
|
1029
|
-
|
|
1043
|
+
function A0(e) {
|
|
1044
|
+
"@babel/helpers - typeof";
|
|
1045
|
+
return A0 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
1030
1046
|
return typeof n;
|
|
1031
1047
|
} : function(n) {
|
|
1032
1048
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
1033
|
-
},
|
|
1049
|
+
}, A0(e);
|
|
1034
1050
|
}
|
|
1035
|
-
function
|
|
1036
|
-
if (
|
|
1051
|
+
function Y1(e, n) {
|
|
1052
|
+
if (A0(e) !== "object" || e === null)
|
|
1037
1053
|
return e;
|
|
1038
1054
|
var t = e[Symbol.toPrimitive];
|
|
1039
1055
|
if (t !== void 0) {
|
|
1040
1056
|
var a = t.call(e, n || "default");
|
|
1041
|
-
if (
|
|
1057
|
+
if (A0(a) !== "object")
|
|
1042
1058
|
return a;
|
|
1043
1059
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1044
1060
|
}
|
|
1045
1061
|
return (n === "string" ? String : Number)(e);
|
|
1046
1062
|
}
|
|
1047
|
-
function
|
|
1048
|
-
var n =
|
|
1049
|
-
return
|
|
1063
|
+
function X1(e) {
|
|
1064
|
+
var n = Y1(e, "string");
|
|
1065
|
+
return A0(n) === "symbol" ? n : String(n);
|
|
1050
1066
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return n =
|
|
1067
|
+
function Re(e, n, t) {
|
|
1068
|
+
return n = X1(n), n in e ? Object.defineProperty(e, n, {
|
|
1053
1069
|
value: t,
|
|
1054
1070
|
enumerable: !0,
|
|
1055
1071
|
configurable: !0,
|
|
@@ -1066,7 +1082,7 @@ function F0() {
|
|
|
1066
1082
|
return e;
|
|
1067
1083
|
}, F0.apply(this, arguments);
|
|
1068
1084
|
}
|
|
1069
|
-
function
|
|
1085
|
+
function ie(e, n) {
|
|
1070
1086
|
var t = Object.keys(e);
|
|
1071
1087
|
if (Object.getOwnPropertySymbols) {
|
|
1072
1088
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -1076,18 +1092,18 @@ function le(e, n) {
|
|
|
1076
1092
|
}
|
|
1077
1093
|
return t;
|
|
1078
1094
|
}
|
|
1079
|
-
function
|
|
1095
|
+
function w0(e) {
|
|
1080
1096
|
for (var n = 1; n < arguments.length; n++) {
|
|
1081
1097
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
1082
|
-
n % 2 ?
|
|
1083
|
-
|
|
1084
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
1098
|
+
n % 2 ? ie(Object(t), !0).forEach(function(a) {
|
|
1099
|
+
Re(e, a, t[a]);
|
|
1100
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ie(Object(t)).forEach(function(a) {
|
|
1085
1101
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
1086
1102
|
});
|
|
1087
1103
|
}
|
|
1088
1104
|
return e;
|
|
1089
1105
|
}
|
|
1090
|
-
function
|
|
1106
|
+
function q1(e) {
|
|
1091
1107
|
var n = e.length;
|
|
1092
1108
|
if (n === 0 || n === 1)
|
|
1093
1109
|
return e;
|
|
@@ -1098,29 +1114,29 @@ function X1(e) {
|
|
|
1098
1114
|
if (n >= 4)
|
|
1099
1115
|
return [e[0], e[1], e[2], e[3], "".concat(e[0], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2]), "".concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2]), "".concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1]), "".concat(e[2], ".").concat(e[3]), "".concat(e[3], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1]), "".concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2], ".").concat(e[3]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat(e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat(e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0]), "".concat(e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat(e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat(e[2], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[1], ".").concat(e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[3], ".").concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat(e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[3], ".").concat(e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[3], ".").concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat(e[2], ".").concat(e[1], ".").concat(e[0])];
|
|
1100
1116
|
}
|
|
1101
|
-
var
|
|
1102
|
-
function
|
|
1117
|
+
var z0 = {};
|
|
1118
|
+
function Q1(e) {
|
|
1103
1119
|
if (e.length === 0 || e.length === 1)
|
|
1104
1120
|
return e;
|
|
1105
1121
|
var n = e.join(".");
|
|
1106
|
-
return
|
|
1122
|
+
return z0[n] || (z0[n] = q1(e)), z0[n];
|
|
1107
1123
|
}
|
|
1108
|
-
function
|
|
1124
|
+
function J1(e) {
|
|
1109
1125
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = arguments.length > 2 ? arguments[2] : void 0, a = e.filter(function(c) {
|
|
1110
1126
|
return c !== "token";
|
|
1111
|
-
}), s =
|
|
1127
|
+
}), s = Q1(a);
|
|
1112
1128
|
return s.reduce(function(c, l) {
|
|
1113
|
-
return
|
|
1129
|
+
return w0(w0({}, c), t[l]);
|
|
1114
1130
|
}, n);
|
|
1115
1131
|
}
|
|
1116
|
-
function
|
|
1132
|
+
function re(e) {
|
|
1117
1133
|
return e.join(" ");
|
|
1118
1134
|
}
|
|
1119
|
-
function
|
|
1135
|
+
function en(e, n) {
|
|
1120
1136
|
var t = 0;
|
|
1121
1137
|
return function(a) {
|
|
1122
1138
|
return t += 1, a.map(function(s, c) {
|
|
1123
|
-
return
|
|
1139
|
+
return Te({
|
|
1124
1140
|
node: s,
|
|
1125
1141
|
stylesheet: e,
|
|
1126
1142
|
useInlineStyles: n,
|
|
@@ -1129,15 +1145,15 @@ function J1(e, n) {
|
|
|
1129
1145
|
});
|
|
1130
1146
|
};
|
|
1131
1147
|
}
|
|
1132
|
-
function
|
|
1148
|
+
function Te(e) {
|
|
1133
1149
|
var n = e.node, t = e.stylesheet, a = e.style, s = a === void 0 ? {} : a, c = e.useInlineStyles, l = e.key, i = n.properties, r = n.type, g = n.tagName, o = n.value;
|
|
1134
1150
|
if (r === "text")
|
|
1135
1151
|
return o;
|
|
1136
1152
|
if (g) {
|
|
1137
|
-
var m =
|
|
1153
|
+
var m = en(t, c), b;
|
|
1138
1154
|
if (!c)
|
|
1139
|
-
b =
|
|
1140
|
-
className:
|
|
1155
|
+
b = w0(w0({}, i), {}, {
|
|
1156
|
+
className: re(i.className)
|
|
1141
1157
|
});
|
|
1142
1158
|
else {
|
|
1143
1159
|
var v = Object.keys(t).reduce(function(x, w) {
|
|
@@ -1147,23 +1163,23 @@ function Le(e) {
|
|
|
1147
1163
|
}, []), L = i.className && i.className.includes("token") ? ["token"] : [], S = i.className && L.concat(i.className.filter(function(x) {
|
|
1148
1164
|
return !v.includes(x);
|
|
1149
1165
|
}));
|
|
1150
|
-
b =
|
|
1151
|
-
className:
|
|
1152
|
-
style:
|
|
1166
|
+
b = w0(w0({}, i), {}, {
|
|
1167
|
+
className: re(S) || void 0,
|
|
1168
|
+
style: J1(i.className, Object.assign({}, i.style, s), t)
|
|
1153
1169
|
});
|
|
1154
1170
|
}
|
|
1155
1171
|
var A = m(n.children);
|
|
1156
|
-
return /* @__PURE__ */
|
|
1172
|
+
return /* @__PURE__ */ g0.createElement(g, F0({
|
|
1157
1173
|
key: l
|
|
1158
1174
|
}, b), A);
|
|
1159
1175
|
}
|
|
1160
1176
|
}
|
|
1161
|
-
const
|
|
1177
|
+
const nn = function(e, n) {
|
|
1162
1178
|
var t = e.listLanguages();
|
|
1163
1179
|
return t.indexOf(n) !== -1;
|
|
1164
1180
|
};
|
|
1165
|
-
var
|
|
1166
|
-
function
|
|
1181
|
+
var tn = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"];
|
|
1182
|
+
function oe(e, n) {
|
|
1167
1183
|
var t = Object.keys(e);
|
|
1168
1184
|
if (Object.getOwnPropertySymbols) {
|
|
1169
1185
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -1173,26 +1189,26 @@ function ge(e, n) {
|
|
|
1173
1189
|
}
|
|
1174
1190
|
return t;
|
|
1175
1191
|
}
|
|
1176
|
-
function
|
|
1192
|
+
function t0(e) {
|
|
1177
1193
|
for (var n = 1; n < arguments.length; n++) {
|
|
1178
1194
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
1179
|
-
n % 2 ?
|
|
1180
|
-
|
|
1181
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
1195
|
+
n % 2 ? oe(Object(t), !0).forEach(function(a) {
|
|
1196
|
+
Re(e, a, t[a]);
|
|
1197
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : oe(Object(t)).forEach(function(a) {
|
|
1182
1198
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
1183
1199
|
});
|
|
1184
1200
|
}
|
|
1185
1201
|
return e;
|
|
1186
1202
|
}
|
|
1187
|
-
var
|
|
1188
|
-
function an(e) {
|
|
1189
|
-
return e.match(tn);
|
|
1190
|
-
}
|
|
1203
|
+
var an = /\n/g;
|
|
1191
1204
|
function cn(e) {
|
|
1205
|
+
return e.match(an);
|
|
1206
|
+
}
|
|
1207
|
+
function sn(e) {
|
|
1192
1208
|
var n = e.lines, t = e.startingLineNumber, a = e.style;
|
|
1193
1209
|
return n.map(function(s, c) {
|
|
1194
1210
|
var l = c + t;
|
|
1195
|
-
return /* @__PURE__ */
|
|
1211
|
+
return /* @__PURE__ */ g0.createElement("span", {
|
|
1196
1212
|
key: "line-".concat(c),
|
|
1197
1213
|
className: "react-syntax-highlighter-line-number",
|
|
1198
1214
|
style: typeof a == "function" ? a(l) : a
|
|
@@ -1200,24 +1216,24 @@ function cn(e) {
|
|
|
1200
1216
|
`));
|
|
1201
1217
|
});
|
|
1202
1218
|
}
|
|
1203
|
-
function
|
|
1219
|
+
function rn(e) {
|
|
1204
1220
|
var n = e.codeString, t = e.codeStyle, a = e.containerStyle, s = a === void 0 ? {
|
|
1205
1221
|
float: "left",
|
|
1206
1222
|
paddingRight: "10px"
|
|
1207
1223
|
} : a, c = e.numberStyle, l = c === void 0 ? {} : c, i = e.startingLineNumber;
|
|
1208
|
-
return /* @__PURE__ */
|
|
1224
|
+
return /* @__PURE__ */ g0.createElement("code", {
|
|
1209
1225
|
style: Object.assign({}, t, s)
|
|
1210
|
-
},
|
|
1226
|
+
}, sn({
|
|
1211
1227
|
lines: n.replace(/\n$/, "").split(`
|
|
1212
1228
|
`),
|
|
1213
1229
|
style: l,
|
|
1214
1230
|
startingLineNumber: i
|
|
1215
1231
|
}));
|
|
1216
1232
|
}
|
|
1217
|
-
function
|
|
1233
|
+
function on(e) {
|
|
1218
1234
|
return "".concat(e.toString().length, ".25em");
|
|
1219
1235
|
}
|
|
1220
|
-
function
|
|
1236
|
+
function Ie(e, n) {
|
|
1221
1237
|
return {
|
|
1222
1238
|
type: "element",
|
|
1223
1239
|
tagName: "span",
|
|
@@ -1232,23 +1248,23 @@ function ke(e, n) {
|
|
|
1232
1248
|
}]
|
|
1233
1249
|
};
|
|
1234
1250
|
}
|
|
1235
|
-
function
|
|
1251
|
+
function Le(e, n, t) {
|
|
1236
1252
|
var a = {
|
|
1237
1253
|
display: "inline-block",
|
|
1238
|
-
minWidth:
|
|
1254
|
+
minWidth: on(t),
|
|
1239
1255
|
paddingRight: "1em",
|
|
1240
1256
|
textAlign: "right",
|
|
1241
1257
|
userSelect: "none"
|
|
1242
|
-
}, s = typeof e == "function" ? e(n) : e, c =
|
|
1258
|
+
}, s = typeof e == "function" ? e(n) : e, c = t0(t0({}, a), s);
|
|
1243
1259
|
return c;
|
|
1244
1260
|
}
|
|
1245
1261
|
function k0(e) {
|
|
1246
1262
|
var n = e.children, t = e.lineNumber, a = e.lineNumberStyle, s = e.largestLineNumber, c = e.showInlineLineNumbers, l = e.lineProps, i = l === void 0 ? {} : l, r = e.className, g = r === void 0 ? [] : r, o = e.showLineNumbers, m = e.wrapLongLines, b = typeof i == "function" ? i(t) : i;
|
|
1247
1263
|
if (b.className = g, t && c) {
|
|
1248
|
-
var v =
|
|
1249
|
-
n.unshift(
|
|
1264
|
+
var v = Le(a, t, s);
|
|
1265
|
+
n.unshift(Ie(t, v));
|
|
1250
1266
|
}
|
|
1251
|
-
return m & o && (b.style =
|
|
1267
|
+
return m & o && (b.style = t0(t0({}, b.style), {}, {
|
|
1252
1268
|
display: "flex"
|
|
1253
1269
|
})), {
|
|
1254
1270
|
type: "element",
|
|
@@ -1257,29 +1273,29 @@ function k0(e) {
|
|
|
1257
1273
|
children: n
|
|
1258
1274
|
};
|
|
1259
1275
|
}
|
|
1260
|
-
function
|
|
1276
|
+
function Ce(e) {
|
|
1261
1277
|
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], a = 0; a < e.length; a++) {
|
|
1262
1278
|
var s = e[a];
|
|
1263
1279
|
if (s.type === "text")
|
|
1264
1280
|
t.push(k0({
|
|
1265
1281
|
children: [s],
|
|
1266
|
-
className:
|
|
1282
|
+
className: K1(new Set(n))
|
|
1267
1283
|
}));
|
|
1268
1284
|
else if (s.children) {
|
|
1269
1285
|
var c = n.concat(s.properties.className);
|
|
1270
|
-
|
|
1286
|
+
Ce(s.children, c).forEach(function(l) {
|
|
1271
1287
|
return t.push(l);
|
|
1272
1288
|
});
|
|
1273
1289
|
}
|
|
1274
1290
|
}
|
|
1275
1291
|
return t;
|
|
1276
1292
|
}
|
|
1277
|
-
function
|
|
1278
|
-
var g, o =
|
|
1279
|
-
function L(
|
|
1293
|
+
function ln(e, n, t, a, s, c, l, i, r) {
|
|
1294
|
+
var g, o = Ce(e.value), m = [], b = -1, v = 0;
|
|
1295
|
+
function L(C, _) {
|
|
1280
1296
|
var T = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
1281
1297
|
return k0({
|
|
1282
|
-
children:
|
|
1298
|
+
children: C,
|
|
1283
1299
|
lineNumber: _,
|
|
1284
1300
|
lineNumberStyle: i,
|
|
1285
1301
|
largestLineNumber: l,
|
|
@@ -1290,52 +1306,52 @@ function on(e, n, t, a, s, c, l, i, r) {
|
|
|
1290
1306
|
wrapLongLines: r
|
|
1291
1307
|
});
|
|
1292
1308
|
}
|
|
1293
|
-
function S(
|
|
1309
|
+
function S(C, _) {
|
|
1294
1310
|
if (a && _ && s) {
|
|
1295
|
-
var T =
|
|
1296
|
-
|
|
1311
|
+
var T = Le(i, _, l);
|
|
1312
|
+
C.unshift(Ie(_, T));
|
|
1297
1313
|
}
|
|
1298
|
-
return
|
|
1314
|
+
return C;
|
|
1299
1315
|
}
|
|
1300
|
-
function A(
|
|
1316
|
+
function A(C, _) {
|
|
1301
1317
|
var T = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
1302
|
-
return n || T.length > 0 ? L(
|
|
1318
|
+
return n || T.length > 0 ? L(C, _, T) : S(C, _);
|
|
1303
1319
|
}
|
|
1304
1320
|
for (var x = function() {
|
|
1305
|
-
var _ = o[v], T = _.children[0].value, P =
|
|
1321
|
+
var _ = o[v], T = _.children[0].value, P = cn(T);
|
|
1306
1322
|
if (P) {
|
|
1307
|
-
var
|
|
1323
|
+
var K = T.split(`
|
|
1308
1324
|
`);
|
|
1309
|
-
|
|
1310
|
-
var
|
|
1325
|
+
K.forEach(function(X, q) {
|
|
1326
|
+
var Q = a && m.length + c, p0 = {
|
|
1311
1327
|
type: "text",
|
|
1312
|
-
value: "".concat(
|
|
1328
|
+
value: "".concat(X, `
|
|
1313
1329
|
`)
|
|
1314
1330
|
};
|
|
1315
|
-
if (
|
|
1316
|
-
var
|
|
1317
|
-
children: [
|
|
1331
|
+
if (q === 0) {
|
|
1332
|
+
var y0 = o.slice(b + 1, v).concat(k0({
|
|
1333
|
+
children: [p0],
|
|
1318
1334
|
className: _.properties.className
|
|
1319
|
-
})), G = A(
|
|
1335
|
+
})), G = A(y0, Q);
|
|
1320
1336
|
m.push(G);
|
|
1321
|
-
} else if (
|
|
1322
|
-
var
|
|
1337
|
+
} else if (q === K.length - 1) {
|
|
1338
|
+
var b0 = o[v + 1] && o[v + 1].children && o[v + 1].children[0], o0 = {
|
|
1323
1339
|
type: "text",
|
|
1324
|
-
value: "".concat(
|
|
1340
|
+
value: "".concat(X)
|
|
1325
1341
|
};
|
|
1326
|
-
if (
|
|
1327
|
-
var
|
|
1328
|
-
children: [
|
|
1342
|
+
if (b0) {
|
|
1343
|
+
var l0 = k0({
|
|
1344
|
+
children: [o0],
|
|
1329
1345
|
className: _.properties.className
|
|
1330
1346
|
});
|
|
1331
|
-
o.splice(v + 1, 0,
|
|
1347
|
+
o.splice(v + 1, 0, l0);
|
|
1332
1348
|
} else {
|
|
1333
|
-
var
|
|
1334
|
-
m.push(
|
|
1349
|
+
var s0 = [o0], Y = A(s0, Q, _.properties.className);
|
|
1350
|
+
m.push(Y);
|
|
1335
1351
|
}
|
|
1336
1352
|
} else {
|
|
1337
|
-
var
|
|
1338
|
-
m.push(
|
|
1353
|
+
var N0 = [p0], O0 = A(N0, Q, _.properties.className);
|
|
1354
|
+
m.push(O0);
|
|
1339
1355
|
}
|
|
1340
1356
|
}), b = v;
|
|
1341
1357
|
}
|
|
@@ -1351,10 +1367,10 @@ function on(e, n, t, a, s, c, l, i, r) {
|
|
|
1351
1367
|
}
|
|
1352
1368
|
return n ? m : (g = []).concat.apply(g, m);
|
|
1353
1369
|
}
|
|
1354
|
-
function
|
|
1370
|
+
function un(e) {
|
|
1355
1371
|
var n = e.rows, t = e.stylesheet, a = e.useInlineStyles;
|
|
1356
1372
|
return n.map(function(s, c) {
|
|
1357
|
-
return
|
|
1373
|
+
return Te({
|
|
1358
1374
|
node: s,
|
|
1359
1375
|
stylesheet: t,
|
|
1360
1376
|
useInlineStyles: a,
|
|
@@ -1362,13 +1378,13 @@ function ln(e) {
|
|
|
1362
1378
|
});
|
|
1363
1379
|
});
|
|
1364
1380
|
}
|
|
1365
|
-
function
|
|
1381
|
+
function ke(e) {
|
|
1366
1382
|
return e && typeof e.highlightAuto < "u";
|
|
1367
1383
|
}
|
|
1368
|
-
function
|
|
1384
|
+
function gn(e) {
|
|
1369
1385
|
var n = e.astGenerator, t = e.language, a = e.code, s = e.defaultCodeValue;
|
|
1370
|
-
if (
|
|
1371
|
-
var c =
|
|
1386
|
+
if (ke(n)) {
|
|
1387
|
+
var c = nn(n, t);
|
|
1372
1388
|
return t === "text" ? {
|
|
1373
1389
|
value: s,
|
|
1374
1390
|
language: "text"
|
|
@@ -1386,66 +1402,66 @@ function un(e) {
|
|
|
1386
1402
|
};
|
|
1387
1403
|
}
|
|
1388
1404
|
}
|
|
1389
|
-
function
|
|
1405
|
+
function mn(e, n) {
|
|
1390
1406
|
return function(a) {
|
|
1391
1407
|
var s = a.language, c = a.children, l = a.style, i = l === void 0 ? n : l, r = a.customStyle, g = r === void 0 ? {} : r, o = a.codeTagProps, m = o === void 0 ? {
|
|
1392
1408
|
className: s ? "language-".concat(s) : void 0,
|
|
1393
|
-
style:
|
|
1394
|
-
} : o, b = a.useInlineStyles, v = b === void 0 ? !0 : b, L = a.showLineNumbers, S = L === void 0 ? !1 : L, A = a.showInlineLineNumbers, x = A === void 0 ? !0 : A, w = a.startingLineNumber, M = w === void 0 ? 1 : w, R = a.lineNumberContainerStyle,
|
|
1395
|
-
|
|
1396
|
-
var
|
|
1409
|
+
style: t0(t0({}, i['code[class*="language-"]']), i['code[class*="language-'.concat(s, '"]')])
|
|
1410
|
+
} : o, b = a.useInlineStyles, v = b === void 0 ? !0 : b, L = a.showLineNumbers, S = L === void 0 ? !1 : L, A = a.showInlineLineNumbers, x = A === void 0 ? !0 : A, w = a.startingLineNumber, M = w === void 0 ? 1 : w, R = a.lineNumberContainerStyle, C = a.lineNumberStyle, _ = C === void 0 ? {} : C, T = a.wrapLines, P = a.wrapLongLines, K = P === void 0 ? !1 : P, X = a.lineProps, q = X === void 0 ? {} : X, Q = a.renderer, p0 = a.PreTag, y0 = p0 === void 0 ? "pre" : p0, G = a.CodeTag, b0 = G === void 0 ? "code" : G, o0 = a.code, l0 = o0 === void 0 ? (Array.isArray(c) ? c[0] : c) || "" : o0, s0 = a.astGenerator, Y = G1(a, tn);
|
|
1411
|
+
s0 = s0 || e;
|
|
1412
|
+
var N0 = S ? /* @__PURE__ */ g0.createElement(rn, {
|
|
1397
1413
|
containerStyle: R,
|
|
1398
1414
|
codeStyle: m.style || {},
|
|
1399
1415
|
numberStyle: _,
|
|
1400
1416
|
startingLineNumber: M,
|
|
1401
|
-
codeString:
|
|
1402
|
-
}) : null,
|
|
1417
|
+
codeString: l0
|
|
1418
|
+
}) : null, O0 = i.hljs || i['pre[class*="language-"]'] || {
|
|
1403
1419
|
backgroundColor: "#fff"
|
|
1404
|
-
}, u =
|
|
1405
|
-
style: Object.assign({},
|
|
1406
|
-
}) : Object.assign({},
|
|
1407
|
-
className:
|
|
1420
|
+
}, u = ke(s0) ? "hljs" : "prismjs", f = v ? Object.assign({}, Y, {
|
|
1421
|
+
style: Object.assign({}, O0, g)
|
|
1422
|
+
}) : Object.assign({}, Y, {
|
|
1423
|
+
className: Y.className ? "".concat(u, " ").concat(Y.className) : u,
|
|
1408
1424
|
style: Object.assign({}, g)
|
|
1409
1425
|
});
|
|
1410
|
-
if (
|
|
1426
|
+
if (K ? m.style = t0(t0({}, m.style), {}, {
|
|
1411
1427
|
whiteSpace: "pre-wrap"
|
|
1412
|
-
}) : m.style =
|
|
1428
|
+
}) : m.style = t0(t0({}, m.style), {}, {
|
|
1413
1429
|
whiteSpace: "pre"
|
|
1414
|
-
}), !
|
|
1415
|
-
return /* @__PURE__ */
|
|
1416
|
-
(T === void 0 &&
|
|
1430
|
+
}), !s0)
|
|
1431
|
+
return /* @__PURE__ */ g0.createElement(y0, f, N0, /* @__PURE__ */ g0.createElement(b0, m, l0));
|
|
1432
|
+
(T === void 0 && Q || K) && (T = !0), Q = Q || un;
|
|
1417
1433
|
var E = [{
|
|
1418
1434
|
type: "text",
|
|
1419
|
-
value:
|
|
1420
|
-
}], O =
|
|
1421
|
-
astGenerator:
|
|
1435
|
+
value: l0
|
|
1436
|
+
}], O = gn({
|
|
1437
|
+
astGenerator: s0,
|
|
1422
1438
|
language: s,
|
|
1423
|
-
code:
|
|
1439
|
+
code: l0,
|
|
1424
1440
|
defaultCodeValue: E
|
|
1425
1441
|
});
|
|
1426
1442
|
O.language === null && (O.value = E);
|
|
1427
|
-
var
|
|
1428
|
-
return /* @__PURE__ */
|
|
1429
|
-
rows:
|
|
1443
|
+
var k = O.value.length + M, i0 = ln(O, T, q, S, x, M, k, _, K);
|
|
1444
|
+
return /* @__PURE__ */ g0.createElement(y0, f, /* @__PURE__ */ g0.createElement(b0, m, !x && N0, Q({
|
|
1445
|
+
rows: i0,
|
|
1430
1446
|
stylesheet: i,
|
|
1431
1447
|
useInlineStyles: v
|
|
1432
1448
|
})));
|
|
1433
1449
|
};
|
|
1434
1450
|
}
|
|
1435
|
-
var
|
|
1436
|
-
function
|
|
1451
|
+
var E0 = {};
|
|
1452
|
+
function Q0(e) {
|
|
1437
1453
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
1438
1454
|
throw new Error("map is read-only");
|
|
1439
1455
|
} : e instanceof Set && (e.add = e.clear = e.delete = function() {
|
|
1440
1456
|
throw new Error("set is read-only");
|
|
1441
1457
|
}), Object.freeze(e), Object.getOwnPropertyNames(e).forEach(function(n) {
|
|
1442
1458
|
var t = e[n];
|
|
1443
|
-
typeof t == "object" && !Object.isFrozen(t) &&
|
|
1459
|
+
typeof t == "object" && !Object.isFrozen(t) && Q0(t);
|
|
1444
1460
|
}), e;
|
|
1445
1461
|
}
|
|
1446
|
-
var
|
|
1447
|
-
|
|
1448
|
-
class
|
|
1462
|
+
var De = Q0, dn = Q0;
|
|
1463
|
+
De.default = dn;
|
|
1464
|
+
class le {
|
|
1449
1465
|
/**
|
|
1450
1466
|
* @param {CompiledMode} mode
|
|
1451
1467
|
*/
|
|
@@ -1456,10 +1472,10 @@ class me {
|
|
|
1456
1472
|
this.isMatchIgnored = !0;
|
|
1457
1473
|
}
|
|
1458
1474
|
}
|
|
1459
|
-
function
|
|
1475
|
+
function S0(e) {
|
|
1460
1476
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1461
1477
|
}
|
|
1462
|
-
function
|
|
1478
|
+
function m0(e, ...n) {
|
|
1463
1479
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1464
1480
|
for (const a in e)
|
|
1465
1481
|
t[a] = e[a];
|
|
@@ -1469,8 +1485,8 @@ function g0(e, ...n) {
|
|
|
1469
1485
|
}), /** @type {T} */
|
|
1470
1486
|
t;
|
|
1471
1487
|
}
|
|
1472
|
-
const
|
|
1473
|
-
class
|
|
1488
|
+
const fn = "</span>", ue = (e) => !!e.kind;
|
|
1489
|
+
class hn {
|
|
1474
1490
|
/**
|
|
1475
1491
|
* Creates a new HTMLRenderer
|
|
1476
1492
|
*
|
|
@@ -1485,14 +1501,14 @@ class fn {
|
|
|
1485
1501
|
*
|
|
1486
1502
|
* @param {string} text */
|
|
1487
1503
|
addText(n) {
|
|
1488
|
-
this.buffer +=
|
|
1504
|
+
this.buffer += S0(n);
|
|
1489
1505
|
}
|
|
1490
1506
|
/**
|
|
1491
1507
|
* Adds a node open to the output stream (if needed)
|
|
1492
1508
|
*
|
|
1493
1509
|
* @param {Node} node */
|
|
1494
1510
|
openNode(n) {
|
|
1495
|
-
if (!
|
|
1511
|
+
if (!ue(n))
|
|
1496
1512
|
return;
|
|
1497
1513
|
let t = n.kind;
|
|
1498
1514
|
n.sublanguage || (t = `${this.classPrefix}${t}`), this.span(t);
|
|
@@ -1502,7 +1518,7 @@ class fn {
|
|
|
1502
1518
|
*
|
|
1503
1519
|
* @param {Node} node */
|
|
1504
1520
|
closeNode(n) {
|
|
1505
|
-
|
|
1521
|
+
ue(n) && (this.buffer += fn);
|
|
1506
1522
|
}
|
|
1507
1523
|
/**
|
|
1508
1524
|
* returns the accumulated buffer
|
|
@@ -1519,7 +1535,7 @@ class fn {
|
|
|
1519
1535
|
this.buffer += `<span class="${n}">`;
|
|
1520
1536
|
}
|
|
1521
1537
|
}
|
|
1522
|
-
class
|
|
1538
|
+
class J0 {
|
|
1523
1539
|
constructor() {
|
|
1524
1540
|
this.rootNode = { children: [] }, this.stack = [this.rootNode];
|
|
1525
1541
|
}
|
|
@@ -1568,11 +1584,11 @@ class te {
|
|
|
1568
1584
|
*/
|
|
1569
1585
|
static _collapse(n) {
|
|
1570
1586
|
typeof n != "string" && n.children && (n.children.every((t) => typeof t == "string") ? n.children = [n.children.join("")] : n.children.forEach((t) => {
|
|
1571
|
-
|
|
1587
|
+
J0._collapse(t);
|
|
1572
1588
|
}));
|
|
1573
1589
|
}
|
|
1574
1590
|
}
|
|
1575
|
-
class
|
|
1591
|
+
class pn extends J0 {
|
|
1576
1592
|
/**
|
|
1577
1593
|
* @param {*} options
|
|
1578
1594
|
*/
|
|
@@ -1601,40 +1617,40 @@ class hn extends te {
|
|
|
1601
1617
|
a.kind = t, a.sublanguage = !0, this.add(a);
|
|
1602
1618
|
}
|
|
1603
1619
|
toHTML() {
|
|
1604
|
-
return new
|
|
1620
|
+
return new hn(this, this.options).value();
|
|
1605
1621
|
}
|
|
1606
1622
|
finalize() {
|
|
1607
1623
|
return !0;
|
|
1608
1624
|
}
|
|
1609
1625
|
}
|
|
1610
|
-
function
|
|
1626
|
+
function bn(e) {
|
|
1611
1627
|
return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), "m");
|
|
1612
1628
|
}
|
|
1613
|
-
function
|
|
1629
|
+
function M0(e) {
|
|
1614
1630
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
1615
1631
|
}
|
|
1616
|
-
function bn(...e) {
|
|
1617
|
-
return e.map((t) => A0(t)).join("");
|
|
1618
|
-
}
|
|
1619
1632
|
function vn(...e) {
|
|
1620
|
-
return
|
|
1633
|
+
return e.map((t) => M0(t)).join("");
|
|
1634
|
+
}
|
|
1635
|
+
function En(...e) {
|
|
1636
|
+
return "(" + e.map((t) => M0(t)).join("|") + ")";
|
|
1621
1637
|
}
|
|
1622
|
-
function
|
|
1638
|
+
function yn(e) {
|
|
1623
1639
|
return new RegExp(e.toString() + "|").exec("").length - 1;
|
|
1624
1640
|
}
|
|
1625
|
-
function
|
|
1641
|
+
function Nn(e, n) {
|
|
1626
1642
|
const t = e && e.exec(n);
|
|
1627
1643
|
return t && t.index === 0;
|
|
1628
1644
|
}
|
|
1629
|
-
const
|
|
1630
|
-
function
|
|
1645
|
+
const xn = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
1646
|
+
function _n(e, n = "|") {
|
|
1631
1647
|
let t = 0;
|
|
1632
1648
|
return e.map((a) => {
|
|
1633
1649
|
t += 1;
|
|
1634
1650
|
const s = t;
|
|
1635
|
-
let c =
|
|
1651
|
+
let c = M0(a), l = "";
|
|
1636
1652
|
for (; c.length > 0; ) {
|
|
1637
|
-
const i =
|
|
1653
|
+
const i = xn.exec(c);
|
|
1638
1654
|
if (!i) {
|
|
1639
1655
|
l += c;
|
|
1640
1656
|
break;
|
|
@@ -1644,14 +1660,14 @@ function xn(e, n = "|") {
|
|
|
1644
1660
|
return l;
|
|
1645
1661
|
}).map((a) => `(${a})`).join(n);
|
|
1646
1662
|
}
|
|
1647
|
-
const
|
|
1663
|
+
const wn = /\b\B/, Be = "[a-zA-Z]\\w*", ee = "[a-zA-Z_]\\w*", ne = "\\b\\d+(\\.\\d+)?", Pe = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", $e = "\\b(0b[01]+)", Sn = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", On = (e = {}) => {
|
|
1648
1664
|
const n = /^#![ ]*\//;
|
|
1649
|
-
return e.binary && (e.begin =
|
|
1665
|
+
return e.binary && (e.begin = vn(
|
|
1650
1666
|
n,
|
|
1651
1667
|
/.*\b/,
|
|
1652
1668
|
e.binary,
|
|
1653
1669
|
/\b.*/
|
|
1654
|
-
)),
|
|
1670
|
+
)), m0({
|
|
1655
1671
|
className: "meta",
|
|
1656
1672
|
begin: n,
|
|
1657
1673
|
end: /$/,
|
|
@@ -1661,25 +1677,25 @@ const _n = /\b\B/, $e = "[a-zA-Z]\\w*", ae = "[a-zA-Z_]\\w*", ce = "\\b\\d+(\\.\
|
|
|
1661
1677
|
t.index !== 0 && a.ignoreMatch();
|
|
1662
1678
|
}
|
|
1663
1679
|
}, e);
|
|
1664
|
-
},
|
|
1680
|
+
}, R0 = {
|
|
1665
1681
|
begin: "\\\\[\\s\\S]",
|
|
1666
1682
|
relevance: 0
|
|
1667
|
-
},
|
|
1683
|
+
}, An = {
|
|
1668
1684
|
className: "string",
|
|
1669
1685
|
begin: "'",
|
|
1670
1686
|
end: "'",
|
|
1671
1687
|
illegal: "\\n",
|
|
1672
|
-
contains: [
|
|
1673
|
-
},
|
|
1688
|
+
contains: [R0]
|
|
1689
|
+
}, Mn = {
|
|
1674
1690
|
className: "string",
|
|
1675
1691
|
begin: '"',
|
|
1676
1692
|
end: '"',
|
|
1677
1693
|
illegal: "\\n",
|
|
1678
|
-
contains: [
|
|
1679
|
-
},
|
|
1694
|
+
contains: [R0]
|
|
1695
|
+
}, Ue = {
|
|
1680
1696
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
|
1681
|
-
},
|
|
1682
|
-
const a =
|
|
1697
|
+
}, $0 = function(e, n, t = {}) {
|
|
1698
|
+
const a = m0(
|
|
1683
1699
|
{
|
|
1684
1700
|
className: "comment",
|
|
1685
1701
|
begin: e,
|
|
@@ -1688,28 +1704,28 @@ const _n = /\b\B/, $e = "[a-zA-Z]\\w*", ae = "[a-zA-Z_]\\w*", ce = "\\b\\d+(\\.\
|
|
|
1688
1704
|
},
|
|
1689
1705
|
t
|
|
1690
1706
|
);
|
|
1691
|
-
return a.contains.push(
|
|
1707
|
+
return a.contains.push(Ue), a.contains.push({
|
|
1692
1708
|
className: "doctag",
|
|
1693
1709
|
begin: "(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",
|
|
1694
1710
|
relevance: 0
|
|
1695
1711
|
}), a;
|
|
1696
|
-
},
|
|
1712
|
+
}, Rn = $0("//", "$"), Tn = $0("/\\*", "\\*/"), In = $0("#", "$"), Ln = {
|
|
1697
1713
|
className: "number",
|
|
1698
|
-
begin:
|
|
1714
|
+
begin: ne,
|
|
1699
1715
|
relevance: 0
|
|
1700
|
-
},
|
|
1716
|
+
}, Cn = {
|
|
1701
1717
|
className: "number",
|
|
1702
|
-
begin:
|
|
1718
|
+
begin: Pe,
|
|
1703
1719
|
relevance: 0
|
|
1704
1720
|
}, kn = {
|
|
1705
1721
|
className: "number",
|
|
1706
|
-
begin:
|
|
1722
|
+
begin: $e,
|
|
1707
1723
|
relevance: 0
|
|
1708
|
-
},
|
|
1724
|
+
}, Dn = {
|
|
1709
1725
|
className: "number",
|
|
1710
|
-
begin:
|
|
1726
|
+
begin: ne + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
|
|
1711
1727
|
relevance: 0
|
|
1712
|
-
},
|
|
1728
|
+
}, Bn = {
|
|
1713
1729
|
// this outer rule makes sure we actually have a WHOLE regex and not simply
|
|
1714
1730
|
// an expression such as:
|
|
1715
1731
|
//
|
|
@@ -1723,28 +1739,28 @@ const _n = /\b\B/, $e = "[a-zA-Z]\\w*", ae = "[a-zA-Z_]\\w*", ce = "\\b\\d+(\\.\
|
|
|
1723
1739
|
end: /\/[gimuy]*/,
|
|
1724
1740
|
illegal: /\n/,
|
|
1725
1741
|
contains: [
|
|
1726
|
-
|
|
1742
|
+
R0,
|
|
1727
1743
|
{
|
|
1728
1744
|
begin: /\[/,
|
|
1729
1745
|
end: /\]/,
|
|
1730
1746
|
relevance: 0,
|
|
1731
|
-
contains: [
|
|
1747
|
+
contains: [R0]
|
|
1732
1748
|
}
|
|
1733
1749
|
]
|
|
1734
1750
|
}]
|
|
1735
|
-
}, Bn = {
|
|
1736
|
-
className: "title",
|
|
1737
|
-
begin: $e,
|
|
1738
|
-
relevance: 0
|
|
1739
1751
|
}, Pn = {
|
|
1740
1752
|
className: "title",
|
|
1741
|
-
begin:
|
|
1753
|
+
begin: Be,
|
|
1742
1754
|
relevance: 0
|
|
1743
1755
|
}, $n = {
|
|
1756
|
+
className: "title",
|
|
1757
|
+
begin: ee,
|
|
1758
|
+
relevance: 0
|
|
1759
|
+
}, Un = {
|
|
1744
1760
|
// excludes method names from keyword processing
|
|
1745
|
-
begin: "\\.\\s*" +
|
|
1761
|
+
begin: "\\.\\s*" + ee,
|
|
1746
1762
|
relevance: 0
|
|
1747
|
-
},
|
|
1763
|
+
}, Hn = function(e) {
|
|
1748
1764
|
return Object.assign(
|
|
1749
1765
|
e,
|
|
1750
1766
|
{
|
|
@@ -1759,44 +1775,44 @@ const _n = /\b\B/, $e = "[a-zA-Z]\\w*", ae = "[a-zA-Z_]\\w*", ce = "\\b\\d+(\\.\
|
|
|
1759
1775
|
}
|
|
1760
1776
|
);
|
|
1761
1777
|
};
|
|
1762
|
-
var
|
|
1778
|
+
var C0 = /* @__PURE__ */ Object.freeze({
|
|
1763
1779
|
__proto__: null,
|
|
1764
|
-
MATCH_NOTHING_RE:
|
|
1765
|
-
IDENT_RE:
|
|
1766
|
-
UNDERSCORE_IDENT_RE:
|
|
1767
|
-
NUMBER_RE:
|
|
1768
|
-
C_NUMBER_RE:
|
|
1769
|
-
BINARY_NUMBER_RE:
|
|
1770
|
-
RE_STARTERS_RE:
|
|
1771
|
-
SHEBANG:
|
|
1772
|
-
BACKSLASH_ESCAPE:
|
|
1773
|
-
APOS_STRING_MODE:
|
|
1774
|
-
QUOTE_STRING_MODE:
|
|
1775
|
-
PHRASAL_WORDS_MODE:
|
|
1776
|
-
COMMENT:
|
|
1777
|
-
C_LINE_COMMENT_MODE:
|
|
1778
|
-
C_BLOCK_COMMENT_MODE:
|
|
1779
|
-
HASH_COMMENT_MODE:
|
|
1780
|
-
NUMBER_MODE:
|
|
1781
|
-
C_NUMBER_MODE:
|
|
1780
|
+
MATCH_NOTHING_RE: wn,
|
|
1781
|
+
IDENT_RE: Be,
|
|
1782
|
+
UNDERSCORE_IDENT_RE: ee,
|
|
1783
|
+
NUMBER_RE: ne,
|
|
1784
|
+
C_NUMBER_RE: Pe,
|
|
1785
|
+
BINARY_NUMBER_RE: $e,
|
|
1786
|
+
RE_STARTERS_RE: Sn,
|
|
1787
|
+
SHEBANG: On,
|
|
1788
|
+
BACKSLASH_ESCAPE: R0,
|
|
1789
|
+
APOS_STRING_MODE: An,
|
|
1790
|
+
QUOTE_STRING_MODE: Mn,
|
|
1791
|
+
PHRASAL_WORDS_MODE: Ue,
|
|
1792
|
+
COMMENT: $0,
|
|
1793
|
+
C_LINE_COMMENT_MODE: Rn,
|
|
1794
|
+
C_BLOCK_COMMENT_MODE: Tn,
|
|
1795
|
+
HASH_COMMENT_MODE: In,
|
|
1796
|
+
NUMBER_MODE: Ln,
|
|
1797
|
+
C_NUMBER_MODE: Cn,
|
|
1782
1798
|
BINARY_NUMBER_MODE: kn,
|
|
1783
|
-
CSS_NUMBER_MODE:
|
|
1784
|
-
REGEXP_MODE:
|
|
1785
|
-
TITLE_MODE:
|
|
1786
|
-
UNDERSCORE_TITLE_MODE:
|
|
1787
|
-
METHOD_GUARD:
|
|
1788
|
-
END_SAME_AS_BEGIN:
|
|
1799
|
+
CSS_NUMBER_MODE: Dn,
|
|
1800
|
+
REGEXP_MODE: Bn,
|
|
1801
|
+
TITLE_MODE: Pn,
|
|
1802
|
+
UNDERSCORE_TITLE_MODE: $n,
|
|
1803
|
+
METHOD_GUARD: Un,
|
|
1804
|
+
END_SAME_AS_BEGIN: Hn
|
|
1789
1805
|
});
|
|
1790
|
-
function Hn(e, n) {
|
|
1791
|
-
e.input[e.index - 1] === "." && n.ignoreMatch();
|
|
1792
|
-
}
|
|
1793
1806
|
function jn(e, n) {
|
|
1794
|
-
|
|
1807
|
+
e.input[e.index - 1] === "." && n.ignoreMatch();
|
|
1795
1808
|
}
|
|
1796
1809
|
function zn(e, n) {
|
|
1797
|
-
|
|
1810
|
+
n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = jn, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
1798
1811
|
}
|
|
1799
1812
|
function Gn(e, n) {
|
|
1813
|
+
Array.isArray(e.illegal) && (e.illegal = En(...e.illegal));
|
|
1814
|
+
}
|
|
1815
|
+
function Zn(e, n) {
|
|
1800
1816
|
if (e.match) {
|
|
1801
1817
|
if (e.begin || e.end)
|
|
1802
1818
|
throw new Error("begin & end are not supported with match");
|
|
@@ -1806,7 +1822,7 @@ function Gn(e, n) {
|
|
|
1806
1822
|
function Vn(e, n) {
|
|
1807
1823
|
e.relevance === void 0 && (e.relevance = 1);
|
|
1808
1824
|
}
|
|
1809
|
-
const
|
|
1825
|
+
const Wn = [
|
|
1810
1826
|
"of",
|
|
1811
1827
|
"and",
|
|
1812
1828
|
"for",
|
|
@@ -1821,32 +1837,32 @@ const Zn = [
|
|
|
1821
1837
|
// common variable name
|
|
1822
1838
|
"value"
|
|
1823
1839
|
// common variable name
|
|
1824
|
-
],
|
|
1825
|
-
function
|
|
1840
|
+
], Fn = "keyword";
|
|
1841
|
+
function He(e, n, t = Fn) {
|
|
1826
1842
|
const a = {};
|
|
1827
1843
|
return typeof e == "string" ? s(t, e.split(" ")) : Array.isArray(e) ? s(t, e) : Object.keys(e).forEach(function(c) {
|
|
1828
1844
|
Object.assign(
|
|
1829
1845
|
a,
|
|
1830
|
-
|
|
1846
|
+
He(e[c], n, c)
|
|
1831
1847
|
);
|
|
1832
1848
|
}), a;
|
|
1833
1849
|
function s(c, l) {
|
|
1834
1850
|
n && (l = l.map((i) => i.toLowerCase())), l.forEach(function(i) {
|
|
1835
1851
|
const r = i.split("|");
|
|
1836
|
-
a[r[0]] = [c,
|
|
1852
|
+
a[r[0]] = [c, Kn(r[0], r[1])];
|
|
1837
1853
|
});
|
|
1838
1854
|
}
|
|
1839
1855
|
}
|
|
1840
|
-
function
|
|
1841
|
-
return n ? Number(n) :
|
|
1856
|
+
function Kn(e, n) {
|
|
1857
|
+
return n ? Number(n) : Yn(e) ? 0 : 1;
|
|
1842
1858
|
}
|
|
1843
|
-
function
|
|
1844
|
-
return
|
|
1859
|
+
function Yn(e) {
|
|
1860
|
+
return Wn.includes(e.toLowerCase());
|
|
1845
1861
|
}
|
|
1846
|
-
function
|
|
1862
|
+
function Xn(e, { plugins: n }) {
|
|
1847
1863
|
function t(i, r) {
|
|
1848
1864
|
return new RegExp(
|
|
1849
|
-
|
|
1865
|
+
M0(i),
|
|
1850
1866
|
"m" + (e.case_insensitive ? "i" : "") + (r ? "g" : "")
|
|
1851
1867
|
);
|
|
1852
1868
|
}
|
|
@@ -1856,12 +1872,12 @@ function Yn(e, { plugins: n }) {
|
|
|
1856
1872
|
}
|
|
1857
1873
|
// @ts-ignore
|
|
1858
1874
|
addRule(r, g) {
|
|
1859
|
-
g.position = this.position++, this.matchIndexes[this.matchAt] = g, this.regexes.push([g, r]), this.matchAt +=
|
|
1875
|
+
g.position = this.position++, this.matchIndexes[this.matchAt] = g, this.regexes.push([g, r]), this.matchAt += yn(r) + 1;
|
|
1860
1876
|
}
|
|
1861
1877
|
compile() {
|
|
1862
1878
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
1863
1879
|
const r = this.regexes.map((g) => g[1]);
|
|
1864
|
-
this.matcherRe = t(
|
|
1880
|
+
this.matcherRe = t(_n(r), !0), this.lastIndex = 0;
|
|
1865
1881
|
}
|
|
1866
1882
|
/** @param {string} s */
|
|
1867
1883
|
exec(r) {
|
|
@@ -1920,23 +1936,23 @@ function Yn(e, { plugins: n }) {
|
|
|
1920
1936
|
[
|
|
1921
1937
|
// do this early so compiler extensions generally don't have to worry about
|
|
1922
1938
|
// the distinction between match/begin
|
|
1923
|
-
|
|
1939
|
+
Zn
|
|
1924
1940
|
].forEach((m) => m(i, r)), e.compilerExtensions.forEach((m) => m(i, r)), i.__beforeBegin = null, [
|
|
1925
|
-
|
|
1941
|
+
zn,
|
|
1926
1942
|
// do this later so compiler extensions that come earlier have access to the
|
|
1927
1943
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1928
|
-
|
|
1944
|
+
Gn,
|
|
1929
1945
|
// default to 1 relevance if not specified
|
|
1930
1946
|
Vn
|
|
1931
1947
|
].forEach((m) => m(i, r)), i.isCompiled = !0;
|
|
1932
1948
|
let o = null;
|
|
1933
|
-
if (typeof i.keywords == "object" && (o = i.keywords.$pattern, delete i.keywords.$pattern), i.keywords && (i.keywords =
|
|
1949
|
+
if (typeof i.keywords == "object" && (o = i.keywords.$pattern, delete i.keywords.$pattern), i.keywords && (i.keywords = He(i.keywords, e.case_insensitive)), i.lexemes && o)
|
|
1934
1950
|
throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");
|
|
1935
|
-
return o = o || i.lexemes || /\w+/, g.keywordPatternRe = t(o, !0), r && (i.begin || (i.begin = /\B|\b/), g.beginRe = t(i.begin), i.endSameAsBegin && (i.end = i.begin), !i.end && !i.endsWithParent && (i.end = /\B|\b/), i.end && (g.endRe = t(i.end)), g.terminatorEnd =
|
|
1951
|
+
return o = o || i.lexemes || /\w+/, g.keywordPatternRe = t(o, !0), r && (i.begin || (i.begin = /\B|\b/), g.beginRe = t(i.begin), i.endSameAsBegin && (i.end = i.begin), !i.end && !i.endsWithParent && (i.end = /\B|\b/), i.end && (g.endRe = t(i.end)), g.terminatorEnd = M0(i.end) || "", i.endsWithParent && r.terminatorEnd && (g.terminatorEnd += (i.end ? "|" : "") + r.terminatorEnd)), i.illegal && (g.illegalRe = t(
|
|
1936
1952
|
/** @type {RegExp | string} */
|
|
1937
1953
|
i.illegal
|
|
1938
1954
|
)), i.contains || (i.contains = []), i.contains = [].concat(...i.contains.map(function(m) {
|
|
1939
|
-
return
|
|
1955
|
+
return qn(m === "self" ? i : m);
|
|
1940
1956
|
})), i.contains.forEach(function(m) {
|
|
1941
1957
|
l(
|
|
1942
1958
|
/** @type Mode */
|
|
@@ -1947,24 +1963,24 @@ function Yn(e, { plugins: n }) {
|
|
|
1947
1963
|
}
|
|
1948
1964
|
if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
|
|
1949
1965
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
1950
|
-
return e.classNameAliases =
|
|
1966
|
+
return e.classNameAliases = m0(e.classNameAliases || {}), l(
|
|
1951
1967
|
/** @type Mode */
|
|
1952
1968
|
e
|
|
1953
1969
|
);
|
|
1954
1970
|
}
|
|
1955
|
-
function
|
|
1956
|
-
return e ? e.endsWithParent ||
|
|
1971
|
+
function je(e) {
|
|
1972
|
+
return e ? e.endsWithParent || je(e.starts) : !1;
|
|
1957
1973
|
}
|
|
1958
|
-
function
|
|
1974
|
+
function qn(e) {
|
|
1959
1975
|
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
|
|
1960
|
-
return
|
|
1961
|
-
})), e.cachedVariants ? e.cachedVariants :
|
|
1962
|
-
}
|
|
1963
|
-
var qn = "10.7.3";
|
|
1964
|
-
function Qn(e) {
|
|
1965
|
-
return Boolean(e || e === "");
|
|
1976
|
+
return m0(e, { variants: null }, n);
|
|
1977
|
+
})), e.cachedVariants ? e.cachedVariants : je(e) ? m0(e, { starts: e.starts ? m0(e.starts) : null }) : Object.isFrozen(e) ? m0(e) : e;
|
|
1966
1978
|
}
|
|
1979
|
+
var Qn = "10.7.3";
|
|
1967
1980
|
function Jn(e) {
|
|
1981
|
+
return !!(e || e === "");
|
|
1982
|
+
}
|
|
1983
|
+
function et(e) {
|
|
1968
1984
|
const n = {
|
|
1969
1985
|
props: ["language", "code", "autodetect"],
|
|
1970
1986
|
data: function() {
|
|
@@ -1979,12 +1995,12 @@ function Jn(e) {
|
|
|
1979
1995
|
},
|
|
1980
1996
|
highlighted() {
|
|
1981
1997
|
if (!this.autoDetect && !e.getLanguage(this.language))
|
|
1982
|
-
return console.warn(`The language "${this.language}" you specified could not be found.`), this.unknownLanguage = !0,
|
|
1998
|
+
return console.warn(`The language "${this.language}" you specified could not be found.`), this.unknownLanguage = !0, S0(this.code);
|
|
1983
1999
|
let a = {};
|
|
1984
2000
|
return this.autoDetect ? (a = e.highlightAuto(this.code), this.detectedLanguage = a.language) : (a = e.highlight(this.language, this.code, this.ignoreIllegals), this.detectedLanguage = this.language), a.value;
|
|
1985
2001
|
},
|
|
1986
2002
|
autoDetect() {
|
|
1987
|
-
return !this.language ||
|
|
2003
|
+
return !this.language || Jn(this.autodetect);
|
|
1988
2004
|
},
|
|
1989
2005
|
ignoreIllegals() {
|
|
1990
2006
|
return !0;
|
|
@@ -2008,19 +2024,19 @@ function Jn(e) {
|
|
|
2008
2024
|
}
|
|
2009
2025
|
} };
|
|
2010
2026
|
}
|
|
2011
|
-
const
|
|
2027
|
+
const nt = {
|
|
2012
2028
|
"after:highlightElement": ({ el: e, result: n, text: t }) => {
|
|
2013
|
-
const a =
|
|
2029
|
+
const a = ge(e);
|
|
2014
2030
|
if (!a.length)
|
|
2015
2031
|
return;
|
|
2016
2032
|
const s = document.createElement("div");
|
|
2017
|
-
s.innerHTML = n.value, n.value =
|
|
2033
|
+
s.innerHTML = n.value, n.value = tt(a, ge(s), t);
|
|
2018
2034
|
}
|
|
2019
2035
|
};
|
|
2020
2036
|
function K0(e) {
|
|
2021
2037
|
return e.nodeName.toLowerCase();
|
|
2022
2038
|
}
|
|
2023
|
-
function
|
|
2039
|
+
function ge(e) {
|
|
2024
2040
|
const n = [];
|
|
2025
2041
|
return function t(a, s) {
|
|
2026
2042
|
for (let c = a.firstChild; c; c = c.nextSibling)
|
|
@@ -2036,7 +2052,7 @@ function fe(e) {
|
|
|
2036
2052
|
return s;
|
|
2037
2053
|
}(e, 0), n;
|
|
2038
2054
|
}
|
|
2039
|
-
function
|
|
2055
|
+
function tt(e, n, t) {
|
|
2040
2056
|
let a = 0, s = "";
|
|
2041
2057
|
const c = [];
|
|
2042
2058
|
function l() {
|
|
@@ -2044,7 +2060,7 @@ function nt(e, n, t) {
|
|
|
2044
2060
|
}
|
|
2045
2061
|
function i(o) {
|
|
2046
2062
|
function m(b) {
|
|
2047
|
-
return " " + b.nodeName + '="' +
|
|
2063
|
+
return " " + b.nodeName + '="' + S0(b.value) + '"';
|
|
2048
2064
|
}
|
|
2049
2065
|
s += "<" + K0(o) + [].map.call(o.attributes, m).join("") + ">";
|
|
2050
2066
|
}
|
|
@@ -2056,7 +2072,7 @@ function nt(e, n, t) {
|
|
|
2056
2072
|
}
|
|
2057
2073
|
for (; e.length || n.length; ) {
|
|
2058
2074
|
let o = l();
|
|
2059
|
-
if (s +=
|
|
2075
|
+
if (s += S0(t.substring(a, o[0].offset)), a = o[0].offset, o === e) {
|
|
2060
2076
|
c.reverse().forEach(r);
|
|
2061
2077
|
do
|
|
2062
2078
|
g(o.splice(0, 1)[0]), o = l();
|
|
@@ -2065,15 +2081,15 @@ function nt(e, n, t) {
|
|
|
2065
2081
|
} else
|
|
2066
2082
|
o[0].event === "start" ? c.push(o[0].node) : c.pop(), g(o.splice(0, 1)[0]);
|
|
2067
2083
|
}
|
|
2068
|
-
return s +
|
|
2084
|
+
return s + S0(t.substr(a));
|
|
2069
2085
|
}
|
|
2070
|
-
const
|
|
2086
|
+
const me = {}, G0 = (e) => {
|
|
2071
2087
|
console.error(e);
|
|
2072
|
-
},
|
|
2088
|
+
}, de = (e, ...n) => {
|
|
2073
2089
|
console.log(`WARN: ${e}`, ...n);
|
|
2074
|
-
},
|
|
2075
|
-
|
|
2076
|
-
},
|
|
2090
|
+
}, W = (e, n) => {
|
|
2091
|
+
me[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), me[`${e}/${n}`] = !0);
|
|
2092
|
+
}, Z0 = S0, fe = m0, he = Symbol("nomatch"), at = function(e) {
|
|
2077
2093
|
const n = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), a = [];
|
|
2078
2094
|
let s = !0;
|
|
2079
2095
|
const c = /(^(<[^>]+>|\t|)+|\n)/gm, l = "Could not find the language '{}', did you forget to load/include a language module?", i = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -2086,7 +2102,7 @@ const he = {}, z0 = (e) => {
|
|
|
2086
2102
|
languages: null,
|
|
2087
2103
|
// beta configuration options, subject to change, welcome to discuss
|
|
2088
2104
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
2089
|
-
__emitter:
|
|
2105
|
+
__emitter: pn
|
|
2090
2106
|
};
|
|
2091
2107
|
function g(u) {
|
|
2092
2108
|
return r.noHighlightRe.test(u);
|
|
@@ -2097,28 +2113,28 @@ const he = {}, z0 = (e) => {
|
|
|
2097
2113
|
const E = r.languageDetectRe.exec(f);
|
|
2098
2114
|
if (E) {
|
|
2099
2115
|
const O = G(E[1]);
|
|
2100
|
-
return O || (
|
|
2116
|
+
return O || (de(l.replace("{}", E[1])), de("Falling back to no-highlight mode for this block.", u)), O ? E[1] : "no-highlight";
|
|
2101
2117
|
}
|
|
2102
2118
|
return f.split(/\s+/).find((O) => g(O) || G(O));
|
|
2103
2119
|
}
|
|
2104
2120
|
function m(u, f, E, O) {
|
|
2105
|
-
let
|
|
2106
|
-
typeof f == "object" ? (
|
|
2107
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),
|
|
2108
|
-
const
|
|
2109
|
-
code:
|
|
2110
|
-
language:
|
|
2121
|
+
let k = "", i0 = "";
|
|
2122
|
+
typeof f == "object" ? (k = u, E = f.ignoreIllegals, i0 = f.language, O = void 0) : (W("10.7.0", "highlight(lang, code, ...args) has been deprecated."), W("10.7.0", `Please use highlight(code, options) instead.
|
|
2123
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), i0 = u, k = f);
|
|
2124
|
+
const J = {
|
|
2125
|
+
code: k,
|
|
2126
|
+
language: i0
|
|
2111
2127
|
};
|
|
2112
|
-
|
|
2113
|
-
const
|
|
2114
|
-
return
|
|
2128
|
+
Y("before:highlight", J);
|
|
2129
|
+
const e0 = J.result ? J.result : b(J.language, J.code, E, O);
|
|
2130
|
+
return e0.code = J.code, Y("after:highlight", e0), e0;
|
|
2115
2131
|
}
|
|
2116
2132
|
function b(u, f, E, O) {
|
|
2117
|
-
function
|
|
2118
|
-
const N =
|
|
2133
|
+
function k(h, p) {
|
|
2134
|
+
const N = x0.case_insensitive ? p[0].toLowerCase() : p[0];
|
|
2119
2135
|
return Object.prototype.hasOwnProperty.call(h.keywords, N) && h.keywords[N];
|
|
2120
2136
|
}
|
|
2121
|
-
function
|
|
2137
|
+
function i0() {
|
|
2122
2138
|
if (!y.keywords) {
|
|
2123
2139
|
H.addText(D);
|
|
2124
2140
|
return;
|
|
@@ -2128,14 +2144,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), s0 = u, C = f);
|
|
|
2128
2144
|
let p = y.keywordPatternRe.exec(D), N = "";
|
|
2129
2145
|
for (; p; ) {
|
|
2130
2146
|
N += D.substring(h, p.index);
|
|
2131
|
-
const I =
|
|
2147
|
+
const I = k(y, p);
|
|
2132
2148
|
if (I) {
|
|
2133
|
-
const [
|
|
2134
|
-
if (H.addText(N), N = "",
|
|
2149
|
+
const [Z, L0] = I;
|
|
2150
|
+
if (H.addText(N), N = "", I0 += L0, Z.startsWith("_"))
|
|
2135
2151
|
N += p[0];
|
|
2136
2152
|
else {
|
|
2137
|
-
const
|
|
2138
|
-
H.addKeyword(p[0],
|
|
2153
|
+
const l1 = x0.classNameAliases[Z] || Z;
|
|
2154
|
+
H.addKeyword(p[0], l1);
|
|
2139
2155
|
}
|
|
2140
2156
|
} else
|
|
2141
2157
|
N += p[0];
|
|
@@ -2143,7 +2159,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), s0 = u, C = f);
|
|
|
2143
2159
|
}
|
|
2144
2160
|
N += D.substr(h), H.addText(N);
|
|
2145
2161
|
}
|
|
2146
|
-
function
|
|
2162
|
+
function J() {
|
|
2147
2163
|
if (D === "")
|
|
2148
2164
|
return;
|
|
2149
2165
|
let h = null;
|
|
@@ -2152,24 +2168,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), s0 = u, C = f);
|
|
|
2152
2168
|
H.addText(D);
|
|
2153
2169
|
return;
|
|
2154
2170
|
}
|
|
2155
|
-
h = b(y.subLanguage, D, !0,
|
|
2171
|
+
h = b(y.subLanguage, D, !0, ae[y.subLanguage]), ae[y.subLanguage] = /** @type {CompiledMode} */
|
|
2156
2172
|
h.top;
|
|
2157
2173
|
} else
|
|
2158
2174
|
h = L(D, y.subLanguage.length ? y.subLanguage : null);
|
|
2159
|
-
y.relevance > 0 && (
|
|
2175
|
+
y.relevance > 0 && (I0 += h.relevance), H.addSublanguage(h.emitter, h.language);
|
|
2160
2176
|
}
|
|
2161
|
-
function
|
|
2162
|
-
y.subLanguage != null ?
|
|
2177
|
+
function e0() {
|
|
2178
|
+
y.subLanguage != null ? J() : i0(), D = "";
|
|
2163
2179
|
}
|
|
2164
|
-
function
|
|
2165
|
-
return h.className && H.openNode(
|
|
2180
|
+
function n0(h) {
|
|
2181
|
+
return h.className && H.openNode(x0.classNameAliases[h.className] || h.className), y = Object.create(h, { parent: { value: y } }), y;
|
|
2166
2182
|
}
|
|
2167
|
-
function
|
|
2168
|
-
let I =
|
|
2183
|
+
function u0(h, p, N) {
|
|
2184
|
+
let I = Nn(h.endRe, N);
|
|
2169
2185
|
if (I) {
|
|
2170
2186
|
if (h["on:end"]) {
|
|
2171
|
-
const
|
|
2172
|
-
h["on:end"](p,
|
|
2187
|
+
const Z = new le(h);
|
|
2188
|
+
h["on:end"](p, Z), Z.isMatchIgnored && (I = !1);
|
|
2173
2189
|
}
|
|
2174
2190
|
if (I) {
|
|
2175
2191
|
for (; h.endsParent && h.parent; )
|
|
@@ -2178,85 +2194,85 @@ https://github.com/highlightjs/highlight.js/issues/2277`), s0 = u, C = f);
|
|
|
2178
2194
|
}
|
|
2179
2195
|
}
|
|
2180
2196
|
if (h.endsWithParent)
|
|
2181
|
-
return
|
|
2182
|
-
}
|
|
2183
|
-
function a1(h) {
|
|
2184
|
-
return y.matcher.regexIndex === 0 ? (D += h[0], 1) : (H0 = !0, 0);
|
|
2197
|
+
return u0(h.parent, p, N);
|
|
2185
2198
|
}
|
|
2186
2199
|
function c1(h) {
|
|
2187
|
-
|
|
2188
|
-
for (const I0 of V)
|
|
2189
|
-
if (I0 && (I0(h, I), I.isMatchIgnored))
|
|
2190
|
-
return a1(p);
|
|
2191
|
-
return N && N.endSameAsBegin && (N.endRe = pn(p)), N.skip ? D += p : (N.excludeBegin && (D += p), J(), !N.returnBegin && !N.excludeBegin && (D = p)), e0(N), N.returnBegin ? 0 : p.length;
|
|
2200
|
+
return y.matcher.regexIndex === 0 ? (D += h[0], 1) : (j0 = !0, 0);
|
|
2192
2201
|
}
|
|
2193
2202
|
function s1(h) {
|
|
2194
|
-
const p = h[0], N =
|
|
2203
|
+
const p = h[0], N = h.rule, I = new le(N), Z = [N.__beforeBegin, N["on:begin"]];
|
|
2204
|
+
for (const L0 of Z)
|
|
2205
|
+
if (L0 && (L0(h, I), I.isMatchIgnored))
|
|
2206
|
+
return c1(p);
|
|
2207
|
+
return N && N.endSameAsBegin && (N.endRe = bn(p)), N.skip ? D += p : (N.excludeBegin && (D += p), e0(), !N.returnBegin && !N.excludeBegin && (D = p)), n0(N), N.returnBegin ? 0 : p.length;
|
|
2208
|
+
}
|
|
2209
|
+
function i1(h) {
|
|
2210
|
+
const p = h[0], N = f.substr(h.index), I = u0(y, h, N);
|
|
2195
2211
|
if (!I)
|
|
2196
|
-
return
|
|
2197
|
-
const
|
|
2198
|
-
|
|
2212
|
+
return he;
|
|
2213
|
+
const Z = y;
|
|
2214
|
+
Z.skip ? D += p : (Z.returnEnd || Z.excludeEnd || (D += p), e0(), Z.excludeEnd && (D = p));
|
|
2199
2215
|
do
|
|
2200
|
-
y.className && H.closeNode(), !y.skip && !y.subLanguage && (
|
|
2216
|
+
y.className && H.closeNode(), !y.skip && !y.subLanguage && (I0 += y.relevance), y = y.parent;
|
|
2201
2217
|
while (y !== I.parent);
|
|
2202
|
-
return I.starts && (I.endSameAsBegin && (I.starts.endRe = I.endRe),
|
|
2218
|
+
return I.starts && (I.endSameAsBegin && (I.starts.endRe = I.endRe), n0(I.starts)), Z.returnEnd ? 0 : p.length;
|
|
2203
2219
|
}
|
|
2204
|
-
function
|
|
2220
|
+
function r1() {
|
|
2205
2221
|
const h = [];
|
|
2206
|
-
for (let p = y; p !==
|
|
2222
|
+
for (let p = y; p !== x0; p = p.parent)
|
|
2207
2223
|
p.className && h.unshift(p.className);
|
|
2208
2224
|
h.forEach((p) => H.openNode(p));
|
|
2209
2225
|
}
|
|
2210
|
-
let
|
|
2211
|
-
function
|
|
2226
|
+
let T0 = {};
|
|
2227
|
+
function te(h, p) {
|
|
2212
2228
|
const N = p && p[0];
|
|
2213
2229
|
if (D += h, N == null)
|
|
2214
|
-
return
|
|
2215
|
-
if (
|
|
2230
|
+
return e0(), 0;
|
|
2231
|
+
if (T0.type === "begin" && p.type === "end" && T0.index === p.index && N === "") {
|
|
2216
2232
|
if (D += f.slice(p.index, p.index + 1), !s) {
|
|
2217
2233
|
const I = new Error("0 width match regex");
|
|
2218
|
-
throw I.languageName = u, I.badRule =
|
|
2234
|
+
throw I.languageName = u, I.badRule = T0.rule, I;
|
|
2219
2235
|
}
|
|
2220
2236
|
return 1;
|
|
2221
2237
|
}
|
|
2222
|
-
if (
|
|
2223
|
-
return
|
|
2238
|
+
if (T0 = p, p.type === "begin")
|
|
2239
|
+
return s1(p);
|
|
2224
2240
|
if (p.type === "illegal" && !E) {
|
|
2225
2241
|
const I = new Error('Illegal lexeme "' + N + '" for mode "' + (y.className || "<unnamed>") + '"');
|
|
2226
2242
|
throw I.mode = y, I;
|
|
2227
2243
|
} else if (p.type === "end") {
|
|
2228
|
-
const I =
|
|
2229
|
-
if (I !==
|
|
2244
|
+
const I = i1(p);
|
|
2245
|
+
if (I !== he)
|
|
2230
2246
|
return I;
|
|
2231
2247
|
}
|
|
2232
2248
|
if (p.type === "illegal" && N === "")
|
|
2233
2249
|
return 1;
|
|
2234
|
-
if (
|
|
2250
|
+
if (H0 > 1e5 && H0 > p.index * 3)
|
|
2235
2251
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
2236
2252
|
return D += N, N.length;
|
|
2237
2253
|
}
|
|
2238
|
-
const
|
|
2239
|
-
if (!
|
|
2240
|
-
throw
|
|
2241
|
-
const
|
|
2242
|
-
let
|
|
2243
|
-
const
|
|
2244
|
-
|
|
2245
|
-
let D = "",
|
|
2254
|
+
const x0 = G(u);
|
|
2255
|
+
if (!x0)
|
|
2256
|
+
throw G0(l.replace("{}", u)), new Error('Unknown language: "' + u + '"');
|
|
2257
|
+
const o1 = Xn(x0, { plugins: a });
|
|
2258
|
+
let U0 = "", y = O || o1;
|
|
2259
|
+
const ae = {}, H = new r.__emitter(r);
|
|
2260
|
+
r1();
|
|
2261
|
+
let D = "", I0 = 0, _0 = 0, H0 = 0, j0 = !1;
|
|
2246
2262
|
try {
|
|
2247
2263
|
for (y.matcher.considerAll(); ; ) {
|
|
2248
|
-
|
|
2264
|
+
H0++, j0 ? j0 = !1 : y.matcher.considerAll(), y.matcher.lastIndex = _0;
|
|
2249
2265
|
const h = y.matcher.exec(f);
|
|
2250
2266
|
if (!h)
|
|
2251
2267
|
break;
|
|
2252
|
-
const p = f.substring(
|
|
2253
|
-
|
|
2268
|
+
const p = f.substring(_0, h.index), N = te(p, h);
|
|
2269
|
+
_0 = h.index + N;
|
|
2254
2270
|
}
|
|
2255
|
-
return
|
|
2271
|
+
return te(f.substr(_0)), H.closeAllNodes(), H.finalize(), U0 = H.toHTML(), {
|
|
2256
2272
|
// avoid possible breakage with v10 clients expecting
|
|
2257
2273
|
// this to always be an integer
|
|
2258
|
-
relevance: Math.floor(
|
|
2259
|
-
value:
|
|
2274
|
+
relevance: Math.floor(I0),
|
|
2275
|
+
value: U0,
|
|
2260
2276
|
language: u,
|
|
2261
2277
|
illegal: !1,
|
|
2262
2278
|
emitter: H,
|
|
@@ -2268,19 +2284,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), s0 = u, C = f);
|
|
|
2268
2284
|
illegal: !0,
|
|
2269
2285
|
illegalBy: {
|
|
2270
2286
|
msg: h.message,
|
|
2271
|
-
context: f.slice(
|
|
2287
|
+
context: f.slice(_0 - 100, _0 + 100),
|
|
2272
2288
|
mode: h.mode
|
|
2273
2289
|
},
|
|
2274
|
-
sofar:
|
|
2290
|
+
sofar: U0,
|
|
2275
2291
|
relevance: 0,
|
|
2276
|
-
value:
|
|
2292
|
+
value: Z0(f),
|
|
2277
2293
|
emitter: H
|
|
2278
2294
|
};
|
|
2279
2295
|
if (s)
|
|
2280
2296
|
return {
|
|
2281
2297
|
illegal: !1,
|
|
2282
2298
|
relevance: 0,
|
|
2283
|
-
value:
|
|
2299
|
+
value: Z0(f),
|
|
2284
2300
|
emitter: H,
|
|
2285
2301
|
language: u,
|
|
2286
2302
|
top: y,
|
|
@@ -2293,7 +2309,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), s0 = u, C = f);
|
|
|
2293
2309
|
const f = {
|
|
2294
2310
|
relevance: 0,
|
|
2295
2311
|
emitter: new r.__emitter(r),
|
|
2296
|
-
value:
|
|
2312
|
+
value: Z0(u),
|
|
2297
2313
|
illegal: !1,
|
|
2298
2314
|
top: i
|
|
2299
2315
|
};
|
|
@@ -2301,22 +2317,22 @@ https://github.com/highlightjs/highlight.js/issues/2277`), s0 = u, C = f);
|
|
|
2301
2317
|
}
|
|
2302
2318
|
function L(u, f) {
|
|
2303
2319
|
f = f || r.languages || Object.keys(n);
|
|
2304
|
-
const E = v(u), O = f.filter(G).filter(
|
|
2305
|
-
(
|
|
2320
|
+
const E = v(u), O = f.filter(G).filter(o0).map(
|
|
2321
|
+
(n0) => b(n0, u, !1)
|
|
2306
2322
|
);
|
|
2307
2323
|
O.unshift(E);
|
|
2308
|
-
const
|
|
2309
|
-
if (
|
|
2310
|
-
return
|
|
2311
|
-
if (
|
|
2312
|
-
if (G(
|
|
2324
|
+
const k = O.sort((n0, u0) => {
|
|
2325
|
+
if (n0.relevance !== u0.relevance)
|
|
2326
|
+
return u0.relevance - n0.relevance;
|
|
2327
|
+
if (n0.language && u0.language) {
|
|
2328
|
+
if (G(n0.language).supersetOf === u0.language)
|
|
2313
2329
|
return 1;
|
|
2314
|
-
if (G(
|
|
2330
|
+
if (G(u0.language).supersetOf === n0.language)
|
|
2315
2331
|
return -1;
|
|
2316
2332
|
}
|
|
2317
2333
|
return 0;
|
|
2318
|
-
}), [
|
|
2319
|
-
return
|
|
2334
|
+
}), [i0, J] = k, e0 = i0;
|
|
2335
|
+
return e0.second_best = J, e0;
|
|
2320
2336
|
}
|
|
2321
2337
|
function S(u) {
|
|
2322
2338
|
return r.tabReplace || r.useBR ? u.replace(c, (f) => f === `
|
|
@@ -2347,69 +2363,69 @@ https://github.com/highlightjs/highlight.js/issues/2277`), s0 = u, C = f);
|
|
|
2347
2363
|
const E = o(u);
|
|
2348
2364
|
if (g(E))
|
|
2349
2365
|
return;
|
|
2350
|
-
|
|
2366
|
+
Y(
|
|
2351
2367
|
"before:highlightElement",
|
|
2352
2368
|
{ el: u, language: E }
|
|
2353
2369
|
), f = u;
|
|
2354
|
-
const O = f.textContent,
|
|
2355
|
-
|
|
2356
|
-
language:
|
|
2370
|
+
const O = f.textContent, k = E ? m(O, { language: E, ignoreIllegals: !0 }) : L(O);
|
|
2371
|
+
Y("after:highlightElement", { el: u, result: k, text: O }), u.innerHTML = k.value, A(u, E, k.language), u.result = {
|
|
2372
|
+
language: k.language,
|
|
2357
2373
|
// TODO: remove with version 11.0
|
|
2358
|
-
re:
|
|
2359
|
-
relavance:
|
|
2360
|
-
},
|
|
2361
|
-
language:
|
|
2374
|
+
re: k.relevance,
|
|
2375
|
+
relavance: k.relevance
|
|
2376
|
+
}, k.second_best && (u.second_best = {
|
|
2377
|
+
language: k.second_best.language,
|
|
2362
2378
|
// TODO: remove with version 11.0
|
|
2363
|
-
re:
|
|
2364
|
-
relavance:
|
|
2379
|
+
re: k.second_best.relevance,
|
|
2380
|
+
relavance: k.second_best.relevance
|
|
2365
2381
|
});
|
|
2366
2382
|
}
|
|
2367
|
-
function
|
|
2368
|
-
u.useBR && (
|
|
2383
|
+
function C(u) {
|
|
2384
|
+
u.useBR && (W("10.3.0", "'useBR' will be removed entirely in v11.0"), W("10.3.0", "Please see https://github.com/highlightjs/highlight.js/issues/2559")), r = fe(r, u);
|
|
2369
2385
|
}
|
|
2370
2386
|
const _ = () => {
|
|
2371
2387
|
if (_.called)
|
|
2372
2388
|
return;
|
|
2373
|
-
_.called = !0,
|
|
2389
|
+
_.called = !0, W("10.6.0", "initHighlighting() is deprecated. Use highlightAll() instead."), document.querySelectorAll("pre code").forEach(R);
|
|
2374
2390
|
};
|
|
2375
2391
|
function T() {
|
|
2376
|
-
|
|
2392
|
+
W("10.6.0", "initHighlightingOnLoad() is deprecated. Use highlightAll() instead."), P = !0;
|
|
2377
2393
|
}
|
|
2378
2394
|
let P = !1;
|
|
2379
|
-
function
|
|
2395
|
+
function K() {
|
|
2380
2396
|
if (document.readyState === "loading") {
|
|
2381
2397
|
P = !0;
|
|
2382
2398
|
return;
|
|
2383
2399
|
}
|
|
2384
2400
|
document.querySelectorAll("pre code").forEach(R);
|
|
2385
2401
|
}
|
|
2386
|
-
function
|
|
2387
|
-
P &&
|
|
2402
|
+
function X() {
|
|
2403
|
+
P && K();
|
|
2388
2404
|
}
|
|
2389
|
-
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded",
|
|
2390
|
-
function
|
|
2405
|
+
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", X, !1);
|
|
2406
|
+
function q(u, f) {
|
|
2391
2407
|
let E = null;
|
|
2392
2408
|
try {
|
|
2393
2409
|
E = f(e);
|
|
2394
2410
|
} catch (O) {
|
|
2395
|
-
if (
|
|
2396
|
-
|
|
2411
|
+
if (G0("Language definition for '{}' could not be registered.".replace("{}", u)), s)
|
|
2412
|
+
G0(O);
|
|
2397
2413
|
else
|
|
2398
2414
|
throw O;
|
|
2399
2415
|
E = i;
|
|
2400
2416
|
}
|
|
2401
|
-
E.name || (E.name = u), n[u] = E, E.rawDefinition = f.bind(null, e), E.aliases &&
|
|
2417
|
+
E.name || (E.name = u), n[u] = E, E.rawDefinition = f.bind(null, e), E.aliases && b0(E.aliases, { languageName: u });
|
|
2402
2418
|
}
|
|
2403
|
-
function
|
|
2419
|
+
function Q(u) {
|
|
2404
2420
|
delete n[u];
|
|
2405
2421
|
for (const f of Object.keys(t))
|
|
2406
2422
|
t[f] === u && delete t[f];
|
|
2407
2423
|
}
|
|
2408
|
-
function
|
|
2424
|
+
function p0() {
|
|
2409
2425
|
return Object.keys(n);
|
|
2410
2426
|
}
|
|
2411
|
-
function
|
|
2412
|
-
|
|
2427
|
+
function y0(u) {
|
|
2428
|
+
W("10.4.0", "requireLanguage will be removed entirely in v11."), W("10.4.0", "Please see https://github.com/highlightjs/highlight.js/pull/2844");
|
|
2413
2429
|
const f = G(u);
|
|
2414
2430
|
if (f)
|
|
2415
2431
|
return f;
|
|
@@ -2418,16 +2434,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), s0 = u, C = f);
|
|
|
2418
2434
|
function G(u) {
|
|
2419
2435
|
return u = (u || "").toLowerCase(), n[u] || n[t[u]];
|
|
2420
2436
|
}
|
|
2421
|
-
function
|
|
2437
|
+
function b0(u, { languageName: f }) {
|
|
2422
2438
|
typeof u == "string" && (u = [u]), u.forEach((E) => {
|
|
2423
2439
|
t[E.toLowerCase()] = f;
|
|
2424
2440
|
});
|
|
2425
2441
|
}
|
|
2426
|
-
function
|
|
2442
|
+
function o0(u) {
|
|
2427
2443
|
const f = G(u);
|
|
2428
2444
|
return f && !f.disableAutodetect;
|
|
2429
2445
|
}
|
|
2430
|
-
function
|
|
2446
|
+
function l0(u) {
|
|
2431
2447
|
u["before:highlightBlock"] && !u["before:highlightElement"] && (u["before:highlightElement"] = (f) => {
|
|
2432
2448
|
u["before:highlightBlock"](
|
|
2433
2449
|
Object.assign({ block: f.el }, f)
|
|
@@ -2438,60 +2454,53 @@ https://github.com/highlightjs/highlight.js/issues/2277`), s0 = u, C = f);
|
|
|
2438
2454
|
);
|
|
2439
2455
|
});
|
|
2440
2456
|
}
|
|
2441
|
-
function
|
|
2442
|
-
|
|
2457
|
+
function s0(u) {
|
|
2458
|
+
l0(u), a.push(u);
|
|
2443
2459
|
}
|
|
2444
|
-
function
|
|
2460
|
+
function Y(u, f) {
|
|
2445
2461
|
const E = u;
|
|
2446
2462
|
a.forEach(function(O) {
|
|
2447
2463
|
O[E] && O[E](f);
|
|
2448
2464
|
});
|
|
2449
2465
|
}
|
|
2450
|
-
function
|
|
2451
|
-
return
|
|
2466
|
+
function N0(u) {
|
|
2467
|
+
return W("10.2.0", "fixMarkup will be removed entirely in v11.0"), W("10.2.0", "Please see https://github.com/highlightjs/highlight.js/issues/2534"), S(u);
|
|
2452
2468
|
}
|
|
2453
|
-
function
|
|
2454
|
-
return
|
|
2469
|
+
function O0(u) {
|
|
2470
|
+
return W("10.7.0", "highlightBlock will be removed entirely in v12.0"), W("10.7.0", "Please use highlightElement now."), R(u);
|
|
2455
2471
|
}
|
|
2456
2472
|
Object.assign(e, {
|
|
2457
2473
|
highlight: m,
|
|
2458
2474
|
highlightAuto: L,
|
|
2459
|
-
highlightAll:
|
|
2460
|
-
fixMarkup:
|
|
2475
|
+
highlightAll: K,
|
|
2476
|
+
fixMarkup: N0,
|
|
2461
2477
|
highlightElement: R,
|
|
2462
2478
|
// TODO: Remove with v12 API
|
|
2463
|
-
highlightBlock:
|
|
2464
|
-
configure:
|
|
2479
|
+
highlightBlock: O0,
|
|
2480
|
+
configure: C,
|
|
2465
2481
|
initHighlighting: _,
|
|
2466
2482
|
initHighlightingOnLoad: T,
|
|
2467
|
-
registerLanguage:
|
|
2468
|
-
unregisterLanguage:
|
|
2469
|
-
listLanguages:
|
|
2483
|
+
registerLanguage: q,
|
|
2484
|
+
unregisterLanguage: Q,
|
|
2485
|
+
listLanguages: p0,
|
|
2470
2486
|
getLanguage: G,
|
|
2471
|
-
registerAliases:
|
|
2472
|
-
requireLanguage:
|
|
2473
|
-
autoDetection:
|
|
2474
|
-
inherit:
|
|
2475
|
-
addPlugin:
|
|
2487
|
+
registerAliases: b0,
|
|
2488
|
+
requireLanguage: y0,
|
|
2489
|
+
autoDetection: o0,
|
|
2490
|
+
inherit: fe,
|
|
2491
|
+
addPlugin: s0,
|
|
2476
2492
|
// plugins for frameworks
|
|
2477
|
-
vuePlugin:
|
|
2493
|
+
vuePlugin: et(e).VuePlugin
|
|
2478
2494
|
}), e.debugMode = function() {
|
|
2479
2495
|
s = !1;
|
|
2480
2496
|
}, e.safeMode = function() {
|
|
2481
2497
|
s = !0;
|
|
2482
|
-
}, e.versionString =
|
|
2483
|
-
for (const u in
|
|
2484
|
-
typeof
|
|
2485
|
-
return Object.assign(e,
|
|
2486
|
-
};
|
|
2487
|
-
var at = tt({}), ct = at, Y0 = {}, st = {
|
|
2488
|
-
get exports() {
|
|
2489
|
-
return Y0;
|
|
2490
|
-
},
|
|
2491
|
-
set exports(e) {
|
|
2492
|
-
Y0 = e;
|
|
2493
|
-
}
|
|
2498
|
+
}, e.versionString = Qn;
|
|
2499
|
+
for (const u in C0)
|
|
2500
|
+
typeof C0[u] == "object" && De(C0[u]);
|
|
2501
|
+
return Object.assign(e, C0), e.addPlugin(x), e.addPlugin(nt), e.addPlugin(M), e;
|
|
2494
2502
|
};
|
|
2503
|
+
var ct = at({}), st = ct, ze = { exports: {} };
|
|
2495
2504
|
(function(e) {
|
|
2496
2505
|
(function() {
|
|
2497
2506
|
var n;
|
|
@@ -2548,45 +2557,45 @@ var at = tt({}), ct = at, Y0 = {}, st = {
|
|
|
2548
2557
|
return o;
|
|
2549
2558
|
}
|
|
2550
2559
|
})();
|
|
2551
|
-
})(
|
|
2552
|
-
var it =
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
function
|
|
2560
|
+
})(ze);
|
|
2561
|
+
var it = ze.exports, rt = it, f0 = h0(Error), ot = f0;
|
|
2562
|
+
f0.eval = h0(EvalError);
|
|
2563
|
+
f0.range = h0(RangeError);
|
|
2564
|
+
f0.reference = h0(ReferenceError);
|
|
2565
|
+
f0.syntax = h0(SyntaxError);
|
|
2566
|
+
f0.type = h0(TypeError);
|
|
2567
|
+
f0.uri = h0(URIError);
|
|
2568
|
+
f0.create = h0;
|
|
2569
|
+
function h0(e) {
|
|
2561
2570
|
return n.displayName = e.displayName || e.name, n;
|
|
2562
2571
|
function n(t) {
|
|
2563
|
-
return t && (t =
|
|
2572
|
+
return t && (t = rt.apply(null, arguments)), new e(t);
|
|
2564
2573
|
}
|
|
2565
2574
|
}
|
|
2566
|
-
var
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
var
|
|
2581
|
-
function
|
|
2582
|
-
var a =
|
|
2575
|
+
var a0 = st, D0 = ot;
|
|
2576
|
+
E0.highlight = Ge;
|
|
2577
|
+
E0.highlightAuto = ut;
|
|
2578
|
+
E0.registerLanguage = gt;
|
|
2579
|
+
E0.listLanguages = mt;
|
|
2580
|
+
E0.registerAlias = dt;
|
|
2581
|
+
r0.prototype.addText = pt;
|
|
2582
|
+
r0.prototype.addKeyword = ft;
|
|
2583
|
+
r0.prototype.addSublanguage = ht;
|
|
2584
|
+
r0.prototype.openNode = bt;
|
|
2585
|
+
r0.prototype.closeNode = vt;
|
|
2586
|
+
r0.prototype.closeAllNodes = Ze;
|
|
2587
|
+
r0.prototype.finalize = Ze;
|
|
2588
|
+
r0.prototype.toHTML = Et;
|
|
2589
|
+
var lt = "hljs-";
|
|
2590
|
+
function Ge(e, n, t) {
|
|
2591
|
+
var a = a0.configure({}), s = t || {}, c = s.prefix, l;
|
|
2583
2592
|
if (typeof e != "string")
|
|
2584
|
-
throw
|
|
2585
|
-
if (!
|
|
2586
|
-
throw
|
|
2593
|
+
throw D0("Expected `string` for name, got `%s`", e);
|
|
2594
|
+
if (!a0.getLanguage(e))
|
|
2595
|
+
throw D0("Unknown language: `%s` is not registered", e);
|
|
2587
2596
|
if (typeof n != "string")
|
|
2588
|
-
throw
|
|
2589
|
-
if (c == null && (c =
|
|
2597
|
+
throw D0("Expected `string` for value, got `%s`", n);
|
|
2598
|
+
if (c == null && (c = lt), a0.configure({ __emitter: r0, classPrefix: c }), l = a0.highlight(n, { language: e, ignoreIllegals: !0 }), a0.configure(a || {}), l.errorRaised)
|
|
2590
2599
|
throw l.errorRaised;
|
|
2591
2600
|
return {
|
|
2592
2601
|
relevance: l.relevance,
|
|
@@ -2594,35 +2603,35 @@ function Ve(e, n, t) {
|
|
|
2594
2603
|
value: l.emitter.rootNode.children
|
|
2595
2604
|
};
|
|
2596
2605
|
}
|
|
2597
|
-
function
|
|
2598
|
-
var t = n || {}, a = t.subset ||
|
|
2606
|
+
function ut(e, n) {
|
|
2607
|
+
var t = n || {}, a = t.subset || a0.listLanguages();
|
|
2599
2608
|
t.prefix;
|
|
2600
2609
|
var s = a.length, c = -1, l, i, r, g;
|
|
2601
2610
|
if (typeof e != "string")
|
|
2602
|
-
throw
|
|
2611
|
+
throw D0("Expected `string` for value, got `%s`", e);
|
|
2603
2612
|
for (i = { relevance: 0, language: null, value: [] }, l = { relevance: 0, language: null, value: [] }; ++c < s; )
|
|
2604
|
-
g = a[c],
|
|
2613
|
+
g = a[c], a0.getLanguage(g) && (r = Ge(g, e, n), r.language = g, r.relevance > i.relevance && (i = r), r.relevance > l.relevance && (i = l, l = r));
|
|
2605
2614
|
return i.language && (l.secondBest = i), l;
|
|
2606
2615
|
}
|
|
2607
|
-
function
|
|
2608
|
-
|
|
2616
|
+
function gt(e, n) {
|
|
2617
|
+
a0.registerLanguage(e, n);
|
|
2609
2618
|
}
|
|
2610
|
-
function
|
|
2611
|
-
return
|
|
2619
|
+
function mt() {
|
|
2620
|
+
return a0.listLanguages();
|
|
2612
2621
|
}
|
|
2613
|
-
function
|
|
2622
|
+
function dt(e, n) {
|
|
2614
2623
|
var t = e, a;
|
|
2615
2624
|
n && (t = {}, t[e] = n);
|
|
2616
2625
|
for (a in t)
|
|
2617
|
-
|
|
2626
|
+
a0.registerAliases(t[a], { languageName: a });
|
|
2618
2627
|
}
|
|
2619
|
-
function
|
|
2628
|
+
function r0(e) {
|
|
2620
2629
|
this.options = e, this.rootNode = { children: [] }, this.stack = [this.rootNode];
|
|
2621
2630
|
}
|
|
2622
|
-
function
|
|
2631
|
+
function ft(e, n) {
|
|
2623
2632
|
this.openNode(n), this.addText(e), this.closeNode();
|
|
2624
2633
|
}
|
|
2625
|
-
function
|
|
2634
|
+
function ht(e, n) {
|
|
2626
2635
|
var t = this.stack, a = t[t.length - 1], s = e.rootNode.children, c = n ? {
|
|
2627
2636
|
type: "element",
|
|
2628
2637
|
tagName: "span",
|
|
@@ -2631,11 +2640,11 @@ function ft(e, n) {
|
|
|
2631
2640
|
} : s;
|
|
2632
2641
|
a.children = a.children.concat(c);
|
|
2633
2642
|
}
|
|
2634
|
-
function
|
|
2643
|
+
function pt(e) {
|
|
2635
2644
|
var n = this.stack, t, a;
|
|
2636
2645
|
e !== "" && (t = n[n.length - 1], a = t.children[t.children.length - 1], a && a.type === "text" ? a.value += e : t.children.push({ type: "text", value: e }));
|
|
2637
2646
|
}
|
|
2638
|
-
function
|
|
2647
|
+
function bt(e) {
|
|
2639
2648
|
var n = this.stack, t = this.options.classPrefix + e, a = n[n.length - 1], s = {
|
|
2640
2649
|
type: "element",
|
|
2641
2650
|
tagName: "span",
|
|
@@ -2644,31 +2653,31 @@ function pt(e) {
|
|
|
2644
2653
|
};
|
|
2645
2654
|
a.children.push(s), n.push(s);
|
|
2646
2655
|
}
|
|
2647
|
-
function
|
|
2656
|
+
function vt() {
|
|
2648
2657
|
this.stack.pop();
|
|
2649
2658
|
}
|
|
2650
|
-
function
|
|
2659
|
+
function Et() {
|
|
2651
2660
|
return "";
|
|
2652
2661
|
}
|
|
2653
2662
|
function Ze() {
|
|
2654
2663
|
}
|
|
2655
|
-
function
|
|
2664
|
+
function Ve(e) {
|
|
2656
2665
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
2657
2666
|
}
|
|
2658
|
-
function
|
|
2659
|
-
return
|
|
2667
|
+
function pe(e) {
|
|
2668
|
+
return v0("(?=", e, ")");
|
|
2660
2669
|
}
|
|
2661
|
-
function
|
|
2662
|
-
return
|
|
2670
|
+
function yt(e) {
|
|
2671
|
+
return v0("(", e, ")?");
|
|
2663
2672
|
}
|
|
2664
|
-
function
|
|
2665
|
-
return e.map((t) =>
|
|
2673
|
+
function v0(...e) {
|
|
2674
|
+
return e.map((t) => Ve(t)).join("");
|
|
2666
2675
|
}
|
|
2667
|
-
function
|
|
2668
|
-
return "(" + e.map((t) =>
|
|
2676
|
+
function Nt(...e) {
|
|
2677
|
+
return "(" + e.map((t) => Ve(t)).join("|") + ")";
|
|
2669
2678
|
}
|
|
2670
|
-
function
|
|
2671
|
-
const n =
|
|
2679
|
+
function xt(e) {
|
|
2680
|
+
const n = v0(/[A-Z_]/, yt(/[A-Z0-9_.-]*:/), /[A-Z0-9_.-]*/), t = /[A-Za-z0-9._:-]+/, a = {
|
|
2672
2681
|
className: "symbol",
|
|
2673
2682
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
2674
2683
|
}, s = {
|
|
@@ -2838,14 +2847,14 @@ function Nt(e) {
|
|
|
2838
2847
|
// open tag
|
|
2839
2848
|
{
|
|
2840
2849
|
className: "tag",
|
|
2841
|
-
begin:
|
|
2850
|
+
begin: v0(
|
|
2842
2851
|
/</,
|
|
2843
|
-
|
|
2852
|
+
pe(v0(
|
|
2844
2853
|
n,
|
|
2845
2854
|
// <tag/>
|
|
2846
2855
|
// <tag>
|
|
2847
2856
|
// <tag ...
|
|
2848
|
-
|
|
2857
|
+
Nt(/\/>/, />/, /\s/)
|
|
2849
2858
|
))
|
|
2850
2859
|
),
|
|
2851
2860
|
end: /\/?>/,
|
|
@@ -2861,9 +2870,9 @@ function Nt(e) {
|
|
|
2861
2870
|
// close tag
|
|
2862
2871
|
{
|
|
2863
2872
|
className: "tag",
|
|
2864
|
-
begin:
|
|
2873
|
+
begin: v0(
|
|
2865
2874
|
/<\//,
|
|
2866
|
-
|
|
2875
|
+
pe(v0(
|
|
2867
2876
|
n,
|
|
2868
2877
|
/>/
|
|
2869
2878
|
))
|
|
@@ -2884,15 +2893,15 @@ function Nt(e) {
|
|
|
2884
2893
|
]
|
|
2885
2894
|
};
|
|
2886
2895
|
}
|
|
2887
|
-
var
|
|
2888
|
-
const
|
|
2889
|
-
function
|
|
2896
|
+
var _t = xt;
|
|
2897
|
+
const We = /* @__PURE__ */ V(_t);
|
|
2898
|
+
function wt(e) {
|
|
2890
2899
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
2891
2900
|
}
|
|
2892
|
-
function
|
|
2893
|
-
return e.map((t) =>
|
|
2901
|
+
function St(...e) {
|
|
2902
|
+
return e.map((t) => wt(t)).join("");
|
|
2894
2903
|
}
|
|
2895
|
-
function
|
|
2904
|
+
function Ot(e) {
|
|
2896
2905
|
const n = {}, t = {
|
|
2897
2906
|
begin: /\$\{/,
|
|
2898
2907
|
end: /\}/,
|
|
@@ -2908,7 +2917,7 @@ function St(e) {
|
|
|
2908
2917
|
Object.assign(n, {
|
|
2909
2918
|
className: "variable",
|
|
2910
2919
|
variants: [
|
|
2911
|
-
{ begin:
|
|
2920
|
+
{ begin: St(
|
|
2912
2921
|
/\$[\w\d#@][\w\d_]*/,
|
|
2913
2922
|
// negative look-ahead tries to avoid matching patterns that are not
|
|
2914
2923
|
// Perl at all like $ident$, @ident@, etc.
|
|
@@ -3008,8 +3017,8 @@ function St(e) {
|
|
|
3008
3017
|
]
|
|
3009
3018
|
};
|
|
3010
3019
|
}
|
|
3011
|
-
var
|
|
3012
|
-
const
|
|
3020
|
+
var At = Ot;
|
|
3021
|
+
const Mt = /* @__PURE__ */ V(At), be = "[A-Za-z$_][0-9A-Za-z$_]*", Rt = [
|
|
3013
3022
|
"as",
|
|
3014
3023
|
// for exports
|
|
3015
3024
|
"in",
|
|
@@ -3052,14 +3061,14 @@ const At = Ot, ye = "[A-Za-z$_][0-9A-Za-z$_]*", Mt = [
|
|
|
3052
3061
|
"from",
|
|
3053
3062
|
"export",
|
|
3054
3063
|
"extends"
|
|
3055
|
-
],
|
|
3064
|
+
], Tt = [
|
|
3056
3065
|
"true",
|
|
3057
3066
|
"false",
|
|
3058
3067
|
"null",
|
|
3059
3068
|
"undefined",
|
|
3060
3069
|
"NaN",
|
|
3061
3070
|
"Infinity"
|
|
3062
|
-
],
|
|
3071
|
+
], It = [
|
|
3063
3072
|
"Intl",
|
|
3064
3073
|
"DataView",
|
|
3065
3074
|
"Number",
|
|
@@ -3094,7 +3103,7 @@ const At = Ot, ye = "[A-Za-z$_][0-9A-Za-z$_]*", Mt = [
|
|
|
3094
3103
|
"BigInt64Array",
|
|
3095
3104
|
"BigUint64Array",
|
|
3096
3105
|
"BigInt"
|
|
3097
|
-
],
|
|
3106
|
+
], Lt = [
|
|
3098
3107
|
"EvalError",
|
|
3099
3108
|
"InternalError",
|
|
3100
3109
|
"RangeError",
|
|
@@ -3102,7 +3111,7 @@ const At = Ot, ye = "[A-Za-z$_][0-9A-Za-z$_]*", Mt = [
|
|
|
3102
3111
|
"SyntaxError",
|
|
3103
3112
|
"TypeError",
|
|
3104
3113
|
"URIError"
|
|
3105
|
-
],
|
|
3114
|
+
], Ct = [
|
|
3106
3115
|
"setInterval",
|
|
3107
3116
|
"setTimeout",
|
|
3108
3117
|
"clearInterval",
|
|
@@ -3131,26 +3140,26 @@ const At = Ot, ye = "[A-Za-z$_][0-9A-Za-z$_]*", Mt = [
|
|
|
3131
3140
|
"module",
|
|
3132
3141
|
"global"
|
|
3133
3142
|
// Node.js
|
|
3134
|
-
],
|
|
3135
|
-
|
|
3143
|
+
], Dt = [].concat(
|
|
3144
|
+
Ct,
|
|
3136
3145
|
kt,
|
|
3137
|
-
|
|
3138
|
-
|
|
3146
|
+
It,
|
|
3147
|
+
Lt
|
|
3139
3148
|
);
|
|
3140
|
-
function
|
|
3149
|
+
function Bt(e) {
|
|
3141
3150
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
3142
3151
|
}
|
|
3143
|
-
function
|
|
3144
|
-
return
|
|
3152
|
+
function ve(e) {
|
|
3153
|
+
return Y0("(?=", e, ")");
|
|
3145
3154
|
}
|
|
3146
|
-
function
|
|
3147
|
-
return e.map((t) =>
|
|
3155
|
+
function Y0(...e) {
|
|
3156
|
+
return e.map((t) => Bt(t)).join("");
|
|
3148
3157
|
}
|
|
3149
|
-
function
|
|
3150
|
-
const n = (R, { after:
|
|
3158
|
+
function Pt(e) {
|
|
3159
|
+
const n = (R, { after: C }) => {
|
|
3151
3160
|
const _ = "</" + R[0].slice(1);
|
|
3152
|
-
return R.input.indexOf(_,
|
|
3153
|
-
}, t =
|
|
3161
|
+
return R.input.indexOf(_, C) !== -1;
|
|
3162
|
+
}, t = be, a = {
|
|
3154
3163
|
begin: "<>",
|
|
3155
3164
|
end: "</>"
|
|
3156
3165
|
}, s = {
|
|
@@ -3160,19 +3169,19 @@ function Bt(e) {
|
|
|
3160
3169
|
* @param {RegExpMatchArray} match
|
|
3161
3170
|
* @param {CallbackResponse} response
|
|
3162
3171
|
*/
|
|
3163
|
-
isTrulyOpeningTag: (R,
|
|
3172
|
+
isTrulyOpeningTag: (R, C) => {
|
|
3164
3173
|
const _ = R[0].length + R.index, T = R.input[_];
|
|
3165
3174
|
if (T === "<") {
|
|
3166
|
-
|
|
3175
|
+
C.ignoreMatch();
|
|
3167
3176
|
return;
|
|
3168
3177
|
}
|
|
3169
|
-
T === ">" && (n(R, { after: _ }) ||
|
|
3178
|
+
T === ">" && (n(R, { after: _ }) || C.ignoreMatch());
|
|
3170
3179
|
}
|
|
3171
3180
|
}, c = {
|
|
3172
|
-
$pattern:
|
|
3173
|
-
keyword:
|
|
3174
|
-
literal:
|
|
3175
|
-
built_in:
|
|
3181
|
+
$pattern: be,
|
|
3182
|
+
keyword: Rt,
|
|
3183
|
+
literal: Tt,
|
|
3184
|
+
built_in: Dt
|
|
3176
3185
|
}, l = "[0-9](_?[0-9])*", i = `\\.(${l})`, r = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", g = {
|
|
3177
3186
|
className: "number",
|
|
3178
3187
|
variants: [
|
|
@@ -3332,7 +3341,7 @@ function Bt(e) {
|
|
|
3332
3341
|
g,
|
|
3333
3342
|
{
|
|
3334
3343
|
// object attr container
|
|
3335
|
-
begin:
|
|
3344
|
+
begin: Y0(
|
|
3336
3345
|
/[{,\n]\s*/,
|
|
3337
3346
|
// we need to look ahead to make sure that we actually have an
|
|
3338
3347
|
// attribute coming up so we don't steal a comma from a potential
|
|
@@ -3344,7 +3353,7 @@ function Bt(e) {
|
|
|
3344
3353
|
// fails to find any actual attrs. But this still does the job because
|
|
3345
3354
|
// it prevents the value contain rule from grabbing this instead and
|
|
3346
3355
|
// prevening this rule from firing when we actually DO have keys.
|
|
3347
|
-
|
|
3356
|
+
ve(Y0(
|
|
3348
3357
|
// we also need to allow for multiple possible comments inbetween
|
|
3349
3358
|
// the first key:value pairing
|
|
3350
3359
|
/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,
|
|
@@ -3355,7 +3364,7 @@ function Bt(e) {
|
|
|
3355
3364
|
contains: [
|
|
3356
3365
|
{
|
|
3357
3366
|
className: "attr",
|
|
3358
|
-
begin: t +
|
|
3367
|
+
begin: t + ve("\\s*:"),
|
|
3359
3368
|
relevance: 0
|
|
3360
3369
|
}
|
|
3361
3370
|
]
|
|
@@ -3517,9 +3526,9 @@ function Bt(e) {
|
|
|
3517
3526
|
]
|
|
3518
3527
|
};
|
|
3519
3528
|
}
|
|
3520
|
-
var
|
|
3521
|
-
const
|
|
3522
|
-
function
|
|
3529
|
+
var $t = Pt;
|
|
3530
|
+
const Fe = /* @__PURE__ */ V($t);
|
|
3531
|
+
function Ut(e) {
|
|
3523
3532
|
const n = {
|
|
3524
3533
|
literal: "true false null"
|
|
3525
3534
|
}, t = [
|
|
@@ -3566,9 +3575,9 @@ function $t(e) {
|
|
|
3566
3575
|
illegal: "\\S"
|
|
3567
3576
|
};
|
|
3568
3577
|
}
|
|
3569
|
-
var
|
|
3570
|
-
const
|
|
3571
|
-
function
|
|
3578
|
+
var Ht = Ut;
|
|
3579
|
+
const jt = /* @__PURE__ */ V(Ht);
|
|
3580
|
+
function zt(e) {
|
|
3572
3581
|
const n = {
|
|
3573
3582
|
className: "variable",
|
|
3574
3583
|
begin: "\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"
|
|
@@ -3741,8 +3750,8 @@ function jt(e) {
|
|
|
3741
3750
|
]
|
|
3742
3751
|
};
|
|
3743
3752
|
}
|
|
3744
|
-
var
|
|
3745
|
-
const
|
|
3753
|
+
var Gt = zt;
|
|
3754
|
+
const Zt = /* @__PURE__ */ V(Gt);
|
|
3746
3755
|
function Vt(e) {
|
|
3747
3756
|
return {
|
|
3748
3757
|
name: "Shell Session",
|
|
@@ -3762,9 +3771,9 @@ function Vt(e) {
|
|
|
3762
3771
|
]
|
|
3763
3772
|
};
|
|
3764
3773
|
}
|
|
3765
|
-
var
|
|
3766
|
-
const
|
|
3767
|
-
function
|
|
3774
|
+
var Wt = Vt;
|
|
3775
|
+
const Ke = /* @__PURE__ */ V(Wt);
|
|
3776
|
+
function Ft(e) {
|
|
3768
3777
|
var n = "true false yes no null", t = "[\\w#;/?:@&=+$,.~*'()[\\]]+", a = {
|
|
3769
3778
|
className: "attr",
|
|
3770
3779
|
variants: [
|
|
@@ -3908,9 +3917,9 @@ function Wt(e) {
|
|
|
3908
3917
|
contains: S
|
|
3909
3918
|
};
|
|
3910
3919
|
}
|
|
3911
|
-
var
|
|
3912
|
-
const
|
|
3913
|
-
function
|
|
3920
|
+
var Kt = Ft;
|
|
3921
|
+
const Ye = /* @__PURE__ */ V(Kt);
|
|
3922
|
+
function Yt(e) {
|
|
3914
3923
|
var n = {
|
|
3915
3924
|
className: "params",
|
|
3916
3925
|
begin: "\\(",
|
|
@@ -3964,8 +3973,8 @@ function Kt(e) {
|
|
|
3964
3973
|
]
|
|
3965
3974
|
};
|
|
3966
3975
|
}
|
|
3967
|
-
var
|
|
3968
|
-
const
|
|
3976
|
+
var Xt = Yt;
|
|
3977
|
+
const qt = /* @__PURE__ */ V(Xt), B0 = "[A-Za-z$_][0-9A-Za-z$_]*", Xe = [
|
|
3969
3978
|
"as",
|
|
3970
3979
|
// for exports
|
|
3971
3980
|
"in",
|
|
@@ -4008,14 +4017,14 @@ const Xt = Yt, D0 = "[A-Za-z$_][0-9A-Za-z$_]*", qe = [
|
|
|
4008
4017
|
"from",
|
|
4009
4018
|
"export",
|
|
4010
4019
|
"extends"
|
|
4011
|
-
],
|
|
4020
|
+
], qe = [
|
|
4012
4021
|
"true",
|
|
4013
4022
|
"false",
|
|
4014
4023
|
"null",
|
|
4015
4024
|
"undefined",
|
|
4016
4025
|
"NaN",
|
|
4017
4026
|
"Infinity"
|
|
4018
|
-
],
|
|
4027
|
+
], Qt = [
|
|
4019
4028
|
"Intl",
|
|
4020
4029
|
"DataView",
|
|
4021
4030
|
"Number",
|
|
@@ -4050,7 +4059,7 @@ const Xt = Yt, D0 = "[A-Za-z$_][0-9A-Za-z$_]*", qe = [
|
|
|
4050
4059
|
"BigInt64Array",
|
|
4051
4060
|
"BigUint64Array",
|
|
4052
4061
|
"BigInt"
|
|
4053
|
-
],
|
|
4062
|
+
], Jt = [
|
|
4054
4063
|
"EvalError",
|
|
4055
4064
|
"InternalError",
|
|
4056
4065
|
"RangeError",
|
|
@@ -4058,7 +4067,7 @@ const Xt = Yt, D0 = "[A-Za-z$_][0-9A-Za-z$_]*", qe = [
|
|
|
4058
4067
|
"SyntaxError",
|
|
4059
4068
|
"TypeError",
|
|
4060
4069
|
"URIError"
|
|
4061
|
-
],
|
|
4070
|
+
], e2 = [
|
|
4062
4071
|
"setInterval",
|
|
4063
4072
|
"setTimeout",
|
|
4064
4073
|
"clearInterval",
|
|
@@ -4076,7 +4085,7 @@ const Xt = Yt, D0 = "[A-Za-z$_][0-9A-Za-z$_]*", qe = [
|
|
|
4076
4085
|
"encodeURIComponent",
|
|
4077
4086
|
"escape",
|
|
4078
4087
|
"unescape"
|
|
4079
|
-
],
|
|
4088
|
+
], n2 = [
|
|
4080
4089
|
"arguments",
|
|
4081
4090
|
"this",
|
|
4082
4091
|
"super",
|
|
@@ -4087,26 +4096,26 @@ const Xt = Yt, D0 = "[A-Za-z$_][0-9A-Za-z$_]*", qe = [
|
|
|
4087
4096
|
"module",
|
|
4088
4097
|
"global"
|
|
4089
4098
|
// Node.js
|
|
4090
|
-
],
|
|
4091
|
-
Jt,
|
|
4099
|
+
], Qe = [].concat(
|
|
4092
4100
|
e2,
|
|
4093
|
-
|
|
4094
|
-
Qt
|
|
4101
|
+
n2,
|
|
4102
|
+
Qt,
|
|
4103
|
+
Jt
|
|
4095
4104
|
);
|
|
4096
|
-
function
|
|
4105
|
+
function t2(e) {
|
|
4097
4106
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
4098
4107
|
}
|
|
4099
|
-
function
|
|
4100
|
-
return
|
|
4108
|
+
function Ee(e) {
|
|
4109
|
+
return X0("(?=", e, ")");
|
|
4101
4110
|
}
|
|
4102
|
-
function
|
|
4103
|
-
return e.map((t) =>
|
|
4111
|
+
function X0(...e) {
|
|
4112
|
+
return e.map((t) => t2(t)).join("");
|
|
4104
4113
|
}
|
|
4105
|
-
function
|
|
4106
|
-
const n = (R, { after:
|
|
4114
|
+
function a2(e) {
|
|
4115
|
+
const n = (R, { after: C }) => {
|
|
4107
4116
|
const _ = "</" + R[0].slice(1);
|
|
4108
|
-
return R.input.indexOf(_,
|
|
4109
|
-
}, t =
|
|
4117
|
+
return R.input.indexOf(_, C) !== -1;
|
|
4118
|
+
}, t = B0, a = {
|
|
4110
4119
|
begin: "<>",
|
|
4111
4120
|
end: "</>"
|
|
4112
4121
|
}, s = {
|
|
@@ -4116,19 +4125,19 @@ function t2(e) {
|
|
|
4116
4125
|
* @param {RegExpMatchArray} match
|
|
4117
4126
|
* @param {CallbackResponse} response
|
|
4118
4127
|
*/
|
|
4119
|
-
isTrulyOpeningTag: (R,
|
|
4128
|
+
isTrulyOpeningTag: (R, C) => {
|
|
4120
4129
|
const _ = R[0].length + R.index, T = R.input[_];
|
|
4121
4130
|
if (T === "<") {
|
|
4122
|
-
|
|
4131
|
+
C.ignoreMatch();
|
|
4123
4132
|
return;
|
|
4124
4133
|
}
|
|
4125
|
-
T === ">" && (n(R, { after: _ }) ||
|
|
4134
|
+
T === ">" && (n(R, { after: _ }) || C.ignoreMatch());
|
|
4126
4135
|
}
|
|
4127
4136
|
}, c = {
|
|
4128
|
-
$pattern:
|
|
4129
|
-
keyword:
|
|
4130
|
-
literal:
|
|
4131
|
-
built_in:
|
|
4137
|
+
$pattern: B0,
|
|
4138
|
+
keyword: Xe,
|
|
4139
|
+
literal: qe,
|
|
4140
|
+
built_in: Qe
|
|
4132
4141
|
}, l = "[0-9](_?[0-9])*", i = `\\.(${l})`, r = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", g = {
|
|
4133
4142
|
className: "number",
|
|
4134
4143
|
variants: [
|
|
@@ -4288,7 +4297,7 @@ function t2(e) {
|
|
|
4288
4297
|
g,
|
|
4289
4298
|
{
|
|
4290
4299
|
// object attr container
|
|
4291
|
-
begin:
|
|
4300
|
+
begin: X0(
|
|
4292
4301
|
/[{,\n]\s*/,
|
|
4293
4302
|
// we need to look ahead to make sure that we actually have an
|
|
4294
4303
|
// attribute coming up so we don't steal a comma from a potential
|
|
@@ -4300,7 +4309,7 @@ function t2(e) {
|
|
|
4300
4309
|
// fails to find any actual attrs. But this still does the job because
|
|
4301
4310
|
// it prevents the value contain rule from grabbing this instead and
|
|
4302
4311
|
// prevening this rule from firing when we actually DO have keys.
|
|
4303
|
-
|
|
4312
|
+
Ee(X0(
|
|
4304
4313
|
// we also need to allow for multiple possible comments inbetween
|
|
4305
4314
|
// the first key:value pairing
|
|
4306
4315
|
/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,
|
|
@@ -4311,7 +4320,7 @@ function t2(e) {
|
|
|
4311
4320
|
contains: [
|
|
4312
4321
|
{
|
|
4313
4322
|
className: "attr",
|
|
4314
|
-
begin: t +
|
|
4323
|
+
begin: t + Ee("\\s*:"),
|
|
4315
4324
|
relevance: 0
|
|
4316
4325
|
}
|
|
4317
4326
|
]
|
|
@@ -4473,8 +4482,8 @@ function t2(e) {
|
|
|
4473
4482
|
]
|
|
4474
4483
|
};
|
|
4475
4484
|
}
|
|
4476
|
-
function
|
|
4477
|
-
const n =
|
|
4485
|
+
function c2(e) {
|
|
4486
|
+
const n = B0, t = {
|
|
4478
4487
|
beginKeywords: "namespace",
|
|
4479
4488
|
end: /\{/,
|
|
4480
4489
|
excludeEnd: !0
|
|
@@ -4509,10 +4518,10 @@ function a2(e) {
|
|
|
4509
4518
|
"abstract",
|
|
4510
4519
|
"readonly"
|
|
4511
4520
|
], i = {
|
|
4512
|
-
$pattern:
|
|
4513
|
-
keyword:
|
|
4514
|
-
literal:
|
|
4515
|
-
built_in:
|
|
4521
|
+
$pattern: B0,
|
|
4522
|
+
keyword: Xe.concat(l),
|
|
4523
|
+
literal: qe,
|
|
4524
|
+
built_in: Qe.concat(c)
|
|
4516
4525
|
}, r = {
|
|
4517
4526
|
className: "meta",
|
|
4518
4527
|
begin: "@" + n
|
|
@@ -4521,7 +4530,7 @@ function a2(e) {
|
|
|
4521
4530
|
if (S === -1)
|
|
4522
4531
|
throw new Error("can not find mode to replace");
|
|
4523
4532
|
b.contains.splice(S, 1, L);
|
|
4524
|
-
}, o =
|
|
4533
|
+
}, o = a2(e);
|
|
4525
4534
|
Object.assign(o.keywords, i), o.exports.PARAMS_CONTAINS.push(r), o.contains = o.contains.concat([
|
|
4526
4535
|
r,
|
|
4527
4536
|
t,
|
|
@@ -4533,12 +4542,12 @@ function a2(e) {
|
|
|
4533
4542
|
aliases: ["ts", "tsx"]
|
|
4534
4543
|
}), o;
|
|
4535
4544
|
}
|
|
4536
|
-
var
|
|
4537
|
-
const
|
|
4538
|
-
var
|
|
4539
|
-
|
|
4540
|
-
const z =
|
|
4541
|
-
var
|
|
4545
|
+
var s2 = c2;
|
|
4546
|
+
const Je = /* @__PURE__ */ V(s2);
|
|
4547
|
+
var e1 = mn(E0, {});
|
|
4548
|
+
e1.registerLanguage = E0.registerLanguage;
|
|
4549
|
+
const z = e1;
|
|
4550
|
+
var n1 = {};
|
|
4542
4551
|
(function(e) {
|
|
4543
4552
|
Object.defineProperty(e, "__esModule", {
|
|
4544
4553
|
value: !0
|
|
@@ -4639,28 +4648,28 @@ var t1 = {};
|
|
|
4639
4648
|
}
|
|
4640
4649
|
};
|
|
4641
4650
|
e.default = n;
|
|
4642
|
-
})(
|
|
4643
|
-
const
|
|
4644
|
-
z.registerLanguage("sh",
|
|
4645
|
-
z.registerLanguage("shell",
|
|
4646
|
-
z.registerLanguage("bash",
|
|
4647
|
-
z.registerLanguage("json",
|
|
4648
|
-
z.registerLanguage("yaml",
|
|
4649
|
-
z.registerLanguage("yml",
|
|
4650
|
-
z.registerLanguage("php",
|
|
4651
|
-
z.registerLanguage("twig",
|
|
4652
|
-
z.registerLanguage("xml",
|
|
4653
|
-
z.registerLanguage("html",
|
|
4654
|
-
z.registerLanguage("js",
|
|
4655
|
-
z.registerLanguage("javascript",
|
|
4656
|
-
z.registerLanguage("ts",
|
|
4657
|
-
z.registerLanguage("typescript",
|
|
4658
|
-
const
|
|
4651
|
+
})(n1);
|
|
4652
|
+
const i2 = /* @__PURE__ */ V(n1);
|
|
4653
|
+
z.registerLanguage("sh", Ke);
|
|
4654
|
+
z.registerLanguage("shell", Ke);
|
|
4655
|
+
z.registerLanguage("bash", Mt);
|
|
4656
|
+
z.registerLanguage("json", jt);
|
|
4657
|
+
z.registerLanguage("yaml", Ye);
|
|
4658
|
+
z.registerLanguage("yml", Ye);
|
|
4659
|
+
z.registerLanguage("php", Zt);
|
|
4660
|
+
z.registerLanguage("twig", qt);
|
|
4661
|
+
z.registerLanguage("xml", We);
|
|
4662
|
+
z.registerLanguage("html", We);
|
|
4663
|
+
z.registerLanguage("js", Fe);
|
|
4664
|
+
z.registerLanguage("javascript", Fe);
|
|
4665
|
+
z.registerLanguage("ts", Je);
|
|
4666
|
+
z.registerLanguage("typescript", Je);
|
|
4667
|
+
const x2 = ({ language: e, children: n, ...t }) => /* @__PURE__ */ d(
|
|
4659
4668
|
z,
|
|
4660
4669
|
{
|
|
4661
4670
|
...t,
|
|
4662
4671
|
language: e,
|
|
4663
|
-
style:
|
|
4672
|
+
style: i2,
|
|
4664
4673
|
customStyle: {
|
|
4665
4674
|
backgroundColor: "var(--color-ultra-light-grey)",
|
|
4666
4675
|
padding: "var(--spacing-s)",
|
|
@@ -4669,22 +4678,22 @@ const N2 = ({ language: e, children: n, ...t }) => /* @__PURE__ */ d(
|
|
|
4669
4678
|
PreTag: "div",
|
|
4670
4679
|
children: n
|
|
4671
4680
|
}
|
|
4672
|
-
),
|
|
4681
|
+
), r2 = c0(({ as: e = "h1", size: n, children: t, ...a }, s) => /* @__PURE__ */ d(
|
|
4673
4682
|
U,
|
|
4674
4683
|
{
|
|
4675
4684
|
...a,
|
|
4676
4685
|
as: e,
|
|
4677
4686
|
ref: s,
|
|
4678
|
-
className: $({ [`heading-${n}`]:
|
|
4687
|
+
className: $({ [`heading-${n}`]: !!n }, a == null ? void 0 : a.className),
|
|
4679
4688
|
children: t
|
|
4680
4689
|
}
|
|
4681
4690
|
));
|
|
4682
|
-
|
|
4683
|
-
const
|
|
4684
|
-
|
|
4685
|
-
const
|
|
4686
|
-
const
|
|
4687
|
-
({ as: e = "div", isLoading: n = !0, children: t, ...a }, s) => /* @__PURE__ */ d(
|
|
4691
|
+
r2.displayName = "Heading";
|
|
4692
|
+
const d0 = c0(({ as: e = "p", size: n, children: t, ...a }, s) => /* @__PURE__ */ d(U, { ...a, as: e, ref: s, textSize: n, children: t }));
|
|
4693
|
+
d0.displayName = "Text";
|
|
4694
|
+
const _2 = (e) => /* @__PURE__ */ d(U, { ...e, as: "blockquote", className: $("blockquote", e.className) });
|
|
4695
|
+
const o2 = c0(
|
|
4696
|
+
({ as: e = "div", isLoading: n = !0, children: t, ...a }, s) => /* @__PURE__ */ d(ce, { children: n ? /* @__PURE__ */ d(
|
|
4688
4697
|
U,
|
|
4689
4698
|
{
|
|
4690
4699
|
...a,
|
|
@@ -4692,13 +4701,13 @@ const r2 = a0(
|
|
|
4692
4701
|
ref: s,
|
|
4693
4702
|
bg: "ultra-light-grey",
|
|
4694
4703
|
className: $($(n ? ["skeleton", "animate-pulse"] : void 0), a.className),
|
|
4695
|
-
children: t || /* @__PURE__ */ d(U, { children: /* @__PURE__ */ d(
|
|
4704
|
+
children: t || /* @__PURE__ */ d(U, { children: /* @__PURE__ */ d(ce, { children: " " }) })
|
|
4696
4705
|
}
|
|
4697
4706
|
) : t })
|
|
4698
4707
|
);
|
|
4699
|
-
|
|
4700
|
-
const
|
|
4701
|
-
|
|
4708
|
+
o2.displayName = "Skeleton";
|
|
4709
|
+
const l2 = c0(({ as: e = "a", size: n, icon: t, children: a, ...s }, c) => /* @__PURE__ */ j(
|
|
4710
|
+
q0,
|
|
4702
4711
|
{
|
|
4703
4712
|
...s,
|
|
4704
4713
|
ref: c,
|
|
@@ -4708,13 +4717,13 @@ const o2 = a0(({ as: e = "a", size: n, icon: t, children: a, ...s }, c) => /* @_
|
|
|
4708
4717
|
className: $("link", s.className),
|
|
4709
4718
|
textSize: n,
|
|
4710
4719
|
children: [
|
|
4711
|
-
t && /* @__PURE__ */ d(
|
|
4712
|
-
/* @__PURE__ */ d(
|
|
4720
|
+
t && /* @__PURE__ */ d(V0, { name: t }),
|
|
4721
|
+
/* @__PURE__ */ d(d0, { as: "span", children: a })
|
|
4713
4722
|
]
|
|
4714
4723
|
}
|
|
4715
4724
|
));
|
|
4716
|
-
|
|
4717
|
-
const
|
|
4725
|
+
l2.displayName = "Link";
|
|
4726
|
+
const w2 = [
|
|
4718
4727
|
"note",
|
|
4719
4728
|
"summary",
|
|
4720
4729
|
"info",
|
|
@@ -4727,40 +4736,33 @@ const _2 = [
|
|
|
4727
4736
|
"bug",
|
|
4728
4737
|
"example",
|
|
4729
4738
|
"quote"
|
|
4730
|
-
],
|
|
4731
|
-
/* @__PURE__ */ d(
|
|
4739
|
+
], S2 = ({ variant: e, title: n, children: t, ...a }) => /* @__PURE__ */ j(U, { ...a, className: $("reminder", `reminder--${e}`), children: [
|
|
4740
|
+
/* @__PURE__ */ d(d0, { className: "reminder__title", children: n }),
|
|
4732
4741
|
/* @__PURE__ */ d(U, { p: "xxs", children: t })
|
|
4733
4742
|
] });
|
|
4734
|
-
const
|
|
4743
|
+
const u2 = c0(
|
|
4735
4744
|
({ input: e, buttonClose: n, buttonSearch: t, ...a }, s) => /* @__PURE__ */ j(
|
|
4736
4745
|
U,
|
|
4737
4746
|
{
|
|
4738
|
-
className: $("search-field", { "search-field--has-value":
|
|
4747
|
+
className: $("search-field", { "search-field--has-value": !!e.value }, a.className),
|
|
4739
4748
|
ref: s,
|
|
4740
4749
|
children: [
|
|
4741
4750
|
/* @__PURE__ */ d(U, { ...e, as: "input", className: "search-field__input" }),
|
|
4742
|
-
/* @__PURE__ */ j(
|
|
4743
|
-
|
|
4751
|
+
/* @__PURE__ */ j(q0, { justifyContent: "center", alignItems: "center", className: "search-field__actions-container", children: [
|
|
4752
|
+
!!e.value && /* @__PURE__ */ d(U, { as: "button", className: "search-field__button-action", ...n, children: /* @__PURE__ */ d(V0, { name: "close", color: "grey", size: "1.5rem" }) }),
|
|
4744
4753
|
/* @__PURE__ */ d(U, { className: "search-field__separator-button", ml: "xs" }),
|
|
4745
|
-
/* @__PURE__ */ d(U, { as: "button", className: "search-field__button-action", ...t, children: /* @__PURE__ */ d(
|
|
4754
|
+
/* @__PURE__ */ d(U, { as: "button", className: "search-field__button-action", ...t, children: /* @__PURE__ */ d(V0, { name: "search", color: "amaranth", size: "2.5rem", mx: "xs" }) })
|
|
4746
4755
|
] })
|
|
4747
4756
|
]
|
|
4748
4757
|
}
|
|
4749
4758
|
)
|
|
4750
4759
|
);
|
|
4751
|
-
|
|
4752
|
-
var
|
|
4753
|
-
get exports() {
|
|
4754
|
-
return Q0;
|
|
4755
|
-
},
|
|
4756
|
-
set exports(e) {
|
|
4757
|
-
Q0 = e;
|
|
4758
|
-
}
|
|
4759
|
-
};
|
|
4760
|
+
u2.displayName = "SearchField";
|
|
4761
|
+
var t1 = { exports: {} };
|
|
4760
4762
|
(function(e, n) {
|
|
4761
4763
|
(function(t, a) {
|
|
4762
4764
|
e.exports = a();
|
|
4763
|
-
})(
|
|
4765
|
+
})(Ne, () => {
|
|
4764
4766
|
return t = { 772: (s, c, l) => {
|
|
4765
4767
|
const i = l(826).remove, r = /[.*+?^${}()|[\]\\]/g, g = /[a-z0-9_]/i, o = /\s+/;
|
|
4766
4768
|
s.exports = function(m, b, v) {
|
|
@@ -4771,14 +4773,14 @@ var Q0 = {}, u2 = {
|
|
|
4771
4773
|
const A = Array.from(m).map((w) => i(w));
|
|
4772
4774
|
let x = A.join("");
|
|
4773
4775
|
return (b = i(b)).trim().split(o).filter((w) => w.length > 0).reduce((w, M) => {
|
|
4774
|
-
const R = M.length,
|
|
4776
|
+
const R = M.length, C = !v.insideWords && g.test(M[0]) ? "\\b" : "", _ = new RegExp(C + M.replace(r, "\\$&"), "i");
|
|
4775
4777
|
let T, P;
|
|
4776
4778
|
if (T = _.exec(x), v.requireMatchAll && T === null)
|
|
4777
4779
|
return x = "", [];
|
|
4778
4780
|
for (; T; ) {
|
|
4779
4781
|
P = T.index;
|
|
4780
|
-
const
|
|
4781
|
-
if (
|
|
4782
|
+
const K = R - A.slice(P, P + R).join("").length, X = P - A.slice(0, P).join("").length, q = [P + X, P + R + X + K];
|
|
4783
|
+
if (q[0] !== q[1] && w.push(q), x = x.slice(0, P) + new Array(R + 1).join(" ") + x.slice(P + R), !v.findAllOccurrences)
|
|
4782
4784
|
break;
|
|
4783
4785
|
T = _.exec(x);
|
|
4784
4786
|
}
|
|
@@ -4803,20 +4805,14 @@ var Q0 = {}, u2 = {
|
|
|
4803
4805
|
}(772);
|
|
4804
4806
|
var t, a;
|
|
4805
4807
|
});
|
|
4806
|
-
})(
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
return J0;
|
|
4811
|
-
},
|
|
4812
|
-
set exports(e) {
|
|
4813
|
-
J0 = e;
|
|
4814
|
-
}
|
|
4815
|
-
};
|
|
4808
|
+
})(t1);
|
|
4809
|
+
var g2 = t1.exports;
|
|
4810
|
+
const m2 = /* @__PURE__ */ V(g2);
|
|
4811
|
+
var a1 = { exports: {} };
|
|
4816
4812
|
(function(e, n) {
|
|
4817
4813
|
(function(t, a) {
|
|
4818
4814
|
e.exports = a();
|
|
4819
|
-
})(
|
|
4815
|
+
})(Ne, () => {
|
|
4820
4816
|
return t = { 705: (s) => {
|
|
4821
4817
|
s.exports = function(c, l) {
|
|
4822
4818
|
const i = [];
|
|
@@ -4834,14 +4830,15 @@ var J0 = {}, m2 = {
|
|
|
4834
4830
|
}(705);
|
|
4835
4831
|
var t, a;
|
|
4836
4832
|
});
|
|
4837
|
-
})(
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4833
|
+
})(a1);
|
|
4834
|
+
var d2 = a1.exports;
|
|
4835
|
+
const f2 = /* @__PURE__ */ V(d2), h2 = c0(({ text: e, textQuery: n = "", ...t }, a) => {
|
|
4836
|
+
const s = P0.useMemo(() => {
|
|
4837
|
+
const c = m2(e, n, { findAllOccurrences: !0 });
|
|
4838
|
+
return f2(e, c);
|
|
4842
4839
|
}, [e, n]);
|
|
4843
|
-
return /* @__PURE__ */ d(
|
|
4844
|
-
|
|
4840
|
+
return /* @__PURE__ */ d(d0, { ...t, ref: a, children: s.map((c, l) => /* @__PURE__ */ d(
|
|
4841
|
+
d0,
|
|
4845
4842
|
{
|
|
4846
4843
|
as: "span",
|
|
4847
4844
|
fontWeight: c.highlight ? "medium" : "regular",
|
|
@@ -4851,37 +4848,37 @@ const d2 = J0, f2 = a0(({ text: e, textQuery: n = "", ...t }, a) => {
|
|
|
4851
4848
|
l
|
|
4852
4849
|
)) });
|
|
4853
4850
|
});
|
|
4854
|
-
|
|
4855
|
-
const
|
|
4856
|
-
},
|
|
4857
|
-
const [n, t] =
|
|
4858
|
-
return
|
|
4859
|
-
const a = window.matchMedia(
|
|
4851
|
+
h2.displayName = "TextHighlight";
|
|
4852
|
+
const p2 = typeof window < "u" ? P0.useLayoutEffect : () => {
|
|
4853
|
+
}, O2 = (e) => {
|
|
4854
|
+
const [n, t] = P0.useState(!1);
|
|
4855
|
+
return p2(() => {
|
|
4856
|
+
const a = window.matchMedia($1[e]);
|
|
4860
4857
|
a.matches !== n && t(a.matches);
|
|
4861
4858
|
const s = () => t(a.matches);
|
|
4862
4859
|
return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
4863
4860
|
}, [e, n, t]), n;
|
|
4864
4861
|
};
|
|
4865
4862
|
export {
|
|
4866
|
-
|
|
4863
|
+
_2 as Blockquote,
|
|
4867
4864
|
U as Box,
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4865
|
+
j1 as Button,
|
|
4866
|
+
q0 as Flex,
|
|
4867
|
+
r2 as Heading,
|
|
4868
|
+
V0 as Icon,
|
|
4869
|
+
l2 as Link,
|
|
4870
|
+
N2 as Logo,
|
|
4871
|
+
S2 as Reminder,
|
|
4872
|
+
u2 as SearchField,
|
|
4873
|
+
o2 as Skeleton,
|
|
4874
|
+
S1 as Svgs,
|
|
4875
|
+
x2 as SyntaxHighlighter,
|
|
4876
|
+
d0 as Text,
|
|
4877
|
+
h2 as TextHighlight,
|
|
4878
|
+
E2 as buttonVariant,
|
|
4879
|
+
c0 as forwardRef,
|
|
4880
|
+
y2 as logoName,
|
|
4881
|
+
w2 as reminderVariantList,
|
|
4882
|
+
p2 as useLayoutEffect,
|
|
4883
|
+
O2 as useMediaQuery
|
|
4887
4884
|
};
|