@digi-frontend/dgate-api-documentation 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/_virtual/index20.js +2 -0
  2. package/dist/_virtual/index20.js.map +1 -0
  3. package/dist/_virtual/index21.js +2 -0
  4. package/dist/_virtual/index21.js.map +1 -0
  5. package/dist/_virtual/index3.js +1 -1
  6. package/dist/_virtual/index4.js +1 -1
  7. package/dist/_virtual/index5.js +1 -1
  8. package/dist/_virtual/index6.js +1 -1
  9. package/dist/_virtual/node2.js +2 -0
  10. package/dist/_virtual/node2.js.map +1 -0
  11. package/dist/_virtual/node3.js +2 -0
  12. package/dist/_virtual/node3.js.map +1 -0
  13. package/dist/node_modules/html-dom-parser/lib/server/html-to-dom.js +1 -1
  14. package/dist/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -1
  15. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js +2 -0
  16. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js.map +1 -0
  17. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js +2 -0
  18. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js.map +1 -0
  19. package/dist/node_modules/html-react-parser/lib/index.js +1 -1
  20. package/dist/node_modules/html-react-parser/lib/index.js.map +1 -1
  21. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js +2 -0
  22. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js.map +1 -0
  23. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js +2 -0
  24. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js.map +1 -0
  25. package/dist/node_modules/htmlparser2/dist/commonjs/index.js +1 -1
  26. package/dist/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -1
  27. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js +2 -0
  28. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  29. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js +2 -0
  30. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js.map +1 -0
  31. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js +2 -0
  32. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +1 -0
  33. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +2 -0
  34. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  35. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js +2 -0
  36. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +1 -0
  37. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js +2 -0
  38. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +1 -0
  39. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +2 -0
  40. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  41. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +2 -0
  42. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  43. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +2 -0
  44. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  45. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js +2 -0
  46. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +1 -0
  47. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js +2 -0
  48. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js.map +1 -0
  49. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js +2 -0
  50. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js.map +1 -0
  51. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js +2 -0
  52. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js.map +1 -0
  53. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +2 -0
  54. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js.map +1 -0
  55. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js +2 -0
  56. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js.map +1 -0
  57. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +2 -0
  58. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js.map +1 -0
  59. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +2 -0
  60. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js.map +1 -0
  61. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +2 -0
  62. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js.map +1 -0
  63. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +2 -0
  64. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js.map +1 -0
  65. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +2 -0
  66. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js.map +1 -0
  67. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  68. package/dist/node_modules/toposort/index.js +1 -1
  69. package/dist/node_modules/yup/index.esm.js +1 -1
  70. package/dist/src/assets/icons/CheckMarkSquare.svg.js +2 -0
  71. package/dist/src/assets/icons/CheckMarkSquare.svg.js.map +1 -0
  72. package/dist/src/assets/icons/CloseIcon.svg.js +2 -0
  73. package/dist/src/assets/icons/CloseIcon.svg.js.map +1 -0
  74. package/dist/src/assets/icons/UpArrow.svg.js +2 -0
  75. package/dist/src/assets/icons/UpArrow.svg.js.map +1 -0
  76. package/dist/src/components/Chips/Chips.js +2 -0
  77. package/dist/src/components/Chips/Chips.js.map +1 -0
  78. package/dist/styles.css +235 -235
  79. package/dist/types/types/index.d.ts +18 -0
  80. package/package.json +1 -1
  81. package/dist/node_modules/dom-serializer/lib/foreignNames.js +0 -2
  82. package/dist/node_modules/dom-serializer/lib/foreignNames.js.map +0 -1
  83. package/dist/node_modules/dom-serializer/lib/index.js +0 -2
  84. package/dist/node_modules/dom-serializer/lib/index.js.map +0 -1
  85. package/dist/node_modules/domhandler/lib/index.js +0 -2
  86. package/dist/node_modules/domhandler/lib/index.js.map +0 -1
  87. package/dist/node_modules/domhandler/lib/node.js +0 -2
  88. package/dist/node_modules/domhandler/lib/node.js.map +0 -1
  89. package/dist/node_modules/domutils/lib/feeds.js +0 -2
  90. package/dist/node_modules/domutils/lib/feeds.js.map +0 -1
  91. package/dist/node_modules/domutils/lib/helpers.js +0 -2
  92. package/dist/node_modules/domutils/lib/helpers.js.map +0 -1
  93. package/dist/node_modules/domutils/lib/index.js +0 -2
  94. package/dist/node_modules/domutils/lib/index.js.map +0 -1
  95. package/dist/node_modules/domutils/lib/legacy.js +0 -2
  96. package/dist/node_modules/domutils/lib/legacy.js.map +0 -1
  97. package/dist/node_modules/domutils/lib/manipulation.js +0 -2
  98. package/dist/node_modules/domutils/lib/manipulation.js.map +0 -1
  99. package/dist/node_modules/domutils/lib/querying.js +0 -2
  100. package/dist/node_modules/domutils/lib/querying.js.map +0 -1
  101. package/dist/node_modules/domutils/lib/stringify.js +0 -2
  102. package/dist/node_modules/domutils/lib/stringify.js.map +0 -1
  103. package/dist/node_modules/domutils/lib/traversal.js +0 -2
  104. package/dist/node_modules/domutils/lib/traversal.js.map +0 -1
  105. package/dist/node_modules/entities/lib/decode.js +0 -2
  106. package/dist/node_modules/entities/lib/decode.js.map +0 -1
  107. package/dist/node_modules/entities/lib/decode_codepoint.js +0 -2
  108. package/dist/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  109. package/dist/node_modules/entities/lib/encode.js +0 -2
  110. package/dist/node_modules/entities/lib/encode.js.map +0 -1
  111. package/dist/node_modules/entities/lib/escape.js +0 -2
  112. package/dist/node_modules/entities/lib/escape.js.map +0 -1
  113. package/dist/node_modules/entities/lib/generated/decode-data-html.js +0 -2
  114. package/dist/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  115. package/dist/node_modules/entities/lib/generated/decode-data-xml.js +0 -2
  116. package/dist/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  117. package/dist/node_modules/entities/lib/generated/encode-html.js +0 -2
  118. package/dist/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  119. package/dist/node_modules/entities/lib/index.js +0 -2
  120. package/dist/node_modules/entities/lib/index.js.map +0 -1
package/dist/styles.css CHANGED
@@ -508,241 +508,6 @@
508
508
  }
