@shriyanss/js-recon 1.1.0-beta.1 → 1.1.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +29 -0
  2. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  3. package/.github/workflows/{prettier.yaml → build-and-prettify.yaml} +23 -2
  4. package/.github/workflows/npm-publish.yml +2 -2
  5. package/CHANGELOG.md +26 -0
  6. package/README.md +1 -0
  7. package/build/api_gateway/genReq.js +0 -3
  8. package/build/api_gateway/genReq.js.map +1 -1
  9. package/build/api_gateway/index.js +5 -7
  10. package/build/api_gateway/index.js.map +1 -1
  11. package/build/endpoints/gen_report/gen_markdown.js.map +1 -1
  12. package/build/endpoints/index.js.map +1 -1
  13. package/build/endpoints/next_js/client_jsFilesHref.js +1 -0
  14. package/build/endpoints/next_js/client_jsFilesHref.js.map +1 -1
  15. package/build/endpoints/next_js/client_jsonParse.js +5 -1
  16. package/build/endpoints/next_js/client_jsonParse.js.map +1 -1
  17. package/build/endpoints/next_js/client_subsequentRequests.js +2 -1
  18. package/build/endpoints/next_js/client_subsequentRequests.js.map +1 -1
  19. package/build/endpoints/next_js/getWebpacks.js +1 -0
  20. package/build/endpoints/next_js/getWebpacks.js.map +1 -1
  21. package/build/globalConfig.js +1 -1
  22. package/build/lazyLoad/globals.js +0 -3
  23. package/build/lazyLoad/globals.js.map +1 -1
  24. package/build/lazyLoad/index.js +0 -1
  25. package/build/lazyLoad/index.js.map +1 -1
  26. package/build/lazyLoad/next_js/next_GetJSScript.js.map +1 -1
  27. package/build/lazyLoad/next_js/next_GetLazyResources.js +1 -0
  28. package/build/lazyLoad/next_js/next_GetLazyResources.js.map +1 -1
  29. package/build/lazyLoad/next_js/next_SubsequentRequests.js.map +1 -1
  30. package/build/lazyLoad/nuxt_js/nuxt_astParse.js +1 -0
  31. package/build/lazyLoad/nuxt_js/nuxt_astParse.js.map +1 -1
  32. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js +1 -0
  33. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js.map +1 -1
  34. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js +1 -0
  35. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js.map +1 -1
  36. package/build/map/next_js/getFetchInstances.js +5 -1
  37. package/build/map/next_js/getFetchInstances.js.map +1 -1
  38. package/build/map/next_js/getWebpackConnections.js +14 -3
  39. package/build/map/next_js/getWebpackConnections.js.map +1 -1
  40. package/build/map/next_js/interactive.js +4 -3
  41. package/build/map/next_js/interactive.js.map +1 -1
  42. package/build/map/next_js/interactive_helpers/commandHandler.js +179 -138
  43. package/build/map/next_js/interactive_helpers/commandHandler.js.map +1 -1
  44. package/build/map/next_js/interactive_helpers/commandHelpers.js +31 -3
  45. package/build/map/next_js/interactive_helpers/commandHelpers.js.map +1 -1
  46. package/build/map/next_js/interactive_helpers/helpMenu.js +2 -2
  47. package/build/map/next_js/interactive_helpers/helpMenu.js.map +1 -1
  48. package/build/map/next_js/interactive_helpers/printer.js +1 -1
  49. package/build/map/next_js/interactive_helpers/printer.js.map +1 -1
  50. package/build/map/next_js/interactive_helpers/ui.js +0 -1
  51. package/build/map/next_js/interactive_helpers/ui.js.map +1 -1
  52. package/build/map/next_js/resolveFetch.js.map +1 -1
  53. package/build/run/index.js +5 -0
  54. package/build/run/index.js.map +1 -1
  55. package/build/strings/index.js +6 -1
  56. package/build/strings/index.js.map +1 -1
  57. package/build/techDetect/index.js +6 -1
  58. package/build/techDetect/index.js.map +1 -1
  59. package/build/utility/makeReq.js +2 -2
  60. package/build/utility/makeReq.js.map +1 -1
  61. package/docs/CNAME +1 -0
  62. package/docs/interactive-mode.md +1 -0
  63. package/docs/robots.txt +2 -0
  64. package/package.json +2 -1
  65. package/.api_gateway_config.json +0 -1
  66. package/.resp_cache.json +0 -1
  67. package/.vscode/launch.json +0 -27
  68. package/endpoints.json +0 -77
  69. package/extracted_urls-openapi.json +0 -225
  70. package/extracted_urls-swagger.json +0 -225
  71. package/extracted_urls.json +0 -47
  72. package/extracted_urls.txt +0 -296
  73. package/mapped.json +0 -3413
  74. package/output/ss0x00.com/_next/data/k7xKVnxmboK4SktY2dZWt/index.json +0 -971
  75. package/output/ss0x00.com/_next/static/chunks/12.7e6d2ac6e1808fc2.js +0 -247
  76. package/output/ss0x00.com/_next/static/chunks/128.160aa801ef0445bc.js +0 -1074
  77. package/output/ss0x00.com/_next/static/chunks/132.55df84f7707fc278.js +0 -102
  78. package/output/ss0x00.com/_next/static/chunks/142.77038c55d9ec10ba.js +0 -96
  79. package/output/ss0x00.com/_next/static/chunks/215.321479e91d330bfa.js +0 -228
  80. package/output/ss0x00.com/_next/static/chunks/229.097c396d86b4a882.js +0 -458
  81. package/output/ss0x00.com/_next/static/chunks/257.5fd052aa4ef06ef9.js +0 -1327
  82. package/output/ss0x00.com/_next/static/chunks/268.72cb3779f66db70b.js +0 -10520
  83. package/output/ss0x00.com/_next/static/chunks/320.57d528b0e9bf86f0.js +0 -186
  84. package/output/ss0x00.com/_next/static/chunks/325.302a44b604c35f17.js +0 -88
  85. package/output/ss0x00.com/_next/static/chunks/328.e4a0307a4fddf318.js +0 -248
  86. package/output/ss0x00.com/_next/static/chunks/432.3621f17504ef18f2.js +0 -443
  87. package/output/ss0x00.com/_next/static/chunks/44.e90dd963003a3d43.js +0 -1094
  88. package/output/ss0x00.com/_next/static/chunks/442.8c054f100f9e5e50.js +0 -1082
  89. package/output/ss0x00.com/_next/static/chunks/460.f8db9a5142598e2c.js +0 -466
  90. package/output/ss0x00.com/_next/static/chunks/487.05ca55420459c002.js +0 -78
  91. package/output/ss0x00.com/_next/static/chunks/567.1909a6b0a920114b.js +0 -1374
  92. package/output/ss0x00.com/_next/static/chunks/586.802fc9214d87fb29.js +0 -752
  93. package/output/ss0x00.com/_next/static/chunks/620.a2a3a6b94d30a4c8.js +0 -1037
  94. package/output/ss0x00.com/_next/static/chunks/642.6b3e487c9604cbb8.js +0 -1628
  95. package/output/ss0x00.com/_next/static/chunks/673.e5d77887e5c6a68c.js +0 -1045
  96. package/output/ss0x00.com/_next/static/chunks/684.8b8e52baca70524b.js +0 -96
  97. package/output/ss0x00.com/_next/static/chunks/686.79480519e5ccfb77.js +0 -296
  98. package/output/ss0x00.com/_next/static/chunks/756.7a3878a2e6765be7.js +0 -504
  99. package/output/ss0x00.com/_next/static/chunks/761.7bea7516c5d22b2a.js +0 -1485
  100. package/output/ss0x00.com/_next/static/chunks/794.e079ef369b41a3c5.js +0 -1350
  101. package/output/ss0x00.com/_next/static/chunks/826.31ba213e1d023c68.js +0 -1031
  102. package/output/ss0x00.com/_next/static/chunks/847.d8397a73efc81848.js +0 -1068
  103. package/output/ss0x00.com/_next/static/chunks/848.5feaeee1e2624aea.js +0 -132
  104. package/output/ss0x00.com/_next/static/chunks/850.ecc7c3c3d787ee03.js +0 -1472
  105. package/output/ss0x00.com/_next/static/chunks/853.50b9eb60b7d0e83c.js +0 -1472
  106. package/output/ss0x00.com/_next/static/chunks/856.7a7bb6c3c7bfc2ba.js +0 -1320
  107. package/output/ss0x00.com/_next/static/chunks/859.df4bd45c03a65f53.js +0 -1306
  108. package/output/ss0x00.com/_next/static/chunks/867.e8633955a147c978.js +0 -541
  109. package/output/ss0x00.com/_next/static/chunks/921.c3123f20a4c8d53c.js +0 -96
  110. package/output/ss0x00.com/_next/static/chunks/932.25cb421c466c99cb.js +0 -999
  111. package/output/ss0x00.com/_next/static/chunks/framework-64ad27b21261a9ce.js +0 -9189
  112. package/output/ss0x00.com/_next/static/chunks/main-710ab85aa9a8f10d.js +0 -6583
  113. package/output/ss0x00.com/_next/static/chunks/pages/5D-af5a23529ce3c337.js +0 -486
  114. package/output/ss0x00.com/_next/static/chunks/pages/_app-c449865c8af1faa0.js +0 -39
  115. package/output/ss0x00.com/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +0 -6383
  116. package/output/ss0x00.com/_next/static/chunks/webpack-efff35ee26971294.js +0 -271
  117. package/output/ss0x00.com/_next/static/k7xKVnxmboK4SktY2dZWt/_buildManifest.js +0 -8
  118. package/output/ss0x00.com/_next/static/k7xKVnxmboK4SktY2dZWt/_ssgManifest.js +0 -3
  119. package/output/ss0x00.com/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js +0 -82
  120. package/strings.json +0 -7407
