attrs-in-props 3.2.3 → 3.2.7

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.
@@ -0,0 +1,1037 @@
1
+ "use strict";
2
+ var AttrsInProps = (() => {
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // index.js
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ ARIA_ROLES: () => ARIA_ROLES,
25
+ DOM_EVENTS: () => DOM_EVENTS,
26
+ HTML_ATTRIBUTES: () => HTML_ATTRIBUTES,
27
+ checkAttributeByTagName: () => checkAttributeByTagName,
28
+ checkEventFunctions: () => checkEventFunctions,
29
+ executeAttr: () => executeAttr,
30
+ filterAttributesByTagName: () => filterAttributesByTagName
31
+ });
32
+
33
+ // ../utils/dist/esm/types.js
34
+ var isString = (arg) => typeof arg === "string";
35
+ var isDefined = (arg) => arg !== void 0;
36
+
37
+ // index.js
38
+ var ARIA_ROLES = [
39
+ "alert",
40
+ "alertdialog",
41
+ "application",
42
+ "article",
43
+ "banner",
44
+ "button",
45
+ "cell",
46
+ "checkbox",
47
+ "columnheader",
48
+ "combobox",
49
+ "complementary",
50
+ "contentinfo",
51
+ "definition",
52
+ "dialog",
53
+ "directory",
54
+ "document",
55
+ "feed",
56
+ "figure",
57
+ "form",
58
+ "grid",
59
+ "gridcell",
60
+ "group",
61
+ "heading",
62
+ "img",
63
+ "link",
64
+ "list",
65
+ "listbox",
66
+ "listitem",
67
+ "log",
68
+ "main",
69
+ "marquee",
70
+ "math",
71
+ "menu",
72
+ "menubar",
73
+ "menuitem",
74
+ "menuitemcheckbox",
75
+ "menuitemradio",
76
+ "navigation",
77
+ "none",
78
+ "note",
79
+ "option",
80
+ "presentation",
81
+ "progressbar",
82
+ "radio",
83
+ "radiogroup",
84
+ "region",
85
+ "row",
86
+ "rowgroup",
87
+ "rowheader",
88
+ "scrollbar",
89
+ "search",
90
+ "searchbox",
91
+ "separator",
92
+ "slider",
93
+ "spinbutton",
94
+ "status",
95
+ "switch",
96
+ "tab",
97
+ "table",
98
+ "tablist",
99
+ "tabpanel",
100
+ "term",
101
+ "textbox",
102
+ "timer",
103
+ "toolbar",
104
+ "tooltip",
105
+ "tree",
106
+ "treegrid",
107
+ "treeitem"
108
+ ];
109
+ var HTML_ATTRIBUTES = {
110
+ default: [
111
+ "accesskey",
112
+ "autofocus",
113
+ "class",
114
+ "contenteditable",
115
+ "contextmenu",
116
+ "dir",
117
+ "draggable",
118
+ "hidden",
119
+ "id",
120
+ "lang",
121
+ "part",
122
+ "placeholder",
123
+ "slot",
124
+ "spellcheck",
125
+ "style",
126
+ "tabindex",
127
+ "title",
128
+ "translate",
129
+ "inert",
130
+ "radiogroup",
131
+ "role",
132
+ "about",
133
+ "datatype",
134
+ "inlist",
135
+ "prefix",
136
+ "property",
137
+ "resource",
138
+ "typeof",
139
+ "vocab",
140
+ "autocapitalize",
141
+ "autocorrect",
142
+ "autosave",
143
+ "color",
144
+ "itemprop",
145
+ "itemscope",
146
+ "itemtype",
147
+ "itemid",
148
+ "itemref",
149
+ "results",
150
+ "security",
151
+ "unselectable",
152
+ "is"
153
+ ],
154
+ a: [
155
+ "accesskey",
156
+ "charset",
157
+ "coords",
158
+ "download",
159
+ "href",
160
+ "hreflang",
161
+ "name",
162
+ "rel",
163
+ "rev",
164
+ "shape",
165
+ "target",
166
+ "type"
167
+ ],
168
+ aria: [
169
+ "aria-activedescendant",
170
+ "aria-atomic",
171
+ "aria-autocomplete",
172
+ "aria-checked",
173
+ "aria-colcount",
174
+ "aria-colindex",
175
+ "aria-colspan",
176
+ "aria-controls",
177
+ "aria-current",
178
+ "aria-describedby",
179
+ "aria-details",
180
+ "aria-dropeffect",
181
+ "aria-errormessage",
182
+ "aria-expanded",
183
+ "aria-flowto",
184
+ "aria-grabbed",
185
+ "aria-haspopup",
186
+ "aria-hidden",
187
+ "aria-invalid",
188
+ "aria-keyshortcuts",
189
+ "aria-label",
190
+ "aria-labelledby",
191
+ "aria-level",
192
+ "aria-live",
193
+ "aria-modal",
194
+ "aria-multiline",
195
+ "aria-multiselectable",
196
+ "aria-orientation",
197
+ "aria-owns",
198
+ "aria-placeholder",
199
+ "aria-posinset",
200
+ "aria-pressed",
201
+ "aria-readonly",
202
+ "aria-relevant",
203
+ "aria-required",
204
+ "aria-roledescription",
205
+ "aria-rowcount",
206
+ "aria-rowindex",
207
+ "aria-rowspan",
208
+ "aria-selected",
209
+ "aria-setsize",
210
+ "aria-sort",
211
+ "aria-valuemax",
212
+ "aria-valuemin",
213
+ "aria-valuenow",
214
+ "aria-valuetext"
215
+ ],
216
+ anchor: [
217
+ "download",
218
+ "href",
219
+ "hreflang",
220
+ "media",
221
+ "ping",
222
+ "rel",
223
+ "target",
224
+ "type",
225
+ "referrerpolicy"
226
+ ],
227
+ audio: [
228
+ "autoplay",
229
+ "controls",
230
+ "crossorigin",
231
+ "loop",
232
+ "muted",
233
+ "preload",
234
+ "src"
235
+ ],
236
+ area: [
237
+ "alt",
238
+ "coords",
239
+ "download",
240
+ "href",
241
+ "hreflang",
242
+ "media",
243
+ "referrerpolicy",
244
+ "rel",
245
+ "shape",
246
+ "target",
247
+ "ping"
248
+ ],
249
+ base: [
250
+ "href",
251
+ "target"
252
+ ],
253
+ blockquote: [
254
+ "cite"
255
+ ],
256
+ button: [
257
+ "disabled",
258
+ "form",
259
+ "formaction",
260
+ "formenctype",
261
+ "formmethod",
262
+ "formnovalidate",
263
+ "formtarget",
264
+ "name",
265
+ "type",
266
+ "value"
267
+ ],
268
+ canvas: [
269
+ "height",
270
+ "width"
271
+ ],
272
+ col: [
273
+ "span",
274
+ "width"
275
+ ],
276
+ colgroup: [
277
+ "span"
278
+ ],
279
+ data: [
280
+ "value"
281
+ ],
282
+ details: [
283
+ "open"
284
+ ],
285
+ del: [
286
+ "cite",
287
+ "datetime"
288
+ ],
289
+ dialog: [
290
+ "open"
291
+ ],
292
+ embed: [
293
+ "height",
294
+ "src",
295
+ "type",
296
+ "width"
297
+ ],
298
+ fieldset: [
299
+ "disabled",
300
+ "form",
301
+ "name"
302
+ ],
303
+ form: [
304
+ "acceptcharset",
305
+ "action",
306
+ "autocomplete",
307
+ "enctype",
308
+ "method",
309
+ "name",
310
+ "novalidate",
311
+ "target",
312
+ "rel"
313
+ ],
314
+ html: [
315
+ "manifest"
316
+ ],
317
+ iframe: [
318
+ "allow",
319
+ "allowfullscreen",
320
+ "allowtransparency",
321
+ "frameborder",
322
+ "height",
323
+ "loading",
324
+ "marginheight",
325
+ "marginwidth",
326
+ "mozallowfullscreen",
327
+ "name",
328
+ "referrerpolicy",
329
+ "sandbox",
330
+ "scrolling",
331
+ "seamless",
332
+ "src",
333
+ "srcdoc",
334
+ "webkitallowfullscreen",
335
+ "width"
336
+ ],
337
+ img: [
338
+ "alt",
339
+ "crossorigin",
340
+ "decoding",
341
+ "height",
342
+ "ismap",
343
+ "loading",
344
+ "referrerpolicy",
345
+ "sizes",
346
+ "src",
347
+ "srcset",
348
+ "usemap",
349
+ "width"
350
+ ],
351
+ ins: [
352
+ "cite",
353
+ "datetime"
354
+ ],
355
+ input: [
356
+ "accept",
357
+ "alt",
358
+ "autocomplete",
359
+ "capture",
360
+ "checked",
361
+ "crossorigin",
362
+ "disabled",
363
+ "form",
364
+ "formaction",
365
+ "formenctype",
366
+ "formmethod",
367
+ "formnovalidate",
368
+ "formtarget",
369
+ "height",
370
+ "indeterminate",
371
+ "list",
372
+ "max",
373
+ "maxlength",
374
+ "min",
375
+ "minlength",
376
+ "multiple",
377
+ "name",
378
+ "pattern",
379
+ "placeholder",
380
+ "readonly",
381
+ "required",
382
+ "size",
383
+ "src",
384
+ "step",
385
+ "type",
386
+ "value",
387
+ "width"
388
+ ],
389
+ keygen: [
390
+ "challenge",
391
+ "disabled",
392
+ "form",
393
+ "keytype",
394
+ "keyparams",
395
+ "name"
396
+ ],
397
+ label: [
398
+ "form",
399
+ "for"
400
+ ],
401
+ li: [
402
+ "value"
403
+ ],
404
+ link: [
405
+ "as",
406
+ "crossorigin",
407
+ "href",
408
+ "hreflang",
409
+ "integrity",
410
+ "media",
411
+ "imagesrcset",
412
+ "imagesizes",
413
+ "referrerpolicy",
414
+ "rel",
415
+ "sizes",
416
+ "type",
417
+ "charset"
418
+ ],
419
+ map: [
420
+ "name"
421
+ ],
422
+ menu: [
423
+ "type"
424
+ ],
425
+ media: [
426
+ "autoplay",
427
+ "controls",
428
+ "currenttime",
429
+ "defaultmuted",
430
+ "defaultplaybackrate",
431
+ "loop",
432
+ "mediagroup",
433
+ "muted",
434
+ "playsinline",
435
+ "preload",
436
+ "src",
437
+ "volume"
438
+ ],
439
+ meta: [
440
+ "charset",
441
+ "content",
442
+ "http-equiv",
443
+ "name",
444
+ "media"
445
+ ],
446
+ meter: [
447
+ "form",
448
+ "high",
449
+ "low",
450
+ "max",
451
+ "min",
452
+ "optimum",
453
+ "value"
454
+ ],
455
+ quote: [
456
+ "cite"
457
+ ],
458
+ object: [
459
+ "classid",
460
+ "data",
461
+ "form",
462
+ "height",
463
+ "name",
464
+ "type",
465
+ "usemap",
466
+ "width",
467
+ "wmode"
468
+ ],
469
+ ol: [
470
+ "reversed",
471
+ "start",
472
+ "type"
473
+ ],
474
+ optgroup: [
475
+ "disabled",
476
+ "label"
477
+ ],
478
+ option: [
479
+ "disabled",
480
+ "label",
481
+ "selected",
482
+ "value"
483
+ ],
484
+ output: [
485
+ "form",
486
+ "for",
487
+ "name"
488
+ ],
489
+ param: [
490
+ "name",
491
+ "value"
492
+ ],
493
+ progress: [
494
+ "max",
495
+ "value"
496
+ ],
497
+ slot: [
498
+ "name"
499
+ ],
500
+ script: [
501
+ "async",
502
+ "charset",
503
+ "crossorigin",
504
+ "defer",
505
+ "integrity",
506
+ "nomodule",
507
+ "nonce",
508
+ "referrerpolicy",
509
+ "src",
510
+ "type"
511
+ ],
512
+ select: [
513
+ "autocomplete",
514
+ "disabled",
515
+ "form",
516
+ "multiple",
517
+ "name",
518
+ "required",
519
+ "size",
520
+ "value",
521
+ "onchange"
522
+ ],
523
+ source: [
524
+ "height",
525
+ "media",
526
+ "sizes",
527
+ "src",
528
+ "srcset",
529
+ "type",
530
+ "width"
531
+ ],
532
+ style: [
533
+ "media",
534
+ "nonce",
535
+ "scoped",
536
+ "type"
537
+ ],
538
+ table: [
539
+ "align",
540
+ "bgcolor",
541
+ "border",
542
+ "cellpadding",
543
+ "cellspacing",
544
+ "frame",
545
+ "rules",
546
+ "summary",
547
+ "width"
548
+ ],
549
+ textarea: [
550
+ "autocomplete",
551
+ "cols",
552
+ "dirname",
553
+ "disabled",
554
+ "form",
555
+ "maxlength",
556
+ "minlength",
557
+ "name",
558
+ "placeholder",
559
+ "readonly",
560
+ "required",
561
+ "rows",
562
+ "value",
563
+ "wrap"
564
+ ],
565
+ td: [
566
+ "align",
567
+ "colspan",
568
+ "headers",
569
+ "rowspan",
570
+ "scope",
571
+ "abbr",
572
+ "height",
573
+ "width",
574
+ "valign"
575
+ ],
576
+ th: [
577
+ "align",
578
+ "colspan",
579
+ "headers",
580
+ "rowspan",
581
+ "scope",
582
+ "abbr"
583
+ ],
584
+ time: [
585
+ "datetime"
586
+ ],
587
+ track: [
588
+ "default",
589
+ "kind",
590
+ "label",
591
+ "src",
592
+ "srclang"
593
+ ],
594
+ video: [
595
+ "autoplay",
596
+ "controls",
597
+ "crossorigin",
598
+ "disablepictureinpicture",
599
+ "disableremoteplayback",
600
+ "height",
601
+ "loop",
602
+ "muted",
603
+ "playsinline",
604
+ "poster",
605
+ "preload",
606
+ "src",
607
+ "width"
608
+ ],
609
+ svg: [
610
+ "className",
611
+ "class",
612
+ "color",
613
+ "height",
614
+ "id",
615
+ "lang",
616
+ "max",
617
+ "media",
618
+ "method",
619
+ "min",
620
+ "name",
621
+ "style",
622
+ "target",
623
+ "type",
624
+ "width",
625
+ // Other HTML properties supported by SVG elements in browsers
626
+ "role",
627
+ "tabindex",
628
+ "crossorigin",
629
+ // SVG Specific attributes
630
+ "accent-height",
631
+ "accumulate",
632
+ "additive",
633
+ "alignment-baseline",
634
+ "allowReorder",
635
+ "alphabetic",
636
+ "amplitude",
637
+ "arabic-form",
638
+ "ascent",
639
+ "attributeName",
640
+ "attributeType",
641
+ "autoReverse",
642
+ "azimuth",
643
+ "baseFrequency",
644
+ "baseline-shift",
645
+ "baseProfile",
646
+ "bbox",
647
+ "begin",
648
+ "bias",
649
+ "by",
650
+ "calcMode",
651
+ "cap-height",
652
+ "clip",
653
+ "clip-path",
654
+ "clipPathUnits",
655
+ "clip-rule",
656
+ "color-interpolation",
657
+ "color-interpolation-filters",
658
+ "color-profile",
659
+ "color-rendering",
660
+ "contentScriptType",
661
+ "contentStyleType",
662
+ "cursor",
663
+ "cx",
664
+ "cy",
665
+ "d",
666
+ "decelerate",
667
+ "descent",
668
+ "diffuseConstant",
669
+ "direction",
670
+ "display",
671
+ "divisor",
672
+ "dominant-baseline",
673
+ "dur",
674
+ "dx",
675
+ "dy",
676
+ "edgeMode",
677
+ "elevation",
678
+ "enable-background",
679
+ "end",
680
+ "exponent",
681
+ "externalResourcesRequired",
682
+ "fill",
683
+ "fill-opacity",
684
+ "fill-rule",
685
+ "filter",
686
+ "filterRes",
687
+ "filterUnits",
688
+ "flood-color",
689
+ "flood-opacity",
690
+ "focusable",
691
+ "font-family",
692
+ "font-size",
693
+ "font-size-adjust",
694
+ "font-stretch",
695
+ "font-style",
696
+ "font-variant",
697
+ "font-weight",
698
+ "format",
699
+ "from",
700
+ "fx",
701
+ "fy",
702
+ "g1",
703
+ "g2",
704
+ "glyph-name",
705
+ "glyph-orientation-horizontal",
706
+ "glyph-orientation-vertical",
707
+ "glyphRef",
708
+ "gradientTransform",
709
+ "gradientUnits",
710
+ "hanging",
711
+ "href",
712
+ "horiz-adv-x",
713
+ "horiz-origin-x",
714
+ "ideographic",
715
+ "image-rendering",
716
+ "in2",
717
+ "in",
718
+ "intercept",
719
+ "k1",
720
+ "k2",
721
+ "k3",
722
+ "k4",
723
+ "k",
724
+ "kernelMatrix",
725
+ "kernelUnitLength",
726
+ "kerning",
727
+ "keyPoints",
728
+ "keySplines",
729
+ "keyTimes",
730
+ "lengthAdjust",
731
+ "letter-spacing",
732
+ "lighting-color",
733
+ "limitingConeAngle",
734
+ "local",
735
+ "marker-end",
736
+ "markerHeight",
737
+ "marker-mid",
738
+ "marker-start",
739
+ "markerUnits",
740
+ "markerWidth",
741
+ "mask",
742
+ "maskContentUnits",
743
+ "maskUnits",
744
+ "mathematical",
745
+ "mode",
746
+ "numOctaves",
747
+ "offset",
748
+ "opacity",
749
+ "operator",
750
+ "order",
751
+ "orient",
752
+ "orientation",
753
+ "origin",
754
+ "overflow",
755
+ "overline-position",
756
+ "overline-thickness",
757
+ "paint-order",
758
+ "panose-1",
759
+ "path",
760
+ "pathLength",
761
+ "patternContentUnits",
762
+ "patternTransform",
763
+ "patternUnits",
764
+ "pointer-events",
765
+ "points",
766
+ "pointsAtX",
767
+ "pointsAtY",
768
+ "pointsAtZ",
769
+ "preserveAlpha",
770
+ "preserveAspectRatio",
771
+ "primitiveUnits",
772
+ "r",
773
+ "radius",
774
+ "refX",
775
+ "refY",
776
+ "rendering-intent",
777
+ "repeatCount",
778
+ "repeatDur",
779
+ "requiredExtensions",
780
+ "requiredFeatures",
781
+ "restart",
782
+ "result",
783
+ "rotate",
784
+ "rx",
785
+ "ry",
786
+ "scale",
787
+ "seed",
788
+ "shape-rendering",
789
+ "slope",
790
+ "spacing",
791
+ "specularConstant",
792
+ "specularExponent",
793
+ "speed",
794
+ "spreadMethod",
795
+ "startOffset",
796
+ "stdDeviation",
797
+ "stemh",
798
+ "stemv",
799
+ "stitchTiles",
800
+ "stop-color",
801
+ "stop-opacity",
802
+ "strikethrough-position",
803
+ "strikethrough-thickness",
804
+ "string",
805
+ "stroke",
806
+ "stroke-dasharray",
807
+ "stroke-dashoffset",
808
+ "stroke-linecap",
809
+ "stroke-linejoin",
810
+ "stroke-miterlimit",
811
+ "stroke-opacity",
812
+ "stroke-width",
813
+ "surfaceScale",
814
+ "systemLanguage",
815
+ "tableValues",
816
+ "targetX",
817
+ "targetY",
818
+ "text-anchor",
819
+ "text-decoration",
820
+ "textLength",
821
+ "text-rendering",
822
+ "to",
823
+ "transform",
824
+ "u1",
825
+ "u2",
826
+ "underline-position",
827
+ "underline-thickness",
828
+ "unicode",
829
+ "unicode-bidi",
830
+ "unicode-range",
831
+ "units-per-em",
832
+ "v-alphabetic",
833
+ "values",
834
+ "vector-effect",
835
+ "version",
836
+ "vert-adv-y",
837
+ "vert-origin-x",
838
+ "vert-origin-y",
839
+ "v-hanging",
840
+ "v-ideographic",
841
+ "viewBox",
842
+ "viewTarget",
843
+ "visibility",
844
+ "v-mathematical",
845
+ "widths",
846
+ "word-spacing",
847
+ "writing-mode",
848
+ "x1",
849
+ "x2",
850
+ "x",
851
+ "xChannelSelector",
852
+ "x-height",
853
+ "xlink:actuate",
854
+ "xlink:arcrole",
855
+ "xlink:href",
856
+ "xlink:role",
857
+ "xlink:show",
858
+ "xlink:title",
859
+ "xlink:type",
860
+ "xml:base",
861
+ "xml:lang",
862
+ "xmlns",
863
+ "xmlns:xlink",
864
+ "xml:space",
865
+ "y1",
866
+ "y2",
867
+ "y",
868
+ "yChannelSelector",
869
+ "z",
870
+ "zoomAndPan"
871
+ ]
872
+ };
873
+ var DOM_EVENTS = [
874
+ // Clipboard Events
875
+ "oncopy",
876
+ "oncut",
877
+ "onpaste",
878
+ // Composition Events
879
+ "oncompositionend",
880
+ "oncompositionstart",
881
+ "oncompositionupdate",
882
+ // Focus Events
883
+ "onfocus",
884
+ "onfocusin",
885
+ "onfocusout",
886
+ "onblur",
887
+ // Form Events
888
+ "onchange",
889
+ "onbeforeinput",
890
+ "oninput",
891
+ "onreset",
892
+ "onsubmit",
893
+ "oninvalid",
894
+ "onformdata",
895
+ // Image Events
896
+ "onload",
897
+ "onerror",
898
+ // also a Media Event
899
+ // Detail Events
900
+ "ontoggle",
901
+ // Keyboard Events
902
+ "onkeydown",
903
+ "onkeypress",
904
+ "onkeyup",
905
+ // Media Events
906
+ "onabort",
907
+ "oncanplay",
908
+ "oncanplaythrough",
909
+ "oncuechange",
910
+ "ondurationchange",
911
+ "onemptied",
912
+ "onencrypted",
913
+ "onended",
914
+ "onloadeddata",
915
+ "onloadedmetadata",
916
+ "onloadstart",
917
+ "onpause",
918
+ "onplay",
919
+ "onplaying",
920
+ "onprogress",
921
+ "onratechange",
922
+ "onseeked",
923
+ "onseeking",
924
+ "onstalled",
925
+ "onsuspend",
926
+ "ontimeupdate",
927
+ "onvolumechange",
928
+ "onwaiting",
929
+ // MouseEvents
930
+ "onauxclick",
931
+ "onclick",
932
+ "oncontextmenu",
933
+ "ondblclick",
934
+ "ondrag",
935
+ "ondragend",
936
+ "ondragenter",
937
+ "ondragexit",
938
+ "ondragleave",
939
+ "ondragover",
940
+ "ondragstart",
941
+ "ondrop",
942
+ "onmousedown",
943
+ "onmouseenter",
944
+ "onmouseleave",
945
+ "onmousemove",
946
+ "onmouseout",
947
+ "onmouseover",
948
+ "onmouseup",
949
+ // Selection Events
950
+ "onselect",
951
+ "onselectionchange",
952
+ "onselectstart",
953
+ // Touch Events
954
+ "ontouchcancel",
955
+ "ontouchend",
956
+ "ontouchmove",
957
+ "ontouchstart",
958
+ // Pointer Events
959
+ "ongotpointercapture",
960
+ "onpointercancel",
961
+ "onpointerdown",
962
+ "onpointerenter",
963
+ "onpointerleave",
964
+ "onpointermove",
965
+ "onpointerout",
966
+ "onpointerover",
967
+ "onpointerup",
968
+ "onlostpointercapture",
969
+ // UI Events
970
+ "onscroll",
971
+ "onresize",
972
+ // Wheel Events
973
+ "onwheel",
974
+ // Animation Events
975
+ "onanimationstart",
976
+ "onanimationend",
977
+ "onanimationiteration",
978
+ // Transition Events
979
+ "ontransitionstart",
980
+ "ontransitionrun",
981
+ "ontransitionend",
982
+ "ontransitioncancel",
983
+ // Svelte Transition Events
984
+ "onoutrostart",
985
+ "onoutroend",
986
+ "onintrostart",
987
+ "onintroend",
988
+ // Message Events
989
+ "onmessage",
990
+ "onmessageerror",
991
+ // Document Events
992
+ "onvisibilitychange",
993
+ // Global Events
994
+ "oncancel",
995
+ "onclose",
996
+ "onfullscreenchange",
997
+ "onfullscreenerror"
998
+ ];
999
+ var checkAttributeByTagName = (tag, attribute) => {
1000
+ if (Object.prototype.hasOwnProperty.call(HTML_ATTRIBUTES, tag)) {
1001
+ const attributes = HTML_ATTRIBUTES[tag];
1002
+ return attributes.includes(attribute) || attributes.includes("default");
1003
+ } else {
1004
+ const defaultAttributes = HTML_ATTRIBUTES.default;
1005
+ return defaultAttributes.includes(attribute);
1006
+ }
1007
+ };
1008
+ var checkEventFunctions = (key) => {
1009
+ if (!isString(key)) return false;
1010
+ const normalizedKey = key.toLowerCase();
1011
+ return DOM_EVENTS.includes(normalizedKey);
1012
+ };
1013
+ var filterAttributesByTagName = (tag, props, cssProps) => {
1014
+ const filteredObject = {};
1015
+ for (const key in props) {
1016
+ if (Object.prototype.hasOwnProperty.call(props, key)) {
1017
+ if (cssProps && key in cssProps) continue;
1018
+ const isAttribute = checkAttributeByTagName(tag, key);
1019
+ const isEvent = checkEventFunctions(key);
1020
+ if (isDefined(props[key]) && (isAttribute || isEvent)) {
1021
+ filteredObject[key] = props[key];
1022
+ }
1023
+ }
1024
+ }
1025
+ return filteredObject;
1026
+ };
1027
+ var executeAttr = (elem, element) => {
1028
+ const attrObj = {};
1029
+ if (elem.attr) {
1030
+ for (const attrProp in elem.attr) {
1031
+ attrObj[attrProp] = elem.attr[attrProp](element, element.state, element.context);
1032
+ }
1033
+ }
1034
+ return attrObj;
1035
+ };
1036
+ return __toCommonJS(index_exports);
1037
+ })();