509
509
  .containerTitleDrawer .closeIcon {
510
510
  cursor: pointer;
511
- }:root {
512
- --white: #fff;
513
- --Gray-5: #f1f2f6;
514
- --Gray-10: #ebecf2;
515
- --Gray-20: #d8dae5;
516
- --Gray-30: #babdcc;
517
- --Gray-40: #9a9eb2;
518
- --Gray-50: #828699;
519
- --Gray-60: #696c80;
520
- --Gray-100: #12131a;
521
- --black: #000;
522
- --primary-static: #4d75d8;
523
- --primary-hover: #7c9bea;
524
- --primary-active: #2c4fa4;
525
- --primary-disabled: #9a9eb2;
526
- --secondary-static: #40e0d0;
527
- --secondary-hover: #9efcf2;
528
- --secondary-active: #2fa599;
529
- --error-static: #da3f3f;
530
- --error-hover: #e75d5d;
531
- --error-active: #bb3232;
532
- --success-static: #3aaa35;
533
- --success-hover: #5cda56;
534
- --success-active: #2a8a25;
535
- --info-static: #c6c6c6;
536
- --info-hover: #e4e4e4;
537
- --info-active: #979797;
538
- --warning-static: #faad14;
539
- --warning-hover: #f9be4a;
540
- --warning-active: #db9711;
541
- --action-static: #142452;
542
- --action-hover: #21387d;
543
- --action-active: #000000;
544
- --color-info-primary: #3a6cd1;
545
- --primary-font-color: #142452;
546
- --placeholder-font-color: #babdcc;
547
- --warning-font-color: #ce2828;
548
- --alert-error: #da3f3f;
549
- --alert-light-error: #f4c5c5;
550
- --alert-success: #3aaa35;
551
- --alert-light-success: #c4e5c2;
552
- --alert-info: #8eaaf1;
553
- --alert-light-info: #c4d3f1;
554
- --alert-warning: #faad14;
555
- --alert-light-warning: #fde6b8;
556
- --border-focus: #3a6cd1;
557
- --tooltip-background-color: #202f5b;
558
- --text-color-primary: #142452;
559
- --text-color-secondary: #ffff;
560
- --text-color-neutral: #828699;
561
- --text-color-tertiary: #808080;
562
- --text-color-note: #242424;
563
- --text-color-quaternary: #142452;
564
- --text-color-disabled: #ffff;
565
- --background-color-white-primary: #fff;
566
- --background-color-light-primary: #8eaaf1;
567
- --background-color-white-secondary: #fff;
568
- --background-color-primary-dark: #142452;
569
- --background-color-gray-5: #f1f2f6;
570
- --background-color-gray-30: #ebecf2;
571
- --background-color-tertiary-light: #2c4fa4;
572
- --background-color-gray-10: #f1f2f6;
573
- --background-color-gray-40: #ebecf2;
574
- --background-color-light-blue: #dfe7f8;
575
- --border-color-primary: #babdcc;
576
- --border-color-secondary: #d8dae5;
577
- --border-color-neutral: #ebecf2;
578
- --border-color-tertiary: #ebecf2;
579
- --border-color-gray: #ebecf2;
580
- --border-color-hover: #142452;
581
- --border-color-active: #3a6cd1;
582
- --icon-color-main: #142452;
583
- --icon-color-secondary: #000;
584
- --icon-color-quaternary: #babdcc;
585
- --icon-color-disabled: #9a9eb2;
586
- --link-btn-primary-color: #3a6cd1;
587
- --button-color-static: #4d75d8;
588
- --button-color-hover: #7c9bea;
589
- --button-color-active: #2c4fa4;
590
- --alert-natural: #c4d3f1;
591
- }
592
-
593
- .tableSectionContainer .tableContainer {
594
- max-width: 100%;
595
- overflow-x: overlay;
596
- }
597
- .tableSectionContainer .tableContainer.tableContainer * {
598
- font-family: "Cairo";
599
- }
600
- .tableSectionContainer .tableContainer .table {
601
- width: 100%;
602
- border-spacing: 0;
603
- border: none;
604
- border-right: 1px solid var(--border-color-neutral);
605
- border-left: 1px solid var(--border-color-neutral);
606
- }
607
- .tableSectionContainer .tableContainer .table.borderRadiusTop {
608
- border-top-left-radius: 0.625rem;
609
- border-top-right-radius: 0.625rem;
610
- }
611
- .tableSectionContainer .tableContainer .table.borderRadiusBottom {
612
- border-bottom-left-radius: 0.625rem;
613
- border-bottom-right-radius: 0.625rem;
614
- }
615
- .tableSectionContainer .tableContainer .table .tableHead {
616
- border: 1px solid var(--Gray-10);
617
- margin: 0rem !important;
618
- background-color: #f8f9fb;
619
- width: max-content;
620
- min-width: 100%;
621
- color: var(--Gray-50);
622
- font-weight: 400;
623
- }
624
- .tableSectionContainer .tableContainer .table .tableHead .tableHeadCell {
625
- border-bottom: 1px solid var(--border-color-neutral);
626
- border-top: 1px solid var(--border-color-neutral);
627
- font-style: normal;
628
- font-size: 0.875rem;
629
- padding: 0.75rem 1.875rem;
630
- text-align: start;
631
- white-space: nowrap;
632
- color: inherit;
633
- font-weight: inherit;
634
- }
635
- .tableSectionContainer .tableContainer .table .tableHead .tableHeadCell .sortIcon {
636
- padding: 0rem 0.25rem;
637
- height: 1.875rem;
638
- cursor: pointer;
639
- }
640
- .tableSectionContainer .tableContainer .table .tableHead .headContainer {
641
- display: flex;
642
- flex-direction: row;
643
- align-items: center;
644
- text-overflow: ellipsis;
645
- }
646
- .tableSectionContainer .tableContainer .table .tableBody tr {
647
- background-color: var(--background-color-white-secondary);
648
- overflow: visible !important;
649
- }
650
- .tableSectionContainer .tableContainer .table .tableBody tr .tippy-content {
651
- background-color: var(--border-color-hover);
652
- color: var(--text-color-disabled);
653
- border-radius: 5px;
654
- font-size: 14px;
655
- font-weight: 400;
656
- line-height: 20px;
657
- text-align: left;
658
- }
659
- .tableSectionContainer .tableContainer .table .tableBody tr .tippy-box[data-placement^=bottom] > .tippy-arrow:before {
660
- color: var(--border-color-hover);
661
- }
662
- .tableSectionContainer .tableContainer .table .tableBody tr.rowSelected {
663
- background-color: var(--background-color-gray-40);
664
- }
665
- .tableSectionContainer .tableContainer .table .tableBody tr td {
666
- font-weight: 400;
667
- font-size: 0.875rem;
668
- text-align: start;
669
- color: var(--text-color-primary);
670
- border-bottom: 1px solid var(--border-color-gray);
671
- width: max-content;
672
- white-space: nowrap;
673
- height: 3.75rem;
674
- padding: 0.75rem 1.875rem;
675
- overflow: visible !important;
676
- }
677
- .tableSectionContainer .tableContainer .table .tableBody tr td .tableData {
678
- max-width: 100%;
679
- width: fit-content;
680
- white-space: nowrap;
681
- text-overflow: ellipsis;
682
- overflow: visible !important;
683
- }
684
- .tableSectionContainer .tableContainer .table .tableBody tr td:nth-child(2) .tableData .customBtn .btnContentWrapper .endBtnIcon svg path,
685
- .tableSectionContainer .tableContainer .table .tableBody tr td:nth-child(2) .tableData .customBtn :link .btnContentWrapper .endBtnIcon svg path,
686
- .tableSectionContainer .tableContainer .table .tableBody tr td:nth-child(2) .tableData .customBtn :visited .btnContentWrapper .endBtnIcon svg path {
687
- stroke-width: 0.1 !important;
688
- fill: #12131a !important;
689
- }
690
- .tableSectionContainer .tableContainer .table .tableBody tr:hover {
691
- background-color: var(--background-color-gray-10);
692
- }
693
- .tableSectionContainer .tableContainer .table .tableBody .fallbackTableRow {
694
- background-color: var(--background-color-white-secondary);
695
- height: 4.375rem;
696
- }
697
- .tableSectionContainer .tableContainer .table .tableBody .fallbackTableRow:hover {
698
- background-color: var(--background-color-white-secondary);
699
- }
700
- .tableSectionContainer .tableContainer .table .tableBody .fallbackTableRow .fallbackContainer {
701
- width: 100%;
702
- height: 100%;
703
- color: var(--text-color-quaternary);
704
- }
705
- .tableSectionContainer .tableContainer .table .tableBody .fallbackTableRow .fallbackContainer .fallbackTextContainer {
706
- display: flex;
707
- flex-direction: row;
708
- align-items: center;
709
- justify-content: center;
710
- width: 100%;
711
- height: 100%;
712
- }
713
- .tableSectionContainer .tableContainer .table .tableBody .fallbackTableRow .fallbackContainer .fallbackTextContainer .fallbackText {
714
- font-style: normal;
715
- font-weight: 400;
716
- font-size: 0.875rem;
717
- line-height: 1.25rem;
718
- }
719
- .tableSectionContainer .tableContainer .table th,
720
- .tableSectionContainer .tableContainer .table td {
721
- text-align: left;
722
- }
723
- .tableSectionContainer .tableFooterContainer {
724
- display: flex;
725
- width: 100%;
726
- height: auto;
727
- }
728
- .tableSectionContainer .ascArrow {
729
- height: 0.8125rem;
730
- margin-bottom: 0.4375rem;
731
- cursor: pointer;
732
- }
733
- .tableSectionContainer .descArrow {
734
- height: 0.8125rem;
735
- margin-top: 0.4375rem;
736
- cursor: pointer;
737
- }
738
- .tableSectionContainer .defaultSortArrow {
739
- height: 1.25rem;
740
- cursor: pointer;
741
- }
742
- .tableSectionContainer .ascArrow path,
743
- .tableSectionContainer .descArrow path,
744
- .tableSectionContainer .defaultSortArrow path {
745
- fill: var(--Gray-50);
746
511
  }.json-editor-container {
747
512
  overflow: hidden;
748
513
  border-bottom-right-radius: 0.3125rem;
@@ -1054,4 +819,239 @@
1054
819
  }
