@json-to-office/shared-pptx 0.3.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1171 +0,0 @@
1
- import {
2
- ColorValueSchema,
3
- GridConfigSchema,
4
- StyleNameSchema
5
- } from "./chunk-MZ3TEFYH.js";
6
-
7
- // src/schemas/component-registry.ts
8
- import { Type as Type11 } from "@sinclair/typebox";
9
-
10
- // src/schemas/components/presentation.ts
11
- import { Type as Type9 } from "@sinclair/typebox";
12
-
13
- // src/schemas/components/template.ts
14
- import { Type as Type8 } from "@sinclair/typebox";
15
-
16
- // src/schemas/components/common.ts
17
- import { Type } from "@sinclair/typebox";
18
- var PositionSchema = Type.Object(
19
- {
20
- x: Type.Optional(
21
- Type.Union([
22
- Type.Number({ description: "X position in inches" }),
23
- Type.String({
24
- pattern: "^\\d+(\\.\\d+)?%$",
25
- description: 'X position as percentage (e.g., "10%")'
26
- })
27
- ])
28
- ),
29
- y: Type.Optional(
30
- Type.Union([
31
- Type.Number({ description: "Y position in inches" }),
32
- Type.String({
33
- pattern: "^\\d+(\\.\\d+)?%$",
34
- description: 'Y position as percentage (e.g., "10%")'
35
- })
36
- ])
37
- ),
38
- w: Type.Optional(
39
- Type.Union([
40
- Type.Number({ description: "Width in inches" }),
41
- Type.String({
42
- pattern: "^\\d+(\\.\\d+)?%$",
43
- description: 'Width as percentage (e.g., "80%")'
44
- })
45
- ])
46
- ),
47
- h: Type.Optional(
48
- Type.Union([
49
- Type.Number({ description: "Height in inches" }),
50
- Type.String({
51
- pattern: "^\\d+(\\.\\d+)?%$",
52
- description: 'Height as percentage (e.g., "20%")'
53
- })
54
- ])
55
- )
56
- },
57
- {
58
- description: "Position and size in inches or percentages",
59
- additionalProperties: false
60
- }
61
- );
62
- var SlideBackgroundSchema = Type.Object(
63
- {
64
- color: Type.Optional(ColorValueSchema),
65
- image: Type.Optional(
66
- Type.Object(
67
- {
68
- path: Type.Optional(Type.String({ description: "Image file path or URL" })),
69
- base64: Type.Optional(
70
- Type.String({ description: "Base64-encoded image data" })
71
- )
72
- },
73
- { description: "Background image", additionalProperties: false }
74
- )
75
- )
76
- },
77
- {
78
- description: "Slide background configuration",
79
- additionalProperties: false
80
- }
81
- );
82
- var TransitionSchema = Type.Object(
83
- {
84
- type: Type.Optional(
85
- Type.Union(
86
- [
87
- Type.Literal("fade"),
88
- Type.Literal("push"),
89
- Type.Literal("wipe"),
90
- Type.Literal("zoom"),
91
- Type.Literal("none")
92
- ],
93
- { description: "Transition effect type" }
94
- )
95
- ),
96
- speed: Type.Optional(
97
- Type.Union(
98
- [Type.Literal("slow"), Type.Literal("medium"), Type.Literal("fast")],
99
- { description: "Transition speed" }
100
- )
101
- )
102
- },
103
- {
104
- description: "Slide transition configuration",
105
- additionalProperties: false
106
- }
107
- );
108
- var PptxAlignmentSchema = Type.Union(
109
- [Type.Literal("left"), Type.Literal("center"), Type.Literal("right")],
110
- { description: "Horizontal alignment options" }
111
- );
112
- var VerticalAlignmentSchema = Type.Union(
113
- [Type.Literal("top"), Type.Literal("middle"), Type.Literal("bottom")],
114
- { description: "Vertical alignment options" }
115
- );
116
- var ShadowSchema = Type.Object(
117
- {
118
- type: Type.Optional(
119
- Type.Union([Type.Literal("outer"), Type.Literal("inner")], {
120
- description: "Shadow type"
121
- })
122
- ),
123
- color: Type.Optional(ColorValueSchema),
124
- blur: Type.Optional(Type.Number({ description: "Shadow blur radius in points" })),
125
- offset: Type.Optional(Type.Number({ description: "Shadow offset in points" })),
126
- angle: Type.Optional(Type.Number({ description: "Shadow angle in degrees" })),
127
- opacity: Type.Optional(
128
- Type.Number({
129
- minimum: 0,
130
- maximum: 1,
131
- description: "Shadow opacity (0-1)"
132
- })
133
- )
134
- },
135
- {
136
- description: "Shadow configuration",
137
- additionalProperties: false
138
- }
139
- );
140
- var GridPositionSchema = Type.Object(
141
- {
142
- column: Type.Number({ minimum: 0, description: "Starting column (0-indexed)" }),
143
- row: Type.Number({ minimum: 0, description: "Starting row (0-indexed)" }),
144
- columnSpan: Type.Optional(Type.Number({ minimum: 1, description: "Number of columns to span (default: 1)" })),
145
- rowSpan: Type.Optional(Type.Number({ minimum: 1, description: "Number of rows to span (default: 1)" }))
146
- },
147
- { additionalProperties: false, description: "Grid-based positioning" }
148
- );
149
-
150
- // src/schemas/components/text.ts
151
- import { Type as Type2 } from "@sinclair/typebox";
152
- var TextPropsSchema = Type2.Object(
153
- {
154
- text: Type2.String({ description: "Text content to display" }),
155
- x: Type2.Optional(
156
- Type2.Union([
157
- Type2.Number({ description: "X position in inches" }),
158
- Type2.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "X as percentage" })
159
- ])
160
- ),
161
- y: Type2.Optional(
162
- Type2.Union([
163
- Type2.Number({ description: "Y position in inches" }),
164
- Type2.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Y as percentage" })
165
- ])
166
- ),
167
- w: Type2.Optional(
168
- Type2.Union([
169
- Type2.Number({ description: "Width in inches" }),
170
- Type2.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Width as percentage" })
171
- ])
172
- ),
173
- h: Type2.Optional(
174
- Type2.Union([
175
- Type2.Number({ description: "Height in inches" }),
176
- Type2.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Height as percentage" })
177
- ])
178
- ),
179
- fontSize: Type2.Optional(
180
- Type2.Number({ minimum: 1, description: "Font size in points" })
181
- ),
182
- fontFace: Type2.Optional(Type2.String({ description: "Font family name" })),
183
- color: Type2.Optional(
184
- Type2.String({ description: 'Text color (hex without #, e.g., "FF0000")' })
185
- ),
186
- bold: Type2.Optional(Type2.Boolean({ description: "Bold text" })),
187
- italic: Type2.Optional(Type2.Boolean({ description: "Italic text" })),
188
- underline: Type2.Optional(
189
- Type2.Union([
190
- Type2.Boolean({ description: "Simple underline toggle" }),
191
- Type2.Object(
192
- {
193
- style: Type2.Optional(
194
- Type2.Union([
195
- Type2.Literal("sng"),
196
- Type2.Literal("dbl"),
197
- Type2.Literal("dash"),
198
- Type2.Literal("dotted")
199
- ])
200
- ),
201
- color: Type2.Optional(Type2.String({ description: "Underline color (hex)" }))
202
- },
203
- { additionalProperties: false }
204
- )
205
- ])
206
- ),
207
- strike: Type2.Optional(Type2.Boolean({ description: "Strikethrough text" })),
208
- align: Type2.Optional(PptxAlignmentSchema),
209
- valign: Type2.Optional(VerticalAlignmentSchema),
210
- breakLine: Type2.Optional(
211
- Type2.Boolean({ description: "Add line break after text" })
212
- ),
213
- bullet: Type2.Optional(
214
- Type2.Union([
215
- Type2.Boolean({ description: "Enable default bullet" }),
216
- Type2.Object(
217
- {
218
- type: Type2.Optional(
219
- Type2.Union([Type2.Literal("bullet"), Type2.Literal("number")])
220
- ),
221
- style: Type2.Optional(Type2.String({ description: "Bullet character or style" })),
222
- startAt: Type2.Optional(Type2.Number({ description: "Starting number for numbered lists" }))
223
- },
224
- { additionalProperties: false }
225
- )
226
- ])
227
- ),
228
- margin: Type2.Optional(
229
- Type2.Union([
230
- Type2.Number({ description: "Margin in points (all sides)" }),
231
- Type2.Array(Type2.Number(), {
232
- description: "Margins as [top, right, bottom, left] in points",
233
- minItems: 4,
234
- maxItems: 4
235
- })
236
- ])
237
- ),
238
- rotate: Type2.Optional(Type2.Number({ description: "Rotation angle in degrees" })),
239
- shadow: Type2.Optional(ShadowSchema),
240
- fill: Type2.Optional(
241
- Type2.Object(
242
- {
243
- color: Type2.String({ description: "Fill color (hex without #)" }),
244
- transparency: Type2.Optional(
245
- Type2.Number({ minimum: 0, maximum: 100, description: "Fill transparency (0-100)" })
246
- )
247
- },
248
- { additionalProperties: false }
249
- )
250
- ),
251
- hyperlink: Type2.Optional(
252
- Type2.Object(
253
- {
254
- url: Type2.Optional(Type2.String({ description: "Hyperlink URL" })),
255
- slide: Type2.Optional(Type2.Number({ description: "Slide number to link to" })),
256
- tooltip: Type2.Optional(Type2.String({ description: "Hyperlink tooltip" }))
257
- },
258
- { additionalProperties: false }
259
- )
260
- ),
261
- lineSpacing: Type2.Optional(Type2.Number({ description: "Line spacing in points" })),
262
- charSpacing: Type2.Optional(Type2.Number({ description: "Character spacing in points (positive = wider, negative = tighter)" })),
263
- paraSpaceBefore: Type2.Optional(Type2.Number({ description: "Space before paragraph in points" })),
264
- paraSpaceAfter: Type2.Optional(Type2.Number({ description: "Space after paragraph in points" })),
265
- grid: Type2.Optional(GridPositionSchema),
266
- style: Type2.Optional(StyleNameSchema)
267
- },
268
- {
269
- description: "Text component props",
270
- additionalProperties: false
271
- }
272
- );
273
-
274
- // src/schemas/components/image.ts
275
- import { Type as Type3 } from "@sinclair/typebox";
276
- var PptxImagePropsSchema = Type3.Object(
277
- {
278
- path: Type3.Optional(
279
- Type3.String({
280
- description: "Image file path or URL (mutually exclusive with base64)"
281
- })
282
- ),
283
- base64: Type3.Optional(
284
- Type3.String({
285
- description: "Base64-encoded image data in data URI format (mutually exclusive with path)"
286
- })
287
- ),
288
- x: Type3.Optional(
289
- Type3.Union([
290
- Type3.Number({ description: "X position in inches" }),
291
- Type3.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "X as percentage" })
292
- ])
293
- ),
294
- y: Type3.Optional(
295
- Type3.Union([
296
- Type3.Number({ description: "Y position in inches" }),
297
- Type3.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Y as percentage" })
298
- ])
299
- ),
300
- w: Type3.Optional(
301
- Type3.Union([
302
- Type3.Number({ description: "Width in inches" }),
303
- Type3.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Width as percentage" })
304
- ])
305
- ),
306
- h: Type3.Optional(
307
- Type3.Union([
308
- Type3.Number({ description: "Height in inches" }),
309
- Type3.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Height as percentage" })
310
- ])
311
- ),
312
- sizing: Type3.Optional(
313
- Type3.Object(
314
- {
315
- type: Type3.Union(
316
- [
317
- Type3.Literal("contain"),
318
- Type3.Literal("cover"),
319
- Type3.Literal("crop")
320
- ],
321
- { description: "Image sizing strategy" }
322
- ),
323
- w: Type3.Optional(Type3.Number({ description: "Target width in inches" })),
324
- h: Type3.Optional(Type3.Number({ description: "Target height in inches" }))
325
- },
326
- { description: "Image sizing options", additionalProperties: false }
327
- )
328
- ),
329
- rotate: Type3.Optional(
330
- Type3.Number({ description: "Rotation angle in degrees" })
331
- ),
332
- rounding: Type3.Optional(
333
- Type3.Boolean({ description: "Apply rounded corners to image" })
334
- ),
335
- shadow: Type3.Optional(ShadowSchema),
336
- hyperlink: Type3.Optional(
337
- Type3.Object(
338
- {
339
- url: Type3.Optional(Type3.String({ description: "Hyperlink URL" })),
340
- slide: Type3.Optional(Type3.Number({ description: "Slide number to link to" })),
341
- tooltip: Type3.Optional(Type3.String({ description: "Hyperlink tooltip" }))
342
- },
343
- { additionalProperties: false }
344
- )
345
- ),
346
- alt: Type3.Optional(
347
- Type3.String({ description: "Alternative text for accessibility" })
348
- ),
349
- grid: Type3.Optional(GridPositionSchema)
350
- },
351
- {
352
- description: "PPTX image component props",
353
- additionalProperties: false
354
- }
355
- );
356
-
357
- // src/schemas/components/shape.ts
358
- import { Type as Type4 } from "@sinclair/typebox";
359
- var ShapeTypeSchema = Type4.Union(
360
- [
361
- Type4.Literal("rect"),
362
- Type4.Literal("roundRect"),
363
- Type4.Literal("ellipse"),
364
- Type4.Literal("triangle"),
365
- Type4.Literal("diamond"),
366
- Type4.Literal("pentagon"),
367
- Type4.Literal("hexagon"),
368
- Type4.Literal("star5"),
369
- Type4.Literal("star6"),
370
- Type4.Literal("line"),
371
- Type4.Literal("arrow"),
372
- Type4.Literal("chevron"),
373
- Type4.Literal("cloud"),
374
- Type4.Literal("heart"),
375
- Type4.Literal("lightning")
376
- ],
377
- { description: "Shape type" }
378
- );
379
- var TextSegmentSchema = Type4.Object(
380
- {
381
- text: Type4.String(),
382
- fontSize: Type4.Optional(Type4.Number({ minimum: 1 })),
383
- fontFace: Type4.Optional(Type4.String()),
384
- color: Type4.Optional(Type4.String({ description: "Segment color (hex without # or semantic name)" })),
385
- bold: Type4.Optional(Type4.Boolean()),
386
- italic: Type4.Optional(Type4.Boolean()),
387
- breakLine: Type4.Optional(Type4.Boolean({ description: "Insert line break after this segment" })),
388
- spaceBefore: Type4.Optional(Type4.Number({ minimum: 0, description: "Space before paragraph in points" })),
389
- spaceAfter: Type4.Optional(Type4.Number({ minimum: 0, description: "Space after paragraph in points" })),
390
- charSpacing: Type4.Optional(Type4.Number({ description: "Character spacing in points" }))
391
- },
392
- { additionalProperties: false }
393
- );
394
- var ShapePropsSchema = Type4.Object(
395
- {
396
- type: ShapeTypeSchema,
397
- x: Type4.Optional(
398
- Type4.Union([
399
- Type4.Number({ description: "X position in inches" }),
400
- Type4.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "X as percentage" })
401
- ])
402
- ),
403
- y: Type4.Optional(
404
- Type4.Union([
405
- Type4.Number({ description: "Y position in inches" }),
406
- Type4.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Y as percentage" })
407
- ])
408
- ),
409
- w: Type4.Optional(
410
- Type4.Union([
411
- Type4.Number({ description: "Width in inches" }),
412
- Type4.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Width as percentage" })
413
- ])
414
- ),
415
- h: Type4.Optional(
416
- Type4.Union([
417
- Type4.Number({ description: "Height in inches" }),
418
- Type4.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Height as percentage" })
419
- ])
420
- ),
421
- fill: Type4.Optional(
422
- Type4.Object(
423
- {
424
- color: Type4.String({ description: "Fill color (hex without #)" }),
425
- transparency: Type4.Optional(
426
- Type4.Number({ minimum: 0, maximum: 100, description: "Fill transparency (0-100)" })
427
- )
428
- },
429
- { additionalProperties: false }
430
- )
431
- ),
432
- line: Type4.Optional(
433
- Type4.Object(
434
- {
435
- color: Type4.Optional(Type4.String({ description: "Line color (hex without #)" })),
436
- width: Type4.Optional(Type4.Number({ minimum: 0, description: "Line width in points" })),
437
- dashType: Type4.Optional(
438
- Type4.Union([
439
- Type4.Literal("solid"),
440
- Type4.Literal("dash"),
441
- Type4.Literal("dot"),
442
- Type4.Literal("dashDot")
443
- ])
444
- )
445
- },
446
- { additionalProperties: false }
447
- )
448
- ),
449
- text: Type4.Optional(Type4.Union([
450
- Type4.String({ description: "Plain text" }),
451
- Type4.Array(TextSegmentSchema, { description: "Rich text segments with per-segment formatting" })
452
- ], { description: "Text content inside the shape" })),
453
- fontSize: Type4.Optional(Type4.Number({ minimum: 1, description: "Font size for shape text" })),
454
- fontFace: Type4.Optional(Type4.String({ description: "Font family for shape text" })),
455
- fontColor: Type4.Optional(Type4.String({ description: "Font color for shape text (hex without #)" })),
456
- charSpacing: Type4.Optional(Type4.Number({ description: "Character spacing in points for shape text" })),
457
- bold: Type4.Optional(Type4.Boolean({ description: "Bold shape text" })),
458
- italic: Type4.Optional(Type4.Boolean({ description: "Italic shape text" })),
459
- align: Type4.Optional(PptxAlignmentSchema),
460
- valign: Type4.Optional(VerticalAlignmentSchema),
461
- rotate: Type4.Optional(Type4.Number({ description: "Rotation angle in degrees" })),
462
- shadow: Type4.Optional(ShadowSchema),
463
- rectRadius: Type4.Optional(
464
- Type4.Number({
465
- minimum: 0,
466
- description: "Corner radius for roundRect shape in inches"
467
- })
468
- ),
469
- grid: Type4.Optional(GridPositionSchema),
470
- style: Type4.Optional(StyleNameSchema)
471
- },
472
- {
473
- description: "Shape component props",
474
- additionalProperties: false
475
- }
476
- );
477
-
478
- // src/schemas/components/table.ts
479
- import { Type as Type5 } from "@sinclair/typebox";
480
- var PptxTableCellSchema = Type5.Union([
481
- Type5.String({ description: "Simple text cell" }),
482
- Type5.Object(
483
- {
484
- text: Type5.String({ description: "Cell text content" }),
485
- color: Type5.Optional(Type5.String({ description: "Text color (hex without #)" })),
486
- fill: Type5.Optional(Type5.String({ description: "Cell background color (hex without #)" })),
487
- fontSize: Type5.Optional(Type5.Number({ description: "Font size in points" })),
488
- fontFace: Type5.Optional(Type5.String({ description: "Font family" })),
489
- bold: Type5.Optional(Type5.Boolean({ description: "Bold text" })),
490
- italic: Type5.Optional(Type5.Boolean({ description: "Italic text" })),
491
- align: Type5.Optional(PptxAlignmentSchema),
492
- valign: Type5.Optional(VerticalAlignmentSchema),
493
- colspan: Type5.Optional(Type5.Number({ minimum: 1, description: "Column span" })),
494
- rowspan: Type5.Optional(Type5.Number({ minimum: 1, description: "Row span" })),
495
- margin: Type5.Optional(
496
- Type5.Union([
497
- Type5.Number({ description: "Margin in points (all sides)" }),
498
- Type5.Array(Type5.Number(), { minItems: 4, maxItems: 4 })
499
- ])
500
- )
501
- },
502
- { additionalProperties: false }
503
- )
504
- ]);
505
- var PptxTablePropsSchema = Type5.Object(
506
- {
507
- rows: Type5.Array(
508
- Type5.Array(PptxTableCellSchema, { description: "Row of cells" }),
509
- { description: "Table rows (array of arrays)", minItems: 1 }
510
- ),
511
- x: Type5.Optional(
512
- Type5.Union([
513
- Type5.Number({ description: "X position in inches" }),
514
- Type5.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "X as percentage" })
515
- ])
516
- ),
517
- y: Type5.Optional(
518
- Type5.Union([
519
- Type5.Number({ description: "Y position in inches" }),
520
- Type5.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Y as percentage" })
521
- ])
522
- ),
523
- w: Type5.Optional(
524
- Type5.Union([
525
- Type5.Number({ description: "Width in inches" }),
526
- Type5.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Width as percentage" })
527
- ])
528
- ),
529
- h: Type5.Optional(
530
- Type5.Union([
531
- Type5.Number({ description: "Height in inches" }),
532
- Type5.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Height as percentage" })
533
- ])
534
- ),
535
- colW: Type5.Optional(
536
- Type5.Union([
537
- Type5.Number({ description: "Uniform column width in inches" }),
538
- Type5.Array(Type5.Number(), { description: "Individual column widths in inches" })
539
- ])
540
- ),
541
- rowH: Type5.Optional(
542
- Type5.Union([
543
- Type5.Number({ description: "Uniform row height in inches" }),
544
- Type5.Array(Type5.Number(), { description: "Individual row heights in inches" })
545
- ])
546
- ),
547
- border: Type5.Optional(
548
- Type5.Object(
549
- {
550
- type: Type5.Optional(
551
- Type5.Union([
552
- Type5.Literal("solid"),
553
- Type5.Literal("dash"),
554
- Type5.Literal("dot"),
555
- Type5.Literal("none")
556
- ])
557
- ),
558
- pt: Type5.Optional(Type5.Number({ minimum: 0, description: "Border width in points" })),
559
- color: Type5.Optional(Type5.String({ description: "Border color (hex without #)" }))
560
- },
561
- { additionalProperties: false }
562
- )
563
- ),
564
- fill: Type5.Optional(Type5.String({ description: "Table background color (hex without #)" })),
565
- fontSize: Type5.Optional(Type5.Number({ minimum: 1, description: "Default font size for all cells" })),
566
- fontFace: Type5.Optional(Type5.String({ description: "Default font family for all cells" })),
567
- color: Type5.Optional(Type5.String({ description: "Default text color for all cells (hex without #)" })),
568
- align: Type5.Optional(PptxAlignmentSchema),
569
- valign: Type5.Optional(VerticalAlignmentSchema),
570
- autoPage: Type5.Optional(
571
- Type5.Boolean({ description: "Auto-paginate table across multiple slides when content overflows" })
572
- ),
573
- autoPageRepeatHeader: Type5.Optional(
574
- Type5.Boolean({ description: "Repeat first row as header on each auto-paged slide" })
575
- ),
576
- margin: Type5.Optional(
577
- Type5.Union([
578
- Type5.Number({ description: "Cell margin in points (all sides)" }),
579
- Type5.Array(Type5.Number(), { minItems: 4, maxItems: 4 })
580
- ])
581
- ),
582
- borderRadius: Type5.Optional(
583
- Type5.Number({ minimum: 0, description: "Rounded corner radius in inches. Renders a roundRect shape behind the table." })
584
- ),
585
- grid: Type5.Optional(GridPositionSchema)
586
- },
587
- {
588
- description: "PPTX table component props",
589
- additionalProperties: false
590
- }
591
- );
592
-
593
- // src/schemas/components/chart.ts
594
- import { Type as Type6 } from "@sinclair/typebox";
595
- var PositionValue = Type6.Union([
596
- Type6.Number(),
597
- Type6.String({ pattern: "^\\d+(\\.\\d+)?%$" })
598
- ]);
599
- var ChartTypeSchema = Type6.Union(
600
- [
601
- Type6.Literal("area"),
602
- Type6.Literal("bar"),
603
- Type6.Literal("bar3D"),
604
- Type6.Literal("bubble"),
605
- Type6.Literal("doughnut"),
606
- Type6.Literal("line"),
607
- Type6.Literal("pie"),
608
- Type6.Literal("radar"),
609
- Type6.Literal("scatter")
610
- ],
611
- { description: "Chart type" }
612
- );
613
- var ChartDataSeriesSchema = Type6.Object(
614
- {
615
- name: Type6.Optional(Type6.String({ description: "Series name" })),
616
- labels: Type6.Optional(Type6.Array(Type6.String(), { description: "Category labels" })),
617
- values: Type6.Optional(Type6.Array(Type6.Number(), { description: "Data values" })),
618
- sizes: Type6.Optional(Type6.Array(Type6.Number(), { description: "Bubble sizes (bubble charts only)" }))
619
- },
620
- { additionalProperties: false }
621
- );
622
- var PptxChartPropsSchema = Type6.Object(
623
- {
624
- type: ChartTypeSchema,
625
- data: Type6.Array(ChartDataSeriesSchema, {
626
- description: "Chart data series",
627
- minItems: 1
628
- }),
629
- // Display toggles
630
- showLegend: Type6.Optional(Type6.Boolean({ description: "Show chart legend" })),
631
- showTitle: Type6.Optional(Type6.Boolean({ description: "Show chart title" })),
632
- showValue: Type6.Optional(Type6.Boolean({ description: "Show data values" })),
633
- showPercent: Type6.Optional(Type6.Boolean({ description: "Show percentages (pie/doughnut)" })),
634
- showLabel: Type6.Optional(Type6.Boolean({ description: "Show category labels on data points" })),
635
- showSerName: Type6.Optional(Type6.Boolean({ description: "Show series name on data points" })),
636
- // Title
637
- title: Type6.Optional(Type6.String({ description: "Chart title text" })),
638
- titleFontSize: Type6.Optional(Type6.Number({ description: "Title font size (points)" })),
639
- titleColor: Type6.Optional(Type6.String({ description: "Title color (hex or semantic)" })),
640
- titleFontFace: Type6.Optional(Type6.String({ description: "Title font face" })),
641
- // Chart colors
642
- chartColors: Type6.Optional(
643
- Type6.Array(Type6.String(), {
644
- description: "Series colors (hex or semantic theme names). Defaults to theme palette."
645
- })
646
- ),
647
- // Legend
648
- legendPos: Type6.Optional(
649
- Type6.Union(
650
- [Type6.Literal("b"), Type6.Literal("l"), Type6.Literal("r"), Type6.Literal("t"), Type6.Literal("tr")],
651
- { description: "Legend position" }
652
- )
653
- ),
654
- legendFontSize: Type6.Optional(Type6.Number({ description: "Legend font size" })),
655
- legendFontFace: Type6.Optional(Type6.String({ description: "Legend font face" })),
656
- legendColor: Type6.Optional(Type6.String({ description: "Legend text color" })),
657
- // Category axis
658
- catAxisTitle: Type6.Optional(Type6.String({ description: "Category axis title" })),
659
- catAxisHidden: Type6.Optional(Type6.Boolean({ description: "Hide category axis" })),
660
- catAxisLabelRotate: Type6.Optional(Type6.Number({ description: "Category axis label rotation (degrees)" })),
661
- catAxisLabelFontSize: Type6.Optional(Type6.Number({ description: "Category axis label font size" })),
662
- catAxisLabelColor: Type6.Optional(Type6.String({ description: "Category axis label color (hex or semantic)" })),
663
- // Value axis
664
- valAxisTitle: Type6.Optional(Type6.String({ description: "Value axis title" })),
665
- valAxisHidden: Type6.Optional(Type6.Boolean({ description: "Hide value axis" })),
666
- valAxisMinVal: Type6.Optional(Type6.Number({ description: "Value axis minimum" })),
667
- valAxisMaxVal: Type6.Optional(Type6.Number({ description: "Value axis maximum" })),
668
- valAxisLabelFormatCode: Type6.Optional(Type6.String({ description: 'Value axis label format (e.g. "$0.00", "#%")' })),
669
- valAxisMajorUnit: Type6.Optional(Type6.Number({ description: "Value axis major unit / tick interval" })),
670
- valAxisLabelColor: Type6.Optional(Type6.String({ description: "Value axis label color (hex or semantic)" })),
671
- // Bar-specific
672
- barDir: Type6.Optional(
673
- Type6.Union([Type6.Literal("bar"), Type6.Literal("col")], {
674
- description: 'Bar direction: "bar" (horizontal) or "col" (vertical, default)'
675
- })
676
- ),
677
- barGrouping: Type6.Optional(
678
- Type6.Union(
679
- [Type6.Literal("clustered"), Type6.Literal("stacked"), Type6.Literal("percentStacked")],
680
- { description: "Bar grouping style" }
681
- )
682
- ),
683
- barGapWidthPct: Type6.Optional(
684
- Type6.Number({ minimum: 0, maximum: 500, description: "Bar gap width (0-500%)" })
685
- ),
686
- // Line-specific
687
- lineSmooth: Type6.Optional(Type6.Boolean({ description: "Smooth lines" })),
688
- lineDataSymbol: Type6.Optional(
689
- Type6.Union(
690
- [
691
- Type6.Literal("circle"),
692
- Type6.Literal("dash"),
693
- Type6.Literal("diamond"),
694
- Type6.Literal("dot"),
695
- Type6.Literal("none"),
696
- Type6.Literal("square"),
697
- Type6.Literal("triangle")
698
- ],
699
- { description: "Line data point marker symbol" }
700
- )
701
- ),
702
- lineSize: Type6.Optional(Type6.Number({ description: "Line width (points)" })),
703
- // Pie/doughnut-specific
704
- firstSliceAng: Type6.Optional(Type6.Number({ minimum: 0, maximum: 359, description: "Angle of first slice (degrees)" })),
705
- holeSize: Type6.Optional(Type6.Number({ minimum: 10, maximum: 90, description: "Doughnut hole size (%)" })),
706
- // Radar-specific
707
- radarStyle: Type6.Optional(
708
- Type6.Union(
709
- [Type6.Literal("standard"), Type6.Literal("marker"), Type6.Literal("filled")],
710
- { description: "Radar chart style" }
711
- )
712
- ),
713
- // Data labels
714
- dataLabelColor: Type6.Optional(Type6.String({ description: "Data label text color" })),
715
- dataLabelFontSize: Type6.Optional(Type6.Number({ description: "Data label font size" })),
716
- dataLabelFontFace: Type6.Optional(Type6.String({ description: "Data label font face" })),
717
- dataLabelFontBold: Type6.Optional(Type6.Boolean({ description: "Bold data labels" })),
718
- dataLabelPosition: Type6.Optional(
719
- Type6.Union(
720
- [
721
- Type6.Literal("b"),
722
- Type6.Literal("bestFit"),
723
- Type6.Literal("ctr"),
724
- Type6.Literal("l"),
725
- Type6.Literal("r"),
726
- Type6.Literal("t"),
727
- Type6.Literal("inEnd"),
728
- Type6.Literal("outEnd")
729
- ],
730
- { description: "Data label position" }
731
- )
732
- ),
733
- // Positioning
734
- x: Type6.Optional(PositionValue),
735
- y: Type6.Optional(PositionValue),
736
- w: Type6.Optional(PositionValue),
737
- h: Type6.Optional(PositionValue),
738
- grid: Type6.Optional(GridPositionSchema)
739
- },
740
- {
741
- description: "Native PowerPoint chart component props",
742
- additionalProperties: false
743
- }
744
- );
745
-
746
- // src/schemas/components/highcharts.ts
747
- import { Type as Type7 } from "@sinclair/typebox";
748
- var PptxHighchartsPropsSchema = Type7.Object(
749
- {
750
- options: Type7.Intersect([
751
- Type7.Record(Type7.String(), Type7.Unknown()),
752
- Type7.Object({
753
- chart: Type7.Object({
754
- width: Type7.Number(),
755
- height: Type7.Number()
756
- })
757
- })
758
- ]),
759
- scale: Type7.Optional(Type7.Number()),
760
- serverUrl: Type7.Optional(Type7.String({ description: "Highcharts Export Server URL (default: http://localhost:7801)" })),
761
- x: Type7.Optional(
762
- Type7.Union([
763
- Type7.Number({ description: "X position in inches" }),
764
- Type7.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "X as percentage" })
765
- ])
766
- ),
767
- y: Type7.Optional(
768
- Type7.Union([
769
- Type7.Number({ description: "Y position in inches" }),
770
- Type7.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Y as percentage" })
771
- ])
772
- ),
773
- w: Type7.Optional(
774
- Type7.Union([
775
- Type7.Number({ description: "Width in inches" }),
776
- Type7.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Width as percentage" })
777
- ])
778
- ),
779
- h: Type7.Optional(
780
- Type7.Union([
781
- Type7.Number({ description: "Height in inches" }),
782
- Type7.String({ pattern: "^\\d+(\\.\\d+)?%$", description: "Height as percentage" })
783
- ])
784
- ),
785
- grid: Type7.Optional(GridPositionSchema)
786
- },
787
- {
788
- description: "PPTX Highcharts component props",
789
- additionalProperties: false
790
- }
791
- );
792
-
793
- // src/schemas/components/template.ts
794
- var Coord = Type8.Union([
795
- Type8.Number({ description: "Position/size in inches" }),
796
- Type8.String({
797
- pattern: "^\\d+(\\.\\d+)?%$",
798
- description: 'Position/size as percentage of slide dimension (e.g., "50%")'
799
- })
800
- ]);
801
- function contentComponent(name, propsSchema) {
802
- return Type8.Object({
803
- name: Type8.Literal(name),
804
- id: Type8.Optional(Type8.String()),
805
- enabled: Type8.Optional(Type8.Boolean({
806
- default: true,
807
- description: "When false, this component is filtered out and not rendered. Defaults to true."
808
- })),
809
- props: propsSchema
810
- }, { additionalProperties: false });
811
- }
812
- var TemplateObjectComponentSchema = Type8.Union([
813
- contentComponent("text", TextPropsSchema),
814
- contentComponent("image", PptxImagePropsSchema),
815
- contentComponent("shape", ShapePropsSchema),
816
- contentComponent("table", PptxTablePropsSchema),
817
- contentComponent("chart", PptxChartPropsSchema),
818
- contentComponent("highcharts", PptxHighchartsPropsSchema)
819
- ], {
820
- discriminator: { propertyName: "name" },
821
- description: "Fixed component on a template slide (same format as slide children)"
822
- });
823
- function defaultsComponent(name, propsSchema) {
824
- return Type8.Object({
825
- name: Type8.Literal(name),
826
- props: Type8.Partial(propsSchema, { description: "Default props inherited by the component placed in this placeholder" })
827
- }, { additionalProperties: false });
828
- }
829
- var PlaceholderDefaultsSchema = Type8.Union([
830
- defaultsComponent("text", TextPropsSchema),
831
- defaultsComponent("image", PptxImagePropsSchema),
832
- defaultsComponent("shape", ShapePropsSchema),
833
- defaultsComponent("table", PptxTablePropsSchema),
834
- defaultsComponent("chart", PptxChartPropsSchema),
835
- defaultsComponent("highcharts", PptxHighchartsPropsSchema)
836
- ], {
837
- discriminator: { propertyName: "name" },
838
- description: "Partial component stub \u2014 styling defaults only"
839
- });
840
- var PlaceholderDefinitionSchema = Type8.Object({
841
- name: Type8.String({ description: "Unique placeholder name" }),
842
- x: Type8.Optional(Coord),
843
- y: Type8.Optional(Coord),
844
- w: Type8.Optional(Coord),
845
- h: Type8.Optional(Coord),
846
- grid: Type8.Optional(GridPositionSchema),
847
- defaults: Type8.Optional(PlaceholderDefaultsSchema)
848
- }, { additionalProperties: false, description: "Placeholder on a template slide \u2014 defaults is a component stub whose props are inherited by the actual component" });
849
- var TemplateSlideDefinitionSchema = Type8.Object({
850
- name: Type8.String({ description: "Unique template slide name" }),
851
- background: Type8.Optional(SlideBackgroundSchema),
852
- margin: Type8.Optional(Type8.Union([
853
- Type8.Number({ description: "Margin in inches (all sides)" }),
854
- Type8.Array(Type8.Number(), { minItems: 4, maxItems: 4, description: "Margin [top, right, bottom, left] in inches" })
855
- ])),
856
- slideNumber: Type8.Optional(Type8.Object({
857
- x: Coord,
858
- y: Coord,
859
- w: Type8.Optional(Coord),
860
- h: Type8.Optional(Coord),
861
- color: Type8.Optional(ColorValueSchema),
862
- fontSize: Type8.Optional(Type8.Number({ description: "Slide number font size in points" }))
863
- }, { additionalProperties: false, description: "Slide number position and styling" })),
864
- objects: Type8.Optional(Type8.Array(TemplateObjectComponentSchema, { description: "Fixed components (logos, footers, decorations) \u2014 same { name, props } format as slide children" })),
865
- placeholders: Type8.Optional(Type8.Array(PlaceholderDefinitionSchema, { description: "Placeholder regions for slide content" })),
866
- grid: Type8.Optional(GridConfigSchema)
867
- }, { additionalProperties: false, description: "Template slide definition (reusable slide template)" });
868
-
869
- // src/schemas/components/presentation.ts
870
- var PresentationPropsSchema = Type9.Object(
871
- {
872
- title: Type9.Optional(
873
- Type9.String({ description: "Presentation title metadata" })
874
- ),
875
- author: Type9.Optional(
876
- Type9.String({ description: "Presentation author metadata" })
877
- ),
878
- subject: Type9.Optional(
879
- Type9.String({ description: "Presentation subject metadata" })
880
- ),
881
- company: Type9.Optional(
882
- Type9.String({ description: "Company name metadata" })
883
- ),
884
- theme: Type9.Optional(
885
- Type9.String({
886
- description: 'Theme name to apply (default: "default")',
887
- default: "default"
888
- })
889
- ),
890
- slideWidth: Type9.Optional(
891
- Type9.Number({
892
- description: "Slide width in inches (default: 10)",
893
- default: 10
894
- })
895
- ),
896
- slideHeight: Type9.Optional(
897
- Type9.Number({
898
- description: "Slide height in inches (default: 7.5)",
899
- default: 7.5
900
- })
901
- ),
902
- rtlMode: Type9.Optional(
903
- Type9.Boolean({ description: "Right-to-left text direction" })
904
- ),
905
- pageNumberFormat: Type9.Optional(
906
- Type9.Union([Type9.Literal("9"), Type9.Literal("09")], {
907
- description: 'Format for {PAGE_NUMBER} placeholders: "9" = bare number (default), "09" = zero-padded',
908
- default: "9"
909
- })
910
- ),
911
- grid: Type9.Optional(GridConfigSchema),
912
- templates: Type9.Optional(
913
- Type9.Array(TemplateSlideDefinitionSchema, {
914
- description: "Template slide definitions (reusable slide templates)"
915
- })
916
- )
917
- },
918
- {
919
- description: "Presentation container props",
920
- additionalProperties: false
921
- }
922
- );
923
-
924
- // src/schemas/components/slide.ts
925
- import { Type as Type10 } from "@sinclair/typebox";
926
- var SlidePropsSchema = Type10.Object(
927
- {
928
- background: Type10.Optional(SlideBackgroundSchema),
929
- transition: Type10.Optional(TransitionSchema),
930
- notes: Type10.Optional(
931
- Type10.String({ description: "Speaker notes for this slide" })
932
- ),
933
- layout: Type10.Optional(
934
- Type10.String({
935
- description: 'Slide layout name (e.g., "Title Slide", "Blank")'
936
- })
937
- ),
938
- hidden: Type10.Optional(
939
- Type10.Boolean({ description: "Hide this slide from presentation" })
940
- ),
941
- template: Type10.Optional(
942
- Type10.String({ description: "Template slide name to apply" })
943
- )
944
- // Note: `placeholders` is added dynamically by the component registry
945
- // with the recursive component ref, to avoid circular imports.
946
- },
947
- {
948
- description: "Slide container props",
949
- additionalProperties: false
950
- }
951
- );
952
-
953
- // src/schemas/component-registry.ts
954
- var PPTX_STANDARD_COMPONENTS_REGISTRY = [
955
- // ========================================================================
956
- // Container Components (can contain children)
957
- // ========================================================================
958
- {
959
- name: "pptx",
960
- propsSchema: PresentationPropsSchema,
961
- hasChildren: true,
962
- allowedChildren: ["slide"],
963
- category: "container",
964
- description: "Main presentation container - defines the overall presentation structure. Required as the root component.",
965
- special: {
966
- hasSchemaField: true
967
- }
968
- },
969
- {
970
- name: "slide",
971
- propsSchema: SlidePropsSchema,
972
- hasChildren: true,
973
- allowedChildren: [
974
- "text",
975
- "image",
976
- "shape",
977
- "table",
978
- "highcharts",
979
- "chart"
980
- ],
981
- hasPlaceholders: true,
982
- category: "container",
983
- description: "Slide container - groups content elements on a single slide."
984
- },
985
- // ========================================================================
986
- // Content Components (leaf nodes, no children)
987
- // ========================================================================
988
- {
989
- name: "text",
990
- propsSchema: TextPropsSchema,
991
- hasChildren: false,
992
- category: "content",
993
- description: "Text element - displays text with formatting, positioning and styling options."
994
- },
995
- {
996
- name: "image",
997
- propsSchema: PptxImagePropsSchema,
998
- hasChildren: false,
999
- category: "content",
1000
- description: "Image element - displays images from file path, URL, or base64 data."
1001
- },
1002
- {
1003
- name: "shape",
1004
- propsSchema: ShapePropsSchema,
1005
- hasChildren: false,
1006
- category: "content",
1007
- description: "Shape element - draws geometric shapes with optional text, fill, and line styling."
1008
- },
1009
- {
1010
- name: "table",
1011
- propsSchema: PptxTablePropsSchema,
1012
- hasChildren: false,
1013
- category: "content",
1014
- description: "Table element - displays tabular data with rows and columns."
1015
- },
1016
- {
1017
- name: "highcharts",
1018
- propsSchema: PptxHighchartsPropsSchema,
1019
- hasChildren: false,
1020
- category: "content",
1021
- description: "Highcharts element - renders charts via Highcharts Export Server."
1022
- },
1023
- {
1024
- name: "chart",
1025
- propsSchema: PptxChartPropsSchema,
1026
- hasChildren: false,
1027
- category: "content",
1028
- description: "Native PowerPoint chart - editable, scalable, no external server needed."
1029
- }
1030
- ];
1031
- function getPptxStandardComponent(name) {
1032
- return PPTX_STANDARD_COMPONENTS_REGISTRY.find((c) => c.name === name);
1033
- }
1034
- function getAllPptxComponentNames() {
1035
- return PPTX_STANDARD_COMPONENTS_REGISTRY.map((c) => c.name);
1036
- }
1037
- function getPptxComponentsByCategory(category) {
1038
- return PPTX_STANDARD_COMPONENTS_REGISTRY.filter(
1039
- (c) => c.category === category
1040
- );
1041
- }
1042
- function getPptxContainerComponents() {
1043
- return PPTX_STANDARD_COMPONENTS_REGISTRY.filter((c) => c.hasChildren);
1044
- }
1045
- function getPptxContentComponents() {
1046
- return PPTX_STANDARD_COMPONENTS_REGISTRY.filter((c) => !c.hasChildren);
1047
- }
1048
- function isPptxStandardComponent(name) {
1049
- return PPTX_STANDARD_COMPONENTS_REGISTRY.some((c) => c.name === name);
1050
- }
1051
- function createPptxComponentSchemaObject(component, recursiveRef, placeholderRef) {
1052
- const schema = {
1053
- name: Type11.Literal(component.name),
1054
- id: Type11.Optional(Type11.String()),
1055
- enabled: Type11.Optional(
1056
- Type11.Boolean({
1057
- default: true,
1058
- description: "When false, this component is filtered out and not rendered. Defaults to true."
1059
- })
1060
- )
1061
- };
1062
- if (component.special?.hasSchemaField) {
1063
- schema.$schema = Type11.Optional(Type11.String({ format: "uri" }));
1064
- }
1065
- schema.props = component.propsSchema;
1066
- if (component.hasChildren && recursiveRef) {
1067
- schema.children = Type11.Optional(Type11.Array(recursiveRef));
1068
- }
1069
- if (component.hasPlaceholders && (placeholderRef ?? recursiveRef)) {
1070
- const baseProperties = component.propsSchema.properties ?? {};
1071
- const phRef = placeholderRef ?? recursiveRef;
1072
- schema.props = Type11.Object(
1073
- {
1074
- ...baseProperties,
1075
- placeholders: Type11.Optional(
1076
- Type11.Record(Type11.String(), phRef, {
1077
- description: 'Content for named placeholders: { "title": { "name": "text", ... } }'
1078
- })
1079
- )
1080
- },
1081
- {
1082
- additionalProperties: false,
1083
- description: component.propsSchema.description
1084
- }
1085
- );
1086
- }
1087
- return Type11.Object(schema, { additionalProperties: false });
1088
- }
1089
- function createAllPptxComponentSchemas(recursiveRef) {
1090
- return PPTX_STANDARD_COMPONENTS_REGISTRY.map(
1091
- (component) => createPptxComponentSchemaObject(component, recursiveRef)
1092
- );
1093
- }
1094
- function createAllPptxComponentSchemasNarrowed(selfRef, pluginSchemas = []) {
1095
- const leafSchemas = /* @__PURE__ */ new Map();
1096
- for (const comp of PPTX_STANDARD_COMPONENTS_REGISTRY) {
1097
- if (!comp.hasChildren) {
1098
- leafSchemas.set(
1099
- comp.name,
1100
- createPptxComponentSchemaObject(comp, void 0, selfRef)
1101
- );
1102
- }
1103
- }
1104
- const containers = PPTX_STANDARD_COMPONENTS_REGISTRY.filter(
1105
- (c) => c.hasChildren
1106
- );
1107
- const resolved = /* @__PURE__ */ new Map();
1108
- const pending = [...containers];
1109
- while (pending.length > 0) {
1110
- const before = pending.length;
1111
- for (let i = pending.length - 1; i >= 0; i--) {
1112
- const comp = pending[i];
1113
- if (!comp.allowedChildren) {
1114
- resolved.set(
1115
- comp.name,
1116
- createPptxComponentSchemaObject(comp, selfRef, selfRef)
1117
- );
1118
- pending.splice(i, 1);
1119
- continue;
1120
- }
1121
- const containerDeps = comp.allowedChildren.filter(
1122
- (name) => containers.some((c) => c.name === name)
1123
- );
1124
- if (!containerDeps.every((d) => resolved.has(d))) continue;
1125
- const childSchemas = comp.allowedChildren.map((name) => resolved.get(name) ?? leafSchemas.get(name)).filter((s) => s !== void 0);
1126
- const allChildSchemas = [...childSchemas, ...pluginSchemas];
1127
- const childrenType = allChildSchemas.length === 1 ? allChildSchemas[0] : Type11.Union(allChildSchemas);
1128
- resolved.set(
1129
- comp.name,
1130
- createPptxComponentSchemaObject(comp, childrenType, selfRef)
1131
- );
1132
- pending.splice(i, 1);
1133
- }
1134
- if (pending.length === before) {
1135
- throw new Error(
1136
- `Circular allowedChildren among: ${pending.map((c) => c.name).join(", ")}`
1137
- );
1138
- }
1139
- }
1140
- return [...resolved.values(), ...leafSchemas.values()];
1141
- }
1142
-
1143
- export {
1144
- PositionSchema,
1145
- SlideBackgroundSchema,
1146
- TransitionSchema,
1147
- PptxAlignmentSchema,
1148
- VerticalAlignmentSchema,
1149
- ShadowSchema,
1150
- GridPositionSchema,
1151
- TextPropsSchema,
1152
- PptxImagePropsSchema,
1153
- ShapeTypeSchema,
1154
- TextSegmentSchema,
1155
- ShapePropsSchema,
1156
- PptxTablePropsSchema,
1157
- PptxHighchartsPropsSchema,
1158
- PresentationPropsSchema,
1159
- SlidePropsSchema,
1160
- PPTX_STANDARD_COMPONENTS_REGISTRY,
1161
- getPptxStandardComponent,
1162
- getAllPptxComponentNames,
1163
- getPptxComponentsByCategory,
1164
- getPptxContainerComponents,
1165
- getPptxContentComponents,
1166
- isPptxStandardComponent,
1167
- createPptxComponentSchemaObject,
1168
- createAllPptxComponentSchemas,
1169
- createAllPptxComponentSchemasNarrowed
1170
- };
1171
- //# sourceMappingURL=chunk-WY5GF6HO.js.map