@dicebear/pixel-art 5.0.0-alpha.2 → 5.0.0-alpha.20

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 (84) hide show
  1. package/LICENSE +2 -2
  2. package/lib/colors/accessories.d.ts +2 -0
  3. package/lib/colors/accessories.js +7 -0
  4. package/lib/colors/clothes.d.ts +2 -0
  5. package/lib/colors/clothes.js +14 -0
  6. package/lib/colors/glasses.d.ts +2 -0
  7. package/lib/colors/glasses.js +8 -0
  8. package/lib/colors/hair.d.ts +2 -0
  9. package/lib/colors/hair.js +12 -0
  10. package/lib/colors/hat.d.ts +2 -0
  11. package/lib/colors/hat.js +9 -0
  12. package/lib/colors/index.d.ts +7 -0
  13. package/lib/colors/index.js +7 -0
  14. package/lib/colors/mouth.d.ts +2 -0
  15. package/lib/colors/mouth.js +6 -0
  16. package/lib/colors/skin.d.ts +2 -0
  17. package/lib/colors/skin.js +10 -0
  18. package/lib/components/accessories.d.ts +2 -0
  19. package/lib/components/accessories.js +6 -0
  20. package/lib/components/beard.d.ts +2 -0
  21. package/lib/components/beard.js +6 -0
  22. package/lib/components/clothing.d.ts +2 -0
  23. package/lib/components/clothing.js +27 -0
  24. package/lib/components/eyebrows.d.ts +2 -0
  25. package/lib/components/eyebrows.js +15 -0
  26. package/lib/components/eyes.d.ts +2 -0
  27. package/lib/components/eyes.js +15 -0
  28. package/lib/components/glasses.d.ts +2 -0
  29. package/lib/components/glasses.js +9 -0
  30. package/lib/components/hair.d.ts +2 -0
  31. package/lib/components/hair.js +28 -0
  32. package/lib/components/hat.d.ts +2 -0
  33. package/lib/components/hat.js +14 -0
  34. package/lib/components/index.d.ts +9 -0
  35. package/lib/components/index.js +9 -0
  36. package/lib/components/mouth.d.ts +2 -0
  37. package/lib/components/mouth.js +22 -0
  38. package/{dist → lib}/core.d.ts +3 -3
  39. package/lib/core.js +31 -0
  40. package/{dist → lib}/hooks/onPostCreate.d.ts +10 -12
  41. package/lib/hooks/onPostCreate.js +3 -0
  42. package/lib/hooks/onPreCreate.d.ts +8 -0
  43. package/lib/hooks/onPreCreate.js +3 -0
  44. package/lib/index.d.ts +13 -0
  45. package/lib/index.js +13 -0
  46. package/lib/schema.d.ts +2 -0
  47. package/lib/schema.js +640 -0
  48. package/lib/types.d.ts +39 -0
  49. package/lib/types.js +1 -0
  50. package/{dist → lib}/utils/getColors.d.ts +8 -9
  51. package/lib/utils/getColors.js +40 -0
  52. package/{dist → lib}/utils/getComponents.d.ts +8 -9
  53. package/lib/utils/getComponents.js +63 -0
  54. package/{dist → lib}/utils/pickColor.d.ts +9 -9
  55. package/lib/utils/pickColor.js +13 -0
  56. package/{dist → lib}/utils/pickComponent.d.ts +9 -9
  57. package/lib/utils/pickComponent.js +14 -0
  58. package/package.json +19 -23
  59. package/dist/colors/accessories.d.ts +0 -2
  60. package/dist/colors/clothes.d.ts +0 -2
  61. package/dist/colors/glasses.d.ts +0 -2
  62. package/dist/colors/hair.d.ts +0 -2
  63. package/dist/colors/hat.d.ts +0 -2
  64. package/dist/colors/index.d.ts +0 -7
  65. package/dist/colors/mouth.d.ts +0 -2
  66. package/dist/colors/skin.d.ts +0 -2
  67. package/dist/components/accessories.d.ts +0 -2
  68. package/dist/components/beard.d.ts +0 -2
  69. package/dist/components/clothing.d.ts +0 -2
  70. package/dist/components/eyebrows.d.ts +0 -2
  71. package/dist/components/eyes.d.ts +0 -2
  72. package/dist/components/glasses.d.ts +0 -2
  73. package/dist/components/hair.d.ts +0 -2
  74. package/dist/components/hat.d.ts +0 -2
  75. package/dist/components/index.d.ts +0 -9
  76. package/dist/components/mouth.d.ts +0 -2
  77. package/dist/hooks/onPreCreate.d.ts +0 -9
  78. package/dist/index.d.ts +0 -13
  79. package/dist/index.es.js +0 -1145
  80. package/dist/index.js +0 -1152
  81. package/dist/index.umd.js +0 -12
  82. package/dist/meta/components.d.ts +0 -4
  83. package/dist/options.d.ts +0 -28
  84. package/dist/static-types.d.ts +0 -16