1055
820
  .drawerItemContainer .color-red {
1056
821
  color: var(--color-error);
822
+ }:root {
823
+ --white: #fff;
824
+ --Gray-5: #f1f2f6;
825
+ --Gray-10: #ebecf2;
826
+ --Gray-20: #d8dae5;
827
+ --Gray-30: #babdcc;
828
+ --Gray-40: #9a9eb2;
829
+ --Gray-50: #828699;
830
+ --Gray-60: #696c80;
831
+ --Gray-100: #12131a;
832
+ --black: #000;
833
+ --primary-static: #4d75d8;
834
+ --primary-hover: #7c9bea;
835
+ --primary-active: #2c4fa4;
836
+ --primary-disabled: #9a9eb2;
837
+ --secondary-static: #40e0d0;
838
+ --secondary-hover: #9efcf2;
839
+ --secondary-active: #2fa599;
840
+ --error-static: #da3f3f;
841
+ --error-hover: #e75d5d;
842
+ --error-active: #bb3232;
843
+ --success-static: #3aaa35;
844
+ --success-hover: #5cda56;
845
+ --success-active: #2a8a25;
846
+ --info-static: #c6c6c6;
847
+ --info-hover: #e4e4e4;
848
+ --info-active: #979797;
849
+ --warning-static: #faad14;
850
+ --warning-hover: #f9be4a;
851
+ --warning-active: #db9711;
852
+ --action-static: #142452;
853
+ --action-hover: #21387d;
854
+ --action-active: #000000;
855
+ --color-info-primary: #3a6cd1;
856
+ --primary-font-color: #142452;
857
+ --placeholder-font-color: #babdcc;
858
+ --warning-font-color: #ce2828;
859
+ --alert-error: #da3f3f;
860
+ --alert-light-error: #f4c5c5;
861
+ --alert-success: #3aaa35;
862
+ --alert-light-success: #c4e5c2;
863
+ --alert-info: #8eaaf1;
864
+ --alert-light-info: #c4d3f1;
865
+ --alert-warning: #faad14;
866
+ --alert-light-warning: #fde6b8;
867
+ --border-focus: #3a6cd1;
868
+ --tooltip-background-color: #202f5b;
869
+ --text-color-primary: #142452;
870
+ --text-color-secondary: #ffff;
871
+ --text-color-neutral: #828699;
872
+ --text-color-tertiary: #808080;
873
+ --text-color-note: #242424;
874
+ --text-color-quaternary: #142452;
875
+ --text-color-disabled: #ffff;
876
+ --background-color-white-primary: #fff;
877
+ --background-color-light-primary: #8eaaf1;
878
+ --background-color-white-secondary: #fff;
879
+ --background-color-primary-dark: #142452;
880
+ --background-color-gray-5: #f1f2f6;
881
+ --background-color-gray-30: #ebecf2;
882
+ --background-color-tertiary-light: #2c4fa4;
883
+ --background-color-gray-10: #f1f2f6;
884
+ --background-color-gray-40: #ebecf2;
885
+ --background-color-light-blue: #dfe7f8;
886
+ --border-color-primary: #babdcc;
887
+ --border-color-secondary: #d8dae5;
888
+ --border-color-neutral: #ebecf2;
889
+ --border-color-tertiary: #ebecf2;
890
+ --border-color-gray: #ebecf2;
891
+ --border-color-hover: #142452;
892
+ --border-color-active: #3a6cd1;
893
+ --icon-color-main: #142452;
894
+ --icon-color-secondary: #000;
895
+ --icon-color-quaternary: #babdcc;
896
+ --icon-color-disabled: #9a9eb2;
897
+ --link-btn-primary-color: #3a6cd1;
898
+ --button-color-static: #4d75d8;
899
+ --button-color-hover: #7c9bea;
900
+ --button-color-active: #2c4fa4;
901
+ --alert-natural: #c4d3f1;
902
+ }
903
+
904
+ .tableSectionContainer .tableContainer {
905
+ max-width: 100%;
906
+ overflow-x: overlay;
907
+ }
908
+ .tableSectionContainer .tableContainer.tableContainer * {
909
+ font-family: "Cairo";
910
+ }
911
+ .tableSectionContainer .tableContainer .table {
912
+ width: 100%;
913
+ border-spacing: 0;
914
+ border: none;
915
+ border-right: 1px solid var(--border-color-neutral);
916
+ border-left: 1px solid var(--border-color-neutral);
917
+ }
918
+ .tableSectionContainer .tableContainer .table.borderRadiusTop {
919
+ border-top-left-radius: 0.625rem;
920
+ border-top-right-radius: 0.625rem;
921
+ }
922
+ .tableSectionContainer .tableContainer .table.borderRadiusBottom {
923
+ border-bottom-left-radius: 0.625rem;
924
+ border-bottom-right-radius: 0.625rem;
925
+ }
926
+ .tableSectionContainer .tableContainer .table .tableHead {
927
+ border: 1px solid var(--Gray-10);
928
+ margin: 0rem !important;
929
+ background-color: #f8f9fb;
930
+ width: max-content;
931
+ min-width: 100%;
932
+ color: var(--Gray-50);
933
+ font-weight: 400;
934
+ }
935
+ .tableSectionContainer .tableContainer .table .tableHead .tableHeadCell {
936
+ border-bottom: 1px solid var(--border-color-neutral);
937
+ border-top: 1px solid var(--border-color-neutral);
938
+ font-style: normal;
939
+ font-size: 0.875rem;
940
+ padding: 0.75rem 1.875rem;
941
+ text-align: start;
942
+ white-space: nowrap;
943
+ color: inherit;
944
+ font-weight: inherit;
945
+ }
946
+ .tableSectionContainer .tableContainer .table .tableHead .tableHeadCell .sortIcon {
947
+ padding: 0rem 0.25rem;
948
+ height: 1.875rem;
949
+ cursor: pointer;
950
+ }
951
+ .tableSectionContainer .tableContainer .table .tableHead .headContainer {
952
+ display: flex;
953
+ flex-direction: row;
954
+ align-items: center;
955
+ text-overflow: ellipsis;
956
+ }
957
+ .tableSectionContainer .tableContainer .table .tableBody tr {
958
+ background-color: var(--background-color-white-secondary);
959
+ overflow: visible !important;
960
+ }
961
+ .tableSectionContainer .tableContainer .table .tableBody tr .tippy-content {
962
+ background-color: var(--border-color-hover);
963
+ color: var(--text-color-disabled);
964
+ border-radius: 5px;
965
+ font-size: 14px;
966
+ font-weight: 400;
967
+ line-height: 20px;
968
+ text-align: left;
969
+ }
970
+ .tableSectionContainer .tableContainer .table .tableBody tr .tippy-box[data-placement^=bottom] > .tippy-arrow:before {
971
+ color: var(--border-color-hover);
972
+ }
973
+ .tableSectionContainer .tableContainer .table .tableBody tr.rowSelected {
974
+ background-color: var(--background-color-gray-40);
975
+ }
976
+ .tableSectionContainer .tableContainer .table .tableBody tr td {
977
+ font-weight: 400;
978
+ font-size: 0.875rem;
979
+ text-align: start;
980
+ color: var(--text-color-primary);
981
+ border-bottom: 1px solid var(--border-color-gray);
982
+ width: max-content;
983
+ white-space: nowrap;
984
+ height: 3.75rem;
985
+ padding: 0.75rem 1.875rem;
986
+ overflow: visible !important;
987
+ }
988
+ .tableSectionContainer .tableContainer .table .tableBody tr td .tableData {
989
+ max-width: 100%;
990
+ width: fit-content;
991
+ white-space: nowrap;
992
+ text-overflow: ellipsis;
993
+ overflow: visible !important;
994
+ }
995
+ .tableSectionContainer .tableContainer .table .tableBody tr td:nth-child(2) .tableData .customBtn .btnContentWrapper .endBtnIcon svg path,
996
+ .tableSectionContainer .tableContainer .table .tableBody tr td:nth-child(2) .tableData .customBtn :link .btnContentWrapper .endBtnIcon svg path,
997
+ .tableSectionContainer .tableContainer .table .tableBody tr td:nth-child(2) .tableData .customBtn :visited .btnContentWrapper .endBtnIcon svg path {
998
+ stroke-width: 0.1 !important;
999
+ fill: #12131a !important;
1000
+ }
1001
+ .tableSectionContainer .tableContainer .table .tableBody tr:hover {
1002
+ background-color: var(--background-color-gray-10);
1003
+ }
1004
+ .tableSectionContainer .tableContainer .table .tableBody .fallbackTableRow {
1005
+ background-color: var(--background-color-white-secondary);
1006
+ height: 4.375rem;
1007
+ }
1008
+ .tableSectionContainer .tableContainer .table .tableBody .fallbackTableRow:hover {
1009
+ background-color: var(--background-color-white-secondary);
1010
+ }
1011
+ .tableSectionContainer .tableContainer .table .tableBody .fallbackTableRow .fallbackContainer {
1012
+ width: 100%;
1013
+ height: 100%;
1014
+ color: var(--text-color-quaternary);
1015
+ }
1016
+ .tableSectionContainer .tableContainer .table .tableBody .fallbackTableRow .fallbackContainer .fallbackTextContainer {
1017
+ display: flex;
1018
+ flex-direction: row;
1019
+ align-items: center;
1020
+ justify-content: center;
1021
+ width: 100%;
1022
+ height: 100%;
1023
+ }
1024
+ .tableSectionContainer .tableContainer .table .tableBody .fallbackTableRow .fallbackContainer .fallbackTextContainer .fallbackText {
1025
+ font-style: normal;
1026
+ font-weight: 400;
1027
+ font-size: 0.875rem;
1028
+ line-height: 1.25rem;
1029
+ }
1030
+ .tableSectionContainer .tableContainer .table th,
1031
+ .tableSectionContainer .tableContainer .table td {
1032
+ text-align: left;
1033
+ }
1034
+ .tableSectionContainer .tableFooterContainer {
1035
+ display: flex;
1036
+ width: 100%;
1037
+ height: auto;
1038
+ }
1039
+ .tableSectionContainer .ascArrow {
1040
+ height: 0.8125rem;
1041
+ margin-bottom: 0.4375rem;
1042
+ cursor: pointer;
1043
+ }
1044
+ .tableSectionContainer .descArrow {
1045
+ height: 0.8125rem;
1046
+ margin-top: 0.4375rem;
1047
+ cursor: pointer;
1048
+ }
1049
+ .tableSectionContainer .defaultSortArrow {
1050
+ height: 1.25rem;
1051
+ cursor: pointer;
1052
+ }
1053
+ .tableSectionContainer .ascArrow path,
1054
+ .tableSectionContainer .descArrow path,
1055
+ .tableSectionContainer .defaultSortArrow path {
1056
+ fill: var(--Gray-50);
1057
1057
  }