@@ -1,1628 +0,0 @@
1
- // JS Source: https://ss0x00.com/_next/static/chunks/642.6b3e487c9604cbb8.js
2
- (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
3
- [642, 487],
4
- {
5
- 487: function (e, t, r) {
6
- "use strict";
7
- (r.r(t),
8
- r.d(t, {
9
- default: function () {
10
- return o;
11
- },
12
- }));
13
- var n = r(5893);
14
- r(7294);
15
- var l = r(3967),
16
- i = r.n(l),
17
- a = r(6880);
18
- function o(e) {
19
- let { elementId: t, className: r, url: l, altText: o = "" } = e;
20
- return l
21
- ? (0, n.jsx)(a.M, {
22
- content: e,
23
- children: (0, n.jsx)("img", {
24
- id: t || null,
25
- className: i()(
26
- "sb-component",
27
- "sb-component-block",
28
- "sb-component-image-block",
29
- r,
30
- ),
31
- src: l,
32
- alt: o,
33
- }),
34
- })
35
- : null;
36
- }
37
- },
38
- 6319: function (e, t, r) {
39
- "use strict";
40
- r.d(t, {
41
- Z: function () {
42
- return o;
43
- },
44
- });
45
- var n = r(5893);
46
- r(7294);
47
- var l = r(3967),
48
- i = r.n(l),
49
- a = r(9754);
50
- function o(e) {
51
- let { backgroundSize: t = "full", ...r } = e;
52
- return "inset" === t
53
- ? (0, n.jsx)(s, { ...r })
54
- : (0, n.jsx)(c, { ...r });
55
- }
56
- function s(e) {
57
- var t, r, l, o;
58
- let {
59
- type: s,
60
- elementId: c,
61
- colors: d = "colors-f",
62
- styles: u = {},
63
- children: m,
64
- } = e,
65
- p = s && s.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
66
- return (0, n.jsx)("div", {
67
- id: c || null,
68
- className: i()(
69
- "sb-component",
70
- "sb-component-section",
71
- p && "sb-component-".concat(p),
72
- "flex",
73
- (0, a.G)({
74
- justifyContent:
75
- null !== (t = u.justifyContent) && void 0 !== t ? t : "center",
76
- }),
77
- u.margin,
78
- ),
79
- children: (0, n.jsx)("div", {
80
- className: i()(
81
- d,
82
- "flex",
83
- "flex-col",
84
- "justify-center",
85
- "relative",
86
- "w-full",
87
- (0, a.G)({
88
- width: null !== (r = u.width) && void 0 !== r ? r : "wide",
89
- }),
90
- (0, a.G)({
91
- height: null !== (l = u.height) && void 0 !== l ? l : "auto",
92
- }),
93
- null !== (o = u.padding) && void 0 !== o ? o : "py-12 px-4",
94
- u.borderColor,
95
- u.borderStyle ? (0, a.G)({ borderStyle: u.borderStyle }) : null,
96
- u.borderRadius
97
- ? (0, a.G)({ borderRadius: u.borderRadius })
98
- : null,
99
- ),
100
- style: {
101
- borderWidth: u.borderWidth
102
- ? "".concat(u.borderWidth, "px")
103
- : null,
104
- },
105
- children: (0, n.jsx)("div", {
106
- className: "relative w-full",
107
- children: m,
108
- }),
109
- }),
110
- });
111
- }
112
- function c(e) {
113
- var t, r, l, o;
114
- let {
115
- type: s,
116
- elementId: c,
117
- colors: d = "colors-f",
118
- styles: u = {},
119
- children: m,
120
- } = e,
121
- p = s && s.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
122
- return (0, n.jsx)("div", {
123
- id: c || null,
124
- className: i()(
125
- "sb-component",
126
- "sb-component-section",
127
- p && "sb-component-".concat(p),
128
- d,
129
- "flex",
130
- "flex-col",
131
- "justify-center",
132
- (0, a.G)({
133
- height: null !== (t = u.height) && void 0 !== t ? t : "auto",
134
- }),
135
- u.margin,
136
- null !== (r = u.padding) && void 0 !== r ? r : "py-12 px-4",
137
- u.borderColor,
138
- u.borderStyle ? (0, a.G)({ borderStyle: u.borderStyle }) : null,
139
- u.borderRadius ? (0, a.G)({ borderRadius: u.borderRadius }) : null,
140
- ),
141
- style: {
142
- borderWidth: u.borderWidth ? "".concat(u.borderWidth, "px") : null,
143
- },
144
- children: (0, n.jsx)("div", {
145
- className: i()(
146
- "flex",
147
- "w-full",
148
- (0, a.G)({
149
- justifyContent:
150
- null !== (l = u.justifyContent) && void 0 !== l
151
- ? l
152
- : "center",
153
- }),
154
- ),
155
- children: (0, n.jsx)("div", {
156
- className: i()(
157
- "relative",
158
- "w-full",
159
- (0, a.G)({
160
- width: null !== (o = u.width) && void 0 !== o ? o : "wide",
161
- }),
162
- ),
163
- children: m,
164
- }),
165
- }),
166
- });
167
- }
168
- },
169
- 8642: function (e, t, r) {
170
- "use strict";
171
- (r.r(t),
172
- r.d(t, {
173
- default: function () {
174
- return d;
175
- },
176
- }));
177
- var n = r(5893);
178
- r(7294);
179
- var l = r(5576),
180
- i = r(3967),
181
- a = r.n(i),
182
- o = r(9754),
183
- s = r(6319),
184
- c = r(487);
185
- function d(e) {
186
- let {
187
- type: t,
188
- elementId: r,
189
- colors: l,
190
- variant: i,
191
- title: c,
192
- subtitle: d,
193
- testimonials: m,
194
- styles: p = {},
195
- } = e;
196
- return (0, n.jsxs)(s.Z, {
197
- type: t,
198
- elementId: r,
199
- colors: l,
200
- styles: p.self,
201
- children: [
202
- c &&
203
- (0, n.jsx)("h2", {
204
- className: a()(p.title ? (0, o.G)(p.title) : null),
205
- children: c,
206
- }),
207
- d &&
208
- (0, n.jsx)("p", {
209
- className: a()(
210
- "text-lg",
211
- "sm:text-xl",
212
- p.subtitle ? (0, o.G)(p.subtitle) : null,
213
- { "mt-6": c },
214
- ),
215
- children: d,
216
- }),
217
- (0, n.jsx)(u, {
218
- variant: i,
219
- testimonials: m,
220
- hasTopMargin: !!(c || d),
221
- }),
222
- ],
223
- });
224
- }
225
- function u(e) {
226
- let { variant: t = "variant-a", ...r } = e;
227
- switch (t) {
228
- case "variant-a":
229
- return (0, n.jsx)(m, { ...r });
230
- case "variant-b":
231
- return (0, n.jsx)(p, { ...r });
232
- case "variant-c":
233
- return (0, n.jsx)(f, { ...r });
234
- default:
235
- return null;
236
- }
237
- }
238
- function m(e) {
239
- let { testimonials: t = [], hasTopMargin: r } = e;
240
- return 0 === t.length
241
- ? null
242
- : (0, n.jsx)("div", {
243
- className: a()(
244
- "grid",
245
- "md:grid-cols-2",
246
- "gap-y-16",
247
- "md:gap-y-20",
248
- { "mt-16 sm:mt-20": r },
249
- ),
250
- children: t.map((e, t) => {
251
- var r, i, s, d;
252
- return (0, n.jsxs)(
253
- "blockquote",
254
- {
255
- className: a()(
256
- t % 2 == 0 ? "md:pr-12" : "md:border-l md:pl-12",
257
- ),
258
- children: [
259
- e.image &&
260
- (0, n.jsx)("div", {
261
- className: "mb-8",
262
- children: (0, n.jsx)(c.default, {
263
- ...e.image,
264
- className: "w-24 h-24 object-cover rounded-full",
265
- }),
266
- }),
267
- e.quote &&
268
- (0, n.jsx)(l.ZP, {
269
- options: { forceBlock: !0, forceWrapper: !0 },
270
- className:
271
- "sb-markdown text-3xl sm:text-4xl sm:leading-tight",
272
- children: e.quote,
273
- }),
274
- (e.name || e.title) &&
275
- (0, n.jsxs)("footer", {
276
- className: "mt-8 md:mt-12",
277
- children: [
278
- e.name &&
279
- (0, n.jsx)("div", {
280
- className: a()(
281
- "text-lg",
282
- (
283
- null === (r = e.styles) || void 0 === r
284
- ? void 0
285
- : r.name
286
- )
287
- ? (0, o.G)(
288
- null === (i = e.styles) || void 0 === i
289
- ? void 0
290
- : i.name,
291
- )
292
- : null,
293
- ),
294
- children: e.name,
295
- }),
296
- e.title &&
297
- (0, n.jsx)("div", {
298
- className: a()(
299
- "text-lg",
300
- (
301
- null === (s = e.styles) || void 0 === s
302
- ? void 0
303
- : s.title
304
- )
305
- ? (0, o.G)(
306
- null === (d = e.styles) || void 0 === d
307
- ? void 0
308
- : d.title,
309
- )
310
- : null,
311
- ),
312
- children: e.title,
313
- }),
314
- ],
315
- }),
316
- ],
317
- },
318
- t,
319
- );
320
- }),
321
- });
322
- }
323
- function p(e) {
324
- let { testimonials: t = [], hasTopMargin: r } = e;
325
- return 0 === t.length
326
- ? null
327
- : (0, n.jsx)("div", {
328
- className: a()("space-y-16", "sm:space-y-24", {
329
- "mt-16 sm:mt-20": r,
330
- }),
331
- children: t.map((e, t) => {
332
- var r, i, s, d;
333
- return (0, n.jsxs)(
334
- "blockquote",
335
- {
336
- children: [
337
- e.quote &&
338
- (0, n.jsx)(l.ZP, {
339
- options: { forceBlock: !0, forceWrapper: !0 },
340
- className:
341
- "sb-markdown text-3xl sm:text-4xl sm:leading-tight lg:text-5xl lg:leading-tight",
342
- children: e.quote,
343
- }),
344
- (e.name || e.title || e.image) &&
345
- (0, n.jsxs)("footer", {
346
- className: "flex flex-wrap items-center mt-6 md:mt-8",
347
- children: [
348
- e.image &&
349
- (0, n.jsx)("div", {
350
- className: "shrink-0 mt-4 mr-6",
351
- children: (0, n.jsx)(c.default, {
352
- ...e.image,
353
- className:
354
- "w-12 h-12 sm:w-20 sm:h-20 object-cover rounded-full",
355
- }),
356
- }),
357
- (e.name || e.title) &&
358
- (0, n.jsxs)("div", {
359
- className: "grow mt-4",
360
- children: [
361
- e.name &&
362
- (0, n.jsx)("div", {
363
- className: a()(
364
- "text-lg",
365
- (
366
- null === (r = e.styles) ||
367
- void 0 === r
368
- ? void 0
369
- : r.name
370
- )
371
- ? (0, o.G)(
372
- null === (i = e.styles) ||
373
- void 0 === i
374
- ? void 0
375
- : i.name,
376
- )
377
- : null,
378
- ),
379
- children: e.name,
380
- }),
381
- e.title &&
382
- (0, n.jsx)("div", {
383
- className: a()(
384
- "text-lg",
385
- (
386
- null === (s = e.styles) ||
387
- void 0 === s
388
- ? void 0
389
- : s.title
390
- )
391
- ? (0, o.G)(
392
- null === (d = e.styles) ||
393
- void 0 === d
394
- ? void 0
395
- : d.title,
396
- )
397
- : null,
398
- ),
399
- children: e.title,
400
- }),
401
- ],
402
- }),
403
- ],
404
- }),
405
- ],
406
- },
407
- t,
408
- );
409
- }),
410
- });
411
- }
412
- function f(e) {
413
- let { testimonials: t = [], hasTopMargin: r } = e;
414
- return 0 === t.length
415
- ? null
416
- : (0, n.jsx)("div", {
417
- className: a()("space-y-16", "sm:space-y-24", {
418
- "mt-16 sm:mt-20": r,
419
- }),
420
- children: t.map((e, t) => {
421
- var r, i, s, d;
422
- return (0, n.jsxs)(
423
- "blockquote",
424
- {
425
- className: a()(
426
- "flex",
427
- "flex-col",
428
- "md:items-center",
429
- t % 2 == 0 ? "md:flex-row" : "md:flex-row-reverse",
430
- ),
431
- children: [
432
- e.image &&
433
- (0, n.jsx)("div", {
434
- className: a()(
435
- "shrink-0",
436
- "max-w-lg",
437
- "mb-8",
438
- "md:mb-0",
439
- "md:w-2/5",
440
- t % 2 == 0 ? "md:mr-8" : "md:ml-8",
441
- ),
442
- children: (0, n.jsx)(c.default, {
443
- ...e.image,
444
- className: "w-full",
445
- }),
446
- }),
447
- (0, n.jsxs)("div", {
448
- className: "grow",
449
- children: [
450
- e.quote &&
451
- (0, n.jsx)(l.ZP, {
452
- options: { forceBlock: !0, forceWrapper: !0 },
453
- className:
454
- "sb-markdown text-3xl sm:text-4xl sm:leading-tight",
455
- children: e.quote,
456
- }),
457
- (e.name || e.title) &&
458
- (0, n.jsx)("footer", {
459
- className:
460
- "flex flex-wrap items-center mt-6 md:mt-8",
461
- children:
462
- (e.name || e.title) &&
463
- (0, n.jsxs)("div", {
464
- className: "grow mt-4",
465
- children: [
466
- e.name &&
467
- (0, n.jsx)("div", {
468
- className: a()(
469
- "text-lg",
470
- (
471
- null === (r = e.styles) ||
472
- void 0 === r
473
- ? void 0
474
- : r.name
475
- )
476
- ? (0, o.G)(
477
- null === (i = e.styles) ||
478
- void 0 === i
479
- ? void 0
480
- : i.name,
481
- )
482
- : null,
483
- ),
484
- children: e.name,
485
- }),
486
- e.title &&
487
- (0, n.jsx)("div", {
488
- className: a()(
489
- "text-lg",
490
- (
491
- null === (s = e.styles) ||
492
- void 0 === s
493
- ? void 0
494
- : s.title
495
- )
496
- ? (0, o.G)(
497
- null === (d = e.styles) ||
498
- void 0 === d
499
- ? void 0
500
- : d.title,
501
- )
502
- : null,
503
- ),
504
- children: e.title,
505
- }),
506
- ],
507
- }),
508
- }),
509
- ],
510
- }),
511
- ],
512
- },
513
- t,
514
- );
515
- }),
516
- });
517
- }
518
- },
519
- 9754: function (e, t, r) {
520
- "use strict";
521
- r.d(t, {
522
- G: function () {
523
- return l;
524
- },
525
- });
526
- let n = {
527
- alignItems: {
528
- "flex-start": "items-start",
529
- "flex-end": "items-end",
530
- center: "items-center",
531
- },
532
- backgroundPosition: {
533
- bottom: "bg-bottom",
534
- center: "bg-center",
535
- left: "bg-left",
536
- "left-bottom": "bg-left-bottom",
537
- "left-top": "bg-left-top",
538
- right: "bg-right",
539
- "right-bottom": "bg-right-bottom",
540
- "right-top": "bg-right-top",
541
- top: "bg-top",
542
- },
543
- backgroundRepeat: {
544
- repeat: "bg-repeat",
545
- "repeat-x": "bg-repeat-x",
546
- "repeat-y": "bg-repeat-y",
547
- "no-repeat": "bg-no-repeat",
548
- },
549
- backgroundSize: {
550
- auto: "bg-auto",
551
- cover: "bg-cover",
552
- contain: "bg-contain",
553
- },
554
- borderRadius: {
555
- none: "rounded-none",
556
- "xx-small": "rounded-sm",
557
- "x-small": "rounded",
558
- small: "rounded-md",
559
- medium: "rounded-lg",
560
- large: "rounded-xl",
561
- "x-large": "rounded-2xl",
562
- "xx-large": "rounded-3xl",
563
- full: "rounded-full",
564
- },
565
- borderStyle: {
566
- none: "border-none",
567
- solid: "border-solid",
568
- dashed: "border-dashed",
569
- dotted: "border-dotted",
570
- double: "border-double",
571
- },
572
- fontStyle: { italic: "italic" },
573
- fontWeight: {
574
- 400: "font-normal",
575
- 500: "font-medium",
576
- 700: "font-bold",
577
- },
578
- height: { auto: "min-h-0", screen: "min-h-screen" },
579
- justifyContent: {
580
- "flex-start": "justify-start",
581
- "flex-end": "justify-end",
582
- center: "justify-center",
583
- },
584
- margin: function (e) {
585
- return Array.isArray(e)
586
- ? e.join(" ")
587
- : (console.warn(
588
- 'cannot convert "margin" style field value to class name',
589
- ),
590
- "");
591
- },
592
- padding: function (e) {
593
- return Array.isArray(e)
594
- ? e.join(" ")
595
- : (console.warn(
596
- 'cannot convert "padding" style field value to class name',
597
- ),
598
- "");
599
- },
600
- textAlign: {
601
- left: "text-left",
602
- center: "text-center",
603
- right: "text-right",
604
- justify: "text-justify",
605
- },
606
- textDecoration: {
607
- underline: "underline",
608
- "line-through": "line-through",
609
- },
610
- width: { narrow: "max-w-5xl", wide: "max-w-7xl", full: "max-w-full" },
611
- };
612
- function l(e) {
613
- return Object.entries(e)
614
- .map((e) => {
615
- let [t, r] = e;
616
- return t in n
617
- ? "function" == typeof n[t]
618
- ? n[t](r)
619
- : r in n[t]
620
- ? n[t][r]
621
- : void 0
622
- : r;
623
- })
624
- .join(" ");
625
- }
626
- },
627
- 3967: function (e, t) {
628
- var r;
629
- !(function () {
630
- "use strict";
631
- var n = {}.hasOwnProperty;
632
- function l() {
633
- for (var e = "", t = 0; t < arguments.length; t++) {
634
- var r = arguments[t];
635
- r &&
636
- (e = i(
637
- e,
638
- (function (e) {
639
- if ("string" == typeof e || "number" == typeof e) return e;
640
- if ("object" != typeof e) return "";
641
- if (Array.isArray(e)) return l.apply(null, e);
642
- if (
643
- e.toString !== Object.prototype.toString &&
644
- !e.toString.toString().includes("[native code]")
645
- )
646
- return e.toString();
647
- var t = "";
648
- for (var r in e) n.call(e, r) && e[r] && (t = i(t, r));
649
- return t;
650
- })(r),
651
- ));
652
- }
653
- return e;
654
- }
655
- function i(e, t) {
656
- return t ? (e ? e + " " + t : e + t) : e;
657
- }
658
- e.exports
659
- ? ((l.default = l), (e.exports = l))
660
- : void 0 !==
661
- (r = function () {
662
- return l;
663
- }.apply(t, [])) && (e.exports = r);
664
- })();
665
- },
666
- 5576: function (e, t, r) {
667
- "use strict";
668
- var n,
669
- l,
670
- i,
671
- a,
672
- o = r(7294);
673
- function s() {
674
- return (s = Object.assign
675
- ? Object.assign.bind()
676
- : function (e) {
677
- for (var t = 1; t < arguments.length; t++) {
678
- var r = arguments[t];
679
- for (var n in r)
680
- Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
681
- }
682
- return e;
683
- }).apply(this, arguments);
684
- }
685
- let c = ["children", "options"];
686
- (((n = i || (i = {})).blockQuote = "0"),
687
- (n.breakLine = "1"),
688
- (n.breakThematic = "2"),
689
- (n.codeBlock = "3"),
690
- (n.codeFenced = "4"),
691
- (n.codeInline = "5"),
692
- (n.footnote = "6"),
693
- (n.footnoteReference = "7"),
694
- (n.gfmTask = "8"),
695
- (n.heading = "9"),
696
- (n.headingSetext = "10"),
697
- (n.htmlBlock = "11"),
698
- (n.htmlComment = "12"),
699
- (n.htmlSelfClosing = "13"),
700
- (n.image = "14"),
701
- (n.link = "15"),
702
- (n.linkAngleBraceStyleDetector = "16"),
703
- (n.linkBareUrlDetector = "17"),
704
- (n.linkMailtoDetector = "18"),
705
- (n.newlineCoalescer = "19"),
706
- (n.orderedList = "20"),
707
- (n.paragraph = "21"),
708
- (n.ref = "22"),
709
- (n.refImage = "23"),
710
- (n.refLink = "24"),
711
- (n.table = "25"),
712
- (n.tableSeparator = "26"),
713
- (n.text = "27"),
714
- (n.textBolded = "28"),
715
- (n.textEmphasized = "29"),
716
- (n.textEscaped = "30"),
717
- (n.textMarked = "31"),
718
- (n.textStrikethroughed = "32"),
719
- (n.unorderedList = "33"),
720
- ((l = a || (a = {}))[(l.MAX = 0)] = "MAX"),
721
- (l[(l.HIGH = 1)] = "HIGH"),
722
- (l[(l.MED = 2)] = "MED"),
723
- (l[(l.LOW = 3)] = "LOW"),
724
- (l[(l.MIN = 4)] = "MIN"));
725
- let d = [
726
- "allowFullScreen",
727
- "allowTransparency",
728
- "autoComplete",
729
- "autoFocus",
730
- "autoPlay",
731
- "cellPadding",
732
- "cellSpacing",
733
- "charSet",
734
- "className",
735
- "classId",
736
- "colSpan",
737
- "contentEditable",
738
- "contextMenu",
739
- "crossOrigin",
740
- "encType",
741
- "formAction",
742
- "formEncType",
743
- "formMethod",
744
- "formNoValidate",
745
- "formTarget",
746
- "frameBorder",
747
- "hrefLang",
748
- "inputMode",
749
- "keyParams",
750
- "keyType",
751
- "marginHeight",
752
- "marginWidth",
753
- "maxLength",
754
- "mediaGroup",
755
- "minLength",
756
- "noValidate",
757
- "radioGroup",
758
- "readOnly",
759
- "rowSpan",
760
- "spellCheck",
761
- "srcDoc",
762
- "srcLang",
763
- "srcSet",
764
- "tabIndex",
765
- "useMap",
766
- ].reduce((e, t) => ((e[t.toLowerCase()] = t), e), { for: "htmlFor" }),
767
- u = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: "\xa0", quot: "“" },
768
- m = ["style", "script"],
769
- p =
770
- /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,
771
- f = /mailto:/i,
772
- h = /\n{2,}$/,
773
- g = /^(\s*>[\s\S]*?)(?=\n{2,})/,
774
- y = /^ *> ?/gm,
775
- x = /^ {2,}\n/,
776
- v = /^(?:( *[-*_])){3,} *(?:\n *)+\n/,
777
- b =
778
- /^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,
779
- k = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,
780
- j = /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,
781
- w = /^(?:\n *)*\n/,
782
- N = /\r\n?/g,
783
- S = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,
784
- $ = /^\[\^([^\]]+)]/,
785
- C = /\f/g,
786
- E = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,
787
- A = /^\s*?\[(x|\s)\]/,
788
- G = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,
789
- R = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,
790
- O = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,
791
- L =
792
- /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,
793
- T = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,
794
- z = /^<!--[\s\S]*?(?:-->)/,
795
- M = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/,
796
- W =
797
- /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,
798
- I = /^\{.*\}$/,
799
- P = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,
800
- Z = /^<([^ >]+@[^ >]+)>/,
801
- q = /^<([^ >]+:\/[^ >]+)>/,
802
- B = /-([a-z])?/gi,
803
- _ = /^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,
804
- U = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,
805
- D = /^!\[([^\]]*)\] ?\[([^\]]*)\]/,
806
- H = /^\[([^\]]*)\] ?\[([^\]]*)\]/,
807
- F = /(\[|\])/g,
808
- V = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,
809
- X = /\t/g,
810
- Q = /(^ *\||\| *$)/g,
811
- J = /^ *:-+: *$/,
812
- K = /^ *:-+ *$/,
813
- Y = /^ *-+: *$/,
814
- ee =
815
- "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",
816
- et = RegExp(`^([*_])\\1${ee}\\1\\1(?!\\1)`),
817
- er = RegExp(`^([*_])${ee}\\1(?!\\1|\\w)`),
818
- en = RegExp(`^==${ee}==`),
819
- el = RegExp(`^~~${ee}~~`),
820
- ei = /^\\([^0-9A-Za-z\s])/,
821
- ea =
822
- /^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,
823
- eo = /^\n+/,
824
- es = /^([ \t]*)/,
825
- ec = /\\([^\\])/g,
826
- ed = / *\n+$/,
827
- eu = /(?:^|\n)( *)$/,
828
- em = "(?:\\d+\\.)",
829
- ep = "(?:[*+-])";
830
- function ef(e) {
831
- return "( *)(" + (1 === e ? em : ep) + ") +";
832
- }
833
- let eh = ef(1),
834
- eg = ef(2);
835
- function ey(e) {
836
- return RegExp("^" + (1 === e ? eh : eg));
837
- }
838
- let ex = ey(1),
839
- ev = ey(2);
840
- function eb(e) {
841
- return RegExp(
842
- "^" +
843
- (1 === e ? eh : eg) +
844
- "[^\\n]*(?:\\n(?!\\1" +
845
- (1 === e ? em : ep) +
846
- " )[^\\n]*)*(\\n|$)",
847
- "gm",
848
- );
849
- }
850
- let ek = eb(1),
851
- ej = eb(2);
852
- function ew(e) {
853
- let t = 1 === e ? em : ep;
854
- return RegExp(
855
- "^( *)(" +
856
- t +
857
- ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" +
858
- t +
859
- " (?!" +
860
- t +
861
- " ))\\n*|\\s*\\n*$)",
862
- );
863
- }
864
- let eN = ew(1),
865
- eS = ew(2);
866
- function e$(e, t) {
867
- let r = 1 === t,
868
- n = r ? eN : eS,
869
- l = r ? ek : ej,
870
- i = r ? ex : ev;
871
- return {
872
- match(e, t, r) {
873
- let l = eu.exec(r);
874
- return l && (t.list || (!t.inline && !t.simple))
875
- ? n.exec((e = l[1] + e))
876
- : null;
877
- },
878
- order: 1,
879
- parse(e, t, n) {
880
- let a = r ? +e[2] : void 0,
881
- o = e[0].replace(h, "\n").match(l),
882
- s = !1;
883
- return {
884
- items: o.map(function (e, r) {
885
- let l;
886
- let a = RegExp("^ {1," + i.exec(e)[0].length + "}", "gm"),
887
- c = e.replace(a, "").replace(i, ""),
888
- d = r === o.length - 1,
889
- u = -1 !== c.indexOf("\n\n") || (d && s);
890
- s = u;
891
- let m = n.inline,
892
- p = n.list;
893
- ((n.list = !0),
894
- u
895
- ? ((n.inline = !1), (l = c.replace(ed, "\n\n")))
896
- : ((n.inline = !0), (l = c.replace(ed, ""))));
897
- let f = t(l, n);
898
- return ((n.inline = m), (n.list = p), f);
899
- }),
900
- ordered: r,
901
- start: a,
902
- };
903
- },
904
- render: (t, r, n) =>
905
- e(
906
- t.ordered ? "ol" : "ul",
907
- { key: n.key, start: "20" === t.type ? t.start : void 0 },
908
- t.items.map(function (t, l) {
909
- return e("li", { key: l }, r(t, n));
910
- }),
911
- ),
912
- };
913
- }
914
- let eC = RegExp(
915
- "^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)",
916
- ),
917
- eE = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,
918
- eA = [g, b, k, G, O, R, z, _, ek, eN, ej, eS],
919
- eG = [...eA, /^[^\n]+(?: \n|\n{2,})/, L, W];
920
- function eR(e) {
921
- return e
922
- .replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a")
923
- .replace(/[çÇ]/g, "c")
924
- .replace(/[ðÐ]/g, "d")
925
- .replace(/[ÈÉÊËéèêë]/g, "e")
926
- .replace(/[ÏïÎîÍíÌì]/g, "i")
927
- .replace(/[Ññ]/g, "n")
928
- .replace(/[øØœŒÕõÔôÓóÒò]/g, "o")
929
- .replace(/[ÜüÛûÚúÙù]/g, "u")
930
- .replace(/[ŸÿÝý]/g, "y")
931
- .replace(/[^a-z0-9- ]/gi, "")
932
- .replace(/ /gi, "-")
933
- .toLowerCase();
934
- }
935
- function eO(e) {
936
- return Y.test(e)
937
- ? "right"
938
- : J.test(e)
939
- ? "center"
940
- : K.test(e)
941
- ? "left"
942
- : null;
943
- }
944
- function eL(e, t, r, n) {
945
- let l = r.inTable;
946
- r.inTable = !0;
947
- let i = e
948
- .trim()
949
- .split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/)
950
- .reduce(
951
- (e, l) => (
952
- "|" === l.trim()
953
- ? e.push(n ? { type: "26" } : { type: "27", text: l })
954
- : "" !== l && e.push.apply(e, t(l, r)),
955
- e
956
- ),
957
- [],
958
- );
959
- r.inTable = l;
960
- let a = [[]];
961
- return (
962
- i.forEach(function (e, t) {
963
- "26" === e.type
964
- ? 0 !== t && t !== i.length - 1 && a.push([])
965
- : ("27" !== e.type ||
966
- (null != i[t + 1] && "26" !== i[t + 1].type) ||
967
- (e.text = e.text.trimEnd()),
968
- a[a.length - 1].push(e));
969
- }),
970
- a
971
- );
972
- }
973
- function eT(e, t, r) {
974
- r.inline = !0;
975
- let n = e[2] ? e[2].replace(Q, "").split("|").map(eO) : [],
976
- l = e[3]
977
- ? e[3]
978
- .trim()
979
- .split("\n")
980
- .map(function (e) {
981
- return eL(e, t, r, !0);
982
- })
983
- : [],
984
- i = eL(e[1], t, r, !!l.length);
985
- return (
986
- (r.inline = !1),
987
- l.length
988
- ? { align: n, cells: l, header: i, type: "25" }
989
- : { children: i, type: "21" }
990
- );
991
- }
992
- function ez(e, t) {
993
- return null == e.align[t] ? {} : { textAlign: e.align[t] };
994
- }
995
- function eM(e) {
996
- return function (t, r) {
997
- return r.inline ? e.exec(t) : null;
998
- };
999
- }
1000
- function eW(e) {
1001
- return function (t, r) {
1002
- return r.inline || r.simple ? e.exec(t) : null;
1003
- };
1004
- }
1005
- function eI(e) {
1006
- return function (t, r) {
1007
- return r.inline || r.simple ? null : e.exec(t);
1008
- };
1009
- }
1010
- function eP(e) {
1011
- return function (t) {
1012
- return e.exec(t);
1013
- };
1014
- }
1015
- function eZ(e, t, r) {
1016
- if (t.inline || t.simple || (r && !r.endsWith("\n"))) return null;
1017
- let n = "";
1018
- e.split("\n").every(
1019
- (e) => !eA.some((t) => t.test(e)) && ((n += e + "\n"), e.trim()),
1020
- );
1021
- let l = n.trimEnd();
1022
- return "" == l ? null : [n, l];
1023
- }
1024
- function eq(e) {
1025
- try {
1026
- if (
1027
- decodeURIComponent(e)
1028
- .replace(/[^A-Za-z0-9/:]/g, "")
1029
- .match(/^\s*(javascript|vbscript|data(?!:image)):/i)
1030
- )
1031
- return;
1032
- } catch (e) {
1033
- return null;
1034
- }
1035
- return e;
1036
- }
1037
- function eB(e) {
1038
- return e.replace(ec, "$1");
1039
- }
1040
- function e_(e, t, r) {
1041
- let n = r.inline || !1,
1042
- l = r.simple || !1;
1043
- ((r.inline = !0), (r.simple = !0));
1044
- let i = e(t, r);
1045
- return ((r.inline = n), (r.simple = l), i);
1046
- }
1047
- function eU(e, t, r) {
1048
- let n = r.inline || !1;
1049
- r.inline = !1;
1050
- let l = e(t, r);
1051
- return ((r.inline = n), l);
1052
- }
1053
- let eD = (e, t, r) => ({ children: e_(t, e[1], r) });
1054
- function eH() {
1055
- return {};
1056
- }
1057
- function eF() {
1058
- return null;
1059
- }
1060
- function eV(e, t, r) {
1061
- let n = e,
1062
- l = t.split(".");
1063
- for (; l.length && void 0 !== (n = n[l[0]]); ) l.shift();
1064
- return n || r;
1065
- }
1066
- t.ZP = (e) => {
1067
- let { children: t = "", options: r } = e,
1068
- n = (function (e, t) {
1069
- if (null == e) return {};
1070
- var r,
1071
- n,
1072
- l = {},
1073
- i = Object.keys(e);
1074
- for (n = 0; n < i.length; n++)
1075
- t.indexOf((r = i[n])) >= 0 || (l[r] = e[r]);
1076
- return l;
1077
- })(e, c);
1078
- return o.cloneElement(
1079
- (function (e = "", t = {}) {
1080
- var r, n;
1081
- let l;
1082
- ((t.overrides = t.overrides || {}),
1083
- (t.slugify = t.slugify || eR),
1084
- (t.namedCodesToUnicode = t.namedCodesToUnicode
1085
- ? s({}, u, t.namedCodesToUnicode)
1086
- : u));
1087
- let i = t.createElement || o.createElement;
1088
- function a(e, r, ...n) {
1089
- let l = eV(t.overrides, `${e}.props`, {});
1090
- return i(
1091
- (function (e, t) {
1092
- let r = eV(t, e);
1093
- return r
1094
- ? "function" == typeof r ||
1095
- ("object" == typeof r && "render" in r)
1096
- ? r
1097
- : eV(t, `${e}.component`, e)
1098
- : e;
1099
- })(e, t.overrides),
1100
- s({}, r, l, {
1101
- className:
1102
- (function (...e) {
1103
- return e.filter(Boolean).join(" ");
1104
- })(null == r ? void 0 : r.className, l.className) || void 0,
1105
- }),
1106
- ...n,
1107
- );
1108
- }
1109
- function c(e) {
1110
- let r;
1111
- e = e.replace(E, "");
1112
- let n = !1;
1113
- t.forceInline ? (n = !0) : t.forceBlock || (n = !1 === V.test(e));
1114
- let l = ee(
1115
- Y(
1116
- n
1117
- ? e
1118
- : `${e.trimEnd().replace(eo, "")}
1119
-
1120
- `,
1121
- { inline: n },
1122
- ),
1123
- );
1124
- for (
1125
- ;
1126
- "string" == typeof l[l.length - 1] && !l[l.length - 1].trim();
1127
-
1128
- )
1129
- l.pop();
1130
- if (null === t.wrapper) return l;
1131
- let i = t.wrapper || (n ? "span" : "div");
1132
- if (l.length > 1 || t.forceWrapper) r = l;
1133
- else {
1134
- if (1 === l.length)
1135
- return "string" == typeof (r = l[0])
1136
- ? a("span", { key: "outer" }, r)
1137
- : r;
1138
- r = null;
1139
- }
1140
- return o.createElement(i, { key: "outer" }, r);
1141
- }
1142
- function h(e) {
1143
- let t = e.match(p);
1144
- return t
1145
- ? t.reduce(function (e, t, r) {
1146
- let n = t.indexOf("=");
1147
- if (-1 !== n) {
1148
- var l, i;
1149
- let a = (-1 !== (l = t.slice(0, n)).indexOf("-") &&
1150
- null === l.match(M) &&
1151
- (l = l.replace(B, function (e, t) {
1152
- return t.toUpperCase();
1153
- })),
1154
- l).trim(),
1155
- s = (function (e) {
1156
- let t = e[0];
1157
- return ('"' === t || "'" === t) &&
1158
- e.length >= 2 &&
1159
- e[e.length - 1] === t
1160
- ? e.slice(1, -1)
1161
- : e;
1162
- })(t.slice(n + 1).trim()),
1163
- u = d[a] || a,
1164
- m = (e[u] =
1165
- ((i = s),
1166
- "style" === a
1167
- ? i.split(/;\s?/).reduce(function (e, t) {
1168
- let r = t.slice(0, t.indexOf(":"));
1169
- return (
1170
- (e[
1171
- r
1172
- .trim()
1173
- .replace(/(-[a-z])/g, (e) =>
1174
- e[1].toUpperCase(),
1175
- )
1176
- ] = t.slice(r.length + 1).trim()),
1177
- e
1178
- );
1179
- }, {})
1180
- : "href" === a || "src" === a
1181
- ? eq(i)
1182
- : (i.match(I) && (i = i.slice(1, i.length - 1)),
1183
- "true" === i || ("false" !== i && i))));
1184
- "string" == typeof m &&
1185
- (L.test(m) || W.test(m)) &&
1186
- (e[u] = o.cloneElement(c(m.trim()), { key: r }));
1187
- } else "style" !== t && (e[d[t] || t] = !0);
1188
- return e;
1189
- }, {})
1190
- : null;
1191
- }
1192
- let Q = [],
1193
- J = {},
1194
- K = {
1195
- 0: {
1196
- match: eI(g),
1197
- order: 1,
1198
- parse: (e, t, r) => ({ children: t(e[0].replace(y, ""), r) }),
1199
- render: (e, t, r) =>
1200
- a("blockquote", { key: r.key }, t(e.children, r)),
1201
- },
1202
- 1: {
1203
- match: eP(x),
1204
- order: 1,
1205
- parse: eH,
1206
- render: (e, t, r) => a("br", { key: r.key }),
1207
- },
1208
- 2: {
1209
- match: eI(v),
1210
- order: 1,
1211
- parse: eH,
1212
- render: (e, t, r) => a("hr", { key: r.key }),
1213
- },
1214
- 3: {
1215
- match: eI(k),
1216
- order: 0,
1217
- parse: (e) => ({
1218
- lang: void 0,
1219
- text: e[0].replace(/^ {4}/gm, "").replace(/\n+$/, ""),
1220
- }),
1221
- render: (e, t, r) =>
1222
- a(
1223
- "pre",
1224
- { key: r.key },
1225
- a(
1226
- "code",
1227
- s({}, e.attrs, {
1228
- className: e.lang ? `lang-${e.lang}` : "",
1229
- }),
1230
- e.text,
1231
- ),
1232
- ),
1233
- },
1234
- 4: {
1235
- match: eI(b),
1236
- order: 0,
1237
- parse: (e) => ({
1238
- attrs: h(e[3] || ""),
1239
- lang: e[2] || void 0,
1240
- text: e[4],
1241
- type: "3",
1242
- }),
1243
- },
1244
- 5: {
1245
- match: eW(j),
1246
- order: 3,
1247
- parse: (e) => ({ text: e[2] }),
1248
- render: (e, t, r) => a("code", { key: r.key }, e.text),
1249
- },
1250
- 6: {
1251
- match: eI(S),
1252
- order: 0,
1253
- parse: (e) => (
1254
- Q.push({ footnote: e[2], identifier: e[1] }),
1255
- {}
1256
- ),
1257
- render: eF,
1258
- },
1259
- 7: {
1260
- match: eM($),
1261
- order: 1,
1262
- parse: (e) => ({ target: `#${t.slugify(e[1])}`, text: e[1] }),
1263
- render: (e, t, r) =>
1264
- a(
1265
- "a",
1266
- { key: r.key, href: eq(e.target) },
1267
- a("sup", { key: r.key }, e.text),
1268
- ),
1269
- },
1270
- 8: {
1271
- match: eM(A),
1272
- order: 1,
1273
- parse: (e) => ({ completed: "x" === e[1].toLowerCase() }),
1274
- render: (e, t, r) =>
1275
- a("input", {
1276
- checked: e.completed,
1277
- key: r.key,
1278
- readOnly: !0,
1279
- type: "checkbox",
1280
- }),
1281
- },
1282
- 9: {
1283
- match: eI(t.enforceAtxHeadings ? R : G),
1284
- order: 1,
1285
- parse: (e, r, n) => ({
1286
- children: e_(r, e[2], n),
1287
- id: t.slugify(e[2]),
1288
- level: e[1].length,
1289
- }),
1290
- render: (e, t, r) =>
1291
- a(
1292
- `h${e.level}`,
1293
- { id: e.id, key: r.key },
1294
- t(e.children, r),
1295
- ),
1296
- },
1297
- 10: {
1298
- match: eI(O),
1299
- order: 0,
1300
- parse: (e, t, r) => ({
1301
- children: e_(t, e[1], r),
1302
- level: "=" === e[2] ? 1 : 2,
1303
- type: "9",
1304
- }),
1305
- },
1306
- 11: {
1307
- match: eP(L),
1308
- order: 1,
1309
- parse(e, t, r) {
1310
- let [, n] = e[3].match(es),
1311
- l = RegExp(`^${n}`, "gm"),
1312
- i = e[3].replace(l, ""),
1313
- a = eG.some((e) => e.test(i)) ? eU : e_,
1314
- o = e[1].toLowerCase(),
1315
- s = -1 !== m.indexOf(o),
1316
- c = {
1317
- attrs: h(e[2]),
1318
- noInnerParse: s,
1319
- tag: (s ? o : e[1]).trim(),
1320
- };
1321
- return (
1322
- (r.inAnchor = r.inAnchor || "a" === o),
1323
- s ? (c.text = e[3]) : (c.children = a(t, i, r)),
1324
- (r.inAnchor = !1),
1325
- c
1326
- );
1327
- },
1328
- render: (e, t, r) =>
1329
- a(
1330
- e.tag,
1331
- s({ key: r.key }, e.attrs),
1332
- e.text || t(e.children, r),
1333
- ),
1334
- },
1335
- 13: {
1336
- match: eP(W),
1337
- order: 1,
1338
- parse: (e) => ({ attrs: h(e[2] || ""), tag: e[1].trim() }),
1339
- render: (e, t, r) => a(e.tag, s({}, e.attrs, { key: r.key })),
1340
- },
1341
- 12: { match: eP(z), order: 1, parse: () => ({}), render: eF },
1342
- 14: {
1343
- match: eW(eE),
1344
- order: 1,
1345
- parse: (e) => ({ alt: e[1], target: eB(e[2]), title: e[3] }),
1346
- render: (e, t, r) =>
1347
- a("img", {
1348
- key: r.key,
1349
- alt: e.alt || void 0,
1350
- title: e.title || void 0,
1351
- src: eq(e.target),
1352
- }),
1353
- },
1354
- 15: {
1355
- match: eM(eC),
1356
- order: 3,
1357
- parse: (e, t, r) => ({
1358
- children: (function (e, t, r) {
1359
- let n = r.inline || !1,
1360
- l = r.simple || !1;
1361
- ((r.inline = !1), (r.simple = !0));
1362
- let i = e(t, r);
1363
- return ((r.inline = n), (r.simple = l), i);
1364
- })(t, e[1], r),
1365
- target: eB(e[2]),
1366
- title: e[3],
1367
- }),
1368
- render: (e, t, r) =>
1369
- a(
1370
- "a",
1371
- { key: r.key, href: eq(e.target), title: e.title },
1372
- t(e.children, r),
1373
- ),
1374
- },
1375
- 16: {
1376
- match: eM(q),
1377
- order: 0,
1378
- parse: (e) => ({
1379
- children: [{ text: e[1], type: "27" }],
1380
- target: e[1],
1381
- type: "15",
1382
- }),
1383
- },
1384
- 17: {
1385
- match: (e, t) => (t.inAnchor ? null : eM(P)(e, t)),
1386
- order: 0,
1387
- parse: (e) => ({
1388
- children: [{ text: e[1], type: "27" }],
1389
- target: e[1],
1390
- title: void 0,
1391
- type: "15",
1392
- }),
1393
- },
1394
- 18: {
1395
- match: eM(Z),
1396
- order: 0,
1397
- parse(e) {
1398
- let t = e[1],
1399
- r = e[1];
1400
- return (
1401
- f.test(r) || (r = "mailto:" + r),
1402
- {
1403
- children: [
1404
- { text: t.replace("mailto:", ""), type: "27" },
1405
- ],
1406
- target: r,
1407
- type: "15",
1408
- }
1409
- );
1410
- },
1411
- },
1412
- 20: e$(a, 1),
1413
- 33: e$(a, 2),
1414
- 19: { match: eI(w), order: 3, parse: eH, render: () => "\n" },
1415
- 21: {
1416
- match: eZ,
1417
- order: 3,
1418
- parse: eD,
1419
- render: (e, t, r) => a("p", { key: r.key }, t(e.children, r)),
1420
- },
1421
- 22: {
1422
- match: eM(U),
1423
- order: 0,
1424
- parse: (e) => ((J[e[1]] = { target: e[2], title: e[4] }), {}),
1425
- render: eF,
1426
- },
1427
- 23: {
1428
- match: eW(D),
1429
- order: 0,
1430
- parse: (e) => ({ alt: e[1] || void 0, ref: e[2] }),
1431
- render: (e, t, r) =>
1432
- J[e.ref]
1433
- ? a("img", {
1434
- key: r.key,
1435
- alt: e.alt,
1436
- src: eq(J[e.ref].target),
1437
- title: J[e.ref].title,
1438
- })
1439
- : null,
1440
- },
1441
- 24: {
1442
- match: eM(H),
1443
- order: 0,
1444
- parse: (e, t, r) => ({
1445
- children: t(e[1], r),
1446
- fallbackChildren: t(e[0].replace(F, "\\$1"), r),
1447
- ref: e[2],
1448
- }),
1449
- render: (e, t, r) =>
1450
- J[e.ref]
1451
- ? a(
1452
- "a",
1453
- {
1454
- key: r.key,
1455
- href: eq(J[e.ref].target),
1456
- title: J[e.ref].title,
1457
- },
1458
- t(e.children, r),
1459
- )
1460
- : a("span", { key: r.key }, t(e.fallbackChildren, r)),
1461
- },
1462
- 25: {
1463
- match: eI(_),
1464
- order: 1,
1465
- parse: eT,
1466
- render: (e, t, r) =>
1467
- a(
1468
- "table",
1469
- { key: r.key },
1470
- a(
1471
- "thead",
1472
- null,
1473
- a(
1474
- "tr",
1475
- null,
1476
- e.header.map(function (n, l) {
1477
- return a(
1478
- "th",
1479
- { key: l, style: ez(e, l) },
1480
- t(n, r),
1481
- );
1482
- }),
1483
- ),
1484
- ),
1485
- a(
1486
- "tbody",
1487
- null,
1488
- e.cells.map(function (n, l) {
1489
- return a(
1490
- "tr",
1491
- { key: l },
1492
- n.map(function (n, l) {
1493
- return a(
1494
- "td",
1495
- { key: l, style: ez(e, l) },
1496
- t(n, r),
1497
- );
1498
- }),
1499
- );
1500
- }),
1501
- ),
1502
- ),
1503
- },
1504
- 27: {
1505
- match: eP(ea),
1506
- order: 4,
1507
- parse: (e) => ({
1508
- text: e[0].replace(T, (e, r) =>
1509
- t.namedCodesToUnicode[r] ? t.namedCodesToUnicode[r] : e,
1510
- ),
1511
- }),
1512
- render: (e) => e.text,
1513
- },
1514
- 28: {
1515
- match: eW(et),
1516
- order: 2,
1517
- parse: (e, t, r) => ({ children: t(e[2], r) }),
1518
- render: (e, t, r) =>
1519
- a("strong", { key: r.key }, t(e.children, r)),
1520
- },
1521
- 29: {
1522
- match: eW(er),
1523
- order: 3,
1524
- parse: (e, t, r) => ({ children: t(e[2], r) }),
1525
- render: (e, t, r) =>
1526
- a("em", { key: r.key }, t(e.children, r)),
1527
- },
1528
- 30: {
1529
- match: eW(ei),
1530
- order: 1,
1531
- parse: (e) => ({ text: e[1], type: "27" }),
1532
- },
1533
- 31: {
1534
- match: eW(en),
1535
- order: 3,
1536
- parse: eD,
1537
- render: (e, t, r) =>
1538
- a("mark", { key: r.key }, t(e.children, r)),
1539
- },
1540
- 32: {
1541
- match: eW(el),
1542
- order: 3,
1543
- parse: eD,
1544
- render: (e, t, r) =>
1545
- a("del", { key: r.key }, t(e.children, r)),
1546
- },
1547
- };
1548
- !0 === t.disableParsingRawHTML && (delete K[11], delete K[13]);
1549
- let Y =
1550
- ((l = Object.keys(K)).sort(function (e, t) {
1551
- let r = K[e].order,
1552
- n = K[t].order;
1553
- return r !== n ? r - n : e < t ? -1 : 1;
1554
- }),
1555
- function (e, t) {
1556
- return (function e(t, r) {
1557
- let n = [],
1558
- i = "";
1559
- for (; t; ) {
1560
- let a = 0;
1561
- for (; a < l.length; ) {
1562
- let o = l[a],
1563
- s = K[o],
1564
- c = s.match(t, r, i);
1565
- if (c) {
1566
- let l = c[0];
1567
- t = t.substring(l.length);
1568
- let a = s.parse(c, e, r);
1569
- (null == a.type && (a.type = o), n.push(a), (i = l));
1570
- break;
1571
- }
1572
- a++;
1573
- }
1574
- }
1575
- return n;
1576
- })(e.replace(N, "\n").replace(C, "").replace(X, " "), t);
1577
- }),
1578
- ee =
1579
- ((n = t.renderRule),
1580
- (r = function (e, t, r) {
1581
- let l = K[e.type].render;
1582
- return n ? n(() => l(e, t, r), e, t, r) : l(e, t, r);
1583
- }),
1584
- function e(t, n = {}) {
1585
- if (Array.isArray(t)) {
1586
- let r = n.key,
1587
- l = [],
1588
- i = !1;
1589
- for (let r = 0; r < t.length; r++) {
1590
- n.key = r;
1591
- let a = e(t[r], n),
1592
- o = "string" == typeof a;
1593
- (o && i
1594
- ? (l[l.length - 1] += a)
1595
- : null !== a && l.push(a),
1596
- (i = o));
1597
- }
1598
- return ((n.key = r), l);
1599
- }
1600
- return r(t, e, n);
1601
- }),
1602
- ec = c(e);
1603
- return Q.length
1604
- ? a(
1605
- "div",
1606
- null,
1607
- ec,
1608
- a(
1609
- "footer",
1610
- { key: "footer" },
1611
- Q.map(function (e) {
1612
- return a(
1613
- "div",
1614
- { id: t.slugify(e.identifier), key: e.identifier },
1615
- e.identifier,
1616
- ee(Y(e.footnote, { inline: !0 })),
1617
- );
1618
- }),
1619
- ),
1620
- )
1621
- : ec;
1622
- })(t, r),
1623
- n,
1624
- );
1625
- };
1626
- },
1627
- },
1628
- ]);