@quartz-community/breadcrumbs 1.0.2 → 1.0.4

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,3 +1,6 @@
1
+ import { jsx, jsxs } from 'preact/jsx-runtime';
2
+ import 'preact';
3
+
1
4
  // node_modules/@quartz-community/utils/dist/lang.js
2
5
  function classNames(...classes) {
3
6
  return classes.filter(Boolean).join(" ");
@@ -37,29 +40,29 @@ function joinSegments(...args) {
37
40
  }
38
41
  return joined;
39
42
  }
40
- function endsWith(s2, suffix) {
41
- return s2 === suffix || s2.endsWith("/" + suffix);
43
+ function endsWith(s, suffix) {
44
+ return s === suffix || s.endsWith("/" + suffix);
42
45
  }
43
- function trimSuffix(s2, suffix) {
44
- if (endsWith(s2, suffix)) {
45
- s2 = s2.slice(0, -suffix.length);
46
+ function trimSuffix(s, suffix) {
47
+ if (endsWith(s, suffix)) {
48
+ s = s.slice(0, -suffix.length);
46
49
  }
47
- return s2;
50
+ return s;
48
51
  }
49
- function stripSlashes(s2, onlyStripPrefix) {
50
- if (s2.startsWith("/")) {
51
- s2 = s2.substring(1);
52
+ function stripSlashes(s, onlyStripPrefix) {
53
+ if (s.startsWith("/")) {
54
+ s = s.substring(1);
52
55
  }
53
- if (!onlyStripPrefix && s2.endsWith("/")) {
54
- s2 = s2.slice(0, -1);
56
+ if (!onlyStripPrefix && s.endsWith("/")) {
57
+ s = s.slice(0, -1);
55
58
  }
56
- return s2;
59
+ return s;
57
60
  }
58
- function getFileExtension(s2) {
59
- return s2.match(/\.[A-Za-z0-9]+$/)?.[0];
61
+ function getFileExtension(s) {
62
+ return s.match(/\.[A-Za-z0-9]+$/)?.[0];
60
63
  }
61
64
  function pathToRoot(slug2) {
62
- let rootPath = slug2.split("/").filter((x2) => x2 !== "").slice(0, -1).map((_2) => "..").join("/");
65
+ let rootPath = slug2.split("/").filter((x) => x !== "").slice(0, -1).map((_) => "..").join("/");
63
66
  if (rootPath.length === 0) {
64
67
  rootPath = ".";
65
68
  }
@@ -69,34 +72,277 @@ function resolveRelative(current, target) {
69
72
  const res = joinSegments(pathToRoot(current), simplifySlug(target));
70
73
  return res;
71
74
  }
72
- function slugifyPath(s2) {
73
- return s2.split("/").map(
75
+ var SLUG_OPTIONS = /* @__PURE__ */ Symbol.for("@quartz-community/utils/slugOptions");
76
+ function getSlugOptions() {
77
+ return globalThis[SLUG_OPTIONS] ?? {};
78
+ }
79
+ function stripDiacritics(s) {
80
+ return s.normalize("NFD").replace(/[\u0300-\u036f]/g, "").normalize("NFC");
81
+ }
82
+ function slugifyPath(s) {
83
+ const normalized = s.normalize("NFC");
84
+ return (getSlugOptions().stripDiacritics ? stripDiacritics(normalized) : normalized).split("/").map(
74
85
  (segment) => segment.replace(/\s/g, "-").replace(/&/g, "-and-").replace(/%/g, "-percent").replace(/\?/g, "").replace(/#/g, "").replace(/[<>:"|*]/g, "").toLowerCase()
75
86
  ).join("/").replace(/\/$/, "");
76
87
  }
77
- function _sluggify(s2) {
78
- return slugifyPath(s2);
79
- }
80
- var l;
81
- l = { __e: function(n2, l2, u3, t2) {
82
- for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
83
- if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
84
- } catch (l3) {
85
- n2 = l3;
86
- }
87
- throw n2;
88
- } }, "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Math.random().toString(8);
89
-
90
- // node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
91
- var f2 = 0;
92
- function u2(e2, t2, n2, o2, i2, u3) {
93
- t2 || (t2 = {});
94
- var a2, c2, p2 = t2;
95
- if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
96
- var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f2, __i: -1, __u: 0, __source: i2, __self: u3 };
97
- if ("function" == typeof e2 && (a2 = e2.defaultProps)) for (c2 in a2) void 0 === p2[c2] && (p2[c2] = a2[c2]);
98
- return l.vnode && l.vnode(l2), l2;
88
+ function _sluggify(s) {
89
+ return slugifyPath(s);
99
90
  }
91
+ var __create = Object.create;
92
+ var __defProp = Object.defineProperty;
93
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
94
+ var __getOwnPropNames = Object.getOwnPropertyNames;
95
+ var __getProtoOf = Object.getPrototypeOf;
96
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
97
+ var __commonJS = (cb, mod) => function __require() {
98
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
99
+ };
100
+ var __export = (target, all) => {
101
+ for (var name2 in all)
102
+ __defProp(target, name2, { get: all[name2], enumerable: true });
103
+ };
104
+ var __copyProps = (to, from, except, desc) => {
105
+ if (from && typeof from === "object" || typeof from === "function") {
106
+ for (let key of __getOwnPropNames(from))
107
+ if (!__hasOwnProp.call(to, key) && key !== except)
108
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
109
+ }
110
+ return to;
111
+ };
112
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
113
+ // If the importer is in node compatibility mode or this is not an ESM
114
+ // file that has been converted to a CommonJS file using a Babel-
115
+ // compatible transform (i.e. "__esModule" has not been set), then set
116
+ // "default" to the CommonJS "module.exports" for node compatibility.
117
+ __defProp(target, "default", { value: mod, enumerable: true }),
118
+ mod
119
+ ));
120
+ var require_cjs = __commonJS({
121
+ "node_modules/inline-style-parser/cjs/index.js"(exports, module) {
122
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
123
+ var NEWLINE_REGEX = /\n/g;
124
+ var WHITESPACE_REGEX = /^\s*/;
125
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
126
+ var COLON_REGEX = /^:\s*/;
127
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
128
+ var SEMICOLON_REGEX = /^[;\s]*/;
129
+ var TRIM_REGEX = /^\s+|\s+$/g;
130
+ var NEWLINE = "\n";
131
+ var FORWARD_SLASH = "/";
132
+ var ASTERISK = "*";
133
+ var EMPTY_STRING = "";
134
+ var TYPE_COMMENT = "comment";
135
+ var TYPE_DECLARATION = "declaration";
136
+ function index2(style, options) {
137
+ if (typeof style !== "string") {
138
+ throw new TypeError("First argument must be a string");
139
+ }
140
+ if (!style) return [];
141
+ options = options || {};
142
+ var lineno = 1;
143
+ var column = 1;
144
+ function updatePosition(str) {
145
+ var lines = str.match(NEWLINE_REGEX);
146
+ if (lines) lineno += lines.length;
147
+ var i = str.lastIndexOf(NEWLINE);
148
+ column = ~i ? str.length - i : column + str.length;
149
+ }
150
+ function position3() {
151
+ var start2 = { line: lineno, column };
152
+ return function(node) {
153
+ node.position = new Position(start2);
154
+ whitespace2();
155
+ return node;
156
+ };
157
+ }
158
+ function Position(start2) {
159
+ this.start = start2;
160
+ this.end = { line: lineno, column };
161
+ this.source = options.source;
162
+ }
163
+ Position.prototype.content = style;
164
+ function error(msg) {
165
+ var err = new Error(
166
+ options.source + ":" + lineno + ":" + column + ": " + msg
167
+ );
168
+ err.reason = msg;
169
+ err.filename = options.source;
170
+ err.line = lineno;
171
+ err.column = column;
172
+ err.source = style;
173
+ if (options.silent) ;
174
+ else {
175
+ throw err;
176
+ }
177
+ }
178
+ function match(re2) {
179
+ var m = re2.exec(style);
180
+ if (!m) return;
181
+ var str = m[0];
182
+ updatePosition(str);
183
+ style = style.slice(str.length);
184
+ return m;
185
+ }
186
+ function whitespace2() {
187
+ match(WHITESPACE_REGEX);
188
+ }
189
+ function comments(rules) {
190
+ var c;
191
+ rules = rules || [];
192
+ while (c = comment()) {
193
+ if (c !== false) {
194
+ rules.push(c);
195
+ }
196
+ }
197
+ return rules;
198
+ }
199
+ function comment() {
200
+ var pos = position3();
201
+ if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
202
+ var i = 2;
203
+ while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) {
204
+ ++i;
205
+ }
206
+ i += 2;
207
+ if (EMPTY_STRING === style.charAt(i - 1)) {
208
+ return error("End of comment missing");
209
+ }
210
+ var str = style.slice(2, i - 2);
211
+ column += 2;
212
+ updatePosition(str);
213
+ style = style.slice(i);
214
+ column += 2;
215
+ return pos({
216
+ type: TYPE_COMMENT,
217
+ comment: str
218
+ });
219
+ }
220
+ function declaration() {
221
+ var pos = position3();
222
+ var prop = match(PROPERTY_REGEX);
223
+ if (!prop) return;
224
+ comment();
225
+ if (!match(COLON_REGEX)) return error("property missing ':'");
226
+ var val = match(VALUE_REGEX);
227
+ var ret = pos({
228
+ type: TYPE_DECLARATION,
229
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
230
+ value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
231
+ });
232
+ match(SEMICOLON_REGEX);
233
+ return ret;
234
+ }
235
+ function declarations() {
236
+ var decls = [];
237
+ comments(decls);
238
+ var decl;
239
+ while (decl = declaration()) {
240
+ if (decl !== false) {
241
+ decls.push(decl);
242
+ comments(decls);
243
+ }
244
+ }
245
+ return decls;
246
+ }
247
+ whitespace2();
248
+ return declarations();
249
+ }
250
+ function trim(str) {
251
+ return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
252
+ }
253
+ module.exports = index2;
254
+ }
255
+ });
256
+ var require_cjs2 = __commonJS({
257
+ "node_modules/style-to-object/cjs/index.js"(exports) {
258
+ var __importDefault = exports && exports.__importDefault || function(mod) {
259
+ return mod && mod.__esModule ? mod : { "default": mod };
260
+ };
261
+ Object.defineProperty(exports, "__esModule", { value: true });
262
+ exports.default = StyleToObject;
263
+ var inline_style_parser_1 = __importDefault(require_cjs());
264
+ function StyleToObject(style, iterator) {
265
+ let styleObject = null;
266
+ if (!style || typeof style !== "string") {
267
+ return styleObject;
268
+ }
269
+ const declarations = (0, inline_style_parser_1.default)(style);
270
+ const hasIterator = typeof iterator === "function";
271
+ declarations.forEach((declaration) => {
272
+ if (declaration.type !== "declaration") {
273
+ return;
274
+ }
275
+ const { property, value } = declaration;
276
+ if (hasIterator) {
277
+ iterator(property, value, declaration);
278
+ } else if (value) {
279
+ styleObject = styleObject || {};
280
+ styleObject[property] = value;
281
+ }
282
+ });
283
+ return styleObject;
284
+ }
285
+ }
286
+ });
287
+ var require_utilities = __commonJS({
288
+ "node_modules/style-to-js/cjs/utilities.js"(exports) {
289
+ Object.defineProperty(exports, "__esModule", { value: true });
290
+ exports.camelCase = void 0;
291
+ var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
292
+ var HYPHEN_REGEX = /-([a-z])/g;
293
+ var NO_HYPHEN_REGEX = /^[^-]+$/;
294
+ var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
295
+ var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
296
+ var skipCamelCase = function(property) {
297
+ return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
298
+ };
299
+ var capitalize2 = function(match, character) {
300
+ return character.toUpperCase();
301
+ };
302
+ var trimHyphen = function(match, prefix) {
303
+ return "".concat(prefix, "-");
304
+ };
305
+ var camelCase = function(property, options) {
306
+ if (options === void 0) {
307
+ options = {};
308
+ }
309
+ if (skipCamelCase(property)) {
310
+ return property;
311
+ }
312
+ property = property.toLowerCase();
313
+ if (options.reactCompat) {
314
+ property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
315
+ } else {
316
+ property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
317
+ }
318
+ return property.replace(HYPHEN_REGEX, capitalize2);
319
+ };
320
+ exports.camelCase = camelCase;
321
+ }
322
+ });
323
+ var require_cjs3 = __commonJS({
324
+ "node_modules/style-to-js/cjs/index.js"(exports, module) {
325
+ var __importDefault = exports && exports.__importDefault || function(mod) {
326
+ return mod && mod.__esModule ? mod : { "default": mod };
327
+ };
328
+ var style_to_object_1 = __importDefault(require_cjs2());
329
+ var utilities_1 = require_utilities();
330
+ function StyleToJS(style, options) {
331
+ var output = {};
332
+ if (!style || typeof style !== "string") {
333
+ return output;
334
+ }
335
+ (0, style_to_object_1.default)(style, function(property, value) {
336
+ if (property && value) {
337
+ output[(0, utilities_1.camelCase)(property, options)] = value;
338
+ }
339
+ });
340
+ return output;
341
+ }
342
+ StyleToJS.default = StyleToJS;
343
+ module.exports = StyleToJS;
344
+ }
345
+ });
100
346
  function joinSegments2(...args) {
101
347
  if (args.length === 0) {
102
348
  return "";
@@ -112,15 +358,1336 @@ function joinSegments2(...args) {
112
358
  }
113
359
  return joined;
114
360
  }
115
- function stripSlashes2(s2, onlyStripPrefix) {
116
- if (s2.startsWith("/")) {
117
- s2 = s2.substring(1);
361
+ function stripSlashes2(s, onlyStripPrefix) {
362
+ if (s.startsWith("/")) {
363
+ s = s.substring(1);
118
364
  }
119
- if (s2.endsWith("/")) {
120
- s2 = s2.slice(0, -1);
365
+ if (s.endsWith("/")) {
366
+ s = s.slice(0, -1);
121
367
  }
122
- return s2;
368
+ return s;
123
369
  }
370
+ var Schema = class {
371
+ /**
372
+ * @param {SchemaType['property']} property
373
+ * Property.
374
+ * @param {SchemaType['normal']} normal
375
+ * Normal.
376
+ * @param {Space | undefined} [space]
377
+ * Space.
378
+ * @returns
379
+ * Schema.
380
+ */
381
+ constructor(property, normal, space) {
382
+ this.normal = normal;
383
+ this.property = property;
384
+ if (space) {
385
+ this.space = space;
386
+ }
387
+ }
388
+ };
389
+ Schema.prototype.normal = {};
390
+ Schema.prototype.property = {};
391
+ Schema.prototype.space = void 0;
392
+ function merge(definitions, space) {
393
+ const property = {};
394
+ const normal = {};
395
+ for (const definition of definitions) {
396
+ Object.assign(property, definition.property);
397
+ Object.assign(normal, definition.normal);
398
+ }
399
+ return new Schema(property, normal, space);
400
+ }
401
+ function normalize(value) {
402
+ return value.toLowerCase();
403
+ }
404
+ var Info = class {
405
+ /**
406
+ * @param {string} property
407
+ * Property.
408
+ * @param {string} attribute
409
+ * Attribute.
410
+ * @returns
411
+ * Info.
412
+ */
413
+ constructor(property, attribute) {
414
+ this.attribute = attribute;
415
+ this.property = property;
416
+ }
417
+ };
418
+ Info.prototype.attribute = "";
419
+ Info.prototype.booleanish = false;
420
+ Info.prototype.boolean = false;
421
+ Info.prototype.commaOrSpaceSeparated = false;
422
+ Info.prototype.commaSeparated = false;
423
+ Info.prototype.defined = false;
424
+ Info.prototype.mustUseProperty = false;
425
+ Info.prototype.number = false;
426
+ Info.prototype.overloadedBoolean = false;
427
+ Info.prototype.property = "";
428
+ Info.prototype.spaceSeparated = false;
429
+ Info.prototype.space = void 0;
430
+ var types_exports = {};
431
+ __export(types_exports, {
432
+ boolean: () => boolean,
433
+ booleanish: () => booleanish,
434
+ commaOrSpaceSeparated: () => commaOrSpaceSeparated,
435
+ commaSeparated: () => commaSeparated,
436
+ number: () => number,
437
+ overloadedBoolean: () => overloadedBoolean,
438
+ spaceSeparated: () => spaceSeparated
439
+ });
440
+ var powers = 0;
441
+ var boolean = increment();
442
+ var booleanish = increment();
443
+ var overloadedBoolean = increment();
444
+ var number = increment();
445
+ var spaceSeparated = increment();
446
+ var commaSeparated = increment();
447
+ var commaOrSpaceSeparated = increment();
448
+ function increment() {
449
+ return 2 ** ++powers;
450
+ }
451
+ var checks = (
452
+ /** @type {ReadonlyArray<keyof typeof types>} */
453
+ Object.keys(types_exports)
454
+ );
455
+ var DefinedInfo = class extends Info {
456
+ /**
457
+ * @constructor
458
+ * @param {string} property
459
+ * Property.
460
+ * @param {string} attribute
461
+ * Attribute.
462
+ * @param {number | null | undefined} [mask]
463
+ * Mask.
464
+ * @param {Space | undefined} [space]
465
+ * Space.
466
+ * @returns
467
+ * Info.
468
+ */
469
+ constructor(property, attribute, mask, space) {
470
+ let index2 = -1;
471
+ super(property, attribute);
472
+ mark(this, "space", space);
473
+ if (typeof mask === "number") {
474
+ while (++index2 < checks.length) {
475
+ const check = checks[index2];
476
+ mark(this, checks[index2], (mask & types_exports[check]) === types_exports[check]);
477
+ }
478
+ }
479
+ }
480
+ };
481
+ DefinedInfo.prototype.defined = true;
482
+ function mark(values, key, value) {
483
+ if (value) {
484
+ values[key] = value;
485
+ }
486
+ }
487
+ function create(definition) {
488
+ const properties = {};
489
+ const normals = {};
490
+ for (const [property, value] of Object.entries(definition.properties)) {
491
+ const info = new DefinedInfo(
492
+ property,
493
+ definition.transform(definition.attributes || {}, property),
494
+ value,
495
+ definition.space
496
+ );
497
+ if (definition.mustUseProperty && definition.mustUseProperty.includes(property)) {
498
+ info.mustUseProperty = true;
499
+ }
500
+ properties[property] = info;
501
+ normals[normalize(property)] = property;
502
+ normals[normalize(info.attribute)] = property;
503
+ }
504
+ return new Schema(properties, normals, definition.space);
505
+ }
506
+ var aria = create({
507
+ properties: {
508
+ ariaActiveDescendant: null,
509
+ ariaAtomic: booleanish,
510
+ ariaAutoComplete: null,
511
+ ariaBusy: booleanish,
512
+ ariaChecked: booleanish,
513
+ ariaColCount: number,
514
+ ariaColIndex: number,
515
+ ariaColSpan: number,
516
+ ariaControls: spaceSeparated,
517
+ ariaCurrent: null,
518
+ ariaDescribedBy: spaceSeparated,
519
+ ariaDetails: null,
520
+ ariaDisabled: booleanish,
521
+ ariaDropEffect: spaceSeparated,
522
+ ariaErrorMessage: null,
523
+ ariaExpanded: booleanish,
524
+ ariaFlowTo: spaceSeparated,
525
+ ariaGrabbed: booleanish,
526
+ ariaHasPopup: null,
527
+ ariaHidden: booleanish,
528
+ ariaInvalid: null,
529
+ ariaKeyShortcuts: null,
530
+ ariaLabel: null,
531
+ ariaLabelledBy: spaceSeparated,
532
+ ariaLevel: number,
533
+ ariaLive: null,
534
+ ariaModal: booleanish,
535
+ ariaMultiLine: booleanish,
536
+ ariaMultiSelectable: booleanish,
537
+ ariaOrientation: null,
538
+ ariaOwns: spaceSeparated,
539
+ ariaPlaceholder: null,
540
+ ariaPosInSet: number,
541
+ ariaPressed: booleanish,
542
+ ariaReadOnly: booleanish,
543
+ ariaRelevant: null,
544
+ ariaRequired: booleanish,
545
+ ariaRoleDescription: spaceSeparated,
546
+ ariaRowCount: number,
547
+ ariaRowIndex: number,
548
+ ariaRowSpan: number,
549
+ ariaSelected: booleanish,
550
+ ariaSetSize: number,
551
+ ariaSort: null,
552
+ ariaValueMax: number,
553
+ ariaValueMin: number,
554
+ ariaValueNow: number,
555
+ ariaValueText: null,
556
+ role: null
557
+ },
558
+ transform(_, property) {
559
+ return property === "role" ? property : "aria-" + property.slice(4).toLowerCase();
560
+ }
561
+ });
562
+ function caseSensitiveTransform(attributes, attribute) {
563
+ return attribute in attributes ? attributes[attribute] : attribute;
564
+ }
565
+ function caseInsensitiveTransform(attributes, property) {
566
+ return caseSensitiveTransform(attributes, property.toLowerCase());
567
+ }
568
+ var html = create({
569
+ attributes: {
570
+ acceptcharset: "accept-charset",
571
+ classname: "class",
572
+ htmlfor: "for",
573
+ httpequiv: "http-equiv"
574
+ },
575
+ mustUseProperty: ["checked", "multiple", "muted", "selected"],
576
+ properties: {
577
+ // Standard Properties.
578
+ abbr: null,
579
+ accept: commaSeparated,
580
+ acceptCharset: spaceSeparated,
581
+ accessKey: spaceSeparated,
582
+ action: null,
583
+ allow: null,
584
+ allowFullScreen: boolean,
585
+ allowPaymentRequest: boolean,
586
+ allowUserMedia: boolean,
587
+ alpha: boolean,
588
+ alt: null,
589
+ as: null,
590
+ async: boolean,
591
+ autoCapitalize: null,
592
+ autoComplete: spaceSeparated,
593
+ autoFocus: boolean,
594
+ autoPlay: boolean,
595
+ blocking: spaceSeparated,
596
+ capture: null,
597
+ charSet: null,
598
+ checked: boolean,
599
+ cite: null,
600
+ className: spaceSeparated,
601
+ closedBy: null,
602
+ colorSpace: null,
603
+ cols: number,
604
+ colSpan: number,
605
+ command: null,
606
+ commandFor: null,
607
+ content: null,
608
+ contentEditable: booleanish,
609
+ controls: boolean,
610
+ controlsList: spaceSeparated,
611
+ coords: number | commaSeparated,
612
+ crossOrigin: null,
613
+ data: null,
614
+ dateTime: null,
615
+ decoding: null,
616
+ default: boolean,
617
+ defer: boolean,
618
+ dir: null,
619
+ dirName: null,
620
+ disabled: boolean,
621
+ download: overloadedBoolean,
622
+ draggable: booleanish,
623
+ encType: null,
624
+ enterKeyHint: null,
625
+ fetchPriority: null,
626
+ form: null,
627
+ formAction: null,
628
+ formEncType: null,
629
+ formMethod: null,
630
+ formNoValidate: boolean,
631
+ formTarget: null,
632
+ headers: spaceSeparated,
633
+ height: number,
634
+ hidden: overloadedBoolean,
635
+ high: number,
636
+ href: null,
637
+ hrefLang: null,
638
+ htmlFor: spaceSeparated,
639
+ httpEquiv: spaceSeparated,
640
+ id: null,
641
+ imageSizes: null,
642
+ imageSrcSet: null,
643
+ inert: boolean,
644
+ inputMode: null,
645
+ integrity: null,
646
+ is: null,
647
+ isMap: boolean,
648
+ itemId: null,
649
+ itemProp: spaceSeparated,
650
+ itemRef: spaceSeparated,
651
+ itemScope: boolean,
652
+ itemType: spaceSeparated,
653
+ kind: null,
654
+ label: null,
655
+ lang: null,
656
+ language: null,
657
+ list: null,
658
+ loading: null,
659
+ loop: boolean,
660
+ low: number,
661
+ manifest: null,
662
+ max: null,
663
+ maxLength: number,
664
+ media: null,
665
+ method: null,
666
+ min: null,
667
+ minLength: number,
668
+ multiple: boolean,
669
+ muted: boolean,
670
+ name: null,
671
+ nonce: null,
672
+ noModule: boolean,
673
+ noValidate: boolean,
674
+ onAbort: null,
675
+ onAfterPrint: null,
676
+ onAuxClick: null,
677
+ onBeforeMatch: null,
678
+ onBeforePrint: null,
679
+ onBeforeToggle: null,
680
+ onBeforeUnload: null,
681
+ onBlur: null,
682
+ onCancel: null,
683
+ onCanPlay: null,
684
+ onCanPlayThrough: null,
685
+ onChange: null,
686
+ onClick: null,
687
+ onClose: null,
688
+ onContextLost: null,
689
+ onContextMenu: null,
690
+ onContextRestored: null,
691
+ onCopy: null,
692
+ onCueChange: null,
693
+ onCut: null,
694
+ onDblClick: null,
695
+ onDrag: null,
696
+ onDragEnd: null,
697
+ onDragEnter: null,
698
+ onDragExit: null,
699
+ onDragLeave: null,
700
+ onDragOver: null,
701
+ onDragStart: null,
702
+ onDrop: null,
703
+ onDurationChange: null,
704
+ onEmptied: null,
705
+ onEnded: null,
706
+ onError: null,
707
+ onFocus: null,
708
+ onFormData: null,
709
+ onHashChange: null,
710
+ onInput: null,
711
+ onInvalid: null,
712
+ onKeyDown: null,
713
+ onKeyPress: null,
714
+ onKeyUp: null,
715
+ onLanguageChange: null,
716
+ onLoad: null,
717
+ onLoadedData: null,
718
+ onLoadedMetadata: null,
719
+ onLoadEnd: null,
720
+ onLoadStart: null,
721
+ onMessage: null,
722
+ onMessageError: null,
723
+ onMouseDown: null,
724
+ onMouseEnter: null,
725
+ onMouseLeave: null,
726
+ onMouseMove: null,
727
+ onMouseOut: null,
728
+ onMouseOver: null,
729
+ onMouseUp: null,
730
+ onOffline: null,
731
+ onOnline: null,
732
+ onPageHide: null,
733
+ onPageShow: null,
734
+ onPaste: null,
735
+ onPause: null,
736
+ onPlay: null,
737
+ onPlaying: null,
738
+ onPopState: null,
739
+ onProgress: null,
740
+ onRateChange: null,
741
+ onRejectionHandled: null,
742
+ onReset: null,
743
+ onResize: null,
744
+ onScroll: null,
745
+ onScrollEnd: null,
746
+ onSecurityPolicyViolation: null,
747
+ onSeeked: null,
748
+ onSeeking: null,
749
+ onSelect: null,
750
+ onSlotChange: null,
751
+ onStalled: null,
752
+ onStorage: null,
753
+ onSubmit: null,
754
+ onSuspend: null,
755
+ onTimeUpdate: null,
756
+ onToggle: null,
757
+ onUnhandledRejection: null,
758
+ onUnload: null,
759
+ onVolumeChange: null,
760
+ onWaiting: null,
761
+ onWheel: null,
762
+ open: boolean,
763
+ optimum: number,
764
+ pattern: null,
765
+ ping: spaceSeparated,
766
+ placeholder: null,
767
+ playsInline: boolean,
768
+ popover: null,
769
+ popoverTarget: null,
770
+ popoverTargetAction: null,
771
+ poster: null,
772
+ preload: null,
773
+ readOnly: boolean,
774
+ referrerPolicy: null,
775
+ rel: spaceSeparated,
776
+ required: boolean,
777
+ reversed: boolean,
778
+ rows: number,
779
+ rowSpan: number,
780
+ sandbox: spaceSeparated,
781
+ scope: null,
782
+ scoped: boolean,
783
+ seamless: boolean,
784
+ selected: boolean,
785
+ shadowRootClonable: boolean,
786
+ shadowRootCustomElementRegistry: boolean,
787
+ shadowRootDelegatesFocus: boolean,
788
+ shadowRootMode: null,
789
+ shadowRootSerializable: boolean,
790
+ shape: null,
791
+ size: number,
792
+ sizes: null,
793
+ slot: null,
794
+ span: number,
795
+ spellCheck: booleanish,
796
+ src: null,
797
+ srcDoc: null,
798
+ srcLang: null,
799
+ srcSet: null,
800
+ start: number,
801
+ step: null,
802
+ style: null,
803
+ tabIndex: number,
804
+ target: null,
805
+ title: null,
806
+ translate: null,
807
+ type: null,
808
+ typeMustMatch: boolean,
809
+ useMap: null,
810
+ value: booleanish,
811
+ width: number,
812
+ wrap: null,
813
+ writingSuggestions: null,
814
+ // Legacy.
815
+ // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
816
+ align: null,
817
+ // Several. Use CSS `text-align` instead,
818
+ aLink: null,
819
+ // `<body>`. Use CSS `a:active {color}` instead
820
+ archive: spaceSeparated,
821
+ // `<object>`. List of URIs to archives
822
+ axis: null,
823
+ // `<td>` and `<th>`. Use `scope` on `<th>`
824
+ background: null,
825
+ // `<body>`. Use CSS `background-image` instead
826
+ bgColor: null,
827
+ // `<body>` and table elements. Use CSS `background-color` instead
828
+ border: number,
829
+ // `<table>`. Use CSS `border-width` instead,
830
+ borderColor: null,
831
+ // `<table>`. Use CSS `border-color` instead,
832
+ bottomMargin: number,
833
+ // `<body>`
834
+ cellPadding: null,
835
+ // `<table>`
836
+ cellSpacing: null,
837
+ // `<table>`
838
+ char: null,
839
+ // Several table elements. When `align=char`, sets the character to align on
840
+ charOff: null,
841
+ // Several table elements. When `char`, offsets the alignment
842
+ classId: null,
843
+ // `<object>`
844
+ clear: null,
845
+ // `<br>`. Use CSS `clear` instead
846
+ code: null,
847
+ // `<object>`
848
+ codeBase: null,
849
+ // `<object>`
850
+ codeType: null,
851
+ // `<object>`
852
+ color: null,
853
+ // `<font>` and `<hr>`. Use CSS instead
854
+ compact: boolean,
855
+ // Lists. Use CSS to reduce space between items instead
856
+ declare: boolean,
857
+ // `<object>`
858
+ event: null,
859
+ // `<script>`
860
+ face: null,
861
+ // `<font>`. Use CSS instead
862
+ frame: null,
863
+ // `<table>`
864
+ frameBorder: null,
865
+ // `<iframe>`. Use CSS `border` instead
866
+ hSpace: number,
867
+ // `<img>` and `<object>`
868
+ leftMargin: number,
869
+ // `<body>`
870
+ link: null,
871
+ // `<body>`. Use CSS `a:link {color: *}` instead
872
+ longDesc: null,
873
+ // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
874
+ lowSrc: null,
875
+ // `<img>`. Use a `<picture>`
876
+ marginHeight: number,
877
+ // `<body>`
878
+ marginWidth: number,
879
+ // `<body>`
880
+ noResize: boolean,
881
+ // `<frame>`
882
+ noHref: boolean,
883
+ // `<area>`. Use no href instead of an explicit `nohref`
884
+ noShade: boolean,
885
+ // `<hr>`. Use background-color and height instead of borders
886
+ noWrap: boolean,
887
+ // `<td>` and `<th>`
888
+ object: null,
889
+ // `<applet>`
890
+ profile: null,
891
+ // `<head>`
892
+ prompt: null,
893
+ // `<isindex>`
894
+ rev: null,
895
+ // `<link>`
896
+ rightMargin: number,
897
+ // `<body>`
898
+ rules: null,
899
+ // `<table>`
900
+ scheme: null,
901
+ // `<meta>`
902
+ scrolling: booleanish,
903
+ // `<frame>`. Use overflow in the child context
904
+ standby: null,
905
+ // `<object>`
906
+ summary: null,
907
+ // `<table>`
908
+ text: null,
909
+ // `<body>`. Use CSS `color` instead
910
+ topMargin: number,
911
+ // `<body>`
912
+ valueType: null,
913
+ // `<param>`
914
+ version: null,
915
+ // `<html>`. Use a doctype.
916
+ vAlign: null,
917
+ // Several. Use CSS `vertical-align` instead
918
+ vLink: null,
919
+ // `<body>`. Use CSS `a:visited {color}` instead
920
+ vSpace: number,
921
+ // `<img>` and `<object>`
922
+ // Non-standard Properties.
923
+ allowTransparency: null,
924
+ autoCorrect: null,
925
+ autoSave: null,
926
+ credentialless: boolean,
927
+ disablePictureInPicture: boolean,
928
+ disableRemotePlayback: boolean,
929
+ exportParts: commaSeparated,
930
+ part: spaceSeparated,
931
+ prefix: null,
932
+ property: null,
933
+ results: number,
934
+ security: null,
935
+ unselectable: null
936
+ },
937
+ space: "html",
938
+ transform: caseInsensitiveTransform
939
+ });
940
+ var svg = create({
941
+ attributes: {
942
+ accentHeight: "accent-height",
943
+ alignmentBaseline: "alignment-baseline",
944
+ arabicForm: "arabic-form",
945
+ baselineShift: "baseline-shift",
946
+ capHeight: "cap-height",
947
+ className: "class",
948
+ clipPath: "clip-path",
949
+ clipRule: "clip-rule",
950
+ colorInterpolation: "color-interpolation",
951
+ colorInterpolationFilters: "color-interpolation-filters",
952
+ colorProfile: "color-profile",
953
+ colorRendering: "color-rendering",
954
+ crossOrigin: "crossorigin",
955
+ dataType: "datatype",
956
+ dominantBaseline: "dominant-baseline",
957
+ enableBackground: "enable-background",
958
+ fillOpacity: "fill-opacity",
959
+ fillRule: "fill-rule",
960
+ floodColor: "flood-color",
961
+ floodOpacity: "flood-opacity",
962
+ fontFamily: "font-family",
963
+ fontSize: "font-size",
964
+ fontSizeAdjust: "font-size-adjust",
965
+ fontStretch: "font-stretch",
966
+ fontStyle: "font-style",
967
+ fontVariant: "font-variant",
968
+ fontWeight: "font-weight",
969
+ glyphName: "glyph-name",
970
+ glyphOrientationHorizontal: "glyph-orientation-horizontal",
971
+ glyphOrientationVertical: "glyph-orientation-vertical",
972
+ hrefLang: "hreflang",
973
+ horizAdvX: "horiz-adv-x",
974
+ horizOriginX: "horiz-origin-x",
975
+ horizOriginY: "horiz-origin-y",
976
+ imageRendering: "image-rendering",
977
+ letterSpacing: "letter-spacing",
978
+ lightingColor: "lighting-color",
979
+ markerEnd: "marker-end",
980
+ markerMid: "marker-mid",
981
+ markerStart: "marker-start",
982
+ maskType: "mask-type",
983
+ navDown: "nav-down",
984
+ navDownLeft: "nav-down-left",
985
+ navDownRight: "nav-down-right",
986
+ navLeft: "nav-left",
987
+ navNext: "nav-next",
988
+ navPrev: "nav-prev",
989
+ navRight: "nav-right",
990
+ navUp: "nav-up",
991
+ navUpLeft: "nav-up-left",
992
+ navUpRight: "nav-up-right",
993
+ onAbort: "onabort",
994
+ onActivate: "onactivate",
995
+ onAfterPrint: "onafterprint",
996
+ onBeforePrint: "onbeforeprint",
997
+ onBegin: "onbegin",
998
+ onCancel: "oncancel",
999
+ onCanPlay: "oncanplay",
1000
+ onCanPlayThrough: "oncanplaythrough",
1001
+ onChange: "onchange",
1002
+ onClick: "onclick",
1003
+ onClose: "onclose",
1004
+ onCopy: "oncopy",
1005
+ onCueChange: "oncuechange",
1006
+ onCut: "oncut",
1007
+ onDblClick: "ondblclick",
1008
+ onDrag: "ondrag",
1009
+ onDragEnd: "ondragend",
1010
+ onDragEnter: "ondragenter",
1011
+ onDragExit: "ondragexit",
1012
+ onDragLeave: "ondragleave",
1013
+ onDragOver: "ondragover",
1014
+ onDragStart: "ondragstart",
1015
+ onDrop: "ondrop",
1016
+ onDurationChange: "ondurationchange",
1017
+ onEmptied: "onemptied",
1018
+ onEnd: "onend",
1019
+ onEnded: "onended",
1020
+ onError: "onerror",
1021
+ onFocus: "onfocus",
1022
+ onFocusIn: "onfocusin",
1023
+ onFocusOut: "onfocusout",
1024
+ onHashChange: "onhashchange",
1025
+ onInput: "oninput",
1026
+ onInvalid: "oninvalid",
1027
+ onKeyDown: "onkeydown",
1028
+ onKeyPress: "onkeypress",
1029
+ onKeyUp: "onkeyup",
1030
+ onLoad: "onload",
1031
+ onLoadedData: "onloadeddata",
1032
+ onLoadedMetadata: "onloadedmetadata",
1033
+ onLoadStart: "onloadstart",
1034
+ onMessage: "onmessage",
1035
+ onMouseDown: "onmousedown",
1036
+ onMouseEnter: "onmouseenter",
1037
+ onMouseLeave: "onmouseleave",
1038
+ onMouseMove: "onmousemove",
1039
+ onMouseOut: "onmouseout",
1040
+ onMouseOver: "onmouseover",
1041
+ onMouseUp: "onmouseup",
1042
+ onMouseWheel: "onmousewheel",
1043
+ onOffline: "onoffline",
1044
+ onOnline: "ononline",
1045
+ onPageHide: "onpagehide",
1046
+ onPageShow: "onpageshow",
1047
+ onPaste: "onpaste",
1048
+ onPause: "onpause",
1049
+ onPlay: "onplay",
1050
+ onPlaying: "onplaying",
1051
+ onPopState: "onpopstate",
1052
+ onProgress: "onprogress",
1053
+ onRateChange: "onratechange",
1054
+ onRepeat: "onrepeat",
1055
+ onReset: "onreset",
1056
+ onResize: "onresize",
1057
+ onScroll: "onscroll",
1058
+ onSeeked: "onseeked",
1059
+ onSeeking: "onseeking",
1060
+ onSelect: "onselect",
1061
+ onShow: "onshow",
1062
+ onStalled: "onstalled",
1063
+ onStorage: "onstorage",
1064
+ onSubmit: "onsubmit",
1065
+ onSuspend: "onsuspend",
1066
+ onTimeUpdate: "ontimeupdate",
1067
+ onToggle: "ontoggle",
1068
+ onUnload: "onunload",
1069
+ onVolumeChange: "onvolumechange",
1070
+ onWaiting: "onwaiting",
1071
+ onZoom: "onzoom",
1072
+ overlinePosition: "overline-position",
1073
+ overlineThickness: "overline-thickness",
1074
+ paintOrder: "paint-order",
1075
+ panose1: "panose-1",
1076
+ pointerEvents: "pointer-events",
1077
+ referrerPolicy: "referrerpolicy",
1078
+ renderingIntent: "rendering-intent",
1079
+ shapeRendering: "shape-rendering",
1080
+ stopColor: "stop-color",
1081
+ stopOpacity: "stop-opacity",
1082
+ strikethroughPosition: "strikethrough-position",
1083
+ strikethroughThickness: "strikethrough-thickness",
1084
+ strokeDashArray: "stroke-dasharray",
1085
+ strokeDashOffset: "stroke-dashoffset",
1086
+ strokeLineCap: "stroke-linecap",
1087
+ strokeLineJoin: "stroke-linejoin",
1088
+ strokeMiterLimit: "stroke-miterlimit",
1089
+ strokeOpacity: "stroke-opacity",
1090
+ strokeWidth: "stroke-width",
1091
+ tabIndex: "tabindex",
1092
+ textAnchor: "text-anchor",
1093
+ textDecoration: "text-decoration",
1094
+ textRendering: "text-rendering",
1095
+ transformOrigin: "transform-origin",
1096
+ typeOf: "typeof",
1097
+ underlinePosition: "underline-position",
1098
+ underlineThickness: "underline-thickness",
1099
+ unicodeBidi: "unicode-bidi",
1100
+ unicodeRange: "unicode-range",
1101
+ unitsPerEm: "units-per-em",
1102
+ vAlphabetic: "v-alphabetic",
1103
+ vHanging: "v-hanging",
1104
+ vIdeographic: "v-ideographic",
1105
+ vMathematical: "v-mathematical",
1106
+ vectorEffect: "vector-effect",
1107
+ vertAdvY: "vert-adv-y",
1108
+ vertOriginX: "vert-origin-x",
1109
+ vertOriginY: "vert-origin-y",
1110
+ wordSpacing: "word-spacing",
1111
+ writingMode: "writing-mode",
1112
+ xHeight: "x-height",
1113
+ // These were camelcased in Tiny. Now lowercased in SVG 2
1114
+ playbackOrder: "playbackorder",
1115
+ timelineBegin: "timelinebegin"
1116
+ },
1117
+ properties: {
1118
+ about: commaOrSpaceSeparated,
1119
+ accentHeight: number,
1120
+ accumulate: null,
1121
+ additive: null,
1122
+ alignmentBaseline: null,
1123
+ alphabetic: number,
1124
+ amplitude: number,
1125
+ arabicForm: null,
1126
+ ascent: number,
1127
+ attributeName: null,
1128
+ attributeType: null,
1129
+ azimuth: number,
1130
+ bandwidth: null,
1131
+ baselineShift: null,
1132
+ baseFrequency: null,
1133
+ baseProfile: null,
1134
+ bbox: null,
1135
+ begin: null,
1136
+ bias: number,
1137
+ by: null,
1138
+ calcMode: null,
1139
+ capHeight: number,
1140
+ className: spaceSeparated,
1141
+ clip: null,
1142
+ clipPath: null,
1143
+ clipPathUnits: null,
1144
+ clipRule: null,
1145
+ color: null,
1146
+ colorInterpolation: null,
1147
+ colorInterpolationFilters: null,
1148
+ colorProfile: null,
1149
+ colorRendering: null,
1150
+ content: null,
1151
+ contentScriptType: null,
1152
+ contentStyleType: null,
1153
+ crossOrigin: null,
1154
+ cursor: null,
1155
+ cx: null,
1156
+ cy: null,
1157
+ d: null,
1158
+ dataType: null,
1159
+ defaultAction: null,
1160
+ descent: number,
1161
+ diffuseConstant: number,
1162
+ direction: null,
1163
+ display: null,
1164
+ dur: null,
1165
+ divisor: number,
1166
+ dominantBaseline: null,
1167
+ download: boolean,
1168
+ dx: null,
1169
+ dy: null,
1170
+ edgeMode: null,
1171
+ editable: null,
1172
+ elevation: number,
1173
+ enableBackground: null,
1174
+ end: null,
1175
+ event: null,
1176
+ exponent: number,
1177
+ externalResourcesRequired: null,
1178
+ fill: null,
1179
+ fillOpacity: number,
1180
+ fillRule: null,
1181
+ filter: null,
1182
+ filterRes: null,
1183
+ filterUnits: null,
1184
+ floodColor: null,
1185
+ floodOpacity: null,
1186
+ focusable: null,
1187
+ focusHighlight: null,
1188
+ fontFamily: null,
1189
+ fontSize: null,
1190
+ fontSizeAdjust: null,
1191
+ fontStretch: null,
1192
+ fontStyle: null,
1193
+ fontVariant: null,
1194
+ fontWeight: null,
1195
+ format: null,
1196
+ fr: null,
1197
+ from: null,
1198
+ fx: null,
1199
+ fy: null,
1200
+ g1: commaSeparated,
1201
+ g2: commaSeparated,
1202
+ glyphName: commaSeparated,
1203
+ glyphOrientationHorizontal: null,
1204
+ glyphOrientationVertical: null,
1205
+ glyphRef: null,
1206
+ gradientTransform: null,
1207
+ gradientUnits: null,
1208
+ handler: null,
1209
+ hanging: number,
1210
+ hatchContentUnits: null,
1211
+ hatchUnits: null,
1212
+ height: null,
1213
+ href: null,
1214
+ hrefLang: null,
1215
+ horizAdvX: number,
1216
+ horizOriginX: number,
1217
+ horizOriginY: number,
1218
+ id: null,
1219
+ ideographic: number,
1220
+ imageRendering: null,
1221
+ initialVisibility: null,
1222
+ in: null,
1223
+ in2: null,
1224
+ intercept: number,
1225
+ k: number,
1226
+ k1: number,
1227
+ k2: number,
1228
+ k3: number,
1229
+ k4: number,
1230
+ kernelMatrix: commaOrSpaceSeparated,
1231
+ kernelUnitLength: null,
1232
+ keyPoints: null,
1233
+ // SEMI_COLON_SEPARATED
1234
+ keySplines: null,
1235
+ // SEMI_COLON_SEPARATED
1236
+ keyTimes: null,
1237
+ // SEMI_COLON_SEPARATED
1238
+ kerning: null,
1239
+ lang: null,
1240
+ lengthAdjust: null,
1241
+ letterSpacing: null,
1242
+ lightingColor: null,
1243
+ limitingConeAngle: number,
1244
+ local: null,
1245
+ markerEnd: null,
1246
+ markerMid: null,
1247
+ markerStart: null,
1248
+ markerHeight: null,
1249
+ markerUnits: null,
1250
+ markerWidth: null,
1251
+ mask: null,
1252
+ maskContentUnits: null,
1253
+ maskType: null,
1254
+ maskUnits: null,
1255
+ mathematical: null,
1256
+ max: null,
1257
+ media: null,
1258
+ mediaCharacterEncoding: null,
1259
+ mediaContentEncodings: null,
1260
+ mediaSize: number,
1261
+ mediaTime: null,
1262
+ method: null,
1263
+ min: null,
1264
+ mode: null,
1265
+ name: null,
1266
+ navDown: null,
1267
+ navDownLeft: null,
1268
+ navDownRight: null,
1269
+ navLeft: null,
1270
+ navNext: null,
1271
+ navPrev: null,
1272
+ navRight: null,
1273
+ navUp: null,
1274
+ navUpLeft: null,
1275
+ navUpRight: null,
1276
+ numOctaves: null,
1277
+ observer: null,
1278
+ offset: null,
1279
+ onAbort: null,
1280
+ onActivate: null,
1281
+ onAfterPrint: null,
1282
+ onBeforePrint: null,
1283
+ onBegin: null,
1284
+ onCancel: null,
1285
+ onCanPlay: null,
1286
+ onCanPlayThrough: null,
1287
+ onChange: null,
1288
+ onClick: null,
1289
+ onClose: null,
1290
+ onCopy: null,
1291
+ onCueChange: null,
1292
+ onCut: null,
1293
+ onDblClick: null,
1294
+ onDrag: null,
1295
+ onDragEnd: null,
1296
+ onDragEnter: null,
1297
+ onDragExit: null,
1298
+ onDragLeave: null,
1299
+ onDragOver: null,
1300
+ onDragStart: null,
1301
+ onDrop: null,
1302
+ onDurationChange: null,
1303
+ onEmptied: null,
1304
+ onEnd: null,
1305
+ onEnded: null,
1306
+ onError: null,
1307
+ onFocus: null,
1308
+ onFocusIn: null,
1309
+ onFocusOut: null,
1310
+ onHashChange: null,
1311
+ onInput: null,
1312
+ onInvalid: null,
1313
+ onKeyDown: null,
1314
+ onKeyPress: null,
1315
+ onKeyUp: null,
1316
+ onLoad: null,
1317
+ onLoadedData: null,
1318
+ onLoadedMetadata: null,
1319
+ onLoadStart: null,
1320
+ onMessage: null,
1321
+ onMouseDown: null,
1322
+ onMouseEnter: null,
1323
+ onMouseLeave: null,
1324
+ onMouseMove: null,
1325
+ onMouseOut: null,
1326
+ onMouseOver: null,
1327
+ onMouseUp: null,
1328
+ onMouseWheel: null,
1329
+ onOffline: null,
1330
+ onOnline: null,
1331
+ onPageHide: null,
1332
+ onPageShow: null,
1333
+ onPaste: null,
1334
+ onPause: null,
1335
+ onPlay: null,
1336
+ onPlaying: null,
1337
+ onPopState: null,
1338
+ onProgress: null,
1339
+ onRateChange: null,
1340
+ onRepeat: null,
1341
+ onReset: null,
1342
+ onResize: null,
1343
+ onScroll: null,
1344
+ onSeeked: null,
1345
+ onSeeking: null,
1346
+ onSelect: null,
1347
+ onShow: null,
1348
+ onStalled: null,
1349
+ onStorage: null,
1350
+ onSubmit: null,
1351
+ onSuspend: null,
1352
+ onTimeUpdate: null,
1353
+ onToggle: null,
1354
+ onUnload: null,
1355
+ onVolumeChange: null,
1356
+ onWaiting: null,
1357
+ onZoom: null,
1358
+ opacity: null,
1359
+ operator: null,
1360
+ order: null,
1361
+ orient: null,
1362
+ orientation: null,
1363
+ origin: null,
1364
+ overflow: null,
1365
+ overlay: null,
1366
+ overlinePosition: number,
1367
+ overlineThickness: number,
1368
+ paintOrder: null,
1369
+ panose1: null,
1370
+ path: null,
1371
+ pathLength: number,
1372
+ patternContentUnits: null,
1373
+ patternTransform: null,
1374
+ patternUnits: null,
1375
+ phase: null,
1376
+ ping: spaceSeparated,
1377
+ pitch: null,
1378
+ playbackOrder: null,
1379
+ pointerEvents: null,
1380
+ points: null,
1381
+ pointsAtX: number,
1382
+ pointsAtY: number,
1383
+ pointsAtZ: number,
1384
+ preserveAlpha: null,
1385
+ preserveAspectRatio: null,
1386
+ primitiveUnits: null,
1387
+ propagate: null,
1388
+ property: commaOrSpaceSeparated,
1389
+ r: null,
1390
+ radius: null,
1391
+ referrerPolicy: null,
1392
+ refX: null,
1393
+ refY: null,
1394
+ rel: commaOrSpaceSeparated,
1395
+ rev: commaOrSpaceSeparated,
1396
+ renderingIntent: null,
1397
+ repeatCount: null,
1398
+ repeatDur: null,
1399
+ requiredExtensions: commaOrSpaceSeparated,
1400
+ requiredFeatures: commaOrSpaceSeparated,
1401
+ requiredFonts: commaOrSpaceSeparated,
1402
+ requiredFormats: commaOrSpaceSeparated,
1403
+ resource: null,
1404
+ restart: null,
1405
+ result: null,
1406
+ rotate: null,
1407
+ rx: null,
1408
+ ry: null,
1409
+ scale: null,
1410
+ seed: null,
1411
+ shapeRendering: null,
1412
+ side: null,
1413
+ slope: null,
1414
+ snapshotTime: null,
1415
+ specularConstant: number,
1416
+ specularExponent: number,
1417
+ spreadMethod: null,
1418
+ spacing: null,
1419
+ startOffset: null,
1420
+ stdDeviation: null,
1421
+ stemh: null,
1422
+ stemv: null,
1423
+ stitchTiles: null,
1424
+ stopColor: null,
1425
+ stopOpacity: null,
1426
+ strikethroughPosition: number,
1427
+ strikethroughThickness: number,
1428
+ string: null,
1429
+ stroke: null,
1430
+ strokeDashArray: commaOrSpaceSeparated,
1431
+ strokeDashOffset: null,
1432
+ strokeLineCap: null,
1433
+ strokeLineJoin: null,
1434
+ strokeMiterLimit: number,
1435
+ strokeOpacity: number,
1436
+ strokeWidth: null,
1437
+ style: null,
1438
+ surfaceScale: number,
1439
+ syncBehavior: null,
1440
+ syncBehaviorDefault: null,
1441
+ syncMaster: null,
1442
+ syncTolerance: null,
1443
+ syncToleranceDefault: null,
1444
+ systemLanguage: commaOrSpaceSeparated,
1445
+ tabIndex: number,
1446
+ tableValues: null,
1447
+ target: null,
1448
+ targetX: number,
1449
+ targetY: number,
1450
+ textAnchor: null,
1451
+ textDecoration: null,
1452
+ textRendering: null,
1453
+ textLength: null,
1454
+ timelineBegin: null,
1455
+ title: null,
1456
+ transformBehavior: null,
1457
+ type: null,
1458
+ typeOf: commaOrSpaceSeparated,
1459
+ to: null,
1460
+ transform: null,
1461
+ transformOrigin: null,
1462
+ u1: null,
1463
+ u2: null,
1464
+ underlinePosition: number,
1465
+ underlineThickness: number,
1466
+ unicode: null,
1467
+ unicodeBidi: null,
1468
+ unicodeRange: null,
1469
+ unitsPerEm: number,
1470
+ values: null,
1471
+ vAlphabetic: number,
1472
+ vMathematical: number,
1473
+ vectorEffect: null,
1474
+ vHanging: number,
1475
+ vIdeographic: number,
1476
+ version: null,
1477
+ vertAdvY: number,
1478
+ vertOriginX: number,
1479
+ vertOriginY: number,
1480
+ viewBox: null,
1481
+ viewTarget: null,
1482
+ visibility: null,
1483
+ width: null,
1484
+ widths: null,
1485
+ wordSpacing: null,
1486
+ writingMode: null,
1487
+ x: null,
1488
+ x1: null,
1489
+ x2: null,
1490
+ xChannelSelector: null,
1491
+ xHeight: number,
1492
+ y: null,
1493
+ y1: null,
1494
+ y2: null,
1495
+ yChannelSelector: null,
1496
+ z: null,
1497
+ zoomAndPan: null
1498
+ },
1499
+ space: "svg",
1500
+ transform: caseSensitiveTransform
1501
+ });
1502
+ var xlink = create({
1503
+ properties: {
1504
+ xLinkActuate: null,
1505
+ xLinkArcRole: null,
1506
+ xLinkHref: null,
1507
+ xLinkRole: null,
1508
+ xLinkShow: null,
1509
+ xLinkTitle: null,
1510
+ xLinkType: null
1511
+ },
1512
+ space: "xlink",
1513
+ transform(_, property) {
1514
+ return "xlink:" + property.slice(5).toLowerCase();
1515
+ }
1516
+ });
1517
+ var xmlns = create({
1518
+ attributes: { xmlnsxlink: "xmlns:xlink" },
1519
+ properties: { xmlnsXLink: null, xmlns: null },
1520
+ space: "xmlns",
1521
+ transform: caseInsensitiveTransform
1522
+ });
1523
+ var xml = create({
1524
+ properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1525
+ space: "xml",
1526
+ transform(_, property) {
1527
+ return "xml:" + property.slice(3).toLowerCase();
1528
+ }
1529
+ });
1530
+ merge([aria, html, xlink, xmlns, xml], "html");
1531
+ merge([aria, svg, xlink, xmlns, xml], "svg");
1532
+ __toESM(require_cjs3());
1533
+ function stringifyPosition(value) {
1534
+ if (!value || typeof value !== "object") {
1535
+ return "";
1536
+ }
1537
+ if ("position" in value || "type" in value) {
1538
+ return position2(value.position);
1539
+ }
1540
+ if ("start" in value || "end" in value) {
1541
+ return position2(value);
1542
+ }
1543
+ if ("line" in value || "column" in value) {
1544
+ return point2(value);
1545
+ }
1546
+ return "";
1547
+ }
1548
+ function point2(point3) {
1549
+ return index(point3 && point3.line) + ":" + index(point3 && point3.column);
1550
+ }
1551
+ function position2(pos) {
1552
+ return point2(pos && pos.start) + "-" + point2(pos && pos.end);
1553
+ }
1554
+ function index(value) {
1555
+ return value && typeof value === "number" ? value : 1;
1556
+ }
1557
+ var VFileMessage = class extends Error {
1558
+ /**
1559
+ * Create a message for `reason`.
1560
+ *
1561
+ * > 🪦 **Note**: also has obsolete signatures.
1562
+ *
1563
+ * @overload
1564
+ * @param {string} reason
1565
+ * @param {Options | null | undefined} [options]
1566
+ * @returns
1567
+ *
1568
+ * @overload
1569
+ * @param {string} reason
1570
+ * @param {Node | NodeLike | null | undefined} parent
1571
+ * @param {string | null | undefined} [origin]
1572
+ * @returns
1573
+ *
1574
+ * @overload
1575
+ * @param {string} reason
1576
+ * @param {Point | Position | null | undefined} place
1577
+ * @param {string | null | undefined} [origin]
1578
+ * @returns
1579
+ *
1580
+ * @overload
1581
+ * @param {string} reason
1582
+ * @param {string | null | undefined} [origin]
1583
+ * @returns
1584
+ *
1585
+ * @overload
1586
+ * @param {Error | VFileMessage} cause
1587
+ * @param {Node | NodeLike | null | undefined} parent
1588
+ * @param {string | null | undefined} [origin]
1589
+ * @returns
1590
+ *
1591
+ * @overload
1592
+ * @param {Error | VFileMessage} cause
1593
+ * @param {Point | Position | null | undefined} place
1594
+ * @param {string | null | undefined} [origin]
1595
+ * @returns
1596
+ *
1597
+ * @overload
1598
+ * @param {Error | VFileMessage} cause
1599
+ * @param {string | null | undefined} [origin]
1600
+ * @returns
1601
+ *
1602
+ * @param {Error | VFileMessage | string} causeOrReason
1603
+ * Reason for message, should use markdown.
1604
+ * @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
1605
+ * Configuration (optional).
1606
+ * @param {string | null | undefined} [origin]
1607
+ * Place in code where the message originates (example:
1608
+ * `'my-package:my-rule'` or `'my-rule'`).
1609
+ * @returns
1610
+ * Instance of `VFileMessage`.
1611
+ */
1612
+ // eslint-disable-next-line complexity
1613
+ constructor(causeOrReason, optionsOrParentOrPlace, origin) {
1614
+ super();
1615
+ if (typeof optionsOrParentOrPlace === "string") {
1616
+ origin = optionsOrParentOrPlace;
1617
+ optionsOrParentOrPlace = void 0;
1618
+ }
1619
+ let reason = "";
1620
+ let options = {};
1621
+ let legacyCause = false;
1622
+ if (optionsOrParentOrPlace) {
1623
+ if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) {
1624
+ options = { place: optionsOrParentOrPlace };
1625
+ } else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) {
1626
+ options = { place: optionsOrParentOrPlace };
1627
+ } else if ("type" in optionsOrParentOrPlace) {
1628
+ options = {
1629
+ ancestors: [optionsOrParentOrPlace],
1630
+ place: optionsOrParentOrPlace.position
1631
+ };
1632
+ } else {
1633
+ options = { ...optionsOrParentOrPlace };
1634
+ }
1635
+ }
1636
+ if (typeof causeOrReason === "string") {
1637
+ reason = causeOrReason;
1638
+ } else if (!options.cause && causeOrReason) {
1639
+ legacyCause = true;
1640
+ reason = causeOrReason.message;
1641
+ options.cause = causeOrReason;
1642
+ }
1643
+ if (!options.ruleId && !options.source && typeof origin === "string") {
1644
+ const index2 = origin.indexOf(":");
1645
+ if (index2 === -1) {
1646
+ options.ruleId = origin;
1647
+ } else {
1648
+ options.source = origin.slice(0, index2);
1649
+ options.ruleId = origin.slice(index2 + 1);
1650
+ }
1651
+ }
1652
+ if (!options.place && options.ancestors && options.ancestors) {
1653
+ const parent = options.ancestors[options.ancestors.length - 1];
1654
+ if (parent) {
1655
+ options.place = parent.position;
1656
+ }
1657
+ }
1658
+ const start2 = options.place && "start" in options.place ? options.place.start : options.place;
1659
+ this.ancestors = options.ancestors || void 0;
1660
+ this.cause = options.cause || void 0;
1661
+ this.column = start2 ? start2.column : void 0;
1662
+ this.fatal = void 0;
1663
+ this.file = "";
1664
+ this.message = reason;
1665
+ this.line = start2 ? start2.line : void 0;
1666
+ this.name = stringifyPosition(options.place) || "1:1";
1667
+ this.place = options.place || void 0;
1668
+ this.reason = this.message;
1669
+ this.ruleId = options.ruleId || void 0;
1670
+ this.source = options.source || void 0;
1671
+ this.stack = legacyCause && options.cause && typeof options.cause.stack === "string" ? options.cause.stack : "";
1672
+ this.actual = void 0;
1673
+ this.expected = void 0;
1674
+ this.note = void 0;
1675
+ this.url = void 0;
1676
+ }
1677
+ };
1678
+ VFileMessage.prototype.file = "";
1679
+ VFileMessage.prototype.name = "";
1680
+ VFileMessage.prototype.reason = "";
1681
+ VFileMessage.prototype.message = "";
1682
+ VFileMessage.prototype.stack = "";
1683
+ VFileMessage.prototype.column = void 0;
1684
+ VFileMessage.prototype.line = void 0;
1685
+ VFileMessage.prototype.ancestors = void 0;
1686
+ VFileMessage.prototype.cause = void 0;
1687
+ VFileMessage.prototype.fatal = void 0;
1688
+ VFileMessage.prototype.place = void 0;
1689
+ VFileMessage.prototype.ruleId = void 0;
1690
+ VFileMessage.prototype.source = void 0;
124
1691
 
125
1692
  // src/util/fileTrie.ts
126
1693
  var FileTrieNode = class _FileTrieNode {
@@ -180,7 +1747,7 @@ var FileTrieNode = class _FileTrieNode {
180
1747
  this.makeChild(path, file);
181
1748
  }
182
1749
  } else if (path.length > 1) {
183
- const child = this.children.find((c2) => c2.slugSegment === segment) ?? this.makeChild(path, void 0);
1750
+ const child = this.children.find((c) => c.slugSegment === segment) ?? this.makeChild(path, void 0);
184
1751
  const fileParts = file.filePath.split("/");
185
1752
  const hint = fileParts.at(-path.length);
186
1753
  if (hint) {
@@ -197,13 +1764,13 @@ var FileTrieNode = class _FileTrieNode {
197
1764
  if (path.length === 0 || path.length === 1 && path[0] === "index") {
198
1765
  return this;
199
1766
  }
200
- return this.children.find((c2) => c2.slugSegment === path[0])?.findNode(path.slice(1));
1767
+ return this.children.find((c) => c.slugSegment === path[0])?.findNode(path.slice(1));
201
1768
  }
202
1769
  ancestryChain(path) {
203
1770
  if (path.length === 0 || path.length === 1 && path[0] === "index") {
204
1771
  return [this];
205
1772
  }
206
- const child = this.children.find((c2) => c2.slugSegment === path[0]);
1773
+ const child = this.children.find((c) => c.slugSegment === path[0]);
207
1774
  if (!child) {
208
1775
  return void 0;
209
1776
  }
@@ -223,7 +1790,7 @@ var FileTrieNode = class _FileTrieNode {
223
1790
  }
224
1791
  sort(sortFn) {
225
1792
  this.children = this.children.sort(sortFn);
226
- this.children.forEach((e2) => e2.sort(sortFn));
1793
+ this.children.forEach((e) => e.sort(sortFn));
227
1794
  }
228
1795
  };
229
1796
  function trieFromAllFiles(allFiles) {
@@ -248,8 +1815,6 @@ function pagePosition(file) {
248
1815
 
249
1816
  // src/components/styles/breadcrumbs.scss
250
1817
  var breadcrumbs_default = ".breadcrumb-container {\n margin: 0;\n margin-top: 0.75rem;\n padding: 0;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.breadcrumb-element p {\n margin: 0;\n margin-left: 0.5rem;\n padding: 0;\n line-height: normal;\n}\n.breadcrumb-element {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n}";
251
-
252
- // src/components/Breadcrumbs.tsx
253
1818
  var defaultOptions = {
254
1819
  spacerSymbol: "\u276F",
255
1820
  rootName: "Home",
@@ -294,9 +1859,9 @@ var Breadcrumbs_default = ((opts) => {
294
1859
  if (!options.showCurrentPage) {
295
1860
  crumbs.pop();
296
1861
  }
297
- return /* @__PURE__ */ u2("nav", { class: classNames(displayClass, "breadcrumb-container"), "aria-label": "breadcrumbs", children: crumbs.map((crumb, index) => /* @__PURE__ */ u2("div", { class: "breadcrumb-element", children: [
298
- /* @__PURE__ */ u2("a", { href: crumb.path, children: crumb.displayName }),
299
- index !== crumbs.length - 1 && /* @__PURE__ */ u2("p", { children: ` ${options.spacerSymbol} ` })
1862
+ return /* @__PURE__ */ jsx("nav", { class: classNames(displayClass, "breadcrumb-container"), "aria-label": "breadcrumbs", children: crumbs.map((crumb, index2) => /* @__PURE__ */ jsxs("div", { class: "breadcrumb-element", children: [
1863
+ /* @__PURE__ */ jsx("a", { href: crumb.path, children: crumb.displayName }),
1864
+ index2 !== crumbs.length - 1 && /* @__PURE__ */ jsx("p", { children: ` ${options.spacerSymbol} ` })
300
1865
  ] })) });
301
1866
  };
302
1867
  Breadcrumbs.css = breadcrumbs_default;