package/dist/index.es.js DELETED
@@ -1,1145 +0,0 @@
1
- var title = "Options";
2
- var $schema = "http://json-schema.org/draft-07/schema#";
3
- var properties = {
4
- accessories: {
5
- type: "array",
6
- items: {
7
- type: "string",
8
- "enum": [
9
- "variant04",
10
- "variant03",
11
- "variant02",
12
- "variant01"
13
- ]
14
- },
15
- "default": [
16
- "variant04",
17
- "variant03",
18
- "variant02",
19
- "variant01"
20
- ]
21
- },
22
- accessoriesColor: {
23
- type: "array",
24
- items: {
25
- anyOf: [
26
- {
27
- type: "string",
28
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
29
- },
30
- {
31
- type: "string",
32
- "enum": [
33
- "gold01",
34
- "gold02",
35
- "gold03",
36
- "silver01",
37
- "silver02"
38
- ]
39
- }
40
- ]
41
- },
42
- "default": [
43
- "gold01",
44
- "gold02",
45
- "gold03",
46
- "silver01",
47
- "silver02"
48
- ]
49
- },
50
- accessoriesProbability: {
51
- type: "integer",
52
- minimum: 0,
53
- maximum: 100,
54
- "default": 10
55
- },
56
- beard: {
57
- type: "array",
58
- items: {
59
- type: "string",
60
- "enum": [
61
- "variant04",
62
- "variant03",
63
- "variant02",
64
- "variant01"
65
- ]
66
- },
67
- "default": [
68
- "variant04",
69
- "variant03",
70
- "variant02",
71
- "variant01"
72
- ]
73
- },
74
- beardProbability: {
75
- type: "integer",
76
- minimum: 0,
77
- maximum: 100,
78
- "default": 10
79
- },
80
- clothesColor: {
81
- type: "array",
82
- items: {
83
- anyOf: [
84
- {
85
- type: "string",
86
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
87
- },
88
- {
89
- type: "string",
90
- "enum": [
91
- "yellow01",
92
- "yellow02",
93
- "yellow03",
94
- "red01",
95
- "red02",
96
- "red03",
97
- "blue01",
98
- "blue02",
99
- "blue03",
100
- "green01",
101
- "green02",
102
- "green03"
103
- ]
104
- }
105
- ]
106
- },
107
- "default": [
108
- "yellow01",
109
- "yellow02",
110
- "yellow03",
111
- "red01",
112
- "red02",
113
- "red03",
114
- "blue01",
115
- "blue02",
116
- "blue03",
117
- "green01",
118
- "green02",
119
- "green03"
120
- ]
121
- },
122
- clothing: {
123
- type: "array",
124
- items: {
125
- type: "string",
126
- "enum": [
127
- "variant25",
128
- "variant24",
129
- "variant23",
130
- "variant22",
131
- "variant21",
132
- "variant20",
133
- "variant19",
134
- "variant18",
135
- "variant17",
136
- "variant16",
137
- "variant15",
138
- "variant14",
139
- "variant13",
140
- "variant12",
141
- "variant11",
142
- "variant10",
143
- "variant09",
144
- "variant08",
145
- "variant07",
146
- "variant06",
147
- "variant05",
148
- "variant04",
149
- "variant03",
150
- "variant02",
151
- "variant01"
152
- ]
153
- },
154
- "default": [
155
- "variant25",
156
- "variant24",
157
- "variant23",
158
- "variant22",
159
- "variant21",
160
- "variant20",
161
- "variant19",
162
- "variant18",
163
- "variant17",
164
- "variant16",
165
- "variant15",
166
- "variant14",
167
- "variant13",
168
- "variant12",
169
- "variant11",
170
- "variant10",
171
- "variant09",
172
- "variant08",
173
- "variant07",
174
- "variant06",
175
- "variant05",
176
- "variant04",
177
- "variant03",
178
- "variant02",
179
- "variant01"
180
- ]
181
- },
182
- eyebrows: {
183
- type: "array",
184
- items: {
185
- type: "string",
186
- "enum": [
187
- "variant13",
188
- "variant12",
189
- "variant11",
190
- "variant10",
191
- "variant09",
192
- "variant08",
193
- "variant07",
194
- "variant06",
195
- "variant05",
196
- "variant04",
197
- "variant03",
198
- "variant02",
199
- "variant01"
200
- ]
201
- },
202
- "default": [
203
- "variant13",
204
- "variant12",
205
- "variant11",
206
- "variant10",
207
- "variant09",
208
- "variant08",
209
- "variant07",
210
- "variant06",
211
- "variant05",
212
- "variant04",
213
- "variant03",
214
- "variant02",
215
- "variant01"
216
- ]
217
- },
218
- eyes: {
219
- type: "array",
220
- items: {
221
- type: "string",
222
- "enum": [
223
- "variant13",
224
- "variant12",
225
- "variant11",
226
- "variant10",
227
- "variant09",
228
- "variant08",
229
- "variant07",
230
- "variant06",
231
- "variant05",
232
- "variant04",
233
- "variant03",
234
- "variant02",
235
- "variant01"
236
- ]
237
- },
238
- "default": [
239
- "variant13",
240
- "variant12",
241
- "variant11",
242
- "variant10",
243
- "variant09",
244
- "variant08",
245
- "variant07",
246
- "variant06",
247
- "variant05",
248
- "variant04",
249
- "variant03",
250
- "variant02",
251
- "variant01"
252
- ]
253
- },
254
- glasses: {
255
- type: "array",
256
- items: {
257
- type: "string",
258
- "enum": [
259
- "variant07",
260
- "variant06",
261
- "variant05",
262
- "variant04",
263
- "variant03",
264
- "variant02",
265
- "variant01"
266
- ]
267
- },
268
- "default": [
269
- "variant07",
270
- "variant06",
271
- "variant05",
272
- "variant04",
273
- "variant03",
274
- "variant02",
275
- "variant01"
276
- ]
277
- },
278
- glassesColor: {
279
- type: "array",
280
- items: {
281
- anyOf: [
282
- {
283
- type: "string",
284
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
285
- },
286
- {
287
- type: "string",
288
- "enum": [
289
- "green01",
290
- "blue01",
291
- "red01",
292
- "black01",
293
- "black02",
294
- "black03"
295
- ]
296
- }
297
- ]
298
- },
299
- "default": [
300
- "green01",
301
- "blue01",
302
- "red01",
303
- "black01",
304
- "black02",
305
- "black03"
306
- ]
307
- },
308
- glassesProbability: {
309
- type: "integer",
310
- minimum: 0,
311
- maximum: 100,
312
- "default": 20
313
- },
314
- hair: {
315
- type: "array",
316
- items: {
317
- type: "string",
318
- "enum": [
319
- "short11",
320
- "short10",
321
- "short09",
322
- "short08",
323
- "short07",
324
- "short06",
325
- "short05",
326
- "short04",
327
- "short03",
328
- "short02",
329
- "long15",
330
- "short01",
331
- "long14",
332
- "long13",
333
- "long12",
334
- "long11",
335
- "long10",
336
- "long09",
337
- "long08",
338
- "long07",
339
- "long06",
340
- "long05",
341
- "long04",
342
- "long03",
343
- "long02",
344
- "long01"
345
- ]
346
- },
347
- "default": [
348
- "short11",
349
- "short10",
350
- "short09",
351
- "short08",
352
- "short07",
353
- "short06",
354
- "short05",
355
- "short04",
356
- "short03",
357
- "short02",
358
- "long15",
359
- "short01",
360
- "long14",
361
- "long13",
362
- "long12",
363
- "long11",
364
- "long10",
365
- "long09",
366
- "long08",
367
- "long07",
368
- "long06",
369
- "long05",
370
- "long04",
371
- "long03",
372
- "long02",
373
- "long01"
374
- ]
375
- },
376
- hairColor: {
377
- type: "array",
378
- items: {
379
- anyOf: [
380
- {
381
- type: "string",
382
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
383
- },
384
- {
385
- type: "string",
386
- "enum": [
387
- "variant01",
388
- "variant02",
389
- "variant03",
390
- "variant04",
391
- "variant05",
392
- "variant06",
393
- "variant07",
394
- "variant08",
395
- "variant09",
396
- "variant10"
397
- ]
398
- }
399
- ]
400
- },
401
- "default": [
402
- "variant01",
403
- "variant02",
404
- "variant03",
405
- "variant04",
406
- "variant05",
407
- "variant06",
408
- "variant07",
409
- "variant08",
410
- "variant09",
411
- "variant10"
412
- ]
413
- },
414
- hairProbability: {
415
- type: "integer",
416
- minimum: 0,
417
- maximum: 100,
418
- "default": 100
419
- },
420
- hat: {
421
- type: "array",
422
- items: {
423
- type: "string",
424
- "enum": [
425
- "variant01",
426
- "variant02",
427
- "variant03",
428
- "variant04",
429
- "variant05",
430
- "variant06",
431
- "variant07",
432
- "variant08",
433
- "variant09",
434
- "variant10",
435
- "variant11",
436
- "variant12"
437
- ]
438
- },
439
- "default": [
440
- "variant01",
441
- "variant02",
442
- "variant03",
443
- "variant04",
444
- "variant05",
445
- "variant06",
446
- "variant07",
447
- "variant08",
448
- "variant09",
449
- "variant10",
450
- "variant11",
451
- "variant12"
452
- ]
453
- },
454
- hatColor: {
455
- type: "array",
456
- items: {
457
- anyOf: [
458
- {
459
- type: "string",
460
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
461
- },
462
- {
463
- type: "string",
464
- "enum": [
465
- "pink01",
466
- "blue01",
467
- "green01",
468
- "purple01",
469
- "red01",
470
- "black01",
471
- "gray01"
472
- ]
473
- }
474
- ]
475
- },
476
- "default": [
477
- "pink01",
478
- "blue01",
479
- "green01",
480
- "purple01",
481
- "red01",
482
- "black01",
483
- "gray01"
484
- ]
485
- },
486
- hatProbability: {
487
- type: "integer",
488
- minimum: 0,
489
- maximum: 100,
490
- "default": 10
491
- },
492
- mouth: {
493
- type: "array",
494
- items: {
495
- type: "string",
496
- "enum": [
497
- "surprised03",
498
- "surprised02",
499
- "happy09",
500
- "happy08",
501
- "happy07",
502
- "happy06",
503
- "happy05",
504
- "happy04",
505
- "happy03",
506
- "happy02",
507
- "happy01",
508
- "sad08",
509
- "sad07",
510
- "sad06",
511
- "sad05",
512
- "sad04",
513
- "sad03",
514
- "sad02",
515
- "sad01",
516
- "surprised01"
517
- ]
518
- },
519
- "default": [
520
- "surprised03",
521
- "surprised02",
522
- "happy09",
523
- "happy08",
524
- "happy07",
525
- "happy06",
526
- "happy05",
527
- "happy04",
528
- "happy03",
529
- "happy02",
530
- "happy01",
531
- "sad08",
532
- "sad07",
533
- "sad06",
534
- "sad05",
535
- "sad04",
536
- "sad03",
537
- "sad02",
538
- "sad01",
539
- "surprised01"
540
- ]
541
- },
542
- mouthColor: {
543
- type: "array",
544
- items: {
545
- anyOf: [
546
- {
547
- type: "string",
548
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
549
- },
550
- {
551
- type: "string",
552
- "enum": [
553
- "variant01",
554
- "variant02",
555
- "variant03",
556
- "variant04"
557
- ]
558
- }
559
- ]
560
- },
561
- "default": [
562
- "variant01",
563
- "variant02",
564
- "variant03",
565
- "variant04"
566
- ]
567
- },
568
- skinColor: {
569
- type: "array",
570
- items: {
571
- anyOf: [
572
- {
573
- type: "string",
574
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
575
- },
576
- {
577
- type: "string",
578
- "enum": [
579
- "variant01",
580
- "variant02",
581
- "variant03",
582
- "variant04",
583
- "variant05",
584
- "variant06",
585
- "variant07",
586
- "variant08"
587
- ]
588
- }
589
- ]
590
- },
591
- "default": [
592
- "variant01",
593
- "variant02",
594
- "variant03",
595
- "variant04",
596
- "variant05",
597
- "variant06",
598
- "variant07",
599
- "variant08"
600
- ]
601
- }
602
- };
603
- var additionalProperties = false;
604
- var schema$1 = {
605
- title: title,
606
- $schema: $schema,
607
- properties: properties,
608
- additionalProperties: additionalProperties
609
- };
610
-
611
- const beard = {
612
- variant04: (components, colors) => "\n<path opacity=\".9\" d=\"M4 10v3h1v1h1v1h8v-1h1v-1h1v-3h-2v1H6v-1H4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
613
- variant03: (components, colors) => "\n<path opacity=\".9\" d=\"M4 13h1v1h1v1h8v-1h1v-1h1v-3h-1v1h-1v1H6v-1H5v-1H4v3Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
614
- variant02: (components, colors) => "\n<path opacity=\".9\" d=\"M4 11v2h1v1h1v1h8v-1h1v-1h1v-2H4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
615
- variant01: (components, colors) => "\n<path opacity=\".9\" d=\"M4 8v5h1v1h1v1h8v-1h1v-1h1V8h-1v2h-1v1h-1v1H7v-1H6v-1H5V8H4Z\" fill=\"".concat(colors.hair.value, "\"/>\n")
616
- };
617
-
618
- const eyes = {
619
- variant13: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
620
- variant12: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/>\n</g>\n",
621
- variant11: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
622
- variant10: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
623
- variant09: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
624
- variant08: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
625
- variant07: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n",
626
- variant06: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
627
- variant05: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n</g>\n",
628
- variant04: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
629
- variant03: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/>\n<path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n",
630
- variant02: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n<path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n",
631
- variant01: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/>\n<path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/>\n<path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n"
632
- };
633
-
634
- const eyebrows = {
635
- variant13: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
636
- variant12: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
637
- variant11: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
638
- variant10: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
639
- variant09: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
640
- variant08: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
641
- variant07: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
642
- variant06: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
643
- variant05: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
644
- variant04: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
645
- variant03: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
646
- variant02: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
647
- variant01: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n")
648
- };
649
-
650
- const mouth$1 = {
651
- surprised03: (components, colors) => "\n<path d=\"M9 12v2h2v-2H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
652
- surprised02: (components, colors) => "\n<path d=\"M9 13v1h1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
653
- happy09: (components, colors) => "\n<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
654
- happy08: (components, colors) => "\n<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
655
- happy07: (components, colors) => "\n<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
656
- happy06: (components, colors) => "\n<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
657
- happy05: (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
658
- happy04: (components, colors) => "\n<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
659
- happy03: (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
660
- happy02: (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>\n"),
661
- happy01: (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
662
- sad08: (components, colors) => "\n<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
663
- sad07: (components, colors) => "\n<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
664
- sad06: (components, colors) => "\n<path d=\"M8 12h3v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
665
- sad05: (components, colors) => "\n<path d=\"M8 12h4v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
666
- sad04: (components, colors) => "\n<path d=\"M9 12h2v1H9v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
667
- sad03: (components, colors) => "\n<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
668
- sad02: (components, colors) => "\n<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
669
- sad01: (components, colors) => "\n<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
670
- surprised01: (components, colors) => "\n<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>\n"
671
- };
672
-
673
- const hair$1 = {
674
- short11: (components, colors) => "\n<path d=\"M4 4v2h1V5h1V4h8v1h1v1h1V4h-1V3H5v1H4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
675
- short10: (components, colors) => "\n<path d=\"M6 2h8v1h1v1h1v3h-1V6h-1V5h-1V4H9v1H7v1H6v1H4V4h1V3h1V2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
676
- short09: (components, colors) => "\n<path d=\"M4 7h1V5h1V4h2v1h1v1h2V5h1V4h2v1h1v2h1V5h-1V4h-1V3H6v1H5v1H4v2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
677
- short08: (components, colors) => "\n<path d=\"M3 8h1V5h12v3h1V4h-1V3h-1V2H5v1H4v1H3v4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
678
- short07: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 5v1h1v1h2V5h1V3H4v1H3v1H2Zm6-1h2v1h2V4h1V3H8v1Zm6 1h1v2h2V6h1V5h-1V4h-1V3h-2v2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
679
- short06: (components, colors) => "\n<path d=\"M3 8h1V5h2V3h8v1h1v1h1v3h1V3h-2V2h-2V1h-1v1h-2V1H9v1H8V1H7v1H5v1H4v1H3v4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
680
- short05: (components, colors) => "\n<path d=\"M11 5V4h1V3H8v1h1v1h2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
681
- short04: (components, colors) => "\n<path d=\"M3 8h1V6h2V5h2V4h1v1h2v1h2v1h2v1h2V5h-1V4h-1V3H5v1H4v1H3v3Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
682
- short03: (components, colors) => "\n<path d=\"M5 5h10V4h-1V3H6v1H5v1Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
683
- short02: (components, colors) => "\n<path d=\"M3 5H2v3h2V5h1V4h1v1h2V4h4V3h1v1h1v1h1v1h1v2h1V7h1V5h-1V4h-1V3h-1V2h-1V1h-1v1h-2V1h-1v1H7V1H5v1H4v1H3v2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
684
- long15: (components, colors) => "\n<path d=\"M1 7h1v5h1v1h1V7h1V6h1V4h1V3h6v1h1v1h1v1h1v7h1v-2h1V7h-1V6h1V4h-1v1h-1V3h1V2h-1v1h-1V2h-1V1h-1V0h-1v1H6V0H5v1H4V0H3v1h1v2H3V2H2v1h1v1H2v2H1v1Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
685
- short01: (components, colors) => "\n<path d=\"M6 3v1H5v1H4v3h2V7h1V6h4V5h1V4h1v1h-1v1h1v1h1v1h2V5h-1V4h-1V3H6Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
686
- long14: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 11v6h1v-1h4v-1H6v-1H5v-1H4v-2H3Zm0-3h2V5h10v3h2V4h-1V3H4v1H3v4Zm13 3h1v6h-1v-1h-4v-1h2v-1h1v-1h1v-2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
687
- long13: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 11v5h2v-3H4v-2H3Zm0-3h2V5h10v3h2V4h-1V3H4v1H3v4Zm13 3h1v5h-2v-3h1v-2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
688
- long12: (components, colors) => "\n<path d=\"M4 13h1v1H3V4h1V3h1V2h10v1h1v1h1v10h-2v-1h1V5H4v8Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
689
- long11: (components, colors) => "\n<path d=\"M2 18h2v-1h4v-2H6v-1H5v-1H4V5h1V4h1v1h1V4h1v1h1V4h6v1h1v8h-1v1h-1v1h-2v2h4v1h2V4h-1V3h-1V2H4v1H3v1H2v14Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
690
- long10: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 14.1V11h1v2h1v1l-2 .1ZM17 11v3h-2v-1h1v-2h1ZM3 8h1V5h1V4h1V3h8v1h1v1h1v3h1V4h-1V3h-1V2H5v1H4v1H3v4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
691
- long09: (components, colors) => "\n<path d=\"M2 15h2V5h12v10h2V4h-1V3h-1V2H4v1H3v1H2v11Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
692
- long08: (components, colors) => "\n<path d=\"M2 14h2V7h1V6h1V5h1V4h1V3h6v1h1v1h1v9h2V3h-1V2h-1V1H4v1H3v1H2v11Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
693
- long07: (components, colors) => "\n<path d=\"M4 5v3h1V5h2v1h1V5h1v1h1V5h5v3h1V5h1V3h-1V2h-2v1H6V2H4v1H3v2h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
694
- long06: (components, colors) => "\n<path d=\"M3 11h1V9h1V8h1V7h1V6h1V5h5v1h3V5h-1V4h-1V3H5v1H4v1H3v6Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
695
- long05: (components, colors) => "\n<path d=\"M2 17h2v-1h4v-1H6v-1H5v-1H4v-2H3V8h1V5h1V4h6V3h1v1h1V3h1v1h1v1h1v3h1v3h-1v2h-1v1h-1v1h-2v1h4v1h2V4h-1V3h-1V2h-1V1H5v1H4v1H3v1H2v13Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
696
- long04: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 14h2v-1H4v-2H3v3Zm12 0h2v-3h-1v2h-1v1Zm2-6V3h-1V2H4v1H3v5h1V5h1V4h1V3h8v1h1v1h1v3h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
697
- long03: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 13v1H2v2H1v1h1v-1h1v-1h1v-1h1v-1H4v-2H3v2Zm0-5h1V7h1V6h1V5h8v1h1v1h1v1h1V4h-1V3h-1V2H5v1H4v1H3v4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
698
- long02: (components, colors) => "\n<path d=\"M2 15h4v-1H5v-1H4V6h2V5h2V4h1V3h4v1h1v1h1v1h1v7h-1v1h-1v1h4V4h-1V3h-1V2h-1V1H5v1H4v1H3v1H2v11Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
699
- long01: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 11v3H2v2H1v1h1v-1h1v-1h1v-1h1v-1H4v-2H3Zm14 0v3h1v2h1v1h-1v-1h-1v-1h-1v-1h-1v-1h1v-2h1Zm-1-3h1V4h-1V3h-1V2H5v1H4v1H3v4h1V7h1V6h1V5h8v1h1v1h1v1Z\" fill=\"".concat(colors.hair.value, "\"/>\n")
700
- };
701
-
702
- const accessories$1 = {
703
- variant04: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 10v1h1v-1H3Zm13 0v1h1v-1h-1Z\" fill=\"".concat(colors.accessories.value, "\"/>\n"),
704
- variant03: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 10v2h1v-2H3Zm13 0h1v2h-1v-2Z\" fill=\"".concat(colors.accessories.value, "\"/>\n"),
705
- variant02: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M3 10v2h1v-2H3Zm13 0h1v2h-1v-2Z\" fill=\"".concat(colors.accessories.value, "\"/>\n<path d=\"M3 10v1h1v-1H3Zm13 0h1v1h-1v-1Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n</g>\n"),
706
- variant01: (components, colors) => "\n<path d=\"M4 11H2v2h2v-2ZM18 11h-2v2h2v-2Z\" fill=\"".concat(colors.accessories.value, "\"/>\n")
707
- };
708
-
709
- const glasses$1 = {
710
- variant07: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 10V7h3v3h-3Zm-1-4v1H9V6H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
711
- variant06: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
712
- variant05: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
713
- variant04: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
714
- variant03: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/>\n<path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
715
- variant02: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
716
- variant01: (components, colors) => "\n<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n")
717
- };
718
-
719
- const hat$1 = {
720
- variant01: (components, colors) => "\n<path d=\"M4 1v2H2v2h16V3h-2V1H4Z\" fill=\"".concat(colors.hat.value, "\"/>\n"),
721
- variant02: (components, colors) => "\n<path d=\"M4 4H2v1h16V4h-2V1H4v3Z\" fill=\"".concat(colors.hat.value, "\"/>\n"),
722
- variant03: (components, colors) => "\n<path d=\"M3 4v2h14V4h-1V3h-1V2H5v1H4v1H3Z\" fill=\"".concat(colors.hat.value, "\"/>\n"),
723
- variant04: (components, colors) => "\n<path d=\"M6 1v1H5v1H4v2h14V4h-2V3h-1V2h-1V1H6Z\" fill=\"".concat(colors.hat.value, "\"/>\n"),
724
- variant05: (components, colors) => "\n<path d=\"M3 5V3h2V1h10v2h2v2H3Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path d=\"M4 1v2h12V1H4Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
725
- variant06: (components, colors) => "\n<path d=\"M3 5V4h2V1h10v3h2v1H3Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path d=\"M5 1v3h10V1H5Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
726
- variant07: (components, colors) => "\n<path d=\"M3 6V4h1V3h1V2h10v1h1v1h1v2H3Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 3v1h12V3H4ZM3 5v1h14V5H3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
727
- variant08: (components, colors) => "\n<path d=\"M14 2H6v1H5v1H4v2h14V5h-2V4h-1V3h-1V2Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path d=\"M5 6h1V5h1V4h1V3H7v1H6v1H5v1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
728
- variant09: (components, colors) => "\n<path d=\"M5 1v2H3v2h14V3h-2V1H5Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path d=\"M14 3V0h-1v3h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
729
- variant10: (components, colors) => "\n<path d=\"M4 0v5H2v1h16V5h-2V0H4Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15 3V0h-1v3h1Zm-2-3v2h-1V0h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
730
- variant11: (components, colors) => "\n<path d=\"M3 3v2h14V3h-1V2h-1V1H5v1H4v1H3Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14 1v4h-1V1h1Zm-2 0v4h-1V1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
731
- variant12: (components, colors) => "\n<path d=\"M5 4H4v2h14V5h-2V4h-1V3h-1V2H6v1H5v1Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path d=\"M14 4h-3v1h3V4Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n")
732
- };
733
-
734
- const clothing = {
735
- variant25: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h12v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M5 20v-2h1v-1h8v1h1v2h-2v-1h-2v1H9v-1H7v1H5Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
736
- variant24: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h12v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M8 16H4v1H3v3h14v-3h-1v-1h-4v1h1v1h-1v1h-1v-1H9v1H8v-1H7v-1h1v-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n<path d=\"M9 16v1h2v-1H9Z\" fill=\"#fff\"/>\n"),
737
- variant23: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h12v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9 16H4v1H3v3h6v-2H8v-1h1v-1Zm2 0h5v1h1v3h-6v-2h1v-1h-1v-1Z\" fill=\"#fff\" fill-opacity=\".3\"/>\n"),
738
- variant22: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h3v2h6v-2h3v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 16H4v1H3v3h2v-4Zm1 0h1v2h6v-2h1v4H6v-4Zm9 0h1v1h1v3h-2v-4Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
739
- variant21: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h1v1h2v-1h1v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 17v-1h3v1H4Zm9 0v-1h3v1h-3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
740
- variant20: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h3v-1h1v1h1v1h2v-1h1v-1h1v1h3v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 16H4v1H3v3h6v-2H8v-1H6v-1Zm2 0h1-1Zm3 0h1-1Zm2 0h1v1h-2v1h-1v2h6v-3h-1v-1h-3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
741
- variant19: (components, colors) => "\n<path d=\"M5 16H4v1H3v3h14v-3h-1v-1h-3v1H7v-1H5Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M10 20v-1h3v1h-3Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 16H4v1H3v3h1v-1h1v-3Zm1 0h1v1h6v-1h1v2H6v-2Zm9 0h1v1h1v3h-1v-1h-1v-3Z\" fill=\"#fff\" fill-opacity=\".8\"/>\n"),
742
- variant18: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h4v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 20v-1h1v1H3Zm2 0v-1h1v1H5Zm2 0v-1h1v1H7Zm2 0v-1h1v1H9Zm2 0v-1h1v1h-1Zm2 0v-1h1v1h-1Zm2 0v-1h1v1h-1Zm1-2h1v1h-1v-1Zm-2 0h1v1h-1v-1Zm-2 0h1v1h-1v-1Zm-2 0h1v1h-1v-1Zm-2 0h1v1H8v-1Zm-2 0h1v1H6v-1Zm-2 0h1v1H4v-1Zm-1-1h1v1H3v-1Zm2 0h1v1H5v-1Zm2 0h1v1H7v-1Zm2 0h1v1H9v-1Zm2 0h1v1h-1v-1Zm2 0h1v1h-1v-1Zm2 0h1v1h-1v-1ZM4 16h1v1H4v-1Zm2 0h1v1H6v-1Zm6 0h1v1h-1v-1Zm2 0h1v1h-1v-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
743
- variant17: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h4v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 20v-2h1v2H3Zm3 0v-2h2v2H6Zm4 0v-2h2v2h-2Zm4 0v-2h2v2h-2Zm2-3v1h1v-1h-1Zm-2 1v-2h-2v2h2Zm-6-1v1h2v-1H8Zm-4-1v2h2v-2H4Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
744
- variant16: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h4v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 19h14v1H3v-1Zm0-2h14v1H3v-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
745
- variant15: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h4v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
746
- variant14: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v-1h4v1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M3 20v-3h1v-1h12v1h1v3H3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n<path d=\"M12 20v-1h3v1h-3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
747
- variant13: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h12v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
748
- variant12: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 16v4h4v-1H7v-1H6v-1H5v-1H4Zm12 0v4h-4v-1h1v-1h1v-1h1v-1h1Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
749
- variant11: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 16h1v2h1v1h1v1H5v-4Zm9 0h1v4h-3v-1h1v-1h1v-2Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
750
- variant10: (components, colors) => "\n<path d=\"M4 20v-2h1v-1h1v-1h2v1h1v1h2v-1h1v-1h2v1h1v1h1v2H4Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
751
- variant09: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h1v1h2v-1h1v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M3 20v-3h1v-1h2v1h1v1h1v1h4v-1h1v-1h1v-1h2v1h1v3H3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
752
- variant08: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h5v1h2v-1h5v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 20v-2h1v1h3v1H3Zm14 0v-2h-1v1h-3v1h4Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path d=\"M7 16H4v1H3v1h1v1h3v1h6v-1h3v-1h1v-1h-1v-1h-3v1H7v-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
753
- variant07: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h4v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M15 20h2v-3h-1v-1h-4v1H8v-1H4v1H3v3h2v-2h10v2Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n"),
754
- variant06: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h1v1h2v-1h1v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M6 16v1h1v1h1v1h4v-1h1v-1h1v-1h-2v1h-1v1H9v-1H8v-1H6Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 20v-1h2v1h-2Zm1-4v1h2v-1h-2Zm-8 0H4v1h2v-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
755
- variant05: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h3v1h1v1h1v1h2v-1h1v-1h1v-1h3v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
756
- variant04: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 20v-3h1v-1h2v1h1v1h1v1h1v1H3Zm14 0v-3h-1v-1h-2v1h-1v1h-1v1h-1v1h6Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
757
- variant03: (components, colors) => "\n<path d=\"M4 16v4h4v-1H7v-1H6v-2H4ZM16 20v-4h-2v2h-1v1h-1v1h4Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
758
- variant02: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h3v1h1v1h1v1h2v-1h1v-1h1v-1h3v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M6 16v1h1v1h1v1h1v1h2v-1h1v-1h1v-1h1v-1h-1v1h-1v1h-1v1H9v-1H8v-1H7v-1H6Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15 16v1h-1v1h-1v1h-1v1h-1v-1h1v-1h1v-1h1v-1h1ZM5 16v1h1v1h1v1h1v1h1v-1H8v-1H7v-1H6v-1H5Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 20h1v-3h1v1h1v1h1v1h1v-1H7v-1H6v-1H5v-1H4v1H3v3Zm14 0v-3h-1v-1h-1v1h-1v1h-1v1h-1v1h1v-1h1v-1h1v-1h1v3h1Z\" fill=\"#fff\" fill-opacity=\".1\"/>\n"),
759
- variant01: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h5v1h2v-1h5v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 17h14v1H3v-1Zm0 2v1h14v-1H3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n")
760
- };
761
-
762
- var components = /*#__PURE__*/Object.freeze({
763
- __proto__: null,
764
- beard: beard,
765
- eyes: eyes,
766
- eyebrows: eyebrows,
767
- mouth: mouth$1,
768
- hair: hair$1,
769
- accessories: accessories$1,
770
- glasses: glasses$1,
771
- hat: hat$1,
772
- clothing: clothing
773
- });
774
-
775
- function pickComponent(_ref) {
776
- let {
777
- prng,
778
- group,
779
- values = []
780
- } = _ref;
781
- const componentCollection = components;
782
- const key = prng.pick(values);
783
-
784
- if (componentCollection[group][key]) {
785
- return {
786
- name: key,
787
- value: componentCollection[group][key]
788
- };
789
- } else {
790
- return undefined;
791
- }
792
- }
793
-
794
- function getComponents(_ref) {
795
- let {
796
- prng,
797
- options
798
- } = _ref;
799
- const beardComponent = pickComponent({
800
- prng,
801
- group: 'beard',
802
- values: options.beard
803
- });
804
- const eyesComponent = pickComponent({
805
- prng,
806
- group: 'eyes',
807
- values: options.eyes
808
- });
809
- const eyebrowsComponent = pickComponent({
810
- prng,
811
- group: 'eyebrows',
812
- values: options.eyebrows
813
- });
814
- const mouthComponent = pickComponent({
815
- prng,
816
- group: 'mouth',
817
- values: options.mouth
818
- });
819
- const hairComponent = pickComponent({
820
- prng,
821
- group: 'hair',
822
- values: options.hair
823
- });
824
- const accessoriesComponent = pickComponent({
825
- prng,
826
- group: 'accessories',
827
- values: options.accessories
828
- });
829
- const glassesComponent = pickComponent({
830
- prng,
831
- group: 'glasses',
832
- values: options.glasses
833
- });
834
- const hatComponent = pickComponent({
835
- prng,
836
- group: 'hat',
837
- values: options.hat
838
- });
839
- const clothingComponent = pickComponent({
840
- prng,
841
- group: 'clothing',
842
- values: options.clothing
843
- });
844
- return {
845
- beard: prng.bool(options.beardProbability) ? beardComponent : undefined,
846
- eyes: eyesComponent,
847
- eyebrows: eyebrowsComponent,
848
- mouth: mouthComponent,
849
- hair: prng.bool(options.hairProbability) ? hairComponent : undefined,
850
- accessories: prng.bool(options.accessoriesProbability) ? accessoriesComponent : undefined,
851
- glasses: prng.bool(options.glassesProbability) ? glassesComponent : undefined,
852
- hat: prng.bool(options.hatProbability) ? hatComponent : undefined,
853
- clothing: clothingComponent
854
- };
855
- }
856
-
857
- const skin = {
858
- variant01: 'rgba(255, 219, 172, 1)',
859
- variant02: 'rgba(245, 207, 160, 1)',
860
- variant03: 'rgba(234, 195, 147, 1)',
861
- variant04: 'rgba(224, 182, 135, 1)',
862
- variant05: 'rgba(203, 158, 110, 1)',
863
- variant06: 'rgba(182, 134, 85, 1)',
864
- variant07: 'rgba(162, 109, 61, 1)',
865
- variant08: 'rgba(141, 85, 36, 1)'
866
- };
867
-
868
- const hair = {
869
- variant01: 'rgba(202, 177, 136, 1)',
870
- variant02: 'rgba(167, 137, 97, 1)',
871
- variant03: 'rgba(131, 98, 59, 1)',
872
- variant04: 'rgba(96, 58, 20, 1)',
873
- variant05: 'rgba(96, 48, 21, 1)',
874
- variant06: 'rgba(97, 38, 22, 1)',
875
- variant07: 'rgba(97, 28, 23, 1)',
876
- variant08: 'rgba(78, 26, 19, 1)',
877
- variant09: 'rgba(59, 23, 14, 1)',
878
- variant10: 'rgba(40, 21, 10, 1)'
879
- };
880
-
881
- const accessories = {
882
- gold01: 'rgba(218, 165, 32, 1)',
883
- gold02: 'rgba(255, 215, 0, 1)',
884
- gold03: 'rgba(250, 250, 210, 1)',
885
- silver01: 'rgba(211, 211, 211, 1)',
886
- silver02: 'rgba(169, 169, 169, 1)'
887
- };
888
-
889
- const mouth = {
890
- variant01: 'rgba(210, 153, 133, 1)',
891
- variant02: 'rgba(201, 130, 118, 1)',
892
- variant03: 'rgba(227, 93, 106, 1)',
893
- variant04: 'rgba(222, 15, 13, 1)'
894
- };
895
-
896
- const clothes = {
897
- yellow01: 'rgba(255, 238, 173, 1)',
898
- yellow02: 'rgba(255, 217, 105, 1)',
899
- yellow03: 'rgba(255, 196, 37, 1)',
900
- red01: 'rgba(255, 111, 105, 1)',
901
- red02: 'rgba(209, 17, 65, 1)',
902
- red03: 'rgba(174, 0, 1, 1)',
903
- blue01: 'rgba(91, 192, 222, 1)',
904
- blue02: 'rgba(66, 139, 202, 1)',
905
- blue03: 'rgba(3, 57, 108, 1)',
906
- green01: 'rgba(136, 216, 176, 1)',
907
- green02: 'rgba(68, 197, 133, 1)',
908
- green03: 'rgba(0, 177, 89, 1)'
909
- };
910
-
911
- const hat = {
912
- pink01: 'rgba(204, 97, 146, 1)',
913
- blue01: 'rgba(38, 99, 163, 1)',
914
- green01: 'rgba(61, 138, 107, 1)',
915
- purple01: 'rgba(97, 79, 138, 1)',
916
- red01: 'rgba(166, 33, 22, 1)',
917
- black01: 'rgba(46, 30, 5, 1)',
918
- gray01: 'rgba(152, 151, 137, 1)'
919
- };
920
-
921
- const glasses = {
922
- green01: 'rgba(95, 112, 92, 1)',
923
- blue01: 'rgba(67, 103, 125, 1)',
924
- red01: 'rgba(160, 75, 93, 1)',
925
- black01: 'rgba(75, 75, 75, 1)',
926
- black02: 'rgba(50, 50, 50, 1)',
927
- black03: 'rgba(25, 25, 25, 1)'
928
- };
929
-
930
- var colors = /*#__PURE__*/Object.freeze({
931
- __proto__: null,
932
- skin: skin,
933
- hair: hair,
934
- accessories: accessories,
935
- mouth: mouth,
936
- clothes: clothes,
937
- hat: hat,
938
- glasses: glasses
939
- });
940
-
941
- function pickColor(_ref) {
942
- var _colorCollection$grou;
943
-
944
- let {
945
- prng,
946
- group,
947
- values = []
948
- } = _ref;
949
- const colorCollection = colors;
950
-
951
- if (values.length === 0) {
952
- values.push('transparent');
953
- }
954
-
955
- const key = prng.pick(values);
956
- return {
957
- name: key,
958
- value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
959
- };
960
- }
961
-
962
- function getColors(_ref) {
963
- let {
964
- prng,
965
- options
966
- } = _ref;
967
- return {
968
- skin: pickColor({
969
- prng,
970
- group: 'skin',
971
- values: options.skinColor
972
- }),
973
- hair: pickColor({
974
- prng,
975
- group: 'hair',
976
- values: options.hairColor
977
- }),
978
- accessories: pickColor({
979
- prng,
980
- group: 'accessories',
981
- values: options.accessoriesColor
982
- }),
983
- mouth: pickColor({
984
- prng,
985
- group: 'mouth',
986
- values: options.mouthColor
987
- }),
988
- clothes: pickColor({
989
- prng,
990
- group: 'clothes',
991
- values: options.clothesColor
992
- }),
993
- hat: pickColor({
994
- prng,
995
- group: 'hat',
996
- values: options.hatColor
997
- }),
998
- glasses: pickColor({
999
- prng,
1000
- group: 'glasses',
1001
- values: options.glassesColor
1002
- })
1003
- };
1004
- }
1005
-
1006
- const dimensions = {
1007
- beard: {
1008
- width: 20,
1009
- height: 20
1010
- },
1011
- eyes: {
1012
- width: 20,
1013
- height: 20
1014
- },
1015
- eyebrows: {
1016
- width: 20,
1017
- height: 20
1018
- },
1019
- mouth: {
1020
- width: 20,
1021
- height: 20
1022
- },
1023
- hair: {
1024
- width: 20,
1025
- height: 20
1026
- },
1027
- accessories: {
1028
- width: 20,
1029
- height: 20
1030
- },
1031
- glasses: {
1032
- width: 20,
1033
- height: 20
1034
- },
1035
- hat: {
1036
- width: 20,
1037
- height: 20
1038
- },
1039
- clothing: {
1040
- width: 20,
1041
- height: 20
1042
- }
1043
- };
1044
-
1045
- const style = {
1046
- meta: {
1047
- title: 'Pixel Art',
1048
- creator: 'Plastic Jam',
1049
- license: {
1050
- name: 'MIT',
1051
- url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art/LICENSE'
1052
- }
1053
- },
1054
- schema: schema$1,
1055
- create: _ref => {
1056
- var _components$beard$val, _components$beard, _components$eyes$valu, _components$eyes, _components$eyebrows$, _components$eyebrows, _components$mouth$val, _components$mouth, _components$hair$valu, _components$hair, _components$accessori, _components$accessori2, _components$glasses$v, _components$glasses, _components$hat$value, _components$hat, _components$clothing$, _components$clothing;
1057
-
1058
- let {
1059
- prng,
1060
- options
1061
- } = _ref;
1062
- const components = getComponents({
1063
- prng,
1064
- options
1065
- });
1066
- const colors = getColors({
1067
- prng,
1068
- options
1069
- });
1070
- return {
1071
- attributes: {
1072
- viewBox: '0 0 20 20',
1073
- fill: 'none',
1074
- 'shape-rendering': 'auto'
1075
- },
1076
- body: "\n<path d=\"M6 4V3h8v1h1v1h1v3h1v3h-1v2h-1v1h-1v1h-2v1h4v1h1v3H3v-3h1v-1h4v-1H6v-1H5v-1H4v-2H3V8h1V5h1V4h1Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M6 3v1H5v1H4v3H3v3h1v2h1v1h1v1h8v-1h1v-1h1v-2h1V8h-1V5h-1V4h-1V3H6Z\" fill=\"#fff\" fill-opacity=\".1\"/>\n").concat((_components$beard$val = (_components$beard = components.beard) === null || _components$beard === void 0 ? void 0 : _components$beard.value(components, colors)) !== null && _components$beard$val !== void 0 ? _components$beard$val : '', "\n").concat((_components$eyes$valu = (_components$eyes = components.eyes) === null || _components$eyes === void 0 ? void 0 : _components$eyes.value(components, colors)) !== null && _components$eyes$valu !== void 0 ? _components$eyes$valu : '', "\n").concat((_components$eyebrows$ = (_components$eyebrows = components.eyebrows) === null || _components$eyebrows === void 0 ? void 0 : _components$eyebrows.value(components, colors)) !== null && _components$eyebrows$ !== void 0 ? _components$eyebrows$ : '', "\n").concat((_components$mouth$val = (_components$mouth = components.mouth) === null || _components$mouth === void 0 ? void 0 : _components$mouth.value(components, colors)) !== null && _components$mouth$val !== void 0 ? _components$mouth$val : '', "\n").concat((_components$hair$valu = (_components$hair = components.hair) === null || _components$hair === void 0 ? void 0 : _components$hair.value(components, colors)) !== null && _components$hair$valu !== void 0 ? _components$hair$valu : '', "\n").concat((_components$accessori = (_components$accessori2 = components.accessories) === null || _components$accessori2 === void 0 ? void 0 : _components$accessori2.value(components, colors)) !== null && _components$accessori !== void 0 ? _components$accessori : '', "\n").concat((_components$glasses$v = (_components$glasses = components.glasses) === null || _components$glasses === void 0 ? void 0 : _components$glasses.value(components, colors)) !== null && _components$glasses$v !== void 0 ? _components$glasses$v : '', "\n").concat((_components$hat$value = (_components$hat = components.hat) === null || _components$hat === void 0 ? void 0 : _components$hat.value(components, colors)) !== null && _components$hat$value !== void 0 ? _components$hat$value : '', "\n").concat((_components$clothing$ = (_components$clothing = components.clothing) === null || _components$clothing === void 0 ? void 0 : _components$clothing.value(components, colors)) !== null && _components$clothing$ !== void 0 ? _components$clothing$ : '', "\n")
1077
- };
1078
- },
1079
- preview: _ref2 => {
1080
- let {
1081
- prng,
1082
- options,
1083
- property
1084
- } = _ref2;
1085
- const componentGroup = property.toString();
1086
- const colorGroup = property.toString().replace(/Color$/, '');
1087
- const components = getComponents({
1088
- prng,
1089
- options
1090
- });
1091
- const colors = getColors({
1092
- prng,
1093
- options
1094
- });
1095
-
1096
- if (componentGroup in components) {
1097
- var _components$component, _components$component2;
1098
-
1099
- const {
1100
- width,
1101
- height
1102
- } = dimensions[componentGroup];
1103
- return {
1104
- attributes: {
1105
- viewBox: "0 0 ".concat(width, " ").concat(height),
1106
- fill: 'none',
1107
- 'shape-rendering': 'auto'
1108
- },
1109
- body: (_components$component = (_components$component2 = components[componentGroup]) === null || _components$component2 === void 0 ? void 0 : _components$component2.value(components, colors)) !== null && _components$component !== void 0 ? _components$component : ''
1110
- };
1111
- }
1112
-
1113
- if (colorGroup in colors) {
1114
- return {
1115
- attributes: {
1116
- viewBox: "0 0 1 1",
1117
- fill: 'none',
1118
- 'shape-rendering': 'auto'
1119
- },
1120
- body: "<rect width=\"1\" height=\"1\" fill=\"".concat(colors[colorGroup].value, "\" />")
1121
- };
1122
- }
1123
-
1124
- return undefined;
1125
- }
1126
- };
1127
-
1128
- /*!
1129
- * Pixel Art (@dicebear/pixel-art)
1130
- *
1131
- * Code licensed under MIT License.
1132
- * Copyright (c) 2021 Florian Körner
1133
- * Copyright (c) 2021 Plastic Jam
1134
- *
1135
- * Design "Pixel Art" by Plastic Jam licensed under MIT.
1136
- * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art/LICENSE
1137
- */
1138
- let {
1139
- create,
1140
- preview,
1141
- meta,
1142
- schema
1143
- } = style;
1144
-
1145
- export { create, meta, preview, schema };