@@ -0,0 +1,18 @@
1
+ export type MethodTypes = 'GET' | 'POST' | 'PUT' | 'DELETE';
2
+ export interface ParameterType {
3
+ name: string;
4
+ in: string;
5
+ schemaType: string;
6
+ required: boolean;
7
+ }
8
+ export interface MethodAccordionProps {
9
+ method: MethodTypes;
10
+ path: string;
11
+ desc: string;
12
+ parameters: ParameterType[];
13
+ request: string;
14
+ response: {
15
+ content: string;
16
+ statusCode: number;
17
+ };
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digi-frontend/dgate-api-documentation",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "main": "dist/src/index.js",
5
5
  "module": "dist/src/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -1,2 +0,0 @@
1
- import{__exports as e}from"../../../_virtual/foreignNames.js";var t;function n(){return t||(t=1,Object.defineProperty(e,"__esModule",{value:!0}),e.attributeNames=e.elementNames=void 0,e.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),e.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))),e}export{n as __require};
2
- //# sourceMappingURL=foreignNames.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"foreignNames.js","sources":["../../../../node_modules/dom-serializer/lib/foreignNames.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.attributeNames = exports.elementNames = void 0;\nexports.elementNames = new Map([\n \"altGlyph\",\n \"altGlyphDef\",\n \"altGlyphItem\",\n \"animateColor\",\n \"animateMotion\",\n \"animateTransform\",\n \"clipPath\",\n \"feBlend\",\n \"feColorMatrix\",\n \"feComponentTransfer\",\n \"feComposite\",\n \"feConvolveMatrix\",\n \"feDiffuseLighting\",\n \"feDisplacementMap\",\n \"feDistantLight\",\n \"feDropShadow\",\n \"feFlood\",\n \"feFuncA\",\n \"feFuncB\",\n \"feFuncG\",\n \"feFuncR\",\n \"feGaussianBlur\",\n \"feImage\",\n \"feMerge\",\n \"feMergeNode\",\n \"feMorphology\",\n \"feOffset\",\n \"fePointLight\",\n \"feSpecularLighting\",\n \"feSpotLight\",\n \"feTile\",\n \"feTurbulence\",\n \"foreignObject\",\n \"glyphRef\",\n \"linearGradient\",\n \"radialGradient\",\n \"textPath\",\n].map(function (val) { return [val.toLowerCase(), val]; }));\nexports.attributeNames = new Map([\n \"definitionURL\",\n \"attributeName\",\n \"attributeType\",\n \"baseFrequency\",\n \"baseProfile\",\n \"calcMode\",\n \"clipPathUnits\",\n \"diffuseConstant\",\n \"edgeMode\",\n \"filterUnits\",\n \"glyphRef\",\n \"gradientTransform\",\n \"gradientUnits\",\n \"kernelMatrix\",\n \"kernelUnitLength\",\n \"keyPoints\",\n \"keySplines\",\n \"keyTimes\",\n \"lengthAdjust\",\n \"limitingConeAngle\",\n \"markerHeight\",\n \"markerUnits\",\n \"markerWidth\",\n \"maskContentUnits\",\n \"maskUnits\",\n \"numOctaves\",\n \"pathLength\",\n \"patternContentUnits\",\n \"patternTransform\",\n \"patternUnits\",\n \"pointsAtX\",\n \"pointsAtY\",\n \"pointsAtZ\",\n \"preserveAlpha\",\n \"preserveAspectRatio\",\n \"primitiveUnits\",\n \"refX\",\n \"refY\",\n \"repeatCount\",\n \"repeatDur\",\n \"requiredExtensions\",\n \"requiredFeatures\",\n \"specularConstant\",\n \"specularExponent\",\n \"spreadMethod\",\n \"startOffset\",\n \"stdDeviation\",\n \"stitchTiles\",\n \"surfaceScale\",\n \"systemLanguage\",\n \"tableValues\",\n \"targetX\",\n \"targetY\",\n \"textLength\",\n \"viewBox\",\n \"viewTarget\",\n \"xChannelSelector\",\n \"yChannelSelector\",\n \"zoomAndPan\",\n].map(function (val) { return [val.toLowerCase(), val]; }));\n"],"names":["Object","defineProperty","foreignNames","value","attributeNames","elementNames","Map","map","val","toLowerCase"],"mappings":"gGACAA,OAAOC,eAAeC,EAAS,aAAc,CAAEC,OAAO,IACtDD,EAAAE,eAAyBF,EAAAG,kBAAuB,EAC5BH,EAAAG,aAAG,IAAIC,IAAI,CAC3B,WACA,cACA,eACA,eACA,gBACA,mBACA,WACA,UACA,gBACA,sBACA,cACA,mBACA,oBACA,oBACA,iBACA,eACA,UACA,UACA,UACA,UACA,UACA,iBACA,UACA,UACA,cACA,eACA,WACA,eACA,qBACA,cACA,SACA,eACA,gBACA,WACA,iBACA,iBACA,YACFC,KAAI,SAAUC,GAAO,MAAO,CAACA,EAAIC,cAAeD,EAAO,KACnCN,EAAAE,eAAG,IAAIE,IAAI,CAC7B,gBACA,gBACA,gBACA,gBACA,cACA,WACA,gBACA,kBACA,WACA,cACA,WACA,oBACA,gBACA,eACA,mBACA,YACA,aACA,WACA,eACA,oBACA,eACA,cACA,cACA,mBACA,YACA,aACA,aACA,sBACA,mBACA,eACA,YACA,YACA,YACA,gBACA,sBACA,iBACA,OACA,OACA,cACA,YACA,qBACA,mBACA,mBACA,mBACA,eACA,cACA,eACA,cACA,eACA,iBACA,cACA,UACA,UACA,aACA,UACA,aACA,mBACA,mBACA,cACFC,KAAI,SAAUC,GAAO,MAAO,CAACA,EAAIC,cAAeD,EAAO"}
@@ -1,2 +0,0 @@
1
- import{__exports as e}from"../../../_virtual/index18.js";import{__require as t}from"../../domelementtype/lib/index.js";import{__require as n}from"../../entities/lib/index.js";import{__require as r}from"./foreignNames.js";var a;function o(){if(a)return e;a=1;var o=e&&e.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)},i=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),c=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return c(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.render=void 0;var u=l(t()),s=n(),d=r(),m=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function f(e){return e.replace(/"/g,"&quot;")}var p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function v(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",a=0;a<n.length;a++)r+=g(n[a],t);return r}function g(e,t){switch(e.type){case u.Root:return v(e.children,t);case u.Doctype:case u.Directive:return"<".concat(e.data,">");case u.Comment:return function(e){return"\x3c!--".concat(e.data,"--\x3e")}(e);case u.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case u.Script:case u.Style:case u.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=d.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&b.has(e.parent.name)&&(t=o(o({},t),{xmlMode:!1})));!t.xmlMode&&x.has(e.name)&&(t=o(o({},t),{xmlMode:"foreign"}));var r="<".concat(e.name),a=function(e,t){var n;if(e){var r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?f:t.xmlMode||"utf8"!==t.encodeEntities?s.encodeXML:s.escapeAttribute;return Object.keys(e).map((function(n){var a,o,i=null!==(a=e[n])&&void 0!==a?a:"";return"foreign"===t.xmlMode&&(n=null!==(o=d.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==i?"".concat(n,'="').concat(r(i),'"'):n})).join(" ")}}(e.attribs,t);a&&(r+=" ".concat(a));0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&p.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=v(e.children,t)),!t.xmlMode&&p.has(e.name)||(r+="</".concat(e.name,">")));return r}(e,t);case u.Text:return function(e,t){var n,r=e.data||"";!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&m.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,s.encodeXML)(r):(0,s.escapeText)(r));return r}(e,t)}}e.render=v,e.default=v;var b=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),x=new Set(["svg","math"]);return e}export{o as __require};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/dom-serializer/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.render = void 0;\n/*\n * Module dependencies\n */\nvar ElementType = __importStar(require(\"domelementtype\"));\nvar entities_1 = require(\"entities\");\n/**\n * Mixed-case SVG and MathML tags & attributes\n * recognized by the HTML parser.\n *\n * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign\n */\nvar foreignNames_js_1 = require(\"./foreignNames.js\");\nvar unencodedElements = new Set([\n \"style\",\n \"script\",\n \"xmp\",\n \"iframe\",\n \"noembed\",\n \"noframes\",\n \"plaintext\",\n \"noscript\",\n]);\nfunction replaceQuotes(value) {\n return value.replace(/\"/g, \"&quot;\");\n}\n/**\n * Format attributes\n */\nfunction formatAttributes(attributes, opts) {\n var _a;\n if (!attributes)\n return;\n var encode = ((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) === false\n ? replaceQuotes\n : opts.xmlMode || opts.encodeEntities !== \"utf8\"\n ? entities_1.encodeXML\n : entities_1.escapeAttribute;\n return Object.keys(attributes)\n .map(function (key) {\n var _a, _b;\n var value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : \"\";\n if (opts.xmlMode === \"foreign\") {\n /* Fix up mixed-case attribute names */\n key = (_b = foreignNames_js_1.attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;\n }\n if (!opts.emptyAttrs && !opts.xmlMode && value === \"\") {\n return key;\n }\n return \"\".concat(key, \"=\\\"\").concat(encode(value), \"\\\"\");\n })\n .join(\" \");\n}\n/**\n * Self-enclosing tags\n */\nvar singleTag = new Set([\n \"area\",\n \"base\",\n \"basefont\",\n \"br\",\n \"col\",\n \"command\",\n \"embed\",\n \"frame\",\n \"hr\",\n \"img\",\n \"input\",\n \"isindex\",\n \"keygen\",\n \"link\",\n \"meta\",\n \"param\",\n \"source\",\n \"track\",\n \"wbr\",\n]);\n/**\n * Renders a DOM node or an array of DOM nodes to a string.\n *\n * Can be thought of as the equivalent of the `outerHTML` of the passed node(s).\n *\n * @param node Node to be rendered.\n * @param options Changes serialization behavior\n */\nfunction render(node, options) {\n if (options === void 0) { options = {}; }\n var nodes = \"length\" in node ? node : [node];\n var output = \"\";\n for (var i = 0; i < nodes.length; i++) {\n output += renderNode(nodes[i], options);\n }\n return output;\n}\nexports.render = render;\nexports.default = render;\nfunction renderNode(node, options) {\n switch (node.type) {\n case ElementType.Root:\n return render(node.children, options);\n // @ts-expect-error We don't use `Doctype` yet\n case ElementType.Doctype:\n case ElementType.Directive:\n return renderDirective(node);\n case ElementType.Comment:\n return renderComment(node);\n case ElementType.CDATA:\n return renderCdata(node);\n case ElementType.Script:\n case ElementType.Style:\n case ElementType.Tag:\n return renderTag(node, options);\n case ElementType.Text:\n return renderText(node, options);\n }\n}\nvar foreignModeIntegrationPoints = new Set([\n \"mi\",\n \"mo\",\n \"mn\",\n \"ms\",\n \"mtext\",\n \"annotation-xml\",\n \"foreignObject\",\n \"desc\",\n \"title\",\n]);\nvar foreignElements = new Set([\"svg\", \"math\"]);\nfunction renderTag(elem, opts) {\n var _a;\n // Handle SVG / MathML in HTML\n if (opts.xmlMode === \"foreign\") {\n /* Fix up mixed-case element names */\n elem.name = (_a = foreignNames_js_1.elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name;\n /* Exit foreign mode at integration points */\n if (elem.parent &&\n foreignModeIntegrationPoints.has(elem.parent.name)) {\n opts = __assign(__assign({}, opts), { xmlMode: false });\n }\n }\n if (!opts.xmlMode && foreignElements.has(elem.name)) {\n opts = __assign(__assign({}, opts), { xmlMode: \"foreign\" });\n }\n var tag = \"<\".concat(elem.name);\n var attribs = formatAttributes(elem.attribs, opts);\n if (attribs) {\n tag += \" \".concat(attribs);\n }\n if (elem.children.length === 0 &&\n (opts.xmlMode\n ? // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags\n opts.selfClosingTags !== false\n : // User explicitly asked for self-closing tags, even in HTML mode\n opts.selfClosingTags && singleTag.has(elem.name))) {\n if (!opts.xmlMode)\n tag += \" \";\n tag += \"/>\";\n }\n else {\n tag += \">\";\n if (elem.children.length > 0) {\n tag += render(elem.children, opts);\n }\n if (opts.xmlMode || !singleTag.has(elem.name)) {\n tag += \"</\".concat(elem.name, \">\");\n }\n }\n return tag;\n}\nfunction renderDirective(elem) {\n return \"<\".concat(elem.data, \">\");\n}\nfunction renderText(elem, opts) {\n var _a;\n var data = elem.data || \"\";\n // If entities weren't decoded, no need to encode them back\n if (((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) !== false &&\n !(!opts.xmlMode &&\n elem.parent &&\n unencodedElements.has(elem.parent.name))) {\n data =\n opts.xmlMode || opts.encodeEntities !== \"utf8\"\n ? (0, entities_1.encodeXML)(data)\n : (0, entities_1.escapeText)(data);\n }\n return data;\n}\nfunction renderCdata(elem) {\n return \"<![CDATA[\".concat(elem.children[0].data, \"]]>\");\n}\nfunction renderComment(elem) {\n return \"<!--\".concat(elem.data, \"-->\");\n}\n"],"names":["__assign","this","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","__createBinding","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__setModuleDefault","v","value","__importStar","mod","result","lib","render","ElementType","entities_1","require$$1","foreignNames_js_1","require$$2","unencodedElements","Set","replaceQuotes","replace","singleTag","node","options","nodes","output","renderNode","type","Root","children","Doctype","Directive","concat","data","Comment","elem","renderComment","CDATA","renderCdata","Script","Style","Tag","opts","_a","xmlMode","name","elementNames","parent","foreignModeIntegrationPoints","has","foreignElements","tag","attribs","attributes","encode","encodeEntities","decodeEntities","encodeXML","escapeAttribute","keys","map","key","_b","attributeNames","emptyAttrs","join","formatAttributes","selfClosingTags","renderTag","Text","escapeText","renderText","default"],"mappings":"kQACA,IAAIA,EAAYC,GAAQA,EAAKD,UAAa,WAStC,OARAA,EAAWE,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,GAEJJ,EAASc,MAAMb,KAAMO,YAE5BO,EAAmBd,GAAQA,EAAKc,kBAAqBb,OAAOc,OAAM,SAAaC,EAAGC,EAAGC,EAAGC,QAC7EC,IAAPD,IAAkBA,EAAKD,GAC3B,IAAIG,EAAOpB,OAAOqB,yBAAyBL,EAAGC,GACzCG,KAAS,QAASA,GAAQJ,EAAEM,WAAaF,EAAKG,UAAYH,EAAKI,gBAClEJ,EAAO,CAAEK,YAAY,EAAMC,IAAK,WAAa,OAAOV,EAAEC,EAAG,IAE3DjB,OAAO2B,eAAeZ,EAAGG,EAAIE,EAChC,EAAA,SAAcL,EAAGC,EAAGC,EAAGC,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B,IAAIhC,IAAI,CAAC,MAAO"}
@@ -1,2 +0,0 @@
1
- import{__exports as t}from"../../../_virtual/index12.js";import{__require as e}from"../../domelementtype/lib/index.js";import{__require as n}from"./node.js";var o;function i(){return o||(o=1,function(o){var i=t&&t.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,i)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),s=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(o,"__esModule",{value:!0}),o.DomHandler=void 0;var r=e(),a=n();s(n(),o);var d={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function t(t,e,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(n=e,e=d),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:d,this.elementCB=null!=n?n:null}return t.prototype.onparserinit=function(t){this.parser=t},t.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},t.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},t.prototype.onerror=function(t){this.handleCallback(t)},t.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},t.prototype.onopentag=function(t,e){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new a.Element(t,e,void 0,n);this.addNode(o),this.tagStack.push(o)},t.prototype.ontext=function(t){var e=this.lastNode;if(e&&e.type===r.ElementType.Text)e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex);else{var n=new a.Text(t);this.addNode(n),this.lastNode=n}},t.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=t;else{var e=new a.Comment(t);this.addNode(e),this.lastNode=e}},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new a.Text(""),e=new a.CDATA([t]);this.addNode(e),t.parent=e,this.lastNode=t},t.prototype.oncdataend=function(){this.lastNode=null},t.prototype.onprocessinginstruction=function(t,e){var n=new a.ProcessingInstruction(t,e);this.addNode(n)},t.prototype.handleCallback=function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t},t.prototype.addNode=function(t){var e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&(t.prev=n,n.next=t),t.parent=e,this.lastNode=null},t}();o.DomHandler=l,o.default=l}(t)),t}export{i as __require};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/domhandler/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DomHandler = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\nvar node_js_1 = require(\"./node.js\");\n__exportStar(require(\"./node.js\"), exports);\n// Default options\nvar defaultOpts = {\n withStartIndices: false,\n withEndIndices: false,\n xmlMode: false,\n};\nvar DomHandler = /** @class */ (function () {\n /**\n * @param callback Called once parsing has completed.\n * @param options Settings for the handler.\n * @param elementCB Callback whenever a tag is closed.\n */\n function DomHandler(callback, options, elementCB) {\n /** The elements of the DOM */\n this.dom = [];\n /** The root element for the DOM */\n this.root = new node_js_1.Document(this.dom);\n /** Indicated whether parsing has been completed. */\n this.done = false;\n /** Stack of open tags. */\n this.tagStack = [this.root];\n /** A data node that is still being written to. */\n this.lastNode = null;\n /** Reference to the parser instance. Used for location information. */\n this.parser = null;\n // Make it possible to skip arguments, for backwards-compatibility\n if (typeof options === \"function\") {\n elementCB = options;\n options = defaultOpts;\n }\n if (typeof callback === \"object\") {\n options = callback;\n callback = undefined;\n }\n this.callback = callback !== null && callback !== void 0 ? callback : null;\n this.options = options !== null && options !== void 0 ? options : defaultOpts;\n this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;\n }\n DomHandler.prototype.onparserinit = function (parser) {\n this.parser = parser;\n };\n // Resets the handler back to starting state\n DomHandler.prototype.onreset = function () {\n this.dom = [];\n this.root = new node_js_1.Document(this.dom);\n this.done = false;\n this.tagStack = [this.root];\n this.lastNode = null;\n this.parser = null;\n };\n // Signals the handler that parsing is done\n DomHandler.prototype.onend = function () {\n if (this.done)\n return;\n this.done = true;\n this.parser = null;\n this.handleCallback(null);\n };\n DomHandler.prototype.onerror = function (error) {\n this.handleCallback(error);\n };\n DomHandler.prototype.onclosetag = function () {\n this.lastNode = null;\n var elem = this.tagStack.pop();\n if (this.options.withEndIndices) {\n elem.endIndex = this.parser.endIndex;\n }\n if (this.elementCB)\n this.elementCB(elem);\n };\n DomHandler.prototype.onopentag = function (name, attribs) {\n var type = this.options.xmlMode ? domelementtype_1.ElementType.Tag : undefined;\n var element = new node_js_1.Element(name, attribs, undefined, type);\n this.addNode(element);\n this.tagStack.push(element);\n };\n DomHandler.prototype.ontext = function (data) {\n var lastNode = this.lastNode;\n if (lastNode && lastNode.type === domelementtype_1.ElementType.Text) {\n lastNode.data += data;\n if (this.options.withEndIndices) {\n lastNode.endIndex = this.parser.endIndex;\n }\n }\n else {\n var node = new node_js_1.Text(data);\n this.addNode(node);\n this.lastNode = node;\n }\n };\n DomHandler.prototype.oncomment = function (data) {\n if (this.lastNode && this.lastNode.type === domelementtype_1.ElementType.Comment) {\n this.lastNode.data += data;\n return;\n }\n var node = new node_js_1.Comment(data);\n this.addNode(node);\n this.lastNode = node;\n };\n DomHandler.prototype.oncommentend = function () {\n this.lastNode = null;\n };\n DomHandler.prototype.oncdatastart = function () {\n var text = new node_js_1.Text(\"\");\n var node = new node_js_1.CDATA([text]);\n this.addNode(node);\n text.parent = node;\n this.lastNode = text;\n };\n DomHandler.prototype.oncdataend = function () {\n this.lastNode = null;\n };\n DomHandler.prototype.onprocessinginstruction = function (name, data) {\n var node = new node_js_1.ProcessingInstruction(name, data);\n this.addNode(node);\n };\n DomHandler.prototype.handleCallback = function (error) {\n if (typeof this.callback === \"function\") {\n this.callback(error, this.dom);\n }\n else if (error) {\n throw error;\n }\n };\n DomHandler.prototype.addNode = function (node) {\n var parent = this.tagStack[this.tagStack.length - 1];\n var previousSibling = parent.children[parent.children.length - 1];\n if (this.options.withStartIndices) {\n node.startIndex = this.parser.startIndex;\n }\n if (this.options.withEndIndices) {\n node.endIndex = this.parser.endIndex;\n }\n parent.children.push(node);\n if (previousSibling) {\n node.prev = previousSibling;\n previousSibling.next = node;\n }\n node.parent = parent;\n this.lastNode = null;\n };\n return DomHandler;\n}());\nexports.DomHandler = DomHandler;\nexports.default = DomHandler;\n"],"names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","DomHandler","domelementtype_1","require$$0","node_js_1","require$$1","defaultOpts","withStartIndices","withEndIndices","xmlMode","callback","options","elementCB","dom","root","Document","done","tagStack","lastNode","parser","onparserinit","onreset","onend","handleCallback","onerror","error","onclosetag","elem","pop","endIndex","onopentag","name","attribs","type","ElementType","Tag","element","Element","addNode","push","ontext","data","Text","node","oncomment","Comment","oncommentend","oncdatastart","text","CDATA","parent","oncdataend","onprocessinginstruction","ProcessingInstruction","length","previousSibling","children","startIndex","prev","next","default"],"mappings":"2MACA,IAAIA,EAAmBC,GAAQA,EAAKD,kBAAqBE,OAAOC,OAAM,SAAaC,EAAGC,EAAGC,EAAGC,QAC7EC,IAAPD,IAAkBA,EAAKD,GAC3B,IAAIG,EAAOP,OAAOQ,yBAAyBL,EAAGC,GACzCG,KAAS,QAASA,GAAQJ,EAAEM,WAAaF,EAAKG,UAAYH,EAAKI,gBAClEJ,EAAO,CAAEK,YAAY,EAAMC,IAAK,WAAa,OAAOV,EAAEC,EAAG,IAE3DJ,OAAOc,eAAeZ,EAAGG,EAAIE,EAChC,EAAA,SAAcL,EAAGC,EAAGC,EAAGC,QACTC,IAAPD,IAAkBA,EAAKD,GAC3BF,EAAEG,GAAMF,EAAEC,EACb,GACGW,EAAgBhB,GAAQA,EAAKgB,cAAiB,SAASZ,EAAGa,GAC1D,IAAK,IAAIC,KAAKd,EAAa,YAANc,GAAoBjB,OAAOkB,UAAUC,eAAeC,KAAKJ,EAASC,IAAInB,EAAgBkB,EAASb,EAAGc,IAE3HjB,OAAOc,eAAcE,EAAU,aAAc,CAAEK,OAAO,IACtDL,EAAAM,gBAAqB,EACrB,IAAIC,EAA4CC,IAC5CC,EAAgCC,IACpCX,EAAaW,IAAsBV,GAEnC,IAAIW,EAAc,CACdC,kBAAkB,EAClBC,gBAAgB,EAChBC,SAAS,GAETR,EAA4B,WAM5B,SAASA,EAAWS,EAAUC,EAASC,GAEnClC,KAAKmC,IAAM,GAEXnC,KAAKoC,KAAO,IAAIV,EAAUW,SAASrC,KAAKmC,KAExCnC,KAAKsC,MAAO,EAEZtC,KAAKuC,SAAW,CAACvC,KAAKoC,MAEtBpC,KAAKwC,S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,YAE9B/E,KAAKiC,QAAQH,iBACbmC,EAAKd,SAAWnD,KAAKyC,OAAOU,UAEhCqB,EAAOM,SAASjB,KAAKI,GACjBY,IACAZ,EAAKe,KAAOH,EACZA,EAAgBI,KAAOhB,GAE3BA,EAAKO,OAASA,EACdxE,KAAKwC,SAAW,MAEbjB,CACV,CAxIa,GAyIdN,EAAAM,WAAqBA,EACrBN,EAAAiE,QAAkB3D"}
@@ -1,2 +0,0 @@
1
- import{__exports as e}from"../../../_virtual/node.js";import{__require as t}from"../../domelementtype/lib/index.js";var n;function r(){if(n)return e;n=1;var r,i=e&&e.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=e&&e.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.cloneNode=e.hasChildren=e.isDocument=e.isDirective=e.isComment=e.isText=e.isCDATA=e.isTag=e.Element=e.Document=e.CDATA=e.NodeWithChildren=e.ProcessingInstruction=e.Comment=e.Text=e.DataNode=e.Node=void 0;var u=t(),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();e.Node=a;var c=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);e.DataNode=c;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(c);e.Text=l;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(c);e.Comment=p;var s=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=u.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(c);e.ProcessingInstruction=s;var f=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);e.NodeWithChildren=f;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);e.CDATA=d;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);e.Document=y;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?u.ElementType.Script:"style"===t?u.ElementType.Style:u.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function h(e){return(0,u.isTag)(e)}function b(e){return e.type===u.ElementType.CDATA}function v(e){return e.type===u.ElementType.Text}function g(e){return e.type===u.ElementType.Comment}function x(e){return e.type===u.ElementType.Directive}function T(e){return e.type===u.ElementType.Root}function O(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new l(e.data);else if(g(e))n=new p(e.data);else if(h(e)){var r=t?P(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(b(e)){r=t?P(e.children):[];var u=new d(r);r.forEach((function(e){return e.parent=u})),n=u}else if(T(e)){r=t?P(e.children):[];var a=new y(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new s(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function P(e){for(var t=e.map((function(e){return O(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}return e.Element=m,e.isTag=h,e.isCDATA=b,e.isText=v,e.isComment=g,e.isDirective=x,e.isDocument=T,e.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},e.cloneNode=O,e}export{r as __require};
2
- //# sourceMappingURL=node.js.map